aoi-comp 1.0.7 → 1.0.9

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.
@@ -1,4 +1,4 @@
1
- import { V as e, u as t } from "./Geometry-aazo6sAf.js";
1
+ import { V as e, u as t } from "./Geometry-BM7su788.js";
2
2
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/gpu/getTextureBatchBindGroup.mjs
3
3
  var n = {};
4
4
  function r(e, t, r) {
@@ -1,4 +1,4 @@
1
- import { $ as e, E as t, I as n, K as r, P as i, U as a, W as o, Y as s, Z as c, ct as l, dt as u, et as d, f, o as p, pt as m, s as h, t as g, u as _, w as v, y } from "./packages-CZzUFKwt.js";
1
+ import { $ as e, E as t, F as n, G as r, J as i, K as a, R as o, Z as s, f as c, ht as l, nt as u, o as d, pt as f, s as p, t as m, tt as h, u as g, ut as _, w as v, y } from "./packages-C9qBCygN.js";
2
2
  import { message as b } from "antd";
3
3
  import { createContext as x, use as S, useCallback as C, useContext as w, useEffect as T, useMemo as E, useRef as D, useState as O } from "react";
4
4
  //#region node_modules/.pnpm/react-i18next@17.0.13_i18ne_77b937ecedfb676debf3096b5685165d/node_modules/react-i18next/dist/es/utils.js
@@ -45,8 +45,8 @@ var k = (e, t, n, r) => {
45
45
  getUsedNamespaces() {
46
46
  return Object.keys(this.usedNamespaces);
47
47
  }
48
- }, B = /* @__PURE__ */ u(((e) => {
49
- var t = m("react");
48
+ }, B = /* @__PURE__ */ f(((e) => {
49
+ var t = l("react");
50
50
  function n(e, t) {
51
51
  return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
52
52
  }
@@ -55,20 +55,20 @@ var k = (e, t, n, r) => {
55
55
  var n = t(), r = i({ inst: {
56
56
  value: n,
57
57
  getSnapshot: t
58
- } }), c = r[0].inst, u = r[1];
58
+ } }), c = r[0].inst, l = r[1];
59
59
  return o(function() {
60
- c.value = n, c.getSnapshot = t, l(c) && u({ inst: c });
60
+ c.value = n, c.getSnapshot = t, u(c) && l({ inst: c });
61
61
  }, [
62
62
  e,
63
63
  n,
64
64
  t
65
65
  ]), a(function() {
66
- return l(c) && u({ inst: c }), e(function() {
67
- l(c) && u({ inst: c });
66
+ return u(c) && l({ inst: c }), e(function() {
67
+ u(c) && l({ inst: c });
68
68
  });
69
69
  }, [e]), s(n), n;
70
70
  }
71
- function l(e) {
71
+ function u(e) {
72
72
  var t = e.getSnapshot;
73
73
  e = e.value;
74
74
  try {
@@ -78,39 +78,39 @@ var k = (e, t, n, r) => {
78
78
  return !0;
79
79
  }
80
80
  }
81
- function u(e, t) {
81
+ function d(e, t) {
82
82
  return t();
83
83
  }
84
- var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
85
- e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
86
- })), V = /* @__PURE__ */ u(((e) => {
84
+ var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : c;
85
+ e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? f : t.useSyncExternalStore;
86
+ })), V = /* @__PURE__ */ f(((e) => {
87
87
  process.env.NODE_ENV !== "production" && (function() {
88
88
  function t(e, t) {
89
89
  return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
90
90
  }
91
91
  function n(e, t) {
92
- d || a.startTransition === void 0 || (d = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
92
+ f || a.startTransition === void 0 || (f = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
93
93
  var n = t();
94
- if (!f) {
94
+ if (!p) {
95
95
  var i = t();
96
- o(n, i) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
96
+ o(n, i) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
97
97
  }
98
98
  i = s({ inst: {
99
99
  value: n,
100
100
  getSnapshot: t
101
101
  } });
102
- var p = i[0].inst, m = i[1];
103
- return l(function() {
104
- p.value = n, p.getSnapshot = t, r(p) && m({ inst: p });
102
+ var l = i[0].inst, m = i[1];
103
+ return u(function() {
104
+ l.value = n, l.getSnapshot = t, r(l) && m({ inst: l });
105
105
  }, [
106
106
  e,
107
107
  n,
108
108
  t
109
109
  ]), c(function() {
110
- return r(p) && m({ inst: p }), e(function() {
111
- r(p) && m({ inst: p });
110
+ return r(l) && m({ inst: l }), e(function() {
111
+ r(l) && m({ inst: l });
112
112
  });
113
- }, [e]), u(n), n;
113
+ }, [e]), d(n), n;
114
114
  }
115
115
  function r(e) {
116
116
  var t = e.getSnapshot;
@@ -126,12 +126,12 @@ var k = (e, t, n, r) => {
126
126
  return t();
127
127
  }
128
128
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
129
- var a = m("react"), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, c = a.useEffect, l = a.useLayoutEffect, u = a.useDebugValue, d = !1, f = !1, p = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? i : n;
130
- e.useSyncExternalStore = a.useSyncExternalStore === void 0 ? p : a.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
129
+ var a = l("react"), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, c = a.useEffect, u = a.useLayoutEffect, d = a.useDebugValue, f = !1, p = !1, m = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? i : n;
130
+ e.useSyncExternalStore = a.useSyncExternalStore === void 0 ? m : a.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
131
131
  })();
132
- })), H = (/* @__PURE__ */ u(((e, t) => {
132
+ })), H = (/* @__PURE__ */ f(((e, t) => {
133
133
  t.exports = process.env.NODE_ENV === "production" ? B() : V();
134
- })))(), ee = {
134
+ })))(), U = {
135
135
  t: (e, t) => {
136
136
  if (I(t)) return t;
137
137
  if (L(t) && I(t.defaultValue)) return t.defaultValue;
@@ -143,56 +143,56 @@ var k = (e, t, n, r) => {
143
143
  return e;
144
144
  },
145
145
  ready: !1
146
- }, U = () => () => {}, W = (t, n = {}) => {
147
- let { i18n: r } = n, { i18n: i, defaultNS: a } = w(R) || {}, o = r || i || e();
148
- o && !o.reportNamespaces && (o.reportNamespaces = new z()), o || j(o, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");
149
- let s = E(() => ({
150
- ...d(),
151
- ...o?.options?.react,
152
- ...n
153
- }), [o, n]), { useSuspense: c, keyPrefix: l } = s, u = t || a || o?.options?.defaultNS, f = I(u) ? [u] : u || ["translation"], p = E(() => f, f);
154
- o?.reportNamespaces?.addUsedNamespaces?.(p);
155
- let m = D(0), h = C((e) => {
156
- if (!o) return U;
157
- let { bindI18n: t, bindI18nStore: n } = s, r = () => {
158
- m.current += 1, e();
146
+ }, W = () => () => {}, G = (e, t = {}) => {
147
+ let { i18n: n } = t, { i18n: r, defaultNS: i } = w(R) || {}, a = n || r || h();
148
+ a && !a.reportNamespaces && (a.reportNamespaces = new z()), a || j(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");
149
+ let o = E(() => ({
150
+ ...u(),
151
+ ...a?.options?.react,
152
+ ...t
153
+ }), [a, t]), { useSuspense: s, keyPrefix: c } = o, l = e || i || a?.options?.defaultNS, d = I(l) ? [l] : l || ["translation"], f = E(() => d, d);
154
+ a?.reportNamespaces?.addUsedNamespaces?.(f);
155
+ let p = D(0), m = C((e) => {
156
+ if (!a) return W;
157
+ let { bindI18n: t, bindI18nStore: n } = o, r = () => {
158
+ p.current += 1, e();
159
159
  };
160
- return t && o.on(t, r), n && o.store.on(n, r), () => {
161
- t && t.split(" ").forEach((e) => o.off(e, r)), n && n.split(" ").forEach((e) => o.store.off(e, r));
160
+ return t && a.on(t, r), n && a.store.on(n, r), () => {
161
+ t && t.split(" ").forEach((e) => a.off(e, r)), n && n.split(" ").forEach((e) => a.store.off(e, r));
162
162
  };
163
- }, [o, s]), g = D(), _ = C(() => {
164
- if (!o) return ee;
165
- let e = !!(o.isInitialized || o.initializedStoreOnce) && p.every((e) => F(e, o, s)), t = n.lng || o.language, r = m.current, i = g.current;
166
- if (i && i.ready === e && i.lng === t && i.keyPrefix === l && i.revision === r) return i;
167
- let a = {
168
- t: o.getFixedT(t, s.nsMode === "fallback" ? p : p[0], l, { scopeNs: p }),
163
+ }, [a, o]), g = D(), _ = C(() => {
164
+ if (!a) return U;
165
+ let e = !!(a.isInitialized || a.initializedStoreOnce) && f.every((e) => F(e, a, o)), n = t.lng || a.language, r = p.current, i = g.current;
166
+ if (i && i.ready === e && i.lng === n && i.keyPrefix === c && i.revision === r) return i;
167
+ let s = {
168
+ t: a.getFixedT(n, o.nsMode === "fallback" ? f : f[0], c, { scopeNs: f }),
169
169
  ready: e,
170
- lng: t,
171
- keyPrefix: l,
170
+ lng: n,
171
+ keyPrefix: c,
172
172
  revision: r
173
173
  };
174
- return g.current = a, a;
174
+ return g.current = s, s;
175
175
  }, [
176
+ a,
177
+ f,
178
+ c,
176
179
  o,
177
- p,
178
- l,
179
- s,
180
- n.lng
181
- ]), [v, y] = O(0), { t: b, ready: x } = (0, H.useSyncExternalStore)(h, _, _);
180
+ t.lng
181
+ ]), [v, y] = O(0), { t: b, ready: x } = (0, H.useSyncExternalStore)(m, _, _);
182
182
  T(() => {
183
- if (o && !x && !c) {
183
+ if (a && !x && !s) {
184
184
  let e = () => y((e) => e + 1);
185
- n.lng ? P(o, n.lng, p, e) : N(o, p, e);
185
+ t.lng ? P(a, t.lng, f, e) : N(a, f, e);
186
186
  }
187
187
  }, [
188
- o,
189
- n.lng,
190
- p,
188
+ a,
189
+ t.lng,
190
+ f,
191
191
  x,
192
- c,
192
+ s,
193
193
  v
194
194
  ]);
195
- let S = o || {}, k = D(null), A = D(), M = (e) => {
195
+ let S = a || {}, k = D(null), A = D(), M = (e) => {
196
196
  let t = Object.getOwnPropertyDescriptors(e);
197
197
  t.__original && delete t.__original;
198
198
  let n = Object.create(Object.getPrototypeOf(e), t);
@@ -208,7 +208,7 @@ var k = (e, t, n, r) => {
208
208
  }, L = E(() => {
209
209
  let e = S, t = e?.language, n = e;
210
210
  e && (k.current && k.current.__original === e && A.current === t ? n = k.current : (n = M(e), k.current = n, A.current = t));
211
- let r = !x && !c ? (...e) => (j(o, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), b(...e)) : b, i = [
211
+ let r = !x && !s ? (...e) => (j(a, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), b(...e)) : b, i = [
212
212
  r,
213
213
  n,
214
214
  x
@@ -222,39 +222,39 @@ var k = (e, t, n, r) => {
222
222
  S.language,
223
223
  S.languages
224
224
  ]);
225
- if (o && c && !x) {
225
+ if (a && s && !x) {
226
226
  let e = !1;
227
227
  try {
228
228
  e = process.env.NODE_ENV !== "production";
229
229
  } catch {}
230
- throw e && j(o, "SUSPENDED_WHILE_LOADING", "useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"), new Promise((e) => {
231
- let t = () => e();
232
- n.lng ? P(o, n.lng, p, t) : N(o, p, t);
230
+ throw e && j(a, "SUSPENDED_WHILE_LOADING", "useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"), new Promise((e) => {
231
+ let n = () => e();
232
+ t.lng ? P(a, t.lng, f, n) : N(a, f, n);
233
233
  });
234
234
  }
235
235
  return L;
236
- }, G = { app: x("app") }, K = (e = "app") => {
237
- G[e] || (G[e] = x(e));
238
- let t = S(G[e]);
239
- if (!t) throw Error(r.use.contextErr({ key: e }));
236
+ }, K = { app: x("app") }, q = (e = "app") => {
237
+ K[e] || (K[e] = x(e));
238
+ let t = S(K[e]);
239
+ if (!t) throw Error(i.use.contextErr({ key: e }));
240
240
  return t;
241
- }, q = (e) => {
241
+ }, J = (e) => {
242
242
  let t = D(), n = D();
243
243
  return t.current = e, n.current ||= (...e) => t.current(...e), n.current;
244
- }, J = (e = {}) => {
245
- let [t, n] = O(Object.keys(e).reduce((e, t) => (e[t] = `vast-${t}-0`, e), {})), r = D(e), i = D(!1), a = q((e) => {
246
- let r = `vast-${e}-${v("-")}`;
247
- n({
248
- ...t,
249
- [e]: r
244
+ }, Y = (t = {}) => {
245
+ let [n, r] = O(Object.keys(t).reduce((e, t) => (e[t] = `vast-${t}-0`, e), {})), i = D(t), a = D(!1), o = J((e) => {
246
+ let t = `vast-${e}-${v("-")}`;
247
+ r({
248
+ ...n,
249
+ [e]: t
250
250
  });
251
- }), o = (t, n = e) => {
252
- let i = t ? n[t] : n;
253
- if (typeof i != "object" || !i) return;
254
- let o = new Proxy(i, {
255
- get(e, n, r) {
256
- let i = c(e), o = Reflect.get(e, n, i === "map" || i === "set" ? e : r);
257
- return s(o, "function") ? [
251
+ }), c = (n, r = t) => {
252
+ let a = n ? r[n] : r;
253
+ if (typeof a != "object" || !a) return;
254
+ let c = new Proxy(a, {
255
+ get(t, r, i) {
256
+ let a = e(t), c = Reflect.get(t, r, a === "map" || a === "set" ? t : i);
257
+ return s(c, "function") ? [
258
258
  "add",
259
259
  "set",
260
260
  "delete",
@@ -267,35 +267,35 @@ var k = (e, t, n, r) => {
267
267
  "sort",
268
268
  "splice",
269
269
  "unshift"
270
- ].includes(n) ? (...r) => {
271
- let i = o.apply(e, r);
272
- return a(t ?? n), i;
273
- } : (...t) => o.apply(e, t) : o;
270
+ ].includes(r) ? (...e) => {
271
+ let i = c.apply(t, e);
272
+ return o(n ?? r), i;
273
+ } : (...e) => c.apply(t, e) : c;
274
274
  },
275
- set(e, n, r, i) {
276
- if (Reflect.get(e, n, i) === r) return !0;
277
- let o = Reflect.set(e, n, r, i);
278
- return a(t ?? n), o;
275
+ set(e, t, r, i) {
276
+ if (Reflect.get(e, t, i) === r) return !0;
277
+ let a = Reflect.set(e, t, r, i);
278
+ return o(n ?? t), a;
279
279
  },
280
- deleteProperty(e, n) {
281
- if (!Reflect.has(e, n)) return !0;
282
- let r = Reflect.deleteProperty(e, n);
283
- return a(t ?? n), r;
280
+ deleteProperty(e, t) {
281
+ if (!Reflect.has(e, t)) return !0;
282
+ let r = Reflect.deleteProperty(e, t);
283
+ return o(n ?? t), r;
284
284
  }
285
285
  });
286
- if (t) r.current[t] = o;
287
- else return o;
286
+ if (n) i.current[n] = c;
287
+ else return c;
288
288
  };
289
- if (!i.current) {
290
- r.current = o();
291
- for (let t in e) o(t);
292
- i.current = !0;
289
+ if (!a.current) {
290
+ i.current = c();
291
+ for (let e in t) c(e);
292
+ a.current = !0;
293
293
  }
294
294
  return T(() => () => {
295
- for (let e in r.current) delete r.current[e];
296
- i.current = !1;
297
- }, []), [t, r.current];
298
- }, Y = (e, t) => {
295
+ for (let e in i.current) delete i.current[e];
296
+ a.current = !1;
297
+ }, []), [n, i.current];
298
+ }, X = (e, t) => {
299
299
  let [n, r] = O(!0), i = D({
300
300
  isMounted: !1,
301
301
  lastCallId: 0
@@ -312,12 +312,12 @@ var k = (e, t, n, r) => {
312
312
  return n || r(!0), e(...t).then((e) => (i.isMounted && a === i.lastCallId && r(!1), e), (e) => (i.isMounted && a === i.lastCallId && r(!1), e));
313
313
  }, t);
314
314
  return [n, a];
315
- }, X = (e = "simple", t = []) => {
315
+ }, Z = (e = "simple", t = []) => {
316
316
  let n = {
317
- exe: g.exe,
318
- cv: g.cv,
319
- db: g.db
320
- }, i = D([
317
+ exe: m.exe,
318
+ cv: m.cv,
319
+ db: m.db
320
+ }, r = D([
321
321
  "store",
322
322
  "system",
323
323
  "project",
@@ -325,35 +325,35 @@ var k = (e, t, n, r) => {
325
325
  "defects",
326
326
  "running",
327
327
  ...t
328
- ]).current, a = S(G.app);
328
+ ]).current, a = S(K.app);
329
329
  switch (e) {
330
330
  case "privatize": return Object.assign(n, a);
331
- case "simple": return i.reduce((e, t) => (e[t] = a[t], e), n);
332
- case "action": return [i.reduce((e, t) => (e[t] = a[t], e), n), {
331
+ case "simple": return r.reduce((e, t) => (e[t] = a[t], e), n);
332
+ case "action": return [r.reduce((e, t) => (e[t] = a[t], e), n), {
333
333
  sysAction: a.sysAction,
334
334
  setRunning: a.setRunning,
335
335
  proAction: a.proAction
336
336
  }];
337
- default: throw Error(r.use.patternErr({ pattern: e }));
337
+ default: throw Error(i.use.patternErr({ pattern: e }));
338
338
  }
339
- }, Z = (e, t, n = { immediate: !1 }) => {
339
+ }, Q = (e, t, n = { immediate: !1 }) => {
340
340
  let r = D({
341
341
  oldValue: null,
342
342
  isInit: n.immediate,
343
343
  isWatch: !0
344
344
  }).current;
345
345
  return T(() => {
346
- r.isWatch && (r.isInit ? (h(t, r.oldValue) || e(t, r.oldValue), r.oldValue = p(t)) : r.isInit = !0);
346
+ r.isWatch && (r.isInit ? (p(t, r.oldValue) || e(t, r.oldValue), r.oldValue = d(t)) : r.isInit = !0);
347
347
  }, t), () => {
348
348
  r.isWatch = !1;
349
349
  };
350
- }, Q = (e = "") => {
351
- if (!e) throw Error(r.use.prefixErr());
352
- let { t } = W("translation", { keyPrefix: e });
350
+ }, ee = (e = "") => {
351
+ if (!e) throw Error(i.use.prefixErr());
352
+ let { t } = G("translation", { keyPrefix: e });
353
353
  return t;
354
354
  }, te = (e, t, n = !1) => {
355
- let r = q(e);
356
- return T(() => (n && r(), o(t, r), () => a(t, r)), []), r;
355
+ let i = J(e);
356
+ return T(() => (n && i(), a(t, i), () => r(t, i)), []), i;
357
357
  }, $ = (e, t) => {
358
358
  let n = D({
359
359
  immediate: !1,
@@ -372,14 +372,14 @@ var k = (e, t, n, r) => {
372
372
  height: n?.height || 0
373
373
  }), a = D(), o = D({
374
374
  immediate: !1,
375
- fps: 17,
375
+ fps: 12,
376
376
  beforeFn: null
377
377
  }).current;
378
378
  if (s(n, "boolean")) o.immediate = n;
379
379
  else if (s(n, "number")) o.fps = n;
380
380
  else if (s(n, "function")) o.beforeFn = n;
381
381
  else if (s(n, "object")) for (let e in n) Object.hasOwn(o, e) && (o[e] = n[e]);
382
- let c = () => a.current?.observe?.(t.current), l = () => a.current?.unobserve?.(t.current), u = q((t) => {
382
+ let c = () => a.current?.observe?.(t.current), l = () => a.current?.unobserve?.(t.current), u = J((t) => {
383
383
  let n = t[0].contentRect, { width: a, height: o } = n;
384
384
  (a !== r.width || o !== r.height) && e?.(n, r), i({
385
385
  width: a,
@@ -400,7 +400,7 @@ var k = (e, t, n, r) => {
400
400
  unobserve: l
401
401
  }];
402
402
  }, re = (e = "app", t = !1) => {
403
- let { context: n } = X("privatize"), r = D(b.useMessage()), i = D([]), a = (e, t, { key: n, duration: a = 3, onClose: o } = {}) => {
403
+ let { context: n } = Z("privatize"), r = D(b.useMessage()), i = D([]), a = (e, t, { key: n, duration: a = 3, onClose: o } = {}) => {
404
404
  let s = n || `msg_${v()}`;
405
405
  return i.current.push(s), r.current[0].open({
406
406
  key: s,
@@ -437,69 +437,69 @@ var k = (e, t, n, r) => {
437
437
  };
438
438
  }
439
439
  }, t ? r.current[1] : void 0];
440
- }, ie = (e, n = {}) => {
441
- let [a, o] = O(n), c = D(s(e, "function")).current, l = () => {
442
- f(e, (e) => {
440
+ }, ie = (e, r = {}) => {
441
+ let [a, o] = O(r), l = D(s(e, "function")).current, u = () => {
442
+ c(e, (e) => {
443
443
  let t = {};
444
- for (let r in n) t[r] = e?.[r] ?? n[r];
444
+ for (let n in r) t[n] = e?.[n] ?? r[n];
445
445
  o(t);
446
446
  });
447
- }, u = (n) => {
447
+ }, d = (n) => {
448
448
  t(e, n);
449
- }, d = q((t, n, s = null) => {
450
- a[t] = n, o({
449
+ }, f = J((t, r, s = null) => {
450
+ a[t] = r, o({
451
451
  ...a,
452
- [t]: n
453
- }), c && e(t, n), s?.(r.tool.setOk(), { key: i });
454
- }), p = q((t, n = null) => {
452
+ [t]: r
453
+ }), l && e(t, r), s?.(i.tool.setOk(), { key: n });
454
+ }), p = J((t, r = null) => {
455
455
  o({
456
456
  ...a,
457
457
  ...t
458
- }), c && e(t), n?.(r.tool.setOk(), { key: i });
458
+ }), l && e(t), r?.(i.tool.setOk(), { key: n });
459
459
  });
460
460
  T(() => {
461
- c || l();
461
+ l || u();
462
462
  }, []);
463
- let m = Z(([e]) => {
464
- u(e);
463
+ let m = Q(([e]) => {
464
+ d(e);
465
465
  }, [a]);
466
- return c && m(), [a, {
466
+ return l && m(), [a, {
467
467
  setData: p,
468
- setKey: d
468
+ setKey: f
469
469
  }];
470
- }, ae = (e, t = n) => {
471
- let [r, i] = O([]), [a, o] = O(0), [s, c] = O({
470
+ }, ae = (e, t = o) => {
471
+ let [n, r] = O([]), [i, a] = O(0), [s, c] = O({
472
472
  current: 1,
473
473
  pageSize: t[0]
474
474
  }), l = D([]);
475
- return [r, {
475
+ return [n, {
476
476
  value: l.current,
477
477
  current: s.current,
478
478
  pageSize: s.pageSize,
479
479
  options: t,
480
- total: a,
480
+ total: i,
481
481
  setValue: (t, n) => {
482
- let r = s.pageSize, a = s.current;
483
- _(n) && (a = 1, !e && (l.current = t), o(n), c({
484
- current: a,
485
- pageSize: r
482
+ let i = s.pageSize, o = s.current;
483
+ g(n) && (o = 1, !e && (l.current = t), a(n), c({
484
+ current: o,
485
+ pageSize: i
486
486
  }));
487
- let u = (a - 1) * r, d = u + r;
488
- i(e ? t : t.slice(u, d));
487
+ let u = (o - 1) * i, d = u + i;
488
+ r(e ? t : t.slice(u, d));
489
489
  },
490
490
  onChange: (t, n) => {
491
- let r = (t - 1) * n, a = r + n;
492
- e ? e(t, n) : i(l.current.slice(r, a)), c({
491
+ let i = (t - 1) * n, a = i + n, o = {
493
492
  current: t,
494
493
  pageSize: n
495
- });
494
+ };
495
+ e ? e(o) : r(l.current.slice(i, a)), c(o);
496
496
  }
497
497
  }];
498
498
  }, oe = () => {
499
499
  let [e, t] = O({
500
500
  ok: 0,
501
501
  ng: 0
502
- }), n = q((n) => {
502
+ }), n = J((n) => {
503
503
  let r = { ...e };
504
504
  r[n ? "ok" : "ng"] += 1, t(r);
505
505
  });
@@ -508,11 +508,11 @@ var k = (e, t, n, r) => {
508
508
  data: E(() => [{
509
509
  label: "OK",
510
510
  value: e.ok,
511
- color: l.ok
511
+ color: _.ok
512
512
  }, {
513
513
  label: "NG",
514
514
  value: e.ng,
515
- color: l.ng
515
+ color: _.ng
516
516
  }], [e]),
517
517
  increment: n,
518
518
  clear: () => {
@@ -524,4 +524,4 @@ var k = (e, t, n, r) => {
524
524
  };
525
525
  };
526
526
  //#endregion
527
- export { R as _, ie as a, k as b, te as c, Q as d, $ as f, W as g, Z as h, Y as i, ae as l, J as m, G as n, re as o, X as p, K as r, ne as s, oe as t, q as u, L as v, j as x, I as y };
527
+ export { R as _, ie as a, k as b, te as c, ee as d, $ as f, G as g, Q as h, X as i, ae as l, Y as m, K as n, re as o, Z as p, q as r, ne as s, oe as t, J as u, L as v, j as x, I as y };
package/dist/hooks.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./hooks-CdZsOQlG.js";
1
+ import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./hooks-MstF8Y3K.js";
2
2
  export { c as Contexts, d as useAppContext, a as useAsync, e as useFileState, l as useMessage, f as useObserver, t as useOnEvent, o as usePagination, m as usePersistFn, n as usePrefixT, r as useResize, p as useRunStatis, u as useStore, s as useVastState, i as useWatch };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./packages-CZzUFKwt.js";
1
+ import { n as e, t } from "./packages-C9qBCygN.js";
2
2
  export { t as AoiGlobal, e as aoiInit };