@sheetxl/react 0.6.5 → 0.6.7
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/browser/cjs/B1UnDlBR51kzjMX0.cjs +16 -0
- package/browser/cjs/CV5MkcNzsTDY0vAl.cjs +161 -0
- package/browser/cjs/DSQd3RszGTGayrdK.cjs +7 -0
- package/browser/cjs/index.cjs +15 -15
- package/browser/esm/{tWtXdQeWDT3tp47E.mjs → CEHbB2xn-a2pITRZ.mjs} +13 -13
- package/browser/esm/{MFoCOovTxqHMrS-r.mjs → DTHroq1FjBnMcx12.mjs} +197 -197
- package/browser/esm/index.mjs +3330 -3303
- package/browser/esm/{Vb46TnWVv7cNzPMf.mjs → zHzhPoVIdkQ15tUb.mjs} +35 -35
- package/licenses/dependencies.txt +2 -2
- package/node/esm/{C8Okkdlpyj9V_Xym.mjs → DW2WQRraUynMrhwX.mjs} +1 -1
- package/node/esm/index.mjs +335 -307
- package/package.json +6 -6
- package/types/index.d.ts +14 -5
- package/browser/cjs/COCkgm8-fe2c7LYP.cjs +0 -7
- package/browser/cjs/DaoAGX07szjW7Na_.cjs +0 -161
- package/browser/cjs/VKHWR3AWoMzuFI7k.cjs +0 -16
package/node/esm/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.7
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
7
|
import { FormulaError as e, NumberFormat as t, ICell as o, IBorder as n, ITextFrame as l, GeomUtils as r, ScalarType as i, IFont as a, IRange as s, LicenseManager as d, IColor as c, AutoFill as g, ISheetView as u, Color as h, IFill as m, RangeClipboardItem as p, ExternalRangeClipboardItem as f, TextUtils as w, IAnchored as q, CoordUtils as v, ThemeCollection as y } from "@sheetxl/sdk";
|
|
8
8
|
import { LicenseManager } from "@sheetxl/sdk";
|
|
9
|
-
import { ReactUtils as C, useImperativeElement as b, useCallbackRef as S, KeyCodes as x, SimpleCommand as k, Command as R, KeyModifiers as M, CommandGroup as T, useCopyPaste as A, useEditMode as z, useGlobalClipboard as F, NotificationType as
|
|
9
|
+
import { ReactUtils as C, useImperativeElement as b, useCallbackRef as S, KeyCodes as x, SimpleCommand as k, Command as R, KeyModifiers as M, CommandGroup as T, useCopyPaste as A, useEditMode as z, useGlobalClipboard as F, NotificationType as E, useCommands as D, ScrollbarOrientation as I, VirtualScrollbar as V, MouseButtonCodes as N, ToolTipPlacement as L, DefaultNotifier as H, HorizontalAlignment as B, ScrollPane as O, useFullscreenPortal as P, defaultCreateScrollStartButton as $, defaultCreateScrollEndButton as W, defaultCreateScrollEdgeButton as U, ScrollUtils as _ } from "@sheetxl/utils-react";
|
|
10
10
|
export * from "@sheetxl/utils-react";
|
|
11
11
|
import { jsx as G, jsxs as Z, Fragment as j } from "react/jsx-runtime";
|
|
12
12
|
import { CommonUtils as K, AnchorLocation as X, TypesUtils as Y, CoordUtils as J } from "@sheetxl/utils";
|
|
@@ -17,9 +17,9 @@ import { useMeasure as Re } from "react-use";
|
|
|
17
17
|
import Me from "clsx";
|
|
18
18
|
import { unstable_batchedUpdates as Te, createPortal as Ae } from "react-dom";
|
|
19
19
|
import { useForkRef as ze } from "rooks";
|
|
20
|
-
import { sortableKeyboardCoordinates as Fe, arrayMove as
|
|
21
|
-
import { restrictToHorizontalAxis as
|
|
22
|
-
import { closestCenter as
|
|
20
|
+
import { sortableKeyboardCoordinates as Fe, arrayMove as Ee, rectSortingStrategy as De, SortableContext as Ie, useSortable as Ve, horizontalListSortingStrategy as Ne } from "@dnd-kit/sortable";
|
|
21
|
+
import { restrictToHorizontalAxis as Le } from "@dnd-kit/modifiers";
|
|
22
|
+
import { closestCenter as He, defaultDropAnimation as Be, useSensors as Oe, useSensor as Pe, MouseSensor as $e, TouchSensor as We, KeyboardSensor as Ue, DndContext as _e, DragOverlay as Ge } from "@dnd-kit/core";
|
|
23
23
|
const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object.freeze(Object.defineProperty({ __proto__: null, nowWithPrecision: Ze }, Symbol.toStringTag, { value: "Module" })), Ke = Object.freeze([8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 36, 48, 72]), Xe = (e2, t2 = true, o2 = Ke) => {
|
|
24
24
|
if (!o2 || 0 === o2.length) return e2;
|
|
25
25
|
if (void 0 === e2) return o2[0];
|
|
@@ -44,26 +44,26 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
44
44
|
i2?.(e3, r2), e3.preventDefault();
|
|
45
45
|
}, ...s2, children: G("svg", { width: "" + 15 * n2, height: "" + 15 * n2, viewBox: "0 0 15 15", style: { fill: `var(${c2 && !l2 ? "--sxl-app-color-primary-dark" : "--sxl-app-color-button-text"}, grey)`, opacity: l2 ? 0.6 : 1 }, children: G("path", { d: d2 }) }) });
|
|
46
46
|
}, et = (s2) => {
|
|
47
|
-
const { value: d2, coords: c2, bounds: g2, children: u2, style: h2, range: m2, zoom: p2 = 1, view: f2, bodyStyle: w2, normalStyle: q2, showFormulas: v2, showZeros: y2, docTheme: b2, onLinkMouseDown: S2, onFilterButtonMouseDown: x2, filterButtonProps: k2, createFilterButton: R2 = Qe, ...M2 } = s2, T2 = g2.height / p2, A2 = g2.width / p2, z2 = d2, F2 = z2.getValue(),
|
|
47
|
+
const { value: d2, coords: c2, bounds: g2, children: u2, style: h2, range: m2, zoom: p2 = 1, view: f2, bodyStyle: w2, normalStyle: q2, showFormulas: v2, showZeros: y2, docTheme: b2, onLinkMouseDown: S2, onFilterButtonMouseDown: x2, filterButtonProps: k2, createFilterButton: R2 = Qe, ...M2 } = s2, T2 = g2.height / p2, A2 = g2.width / p2, z2 = d2, F2 = z2.getValue(), E2 = d2.getStyle(), D2 = w2?.darkMode ?? false;
|
|
48
48
|
let I2, V2;
|
|
49
|
-
const N2 = F2 && F2.isFormulaError,
|
|
50
|
-
let
|
|
49
|
+
const N2 = F2 && F2.isFormulaError, L2 = N2 && F2 instanceof e.Parse;
|
|
50
|
+
let H2, B2 = v2 || L2;
|
|
51
51
|
if (B2) if (z2.isSpillOverflow()) V2 = "";
|
|
52
52
|
else {
|
|
53
53
|
const e2 = z2.getFormulaText();
|
|
54
54
|
e2 ? V2 = e2 : I2 = z2.getNumberFormat(t.Type.General);
|
|
55
55
|
}
|
|
56
56
|
else I2 = z2.getNumberFormat();
|
|
57
|
-
B2 || (
|
|
58
|
-
const O2 =
|
|
57
|
+
B2 || (H2 = z2.getTextOverflow());
|
|
58
|
+
const O2 = H2 ? H2.colBounds.width + H2.leftOffset + H2.rightOffset : A2, P2 = H2 ? H2.anchorBounds.x - H2.leftOffset : 0, $2 = H2 ? H2.anchorBounds.width : A2, W2 = H2 ? H2.anchorBounds.x : 0;
|
|
59
59
|
let U2, _2 = z2.getRenderHorizontalAlignment();
|
|
60
60
|
I2 && (U2 = I2?.formattedRuns, V2 = U2?.runs[0]?.text ?? I2.displayText);
|
|
61
61
|
const j2 = z2.getCalcStatus() === o.CalcStatus.Pending;
|
|
62
|
-
let Y2 = null, J2 =
|
|
63
|
-
if (!
|
|
64
|
-
const e2 =
|
|
62
|
+
let Y2 = null, J2 = E2.getFill().toCSS(D2, g2), Q2 = 0, ee2 = 0;
|
|
63
|
+
if (!E2.getBorder().isEmpty()) {
|
|
64
|
+
const e2 = E2.getBorder().getRight();
|
|
65
65
|
!e2.isNone() && n.BuiltInDefinitions.get(e2.getStyle()).width > 1 && (Q2 = 1);
|
|
66
|
-
const t2 =
|
|
66
|
+
const t2 = E2.getBorder().getBottom();
|
|
67
67
|
!t2.isNone() && n.BuiltInDefinitions.get(t2.getStyle()).width > 1 && (ee2 = 1);
|
|
68
68
|
}
|
|
69
69
|
let te2 = null;
|
|
@@ -74,19 +74,19 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
74
74
|
let oe2 = null;
|
|
75
75
|
const ne2 = z2.getComments(), le2 = z2.getWarnings(), re2 = z2.getErrors();
|
|
76
76
|
if (ne2 || N2 || re2.length > 0 || le2.length > 0) {
|
|
77
|
-
const e2 = { size: 7 * p2, darkMode:
|
|
77
|
+
const e2 = { size: 7 * p2, darkMode: D2, cellWidth: $2 * p2 + 2, cellHeight: T2 * p2 + 2, style: { top: -1, left: W2 * p2 - 1 } };
|
|
78
78
|
oe2 = oe2 ?? [], (le2.length > 0 || re2.length > 0 || N2) && oe2.push(G(Je, { anchorLocation: X.TopLeft, ...e2 }, `indicator-${oe2.length}`)), ne2 && oe2.push(G(Je, { anchorLocation: X.TopRight, ...e2 }, `indicator-${oe2.length}`));
|
|
79
79
|
}
|
|
80
|
-
const ie2 =
|
|
80
|
+
const ie2 = E2.getFont();
|
|
81
81
|
let ae2 = I2?.conditionalColor;
|
|
82
|
-
const se2 =
|
|
82
|
+
const se2 = E2.getAlignment(), de2 = se2.getHorizontal() === l.HorizontalAlignment.Fill, ce2 = se2.getHorizontal() === l.HorizontalAlignment.CenterContinuous || de2, ge2 = ce2 || B2 ? 0 : se2.getRotation(), ue2 = z2.getInsets(), he2 = ue2.top + ue2.bottom;
|
|
83
83
|
let me2 = ue2.left, pe2 = ue2.right;
|
|
84
84
|
const fe2 = { ...h2, left: h2.left - 1, top: h2.top - 1, width: h2.width + 1 + Q2, height: h2.height + 1 + ee2 }, we2 = z2.getColumnFilter(), qe2 = we2 && !we2?.hasHiddenButton();
|
|
85
85
|
let ve2 = null;
|
|
86
86
|
j2 && (ve2 = Z("div", { className: "slider", children: [G("div", { className: "line" }), G("div", { className: "subline inc" })] }, "pending"));
|
|
87
|
-
const ye2 = !(j2 || qe2 || te2 || u2 || oe2 || U2?.runs.length > 1 ||
|
|
87
|
+
const ye2 = !(j2 || qe2 || te2 || u2 || oe2 || U2?.runs.length > 1 || H2 || ge2 % 360 != 0);
|
|
88
88
|
"none" === J2?.background && (J2 = null);
|
|
89
|
-
let Ce2 = ce2 || !(!
|
|
89
|
+
let Ce2 = ce2 || !(!H2 || !(H2.rightIndex > 0 || H2.leftIndex > 0 || H2.colSpan > 1));
|
|
90
90
|
if (!Ce2) {
|
|
91
91
|
const e2 = z2.getSpans();
|
|
92
92
|
(e2.width > 1 || e2.height > 1) && (Ce2 = true);
|
|
@@ -126,8 +126,8 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
126
126
|
} }), o2 = { ...e3, width: e3.width + me2 + pe2 };
|
|
127
127
|
}
|
|
128
128
|
if (!f3 && z2.getType() !== i.String && Math.floor(o2.width) > c4) {
|
|
129
|
-
if ("General" ===
|
|
130
|
-
const e3 =
|
|
129
|
+
if ("General" === E2.getNumberFormat() && z2.getType() === i.Number) {
|
|
130
|
+
const e3 = E2.measureText("0"), t2 = Math.floor(c4 / e3.width), o3 = F2, n3 = K.splitNumber(o3), l2 = Math.min(10, t2 - (Math.max(1, n3.ipLength) + 1) - (o3 < 0 ? 1 : 0));
|
|
131
131
|
if (l2 >= -1) {
|
|
132
132
|
const e4 = `0${l2 > 0 ? "." : ""}${"#".repeat(Math.max(0, l2))}`;
|
|
133
133
|
m3 = z2.getNumberFormat(e4).displayText, "0" === m3 && o3 < 0 && (m3 = "-0");
|
|
@@ -142,11 +142,11 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
142
142
|
m3 || (f3 = "#");
|
|
143
143
|
}
|
|
144
144
|
if (!f3 && U2?.lastRepeatIndex >= 0 && U2?.width > c4 && (f3 = "#"), f3 && c4 > 0) {
|
|
145
|
-
const e3 =
|
|
145
|
+
const e3 = E2.measureText(f3), t2 = Math.floor((c4 || 1) / (e3?.width || 1));
|
|
146
146
|
m3 = t2 > 0 ? f3.repeat(t2) : "";
|
|
147
147
|
}
|
|
148
148
|
if (B2 && (_2 = l.HorizontalAlignment.Left), m3) {
|
|
149
|
-
const e3 =
|
|
149
|
+
const e3 = E2.measureText(m3).width;
|
|
150
150
|
e3 && (o2 = { ...o2, width: e3 });
|
|
151
151
|
}
|
|
152
152
|
if (n2 = { ...o2, width: o2.width + me2 + pe2, height: o2.height }, ge2 && !e2) {
|
|
@@ -157,9 +157,9 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
157
157
|
const q3 = ye2 ? { ...M2 } : void 0, v3 = { style: { left: h2.left - 1, top: h2.top - 1, width: h2.width + 1, height: h2.height + 1, transform: ge2 ? `rotate(${ge2}deg)` : void 0, cursor: S2 ? "pointer" : void 0, pointerEvents: S2 ? "auto" : void 0, zIndex: Ce2 ? 1 : void 0, ...J2 }, onMouseDown: S2, onDoubleClick: S2 ? (e3) => {
|
|
158
158
|
e3.stopPropagation(), e3.preventDefault();
|
|
159
159
|
} : null, ...q3 };
|
|
160
|
-
|
|
160
|
+
L2 && (v3.style.textDecorationStyle = "wavy", v3.style.textDecorationColor = D2 ? "rgb(0, 255, 255)" : "red", v3.style.textDecorationLine = "underline");
|
|
161
161
|
const y3 = ie2.getSize(), C2 = (i2, s4, g4, u4, h3, m4, f4, w4 = null) => {
|
|
162
|
-
let q4 = y3 * p2, v4 = g4, C3 = f4?.runs ? f4.runs : [{ type: t.ParseRunType.Text, text: i2, width:
|
|
162
|
+
let q4 = y3 * p2, v4 = g4, C3 = f4?.runs ? f4.runs : [{ type: t.ParseRunType.Text, text: i2, width: E2.measureText(i2, q4).width }];
|
|
163
163
|
f4 && f4?.width !== o2.width && (o2 = { ...o2, width: f4?.width });
|
|
164
164
|
let b3 = me2;
|
|
165
165
|
if (f4?.lastRepeatIndex >= 0 && c4 > f4?.width) {
|
|
@@ -189,14 +189,14 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
189
189
|
const e3 = ie2.getSuperSubScale();
|
|
190
190
|
q4 *= e3, M3 *= e3;
|
|
191
191
|
}
|
|
192
|
-
const F3 = { textAlign: y4, textAlignLast: y4, ...S4, ...ie2.toCSS(
|
|
193
|
-
ye2 || (F3.background = void 0), ae2 && (F3.color = ae2.toCSS(
|
|
194
|
-
const
|
|
192
|
+
const F3 = { textAlign: y4, textAlignLast: y4, ...S4, ...ie2.toCSS(D2, p2, true), fontSize: q4 * a.getDeviceScale() };
|
|
193
|
+
ye2 || (F3.background = void 0), ae2 && (F3.color = ae2.toCSS(D2));
|
|
194
|
+
const E3 = b3 + o3;
|
|
195
195
|
let V3 = ue2.top + v4.y + 0;
|
|
196
196
|
if (A3 && (V3 += f5 - q4), c5) {
|
|
197
|
-
const e3 = (g5.x +
|
|
197
|
+
const e3 = (g5.x + E3) * p2 + 1, t3 = (g5.y + V3) * p2 + 1;
|
|
198
198
|
t3 < 0 ? F3.marginTop = t3 : F3.paddingTop = t3, e3 < 0 ? (F3.width = (S4?.width ?? 0) - e3, F3.left = (S4?.left ?? 0) + e3) : F3.paddingLeft = e3, F3.paddingRight = Math.max(0, (S4?.width ?? 0) - C4 * p2 - e3), F3.paddingBottom = Math.max(0, (S4?.height ?? 0) - v4.height * p2 - t3), F3.height = (S4?.height ?? 0) + (t3 < 0 ? -t3 : 0), (t3 < 0 || e3 < 0) && (F3.clipPath = `inset(${t3 < 0 ? -t3 : 0}px 0px 0px ${e3 < 0 ? 1 - e3 : 0}px)`);
|
|
199
|
-
} else if (F3.left = (g5.x +
|
|
199
|
+
} else if (F3.left = (g5.x + E3) * p2 + 1, F3.top = (g5.y + V3) * p2 + 1, F3.width = g5.width * p2, F3.height = g5.height * p2, ge2 && !e2) {
|
|
200
200
|
F3.left = (g5.x + o3) * p2 + 1, F3.top = (g5.y + (v4.y + 0)) * p2 + 1;
|
|
201
201
|
const e3 = r.centerPoint({ x: b3 + o3, y: 0, width: t2.width, height: v4.height }), n4 = r.centerPoint({ x: b3, y: 0, width: s5, height: v4.height }), l2 = r.rotatePoints([e3], ge2, n4), i4 = { x: l2[0].x - e3.x, y: l2[0].y - e3.y };
|
|
202
202
|
F3.left = F3.left + i4.x * p2, F3.top = F3.top + i4.y * p2;
|
|
@@ -213,7 +213,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
213
213
|
let e3 = o2?.width ?? 0, t2 = 0;
|
|
214
214
|
for (; e3 > 1 && e3 > c4 && q4 > 2 && t2 < 100; ) {
|
|
215
215
|
q4 *= c4 / e3;
|
|
216
|
-
e3 =
|
|
216
|
+
e3 = E2.measureText(i2, q4).width, t2++;
|
|
217
217
|
}
|
|
218
218
|
o2 = { ...o2, width: e3 };
|
|
219
219
|
}
|
|
@@ -244,7 +244,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
244
244
|
let Se2 = S2 ? "auto" : fe2.pointerEvents, xe2 = null;
|
|
245
245
|
if (qe2) {
|
|
246
246
|
const e2 = { x: W2 * p2 - 1, y: -1, width: $2 * p2 + 1, height: T2 * p2 + 1 };
|
|
247
|
-
Se2 = "auto", xe2 = R2({ renderBounds: e2, darkMode:
|
|
247
|
+
Se2 = "auto", xe2 = R2({ renderBounds: e2, darkMode: D2, className: "filter-button", disabled: !z2.isEditAllowed(), zoom: p2, filter: z2.getColumnFilter(), onFilterButtonMouseDown: x2, ...k2 }), xe2 && (xe2 = G("div", { style: { ...e2, position: "absolute", zIndex: 2, display: "flex", alignItems: "end" }, onDoubleClick: (e3) => {
|
|
248
248
|
e3.stopPropagation(), e3.preventDefault();
|
|
249
249
|
}, children: xe2 }, "filterButton"));
|
|
250
250
|
}
|
|
@@ -256,7 +256,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
256
256
|
const o2 = t2 ?? e2.dirty ?? "";
|
|
257
257
|
return 0 === o2.length || o2.endsWith("%") && !isNaN(parseFloat(o2.substring(0, o2.length - 1)));
|
|
258
258
|
}, nt = Object.freeze([x.Delete, x.Home, x.End]), lt = ee(ne((e2, t2) => {
|
|
259
|
-
const { editState: o2, onStartEdit: n2, onChangeEdit: r2, onSubmitEdit: d2, onCancelEdit: c2, onDoneEdit: g2, defaultTextStyle: u2, useRichStyling: h2 = true, bodyStyle: m2, activeCoords: p2, sheet: f2, commands: w2, containerBounds: q2, setNaturalDimensions: v2, onFocus: y2, disabled: C2, style: z2, zoom: F2 = 1, linesVisible:
|
|
259
|
+
const { editState: o2, onStartEdit: n2, onChangeEdit: r2, onSubmitEdit: d2, onCancelEdit: c2, onDoneEdit: g2, defaultTextStyle: u2, useRichStyling: h2 = true, bodyStyle: m2, activeCoords: p2, sheet: f2, commands: w2, containerBounds: q2, setNaturalDimensions: v2, onFocus: y2, disabled: C2, style: z2, zoom: F2 = 1, linesVisible: E2, autoFocus: D2 = false, ...I2 } = e2, { height: V2 = 0, width: N2 = 0 } = q2 ?? {}, L2 = m2?.darkMode ?? false, H2 = le(null), [B2, O2] = oe(false), [P2, $2] = oe(null), [W2, U2] = oe(() => o2);
|
|
260
260
|
re(() => {
|
|
261
261
|
ne2.current = false, U2(o2);
|
|
262
262
|
}, [o2]);
|
|
@@ -285,8 +285,8 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
285
285
|
return { text: e4.dirty ?? "", placeholder: "" };
|
|
286
286
|
})(W2), c3 = d3.text, g3 = l.toCSSHorizontalTextAlign(h2 && !o3 ? W2.clean()?.getRenderHorizontalAlignment() : l.HorizontalAlignment.Left);
|
|
287
287
|
return { style: t3, isWrapped: s2, textValue: c3, formula: o3, frameVertAlign: a2, placeholder: d3.placeholder, insets: h2 ? e3.getInsets() : Y.EmptyRect, textAlign: g3 };
|
|
288
|
-
}, [W2, u2,
|
|
289
|
-
|
|
288
|
+
}, [W2, u2, L2, F2, h2]), Z2 = le(null), j2 = b(t2, () => ({ startEdit: (e3) => {
|
|
289
|
+
H2.current = e3?.initialSelection;
|
|
290
290
|
const t3 = { ...o2, editMode: e3?.editMode ?? false };
|
|
291
291
|
void 0 !== e3?.text && (t3.dirty = e3.text), t3.editMode === o2.editMode && t3.dirty === o2.dirty || (U2(t3), J2?.(t3));
|
|
292
292
|
}, submitEdit: () => se2(), cancelEdit() {
|
|
@@ -335,7 +335,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
335
335
|
if (e3.key, e3.isDefaultPrevented(), !(e3.isTrusted || e3.nativeEvent.ctrlKey || e3.nativeEvent.metaKey || e3.nativeEvent.altKey || e3.nativeEvent.isComposing || -1 === me.indexOf(e3.nativeEvent.key) && "Backspace" !== e3.nativeEvent.key)) {
|
|
336
336
|
const t4 = { ...W2 };
|
|
337
337
|
let o4 = 0;
|
|
338
|
-
return ot(t4, t4.dirty) && !isNaN(parseFloat(e3.key)) ? (t4.dirty?.endsWith("%") ? t4.dirty = (t4.dirty.substring(0, t4.dirty.length - 1) ?? "") + e3.key + "%" : t4.dirty = (t4.dirty ?? "") + e3.key + "%", o4 = t4.dirty.length - 1) : "Backspace" === e3.nativeEvent.key ? (t4.dirty = "", o4 = t4.dirty.length) : (t4.dirty = (t4.dirty ?? "") + e3.key, o4 = t4.dirty.length), Z2.current.value = t4?.dirty,
|
|
338
|
+
return ot(t4, t4.dirty) && !isNaN(parseFloat(e3.key)) ? (t4.dirty?.endsWith("%") ? t4.dirty = (t4.dirty.substring(0, t4.dirty.length - 1) ?? "") + e3.key + "%" : t4.dirty = (t4.dirty ?? "") + e3.key + "%", o4 = t4.dirty.length - 1) : "Backspace" === e3.nativeEvent.key ? (t4.dirty = "", o4 = t4.dirty.length) : (t4.dirty = (t4.dirty ?? "") + e3.key, o4 = t4.dirty.length), Z2.current.value = t4?.dirty, H2.current = { start: o4, end: o4, direction: "forward" }, Z2.current?.setSelectionRange(o4, o4, "forward"), U2(t4), J2?.(t4), void e3.preventDefault();
|
|
339
339
|
}
|
|
340
340
|
const t3 = e3.nativeEvent.ctrlKey, o3 = e3.nativeEvent.shiftKey, n3 = e3.nativeEvent.altKey, l2 = e3.nativeEvent.metaKey;
|
|
341
341
|
if (t3 && "z" === e3.key && e3.stopPropagation(), e3.which === x.Escape) return e3.preventDefault(), void de2();
|
|
@@ -415,37 +415,37 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
415
415
|
return e3 = w2 ? w2.createChildGroup(t3, "editor", false) : new T(t3, "editor"), e3.addCommands(ye2, true), e3;
|
|
416
416
|
}, [w2, ye2]), be2 = te(() => ({ notifier: null, source: we2, target: qe2, commands: Ce2 }), [we2, qe2, Ce2]);
|
|
417
417
|
A(be2);
|
|
418
|
-
const [Se2, xe2] = oe(!
|
|
418
|
+
const [Se2, xe2] = oe(!D2);
|
|
419
419
|
re(() => {
|
|
420
420
|
xe2(false);
|
|
421
421
|
}, []);
|
|
422
422
|
const ke2 = S((e3) => {
|
|
423
423
|
O2(true), Ce2?.activate();
|
|
424
|
-
const t3 =
|
|
424
|
+
const t3 = H2.current;
|
|
425
425
|
if (false !== t3) {
|
|
426
426
|
let e4, o3;
|
|
427
427
|
const n3 = Z2.current.value;
|
|
428
|
-
ot(W2, n3) && (e4 = n3.length - 1, o3 = n3.length - 1), e4 = t3?.start ?? e4 ?? n3.length, o3 = t3?.end ?? o3 ?? n3.length,
|
|
428
|
+
ot(W2, n3) && (e4 = n3.length - 1, o3 = n3.length - 1), e4 = t3?.start ?? e4 ?? n3.length, o3 = t3?.end ?? o3 ?? n3.length, H2.current = false, $2({ start: e4, end: o3, direction: "forward" });
|
|
429
429
|
}
|
|
430
430
|
y2?.(e3);
|
|
431
431
|
}, [y2, W2]), Re2 = _2.insets;
|
|
432
432
|
let Me2 = Re2.left + 1;
|
|
433
433
|
const Te2 = Re2.left + Re2.right + 2 - 1, Ae2 = K2?.bounds.height ?? 0;
|
|
434
434
|
let ze2, Fe2 = Re2.top;
|
|
435
|
-
_2.frameVertAlign === l.VerticalAlignment.Center ? Fe2 = Math.max(0, (V2 - (Re2.top + Re2.bottom) - Ae2) / 2) : _2.frameVertAlign === l.VerticalAlignment.Bottom && (Fe2 = Math.max(0, V2 - (Re2.top + Re2.bottom) - Ae2)), void 0 !==
|
|
436
|
-
const
|
|
437
|
-
let
|
|
438
|
-
|
|
439
|
-
const Ie2 = h2 ?
|
|
435
|
+
_2.frameVertAlign === l.VerticalAlignment.Center ? Fe2 = Math.max(0, (V2 - (Re2.top + Re2.bottom) - Ae2) / 2) : _2.frameVertAlign === l.VerticalAlignment.Bottom && (Fe2 = Math.max(0, V2 - (Re2.top + Re2.bottom) - Ae2)), void 0 !== E2 && K2?.lines[0]?.bounds && (ze2 = K2?.lines[0]?.bounds.height * E2);
|
|
436
|
+
const Ee2 = _2.style.getFont();
|
|
437
|
+
let De2 = Ee2.getSize();
|
|
438
|
+
Ee2.isSuperSub() && (De2 *= Ee2.getSuperSubScale()), De2 *= a.getDeviceScale() * F2;
|
|
439
|
+
const Ie2 = h2 ? Ee2.toCSS(L2, F2) : null;
|
|
440
440
|
return G("div", { className: "sheet-cell-editor", onMouseDown: (e3) => {
|
|
441
441
|
Z2.current && document.activeElement !== Z2.current && requestAnimationFrame(() => {
|
|
442
442
|
Z2.current.focus();
|
|
443
443
|
});
|
|
444
|
-
}, ref: j2, ...I2, style: { display: "flex", flexGrow: 1, alignSelf: "stretch", height: "100%", width: "100%", maxWidth: "100%", maxHeight: "100%", cursor: "initial", ...z2 }, children: G("div", { className: "editor-placement", style: { display: "flex", flexGrow: 1, position: "relative", top: Fe2 * F2 + 1, left: Me2 * F2, width: `calc(100% - ${Te2 * F2}px)`, maxWidth: `calc(100% - ${Te2 * F2}px)`, height: (ze2 ?? Ae2) * F2, maxHeight: (ze2 ?? Ae2) * F2 }, children: G("textarea", { spellCheck: "false", placeholder: _2.placeholder, ref: Z2, value: _2.textValue, disabled: Se2, readOnly: C2 || f2.getProtection().isReadOnly(), name: "sheet-cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", font: "inherit", ...Ie2, fontSize:
|
|
444
|
+
}, ref: j2, ...I2, style: { display: "flex", flexGrow: 1, alignSelf: "stretch", height: "100%", width: "100%", maxWidth: "100%", maxHeight: "100%", cursor: "initial", ...z2 }, children: G("div", { className: "editor-placement", style: { display: "flex", flexGrow: 1, position: "relative", top: Fe2 * F2 + 1, left: Me2 * F2, width: `calc(100% - ${Te2 * F2}px)`, maxWidth: `calc(100% - ${Te2 * F2}px)`, height: (ze2 ?? Ae2) * F2, maxHeight: (ze2 ?? Ae2) * F2 }, children: G("textarea", { spellCheck: "false", placeholder: _2.placeholder, ref: Z2, value: _2.textValue, disabled: Se2, readOnly: C2 || f2.getProtection().isReadOnly(), name: "sheet-cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", font: "inherit", ...Ie2, fontSize: De2 ? `${De2}px` : "inherit", textAlign: _2.textAlign, lineHeight: (K2?.lines[0]?.bounds.height ?? 0) * F2 + "px", height: (K2?.bounds.height ?? 0) * F2, boxSizing: "border-box", padding: "0px", margin: "0px", borderWidth: 0, outline: "none", resize: "none", overflow: "hidden", background: "transparent", maxHeight: "100%", maxWidth: "100%", width: "100%", userSelect: "text", position: "absolute", whiteSpace: _2.isWrapped ? "normal" : "pre", wordWrap: "break-word" }, onFocus: ke2, onBlur: () => {
|
|
445
445
|
O2(false);
|
|
446
446
|
}, onSelect: (e3) => {
|
|
447
447
|
}, onChange: (e3) => {
|
|
448
|
-
Z2.current && !ne2.current && (
|
|
448
|
+
Z2.current && !ne2.current && (H2.current = false, Q2(e3.target.value), _2.textValue, e3.target.value, e3.target.selectionStart, e3.target.selectionEnd, e3.target.selectionDirection, $2({ start: e3.target.selectionStart, end: e3.target.selectionEnd, direction: e3.target.selectionDirection }));
|
|
449
449
|
}, onMouseDown: (e3) => {
|
|
450
450
|
B2 && ee2(true);
|
|
451
451
|
}, onKeyDown: ce2 }) }) });
|
|
@@ -695,7 +695,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
695
695
|
}, [e2, t2]);
|
|
696
696
|
}, St = new h("transparent");
|
|
697
697
|
function xt(e2) {
|
|
698
|
-
const { sheet: r2, onRepeatCommandChange: i2, bodyStyle: d2, commands: h2, target: p2, notifier: f2, onStartEdit: w2, getViewport: q2 } = e2, [v2, y2] = oe(null), [C2, b2] = oe(null), x2 = le(null), A2 = S(w2, [w2]), I2 = S(q2, [q2]), [V2, N2] = oe(), [
|
|
698
|
+
const { sheet: r2, onRepeatCommandChange: i2, bodyStyle: d2, commands: h2, target: p2, notifier: f2, onStartEdit: w2, getViewport: q2 } = e2, [v2, y2] = oe(null), [C2, b2] = oe(null), x2 = le(null), A2 = S(w2, [w2]), I2 = S(q2, [q2]), [V2, N2] = oe(), [L2, H2] = oe(() => r2?.getStyles().parseColor(c.Scheme.Bg2)), [B2, O2] = oe(() => r2?.getStyles().getNormal().getFont().getFill()), P2 = z();
|
|
699
699
|
le(P2.getMode()).current = P2.getMode();
|
|
700
700
|
const $2 = F(), [W2, U2] = oe(K.EmptyArray), _2 = ae(() => {
|
|
701
701
|
if (x2.current !== r2) return;
|
|
@@ -970,7 +970,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
970
970
|
} catch (e4) {
|
|
971
971
|
n2();
|
|
972
972
|
let t3 = e4;
|
|
973
|
-
"string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."), f2?.showMessage?.(t3, { type:
|
|
973
|
+
"string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."), f2?.showMessage?.(t3, { type: E.Error });
|
|
974
974
|
}
|
|
975
975
|
}, [r2, f2]), Re2 = S((e3, t2) => {
|
|
976
976
|
Y2(e3, async (o2) => {
|
|
@@ -998,7 +998,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
998
998
|
o2 && (e3 = o2.toTextUnformatted(true));
|
|
999
999
|
}
|
|
1000
1000
|
A2?.({ text: e3 });
|
|
1001
|
-
}, [r2]), [Ae2, ze2] = se((e3) => e3 + 1, 0), [Fe2,
|
|
1001
|
+
}, [r2]), [Ae2, ze2] = se((e3) => e3 + 1, 0), [Fe2, Ee2] = se((e3) => e3 + 1, 0), De2 = te(() => [new R("gridlinesToggle", p2, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new R("sheetViewToggleGridlinesRows", p2, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new R("sheetViewToggleGridlinesColumns", p2, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new R("sheetViewFormatGridlinesColor", p2, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new R("sheetViewToggleShowHeadings", p2, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new R("sheetViewToggleShowHeadingRows", p2, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new R("sheetViewToggleShowHeadingColumns", p2, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new R("sheetViewToggleShowHeadingsNumeric", p2, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [M.Ctrl, M.Shift] } }), new R("sheetViewToggleFormulaView", p2, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", shortcut: [{ key: "`", modifiers: [M.Ctrl] }, { key: "`", modifiers: [M.Ctrl, M.Shift] }] }), new R("sheetViewToggleShowZeros", p2, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank." }), new k("selectComments", p2, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [M.Ctrl, M.Shift] } }, () => be2()), new R("selectAll", p2, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [M.Ctrl] }, { key: "Space", modifiers: [M.Ctrl, M.Shift] }] }, (e3 = false) => Se2(false, e3)), new k("selectRegion", p2, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [M.Ctrl, M.Shift] } }, () => Se2(true, false)), new k("breakSelection", p2, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl, M.Alt] } }, () => Ce2()), new k("formatTextRotate0", p2, { label: "No Text Rotation", description: "Remove all text rotation." }), new k("formatTextRotate45", p2, { label: "Angle Clockwise", description: "Angle text 45 degrees downward." }), new k("formatTextRotate90", p2, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left." }), new k("formatTextRotate270", p2, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right." }), new k("formatTextRotate315", p2, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward." }), new R("formatTextRotateCustom", p2, { label: "Custom Text Rotation", description: "Angle your text using a custom angle." }), new k("formatTextRotateVertical", p2, { label: "Vertical Text", description: "Stack text vertically." }), new k("sortAscending", p2, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest." }, function() {
|
|
1002
1002
|
ye2(this, { reverse: false }, false);
|
|
1003
1003
|
}), new k("sortDescending", p2, { label: "Sort Descending", scopedLabels: { sort: "Descending" }, description: "Highest to Lowest." }, function() {
|
|
1004
1004
|
ye2(this, { reverse: true }, false);
|
|
@@ -1054,23 +1054,23 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1054
1054
|
}), new R("formatNumberFormatDecreaseDecimal", p2, { label: "Decrease Decimal", description: "Show few decimal places." }, function() {
|
|
1055
1055
|
Q2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), -1) }));
|
|
1056
1056
|
}), new R("displayPlaceholdersToggle", p2, { label: "Display Placeholders", description: "Switch between hiding objects, displaying objects, and displaying placeholders for objects.", shortcut: { key: "6", modifiers: [M.Ctrl] } }), new k("noOp", p2, { label: "Do nothing", description: "Do Nothing.", shortcut: { key: "7", modifiers: [M.Ctrl] } }, function() {
|
|
1057
|
-
}), new R("displayOutlineSymbolsToggle", p2, { label: "Display Outline Symbols", description: "Display or hide the outline symbols.", shortcut: { key: "8", modifiers: [M.Ctrl] } }), new R("hideRows", p2, { label: "Hide Rows", description: "Hide the rows.", shortcut: { key: "9", modifiers: [M.Ctrl] } }), new R("unhideRows", p2, { label: "Unhide Rows", description: "Unhide the rows.", shortcut: { key: "(", modifiers: [M.Ctrl, M.Shift] } }), new R("hideColumns", p2, { label: "Hide Columns", description: "Hide the columns.", shortcut: [{ key: "0", modifiers: [M.Ctrl] }, { key: "0", modifiers: [M.Ctrl, M.Alt] }] }), new R("unhideColumns", p2, { label: "Unhide Columns", description: "Unhide the columns.", shortcut: { key: ")", modifiers: [M.Ctrl, M.Shift] } }), new R("
|
|
1057
|
+
}), new R("displayOutlineSymbolsToggle", p2, { label: "Display Outline Symbols", description: "Display or hide the outline symbols.", shortcut: { key: "8", modifiers: [M.Ctrl] } }), new R("hideRows", p2, { label: "Hide Rows", description: "Hide the rows.", shortcut: { key: "9", modifiers: [M.Ctrl] } }), new R("unhideRows", p2, { label: "Unhide Rows", description: "Unhide the rows.", shortcut: { key: "(", modifiers: [M.Ctrl, M.Shift] } }), new R("hideColumns", p2, { label: "Hide Columns", description: "Hide the columns.", shortcut: [{ key: "0", modifiers: [M.Ctrl] }, { key: "0", modifiers: [M.Ctrl, M.Alt] }] }), new R("unhideColumns", p2, { label: "Unhide Columns", description: "Unhide the columns.", shortcut: { key: ")", modifiers: [M.Ctrl, M.Shift] } }), new k("calculate", p2, { label: "Calculate Sheet", description: "Recalculate the formulas on the current sheet.", shortcut: { key: "=", modifiers: [M.Ctrl] } }), new R("insertFunction", p2, { label: "Insert Function", disabled: true, scopedLabels: { insert: "Function", insertFunction: "More Functions..." }, description: "Work with the function in the current cell.", shortcut: { key: "F3", modifiers: [M.Shift] } }, function(e3, t2) {
|
|
1058
|
+
console.log("insertFunction");
|
|
1059
|
+
}), new R("insertFunctionSum", p2, { label: "Quick Sum", scopedLabels: { insertFunction: "Sum" }, description: "Quick sum of the cells.", shortcut: { key: "=", modifiers: [M.Alt] } }, function() {
|
|
1058
1060
|
me2(this, "SUM");
|
|
1059
|
-
}), new R("
|
|
1061
|
+
}), new R("insertFunctionAverage", p2, { label: "Quick Average", scopedLabels: { insertFunction: "Average" }, description: "Quick average of the cells." }, function() {
|
|
1060
1062
|
me2(this, "AVERAGE");
|
|
1061
|
-
}), new R("
|
|
1063
|
+
}), new R("insertFunctionCount", p2, { label: "Quick Count", scopedLabels: { insertFunction: "Count Numbers" }, description: "Quick count of the cells." }, function() {
|
|
1062
1064
|
me2(this, "COUNT");
|
|
1063
|
-
}), new R("
|
|
1065
|
+
}), new R("insertFunctionMax", p2, { label: "Quick Max", scopedLabels: { insertFunction: "Max" }, description: "Quick maximum of the cells." }, function() {
|
|
1064
1066
|
me2(this, "MAX");
|
|
1065
|
-
}), new R("
|
|
1067
|
+
}), new R("insertFunctionMin", p2, { label: "Quick Min", scopedLabels: { insertFunction: "Min" }, description: "Quick minimum of the cells." }, function() {
|
|
1066
1068
|
me2(this, "MIN");
|
|
1067
1069
|
}), new R("startEditCurrentTime", p2, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1068
1070
|
A2?.({ text: r2.createTemporaryCell({ value: Ze(), style: { numberFormat: "Medium Time" } }).toText() });
|
|
1069
1071
|
}), new R("startEditCurrentDate", p2, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl] } }, function() {
|
|
1070
1072
|
A2?.({ text: r2.createTemporaryCell({ value: Ze(), style: { numberFormat: "Short Date" } }).toText() });
|
|
1071
|
-
}), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadSubtract", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadAdd", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [M.Ctrl, M.Alt] } }), new R("
|
|
1072
|
-
console.log("insertFunction");
|
|
1073
|
-
}), new R("updateHyperlink", p2, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", context: () => X2, shortcut: [{ key: "K", modifiers: [M.Ctrl] }, { key: "K", modifiers: [M.Ctrl, M.Alt] }] }, async function(e3, t2) {
|
|
1073
|
+
}), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadSubtract", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadAdd", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [M.Ctrl, M.Alt] } }), new R("updateHyperlink", p2, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", context: () => X2, shortcut: [{ key: "K", modifiers: [M.Ctrl] }, { key: "K", modifiers: [M.Ctrl, M.Alt] }] }, async function(e3, t2) {
|
|
1074
1074
|
const o2 = this, n2 = { context: t2.context(), onUpdateHyperlink: (e4, t3) => {
|
|
1075
1075
|
ee2(o2, e4, t3);
|
|
1076
1076
|
} };
|
|
@@ -1183,8 +1183,8 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1183
1183
|
ie2(this);
|
|
1184
1184
|
}), new R("freezeToggle", p2, { label: "Freeze Panes", description: "Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)." }), new R("freezeToggleHorizontal", p2, { label: "Freeze Top Rows", description: "Keep the top rows visible while scrolling through the rest of the sheet." }), new R("freezeToggleVertical", p2, { label: "Freeze Left Columns", description: "Keep the left columns visible while scrolling through the rest of the sheet." }), new k("unfreeze", p2, { label: "Unfreeze Panes", description: "Unfreeze both the rows and columns." }), new k("autoFitRows", p2, { label: "Autofit Rows", description: "Adjust the rows to the best height." }), new k("autoFitColumns", p2, { label: "Autofit Columns", description: "Adjust the columns to the best width." })], []), Ie2 = te(() => {
|
|
1185
1185
|
let e3 = null;
|
|
1186
|
-
return e3 = h2 ? h2.createChildGroup(p2, "sheet", false) : new T(p2, "sheet"), e3.addCommands(
|
|
1187
|
-
}, [h2,
|
|
1186
|
+
return e3 = h2 ? h2.createChildGroup(p2, "sheet", false) : new T(p2, "sheet"), e3.addCommands(De2, true), e3;
|
|
1187
|
+
}, [h2, De2]), [Ve2, Ne2] = oe(false), [Le2, He2] = oe(false);
|
|
1188
1188
|
re(() => {
|
|
1189
1189
|
if (x2.current !== r2 || !C2) return;
|
|
1190
1190
|
const e3 = C2.getCoords(), t2 = r2.getTables().getItems({ address: e3[0] });
|
|
@@ -1192,15 +1192,15 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1192
1192
|
const o2 = r2.getSelectedRanges(), n2 = o2.getMerges().length > 0, l2 = o2.isOverlapping();
|
|
1193
1193
|
let i3 = true;
|
|
1194
1194
|
for (let t3 = 0; i3 && t3 < e3.length; t3++) i3 = J.isSingleCell(e3[t3]);
|
|
1195
|
-
|
|
1196
|
-
}, [Fe2, C2, r2]),
|
|
1195
|
+
He2(l2), Ne2(0 === t2.length && !l2 && (n2 || !i3));
|
|
1196
|
+
}, [Fe2, C2, r2]), D(h2, null, { onChange: () => {
|
|
1197
1197
|
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = "formatPainter" === P2.getMode()?.key;
|
|
1198
1198
|
Ie2.getCommand("formatPainterToggle").update({ disabled: e3 || !h2?.getCommand("copy"), state: () => t2 }).updateCallback(() => {
|
|
1199
1199
|
if (t2) return void P2.setMode(null);
|
|
1200
1200
|
return Ie2.getCommand("copy").execute({ editMode: { key: "formatPainter", description: "Use the mouse to apply the copied format to another selection.", cursor: `url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='black' fill='white'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer` } });
|
|
1201
1201
|
});
|
|
1202
1202
|
} }, [P2, Ae2, h2]), Ct(r2.getView(), { onFreezeSplitChange: () => {
|
|
1203
|
-
|
|
1203
|
+
Ee2();
|
|
1204
1204
|
} }), Ct(r2.getSelection(), { onChange: () => {
|
|
1205
1205
|
j2();
|
|
1206
1206
|
} });
|
|
@@ -1231,15 +1231,15 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1231
1231
|
}, onTabColorChange: () => {
|
|
1232
1232
|
Be2();
|
|
1233
1233
|
}, onMergesChange: () => {
|
|
1234
|
-
|
|
1234
|
+
Ee2();
|
|
1235
1235
|
}, onMovablesChange: () => {
|
|
1236
|
-
|
|
1236
|
+
Ee2();
|
|
1237
1237
|
}, onTablesChange: () => {
|
|
1238
|
-
|
|
1238
|
+
Ee2();
|
|
1239
1239
|
}, onProtectionChange: () => {
|
|
1240
|
-
|
|
1240
|
+
Ee2(), ze2();
|
|
1241
1241
|
}, onStyleChange: () => {
|
|
1242
|
-
Be2(), Oe2(),
|
|
1242
|
+
Be2(), Oe2(), Ee2();
|
|
1243
1243
|
} }), re(() => {
|
|
1244
1244
|
Be2(), Oe2();
|
|
1245
1245
|
}, [d2]), re(() => {
|
|
@@ -1279,7 +1279,14 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1279
1279
|
r2.getView().update({ showFormulas: !r2.getView().isShowFormulas() });
|
|
1280
1280
|
}), Ie2.getCommand("sheetViewToggleShowZeros").updateCallback(() => {
|
|
1281
1281
|
r2.getView().update({ showZeros: !r2.getView().isShowZeros() });
|
|
1282
|
-
})
|
|
1282
|
+
}), Ie2.getCommand("calculate").updateCallback(() => {
|
|
1283
|
+
r2.getEntireRange().calculate(true);
|
|
1284
|
+
}), Ie2.getCommand("insertFunction").update({ context: () => ({ searchByCategory: async (e3) => {
|
|
1285
|
+
const t2 = r2.getWorkbook();
|
|
1286
|
+
if (!t2) return K.EmptyArray;
|
|
1287
|
+
const o2 = await t2.getScripts().searchFunctions({ category: e3 });
|
|
1288
|
+
return console.log("category", e3, o2), o2;
|
|
1289
|
+
} }) });
|
|
1283
1290
|
}, [r2]), re(() => {
|
|
1284
1291
|
const e3 = r2.getView().getFreezePanes(), t2 = () => 0 !== e3.coords.rowIndex, o2 = () => 0 !== e3.coords.colIndex, n2 = () => 0 !== e3.coords.rowIndex || 0 !== e3.coords.colIndex;
|
|
1285
1292
|
Ie2.getCommand("freezeToggle").updateCallback(() => {
|
|
@@ -1301,8 +1308,8 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1301
1308
|
}, context: () => {
|
|
1302
1309
|
const e4 = r2.getStyles();
|
|
1303
1310
|
return { onColorSelect: (e5) => {
|
|
1304
|
-
|
|
1305
|
-
}, darkMode: d2.darkMode, quickColor:
|
|
1311
|
+
H2(e5 ?? St);
|
|
1312
|
+
}, darkMode: d2.darkMode, quickColor: L2, autoColor: St, schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
|
|
1306
1313
|
} }), Ie2.getCommand("formatFontColor").update({ state: () => $e2.toJSON()?.fill ? $e2.getFill() : null, context: () => {
|
|
1307
1314
|
const e4 = r2.getStyles();
|
|
1308
1315
|
return { onColorSelect: (e5) => {
|
|
@@ -1450,7 +1457,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1450
1457
|
}).update({ disabled: x3 || k2, state: 315 === je2 }), Ie2.getCommand("formatTextRotateCustom").updateCallback(function(e4) {
|
|
1451
1458
|
Q2(this, { alignment: { rotation: e4 } });
|
|
1452
1459
|
}).update({ disabled: x3 || k2, state: je2 ?? 0 });
|
|
1453
|
-
}, [Pe2, r2, d2,
|
|
1460
|
+
}, [Pe2, r2, d2, L2, B2]), re(() => {
|
|
1454
1461
|
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = r2.getSelectedRanges().getMerges().length > 0, o2 = async (e4, t3) => {
|
|
1455
1462
|
Y2(t3, async (o3) => {
|
|
1456
1463
|
const n3 = async (n4 = false) => {
|
|
@@ -1527,12 +1534,12 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1527
1534
|
});
|
|
1528
1535
|
}).update(i3);
|
|
1529
1536
|
let a2 = false, d3 = 0, c2 = false, g2 = false, u2 = 0, h3 = false;
|
|
1530
|
-
!C2 || e3 ||
|
|
1537
|
+
!C2 || e3 || Le2 || (a2 = C2.isEntireColumnsAny(), a2 && !C2.isEntireColumns() ? c2 = true : d3 = C2.getColumnCount(), g2 = C2.isEntireRowsAny(), g2 && !C2.isEntireRows() ? h3 = true : u2 = C2.getRowCount());
|
|
1531
1538
|
const m2 = { disabled: e3 || C2 && 1 !== C2.getCount() };
|
|
1532
1539
|
Ie2.getCommand("sortAscending").update(m2), Ie2.getCommand("sortDescending").update(m2);
|
|
1533
|
-
const p3 = { disabled: a2 || g2 || e3 ||
|
|
1540
|
+
const p3 = { disabled: a2 || g2 || e3 || Le2 }, w3 = a2 || e3 || Le2 || h3;
|
|
1534
1541
|
w3 && (d3 = 1);
|
|
1535
|
-
const q3 = g2 || e3 ||
|
|
1542
|
+
const q3 = g2 || e3 || Le2 || c2;
|
|
1536
1543
|
q3 && (u2 = 1);
|
|
1537
1544
|
let v3 = "", y3 = "", b3 = "", S2 = "", x3 = "", k2 = "", R2 = "", M2 = "", T2 = "";
|
|
1538
1545
|
d3 > 1 && (k2 = y3 = d3 + " ", R2 = b3 = "s"), u2 > 1 && (M2 = S2 = u2 + " ", T2 = x3 = "s"), "copy" === P2.getMode()?.key ? (v3 = S2 = y3 = "Copied ", b3 = x3 = "s") : "cut" === P2.getMode()?.key && (v3 = S2 = y3 = "Cut ", b3 = x3 = "s");
|
|
@@ -1542,7 +1549,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1542
1549
|
A3 = ` (${e4 ? "Shift Right" : "Shift Down"})`, z2 = ` (${e4 ? "Shift Left" : "Shift up"})`, Ie2.getCommand("deleteCells").update({ label: `Delete Cells${z2}` });
|
|
1543
1550
|
}
|
|
1544
1551
|
Ie2.getCommand("insertCells").update({ label: `Insert ${v3}Cells${A3}`, scopedLabels: { insertCells: `${v3}At Selection` } }), Ie2.getCommand("insertCellsShiftRight").update(p3), Ie2.getCommand("insertCellsShiftDown").update(p3), Ie2.getCommand("deleteCellsShiftUp").update(p3), Ie2.getCommand("deleteCellsShiftLeft").update(p3), Ie2.getCommand("insertRows").update({ label: `Insert ${S2}Row${x3}`, scopedLabels: { insertCells: `${S2}Row${x3}` }, disabled: q3 }), Ie2.getCommand("insertRowsAfter").update({ label: `Insert ${S2}Row${x3} Below`, disabled: q3 }), Ie2.getCommand("insertColumns").update({ label: `Insert ${y3}Column${b3}`, scopedLabels: { insertCells: `${y3}Column${b3}` }, disabled: w3 }), Ie2.getCommand("insertColumnsAfter").update({ label: `Insert ${y3}Column${b3} After`, disabled: w3 }), Ie2.getCommand("deleteRows").update({ label: `Delete ${M2}Row${T2}`, scopedLabels: { deleteCells: `${M2}Row${T2}` }, disabled: q3 }), Ie2.getCommand("deleteColumns").update({ label: `Delete ${k2}Column${R2}`, scopedLabels: { deleteCells: `${k2}Column${R2}` }, disabled: w3 });
|
|
1545
|
-
}, [Fe2, Ve2,
|
|
1552
|
+
}, [Fe2, Ve2, Le2, C2, P2, f2, Ae2]), re(() => {
|
|
1546
1553
|
const e3 = r2.getProtection(), t2 = r2.getProtection().isLocked(), o2 = !e3.isFormatCellsAllowed(), n2 = { disabled: o2 };
|
|
1547
1554
|
Ie2.getCommand("protectionSheetToggle").updateCallback(async (o3, n3) => {
|
|
1548
1555
|
let l2 = null;
|
|
@@ -1560,7 +1567,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1560
1567
|
} catch (e4) {
|
|
1561
1568
|
l2?.(), f2?.showError?.(e4);
|
|
1562
1569
|
}
|
|
1563
|
-
}).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }), Ie2.getCommand("deleteTable").update(n2), Ie2.getCommand("sortAscending").update(n2), Ie2.getCommand("sortDescending").update(n2), Ie2.getCommand("sortCustom")?.update(n2), Ie2.getCommand("updateComments").update(n2), Ie2.getCommand("deleteComments").update(n2), Ie2.getCommand("insertChart")?.update(n2), Ie2.getCommand("insertImageFromFile").update(n2), Ie2.getCommand("insertImageFromURL").update(n2), Ie2.getCommand("formatBorder").update(n2), Ie2.getCommand("formatFillColor").update(n2), Ie2.getCommand("formatFontColor").update(n2), Ie2.getCommand("formatBoldToggle").update(n2), Ie2.getCommand("formatItalicToggle").update(n2), Ie2.getCommand("formatUnderlinedToggle").update(n2), Ie2.getCommand("formatStrikeThroughToggle").update(n2), Ie2.getCommand("formatSuperscriptToggle").update(n2), Ie2.getCommand("formatSubscriptToggle").update(n2), Ie2.getCommand("formatAlignTopToggle").update(n2), Ie2.getCommand("formatTextOverflowVisibleToggle").update(n2), Ie2.getCommand("formatTextOverflowWrapToggle").update(n2), Ie2.getCommand("formatTextOverflowClipToggle").update(n2), Ie2.getCommand("formatTextOverflowShrinkToggle").update(n2), Ie2.getCommand("formatAlignMiddleToggle").update(n2), Ie2.getCommand("formatAlignBottomToggle").update(n2), Ie2.getCommand("formatAlignDistributedVerticalToggle").update(n2), Ie2.getCommand("formatAlignJustifyVerticalToggle").update(n2), Ie2.getCommand("formatAlignLeftToggle").update(n2), Ie2.getCommand("formatAlignCenterToggle").update(n2), Ie2.getCommand("formatAlignRightToggle").update(n2), Ie2.getCommand("formatAlignJustifyToggle").update(n2), Ie2.getCommand("formatAlignCenterContinuousToggle").update(n2), Ie2.getCommand("formatAlignDistributedHorizontalToggle").update(n2), Ie2.getCommand("formatAlignFillToggle").update(n2), Ie2.getCommand("formatFontSizeIncrease").update(n2), Ie2.getCommand("formatFontSizeDecrease").update(n2), Ie2.getCommand("formatFontFamily").update(n2), Ie2.getCommand("formatFontSize").update(n2), Ie2.getCommand("formatNumberFormat").update(n2), Ie2.getCommand("formatNumberFormatGeneralStyle").update(n2), Ie2.getCommand("formatNumberFormatNumberStyle").update(n2), Ie2.getCommand("formatNumberFormatTimeStyle").update(n2), Ie2.getCommand("formatNumberFormatDateStyle").update(n2), Ie2.getCommand("formatNumberFormatAccountingStyle").update(n2), Ie2.getCommand("formatNumberFormatPercentStyle").update(n2), Ie2.getCommand("formatNumberFormatScientificStyle").update(n2), Ie2.getCommand("formatNumberFormatCommaStyle").update(n2), Ie2.getCommand("formatNumberFormatIncreaseDecimal").update(n2), Ie2.getCommand("formatNumberFormatDecreaseDecimal").update(n2), Ie2.getCommand("hideColumns").update(n2), Ie2.getCommand("unhideColumns").update(n2), Ie2.getCommand("hideRows").update(n2), Ie2.getCommand("unhideRows").update(n2), Ie2.getCommand("
|
|
1570
|
+
}).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }), Ie2.getCommand("deleteTable").update(n2), Ie2.getCommand("sortAscending").update(n2), Ie2.getCommand("sortDescending").update(n2), Ie2.getCommand("sortCustom")?.update(n2), Ie2.getCommand("updateComments").update(n2), Ie2.getCommand("deleteComments").update(n2), Ie2.getCommand("insertChart")?.update(n2), Ie2.getCommand("insertImageFromFile").update(n2), Ie2.getCommand("insertImageFromURL").update(n2), Ie2.getCommand("formatBorder").update(n2), Ie2.getCommand("formatFillColor").update(n2), Ie2.getCommand("formatFontColor").update(n2), Ie2.getCommand("formatBoldToggle").update(n2), Ie2.getCommand("formatItalicToggle").update(n2), Ie2.getCommand("formatUnderlinedToggle").update(n2), Ie2.getCommand("formatStrikeThroughToggle").update(n2), Ie2.getCommand("formatSuperscriptToggle").update(n2), Ie2.getCommand("formatSubscriptToggle").update(n2), Ie2.getCommand("formatAlignTopToggle").update(n2), Ie2.getCommand("formatTextOverflowVisibleToggle").update(n2), Ie2.getCommand("formatTextOverflowWrapToggle").update(n2), Ie2.getCommand("formatTextOverflowClipToggle").update(n2), Ie2.getCommand("formatTextOverflowShrinkToggle").update(n2), Ie2.getCommand("formatAlignMiddleToggle").update(n2), Ie2.getCommand("formatAlignBottomToggle").update(n2), Ie2.getCommand("formatAlignDistributedVerticalToggle").update(n2), Ie2.getCommand("formatAlignJustifyVerticalToggle").update(n2), Ie2.getCommand("formatAlignLeftToggle").update(n2), Ie2.getCommand("formatAlignCenterToggle").update(n2), Ie2.getCommand("formatAlignRightToggle").update(n2), Ie2.getCommand("formatAlignJustifyToggle").update(n2), Ie2.getCommand("formatAlignCenterContinuousToggle").update(n2), Ie2.getCommand("formatAlignDistributedHorizontalToggle").update(n2), Ie2.getCommand("formatAlignFillToggle").update(n2), Ie2.getCommand("formatFontSizeIncrease").update(n2), Ie2.getCommand("formatFontSizeDecrease").update(n2), Ie2.getCommand("formatFontFamily").update(n2), Ie2.getCommand("formatFontSize").update(n2), Ie2.getCommand("formatNumberFormat").update(n2), Ie2.getCommand("formatNumberFormatGeneralStyle").update(n2), Ie2.getCommand("formatNumberFormatNumberStyle").update(n2), Ie2.getCommand("formatNumberFormatTimeStyle").update(n2), Ie2.getCommand("formatNumberFormatDateStyle").update(n2), Ie2.getCommand("formatNumberFormatAccountingStyle").update(n2), Ie2.getCommand("formatNumberFormatPercentStyle").update(n2), Ie2.getCommand("formatNumberFormatScientificStyle").update(n2), Ie2.getCommand("formatNumberFormatCommaStyle").update(n2), Ie2.getCommand("formatNumberFormatIncreaseDecimal").update(n2), Ie2.getCommand("formatNumberFormatDecreaseDecimal").update(n2), Ie2.getCommand("hideColumns").update(n2), Ie2.getCommand("unhideColumns").update(n2), Ie2.getCommand("hideRows").update(n2), Ie2.getCommand("unhideRows").update(n2), Ie2.getCommand("insertFunctionSum").update(n2), Ie2.getCommand("insertFunctionAverage").update(n2), Ie2.getCommand("insertFunctionCount").update(n2), Ie2.getCommand("insertFunctionMax").update(n2), Ie2.getCommand("insertFunctionMin").update(n2), Ie2.getCommand("insertFunction").update(n2), Ie2.getCommand("startEditCurrentTime").update(n2), Ie2.getCommand("startEditCurrentDate").update(n2), Ie2.getCommand("startEditValueAbove").update(n2), Ie2.getCommand("fillDown").update(n2), Ie2.getCommand("fillRight").update(n2), Ie2.getCommand("fillUp").update(n2), Ie2.getCommand("fillLeft").update(n2), Ie2.getCommand("formatCellStyle").update(n2), Ie2.getCommand("formatTableStyle").update(n2), Ie2.getCommand("formatPainterToggle").update(n2), Ie2.getCommand("formatBorderAddOutline").update(n2), Ie2.getCommand("formatBorderClearOutline").update(n2), Ie2.getCommand("formatIndentDecrease").update(n2), Ie2.getCommand("formatIndentIncrease").update(n2), Ie2.getCommand("clearContents").update(n2), Ie2.getCommand("clearFormats").update(n2), Ie2.getCommand("clearAll").update(n2), Ie2.getCommand("clearComments").update(n2), Ie2.getCommand("clearHyperlinks").update(n2), Ie2.getCommand("autoFilterClear").update(n2), Ie2.getCommand("autoFilterReapply").update(n2);
|
|
1564
1571
|
const i3 = Ue2 === l.HorizontalAlignment.CenterContinuous || Ue2 === l.HorizontalAlignment.Fill, a2 = { disabled: o2 || i3 };
|
|
1565
1572
|
Ie2.getCommand("formatTextRotate0").update(a2), Ie2.getCommand("formatTextRotate45").update(a2), Ie2.getCommand("formatTextRotate90").update(a2), Ie2.getCommand("formatTextRotate270").update(a2), Ie2.getCommand("formatTextRotate315").update(a2), Ie2.getCommand("formatTextRotateCustom").update(a2), Ie2.getCommand("formatTextRotateVertical").update(a2);
|
|
1566
1573
|
}, [Fe2]), Ie2;
|
|
@@ -1582,13 +1589,13 @@ const kt = ee(ne((e2, t2) => {
|
|
|
1582
1589
|
}, [y2, b2] = oe(v2), [x2, k2] = oe(null), [R2, M2] = oe(false), T2 = n2 === I.Vertical ? l2.getRowHeaders() : l2.getColumnHeaders(), A2 = () => {
|
|
1583
1590
|
const e3 = l2.getUsedRange()?.getCoords() ?? J.EmptyRange, t3 = l2.getSelection().getCoords().cell;
|
|
1584
1591
|
return { colIndex: Math.max(e3.colEnd, t3.colIndex), rowIndex: Math.max(e3.rowEnd, t3.rowIndex) };
|
|
1585
|
-
}, [z2, F2] = oe(A2),
|
|
1592
|
+
}, [z2, F2] = oe(A2), E2 = z2 ? (n2 === I.Vertical ? z2.rowIndex : z2.colIndex) + 1 : 0, D2 = () => {
|
|
1586
1593
|
const e3 = A2();
|
|
1587
1594
|
J.isEqualCells(z2, e3) || F2(e3);
|
|
1588
1595
|
};
|
|
1589
1596
|
Ct(l2.getView(), { onFreezeSplitChange: () => {
|
|
1590
1597
|
b2(v2);
|
|
1591
|
-
} }), Ct(l2.getSelection(), { onChange:
|
|
1598
|
+
} }), Ct(l2.getSelection(), { onChange: D2 }), Ct(l2, { onUsedRangeChange: D2 }), re(() => {
|
|
1592
1599
|
F2(A2());
|
|
1593
1600
|
}, [l2]), re(() => {
|
|
1594
1601
|
if (!x2) return R2 && p2?.(), void M2(false);
|
|
@@ -1599,8 +1606,8 @@ const kt = ee(ne((e2, t2) => {
|
|
|
1599
1606
|
q2(e3);
|
|
1600
1607
|
const n3 = e3 + y2.scroll, l3 = t3 + y2.shift, r3 = o3 + y2.shift + y2.scroll;
|
|
1601
1608
|
a2?.(n3, l3, r3);
|
|
1602
|
-
}, [a2, y2]),
|
|
1603
|
-
return G(V, { ref: f2, style: o2, offset:
|
|
1609
|
+
}, [a2, y2]), L2 = d2 - y2.scroll, H2 = g2 - y2.shift, B2 = c2 - (y2.shift + y2.scroll), O2 = T2.findOffset(E2) * (l2.getView().getZoomScale() / 100) - (y2.scroll + y2.shift);
|
|
1610
|
+
return G(V, { ref: f2, style: o2, offset: L2, viewportSize: H2, totalSize: B2, orientation: n2, showCustomScrollButtons: s2, onMouseDown: (e3) => {
|
|
1604
1611
|
k2({ anchor: { x: e3.clientX, y: e3.clientY } }), e3.preventDefault();
|
|
1605
1612
|
}, onScrollOffset: N2, onMouseOut: () => {
|
|
1606
1613
|
k2(null);
|
|
@@ -1617,11 +1624,11 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1617
1624
|
}
|
|
1618
1625
|
return n2;
|
|
1619
1626
|
}, Mt = ee(ne((e2, t2) => {
|
|
1620
|
-
const { sheetHeader: o2, gridRef: n2, sheetElement: l2, commands: r2, oppositeSize: i2 = 30, containerWidth: a2, containerHeight: d2, headerText: c2, freezeStart: g2, gridStyle: u2, verticalPadding: h2, horizontalPadding: m2, onSheetContextMenu: p2, onResizeHeadersStart: f2, onResizeHeaders: w2, onResizeHeadersEnd: q2, onResizeHeadersDown: v2, onResizeHeadersUp: y2, scrollPoint: x2, onSelectionStart: k2, onSelectionEnd: R2 } = e2, M2 = te(() => o2.getOrientation(), [o2]), T2 = le(null), [A2, F2] = se((e3) => e3 + 1, 0), [
|
|
1627
|
+
const { sheetHeader: o2, gridRef: n2, sheetElement: l2, commands: r2, oppositeSize: i2 = 30, containerWidth: a2, containerHeight: d2, headerText: c2, freezeStart: g2, gridStyle: u2, verticalPadding: h2, horizontalPadding: m2, onSheetContextMenu: p2, onResizeHeadersStart: f2, onResizeHeaders: w2, onResizeHeadersEnd: q2, onResizeHeadersDown: v2, onResizeHeadersUp: y2, scrollPoint: x2, onSelectionStart: k2, onSelectionEnd: R2 } = e2, M2 = te(() => o2.getOrientation(), [o2]), T2 = le(null), [A2, F2] = se((e3) => e3 + 1, 0), [E2, D2] = se((e3) => e3 + 1, 0), I2 = o2?.getSheet(), V2 = le(false);
|
|
1621
1628
|
ie(() => {
|
|
1622
1629
|
V2.current = true;
|
|
1623
1630
|
}, [o2]);
|
|
1624
|
-
const
|
|
1631
|
+
const L2 = te(() => o2.getEntireRange().getCoords().max + 1, [o2]), H2 = te(() => {
|
|
1625
1632
|
const e3 = M2 === s.Orientation.Column;
|
|
1626
1633
|
return { left: e3 ? x2.left : 0, top: e3 ? 0 : x2.top };
|
|
1627
1634
|
}, [x2]), [B2, O2] = oe(I2?.getView().getZoomScale() / 100), [P2, $2] = oe(null);
|
|
@@ -1629,7 +1636,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1629
1636
|
O2(I2?.getView().getZoomScale() / 100), me2(ue2());
|
|
1630
1637
|
} });
|
|
1631
1638
|
const W2 = ae(() => {
|
|
1632
|
-
T2.current?.invalidate(),
|
|
1639
|
+
T2.current?.invalidate(), D2();
|
|
1633
1640
|
}, []), U2 = ae(K.debounce(() => {
|
|
1634
1641
|
W2();
|
|
1635
1642
|
}, 10), []), [_2, Z2] = oe(null);
|
|
@@ -1704,7 +1711,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1704
1711
|
e3 && e3.setAdjusting(e3.getCoords());
|
|
1705
1712
|
}, [I2, k2]), Re2 = S(async () => {
|
|
1706
1713
|
I2?.getSelection().setAdjusting(null), R2?.();
|
|
1707
|
-
}, [I2, R2]), { ...Me2 } = fe({ orientation: M2, headerCount:
|
|
1714
|
+
}, [I2, R2]), { ...Me2 } = fe({ orientation: M2, headerCount: L2, gridRef: T2, gridMainRef: n2, newSelection: xe2?.newSelection, modifySelection: xe2?.modifySelection, appendSelection: xe2?.appendSelection, clearSelections: xe2?.clearSelections, pointerDownInterceptor: Ce2, onPointerUp: be2, onDragStart: ke2, onDragEnd: Re2 }), Te2 = u2.selection?.strokeFill;
|
|
1708
1715
|
re(() => {
|
|
1709
1716
|
if (!T2.current) return void $2(null);
|
|
1710
1717
|
const e3 = M2 === s.Orientation.Column, t3 = o2.getSelectedRuns(), n3 = o2.isProtected() ? null : ne2, l3 = (t4, o3, n4) => {
|
|
@@ -1712,11 +1719,11 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1712
1719
|
}, r3 = (t4, o3, n4) => {
|
|
1713
1720
|
const l4 = { x: 0, y: 0, width: 0, height: 0 };
|
|
1714
1721
|
if (e3) {
|
|
1715
|
-
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: Math.min(
|
|
1722
|
+
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: Math.min(L2, o3) }), ye);
|
|
1716
1723
|
if (!e4) return;
|
|
1717
1724
|
l4.x = e4.x, l4.width = e4.width;
|
|
1718
1725
|
} else {
|
|
1719
|
-
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: t4, rowEnd: Math.min(
|
|
1726
|
+
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: t4, rowEnd: Math.min(L2, o3), colStart: 0, colEnd: 0 }), ye);
|
|
1720
1727
|
if (!e4) return;
|
|
1721
1728
|
l4.y = e4.y, l4.height = e4.height;
|
|
1722
1729
|
}
|
|
@@ -1771,13 +1778,13 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1771
1778
|
for (let n4 = 0; t3 && n4 < t3.length; n4++) o3.push(l3(`selection:${e4.getAnchor()}:${n4}`, 0, r3(t3[n4].min, t3[n4].max, e4)));
|
|
1772
1779
|
return o3;
|
|
1773
1780
|
}]);
|
|
1774
|
-
}, [
|
|
1781
|
+
}, [E2, true, Te2, u2, he2, L2, g2, A2, B2]), re(() => {
|
|
1775
1782
|
T2.current?.invalidate();
|
|
1776
1783
|
}, [A2]);
|
|
1777
1784
|
const Ae2 = S((e3) => c2 ? c2(e3) : o2.getTextAt(e3), [c2, o2]), ze2 = S((e3) => {
|
|
1778
1785
|
const { header: t3, headerSelect: o3, headerSelectAll: n3, headerHover: l3 } = u2 ?? {}, { range: r3, key: i3, ...a3 } = e3;
|
|
1779
1786
|
return G(we, { orientation: M2, index: M2 === s.Orientation.Column ? r3.colStart : r3.rowStart, isSelected: Y2, isSelectedAll: J2, zoomScale: 100 * B2, headerText: Ae2, headerStyle: t3, headerStyleSelect: o3, headerStyleSelectAll: n3, headerStyleHover: l3, verticalPadding: h2, horizontalPadding: m2, ...a3 }, i3);
|
|
1780
|
-
}, [A2,
|
|
1787
|
+
}, [A2, L2, u2, B2, o2]), Fe2 = z(), Ee2 = te(() => {
|
|
1781
1788
|
const e3 = "white", t3 = "black", o3 = {};
|
|
1782
1789
|
if ("touch" !== C.detectIt().primaryInput) {
|
|
1783
1790
|
let n3 = M2 === s.Orientation.Column ? `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 8,14.5 2.3125,8.8125 h 3.25 V 1.5 h 4.875 v 7.3125 h 3.25 z' stroke='${t3}' fill='${e3}'/%3E%3C/g%3E%3C/svg%3E%0A") 8 15, pointer` : `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${t3}' fill='${e3}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;
|
|
@@ -1789,7 +1796,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1789
1796
|
o3.cursor = n3;
|
|
1790
1797
|
}
|
|
1791
1798
|
return o3.backgroundColor = u2?.header?.fill || "transparent", o3;
|
|
1792
|
-
}, [M2, A2, Fe2, u2]),
|
|
1799
|
+
}, [M2, A2, Fe2, u2]), De2 = b(t2, () => ({ scrollTo: (e3) => {
|
|
1793
1800
|
T2.current?.scrollTo(e3);
|
|
1794
1801
|
}, forceRender: () => {
|
|
1795
1802
|
F2();
|
|
@@ -1803,15 +1810,15 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1803
1810
|
p2({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: o3 ? -1 : t3.rowIndex, colIndex: o3 ? t3.colIndex : -1 }), e3.stopPropagation(), e3.preventDefault();
|
|
1804
1811
|
}, [Me2, p2]), Ne2 = te(() => {
|
|
1805
1812
|
const e3 = M2 === s.Orientation.Column;
|
|
1806
|
-
return G("div", { ref:
|
|
1807
|
-
}, [P2, he2, a2, d2,
|
|
1813
|
+
return G("div", { ref: De2, children: G(qe, { className: "sheet-header", style: Ee2, ref: T2, scrollPoint: H2, columnCount: e3 ? L2 : 1, rowCount: e3 ? 1 : L2, width: e3 ? a2 : i2, height: e3 ? i2 : d2, freezeLeft: e3 ? g2 : void 0, freezeTop: e3 ? void 0 : g2, hiddenColumnsAt: e3 ? X2 : void 0, hiddenRowsAt: e3 ? void 0 : X2, showGridLines: false, layout: he2, clipCells: false, allowOverlaysOverflow: true, enableMouseWheel: false, onContextMenu: Ve2, onPointerDown: Ie2, zoom: B2, cellRenderer: ze2, overlays: P2 }) });
|
|
1814
|
+
}, [P2, he2, a2, d2, H2, Ee2, E2]);
|
|
1808
1815
|
return re(() => {
|
|
1809
|
-
V2.current = false, T2.current?.invalidate(),
|
|
1816
|
+
V2.current = false, T2.current?.invalidate(), D2();
|
|
1810
1817
|
}, [o2, u2]), Ne2;
|
|
1811
1818
|
})), Tt = ee(ne((e2, t2) => {
|
|
1812
1819
|
const { view: o2, sheet: n2, getVisibleCells: l2, gridStyle: r2 } = e2, i2 = S((e3, t3) => e3.getStyle().getBorder(), []), { overlay: a2 } = ct({ getVisibleCells: l2, getBorderAt: i2, darkMode: r2.body.darkMode, shiftIfWide: true }), s2 = a2(o2);
|
|
1813
1820
|
return s2 && o2 ? s2 : null;
|
|
1814
|
-
})), At = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, zt = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, Ft = { type: o.Content.Values },
|
|
1821
|
+
})), At = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, zt = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, Ft = { type: o.Content.Values }, Et = { fitDestination: true, type: o.Content.Formats }, Dt = { fitDestination: true, type: o.Content.Formulas }, It = { transpose: true }, Vt = { fitDestination: true, adjustCells: (e2, t2, o2) => ({ value: `=${t2.getA1({ $colIndex: true, $rowIndex: true })}` }) }, Nt = ({ element: e2, sheet: t2, sheetView: n2, commands: l2, onClipboardUpdate: r2, onPaste: i2, selectionRenderer: a2 = Ce, copyForegroundColor: d2 = "rgb(33, 115, 70)", cutForegroundColor: c2 = "rgb(33, 115, 70)", copyBackgroundColor: g2 = "white", cutBackgroundColor: u2 = "white", notifier: h2, ...m2 }) => {
|
|
1815
1822
|
const w2 = S(a2, [a2]), q2 = le(null), v2 = z(), y2 = v2.getMode(), C2 = te(() => ({ element: e2, doCopy: (e3) => {
|
|
1816
1823
|
const o2 = t2.getSelectedRanges().getSnapshot(e3);
|
|
1817
1824
|
return new p(o2);
|
|
@@ -1854,7 +1861,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1854
1861
|
}, [l2, e2]), re(() => {
|
|
1855
1862
|
if (!l2) return;
|
|
1856
1863
|
const e3 = { disabled: !t2.getProtection().isFormatCellsAllowed() };
|
|
1857
|
-
l2.getCommand("pasteValues").updateCallback((e4) => k2.paste({ ...Ft, ...e4 })).update(e3), l2.getCommand("pasteFormats").updateCallback((e4, t3) => k2.paste({ ...
|
|
1864
|
+
l2.getCommand("pasteValues").updateCallback((e4) => k2.paste({ ...Ft, ...e4 })).update(e3), l2.getCommand("pasteFormats").updateCallback((e4, t3) => k2.paste({ ...Et, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteFormulas").updateCallback((e4, t3) => k2.paste({ ...Dt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteTranspose").updateCallback((e4, t3) => k2.paste({ ...It, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteLinks").updateCallback((e4, t3) => k2.paste({ ...Vt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("cut").update(e3), l2.getCommand("paste").update(e3);
|
|
1858
1865
|
}, [t2, l2]);
|
|
1859
1866
|
const T2 = te(() => {
|
|
1860
1867
|
if (!y2 || !q2.current) return;
|
|
@@ -1873,16 +1880,16 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1873
1880
|
} : null;
|
|
1874
1881
|
}, [y2, t2, n2, d2, g2, c2, u2]);
|
|
1875
1882
|
return { ...k2, clipboard: x2, overlays: T2 };
|
|
1876
|
-
},
|
|
1883
|
+
}, Lt = ee(ne((e2, t2) => {
|
|
1877
1884
|
const { view: o2, element: n2, sheet: l2, gridStyle: r2, commands: i2, notifier: a2 } = e2, s2 = r2.body ?? {}, d2 = l2.getView(), { overlays: c2 } = Nt({ element: n2, sheet: l2, sheetView: d2, commands: i2, copyForegroundColor: r2.selection.strokeFill, copyBackgroundColor: s2.fill, cutForegroundColor: r2.selectionRemove.strokeFill, cutBackgroundColor: s2.fill, notifier: a2 });
|
|
1878
1885
|
return Ct(l2?.getSelection(), { onChange(e3) {
|
|
1879
1886
|
} }), re(() => {
|
|
1880
1887
|
o2?.getStage();
|
|
1881
1888
|
}, [o2?.getStage()]), c2 && o2 ? c2(o2) : null;
|
|
1882
|
-
})),
|
|
1889
|
+
})), Ht = "_sheet-selection_12wyx_5", Bt = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, Ot = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, Pt = { key: "dragCopy", description: "Drag selection to copy cell contents." }, $t = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, Wt = (e2, t2) => t2.ctrlKey && t2.shiftKey ? $t : t2.ctrlKey ? Pt : t2.shiftKey ? Ot : Bt, Ut = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, _t = ee(ne((e2, t2) => {
|
|
1883
1890
|
const { view: o2, commands: n2, className: l2, onFirstRender: r2, notifier: i2, onShowTooltip: a2, onCloseTooltip: d2, sheet: c2, gridRef: g2, gridStyle: u2, isActive: h2, editingCoords: m2, ...p2 } = e2, f2 = o2?.getBounds(), w2 = S(a2, [a2]), q2 = S(d2, [d2]), [v2, y2] = oe(() => c2?.getSelection().getCoords()), x2 = S((e3) => {
|
|
1884
1891
|
J.isEqualSelectionCoords(e3, v2) || c2 && c2.getSelection().updateCoords(e3);
|
|
1885
|
-
}, [c2, v2]), k2 = z(), R2 = le(null), [M2, T2] = oe(c2?.getProtection().isLocked()), [A2, F2] = oe(c2?.getView().getMovableSelection().length > 0),
|
|
1892
|
+
}, [c2, v2]), k2 = z(), R2 = le(null), [M2, T2] = oe(c2?.getProtection().isLocked()), [A2, F2] = oe(c2?.getView().getMovableSelection().length > 0), E2 = "touch" === C.detectIt().primaryInput, D2 = !E2 && h2, I2 = null !== m2 || A2, V2 = S((e3) => {
|
|
1886
1893
|
const t3 = J.cellToRange(e3);
|
|
1887
1894
|
if (c2.isClosed()) return t3;
|
|
1888
1895
|
const o3 = c2.getRange(t3, { excludeHidden: true }).getMerges();
|
|
@@ -1899,7 +1906,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1899
1906
|
case s.Direction.Right:
|
|
1900
1907
|
return i3.colEnd;
|
|
1901
1908
|
}
|
|
1902
|
-
}, [c2]),
|
|
1909
|
+
}, [c2]), H2 = S(() => {
|
|
1903
1910
|
const e3 = c2.getUsedRange()?.getCoords(), t3 = c2.getRowHeaders().getUsedRange()?.getCoords(), o3 = c2.getColumnHeaders().getUsedRange()?.getCoords();
|
|
1904
1911
|
return { ...e3, colEnd: Math.max(e3?.colEnd ?? 0, o3?.max ?? 0), rowEnd: Math.max(e3?.rowEnd ?? 0, t3?.max ?? 0) };
|
|
1905
1912
|
}, [c2]), B2 = S((e3, t3) => c2.getRowHeaders().hiddenHeadersAt(e3, t3), [c2]), O2 = S((e3, t3) => c2.getColumnHeaders().hiddenHeadersAt(e3, t3), [c2]), P2 = S((e3) => c2.getRange(e3, { excludeHidden: true }).getMerges(), [c2]), $2 = S((e3) => {
|
|
@@ -1920,7 +1927,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1920
1927
|
} }), Ct(c2, { onProtectionChange: () => {
|
|
1921
1928
|
T2(c2.getProtection().isLocked());
|
|
1922
1929
|
} });
|
|
1923
|
-
const { body: _2 = {} } = u2 || {}, Z2 = o2.getLayout(), j2 = !(
|
|
1930
|
+
const { body: _2 = {} } = u2 || {}, Z2 = o2.getLayout(), j2 = !(D2 && v2.ranges.length <= 1 && null === m2 && !M2 && (!k2.getMode() || U2)), { cursor: K2, overlay: X2, onPointerDown: Y2 } = pe({ gridRef: g2, commands: n2, layout: Z2, getCellCoordsAsRangeCoords: V2, selection: v2, fillHandleBorderColor: _2.fill, selectionBackgroundColor: h2 ? u2.selection.fill : u2.selectionInactive.fill, selectionBorderColor: h2 ? u2.selection.strokeFill : u2.selectionInactive.strokeFill, selectionRemoveBackgroundColor: h2 ? u2.selectionRemove.fill : u2.selectionInactive.fill, selectionRemoveBorderColor: h2 ? u2.selectionRemove.strokeFill : u2.selectionInactive.strokeFill, disableFillDrag: j2, disableMoveDrag: E2 || !(h2 && v2.ranges.length <= 1 && null === m2 && !M2), disableTouchSelection: I2, onSelectionChange: x2, onSelectionDragStart: $2, onSelectionDragEnd: W2, onMoveDragStart: (e3, t3, o3) => {
|
|
1924
1931
|
k2.setMode(Wt(0, o3));
|
|
1925
1932
|
}, onMoveDragUpdate: (e3, t3, o3) => {
|
|
1926
1933
|
k2.setMode(Wt(0, o3));
|
|
@@ -1932,7 +1939,8 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1932
1939
|
if (i2?.showOptions) {
|
|
1933
1940
|
const t4 = n3.getDifferences(e3);
|
|
1934
1941
|
let o4 = false;
|
|
1935
|
-
|
|
1942
|
+
const l4 = t4.getCount();
|
|
1943
|
+
for (let e4 = 0; !o4 && e4 < l4; e4++) o4 = t4.at(e4).isContentful();
|
|
1936
1944
|
if (o4) {
|
|
1937
1945
|
if ("Replace" !== await i2?.showOptions({ title: "Confirm", description: "There is already data here. Do you want to replace it?", options: ["Replace", "Cancel"], defaultOption: "Replace" })) return;
|
|
1938
1946
|
}
|
|
@@ -1948,7 +1956,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1948
1956
|
} finally {
|
|
1949
1957
|
d3?.();
|
|
1950
1958
|
}
|
|
1951
|
-
}, contentfulCellFinder: N2, hiddenRowsAt: B2, hiddenColumnsAt: O2, mergedRanges: P2, getDataCoords:
|
|
1959
|
+
}, contentfulCellFinder: N2, hiddenRowsAt: B2, hiddenColumnsAt: O2, mergedRanges: P2, getDataCoords: H2, canSelectionSpanMergedCells: (e3) => {
|
|
1952
1960
|
const t3 = c2.getRange(e3);
|
|
1953
1961
|
return t3.isEntireColumns() || t3.isEntireRows();
|
|
1954
1962
|
}, onFill: async (e3, t3) => {
|
|
@@ -1974,23 +1982,23 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1974
1982
|
const r3 = l3.toText();
|
|
1975
1983
|
if (!r3) return;
|
|
1976
1984
|
const i3 = J.cellToRange(l3.getCoords()), a3 = o2.getRelativePointFromClient(0, 0);
|
|
1977
|
-
let d3 = 0, g3 = 0, u3 =
|
|
1985
|
+
let d3 = 0, g3 = 0, u3 = L.Bottom;
|
|
1978
1986
|
if (n3 === s.Direction.Down) {
|
|
1979
1987
|
d3 = Z2.getColOffset(i3.colEnd + 1) - a3.x;
|
|
1980
1988
|
const e4 = Z2.getRowOffset(i3.rowEnd), t4 = Z2.getRowOffset(i3.rowEnd + 1);
|
|
1981
|
-
g3 = t4 - (t4 - e4) / 2 - a3.y, u3 =
|
|
1989
|
+
g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = L.Right;
|
|
1982
1990
|
} else if (n3 === s.Direction.Right) {
|
|
1983
1991
|
g3 = Z2.getRowOffset(i3.rowEnd + 1) - a3.y;
|
|
1984
1992
|
const e4 = Z2.getColOffset(i3.colEnd), t4 = Z2.getColOffset(i3.colEnd + 1);
|
|
1985
|
-
d3 = t4 - (t4 - e4) / 2 - a3.x, u3 =
|
|
1993
|
+
d3 = t4 - (t4 - e4) / 2 - a3.x, u3 = L.Bottom;
|
|
1986
1994
|
} else if (n3 === s.Direction.Up) {
|
|
1987
1995
|
d3 = Z2.getColOffset(i3.colEnd + 1) - a3.x;
|
|
1988
1996
|
const e4 = Z2.getRowOffset(i3.rowStart), t4 = Z2.getRowOffset(i3.rowStart + 1);
|
|
1989
|
-
g3 = t4 - (t4 - e4) / 2 - a3.y, u3 =
|
|
1997
|
+
g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = L.Right;
|
|
1990
1998
|
} else if (n3 === s.Direction.Left) {
|
|
1991
1999
|
g3 = Z2.getRowOffset(i3.rowEnd + 1) - a3.y;
|
|
1992
2000
|
const e4 = Z2.getColOffset(i3.colStart), t4 = Z2.getColOffset(i3.colStart + 1);
|
|
1993
|
-
d3 = t4 - (t4 - e4) / 2 - a3.x, u3 =
|
|
2001
|
+
d3 = t4 - (t4 - e4) / 2 - a3.x, u3 = L.Bottom;
|
|
1994
2002
|
}
|
|
1995
2003
|
w2({ anchor: { x: d3, y: g3 }, display: r3, placement: u3 });
|
|
1996
2004
|
} catch (e4) {
|
|
@@ -2009,7 +2017,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2009
2017
|
};
|
|
2010
2018
|
}, [o2?.getStage()]);
|
|
2011
2019
|
const ee2 = b(t2, () => ({}), []), ne2 = le(null);
|
|
2012
|
-
return G("div", { className: Me(l2, "sheet-selection",
|
|
2020
|
+
return G("div", { className: Me(l2, "sheet-selection", Ht), style: { position: "absolute", width: f2?.width, height: f2?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: ke([ee2, ne2]), ...p2, children: X2(o2) });
|
|
2013
2021
|
})), Gt = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), Zt = { fireOnModelChange: false }, jt = ee(ne((e2, t2) => {
|
|
2014
2022
|
const { children: o2, view: n2, movable: l2, onRefLoad: r2, onRefUnload: i2, onHide: a2, onShow: s2, onUnFocus: d2, isDragging: c2, updateFrameBounds: g2, dragStart: u2, style: h2, disabled: m2, renderMovable: p2, ...f2 } = e2, [w2, q2] = oe(Gt), [v2, y2] = oe(null), [C2, b2] = oe(false), S2 = le(null);
|
|
2015
2023
|
ie(() => {
|
|
@@ -2046,7 +2054,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2046
2054
|
v2 && !S2?.current?.contains(e3.relatedTarget) && y2(null), e3.relatedTarget && b2(false);
|
|
2047
2055
|
}, ...f2, children: x2 });
|
|
2048
2056
|
})), Kt = "_movable-area_314c6_5", Xt = ee(ne((e2, t2) => {
|
|
2049
|
-
const { view: o2, movables: n2, movablesView: l2, renderMovable: r2, transactional: i2, onUnFocus: a2, onFocus: s2, disabled: d2 = false, disableDrag: c2 = false, disableResize: g2 = false, className: u2, style: h2, renderDirections: m2 = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: p2, ...f2 } = e2, q2 = o2.getBounds(), v2 = S(p2, [p2]), y2 = S(a2, [a2]), C2 = S(s2, [s2]), [k2, R2] = oe([]), [M2, T2] = oe(false), [A2, z2] = oe(false), F2 = le(true),
|
|
2057
|
+
const { view: o2, movables: n2, movablesView: l2, renderMovable: r2, transactional: i2, onUnFocus: a2, onFocus: s2, disabled: d2 = false, disableDrag: c2 = false, disableResize: g2 = false, className: u2, style: h2, renderDirections: m2 = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: p2, ...f2 } = e2, q2 = o2.getBounds(), v2 = S(p2, [p2]), y2 = S(a2, [a2]), C2 = S(s2, [s2]), [k2, R2] = oe([]), [M2, T2] = oe(false), [A2, z2] = oe(false), F2 = le(true), E2 = le(/* @__PURE__ */ new Map()), D2 = le(/* @__PURE__ */ new Map()), I2 = le(/* @__PURE__ */ new Map()), V2 = le(/* @__PURE__ */ new Map()), N2 = le(/* @__PURE__ */ new Map()), L2 = le({ onRequestFocus: (e3) => (ge2(e3), null) }), H2 = le(null), B2 = le(null), O2 = le(null), [P2, $2] = se((e3) => e3 + 1, 0);
|
|
2050
2058
|
ie(() => {
|
|
2051
2059
|
$2();
|
|
2052
2060
|
}, [o2, n2]), Ct(n2, { onCollectionChange: () => {
|
|
@@ -2054,7 +2062,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2054
2062
|
t3.forEach((e4) => {
|
|
2055
2063
|
e4();
|
|
2056
2064
|
}), t3.clear();
|
|
2057
|
-
const l3 =
|
|
2065
|
+
const l3 = L2.current;
|
|
2058
2066
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
2059
2067
|
const n3 = e3[o3];
|
|
2060
2068
|
if (n3.isClosed()) continue;
|
|
@@ -2094,12 +2102,12 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2094
2102
|
}, [k2]);
|
|
2095
2103
|
const ue2 = te(() => {
|
|
2096
2104
|
const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), excludeHidden: true });
|
|
2097
|
-
if (0 === e3.length && 0 ===
|
|
2105
|
+
if (0 === e3.length && 0 === E2.current.size) return null;
|
|
2098
2106
|
const t3 = (t4, n3, l3, i4 = true) => {
|
|
2099
2107
|
const a4 = t4.isSelected(), s4 = { tabIndex: l3, view: o2, movable: t4, onRefLoad: (e4) => {
|
|
2100
|
-
ne2.current === t4 && (e4.focus(), ce2.current = e4, ne2.current = null), I2.current.set(t4, e4),
|
|
2108
|
+
ne2.current === t4 && (e4.focus(), ce2.current = e4, ne2.current = null), I2.current.set(t4, e4), D2.current.set(e4, t4), n3.rendered = true, U2();
|
|
2101
2109
|
}, onRefUnload: (e4) => {
|
|
2102
|
-
I2.current.delete(t4),
|
|
2110
|
+
I2.current.delete(t4), D2.current.delete(e4), n3.rendered = false, U2();
|
|
2103
2111
|
}, onUnFocus: y2, onHide: (e4) => {
|
|
2104
2112
|
n3.onHide = e4;
|
|
2105
2113
|
}, onShow: (e4) => {
|
|
@@ -2116,7 +2124,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2116
2124
|
}
|
|
2117
2125
|
}, style: { opacity: i4 ? M2 && a4 ? 0.7 : void 0 : 0, zIndex: M2 && a4 ? t4.getZIndex() + e3.length : void 0, pointerEvents: i4 ? void 0 : "none", cursor: A2 && a4 ? "grabbing" : d2 || c2 ? "initial" : "move", boxShadow: !a4 || A2 && !M2 ? void 0 : "1px 1px 2px 2px rgba(0,0,0,.15)" } };
|
|
2118
2126
|
return G(jt, { ...s4 }, `movable-${t4.getUUID()}`);
|
|
2119
|
-
}, i3 =
|
|
2127
|
+
}, i3 = E2.current, a3 = /* @__PURE__ */ new Map(), s3 = [];
|
|
2120
2128
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
2121
2129
|
const n3 = e3[o3];
|
|
2122
2130
|
if (n3.isClosed()) continue;
|
|
@@ -2126,14 +2134,14 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2126
2134
|
t4.shown = true;
|
|
2127
2135
|
const o4 = ++t4.visibilityRequestId;
|
|
2128
2136
|
requestAnimationFrame(() => {
|
|
2129
|
-
const n4 =
|
|
2137
|
+
const n4 = E2.current.get(e4);
|
|
2130
2138
|
n4 && o4 === t4.visibilityRequestId && (t4.onShow?.(e4), n4.shown = true);
|
|
2131
2139
|
});
|
|
2132
2140
|
}, doHide: async (e4, t4) => {
|
|
2133
2141
|
if (!t4 || false === t4?.shown) return;
|
|
2134
2142
|
t4.shown = false;
|
|
2135
2143
|
const o4 = ++t4.visibilityRequestId, n4 = await Promise.resolve(t4.onHide?.(e4));
|
|
2136
|
-
o4 === t4.visibilityRequestId && false !== n4 && (t4.shown = false,
|
|
2144
|
+
o4 === t4.visibilityRequestId && false !== n4 && (t4.shown = false, E2.current.delete(e4), $2());
|
|
2137
2145
|
}, visibilityRequestId: 0 }), l3.frame = t3(n3, l3, o3, true), s3.push(l3.frame), l3.doShow(n3, l3), i3.delete(n3), a3.set(n3, l3);
|
|
2138
2146
|
}
|
|
2139
2147
|
const g3 = [];
|
|
@@ -2142,12 +2150,12 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2142
2150
|
o3 && (o3.frame = t3(e4, o3, -1, false), g3.push(o3.frame), i3.delete(e4), a3.set(e4, o3));
|
|
2143
2151
|
}), i3.forEach((e4, o3) => {
|
|
2144
2152
|
e4.frame = t3(o3, e4, -1, false), g3.push(e4.frame), e4.doHide(o3, e4), i3.delete(o3), a3.set(o3, e4);
|
|
2145
|
-
}),
|
|
2153
|
+
}), E2.current = a3, U2(), [...g3, ...s3];
|
|
2146
2154
|
}, [P2, o2, r2, d2, c2, g2, M2, A2]), he2 = S((e3, t3) => {
|
|
2147
|
-
const n3 = `${t3} ${1 === k2.length ? w.capitalize(
|
|
2155
|
+
const n3 = `${t3} ${1 === k2.length ? w.capitalize(D2.current?.get(k2[0]).getContent().getType()) : "Drawings"}`;
|
|
2148
2156
|
B2.current && (console.warn(`Transaction ${B2.current.getDescription()} is being replaced by ${n3}`), B2.current.rollback(), B2.current = null), B2.current = i2.beginCommit({ description: n3 }), V2.current.clear();
|
|
2149
2157
|
for (let e4 = 0; e4 < k2.length; e4++) {
|
|
2150
|
-
const t4 = k2[e4], n4 =
|
|
2158
|
+
const t4 = k2[e4], n4 = D2.current?.get(t4);
|
|
2151
2159
|
n4 ? V2.current.set(t4, { movable: n4, startBounds: o2.toViewBounds(n4.getBounds()) }) : console.warn("invalid element", n4);
|
|
2152
2160
|
}
|
|
2153
2161
|
}, [i2, o2, k2]), me2 = ae(() => {
|
|
@@ -2172,12 +2180,12 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2172
2180
|
if (be2.current) return;
|
|
2173
2181
|
if (ye2.current) return;
|
|
2174
2182
|
if (Ce2.current) return void requestAnimationFrame(() => {
|
|
2175
|
-
O2.current &&
|
|
2183
|
+
O2.current && H2.current && O2.current.refTargets.length > 0 && (be2.current = true, _2.current?.(true)), R2([...k2]);
|
|
2176
2184
|
});
|
|
2177
2185
|
ye2.current = true;
|
|
2178
2186
|
const e3 = Q.lazy(async () => {
|
|
2179
2187
|
try {
|
|
2180
|
-
const e4 = await import("./
|
|
2188
|
+
const e4 = await import("./DW2WQRraUynMrhwX.mjs");
|
|
2181
2189
|
return ye2.current = false, Ce2.current = true, R2([...k2]), e4;
|
|
2182
2190
|
} catch (e4) {
|
|
2183
2191
|
return console.warn(e4), _2.current?.(false), null;
|
|
@@ -2193,7 +2201,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2193
2201
|
const t3 = 0 !== e3.direction[0] && 0 !== e3.direction[1];
|
|
2194
2202
|
let n3 = 0, l3 = 0;
|
|
2195
2203
|
for (let r3 = 0; r3 < k2.length; r3++) {
|
|
2196
|
-
const i3 = k2[r3], a3 = V2.current.get(i3), s3 =
|
|
2204
|
+
const i3 = k2[r3], a3 = V2.current.get(i3), s3 = D2.current.get(i3);
|
|
2197
2205
|
if (!a3 || !s3) {
|
|
2198
2206
|
console.warn("invalid element");
|
|
2199
2207
|
continue;
|
|
@@ -2221,7 +2229,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2221
2229
|
}, onDragEnd: (e3) => {
|
|
2222
2230
|
}, onMouseUp: (e3) => {
|
|
2223
2231
|
} }) }), [P2, qe2, k2, o2, d2, c2, g2, M2, A2]);
|
|
2224
|
-
return G("div", { className: Me(u2, "movable-area", Kt), style: { width: q2.width, height: q2.height, ...h2, position: "absolute", overflow: "hidden", willChange: "transform" }, ref: ke([we2, fe2]), ...f2, children: G("div", { className: "movable-scroll", style: { position: "absolute", cursor: "initial", left: 0, top: 0, width: q2.width, height: q2.height }, ...f2, children: Z("div", { ref:
|
|
2232
|
+
return G("div", { className: Me(u2, "movable-area", Kt), style: { width: q2.width, height: q2.height, ...h2, position: "absolute", overflow: "hidden", willChange: "transform" }, ref: ke([we2, fe2]), ...f2, children: G("div", { className: "movable-scroll", style: { position: "absolute", cursor: "initial", left: 0, top: 0, width: q2.width, height: q2.height }, ...f2, children: Z("div", { ref: H2, style: { position: "absolute", pointerEvents: "auto" }, onFocus: (e3) => {
|
|
2225
2233
|
C2?.(), ee2(true);
|
|
2226
2234
|
}, onBlur: (e3) => {
|
|
2227
2235
|
ee2(false);
|
|
@@ -2233,7 +2241,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2233
2241
|
let o4 = [...t4];
|
|
2234
2242
|
return k2.forEach((e4) => {
|
|
2235
2243
|
if (0 === o4.length) return;
|
|
2236
|
-
const t5 =
|
|
2244
|
+
const t5 = D2.current.get(e4);
|
|
2237
2245
|
let n3 = o4.indexOf(t5);
|
|
2238
2246
|
o4.splice(n3, 1);
|
|
2239
2247
|
}), o4.length !== t4.length && l2.selectMovables(o4), 0 === o4.length && y2?.(), void e3.preventDefault();
|
|
@@ -2447,7 +2455,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2447
2455
|
} }, "movable-area"), [n2, l2, i2, c2]);
|
|
2448
2456
|
return g2 && o2 ? g2 : null;
|
|
2449
2457
|
})), oo = ee(ne((e2, t2) => {
|
|
2450
|
-
const { view: o2, sheet: n2, gridStyle: l2, getCellEditor: r2, showProtectedError: i2, setEditingCoords: a2, commands: d2, notifier: c2 =
|
|
2458
|
+
const { view: o2, sheet: n2, gridStyle: l2, getCellEditor: r2, showProtectedError: i2, setEditingCoords: a2, commands: d2, notifier: c2 = H } = e2, g2 = z(), [u2, h2] = oe(null), [m2, p2] = oe(null), [f2, q2] = oe(null), [v2, y2] = oe(null), [C2, b2] = oe(null);
|
|
2451
2459
|
ie(() => {
|
|
2452
2460
|
if (null === f2) return y2(null), void b2(null);
|
|
2453
2461
|
const e3 = () => {
|
|
@@ -2481,7 +2489,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2481
2489
|
const o4 = { sheet: n2, coords: t3, editState: e4 };
|
|
2482
2490
|
g2.setMode((e5) => ({ ...e5, description: o4.editState.editMode ? "Edit" : "Enter", args: { ...e5?.args, stateAndCoords: o4 } }));
|
|
2483
2491
|
}, editState: m2.editState });
|
|
2484
|
-
}, [n2, v2, r2, m2, f2]), { overlay: T2, startEdit: A2, submitEdit: F2, cancelEdit:
|
|
2492
|
+
}, [n2, v2, r2, m2, f2]), { overlay: T2, startEdit: A2, submitEdit: F2, cancelEdit: E2, onKeyboardEventNative: D2, onPointerEventNative: I2 } = be({ view: o2, activeCoords: u2, getCellEditor: M2, canEdit: () => {
|
|
2485
2493
|
const e3 = n2.getProtection();
|
|
2486
2494
|
if (e3.isReadOnly()) return false;
|
|
2487
2495
|
const t3 = e3.isLocked();
|
|
@@ -2501,19 +2509,19 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2501
2509
|
} });
|
|
2502
2510
|
const V2 = S((e3) => {
|
|
2503
2511
|
I2(e3), f2 && F2();
|
|
2504
|
-
}, [I2,
|
|
2512
|
+
}, [I2, E2, f2]), N2 = ae((e3) => {
|
|
2505
2513
|
I2(e3);
|
|
2506
|
-
}, [I2]),
|
|
2507
|
-
|
|
2508
|
-
}, [
|
|
2514
|
+
}, [I2]), L2 = ae((e3) => {
|
|
2515
|
+
D2(e3);
|
|
2516
|
+
}, [D2]);
|
|
2509
2517
|
return re(() => {
|
|
2510
2518
|
const e3 = o2?.getStage();
|
|
2511
|
-
if (e3) return e3.addEventListener("pointerdown", V2), e3.addEventListener("dblclick", N2), e3.addEventListener("keydown",
|
|
2512
|
-
e3.removeEventListener("pointerdown", V2), e3.removeEventListener("dblclick", N2), e3.removeEventListener("keydown",
|
|
2519
|
+
if (e3) return e3.addEventListener("pointerdown", V2), e3.addEventListener("dblclick", N2), e3.addEventListener("keydown", L2), () => {
|
|
2520
|
+
e3.removeEventListener("pointerdown", V2), e3.removeEventListener("dblclick", N2), e3.removeEventListener("keydown", L2);
|
|
2513
2521
|
};
|
|
2514
2522
|
}, [o2?.getStage()]), re(() => {
|
|
2515
2523
|
const e3 = g2.getMode(), t3 = e3?.key;
|
|
2516
|
-
"edit" === t3 || "enter" === t3 ? m2 ? e3.args?.cancel ?
|
|
2524
|
+
"edit" === t3 || "enter" === t3 ? m2 ? e3.args?.cancel ? E2() : e3.args?.submit ? F2() : p2(e3.args?.stateAndCoords) : A2(e3.args?.start) : f2 && E2();
|
|
2517
2525
|
}, [g2]), T2(o2, t2);
|
|
2518
2526
|
})), no = "white", lo = "black", ro = `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${lo}' fill='${no}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`, io = `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 13.24564,12.979958 H 5.2023009 L 7.500398,10.681861 2.3296796,5.5111425 5.7768252,2.0639969 10.947543,7.2347153 13.24564,4.9366182 Z' stroke='${lo}' fill='${no}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, ao = ee(ne((e2, t2) => {
|
|
2519
2527
|
const { view: o2, sheet: n2 } = e2, [l2, r2] = Q.useState(n2.getTables().getCount() > 0), [i2, a2] = Q.useState(null), [s2, d2] = Q.useState(null), [c2, g2] = Q.useState(null), [u2, h2] = Q.useState(null), m2 = S(() => {
|
|
@@ -2627,17 +2635,17 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2627
2635
|
const o2 = { ...e2 }, n2 = t2?.getNormal().getFont(), l2 = n2?.toCSS(), r2 = { text: { fontFamily: l2?.fontFamily, fontSize: n2?.getSize() } }, i2 = o2.body = K.mergeContentful(e2.body, r2);
|
|
2628
2636
|
return o2.body = K.mergeContentful({ fill: "#fff", strokeFill: "#dad8d6", strokeWidth: 0.5, text: { fontWeight: "400", fontStyle: "normal", fill: "#040404" } }, i2), o2.buttonSurface = K.mergeContentful({ fill: "#fff", text: { fill: "black" }, edgeStrokeFill: "black" }, o2.buttonSurface), o2.selection = { fill: "rgba(16, 124, 65, 0.1)", strokeFill: "#217346", strokeWidth: 2, ...e2.selection }, o2.selectionInactive = { ...o2.selection, fill: "rgba(16, 124, 65, 0.1)", strokeFill: "#dad8d6", ...e2.selectionInactive }, o2.selectionRemove = { ...o2.selection, fill: "rgba(200, 0, 0, 0.1)", strokeFill: "rgba(200, 0, 0, 1)", ...e2.selectionRemove }, o2.headerSelection = { ...o2.selection, ...e2.headerSelection }, o2.headerSelectionInactive = { ...o2.selectionInactive, ...e2.headerSelectionInactive }, o2.header = K.mergeContentful(o2.body, { edgeStrokeFill: "rgb(171, 171, 171)", fill: "#f0f0f0", strokeShadow: void 0, edgeStrokeWidth: 1 }, e2.header), o2.header = K.mergeContentful(o2.header, r2), o2.headerSelect = K.mergeContentful(o2.header, { fill: "rgba(16, 124, 65, 0.1)", text: { fill: o2.headerSelection.strokeFill, fontWeight: "700" } }, e2.headerSelect), o2.headerSelect = K.mergeContentful(o2.headerSelect, r2), o2.headerSelectAll = K.mergeContentful(o2.headerSelect, {}, e2.headerSelectAll), o2.headerSelectAll = K.mergeContentful(o2.headerSelectAll, r2), o2;
|
|
2629
2637
|
}, uo = { fireOnModelChange: false }, ho = {}, mo = ee(ne((e2, t2) => {
|
|
2630
|
-
const { sheet: o2, gridStyle: n2 = ho, headersStyle: l2 = ho, onSheetContextMenu: r2, showColumnHeaders: s2, columnHeaderProps: c2, showRowHeaders: g2, rowHeaderProps: u2, showScrollbars: h2 = true, scrollPaneProps: p2, onViewportChange: f2, commands: w2, onRepeatCommandChange: q2, onMoveCell: v2, overlays: y2, renderMovable: k2, viewportComponent: R2, onElementLoad: M2, getCellEditor: T2, onFocus: A2, onBlur: F2, style:
|
|
2638
|
+
const { sheet: o2, gridStyle: n2 = ho, headersStyle: l2 = ho, onSheetContextMenu: r2, showColumnHeaders: s2, columnHeaderProps: c2, showRowHeaders: g2, rowHeaderProps: u2, showScrollbars: h2 = true, scrollPaneProps: p2, onViewportChange: f2, commands: w2, onRepeatCommandChange: q2, onMoveCell: v2, overlays: y2, renderMovable: k2, viewportComponent: R2, onElementLoad: M2, getCellEditor: T2, onFocus: A2, onBlur: F2, style: D2 = C.EmptyCssProperties, notifier: I2, onShowTooltip: V2, onShowColumnTooltip: L2, onShowRowTooltip: H2, onCloseTooltip: B2, gridProps: P2, cellRenderProps: $2, ...W2 } = e2;
|
|
2631
2639
|
if (Q.useEffect(() => {
|
|
2632
2640
|
d._validate(true);
|
|
2633
2641
|
}, []), !o2) throw new Error("ISheet must be provided.");
|
|
2634
|
-
const [U2, _2] = Q.useReducer((e3) => e3 + 1, 0), [ee2, { width: ne2, height: se2 }] = Re(), de2 = S(V2, [V2]), ge2 = S(
|
|
2642
|
+
const [U2, _2] = Q.useReducer((e3) => e3 + 1, 0), [ee2, { width: ne2, height: se2 }] = Re(), de2 = S(V2, [V2]), ge2 = S(L2, [L2]), ue2 = S(H2, [H2]), he2 = S(B2, [B2]), me2 = le(false);
|
|
2635
2643
|
ie(() => {
|
|
2636
2644
|
me2.current = true;
|
|
2637
2645
|
}, [o2]);
|
|
2638
|
-
const pe2 = o2?.getStyles(), fe2 = te(() => go(n2, pe2), [n2, pe2]), we2 = te(() => go(l2, pe2), [l2, pe2]), { body: ve2 = {}, buttonSurface: ye2 = {} } = fe2, { header: Ce2 = {}, headerSelect: be2 = {}, headerSelectAll: Se2 = {} } = we2, ke2 = le(null), [Te2, Ae2] = oe(() => o2?.getView()), ze2 = (Te2?.getZoomScale() ?? 100) / 100, Fe2 = te(() => ({ vertical: Te2.isShowColumnGridlines() && ze2 >= 0.4, horizontal: Te2.isShowRowGridlines() && ze2 >= 0.4 }), [Te2?.isShowColumnGridlines(), Te2?.isShowRowGridlines(), ze2]),
|
|
2646
|
+
const pe2 = o2?.getStyles(), fe2 = te(() => go(n2, pe2), [n2, pe2]), we2 = te(() => go(l2, pe2), [l2, pe2]), { body: ve2 = {}, buttonSurface: ye2 = {} } = fe2, { header: Ce2 = {}, headerSelect: be2 = {}, headerSelectAll: Se2 = {} } = we2, ke2 = le(null), [Te2, Ae2] = oe(() => o2?.getView()), ze2 = (Te2?.getZoomScale() ?? 100) / 100, Fe2 = te(() => ({ vertical: Te2.isShowColumnGridlines() && ze2 >= 0.4, horizontal: Te2.isShowRowGridlines() && ze2 >= 0.4 }), [Te2?.isShowColumnGridlines(), Te2?.isShowRowGridlines(), ze2]), Ee2 = te(() => {
|
|
2639
2647
|
if (Te2?.getGridLineColor()) return { strokeDasharray: "1,1" };
|
|
2640
|
-
}, [Te2?.getGridLineColor(), fe2]),
|
|
2648
|
+
}, [Te2?.getGridLineColor(), fe2]), De2 = s2 ?? Te2?.isShowColumnHeaders(), Ie2 = g2 ?? Te2?.isShowRowHeaders(), [Ve2, Ne2] = oe({ width: 0, height: 0 }), Le2 = te(() => {
|
|
2641
2649
|
let e3 = 40, t3 = 20;
|
|
2642
2650
|
const n3 = o2?.getStyles().getNormal().getFont();
|
|
2643
2651
|
if (Ve2.width > 0 && Ve2.height > 0) {
|
|
@@ -2645,7 +2653,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2645
2653
|
e3 = r3.width, t3 = r3.lineHeight;
|
|
2646
2654
|
}
|
|
2647
2655
|
return { width: Math.round(e3 + 5), height: Math.round(t3 + 3) };
|
|
2648
|
-
}, [Ve2, fe2?.header.text, o2]),
|
|
2656
|
+
}, [Ve2, fe2?.header.text, o2]), He2 = Ie2 ? ze2 * Le2.width : Ce2.edgeStrokeWidth, Be2 = De2 ? ze2 * Le2.height : Ce2.edgeStrokeWidth, Oe2 = Math.max(ne2, (o2?.getColumnHeaders().getDefaultSize() ?? Le2.width) + He2 + 1), Pe2 = Math.max(se2, (o2?.getRowHeaders().getDefaultSize() ?? Le2.height) + Be2 + 1), $e2 = le(/* @__PURE__ */ new Map()), We2 = le(null), Ue2 = () => ({ getColOffset: (e3) => o2.getColumnHeaders().findOffset(e3), getColIndex: (e3) => o2.getColumnHeaders().findIndex(e3), getRowOffset: (e3) => o2.getRowHeaders().findOffset(e3), getRowIndex: (e3) => o2.getRowHeaders().findIndex(e3) }), [_e2, Ge2] = oe(() => Ue2()), [Ze2, je2] = oe(false), [Ke2, Xe2] = oe(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = ae(() => Kt2.current, []), [tt2, ot2] = oe(), nt2 = S((e3) => {
|
|
2649
2657
|
ot2(e3), o2 && o2.getView() && o2.getView().setTopLeft(e3 ? { left: e3.left, top: e3.top } : null), f2?.(e3);
|
|
2650
2658
|
}, [o2, f2]), lt2 = le(null);
|
|
2651
2659
|
re(() => {
|
|
@@ -2671,12 +2679,12 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2671
2679
|
re(() => {
|
|
2672
2680
|
Ft2(false);
|
|
2673
2681
|
}, [o2.getProtection()]);
|
|
2674
|
-
const
|
|
2675
|
-
zt2 || (Ft2(true), I2.showMessage?.(Z("span", { children: ["This sheet is protected.", G("br", {}), "To make a change, unprotect the sheet. You might be requested to enter a password."] }), { type:
|
|
2676
|
-
}, [I2, zt2]),
|
|
2682
|
+
const Et2 = S(() => {
|
|
2683
|
+
zt2 || (Ft2(true), I2.showMessage?.(Z("span", { children: ["This sheet is protected.", G("br", {}), "To make a change, unprotect the sheet. You might be requested to enter a password."] }), { type: E.Error }));
|
|
2684
|
+
}, [I2, zt2]), Dt2 = te(() => {
|
|
2677
2685
|
const e3 = gt2.getMode();
|
|
2678
2686
|
return e3?.cursor ? e3.cursor : null;
|
|
2679
|
-
}, [At2, gt2]), [It2, Vt2] = oe(null), Nt2 = le(false), [
|
|
2687
|
+
}, [At2, gt2]), [It2, Vt2] = oe(null), Nt2 = le(false), [Ht2, Bt2] = oe([]), Ot2 = le(null), [Pt2, $t2] = oe(Y.EmptyTopLeft), [Wt2, Ut2] = oe(Y.EmptyTopLeft);
|
|
2680
2688
|
re(() => {
|
|
2681
2689
|
$t2({ left: rt2?.left, top: 0 });
|
|
2682
2690
|
}, [rt2?.left]), re(() => {
|
|
@@ -2727,7 +2735,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2727
2735
|
}, onResizeHeadersDown: (t4, o3) => {
|
|
2728
2736
|
Gt2.current = true, setTimeout(() => {
|
|
2729
2737
|
Gt2.current && e3(t4, o3);
|
|
2730
|
-
},
|
|
2738
|
+
}, 360);
|
|
2731
2739
|
}, onResizeHeadersEnd: (e4, o3, n3) => {
|
|
2732
2740
|
t3?.commit({ description: n3 }), t3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
|
|
2733
2741
|
}, onResizeHeadersUp: (e4) => {
|
|
@@ -2739,7 +2747,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2739
2747
|
if (!l3.toClipBounds(l3.getRangeCoordsBounds({ rowStart: e4, rowEnd: e4, colStart: 0, colEnd: Ve2.width }))) return;
|
|
2740
2748
|
const r3 = l3.getLayout(), i2 = Math.max(0, r3.getRowOffset(e4)), a2 = l3.getBounds(), s3 = Math.min(a2.y + a2.height, r3.getRowOffset(e4 + 1)), d2 = l3.getAnchor();
|
|
2741
2749
|
if (null !== t4 && (d2 === X.Top || d2 === X.Center || d2 === X.Bottom)) {
|
|
2742
|
-
const e5 = Math.floor(10 * K.getDPI()) / 10, n3 = K.roundAccurately(t4 * e5, 0), l4 = K.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * K.getDPI()), 2).toFixed(2), r4 = "Height: " + (t4 ? l4 + " (" + n3 + " pixels)" : "Hidden"), d3 = qo2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - d3.x, g4 = 0 - d3.x +
|
|
2750
|
+
const e5 = Math.floor(10 * K.getDPI()) / 10, n3 = K.roundAccurately(t4 * e5, 0), l4 = K.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * K.getDPI()), 2).toFixed(2), r4 = "Height: " + (t4 ? l4 + " (" + n3 + " pixels)" : "Hidden"), d3 = qo2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - d3.x, g4 = 0 - d3.x + He2, u4 = { x: c4, y: i2 - (d3.y - a2.y), width: g4 - c4, height: s3 - i2 };
|
|
2743
2751
|
requestAnimationFrame(() => {
|
|
2744
2752
|
Nt2.current && ue2?.({ anchor: u4, display: r4 });
|
|
2745
2753
|
});
|
|
@@ -2756,13 +2764,13 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2756
2764
|
}, onResizeHeadersDown: (t4, o3) => {
|
|
2757
2765
|
Gt2.current = true, setTimeout(() => {
|
|
2758
2766
|
Gt2.current && e3(t4, o3);
|
|
2759
|
-
},
|
|
2767
|
+
}, 360);
|
|
2760
2768
|
}, onResizeHeadersEnd: (e4, o3, n3) => {
|
|
2761
2769
|
t3?.commit({ description: n3 }), t3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
|
|
2762
2770
|
}, onResizeHeadersUp: (e4) => {
|
|
2763
2771
|
Gt2.current = false, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
|
|
2764
2772
|
}, ...u2 };
|
|
2765
|
-
}, [o2, u2,
|
|
2773
|
+
}, [o2, u2, He2]), Kt2 = b(t2, () => {
|
|
2766
2774
|
const e3 = (e4) => {
|
|
2767
2775
|
o2?.getView() && o2.getView().selectMovables([]), We2.current = null, ke2?.current?.focus(e4);
|
|
2768
2776
|
}, t3 = async (e4 = null) => {
|
|
@@ -2776,7 +2784,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2776
2784
|
let r3 = $e2.current?.get(l3);
|
|
2777
2785
|
return r3?.current ? (await r3.current.focusMovable(e4), true) : (We2.current = { movable: e4, anchor: l3 }, true);
|
|
2778
2786
|
};
|
|
2779
|
-
return { getGridElement: () => ke2.current, getRowHeaderElement: () => qo2.current, getColumnHeaderElement: () => yo2.current, rowHeaderHeight: () => Be2, colHeaderWidth: () =>
|
|
2787
|
+
return { getGridElement: () => ke2.current, getRowHeaderElement: () => qo2.current, getColumnHeaderElement: () => yo2.current, rowHeaderHeight: () => Be2, colHeaderWidth: () => He2, startEdit: ht2, submitEdit: () => {
|
|
2780
2788
|
gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, submit: true } });
|
|
2781
2789
|
}, cancelEdit: () => {
|
|
2782
2790
|
gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, cancel: true } });
|
|
@@ -2791,10 +2799,10 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2791
2799
|
}, [fe2]);
|
|
2792
2800
|
const Yt2 = ft2 ? Se2.edgeStrokeFill : Ce2.fill, Jt2 = ft2 ? be2.fill : "function" == typeof fe2.headerHover ? fe2.headerHover(Ce2)?.fill : Ce2.fill, Qt2 = te(() => R2 ? G("div", { className: Me("sheetxl-viewport-overlay", qt), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: R2 }) : G(j, {}), [R2]);
|
|
2793
2801
|
let eo2 = null;
|
|
2794
|
-
|
|
2802
|
+
De2 && Ie2 && (eo2 = Z("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${Be2}px`, width: `${He2}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (e3) => {
|
|
2795
2803
|
let t3 = !e3.ctrlKey;
|
|
2796
2804
|
pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which === N.Right ? r2?.({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: -1, colIndex: -1 }) : ke2.current?.focus();
|
|
2797
|
-
}, children: [G("div", { style: { height: Be2 - 5 + "px", width: Be2 - 5 + "px", clipPath: `path('M${Be2 - 5} 0 L0 ${Be2 - 5} L${Be2 - 5} ${Be2 - 5} L${Be2 - 5} 0 Z')`, borderRight: `2px solid ${Yt2}`, borderBottom: `2px solid ${Yt2}`, background: `${Jt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), G("div", { style: { position: "absolute", height: `${Be2}px`, width: `${
|
|
2805
|
+
}, children: [G("div", { style: { height: Be2 - 5 + "px", width: Be2 - 5 + "px", clipPath: `path('M${Be2 - 5} 0 L0 ${Be2 - 5} L${Be2 - 5} ${Be2 - 5} L${Be2 - 5} 0 Z')`, borderRight: `2px solid ${Yt2}`, borderBottom: `2px solid ${Yt2}`, background: `${Jt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), G("div", { style: { position: "absolute", height: `${Be2}px`, width: `${He2}px`, boxSizing: "border-box", borderRight: `solid 1px ${Ce2.strokeFill}`, borderBottom: `solid 1px ${Ce2.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
|
|
2798
2806
|
const no2 = S(({ _left: e3, _top: t3 }) => {
|
|
2799
2807
|
}, []), lo2 = S((e3) => {
|
|
2800
2808
|
if (!r2) return;
|
|
@@ -2839,7 +2847,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2839
2847
|
}, [gt2]), wo2 = S(async (e3) => {
|
|
2840
2848
|
const t3 = gt2.getMode();
|
|
2841
2849
|
return e3.keyCode === x.Escape && t3 ? (e3.preventDefault(), void gt2.setMode(null)) : e3.keyCode === x.Enter && fo2 ? (e3.preventDefault(), await pt2?.getCommand("paste")?.execute(), void gt2.setMode(null)) : void pt2?.dispatchToFocusedCommand(e3);
|
|
2842
|
-
}, [pt2, gt2]), qo2 = le(null), vo2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${
|
|
2850
|
+
}, [pt2, gt2]), qo2 = le(null), vo2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${He2 + Ce2.edgeStrokeWidth}px`, minWidth: `${He2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2" }, children: G(Mt, { ref: qo2, sheetElement: Kt2.current, gridRef: ke2, freezeStart: dt2?.[X.Top], oppositeSize: He2, containerWidth: He2, containerHeight: Pe2, sheetHeader: o2.getRowHeaders(), gridStyle: we2, verticalPadding: Math.max(0, Math.floor(o2.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Wt2, onSheetContextMenu: r2, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${He2 + Ce2.edgeStrokeWidth}px`, minWidth: `${He2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2", ...jt2?.style }, ...jt2 }) }), [He2, Be2, Pe2, o2, Wt2, dt2?.[X.Top], fe2, Ye2, r2, Ce2.fill, u2]), yo2 = le(null), Co2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: G(Mt, { ref: yo2, sheetElement: Kt2.current, gridRef: ke2, freezeStart: dt2?.[X.Left], oppositeSize: Be2, containerWidth: Oe2, containerHeight: Be2, sheetHeader: o2.getColumnHeaders(), gridStyle: we2, scrollPoint: Pt2, onSheetContextMenu: r2, ...Zt2, style: { ...Zt2?.style, position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [Be2, Oe2, o2, Pt2, dt2?.[X.Left], fe2, Ce2.fill, Ye2, r2, c2]), bo2 = S((e3) => {
|
|
2843
2851
|
const { value: t3, key: n3, ...l3 } = e3;
|
|
2844
2852
|
let r3 = t3, i2 = Ke2;
|
|
2845
2853
|
if (!i2 || i2.colIndex === e3.coords.colIndex && i2.rowIndex === e3.coords.rowIndex || (i2 = null), !r3) {
|
|
@@ -2861,33 +2869,33 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2861
2869
|
return ce(et, { ...l3, key: n3, bodyStyle: ve2, docTheme: s3.getTheme(), normalStyle: s3.getNormal(), showFormulas: Te2.isShowFormulas(), showZeros: Te2.isShowZeros(), onLinkMouseDown: a2, ...$2, value: r3 });
|
|
2862
2870
|
}, [o2, _e2, ve2, Ke2, Te2?.isShowFormulas(), Te2.isShowZeros()]), So2 = ae((e3, t3) => {
|
|
2863
2871
|
const { key: n3, ...l3 } = e3;
|
|
2864
|
-
return [G(Tt, { ref: t3, getVisibleCells: io2, sheet: o2, gridStyle: fe2, ...l3 }, `border-${n3}`), G(ao, { ref: t3, sheet: o2, commands: pt2, ...l3 }, `table-${n3}`), G(so, { ref: t3, sheet: o2, ...l3 }, `spill-${n3}`), G(_t, { ref: t3, sheet: o2, commands: pt2, notifier: I2, onShowTooltip: de2, onCloseTooltip: he2, gridStyle: fe2, gridRef: ke2, editingCoords: Ke2, isActive: Ye2, ...l3 }, `selection-${n3}`), G(
|
|
2872
|
+
return [G(Tt, { ref: t3, getVisibleCells: io2, sheet: o2, gridStyle: fe2, ...l3 }, `border-${n3}`), G(ao, { ref: t3, sheet: o2, commands: pt2, ...l3 }, `table-${n3}`), G(so, { ref: t3, sheet: o2, ...l3 }, `spill-${n3}`), G(_t, { ref: t3, sheet: o2, commands: pt2, notifier: I2, onShowTooltip: de2, onCloseTooltip: he2, gridStyle: fe2, gridRef: ke2, editingCoords: Ke2, isActive: Ye2, ...l3 }, `selection-${n3}`), G(Lt, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, element: Qe2, notifier: I2, ...l3 }, `copy-paste-${n3}`), G(to, { ref: t3, sheet: o2, commands: pt2, target: ut2, notifier: I2, renderMovable: k2, movableProps: { onUnFocus: () => {
|
|
2865
2873
|
Kt2.current.focus();
|
|
2866
|
-
} }, ...l3 }, `movable-${n3}`), G(oo, { ref: t3, sheet: o2, commands: pt2, notifier: I2, gridStyle: fe2, getCellEditor: T2, showProtectedError:
|
|
2874
|
+
} }, ...l3 }, `movable-${n3}`), G(oo, { ref: t3, sheet: o2, commands: pt2, notifier: I2, gridStyle: fe2, getCellEditor: T2, showProtectedError: Et2, setEditingCoords: Xe2, ...l3 }, `editor-${n3}`)];
|
|
2867
2875
|
}, [o2, ke2.current, fe2, T2, pt2, I2]), [xo2, ko2] = oe(false), Ro2 = te(() => {
|
|
2868
2876
|
if (0 === Oe2 || 0 === Pe2) return null;
|
|
2869
2877
|
const e3 = o2.getStyles().getNormal(), t3 = e3.getFont(), n3 = e3.getFill(), l3 = e3.getBorder(), r3 = e3.getFill().getType() === m.Type.None;
|
|
2870
|
-
let i2 =
|
|
2878
|
+
let i2 = Ee2, a2 = Ee2;
|
|
2871
2879
|
const s3 = (e4, t4, o3) => o3 ? { stroke: l3.getBottom().isNone() ? "none" : e4.getColor().toRGBA(ve2.darkMode).toString(), ...t4 } : t4;
|
|
2872
2880
|
a2 = s3(l3.getBottom(), a2, !l3.getBottom().isNone()), a2 = s3(l3.getTop(), a2, !l3.getTop().isNone()), i2 = s3(l3.getRight(), i2, !l3.getRight().isNone()), i2 = s3(l3.getLeft(), i2, !l3.getLeft().isNone());
|
|
2873
2881
|
let d2 = Te2?.getGridLineColor()?.toRGBA(ve2.darkMode).toString() ?? ve2.strokeFill;
|
|
2874
2882
|
return r3 || (a2 = s3(l3.getBottom(), a2, true), a2 = s3(l3.getTop(), a2, true), i2 = s3(l3.getRight(), i2, true), i2 = s3(l3.getLeft(), i2, true)), G(qe, { className: "sheetxl-sheet-primary", style: { ...co, ...n3.toCSS(ve2.darkMode), ...t3.toCSS(ve2.darkMode, ze2), "--sxl-app-color-background": ve2.fill, "--sxl-app-color-shadow": fe2.colorShadow, "--sxl-app-color-grey": fe2.colorGrey, "--sxl-app-color-button-fill": ye2.fill, "--sxl-app-color-button-text": ye2.text?.fill, "--sxl-app-color-button-border": ye2.edgeStrokeFill, "--sxl-app-color-primary-dark": fe2.selection.strokeFill }, ref: ke2, zoom: ze2, ...P2, onFirstRender: (e4) => {
|
|
2875
2883
|
ko2(true), P2?.onFirstRender?.(e4), pt2?.activate();
|
|
2876
|
-
}, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[X.Left], freezeLeftProps: mo2, freezeTop: dt2?.[X.Top], freezeTopProps: mo2, width: Oe2, height: Pe2, columnCount: Ve2.width, rowCount: Ve2.height, cursor:
|
|
2884
|
+
}, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[X.Left], freezeLeftProps: mo2, freezeTop: dt2?.[X.Top], freezeTopProps: mo2, width: Oe2, height: Pe2, columnCount: Ve2.width, rowCount: Ve2.height, cursor: Dt2 ?? At2 ?? "cell", clipCells: true, layout: _e2, cellRenderer: bo2, overlayRenderer: So2, getCellCoordsAsRangeCoords: at2, getVisibleCells: io2, onWheelScroll: ro2, onPointerDown: po2, onKeyDown: wo2, onViewportChange: nt2, onImmediateScroll: no2, scrollPoint: rt2, stageProps: { onFocus: () => {
|
|
2877
2885
|
pt2?.activate();
|
|
2878
|
-
} }, overlays:
|
|
2886
|
+
} }, overlays: Ht2 });
|
|
2879
2887
|
}, [U2]);
|
|
2880
2888
|
re(() => {
|
|
2881
2889
|
me2.current || _2();
|
|
2882
|
-
}, [_e2, dt2, ze2, pt2, rt2?.left, rt2?.top, ve2, P2, Oe2, Pe2,
|
|
2890
|
+
}, [_e2, dt2, ze2, pt2, rt2?.left, rt2?.top, ve2, P2, Oe2, Pe2, Dt2, Ht2, Ye2, At2]);
|
|
2883
2891
|
let Mo2 = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
|
|
2884
|
-
h2 || (Mo2 = { ...Mo2, ...
|
|
2892
|
+
h2 || (Mo2 = { ...Mo2, ...D2 });
|
|
2885
2893
|
const To2 = te(() => {
|
|
2886
2894
|
const e3 = o2.getStyles().getTheme(), t3 = e3.getColorScheme(), n3 = e3.getFontScheme();
|
|
2887
2895
|
return { "--sxl-doc-color-dk1": t3.getDk1().toCSS(ve2.darkMode), "--sxl-doc-color-dk2": t3.getDk2().toCSS(ve2.darkMode), "--sxl-doc-color-lt1": t3.getLt1().toCSS(ve2.darkMode), "--sxl-doc-color-lt2": t3.getLt2().toCSS(ve2.darkMode), "--sxl-doc-color-accent1": t3.getAccent1().toCSS(ve2.darkMode), "--sxl-doc-color-accent2": t3.getAccent2().toCSS(ve2.darkMode), "--sxl-doc-color-accent3": t3.getAccent3().toCSS(ve2.darkMode), "--sxl-doc-color-accent4": t3.getAccent4().toCSS(ve2.darkMode), "--sxl-doc-color-accent5": t3.getAccent5().toCSS(ve2.darkMode), "--sxl-doc-color-accent6": t3.getAccent6().toCSS(ve2.darkMode), "--sxl-doc-color-hlink": t3.getHlink().toCSS(ve2.darkMode), "--sxl-doc-color-fol-hlink": t3.getFolHlink().toCSS(ve2.darkMode), "--sxl-doc-font-major": n3.getMajorFont(), "--sxl-doc-font-minor": n3.getMinorFont() };
|
|
2888
2896
|
}, [o2.getStyles().getTheme()]);
|
|
2889
2897
|
let Ao2 = G("div", { style: Mo2, onTouchStart: () => {
|
|
2890
|
-
|
|
2898
|
+
Eo2();
|
|
2891
2899
|
}, onFocus: (e3) => {
|
|
2892
2900
|
je2(true), A2?.(e3);
|
|
2893
2901
|
}, onBlur: (e3) => {
|
|
@@ -2895,18 +2903,18 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2895
2903
|
}, ref: Kt2, ...W2, children: G("div", { className: Me("sheetxl-sheet", wt), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...To2 }, children: Z("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [eo2, vo2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [Co2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, backgroundColor: ve2.fill }, ref: ee2, onContextMenu: lo2, children: [Ro2, Qt2, G(yt, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: fe2?.selection?.strokeFill, colorCredits: fe2?.body?.text?.fill })] })] })] }) }) });
|
|
2896
2904
|
if (h2) {
|
|
2897
2905
|
const e3 = (e4) => G(kt, { ...e4, sheet: o2 });
|
|
2898
|
-
Ao2 = G(O, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 *
|
|
2906
|
+
Ao2 = G(O, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 * Le2.height, minWidth: 2 * Le2.width, ...D2 }, viewport: tt2, touchElement: ke2.current?.stage, disableTouch: Rt2, onScrollViewport: (e4) => {
|
|
2899
2907
|
ke2.current?.scrollTo(e4);
|
|
2900
2908
|
}, createHorizontalScrollbar: e3, createVerticalScrollbar: e3, ...p2, children: Ao2 });
|
|
2901
2909
|
}
|
|
2902
2910
|
re(() => {
|
|
2903
2911
|
me2.current = false, _2?.(), Ze2 && Kt2.current?.focus();
|
|
2904
2912
|
}, [o2]);
|
|
2905
|
-
const [zo2, Fo2] = oe(false),
|
|
2913
|
+
const [zo2, Fo2] = oe(false), Eo2 = S(() => {
|
|
2906
2914
|
zo2 || Fo2(true);
|
|
2907
2915
|
}, [zo2]);
|
|
2908
2916
|
return re(() => {
|
|
2909
|
-
if (xo2) return "function" == typeof M2 && M2(), "touch" === C.detectIt().primaryInput &&
|
|
2917
|
+
if (xo2) return "function" == typeof M2 && M2(), "touch" === C.detectIt().primaryInput && Eo2(), () => {
|
|
2910
2918
|
};
|
|
2911
2919
|
}, [M2, xo2, zo2]), Ao2;
|
|
2912
2920
|
}));
|
|
@@ -2945,7 +2953,7 @@ const qo = ee(ne((e2, t2) => {
|
|
|
2945
2953
|
}, [l2]);
|
|
2946
2954
|
const x2 = le(null), [k2, R2] = oe(null), M2 = ae(function(e3) {
|
|
2947
2955
|
const t3 = e3.message;
|
|
2948
|
-
k2 !== t3 && (d2?.showMessage?.(t3, { type:
|
|
2956
|
+
k2 !== t3 && (d2?.showMessage?.(t3, { type: E.Error }), R2(t3));
|
|
2949
2957
|
}, [d2, k2]), T2 = ae((e3) => {
|
|
2950
2958
|
let t3 = false;
|
|
2951
2959
|
try {
|
|
@@ -2970,10 +2978,10 @@ const qo = ee(ne((e2, t2) => {
|
|
|
2970
2978
|
q2 && C2(e4.target.value);
|
|
2971
2979
|
}, onMouseDown: (e4) => e4.stopPropagation(), onKeyDown: (e4) => "Escape" === e4.code ? (e4.preventDefault(), void A2()) : "Enter" === e4.code ? (e4.preventDefault(), void T2(e4.target.value)) : void ("Tab" !== e4.code ? e4.stopPropagation() : T2(e4.target.value)) };
|
|
2972
2980
|
return G(j, { children: s2(e3) });
|
|
2973
|
-
}, [q2, y2, T2, A2, s2, h2]), [F2,
|
|
2981
|
+
}, [q2, y2, T2, A2, s2, h2]), [F2, D2] = oe();
|
|
2974
2982
|
ie(() => {
|
|
2975
2983
|
let e3 = Object.assign({}, o2);
|
|
2976
|
-
(g2 || f2) && (e3 = Object.assign(e3, c2)),
|
|
2984
|
+
(g2 || f2) && (e3 = Object.assign(e3, c2)), D2(e3);
|
|
2977
2985
|
}, [g2, f2, c2, o2]), re(() => {
|
|
2978
2986
|
z2 && i2?.(y2);
|
|
2979
2987
|
}, [z2, i2, y2]);
|
|
@@ -2997,17 +3005,17 @@ const qo = ee(ne((e2, t2) => {
|
|
|
2997
3005
|
const v2 = c2 ? c2({ dragOverlay: Boolean(t2), dragging: Boolean(o2), sorting: Boolean(g2), index: a2, fadeIn: Boolean(l2), listeners: s2, ref: q2, style: u2, transform: m2, transition: h2, value: p2 }) : G(j, { children: p2 });
|
|
2998
3006
|
return G("div", { className: Me("tab-item", So.Wrapper, l2 && So.fadeIn, g2 && So.sorting, t2 && So.dragOverlay), style: { ...f2, transition: [h2, f2?.transition].filter(Boolean).join(", "), "--translate-x": m2 ? `${Math.round(m2.x)}px` : void 0, "--translate-y": m2 ? `${Math.round(m2.y)}px` : void 0, "--scale-x": m2?.scaleX ? `${m2.scaleX}` : void 0, "--scale-y": m2?.scaleY ? `${m2.scaleY}` : void 0, "--index": a2 }, ref: q2, children: G("div", { className: Me(So.Item, o2 && So.dragging, r2 && So.withHandle, t2 && So.dragOverlay, n2 && So.disabled, e2 && So.color, "dragging"), style: u2, "data-cypress": "draggable-item", ...r2 ? void 0 : s2, ...w2, tabIndex: r2 ? void 0 : -1, children: v2 }) });
|
|
2999
3007
|
})), ko = { Row: "_Row_1kr10_1" }, Ro = ee(ne(({ children: e2, horizontal: t2, style: o2 }, n2) => G("div", { ref: n2, style: { ...o2 }, className: Me(ko.Row, t2 && ko.horizontal), children: e2 }))), Mo = { ...Be }, To = ee(ne((e2, t2) => {
|
|
3000
|
-
const { className: o2, activationConstraint: n2, animateLayoutChanges: l2, adjustScale: r2 = false, collisionDetection: i2 =
|
|
3008
|
+
const { className: o2, activationConstraint: n2, animateLayoutChanges: l2, adjustScale: r2 = false, collisionDetection: i2 = He, coordinateGetter: a2 = Fe, dropAnimation: s2 = Mo, getItemStyles: d2 = () => ({}), getNewIndex: c2, handle: g2 = false, items: u2, onMove: h2, isDisabled: m2 = () => false, measuring: p2, modifiers: f2, renderItem: w2, renderDivider: q2, reorderItems: v2 = Ee, strategy: y2 = De, style: C2, useDragOverlay: b2 = true, onDragStart: S2, wrapperStyle: x2 = () => ({}) } = e2, [k2, R2] = oe(() => u2);
|
|
3001
3009
|
re(() => {
|
|
3002
3010
|
R2(u2);
|
|
3003
3011
|
}, [u2]);
|
|
3004
|
-
const [M2, T2] = oe(null), A2 = Oe(Pe($e, { activationConstraint: n2 }), Pe(We, { activationConstraint: n2 }), Pe(Ue, { scrollBehavior: "Cypress" in window ? "auto" : void 0, coordinateGetter: a2 })), z2 = k2.indexOf.bind(k2), F2 = M2 ? z2(M2) : -1,
|
|
3012
|
+
const [M2, T2] = oe(null), A2 = Oe(Pe($e, { activationConstraint: n2 }), Pe(We, { activationConstraint: n2 }), Pe(Ue, { scrollBehavior: "Cypress" in window ? "auto" : void 0, coordinateGetter: a2 })), z2 = k2.indexOf.bind(k2), F2 = M2 ? z2(M2) : -1, E2 = [];
|
|
3005
3013
|
k2.map((e3, t3) => {
|
|
3006
|
-
|
|
3014
|
+
E2.push(G(Ao, { id: e3, handle: g2, index: t3, style: d2, wrapperStyle: x2, disabled: m2(e3), renderItem: w2, animateLayoutChanges: l2, useDragOverlay: b2, getNewIndex: c2 }, e3 + "-" + t3));
|
|
3007
3015
|
const o3 = q2?.({ key: "divider-" + t3 });
|
|
3008
|
-
o3 &&
|
|
3016
|
+
o3 && E2.push(o3);
|
|
3009
3017
|
});
|
|
3010
|
-
const { getPortalContainer:
|
|
3018
|
+
const { getPortalContainer: D2 } = P();
|
|
3011
3019
|
return Z(_e, { sensors: A2, collisionDetection: i2, onDragStart: (e3) => {
|
|
3012
3020
|
const { active: t3 } = e3;
|
|
3013
3021
|
t3 && (S2?.(e3), T2(t3.id));
|
|
@@ -3018,15 +3026,15 @@ const qo = ee(ne((e2, t2) => {
|
|
|
3018
3026
|
}
|
|
3019
3027
|
}, onDragCancel: () => {
|
|
3020
3028
|
T2(null);
|
|
3021
|
-
}, measuring: p2, modifiers: f2, children: [G("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className: Me(o2, So.Wrapper), children: G(Ie, { items: k2, strategy: y2, children: G(Ro, { ref: t2, children:
|
|
3029
|
+
}, measuring: p2, modifiers: f2, children: [G("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className: Me(o2, So.Wrapper), children: G(Ie, { items: k2, strategy: y2, children: G(Ro, { ref: t2, children: E2 }) }) }), b2 ? Ae(G(Ge, { adjustScale: r2, dropAnimation: s2, children: M2 ? G(xo, { value: k2[F2], handle: g2, renderItem: w2, wrapperStyle: x2({ index: F2, isDragging: true, id: k2[F2] }), index: F2, dragging: true, style: d2({ id: k2[F2], index: F2, isSorting: null !== M2, isDragging: true, overIndex: -1, isDragOverlay: true }), dragOverlay: true }) : null }), D2()) : null] });
|
|
3022
3030
|
}));
|
|
3023
3031
|
function Ao({ disabled: e2, animateLayoutChanges: t2, getNewIndex: o2, handle: n2, id: l2, index: r2, onRemove: i2, style: a2, renderItem: s2, useDragOverlay: d2, wrapperStyle: c2 }) {
|
|
3024
3032
|
const { attributes: g2, isDragging: u2, isSorting: h2, listeners: m2, overIndex: p2, setNodeRef: f2, transform: w2, transition: q2 } = Ve({ id: l2, animateLayoutChanges: t2, disabled: e2, getNewIndex: o2 });
|
|
3025
3033
|
return G(xo, { ref: f2, value: l2, disabled: e2, dragging: u2, sorting: h2, handle: n2, renderItem: s2, index: r2, style: a2({ index: r2, id: l2, isDragging: u2, isSorting: h2, overIndex: p2 }), onRemove: i2 ? () => i2(l2) : void 0, transform: w2, transition: q2, wrapperStyle: c2({ index: r2, isDragging: u2, id: l2 }), listeners: m2, "data-index": r2, "data-id": l2, dragOverlay: !d2 && u2, ...g2 });
|
|
3026
3034
|
}
|
|
3027
|
-
const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"),
|
|
3028
|
-
const { children: o2, style: n2, className: l2, selectedTabIndex: r2 = 0, tabNames: i2 = [], onSelectedTabIndexChange: a2, onTabNameChange: s2, onTabMove: d2, createScrollStartButton: c2 = $, createScrollEndButton: g2 = W, createScrollEdgeButton: u2 = U, createTabButton: h2 =
|
|
3029
|
-
const t3 =
|
|
3035
|
+
const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"), Eo = "#eee", Do = (e2) => G(bo, { ...e2 }), Io = ee(ne((e2, t2) => {
|
|
3036
|
+
const { children: o2, style: n2, className: l2, selectedTabIndex: r2 = 0, tabNames: i2 = [], onSelectedTabIndexChange: a2, onTabNameChange: s2, onTabMove: d2, createScrollStartButton: c2 = $, createScrollEndButton: g2 = W, createScrollEdgeButton: u2 = U, createTabButton: h2 = Do, createTabDivider: m2, editLabelProps: p2, disabled: f2 = false, disableDrag: w2 = false, background: q2 = "white", activeColor: v2 = Fo, borderColor: y2 = Eo, borderWidth: C2 = 1 } = e2, [b2, S2] = oe(r2), [x2, k2] = oe(i2), R2 = ae((e3) => {
|
|
3037
|
+
const t3 = D2.current?.[e3]?.closest(".tab-item") ?? D2.current?.[e3];
|
|
3030
3038
|
t3 && P2.current?.scrollTo({ top: t3.offsetTop, left: t3.offsetLeft, behavior: "smooth" });
|
|
3031
3039
|
}, []);
|
|
3032
3040
|
re(() => {
|
|
@@ -3036,7 +3044,7 @@ const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"), Do = "#eee", Eo
|
|
|
3036
3044
|
t3 !== b2 && (S2(t3), a2?.(t3)), R2(t3);
|
|
3037
3045
|
}, [a2, b2]), T2 = ae((e3, t3) => {
|
|
3038
3046
|
d2?.(e3, t3);
|
|
3039
|
-
}, [d2]), A2 = le(null), [z2, F2] = oe(-1),
|
|
3047
|
+
}, [d2]), A2 = le(null), [z2, F2] = oe(-1), E2 = ae((e3, t3) => {
|
|
3040
3048
|
s2?.(e3, t3);
|
|
3041
3049
|
}, [s2]);
|
|
3042
3050
|
ie(() => {
|
|
@@ -3044,22 +3052,22 @@ const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"), Do = "#eee", Eo
|
|
|
3044
3052
|
}, [r2]), ie(() => {
|
|
3045
3053
|
k2(i2);
|
|
3046
3054
|
}, [i2]);
|
|
3047
|
-
const
|
|
3055
|
+
const D2 = le([]), V2 = le(null);
|
|
3048
3056
|
ge(t2, () => Object.assign({ startEdit(e3) {
|
|
3049
|
-
|
|
3057
|
+
D2.current?.[e3]?.startEdit();
|
|
3050
3058
|
}, cancel(e3) {
|
|
3051
|
-
|
|
3059
|
+
D2.current?.[e3]?.cancel();
|
|
3052
3060
|
} }, V2.current), [b2, z2]);
|
|
3053
3061
|
const N2 = ae(({ value: e3, index: t3, dragging: o3 }) => {
|
|
3054
3062
|
const { style: n3, maxLength: l3, ...r3 } = p2 || {}, i3 = G(Co, { ref: (e4) => {
|
|
3055
|
-
|
|
3056
|
-
}, value: e3, disabled: f2, maxLength: l3, style: { color: b2 === t3 && v2 ? v2?.toRGBA().toString() : "inherit", flex: "1 1 100%", paddingTop: "1px", paddingBottom: "1px", ...n3 }, styleHover: {}, onSubmit: (e4) => (A2.current = false, F2(-1),
|
|
3063
|
+
D2.current[t3] = e4;
|
|
3064
|
+
}, value: e3, disabled: f2, maxLength: l3, style: { color: b2 === t3 && v2 ? v2?.toRGBA().toString() : "inherit", flex: "1 1 100%", paddingTop: "1px", paddingBottom: "1px", ...n3 }, styleHover: {}, onSubmit: (e4) => (A2.current = false, F2(-1), E2(t3, e4)), onCancel: () => {
|
|
3057
3065
|
A2.current = false, F2(-1);
|
|
3058
3066
|
}, onChange: (e4) => {
|
|
3059
3067
|
A2.current = true, F2(t3);
|
|
3060
3068
|
}, ...r3 });
|
|
3061
3069
|
return h2({ onClick: (e4) => M2(e4, t3), value: e3, index: t3, editing: z2 === t3 && A2.current, editable: true, disabled: f2, selectedIndex: b2, background: q2, activeColor: v2, borderColor: y2, borderWidth: C2, dragging: o3, children: i3 });
|
|
3062
|
-
}, [b2,
|
|
3070
|
+
}, [b2, E2, M2, p2, f2, z2, h2]), [L2, { width: H2 }] = Re(), [B2, { width: O2 }] = Re(), P2 = le(null), [K2, X2] = oe({ left: 0, top: 0, width: 0, height: 0 }), [Y2, J2] = oe(null);
|
|
3063
3071
|
re(() => {
|
|
3064
3072
|
null !== Y2 && P2.current && P2.current.scrollTo({ left: Y2, behavior: "smooth" });
|
|
3065
3073
|
}, [Y2]);
|
|
@@ -3070,9 +3078,9 @@ const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"), Do = "#eee", Eo
|
|
|
3070
3078
|
}, []), ee2 = ae((e3, t3 = false) => {
|
|
3071
3079
|
if (!P2.current) return 0;
|
|
3072
3080
|
let o3 = P2.current.firstChild.getBoundingClientRect(), n3 = P2.current.firstChild.firstChild.children, l3 = 0;
|
|
3073
|
-
const r3 = Math.ceil(O2 -
|
|
3081
|
+
const r3 = Math.ceil(O2 - H2);
|
|
3074
3082
|
return l3 = t3 ? r3 : _.getScrollTo(e3, o3.left, n3, false, Math.max(0, e3 + 200)), J2(l3), Math.min(r3, l3);
|
|
3075
|
-
}, [O2,
|
|
3083
|
+
}, [O2, H2]), ne2 = le(null), se2 = le(null), de2 = ae(() => {
|
|
3076
3084
|
se2.current && (clearTimeout(se2.current), se2.current = null, ne2.current = null);
|
|
3077
3085
|
}, []), ce2 = ae((e3, t3, o3 = 260) => {
|
|
3078
3086
|
ne2.current = e3, se2.current = setTimeout(() => {
|
|
@@ -3081,13 +3089,13 @@ const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"), Do = "#eee", Eo
|
|
|
3081
3089
|
}, o3);
|
|
3082
3090
|
}, [Q2, ee2, de2]);
|
|
3083
3091
|
re(() => () => de2(), [de2]);
|
|
3084
|
-
const ue2 = te(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(K2.left) <= 0 || 0 === Math.floor(O2 -
|
|
3085
|
-
return Z("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className: Me(zo, l2), ref: V2, children: [G("div", { style: { borderTop: `solid ${y2} ${C2}px`, position: "absolute", width: "100%" } }), G("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: me2 }), G("div", { className: "Tabs", ref:
|
|
3092
|
+
const ue2 = te(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(K2.left) <= 0 || 0 === Math.floor(O2 - H2), orientation: I.Horizontal, onMouseUp: de2, onMouseLeave: de2, onMouseDown: () => ce2(P2.current.scrollLeft, true), onClick: (e3) => Q2(Math.min(P2.current.scrollLeft, Y2 ?? Number.MAX_SAFE_INTEGER), e3.ctrlKey) }), [K2, Y2, O2, H2]), he2 = te(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(O2 - H2) <= Math.ceil(K2.left), orientation: I.Horizontal, onMouseUp: de2, onMouseLeave: de2, onMouseDown: () => ce2(P2.current.scrollLeft, false), onClick: (e3) => ee2(Math.max(P2.current.scrollLeft, Y2 ?? 0), e3.ctrlKey) }), [K2, Y2, O2, H2]), me2 = te(() => Z(j, { children: [G("div", { style: { minWidth: "16px" } }), o2, u2?.(ue2)] }), [ue2, he2, c2, g2, o2, u2]);
|
|
3093
|
+
return Z("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className: Me(zo, l2), ref: V2, children: [G("div", { style: { borderTop: `solid ${y2} ${C2}px`, position: "absolute", width: "100%" } }), G("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: me2 }), G("div", { className: "Tabs", ref: L2, style: { flex: "1 1 100%", display: "flex", position: "relative", overflow: "hidden" }, children: G("div", { style: { position: "relative", overflowY: "hidden", overflowX: "hidden", marginBottom: "3px" }, ref: P2, onScroll: (e3) => {
|
|
3086
3094
|
X2({ left: e3.target.scrollLeft, top: e3.target.scrollTop, width: e3.target.scrollWidth, height: e3.target.scrollHeight });
|
|
3087
|
-
}, children: G(To, { isDisabled: (e3) => f2 || w2, items: x2, strategy: Ne, modifiers: [
|
|
3095
|
+
}, children: G(To, { isDisabled: (e3) => f2 || w2, items: x2, strategy: Ne, modifiers: [Le], ref: B2, renderItem: N2, renderDivider: m2, onMove: T2, activationConstraint: { distance: 15 } }) }) }), G("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: u2(he2) })] });
|
|
3088
3096
|
}));
|
|
3089
3097
|
Io.displayName = "TabStrip";
|
|
3090
|
-
const Vo = (e2) => Z("svg", { ...e2, viewBox: "0 0 48 48", children: [G("path", { d: "M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z", fill: "#547DBE" }), G("path", { d: "m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z", fill: "#FFFFFF" }), G("path", { d: "m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z", fill: "#547DBE", fillOpacity: "0.4" }), G("path", { d: "m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z", strokeWidth: "2.5", stroke: "#EB594D", fill: "#f9CECB" })] }), No = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), Ho = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1195 h 512 v 1195 h 256 v -1621 h 512 v 1621 m -810 -512 h -427 v 512 h 427 m 768 -768 h -427 v 768 h 427 z" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -555 h 512 v 555 h 256 v -811 h 512 v 811 m -469 0 h 427 v -768 h -427 m -768 768 h 427 v -512 h -427 z" }), G("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), G("path", { className: "styled info_dark", d: "M 341 725 h 512 v 683 h -512 m 43 -640 v 597 h 427 v -597 z" }), G("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 853 h -512 m 43 -811 v 768 h 427 v -768 z" })] }), Lo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1621 h 512 v 1621 h 256 v -1621 h 512 v 1621 m -810 -384 h -427 v 384 h 427 m 768 -1024 h -427 v 1024 h 427 z" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -427 h 512 v 427 h 256 v -1067 h 512 v 1067 m -469 0 h 427 v -1024 h -427 m -768 1024 h 427 v -384 h -427 z" }), G("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), G("path", { className: "styled info_dark", d: "M 341 299 h 512 v 1237 h -512 m 43 -1195 v 1152 h 427 v -1152 z" }), G("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 597 h -512 m 43 -555 v 512 h 427 v -512 z" })] }), Bo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 197 144 l 402 -402 l 361 360 l 263 -301 l 32 28 l -265 303 l 264 265 l -30 30 l -262 -263 l -317 362 l -444 -326 l -775 776 v 268 m 806 -1074 l 407 299 l 292 -335 l -332 -332 m -1173 832 v 281 l 740 -740 l -162 -119 z" }), G("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 639 469 l 584 -668 l 32 28 l -610 697 l -641 -470 l -578 578 v 610 z" })] }), Oo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1037 l 571 -570 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 l -581 582 v 452 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), G("path", { className: "styled info", d: "M 121 1189 l -29 -31 l 607 -606 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), Po = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1749 v 43 h -1749 v 1335 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), G("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), $o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 99 73 l 175 -190 h -18 v -170 h 170 v 140 l 233 233 l 280 -373 v -171 h 170 v 171 h -118 l -302 402 l 194 195 h 98 v 171 h -171 v -171 h 13 l -160 -160 l -109 144 v 144 h -170 v -104 l -279 -205 l -703 759 v 147 h -85 m 1015 -1152 l -199 215 l 251 184 v -15 h 139 l 110 -147 l -237 -237 m -1079 726 v 256 h 48 l 705 -761 l -70 -52 v 2 h -171 v -12 l -427 426 v 141 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -640 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 416 -554 v -171 h 170 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 z" }), G("path", { className: "styled info", d: "M 1694 1024 h 98 v 171 h -171 v -171 h 13 l -427 -427 h -64 l -930 1005 v 147 h -170 v -170 h 133 l 909 -982 h -18 v -170 h 170 v 140 z" })] }), Wo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 v 256 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled info", d: "M 1802 427 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -170 v -171 h 140 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 z" })] }), Uo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1195 h -42 v -171 h 42 v -128 h 43 v 128 h 85 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 h 171 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -85 v 1195 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled info", d: "M 1920 213 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -170 v -171 h 170 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 z" })] }), _o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 130 -33 250 q -34 119 -95 224 q -62 104 -147 190 q -86 86 -190 147 q -105 61 -225 95 q -120 33 -249 33 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 32 -243 q 31 -117 89 -219 q 58 -102 140 -187 q 82 -86 182 -148 q 100 -62 217 -99 q 116 -37 243 -43 m -862 939 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 173 0 325 -61 q 151 -61 272 -167 l -638 -638 v -924 q -121 6 -230 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -55 97 -85 209 q -31 111 -31 231 z" }), G("path", { className: "styled background", d: "M 1941 1024 q 0 127 -32 244 q -33 117 -93 219 q -60 102 -143 186 q -84 83 -186 143 q -102 60 -219 93 q -117 32 -244 32 q -127 0 -244 -32 q -117 -33 -219 -93 q -102 -60 -185 -143 q -84 -84 -144 -186 q -60 -102 -92 -219 q -33 -117 -33 -244 q 0 -127 33 -244 q 32 -117 92 -219 q 60 -102 144 -185 q 83 -84 185 -144 q 102 -60 219 -92 q 117 -33 244 -33 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 z" }), G("path", { className: "styled current_color", d: "M 1666 1709 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -97 59 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 178 0 334 -65 q 156 -65 277 -177 z" }), G("path", { className: "styled info_light", d: "M 1024 107 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -647 -648 v -937 q 5 0 11 0 q 5 -1 10 -1 z" }), G("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -62 187 q -41 89 -99 168 q -58 78 -130 142 q -9 -8 -15 -15 q -6 -6 -10 -10 q -5 -5 -5 -6 l -639 -638 v -969 m 670 1578 q 62 -61 112 -133 q 50 -72 85 -153 q 35 -82 54 -170 q 18 -89 18 -183 q 0 -123 -32 -237 q -32 -115 -90 -214 q -59 -100 -141 -182 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -238 -32 v 908 z" })] }), Go = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 187 q -41 89 -98 168 q -58 78 -130 142 q -125 112 -284 176 q -160 64 -342 64 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 33 -244 q 33 -118 93 -221 q 59 -104 144 -190 q 84 -86 187 -148 q 102 -62 221 -97 q 118 -36 247 -39 m 307 1305 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 q -90 8 -167 48 q -78 39 -135 102 q -58 62 -91 144 q -33 81 -33 173 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 84 0 159 -27 q 74 -28 134 -76 m -293 530 q 173 0 325 -60 q 151 -61 270 -168 l -272 -272 q -66 54 -148 85 q -82 31 -175 31 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -100 37 -189 q 36 -90 100 -158 q 63 -69 149 -112 q 85 -43 183 -51 v -384 q -119 6 -228 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -56 97 -86 209 q -30 111 -30 231 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 z" }), G("path", { className: "styled background", d: "M 1658 1692 q -125 119 -286 187 q -162 68 -348 68 q -127 0 -244 -33 q -118 -33 -220 -93 q -103 -60 -186 -143 q -84 -84 -144 -186 q -60 -103 -93 -220 q -33 -118 -33 -245 q 0 -125 32 -241 q 32 -116 90 -217 q 58 -101 140 -184 q 81 -84 181 -144 q 99 -61 214 -95 q 115 -35 239 -38 v 429 q -97 5 -181 45 q -85 40 -148 106 q -63 65 -99 152 q -36 86 -36 184 q 0 101 39 190 q 38 89 104 155 q 66 66 155 105 q 89 38 190 38 q 91 0 171 -30 q 80 -31 144 -85 z" }), G("path", { className: "styled current_color", d: "M 1364 1406 q -69 61 -155 96 q -86 34 -185 34 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -103 39 -194 q 38 -92 105 -161 q 66 -69 156 -110 q 89 -42 191 -46 v 42 q -94 4 -175 43 q -82 38 -142 101 q -61 63 -96 147 q -35 84 -35 178 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 90 0 169 -31 q 79 -31 141 -86 m 332 333 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -98 58 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 q 179 0 335 -64 q 155 -65 276 -178 z" }), G("path", { className: "styled info_light", d: "M 1515 1024 q 0 -102 -38 -191 q -39 -89 -106 -156 q -67 -67 -156 -105 q -89 -39 -191 -39 q -5 0 -10 1 q -6 0 -11 0 v -426 q 5 0 11 0 q 5 -1 10 -1 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -302 -301 q 77 -68 122 -162 q 45 -95 45 -206 z" }), G("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 188 q -41 89 -98 168 q -58 78 -130 142 l -333 -334 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 v -471 q 11 0 22 0 q 10 -1 21 -1 m 627 1579 q 62 -61 112 -133 q 50 -73 85 -154 q 35 -81 54 -170 q 18 -89 18 -183 q 0 -124 -32 -238 q -32 -115 -90 -214 q -59 -100 -140 -181 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -239 -32 v 384 q 106 0 200 40 q 93 40 163 110 q 69 69 109 163 q 40 93 40 199 q 0 109 -42 204 q -42 94 -114 164 z" })] }), Zo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1707 v 341 h -640 v 299 h -1067 v 171 h 811 v 298 h 512 v 342 h -1323 v 213 m 0 -1067 h 1024 v -256 h -1024 m 0 1067 h 1280 v -256 h -1280 z" }), G("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), G("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), G("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), G("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), G("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 768 h 1024 v -256 h 43 v 299 h -1067 v 469 h 1323 v 342 h -1323 v 213 m 0 -512 v 256 h 1280 v -256 z" })] }), jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1237 v 512 h -1237 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 555 v -427 h -555 m 0 1195 h 768 v -427 h -768 z" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 597 v 512 h -597 v 256 h 811 v 512 h -811 v 299 m 0 -768 v 427 h 768 v -427 m -768 -768 v 427 h 555 v -427 z" }), G("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), G("path", { className: "styled info_dark", d: "M 1365 341 v 512 h -682 v -512 m 640 43 h -598 v 427 h 598 z" }), G("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -853 v -512 m 811 43 h -768 v 427 h 768 z" })] }), Ko = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1621 v 512 h -1621 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 384 v -427 h -384 m 0 1195 h 1024 v -427 h -1024 z" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 427 v 512 h -427 v 256 h 1067 v 512 h -1067 v 299 m 0 -768 v 427 h 1024 v -427 m -1024 -768 v 427 h 384 v -427 z" }), G("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), G("path", { className: "styled info_dark", d: "M 1749 341 v 512 h -1237 v -512 m 1195 43 h -1152 v 427 h 1152 z" }), G("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -597 v -512 m 555 43 h -512 v 427 h 512 z" })] }), Xo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 253 256 l 544 -345 l 74 -91 l 644 466 l 277 -464 m 0 718 l -913 -662 l -476 591 l -403 -408 v 785 h 1792 z" }), G("path", { className: "styled background", d: "M 530 1511 l 473 -588 l 914 656 l 24 53 v 304 h -1834 l 2 -864 z" }), G("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), G("path", { className: "styled info_dark", d: "M 361 1342 l 572 -362 l 22 36 l -571 362 m 1248 1 l 287 -483 l 37 22 l -287 482 z" }), G("path", { className: "styled current_color", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 400 405 l 471 -585 l 921 667 v -665 m 0 1024 v -306 l -913 -662 l -476 591 l -403 -408 v 785 z" })] }), Yo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 640 v 926 l -641 -554 l -618 703 l -576 -575 v 780 h 1835 v 43 h -1878 v -1878 h 43 v 353 l 576 577 l 661 -704 l 276 329 z" }), G("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), G("path", { className: "styled info_light", d: "M 1963 1536 l -641 -555 l -618 704 l -597 -597 v -640 l 597 597 l 661 -704 l 269 319 h 329 z" }), G("path", { className: "styled info_dark", d: "M 1963 640 v 43 h -342 l -258 -310 l -659 702 l -597 -598 v -60 l 597 598 l 661 -704 l 276 329 m 322 866 v 60 l -641 -554 l -618 703 l -597 -597 v -62 l 597 599 l 618 -704 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), Jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 1524 l -788 -746 l -576 662 l -428 -428 v 823 h 1792 z" }), G("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), G("path", { className: "styled current_color", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 43 h -1792 v 1792 h 1792 z" }), G("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), G("path", { className: "styled info_dark", d: "M 1963 1649 l -831 -786 l -576 662 l -471 -467 v -973 h 1878 m -43 1465 v -1422 h -1792 v 908 l 426 426 l 575 -661 z" })] }), Qo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 m 768 384 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" }), G("path", { className: "styled background", d: "M 1195 1344 q 22 0 42 9 q 19 8 33 23 q 14 14 23 34 q 8 19 8 41 q 0 45 -30 76 q -31 30 -76 30 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -14 -23 -33 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 m -427 -341 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m 939 -512 q 45 0 76 31 q 30 30 30 75 q 0 22 -8 42 q -9 19 -23 34 q -14 14 -33 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m -1323 -256 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 z" }), G("path", { className: "styled info", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" })] }), en = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 l -7 2 q -26 93 -66 161 q -40 68 -88 116 q -48 47 -101 76 q -54 29 -108 44 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -115 -15 -221 -84 q -107 -69 -207 -190 q -36 91 -59 176 q -24 85 -38 152 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 15 -73 42 -167 q 26 -95 69 -195 q -48 -62 -94 -141 q -47 -80 -89 -168 q -43 -88 -80 -178 q -37 -91 -64 -176 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 19 59 48 135 q 29 75 67 158 q 37 82 84 167 q 47 85 103 163 q 33 -72 76 -141 q 42 -70 96 -131 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 5 0 9 1 q 3 0 7 0 q 1 -20 2 -40 q 0 -21 0 -43 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 q 18 113 27 215 q 8 102 8 193 q 0 25 0 48 q 0 23 -2 46 q 32 16 51 46 q 19 30 19 68 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 m -171 -1206 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 m -1408 86 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 354 -278 q 59 -80 92 -194 q -23 -4 -42 -15 q -19 -12 -33 -28 q -14 -17 -22 -38 q -8 -21 -8 -45 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -57 63 -101 136 q -44 73 -77 150 q 41 53 87 99 q 45 46 96 82 q 50 36 106 60 q 55 23 115 32 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 z" }), G("path", { className: "styled background", d: "M 1305 1497 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 m -890 -1072 q 0 23 -9 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -42 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 22 0 42 9 q 20 8 35 23 q 15 15 24 35 q 9 20 9 43 m 1317 -167 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 z" }), G("path", { className: "styled info", d: "M 1689 365 q 18 112 27 213 q 8 101 8 193 q 0 183 -35 322 q -35 138 -106 234 q -29 38 -60 67 q -32 29 -65 51 q -34 21 -68 36 q -35 14 -68 24 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -114 -15 -224 -87 q -110 -72 -211 -196 q -101 -125 -189 -299 q -89 -174 -160 -393 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 23 69 59 161 q 35 92 83 191 q 48 99 109 197 q 61 98 136 179 q 74 81 161 137 q 87 55 187 70 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 q 133 -178 133 -530 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 m -1476 62 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 341 -1323 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 q -14 3 -28 3 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -66 73 -115 161 q -49 87 -84 176 q -35 88 -58 172 q -24 83 -37 148 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 14 -67 38 -152 q 23 -86 59 -177 q 36 -92 87 -182 q 50 -90 118 -167 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 z" })] }), tn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1577 -902 q 93 215 93 547 q 0 88 -6 184 l -43 -3 q 3 -47 5 -92 q 2 -45 2 -88 q 0 -277 -68 -470 q -25 97 -65 167 q -40 70 -89 119 q -49 48 -104 78 q -55 29 -108 46 q -54 16 -103 22 q -49 5 -87 5 q -74 0 -141 -21 q -68 -21 -129 -58 q -62 -37 -116 -88 q -55 -51 -104 -111 q -39 93 -64 181 q -25 88 -40 157 q -15 69 -21 112 q -6 42 -6 44 l -42 -4 q 0 -2 7 -48 q 6 -46 23 -120 q 16 -74 44 -168 q 27 -94 70 -192 q -60 -79 -109 -167 q -50 -88 -90 -174 q -40 -86 -70 -164 q -30 -79 -50 -141 q -21 -62 -32 -102 q -11 -40 -13 -47 l 42 -11 q 0 2 10 37 q 10 35 29 93 q 19 58 48 135 q 28 76 66 160 q 38 83 86 170 q 47 86 104 165 q 45 -96 106 -184 q 61 -89 142 -156 q 80 -68 181 -108 q 101 -40 227 -40 q 3 0 22 2 q 19 1 49 9 q 30 8 68 25 q 38 16 80 46 q 41 29 83 75 q 42 46 80 112 q 5 -42 8 -87 q 2 -45 2 -93 q 0 -243 -64 -562 l 42 -8 q 65 325 65 569 q 0 68 -5 130 q -5 61 -15 117 m -156 283 q 79 -106 111 -275 q -33 -74 -72 -125 q -40 -51 -81 -84 q -41 -34 -80 -52 q -39 -19 -69 -27 q -31 -9 -49 -11 q -19 -2 -20 -2 q -121 0 -218 41 q -97 40 -173 107 q -77 67 -135 155 q -58 87 -101 181 q 47 60 100 112 q 53 51 112 89 q 58 37 123 59 q 65 21 136 21 q 45 0 99 -7 q 54 -7 110 -27 q 55 -21 109 -58 q 54 -37 98 -97 z" }), G("path", { className: "styled info", d: "M 1792 1749 l -43 -3 q 6 -93 6 -178 q 0 -244 -51 -422 q -51 -179 -152 -287 q -47 -49 -93 -76 q -46 -28 -83 -40 q -38 -13 -62 -15 q -24 -3 -25 -3 q -124 0 -223 44 q -99 43 -177 114 q -78 71 -136 162 q -58 90 -100 186 q -42 95 -69 187 q -28 91 -44 164 q -16 72 -22 118 q -7 46 -7 49 l -42 -4 q 0 -3 5 -34 q 4 -32 14 -84 q 10 -52 27 -120 q 17 -68 43 -144 q 25 -76 60 -156 q 35 -80 82 -155 q 46 -76 105 -143 q 58 -67 131 -117 q 73 -51 161 -80 q 88 -29 193 -29 q 3 0 30 3 q 27 2 69 16 q 41 14 92 44 q 51 30 102 84 q 216 231 216 735 q 0 45 -2 91 q -2 45 -5 93 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1004 -387 q -111 0 -207 -46 q -97 -46 -179 -121 q -83 -75 -151 -172 q -68 -97 -122 -199 q -55 -102 -96 -201 q -41 -99 -68 -178 q -28 -80 -43 -132 q -15 -53 -17 -62 l 42 -11 q 1 2 14 50 q 13 47 40 124 q 26 76 66 173 q 39 96 91 197 q 52 101 118 197 q 65 96 144 171 q 79 75 171 121 q 92 46 197 46 q 45 0 99 -7 q 54 -7 110 -27 q 56 -21 110 -58 q 54 -37 98 -97 q 133 -180 133 -528 q 0 -121 -16 -261 q -16 -141 -48 -302 l 42 -8 q 65 325 65 569 q 0 364 -142 556 q -50 67 -111 108 q -62 40 -123 62 q -62 22 -119 29 q -57 7 -98 7 z" })] }), on = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 213 342 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 361 762 l 165 -282 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 78 89 l 449 -570 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -258 814 l 410 467 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 l 70 565 l -482 -549 l -46 145 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 53 -166 l -189 -214 l -295 375 l -69 -146 l -147 251 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 166 -283 l -375 -789 q -14 3 -28 3 m 982 1109 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1323 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 m -105 275 l -401 509 l 176 200 m -355 -301 l -187 301 l 52 129 l 258 -327 l -93 -106 q -15 3 -30 3 m -638 -683 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 z" }), G("path", { className: "styled background", d: "M 1771 296 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -35 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 m -1320 7 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -34 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -35 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 15 -15 35 -23 q 19 -9 41 -9 q 22 0 42 9 q 19 8 34 23 q 14 14 23 34 q 8 19 8 41 m 902 1232 q 0 23 -8 43 q -9 19 -23 34 q -15 14 -35 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -43 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 z" }), G("path", { className: "styled info", d: "M 1664 171 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -319 1008 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 293 -923 l -724 918 l -466 -982 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 435 919 l 734 -932 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m -1323 213 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 m 982 1152 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1152 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1636 1182 l 70 565 l -825 -939 q -15 3 -30 3 l -360 615 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 357 -609 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 726 826 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 z" })] }), nn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1503 1457 l -10 61 l -42 -6 l 16 -96 l -334 -380 l -309 389 l -72 -147 l -248 421 l -37 -21 l 262 -446 l -463 -951 l 39 -18 l 451 925 l 227 -387 l 149 168 l 564 -710 l -184 1143 l 263 299 l -68 -525 l 42 -5 l 83 661 m -728 -828 l -114 -130 l -212 360 l 54 112 m 644 14 l 155 -951 l -471 593 m 803 918 v 43 h -1878 v -1878 h 43 v 1835 z" }), G("path", { className: "styled info", d: "M 1493 1518 l -42 -6 l 180 -1103 l -807 1016 l -558 -1144 l 39 -18 l 527 1083 l 864 -1087 z" }), G("path", { className: "styled current_color", d: "M 1832 1832 l -842 -958 l -486 825 l -37 -21 l 516 -877 l 792 900 l -68 -525 l 42 -5 m 214 749 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), ln = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), rn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), an = ue(null);
|
|
3098
|
+
const Vo = (e2) => Z("svg", { ...e2, viewBox: "0 0 48 48", children: [G("path", { d: "M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z", fill: "#547DBE" }), G("path", { d: "m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z", fill: "#FFFFFF" }), G("path", { d: "m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z", fill: "#547DBE", fillOpacity: "0.4" }), G("path", { d: "m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z", strokeWidth: "2.5", stroke: "#EB594D", fill: "#f9CECB" })] }), No = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), Lo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1195 h 512 v 1195 h 256 v -1621 h 512 v 1621 m -810 -512 h -427 v 512 h 427 m 768 -768 h -427 v 768 h 427 z" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -555 h 512 v 555 h 256 v -811 h 512 v 811 m -469 0 h 427 v -768 h -427 m -768 768 h 427 v -512 h -427 z" }), G("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), G("path", { className: "styled info_dark", d: "M 341 725 h 512 v 683 h -512 m 43 -640 v 597 h 427 v -597 z" }), G("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 853 h -512 m 43 -811 v 768 h 427 v -768 z" })] }), Ho = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1621 h 512 v 1621 h 256 v -1621 h 512 v 1621 m -810 -384 h -427 v 384 h 427 m 768 -1024 h -427 v 1024 h 427 z" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -427 h 512 v 427 h 256 v -1067 h 512 v 1067 m -469 0 h 427 v -1024 h -427 m -768 1024 h 427 v -384 h -427 z" }), G("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), G("path", { className: "styled info_dark", d: "M 341 299 h 512 v 1237 h -512 m 43 -1195 v 1152 h 427 v -1152 z" }), G("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 597 h -512 m 43 -555 v 512 h 427 v -512 z" })] }), Bo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 197 144 l 402 -402 l 361 360 l 263 -301 l 32 28 l -265 303 l 264 265 l -30 30 l -262 -263 l -317 362 l -444 -326 l -775 776 v 268 m 806 -1074 l 407 299 l 292 -335 l -332 -332 m -1173 832 v 281 l 740 -740 l -162 -119 z" }), G("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 639 469 l 584 -668 l 32 28 l -610 697 l -641 -470 l -578 578 v 610 z" })] }), Oo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1037 l 571 -570 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 l -581 582 v 452 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), G("path", { className: "styled info", d: "M 121 1189 l -29 -31 l 607 -606 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), Po = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1749 v 43 h -1749 v 1335 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), G("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), $o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 99 73 l 175 -190 h -18 v -170 h 170 v 140 l 233 233 l 280 -373 v -171 h 170 v 171 h -118 l -302 402 l 194 195 h 98 v 171 h -171 v -171 h 13 l -160 -160 l -109 144 v 144 h -170 v -104 l -279 -205 l -703 759 v 147 h -85 m 1015 -1152 l -199 215 l 251 184 v -15 h 139 l 110 -147 l -237 -237 m -1079 726 v 256 h 48 l 705 -761 l -70 -52 v 2 h -171 v -12 l -427 426 v 141 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -640 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 416 -554 v -171 h 170 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 z" }), G("path", { className: "styled info", d: "M 1694 1024 h 98 v 171 h -171 v -171 h 13 l -427 -427 h -64 l -930 1005 v 147 h -170 v -170 h 133 l 909 -982 h -18 v -170 h 170 v 140 z" })] }), Wo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 v 256 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled info", d: "M 1802 427 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -170 v -171 h 140 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 z" })] }), Uo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1195 h -42 v -171 h 42 v -128 h 43 v 128 h 85 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 h 171 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -85 v 1195 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled info", d: "M 1920 213 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -170 v -171 h 170 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 z" })] }), _o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 130 -33 250 q -34 119 -95 224 q -62 104 -147 190 q -86 86 -190 147 q -105 61 -225 95 q -120 33 -249 33 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 32 -243 q 31 -117 89 -219 q 58 -102 140 -187 q 82 -86 182 -148 q 100 -62 217 -99 q 116 -37 243 -43 m -862 939 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 173 0 325 -61 q 151 -61 272 -167 l -638 -638 v -924 q -121 6 -230 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -55 97 -85 209 q -31 111 -31 231 z" }), G("path", { className: "styled background", d: "M 1941 1024 q 0 127 -32 244 q -33 117 -93 219 q -60 102 -143 186 q -84 83 -186 143 q -102 60 -219 93 q -117 32 -244 32 q -127 0 -244 -32 q -117 -33 -219 -93 q -102 -60 -185 -143 q -84 -84 -144 -186 q -60 -102 -92 -219 q -33 -117 -33 -244 q 0 -127 33 -244 q 32 -117 92 -219 q 60 -102 144 -185 q 83 -84 185 -144 q 102 -60 219 -92 q 117 -33 244 -33 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 z" }), G("path", { className: "styled current_color", d: "M 1666 1709 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -97 59 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 178 0 334 -65 q 156 -65 277 -177 z" }), G("path", { className: "styled info_light", d: "M 1024 107 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -647 -648 v -937 q 5 0 11 0 q 5 -1 10 -1 z" }), G("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -62 187 q -41 89 -99 168 q -58 78 -130 142 q -9 -8 -15 -15 q -6 -6 -10 -10 q -5 -5 -5 -6 l -639 -638 v -969 m 670 1578 q 62 -61 112 -133 q 50 -72 85 -153 q 35 -82 54 -170 q 18 -89 18 -183 q 0 -123 -32 -237 q -32 -115 -90 -214 q -59 -100 -141 -182 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -238 -32 v 908 z" })] }), Go = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 187 q -41 89 -98 168 q -58 78 -130 142 q -125 112 -284 176 q -160 64 -342 64 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 33 -244 q 33 -118 93 -221 q 59 -104 144 -190 q 84 -86 187 -148 q 102 -62 221 -97 q 118 -36 247 -39 m 307 1305 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 q -90 8 -167 48 q -78 39 -135 102 q -58 62 -91 144 q -33 81 -33 173 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 84 0 159 -27 q 74 -28 134 -76 m -293 530 q 173 0 325 -60 q 151 -61 270 -168 l -272 -272 q -66 54 -148 85 q -82 31 -175 31 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -100 37 -189 q 36 -90 100 -158 q 63 -69 149 -112 q 85 -43 183 -51 v -384 q -119 6 -228 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -56 97 -86 209 q -30 111 -30 231 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 z" }), G("path", { className: "styled background", d: "M 1658 1692 q -125 119 -286 187 q -162 68 -348 68 q -127 0 -244 -33 q -118 -33 -220 -93 q -103 -60 -186 -143 q -84 -84 -144 -186 q -60 -103 -93 -220 q -33 -118 -33 -245 q 0 -125 32 -241 q 32 -116 90 -217 q 58 -101 140 -184 q 81 -84 181 -144 q 99 -61 214 -95 q 115 -35 239 -38 v 429 q -97 5 -181 45 q -85 40 -148 106 q -63 65 -99 152 q -36 86 -36 184 q 0 101 39 190 q 38 89 104 155 q 66 66 155 105 q 89 38 190 38 q 91 0 171 -30 q 80 -31 144 -85 z" }), G("path", { className: "styled current_color", d: "M 1364 1406 q -69 61 -155 96 q -86 34 -185 34 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -103 39 -194 q 38 -92 105 -161 q 66 -69 156 -110 q 89 -42 191 -46 v 42 q -94 4 -175 43 q -82 38 -142 101 q -61 63 -96 147 q -35 84 -35 178 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 90 0 169 -31 q 79 -31 141 -86 m 332 333 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -98 58 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 q 179 0 335 -64 q 155 -65 276 -178 z" }), G("path", { className: "styled info_light", d: "M 1515 1024 q 0 -102 -38 -191 q -39 -89 -106 -156 q -67 -67 -156 -105 q -89 -39 -191 -39 q -5 0 -10 1 q -6 0 -11 0 v -426 q 5 0 11 0 q 5 -1 10 -1 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -302 -301 q 77 -68 122 -162 q 45 -95 45 -206 z" }), G("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 188 q -41 89 -98 168 q -58 78 -130 142 l -333 -334 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 v -471 q 11 0 22 0 q 10 -1 21 -1 m 627 1579 q 62 -61 112 -133 q 50 -73 85 -154 q 35 -81 54 -170 q 18 -89 18 -183 q 0 -124 -32 -238 q -32 -115 -90 -214 q -59 -100 -140 -181 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -239 -32 v 384 q 106 0 200 40 q 93 40 163 110 q 69 69 109 163 q 40 93 40 199 q 0 109 -42 204 q -42 94 -114 164 z" })] }), Zo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1707 v 341 h -640 v 299 h -1067 v 171 h 811 v 298 h 512 v 342 h -1323 v 213 m 0 -1067 h 1024 v -256 h -1024 m 0 1067 h 1280 v -256 h -1280 z" }), G("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), G("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), G("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), G("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), G("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 768 h 1024 v -256 h 43 v 299 h -1067 v 469 h 1323 v 342 h -1323 v 213 m 0 -512 v 256 h 1280 v -256 z" })] }), jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1237 v 512 h -1237 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 555 v -427 h -555 m 0 1195 h 768 v -427 h -768 z" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 597 v 512 h -597 v 256 h 811 v 512 h -811 v 299 m 0 -768 v 427 h 768 v -427 m -768 -768 v 427 h 555 v -427 z" }), G("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), G("path", { className: "styled info_dark", d: "M 1365 341 v 512 h -682 v -512 m 640 43 h -598 v 427 h 598 z" }), G("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -853 v -512 m 811 43 h -768 v 427 h 768 z" })] }), Ko = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1621 v 512 h -1621 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 384 v -427 h -384 m 0 1195 h 1024 v -427 h -1024 z" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 427 v 512 h -427 v 256 h 1067 v 512 h -1067 v 299 m 0 -768 v 427 h 1024 v -427 m -1024 -768 v 427 h 384 v -427 z" }), G("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), G("path", { className: "styled info_dark", d: "M 1749 341 v 512 h -1237 v -512 m 1195 43 h -1152 v 427 h 1152 z" }), G("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -597 v -512 m 555 43 h -512 v 427 h 512 z" })] }), Xo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 253 256 l 544 -345 l 74 -91 l 644 466 l 277 -464 m 0 718 l -913 -662 l -476 591 l -403 -408 v 785 h 1792 z" }), G("path", { className: "styled background", d: "M 530 1511 l 473 -588 l 914 656 l 24 53 v 304 h -1834 l 2 -864 z" }), G("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), G("path", { className: "styled info_dark", d: "M 361 1342 l 572 -362 l 22 36 l -571 362 m 1248 1 l 287 -483 l 37 22 l -287 482 z" }), G("path", { className: "styled current_color", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 400 405 l 471 -585 l 921 667 v -665 m 0 1024 v -306 l -913 -662 l -476 591 l -403 -408 v 785 z" })] }), Yo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 640 v 926 l -641 -554 l -618 703 l -576 -575 v 780 h 1835 v 43 h -1878 v -1878 h 43 v 353 l 576 577 l 661 -704 l 276 329 z" }), G("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), G("path", { className: "styled info_light", d: "M 1963 1536 l -641 -555 l -618 704 l -597 -597 v -640 l 597 597 l 661 -704 l 269 319 h 329 z" }), G("path", { className: "styled info_dark", d: "M 1963 640 v 43 h -342 l -258 -310 l -659 702 l -597 -598 v -60 l 597 598 l 661 -704 l 276 329 m 322 866 v 60 l -641 -554 l -618 703 l -597 -597 v -62 l 597 599 l 618 -704 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), Jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 1524 l -788 -746 l -576 662 l -428 -428 v 823 h 1792 z" }), G("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), G("path", { className: "styled current_color", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 43 h -1792 v 1792 h 1792 z" }), G("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), G("path", { className: "styled info_dark", d: "M 1963 1649 l -831 -786 l -576 662 l -471 -467 v -973 h 1878 m -43 1465 v -1422 h -1792 v 908 l 426 426 l 575 -661 z" })] }), Qo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 m 768 384 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" }), G("path", { className: "styled background", d: "M 1195 1344 q 22 0 42 9 q 19 8 33 23 q 14 14 23 34 q 8 19 8 41 q 0 45 -30 76 q -31 30 -76 30 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -14 -23 -33 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 m -427 -341 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m 939 -512 q 45 0 76 31 q 30 30 30 75 q 0 22 -8 42 q -9 19 -23 34 q -14 14 -33 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m -1323 -256 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 z" }), G("path", { className: "styled info", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" })] }), en = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 l -7 2 q -26 93 -66 161 q -40 68 -88 116 q -48 47 -101 76 q -54 29 -108 44 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -115 -15 -221 -84 q -107 -69 -207 -190 q -36 91 -59 176 q -24 85 -38 152 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 15 -73 42 -167 q 26 -95 69 -195 q -48 -62 -94 -141 q -47 -80 -89 -168 q -43 -88 -80 -178 q -37 -91 -64 -176 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 19 59 48 135 q 29 75 67 158 q 37 82 84 167 q 47 85 103 163 q 33 -72 76 -141 q 42 -70 96 -131 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 5 0 9 1 q 3 0 7 0 q 1 -20 2 -40 q 0 -21 0 -43 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 q 18 113 27 215 q 8 102 8 193 q 0 25 0 48 q 0 23 -2 46 q 32 16 51 46 q 19 30 19 68 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 m -171 -1206 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 m -1408 86 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 354 -278 q 59 -80 92 -194 q -23 -4 -42 -15 q -19 -12 -33 -28 q -14 -17 -22 -38 q -8 -21 -8 -45 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -57 63 -101 136 q -44 73 -77 150 q 41 53 87 99 q 45 46 96 82 q 50 36 106 60 q 55 23 115 32 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 z" }), G("path", { className: "styled background", d: "M 1305 1497 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 m -890 -1072 q 0 23 -9 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -42 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 22 0 42 9 q 20 8 35 23 q 15 15 24 35 q 9 20 9 43 m 1317 -167 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 z" }), G("path", { className: "styled info", d: "M 1689 365 q 18 112 27 213 q 8 101 8 193 q 0 183 -35 322 q -35 138 -106 234 q -29 38 -60 67 q -32 29 -65 51 q -34 21 -68 36 q -35 14 -68 24 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -114 -15 -224 -87 q -110 -72 -211 -196 q -101 -125 -189 -299 q -89 -174 -160 -393 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 23 69 59 161 q 35 92 83 191 q 48 99 109 197 q 61 98 136 179 q 74 81 161 137 q 87 55 187 70 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 q 133 -178 133 -530 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 m -1476 62 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 341 -1323 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 q -14 3 -28 3 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -66 73 -115 161 q -49 87 -84 176 q -35 88 -58 172 q -24 83 -37 148 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 14 -67 38 -152 q 23 -86 59 -177 q 36 -92 87 -182 q 50 -90 118 -167 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 z" })] }), tn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1577 -902 q 93 215 93 547 q 0 88 -6 184 l -43 -3 q 3 -47 5 -92 q 2 -45 2 -88 q 0 -277 -68 -470 q -25 97 -65 167 q -40 70 -89 119 q -49 48 -104 78 q -55 29 -108 46 q -54 16 -103 22 q -49 5 -87 5 q -74 0 -141 -21 q -68 -21 -129 -58 q -62 -37 -116 -88 q -55 -51 -104 -111 q -39 93 -64 181 q -25 88 -40 157 q -15 69 -21 112 q -6 42 -6 44 l -42 -4 q 0 -2 7 -48 q 6 -46 23 -120 q 16 -74 44 -168 q 27 -94 70 -192 q -60 -79 -109 -167 q -50 -88 -90 -174 q -40 -86 -70 -164 q -30 -79 -50 -141 q -21 -62 -32 -102 q -11 -40 -13 -47 l 42 -11 q 0 2 10 37 q 10 35 29 93 q 19 58 48 135 q 28 76 66 160 q 38 83 86 170 q 47 86 104 165 q 45 -96 106 -184 q 61 -89 142 -156 q 80 -68 181 -108 q 101 -40 227 -40 q 3 0 22 2 q 19 1 49 9 q 30 8 68 25 q 38 16 80 46 q 41 29 83 75 q 42 46 80 112 q 5 -42 8 -87 q 2 -45 2 -93 q 0 -243 -64 -562 l 42 -8 q 65 325 65 569 q 0 68 -5 130 q -5 61 -15 117 m -156 283 q 79 -106 111 -275 q -33 -74 -72 -125 q -40 -51 -81 -84 q -41 -34 -80 -52 q -39 -19 -69 -27 q -31 -9 -49 -11 q -19 -2 -20 -2 q -121 0 -218 41 q -97 40 -173 107 q -77 67 -135 155 q -58 87 -101 181 q 47 60 100 112 q 53 51 112 89 q 58 37 123 59 q 65 21 136 21 q 45 0 99 -7 q 54 -7 110 -27 q 55 -21 109 -58 q 54 -37 98 -97 z" }), G("path", { className: "styled info", d: "M 1792 1749 l -43 -3 q 6 -93 6 -178 q 0 -244 -51 -422 q -51 -179 -152 -287 q -47 -49 -93 -76 q -46 -28 -83 -40 q -38 -13 -62 -15 q -24 -3 -25 -3 q -124 0 -223 44 q -99 43 -177 114 q -78 71 -136 162 q -58 90 -100 186 q -42 95 -69 187 q -28 91 -44 164 q -16 72 -22 118 q -7 46 -7 49 l -42 -4 q 0 -3 5 -34 q 4 -32 14 -84 q 10 -52 27 -120 q 17 -68 43 -144 q 25 -76 60 -156 q 35 -80 82 -155 q 46 -76 105 -143 q 58 -67 131 -117 q 73 -51 161 -80 q 88 -29 193 -29 q 3 0 30 3 q 27 2 69 16 q 41 14 92 44 q 51 30 102 84 q 216 231 216 735 q 0 45 -2 91 q -2 45 -5 93 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1004 -387 q -111 0 -207 -46 q -97 -46 -179 -121 q -83 -75 -151 -172 q -68 -97 -122 -199 q -55 -102 -96 -201 q -41 -99 -68 -178 q -28 -80 -43 -132 q -15 -53 -17 -62 l 42 -11 q 1 2 14 50 q 13 47 40 124 q 26 76 66 173 q 39 96 91 197 q 52 101 118 197 q 65 96 144 171 q 79 75 171 121 q 92 46 197 46 q 45 0 99 -7 q 54 -7 110 -27 q 56 -21 110 -58 q 54 -37 98 -97 q 133 -180 133 -528 q 0 -121 -16 -261 q -16 -141 -48 -302 l 42 -8 q 65 325 65 569 q 0 364 -142 556 q -50 67 -111 108 q -62 40 -123 62 q -62 22 -119 29 q -57 7 -98 7 z" })] }), on = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 213 342 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 361 762 l 165 -282 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 78 89 l 449 -570 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -258 814 l 410 467 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 l 70 565 l -482 -549 l -46 145 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 53 -166 l -189 -214 l -295 375 l -69 -146 l -147 251 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 166 -283 l -375 -789 q -14 3 -28 3 m 982 1109 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1323 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 m -105 275 l -401 509 l 176 200 m -355 -301 l -187 301 l 52 129 l 258 -327 l -93 -106 q -15 3 -30 3 m -638 -683 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 z" }), G("path", { className: "styled background", d: "M 1771 296 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -35 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 m -1320 7 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -34 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -35 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 15 -15 35 -23 q 19 -9 41 -9 q 22 0 42 9 q 19 8 34 23 q 14 14 23 34 q 8 19 8 41 m 902 1232 q 0 23 -8 43 q -9 19 -23 34 q -15 14 -35 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -43 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 z" }), G("path", { className: "styled info", d: "M 1664 171 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -319 1008 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 293 -923 l -724 918 l -466 -982 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 435 919 l 734 -932 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m -1323 213 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 m 982 1152 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1152 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1636 1182 l 70 565 l -825 -939 q -15 3 -30 3 l -360 615 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 357 -609 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 726 826 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 z" })] }), nn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1503 1457 l -10 61 l -42 -6 l 16 -96 l -334 -380 l -309 389 l -72 -147 l -248 421 l -37 -21 l 262 -446 l -463 -951 l 39 -18 l 451 925 l 227 -387 l 149 168 l 564 -710 l -184 1143 l 263 299 l -68 -525 l 42 -5 l 83 661 m -728 -828 l -114 -130 l -212 360 l 54 112 m 644 14 l 155 -951 l -471 593 m 803 918 v 43 h -1878 v -1878 h 43 v 1835 z" }), G("path", { className: "styled info", d: "M 1493 1518 l -42 -6 l 180 -1103 l -807 1016 l -558 -1144 l 39 -18 l 527 1083 l 864 -1087 z" }), G("path", { className: "styled current_color", d: "M 1832 1832 l -842 -958 l -486 825 l -37 -21 l 516 -877 l 792 900 l -68 -525 l 42 -5 m 214 749 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), ln = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), rn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), an = ue(null);
|
|
3091
3099
|
an.displayName = "DocThemesContext";
|
|
3092
3100
|
const sn = (e2) => {
|
|
3093
3101
|
const { themes: t2, children: o2 } = e2;
|
|
@@ -3172,9 +3180,36 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3172
3180
|
let e3 = null;
|
|
3173
3181
|
const t3 = () => p2;
|
|
3174
3182
|
return e3 = l2 ? l2.createChildGroup(t3, "scriptEditor", false) : new T(t3, "scriptEditor"), e3.addCommands(f2, true), e3;
|
|
3175
|
-
}, [l2, f2]), q2 =
|
|
3176
|
-
|
|
3177
|
-
|
|
3183
|
+
}, [l2, f2]), q2 = D(w2, ["executeSelectedScript", "saveScripts"]), v2 = q2[0], y2 = q2[1], C2 = v2?.context(), [x2, k2] = oe({ message: "Loading", cursor: "", dirty: false }), [M2, A2] = oe({ loading: false, compiling: false, errors: [], warnings: [] }), z2 = S((e3) => {
|
|
3184
|
+
k2((t3) => {
|
|
3185
|
+
const o3 = { ...t3, ...e3 };
|
|
3186
|
+
return K.deepEqual(o3, t3) ? t3 : (y2.update({ disabled: !o3.dirty }).updateCallback(async () => {
|
|
3187
|
+
await F2();
|
|
3188
|
+
}), o3);
|
|
3189
|
+
});
|
|
3190
|
+
}, [c2, y2]);
|
|
3191
|
+
re(() => {
|
|
3192
|
+
c2?.(x2);
|
|
3193
|
+
}, [c2, x2]);
|
|
3194
|
+
const F2 = S(async () => {
|
|
3195
|
+
if (!u2.current) return;
|
|
3196
|
+
const e3 = u2.current.editor;
|
|
3197
|
+
let t3;
|
|
3198
|
+
if (x2.dirty) {
|
|
3199
|
+
const o3 = e3.getValue();
|
|
3200
|
+
await C2?.saveSource(o3), t3 = C2?.getScripts().getModules().getByName("scripts");
|
|
3201
|
+
const n3 = t3?.getSource(), l3 = e3.getValue(), r3 = (n3?.length ?? 0) !== o3.length || n3 !== l3;
|
|
3202
|
+
z2({ dirty: r3 });
|
|
3203
|
+
} else t3 = C2?.getScripts().getModules().getByName("scripts");
|
|
3204
|
+
return t3;
|
|
3205
|
+
}, [x2]);
|
|
3206
|
+
re(() => {
|
|
3207
|
+
const e3 = C2?.getScripts();
|
|
3208
|
+
if (e3) return e3.addListeners({ onBeforeSearch: () => F2() });
|
|
3209
|
+
}, [C2]);
|
|
3210
|
+
const E2 = S((e3) => {
|
|
3211
|
+
v2?.execute(e3);
|
|
3212
|
+
}, [v2]), I2 = le(""), [V2, N2] = oe(false), L2 = S(async () => {
|
|
3178
3213
|
if (!u2.current) return null;
|
|
3179
3214
|
const e3 = u2.current, t3 = e3.editor;
|
|
3180
3215
|
if (!t3) return null;
|
|
@@ -3190,74 +3225,73 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3190
3225
|
}
|
|
3191
3226
|
return a3;
|
|
3192
3227
|
})(t3, o3);
|
|
3193
|
-
return
|
|
3194
|
-
}, [
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3228
|
+
return z2({ message: (n3 ?? "").toUpperCase() }), n3 ? { source: t3.getValue(), name: n3 } : null;
|
|
3229
|
+
}, []);
|
|
3230
|
+
S(K.debounce(F2, 200), []);
|
|
3231
|
+
const H2 = S(async (e3, t3, o3) => {
|
|
3232
|
+
A2((e4) => ({ ...e4, compiling: true }));
|
|
3233
|
+
const n3 = await C2?.getScripts().createModule({ source: o3?.getValue(), declarationsOnly: true });
|
|
3234
|
+
if (!n3) return;
|
|
3235
|
+
!(async function(e4, t4) {
|
|
3198
3236
|
const o4 = [];
|
|
3199
3237
|
for (let n4 = 1; n4 < e4.getLineCount() + 1; n4++) {
|
|
3200
|
-
const
|
|
3201
|
-
-1 !== r3 && o4.push({ message: "found 'modelt'", resource: "https://www.sheetxl.com", severity: t4.MarkerSeverity.Hint, startLineNumber:
|
|
3238
|
+
const l3 = { startLineNumber: n4, startColumn: 1, endLineNumber: n4, endColumn: e4.getLineLength(n4) + 1 }, r3 = e4.getValueInRange(l3).indexOf("modelt");
|
|
3239
|
+
-1 !== r3 && o4.push({ message: "found 'modelt'", resource: "https://www.sheetxl.com", severity: t4.MarkerSeverity.Hint, startLineNumber: l3.startLineNumber, startColumn: r3 + 1, endLineNumber: l3.startLineNumber, endColumn: r3 + 5 });
|
|
3202
3240
|
}
|
|
3203
3241
|
t4.editor.setModelMarkers(e4, "owner", o4);
|
|
3204
|
-
}(e3, t3)
|
|
3205
|
-
|
|
3242
|
+
})(e3, t3);
|
|
3243
|
+
!(async function(e4, t4, o4, n4) {
|
|
3244
|
+
const l3 = await t4.languages.typescript.getTypeScriptWorker(), r3 = await l3(e4.uri), i3 = await r3.getNavigationTree(e4.uri.toString()), a3 = qn(e4, t4, n4, i3).map((e5) => {
|
|
3206
3245
|
let o5 = null, n5 = null;
|
|
3207
3246
|
return "formula" === e5.type ? (o5 = "formula.margin-icon", n5 = "Formula") : "macro" === e5.type ? (o5 = "macro.margin-icon", n5 = "Macro") : "autoRun" === e5.type && (o5 = "autorun.margin-icon", n5 = "Auto Run"), { range: new t4.Range(e5.lineNumber, 1, e5.lineNumber, 1), options: { isWholeLine: false, glyphMarginClassName: o5, glyphMarginHoverMessage: { value: n5 }, stickiness: t4.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges } };
|
|
3208
3247
|
});
|
|
3209
|
-
|
|
3210
|
-
}(e3, t3, o3,
|
|
3211
|
-
}, [
|
|
3212
|
-
if (!u2.current || !
|
|
3248
|
+
U2.current && U2.current.clear(), U2.current = o4.createDecorationsCollection(a3);
|
|
3249
|
+
})(e3, t3, o3, n3 ? n3.getFunctions().getItems() : K.EmptyArray), A2((e4) => ({ ...e4, compiling: false }));
|
|
3250
|
+
}, [C2]), B2 = S(K.debounce(H2, 580), []), O2 = S(async (e3 = void 0) => {
|
|
3251
|
+
if (!u2.current || !C2) return;
|
|
3213
3252
|
const t3 = u2.current.editor.getPosition(), o3 = { cursor: t3 ? t3.toString() : "" };
|
|
3214
|
-
void 0 !== e3 && (o3.message = e3),
|
|
3215
|
-
const n3 =
|
|
3216
|
-
|
|
3217
|
-
}, [
|
|
3253
|
+
void 0 !== e3 && (o3.message = e3), z2(o3);
|
|
3254
|
+
const n3 = L2();
|
|
3255
|
+
C2.setSelectedFunction(n3);
|
|
3256
|
+
}, [C2]);
|
|
3218
3257
|
re(() => {
|
|
3219
|
-
|
|
3258
|
+
}, [M2]);
|
|
3259
|
+
const P2 = le(null), $2 = S(async () => {
|
|
3260
|
+
await F2(), h2?.();
|
|
3261
|
+
}, [h2]);
|
|
3262
|
+
re(() => {
|
|
3263
|
+
if (!C2) return;
|
|
3220
3264
|
const e3 = { insertSnippet: (e4) => {
|
|
3221
|
-
u2.current?.editor &&
|
|
3222
|
-
} };
|
|
3223
|
-
|
|
3224
|
-
const t3 =
|
|
3225
|
-
|
|
3226
|
-
const e4 = u2.current.editor, t4 = v2?.getScripts().getModules().getByName("scripting"), o3 = t4?.getSource(), n3 = e4.getValue();
|
|
3227
|
-
if (!((o3?.length ?? 0) !== n3.length || o3 !== n3)) return;
|
|
3228
|
-
await v2.saveSource(e4.getValue());
|
|
3229
|
-
const l3 = (o3?.length ?? 0) !== n3.length || o3 !== n3;
|
|
3230
|
-
c2?.({ dirty: l3 });
|
|
3265
|
+
u2.current?.editor && fn(u2.current.editor, u2.current.monaco, e4);
|
|
3266
|
+
}, close: () => $2() };
|
|
3267
|
+
C2.setEditor(e3), C2.setSelectedFunction(L2());
|
|
3268
|
+
const t3 = C2.addContainerListener({ onBeforeSave: async () => {
|
|
3269
|
+
F2();
|
|
3231
3270
|
}, onReadonlyChange() {
|
|
3232
3271
|
}, onScriptChange: async () => {
|
|
3233
|
-
if (!u2.current?.editor || !
|
|
3234
|
-
const e4 = u2.current.editor, t4 =
|
|
3272
|
+
if (!u2.current?.editor || !C2) return;
|
|
3273
|
+
const e4 = u2.current.editor, t4 = C2.getScripts().getModules().getItems()[0]?.getSource() ?? "";
|
|
3235
3274
|
e4.setValue(t4);
|
|
3236
3275
|
} });
|
|
3237
3276
|
return () => {
|
|
3238
|
-
|
|
3239
|
-
const e4 = D2.current;
|
|
3240
|
-
if (e4) {
|
|
3241
|
-
e4.dispose();
|
|
3242
|
-
const t4 = e4.debounceTimer;
|
|
3243
|
-
void 0 !== t4 && clearTimeout(t4), D2.current = null;
|
|
3244
|
-
}
|
|
3277
|
+
C2.setEditor(null), t3();
|
|
3245
3278
|
};
|
|
3246
|
-
}, [
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3279
|
+
}, [C2]), re(() => () => {
|
|
3280
|
+
const e3 = P2.current;
|
|
3281
|
+
if (e3) {
|
|
3282
|
+
e3.dispose();
|
|
3283
|
+
const t3 = e3.debounceTimer;
|
|
3284
|
+
void 0 !== t3 && clearTimeout(t3), P2.current = null;
|
|
3285
|
+
}
|
|
3286
|
+
}, [V2]);
|
|
3287
|
+
const W2 = S((e3) => {
|
|
3288
|
+
const t3 = u2.current?.editor;
|
|
3289
|
+
return !!t3 && (t3.focus(e3), true);
|
|
3290
|
+
}, [x2]), U2 = le(null), _2 = S((e3, t3) => {
|
|
3291
|
+
u2.current = { monaco: t3, editor: e3 }, N2(true), O2("Loading Types");
|
|
3292
|
+
const o3 = C2.getScripts().getModules().getItems()[0]?.getSource() ?? "";
|
|
3259
3293
|
e3.setValue(o3), import("monaco-editor-auto-typings/custom-editor.js").then(async (o4) => {
|
|
3260
|
-
|
|
3294
|
+
O2("");
|
|
3261
3295
|
o4.AutoTypings.create(e3, { shareCache: true, dontAdaptEditorOptions: true, monaco: t3, onUpdate: (e4, o5) => {
|
|
3262
3296
|
if ("LookedUpPackage" === e4.type && void 0 !== e4.success) {
|
|
3263
3297
|
const e5 = t3.languages.typescript.typescriptDefaults.getDiagnosticsOptions();
|
|
@@ -3266,37 +3300,34 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3266
3300
|
}, onError: (e4) => {
|
|
3267
3301
|
"Not implemented yet" === e4 && (e4 = "Compile Errors"), console.warn("Error compiling types", e4);
|
|
3268
3302
|
} }).then((o5) => {
|
|
3269
|
-
|
|
3303
|
+
P2.current = o5;
|
|
3270
3304
|
const n4 = e3.getModel();
|
|
3271
|
-
|
|
3305
|
+
B2(n4, t3, e3);
|
|
3272
3306
|
});
|
|
3273
3307
|
}), e3.addCommand("executeScript", function(e4, ...t4) {
|
|
3274
|
-
t4?.[0] &&
|
|
3308
|
+
t4?.[0] && E2({ functionName: t4?.[0] });
|
|
3275
3309
|
}, ""), e3.addAction({ id: "executeScript", label: "Execute", keybindings: [t3.KeyCode.F8], run: async (e4) => {
|
|
3276
|
-
const t4 =
|
|
3277
|
-
|
|
3310
|
+
const t4 = L2();
|
|
3311
|
+
C2.setSelectedFunction(t4);
|
|
3278
3312
|
const o4 = await t4;
|
|
3279
|
-
|
|
3280
|
-
} }), e3.addAction({ id: "saveScript", label: "Save Script", keybindings: [t3.KeyMod.CtrlCmd | t3.KeyCode.KeyS], run: (
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
if (c3) {
|
|
3289
|
-
const e4 = o4.event.browserEvent.button;
|
|
3290
|
-
0 === e4 ? "macro" === c3.type || "autoRun" === c3.type ? y2({ functionName: c3.name }) : "formula" === c3.type && v2.quickInsertFunction?.(c3.name) : 2 === e4 && (console.log("Context menu for function:", c3.name), o4.event.browserEvent.preventDefault());
|
|
3313
|
+
E2(o4);
|
|
3314
|
+
} }), e3.addAction({ id: "saveScript", label: "Save Script", keybindings: [t3.KeyMod.CtrlCmd | t3.KeyCode.KeyS], run: (e4) => {
|
|
3315
|
+
F2();
|
|
3316
|
+
} }), e3.onMouseDown(async (e4) => {
|
|
3317
|
+
if (e4.target.type === t3.editor.MouseTargetType.GUTTER_GLYPH_MARGIN) {
|
|
3318
|
+
const o4 = e4.target.position.lineNumber, l3 = await t3.languages.typescript.getTypeScriptWorker(), r3 = await l3(n3.uri), i3 = await r3.getNavigationTree(n3.uri.toString()), a3 = (await F2()).getFunctions().getItems(), s3 = qn(n3, t3, a3, i3).find((e5) => e5.lineNumber === o4);
|
|
3319
|
+
if (s3) {
|
|
3320
|
+
const t4 = e4.event.browserEvent.button;
|
|
3321
|
+
0 === t4 ? "macro" === s3.type || "autoRun" === s3.type ? E2({ functionName: s3.name }) : "formula" === s3.type && C2.quickInsertFunction?.(s3.name) : 2 === t4 && (console.log("Context menu for function:", s3.name), e4.event.browserEvent.preventDefault());
|
|
3291
3322
|
}
|
|
3292
3323
|
}
|
|
3293
3324
|
}), e3.onDidChangeModelContent(() => {
|
|
3294
|
-
z2(n3, t3, e3);
|
|
3325
|
+
z2({ dirty: true }), B2(n3, t3, e3);
|
|
3295
3326
|
}), t3.editor.onDidChangeMarkers((e4) => {
|
|
3296
3327
|
e4.some((e5) => e5.toString() === n3.uri.toString());
|
|
3297
3328
|
});
|
|
3298
3329
|
const n3 = e3.getModel();
|
|
3299
|
-
!function(e4, t4) {
|
|
3330
|
+
!(function(e4, t4) {
|
|
3300
3331
|
t4.languages.registerInlayHintsProvider("typescript", { provideInlayHints(e5, o4, n4) {
|
|
3301
3332
|
const l3 = [];
|
|
3302
3333
|
for (let o5 = 1; o5 < e5.getLineCount() + 1; o5++) {
|
|
@@ -3306,14 +3337,14 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3306
3337
|
return { hints: l3, dispose: () => {
|
|
3307
3338
|
} };
|
|
3308
3339
|
} });
|
|
3309
|
-
}(0, t3), n3.onDidChangeContent((t4) => {
|
|
3310
|
-
const o4 =
|
|
3311
|
-
|
|
3340
|
+
})(0, t3), n3.onDidChangeContent((t4) => {
|
|
3341
|
+
const o4 = C2?.getScripts().getModules().getByName("scripts"), n4 = o4?.getSource(), l3 = e3.getValue(), r3 = (n4?.length ?? 0) !== l3.length || n4 !== l3;
|
|
3342
|
+
z2({ dirty: r3 });
|
|
3312
3343
|
}), e3.onDidChangeCursorPosition((e4) => {
|
|
3313
|
-
|
|
3344
|
+
O2();
|
|
3314
3345
|
});
|
|
3315
|
-
}, [
|
|
3316
|
-
if (!
|
|
3346
|
+
}, [C2]), j2 = te(() => V2 ? null : s2 || G("div", { style: { position: "absolute", width: "100%", height: "100%" }, children: "Loading..." }), [V2, s2]), X2 = te(() => {
|
|
3347
|
+
if (!V2) {
|
|
3317
3348
|
if (!hn) {
|
|
3318
3349
|
hn = {};
|
|
3319
3350
|
for (let e4 = 0; e4 < pn.length; e4++) {
|
|
@@ -3326,7 +3357,7 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3326
3357
|
globalThis[t3] = mn[t3];
|
|
3327
3358
|
}
|
|
3328
3359
|
}
|
|
3329
|
-
const e3 =
|
|
3360
|
+
const e3 = C2?.getScripts().getModules().getByName("scripts")?.getSource() ?? "";
|
|
3330
3361
|
return Z("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [G(de, { children: G(gn, { theme: a2 ? "extended-dark" : "extended", options: { ...un, fixedOverflowWidgets: true, readOnly: r2 }, language: "typescript", value: e3, onValidate: (e4) => {
|
|
3331
3362
|
let t3 = false;
|
|
3332
3363
|
for (let o3 = 0; !t3 && o3 < e4?.length; o3++) 8 === e4[o3].severity && (t3 = true);
|
|
@@ -3344,43 +3375,42 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3344
3375
|
} catch (e5) {
|
|
3345
3376
|
console.warn("cant load types", e5);
|
|
3346
3377
|
}
|
|
3347
|
-
if (
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
console.warn(e5);
|
|
3364
|
-
}
|
|
3378
|
+
if (e4.languages.registerLinkProvider("*", { provideLinks: (t4, o4) => {
|
|
3379
|
+
const n3 = [], l3 = { links: n3 }, r3 = t4.getLinesContent(), i3 = r3.length;
|
|
3380
|
+
for (let o5 = 1; o5 <= i3; o5++) {
|
|
3381
|
+
const l4 = r3[o5 - 1], i4 = e4.editor.tokenize(l4, "typescript"), a3 = i4[0].length;
|
|
3382
|
+
for (let r4 = 0; r4 < a3; r4++) {
|
|
3383
|
+
const a4 = i4[0]?.[r4];
|
|
3384
|
+
if (a4 && a4.type.startsWith("string")) {
|
|
3385
|
+
let s3 = a4.offset, d3 = i4[0]?.[r4 + 1]?.offset ?? l4.length, c3 = new e4.Range(o5, s3 + 1, o5, d3 + 1), g3 = t4.getValueInRange(c3);
|
|
3386
|
+
const u3 = g3[0];
|
|
3387
|
+
"`" !== u3 && "'" !== u3 && '"' !== u3 || (s3++, g3 = g3.substring(1));
|
|
3388
|
+
const h3 = g3[g3.length - 1];
|
|
3389
|
+
"`" !== h3 && "'" !== h3 && '"' !== h3 || (s3++, g3 = g3.substring(0, g3.length - 1));
|
|
3390
|
+
try {
|
|
3391
|
+
C2.getRanges(g3) && n3.push({ range: { endColumn: d3, endLineNumber: o5, startColumn: s3, startLineNumber: o5 }, tooltip: `Goto range '${g3}'`, url: `/range/${g3}` });
|
|
3392
|
+
} catch (e5) {
|
|
3393
|
+
console.warn(e5);
|
|
3365
3394
|
}
|
|
3366
3395
|
}
|
|
3367
3396
|
}
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
return true;
|
|
3397
|
+
}
|
|
3398
|
+
return l3;
|
|
3399
|
+
} }), e4.editor.registerLinkOpener({ open(e5) {
|
|
3400
|
+
if (e5?.path?.startsWith("/range/")) {
|
|
3401
|
+
try {
|
|
3402
|
+
C2.getRanges(e5.path.substring(7))?.select();
|
|
3403
|
+
} catch (e6) {
|
|
3404
|
+
console.warn("invalid range", e6);
|
|
3377
3405
|
}
|
|
3378
|
-
return
|
|
3379
|
-
}
|
|
3406
|
+
return true;
|
|
3407
|
+
}
|
|
3408
|
+
return false;
|
|
3409
|
+
} }), !o3) {
|
|
3380
3410
|
const t4 = e4.languages.typescript.typescriptDefaults.getCompilerOptions();
|
|
3381
3411
|
e4.languages.typescript.typescriptDefaults.setCompilerOptions({ ...t4, target: e4.languages.typescript.ScriptTarget.ES2020, lib: ["webworker", "es2020", "esnext.asynciterable"], downlevelIteration: true, moduleResolution: e4.languages.typescript.ModuleResolutionKind.NodeJs, allowSyntheticDefaultImports: true, baseUrl: "inmemory://model/", allowNonTsExtensions: true });
|
|
3382
3412
|
}
|
|
3383
|
-
if (
|
|
3413
|
+
if (I2.current && (await fn(u2.current.editor, u2.current.monaco, I2.current), I2.current = null), m2.current && requestAnimationFrame(async () => {
|
|
3384
3414
|
m2.current && e4.editor.focus();
|
|
3385
3415
|
}), !mn) {
|
|
3386
3416
|
mn = {};
|
|
@@ -3409,21 +3439,19 @@ const Cn = ee(ne((e2, t2) => {
|
|
|
3409
3439
|
e5(o4, hn[o4]);
|
|
3410
3440
|
}
|
|
3411
3441
|
hn = void 0;
|
|
3412
|
-
})(),
|
|
3442
|
+
})(), N2(true);
|
|
3413
3443
|
})();
|
|
3414
|
-
}, onMount:
|
|
3415
|
-
}, [
|
|
3416
|
-
|
|
3417
|
-
}, close: () =>
|
|
3418
|
-
h2?.();
|
|
3419
|
-
}, getEditor: () => v2?.getEditor() }), [v2]);
|
|
3444
|
+
}, onMount: _2 }) }), j2] });
|
|
3445
|
+
}, [C2, w2, r2, j2, a2]), Y2 = b(t2, () => ({ isScriptEditorElement: () => true, focus: (e3) => {
|
|
3446
|
+
W2(e3);
|
|
3447
|
+
}, close: () => $2(), getEditor: () => C2?.getEditor() }), [C2]);
|
|
3420
3448
|
return re(() => (d2 && requestAnimationFrame(() => {
|
|
3421
|
-
|
|
3449
|
+
Y2.current?.focus();
|
|
3422
3450
|
}), () => {
|
|
3423
3451
|
u2.current?.editor && requestAnimationFrame(() => {
|
|
3424
|
-
|
|
3452
|
+
Y2.current?.contains(document.activeElement) && Y2.current?.focus();
|
|
3425
3453
|
});
|
|
3426
|
-
}), []), G("div", { className: Me("script-editor", cn, o2), style: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...n2 }, ref:
|
|
3454
|
+
}), []), G("div", { className: Me("script-editor", cn, o2), style: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...n2 }, ref: Y2, ...g2, children: X2 });
|
|
3427
3455
|
}));
|
|
3428
3456
|
export {
|
|
3429
3457
|
Xo as ChartAreaIcon,
|
|
@@ -3435,8 +3463,8 @@ export {
|
|
|
3435
3463
|
rn as ChartBubble3DIcon,
|
|
3436
3464
|
ln as ChartBubbleIcon,
|
|
3437
3465
|
No as ChartColumnIcon,
|
|
3438
|
-
|
|
3439
|
-
|
|
3466
|
+
Lo as ChartColumnStackedIcon,
|
|
3467
|
+
Ho as ChartColumnStackedPercentIcon,
|
|
3440
3468
|
qo as ChartEditor,
|
|
3441
3469
|
Bo as ChartLineIcon,
|
|
3442
3470
|
$o as ChartLineMarkersIcon,
|