@yusr_systems/core 2.0.1 → 2.0.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/{yusr-core.d.ts → index.d.ts} +0 -8
- package/dist/yusr-core.js +429 -435
- package/dist/yusr-core.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/yusr-core.js
CHANGED
|
@@ -13,28 +13,22 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
13
13
|
static AuthCheckStorageItemName = "IsLoggedIn";
|
|
14
14
|
static SettingStorageItemName = "Setting";
|
|
15
15
|
static UnauthorizedEventName = "ApiUnauthorized";
|
|
16
|
-
}, u = (e, t) => {
|
|
17
|
-
window.addEventListener("storage", (n) => {
|
|
18
|
-
n.key === l.AuthCheckStorageItemName && e(t.syncFromStorage());
|
|
19
|
-
}), window.addEventListener(l.UnauthorizedEventName, () => {
|
|
20
|
-
e(t.logout());
|
|
21
|
-
});
|
|
22
16
|
};
|
|
23
17
|
typeof Symbol == "function" && Symbol.observable;
|
|
24
|
-
var
|
|
25
|
-
`${/* @__PURE__ */
|
|
26
|
-
function
|
|
18
|
+
var u = () => Math.random().toString(36).substring(7).split("").join(".");
|
|
19
|
+
`${/* @__PURE__ */ u()}`, `${/* @__PURE__ */ u()}`;
|
|
20
|
+
function d(e) {
|
|
27
21
|
if (typeof e != "object" || !e) return !1;
|
|
28
22
|
let t = e;
|
|
29
23
|
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
|
|
30
24
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
31
25
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
26
|
+
function f(e) {
|
|
27
|
+
return d(e) && "type" in e && typeof e.type == "string";
|
|
34
28
|
}
|
|
35
29
|
//#endregion
|
|
36
30
|
//#region ../../node_modules/immer/dist/immer.mjs
|
|
37
|
-
var
|
|
31
|
+
var p = Symbol.for("immer-nothing"), m = Symbol.for("immer-draftable"), h = Symbol.for("immer-state"), g = process.env.NODE_ENV === "production" ? [] : [
|
|
38
32
|
function(e) {
|
|
39
33
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
40
34
|
},
|
|
@@ -64,63 +58,63 @@ var m = Symbol.for("immer-nothing"), h = Symbol.for("immer-draftable"), g = Symb
|
|
|
64
58
|
];
|
|
65
59
|
function _(e, ...t) {
|
|
66
60
|
if (process.env.NODE_ENV !== "production") {
|
|
67
|
-
let n =
|
|
61
|
+
let n = g[e], r = R(n) ? n.apply(null, t) : n;
|
|
68
62
|
throw Error(`[Immer] ${r}`);
|
|
69
63
|
}
|
|
70
64
|
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
|
|
71
65
|
}
|
|
72
|
-
var v = Object, y = v.getPrototypeOf, b = "constructor", x = "prototype",
|
|
73
|
-
function
|
|
74
|
-
return e ?
|
|
66
|
+
var v = Object, y = v.getPrototypeOf, b = "constructor", x = "prototype", ee = "configurable", S = "enumerable", C = "writable", w = "value", T = (e) => !!e && !!e[h];
|
|
67
|
+
function E(e) {
|
|
68
|
+
return e ? O(e) || P(e) || !!e[m] || !!e[b]?.[m] || F(e) || I(e) : !1;
|
|
75
69
|
}
|
|
76
|
-
var
|
|
77
|
-
function
|
|
78
|
-
if (!e || !
|
|
70
|
+
var D = v[x][b].toString(), te = /* @__PURE__ */ new WeakMap();
|
|
71
|
+
function O(e) {
|
|
72
|
+
if (!e || !L(e)) return !1;
|
|
79
73
|
let t = y(e);
|
|
80
74
|
if (t === null || t === v[x]) return !0;
|
|
81
75
|
let n = v.hasOwnProperty.call(t, b) && t[b];
|
|
82
76
|
if (n === Object) return !0;
|
|
83
|
-
if (!
|
|
84
|
-
let r =
|
|
85
|
-
return r === void 0 && (r = Function.toString.call(n),
|
|
77
|
+
if (!R(n)) return !1;
|
|
78
|
+
let r = te.get(n);
|
|
79
|
+
return r === void 0 && (r = Function.toString.call(n), te.set(n, r)), r === D;
|
|
86
80
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
81
|
+
function k(e, t, n = !0) {
|
|
82
|
+
A(e) === 0 ? (n ? Reflect.ownKeys(e) : v.keys(e)).forEach((n) => {
|
|
89
83
|
t(n, e[n], e);
|
|
90
84
|
}) : e.forEach((n, r) => t(r, n, e));
|
|
91
85
|
}
|
|
92
|
-
function
|
|
93
|
-
let t = e[
|
|
94
|
-
return t ? t.type_ :
|
|
86
|
+
function A(e) {
|
|
87
|
+
let t = e[h];
|
|
88
|
+
return t ? t.type_ : P(e) ? 1 : F(e) ? 2 : I(e) ? 3 : 0;
|
|
95
89
|
}
|
|
96
|
-
var
|
|
90
|
+
var j = (e, t, n = A(e)) => n === 2 ? e.has(t) : v[x].hasOwnProperty.call(e, t), M = (e, t, n = A(e)) => n === 2 ? e.get(t) : e[t], N = (e, t, n, r = A(e)) => {
|
|
97
91
|
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
98
92
|
};
|
|
99
93
|
function ne(e, t) {
|
|
100
94
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
101
95
|
}
|
|
102
|
-
var
|
|
103
|
-
function
|
|
96
|
+
var P = Array.isArray, F = (e) => e instanceof Map, I = (e) => e instanceof Set, L = (e) => typeof e == "object", R = (e) => typeof e == "function", re = (e) => typeof e == "boolean";
|
|
97
|
+
function ie(e) {
|
|
104
98
|
let t = +e;
|
|
105
99
|
return Number.isInteger(t) && String(t) === e;
|
|
106
100
|
}
|
|
107
|
-
var
|
|
108
|
-
function
|
|
109
|
-
if (
|
|
101
|
+
var z = (e) => e.copy_ || e.base_, ae = (e) => e.modified_ ? e.copy_ : e.base_;
|
|
102
|
+
function B(e, t) {
|
|
103
|
+
if (F(e)) return new Map(e);
|
|
110
104
|
if (I(e)) return new Set(e);
|
|
111
|
-
if (
|
|
112
|
-
let n =
|
|
105
|
+
if (P(e)) return Array[x].slice.call(e);
|
|
106
|
+
let n = O(e);
|
|
113
107
|
if (t === !0 || t === "class_only" && !n) {
|
|
114
108
|
let t = v.getOwnPropertyDescriptors(e);
|
|
115
|
-
delete t[
|
|
109
|
+
delete t[h];
|
|
116
110
|
let n = Reflect.ownKeys(t);
|
|
117
111
|
for (let r = 0; r < n.length; r++) {
|
|
118
112
|
let i = n[r], a = t[i];
|
|
119
|
-
a[
|
|
120
|
-
[
|
|
121
|
-
[
|
|
122
|
-
[
|
|
123
|
-
[
|
|
113
|
+
a[C] === !1 && (a[C] = !0, a[ee] = !0), (a.get || a.set) && (t[i] = {
|
|
114
|
+
[ee]: !0,
|
|
115
|
+
[C]: !0,
|
|
116
|
+
[S]: a[S],
|
|
117
|
+
[w]: e[i]
|
|
124
118
|
});
|
|
125
119
|
}
|
|
126
120
|
return v.create(y(e), t);
|
|
@@ -131,29 +125,29 @@ function se(e, t) {
|
|
|
131
125
|
return v.assign(r, e);
|
|
132
126
|
}
|
|
133
127
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
136
|
-
set:
|
|
137
|
-
add:
|
|
138
|
-
clear:
|
|
139
|
-
delete:
|
|
140
|
-
}), v.freeze(e), t &&
|
|
141
|
-
|
|
128
|
+
function oe(e, t = !1) {
|
|
129
|
+
return H(e) || T(e) || !E(e) ? e : (A(e) > 1 && v.defineProperties(e, {
|
|
130
|
+
set: V,
|
|
131
|
+
add: V,
|
|
132
|
+
clear: V,
|
|
133
|
+
delete: V
|
|
134
|
+
}), v.freeze(e), t && k(e, (e, t) => {
|
|
135
|
+
oe(t, !0);
|
|
142
136
|
}, !1), e);
|
|
143
137
|
}
|
|
144
|
-
function
|
|
138
|
+
function se() {
|
|
145
139
|
_(2);
|
|
146
140
|
}
|
|
147
|
-
var
|
|
148
|
-
function
|
|
149
|
-
return e === null || !
|
|
141
|
+
var V = { [w]: se };
|
|
142
|
+
function H(e) {
|
|
143
|
+
return e === null || !L(e) ? !0 : v.isFrozen(e);
|
|
150
144
|
}
|
|
151
|
-
var
|
|
152
|
-
function
|
|
153
|
-
let t =
|
|
145
|
+
var U = "MapSet", W = "Patches", G = "ArrayMethods", ce = {};
|
|
146
|
+
function K(e) {
|
|
147
|
+
let t = ce[e];
|
|
154
148
|
return t || _(0, e), t;
|
|
155
149
|
}
|
|
156
|
-
var
|
|
150
|
+
var q = (e) => !!ce[e], J, le = () => J, ue = (e, t) => ({
|
|
157
151
|
drafts_: [],
|
|
158
152
|
parent_: e,
|
|
159
153
|
immer_: t,
|
|
@@ -161,114 +155,114 @@ var G = (e) => !!de[e], K, fe = () => K, pe = (e, t) => ({
|
|
|
161
155
|
unfinalizedDrafts_: 0,
|
|
162
156
|
handledSet_: /* @__PURE__ */ new Set(),
|
|
163
157
|
processedForPatches_: /* @__PURE__ */ new Set(),
|
|
164
|
-
mapSetPlugin_:
|
|
165
|
-
arrayMethodsPlugin_: G
|
|
158
|
+
mapSetPlugin_: q(U) ? K(U) : void 0,
|
|
159
|
+
arrayMethodsPlugin_: q(G) ? K(G) : void 0
|
|
166
160
|
});
|
|
167
|
-
function
|
|
168
|
-
t && (e.patchPlugin_ = W
|
|
161
|
+
function de(e, t) {
|
|
162
|
+
t && (e.patchPlugin_ = K(W), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
169
163
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
164
|
+
function fe(e) {
|
|
165
|
+
pe(e), e.drafts_.forEach(he), e.drafts_ = null;
|
|
172
166
|
}
|
|
173
|
-
function
|
|
174
|
-
e ===
|
|
167
|
+
function pe(e) {
|
|
168
|
+
e === J && (J = e.parent_);
|
|
175
169
|
}
|
|
176
|
-
var
|
|
177
|
-
function
|
|
178
|
-
let t = e[
|
|
170
|
+
var me = (e) => J = ue(J, e);
|
|
171
|
+
function he(e) {
|
|
172
|
+
let t = e[h];
|
|
179
173
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
180
174
|
}
|
|
181
|
-
function
|
|
175
|
+
function ge(e, t) {
|
|
182
176
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
183
177
|
let n = t.drafts_[0];
|
|
184
178
|
if (e !== void 0 && e !== n) {
|
|
185
|
-
n[
|
|
179
|
+
n[h].modified_ && (fe(t), _(4)), E(e) && (e = _e(t, e));
|
|
186
180
|
let { patchPlugin_: r } = t;
|
|
187
|
-
r && r.generateReplacementPatches_(n[
|
|
188
|
-
} else e =
|
|
189
|
-
return
|
|
181
|
+
r && r.generateReplacementPatches_(n[h].base_, e, t);
|
|
182
|
+
} else e = _e(t, n);
|
|
183
|
+
return ve(t, e, !0), fe(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === p ? void 0 : e;
|
|
190
184
|
}
|
|
191
|
-
function
|
|
192
|
-
if (
|
|
193
|
-
let n = t[
|
|
194
|
-
if (!n) return
|
|
195
|
-
if (!
|
|
185
|
+
function _e(e, t) {
|
|
186
|
+
if (H(t)) return t;
|
|
187
|
+
let n = t[h];
|
|
188
|
+
if (!n) return we(t, e.handledSet_, e);
|
|
189
|
+
if (!Y(n, e)) return t;
|
|
196
190
|
if (!n.modified_) return n.base_;
|
|
197
191
|
if (!n.finalized_) {
|
|
198
192
|
let { callbacks_: t } = n;
|
|
199
193
|
if (t) for (; t.length > 0;) t.pop()(e);
|
|
200
|
-
|
|
194
|
+
X(n, e);
|
|
201
195
|
}
|
|
202
196
|
return n.copy_;
|
|
203
197
|
}
|
|
204
|
-
function
|
|
205
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
198
|
+
function ve(e, t, n = !1) {
|
|
199
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && oe(t, n);
|
|
206
200
|
}
|
|
207
|
-
function
|
|
201
|
+
function ye(e) {
|
|
208
202
|
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
209
203
|
}
|
|
210
|
-
var
|
|
211
|
-
function
|
|
212
|
-
let i =
|
|
213
|
-
if (r !== void 0 &&
|
|
214
|
-
|
|
204
|
+
var Y = (e, t) => e.scope_ === t, be = [];
|
|
205
|
+
function xe(e, t, n, r) {
|
|
206
|
+
let i = z(e), a = e.type_;
|
|
207
|
+
if (r !== void 0 && M(i, r, a) === t) {
|
|
208
|
+
N(i, r, n, a);
|
|
215
209
|
return;
|
|
216
210
|
}
|
|
217
211
|
if (!e.draftLocations_) {
|
|
218
212
|
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
|
|
219
|
-
|
|
220
|
-
if (
|
|
213
|
+
k(i, (e, n) => {
|
|
214
|
+
if (T(n)) {
|
|
221
215
|
let r = t.get(n) || [];
|
|
222
216
|
r.push(e), t.set(n, r);
|
|
223
217
|
}
|
|
224
218
|
});
|
|
225
219
|
}
|
|
226
|
-
let o = e.draftLocations_.get(t) ??
|
|
227
|
-
for (let e of o)
|
|
220
|
+
let o = e.draftLocations_.get(t) ?? be;
|
|
221
|
+
for (let e of o) N(i, e, n, a);
|
|
228
222
|
}
|
|
229
|
-
function
|
|
223
|
+
function Se(e, t, n) {
|
|
230
224
|
e.callbacks_.push(function(r) {
|
|
231
225
|
let i = t;
|
|
232
|
-
if (!i || !
|
|
226
|
+
if (!i || !Y(i, r)) return;
|
|
233
227
|
r.mapSetPlugin_?.fixSetContents(i);
|
|
234
|
-
let a =
|
|
235
|
-
|
|
228
|
+
let a = ae(i);
|
|
229
|
+
xe(e, i.draft_ ?? i, a, n), X(i, r);
|
|
236
230
|
});
|
|
237
231
|
}
|
|
238
|
-
function
|
|
232
|
+
function X(e, t) {
|
|
239
233
|
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
|
|
240
234
|
let { patchPlugin_: n } = t;
|
|
241
235
|
if (n) {
|
|
242
236
|
let r = n.getPath(e);
|
|
243
237
|
r && n.generatePatches_(e, r, t);
|
|
244
238
|
}
|
|
245
|
-
|
|
239
|
+
ye(e);
|
|
246
240
|
}
|
|
247
241
|
}
|
|
248
|
-
function
|
|
242
|
+
function Ce(e, t, n) {
|
|
249
243
|
let { scope_: r } = e;
|
|
250
|
-
if (
|
|
251
|
-
let i = n[
|
|
252
|
-
|
|
253
|
-
|
|
244
|
+
if (T(n)) {
|
|
245
|
+
let i = n[h];
|
|
246
|
+
Y(i, r) && i.callbacks_.push(function() {
|
|
247
|
+
Me(e), xe(e, n, ae(i), t);
|
|
254
248
|
});
|
|
255
|
-
} else
|
|
256
|
-
let i =
|
|
257
|
-
e.type_ === 3 ? i.has(n) &&
|
|
249
|
+
} else E(n) && e.callbacks_.push(function() {
|
|
250
|
+
let i = z(e);
|
|
251
|
+
e.type_ === 3 ? i.has(n) && we(n, r.handledSet_, r) : M(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && we(M(e.copy_, t, e.type_), r.handledSet_, r);
|
|
258
252
|
});
|
|
259
253
|
}
|
|
260
|
-
function
|
|
261
|
-
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 ||
|
|
262
|
-
if (
|
|
263
|
-
let t = i[
|
|
264
|
-
|
|
265
|
-
} else
|
|
254
|
+
function we(e, t, n) {
|
|
255
|
+
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || T(e) || t.has(e) || !E(e) || H(e) ? e : (t.add(e), k(e, (r, i) => {
|
|
256
|
+
if (T(i)) {
|
|
257
|
+
let t = i[h];
|
|
258
|
+
Y(t, n) && (N(e, r, ae(t), e.type_), ye(t));
|
|
259
|
+
} else E(i) && we(i, t, n);
|
|
266
260
|
}), e);
|
|
267
261
|
}
|
|
268
|
-
function
|
|
269
|
-
let n =
|
|
262
|
+
function Te(e, t) {
|
|
263
|
+
let n = P(e), r = {
|
|
270
264
|
type_: n ? 1 : 0,
|
|
271
|
-
scope_: t ? t.scope_ :
|
|
265
|
+
scope_: t ? t.scope_ : le(),
|
|
272
266
|
modified_: !1,
|
|
273
267
|
finalized_: !1,
|
|
274
268
|
assigned_: void 0,
|
|
@@ -279,54 +273,54 @@ function De(e, t) {
|
|
|
279
273
|
revoke_: null,
|
|
280
274
|
isManual_: !1,
|
|
281
275
|
callbacks_: void 0
|
|
282
|
-
}, i = r, a =
|
|
283
|
-
n && (i = [r], a =
|
|
276
|
+
}, i = r, a = Ee;
|
|
277
|
+
n && (i = [r], a = De);
|
|
284
278
|
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
|
|
285
279
|
return r.draft_ = s, r.revoke_ = o, [s, r];
|
|
286
280
|
}
|
|
287
|
-
var
|
|
281
|
+
var Ee = {
|
|
288
282
|
get(e, t) {
|
|
289
|
-
if (t ===
|
|
283
|
+
if (t === h) return e;
|
|
290
284
|
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
|
|
291
285
|
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
|
|
292
|
-
let i =
|
|
293
|
-
if (!
|
|
286
|
+
let i = z(e);
|
|
287
|
+
if (!j(i, t, e.type_)) return ke(e, i, t);
|
|
294
288
|
let a = i[t];
|
|
295
|
-
if (e.finalized_ || !
|
|
296
|
-
if (a ===
|
|
297
|
-
|
|
298
|
-
let n = e.type_ === 1 ? +t : t, r =
|
|
289
|
+
if (e.finalized_ || !E(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && ie(t)) return a;
|
|
290
|
+
if (a === Oe(e.base_, t)) {
|
|
291
|
+
Me(e);
|
|
292
|
+
let n = e.type_ === 1 ? +t : t, r = Pe(e.scope_, a, e, n);
|
|
299
293
|
return e.copy_[n] = r;
|
|
300
294
|
}
|
|
301
295
|
return a;
|
|
302
296
|
},
|
|
303
297
|
has(e, t) {
|
|
304
|
-
return t in
|
|
298
|
+
return t in z(e);
|
|
305
299
|
},
|
|
306
300
|
ownKeys(e) {
|
|
307
|
-
return Reflect.ownKeys(
|
|
301
|
+
return Reflect.ownKeys(z(e));
|
|
308
302
|
},
|
|
309
303
|
set(e, t, n) {
|
|
310
|
-
let r =
|
|
304
|
+
let r = Ae(z(e), t);
|
|
311
305
|
if (r?.set) return r.set.call(e.draft_, n), !0;
|
|
312
306
|
if (!e.modified_) {
|
|
313
|
-
let r =
|
|
307
|
+
let r = Oe(z(e), t), i = r?.[h];
|
|
314
308
|
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
|
|
315
|
-
if (ne(n, r) && (n !== void 0 ||
|
|
316
|
-
|
|
309
|
+
if (ne(n, r) && (n !== void 0 || j(e.base_, t, e.type_))) return !0;
|
|
310
|
+
Me(e), je(e);
|
|
317
311
|
}
|
|
318
|
-
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0),
|
|
312
|
+
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Ce(e, t, n), !0);
|
|
319
313
|
},
|
|
320
314
|
deleteProperty(e, t) {
|
|
321
|
-
return
|
|
315
|
+
return Me(e), Oe(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), je(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
322
316
|
},
|
|
323
317
|
getOwnPropertyDescriptor(e, t) {
|
|
324
|
-
let n =
|
|
318
|
+
let n = z(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
325
319
|
return r && {
|
|
326
|
-
[
|
|
327
|
-
[
|
|
328
|
-
[
|
|
329
|
-
[
|
|
320
|
+
[C]: !0,
|
|
321
|
+
[ee]: e.type_ !== 1 || t !== "length",
|
|
322
|
+
[S]: r[S],
|
|
323
|
+
[w]: n[t]
|
|
330
324
|
};
|
|
331
325
|
},
|
|
332
326
|
defineProperty() {
|
|
@@ -338,28 +332,28 @@ var Oe = {
|
|
|
338
332
|
setPrototypeOf() {
|
|
339
333
|
_(12);
|
|
340
334
|
}
|
|
341
|
-
},
|
|
342
|
-
for (let e in
|
|
343
|
-
let t =
|
|
344
|
-
|
|
335
|
+
}, De = {};
|
|
336
|
+
for (let e in Ee) {
|
|
337
|
+
let t = Ee[e];
|
|
338
|
+
De[e] = function() {
|
|
345
339
|
let e = arguments;
|
|
346
340
|
return e[0] = e[0][0], t.apply(this, e);
|
|
347
341
|
};
|
|
348
342
|
}
|
|
349
|
-
|
|
350
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && _(13),
|
|
351
|
-
},
|
|
352
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && _(14),
|
|
343
|
+
De.deleteProperty = function(e, t) {
|
|
344
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && _(13), De.set.call(this, e, t, void 0);
|
|
345
|
+
}, De.set = function(e, t, n) {
|
|
346
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && _(14), Ee.set.call(this, e[0], t, n, e[0]);
|
|
353
347
|
};
|
|
354
|
-
function
|
|
355
|
-
let n = e[
|
|
356
|
-
return (n ?
|
|
348
|
+
function Oe(e, t) {
|
|
349
|
+
let n = e[h];
|
|
350
|
+
return (n ? z(n) : e)[t];
|
|
357
351
|
}
|
|
358
|
-
function
|
|
359
|
-
let r =
|
|
360
|
-
return r ?
|
|
352
|
+
function ke(e, t, n) {
|
|
353
|
+
let r = Ae(t, n);
|
|
354
|
+
return r ? w in r ? r[w] : r.get?.call(e.draft_) : void 0;
|
|
361
355
|
}
|
|
362
|
-
function
|
|
356
|
+
function Ae(e, t) {
|
|
363
357
|
if (!(t in e)) return;
|
|
364
358
|
let n = y(e);
|
|
365
359
|
for (; n;) {
|
|
@@ -368,16 +362,16 @@ function Me(e, t) {
|
|
|
368
362
|
n = y(n);
|
|
369
363
|
}
|
|
370
364
|
}
|
|
371
|
-
function
|
|
372
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
365
|
+
function je(e) {
|
|
366
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && je(e.parent_));
|
|
373
367
|
}
|
|
374
|
-
function
|
|
375
|
-
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(),
|
|
368
|
+
function Me(e) {
|
|
369
|
+
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), B(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
376
370
|
}
|
|
377
|
-
var
|
|
371
|
+
var Ne = class {
|
|
378
372
|
constructor(e) {
|
|
379
373
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
|
|
380
|
-
if (
|
|
374
|
+
if (R(e) && !R(t)) {
|
|
381
375
|
let n = t;
|
|
382
376
|
t = e;
|
|
383
377
|
let r = this;
|
|
@@ -385,20 +379,20 @@ var Fe = class {
|
|
|
385
379
|
return r.produce(e, (e) => t.call(this, e, ...i));
|
|
386
380
|
};
|
|
387
381
|
}
|
|
388
|
-
|
|
382
|
+
R(t) || _(6), n !== void 0 && !R(n) && _(7);
|
|
389
383
|
let r;
|
|
390
|
-
if (
|
|
391
|
-
let i =
|
|
384
|
+
if (E(e)) {
|
|
385
|
+
let i = me(this), a = Pe(i, e, void 0), o = !0;
|
|
392
386
|
try {
|
|
393
387
|
r = t(a), o = !1;
|
|
394
388
|
} finally {
|
|
395
|
-
o ?
|
|
389
|
+
o ? fe(i) : pe(i);
|
|
396
390
|
}
|
|
397
|
-
return
|
|
398
|
-
} else if (!e || !
|
|
399
|
-
if (r = t(e), r === void 0 && (r = e), r ===
|
|
391
|
+
return de(i, n), ge(r, i);
|
|
392
|
+
} else if (!e || !L(e)) {
|
|
393
|
+
if (r = t(e), r === void 0 && (r = e), r === p && (r = void 0), this.autoFreeze_ && oe(r, !0), n) {
|
|
400
394
|
let t = [], i = [];
|
|
401
|
-
W
|
|
395
|
+
K(W).generateReplacementPatches_(e, r, {
|
|
402
396
|
patches_: t,
|
|
403
397
|
inversePatches_: i
|
|
404
398
|
}), n(t, i);
|
|
@@ -406,7 +400,7 @@ var Fe = class {
|
|
|
406
400
|
return r;
|
|
407
401
|
} else _(1, e);
|
|
408
402
|
}, this.produceWithPatches = (e, t) => {
|
|
409
|
-
if (
|
|
403
|
+
if (R(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
|
|
410
404
|
let n, r;
|
|
411
405
|
return [
|
|
412
406
|
this.produce(e, t, (e, t) => {
|
|
@@ -415,18 +409,18 @@ var Fe = class {
|
|
|
415
409
|
n,
|
|
416
410
|
r
|
|
417
411
|
];
|
|
418
|
-
},
|
|
412
|
+
}, re(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), re(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), re(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
419
413
|
}
|
|
420
414
|
createDraft(e) {
|
|
421
|
-
|
|
422
|
-
let t =
|
|
423
|
-
return n[
|
|
415
|
+
E(e) || _(8), T(e) && (e = Fe(e));
|
|
416
|
+
let t = me(this), n = Pe(t, e, void 0);
|
|
417
|
+
return n[h].isManual_ = !0, pe(t), n;
|
|
424
418
|
}
|
|
425
419
|
finishDraft(e, t) {
|
|
426
|
-
let n = e && e[
|
|
420
|
+
let n = e && e[h];
|
|
427
421
|
(!n || !n.isManual_) && _(9);
|
|
428
422
|
let { scope_: r } = n;
|
|
429
|
-
return
|
|
423
|
+
return de(r, t), ge(void 0, r);
|
|
430
424
|
}
|
|
431
425
|
setAutoFreeze(e) {
|
|
432
426
|
this.autoFreeze_ = e;
|
|
@@ -450,39 +444,39 @@ var Fe = class {
|
|
|
450
444
|
}
|
|
451
445
|
}
|
|
452
446
|
n > -1 && (t = t.slice(n + 1));
|
|
453
|
-
let r = W
|
|
454
|
-
return
|
|
447
|
+
let r = K(W).applyPatches_;
|
|
448
|
+
return T(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
|
|
455
449
|
}
|
|
456
450
|
};
|
|
457
|
-
function
|
|
458
|
-
let [i, a] =
|
|
459
|
-
return (n?.scope_ ??
|
|
451
|
+
function Pe(e, t, n, r) {
|
|
452
|
+
let [i, a] = F(t) ? K(U).proxyMap_(t, n) : I(t) ? K(U).proxySet_(t, n) : Te(t, n);
|
|
453
|
+
return (n?.scope_ ?? le()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? Se(n, a, r) : a.callbacks_.push(function(e) {
|
|
460
454
|
e.mapSetPlugin_?.fixSetContents(a);
|
|
461
455
|
let { patchPlugin_: t } = e;
|
|
462
456
|
a.modified_ && t && t.generatePatches_(a, [], e);
|
|
463
457
|
}), i;
|
|
464
458
|
}
|
|
465
|
-
function
|
|
466
|
-
return
|
|
459
|
+
function Fe(e) {
|
|
460
|
+
return T(e) || _(10, e), Ie(e);
|
|
467
461
|
}
|
|
468
|
-
function
|
|
469
|
-
if (!
|
|
470
|
-
let t = e[
|
|
462
|
+
function Ie(e) {
|
|
463
|
+
if (!E(e) || H(e)) return e;
|
|
464
|
+
let t = e[h], n, r = !0;
|
|
471
465
|
if (t) {
|
|
472
466
|
if (!t.modified_) return t.base_;
|
|
473
|
-
t.finalized_ = !0, n =
|
|
474
|
-
} else n =
|
|
475
|
-
return
|
|
476
|
-
|
|
467
|
+
t.finalized_ = !0, n = B(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
|
|
468
|
+
} else n = B(e, !0);
|
|
469
|
+
return k(n, (e, t) => {
|
|
470
|
+
N(n, e, Ie(t));
|
|
477
471
|
}, r), t && (t.finalized_ = !1), n;
|
|
478
472
|
}
|
|
479
|
-
var
|
|
473
|
+
var Le = new Ne().produce;
|
|
480
474
|
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__, typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
481
|
-
function
|
|
475
|
+
function Re(e, t) {
|
|
482
476
|
function n(...n) {
|
|
483
477
|
if (t) {
|
|
484
478
|
let r = t(...n);
|
|
485
|
-
if (!r) throw Error(process.env.NODE_ENV === "production" ?
|
|
479
|
+
if (!r) throw Error(process.env.NODE_ENV === "production" ? Z(0) : "prepareAction did not return an object");
|
|
486
480
|
return {
|
|
487
481
|
type: e,
|
|
488
482
|
payload: r.payload,
|
|
@@ -495,43 +489,43 @@ function Be(e, t) {
|
|
|
495
489
|
payload: n[0]
|
|
496
490
|
};
|
|
497
491
|
}
|
|
498
|
-
return n.toString = () => `${e}`, n.type = e, n.match = (t) =>
|
|
492
|
+
return n.toString = () => `${e}`, n.type = e, n.match = (t) => f(t) && t.type === e, n;
|
|
499
493
|
}
|
|
500
494
|
Array, Symbol.species;
|
|
501
|
-
function
|
|
502
|
-
return
|
|
495
|
+
function ze(e) {
|
|
496
|
+
return E(e) ? Le(e, () => {}) : e;
|
|
503
497
|
}
|
|
504
|
-
function
|
|
498
|
+
function Be(e, t, n) {
|
|
505
499
|
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
|
|
506
500
|
}
|
|
507
|
-
function
|
|
501
|
+
function Ve(e) {
|
|
508
502
|
let t = {}, n = [], r, i = {
|
|
509
503
|
addCase(e, a) {
|
|
510
504
|
if (process.env.NODE_ENV !== "production") {
|
|
511
|
-
if (n.length > 0) throw Error(process.env.NODE_ENV === "production" ?
|
|
512
|
-
if (r) throw Error(process.env.NODE_ENV === "production" ?
|
|
505
|
+
if (n.length > 0) throw Error(process.env.NODE_ENV === "production" ? Z(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
|
|
506
|
+
if (r) throw Error(process.env.NODE_ENV === "production" ? Z(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
|
|
513
507
|
}
|
|
514
508
|
let o = typeof e == "string" ? e : e.type;
|
|
515
|
-
if (!o) throw Error(process.env.NODE_ENV === "production" ?
|
|
516
|
-
if (o in t) throw Error(process.env.NODE_ENV === "production" ?
|
|
509
|
+
if (!o) throw Error(process.env.NODE_ENV === "production" ? Z(28) : "`builder.addCase` cannot be called with an empty action type");
|
|
510
|
+
if (o in t) throw Error(process.env.NODE_ENV === "production" ? Z(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${o}'`);
|
|
517
511
|
return t[o] = a, i;
|
|
518
512
|
},
|
|
519
513
|
addAsyncThunk(e, a) {
|
|
520
|
-
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ?
|
|
514
|
+
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? Z(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
|
|
521
515
|
return a.pending && (t[e.pending.type] = a.pending), a.rejected && (t[e.rejected.type] = a.rejected), a.fulfilled && (t[e.fulfilled.type] = a.fulfilled), a.settled && n.push({
|
|
522
516
|
matcher: e.settled,
|
|
523
517
|
reducer: a.settled
|
|
524
518
|
}), i;
|
|
525
519
|
},
|
|
526
520
|
addMatcher(e, t) {
|
|
527
|
-
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ?
|
|
521
|
+
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? Z(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
|
|
528
522
|
return n.push({
|
|
529
523
|
matcher: e,
|
|
530
524
|
reducer: t
|
|
531
525
|
}), i;
|
|
532
526
|
},
|
|
533
527
|
addDefaultCase(e) {
|
|
534
|
-
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ?
|
|
528
|
+
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? Z(31) : "`builder.addDefaultCase` can only be called once");
|
|
535
529
|
return r = e, i;
|
|
536
530
|
}
|
|
537
531
|
};
|
|
@@ -541,24 +535,24 @@ function Ue(e) {
|
|
|
541
535
|
r
|
|
542
536
|
];
|
|
543
537
|
}
|
|
544
|
-
function
|
|
538
|
+
function He(e) {
|
|
545
539
|
return typeof e == "function";
|
|
546
540
|
}
|
|
547
|
-
function
|
|
548
|
-
if (process.env.NODE_ENV !== "production" && typeof t == "object") throw Error(process.env.NODE_ENV === "production" ?
|
|
549
|
-
let [n, r, i] =
|
|
550
|
-
if (
|
|
541
|
+
function Ue(e, t) {
|
|
542
|
+
if (process.env.NODE_ENV !== "production" && typeof t == "object") throw Error(process.env.NODE_ENV === "production" ? Z(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
543
|
+
let [n, r, i] = Ve(t), a;
|
|
544
|
+
if (He(e)) a = () => ze(e());
|
|
551
545
|
else {
|
|
552
|
-
let t =
|
|
546
|
+
let t = ze(e);
|
|
553
547
|
a = () => t;
|
|
554
548
|
}
|
|
555
549
|
function o(e = a(), t) {
|
|
556
550
|
let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];
|
|
557
551
|
return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {
|
|
558
|
-
if (n) if (
|
|
552
|
+
if (n) if (T(e)) {
|
|
559
553
|
let r = n(e, t);
|
|
560
554
|
return r === void 0 ? e : r;
|
|
561
|
-
} else if (
|
|
555
|
+
} else if (E(e)) return Le(e, (e) => n(e, t));
|
|
562
556
|
else {
|
|
563
557
|
let r = n(e, t);
|
|
564
558
|
if (r === void 0) {
|
|
@@ -572,17 +566,17 @@ function Ge(e, t) {
|
|
|
572
566
|
}
|
|
573
567
|
return o.getInitialState = a, o;
|
|
574
568
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
569
|
+
var We = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
570
|
+
function Ge(e, t) {
|
|
577
571
|
return `${e}/${t}`;
|
|
578
572
|
}
|
|
579
|
-
function
|
|
580
|
-
let t = e?.asyncThunk?.[
|
|
573
|
+
function Ke({ creators: e } = {}) {
|
|
574
|
+
let t = e?.asyncThunk?.[We];
|
|
581
575
|
return function(e) {
|
|
582
576
|
let { name: n, reducerPath: r = n } = e;
|
|
583
|
-
if (!n) throw Error(process.env.NODE_ENV === "production" ?
|
|
577
|
+
if (!n) throw Error(process.env.NODE_ENV === "production" ? Z(11) : "`name` is a required option for createSlice");
|
|
584
578
|
typeof process < "u" && process.env.NODE_ENV === "development" && e.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
|
|
585
|
-
let i = (typeof e.reducers == "function" ? e.reducers(
|
|
579
|
+
let i = (typeof e.reducers == "function" ? e.reducers(Ye()) : e.reducers) || {}, a = Object.keys(i), o = {
|
|
586
580
|
sliceCaseReducersByName: {},
|
|
587
581
|
sliceCaseReducersByType: {},
|
|
588
582
|
actionCreators: {},
|
|
@@ -590,8 +584,8 @@ function Je({ creators: e } = {}) {
|
|
|
590
584
|
}, s = {
|
|
591
585
|
addCase(e, t) {
|
|
592
586
|
let n = typeof e == "string" ? e : e.type;
|
|
593
|
-
if (!n) throw Error(process.env.NODE_ENV === "production" ?
|
|
594
|
-
if (n in o.sliceCaseReducersByType) throw Error(process.env.NODE_ENV === "production" ?
|
|
587
|
+
if (!n) throw Error(process.env.NODE_ENV === "production" ? Z(12) : "`context.addCase` cannot be called with an empty action type");
|
|
588
|
+
if (n in o.sliceCaseReducersByType) throw Error(process.env.NODE_ENV === "production" ? Z(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + n);
|
|
595
589
|
return o.sliceCaseReducersByType[n] = t, s;
|
|
596
590
|
},
|
|
597
591
|
addMatcher(e, t) {
|
|
@@ -610,18 +604,18 @@ function Je({ creators: e } = {}) {
|
|
|
610
604
|
a.forEach((r) => {
|
|
611
605
|
let a = i[r], o = {
|
|
612
606
|
reducerName: r,
|
|
613
|
-
type:
|
|
607
|
+
type: Ge(n, r),
|
|
614
608
|
createNotation: typeof e.reducers == "function"
|
|
615
609
|
};
|
|
616
|
-
|
|
610
|
+
Ze(a) ? $e(o, a, s, t) : Xe(o, a, s);
|
|
617
611
|
});
|
|
618
612
|
function c() {
|
|
619
|
-
if (process.env.NODE_ENV !== "production" && typeof e.extraReducers == "object") throw Error(process.env.NODE_ENV === "production" ?
|
|
620
|
-
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ?
|
|
613
|
+
if (process.env.NODE_ENV !== "production" && typeof e.extraReducers == "object") throw Error(process.env.NODE_ENV === "production" ? Z(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
614
|
+
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? Ve(e.extraReducers) : [e.extraReducers], i = {
|
|
621
615
|
...t,
|
|
622
616
|
...o.sliceCaseReducersByType
|
|
623
617
|
};
|
|
624
|
-
return
|
|
618
|
+
return Ue(e.initialState, (e) => {
|
|
625
619
|
for (let t in i) e.addCase(t, i[t]);
|
|
626
620
|
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
|
|
627
621
|
for (let t of n) e.addMatcher(t.matcher, t.reducer);
|
|
@@ -639,15 +633,15 @@ function Je({ creators: e } = {}) {
|
|
|
639
633
|
function r(e) {
|
|
640
634
|
let i = e[t];
|
|
641
635
|
if (i === void 0) {
|
|
642
|
-
if (n) i =
|
|
643
|
-
else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ?
|
|
636
|
+
if (n) i = Be(d, r, m);
|
|
637
|
+
else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? Z(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
644
638
|
}
|
|
645
639
|
return i;
|
|
646
640
|
}
|
|
647
641
|
function i(t = l) {
|
|
648
|
-
return
|
|
642
|
+
return Be(Be(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
|
|
649
643
|
let r = {};
|
|
650
|
-
for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] =
|
|
644
|
+
for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = qe(a, t, () => Be(d, t, m), n);
|
|
651
645
|
return r;
|
|
652
646
|
});
|
|
653
647
|
}
|
|
@@ -681,19 +675,19 @@ function Je({ creators: e } = {}) {
|
|
|
681
675
|
return g;
|
|
682
676
|
};
|
|
683
677
|
}
|
|
684
|
-
function
|
|
678
|
+
function qe(e, t, n, r) {
|
|
685
679
|
function i(i, ...a) {
|
|
686
680
|
let o = t(i);
|
|
687
681
|
if (o === void 0) {
|
|
688
682
|
if (r) o = n();
|
|
689
|
-
else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ?
|
|
683
|
+
else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? Z(16) : "selectState returned undefined for an uninjected slice reducer");
|
|
690
684
|
}
|
|
691
685
|
return e(o, ...a);
|
|
692
686
|
}
|
|
693
687
|
return i.unwrapped = e, i;
|
|
694
688
|
}
|
|
695
|
-
var
|
|
696
|
-
function
|
|
689
|
+
var Je = /* @__PURE__ */ Ke();
|
|
690
|
+
function Ye() {
|
|
697
691
|
function e(e, t) {
|
|
698
692
|
return {
|
|
699
693
|
_reducerDefinitionType: "asyncThunk",
|
|
@@ -717,51 +711,51 @@ function Ze() {
|
|
|
717
711
|
asyncThunk: e
|
|
718
712
|
};
|
|
719
713
|
}
|
|
720
|
-
function
|
|
714
|
+
function Xe({ type: e, reducerName: t, createNotation: n }, r, i) {
|
|
721
715
|
let a, o;
|
|
722
716
|
if ("reducer" in r) {
|
|
723
|
-
if (n && !
|
|
717
|
+
if (n && !Qe(r)) throw Error(process.env.NODE_ENV === "production" ? Z(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
|
|
724
718
|
a = r.reducer, o = r.prepare;
|
|
725
719
|
} else a = r;
|
|
726
|
-
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ?
|
|
720
|
+
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? Re(e, o) : Re(e));
|
|
727
721
|
}
|
|
728
|
-
function
|
|
722
|
+
function Ze(e) {
|
|
729
723
|
return e._reducerDefinitionType === "asyncThunk";
|
|
730
724
|
}
|
|
731
|
-
function
|
|
725
|
+
function Qe(e) {
|
|
732
726
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
733
727
|
}
|
|
734
|
-
function
|
|
735
|
-
if (!i) throw Error(process.env.NODE_ENV === "production" ?
|
|
728
|
+
function $e({ type: e, reducerName: t }, n, r, i) {
|
|
729
|
+
if (!i) throw Error(process.env.NODE_ENV === "production" ? Z(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
|
|
736
730
|
let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
|
|
737
731
|
r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
|
|
738
|
-
fulfilled: o ||
|
|
739
|
-
pending: s ||
|
|
740
|
-
rejected: c ||
|
|
741
|
-
settled: l ||
|
|
732
|
+
fulfilled: o || et,
|
|
733
|
+
pending: s || et,
|
|
734
|
+
rejected: c || et,
|
|
735
|
+
settled: l || et
|
|
742
736
|
});
|
|
743
737
|
}
|
|
744
|
-
function
|
|
745
|
-
var
|
|
746
|
-
`${
|
|
747
|
-
var { assign:
|
|
748
|
-
`${
|
|
749
|
-
var
|
|
750
|
-
function
|
|
738
|
+
function et() {}
|
|
739
|
+
var tt = "listener", nt = "completed", rt = "cancelled";
|
|
740
|
+
`${rt}`, `${nt}`, `${tt}${rt}`, `${tt}${nt}`;
|
|
741
|
+
var { assign: it } = Object, at = "listenerMiddleware", ot = /* @__PURE__ */ it(/* @__PURE__ */ Re(`${at}/add`), { withTypes: () => ot });
|
|
742
|
+
`${at}`;
|
|
743
|
+
var st = /* @__PURE__ */ it(/* @__PURE__ */ Re(`${at}/remove`), { withTypes: () => st });
|
|
744
|
+
function Z(e) {
|
|
751
745
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
752
746
|
}
|
|
753
747
|
//#endregion
|
|
754
748
|
//#region src/auth/authSlice.ts
|
|
755
|
-
var
|
|
749
|
+
var ct = () => {
|
|
756
750
|
let e = localStorage.getItem(l.AuthCheckStorageItemName) === "true", t = localStorage.getItem(l.LoggedInUserStorageItemName), n = localStorage.getItem(l.SettingStorageItemName);
|
|
757
751
|
return {
|
|
758
752
|
isAuthenticated: e,
|
|
759
753
|
loggedInUser: t ? JSON.parse(t) : void 0,
|
|
760
754
|
setting: n ? JSON.parse(n) : void 0
|
|
761
755
|
};
|
|
762
|
-
},
|
|
756
|
+
}, lt = () => Je({
|
|
763
757
|
name: "auth",
|
|
764
|
-
initialState:
|
|
758
|
+
initialState: ct(),
|
|
765
759
|
reducers: {
|
|
766
760
|
login: (e, t) => {
|
|
767
761
|
e.isAuthenticated = !0, localStorage.setItem(l.AuthCheckStorageItemName, "true"), t.payload && (e.loggedInUser = t.payload.user, localStorage.setItem(l.LoggedInUserStorageItemName, JSON.stringify(t.payload.user)), e.setting = t.payload.setting, localStorage.setItem(l.SettingStorageItemName, JSON.stringify(t.payload.setting)));
|
|
@@ -789,7 +783,7 @@ var ut = () => {
|
|
|
789
783
|
e.setting = n ? JSON.parse(n) : void 0;
|
|
790
784
|
}
|
|
791
785
|
}
|
|
792
|
-
}),
|
|
786
|
+
}), ut = class e {
|
|
793
787
|
static Format(e, t) {
|
|
794
788
|
return `${e}:${t}`;
|
|
795
789
|
}
|
|
@@ -810,32 +804,32 @@ var ut = () => {
|
|
|
810
804
|
let [t] = e[0].split(":");
|
|
811
805
|
return `/${t.toLowerCase()}`;
|
|
812
806
|
}
|
|
813
|
-
},
|
|
807
|
+
}, dt = class {
|
|
814
808
|
id;
|
|
815
|
-
},
|
|
809
|
+
}, ft = class extends dt {
|
|
816
810
|
name;
|
|
817
811
|
countryId;
|
|
818
812
|
country;
|
|
819
813
|
constructor(e) {
|
|
820
814
|
super(), Object.assign(this, e);
|
|
821
815
|
}
|
|
822
|
-
},
|
|
816
|
+
}, pt = class {
|
|
823
817
|
static columnsNames = [{
|
|
824
818
|
label: "اسم المدينة",
|
|
825
819
|
value: "Name"
|
|
826
820
|
}];
|
|
827
|
-
},
|
|
821
|
+
}, mt = class extends dt {
|
|
828
822
|
name;
|
|
829
823
|
code;
|
|
830
824
|
constructor(e) {
|
|
831
825
|
super(), Object.assign(this, e);
|
|
832
826
|
}
|
|
833
|
-
},
|
|
827
|
+
}, ht = class {
|
|
834
828
|
static columnsNames = [{
|
|
835
829
|
label: "اسم الدولة",
|
|
836
830
|
value: "Name"
|
|
837
831
|
}];
|
|
838
|
-
},
|
|
832
|
+
}, gt = class extends dt {
|
|
839
833
|
name;
|
|
840
834
|
code;
|
|
841
835
|
isFeminine;
|
|
@@ -846,33 +840,33 @@ var ut = () => {
|
|
|
846
840
|
constructor(e) {
|
|
847
841
|
super(), Object.assign(this, e);
|
|
848
842
|
}
|
|
849
|
-
},
|
|
843
|
+
}, _t = class {
|
|
850
844
|
value;
|
|
851
845
|
columnName;
|
|
852
846
|
constructor(e) {
|
|
853
847
|
Object.assign(this, e);
|
|
854
848
|
}
|
|
855
|
-
},
|
|
849
|
+
}, vt = class {
|
|
856
850
|
companyEmail;
|
|
857
851
|
username;
|
|
858
852
|
password;
|
|
859
853
|
constructor(e) {
|
|
860
854
|
Object.assign(this, e);
|
|
861
855
|
}
|
|
862
|
-
},
|
|
856
|
+
}, yt = class {
|
|
863
857
|
url = null;
|
|
864
858
|
base64File = null;
|
|
865
859
|
extension = null;
|
|
866
860
|
contentType = null;
|
|
867
|
-
status =
|
|
861
|
+
status = bt.Unchanged;
|
|
868
862
|
constructor(e) {
|
|
869
863
|
Object.assign(this, e);
|
|
870
864
|
}
|
|
871
|
-
},
|
|
865
|
+
}, bt = {
|
|
872
866
|
Unchanged: 0,
|
|
873
867
|
New: 1,
|
|
874
868
|
Delete: 2
|
|
875
|
-
},
|
|
869
|
+
}, xt = class {
|
|
876
870
|
static _baseUrl = "";
|
|
877
871
|
static get baseUrl() {
|
|
878
872
|
return this._baseUrl || console.warn("YusrCore: baseUrl has not been initialized. Defaults to empty string."), this._baseUrl;
|
|
@@ -880,7 +874,7 @@ var ut = () => {
|
|
|
880
874
|
static initialize(e) {
|
|
881
875
|
this._baseUrl = e;
|
|
882
876
|
}
|
|
883
|
-
},
|
|
877
|
+
}, St = /* @__PURE__ */ o(((e) => {
|
|
884
878
|
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.iterator;
|
|
885
879
|
function m(e) {
|
|
886
880
|
return typeof e != "object" || !e ? null : (e = p && e[p] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
@@ -892,24 +886,24 @@ var ut = () => {
|
|
|
892
886
|
enqueueForceUpdate: function() {},
|
|
893
887
|
enqueueReplaceState: function() {},
|
|
894
888
|
enqueueSetState: function() {}
|
|
895
|
-
}, g = Object.assign,
|
|
896
|
-
function
|
|
897
|
-
this.props = e, this.context = t, this.refs =
|
|
889
|
+
}, g = Object.assign, _ = {};
|
|
890
|
+
function v(e, t, n) {
|
|
891
|
+
this.props = e, this.context = t, this.refs = _, this.updater = n || h;
|
|
898
892
|
}
|
|
899
|
-
|
|
893
|
+
v.prototype.isReactComponent = {}, v.prototype.setState = function(e, t) {
|
|
900
894
|
if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
901
895
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
902
|
-
},
|
|
896
|
+
}, v.prototype.forceUpdate = function(e) {
|
|
903
897
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
904
898
|
};
|
|
905
|
-
function
|
|
906
|
-
|
|
907
|
-
function
|
|
908
|
-
this.props = e, this.context = t, this.refs =
|
|
909
|
-
}
|
|
910
|
-
var
|
|
911
|
-
|
|
912
|
-
var
|
|
899
|
+
function y() {}
|
|
900
|
+
y.prototype = v.prototype;
|
|
901
|
+
function b(e, t, n) {
|
|
902
|
+
this.props = e, this.context = t, this.refs = _, this.updater = n || h;
|
|
903
|
+
}
|
|
904
|
+
var x = b.prototype = new y();
|
|
905
|
+
x.constructor = b, g(x, v.prototype), x.isPureReactComponent = !0;
|
|
906
|
+
var ee = Array.isArray;
|
|
913
907
|
function S() {}
|
|
914
908
|
var C = {
|
|
915
909
|
H: null,
|
|
@@ -980,12 +974,12 @@ var ut = () => {
|
|
|
980
974
|
case d: return c = e._init, j(c(e._payload), r, i, a, o);
|
|
981
975
|
}
|
|
982
976
|
}
|
|
983
|
-
if (c) return o = o(e), c = a === "" ? "." + k(e, 0) : a,
|
|
977
|
+
if (c) return o = o(e), c = a === "" ? "." + k(e, 0) : a, ee(o) ? (i = "", c != null && (i = c.replace(O, "$&/") + "/"), j(o, r, i, "", function(e) {
|
|
984
978
|
return e;
|
|
985
979
|
})) : o != null && (D(o) && (o = E(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(O, "$&/") + "/") + c)), r.push(o)), 1;
|
|
986
980
|
c = 0;
|
|
987
981
|
var l = a === "" ? "." : a + ":";
|
|
988
|
-
if (
|
|
982
|
+
if (ee(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + k(a, u), c += j(a, r, i, s, o);
|
|
989
983
|
else if (u = m(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + k(a, u++), c += j(a, r, i, s, o);
|
|
990
984
|
else if (s === "object") {
|
|
991
985
|
if (typeof e.then == "function") return j(A(e), r, i, a, o);
|
|
@@ -1012,7 +1006,7 @@ var ut = () => {
|
|
|
1012
1006
|
if (e._status === 1) return e._result.default;
|
|
1013
1007
|
throw e._result;
|
|
1014
1008
|
}
|
|
1015
|
-
var
|
|
1009
|
+
var ne = typeof reportError == "function" ? reportError : function(e) {
|
|
1016
1010
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1017
1011
|
var t = new window.ErrorEvent("error", {
|
|
1018
1012
|
bubbles: !0,
|
|
@@ -1026,7 +1020,7 @@ var ut = () => {
|
|
|
1026
1020
|
return;
|
|
1027
1021
|
}
|
|
1028
1022
|
console.error(e);
|
|
1029
|
-
},
|
|
1023
|
+
}, P = {
|
|
1030
1024
|
map: M,
|
|
1031
1025
|
forEach: function(e, t, n) {
|
|
1032
1026
|
M(e, function() {
|
|
@@ -1049,7 +1043,7 @@ var ut = () => {
|
|
|
1049
1043
|
return e;
|
|
1050
1044
|
}
|
|
1051
1045
|
};
|
|
1052
|
-
e.Activity = f, e.Children =
|
|
1046
|
+
e.Activity = f, e.Children = P, e.Component = v, e.Fragment = r, e.Profiler = a, e.PureComponent = b, e.StrictMode = i, e.Suspense = l, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = C, e.__COMPILER_RUNTIME = {
|
|
1053
1047
|
__proto__: null,
|
|
1054
1048
|
c: function(e) {
|
|
1055
1049
|
return C.H.useMemoCache(e);
|
|
@@ -1121,9 +1115,9 @@ var ut = () => {
|
|
|
1121
1115
|
C.T = n;
|
|
1122
1116
|
try {
|
|
1123
1117
|
var r = e(), i = C.S;
|
|
1124
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(S,
|
|
1118
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(S, ne);
|
|
1125
1119
|
} catch (e) {
|
|
1126
|
-
|
|
1120
|
+
ne(e);
|
|
1127
1121
|
} finally {
|
|
1128
1122
|
t !== null && n.types !== null && (t.types = n.types), C.T = t;
|
|
1129
1123
|
}
|
|
@@ -1166,7 +1160,7 @@ var ut = () => {
|
|
|
1166
1160
|
}, e.useTransition = function() {
|
|
1167
1161
|
return C.H.useTransition();
|
|
1168
1162
|
}, e.version = "19.2.4";
|
|
1169
|
-
})),
|
|
1163
|
+
})), Ct = /* @__PURE__ */ o(((e, t) => {
|
|
1170
1164
|
process.env.NODE_ENV !== "production" && (function() {
|
|
1171
1165
|
function n(e, t) {
|
|
1172
1166
|
Object.defineProperty(a.prototype, e, { get: function() {
|
|
@@ -1174,19 +1168,19 @@ var ut = () => {
|
|
|
1174
1168
|
} });
|
|
1175
1169
|
}
|
|
1176
1170
|
function r(e) {
|
|
1177
|
-
return typeof e != "object" || !e ? null : (e =
|
|
1171
|
+
return typeof e != "object" || !e ? null : (e = se && e[se] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1178
1172
|
}
|
|
1179
1173
|
function i(e, t) {
|
|
1180
1174
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
1181
1175
|
var n = e + "." + t;
|
|
1182
|
-
|
|
1176
|
+
V[n] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, e), V[n] = !0);
|
|
1183
1177
|
}
|
|
1184
1178
|
function a(e, t, n) {
|
|
1185
|
-
this.props = e, this.context = t, this.refs =
|
|
1179
|
+
this.props = e, this.context = t, this.refs = W, this.updater = n || H;
|
|
1186
1180
|
}
|
|
1187
1181
|
function o() {}
|
|
1188
1182
|
function s(e, t, n) {
|
|
1189
|
-
this.props = e, this.context = t, this.refs =
|
|
1183
|
+
this.props = e, this.context = t, this.refs = W, this.updater = n || H;
|
|
1190
1184
|
}
|
|
1191
1185
|
function c() {}
|
|
1192
1186
|
function l(e) {
|
|
@@ -1207,25 +1201,25 @@ var ut = () => {
|
|
|
1207
1201
|
}
|
|
1208
1202
|
function d(e) {
|
|
1209
1203
|
if (e == null) return null;
|
|
1210
|
-
if (typeof e == "function") return e.$$typeof ===
|
|
1204
|
+
if (typeof e == "function") return e.$$typeof === K ? null : e.displayName || e.name || null;
|
|
1211
1205
|
if (typeof e == "string") return e;
|
|
1212
1206
|
switch (e) {
|
|
1213
|
-
case
|
|
1214
|
-
case
|
|
1207
|
+
case P: return "Fragment";
|
|
1208
|
+
case I: return "Profiler";
|
|
1215
1209
|
case F: return "StrictMode";
|
|
1216
|
-
case
|
|
1217
|
-
case
|
|
1218
|
-
case
|
|
1210
|
+
case ie: return "Suspense";
|
|
1211
|
+
case z: return "SuspenseList";
|
|
1212
|
+
case oe: return "Activity";
|
|
1219
1213
|
}
|
|
1220
1214
|
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
1221
|
-
case
|
|
1222
|
-
case
|
|
1223
|
-
case
|
|
1224
|
-
case
|
|
1215
|
+
case ne: return "Portal";
|
|
1216
|
+
case R: return e.displayName || "Context";
|
|
1217
|
+
case L: return (e._context.displayName || "Context") + ".Consumer";
|
|
1218
|
+
case re:
|
|
1225
1219
|
var t = e.render;
|
|
1226
1220
|
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
1227
|
-
case
|
|
1228
|
-
case
|
|
1221
|
+
case ae: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
|
|
1222
|
+
case B:
|
|
1229
1223
|
t = e._payload, e = e._init;
|
|
1230
1224
|
try {
|
|
1231
1225
|
return d(e(t));
|
|
@@ -1234,8 +1228,8 @@ var ut = () => {
|
|
|
1234
1228
|
return null;
|
|
1235
1229
|
}
|
|
1236
1230
|
function f(e) {
|
|
1237
|
-
if (e ===
|
|
1238
|
-
if (typeof e == "object" && e && e.$$typeof ===
|
|
1231
|
+
if (e === P) return "<>";
|
|
1232
|
+
if (typeof e == "object" && e && e.$$typeof === B) return "<...>";
|
|
1239
1233
|
try {
|
|
1240
1234
|
var t = d(e);
|
|
1241
1235
|
return t ? "<" + t + ">" : "<...>";
|
|
@@ -1244,14 +1238,14 @@ var ut = () => {
|
|
|
1244
1238
|
}
|
|
1245
1239
|
}
|
|
1246
1240
|
function p() {
|
|
1247
|
-
var e =
|
|
1241
|
+
var e = q.A;
|
|
1248
1242
|
return e === null ? null : e.getOwner();
|
|
1249
1243
|
}
|
|
1250
1244
|
function m() {
|
|
1251
1245
|
return Error("react-stack-top-frame");
|
|
1252
1246
|
}
|
|
1253
1247
|
function h(e) {
|
|
1254
|
-
if (
|
|
1248
|
+
if (J.call(e, "key")) {
|
|
1255
1249
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1256
1250
|
if (t && t.isReactWarning) return !1;
|
|
1257
1251
|
}
|
|
@@ -1259,18 +1253,18 @@ var ut = () => {
|
|
|
1259
1253
|
}
|
|
1260
1254
|
function g(e, t) {
|
|
1261
1255
|
function n() {
|
|
1262
|
-
|
|
1256
|
+
ue || (ue = !0, console.error("%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://react.dev/link/special-props)", t));
|
|
1263
1257
|
}
|
|
1264
1258
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
1265
1259
|
get: n,
|
|
1266
1260
|
configurable: !0
|
|
1267
1261
|
});
|
|
1268
1262
|
}
|
|
1269
|
-
function
|
|
1263
|
+
function _() {
|
|
1270
1264
|
var e = d(this.type);
|
|
1271
|
-
return
|
|
1265
|
+
return fe[e] || (fe[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
1272
1266
|
}
|
|
1273
|
-
function
|
|
1267
|
+
function v(e, t, n, r, i, a) {
|
|
1274
1268
|
var o = n.ref;
|
|
1275
1269
|
return e = {
|
|
1276
1270
|
$$typeof: N,
|
|
@@ -1283,7 +1277,7 @@ var ut = () => {
|
|
|
1283
1277
|
value: null
|
|
1284
1278
|
}) : Object.defineProperty(e, "ref", {
|
|
1285
1279
|
enumerable: !1,
|
|
1286
|
-
get:
|
|
1280
|
+
get: _
|
|
1287
1281
|
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
1288
1282
|
configurable: !1,
|
|
1289
1283
|
enumerable: !1,
|
|
@@ -1306,16 +1300,16 @@ var ut = () => {
|
|
|
1306
1300
|
value: a
|
|
1307
1301
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
1308
1302
|
}
|
|
1309
|
-
function
|
|
1310
|
-
return t =
|
|
1311
|
-
}
|
|
1312
|
-
function y(e) {
|
|
1313
|
-
b(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === z && (e._payload.status === "fulfilled" ? b(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
1303
|
+
function y(e, t) {
|
|
1304
|
+
return t = v(e.type, t, e.props, e._owner, e._debugStack, e._debugTask), e._store && (t._store.validated = e._store.validated), t;
|
|
1314
1305
|
}
|
|
1315
1306
|
function b(e) {
|
|
1316
|
-
|
|
1307
|
+
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === B && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
1317
1308
|
}
|
|
1318
1309
|
function x(e) {
|
|
1310
|
+
return typeof e == "object" && !!e && e.$$typeof === N;
|
|
1311
|
+
}
|
|
1312
|
+
function ee(e) {
|
|
1319
1313
|
var t = {
|
|
1320
1314
|
"=": "=0",
|
|
1321
1315
|
":": "=2"
|
|
@@ -1325,7 +1319,7 @@ var ut = () => {
|
|
|
1325
1319
|
});
|
|
1326
1320
|
}
|
|
1327
1321
|
function S(e, t) {
|
|
1328
|
-
return typeof e == "object" && e && e.key != null ? (u(e.key),
|
|
1322
|
+
return typeof e == "object" && e && e.key != null ? (u(e.key), ee("" + e.key)) : t.toString(36);
|
|
1329
1323
|
}
|
|
1330
1324
|
function C(e) {
|
|
1331
1325
|
switch (e.status) {
|
|
@@ -1355,21 +1349,21 @@ var ut = () => {
|
|
|
1355
1349
|
break;
|
|
1356
1350
|
case "object": switch (e.$$typeof) {
|
|
1357
1351
|
case N:
|
|
1358
|
-
case
|
|
1352
|
+
case ne:
|
|
1359
1353
|
s = !0;
|
|
1360
1354
|
break;
|
|
1361
|
-
case
|
|
1355
|
+
case B: return s = e._init, w(s(e._payload), t, n, i, a);
|
|
1362
1356
|
}
|
|
1363
1357
|
}
|
|
1364
1358
|
if (s) {
|
|
1365
1359
|
s = e, a = a(s);
|
|
1366
1360
|
var c = i === "" ? "." + S(s, 0) : i;
|
|
1367
|
-
return
|
|
1361
|
+
return ce(a) ? (n = "", c != null && (n = c.replace(ge, "$&/") + "/"), w(a, t, n, "", function(e) {
|
|
1368
1362
|
return e;
|
|
1369
|
-
})) : a != null && (
|
|
1363
|
+
})) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(ge, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
|
|
1370
1364
|
}
|
|
1371
|
-
if (s = 0, c = i === "" ? "." : i + ":",
|
|
1372
|
-
else if (l = r(e), typeof l == "function") for (l === e.entries && (
|
|
1365
|
+
if (s = 0, c = i === "" ? "." : i + ":", ce(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + S(i, l), s += w(i, t, n, o, a);
|
|
1366
|
+
else if (l = r(e), typeof l == "function") for (l === e.entries && (he || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), he = !0), e = l.call(e), l = 0; !(i = e.next()).done;) i = i.value, o = c + S(i, l++), s += w(i, t, n, o, a);
|
|
1373
1367
|
else if (o === "object") {
|
|
1374
1368
|
if (typeof e.then == "function") return w(C(e), t, n, i, a);
|
|
1375
1369
|
throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
|
|
@@ -1411,56 +1405,56 @@ var ut = () => {
|
|
|
1411
1405
|
throw e._result;
|
|
1412
1406
|
}
|
|
1413
1407
|
function D() {
|
|
1414
|
-
var e =
|
|
1408
|
+
var e = q.H;
|
|
1415
1409
|
return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
|
|
1416
1410
|
}
|
|
1417
1411
|
function te() {
|
|
1418
|
-
|
|
1412
|
+
q.asyncTransitions--;
|
|
1419
1413
|
}
|
|
1420
1414
|
function O(e) {
|
|
1421
|
-
if (
|
|
1415
|
+
if (ye === null) try {
|
|
1422
1416
|
var n = ("require" + Math.random()).slice(0, 7);
|
|
1423
|
-
|
|
1417
|
+
ye = (t && t[n]).call(t, "timers").setImmediate;
|
|
1424
1418
|
} catch {
|
|
1425
|
-
|
|
1426
|
-
!1 ===
|
|
1419
|
+
ye = function(e) {
|
|
1420
|
+
!1 === ve && (ve = !0, typeof MessageChannel > "u" && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
1427
1421
|
var t = new MessageChannel();
|
|
1428
1422
|
t.port1.onmessage = e, t.port2.postMessage(void 0);
|
|
1429
1423
|
};
|
|
1430
1424
|
}
|
|
1431
|
-
return
|
|
1425
|
+
return ye(e);
|
|
1432
1426
|
}
|
|
1433
1427
|
function k(e) {
|
|
1434
1428
|
return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
|
|
1435
1429
|
}
|
|
1436
1430
|
function A(e, t) {
|
|
1437
|
-
t !==
|
|
1431
|
+
t !== Y - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Y = t;
|
|
1438
1432
|
}
|
|
1439
1433
|
function j(e, t, n) {
|
|
1440
|
-
var r =
|
|
1434
|
+
var r = q.actQueue;
|
|
1441
1435
|
if (r !== null) if (r.length !== 0) try {
|
|
1442
1436
|
M(r), O(function() {
|
|
1443
1437
|
return j(e, t, n);
|
|
1444
1438
|
});
|
|
1445
1439
|
return;
|
|
1446
1440
|
} catch (e) {
|
|
1447
|
-
|
|
1441
|
+
q.thrownErrors.push(e);
|
|
1448
1442
|
}
|
|
1449
|
-
else
|
|
1450
|
-
0 <
|
|
1443
|
+
else q.actQueue = null;
|
|
1444
|
+
0 < q.thrownErrors.length ? (r = k(q.thrownErrors), q.thrownErrors.length = 0, n(r)) : t(e);
|
|
1451
1445
|
}
|
|
1452
1446
|
function M(e) {
|
|
1453
|
-
if (!
|
|
1454
|
-
|
|
1447
|
+
if (!xe) {
|
|
1448
|
+
xe = !0;
|
|
1455
1449
|
var t = 0;
|
|
1456
1450
|
try {
|
|
1457
1451
|
for (; t < e.length; t++) {
|
|
1458
1452
|
var n = e[t];
|
|
1459
1453
|
do {
|
|
1460
|
-
|
|
1454
|
+
q.didUsePromise = !1;
|
|
1461
1455
|
var r = n(!1);
|
|
1462
1456
|
if (r !== null) {
|
|
1463
|
-
if (
|
|
1457
|
+
if (q.didUsePromise) {
|
|
1464
1458
|
e[t] = n, e.splice(0, t);
|
|
1465
1459
|
return;
|
|
1466
1460
|
}
|
|
@@ -1470,14 +1464,14 @@ var ut = () => {
|
|
|
1470
1464
|
}
|
|
1471
1465
|
e.length = 0;
|
|
1472
1466
|
} catch (n) {
|
|
1473
|
-
e.splice(0, t + 1),
|
|
1467
|
+
e.splice(0, t + 1), q.thrownErrors.push(n);
|
|
1474
1468
|
} finally {
|
|
1475
|
-
|
|
1469
|
+
xe = !1;
|
|
1476
1470
|
}
|
|
1477
1471
|
}
|
|
1478
1472
|
}
|
|
1479
1473
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1480
|
-
var N = Symbol.for("react.transitional.element"),
|
|
1474
|
+
var N = Symbol.for("react.transitional.element"), ne = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), R = Symbol.for("react.context"), re = Symbol.for("react.forward_ref"), ie = Symbol.for("react.suspense"), z = Symbol.for("react.suspense_list"), ae = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), oe = Symbol.for("react.activity"), se = Symbol.iterator, V = {}, H = {
|
|
1481
1475
|
isMounted: function() {
|
|
1482
1476
|
return !1;
|
|
1483
1477
|
},
|
|
@@ -1490,20 +1484,20 @@ var ut = () => {
|
|
|
1490
1484
|
enqueueSetState: function(e) {
|
|
1491
1485
|
i(e, "setState");
|
|
1492
1486
|
}
|
|
1493
|
-
},
|
|
1494
|
-
Object.freeze(
|
|
1487
|
+
}, U = Object.assign, W = {};
|
|
1488
|
+
Object.freeze(W), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
|
|
1495
1489
|
if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
1496
1490
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
1497
1491
|
}, a.prototype.forceUpdate = function(e) {
|
|
1498
1492
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1499
1493
|
};
|
|
1500
|
-
var
|
|
1494
|
+
var G = {
|
|
1501
1495
|
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
1502
1496
|
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
1503
1497
|
};
|
|
1504
|
-
for (
|
|
1505
|
-
o.prototype = a.prototype,
|
|
1506
|
-
var
|
|
1498
|
+
for (X in G) G.hasOwnProperty(X) && n(X, G[X]);
|
|
1499
|
+
o.prototype = a.prototype, G = s.prototype = new o(), G.constructor = s, U(G, a.prototype), G.isPureReactComponent = !0;
|
|
1500
|
+
var ce = Array.isArray, K = Symbol.for("react.client.reference"), q = {
|
|
1507
1501
|
H: null,
|
|
1508
1502
|
A: null,
|
|
1509
1503
|
T: null,
|
|
@@ -1516,13 +1510,13 @@ var ut = () => {
|
|
|
1516
1510
|
thrownErrors: [],
|
|
1517
1511
|
getCurrentStack: null,
|
|
1518
1512
|
recentlyCreatedOwnerStacks: 0
|
|
1519
|
-
},
|
|
1513
|
+
}, J = Object.prototype.hasOwnProperty, le = console.createTask ? console.createTask : function() {
|
|
1520
1514
|
return null;
|
|
1521
1515
|
};
|
|
1522
|
-
|
|
1516
|
+
G = { react_stack_bottom_frame: function(e) {
|
|
1523
1517
|
return e();
|
|
1524
1518
|
} };
|
|
1525
|
-
var
|
|
1519
|
+
var ue, de, fe = {}, pe = G.react_stack_bottom_frame.bind(G, m)(), me = le(f(m)), he = !1, ge = /\/+/g, _e = typeof reportError == "function" ? reportError : function(e) {
|
|
1526
1520
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1527
1521
|
var t = new window.ErrorEvent("error", {
|
|
1528
1522
|
bubbles: !0,
|
|
@@ -1536,18 +1530,18 @@ var ut = () => {
|
|
|
1536
1530
|
return;
|
|
1537
1531
|
}
|
|
1538
1532
|
console.error(e);
|
|
1539
|
-
},
|
|
1533
|
+
}, ve = !1, ye = null, Y = 0, be = !1, xe = !1, Se = typeof queueMicrotask == "function" ? function(e) {
|
|
1540
1534
|
queueMicrotask(function() {
|
|
1541
1535
|
return queueMicrotask(e);
|
|
1542
1536
|
});
|
|
1543
1537
|
} : O;
|
|
1544
|
-
|
|
1538
|
+
G = Object.freeze({
|
|
1545
1539
|
__proto__: null,
|
|
1546
1540
|
c: function(e) {
|
|
1547
1541
|
return D().useMemoCache(e);
|
|
1548
1542
|
}
|
|
1549
1543
|
});
|
|
1550
|
-
var
|
|
1544
|
+
var X = {
|
|
1551
1545
|
map: T,
|
|
1552
1546
|
forEach: function(e, t, n) {
|
|
1553
1547
|
T(e, function() {
|
|
@@ -1566,24 +1560,24 @@ var ut = () => {
|
|
|
1566
1560
|
}) || [];
|
|
1567
1561
|
},
|
|
1568
1562
|
only: function(e) {
|
|
1569
|
-
if (!
|
|
1563
|
+
if (!x(e)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
1570
1564
|
return e;
|
|
1571
1565
|
}
|
|
1572
1566
|
};
|
|
1573
|
-
e.Activity =
|
|
1574
|
-
var t =
|
|
1575
|
-
|
|
1576
|
-
var r =
|
|
1567
|
+
e.Activity = oe, e.Children = X, e.Component = a, e.Fragment = P, e.Profiler = I, e.PureComponent = s, e.StrictMode = F, e.Suspense = ie, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = q, e.__COMPILER_RUNTIME = G, e.act = function(e) {
|
|
1568
|
+
var t = q.actQueue, n = Y;
|
|
1569
|
+
Y++;
|
|
1570
|
+
var r = q.actQueue = t === null ? [] : t, i = !1;
|
|
1577
1571
|
try {
|
|
1578
1572
|
var a = e();
|
|
1579
1573
|
} catch (e) {
|
|
1580
|
-
|
|
1574
|
+
q.thrownErrors.push(e);
|
|
1581
1575
|
}
|
|
1582
|
-
if (0 <
|
|
1576
|
+
if (0 < q.thrownErrors.length) throw A(t, n), e = k(q.thrownErrors), q.thrownErrors.length = 0, e;
|
|
1583
1577
|
if (typeof a == "object" && a && typeof a.then == "function") {
|
|
1584
1578
|
var o = a;
|
|
1585
|
-
return
|
|
1586
|
-
i ||
|
|
1579
|
+
return Se(function() {
|
|
1580
|
+
i || be || (be = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
1587
1581
|
}), { then: function(e, a) {
|
|
1588
1582
|
i = !0, o.then(function(i) {
|
|
1589
1583
|
if (A(t, n), n === 0) {
|
|
@@ -1592,24 +1586,24 @@ var ut = () => {
|
|
|
1592
1586
|
return j(i, e, a);
|
|
1593
1587
|
});
|
|
1594
1588
|
} catch (e) {
|
|
1595
|
-
|
|
1589
|
+
q.thrownErrors.push(e);
|
|
1596
1590
|
}
|
|
1597
|
-
if (0 <
|
|
1598
|
-
var o = k(
|
|
1599
|
-
|
|
1591
|
+
if (0 < q.thrownErrors.length) {
|
|
1592
|
+
var o = k(q.thrownErrors);
|
|
1593
|
+
q.thrownErrors.length = 0, a(o);
|
|
1600
1594
|
}
|
|
1601
1595
|
} else e(i);
|
|
1602
1596
|
}, function(e) {
|
|
1603
|
-
A(t, n), 0 <
|
|
1597
|
+
A(t, n), 0 < q.thrownErrors.length ? (e = k(q.thrownErrors), q.thrownErrors.length = 0, a(e)) : a(e);
|
|
1604
1598
|
});
|
|
1605
1599
|
} };
|
|
1606
1600
|
}
|
|
1607
1601
|
var s = a;
|
|
1608
|
-
if (A(t, n), n === 0 && (M(r), r.length !== 0 &&
|
|
1609
|
-
i ||
|
|
1610
|
-
}),
|
|
1602
|
+
if (A(t, n), n === 0 && (M(r), r.length !== 0 && Se(function() {
|
|
1603
|
+
i || be || (be = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
|
|
1604
|
+
}), q.actQueue = null), 0 < q.thrownErrors.length) throw e = k(q.thrownErrors), q.thrownErrors.length = 0, e;
|
|
1611
1605
|
return { then: function(e, t) {
|
|
1612
|
-
i = !0, n === 0 ? (
|
|
1606
|
+
i = !0, n === 0 ? (q.actQueue = r, O(function() {
|
|
1613
1607
|
return j(s, e, t);
|
|
1614
1608
|
})) : e(s);
|
|
1615
1609
|
} };
|
|
@@ -1620,21 +1614,21 @@ var ut = () => {
|
|
|
1620
1614
|
}, e.cacheSignal = function() {
|
|
1621
1615
|
return null;
|
|
1622
1616
|
}, e.captureOwnerStack = function() {
|
|
1623
|
-
var e =
|
|
1617
|
+
var e = q.getCurrentStack;
|
|
1624
1618
|
return e === null ? null : e();
|
|
1625
1619
|
}, e.cloneElement = function(e, t, n) {
|
|
1626
1620
|
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
1627
|
-
var r =
|
|
1621
|
+
var r = U({}, e.props), i = e.key, a = e._owner;
|
|
1628
1622
|
if (t != null) {
|
|
1629
1623
|
var o;
|
|
1630
1624
|
a: {
|
|
1631
|
-
if (
|
|
1625
|
+
if (J.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
|
|
1632
1626
|
o = !1;
|
|
1633
1627
|
break a;
|
|
1634
1628
|
}
|
|
1635
1629
|
o = t.ref !== void 0;
|
|
1636
1630
|
}
|
|
1637
|
-
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !
|
|
1631
|
+
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !J.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
|
|
1638
1632
|
}
|
|
1639
1633
|
var s = arguments.length - 2;
|
|
1640
1634
|
if (s === 1) r.children = n;
|
|
@@ -1643,25 +1637,25 @@ var ut = () => {
|
|
|
1643
1637
|
for (var c = 0; c < s; c++) o[c] = arguments[c + 2];
|
|
1644
1638
|
r.children = o;
|
|
1645
1639
|
}
|
|
1646
|
-
for (r =
|
|
1640
|
+
for (r = v(e.type, i, r, a, e._debugStack, e._debugTask), i = 2; i < arguments.length; i++) b(arguments[i]);
|
|
1647
1641
|
return r;
|
|
1648
1642
|
}, e.createContext = function(e) {
|
|
1649
1643
|
return e = {
|
|
1650
|
-
$$typeof:
|
|
1644
|
+
$$typeof: R,
|
|
1651
1645
|
_currentValue: e,
|
|
1652
1646
|
_currentValue2: e,
|
|
1653
1647
|
_threadCount: 0,
|
|
1654
1648
|
Provider: null,
|
|
1655
1649
|
Consumer: null
|
|
1656
1650
|
}, e.Provider = e, e.Consumer = {
|
|
1657
|
-
$$typeof:
|
|
1651
|
+
$$typeof: L,
|
|
1658
1652
|
_context: e
|
|
1659
1653
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1660
1654
|
}, e.createElement = function(e, t, n) {
|
|
1661
|
-
for (var r = 2; r < arguments.length; r++)
|
|
1655
|
+
for (var r = 2; r < arguments.length; r++) b(arguments[r]);
|
|
1662
1656
|
r = {};
|
|
1663
1657
|
var i = null;
|
|
1664
|
-
if (t != null) for (c in
|
|
1658
|
+
if (t != null) for (c in de || !("__self" in t) || "key" in t || (de = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), h(t) && (u(t.key), i = "" + t.key), t) J.call(t, c) && c !== "key" && c !== "__self" && c !== "__source" && (r[c] = t[c]);
|
|
1665
1659
|
var a = arguments.length - 2;
|
|
1666
1660
|
if (a === 1) r.children = n;
|
|
1667
1661
|
else if (1 < a) {
|
|
@@ -1670,15 +1664,15 @@ var ut = () => {
|
|
|
1670
1664
|
}
|
|
1671
1665
|
if (e && e.defaultProps) for (c in a = e.defaultProps, a) r[c] === void 0 && (r[c] = a[c]);
|
|
1672
1666
|
i && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e);
|
|
1673
|
-
var c = 1e4 >
|
|
1674
|
-
return
|
|
1667
|
+
var c = 1e4 > q.recentlyCreatedOwnerStacks++;
|
|
1668
|
+
return v(e, i, r, p(), c ? Error("react-stack-top-frame") : pe, c ? le(f(e)) : me);
|
|
1675
1669
|
}, e.createRef = function() {
|
|
1676
1670
|
var e = { current: null };
|
|
1677
1671
|
return Object.seal(e), e;
|
|
1678
1672
|
}, e.forwardRef = function(e) {
|
|
1679
|
-
e != null && e.$$typeof ===
|
|
1673
|
+
e != null && e.$$typeof === ae ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e == "function" ? e.length !== 0 && e.length !== 2 && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.") : console.error("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e), e != null && e.defaultProps != null && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
|
|
1680
1674
|
var t = {
|
|
1681
|
-
$$typeof:
|
|
1675
|
+
$$typeof: re,
|
|
1682
1676
|
render: e
|
|
1683
1677
|
}, n;
|
|
1684
1678
|
return Object.defineProperty(t, "displayName", {
|
|
@@ -1691,13 +1685,13 @@ var ut = () => {
|
|
|
1691
1685
|
n = t, e.name || e.displayName || (Object.defineProperty(e, "name", { value: t }), e.displayName = t);
|
|
1692
1686
|
}
|
|
1693
1687
|
}), t;
|
|
1694
|
-
}, e.isValidElement =
|
|
1688
|
+
}, e.isValidElement = x, e.lazy = function(e) {
|
|
1695
1689
|
e = {
|
|
1696
1690
|
_status: -1,
|
|
1697
1691
|
_result: e
|
|
1698
1692
|
};
|
|
1699
1693
|
var t = {
|
|
1700
|
-
$$typeof:
|
|
1694
|
+
$$typeof: B,
|
|
1701
1695
|
_payload: e,
|
|
1702
1696
|
_init: E
|
|
1703
1697
|
}, n = {
|
|
@@ -1712,7 +1706,7 @@ var ut = () => {
|
|
|
1712
1706
|
return e._ioInfo = n, t._debugInfo = [{ awaited: n }], t;
|
|
1713
1707
|
}, e.memo = function(e, t) {
|
|
1714
1708
|
e ?? console.error("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e), t = {
|
|
1715
|
-
$$typeof:
|
|
1709
|
+
$$typeof: ae,
|
|
1716
1710
|
type: e,
|
|
1717
1711
|
compare: t === void 0 ? null : t
|
|
1718
1712
|
};
|
|
@@ -1728,15 +1722,15 @@ var ut = () => {
|
|
|
1728
1722
|
}
|
|
1729
1723
|
}), t;
|
|
1730
1724
|
}, e.startTransition = function(e) {
|
|
1731
|
-
var t =
|
|
1732
|
-
n._updatedFibers = /* @__PURE__ */ new Set(),
|
|
1725
|
+
var t = q.T, n = {};
|
|
1726
|
+
n._updatedFibers = /* @__PURE__ */ new Set(), q.T = n;
|
|
1733
1727
|
try {
|
|
1734
|
-
var r = e(), i =
|
|
1735
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (
|
|
1728
|
+
var r = e(), i = q.S;
|
|
1729
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (q.asyncTransitions++, r.then(te, te), r.then(c, _e));
|
|
1736
1730
|
} catch (e) {
|
|
1737
|
-
|
|
1731
|
+
_e(e);
|
|
1738
1732
|
} finally {
|
|
1739
|
-
t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types),
|
|
1733
|
+
t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types), q.T = t;
|
|
1740
1734
|
}
|
|
1741
1735
|
}, e.unstable_useCacheRefresh = function() {
|
|
1742
1736
|
return D().useCacheRefresh();
|
|
@@ -1748,7 +1742,7 @@ var ut = () => {
|
|
|
1748
1742
|
return D().useCallback(e, t);
|
|
1749
1743
|
}, e.useContext = function(e) {
|
|
1750
1744
|
var t = D();
|
|
1751
|
-
return e.$$typeof ===
|
|
1745
|
+
return e.$$typeof === L && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"), t.useContext(e);
|
|
1752
1746
|
}, e.useDebugValue = function(e, t) {
|
|
1753
1747
|
return D().useDebugValue(e, t);
|
|
1754
1748
|
}, e.useDeferredValue = function(e, t) {
|
|
@@ -1781,10 +1775,10 @@ var ut = () => {
|
|
|
1781
1775
|
return D().useTransition();
|
|
1782
1776
|
}, e.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1783
1777
|
})();
|
|
1784
|
-
})),
|
|
1785
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
1786
|
-
})),
|
|
1787
|
-
var t =
|
|
1778
|
+
})), wt = /* @__PURE__ */ o(((e, t) => {
|
|
1779
|
+
process.env.NODE_ENV === "production" ? t.exports = St() : t.exports = Ct();
|
|
1780
|
+
})), Tt = /* @__PURE__ */ o(((e) => {
|
|
1781
|
+
var t = wt();
|
|
1788
1782
|
function n(e) {
|
|
1789
1783
|
var t = "https://react.dev/errors/" + e;
|
|
1790
1784
|
if (1 < arguments.length) {
|
|
@@ -1899,7 +1893,7 @@ var ut = () => {
|
|
|
1899
1893
|
}, e.useFormStatus = function() {
|
|
1900
1894
|
return s.H.useHostTransitionStatus();
|
|
1901
1895
|
}, e.version = "19.2.4";
|
|
1902
|
-
})),
|
|
1896
|
+
})), Et = /* @__PURE__ */ o(((e) => {
|
|
1903
1897
|
process.env.NODE_ENV !== "production" && (function() {
|
|
1904
1898
|
function t() {}
|
|
1905
1899
|
function n(e) {
|
|
@@ -1936,7 +1930,7 @@ var ut = () => {
|
|
|
1936
1930
|
return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
|
|
1937
1931
|
}
|
|
1938
1932
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1939
|
-
var c =
|
|
1933
|
+
var c = wt(), l = {
|
|
1940
1934
|
d: {
|
|
1941
1935
|
f: t,
|
|
1942
1936
|
r: function() {
|
|
@@ -2033,7 +2027,7 @@ var ut = () => {
|
|
|
2033
2027
|
return s().useHostTransitionStatus();
|
|
2034
2028
|
}, e.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2035
2029
|
})();
|
|
2036
|
-
})),
|
|
2030
|
+
})), Dt = /* @__PURE__ */ o(((e, t) => {
|
|
2037
2031
|
function n() {
|
|
2038
2032
|
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
2039
2033
|
if (process.env.NODE_ENV !== "production") throw Error("^_^");
|
|
@@ -2044,16 +2038,16 @@ var ut = () => {
|
|
|
2044
2038
|
}
|
|
2045
2039
|
}
|
|
2046
2040
|
}
|
|
2047
|
-
process.env.NODE_ENV === "production" ? (n(), t.exports =
|
|
2048
|
-
})),
|
|
2049
|
-
|
|
2050
|
-
function
|
|
2041
|
+
process.env.NODE_ENV === "production" ? (n(), t.exports = Tt()) : t.exports = Et();
|
|
2042
|
+
})), Ot = /* @__PURE__ */ c(wt(), 1);
|
|
2043
|
+
Dt();
|
|
2044
|
+
function kt(e) {
|
|
2051
2045
|
if (!e || typeof document > "u") return;
|
|
2052
2046
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
2053
2047
|
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
2054
2048
|
}
|
|
2055
2049
|
Array(12).fill(0);
|
|
2056
|
-
var
|
|
2050
|
+
var At = 1, Q = new class {
|
|
2057
2051
|
constructor() {
|
|
2058
2052
|
this.subscribe = (e) => (this.subscribers.push(e), () => {
|
|
2059
2053
|
let t = this.subscribers.indexOf(e);
|
|
@@ -2063,7 +2057,7 @@ var jt = 1, Q = new class {
|
|
|
2063
2057
|
}, this.addToast = (e) => {
|
|
2064
2058
|
this.publish(e), this.toasts = [...this.toasts, e];
|
|
2065
2059
|
}, this.create = (e) => {
|
|
2066
|
-
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id :
|
|
2060
|
+
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id : At++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
|
|
2067
2061
|
return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
|
|
2068
2062
|
...n,
|
|
2069
2063
|
...e,
|
|
@@ -2123,14 +2117,14 @@ var jt = 1, Q = new class {
|
|
|
2123
2117
|
description: typeof t.description == "function" ? void 0 : t.description
|
|
2124
2118
|
}));
|
|
2125
2119
|
let r = Promise.resolve(e instanceof Function ? e() : e), i = n !== void 0, a, o = r.then(async (e) => {
|
|
2126
|
-
if (a = ["resolve", e],
|
|
2120
|
+
if (a = ["resolve", e], Ot.isValidElement(e)) i = !1, this.create({
|
|
2127
2121
|
id: n,
|
|
2128
2122
|
type: "default",
|
|
2129
2123
|
message: e
|
|
2130
2124
|
});
|
|
2131
|
-
else if (
|
|
2125
|
+
else if (Mt(e) && !e.ok) {
|
|
2132
2126
|
i = !1;
|
|
2133
|
-
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !
|
|
2127
|
+
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !Ot.isValidElement(r) ? r : { message: r };
|
|
2134
2128
|
this.create({
|
|
2135
2129
|
id: n,
|
|
2136
2130
|
type: "error",
|
|
@@ -2139,7 +2133,7 @@ var jt = 1, Q = new class {
|
|
|
2139
2133
|
});
|
|
2140
2134
|
} else if (e instanceof Error) {
|
|
2141
2135
|
i = !1;
|
|
2142
|
-
let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !
|
|
2136
|
+
let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !Ot.isValidElement(r) ? r : { message: r };
|
|
2143
2137
|
this.create({
|
|
2144
2138
|
id: n,
|
|
2145
2139
|
type: "error",
|
|
@@ -2148,7 +2142,7 @@ var jt = 1, Q = new class {
|
|
|
2148
2142
|
});
|
|
2149
2143
|
} else if (t.success !== void 0) {
|
|
2150
2144
|
i = !1;
|
|
2151
|
-
let r = typeof t.success == "function" ? await t.success(e) : t.success, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !
|
|
2145
|
+
let r = typeof t.success == "function" ? await t.success(e) : t.success, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !Ot.isValidElement(r) ? r : { message: r };
|
|
2152
2146
|
this.create({
|
|
2153
2147
|
id: n,
|
|
2154
2148
|
type: "success",
|
|
@@ -2159,7 +2153,7 @@ var jt = 1, Q = new class {
|
|
|
2159
2153
|
}).catch(async (e) => {
|
|
2160
2154
|
if (a = ["reject", e], t.error !== void 0) {
|
|
2161
2155
|
i = !1;
|
|
2162
|
-
let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !
|
|
2156
|
+
let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !Ot.isValidElement(r) ? r : { message: r };
|
|
2163
2157
|
this.create({
|
|
2164
2158
|
id: n,
|
|
2165
2159
|
type: "error",
|
|
@@ -2172,7 +2166,7 @@ var jt = 1, Q = new class {
|
|
|
2172
2166
|
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
|
|
2173
2167
|
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
|
|
2174
2168
|
}, this.custom = (e, t) => {
|
|
2175
|
-
let n = t?.id ||
|
|
2169
|
+
let n = t?.id || At++;
|
|
2176
2170
|
return this.create({
|
|
2177
2171
|
jsx: e(n),
|
|
2178
2172
|
id: n,
|
|
@@ -2180,14 +2174,14 @@ var jt = 1, Q = new class {
|
|
|
2180
2174
|
}), n;
|
|
2181
2175
|
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
2182
2176
|
}
|
|
2183
|
-
}(),
|
|
2184
|
-
let n = t?.id ||
|
|
2177
|
+
}(), jt = (e, t) => {
|
|
2178
|
+
let n = t?.id || At++;
|
|
2185
2179
|
return Q.addToast({
|
|
2186
2180
|
title: e,
|
|
2187
2181
|
...t,
|
|
2188
2182
|
id: n
|
|
2189
2183
|
}), n;
|
|
2190
|
-
},
|
|
2184
|
+
}, Mt = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Nt = jt, Pt = Object.assign(Nt, {
|
|
2191
2185
|
success: Q.success,
|
|
2192
2186
|
info: Q.info,
|
|
2193
2187
|
warning: Q.warning,
|
|
@@ -2201,7 +2195,7 @@ var jt = 1, Q = new class {
|
|
|
2201
2195
|
getHistory: () => Q.toasts,
|
|
2202
2196
|
getToasts: () => Q.getActiveToasts()
|
|
2203
2197
|
});
|
|
2204
|
-
At("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
2198
|
+
kt("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
2205
2199
|
//#endregion
|
|
2206
2200
|
//#region src/networking/services/yusrApiHelper.ts
|
|
2207
2201
|
var $ = class e {
|
|
@@ -2260,19 +2254,19 @@ var $ = class e {
|
|
|
2260
2254
|
});
|
|
2261
2255
|
if (!a.ok) {
|
|
2262
2256
|
let e = await a.json();
|
|
2263
|
-
|
|
2257
|
+
Pt.error(e.title || "حدث خطأ أثناء تحميل التقرير", { description: e.detail || "يرجى المحاولة مرة أخرى لاحقاً" });
|
|
2264
2258
|
return;
|
|
2265
2259
|
}
|
|
2266
2260
|
return await a.blob();
|
|
2267
2261
|
}
|
|
2268
2262
|
static async handleResponse(e, t) {
|
|
2269
|
-
if (e.status === 401) return window.dispatchEvent(new Event(l.UnauthorizedEventName)),
|
|
2263
|
+
if (e.status === 401) return window.dispatchEvent(new Event(l.UnauthorizedEventName)), Pt.error("انتهت صلاحية الدخول", { description: "سجل الدخول مجددًا." }), {
|
|
2270
2264
|
data: void 0,
|
|
2271
2265
|
status: 401,
|
|
2272
2266
|
errorTitle: "Unauthorized",
|
|
2273
2267
|
errorDetails: "Session expired"
|
|
2274
2268
|
};
|
|
2275
|
-
if (e.status === 404) return
|
|
2269
|
+
if (e.status === 404) return Pt.error("لم يتم العثور على طلبك"), {
|
|
2276
2270
|
data: void 0,
|
|
2277
2271
|
status: 404,
|
|
2278
2272
|
errorTitle: "Not Found",
|
|
@@ -2280,7 +2274,7 @@ var $ = class e {
|
|
|
2280
2274
|
};
|
|
2281
2275
|
if (!e.ok) {
|
|
2282
2276
|
let t = await e.json();
|
|
2283
|
-
return
|
|
2277
|
+
return Pt.error(t.title || "An error occurred", { description: t.detail }), {
|
|
2284
2278
|
data: void 0,
|
|
2285
2279
|
status: e.status,
|
|
2286
2280
|
errorTitle: t.title,
|
|
@@ -2288,31 +2282,31 @@ var $ = class e {
|
|
|
2288
2282
|
};
|
|
2289
2283
|
}
|
|
2290
2284
|
let n = await e.json();
|
|
2291
|
-
return t &&
|
|
2285
|
+
return t && Pt.success(t), {
|
|
2292
2286
|
data: n,
|
|
2293
2287
|
status: e.status,
|
|
2294
2288
|
errorTitle: "",
|
|
2295
2289
|
errorDetails: ""
|
|
2296
2290
|
};
|
|
2297
2291
|
}
|
|
2298
|
-
},
|
|
2292
|
+
}, Ft = class {
|
|
2299
2293
|
async Filter(e, t, n) {
|
|
2300
|
-
return await $.Post(`${
|
|
2294
|
+
return await $.Post(`${xt.baseUrl}/${this.routeName}/Filter?pageNumber=${e}&rowsPerPage=${t}`, n);
|
|
2301
2295
|
}
|
|
2302
|
-
},
|
|
2296
|
+
}, It = class extends Ft {
|
|
2303
2297
|
async Get(e) {
|
|
2304
|
-
return await $.Get(`${
|
|
2298
|
+
return await $.Get(`${xt.baseUrl}/${this.routeName}/${e}`);
|
|
2305
2299
|
}
|
|
2306
2300
|
async Add(e) {
|
|
2307
|
-
return await $.Post(`${
|
|
2301
|
+
return await $.Post(`${xt.baseUrl}/${this.routeName}/Add`, e, void 0, "تم حفظ البيانات بنجاح");
|
|
2308
2302
|
}
|
|
2309
2303
|
async Update(e) {
|
|
2310
|
-
return await $.Put(`${
|
|
2304
|
+
return await $.Put(`${xt.baseUrl}/${this.routeName}/Update`, e, void 0, "تم تحديث المعلومات بنجاح");
|
|
2311
2305
|
}
|
|
2312
2306
|
async Delete(e) {
|
|
2313
|
-
return await $.Delete(`${
|
|
2307
|
+
return await $.Delete(`${xt.baseUrl}/${this.routeName}/${e}`, void 0, "تمت إزالة السجل بنجاح");
|
|
2314
2308
|
}
|
|
2315
|
-
},
|
|
2309
|
+
}, Lt = class {
|
|
2316
2310
|
static required(e = "هذا الحقل مطلوب") {
|
|
2317
2311
|
return (t) => t == null || t === "" || typeof t == "string" && t.trim() === "" ? e : null;
|
|
2318
2312
|
}
|
|
@@ -2330,4 +2324,4 @@ var $ = class e {
|
|
|
2330
2324
|
}
|
|
2331
2325
|
};
|
|
2332
2326
|
//#endregion
|
|
2333
|
-
export {
|
|
2327
|
+
export { xt as ApiConstants, l as AuthConstants, It as BaseApiService, dt as BaseEntity, Ft as BaseFilterableApiService, ft as City, pt as CityFilterColumns, mt as Country, ht as CountryFilterColumns, gt as Currency, _t as FilterCondition, vt as LoginRequest, yt as StorageFile, bt as StorageFileStatus, ut as SystemPermissions, Lt as Validators, $ as YusrApiHelper, lt as createAuthSlice };
|