@worm-print-platform/echarts 1.6.3 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-print-platform/echarts v1.6.3
2
+ * @worm-print-platform/echarts v1.6.5
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -109,6 +109,8 @@ var zh_CN_default = {
109
109
  "echarts.panel.labelLine.length2": "\u7B2C\u4E8C\u6BB5\u957F\u5EA6",
110
110
  "echarts.panel.labelLine.smooth": "\u5E73\u6ED1\u5F15\u5BFC\u7EBF",
111
111
  "echarts.panel.dataSourceTitle": "\u6570\u636E\u6E90",
112
+ "echarts.panel.selectField": "\u9009\u62E9\u5B57\u6BB5",
113
+ "echarts.panel.autoSource": "\u81EA\u52A8",
112
114
  "echarts.panel.categoryField": "\u7C7B\u76EE\u5B57\u6BB5",
113
115
  "echarts.panel.removeField": "\u5220\u9664\u8BE5\u5B57\u6BB5",
114
116
  "echarts.panel.addField": "+ \u6DFB\u52A0\u5B57\u6BB5",
@@ -264,6 +266,8 @@ var en_US_default = {
264
266
  "echarts.panel.labelLine.length2": "Second segment length",
265
267
  "echarts.panel.labelLine.smooth": "Smooth label line",
266
268
  "echarts.panel.dataSourceTitle": "Data source",
269
+ "echarts.panel.selectField": "Select field",
270
+ "echarts.panel.autoSource": "Auto",
267
271
  "echarts.panel.categoryField": "Category field",
268
272
  "echarts.panel.removeField": "Remove this field",
269
273
  "echarts.panel.addField": "+ Add field",
@@ -419,6 +423,8 @@ var th_TH_default = {
419
423
  "echarts.panel.labelLine.length2": "\u0E04\u0E27\u0E32\u0E21\u0E22\u0E32\u0E27\u0E17\u0E48\u0E2D\u0E19\u0E17\u0E35\u0E48\u0E2A\u0E2D\u0E07",
420
424
  "echarts.panel.labelLine.smooth": "\u0E40\u0E2A\u0E49\u0E19\u0E1B\u0E49\u0E32\u0E22\u0E42\u0E04\u0E49\u0E07",
421
425
  "echarts.panel.dataSourceTitle": "\u0E41\u0E2B\u0E25\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
426
+ "echarts.panel.selectField": "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E1F\u0E34\u0E25\u0E14\u0E4C",
427
+ "echarts.panel.autoSource": "\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",
422
428
  "echarts.panel.categoryField": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48",
423
429
  "echarts.panel.removeField": "\u0E25\u0E1A\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E19\u0E35\u0E49",
424
430
  "echarts.panel.addField": "+ \u0E40\u0E1E\u0E34\u0E48\u0E21\u0E1F\u0E34\u0E25\u0E14\u0E4C",
@@ -959,8 +965,8 @@ function chartFactoryDefaults(type, partial) {
959
965
  title: def?.label ?? "\u56FE\u8868",
960
966
  chartOption: createDefaultChartOption(type),
961
967
  chartDataSource: "",
962
- chartCategoryField: "name",
963
- chartValueFields: ["value"],
968
+ chartCategoryField: "",
969
+ chartValueFields: [],
964
970
  chartSeriesField: "",
965
971
  ...partial
966
972
  };
@@ -1546,17 +1552,30 @@ function renderChartElement(spec) {
1546
1552
  var CHART_EXECUTOR_VERSION = "2";
1547
1553
 
1548
1554
  // src/plugin.ts
1549
- var CHART_OPTION_META = {
1550
- chartOption: { kind: "object", label: (0, import_i18n.t)("echarts.meta.chartOption") },
1551
- chartDataSource: { kind: "text", label: (0, import_i18n.t)("echarts.meta.dataSource") },
1552
- chartCategoryField: { kind: "text", label: (0, import_i18n.t)("echarts.meta.categoryField") },
1553
- chartValueFields: { kind: "object", label: (0, import_i18n.t)("echarts.meta.valueFields") },
1554
- chartSeriesField: { kind: "text", label: (0, import_i18n.t)("echarts.meta.seriesField") }
1555
- };
1556
- var SCATTER_OPTION_META = {
1557
- ...CHART_OPTION_META,
1558
- chartBubble: { kind: "bool", label: (0, import_i18n.t)("echarts.meta.bubbleSize") }
1559
- };
1555
+ function createChartOptionMeta(includeBubble = false) {
1556
+ return {
1557
+ chartOption: { kind: "object", get label() {
1558
+ return (0, import_i18n.t)("echarts.meta.chartOption");
1559
+ } },
1560
+ chartDataSource: { kind: "text", get label() {
1561
+ return (0, import_i18n.t)("echarts.meta.dataSource");
1562
+ } },
1563
+ chartCategoryField: { kind: "text", get label() {
1564
+ return (0, import_i18n.t)("echarts.meta.categoryField");
1565
+ } },
1566
+ chartValueFields: { kind: "object", get label() {
1567
+ return (0, import_i18n.t)("echarts.meta.valueFields");
1568
+ } },
1569
+ chartSeriesField: { kind: "text", get label() {
1570
+ return (0, import_i18n.t)("echarts.meta.seriesField");
1571
+ } },
1572
+ ...includeBubble ? { chartBubble: { kind: "bool", get label() {
1573
+ return (0, import_i18n.t)("echarts.meta.bubbleSize");
1574
+ } } } : {}
1575
+ };
1576
+ }
1577
+ var CHART_OPTION_META = createChartOptionMeta();
1578
+ var SCATTER_OPTION_META = createChartOptionMeta(true);
1560
1579
  var CHART_PLUGIN = (0, import_designer2.defineElementPlugin)({
1561
1580
  id: CHART_PLUGIN_ID,
1562
1581
  version: CHART_EXECUTOR_VERSION,
@@ -1617,18 +1636,9 @@ var CANVAS_STYLE = "width:100%;height:100%;min-width:0;min-height:0;pointer-even
1617
1636
  var STYLES = [
1618
1637
  ".echarts-canvas-element{overflow:hidden}",
1619
1638
  ".echarts-field-row{display:flex;gap:6px;align-items:center}",
1639
+ ".echarts-field-current{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--pd-text-secondary,#6b7280)}",
1620
1640
  ".echarts-field-row>.pd-input{flex:1;min-width:0}",
1621
1641
  ".echarts-field-row>.pd-button{flex:none}",
1622
- ".echarts-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:26px;min-height:26px;padding:3px 6px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);color:inherit;font:inherit;box-sizing:border-box;cursor:pointer;text-align:left}",
1623
- ".echarts-dropdown-trigger:hover{border-color:var(--pd-text-faint,#b4b9c4)}",
1624
- '.echarts-dropdown-trigger[aria-expanded="true"]{border-color:var(--pd-accent,#165dff);box-shadow:0 0 0 2px rgb(22 93 255 / 12%)}',
1625
- ".echarts-dropdown-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
1626
- ".echarts-dropdown-arrow{flex:none;color:var(--pd-text-muted,#909399);font-size:10px;transition:transform .14s}",
1627
- '.echarts-dropdown-trigger[aria-expanded="true"] .echarts-dropdown-arrow{transform:rotate(180deg)}',
1628
- ".echarts-dropdown-panel{position:fixed;z-index:1200;max-height:240px;overflow:auto;padding:3px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);box-shadow:0 6px 18px rgb(0 0 0 / 14%);box-sizing:border-box}",
1629
- ".echarts-dropdown-option{padding:5px 8px;border-radius:4px;cursor:pointer;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",
1630
- ".echarts-dropdown-option:hover{background:var(--pd-accent-soft,rgb(22 93 255 / 9%))}",
1631
- ".echarts-dropdown-option.is-active{background:var(--pd-accent-soft,rgb(22 93 255 / 9%));color:var(--pd-accent,#165dff)}",
1632
1642
  ".echarts-label-group{margin-top:8px;border-top:1px solid var(--pd-border,#e5e7eb);padding-top:8px}",
1633
1643
  ".echarts-label-group>summary{display:flex;align-items:center;cursor:pointer;list-style:none;font-size:12px;font-weight:600}",
1634
1644
  ".echarts-label-summary>.pd-field{flex:1;margin:0;font-weight:400}",
@@ -1709,22 +1719,6 @@ function valueFieldsLabel(def, limit) {
1709
1719
  if (def?.seriesType === "radar") return t2("echarts.panel.field.dimension");
1710
1720
  return limit === 1 ? t2("echarts.panel.field.value") : t2("echarts.panel.field.valueMulti");
1711
1721
  }
1712
- function dataSourceCandidates(data, fields) {
1713
- const first = data?.[0];
1714
- const keys = first ? Object.keys(first).filter((key) => Array.isArray(first[key])) : [];
1715
- for (const field2 of fields ?? []) {
1716
- if (field2.fieldType === "list" && field2.fieldKey && !keys.includes(field2.fieldKey)) keys.push(field2.fieldKey);
1717
- }
1718
- return keys;
1719
- }
1720
- function dataRowFields(data, dataSource) {
1721
- const first = data?.[0];
1722
- if (!first) return [];
1723
- const key = dataSource ? Array.isArray(first[dataSource]) ? dataSource : "" : Object.keys(first).find((k) => Array.isArray(first[k]));
1724
- if (!key) return [];
1725
- const rows = first[key];
1726
- return rows.length > 0 && typeof rows[0] === "object" && rows[0] !== null ? Object.keys(rows[0]) : [];
1727
- }
1728
1722
  function fieldLabelMap(fields) {
1729
1723
  const map = /* @__PURE__ */ new Map();
1730
1724
  for (const field2 of fields ?? []) {
@@ -1732,17 +1726,41 @@ function fieldLabelMap(fields) {
1732
1726
  }
1733
1727
  return map;
1734
1728
  }
1735
- function optionLabel(value, labels, fallbackSuffix) {
1736
- if (!value) return fallbackSuffix ?? t2("echarts.panel.default");
1729
+ function optionLabel(value, labels) {
1730
+ if (!value) return t2("echarts.panel.default");
1737
1731
  const name = labels.get(value);
1738
- const base = name ? `${name}\uFF08${value}\uFF09` : value;
1739
- return fallbackSuffix ? `${base}${fallbackSuffix}` : base;
1740
- }
1741
- function dropdownOptions(candidates, current, labels = /* @__PURE__ */ new Map()) {
1742
- const opts = candidates.map((value) => ({ value, label: optionLabel(value, labels) }));
1743
- if (current && !candidates.includes(current)) opts.unshift({ value: current, label: optionLabel(current, labels, t2("echarts.panel.current")) });
1744
- if (!current) opts.unshift({ value: "", label: t2("echarts.panel.defaultFirstArray") });
1745
- return opts;
1732
+ return name ? `${name}\uFF08${value}\uFF09` : value;
1733
+ }
1734
+ function fieldBindingKey(next) {
1735
+ if (next.binding) return next.binding;
1736
+ const matched = /^\{\s*([^{}]+?)\s*\}$/.exec(next.formatter?.trim() ?? "");
1737
+ return matched?.[1]?.trim() ?? "";
1738
+ }
1739
+ function fieldPicker(ctx, current, targetPath, fields, labels, onSelect, allowAuto = false) {
1740
+ const row = el("div", "echarts-field-row");
1741
+ const display = el(
1742
+ "span",
1743
+ "echarts-field-current",
1744
+ current ? optionLabel(current, labels) : allowAuto ? t2("echarts.panel.autoSource") : t2("echarts.panel.default")
1745
+ );
1746
+ const picker = el("button", "pd-button small echarts-field-picker", t2("echarts.panel.selectField"));
1747
+ picker.type = "button";
1748
+ picker.addEventListener("click", () => ctx.openExpression({
1749
+ elementId: ctx.element.id,
1750
+ targetPath,
1751
+ value: current ? `{${current}}` : "",
1752
+ binding: current || void 0,
1753
+ fieldOnly: true,
1754
+ fields
1755
+ }, (next) => onSelect(fieldBindingKey(next))));
1756
+ row.append(display, picker);
1757
+ if (allowAuto) {
1758
+ const auto = el("button", "pd-button small echarts-auto-source", t2("echarts.panel.autoSource"));
1759
+ auto.type = "button";
1760
+ auto.addEventListener("click", () => onSelect(""));
1761
+ row.appendChild(auto);
1762
+ }
1763
+ return row;
1746
1764
  }
1747
1765
  function seriesList(option) {
1748
1766
  return Array.isArray(option.series) ? option.series : [];
@@ -1822,84 +1840,6 @@ function selectInput(options, value, onCommit) {
1822
1840
  select.addEventListener("change", () => onCommit(select.value));
1823
1841
  return select;
1824
1842
  }
1825
- var activeDropdown = null;
1826
- function composedPathOf(ev) {
1827
- const composed = typeof ev.composedPath === "function" ? ev.composedPath() : [];
1828
- return composed.length ? composed : [ev.target];
1829
- }
1830
- function dropdownSelect(options, value, onCommit) {
1831
- const current = options.find((item) => item.value === value) ?? { value, label: value || t2("echarts.panel.optionDefault") };
1832
- const trigger = el("button", "echarts-dropdown-trigger");
1833
- trigger.type = "button";
1834
- trigger.setAttribute("aria-haspopup", "listbox");
1835
- trigger.setAttribute("aria-expanded", "false");
1836
- const valueEl = el("span", "echarts-dropdown-value", current.label);
1837
- const arrow = el("span", "echarts-dropdown-arrow", "\u25BE");
1838
- trigger.appendChild(valueEl);
1839
- trigger.appendChild(arrow);
1840
- let panel = null;
1841
- let off = [];
1842
- const close = () => {
1843
- off.forEach((fn) => fn());
1844
- off = [];
1845
- panel?.remove();
1846
- panel = null;
1847
- trigger.setAttribute("aria-expanded", "false");
1848
- if (activeDropdown?.close === close) activeDropdown = null;
1849
- };
1850
- const open = () => {
1851
- activeDropdown?.close();
1852
- const root = trigger.getRootNode();
1853
- const mount = root instanceof ShadowRoot ? root : document.body;
1854
- panel = el("div", "echarts-dropdown-panel");
1855
- panel.setAttribute("role", "listbox");
1856
- for (const item of options) {
1857
- const optionEl = el("div", `echarts-dropdown-option${item.value === value ? " is-active" : ""}`, item.label);
1858
- optionEl.setAttribute("role", "option");
1859
- optionEl.setAttribute("aria-selected", item.value === value ? "true" : "false");
1860
- optionEl.addEventListener("click", (ev) => {
1861
- ev.stopPropagation();
1862
- close();
1863
- onCommit(item.value);
1864
- });
1865
- panel.appendChild(optionEl);
1866
- }
1867
- mount.appendChild(panel);
1868
- const rect = trigger.getBoundingClientRect();
1869
- panel.style.left = `${rect.left}px`;
1870
- panel.style.top = `${rect.bottom + 4}px`;
1871
- panel.style.minWidth = `${rect.width}px`;
1872
- trigger.setAttribute("aria-expanded", "true");
1873
- activeDropdown = { close };
1874
- const onPointerDown = (ev) => {
1875
- const path = composedPathOf(ev);
1876
- if (path.includes(trigger) || path.includes(panel)) return;
1877
- close();
1878
- };
1879
- const onKeydown = (ev) => {
1880
- if (ev.key === "Escape") close();
1881
- };
1882
- const onScroll = () => close();
1883
- document.addEventListener("pointerdown", onPointerDown, true);
1884
- document.addEventListener("keydown", onKeydown);
1885
- window.addEventListener("scroll", onScroll, true);
1886
- window.addEventListener("resize", onScroll);
1887
- root.addEventListener("scroll", onScroll, true);
1888
- off.push(
1889
- () => document.removeEventListener("pointerdown", onPointerDown, true),
1890
- () => document.removeEventListener("keydown", onKeydown),
1891
- () => window.removeEventListener("scroll", onScroll, true),
1892
- () => window.removeEventListener("resize", onScroll),
1893
- () => root.removeEventListener("scroll", onScroll, true)
1894
- );
1895
- };
1896
- trigger.addEventListener("click", (ev) => {
1897
- ev.stopPropagation();
1898
- if (panel) close();
1899
- else open();
1900
- });
1901
- return trigger;
1902
- }
1903
1843
  var overflowOptions = () => [
1904
1844
  { value: "", label: t2("echarts.panel.overflow.default") },
1905
1845
  { value: "none", label: t2("echarts.panel.overflow.none") },
@@ -2081,60 +2021,67 @@ function renderProperty(ctx) {
2081
2021
  return withTranslator(ctx.t, () => renderPropertyInner(ctx));
2082
2022
  }
2083
2023
  function renderPropertyInner(ctx) {
2024
+ if (!ctx.openExpression) throw new Error("[echarts] \u56FE\u8868\u5C5E\u6027\u9762\u677F\u9700\u8981\u5BBF\u4E3B\u63D0\u4F9B openExpression\uFF08\u5B57\u6BB5\u9009\u62E9\u4EC5\u652F\u6301\u8868\u8FBE\u5F0F\u5F39\u6846\uFF09");
2084
2025
  const element = ctx.element;
2085
2026
  const type = elementType(element);
2086
2027
  const def = getChartKindDefinition(type);
2087
- const fields = resolveChartPanelFields(type);
2088
- const has = (key) => fields.includes(key);
2028
+ const panelFields = resolveChartPanelFields(type);
2029
+ const has = (key) => panelFields.includes(key);
2089
2030
  const options = element.options;
2090
2031
  const widthMm = Number(options.width) || 0;
2091
2032
  const heightMm = Number(options.height) || 0;
2092
2033
  const limit = maxValueFields(def);
2093
2034
  const palettes = getChartPalettes();
2094
2035
  const fieldLabels = fieldLabelMap(ctx.fields);
2036
+ const allFields = ctx.fields ?? [];
2037
+ const sourceFields = allFields.filter((field2) => field2.fieldType === "list");
2038
+ const bound = String(options.chartDataSource ?? "");
2039
+ const prefixed = bound ? allFields.filter((field2) => field2.fieldKey.startsWith(`${bound}.`)) : [];
2040
+ const rowFields = prefixed.length > 0 ? prefixed : allFields.filter((field2) => field2.fieldType !== "list");
2095
2041
  const root = el("div", "echarts-property");
2096
2042
  const form = el("form", "pd-form");
2097
2043
  form.addEventListener("submit", (event) => event.preventDefault());
2098
2044
  root.appendChild(form);
2099
2045
  if (has("dataSource")) {
2100
2046
  const wrap = field(t2("echarts.panel.dataSourceTitle"));
2101
- const current = String(options.chartDataSource ?? "");
2102
- wrap.appendChild(
2103
- dropdownSelect(
2104
- dropdownOptions(dataSourceCandidates(ctx.data, ctx.fields), current, fieldLabels),
2105
- current,
2106
- (value) => commitOption(ctx, type, panelOption(element), { chartDataSource: value })
2107
- )
2108
- );
2047
+ wrap.appendChild(fieldPicker(
2048
+ ctx,
2049
+ String(options.chartDataSource ?? ""),
2050
+ "options.chartDataSource",
2051
+ sourceFields,
2052
+ fieldLabels,
2053
+ (value) => commitOption(ctx, type, panelOption(element), { chartDataSource: value }),
2054
+ true
2055
+ ));
2109
2056
  form.appendChild(wrap);
2110
2057
  }
2111
2058
  if (has("categoryField")) {
2112
2059
  const wrap = field(t2("echarts.panel.categoryField"));
2113
- const current = String(options.chartCategoryField ?? "");
2114
- wrap.appendChild(
2115
- dropdownSelect(
2116
- dropdownOptions(dataRowFields(ctx.data, String(options.chartDataSource ?? "")), current, fieldLabels),
2117
- current,
2118
- (value) => commitOption(ctx, type, panelOption(element), { chartCategoryField: value })
2119
- )
2120
- );
2060
+ wrap.appendChild(fieldPicker(
2061
+ ctx,
2062
+ String(options.chartCategoryField ?? ""),
2063
+ "options.chartCategoryField",
2064
+ rowFields,
2065
+ fieldLabels,
2066
+ (value) => commitOption(ctx, type, panelOption(element), { chartCategoryField: value })
2067
+ ));
2121
2068
  form.appendChild(wrap);
2122
2069
  }
2123
2070
  if (has("valueFields")) {
2124
2071
  const wrap = field(valueFieldsLabel(def, limit));
2125
2072
  const fieldsNow = readValueFields(element);
2126
2073
  fieldsNow.forEach((value, index) => {
2127
- const row = el("div", "echarts-field-row");
2128
- row.appendChild(
2129
- dropdownSelect(
2130
- dropdownOptions(dataRowFields(ctx.data, String(options.chartDataSource ?? "")), value, fieldLabels),
2131
- value,
2132
- (next) => {
2133
- const list = readValueFields(element);
2134
- list[index] = next;
2135
- syncValueFields(ctx, type, list);
2136
- }
2137
- )
2074
+ const row = fieldPicker(
2075
+ ctx,
2076
+ value,
2077
+ `options.chartValueFields.${index}`,
2078
+ rowFields,
2079
+ fieldLabels,
2080
+ (next) => {
2081
+ const list = readValueFields(element);
2082
+ list[index] = next;
2083
+ syncValueFields(ctx, type, list);
2084
+ }
2138
2085
  );
2139
2086
  if (fieldsNow.length > 1) {
2140
2087
  const remove = el("button", "pd-button small", "\u2212");
@@ -2155,12 +2102,14 @@ function renderPropertyInner(ctx) {
2155
2102
  }
2156
2103
  if (has("seriesField")) {
2157
2104
  const wrap = field(t2("echarts.panel.seriesField"));
2158
- wrap.appendChild(
2159
- textInput(
2160
- { value: String(options.chartSeriesField ?? ""), placeholder: t2("echarts.panel.seriesFieldHint") },
2161
- (value) => commitOption(ctx, type, panelOption(element), { chartSeriesField: value })
2162
- )
2163
- );
2105
+ wrap.appendChild(fieldPicker(
2106
+ ctx,
2107
+ String(options.chartSeriesField ?? ""),
2108
+ "options.chartSeriesField",
2109
+ rowFields,
2110
+ fieldLabels,
2111
+ (value) => commitOption(ctx, type, panelOption(element), { chartSeriesField: value })
2112
+ ));
2164
2113
  form.appendChild(wrap);
2165
2114
  }
2166
2115
  if (has("bubble")) {
@@ -2313,7 +2262,9 @@ var CHART_ELEMENT_UI = (0, import_plugin_kit.defineElementUI)({
2313
2262
  renderCanvas,
2314
2263
  renderProperty,
2315
2264
  hasProperties: chartHasProperties,
2316
- group: t2("echarts.panel.group"),
2265
+ get group() {
2266
+ return t2("echarts.panel.group");
2267
+ },
2317
2268
  searchKeywords: SEARCH_KEYWORDS,
2318
2269
  styles: STYLES,
2319
2270
  i18nId: "echarts",
package/dist/ui.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-print-platform/echarts v1.6.3
2
+ * @worm-print-platform/echarts v1.6.5
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT