@bonnard/mcp-charts 0.1.3 → 0.2.0
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/README.md +133 -17
- package/dist/bigquery.d.ts +1 -1
- package/dist/bigquery.js +1 -1
- package/dist/chunk-7MYIOIDH.js +17 -0
- package/dist/chunk-7MYIOIDH.js.map +1 -0
- package/dist/chunk-EZYN3JQ4.js +706 -0
- package/dist/chunk-EZYN3JQ4.js.map +1 -0
- package/dist/{chunk-I3HINKHN.js → chunk-IXRGLZX2.js} +98 -5
- package/dist/chunk-IXRGLZX2.js.map +1 -0
- package/dist/cli.d.ts +4 -0
- package/dist/cli.js +512 -0
- package/dist/cli.js.map +1 -0
- package/dist/databricks.d.ts +1 -1
- package/dist/databricks.js +1 -1
- package/dist/duckdb.d.ts +1 -1
- package/dist/duckdb.js +1 -1
- package/dist/fixtures.d.ts +30 -0
- package/dist/fixtures.js +156 -0
- package/dist/fixtures.js.map +1 -0
- package/dist/index.d.ts +119 -35
- package/dist/index.js +260 -713
- package/dist/index.js.map +1 -1
- package/dist/postgres.d.ts +1 -1
- package/dist/postgres.js +1 -1
- package/dist/snowflake.d.ts +1 -1
- package/dist/snowflake.js +1 -1
- package/dist/sql-BYkJnQOP.d.ts +35 -0
- package/dist/{types-6ALzXWjE.d.ts → types-DUKpye7m.d.ts} +63 -1
- package/package.json +8 -1
- package/dist/chunk-I3HINKHN.js.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resolve/detect.ts","../src/resolve/pivot.ts","../src/resolve/fill-time.ts","../src/resolve/resolve.ts","../src/charts.ts","../src/validate.ts","../src/generated/widget-html.ts"],"sourcesContent":["// Auto-detect a sensible chart type from the data shape, when the caller didn't force one.\nimport type { ChartType, FieldMeta } from \"../types.js\";\n\nexport function detectChartType(fields: FieldMeta[]): ChartType {\n if (fields.some((f) => f.role === \"time\")) return \"line\"; // a time axis\n if (fields.some((f) => f.role === \"dimension\")) return \"bar\"; // a category breakdown\n return \"table\"; // a single metric (or unknown shape)\n}\n","/**\n * Pivot tall data to wide format for multi-series charts.\n *\n * Input (tall): [{ month, region: \"EU\", revenue: 29300 }, { month, region: \"US\", revenue: 22500 }]\n * Output (wide): [{ month, EU: 29300, US: 22500 }]\n */\nexport function pivotData(\n data: Record<string, unknown>[],\n xKey: string,\n pivotKey: string,\n valueKey: string,\n): { data: Record<string, unknown>[]; seriesKeys: string[]; collapsed: number } {\n const seriesKeys: string[] = [];\n const seen = new Set<string>();\n\n for (const row of data) {\n const raw = row[pivotKey];\n const pivotValue = raw == null || raw === \"\" ? \"(No value)\" : String(raw);\n if (!seen.has(pivotValue)) {\n seen.add(pivotValue);\n seriesKeys.push(pivotValue);\n }\n }\n\n // Sum on collision: multiple rows for the same (x, series) cell mean the source data was\n // unaggregated. Last-write-wins would silently drop data; summing matches what a GROUP BY\n // would have produced. `collapsed` counts the extra rows folded in, for a caller advisory.\n const groups = new Map<string, Record<string, unknown>>();\n let collapsed = 0;\n for (const row of data) {\n const xValue = String(row[xKey] ?? \"\");\n const raw = row[pivotKey];\n const pivotValue = raw == null || raw === \"\" ? \"(No value)\" : String(raw);\n if (!groups.has(xValue)) groups.set(xValue, { [xKey]: row[xKey] });\n const group = groups.get(xValue)!;\n // hasOwn, not `in`: a category literally named \"constructor\"/\"toString\" would otherwise\n // match an inherited prototype key and be mis-summed.\n if (Object.hasOwn(group, pivotValue)) {\n collapsed++;\n group[pivotValue] = (Number(group[pivotValue]) || 0) + (Number(row[valueKey]) || 0);\n } else {\n group[pivotValue] = row[valueKey];\n }\n }\n\n return { data: Array.from(groups.values()), seriesKeys, collapsed };\n}\n","// Fill missing time intervals so renderers show gaps correctly. Detects min/max dates,\n// generates all expected interval starts for the granularity, inserts null-measure rows\n// for missing periods. Pure; timezone-safe (treats Cube-style no-Z strings as UTC).\nimport type { TimeGranularity } from \"../types.js\";\n\nexport function fillMissingTimeIntervals(\n data: Record<string, unknown>[],\n xKey: string,\n measureKeys: string[],\n granularity: TimeGranularity,\n): Record<string, unknown>[] {\n if (data.length < 2) return data;\n\n const entries: { date: Date }[] = [];\n for (const row of data) {\n const date = parseUTC(String(row[xKey]));\n if (date) entries.push({ date });\n }\n if (entries.length < 2) return data;\n\n entries.sort((a, b) => a.date.getTime() - b.date.getTime());\n const min = entries[0]!.date;\n const max = entries[entries.length - 1]!.date;\n const allDates = generateSequence(min, max, granularity);\n\n // Bucket rows to the granularity (a 14:30 timestamp belongs to its day/month bucket, not to\n // an hour that the midnight-aligned sequence can never match). A bucket may hold several rows.\n // Week buckets anchor to the sequence start: UTC midnight of the min's day.\n const anchor = new Date(Date.UTC(min.getUTCFullYear(), min.getUTCMonth(), min.getUTCDate()));\n const key = (d: Date) => dateKey(d, granularity, anchor);\n const existing = new Map<string, Record<string, unknown>[]>();\n const emitted = new Set<Record<string, unknown>>();\n for (const row of data) {\n const date = parseUTC(String(row[xKey]));\n if (!date) continue;\n const k = key(date);\n const list = existing.get(k) ?? [];\n list.push(row);\n existing.set(k, list);\n }\n\n const result: Record<string, unknown>[] = [];\n for (const date of allDates) {\n const found = existing.get(key(date));\n if (found) {\n for (const row of found) {\n result.push(row);\n emitted.add(row);\n }\n } else {\n const nullRow: Record<string, unknown> = { [xKey]: toISOish(date) };\n for (const mk of measureKeys) nullRow[mk] = null;\n result.push(nullRow);\n }\n }\n // Gap-filling must never DROP data: keep any row the sequence didn't cover (unparseable x,\n // or a bucket outside the generated range).\n for (const row of data) if (!emitted.has(row)) result.push(row);\n return result;\n}\n\nfunction parseUTC(str: string): Date | null {\n let s = str.trim();\n if (/^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}/.test(s)) s = s.replace(\" \", \"T\"); // SQL-style datetime\n if (/^\\d{4}-\\d{2}-\\d{2}T/.test(s) && !s.endsWith(\"Z\") && !/[+-]\\d{2}:\\d{2}$/.test(s)) {\n s += \"Z\";\n } else if (/^\\d{4}-\\d{2}-\\d{2}$/.test(s)) {\n s += \"T00:00:00.000Z\";\n }\n const d = new Date(s);\n return isNaN(d.getTime()) ? null : d;\n}\n\nconst WEEK_MS = 7 * 86_400_000;\n\n// Truncate a date to its granularity bucket. Weeks are anchored to the sequence start (the\n// sequence steps 7 days from `anchor`, not from ISO Mondays).\nfunction dateKey(d: Date, granularity: TimeGranularity, anchor: Date): string {\n const y = d.getUTCFullYear();\n switch (granularity) {\n case \"year\":\n return String(y);\n case \"quarter\":\n return `${y}-Q${Math.floor(d.getUTCMonth() / 3) + 1}`;\n case \"month\":\n return `${y}-${pad(d.getUTCMonth() + 1)}`;\n case \"week\":\n return `W${Math.floor((d.getTime() - anchor.getTime()) / WEEK_MS)}`;\n default:\n return `${y}-${pad(d.getUTCMonth() + 1)}-${pad(d.getUTCDate())}`;\n }\n}\n\nfunction toISOish(d: Date): string {\n return `${d.getUTCFullYear()}-${pad(d.getUTCMonth() + 1)}-${pad(d.getUTCDate())}T00:00:00.000`;\n}\n\nfunction pad(n: number): string {\n return n < 10 ? `0${n}` : String(n);\n}\n\nfunction generateSequence(start: Date, end: Date, granularity: TimeGranularity): Date[] {\n const dates: Date[] = [];\n const endTime = end.getTime();\n const MAX_INTERVALS = 10_000;\n let y = start.getUTCFullYear();\n let m = start.getUTCMonth();\n let d = start.getUTCDate();\n\n while (dates.length < MAX_INTERVALS) {\n const current = new Date(Date.UTC(y, m, d));\n if (current.getTime() > endTime) break;\n dates.push(current);\n switch (granularity) {\n case \"day\":\n d += 1;\n break;\n case \"week\":\n d += 7;\n break;\n case \"month\":\n m += 1;\n d = 1;\n break;\n case \"quarter\":\n m += 3;\n d = 1;\n break;\n case \"year\":\n y += 1;\n break;\n default:\n d += 1;\n break;\n }\n }\n return dates;\n}\n","// resolve() — the pure brain. Turns a ChartData (rows + optional typing + encode) into a\n// fully-specified, JSON-serializable ChartSpec: x / y / series, axis + column format\n// descriptors, legend, pivoting, time-gap filling. No IO, no host, no chart library.\nimport type {\n AxisSpec,\n ChartData,\n ChartSpec,\n ColumnSpec,\n Encode,\n FieldMeta,\n ReferenceLine,\n ResolveOptions,\n SeriesSpec,\n} from \"../types.js\";\nimport { inferFields } from \"./infer.js\";\nimport { detectChartType } from \"./detect.js\";\nimport { pivotData } from \"./pivot.js\";\nimport { fillMissingTimeIntervals } from \"./fill-time.js\";\n\nconst HORIZONTAL_CATEGORY_THRESHOLD = 8;\nconst MAX_PIE_SLICES = 8; // rank cap: slices beyond this fold into \"Other\"\nconst MIN_PIE_FRACTION = 0.02; // share cap: slices under 2% of the total fold into \"Other\"\nconst MAX_BARS = 30; // categorical bars beyond this: keep the top N by value, drop the tail\nconst MAX_SERIES = 12; // distinct series beyond this: keep the top N by total, fold rest into \"Other\"\nconst MAX_POINTS = 2000; // line/area points beyond this: stride-downsample to bound the payload\nconst FRACTION_MAX = 1.5; // percent columns: max |value| at or below this reads as a 0-1 fraction\n\n// Decide the percent scale ONCE per column. Guessing per value at render time flipped scale\n// mid-series (0.98 -> 98% next to 1.02 -> 1%); the column's magnitude decides instead.\nfunction isFractionScale(rows: Record<string, unknown>[], keys: string[]): boolean {\n let max = -Infinity;\n for (const r of rows) {\n for (const k of keys) {\n const v = r[k];\n if (v == null) continue;\n const n = Number(v);\n if (Number.isFinite(n) && Math.abs(n) > max) max = Math.abs(n);\n }\n }\n return max >= 0 && max <= FRACTION_MAX;\n}\n\nexport function resolve(data: ChartData, opts: ResolveOptions = {}): ChartSpec {\n const encode = data.encode ?? {};\n const fields = inferFields(data);\n const byName = new Map(fields.map((f) => [f.name, f]));\n\n // Transparency: never silently drop an encode mapping. Flag any encode column that isn't in the\n // result (a typo or stale name) so the agent can fix its next call; we still render what we can.\n const encodeRefs = (v?: string | string[]) => (v == null ? [] : Array.isArray(v) ? v : [v]);\n const unknownCols = [\n ...new Set(\n [encode.x, ...encodeRefs(encode.y), encode.series, ...encodeRefs(encode.y2), ...encodeRefs(encode.line), encode.size].filter(\n (c): c is string => !!c && !byName.has(c),\n ),\n ),\n ];\n if (unknownCols.length) {\n data.notes = [\n `Ignored unknown encode column${unknownCols.length > 1 ? \"s\" : \"\"} ${unknownCols.map((c) => `\"${c}\"`).join(\", \")}; available: ${fields.map((f) => f.name).join(\", \")}.`,\n ...(data.notes ?? []),\n ];\n }\n\n // Scatter/bubble: x AND y are measures, one row = one point. Skip the dimension/aggregate path\n // entirely (aggregating would collapse the cloud) — handled by its own branch below.\n const isScatter = opts.chartType === \"scatter\";\n\n // Numeric grouping column: when EVERY column is numeric (no time/string dimension to be an\n // x-axis), the lowest-cardinality numeric acts as the x dimension (e.g. {year, revenue} ->\n // a bar over year) instead of degrading to a two-measure table. Tie on cardinality -> the\n // earliest column (SQL convention puts the GROUP BY key first). Not for scatter (both stay measures).\n if (\n !isScatter &&\n !encode.x &&\n data.rows.length > 1 &&\n fields.length >= 2 &&\n fields.every((f) => f.role === \"measure\")\n ) {\n const distinct = (k: string) => new Set(data.rows.map((r) => r[k])).size;\n let best = fields[0]!;\n for (const f of fields) if (distinct(f.name) < distinct(best.name)) best = f;\n best.role = \"dimension\";\n }\n\n // Coerce measure columns to numbers (a backend may return numeric strings).\n const measureNames = new Set(fields.filter((f) => f.role === \"measure\").map((f) => f.name));\n let rows: Record<string, unknown>[] = data.rows.map((row) => {\n const out: Record<string, unknown> = { ...row };\n for (const k of Object.keys(out)) {\n if (measureNames.has(k) && out[k] != null) {\n const n = Number(out[k]);\n if (!Number.isNaN(n)) out[k] = n;\n }\n }\n return out;\n });\n\n // Scatter/bubble: own branch — two measures as a point cloud, no aggregation/pivot/sort.\n if (isScatter) return withNotes(resolveScatter(rows, fields, encode, opts), data.notes);\n // Funnel: stages (a dimension) + a value, no axes — own branch.\n if (opts.chartType === \"funnel\") return withNotes(resolveFunnel(rows, fields, encode, opts), data.notes);\n // Waterfall: ordered steps with signed deltas; first/last (or a marked column) are totals.\n if (opts.chartType === \"waterfall\") return withNotes(resolveWaterfall(rows, fields, encode, opts), data.notes);\n\n // --- x-axis: encode wins, then first time field, then first dimension ---\n const timeField = fields.find((f) => f.role === \"time\");\n const dimField = fields.find((f) => f.role === \"dimension\");\n const xField: FieldMeta | undefined = encode.x ? byName.get(encode.x) : (timeField ?? dimField);\n const x = xField?.name ?? \"\";\n\n // --- measures (y) --- (never plot the x column as a measure)\n // y2 = measures pulled onto a secondary right axis (dual-axis combo); excluded from the left.\n const y2Names = encode.y2 ? (Array.isArray(encode.y2) ? encode.y2 : [encode.y2]) : [];\n const yNames = (\n encode.y\n ? Array.isArray(encode.y)\n ? encode.y\n : [encode.y]\n : fields.filter((f) => f.role === \"measure\" && f.name !== x).map((f) => f.name)\n ).filter((n) => !y2Names.includes(n));\n\n let chartType = !opts.chartType || opts.chartType === \"auto\" ? detectChartType(fields) : opts.chartType;\n\n // No x-axis to plot against -> fall back to a table.\n if (!x && chartType !== \"table\") chartType = \"table\";\n\n // Tables are a RAW grid passthrough: every column, every row, in source order.\n // No pivot, no series selection, no time-fill — those are chart concerns and would\n // silently drop the text columns a table is meant to show.\n if (chartType === \"table\") {\n return {\n chartType: \"table\",\n data: rows,\n x: \"\",\n series: [],\n legend: false,\n ...(data.notes?.length && { notes: data.notes }),\n ...(opts.title && { title: opts.title }),\n columns: fields.map((f) => ({\n key: f.name,\n label: f.label ?? f.name,\n ...(f.format && { format: f.format }),\n ...(f.format === \"percent\" && { fraction: isFractionScale(rows, [f.name]) }),\n ...(f.currency && { currency: f.currency }),\n ...(f.granularity && { granularity: f.granularity }),\n })),\n };\n }\n\n // Normalize x values (nulls, booleans) for plotting.\n if (x) {\n const isBool = xField?.kind === \"boolean\";\n let allEmpty = rows.length > 0;\n for (const row of rows) {\n const v = row[x];\n if (v == null || v === \"\") row[x] = \"(No value)\";\n else {\n allEmpty = false;\n if (isBool) row[x] = v === true || v === \"true\" ? \"Yes\" : \"No\";\n }\n }\n // An entirely-null x column is a broken query (no axis to plot against), not a one-bar chart.\n if (allEmpty) throw new Error(`Column \"${x}\" is entirely empty — nothing to put on the x-axis.`);\n }\n\n // --- series: pivot a (time + one categorical dimension + one measure) into multi-series ---\n const pivotDim =\n encode.series ??\n (timeField && dimField && dimField.name !== x && dimField.kind === \"string\" ? dimField.name : undefined);\n\n const notes: string[] = [...(data.notes ?? [])];\n let series: SeriesSpec[];\n let yAxisRight: AxisSpec | undefined;\n if (pivotDim && yNames.length === 1) {\n const result = pivotData(rows, x, pivotDim, yNames[0]!);\n rows = result.data;\n series = result.seriesKeys.map((key) => ({ key, label: key }));\n if (result.collapsed > 0)\n notes.push(\n `Summed ${result.collapsed} row(s) that shared the same ${x} + ${pivotDim} — the data looked unaggregated.`,\n );\n // The pivot path can't also carry a right-axis measure; say so instead of dropping it silently.\n if (y2Names.length > 0)\n notes.push(\n `Secondary-axis measure(s) ${y2Names.map((n) => `\"${n}\"`).join(\", \")} were dropped because the chart is split into series by ${pivotDim}.`,\n );\n // Too many series = an indistinguishable color soup. Keep the largest by total, fold the\n // rest into one \"Other\" series (stacking is part-to-whole, so the total must be preserved).\n if (series.length > MAX_SERIES) {\n const grand = (key: string) => rows.reduce((a, r) => a + (Number(r[key]) || 0), 0);\n const drop = [...series].sort((a, b) => grand(b.key) - grand(a.key)).slice(MAX_SERIES - 1);\n const dropKeys = new Set(drop.map((s) => s.key));\n for (const r of rows) {\n let other = 0;\n for (const k of dropKeys) {\n other += Number(r[k]) || 0;\n delete r[k];\n }\n r.Other = other;\n }\n series = [...series.filter((s) => !dropKeys.has(s.key)), { key: \"Other\", label: \"Other\" }];\n notes.push(`Grouped ${drop.length} smaller series into \"Other\".`);\n }\n } else {\n // Left-axis series + (optional) right-axis series for a dual-axis combo.\n // encode.line names left-axis measures to draw as a line instead of bars (same-axis combo).\n const lineNames = encode.line ? (Array.isArray(encode.line) ? encode.line : [encode.line]) : [];\n series = yNames.map((key) => ({\n key,\n label: byName.get(key)?.label ?? key,\n ...(lineNames.includes(key) && { type: \"line\" as const }),\n }));\n // A line measure that wasn't also listed in y is still plotted (as a line), same as y2 —\n // x / y / line each name their own column. Skip unknown columns so a typo draws nothing.\n for (const key of lineNames) {\n if (yNames.includes(key) || y2Names.includes(key) || !byName.has(key)) continue;\n series.push({ key, label: byName.get(key)?.label ?? key, type: \"line\" });\n }\n for (const key of y2Names) series.push({ key, label: byName.get(key)?.label ?? key, axis: \"right\" });\n if (y2Names.length > 0) {\n const f = byName.get(y2Names[0]!);\n yAxisRight = {\n ...(f?.label && { label: f.label }),\n ...(f?.format && { format: f.format }),\n ...(f?.currency && { currency: f.currency }),\n };\n }\n // Sum duplicate x rows: unaggregated SQL (no GROUP BY) yields repeated categories that\n // would otherwise render as overlapping/duplicate bars instead of one summed value.\n if (x && series.length > 0) {\n const agg = aggregateByX(\n rows,\n x,\n series.map((s) => s.key),\n );\n rows = agg.rows;\n if (agg.collapsed > 0) {\n notes.push(`Summed ${agg.collapsed} row(s) that shared the same ${x} — the data looked unaggregated.`);\n // Summing is right for counts, wrong for rates/ratios — flag it so the agent can pre-aggregate.\n const rateCols = series.filter((s) => byName.get(s.key)?.format === \"percent\").map((s) => s.key);\n if (rateCols.length)\n notes.push(\n `${rateCols.map((c) => `\"${c}\"`).join(\", \")} looks like a rate; summing rates is usually wrong — compute SUM(numerator)/SUM(denominator) in SQL instead.`,\n );\n }\n }\n }\n\n // Sort a time / numeric x ascending. Agent SQL often omits ORDER BY, which makes lines\n // zig-zag and numeric bars appear out of order. Category (string) x keeps source order.\n if (x && chartType !== \"pie\") rows = sortRowsByX(rows, x, xField);\n\n // Fill time gaps so lines/areas render breaks correctly.\n if (xField?.role === \"time\" && xField.granularity && x) {\n rows = fillMissingTimeIntervals(\n rows,\n x,\n series.map((s) => s.key),\n xField.granularity,\n );\n }\n\n // Too many categorical bars are unreadable. Keep the top N by value (a bar chart is a ranking,\n // so \"top N\" is the honest reduction) and drop the tail — no \"Other\" bar, which would mislead\n // when the tail is large. Continuous line/area is left alone (dense series are legitimate).\n if (chartType === \"bar\" && series.length > 0 && rows.length > MAX_BARS) {\n const origLen = rows.length;\n const total = (r: Record<string, unknown>) => series.reduce((a, s) => a + (Number(r[s.key]) || 0), 0);\n const keep = new Set([...rows].sort((a, b) => total(b) - total(a)).slice(0, MAX_BARS));\n rows = rows.filter((r) => keep.has(r));\n notes.push(`Showing the top ${rows.length} of ${origLen} categories by value.`);\n }\n\n // Very dense line/area: stride-downsample to bound the payload (keep every Nth point + the\n // last, preserving range and shape). Lines tolerate many points, so the threshold is high.\n if ((chartType === \"line\" || chartType === \"area\") && rows.length > MAX_POINTS) {\n const origLen = rows.length;\n const step = Math.ceil(origLen / MAX_POINTS);\n const sampled = rows.filter((_, i) => i % step === 0);\n if (sampled[sampled.length - 1] !== rows[origLen - 1]) sampled.push(rows[origLen - 1]!);\n rows = sampled;\n notes.push(`Downsampled ${origLen} points to ${rows.length} for display.`);\n }\n\n // Stacked modes: zero-fill missing (x, series) cells so stacks stay aligned (a missing cell\n // is \"0 contribution\", not a hole that shifts the bars above it). Non-stacked keeps the gap.\n if ((opts.stacking === \"stacked\" || opts.stacking === \"stacked100\") && series.length > 0) {\n for (const row of rows) for (const s of series) if (row[s.key] == null) row[s.key] = 0;\n }\n\n // Pie: drop non-positive slices, order largest-first, and fold a long tail into \"Other\".\n // A slice is \"small\" if it ranks beyond MAX_PIE_SLICES OR is under MIN_PIE_FRACTION of the\n // total (this is what catches the sub-1% slivers that make a pie unreadable). Only fold when\n // it collapses >1 slice — a lone small slice is left alone.\n if (chartType === \"pie\" && series.length > 0) {\n const k = series[0]!.key;\n // All values zero/negative: plot magnitudes of the negatives so the pie isn't blank.\n if (!rows.some((r) => Number(r[k]) > 0)) {\n const neg = rows.filter((r) => r[k] != null && Number(r[k]) < 0);\n rows = neg.map((r) => ({ ...r, [k]: Math.abs(Number(r[k])) }));\n if (rows.length > 0) notes.push(\"All values were negative — showing their magnitudes.\");\n } else {\n rows = rows.filter((r) => r[k] != null && Number(r[k]) > 0);\n }\n rows = rows.sort((a, b) => (Number(b[k]) || 0) - (Number(a[k]) || 0));\n const total = rows.reduce((sum, r) => sum + (Number(r[k]) || 0), 0);\n const isSmall = (r: Record<string, unknown>, i: number) =>\n i >= MAX_PIE_SLICES - 1 || (total > 0 && (Number(r[k]) || 0) / total < MIN_PIE_FRACTION);\n const small = rows.filter(isSmall);\n if (small.length > 1) {\n const kept = rows.filter((r, i) => !isSmall(r, i));\n const other = small.reduce((sum, r) => sum + (Number(r[k]) || 0), 0);\n rows = [...kept, { [x]: \"Other\", [k]: other }];\n notes.push(`Grouped ${small.length} small slices into \"Other\".`);\n }\n }\n\n // Axis format descriptors (the spec declares formatting; the widget applies it at render time).\n const firstMeasure = byName.get(yNames[0] ?? \"\");\n const yAxis = {\n ...(series.length === 1 && { label: series[0]!.label }),\n ...(firstMeasure?.format && { format: firstMeasure.format }),\n ...(firstMeasure?.format === \"percent\" && {\n fraction: isFractionScale(\n rows,\n series.filter((s) => s.axis !== \"right\").map((s) => s.key),\n ),\n }),\n ...(firstMeasure?.currency && { currency: firstMeasure.currency }),\n };\n if (yAxisRight?.format === \"percent\") yAxisRight.fraction = isFractionScale(rows, y2Names);\n const xAxis = {\n ...(xField && { label: xField.label }),\n ...(xField?.granularity && { granularity: xField.granularity }),\n // Numeric (non-time) x: signal the renderer to use a linear scale on line/area, so points\n // sit at their true positions (irregular gaps show) instead of evenly-spaced categories.\n ...(xField?.kind === \"number\" && { numeric: true }),\n };\n\n // Orientation follows the x TYPE, not a raw count. Only CATEGORICAL bars flip horizontal (for\n // readable labels when there are many). Time/numeric x stay vertical: time reads left->right and a\n // numeric axis is linear — flipping them is wrong (and was the bug that sent month series sideways).\n const hasComboLine = series.some((s) => s.type === \"line\");\n let horizontal = opts.horizontal;\n if (\n horizontal == null &&\n chartType === \"bar\" &&\n xField?.kind === \"string\" &&\n rows.length > HORIZONTAL_CATEGORY_THRESHOLD\n ) {\n horizontal = true;\n }\n // A same-axis combo line is only meaningful over vertical bars (a connected line on a horizontal\n // layout becomes a meaningless diagonal), so never render a combo horizontal — even if asked.\n if (hasComboLine) horizontal = false;\n\n const columns = buildColumns(x, xField, series, byName, rows);\n\n // Reference lines: an average computed from the primary (left) series, and/or a target value.\n const reference: ReferenceLine[] = [];\n if (opts.reference) {\n const primary = series.find((s) => s.axis !== \"right\") ?? series[0];\n if (opts.reference.average && primary) {\n const vals = rows.map((r) => Number(r[primary.key])).filter((v) => Number.isFinite(v));\n if (vals.length)\n reference.push({\n value: Math.round((vals.reduce((a, b) => a + b, 0) / vals.length) * 100) / 100,\n label: \"Avg\",\n });\n }\n if (opts.reference.target != null) reference.push({ value: opts.reference.target, label: \"Target\" });\n }\n\n return {\n chartType,\n data: rows,\n x,\n series,\n ...(reference.length > 0 && { reference }),\n ...(Object.keys(xAxis).length > 0 && { xAxis }),\n ...(Object.keys(yAxis).length > 0 && { yAxis }),\n ...(yAxisRight && Object.keys(yAxisRight).length > 0 && { yAxisRight }),\n legend: series.length > 1,\n ...(opts.stacking && { stacking: opts.stacking }),\n ...(horizontal != null && { horizontal }),\n ...(opts.title && { title: opts.title }),\n columns,\n ...(notes.length > 0 && { notes }),\n };\n}\n\n// Prepend data-source notes (e.g. a truncation warning) to a spec from a branch that doesn't\n// build its own notes list.\nfunction withNotes(spec: ChartSpec, notes?: string[]): ChartSpec {\n return notes?.length ? { ...spec, notes: [...notes, ...(spec.notes ?? [])] } : spec;\n}\n\n// Scatter/bubble: x and y are measures (one row = one point). No aggregation, pivot, or sort — that\n// would destroy the cloud. Optional size (3rd measure) = bubble; first dimension = the point label.\nfunction resolveScatter(\n rows: Record<string, unknown>[],\n fields: FieldMeta[],\n encode: Encode,\n opts: ResolveOptions,\n): ChartSpec {\n const byName = new Map(fields.map((f) => [f.name, f]));\n const measures = fields.filter((f) => f.role === \"measure\");\n const yEnc = Array.isArray(encode.y) ? encode.y[0] : encode.y;\n const x = encode.x ?? measures[0]?.name;\n const y = yEnc ?? measures.find((m) => m.name !== x)?.name;\n if (!x || !y) {\n throw new Error(\n \"A scatter chart needs two numeric columns. Select at least two measures (x and y), e.g. orders and revenue.\",\n );\n }\n const xField = byName.get(x);\n const yField = byName.get(y);\n const isNum = (f?: FieldMeta) => f?.kind === \"number\";\n if (!isNum(xField) || !isNum(yField)) {\n throw new Error(`A scatter chart needs numeric x and y; \"${x}\" or \"${y}\" is not numeric.`);\n }\n const size = encode.size && byName.get(encode.size)?.kind === \"number\" ? encode.size : undefined;\n\n // encode.series groups points into colored series by a categorical column. A numeric column\n // makes no sense as a point-cloud grouping, so honor it only when it's a category/text field.\n const groupField = encode.series ? byName.get(encode.series) : undefined;\n const groupKey = groupField && groupField.kind !== \"number\" ? groupField.name : undefined;\n const pointLabel = fields.find((f) => f.role === \"dimension\" && f.name !== groupKey)?.name;\n\n const colMeta = (k: string, f = byName.get(k)) => ({\n key: k,\n label: f?.label ?? k,\n ...(f?.format && { format: f.format }),\n ...(f?.currency && { currency: f.currency }),\n });\n const xAxis: AxisSpec = {\n ...(xField?.label && { label: xField.label }),\n ...(xField?.format && { format: xField.format }),\n ...(xField?.currency && { currency: xField.currency }),\n numeric: true,\n };\n const yAxis: AxisSpec = {\n ...(yField?.label && { label: yField.label }),\n ...(yField?.format && { format: yField.format }),\n ...(yField?.currency && { currency: yField.currency }),\n };\n\n if (groupKey) {\n // Keep the largest groups by point count; fold the rest into \"Other\" so a high-cardinality\n // dimension doesn't become an unreadable legend of one-point colors.\n const counts = new Map<string, number>();\n for (const r of rows) {\n const g = String(r[groupKey] ?? \"(No value)\");\n counts.set(g, (counts.get(g) ?? 0) + 1);\n }\n const ordered = [...counts.keys()].sort((a, b) => counts.get(b)! - counts.get(a)!);\n const capped = ordered.length > MAX_SERIES;\n const kept = new Set(capped ? ordered.slice(0, MAX_SERIES - 1) : ordered);\n const groupCols = capped ? [...kept, \"Other\"] : [...kept];\n // Each point's y lands in its own group column (null elsewhere); x and size stay shared, so\n // the widget draws one colored series per group off a single point per row.\n const data = rows.map((r) => {\n const g = String(r[groupKey] ?? \"(No value)\");\n const col = kept.has(g) ? g : \"Other\";\n return {\n [x]: r[x],\n [col]: r[y],\n ...(size && { [size]: r[size] }),\n ...(pointLabel && { [pointLabel]: r[pointLabel] }),\n };\n });\n const notes = capped ? [`Grouped ${ordered.length - kept.size} smaller categories into \"Other\".`] : [];\n return {\n chartType: \"scatter\",\n data,\n x,\n series: groupCols.map((g) => ({ key: g, label: g })),\n ...(size && { size }),\n ...(pointLabel && { pointLabel }),\n xAxis,\n yAxis,\n legend: true,\n ...(opts.title && { title: opts.title }),\n ...(notes.length && { notes }),\n columns: [\n colMeta(x),\n ...groupCols.map((g) => ({\n key: g,\n label: g,\n ...(yField?.format && { format: yField.format }),\n ...(yField?.currency && { currency: yField.currency }),\n })),\n ...(size ? [colMeta(size)] : []),\n ...(pointLabel ? [colMeta(pointLabel)] : []),\n ],\n };\n }\n\n const columns = [x, y, ...(size ? [size] : []), ...(pointLabel ? [pointLabel] : [])].map((k) => colMeta(k));\n return {\n chartType: \"scatter\",\n data: rows,\n x,\n series: [{ key: y, label: yField?.label ?? y }],\n ...(size && { size }),\n ...(pointLabel && { pointLabel }),\n xAxis,\n yAxis,\n legend: false,\n ...(opts.title && { title: opts.title }),\n columns,\n };\n}\n\n// Funnel: a stage dimension + a value, drawn as ordered descending segments. No axes, no pivot.\nfunction resolveFunnel(\n rows: Record<string, unknown>[],\n fields: FieldMeta[],\n encode: Encode,\n opts: ResolveOptions,\n): ChartSpec {\n const byName = new Map(fields.map((f) => [f.name, f]));\n const dim = encode.x ?? fields.find((f) => f.role === \"dimension\")?.name;\n const yEnc = Array.isArray(encode.y) ? encode.y[0] : encode.y;\n const value = yEnc ?? fields.find((f) => f.role === \"measure\")?.name;\n if (!dim || !value) {\n throw new Error(\"A funnel chart needs a stage/label column and a numeric value column (e.g. stage + count).\");\n }\n const valField = byName.get(value);\n // A funnel segment must be positive; drop non-positive stages (but never end up empty).\n const positive = rows.filter((r) => (Number(r[value]) || 0) > 0);\n const data = positive.length > 0 ? positive : rows;\n const colMeta = (k: string) => {\n const f = byName.get(k);\n return {\n key: k,\n label: f?.label ?? k,\n ...(f?.format && { format: f.format }),\n ...(f?.currency && { currency: f.currency }),\n };\n };\n return {\n chartType: \"funnel\",\n data,\n x: dim,\n series: [{ key: value, label: valField?.label ?? value }],\n legend: false,\n ...(opts.title && { title: opts.title }),\n columns: [dim, value].map(colMeta),\n };\n}\n\n// Waterfall / bridge: ordered steps whose value is a SIGNED delta (+ gain, − loss). Start/end\n// \"totals\" anchor from 0; the renderer computes the running cumulative + offsets. Totals are taken\n// from a marker column (values like total/opening/closing) if present, else the first & last rows.\nconst TOTAL_RE = /^\\s*(total|subtotal|opening|closing|start|end|net|balance)\\b/i;\nfunction resolveWaterfall(\n rows: Record<string, unknown>[],\n fields: FieldMeta[],\n encode: Encode,\n opts: ResolveOptions,\n): ChartSpec {\n const byName = new Map(fields.map((f) => [f.name, f]));\n const dim = encode.x ?? fields.find((f) => f.role === \"dimension\")?.name;\n const value =\n (Array.isArray(encode.y) ? encode.y[0] : encode.y) ??\n fields.find((f) => f.role === \"measure\" && f.name !== dim)?.name;\n if (!dim || !value) {\n throw new Error(\n \"A waterfall needs a step label and a numeric value. The value should be the SIGNED change at each step (e.g. -240000 for a loss); mark the start/end rows as totals.\",\n );\n }\n if (rows.length < 2) {\n throw new Error(\"A waterfall needs at least a start total and one change step.\");\n }\n // Totals: a marker column (e.g. kind/type/direction = total/opening/closing) if one exists,\n // otherwise the conventional first and last rows.\n const markerCol = fields.find(\n (f) =>\n f.name !== dim &&\n f.name !== value &&\n f.role === \"dimension\" &&\n rows.some((r) => TOTAL_RE.test(String(r[f.name]))),\n );\n const totals = markerCol\n ? rows.filter((r) => TOTAL_RE.test(String(r[markerCol.name]))).map((r) => String(r[dim]))\n : [String(rows[0]![dim]), String(rows[rows.length - 1]![dim])];\n // Say when we guessed: a pure-delta input has no totals, so defaulting first/last would be wrong.\n const notes = markerCol\n ? []\n : [\"No totals column found, so the first and last rows are treated as the opening and closing totals. Mark a column (e.g. type = total) to change this.\"];\n\n const valField = byName.get(value);\n const colMeta = (k: string) => {\n const f = byName.get(k);\n return {\n key: k,\n label: f?.label ?? k,\n ...(f?.format && { format: f.format }),\n ...(f?.currency && { currency: f.currency }),\n };\n };\n return {\n chartType: \"waterfall\",\n data: rows,\n x: dim,\n series: [{ key: value, label: valField?.label ?? value }],\n ...(totals.length > 0 && { totals: [...new Set(totals)] }),\n ...(notes.length && { notes }),\n yAxis: {\n ...(valField?.label && { label: valField.label }),\n ...(valField?.format && { format: valField.format }),\n ...(valField?.currency && { currency: valField.currency }),\n },\n legend: false,\n ...(opts.title && { title: opts.title }),\n columns: [dim, value].map(colMeta),\n };\n}\n\n// Sort rows by x ascending for time / numeric axes (chronological / numeric order). String\n// categories are left in source order, which respects an explicit ORDER BY in the query.\nfunction sortRowsByX(\n rows: Record<string, unknown>[],\n xKey: string,\n xField: FieldMeta | undefined,\n): Record<string, unknown>[] {\n if (xField?.role === \"time\") {\n const t = (v: unknown) => {\n let s = String(v);\n if (/^\\d{4}-\\d{2}-\\d{2}$/.test(s)) s += \"T00:00:00.000Z\";\n else if (/^\\d{4}-\\d{2}-\\d{2}T/.test(s) && !/[Z+-]\\d{0,2}:?\\d{0,2}$/.test(s.slice(10))) s += \"Z\";\n const ms = new Date(s).getTime();\n return Number.isNaN(ms) ? Infinity : ms; // unparseable dates sort to the end\n };\n return [...rows].sort((a, b) => t(a[xKey]) - t(b[xKey]));\n }\n if (xField?.kind === \"number\") {\n return [...rows].sort((a, b) => (Number(a[xKey]) || 0) - (Number(b[xKey]) || 0));\n }\n return rows;\n}\n\n// Group rows by x and sum measure columns, folding unaggregated duplicates into one row per x.\n// `collapsed` = how many extra rows were merged (0 when the data was already aggregated).\nfunction aggregateByX(\n rows: Record<string, unknown>[],\n xKey: string,\n measureKeys: string[],\n): { rows: Record<string, unknown>[]; collapsed: number } {\n const groups = new Map<string, Record<string, unknown>>();\n let collapsed = 0;\n for (const row of rows) {\n const key = String(row[xKey]);\n const existing = groups.get(key);\n if (!existing) {\n groups.set(key, { ...row });\n } else {\n collapsed++;\n for (const m of measureKeys) {\n existing[m] = (Number(existing[m]) || 0) + (Number(row[m]) || 0);\n }\n }\n }\n return { rows: Array.from(groups.values()), collapsed };\n}\n\nfunction buildColumns(\n x: string,\n xField: FieldMeta | undefined,\n series: SeriesSpec[],\n byName: Map<string, FieldMeta>,\n rows: Record<string, unknown>[],\n): ColumnSpec[] {\n const cols: ColumnSpec[] = [];\n if (x) {\n cols.push({\n key: x,\n label: xField?.label ?? x,\n ...(xField?.granularity && { granularity: xField.granularity }),\n });\n }\n for (const s of series) {\n const f = byName.get(s.key);\n cols.push({\n key: s.key,\n label: s.label,\n ...(f?.format && { format: f.format }),\n ...(f?.format === \"percent\" && { fraction: isFractionScale(rows, [s.key]) }),\n ...(f?.currency && { currency: f.currency }),\n });\n }\n return cols;\n}\n","// addCharts — register the agent-facing visualize tool + chart widget, call the dev's data\n// callback, run resolve() server-side, and return a ChartSpec linked to the ui:// widget.\nimport type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport type { ChartContext, ChartData, ChartSpec, ChartType, Encode } from \"./types.js\";\nimport { resolve } from \"./resolve/resolve.js\";\nimport { validateRowsShape, assertPlottedScalar, warnUntypedColumns } from \"./validate.js\";\nimport { WIDGET_HTML } from \"./generated/widget-html.js\";\n\nconst ALL_CHART_TYPES: ChartType[] = [\"line\", \"bar\", \"area\", \"pie\", \"scatter\", \"funnel\", \"waterfall\", \"table\"];\n\n// MCP Apps: the widget is served as a ui:// resource; the tool links to it via _meta.\nconst CHART_RESOURCE_URI = \"ui://bonnard/chart\";\nconst APP_MIME_TYPE = \"text/html;profile=mcp-app\";\n\n/** Options for addCharts. */\nexport interface AddChartsOptions {\n /** SQL mode: the agent writes SQL; you execute it read-only and return rows. */\n runSql?: (sql: string, ctx: ChartContext) => Promise<ChartData>;\n /** Which chart types the agent may use (default: all). */\n allow?: ChartType[];\n /** Names the dev's schema-discovery tool so the agent is told to call it first. */\n discovery?: { toolName: string };\n /** Override the tool name (default: \"visualize\"). */\n toolName?: string;\n}\n\n/** Presentation inputs shared by every chart. */\nfunction presentationInput(allow: ChartType[]): Record<string, z.ZodTypeAny> {\n return {\n chartType: z\n .enum(allow as [ChartType, ...ChartType[]])\n .optional()\n .describe(\n \"Chart type. Omit to auto-detect from the data shape. For waterfall, return ordered steps \" +\n \"where the value is a SIGNED change (+ gain, − loss) and the start/end rows are totals.\",\n ),\n title: z.string().optional().describe(\"Chart title\"),\n stacking: z.enum([\"stacked\", \"grouped\", \"stacked100\"]).optional(),\n horizontal: z.boolean().optional(),\n reference: z\n .object({\n target: z.number().optional().describe(\"Draw a horizontal target/threshold line at this value\"),\n average: z.boolean().optional().describe(\"Draw a line at the average of the primary series\"),\n })\n .optional()\n .describe(\"Reference lines on the value axis (target and/or average)\"),\n encode: z\n .object({\n x: z.string().optional(),\n y: z.union([z.string(), z.array(z.string())]).optional(),\n series: z.string().optional(),\n y2: z\n .union([z.string(), z.array(z.string())])\n .optional()\n .describe(\"Measure(s) for a secondary right axis, drawn as a line (e.g. a % over $ bars)\"),\n line: z\n .union([z.string(), z.array(z.string())])\n .optional()\n .describe(\n \"Measure(s) to draw as a line instead of bars on the same axis (e.g. actual bars + target/forecast/moving-average line). Compute that measure in SQL, select it, and name it here.\",\n ),\n size: z\n .string()\n .optional()\n .describe(\"Scatter only: a 3rd numeric column mapped to point size (makes a bubble chart)\"),\n })\n .optional()\n .describe(\"Map columns to x / y / series / y2 when names aren't obvious\"),\n };\n}\n\n// The widget renders from structuredContent; the text is just a fallback + a peek for the agent.\n// Echo only a sample of the rows so a large result doesn't flood the model context (the full\n// dataset is already in structuredContent for the chart).\nconst ECHO_SAMPLE = 50;\n\n/** Build the CallToolResult: ChartSpec as structuredContent + a text fallback with the data. */\nfunction buildResult(spec: ChartSpec) {\n const head =\n `${spec.chartType} chart${spec.title ? ` \"${spec.title}\"` : \"\"}: ` +\n `${spec.data.length} row(s), x=${spec.x || \"(none)\"}, series=[${spec.series.map((s) => s.key).join(\", \")}]`;\n const notes = spec.notes?.length ? `\\nNote: ${spec.notes.join(\" \")}` : \"\";\n const truncated = spec.data.length > ECHO_SAMPLE;\n const sample = truncated ? spec.data.slice(0, ECHO_SAMPLE) : spec.data;\n const sampleNote = truncated\n ? `\\n(text shows the first ${ECHO_SAMPLE} of ${spec.data.length} rows; the chart has all of them)`\n : \"\";\n return {\n content: [{ type: \"text\" as const, text: `${head}${notes}${sampleNote}\\n${JSON.stringify(sample)}` }],\n structuredContent: spec as unknown as Record<string, unknown>,\n };\n}\n\n/** A clean \"no rows\" result — not an error; renders an empty chart, not a broken one. */\nfunction emptyResult(title?: string) {\n const spec: ChartSpec = {\n chartType: \"table\",\n data: [],\n x: \"\",\n series: [],\n legend: false,\n ...(title && { title }),\n columns: [],\n };\n return {\n content: [{ type: \"text\" as const, text: `No rows returned${title ? ` for \"${title}\"` : \"\"} — nothing to chart.` }],\n structuredContent: spec as unknown as Record<string, unknown>,\n };\n}\n\n// Dedupe integration warnings so a mis-wired runSql logs each issue once, not per call.\nconst warnedIntegration = new Set<string>();\n\n// Register the ui:// widget resource once per server (addCharts may be called repeatedly).\nconst widgetRegistered = new WeakSet<object>();\nfunction registerWidgetResource(server: McpServer): void {\n if (widgetRegistered.has(server)) return;\n widgetRegistered.add(server);\n server.registerResource(\n \"Bonnard Chart\",\n CHART_RESOURCE_URI,\n { description: \"Interactive chart widget\", mimeType: APP_MIME_TYPE },\n () => ({\n contents: [{ uri: CHART_RESOURCE_URI, mimeType: APP_MIME_TYPE, text: WIDGET_HTML }],\n }),\n );\n}\n\n/** Register the generic `visualize` tool on an MCP server. */\nexport function addCharts(server: McpServer, options: AddChartsOptions): void {\n const allow = options.allow ?? ALL_CHART_TYPES;\n\n const { runSql } = options;\n if (!runSql) {\n throw new Error(\"addCharts: provide a data source (e.g. { runSql })\");\n }\n\n const disc = options.discovery?.toolName\n ? ` First call \\`${options.discovery.toolName}\\` to discover tables and columns.`\n : \"\";\n const description =\n \"Render an interactive chart from a read-only SQL SELECT.\" +\n disc +\n \" Alias columns clearly. Omit chartType to auto-detect; pass `encode` to map columns\" +\n \" to x / y / series when the names aren't obvious.\";\n\n const inputSchema = {\n sql: z.string().describe(\"A single read-only SQL SELECT statement\"),\n ...presentationInput(allow),\n };\n\n // Register the chart widget as a ui:// resource (MCP Apps). Idempotent across calls.\n registerWidgetResource(server);\n\n server.registerTool(\n options.toolName ?? \"visualize\",\n {\n title: \"Visualize\",\n description,\n inputSchema,\n // Schema-back structuredContent: some hosts only forward it to the widget when the tool\n // declares an outputSchema. Permissive (nested objects as open records) so it never rejects a spec.\n outputSchema: {\n chartType: z.string(),\n data: z.array(z.record(z.string(), z.unknown())),\n x: z.string(),\n series: z.array(z.record(z.string(), z.unknown())),\n legend: z.boolean(),\n xAxis: z.record(z.string(), z.unknown()).optional(),\n yAxis: z.record(z.string(), z.unknown()).optional(),\n yAxisRight: z.record(z.string(), z.unknown()).optional(),\n stacking: z.string().optional(),\n horizontal: z.boolean().optional(),\n title: z.string().optional(),\n columns: z.array(z.record(z.string(), z.unknown())).optional(),\n reference: z.array(z.record(z.string(), z.unknown())).optional(),\n size: z.string().optional(),\n pointLabel: z.string().optional(),\n totals: z.array(z.string()).optional(),\n notes: z.array(z.string()).optional(),\n },\n annotations: { readOnlyHint: true, openWorldHint: false },\n // Link the tool to its widget. `ui.resourceUri` is the MCP Apps standard (Claude,\n // Cursor, Inspector); `openai/outputTemplate` is the ChatGPT Apps SDK alias.\n _meta: {\n ui: { resourceUri: CHART_RESOURCE_URI },\n \"openai/outputTemplate\": CHART_RESOURCE_URI,\n },\n },\n async (args: Record<string, unknown>) => {\n const ctx: ChartContext = {};\n try {\n const data = await runSql(String(args.sql), ctx);\n validateRowsShape(data.rows); // fail loud on a wrong shape (not array / not objects)\n // Nudge the integrator (once) if a column arrived untyped and looks mis-inferrable.\n for (const w of warnUntypedColumns(data)) {\n if (warnedIntegration.has(w)) continue;\n warnedIntegration.add(w);\n console.warn(`[mcp-charts] ${w}`);\n }\n const title = args.title as string | undefined;\n if (data.rows.length === 0) return emptyResult(title); // friendly \"no rows\" state\n if (args.encode) data.encode = { ...(data.encode ?? {}), ...(args.encode as Encode) };\n const spec = resolve(data, {\n chartType: args.chartType as ChartType | undefined,\n title,\n stacking: args.stacking as ChartSpec[\"stacking\"],\n horizontal: args.horizontal as boolean | undefined,\n reference: args.reference as { target?: number; average?: boolean } | undefined,\n });\n assertPlottedScalar(spec); // every plotted column must be scalar\n return buildResult(spec);\n } catch (err) {\n const message = err instanceof Error ? err.message : String(err);\n return {\n isError: true,\n content: [{ type: \"text\" as const, text: `visualize failed: ${message}` }],\n };\n }\n },\n );\n}\n","// Lightweight, fail-loud guards on the developer-returned data. Because the rows ultimately\n// come from an LLM-authored query (so the TS type is a claim the model can break) and every\n// chart renderer below us fails SILENTLY on a bad shape, we turn \"invisible blank chart\" into\n// a clear, agent-correctable error. Cheap: structural check + sampled scalar check on the\n// columns we actually plot. Never scans large result sets; never rejects carried-but-unplotted columns.\nimport type { ChartData, ChartSpec } from \"./types.js\";\n\nconst SCALAR_TYPES = new Set([\"string\", \"number\", \"boolean\", \"bigint\"]);\nconst NUMERIC_STRING = /^-?\\d+(\\.\\d+)?$/;\n\nfunction isScalar(v: unknown): boolean {\n return v == null || SCALAR_TYPES.has(typeof v) || v instanceof Date;\n}\n\n/** Generic shape check: the data source must return rows as an array of flat objects. */\nexport function validateRowsShape(rows: unknown): asserts rows is Record<string, unknown>[] {\n if (!Array.isArray(rows)) {\n throw new Error(\n `Expected the data source to return { rows: [...] } as an array of objects; got ${rows === null ? \"null\" : typeof rows}.`,\n );\n }\n if (rows.length === 0) return;\n const first = rows[0];\n if (first === null || typeof first !== \"object\" || Array.isArray(first)) {\n throw new Error(\n `Each row must be a flat object keyed by column name (e.g. { region: \"EU\", revenue: 100 }); ` +\n `got ${Array.isArray(first) ? \"an array\" : typeof first}. ` +\n `If your driver returns arrays, map each row to an object first.`,\n );\n }\n}\n\n// A column typed only by inference (no declared `kind`) whose values are numbers-stored-as-strings\n// or driver wrapper objects is the classic integration footgun: resolve() then charts numbers as\n// categories, or blanks the chart on objects. This is a wiring mistake in the caller's runSql (a\n// SQL driver that string-encodes numerics, or hands back Date/wrapper objects), not bad data, so it\n// warns the developer rather than throwing. Silent when the caller declared `fields` (kinds win).\nexport function warnUntypedColumns(data: ChartData, sample = 50): string[] {\n const declared = new Set((data.fields ?? []).filter((f) => f.kind).map((f) => f.name));\n const rows = data.rows.slice(0, sample);\n const cols = rows[0] ? Object.keys(rows[0]) : [];\n const out: string[] = [];\n for (const c of cols) {\n if (declared.has(c)) continue;\n const vals = rows.map((r) => r[c]).filter((v) => v != null);\n if (vals.length === 0) continue;\n // Skip all-4-digit columns: a bare year is a legitimate string/number ambiguity we must not force.\n const numericStrings = vals.every((v) => typeof v === \"string\" && NUMERIC_STRING.test(v));\n const yearish = vals.every((v) => /^\\d{4}$/.test(String(v)));\n if (numericStrings && !yearish) {\n out.push(`Column \"${c}\" holds numbers stored as strings; declare its kind or normalize the cells, else it charts as a category.`);\n } else if (vals.some((v) => typeof v === \"object\" && !(v instanceof Date))) {\n out.push(`Column \"${c}\" holds objects (a driver-wrapped value?); normalize to a scalar or declare its fields.`);\n }\n }\n return out;\n}\n\n/** Precise check: every column we actually plot (x + series) must hold scalar values. Sampled. */\nexport function assertPlottedScalar(spec: ChartSpec, sample = 50): void {\n const keys = [spec.x, ...spec.series.map((s) => s.key)].filter(Boolean);\n for (const row of spec.data.slice(0, sample)) {\n for (const k of keys) {\n const v = row[k];\n if (!isScalar(v)) {\n const kind = Array.isArray(v) ? \"an array\" : \"an object\";\n throw new Error(\n `Column \"${k}\" contains ${kind}, but charts need scalar values. ` +\n `Select a field of it (e.g. ${k}.id) or cast it to text in your query.`,\n );\n }\n }\n }\n}\n","// GENERATED by scripts/embed-widget.mjs — do not edit.\nexport const WIDGET_HTML = \"<!doctype html>\\n<html lang=\\\"en\\\" data-theme=\\\"light\\\">\\n <head>\\n <meta charset=\\\"UTF-8\\\" />\\n <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\" />\\n <title>Bonnard Chart</title>\\n <style>\\n :root {\\n --bg: #ffffff;\\n --fg: #1a1a1a;\\n --muted: #6b7280;\\n --grid: #e5e7eb;\\n --border: #e5e7eb;\\n font-family:\\n ui-sans-serif,\\n system-ui,\\n -apple-system,\\n \\\"Segoe UI\\\",\\n Roboto,\\n sans-serif;\\n }\\n html[data-theme=\\\"dark\\\"] {\\n --bg: #171717;\\n --fg: #fafafa;\\n --muted: #9ca3af;\\n --grid: #2a2a2a;\\n --border: #2a2a2a;\\n }\\n * {\\n box-sizing: border-box;\\n }\\n body {\\n margin: 0;\\n background: var(--bg);\\n color: var(--fg);\\n padding: 12px;\\n }\\n #root {\\n width: 100%;\\n }\\n .title {\\n font-size: 15px;\\n font-weight: 600;\\n margin: 0 0 8px;\\n }\\n /* ECharts needs an explicit pixel height; it manages its own SVG sizing inside. */\\n .ec {\\n width: 100%;\\n height: 340px;\\n }\\n .tbl {\\n width: 100%;\\n border-collapse: collapse;\\n font-size: 13px;\\n }\\n .tbl th,\\n .tbl td {\\n text-align: left;\\n padding: 6px 10px;\\n border-bottom: 1px solid var(--border);\\n }\\n .tbl th {\\n color: var(--muted);\\n font-weight: 600;\\n }\\n .tbl td:not(:first-child),\\n .tbl th:not(:first-child) {\\n text-align: right;\\n font-variant-numeric: tabular-nums;\\n }\\n .empty,\\n .fallback {\\n color: var(--muted);\\n font-size: 13px;\\n padding: 16px 4px;\\n }\\n .fallback {\\n white-space: pre-wrap;\\n word-break: break-word;\\n }\\n </style>\\n <script type=\\\"module\\\" crossorigin>var YO=Object.defineProperty;var XO=(e,t,r)=>t in e?YO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Oe=(e,t,r)=>XO(e,typeof t!=\\\"symbol\\\"?t+\\\"\\\":t,r);(function(){const t=document.createElement(\\\"link\\\").relList;if(t&&t.supports&&t.supports(\\\"modulepreload\\\"))return;for(const n of document.querySelectorAll('link[rel=\\\"modulepreload\\\"]'))i(n);new MutationObserver(n=>{for(const a of n)if(a.type===\\\"childList\\\")for(const o of a.addedNodes)o.tagName===\\\"LINK\\\"&&o.rel===\\\"modulepreload\\\"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin===\\\"use-credentials\\\"?a.credentials=\\\"include\\\":n.crossOrigin===\\\"anonymous\\\"?a.credentials=\\\"omit\\\":a.credentials=\\\"same-origin\\\",a}function i(n){if(n.ep)return;n.ep=!0;const a=r(n);fetch(n.href,a)}})();const KO=\\\"modulepreload\\\",JO=function(e,t){return new URL(e,t).href},qb={},QO=function(t,r,i){let n=Promise.resolve();if(r&&r.length>0){let o=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:\\\"fulfilled\\\",value:d}),d=>({status:\\\"rejected\\\",reason:d}))))};const s=document.getElementsByTagName(\\\"link\\\"),u=document.querySelector(\\\"meta[property=csp-nonce]\\\"),l=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute(\\\"nonce\\\"));n=o(r.map(c=>{if(c=JO(c,i),c in qb)return;qb[c]=!0;const f=c.endsWith(\\\".css\\\"),d=f?'[rel=\\\"stylesheet\\\"]':\\\"\\\";if(!!i)for(let p=s.length-1;p>=0;p--){const g=s[p];if(g.href===c&&(!f||g.rel===\\\"stylesheet\\\"))return}else if(document.querySelector(`link[href=\\\"${c}\\\"]${d}`))return;const h=document.createElement(\\\"link\\\");if(h.rel=f?\\\"stylesheet\\\":KO,f||(h.as=\\\"script\\\"),h.crossOrigin=\\\"\\\",h.href=c,l&&h.setAttribute(\\\"nonce\\\",l),document.head.appendChild(h),f)return new Promise((p,g)=>{h.addEventListener(\\\"load\\\",p),h.addEventListener(\\\"error\\\",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const s=new Event(\\\"vite:preloadError\\\",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return n.then(o=>{for(const s of o||[])s.status===\\\"rejected\\\"&&a(s.reason);return t().catch(a)})};var Yb;const vm=Object.freeze({status:\\\"aborted\\\"});function M(e,t,r){function i(s,u){if(s._zod||Object.defineProperty(s,\\\"_zod\\\",{value:{def:u,constr:o,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);const l=o.prototype,c=Object.keys(l);for(let f=0;f<c.length;f++){const d=c[f];d in s||(s[d]=l[d].bind(s))}}const n=(r==null?void 0:r.Parent)??Object;class a extends n{}Object.defineProperty(a,\\\"name\\\",{value:e});function o(s){var u;const l=r!=null&&r.Parent?new a:this;i(l,s),(u=l._zod).deferred??(u.deferred=[]);for(const c of l._zod.deferred)c();return l}return Object.defineProperty(o,\\\"init\\\",{value:i}),Object.defineProperty(o,Symbol.hasInstance,{value:s=>{var u,l;return r!=null&&r.Parent&&s instanceof r.Parent?!0:(l=(u=s==null?void 0:s._zod)==null?void 0:u.traits)==null?void 0:l.has(e)}}),Object.defineProperty(o,\\\"name\\\",{value:e}),o}const hm=Symbol(\\\"zod_brand\\\");class Gi extends Error{constructor(){super(\\\"Encountered Promise during synchronous parse. Use .parseAsync() instead.\\\")}}class Xf extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name=\\\"ZodEncodeError\\\"}}(Yb=globalThis).__zod_globalConfig??(Yb.__zod_globalConfig={});const js=globalThis.__zod_globalConfig;function ht(e){return e&&Object.assign(js,e),js}function eE(e){return e}function tE(e){return e}function rE(e){}function nE(e){throw new Error(\\\"Unexpected value in exhaustive check\\\")}function iE(e){}function pm(e){const t=Object.values(e).filter(i=>typeof i==\\\"number\\\");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function B(e,t=\\\"|\\\"){return e.map(r=>ie(r)).join(t)}function tf(e,t){return typeof t==\\\"bigint\\\"?t.toString():t}function yu(e){return{get value(){{const t=e();return Object.defineProperty(this,\\\"value\\\",{value:t}),t}}}}function fa(e){return e==null}function Kf(e){const t=e.startsWith(\\\"^\\\")?1:0,r=e.endsWith(\\\"$\\\")?e.length-1:e.length;return e.slice(t,r)}function tk(e,t){const r=e/t,i=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}const Xb=Symbol(\\\"evaluating\\\");function be(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==Xb)return i===void 0&&(i=Xb,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function aE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function oi(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function cn(...e){const t={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function oE(e){return cn(e._zod.def)}function sE(e,t){return t?t.reduce((r,i)=>r==null?void 0:r[i],e):e}function uE(e){const t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{const n={};for(let a=0;a<t.length;a++)n[t[a]]=i[a];return n})}function lE(e=10){const t=\\\"abcdefghijklmnopqrstuvwxyz\\\";let r=\\\"\\\";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Ip(e){return JSON.stringify(e)}function rk(e){return e.toLowerCase().trim().replace(/[^\\\\w\\\\s-]/g,\\\"\\\").replace(/[\\\\s_-]+/g,\\\"-\\\").replace(/^-+|-+$/g,\\\"\\\")}const gm=\\\"captureStackTrace\\\"in Error?Error.captureStackTrace:(...e)=>{};function ro(e){return typeof e==\\\"object\\\"&&e!==null&&!Array.isArray(e)}const nk=yu(()=>{var e;if(js.jitless||typeof navigator<\\\"u\\\"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes(\\\"Cloudflare\\\")))return!1;try{const t=Function;return new t(\\\"\\\"),!0}catch{return!1}});function Ji(e){if(ro(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!=\\\"function\\\")return!0;const r=t.prototype;return!(ro(r)===!1||Object.prototype.hasOwnProperty.call(r,\\\"isPrototypeOf\\\")===!1)}function Jf(e){return Ji(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function cE(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const fE=e=>{const t=typeof e;switch(t){case\\\"undefined\\\":return\\\"undefined\\\";case\\\"string\\\":return\\\"string\\\";case\\\"number\\\":return Number.isNaN(e)?\\\"nan\\\":\\\"number\\\";case\\\"boolean\\\":return\\\"boolean\\\";case\\\"function\\\":return\\\"function\\\";case\\\"bigint\\\":return\\\"bigint\\\";case\\\"symbol\\\":return\\\"symbol\\\";case\\\"object\\\":return Array.isArray(e)?\\\"array\\\":e===null?\\\"null\\\":e.then&&typeof e.then==\\\"function\\\"&&e.catch&&typeof e.catch==\\\"function\\\"?\\\"promise\\\":typeof Map<\\\"u\\\"&&e instanceof Map?\\\"map\\\":typeof Set<\\\"u\\\"&&e instanceof Set?\\\"set\\\":typeof Date<\\\"u\\\"&&e instanceof Date?\\\"date\\\":typeof File<\\\"u\\\"&&e instanceof File?\\\"file\\\":\\\"object\\\";default:throw new Error(`Unknown data type: ${t}`)}},rf=new Set([\\\"string\\\",\\\"number\\\",\\\"symbol\\\"]),ik=new Set([\\\"string\\\",\\\"number\\\",\\\"bigint\\\",\\\"boolean\\\",\\\"symbol\\\",\\\"undefined\\\"]);function xn(e){return e.replace(/[.*+?^${}()|[\\\\]\\\\\\\\]/g,\\\"\\\\\\\\$&\\\")}function tr(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(i._zod.parent=e),i}function U(e){const t=e;if(!t)return{};if(typeof t==\\\"string\\\")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error(\\\"Cannot specify both `message` and `error` params\\\");t.error=t.message}return delete t.message,typeof t.error==\\\"string\\\"?{...t,error:()=>t.error}:t}function dE(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,a){return t??(t=e()),Reflect.set(t,i,n,a)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function ie(e){return typeof e==\\\"bigint\\\"?e.toString()+\\\"n\\\":typeof e==\\\"string\\\"?`\\\"${e}\\\"`:`${e}`}function ak(e){return Object.keys(e).filter(t=>e[t]._zod.optin===\\\"optional\\\"&&e[t]._zod.optout===\\\"optional\\\")}const ok={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},sk={int64:[BigInt(\\\"-9223372036854775808\\\"),BigInt(\\\"9223372036854775807\\\")],uint64:[BigInt(0),BigInt(\\\"18446744073709551615\\\")]};function uk(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(\\\".pick() cannot be used on object schemas containing refinements\\\");const a=cn(e._zod.def,{get shape(){const o={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: \\\"${s}\\\"`);t[s]&&(o[s]=r.shape[s])}return oi(this,\\\"shape\\\",o),o},checks:[]});return tr(e,a)}function lk(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(\\\".omit() cannot be used on object schemas containing refinements\\\");const a=cn(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: \\\"${s}\\\"`);t[s]&&delete o[s]}return oi(this,\\\"shape\\\",o),o},checks:[]});return tr(e,a)}function ck(e,t){if(!Ji(t))throw new Error(\\\"Invalid input to extend: expected a plain object\\\");const r=e._zod.def.checks;if(r&&r.length>0){const a=e._zod.def.shape;for(const o in t)if(Object.getOwnPropertyDescriptor(a,o)!==void 0)throw new Error(\\\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\\\")}const n=cn(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return oi(this,\\\"shape\\\",a),a}});return tr(e,n)}function fk(e,t){if(!Ji(t))throw new Error(\\\"Invalid input to safeExtend: expected a plain object\\\");const r=cn(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return oi(this,\\\"shape\\\",i),i}});return tr(e,r)}function dk(e,t){var i;if((i=e._zod.def.checks)!=null&&i.length)throw new Error(\\\".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.\\\");const r=cn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return oi(this,\\\"shape\\\",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return tr(e,r)}function vk(e,t,r){const n=t._zod.def.checks;if(n&&n.length>0)throw new Error(\\\".partial() cannot be used on object schemas containing refinements\\\");const o=cn(t._zod.def,{get shape(){const s=t._zod.def.shape,u={...s};if(r)for(const l in r){if(!(l in s))throw new Error(`Unrecognized key: \\\"${l}\\\"`);r[l]&&(u[l]=e?new e({type:\\\"optional\\\",innerType:s[l]}):s[l])}else for(const l in s)u[l]=e?new e({type:\\\"optional\\\",innerType:s[l]}):s[l];return oi(this,\\\"shape\\\",u),u},checks:[]});return tr(t,o)}function hk(e,t,r){const i=cn(t._zod.def,{get shape(){const n=t._zod.def.shape,a={...n};if(r)for(const o in r){if(!(o in a))throw new Error(`Unrecognized key: \\\"${o}\\\"`);r[o]&&(a[o]=new e({type:\\\"nonoptional\\\",innerType:n[o]}))}else for(const o in n)a[o]=new e({type:\\\"nonoptional\\\",innerType:n[o]});return oi(this,\\\"shape\\\",a),a}});return tr(t,i)}function Fi(e,t=0){var r;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((r=e.issues[i])==null?void 0:r.continue)!==!0)return!0;return!1}function pk(e,t=0){var r;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((r=e.issues[i])==null?void 0:r.continue)===!1)return!0;return!1}function yr(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function ys(e){return typeof e==\\\"string\\\"?e:e==null?void 0:e.message}function Qt(e,t,r){var u,l,c,f,d,v;const i=e.message?e.message:ys((c=(l=(u=e.inst)==null?void 0:u._zod.def)==null?void 0:l.error)==null?void 0:c.call(l,e))??ys((f=t==null?void 0:t.error)==null?void 0:f.call(t,e))??ys((d=r.customError)==null?void 0:d.call(r,e))??ys((v=r.localeError)==null?void 0:v.call(r,e))??\\\"Invalid input\\\",{inst:n,continue:a,input:o,...s}=e;return s.path??(s.path=[]),s.message=i,t!=null&&t.reportInput&&(s.input=o),s}function Qf(e){return e instanceof Set?\\\"set\\\":e instanceof Map?\\\"map\\\":e instanceof File?\\\"file\\\":\\\"unknown\\\"}function ed(e){return Array.isArray(e)?\\\"array\\\":typeof e==\\\"string\\\"?\\\"string\\\":\\\"unknown\\\"}function ae(e){const t=typeof e;switch(t){case\\\"number\\\":return Number.isNaN(e)?\\\"nan\\\":\\\"number\\\";case\\\"object\\\":{if(e===null)return\\\"null\\\";if(Array.isArray(e))return\\\"array\\\";const r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&\\\"constructor\\\"in r&&r.constructor)return r.constructor.name}}return t}function no(...e){const[t,r,i]=e;return typeof t==\\\"string\\\"?{message:t,code:\\\"custom\\\",input:r,inst:i}:{...t}}function vE(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function gk(e){const t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function mk(e){let t=\\\"\\\";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function hE(e){const t=e.replace(/-/g,\\\"+\\\").replace(/_/g,\\\"/\\\"),r=\\\"=\\\".repeat((4-t.length%4)%4);return gk(t+r)}function pE(e){return mk(e).replace(/\\\\+/g,\\\"-\\\").replace(/\\\\//g,\\\"_\\\").replace(/=/g,\\\"\\\")}function gE(e){const t=e.replace(/^0x/,\\\"\\\");if(t.length%2!==0)throw new Error(\\\"Invalid hex string length\\\");const r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function mE(e){return Array.from(e).map(t=>t.toString(16).padStart(2,\\\"0\\\")).join(\\\"\\\")}class yE{constructor(...t){}}const mm=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:sk,Class:yE,NUMBER_FORMAT_RANGES:ok,aborted:Fi,allowsEval:nk,assert:iE,assertEqual:eE,assertIs:rE,assertNever:nE,assertNotEqual:tE,assignProp:oi,base64ToUint8Array:gk,base64urlToUint8Array:hE,cached:yu,captureStackTrace:gm,cleanEnum:vE,cleanRegex:Kf,clone:tr,cloneDef:oE,createTransparentProxy:dE,defineLazy:be,esc:Ip,escapeRegex:xn,explicitlyAborted:pk,extend:ck,finalizeIssue:Qt,floatSafeRemainder:tk,getElementAtPath:sE,getEnumValues:pm,getLengthableOrigin:ed,getParsedType:fE,getSizableOrigin:Qf,hexToUint8Array:gE,isObject:ro,isPlainObject:Ji,issue:no,joinValues:B,jsonStringifyReplacer:tf,merge:dk,mergeDefs:cn,normalizeParams:U,nullish:fa,numKeys:cE,objectClone:aE,omit:lk,optionalKeys:ak,parsedType:ae,partial:vk,pick:uk,prefixIssues:yr,primitiveTypes:ik,promiseAllObject:uE,propertyKeyTypes:rf,randomString:lE,required:hk,safeExtend:fk,shallowClone:Jf,slugify:rk,stringifyPrimitive:ie,uint8ArrayToBase64:mk,uint8ArrayToBase64url:pE,uint8ArrayToHex:mE,unwrapMessage:ys},Symbol.toStringTag,{value:\\\"Module\\\"})),yk=(e,t)=>{e.name=\\\"$ZodError\\\",Object.defineProperty(e,\\\"_zod\\\",{value:e._zod,enumerable:!1}),Object.defineProperty(e,\\\"issues\\\",{value:t,enumerable:!1}),e.message=JSON.stringify(t,tf,2),Object.defineProperty(e,\\\"toString\\\",{value:()=>e.message,enumerable:!1})},ym=M(\\\"$ZodError\\\",yk),rr=M(\\\"$ZodError\\\",yk,{Parent:Error});function td(e,t=r=>r.message){const r={},i=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function rd(e,t=r=>r.message){const r={_errors:[]},i=(n,a=[])=>{for(const o of n.issues)if(o.code===\\\"invalid_union\\\"&&o.errors.length)o.errors.map(s=>i({issues:s},[...a,...o.path]));else if(o.code===\\\"invalid_key\\\")i({issues:o.issues},[...a,...o.path]);else if(o.code===\\\"invalid_element\\\")i({issues:o.issues},[...a,...o.path]);else{const s=[...a,...o.path];if(s.length===0)r._errors.push(t(o));else{let u=r,l=0;for(;l<s.length;){const c=s[l];l===s.length-1?(u[c]=u[c]||{_errors:[]},u[c]._errors.push(t(o))):u[c]=u[c]||{_errors:[]},u=u[c],l++}}}};return i(e),r}function _m(e,t=r=>r.message){const r={errors:[]},i=(n,a=[])=>{var o,s;for(const u of n.issues)if(u.code===\\\"invalid_union\\\"&&u.errors.length)u.errors.map(l=>i({issues:l},[...a,...u.path]));else if(u.code===\\\"invalid_key\\\")i({issues:u.issues},[...a,...u.path]);else if(u.code===\\\"invalid_element\\\")i({issues:u.issues},[...a,...u.path]);else{const l=[...a,...u.path];if(l.length===0){r.errors.push(t(u));continue}let c=r,f=0;for(;f<l.length;){const d=l[f],v=f===l.length-1;typeof d==\\\"string\\\"?(c.properties??(c.properties={}),(o=c.properties)[d]??(o[d]={errors:[]}),c=c.properties[d]):(c.items??(c.items=[]),(s=c.items)[d]??(s[d]={errors:[]}),c=c.items[d]),v&&c.errors.push(t(u)),f++}}};return i(e),r}function _k(e){const t=[],r=e.map(i=>typeof i==\\\"object\\\"?i.key:i);for(const i of r)typeof i==\\\"number\\\"?t.push(`[${i}]`):typeof i==\\\"symbol\\\"?t.push(`[${JSON.stringify(String(i))}]`):/[^\\\\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push(\\\".\\\"),t.push(i));return t.join(\\\"\\\")}function bm(e){var i;const t=[],r=[...e.issues].sort((n,a)=>(n.path??[]).length-(a.path??[]).length);for(const n of r)t.push(`✖ ${n.message}`),(i=n.path)!=null&&i.length&&t.push(` → at ${_k(n.path)}`);return t.join(`\\n`)}const _u=e=>(t,r,i,n)=>{const a=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new Gi;if(o.issues.length){const s=new((n==null?void 0:n.Err)??e)(o.issues.map(u=>Qt(u,a,ht())));throw gm(s,n==null?void 0:n.callee),s}return o.value},$p=_u(rr),bu=e=>async(t,r,i,n)=>{const a=i?{...i,async:!0}:{async:!0};let o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){const s=new((n==null?void 0:n.Err)??e)(o.issues.map(u=>Qt(u,a,ht())));throw gm(s,n==null?void 0:n.callee),s}return o.value},Dp=bu(rr),Su=e=>(t,r,i)=>{const n=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise)throw new Gi;return a.issues.length?{success:!1,error:new(e??ym)(a.issues.map(o=>Qt(o,n,ht())))}:{success:!0,data:a.value}},Sm=Su(rr),wu=e=>async(t,r,i)=>{const n=i?{...i,async:!0}:{async:!0};let a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(o=>Qt(o,n,ht())))}:{success:!0,data:a.value}},bk=wu(rr),wm=e=>(t,r,i)=>{const n=i?{...i,direction:\\\"backward\\\"}:{direction:\\\"backward\\\"};return _u(e)(t,r,n)},_E=wm(rr),xm=e=>(t,r,i)=>_u(e)(t,r,i),bE=xm(rr),Tm=e=>async(t,r,i)=>{const n=i?{...i,direction:\\\"backward\\\"}:{direction:\\\"backward\\\"};return bu(e)(t,r,n)},SE=Tm(rr),km=e=>async(t,r,i)=>bu(e)(t,r,i),wE=km(rr),Im=e=>(t,r,i)=>{const n=i?{...i,direction:\\\"backward\\\"}:{direction:\\\"backward\\\"};return Su(e)(t,r,n)},xE=Im(rr),$m=e=>(t,r,i)=>Su(e)(t,r,i),TE=$m(rr),Dm=e=>async(t,r,i)=>{const n=i?{...i,direction:\\\"backward\\\"}:{direction:\\\"backward\\\"};return wu(e)(t,r,n)},kE=Dm(rr),Cm=e=>async(t,r,i)=>wu(e)(t,r,i),IE=Cm(rr),Sk=/^[cC][0-9a-z]{6,}$/,wk=/^[0-9a-z]+$/,xk=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Tk=/^[0-9a-vA-V]{20}$/,kk=/^[A-Za-z0-9]{27}$/,Ik=/^[a-zA-Z0-9_-]{21}$/,$k=/^P(?:(\\\\d+W)|(?!.*W)(?=\\\\d|T\\\\d)(\\\\d+Y)?(\\\\d+M)?(\\\\d+D)?(T(?=\\\\d)(\\\\d+H)?(\\\\d+M)?(\\\\d+([.,]\\\\d+)?S)?)?)$/,$E=/^[-+]?P(?!$)(?:(?:[-+]?\\\\d+Y)|(?:[-+]?\\\\d+[.,]\\\\d+Y$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:(?:[-+]?\\\\d+W)|(?:[-+]?\\\\d+[.,]\\\\d+W$))?(?:(?:[-+]?\\\\d+D)|(?:[-+]?\\\\d+[.,]\\\\d+D$))?(?:T(?=[\\\\d+-])(?:(?:[-+]?\\\\d+H)|(?:[-+]?\\\\d+[.,]\\\\d+H$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:[-+]?\\\\d+(?:[.,]\\\\d+)?S)?)??$/,Dk=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,io=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,DE=io(4),CE=io(6),AE=io(7),Ck=/^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$/,PE=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ME=/^(([^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\\\"]+(\\\\.[^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\\\"]+)*)|(\\\".+\\\"))@((\\\\[[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}])|(([a-zA-Z\\\\-0-9]+\\\\.)+[a-zA-Z]{2,}))$/,Ak=/^[^\\\\s@\\\"]{1,64}@[^\\\\s@]{1,255}$/u,LE=Ak,OE=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,EE=\\\"^(\\\\\\\\p{Extended_Pictographic}|\\\\\\\\p{Emoji_Component})+$\\\";function Pk(){return new RegExp(EE,\\\"u\\\")}const Mk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Lk=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ok=e=>{const t=xn(e??\\\":\\\");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ek=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\/([0-9]|[1-2][0-9]|3[0-2])$/,zk=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Rk=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Am=/^[A-Za-z0-9_-]*$/,Nk=/^(?=.{1,253}\\\\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\\\\.?$/,Uk=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\\\.)+[a-zA-Z]{2,}$/,Pm=/^https?$/,Bk=/^\\\\+[1-9]\\\\d{6,14}$/,Fk=\\\"(?:(?:\\\\\\\\d\\\\\\\\d[2468][048]|\\\\\\\\d\\\\\\\\d[13579][26]|\\\\\\\\d\\\\\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\\\\\d|2[0-8])))\\\",jk=new RegExp(`^${Fk}$`);function Zk(e){const t=\\\"(?:[01]\\\\\\\\d|2[0-3]):[0-5]\\\\\\\\d\\\";return typeof e.precision==\\\"number\\\"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\\\\\\\d`:`${t}:[0-5]\\\\\\\\d\\\\\\\\.\\\\\\\\d{${e.precision}}`:`${t}(?::[0-5]\\\\\\\\d(?:\\\\\\\\.\\\\\\\\d+)?)?`}function Vk(e){return new RegExp(`^${Zk(e)}$`)}function Gk(e){const t=Zk({precision:e.precision}),r=[\\\"Z\\\"];e.local&&r.push(\\\"\\\"),e.offset&&r.push(\\\"([+-](?:[01]\\\\\\\\d|2[0-3]):[0-5]\\\\\\\\d)\\\");const i=`${t}(?:${r.join(\\\"|\\\")})`;return new RegExp(`^${Fk}T(?:${i})$`)}const Hk=e=>{const t=e?`[\\\\\\\\s\\\\\\\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??\\\"\\\"}}`:\\\"[\\\\\\\\s\\\\\\\\S]*\\\";return new RegExp(`^${t}$`)},Wk=/^-?\\\\d+n?$/,qk=/^-?\\\\d+$/,Mm=/^-?\\\\d+(?:\\\\.\\\\d+)?$/,Yk=/^(?:true|false)$/i,Xk=/^null$/i,Kk=/^undefined$/i,Jk=/^[^A-Z]*$/,Qk=/^[^a-z]*$/,eI=/^[0-9a-fA-F]*$/;function xu(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Tu(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const zE=/^[0-9a-fA-F]{32}$/,RE=xu(22,\\\"==\\\"),NE=Tu(22),UE=/^[0-9a-fA-F]{40}$/,BE=xu(27,\\\"=\\\"),FE=Tu(27),jE=/^[0-9a-fA-F]{64}$/,ZE=xu(43,\\\"=\\\"),VE=Tu(43),GE=/^[0-9a-fA-F]{96}$/,HE=xu(64,\\\"\\\"),WE=Tu(64),qE=/^[0-9a-fA-F]{128}$/,YE=xu(86,\\\"==\\\"),XE=Tu(86),nd=Object.freeze(Object.defineProperty({__proto__:null,base64:Rk,base64url:Am,bigint:Wk,boolean:Yk,browserEmail:OE,cidrv4:Ek,cidrv6:zk,cuid:Sk,cuid2:wk,date:jk,datetime:Gk,domain:Uk,duration:$k,e164:Bk,email:Ck,emoji:Pk,extendedDuration:$E,guid:Dk,hex:eI,hostname:Nk,html5Email:PE,httpProtocol:Pm,idnEmail:LE,integer:qk,ipv4:Mk,ipv6:Lk,ksuid:kk,lowercase:Jk,mac:Ok,md5_base64:RE,md5_base64url:NE,md5_hex:zE,nanoid:Ik,null:Xk,number:Mm,rfc5322Email:ME,sha1_base64:BE,sha1_base64url:FE,sha1_hex:UE,sha256_base64:ZE,sha256_base64url:VE,sha256_hex:jE,sha384_base64:HE,sha384_base64url:WE,sha384_hex:GE,sha512_base64:YE,sha512_base64url:XE,sha512_hex:qE,string:Hk,time:Vk,ulid:xk,undefined:Kk,unicodeEmail:Ak,uppercase:Qk,uuid:io,uuid4:DE,uuid6:CE,uuid7:AE,xid:Tk},Symbol.toStringTag,{value:\\\"Module\\\"})),Ke=M(\\\"$ZodCheck\\\",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),tI={number:\\\"number\\\",bigint:\\\"bigint\\\",object:\\\"date\\\"},Lm=M(\\\"$ZodCheckLessThan\\\",(e,t)=>{Ke.init(e,t);const r=tI[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:\\\"too_big\\\",maximum:typeof t.value==\\\"object\\\"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Om=M(\\\"$ZodCheckGreaterThan\\\",(e,t)=>{Ke.init(e,t);const r=tI[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:\\\"too_small\\\",minimum:typeof t.value==\\\"object\\\"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rI=M(\\\"$ZodCheckMultipleOf\\\",(e,t)=>{Ke.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error(\\\"Cannot mix number and bigint in multiple_of check.\\\");(typeof r.value==\\\"bigint\\\"?r.value%t.value===BigInt(0):tk(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:\\\"not_multiple_of\\\",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),nI=M(\\\"$ZodCheckNumberFormat\\\",(e,t)=>{var o;Ke.init(e,t),t.format=t.format||\\\"float64\\\";const r=(o=t.format)==null?void 0:o.includes(\\\"int\\\"),i=r?\\\"int\\\":\\\"number\\\",[n,a]=ok[t.format];e._zod.onattach.push(s=>{const u=s._zod.bag;u.format=t.format,u.minimum=n,u.maximum=a,r&&(u.pattern=qk)}),e._zod.check=s=>{const u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:i,format:t.format,code:\\\"invalid_type\\\",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:\\\"too_big\\\",maximum:Number.MAX_SAFE_INTEGER,note:\\\"Integers must be within the safe integer range.\\\",inst:e,origin:i,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:\\\"too_small\\\",minimum:Number.MIN_SAFE_INTEGER,note:\\\"Integers must be within the safe integer range.\\\",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}u<n&&s.issues.push({origin:\\\"number\\\",input:u,code:\\\"too_small\\\",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),u>a&&s.issues.push({origin:\\\"number\\\",input:u,code:\\\"too_big\\\",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),iI=M(\\\"$ZodCheckBigIntFormat\\\",(e,t)=>{Ke.init(e,t);const[r,i]=sk[t.format];e._zod.onattach.push(n=>{const a=n._zod.bag;a.format=t.format,a.minimum=r,a.maximum=i}),e._zod.check=n=>{const a=n.value;a<r&&n.issues.push({origin:\\\"bigint\\\",input:a,code:\\\"too_small\\\",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>i&&n.issues.push({origin:\\\"bigint\\\",input:a,code:\\\"too_big\\\",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),aI=M(\\\"$ZodCheckMaxSize\\\",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!fa(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;n.size<=t.maximum||i.issues.push({origin:Qf(n),code:\\\"too_big\\\",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),oI=M(\\\"$ZodCheckMinSize\\\",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!fa(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;n.size>=t.minimum||i.issues.push({origin:Qf(n),code:\\\"too_small\\\",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),sI=M(\\\"$ZodCheckSizeEquals\\\",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!fa(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{const n=i.value,a=n.size;if(a===t.size)return;const o=a>t.size;i.issues.push({origin:Qf(n),...o?{code:\\\"too_big\\\",maximum:t.size}:{code:\\\"too_small\\\",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),uI=M(\\\"$ZodCheckMaxLength\\\",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!fa(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;if(n.length<=t.maximum)return;const o=ed(n);i.issues.push({origin:o,code:\\\"too_big\\\",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),lI=M(\\\"$ZodCheckMinLength\\\",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!fa(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;if(n.length>=t.minimum)return;const o=ed(n);i.issues.push({origin:o,code:\\\"too_small\\\",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),cI=M(\\\"$ZodCheckLengthEquals\\\",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!fa(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{const n=i.value,a=n.length;if(a===t.length)return;const o=ed(n),s=a>t.length;i.issues.push({origin:o,...s?{code:\\\"too_big\\\",maximum:t.length}:{code:\\\"too_small\\\",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),ku=M(\\\"$ZodCheckStringFormat\\\",(e,t)=>{var r,i;Ke.init(e,t),e._zod.onattach.push(n=>{const a=n._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:\\\"string\\\",code:\\\"invalid_format\\\",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),fI=M(\\\"$ZodCheckRegex\\\",(e,t)=>{ku.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:\\\"string\\\",code:\\\"invalid_format\\\",format:\\\"regex\\\",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),dI=M(\\\"$ZodCheckLowerCase\\\",(e,t)=>{t.pattern??(t.pattern=Jk),ku.init(e,t)}),vI=M(\\\"$ZodCheckUpperCase\\\",(e,t)=>{t.pattern??(t.pattern=Qk),ku.init(e,t)}),hI=M(\\\"$ZodCheckIncludes\\\",(e,t)=>{Ke.init(e,t);const r=xn(t.includes),i=new RegExp(typeof t.position==\\\"number\\\"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{const a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:\\\"string\\\",code:\\\"invalid_format\\\",format:\\\"includes\\\",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),pI=M(\\\"$ZodCheckStartsWith\\\",(e,t)=>{Ke.init(e,t);const r=new RegExp(`^${xn(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:\\\"string\\\",code:\\\"invalid_format\\\",format:\\\"starts_with\\\",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),gI=M(\\\"$ZodCheckEndsWith\\\",(e,t)=>{Ke.init(e,t);const r=new RegExp(`.*${xn(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:\\\"string\\\",code:\\\"invalid_format\\\",format:\\\"ends_with\\\",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function Kb(e,t,r){e.issues.length&&t.issues.push(...yr(r,e.issues))}const mI=M(\\\"$ZodCheckProperty\\\",(e,t)=>{Ke.init(e,t),e._zod.check=r=>{const i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>Kb(n,r,t.property));Kb(i,r,t.property)}}),yI=M(\\\"$ZodCheckMimeType\\\",(e,t)=>{Ke.init(e,t);const r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:\\\"invalid_value\\\",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),_I=M(\\\"$ZodCheckOverwrite\\\",(e,t)=>{Ke.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class bI{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t==\\\"function\\\"){t(this,{execution:\\\"sync\\\"}),t(this,{execution:\\\"async\\\"});return}const i=t.split(`\\n`).filter(o=>o),n=Math.min(...i.map(o=>o.length-o.trimStart().length)),a=i.map(o=>o.slice(n)).map(o=>\\\" \\\".repeat(this.indent*2)+o);for(const o of a)this.content.push(o)}compile(){const t=Function,r=this==null?void 0:this.args,n=[...((this==null?void 0:this.content)??[\\\"\\\"]).map(a=>` ${a}`)];return new t(...r,n.join(`\\n`))}}const SI={major:4,minor:4,patch:3},ve=M(\\\"$ZodType\\\",(e,t)=>{var n;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=SI;const i=[...e._zod.def.checks??[]];e._zod.traits.has(\\\"$ZodCheck\\\")&&i.unshift(e);for(const a of i)for(const o of a._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),(n=e._zod.deferred)==null||n.push(()=>{e._zod.run=e._zod.parse});else{const a=(s,u,l)=>{let c=Fi(s),f;for(const d of u){if(d._zod.def.when){if(pk(s)||!d._zod.def.when(s))continue}else if(c)continue;const v=s.issues.length,h=d._zod.check(s);if(h instanceof Promise&&(l==null?void 0:l.async)===!1)throw new Gi;if(f||h instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await h,s.issues.length!==v&&(c||(c=Fi(s,v)))});else{if(s.issues.length===v)continue;c||(c=Fi(s,v))}}return f?f.then(()=>s):s},o=(s,u,l)=>{if(Fi(s))return s.aborted=!0,s;const c=a(u,i,l);if(c instanceof Promise){if(l.async===!1)throw new Gi;return c.then(f=>e._zod.parse(f,l))}return e._zod.parse(c,l)};e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction===\\\"backward\\\"){const c=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return c instanceof Promise?c.then(f=>o(f,s,u)):o(c,s,u)}const l=e._zod.parse(s,u);if(l instanceof Promise){if(u.async===!1)throw new Gi;return l.then(c=>a(c,i,u))}return a(l,i,u)}}be(e,\\\"~standard\\\",()=>({validate:a=>{var o;try{const s=Sm(e,a);return s.success?{value:s.data}:{issues:(o=s.error)==null?void 0:o.issues}}catch{return bk(e,a).then(u=>{var l;return u.success?{value:u.data}:{issues:(l=u.error)==null?void 0:l.issues}})}},vendor:\\\"zod\\\",version:1}))}),Iu=M(\\\"$ZodString\\\",(e,t)=>{var r;ve.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??Hk(e._zod.bag),e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value==\\\"string\\\"||i.issues.push({expected:\\\"string\\\",code:\\\"invalid_type\\\",input:i.value,inst:e}),i}}),qe=M(\\\"$ZodStringFormat\\\",(e,t)=>{ku.init(e,t),Iu.init(e,t)}),wI=M(\\\"$ZodGUID\\\",(e,t)=>{t.pattern??(t.pattern=Dk),qe.init(e,t)}),xI=M(\\\"$ZodUUID\\\",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: \\\"${t.version}\\\"`);t.pattern??(t.pattern=io(i))}else t.pattern??(t.pattern=io());qe.init(e,t)}),TI=M(\\\"$ZodEmail\\\",(e,t)=>{t.pattern??(t.pattern=Ck),qe.init(e,t)}),kI=M(\\\"$ZodURL\\\",(e,t)=>{qe.init(e,t),e._zod.check=r=>{var i;try{const n=r.value.trim();if(!t.normalize&&((i=t.protocol)==null?void 0:i.source)===Pm.source&&!/^https?:\\\\/\\\\//i.test(n)){r.issues.push({code:\\\"invalid_format\\\",format:\\\"url\\\",note:\\\"Invalid URL format\\\",input:r.value,inst:e,continue:!t.abort});return}const a=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||r.issues.push({code:\\\"invalid_format\\\",format:\\\"url\\\",note:\\\"Invalid hostname\\\",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(\\\":\\\")?a.protocol.slice(0,-1):a.protocol)||r.issues.push({code:\\\"invalid_format\\\",format:\\\"url\\\",note:\\\"Invalid protocol\\\",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=a.href:r.value=n;return}catch{r.issues.push({code:\\\"invalid_format\\\",format:\\\"url\\\",input:r.value,inst:e,continue:!t.abort})}}}),II=M(\\\"$ZodEmoji\\\",(e,t)=>{t.pattern??(t.pattern=Pk()),qe.init(e,t)}),$I=M(\\\"$ZodNanoID\\\",(e,t)=>{t.pattern??(t.pattern=Ik),qe.init(e,t)}),DI=M(\\\"$ZodCUID\\\",(e,t)=>{t.pattern??(t.pattern=Sk),qe.init(e,t)}),CI=M(\\\"$ZodCUID2\\\",(e,t)=>{t.pattern??(t.pattern=wk),qe.init(e,t)}),AI=M(\\\"$ZodULID\\\",(e,t)=>{t.pattern??(t.pattern=xk),qe.init(e,t)}),PI=M(\\\"$ZodXID\\\",(e,t)=>{t.pattern??(t.pattern=Tk),qe.init(e,t)}),MI=M(\\\"$ZodKSUID\\\",(e,t)=>{t.pattern??(t.pattern=kk),qe.init(e,t)}),LI=M(\\\"$ZodISODateTime\\\",(e,t)=>{t.pattern??(t.pattern=Gk(t)),qe.init(e,t)}),OI=M(\\\"$ZodISODate\\\",(e,t)=>{t.pattern??(t.pattern=jk),qe.init(e,t)}),EI=M(\\\"$ZodISOTime\\\",(e,t)=>{t.pattern??(t.pattern=Vk(t)),qe.init(e,t)}),zI=M(\\\"$ZodISODuration\\\",(e,t)=>{t.pattern??(t.pattern=$k),qe.init(e,t)}),RI=M(\\\"$ZodIPv4\\\",(e,t)=>{t.pattern??(t.pattern=Mk),qe.init(e,t),e._zod.bag.format=\\\"ipv4\\\"}),NI=M(\\\"$ZodIPv6\\\",(e,t)=>{t.pattern??(t.pattern=Lk),qe.init(e,t),e._zod.bag.format=\\\"ipv6\\\",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:\\\"invalid_format\\\",format:\\\"ipv6\\\",input:r.value,inst:e,continue:!t.abort})}}}),UI=M(\\\"$ZodMAC\\\",(e,t)=>{t.pattern??(t.pattern=Ok(t.delimiter)),qe.init(e,t),e._zod.bag.format=\\\"mac\\\"}),BI=M(\\\"$ZodCIDRv4\\\",(e,t)=>{t.pattern??(t.pattern=Ek),qe.init(e,t)}),FI=M(\\\"$ZodCIDRv6\\\",(e,t)=>{t.pattern??(t.pattern=zk),qe.init(e,t),e._zod.check=r=>{const i=r.value.split(\\\"/\\\");try{if(i.length!==2)throw new Error;const[n,a]=i;if(!a)throw new Error;const o=Number(a);if(`${o}`!==a)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:\\\"invalid_format\\\",format:\\\"cidrv6\\\",input:r.value,inst:e,continue:!t.abort})}}});function Em(e){if(e===\\\"\\\")return!0;if(/\\\\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const jI=M(\\\"$ZodBase64\\\",(e,t)=>{t.pattern??(t.pattern=Rk),qe.init(e,t),e._zod.bag.contentEncoding=\\\"base64\\\",e._zod.check=r=>{Em(r.value)||r.issues.push({code:\\\"invalid_format\\\",format:\\\"base64\\\",input:r.value,inst:e,continue:!t.abort})}});function ZI(e){if(!Am.test(e))return!1;const t=e.replace(/[-_]/g,i=>i===\\\"-\\\"?\\\"+\\\":\\\"/\\\"),r=t.padEnd(Math.ceil(t.length/4)*4,\\\"=\\\");return Em(r)}const VI=M(\\\"$ZodBase64URL\\\",(e,t)=>{t.pattern??(t.pattern=Am),qe.init(e,t),e._zod.bag.contentEncoding=\\\"base64url\\\",e._zod.check=r=>{ZI(r.value)||r.issues.push({code:\\\"invalid_format\\\",format:\\\"base64url\\\",input:r.value,inst:e,continue:!t.abort})}}),GI=M(\\\"$ZodE164\\\",(e,t)=>{t.pattern??(t.pattern=Bk),qe.init(e,t)});function HI(e,t=null){try{const r=e.split(\\\".\\\");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const n=JSON.parse(atob(i));return!(\\\"typ\\\"in n&&(n==null?void 0:n.typ)!==\\\"JWT\\\"||!n.alg||t&&(!(\\\"alg\\\"in n)||n.alg!==t))}catch{return!1}}const WI=M(\\\"$ZodJWT\\\",(e,t)=>{qe.init(e,t),e._zod.check=r=>{HI(r.value,t.alg)||r.issues.push({code:\\\"invalid_format\\\",format:\\\"jwt\\\",input:r.value,inst:e,continue:!t.abort})}}),qI=M(\\\"$ZodCustomStringFormat\\\",(e,t)=>{qe.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:\\\"invalid_format\\\",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),zm=M(\\\"$ZodNumber\\\",(e,t)=>{ve.init(e,t),e._zod.pattern=e._zod.bag.pattern??Mm,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n==\\\"number\\\"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const a=typeof n==\\\"number\\\"?Number.isNaN(n)?\\\"NaN\\\":Number.isFinite(n)?void 0:\\\"Infinity\\\":void 0;return r.issues.push({expected:\\\"number\\\",code:\\\"invalid_type\\\",input:n,inst:e,...a?{received:a}:{}}),r}}),YI=M(\\\"$ZodNumberFormat\\\",(e,t)=>{nI.init(e,t),zm.init(e,t)}),Rm=M(\\\"$ZodBoolean\\\",(e,t)=>{ve.init(e,t),e._zod.pattern=Yk,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n==\\\"boolean\\\"||r.issues.push({expected:\\\"boolean\\\",code:\\\"invalid_type\\\",input:n,inst:e}),r}}),Nm=M(\\\"$ZodBigInt\\\",(e,t)=>{ve.init(e,t),e._zod.pattern=Wk,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value==\\\"bigint\\\"||r.issues.push({expected:\\\"bigint\\\",code:\\\"invalid_type\\\",input:r.value,inst:e}),r}}),XI=M(\\\"$ZodBigIntFormat\\\",(e,t)=>{iI.init(e,t),Nm.init(e,t)}),KI=M(\\\"$ZodSymbol\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n==\\\"symbol\\\"||r.issues.push({expected:\\\"symbol\\\",code:\\\"invalid_type\\\",input:n,inst:e}),r}}),JI=M(\\\"$ZodUndefined\\\",(e,t)=>{ve.init(e,t),e._zod.pattern=Kk,e._zod.values=new Set([void 0]),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>\\\"u\\\"||r.issues.push({expected:\\\"undefined\\\",code:\\\"invalid_type\\\",input:n,inst:e}),r}}),QI=M(\\\"$ZodNull\\\",(e,t)=>{ve.init(e,t),e._zod.pattern=Xk,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{const n=r.value;return n===null||r.issues.push({expected:\\\"null\\\",code:\\\"invalid_type\\\",input:n,inst:e}),r}}),e$=M(\\\"$ZodAny\\\",(e,t)=>{ve.init(e,t),e._zod.parse=r=>r}),t$=M(\\\"$ZodUnknown\\\",(e,t)=>{ve.init(e,t),e._zod.parse=r=>r}),r$=M(\\\"$ZodNever\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:\\\"never\\\",code:\\\"invalid_type\\\",input:r.value,inst:e}),r)}),n$=M(\\\"$ZodVoid\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>\\\"u\\\"||r.issues.push({expected:\\\"void\\\",code:\\\"invalid_type\\\",input:n,inst:e}),r}}),i$=M(\\\"$ZodDate\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,a=n instanceof Date;return a&&!Number.isNaN(n.getTime())||r.issues.push({expected:\\\"date\\\",code:\\\"invalid_type\\\",input:n,...a?{received:\\\"Invalid Date\\\"}:{},inst:e}),r}});function Jb(e,t,r){e.issues.length&&t.issues.push(...yr(r,e.issues)),t.value[r]=e.value}const a$=M(\\\"$ZodArray\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:\\\"array\\\",code:\\\"invalid_type\\\",input:n,inst:e}),r;r.value=Array(n.length);const a=[];for(let o=0;o<n.length;o++){const s=n[o],u=t.element._zod.run({value:s,issues:[]},i);u instanceof Promise?a.push(u.then(l=>Jb(l,r,o))):Jb(u,r,o)}return a.length?Promise.all(a).then(()=>r):r}});function nf(e,t,r,i,n,a){const o=r in i;if(e.issues.length){if(n&&a&&!o)return;t.issues.push(...yr(r,e.issues))}if(!o&&!n){e.issues.length||t.issues.push({code:\\\"invalid_type\\\",expected:\\\"nonoptional\\\",input:void 0,path:[r]});return}e.value===void 0?o&&(t.value[r]=void 0):t.value[r]=e.value}function o$(e){var i,n,a,o;const t=Object.keys(e.shape);for(const s of t)if(!((o=(a=(n=(i=e.shape)==null?void 0:i[s])==null?void 0:n._zod)==null?void 0:a.traits)!=null&&o.has(\\\"$ZodType\\\")))throw new Error(`Invalid element at key \\\"${s}\\\": expected a Zod schema`);const r=ak(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function s$(e,t,r,i,n,a){const o=[],s=n.keySet,u=n.catchall._zod,l=u.def.type,c=u.optin===\\\"optional\\\",f=u.optout===\\\"optional\\\";for(const d in t){if(d===\\\"__proto__\\\"||s.has(d))continue;if(l===\\\"never\\\"){o.push(d);continue}const v=u.run({value:t[d],issues:[]},i);v instanceof Promise?e.push(v.then(h=>nf(h,r,d,t,c,f))):nf(v,r,d,t,c,f)}return o.length&&r.issues.push({code:\\\"unrecognized_keys\\\",keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}const u$=M(\\\"$ZodObject\\\",(e,t)=>{ve.init(e,t);const r=Object.getOwnPropertyDescriptor(t,\\\"shape\\\");if(!(r!=null&&r.get)){const s=t.shape;Object.defineProperty(t,\\\"shape\\\",{get:()=>{const u={...s};return Object.defineProperty(t,\\\"shape\\\",{value:u}),u}})}const i=yu(()=>o$(t));be(e._zod,\\\"propValues\\\",()=>{const s=t.shape,u={};for(const l in s){const c=s[l]._zod;if(c.values){u[l]??(u[l]=new Set);for(const f of c.values)u[l].add(f)}}return u});const n=ro,a=t.catchall;let o;e._zod.parse=(s,u)=>{o??(o=i.value);const l=s.value;if(!n(l))return s.issues.push({expected:\\\"object\\\",code:\\\"invalid_type\\\",input:l,inst:e}),s;s.value={};const c=[],f=o.shape;for(const d of o.keys){const v=f[d],h=v._zod.optin===\\\"optional\\\",p=v._zod.optout===\\\"optional\\\",g=v._zod.run({value:l[d],issues:[]},u);g instanceof Promise?c.push(g.then(m=>nf(m,s,d,l,h,p))):nf(g,s,d,l,h,p)}return a?s$(c,l,s,u,i.value,e):c.length?Promise.all(c).then(()=>s):s}}),l$=M(\\\"$ZodObjectJIT\\\",(e,t)=>{u$.init(e,t);const r=e._zod.parse,i=yu(()=>o$(t)),n=d=>{var _,b;const v=new bI([\\\"shape\\\",\\\"payload\\\",\\\"ctx\\\"]),h=i.value,p=S=>{const w=Ip(S);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};v.write(\\\"const input = payload.value;\\\");const g=Object.create(null);let m=0;for(const S of h.keys)g[S]=`key_${m++}`;v.write(\\\"const newResult = {};\\\");for(const S of h.keys){const w=g[S],x=Ip(S),k=d[S],T=((_=k==null?void 0:k._zod)==null?void 0:_.optin)===\\\"optional\\\",I=((b=k==null?void 0:k._zod)==null?void 0:b.optout)===\\\"optional\\\";v.write(`const ${w} = ${p(S)};`),T&&I?v.write(`\\n if (${w}.issues.length) {\\n if (${x} in input) {\\n payload.issues = payload.issues.concat(${w}.issues.map(iss => ({\\n ...iss,\\n path: iss.path ? [${x}, ...iss.path] : [${x}]\\n })));\\n }\\n }\\n \\n if (${w}.value === undefined) {\\n if (${x} in input) {\\n newResult[${x}] = undefined;\\n }\\n } else {\\n newResult[${x}] = ${w}.value;\\n }\\n \\n `):T?v.write(`\\n if (${w}.issues.length) {\\n payload.issues = payload.issues.concat(${w}.issues.map(iss => ({\\n ...iss,\\n path: iss.path ? [${x}, ...iss.path] : [${x}]\\n })));\\n }\\n \\n if (${w}.value === undefined) {\\n if (${x} in input) {\\n newResult[${x}] = undefined;\\n }\\n } else {\\n newResult[${x}] = ${w}.value;\\n }\\n \\n `):v.write(`\\n const ${w}_present = ${x} in input;\\n if (${w}.issues.length) {\\n payload.issues = payload.issues.concat(${w}.issues.map(iss => ({\\n ...iss,\\n path: iss.path ? [${x}, ...iss.path] : [${x}]\\n })));\\n }\\n if (!${w}_present && !${w}.issues.length) {\\n payload.issues.push({\\n code: \\\"invalid_type\\\",\\n expected: \\\"nonoptional\\\",\\n input: undefined,\\n path: [${x}]\\n });\\n }\\n\\n if (${w}_present) {\\n if (${w}.value === undefined) {\\n newResult[${x}] = undefined;\\n } else {\\n newResult[${x}] = ${w}.value;\\n }\\n }\\n\\n `)}v.write(\\\"payload.value = newResult;\\\"),v.write(\\\"return payload;\\\");const y=v.compile();return(S,w)=>y(d,S,w)};let a;const o=ro,s=!js.jitless,l=s&&nk.value,c=t.catchall;let f;e._zod.parse=(d,v)=>{f??(f=i.value);const h=d.value;return o(h)?s&&l&&(v==null?void 0:v.async)===!1&&v.jitless!==!0?(a||(a=n(t.shape)),d=a(d,v),c?s$([],h,d,v,f,e):d):r(d,v):(d.issues.push({expected:\\\"object\\\",code:\\\"invalid_type\\\",input:h,inst:e}),d)}});function Qb(e,t,r,i){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const n=e.filter(a=>!Fi(a));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:\\\"invalid_union\\\",input:t.value,inst:r,errors:e.map(a=>a.issues.map(o=>Qt(o,i,ht())))}),t)}const id=M(\\\"$ZodUnion\\\",(e,t)=>{ve.init(e,t),be(e._zod,\\\"optin\\\",()=>t.options.some(i=>i._zod.optin===\\\"optional\\\")?\\\"optional\\\":void 0),be(e._zod,\\\"optout\\\",()=>t.options.some(i=>i._zod.optout===\\\"optional\\\")?\\\"optional\\\":void 0),be(e._zod,\\\"values\\\",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),be(e._zod,\\\"pattern\\\",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${i.map(n=>Kf(n.source)).join(\\\"|\\\")})$`)}});const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let a=!1;const o=[];for(const s of t.options){const u=s._zod.run({value:i.value,issues:[]},n);if(u instanceof Promise)o.push(u),a=!0;else{if(u.issues.length===0)return u;o.push(u)}}return a?Promise.all(o).then(s=>Qb(s,i,e,n)):Qb(o,i,e,n)}});function eS(e,t,r,i){const n=e.filter(a=>a.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:\\\"invalid_union\\\",input:t.value,inst:r,errors:e.map(a=>a.issues.map(o=>Qt(o,i,ht())))}):t.issues.push({code:\\\"invalid_union\\\",input:t.value,inst:r,errors:[],inclusive:!1}),t)}const c$=M(\\\"$ZodXor\\\",(e,t)=>{id.init(e,t),t.inclusive=!1;const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let a=!1;const o=[];for(const s of t.options){const u=s._zod.run({value:i.value,issues:[]},n);u instanceof Promise?(o.push(u),a=!0):o.push(u)}return a?Promise.all(o).then(s=>eS(s,i,e,n)):eS(o,i,e,n)}}),f$=M(\\\"$ZodDiscriminatedUnion\\\",(e,t)=>{t.inclusive=!1,id.init(e,t);const r=e._zod.parse;be(e._zod,\\\"propValues\\\",()=>{const n={};for(const a of t.options){const o=a._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index \\\"${t.options.indexOf(a)}\\\"`);for(const[s,u]of Object.entries(o)){n[s]||(n[s]=new Set);for(const l of u)n[s].add(l)}}return n});const i=yu(()=>{var o;const n=t.options,a=new Map;for(const s of n){const u=(o=s._zod.propValues)==null?void 0:o[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index \\\"${t.options.indexOf(s)}\\\"`);for(const l of u){if(a.has(l))throw new Error(`Duplicate discriminator value \\\"${String(l)}\\\"`);a.set(l,s)}}return a});e._zod.parse=(n,a)=>{const o=n.value;if(!ro(o))return n.issues.push({code:\\\"invalid_type\\\",expected:\\\"object\\\",input:o,inst:e}),n;const s=i.value.get(o==null?void 0:o[t.discriminator]);return s?s._zod.run(n,a):t.unionFallback||a.direction===\\\"backward\\\"?r(n,a):(n.issues.push({code:\\\"invalid_union\\\",errors:[],note:\\\"No matching discriminator\\\",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:o,path:[t.discriminator],inst:e}),n)}}),d$=M(\\\"$ZodIntersection\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>{const n=r.value,a=t.left._zod.run({value:n,issues:[]},i),o=t.right._zod.run({value:n,issues:[]},i);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([u,l])=>tS(r,u,l)):tS(r,a,o)}});function Cp(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ji(e)&&Ji(t)){const r=Object.keys(t),i=Object.keys(e).filter(a=>r.indexOf(a)!==-1),n={...e,...t};for(const a of i){const o=Cp(e[a],t[a]);if(!o.valid)return{valid:!1,mergeErrorPath:[a,...o.mergeErrorPath]};n[a]=o.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const n=e[i],a=t[i],o=Cp(n,a);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function tS(e,t,r){const i=new Map;let n;for(const s of t.issues)if(s.code===\\\"unrecognized_keys\\\"){n??(n=s);for(const u of s.keys)i.has(u)||i.set(u,{}),i.get(u).l=!0}else e.issues.push(s);for(const s of r.issues)if(s.code===\\\"unrecognized_keys\\\")for(const u of s.keys)i.has(u)||i.set(u,{}),i.get(u).r=!0;else e.issues.push(s);const a=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(a.length&&n&&e.issues.push({...n,keys:a}),Fi(e))return e;const o=Cp(t.value,r.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Um=M(\\\"$ZodTuple\\\",(e,t)=>{ve.init(e,t);const r=t.items;e._zod.parse=(i,n)=>{const a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:\\\"tuple\\\",code:\\\"invalid_type\\\"}),i;i.value=[];const o=[],s=rS(r,\\\"optin\\\"),u=rS(r,\\\"optout\\\");if(!t.rest){if(a.length<s)return i.issues.push({code:\\\"too_small\\\",minimum:s,inclusive:!0,input:a,inst:e,origin:\\\"array\\\"}),i;a.length>r.length&&i.issues.push({code:\\\"too_big\\\",maximum:r.length,inclusive:!0,input:a,inst:e,origin:\\\"array\\\"})}const l=new Array(r.length);for(let c=0;c<r.length;c++){const f=r[c]._zod.run({value:a[c],issues:[]},n);f instanceof Promise?o.push(f.then(d=>{l[c]=d})):l[c]=f}if(t.rest){let c=r.length-1;const f=a.slice(r.length);for(const d of f){c++;const v=t.rest._zod.run({value:d,issues:[]},n);v instanceof Promise?o.push(v.then(h=>nS(h,i,c))):nS(v,i,c)}}return o.length?Promise.all(o).then(()=>iS(l,i,r,a,u)):iS(l,i,r,a,u)}});function rS(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!==\\\"optional\\\")return r+1;return 0}function nS(e,t,r){e.issues.length&&t.issues.push(...yr(r,e.issues)),t.value[r]=e.value}function iS(e,t,r,i,n){for(let a=0;a<r.length;a++){const o=e[a],s=a<i.length;if(o.issues.length){if(!s&&a>=n){t.value.length=a;break}t.issues.push(...yr(a,o.issues))}t.value[a]=o.value}for(let a=t.value.length-1;a>=i.length&&(r[a]._zod.optout===\\\"optional\\\"&&t.value[a]===void 0);a--)t.value.length=a;return t}const v$=M(\\\"$ZodRecord\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Ji(n))return r.issues.push({expected:\\\"record\\\",code:\\\"invalid_type\\\",input:n,inst:e}),r;const a=[],o=t.keyType._zod.values;if(o){r.value={};const s=new Set;for(const l of o)if(typeof l==\\\"string\\\"||typeof l==\\\"number\\\"||typeof l==\\\"symbol\\\"){s.add(typeof l==\\\"number\\\"?l.toString():l);const c=t.keyType._zod.run({value:l,issues:[]},i);if(c instanceof Promise)throw new Error(\\\"Async schemas not supported in object keys currently\\\");if(c.issues.length){r.issues.push({code:\\\"invalid_key\\\",origin:\\\"record\\\",issues:c.issues.map(v=>Qt(v,i,ht())),input:l,path:[l],inst:e});continue}const f=c.value,d=t.valueType._zod.run({value:n[l],issues:[]},i);d instanceof Promise?a.push(d.then(v=>{v.issues.length&&r.issues.push(...yr(l,v.issues)),r.value[f]=v.value})):(d.issues.length&&r.issues.push(...yr(l,d.issues)),r.value[f]=d.value)}let u;for(const l in n)s.has(l)||(u=u??[],u.push(l));u&&u.length>0&&r.issues.push({code:\\\"unrecognized_keys\\\",input:n,inst:e,keys:u})}else{r.value={};for(const s of Reflect.ownKeys(n)){if(s===\\\"__proto__\\\"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let u=t.keyType._zod.run({value:s,issues:[]},i);if(u instanceof Promise)throw new Error(\\\"Async schemas not supported in object keys currently\\\");if(typeof s==\\\"string\\\"&&Mm.test(s)&&u.issues.length){const f=t.keyType._zod.run({value:Number(s),issues:[]},i);if(f instanceof Promise)throw new Error(\\\"Async schemas not supported in object keys currently\\\");f.issues.length===0&&(u=f)}if(u.issues.length){t.mode===\\\"loose\\\"?r.value[s]=n[s]:r.issues.push({code:\\\"invalid_key\\\",origin:\\\"record\\\",issues:u.issues.map(f=>Qt(f,i,ht())),input:s,path:[s],inst:e});continue}const c=t.valueType._zod.run({value:n[s],issues:[]},i);c instanceof Promise?a.push(c.then(f=>{f.issues.length&&r.issues.push(...yr(s,f.issues)),r.value[u.value]=f.value})):(c.issues.length&&r.issues.push(...yr(s,c.issues)),r.value[u.value]=c.value)}}return a.length?Promise.all(a).then(()=>r):r}}),h$=M(\\\"$ZodMap\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:\\\"map\\\",code:\\\"invalid_type\\\",input:n,inst:e}),r;const a=[];r.value=new Map;for(const[o,s]of n){const u=t.keyType._zod.run({value:o,issues:[]},i),l=t.valueType._zod.run({value:s,issues:[]},i);u instanceof Promise||l instanceof Promise?a.push(Promise.all([u,l]).then(([c,f])=>{aS(c,f,r,o,n,e,i)})):aS(u,l,r,o,n,e,i)}return a.length?Promise.all(a).then(()=>r):r}});function aS(e,t,r,i,n,a,o){e.issues.length&&(rf.has(typeof i)?r.issues.push(...yr(i,e.issues)):r.issues.push({code:\\\"invalid_key\\\",origin:\\\"map\\\",input:n,inst:a,issues:e.issues.map(s=>Qt(s,o,ht()))})),t.issues.length&&(rf.has(typeof i)?r.issues.push(...yr(i,t.issues)):r.issues.push({origin:\\\"map\\\",code:\\\"invalid_element\\\",input:n,inst:a,key:i,issues:t.issues.map(s=>Qt(s,o,ht()))})),r.value.set(e.value,t.value)}const p$=M(\\\"$ZodSet\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:\\\"set\\\",code:\\\"invalid_type\\\"}),r;const a=[];r.value=new Set;for(const o of n){const s=t.valueType._zod.run({value:o,issues:[]},i);s instanceof Promise?a.push(s.then(u=>oS(u,r))):oS(s,r)}return a.length?Promise.all(a).then(()=>r):r}});function oS(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const g$=M(\\\"$ZodEnum\\\",(e,t)=>{ve.init(e,t);const r=pm(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>rf.has(typeof n)).map(n=>typeof n==\\\"string\\\"?xn(n):n.toString()).join(\\\"|\\\")})$`),e._zod.parse=(n,a)=>{const o=n.value;return i.has(o)||n.issues.push({code:\\\"invalid_value\\\",values:r,input:o,inst:e}),n}}),m$=M(\\\"$ZodLiteral\\\",(e,t)=>{if(ve.init(e,t),t.values.length===0)throw new Error(\\\"Cannot create literal schema with no valid values\\\");const r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i==\\\"string\\\"?xn(i):i?xn(i.toString()):String(i)).join(\\\"|\\\")})$`),e._zod.parse=(i,n)=>{const a=i.value;return r.has(a)||i.issues.push({code:\\\"invalid_value\\\",values:t.values,input:a,inst:e}),i}}),y$=M(\\\"$ZodFile\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return n instanceof File||r.issues.push({expected:\\\"file\\\",code:\\\"invalid_type\\\",input:n,inst:e}),r}}),_$=M(\\\"$ZodTransform\\\",(e,t)=>{ve.init(e,t),e._zod.optin=\\\"optional\\\",e._zod.parse=(r,i)=>{if(i.direction===\\\"backward\\\")throw new Xf(e.constructor.name);const n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(o=>(r.value=o,r.fallback=!0,r));if(n instanceof Promise)throw new Gi;return r.value=n,r.fallback=!0,r}});function sS(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Bm=M(\\\"$ZodOptional\\\",(e,t)=>{ve.init(e,t),e._zod.optin=\\\"optional\\\",e._zod.optout=\\\"optional\\\",be(e._zod,\\\"values\\\",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),be(e._zod,\\\"pattern\\\",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Kf(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin===\\\"optional\\\"){const n=r.value,a=t.innerType._zod.run(r,i);return a instanceof Promise?a.then(o=>sS(o,n)):sS(a,n)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),b$=M(\\\"$ZodExactOptional\\\",(e,t)=>{Bm.init(e,t),be(e._zod,\\\"values\\\",()=>t.innerType._zod.values),be(e._zod,\\\"pattern\\\",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),S$=M(\\\"$ZodNullable\\\",(e,t)=>{ve.init(e,t),be(e._zod,\\\"optin\\\",()=>t.innerType._zod.optin),be(e._zod,\\\"optout\\\",()=>t.innerType._zod.optout),be(e._zod,\\\"pattern\\\",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Kf(r.source)}|null)$`):void 0}),be(e._zod,\\\"values\\\",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),w$=M(\\\"$ZodDefault\\\",(e,t)=>{ve.init(e,t),e._zod.optin=\\\"optional\\\",be(e._zod,\\\"values\\\",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction===\\\"backward\\\")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>uS(a,t)):uS(n,t)}});function uS(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const x$=M(\\\"$ZodPrefault\\\",(e,t)=>{ve.init(e,t),e._zod.optin=\\\"optional\\\",be(e._zod,\\\"values\\\",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction===\\\"backward\\\"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),T$=M(\\\"$ZodNonOptional\\\",(e,t)=>{ve.init(e,t),be(e._zod,\\\"values\\\",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>lS(a,e)):lS(n,e)}});function lS(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:\\\"invalid_type\\\",expected:\\\"nonoptional\\\",input:e.value,inst:t}),e}const k$=M(\\\"$ZodSuccess\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>{if(i.direction===\\\"backward\\\")throw new Xf(\\\"ZodSuccess\\\");const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),I$=M(\\\"$ZodCatch\\\",(e,t)=>{ve.init(e,t),e._zod.optin=\\\"optional\\\",be(e._zod,\\\"optout\\\",()=>t.innerType._zod.optout),be(e._zod,\\\"values\\\",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction===\\\"backward\\\")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(o=>Qt(o,i,ht()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(a=>Qt(a,i,ht()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),$$=M(\\\"$ZodNaN\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!=\\\"number\\\"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:\\\"nan\\\",code:\\\"invalid_type\\\"}),r)}),Fm=M(\\\"$ZodPipe\\\",(e,t)=>{ve.init(e,t),be(e._zod,\\\"values\\\",()=>t.in._zod.values),be(e._zod,\\\"optin\\\",()=>t.in._zod.optin),be(e._zod,\\\"optout\\\",()=>t.out._zod.optout),be(e._zod,\\\"propValues\\\",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction===\\\"backward\\\"){const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(o=>Ol(o,t.in,i)):Ol(a,t.in,i)}const n=t.in._zod.run(r,i);return n instanceof Promise?n.then(a=>Ol(a,t.out,i)):Ol(n,t.out,i)}});function Ol(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}const jm=M(\\\"$ZodCodec\\\",(e,t)=>{ve.init(e,t),be(e._zod,\\\"values\\\",()=>t.in._zod.values),be(e._zod,\\\"optin\\\",()=>t.in._zod.optin),be(e._zod,\\\"optout\\\",()=>t.out._zod.optout),be(e._zod,\\\"propValues\\\",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||\\\"forward\\\")===\\\"forward\\\"){const a=t.in._zod.run(r,i);return a instanceof Promise?a.then(o=>El(o,t,i)):El(a,t,i)}else{const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(o=>El(o,t,i)):El(a,t,i)}}});function El(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||\\\"forward\\\")===\\\"forward\\\"){const n=t.transform(e.value,e);return n instanceof Promise?n.then(a=>zl(e,a,t.out,r)):zl(e,n,t.out,r)}else{const n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(a=>zl(e,a,t.in,r)):zl(e,n,t.in,r)}}function zl(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}const D$=M(\\\"$ZodPreprocess\\\",(e,t)=>{Fm.init(e,t)}),C$=M(\\\"$ZodReadonly\\\",(e,t)=>{ve.init(e,t),be(e._zod,\\\"propValues\\\",()=>t.innerType._zod.propValues),be(e._zod,\\\"values\\\",()=>t.innerType._zod.values),be(e._zod,\\\"optin\\\",()=>{var r,i;return(i=(r=t.innerType)==null?void 0:r._zod)==null?void 0:i.optin}),be(e._zod,\\\"optout\\\",()=>{var r,i;return(i=(r=t.innerType)==null?void 0:r._zod)==null?void 0:i.optout}),e._zod.parse=(r,i)=>{if(i.direction===\\\"backward\\\")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(cS):cS(n)}});function cS(e){return e.value=Object.freeze(e.value),e}const A$=M(\\\"$ZodTemplateLiteral\\\",(e,t)=>{ve.init(e,t);const r=[];for(const i of t.parts)if(typeof i==\\\"object\\\"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const a=n.startsWith(\\\"^\\\")?1:0,o=n.endsWith(\\\"$\\\")?n.length-1:n.length;r.push(n.slice(a,o))}else if(i===null||ik.has(typeof i))r.push(xn(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join(\\\"\\\")}$`),e._zod.parse=(i,n)=>typeof i.value!=\\\"string\\\"?(i.issues.push({input:i.value,inst:e,expected:\\\"string\\\",code:\\\"invalid_type\\\"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:\\\"invalid_format\\\",format:t.format??\\\"template_literal\\\",pattern:e._zod.pattern.source}),i)}),P$=M(\\\"$ZodFunction\\\",(e,t)=>(ve.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!=\\\"function\\\")throw new Error(\\\"implement() must be called with a function\\\");return function(...i){const n=e._def.input?$p(e._def.input,i):i,a=Reflect.apply(r,this,n);return e._def.output?$p(e._def.output,a):a}},e.implementAsync=r=>{if(typeof r!=\\\"function\\\")throw new Error(\\\"implementAsync() must be called with a function\\\");return async function(...i){const n=e._def.input?await Dp(e._def.input,i):i,a=await Reflect.apply(r,this,n);return e._def.output?await Dp(e._def.output,a):a}},e._zod.parse=(r,i)=>typeof r.value!=\\\"function\\\"?(r.issues.push({code:\\\"invalid_type\\\",expected:\\\"function\\\",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type===\\\"promise\\\"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{const i=e.constructor;return Array.isArray(r[0])?new i({type:\\\"function\\\",input:new Um({type:\\\"tuple\\\",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:\\\"function\\\",input:r[0],output:e._def.output})},e.output=r=>{const i=e.constructor;return new i({type:\\\"function\\\",input:e._def.input,output:r})},e)),M$=M(\\\"$ZodPromise\\\",(e,t)=>{ve.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),L$=M(\\\"$ZodLazy\\\",(e,t)=>{ve.init(e,t),be(e._zod,\\\"innerType\\\",()=>{const r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),be(e._zod,\\\"pattern\\\",()=>{var r,i;return(i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.pattern}),be(e._zod,\\\"propValues\\\",()=>{var r,i;return(i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.propValues}),be(e._zod,\\\"optin\\\",()=>{var r,i;return((i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.optin)??void 0}),be(e._zod,\\\"optout\\\",()=>{var r,i;return((i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.optout)??void 0}),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),O$=M(\\\"$ZodCustom\\\",(e,t)=>{Ke.init(e,t),ve.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(a=>fS(a,r,i,e));fS(n,r,i,e)}});function fS(e,t,r,i){if(!e){const n={code:\\\"custom\\\",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(no(n))}}const KE=()=>{const e={string:{unit:\\\"حرف\\\",verb:\\\"أن يحوي\\\"},file:{unit:\\\"بايت\\\",verb:\\\"أن يحوي\\\"},array:{unit:\\\"عنصر\\\",verb:\\\"أن يحوي\\\"},set:{unit:\\\"عنصر\\\",verb:\\\"أن يحوي\\\"}};function t(n){return e[n]??null}const r={regex:\\\"مدخل\\\",email:\\\"بريد إلكتروني\\\",url:\\\"رابط\\\",emoji:\\\"إيموجي\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"تاريخ ووقت بمعيار ISO\\\",date:\\\"تاريخ بمعيار ISO\\\",time:\\\"وقت بمعيار ISO\\\",duration:\\\"مدة بمعيار ISO\\\",ipv4:\\\"عنوان IPv4\\\",ipv6:\\\"عنوان IPv6\\\",cidrv4:\\\"مدى عناوين بصيغة IPv4\\\",cidrv6:\\\"مدى عناوين بصيغة IPv6\\\",base64:\\\"نَص بترميز base64-encoded\\\",base64url:\\\"نَص بترميز base64url-encoded\\\",json_string:\\\"نَص على هيئة JSON\\\",e164:\\\"رقم هاتف بمعيار E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"مدخل\\\"},i={nan:\\\"NaN\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${n.expected}، ولكن تم إدخال ${s}`:`مدخلات غير مقبولة: يفترض إدخال ${a}، ولكن تم إدخال ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${ie(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?` أكبر من اللازم: يفترض أن تكون ${n.origin??\\\"القيمة\\\"} ${a} ${n.maximum.toString()} ${o.unit??\\\"عنصر\\\"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??\\\"القيمة\\\"} ${a} ${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${a} ${n.minimum.toString()} ${o.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${a} ${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`نَص غير مقبول: يجب أن يبدأ بـ \\\"${n.prefix}\\\"`:a.format===\\\"ends_with\\\"?`نَص غير مقبول: يجب أن ينتهي بـ \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`نَص غير مقبول: يجب أن يتضمَّن \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${r[a.format]??n.format} غير مقبول`}case\\\"not_multiple_of\\\":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case\\\"unrecognized_keys\\\":return`معرف${n.keys.length>1?\\\"ات\\\":\\\"\\\"} غريب${n.keys.length>1?\\\"ة\\\":\\\"\\\"}: ${B(n.keys,\\\"، \\\")}`;case\\\"invalid_key\\\":return`معرف غير مقبول في ${n.origin}`;case\\\"invalid_union\\\":return\\\"مدخل غير مقبول\\\";case\\\"invalid_element\\\":return`مدخل غير مقبول في ${n.origin}`;default:return\\\"مدخل غير مقبول\\\"}}};function JE(){return{localeError:KE()}}const QE=()=>{const e={string:{unit:\\\"simvol\\\",verb:\\\"olmalıdır\\\"},file:{unit:\\\"bayt\\\",verb:\\\"olmalıdır\\\"},array:{unit:\\\"element\\\",verb:\\\"olmalıdır\\\"},set:{unit:\\\"element\\\",verb:\\\"olmalıdır\\\"}};function t(n){return e[n]??null}const r={regex:\\\"input\\\",email:\\\"email address\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO datetime\\\",date:\\\"ISO date\\\",time:\\\"ISO time\\\",duration:\\\"ISO duration\\\",ipv4:\\\"IPv4 address\\\",ipv6:\\\"IPv6 address\\\",cidrv4:\\\"IPv4 range\\\",cidrv6:\\\"IPv6 range\\\",base64:\\\"base64-encoded string\\\",base64url:\\\"base64url-encoded string\\\",json_string:\\\"JSON string\\\",e164:\\\"E.164 number\\\",jwt:\\\"JWT\\\",template_literal:\\\"input\\\"},i={nan:\\\"NaN\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Yanlış dəyər: gözlənilən instanceof ${n.expected}, daxil olan ${s}`:`Yanlış dəyər: gözlənilən ${a}, daxil olan ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Yanlış dəyər: gözlənilən ${ie(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Çox böyük: gözlənilən ${n.origin??\\\"dəyər\\\"} ${a}${n.maximum.toString()} ${o.unit??\\\"element\\\"}`:`Çox böyük: gözlənilən ${n.origin??\\\"dəyər\\\"} ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Çox kiçik: gözlənilən ${n.origin} ${a}${n.minimum.toString()} ${o.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Yanlış mətn: \\\"${a.prefix}\\\" ilə başlamalıdır`:a.format===\\\"ends_with\\\"?`Yanlış mətn: \\\"${a.suffix}\\\" ilə bitməlidir`:a.format===\\\"includes\\\"?`Yanlış mətn: \\\"${a.includes}\\\" daxil olmalıdır`:a.format===\\\"regex\\\"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case\\\"unrecognized_keys\\\":return`Tanınmayan açar${n.keys.length>1?\\\"lar\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`${n.origin} daxilində yanlış açar`;case\\\"invalid_union\\\":return\\\"Yanlış dəyər\\\";case\\\"invalid_element\\\":return`${n.origin} daxilində yanlış dəyər`;default:return\\\"Yanlış dəyər\\\"}}};function ez(){return{localeError:QE()}}function dS(e,t,r,i){const n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:a===1?t:a>=2&&a<=4?r:i}const tz=()=>{const e={string:{unit:{one:\\\"сімвал\\\",few:\\\"сімвалы\\\",many:\\\"сімвалаў\\\"},verb:\\\"мець\\\"},array:{unit:{one:\\\"элемент\\\",few:\\\"элементы\\\",many:\\\"элементаў\\\"},verb:\\\"мець\\\"},set:{unit:{one:\\\"элемент\\\",few:\\\"элементы\\\",many:\\\"элементаў\\\"},verb:\\\"мець\\\"},file:{unit:{one:\\\"байт\\\",few:\\\"байты\\\",many:\\\"байтаў\\\"},verb:\\\"мець\\\"}};function t(n){return e[n]??null}const r={regex:\\\"увод\\\",email:\\\"email адрас\\\",url:\\\"URL\\\",emoji:\\\"эмодзі\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO дата і час\\\",date:\\\"ISO дата\\\",time:\\\"ISO час\\\",duration:\\\"ISO працягласць\\\",ipv4:\\\"IPv4 адрас\\\",ipv6:\\\"IPv6 адрас\\\",cidrv4:\\\"IPv4 дыяпазон\\\",cidrv6:\\\"IPv6 дыяпазон\\\",base64:\\\"радок у фармаце base64\\\",base64url:\\\"радок у фармаце base64url\\\",json_string:\\\"JSON радок\\\",e164:\\\"нумар E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"увод\\\"},i={nan:\\\"NaN\\\",number:\\\"лік\\\",array:\\\"масіў\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Няправільны ўвод: чакаўся instanceof ${n.expected}, атрымана ${s}`:`Няправільны ўвод: чакаўся ${a}, атрымана ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Няправільны ўвод: чакалася ${ie(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);if(o){const s=Number(n.maximum),u=dS(s,o.unit.one,o.unit.few,o.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??\\\"значэнне\\\"} павінна ${o.verb} ${a}${n.maximum.toString()} ${u}`}return`Занадта вялікі: чакалася, што ${n.origin??\\\"значэнне\\\"} павінна быць ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);if(o){const s=Number(n.minimum),u=dS(s,o.unit.one,o.unit.few,o.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${o.verb} ${a}${n.minimum.toString()} ${u}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Няправільны радок: павінен пачынацца з \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Няправільны радок: павінен заканчвацца на \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Няправільны радок: павінен змяшчаць \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Нераспазнаны ${n.keys.length>1?\\\"ключы\\\":\\\"ключ\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Няправільны ключ у ${n.origin}`;case\\\"invalid_union\\\":return\\\"Няправільны ўвод\\\";case\\\"invalid_element\\\":return`Няправільнае значэнне ў ${n.origin}`;default:return\\\"Няправільны ўвод\\\"}}};function rz(){return{localeError:tz()}}const nz=()=>{const e={string:{unit:\\\"символа\\\",verb:\\\"да съдържа\\\"},file:{unit:\\\"байта\\\",verb:\\\"да съдържа\\\"},array:{unit:\\\"елемента\\\",verb:\\\"да съдържа\\\"},set:{unit:\\\"елемента\\\",verb:\\\"да съдържа\\\"}};function t(n){return e[n]??null}const r={regex:\\\"вход\\\",email:\\\"имейл адрес\\\",url:\\\"URL\\\",emoji:\\\"емоджи\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO време\\\",date:\\\"ISO дата\\\",time:\\\"ISO време\\\",duration:\\\"ISO продължителност\\\",ipv4:\\\"IPv4 адрес\\\",ipv6:\\\"IPv6 адрес\\\",cidrv4:\\\"IPv4 диапазон\\\",cidrv6:\\\"IPv6 диапазон\\\",base64:\\\"base64-кодиран низ\\\",base64url:\\\"base64url-кодиран низ\\\",json_string:\\\"JSON низ\\\",e164:\\\"E.164 номер\\\",jwt:\\\"JWT\\\",template_literal:\\\"вход\\\"},i={nan:\\\"NaN\\\",number:\\\"число\\\",array:\\\"масив\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Невалиден вход: очакван instanceof ${n.expected}, получен ${s}`:`Невалиден вход: очакван ${a}, получен ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Невалиден вход: очакван ${ie(n.values[0])}`:`Невалидна опция: очаквано едно от ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Твърде голямо: очаква се ${n.origin??\\\"стойност\\\"} да съдържа ${a}${n.maximum.toString()} ${o.unit??\\\"елемента\\\"}`:`Твърде голямо: очаква се ${n.origin??\\\"стойност\\\"} да бъде ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Твърде малко: очаква се ${n.origin} да съдържа ${a}${n.minimum.toString()} ${o.unit}`:`Твърде малко: очаква се ${n.origin} да бъде ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;if(a.format===\\\"starts_with\\\")return`Невалиден низ: трябва да започва с \\\"${a.prefix}\\\"`;if(a.format===\\\"ends_with\\\")return`Невалиден низ: трябва да завършва с \\\"${a.suffix}\\\"`;if(a.format===\\\"includes\\\")return`Невалиден низ: трябва да включва \\\"${a.includes}\\\"`;if(a.format===\\\"regex\\\")return`Невалиден низ: трябва да съвпада с ${a.pattern}`;let o=\\\"Невалиден\\\";return a.format===\\\"emoji\\\"&&(o=\\\"Невалидно\\\"),a.format===\\\"datetime\\\"&&(o=\\\"Невалидно\\\"),a.format===\\\"date\\\"&&(o=\\\"Невалидна\\\"),a.format===\\\"time\\\"&&(o=\\\"Невалидно\\\"),a.format===\\\"duration\\\"&&(o=\\\"Невалидна\\\"),`${o} ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Невалидно число: трябва да бъде кратно на ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Неразпознат${n.keys.length>1?\\\"и\\\":\\\"\\\"} ключ${n.keys.length>1?\\\"ове\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Невалиден ключ в ${n.origin}`;case\\\"invalid_union\\\":return\\\"Невалиден вход\\\";case\\\"invalid_element\\\":return`Невалидна стойност в ${n.origin}`;default:return\\\"Невалиден вход\\\"}}};function iz(){return{localeError:nz()}}const az=()=>{const e={string:{unit:\\\"caràcters\\\",verb:\\\"contenir\\\"},file:{unit:\\\"bytes\\\",verb:\\\"contenir\\\"},array:{unit:\\\"elements\\\",verb:\\\"contenir\\\"},set:{unit:\\\"elements\\\",verb:\\\"contenir\\\"}};function t(n){return e[n]??null}const r={regex:\\\"entrada\\\",email:\\\"adreça electrònica\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"data i hora ISO\\\",date:\\\"data ISO\\\",time:\\\"hora ISO\\\",duration:\\\"durada ISO\\\",ipv4:\\\"adreça IPv4\\\",ipv6:\\\"adreça IPv6\\\",cidrv4:\\\"rang IPv4\\\",cidrv6:\\\"rang IPv6\\\",base64:\\\"cadena codificada en base64\\\",base64url:\\\"cadena codificada en base64url\\\",json_string:\\\"cadena JSON\\\",e164:\\\"número E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"entrada\\\"},i={nan:\\\"NaN\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Tipus invàlid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus invàlid: s'esperava ${a}, s'ha rebut ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Valor invàlid: s'esperava ${ie(n.values[0])}`:`Opció invàlida: s'esperava una de ${B(n.values,\\\" o \\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"com a màxim\\\":\\\"menys de\\\",o=t(n.origin);return o?`Massa gran: s'esperava que ${n.origin??\\\"el valor\\\"} contingués ${a} ${n.maximum.toString()} ${o.unit??\\\"elements\\\"}`:`Massa gran: s'esperava que ${n.origin??\\\"el valor\\\"} fos ${a} ${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\"com a mínim\\\":\\\"més de\\\",o=t(n.origin);return o?`Massa petit: s'esperava que ${n.origin} contingués ${a} ${n.minimum.toString()} ${o.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${a} ${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Format invàlid: ha de començar amb \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Format invàlid: ha d'acabar amb \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Format invàlid: ha d'incloure \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Clau${n.keys.length>1?\\\"s\\\":\\\"\\\"} no reconeguda${n.keys.length>1?\\\"s\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Clau invàlida a ${n.origin}`;case\\\"invalid_union\\\":return\\\"Entrada invàlida\\\";case\\\"invalid_element\\\":return`Element invàlid a ${n.origin}`;default:return\\\"Entrada invàlida\\\"}}};function oz(){return{localeError:az()}}const sz=()=>{const e={string:{unit:\\\"znaků\\\",verb:\\\"mít\\\"},file:{unit:\\\"bajtů\\\",verb:\\\"mít\\\"},array:{unit:\\\"prvků\\\",verb:\\\"mít\\\"},set:{unit:\\\"prvků\\\",verb:\\\"mít\\\"}};function t(n){return e[n]??null}const r={regex:\\\"regulární výraz\\\",email:\\\"e-mailová adresa\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"datum a čas ve formátu ISO\\\",date:\\\"datum ve formátu ISO\\\",time:\\\"čas ve formátu ISO\\\",duration:\\\"doba trvání ISO\\\",ipv4:\\\"IPv4 adresa\\\",ipv6:\\\"IPv6 adresa\\\",cidrv4:\\\"rozsah IPv4\\\",cidrv6:\\\"rozsah IPv6\\\",base64:\\\"řetězec zakódovaný ve formátu base64\\\",base64url:\\\"řetězec zakódovaný ve formátu base64url\\\",json_string:\\\"řetězec ve formátu JSON\\\",e164:\\\"číslo E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"vstup\\\"},i={nan:\\\"NaN\\\",number:\\\"číslo\\\",string:\\\"řetězec\\\",function:\\\"funkce\\\",array:\\\"pole\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Neplatný vstup: očekáváno instanceof ${n.expected}, obdrženo ${s}`:`Neplatný vstup: očekáváno ${a}, obdrženo ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Neplatný vstup: očekáváno ${ie(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Hodnota je příliš velká: ${n.origin??\\\"hodnota\\\"} musí mít ${a}${n.maximum.toString()} ${o.unit??\\\"prvků\\\"}`:`Hodnota je příliš velká: ${n.origin??\\\"hodnota\\\"} musí být ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Hodnota je příliš malá: ${n.origin??\\\"hodnota\\\"} musí mít ${a}${n.minimum.toString()} ${o.unit??\\\"prvků\\\"}`:`Hodnota je příliš malá: ${n.origin??\\\"hodnota\\\"} musí být ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Neplatný řetězec: musí začínat na \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Neplatný řetězec: musí končit na \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Neplatný řetězec: musí obsahovat \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Neznámé klíče: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Neplatný klíč v ${n.origin}`;case\\\"invalid_union\\\":return\\\"Neplatný vstup\\\";case\\\"invalid_element\\\":return`Neplatná hodnota v ${n.origin}`;default:return\\\"Neplatný vstup\\\"}}};function uz(){return{localeError:sz()}}const lz=()=>{const e={string:{unit:\\\"tegn\\\",verb:\\\"havde\\\"},file:{unit:\\\"bytes\\\",verb:\\\"havde\\\"},array:{unit:\\\"elementer\\\",verb:\\\"indeholdt\\\"},set:{unit:\\\"elementer\\\",verb:\\\"indeholdt\\\"}};function t(n){return e[n]??null}const r={regex:\\\"input\\\",email:\\\"e-mailadresse\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO dato- og klokkeslæt\\\",date:\\\"ISO-dato\\\",time:\\\"ISO-klokkeslæt\\\",duration:\\\"ISO-varighed\\\",ipv4:\\\"IPv4-område\\\",ipv6:\\\"IPv6-område\\\",cidrv4:\\\"IPv4-spektrum\\\",cidrv6:\\\"IPv6-spektrum\\\",base64:\\\"base64-kodet streng\\\",base64url:\\\"base64url-kodet streng\\\",json_string:\\\"JSON-streng\\\",e164:\\\"E.164-nummer\\\",jwt:\\\"JWT\\\",template_literal:\\\"input\\\"},i={nan:\\\"NaN\\\",string:\\\"streng\\\",number:\\\"tal\\\",boolean:\\\"boolean\\\",array:\\\"liste\\\",object:\\\"objekt\\\",set:\\\"sæt\\\",file:\\\"fil\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${a}, fik ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Ugyldig værdi: forventede ${ie(n.values[0])}`:`Ugyldigt valg: forventede en af følgende ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin),s=i[n.origin]??n.origin;return o?`For stor: forventede ${s??\\\"value\\\"} ${o.verb} ${a} ${n.maximum.toString()} ${o.unit??\\\"elementer\\\"}`:`For stor: forventede ${s??\\\"value\\\"} havde ${a} ${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin),s=i[n.origin]??n.origin;return o?`For lille: forventede ${s} ${o.verb} ${a} ${n.minimum.toString()} ${o.unit}`:`For lille: forventede ${s} havde ${a} ${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Ugyldig streng: skal starte med \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Ugyldig streng: skal ende med \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Ugyldig streng: skal indeholde \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Ugyldig streng: skal matche mønsteret ${a.pattern}`:`Ugyldig ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Ugyldigt tal: skal være deleligt med ${n.divisor}`;case\\\"unrecognized_keys\\\":return`${n.keys.length>1?\\\"Ukendte nøgler\\\":\\\"Ukendt nøgle\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Ugyldig nøgle i ${n.origin}`;case\\\"invalid_union\\\":return\\\"Ugyldigt input: matcher ingen af de tilladte typer\\\";case\\\"invalid_element\\\":return`Ugyldig værdi i ${n.origin}`;default:return\\\"Ugyldigt input\\\"}}};function cz(){return{localeError:lz()}}const fz=()=>{const e={string:{unit:\\\"Zeichen\\\",verb:\\\"zu haben\\\"},file:{unit:\\\"Bytes\\\",verb:\\\"zu haben\\\"},array:{unit:\\\"Elemente\\\",verb:\\\"zu haben\\\"},set:{unit:\\\"Elemente\\\",verb:\\\"zu haben\\\"}};function t(n){return e[n]??null}const r={regex:\\\"Eingabe\\\",email:\\\"E-Mail-Adresse\\\",url:\\\"URL\\\",emoji:\\\"Emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO-Datum und -Uhrzeit\\\",date:\\\"ISO-Datum\\\",time:\\\"ISO-Uhrzeit\\\",duration:\\\"ISO-Dauer\\\",ipv4:\\\"IPv4-Adresse\\\",ipv6:\\\"IPv6-Adresse\\\",cidrv4:\\\"IPv4-Bereich\\\",cidrv6:\\\"IPv6-Bereich\\\",base64:\\\"Base64-codierter String\\\",base64url:\\\"Base64-URL-codierter String\\\",json_string:\\\"JSON-String\\\",e164:\\\"E.164-Nummer\\\",jwt:\\\"JWT\\\",template_literal:\\\"Eingabe\\\"},i={nan:\\\"NaN\\\",number:\\\"Zahl\\\",array:\\\"Array\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ungültige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ungültige Eingabe: erwartet ${a}, erhalten ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Ungültige Eingabe: erwartet ${ie(n.values[0])}`:`Ungültige Option: erwartet eine von ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Zu groß: erwartet, dass ${n.origin??\\\"Wert\\\"} ${a}${n.maximum.toString()} ${o.unit??\\\"Elemente\\\"} hat`:`Zu groß: erwartet, dass ${n.origin??\\\"Wert\\\"} ${a}${n.maximum.toString()} ist`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ${o.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ist`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Ungültiger String: muss mit \\\"${a.prefix}\\\" beginnen`:a.format===\\\"ends_with\\\"?`Ungültiger String: muss mit \\\"${a.suffix}\\\" enden`:a.format===\\\"includes\\\"?`Ungültiger String: muss \\\"${a.includes}\\\" enthalten`:a.format===\\\"regex\\\"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case\\\"unrecognized_keys\\\":return`${n.keys.length>1?\\\"Unbekannte Schlüssel\\\":\\\"Unbekannter Schlüssel\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Ungültiger Schlüssel in ${n.origin}`;case\\\"invalid_union\\\":return\\\"Ungültige Eingabe\\\";case\\\"invalid_element\\\":return`Ungültiger Wert in ${n.origin}`;default:return\\\"Ungültige Eingabe\\\"}}};function dz(){return{localeError:fz()}}const vz=()=>{const e={string:{unit:\\\"χαρακτήρες\\\",verb:\\\"να έχει\\\"},file:{unit:\\\"bytes\\\",verb:\\\"να έχει\\\"},array:{unit:\\\"στοιχεία\\\",verb:\\\"να έχει\\\"},set:{unit:\\\"στοιχεία\\\",verb:\\\"να έχει\\\"},map:{unit:\\\"καταχωρήσεις\\\",verb:\\\"να έχει\\\"}};function t(n){return e[n]??null}const r={regex:\\\"είσοδος\\\",email:\\\"διεύθυνση email\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO ημερομηνία και ώρα\\\",date:\\\"ISO ημερομηνία\\\",time:\\\"ISO ώρα\\\",duration:\\\"ISO διάρκεια\\\",ipv4:\\\"διεύθυνση IPv4\\\",ipv6:\\\"διεύθυνση IPv6\\\",mac:\\\"διεύθυνση MAC\\\",cidrv4:\\\"εύρος IPv4\\\",cidrv6:\\\"εύρος IPv6\\\",base64:\\\"συμβολοσειρά κωδικοποιημένη σε base64\\\",base64url:\\\"συμβολοσειρά κωδικοποιημένη σε base64url\\\",json_string:\\\"συμβολοσειρά JSON\\\",e164:\\\"αριθμός E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"είσοδος\\\"},i={nan:\\\"NaN\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return typeof n.expected==\\\"string\\\"&&/^[A-Z]/.test(n.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${n.expected}, λήφθηκε ${s}`:`Μη έγκυρη είσοδος: αναμενόταν ${a}, λήφθηκε ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${ie(n.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Πολύ μεγάλο: αναμενόταν ${n.origin??\\\"τιμή\\\"} να έχει ${a}${n.maximum.toString()} ${o.unit??\\\"στοιχεία\\\"}`:`Πολύ μεγάλο: αναμενόταν ${n.origin??\\\"τιμή\\\"} να είναι ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Πολύ μικρό: αναμενόταν ${n.origin} να έχει ${a}${n.minimum.toString()} ${o.unit}`:`Πολύ μικρό: αναμενόταν ${n.origin} να είναι ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${a.pattern}`:`Μη έγκυρο: ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Άγνωστ${n.keys.length>1?\\\"α\\\":\\\"ο\\\"} κλειδ${n.keys.length>1?\\\"ιά\\\":\\\"ί\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Μη έγκυρο κλειδί στο ${n.origin}`;case\\\"invalid_union\\\":return\\\"Μη έγκυρη είσοδος\\\";case\\\"invalid_element\\\":return`Μη έγκυρη τιμή στο ${n.origin}`;default:return\\\"Μη έγκυρη είσοδος\\\"}}};function hz(){return{localeError:vz()}}const pz=()=>{const e={string:{unit:\\\"characters\\\",verb:\\\"to have\\\"},file:{unit:\\\"bytes\\\",verb:\\\"to have\\\"},array:{unit:\\\"items\\\",verb:\\\"to have\\\"},set:{unit:\\\"items\\\",verb:\\\"to have\\\"},map:{unit:\\\"entries\\\",verb:\\\"to have\\\"}};function t(n){return e[n]??null}const r={regex:\\\"input\\\",email:\\\"email address\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO datetime\\\",date:\\\"ISO date\\\",time:\\\"ISO time\\\",duration:\\\"ISO duration\\\",ipv4:\\\"IPv4 address\\\",ipv6:\\\"IPv6 address\\\",mac:\\\"MAC address\\\",cidrv4:\\\"IPv4 range\\\",cidrv6:\\\"IPv6 range\\\",base64:\\\"base64-encoded string\\\",base64url:\\\"base64url-encoded string\\\",json_string:\\\"JSON string\\\",e164:\\\"E.164 number\\\",jwt:\\\"JWT\\\",template_literal:\\\"input\\\"},i={nan:\\\"NaN\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return`Invalid input: expected ${a}, received ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Invalid input: expected ${ie(n.values[0])}`:`Invalid option: expected one of ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Too big: expected ${n.origin??\\\"value\\\"} to have ${a}${n.maximum.toString()} ${o.unit??\\\"elements\\\"}`:`Too big: expected ${n.origin??\\\"value\\\"} to be ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Too small: expected ${n.origin} to have ${a}${n.minimum.toString()} ${o.unit}`:`Too small: expected ${n.origin} to be ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Invalid string: must start with \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Invalid string: must end with \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Invalid string: must include \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Invalid number: must be a multiple of ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Unrecognized key${n.keys.length>1?\\\"s\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Invalid key in ${n.origin}`;case\\\"invalid_union\\\":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(o=>`'${o}'`).join(\\\" | \\\")}`:\\\"Invalid input\\\";case\\\"invalid_element\\\":return`Invalid value in ${n.origin}`;default:return\\\"Invalid input\\\"}}};function E$(){return{localeError:pz()}}const gz=()=>{const e={string:{unit:\\\"karaktrojn\\\",verb:\\\"havi\\\"},file:{unit:\\\"bajtojn\\\",verb:\\\"havi\\\"},array:{unit:\\\"elementojn\\\",verb:\\\"havi\\\"},set:{unit:\\\"elementojn\\\",verb:\\\"havi\\\"}};function t(n){return e[n]??null}const r={regex:\\\"enigo\\\",email:\\\"retadreso\\\",url:\\\"URL\\\",emoji:\\\"emoĝio\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO-datotempo\\\",date:\\\"ISO-dato\\\",time:\\\"ISO-tempo\\\",duration:\\\"ISO-daŭro\\\",ipv4:\\\"IPv4-adreso\\\",ipv6:\\\"IPv6-adreso\\\",cidrv4:\\\"IPv4-rango\\\",cidrv6:\\\"IPv6-rango\\\",base64:\\\"64-ume kodita karaktraro\\\",base64url:\\\"URL-64-ume kodita karaktraro\\\",json_string:\\\"JSON-karaktraro\\\",e164:\\\"E.164-nombro\\\",jwt:\\\"JWT\\\",template_literal:\\\"enigo\\\"},i={nan:\\\"NaN\\\",number:\\\"nombro\\\",array:\\\"tabelo\\\",null:\\\"senvalora\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendiĝis instanceof ${n.expected}, riceviĝis ${s}`:`Nevalida enigo: atendiĝis ${a}, riceviĝis ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Nevalida enigo: atendiĝis ${ie(n.values[0])}`:`Nevalida opcio: atendiĝis unu el ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Tro granda: atendiĝis ke ${n.origin??\\\"valoro\\\"} havu ${a}${n.maximum.toString()} ${o.unit??\\\"elementojn\\\"}`:`Tro granda: atendiĝis ke ${n.origin??\\\"valoro\\\"} havu ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Tro malgranda: atendiĝis ke ${n.origin} havu ${a}${n.minimum.toString()} ${o.unit}`:`Tro malgranda: atendiĝis ke ${n.origin} estu ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Nevalida karaktraro: devas komenciĝi per \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Nevalida karaktraro: devas finiĝi per \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Nevalida karaktraro: devas inkluzivi \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Nevalida karaktraro: devas kongrui kun la modelo ${a.pattern}`:`Nevalida ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Nekonata${n.keys.length>1?\\\"j\\\":\\\"\\\"} ŝlosilo${n.keys.length>1?\\\"j\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Nevalida ŝlosilo en ${n.origin}`;case\\\"invalid_union\\\":return\\\"Nevalida enigo\\\";case\\\"invalid_element\\\":return`Nevalida valoro en ${n.origin}`;default:return\\\"Nevalida enigo\\\"}}};function mz(){return{localeError:gz()}}const yz=()=>{const e={string:{unit:\\\"caracteres\\\",verb:\\\"tener\\\"},file:{unit:\\\"bytes\\\",verb:\\\"tener\\\"},array:{unit:\\\"elementos\\\",verb:\\\"tener\\\"},set:{unit:\\\"elementos\\\",verb:\\\"tener\\\"}};function t(n){return e[n]??null}const r={regex:\\\"entrada\\\",email:\\\"dirección de correo electrónico\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"fecha y hora ISO\\\",date:\\\"fecha ISO\\\",time:\\\"hora ISO\\\",duration:\\\"duración ISO\\\",ipv4:\\\"dirección IPv4\\\",ipv6:\\\"dirección IPv6\\\",cidrv4:\\\"rango IPv4\\\",cidrv6:\\\"rango IPv6\\\",base64:\\\"cadena codificada en base64\\\",base64url:\\\"URL codificada en base64\\\",json_string:\\\"cadena JSON\\\",e164:\\\"número E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"entrada\\\"},i={nan:\\\"NaN\\\",string:\\\"texto\\\",number:\\\"número\\\",boolean:\\\"booleano\\\",array:\\\"arreglo\\\",object:\\\"objeto\\\",set:\\\"conjunto\\\",file:\\\"archivo\\\",date:\\\"fecha\\\",bigint:\\\"número grande\\\",symbol:\\\"símbolo\\\",undefined:\\\"indefinido\\\",null:\\\"nulo\\\",function:\\\"función\\\",map:\\\"mapa\\\",record:\\\"registro\\\",tuple:\\\"tupla\\\",enum:\\\"enumeración\\\",union:\\\"unión\\\",literal:\\\"literal\\\",promise:\\\"promesa\\\",void:\\\"vacío\\\",never:\\\"nunca\\\",unknown:\\\"desconocido\\\",any:\\\"cualquiera\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Entrada inválida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inválida: se esperaba ${a}, recibido ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Entrada inválida: se esperaba ${ie(n.values[0])}`:`Opción inválida: se esperaba una de ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin),s=i[n.origin]??n.origin;return o?`Demasiado grande: se esperaba que ${s??\\\"valor\\\"} tuviera ${a}${n.maximum.toString()} ${o.unit??\\\"elementos\\\"}`:`Demasiado grande: se esperaba que ${s??\\\"valor\\\"} fuera ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin),s=i[n.origin]??n.origin;return o?`Demasiado pequeño: se esperaba que ${s} tuviera ${a}${n.minimum.toString()} ${o.unit}`:`Demasiado pequeño: se esperaba que ${s} fuera ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Cadena inválida: debe comenzar con \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Cadena inválida: debe terminar en \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Cadena inválida: debe incluir \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Cadena inválida: debe coincidir con el patrón ${a.pattern}`:`Inválido ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Número inválido: debe ser múltiplo de ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Llave${n.keys.length>1?\\\"s\\\":\\\"\\\"} desconocida${n.keys.length>1?\\\"s\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Llave inválida en ${i[n.origin]??n.origin}`;case\\\"invalid_union\\\":return\\\"Entrada inválida\\\";case\\\"invalid_element\\\":return`Valor inválido en ${i[n.origin]??n.origin}`;default:return\\\"Entrada inválida\\\"}}};function _z(){return{localeError:yz()}}const bz=()=>{const e={string:{unit:\\\"کاراکتر\\\",verb:\\\"داشته باشد\\\"},file:{unit:\\\"بایت\\\",verb:\\\"داشته باشد\\\"},array:{unit:\\\"آیتم\\\",verb:\\\"داشته باشد\\\"},set:{unit:\\\"آیتم\\\",verb:\\\"داشته باشد\\\"}};function t(n){return e[n]??null}const r={regex:\\\"ورودی\\\",email:\\\"آدرس ایمیل\\\",url:\\\"URL\\\",emoji:\\\"ایموجی\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"تاریخ و زمان ایزو\\\",date:\\\"تاریخ ایزو\\\",time:\\\"زمان ایزو\\\",duration:\\\"مدت زمان ایزو\\\",ipv4:\\\"IPv4 آدرس\\\",ipv6:\\\"IPv6 آدرس\\\",cidrv4:\\\"IPv4 دامنه\\\",cidrv6:\\\"IPv6 دامنه\\\",base64:\\\"base64-encoded رشته\\\",base64url:\\\"base64url-encoded رشته\\\",json_string:\\\"JSON رشته\\\",e164:\\\"E.164 عدد\\\",jwt:\\\"JWT\\\",template_literal:\\\"ورودی\\\"},i={nan:\\\"NaN\\\",number:\\\"عدد\\\",array:\\\"آرایه\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`ورودی نامعتبر: میبایست instanceof ${n.expected} میبود، ${s} دریافت شد`:`ورودی نامعتبر: میبایست ${a} میبود، ${s} دریافت شد`}case\\\"invalid_value\\\":return n.values.length===1?`ورودی نامعتبر: میبایست ${ie(n.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${B(n.values,\\\"|\\\")} میبود`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`خیلی بزرگ: ${n.origin??\\\"مقدار\\\"} باید ${a}${n.maximum.toString()} ${o.unit??\\\"عنصر\\\"} باشد`:`خیلی بزرگ: ${n.origin??\\\"مقدار\\\"} باید ${a}${n.maximum.toString()} باشد`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`خیلی کوچک: ${n.origin} باید ${a}${n.minimum.toString()} ${o.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${a}${n.minimum.toString()} باشد`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`رشته نامعتبر: باید با \\\"${a.prefix}\\\" شروع شود`:a.format===\\\"ends_with\\\"?`رشته نامعتبر: باید با \\\"${a.suffix}\\\" تمام شود`:a.format===\\\"includes\\\"?`رشته نامعتبر: باید شامل \\\"${a.includes}\\\" باشد`:a.format===\\\"regex\\\"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${r[a.format]??n.format} نامعتبر`}case\\\"not_multiple_of\\\":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case\\\"unrecognized_keys\\\":return`کلید${n.keys.length>1?\\\"های\\\":\\\"\\\"} ناشناس: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`کلید ناشناس در ${n.origin}`;case\\\"invalid_union\\\":return\\\"ورودی نامعتبر\\\";case\\\"invalid_element\\\":return`مقدار نامعتبر در ${n.origin}`;default:return\\\"ورودی نامعتبر\\\"}}};function Sz(){return{localeError:bz()}}const wz=()=>{const e={string:{unit:\\\"merkkiä\\\",subject:\\\"merkkijonon\\\"},file:{unit:\\\"tavua\\\",subject:\\\"tiedoston\\\"},array:{unit:\\\"alkiota\\\",subject:\\\"listan\\\"},set:{unit:\\\"alkiota\\\",subject:\\\"joukon\\\"},number:{unit:\\\"\\\",subject:\\\"luvun\\\"},bigint:{unit:\\\"\\\",subject:\\\"suuren kokonaisluvun\\\"},int:{unit:\\\"\\\",subject:\\\"kokonaisluvun\\\"},date:{unit:\\\"\\\",subject:\\\"päivämäärän\\\"}};function t(n){return e[n]??null}const r={regex:\\\"säännöllinen lauseke\\\",email:\\\"sähköpostiosoite\\\",url:\\\"URL-osoite\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO-aikaleima\\\",date:\\\"ISO-päivämäärä\\\",time:\\\"ISO-aika\\\",duration:\\\"ISO-kesto\\\",ipv4:\\\"IPv4-osoite\\\",ipv6:\\\"IPv6-osoite\\\",cidrv4:\\\"IPv4-alue\\\",cidrv6:\\\"IPv6-alue\\\",base64:\\\"base64-koodattu merkkijono\\\",base64url:\\\"base64url-koodattu merkkijono\\\",json_string:\\\"JSON-merkkijono\\\",e164:\\\"E.164-luku\\\",jwt:\\\"JWT\\\",template_literal:\\\"templaattimerkkijono\\\"},i={nan:\\\"NaN\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${a}, oli ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Virheellinen syöte: täytyy olla ${ie(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Liian suuri: ${o.subject} täytyy olla ${a}${n.maximum.toString()} ${o.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Liian pieni: ${o.subject} täytyy olla ${a}${n.minimum.toString()} ${o.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Virheellinen syöte: täytyy alkaa \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Virheellinen syöte: täytyy loppua \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Virheellinen syöte: täytyy sisältää \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case\\\"unrecognized_keys\\\":return`${n.keys.length>1?\\\"Tuntemattomat avaimet\\\":\\\"Tuntematon avain\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return\\\"Virheellinen avain tietueessa\\\";case\\\"invalid_union\\\":return\\\"Virheellinen unioni\\\";case\\\"invalid_element\\\":return\\\"Virheellinen arvo joukossa\\\";default:return\\\"Virheellinen syöte\\\"}}};function xz(){return{localeError:wz()}}const Tz=()=>{const e={string:{unit:\\\"caractères\\\",verb:\\\"avoir\\\"},file:{unit:\\\"octets\\\",verb:\\\"avoir\\\"},array:{unit:\\\"éléments\\\",verb:\\\"avoir\\\"},set:{unit:\\\"éléments\\\",verb:\\\"avoir\\\"}};function t(n){return e[n]??null}const r={regex:\\\"entrée\\\",email:\\\"adresse e-mail\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"date et heure ISO\\\",date:\\\"date ISO\\\",time:\\\"heure ISO\\\",duration:\\\"durée ISO\\\",ipv4:\\\"adresse IPv4\\\",ipv6:\\\"adresse IPv6\\\",cidrv4:\\\"plage IPv4\\\",cidrv6:\\\"plage IPv6\\\",base64:\\\"chaîne encodée en base64\\\",base64url:\\\"chaîne encodée en base64url\\\",json_string:\\\"chaîne JSON\\\",e164:\\\"numéro E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"entrée\\\"},i={string:\\\"chaîne\\\",number:\\\"nombre\\\",int:\\\"entier\\\",boolean:\\\"booléen\\\",bigint:\\\"grand entier\\\",symbol:\\\"symbole\\\",undefined:\\\"indéfini\\\",null:\\\"null\\\",never:\\\"jamais\\\",void:\\\"vide\\\",date:\\\"date\\\",array:\\\"tableau\\\",object:\\\"objet\\\",tuple:\\\"tuple\\\",record:\\\"enregistrement\\\",map:\\\"carte\\\",set:\\\"ensemble\\\",file:\\\"fichier\\\",nonoptional:\\\"non-optionnel\\\",nan:\\\"NaN\\\",function:\\\"fonction\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Entrée invalide : instanceof ${n.expected} attendu, ${s} reçu`:`Entrée invalide : ${a} attendu, ${s} reçu`}case\\\"invalid_value\\\":return n.values.length===1?`Entrée invalide : ${ie(n.values[0])} attendu`:`Option invalide : une valeur parmi ${B(n.values,\\\"|\\\")} attendue`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Trop grand : ${i[n.origin]??\\\"valeur\\\"} doit ${o.verb} ${a}${n.maximum.toString()} ${o.unit??\\\"élément(s)\\\"}`:`Trop grand : ${i[n.origin]??\\\"valeur\\\"} doit être ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Trop petit : ${i[n.origin]??\\\"valeur\\\"} doit ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Trop petit : ${i[n.origin]??\\\"valeur\\\"} doit être ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Chaîne invalide : doit commencer par \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Chaîne invalide : doit se terminer par \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Chaîne invalide : doit inclure \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${r[a.format]??n.format} invalide`}case\\\"not_multiple_of\\\":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Clé${n.keys.length>1?\\\"s\\\":\\\"\\\"} non reconnue${n.keys.length>1?\\\"s\\\":\\\"\\\"} : ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Clé invalide dans ${n.origin}`;case\\\"invalid_union\\\":return\\\"Entrée invalide\\\";case\\\"invalid_element\\\":return`Valeur invalide dans ${n.origin}`;default:return\\\"Entrée invalide\\\"}}};function kz(){return{localeError:Tz()}}const Iz=()=>{const e={string:{unit:\\\"caractères\\\",verb:\\\"avoir\\\"},file:{unit:\\\"octets\\\",verb:\\\"avoir\\\"},array:{unit:\\\"éléments\\\",verb:\\\"avoir\\\"},set:{unit:\\\"éléments\\\",verb:\\\"avoir\\\"}};function t(n){return e[n]??null}const r={regex:\\\"entrée\\\",email:\\\"adresse courriel\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"date-heure ISO\\\",date:\\\"date ISO\\\",time:\\\"heure ISO\\\",duration:\\\"durée ISO\\\",ipv4:\\\"adresse IPv4\\\",ipv6:\\\"adresse IPv6\\\",cidrv4:\\\"plage IPv4\\\",cidrv6:\\\"plage IPv6\\\",base64:\\\"chaîne encodée en base64\\\",base64url:\\\"chaîne encodée en base64url\\\",json_string:\\\"chaîne JSON\\\",e164:\\\"numéro E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"entrée\\\"},i={nan:\\\"NaN\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Entrée invalide : attendu instanceof ${n.expected}, reçu ${s}`:`Entrée invalide : attendu ${a}, reçu ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Entrée invalide : attendu ${ie(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"≤\\\":\\\"<\\\",o=t(n.origin);return o?`Trop grand : attendu que ${n.origin??\\\"la valeur\\\"} ait ${a}${n.maximum.toString()} ${o.unit}`:`Trop grand : attendu que ${n.origin??\\\"la valeur\\\"} soit ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\"≥\\\":\\\">\\\",o=t(n.origin);return o?`Trop petit : attendu que ${n.origin} ait ${a}${n.minimum.toString()} ${o.unit}`:`Trop petit : attendu que ${n.origin} soit ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Chaîne invalide : doit commencer par \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Chaîne invalide : doit se terminer par \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Chaîne invalide : doit inclure \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${r[a.format]??n.format} invalide`}case\\\"not_multiple_of\\\":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Clé${n.keys.length>1?\\\"s\\\":\\\"\\\"} non reconnue${n.keys.length>1?\\\"s\\\":\\\"\\\"} : ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Clé invalide dans ${n.origin}`;case\\\"invalid_union\\\":return\\\"Entrée invalide\\\";case\\\"invalid_element\\\":return`Valeur invalide dans ${n.origin}`;default:return\\\"Entrée invalide\\\"}}};function $z(){return{localeError:Iz()}}const Dz=()=>{const e={string:{label:\\\"מחרוזת\\\",gender:\\\"f\\\"},number:{label:\\\"מספר\\\",gender:\\\"m\\\"},boolean:{label:\\\"ערך בוליאני\\\",gender:\\\"m\\\"},bigint:{label:\\\"BigInt\\\",gender:\\\"m\\\"},date:{label:\\\"תאריך\\\",gender:\\\"m\\\"},array:{label:\\\"מערך\\\",gender:\\\"m\\\"},object:{label:\\\"אובייקט\\\",gender:\\\"m\\\"},null:{label:\\\"ערך ריק (null)\\\",gender:\\\"m\\\"},undefined:{label:\\\"ערך לא מוגדר (undefined)\\\",gender:\\\"m\\\"},symbol:{label:\\\"סימבול (Symbol)\\\",gender:\\\"m\\\"},function:{label:\\\"פונקציה\\\",gender:\\\"f\\\"},map:{label:\\\"מפה (Map)\\\",gender:\\\"f\\\"},set:{label:\\\"קבוצה (Set)\\\",gender:\\\"f\\\"},file:{label:\\\"קובץ\\\",gender:\\\"m\\\"},promise:{label:\\\"Promise\\\",gender:\\\"m\\\"},NaN:{label:\\\"NaN\\\",gender:\\\"m\\\"},unknown:{label:\\\"ערך לא ידוע\\\",gender:\\\"m\\\"},value:{label:\\\"ערך\\\",gender:\\\"m\\\"}},t={string:{unit:\\\"תווים\\\",shortLabel:\\\"קצר\\\",longLabel:\\\"ארוך\\\"},file:{unit:\\\"בייטים\\\",shortLabel:\\\"קטן\\\",longLabel:\\\"גדול\\\"},array:{unit:\\\"פריטים\\\",shortLabel:\\\"קטן\\\",longLabel:\\\"גדול\\\"},set:{unit:\\\"פריטים\\\",shortLabel:\\\"קטן\\\",longLabel:\\\"גדול\\\"},number:{unit:\\\"\\\",shortLabel:\\\"קטן\\\",longLabel:\\\"גדול\\\"}},r=l=>l?e[l]:void 0,i=l=>{const c=r(l);return c?c.label:l??e.unknown.label},n=l=>`ה${i(l)}`,a=l=>{const c=r(l);return((c==null?void 0:c.gender)??\\\"m\\\")===\\\"f\\\"?\\\"צריכה להיות\\\":\\\"צריך להיות\\\"},o=l=>l?t[l]??null:null,s={regex:{label:\\\"קלט\\\",gender:\\\"m\\\"},email:{label:\\\"כתובת אימייל\\\",gender:\\\"f\\\"},url:{label:\\\"כתובת רשת\\\",gender:\\\"f\\\"},emoji:{label:\\\"אימוג'י\\\",gender:\\\"m\\\"},uuid:{label:\\\"UUID\\\",gender:\\\"m\\\"},nanoid:{label:\\\"nanoid\\\",gender:\\\"m\\\"},guid:{label:\\\"GUID\\\",gender:\\\"m\\\"},cuid:{label:\\\"cuid\\\",gender:\\\"m\\\"},cuid2:{label:\\\"cuid2\\\",gender:\\\"m\\\"},ulid:{label:\\\"ULID\\\",gender:\\\"m\\\"},xid:{label:\\\"XID\\\",gender:\\\"m\\\"},ksuid:{label:\\\"KSUID\\\",gender:\\\"m\\\"},datetime:{label:\\\"תאריך וזמן ISO\\\",gender:\\\"m\\\"},date:{label:\\\"תאריך ISO\\\",gender:\\\"m\\\"},time:{label:\\\"זמן ISO\\\",gender:\\\"m\\\"},duration:{label:\\\"משך זמן ISO\\\",gender:\\\"m\\\"},ipv4:{label:\\\"כתובת IPv4\\\",gender:\\\"f\\\"},ipv6:{label:\\\"כתובת IPv6\\\",gender:\\\"f\\\"},cidrv4:{label:\\\"טווח IPv4\\\",gender:\\\"m\\\"},cidrv6:{label:\\\"טווח IPv6\\\",gender:\\\"m\\\"},base64:{label:\\\"מחרוזת בבסיס 64\\\",gender:\\\"f\\\"},base64url:{label:\\\"מחרוזת בבסיס 64 לכתובות רשת\\\",gender:\\\"f\\\"},json_string:{label:\\\"מחרוזת JSON\\\",gender:\\\"f\\\"},e164:{label:\\\"מספר E.164\\\",gender:\\\"m\\\"},jwt:{label:\\\"JWT\\\",gender:\\\"m\\\"},ends_with:{label:\\\"קלט\\\",gender:\\\"m\\\"},includes:{label:\\\"קלט\\\",gender:\\\"m\\\"},lowercase:{label:\\\"קלט\\\",gender:\\\"m\\\"},starts_with:{label:\\\"קלט\\\",gender:\\\"m\\\"},uppercase:{label:\\\"קלט\\\",gender:\\\"m\\\"}},u={nan:\\\"NaN\\\"};return l=>{var c;switch(l.code){case\\\"invalid_type\\\":{const f=l.expected,d=u[f??\\\"\\\"]??i(f),v=ae(l.input),h=u[v]??((c=e[v])==null?void 0:c.label)??v;return/^[A-Z]/.test(l.expected)?`קלט לא תקין: צריך להיות instanceof ${l.expected}, התקבל ${h}`:`קלט לא תקין: צריך להיות ${d}, התקבל ${h}`}case\\\"invalid_value\\\":{if(l.values.length===1)return`ערך לא תקין: הערך חייב להיות ${ie(l.values[0])}`;const f=l.values.map(h=>ie(h));if(l.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${f[0]} או ${f[1]}`;const d=f[f.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${f.slice(0,-1).join(\\\", \\\")} או ${d}`}case\\\"too_big\\\":{const f=o(l.origin),d=n(l.origin??\\\"value\\\");if(l.origin===\\\"string\\\")return`${(f==null?void 0:f.longLabel)??\\\"ארוך\\\"} מדי: ${d} צריכה להכיל ${l.maximum.toString()} ${(f==null?void 0:f.unit)??\\\"\\\"} ${l.inclusive?\\\"או פחות\\\":\\\"לכל היותר\\\"}`.trim();if(l.origin===\\\"number\\\"){const p=l.inclusive?`קטן או שווה ל-${l.maximum}`:`קטן מ-${l.maximum}`;return`גדול מדי: ${d} צריך להיות ${p}`}if(l.origin===\\\"array\\\"||l.origin===\\\"set\\\"){const p=l.origin===\\\"set\\\"?\\\"צריכה\\\":\\\"צריך\\\",g=l.inclusive?`${l.maximum} ${(f==null?void 0:f.unit)??\\\"\\\"} או פחות`:`פחות מ-${l.maximum} ${(f==null?void 0:f.unit)??\\\"\\\"}`;return`גדול מדי: ${d} ${p} להכיל ${g}`.trim()}const v=l.inclusive?\\\"<=\\\":\\\"<\\\",h=a(l.origin??\\\"value\\\");return f!=null&&f.unit?`${f.longLabel} מדי: ${d} ${h} ${v}${l.maximum.toString()} ${f.unit}`:`${(f==null?void 0:f.longLabel)??\\\"גדול\\\"} מדי: ${d} ${h} ${v}${l.maximum.toString()}`}case\\\"too_small\\\":{const f=o(l.origin),d=n(l.origin??\\\"value\\\");if(l.origin===\\\"string\\\")return`${(f==null?void 0:f.shortLabel)??\\\"קצר\\\"} מדי: ${d} צריכה להכיל ${l.minimum.toString()} ${(f==null?void 0:f.unit)??\\\"\\\"} ${l.inclusive?\\\"או יותר\\\":\\\"לפחות\\\"}`.trim();if(l.origin===\\\"number\\\"){const p=l.inclusive?`גדול או שווה ל-${l.minimum}`:`גדול מ-${l.minimum}`;return`קטן מדי: ${d} צריך להיות ${p}`}if(l.origin===\\\"array\\\"||l.origin===\\\"set\\\"){const p=l.origin===\\\"set\\\"?\\\"צריכה\\\":\\\"צריך\\\";if(l.minimum===1&&l.inclusive){const m=(l.origin===\\\"set\\\",\\\"לפחות פריט אחד\\\");return`קטן מדי: ${d} ${p} להכיל ${m}`}const g=l.inclusive?`${l.minimum} ${(f==null?void 0:f.unit)??\\\"\\\"} או יותר`:`יותר מ-${l.minimum} ${(f==null?void 0:f.unit)??\\\"\\\"}`;return`קטן מדי: ${d} ${p} להכיל ${g}`.trim()}const v=l.inclusive?\\\">=\\\":\\\">\\\",h=a(l.origin??\\\"value\\\");return f!=null&&f.unit?`${f.shortLabel} מדי: ${d} ${h} ${v}${l.minimum.toString()} ${f.unit}`:`${(f==null?void 0:f.shortLabel)??\\\"קטן\\\"} מדי: ${d} ${h} ${v}${l.minimum.toString()}`}case\\\"invalid_format\\\":{const f=l;if(f.format===\\\"starts_with\\\")return`המחרוזת חייבת להתחיל ב \\\"${f.prefix}\\\"`;if(f.format===\\\"ends_with\\\")return`המחרוזת חייבת להסתיים ב \\\"${f.suffix}\\\"`;if(f.format===\\\"includes\\\")return`המחרוזת חייבת לכלול \\\"${f.includes}\\\"`;if(f.format===\\\"regex\\\")return`המחרוזת חייבת להתאים לתבנית ${f.pattern}`;const d=s[f.format],v=(d==null?void 0:d.label)??f.format,p=((d==null?void 0:d.gender)??\\\"m\\\")===\\\"f\\\"?\\\"תקינה\\\":\\\"תקין\\\";return`${v} לא ${p}`}case\\\"not_multiple_of\\\":return`מספר לא תקין: חייב להיות מכפלה של ${l.divisor}`;case\\\"unrecognized_keys\\\":return`מפתח${l.keys.length>1?\\\"ות\\\":\\\"\\\"} לא מזוה${l.keys.length>1?\\\"ים\\\":\\\"ה\\\"}: ${B(l.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return\\\"שדה לא תקין באובייקט\\\";case\\\"invalid_union\\\":return\\\"קלט לא תקין\\\";case\\\"invalid_element\\\":return`ערך לא תקין ב${n(l.origin??\\\"array\\\")}`;default:return\\\"קלט לא תקין\\\"}}};function Cz(){return{localeError:Dz()}}const Az=()=>{const e={string:{unit:\\\"znakova\\\",verb:\\\"imati\\\"},file:{unit:\\\"bajtova\\\",verb:\\\"imati\\\"},array:{unit:\\\"stavki\\\",verb:\\\"imati\\\"},set:{unit:\\\"stavki\\\",verb:\\\"imati\\\"}};function t(n){return e[n]??null}const r={regex:\\\"unos\\\",email:\\\"email adresa\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO datum i vrijeme\\\",date:\\\"ISO datum\\\",time:\\\"ISO vrijeme\\\",duration:\\\"ISO trajanje\\\",ipv4:\\\"IPv4 adresa\\\",ipv6:\\\"IPv6 adresa\\\",cidrv4:\\\"IPv4 raspon\\\",cidrv6:\\\"IPv6 raspon\\\",base64:\\\"base64 kodirani tekst\\\",base64url:\\\"base64url kodirani tekst\\\",json_string:\\\"JSON tekst\\\",e164:\\\"E.164 broj\\\",jwt:\\\"JWT\\\",template_literal:\\\"unos\\\"},i={nan:\\\"NaN\\\",string:\\\"tekst\\\",number:\\\"broj\\\",boolean:\\\"boolean\\\",array:\\\"niz\\\",object:\\\"objekt\\\",set:\\\"skup\\\",file:\\\"datoteka\\\",date:\\\"datum\\\",bigint:\\\"bigint\\\",symbol:\\\"simbol\\\",undefined:\\\"undefined\\\",null:\\\"null\\\",function:\\\"funkcija\\\",map:\\\"mapa\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Neispravan unos: očekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: očekuje se ${a}, a primljeno je ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Neispravna vrijednost: očekivano ${ie(n.values[0])}`:`Neispravna opcija: očekivano jedno od ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin),s=i[n.origin]??n.origin;return o?`Preveliko: očekivano da ${s??\\\"vrijednost\\\"} ima ${a}${n.maximum.toString()} ${o.unit??\\\"elemenata\\\"}`:`Preveliko: očekivano da ${s??\\\"vrijednost\\\"} bude ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin),s=i[n.origin]??n.origin;return o?`Premalo: očekivano da ${s} ima ${a}${n.minimum.toString()} ${o.unit}`:`Premalo: očekivano da ${s} bude ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Neispravan tekst: mora započinjati s \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Neispravan tekst: mora završavati s \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Neispravan tekst: mora sadržavati \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Neispravan tekst: mora odgovarati uzorku ${a.pattern}`:`Neispravna ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Neispravan broj: mora biti višekratnik od ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Neprepoznat${n.keys.length>1?\\\"i ključevi\\\":\\\" ključ\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Neispravan ključ u ${i[n.origin]??n.origin}`;case\\\"invalid_union\\\":return\\\"Neispravan unos\\\";case\\\"invalid_element\\\":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return\\\"Neispravan unos\\\"}}};function Pz(){return{localeError:Az()}}const Mz=()=>{const e={string:{unit:\\\"karakter\\\",verb:\\\"legyen\\\"},file:{unit:\\\"byte\\\",verb:\\\"legyen\\\"},array:{unit:\\\"elem\\\",verb:\\\"legyen\\\"},set:{unit:\\\"elem\\\",verb:\\\"legyen\\\"}};function t(n){return e[n]??null}const r={regex:\\\"bemenet\\\",email:\\\"email cím\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO időbélyeg\\\",date:\\\"ISO dátum\\\",time:\\\"ISO idő\\\",duration:\\\"ISO időintervallum\\\",ipv4:\\\"IPv4 cím\\\",ipv6:\\\"IPv6 cím\\\",cidrv4:\\\"IPv4 tartomány\\\",cidrv6:\\\"IPv6 tartomány\\\",base64:\\\"base64-kódolt string\\\",base64url:\\\"base64url-kódolt string\\\",json_string:\\\"JSON string\\\",e164:\\\"E.164 szám\\\",jwt:\\\"JWT\\\",template_literal:\\\"bemenet\\\"},i={nan:\\\"NaN\\\",number:\\\"szám\\\",array:\\\"tömb\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Érvénytelen bemenet: a várt érték instanceof ${n.expected}, a kapott érték ${s}`:`Érvénytelen bemenet: a várt érték ${a}, a kapott érték ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${ie(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Túl nagy: ${n.origin??\\\"érték\\\"} mérete túl nagy ${a}${n.maximum.toString()} ${o.unit??\\\"elem\\\"}`:`Túl nagy: a bemeneti érték ${n.origin??\\\"érték\\\"} túl nagy: ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${a}${n.minimum.toString()} ${o.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Érvénytelen string: \\\"${a.prefix}\\\" értékkel kell kezdődnie`:a.format===\\\"ends_with\\\"?`Érvénytelen string: \\\"${a.suffix}\\\" értékkel kell végződnie`:a.format===\\\"includes\\\"?`Érvénytelen string: \\\"${a.includes}\\\" értéket kell tartalmaznia`:a.format===\\\"regex\\\"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case\\\"unrecognized_keys\\\":return`Ismeretlen kulcs${n.keys.length>1?\\\"s\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Érvénytelen kulcs ${n.origin}`;case\\\"invalid_union\\\":return\\\"Érvénytelen bemenet\\\";case\\\"invalid_element\\\":return`Érvénytelen érték: ${n.origin}`;default:return\\\"Érvénytelen bemenet\\\"}}};function Lz(){return{localeError:Mz()}}function vS(e,t,r){return Math.abs(e)===1?t:r}function ba(e){if(!e)return\\\"\\\";const t=[\\\"ա\\\",\\\"ե\\\",\\\"ը\\\",\\\"ի\\\",\\\"ո\\\",\\\"ու\\\",\\\"օ\\\"],r=e[e.length-1];return e+(t.includes(r)?\\\"ն\\\":\\\"ը\\\")}const Oz=()=>{const e={string:{unit:{one:\\\"նշան\\\",many:\\\"նշաններ\\\"},verb:\\\"ունենալ\\\"},file:{unit:{one:\\\"բայթ\\\",many:\\\"բայթեր\\\"},verb:\\\"ունենալ\\\"},array:{unit:{one:\\\"տարր\\\",many:\\\"տարրեր\\\"},verb:\\\"ունենալ\\\"},set:{unit:{one:\\\"տարր\\\",many:\\\"տարրեր\\\"},verb:\\\"ունենալ\\\"}};function t(n){return e[n]??null}const r={regex:\\\"մուտք\\\",email:\\\"էլ. հասցե\\\",url:\\\"URL\\\",emoji:\\\"էմոջի\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO ամսաթիվ և ժամ\\\",date:\\\"ISO ամսաթիվ\\\",time:\\\"ISO ժամ\\\",duration:\\\"ISO տևողություն\\\",ipv4:\\\"IPv4 հասցե\\\",ipv6:\\\"IPv6 հասցե\\\",cidrv4:\\\"IPv4 միջակայք\\\",cidrv6:\\\"IPv6 միջակայք\\\",base64:\\\"base64 ձևաչափով տող\\\",base64url:\\\"base64url ձևաչափով տող\\\",json_string:\\\"JSON տող\\\",e164:\\\"E.164 համար\\\",jwt:\\\"JWT\\\",template_literal:\\\"մուտք\\\"},i={nan:\\\"NaN\\\",number:\\\"թիվ\\\",array:\\\"զանգված\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${n.expected}, ստացվել է ${s}`:`Սխալ մուտքագրում․ սպասվում էր ${a}, ստացվել է ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${ie(n.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);if(o){const s=Number(n.maximum),u=vS(s,o.unit.one,o.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ba(n.origin??\\\"արժեք\\\")} կունենա ${a}${n.maximum.toString()} ${u}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ba(n.origin??\\\"արժեք\\\")} լինի ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);if(o){const s=Number(n.minimum),u=vS(s,o.unit.one,o.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ba(n.origin)} կունենա ${a}${n.minimum.toString()} ${u}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ba(n.origin)} լինի ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Սխալ տող․ պետք է սկսվի \\\"${a.prefix}\\\"-ով`:a.format===\\\"ends_with\\\"?`Սխալ տող․ պետք է ավարտվի \\\"${a.suffix}\\\"-ով`:a.format===\\\"includes\\\"?`Սխալ տող․ պետք է պարունակի \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Սխալ տող․ պետք է համապատասխանի ${a.pattern} ձևաչափին`:`Սխալ ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${n.divisor}-ի`;case\\\"unrecognized_keys\\\":return`Չճանաչված բանալի${n.keys.length>1?\\\"ներ\\\":\\\"\\\"}. ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Սխալ բանալի ${ba(n.origin)}-ում`;case\\\"invalid_union\\\":return\\\"Սխալ մուտքագրում\\\";case\\\"invalid_element\\\":return`Սխալ արժեք ${ba(n.origin)}-ում`;default:return\\\"Սխալ մուտքագրում\\\"}}};function Ez(){return{localeError:Oz()}}const zz=()=>{const e={string:{unit:\\\"karakter\\\",verb:\\\"memiliki\\\"},file:{unit:\\\"byte\\\",verb:\\\"memiliki\\\"},array:{unit:\\\"item\\\",verb:\\\"memiliki\\\"},set:{unit:\\\"item\\\",verb:\\\"memiliki\\\"}};function t(n){return e[n]??null}const r={regex:\\\"input\\\",email:\\\"alamat email\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"tanggal dan waktu format ISO\\\",date:\\\"tanggal format ISO\\\",time:\\\"jam format ISO\\\",duration:\\\"durasi format ISO\\\",ipv4:\\\"alamat IPv4\\\",ipv6:\\\"alamat IPv6\\\",cidrv4:\\\"rentang alamat IPv4\\\",cidrv6:\\\"rentang alamat IPv6\\\",base64:\\\"string dengan enkode base64\\\",base64url:\\\"string dengan enkode base64url\\\",json_string:\\\"string JSON\\\",e164:\\\"angka E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"input\\\"},i={nan:\\\"NaN\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${a}, diterima ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Input tidak valid: diharapkan ${ie(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Terlalu besar: diharapkan ${n.origin??\\\"value\\\"} memiliki ${a}${n.maximum.toString()} ${o.unit??\\\"elemen\\\"}`:`Terlalu besar: diharapkan ${n.origin??\\\"value\\\"} menjadi ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Terlalu kecil: diharapkan ${n.origin} memiliki ${a}${n.minimum.toString()} ${o.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`String tidak valid: harus dimulai dengan \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`String tidak valid: harus berakhir dengan \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`String tidak valid: harus menyertakan \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${r[a.format]??n.format} tidak valid`}case\\\"not_multiple_of\\\":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Kunci tidak dikenali ${n.keys.length>1?\\\"s\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Kunci tidak valid di ${n.origin}`;case\\\"invalid_union\\\":return\\\"Input tidak valid\\\";case\\\"invalid_element\\\":return`Nilai tidak valid di ${n.origin}`;default:return\\\"Input tidak valid\\\"}}};function Rz(){return{localeError:zz()}}const Nz=()=>{const e={string:{unit:\\\"stafi\\\",verb:\\\"að hafa\\\"},file:{unit:\\\"bæti\\\",verb:\\\"að hafa\\\"},array:{unit:\\\"hluti\\\",verb:\\\"að hafa\\\"},set:{unit:\\\"hluti\\\",verb:\\\"að hafa\\\"}};function t(n){return e[n]??null}const r={regex:\\\"gildi\\\",email:\\\"netfang\\\",url:\\\"vefslóð\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO dagsetning og tími\\\",date:\\\"ISO dagsetning\\\",time:\\\"ISO tími\\\",duration:\\\"ISO tímalengd\\\",ipv4:\\\"IPv4 address\\\",ipv6:\\\"IPv6 address\\\",cidrv4:\\\"IPv4 range\\\",cidrv6:\\\"IPv6 range\\\",base64:\\\"base64-encoded strengur\\\",base64url:\\\"base64url-encoded strengur\\\",json_string:\\\"JSON strengur\\\",e164:\\\"E.164 tölugildi\\\",jwt:\\\"JWT\\\",template_literal:\\\"gildi\\\"},i={nan:\\\"NaN\\\",number:\\\"númer\\\",array:\\\"fylki\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Rangt gildi: Þú slóst inn ${s} þar sem á að vera instanceof ${n.expected}`:`Rangt gildi: Þú slóst inn ${s} þar sem á að vera ${a}`}case\\\"invalid_value\\\":return n.values.length===1?`Rangt gildi: gert ráð fyrir ${ie(n.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Of stórt: gert er ráð fyrir að ${n.origin??\\\"gildi\\\"} hafi ${a}${n.maximum.toString()} ${o.unit??\\\"hluti\\\"}`:`Of stórt: gert er ráð fyrir að ${n.origin??\\\"gildi\\\"} sé ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Of lítið: gert er ráð fyrir að ${n.origin} hafi ${a}${n.minimum.toString()} ${o.unit}`:`Of lítið: gert er ráð fyrir að ${n.origin} sé ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Ógildur strengur: verður að byrja á \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Ógildur strengur: verður að enda á \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Ógildur strengur: verður að innihalda \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Ógildur strengur: verður að fylgja mynstri ${a.pattern}`:`Rangt ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Röng tala: verður að vera margfeldi af ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Óþekkt ${n.keys.length>1?\\\"ir lyklar\\\":\\\"ur lykill\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Rangur lykill í ${n.origin}`;case\\\"invalid_union\\\":return\\\"Rangt gildi\\\";case\\\"invalid_element\\\":return`Rangt gildi í ${n.origin}`;default:return\\\"Rangt gildi\\\"}}};function Uz(){return{localeError:Nz()}}const Bz=()=>{const e={string:{unit:\\\"caratteri\\\",verb:\\\"avere\\\"},file:{unit:\\\"byte\\\",verb:\\\"avere\\\"},array:{unit:\\\"elementi\\\",verb:\\\"avere\\\"},set:{unit:\\\"elementi\\\",verb:\\\"avere\\\"}};function t(n){return e[n]??null}const r={regex:\\\"input\\\",email:\\\"indirizzo email\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"data e ora ISO\\\",date:\\\"data ISO\\\",time:\\\"ora ISO\\\",duration:\\\"durata ISO\\\",ipv4:\\\"indirizzo IPv4\\\",ipv6:\\\"indirizzo IPv6\\\",cidrv4:\\\"intervallo IPv4\\\",cidrv6:\\\"intervallo IPv6\\\",base64:\\\"stringa codificata in base64\\\",base64url:\\\"URL codificata in base64\\\",json_string:\\\"stringa JSON\\\",e164:\\\"numero E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"input\\\"},i={nan:\\\"NaN\\\",number:\\\"numero\\\",array:\\\"vettore\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${a}, ricevuto ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Input non valido: atteso ${ie(n.values[0])}`:`Opzione non valida: atteso uno tra ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Troppo grande: ${n.origin??\\\"valore\\\"} deve avere ${a}${n.maximum.toString()} ${o.unit??\\\"elementi\\\"}`:`Troppo grande: ${n.origin??\\\"valore\\\"} deve essere ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Troppo piccolo: ${n.origin} deve avere ${a}${n.minimum.toString()} ${o.unit}`:`Troppo piccolo: ${n.origin} deve essere ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Stringa non valida: deve iniziare con \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Stringa non valida: deve terminare con \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Stringa non valida: deve includere \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Input non valido: ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Chiav${n.keys.length>1?\\\"i\\\":\\\"e\\\"} non riconosciut${n.keys.length>1?\\\"e\\\":\\\"a\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Chiave non valida in ${n.origin}`;case\\\"invalid_union\\\":return\\\"Input non valido\\\";case\\\"invalid_element\\\":return`Valore non valido in ${n.origin}`;default:return\\\"Input non valido\\\"}}};function Fz(){return{localeError:Bz()}}const jz=()=>{const e={string:{unit:\\\"文字\\\",verb:\\\"である\\\"},file:{unit:\\\"バイト\\\",verb:\\\"である\\\"},array:{unit:\\\"要素\\\",verb:\\\"である\\\"},set:{unit:\\\"要素\\\",verb:\\\"である\\\"}};function t(n){return e[n]??null}const r={regex:\\\"入力値\\\",email:\\\"メールアドレス\\\",url:\\\"URL\\\",emoji:\\\"絵文字\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO日時\\\",date:\\\"ISO日付\\\",time:\\\"ISO時刻\\\",duration:\\\"ISO期間\\\",ipv4:\\\"IPv4アドレス\\\",ipv6:\\\"IPv6アドレス\\\",cidrv4:\\\"IPv4範囲\\\",cidrv6:\\\"IPv6範囲\\\",base64:\\\"base64エンコード文字列\\\",base64url:\\\"base64urlエンコード文字列\\\",json_string:\\\"JSON文字列\\\",e164:\\\"E.164番号\\\",jwt:\\\"JWT\\\",template_literal:\\\"入力値\\\"},i={nan:\\\"NaN\\\",number:\\\"数値\\\",array:\\\"配列\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`無効な入力: instanceof ${n.expected}が期待されましたが、${s}が入力されました`:`無効な入力: ${a}が期待されましたが、${s}が入力されました`}case\\\"invalid_value\\\":return n.values.length===1?`無効な入力: ${ie(n.values[0])}が期待されました`:`無効な選択: ${B(n.values,\\\"、\\\")}のいずれかである必要があります`;case\\\"too_big\\\":{const a=n.inclusive?\\\"以下である\\\":\\\"より小さい\\\",o=t(n.origin);return o?`大きすぎる値: ${n.origin??\\\"値\\\"}は${n.maximum.toString()}${o.unit??\\\"要素\\\"}${a}必要があります`:`大きすぎる値: ${n.origin??\\\"値\\\"}は${n.maximum.toString()}${a}必要があります`}case\\\"too_small\\\":{const a=n.inclusive?\\\"以上である\\\":\\\"より大きい\\\",o=t(n.origin);return o?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${o.unit}${a}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${a}必要があります`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`無効な文字列: \\\"${a.prefix}\\\"で始まる必要があります`:a.format===\\\"ends_with\\\"?`無効な文字列: \\\"${a.suffix}\\\"で終わる必要があります`:a.format===\\\"includes\\\"?`無効な文字列: \\\"${a.includes}\\\"を含む必要があります`:a.format===\\\"regex\\\"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`無効な数値: ${n.divisor}の倍数である必要があります`;case\\\"unrecognized_keys\\\":return`認識されていないキー${n.keys.length>1?\\\"群\\\":\\\"\\\"}: ${B(n.keys,\\\"、\\\")}`;case\\\"invalid_key\\\":return`${n.origin}内の無効なキー`;case\\\"invalid_union\\\":return\\\"無効な入力\\\";case\\\"invalid_element\\\":return`${n.origin}内の無効な値`;default:return\\\"無効な入力\\\"}}};function Zz(){return{localeError:jz()}}const Vz=()=>{const e={string:{unit:\\\"სიმბოლო\\\",verb:\\\"უნდა შეიცავდეს\\\"},file:{unit:\\\"ბაიტი\\\",verb:\\\"უნდა შეიცავდეს\\\"},array:{unit:\\\"ელემენტი\\\",verb:\\\"უნდა შეიცავდეს\\\"},set:{unit:\\\"ელემენტი\\\",verb:\\\"უნდა შეიცავდეს\\\"}};function t(n){return e[n]??null}const r={regex:\\\"შეყვანა\\\",email:\\\"ელ-ფოსტის მისამართი\\\",url:\\\"URL\\\",emoji:\\\"ემოჯი\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"თარიღი-დრო\\\",date:\\\"თარიღი\\\",time:\\\"დრო\\\",duration:\\\"ხანგრძლივობა\\\",ipv4:\\\"IPv4 მისამართი\\\",ipv6:\\\"IPv6 მისამართი\\\",cidrv4:\\\"IPv4 დიაპაზონი\\\",cidrv6:\\\"IPv6 დიაპაზონი\\\",base64:\\\"base64-კოდირებული ველი\\\",base64url:\\\"base64url-კოდირებული ველი\\\",json_string:\\\"JSON ველი\\\",e164:\\\"E.164 ნომერი\\\",jwt:\\\"JWT\\\",template_literal:\\\"შეყვანა\\\"},i={nan:\\\"NaN\\\",number:\\\"რიცხვი\\\",string:\\\"ველი\\\",boolean:\\\"ბულეანი\\\",function:\\\"ფუნქცია\\\",array:\\\"მასივი\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${n.expected}, მიღებული ${s}`:`არასწორი შეყვანა: მოსალოდნელი ${a}, მიღებული ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${ie(n.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${B(n.values,\\\"|\\\")}-დან`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`ზედმეტად დიდი: მოსალოდნელი ${n.origin??\\\"მნიშვნელობა\\\"} ${o.verb} ${a}${n.maximum.toString()} ${o.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${n.origin??\\\"მნიშვნელობა\\\"} იყოს ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`ზედმეტად პატარა: მოსალოდნელი ${n.origin} ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${n.origin} იყოს ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`არასწორი ველი: უნდა იწყებოდეს \\\"${a.prefix}\\\"-ით`:a.format===\\\"ends_with\\\"?`არასწორი ველი: უნდა მთავრდებოდეს \\\"${a.suffix}\\\"-ით`:a.format===\\\"includes\\\"?`არასწორი ველი: უნდა შეიცავდეს \\\"${a.includes}\\\"-ს`:a.format===\\\"regex\\\"?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${a.pattern}`:`არასწორი ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`არასწორი რიცხვი: უნდა იყოს ${n.divisor}-ის ჯერადი`;case\\\"unrecognized_keys\\\":return`უცნობი გასაღებ${n.keys.length>1?\\\"ები\\\":\\\"ი\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`არასწორი გასაღები ${n.origin}-ში`;case\\\"invalid_union\\\":return\\\"არასწორი შეყვანა\\\";case\\\"invalid_element\\\":return`არასწორი მნიშვნელობა ${n.origin}-ში`;default:return\\\"არასწორი შეყვანა\\\"}}};function Gz(){return{localeError:Vz()}}const Hz=()=>{const e={string:{unit:\\\"តួអក្សរ\\\",verb:\\\"គួរមាន\\\"},file:{unit:\\\"បៃ\\\",verb:\\\"គួរមាន\\\"},array:{unit:\\\"ធាតុ\\\",verb:\\\"គួរមាន\\\"},set:{unit:\\\"ធាតុ\\\",verb:\\\"គួរមាន\\\"}};function t(n){return e[n]??null}const r={regex:\\\"ទិន្នន័យបញ្ចូល\\\",email:\\\"អាសយដ្ឋានអ៊ីមែល\\\",url:\\\"URL\\\",emoji:\\\"សញ្ញាអារម្មណ៍\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"កាលបរិច្ឆេទ និងម៉ោង ISO\\\",date:\\\"កាលបរិច្ឆេទ ISO\\\",time:\\\"ម៉ោង ISO\\\",duration:\\\"រយៈពេល ISO\\\",ipv4:\\\"អាសយដ្ឋាន IPv4\\\",ipv6:\\\"អាសយដ្ឋាន IPv6\\\",cidrv4:\\\"ដែនអាសយដ្ឋាន IPv4\\\",cidrv6:\\\"ដែនអាសយដ្ឋាន IPv6\\\",base64:\\\"ខ្សែអក្សរអ៊ិកូដ base64\\\",base64url:\\\"ខ្សែអក្សរអ៊ិកូដ base64url\\\",json_string:\\\"ខ្សែអក្សរ JSON\\\",e164:\\\"លេខ E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"ទិន្នន័យបញ្ចូល\\\"},i={nan:\\\"NaN\\\",number:\\\"លេខ\\\",array:\\\"អារេ (Array)\\\",null:\\\"គ្មានតម្លៃ (null)\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${n.expected} ប៉ុន្តែទទួលបាន ${s}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${a} ប៉ុន្តែទទួលបាន ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${ie(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`ធំពេក៖ ត្រូវការ ${n.origin??\\\"តម្លៃ\\\"} ${a} ${n.maximum.toString()} ${o.unit??\\\"ធាតុ\\\"}`:`ធំពេក៖ ត្រូវការ ${n.origin??\\\"តម្លៃ\\\"} ${a} ${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`តូចពេក៖ ត្រូវការ ${n.origin} ${a} ${n.minimum.toString()} ${o.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${a} ${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case\\\"unrecognized_keys\\\":return`រកឃើញសោមិនស្គាល់៖ ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case\\\"invalid_union\\\":return\\\"ទិន្នន័យមិនត្រឹមត្រូវ\\\";case\\\"invalid_element\\\":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return\\\"ទិន្នន័យមិនត្រឹមត្រូវ\\\"}}};function z$(){return{localeError:Hz()}}function Wz(){return z$()}const qz=()=>{const e={string:{unit:\\\"문자\\\",verb:\\\"to have\\\"},file:{unit:\\\"바이트\\\",verb:\\\"to have\\\"},array:{unit:\\\"개\\\",verb:\\\"to have\\\"},set:{unit:\\\"개\\\",verb:\\\"to have\\\"}};function t(n){return e[n]??null}const r={regex:\\\"입력\\\",email:\\\"이메일 주소\\\",url:\\\"URL\\\",emoji:\\\"이모지\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO 날짜시간\\\",date:\\\"ISO 날짜\\\",time:\\\"ISO 시간\\\",duration:\\\"ISO 기간\\\",ipv4:\\\"IPv4 주소\\\",ipv6:\\\"IPv6 주소\\\",cidrv4:\\\"IPv4 범위\\\",cidrv6:\\\"IPv6 범위\\\",base64:\\\"base64 인코딩 문자열\\\",base64url:\\\"base64url 인코딩 문자열\\\",json_string:\\\"JSON 문자열\\\",e164:\\\"E.164 번호\\\",jwt:\\\"JWT\\\",template_literal:\\\"입력\\\"},i={nan:\\\"NaN\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`잘못된 입력: 예상 타입은 instanceof ${n.expected}, 받은 타입은 ${s}입니다`:`잘못된 입력: 예상 타입은 ${a}, 받은 타입은 ${s}입니다`}case\\\"invalid_value\\\":return n.values.length===1?`잘못된 입력: 값은 ${ie(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${B(n.values,\\\"또는 \\\")} 중 하나여야 합니다`;case\\\"too_big\\\":{const a=n.inclusive?\\\"이하\\\":\\\"미만\\\",o=a===\\\"미만\\\"?\\\"이어야 합니다\\\":\\\"여야 합니다\\\",s=t(n.origin),u=(s==null?void 0:s.unit)??\\\"요소\\\";return s?`${n.origin??\\\"값\\\"}이 너무 큽니다: ${n.maximum.toString()}${u} ${a}${o}`:`${n.origin??\\\"값\\\"}이 너무 큽니다: ${n.maximum.toString()} ${a}${o}`}case\\\"too_small\\\":{const a=n.inclusive?\\\"이상\\\":\\\"초과\\\",o=a===\\\"이상\\\"?\\\"이어야 합니다\\\":\\\"여야 합니다\\\",s=t(n.origin),u=(s==null?void 0:s.unit)??\\\"요소\\\";return s?`${n.origin??\\\"값\\\"}이 너무 작습니다: ${n.minimum.toString()}${u} ${a}${o}`:`${n.origin??\\\"값\\\"}이 너무 작습니다: ${n.minimum.toString()} ${a}${o}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`잘못된 문자열: \\\"${a.prefix}\\\"(으)로 시작해야 합니다`:a.format===\\\"ends_with\\\"?`잘못된 문자열: \\\"${a.suffix}\\\"(으)로 끝나야 합니다`:a.format===\\\"includes\\\"?`잘못된 문자열: \\\"${a.includes}\\\"을(를) 포함해야 합니다`:a.format===\\\"regex\\\"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case\\\"unrecognized_keys\\\":return`인식할 수 없는 키: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`잘못된 키: ${n.origin}`;case\\\"invalid_union\\\":return\\\"잘못된 입력\\\";case\\\"invalid_element\\\":return`잘못된 값: ${n.origin}`;default:return\\\"잘못된 입력\\\"}}};function Yz(){return{localeError:qz()}}const Ko=e=>e.charAt(0).toUpperCase()+e.slice(1);function hS(e){const t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?\\\"many\\\":r===1?\\\"one\\\":\\\"few\\\"}const Xz=()=>{const e={string:{unit:{one:\\\"simbolis\\\",few:\\\"simboliai\\\",many:\\\"simbolių\\\"},verb:{smaller:{inclusive:\\\"turi būti ne ilgesnė kaip\\\",notInclusive:\\\"turi būti trumpesnė kaip\\\"},bigger:{inclusive:\\\"turi būti ne trumpesnė kaip\\\",notInclusive:\\\"turi būti ilgesnė kaip\\\"}}},file:{unit:{one:\\\"baitas\\\",few:\\\"baitai\\\",many:\\\"baitų\\\"},verb:{smaller:{inclusive:\\\"turi būti ne didesnis kaip\\\",notInclusive:\\\"turi būti mažesnis kaip\\\"},bigger:{inclusive:\\\"turi būti ne mažesnis kaip\\\",notInclusive:\\\"turi būti didesnis kaip\\\"}}},array:{unit:{one:\\\"elementą\\\",few:\\\"elementus\\\",many:\\\"elementų\\\"},verb:{smaller:{inclusive:\\\"turi turėti ne daugiau kaip\\\",notInclusive:\\\"turi turėti mažiau kaip\\\"},bigger:{inclusive:\\\"turi turėti ne mažiau kaip\\\",notInclusive:\\\"turi turėti daugiau kaip\\\"}}},set:{unit:{one:\\\"elementą\\\",few:\\\"elementus\\\",many:\\\"elementų\\\"},verb:{smaller:{inclusive:\\\"turi turėti ne daugiau kaip\\\",notInclusive:\\\"turi turėti mažiau kaip\\\"},bigger:{inclusive:\\\"turi turėti ne mažiau kaip\\\",notInclusive:\\\"turi turėti daugiau kaip\\\"}}}};function t(n,a,o,s){const u=e[n]??null;return u===null?u:{unit:u.unit[a],verb:u.verb[s][o?\\\"inclusive\\\":\\\"notInclusive\\\"]}}const r={regex:\\\"įvestis\\\",email:\\\"el. pašto adresas\\\",url:\\\"URL\\\",emoji:\\\"jaustukas\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO data ir laikas\\\",date:\\\"ISO data\\\",time:\\\"ISO laikas\\\",duration:\\\"ISO trukmė\\\",ipv4:\\\"IPv4 adresas\\\",ipv6:\\\"IPv6 adresas\\\",cidrv4:\\\"IPv4 tinklo prefiksas (CIDR)\\\",cidrv6:\\\"IPv6 tinklo prefiksas (CIDR)\\\",base64:\\\"base64 užkoduota eilutė\\\",base64url:\\\"base64url užkoduota eilutė\\\",json_string:\\\"JSON eilutė\\\",e164:\\\"E.164 numeris\\\",jwt:\\\"JWT\\\",template_literal:\\\"įvestis\\\"},i={nan:\\\"NaN\\\",number:\\\"skaičius\\\",bigint:\\\"sveikasis skaičius\\\",string:\\\"eilutė\\\",boolean:\\\"loginė reikšmė\\\",undefined:\\\"neapibrėžta reikšmė\\\",function:\\\"funkcija\\\",symbol:\\\"simbolis\\\",array:\\\"masyvas\\\",object:\\\"objektas\\\",null:\\\"nulinė reikšmė\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tikėtasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tikėtasi - ${a}`}case\\\"invalid_value\\\":return n.values.length===1?`Privalo būti ${ie(n.values[0])}`:`Privalo būti vienas iš ${B(n.values,\\\"|\\\")} pasirinkimų`;case\\\"too_big\\\":{const a=i[n.origin]??n.origin,o=t(n.origin,hS(Number(n.maximum)),n.inclusive??!1,\\\"smaller\\\");if(o!=null&&o.verb)return`${Ko(a??n.origin??\\\"reikšmė\\\")} ${o.verb} ${n.maximum.toString()} ${o.unit??\\\"elementų\\\"}`;const s=n.inclusive?\\\"ne didesnis kaip\\\":\\\"mažesnis kaip\\\";return`${Ko(a??n.origin??\\\"reikšmė\\\")} turi būti ${s} ${n.maximum.toString()} ${o==null?void 0:o.unit}`}case\\\"too_small\\\":{const a=i[n.origin]??n.origin,o=t(n.origin,hS(Number(n.minimum)),n.inclusive??!1,\\\"bigger\\\");if(o!=null&&o.verb)return`${Ko(a??n.origin??\\\"reikšmė\\\")} ${o.verb} ${n.minimum.toString()} ${o.unit??\\\"elementų\\\"}`;const s=n.inclusive?\\\"ne mažesnis kaip\\\":\\\"didesnis kaip\\\";return`${Ko(a??n.origin??\\\"reikšmė\\\")} turi būti ${s} ${n.minimum.toString()} ${o==null?void 0:o.unit}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Eilutė privalo prasidėti \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Eilutė privalo pasibaigti \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Eilutė privalo įtraukti \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Eilutė privalo atitikti ${a.pattern}`:`Neteisingas ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Skaičius privalo būti ${n.divisor} kartotinis.`;case\\\"unrecognized_keys\\\":return`Neatpažint${n.keys.length>1?\\\"i\\\":\\\"as\\\"} rakt${n.keys.length>1?\\\"ai\\\":\\\"as\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return\\\"Rastas klaidingas raktas\\\";case\\\"invalid_union\\\":return\\\"Klaidinga įvestis\\\";case\\\"invalid_element\\\":{const a=i[n.origin]??n.origin;return`${Ko(a??n.origin??\\\"reikšmė\\\")} turi klaidingą įvestį`}default:return\\\"Klaidinga įvestis\\\"}}};function Kz(){return{localeError:Xz()}}const Jz=()=>{const e={string:{unit:\\\"знаци\\\",verb:\\\"да имаат\\\"},file:{unit:\\\"бајти\\\",verb:\\\"да имаат\\\"},array:{unit:\\\"ставки\\\",verb:\\\"да имаат\\\"},set:{unit:\\\"ставки\\\",verb:\\\"да имаат\\\"}};function t(n){return e[n]??null}const r={regex:\\\"внес\\\",email:\\\"адреса на е-пошта\\\",url:\\\"URL\\\",emoji:\\\"емоџи\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO датум и време\\\",date:\\\"ISO датум\\\",time:\\\"ISO време\\\",duration:\\\"ISO времетраење\\\",ipv4:\\\"IPv4 адреса\\\",ipv6:\\\"IPv6 адреса\\\",cidrv4:\\\"IPv4 опсег\\\",cidrv6:\\\"IPv6 опсег\\\",base64:\\\"base64-енкодирана низа\\\",base64url:\\\"base64url-енкодирана низа\\\",json_string:\\\"JSON низа\\\",e164:\\\"E.164 број\\\",jwt:\\\"JWT\\\",template_literal:\\\"внес\\\"},i={nan:\\\"NaN\\\",number:\\\"број\\\",array:\\\"низа\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Грешен внес: се очекува instanceof ${n.expected}, примено ${s}`:`Грешен внес: се очекува ${a}, примено ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Invalid input: expected ${ie(n.values[0])}`:`Грешана опција: се очекува една ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Премногу голем: се очекува ${n.origin??\\\"вредноста\\\"} да има ${a}${n.maximum.toString()} ${o.unit??\\\"елементи\\\"}`:`Премногу голем: се очекува ${n.origin??\\\"вредноста\\\"} да биде ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Премногу мал: се очекува ${n.origin} да има ${a}${n.minimum.toString()} ${o.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Неважечка низа: мора да започнува со \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Неважечка низа: мора да завршува со \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Неважечка низа: мора да вклучува \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Грешен број: мора да биде делив со ${n.divisor}`;case\\\"unrecognized_keys\\\":return`${n.keys.length>1?\\\"Непрепознаени клучеви\\\":\\\"Непрепознаен клуч\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Грешен клуч во ${n.origin}`;case\\\"invalid_union\\\":return\\\"Грешен внес\\\";case\\\"invalid_element\\\":return`Грешна вредност во ${n.origin}`;default:return\\\"Грешен внес\\\"}}};function Qz(){return{localeError:Jz()}}const e2=()=>{const e={string:{unit:\\\"aksara\\\",verb:\\\"mempunyai\\\"},file:{unit:\\\"bait\\\",verb:\\\"mempunyai\\\"},array:{unit:\\\"elemen\\\",verb:\\\"mempunyai\\\"},set:{unit:\\\"elemen\\\",verb:\\\"mempunyai\\\"}};function t(n){return e[n]??null}const r={regex:\\\"input\\\",email:\\\"alamat e-mel\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"tarikh masa ISO\\\",date:\\\"tarikh ISO\\\",time:\\\"masa ISO\\\",duration:\\\"tempoh ISO\\\",ipv4:\\\"alamat IPv4\\\",ipv6:\\\"alamat IPv6\\\",cidrv4:\\\"julat IPv4\\\",cidrv6:\\\"julat IPv6\\\",base64:\\\"string dikodkan base64\\\",base64url:\\\"string dikodkan base64url\\\",json_string:\\\"string JSON\\\",e164:\\\"nombor E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"input\\\"},i={nan:\\\"NaN\\\",number:\\\"nombor\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${a}, diterima ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Input tidak sah: dijangka ${ie(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Terlalu besar: dijangka ${n.origin??\\\"nilai\\\"} ${o.verb} ${a}${n.maximum.toString()} ${o.unit??\\\"elemen\\\"}`:`Terlalu besar: dijangka ${n.origin??\\\"nilai\\\"} adalah ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Terlalu kecil: dijangka ${n.origin} ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`String tidak sah: mesti bermula dengan \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`String tidak sah: mesti berakhir dengan \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`String tidak sah: mesti mengandungi \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${r[a.format]??n.format} tidak sah`}case\\\"not_multiple_of\\\":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Kunci tidak dikenali: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Kunci tidak sah dalam ${n.origin}`;case\\\"invalid_union\\\":return\\\"Input tidak sah\\\";case\\\"invalid_element\\\":return`Nilai tidak sah dalam ${n.origin}`;default:return\\\"Input tidak sah\\\"}}};function t2(){return{localeError:e2()}}const r2=()=>{const e={string:{unit:\\\"tekens\\\",verb:\\\"heeft\\\"},file:{unit:\\\"bytes\\\",verb:\\\"heeft\\\"},array:{unit:\\\"elementen\\\",verb:\\\"heeft\\\"},set:{unit:\\\"elementen\\\",verb:\\\"heeft\\\"}};function t(n){return e[n]??null}const r={regex:\\\"invoer\\\",email:\\\"emailadres\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO datum en tijd\\\",date:\\\"ISO datum\\\",time:\\\"ISO tijd\\\",duration:\\\"ISO duur\\\",ipv4:\\\"IPv4-adres\\\",ipv6:\\\"IPv6-adres\\\",cidrv4:\\\"IPv4-bereik\\\",cidrv6:\\\"IPv6-bereik\\\",base64:\\\"base64-gecodeerde tekst\\\",base64url:\\\"base64 URL-gecodeerde tekst\\\",json_string:\\\"JSON string\\\",e164:\\\"E.164-nummer\\\",jwt:\\\"JWT\\\",template_literal:\\\"invoer\\\"},i={nan:\\\"NaN\\\",number:\\\"getal\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${a}, ontving ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Ongeldige invoer: verwacht ${ie(n.values[0])}`:`Ongeldige optie: verwacht één van ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin),s=n.origin===\\\"date\\\"?\\\"laat\\\":n.origin===\\\"string\\\"?\\\"lang\\\":\\\"groot\\\";return o?`Te ${s}: verwacht dat ${n.origin??\\\"waarde\\\"} ${a}${n.maximum.toString()} ${o.unit??\\\"elementen\\\"} ${o.verb}`:`Te ${s}: verwacht dat ${n.origin??\\\"waarde\\\"} ${a}${n.maximum.toString()} is`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin),s=n.origin===\\\"date\\\"?\\\"vroeg\\\":n.origin===\\\"string\\\"?\\\"kort\\\":\\\"klein\\\";return o?`Te ${s}: verwacht dat ${n.origin} ${a}${n.minimum.toString()} ${o.unit} ${o.verb}`:`Te ${s}: verwacht dat ${n.origin} ${a}${n.minimum.toString()} is`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Ongeldige tekst: moet met \\\"${a.prefix}\\\" beginnen`:a.format===\\\"ends_with\\\"?`Ongeldige tekst: moet op \\\"${a.suffix}\\\" eindigen`:a.format===\\\"includes\\\"?`Ongeldige tekst: moet \\\"${a.includes}\\\" bevatten`:a.format===\\\"regex\\\"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case\\\"unrecognized_keys\\\":return`Onbekende key${n.keys.length>1?\\\"s\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Ongeldige key in ${n.origin}`;case\\\"invalid_union\\\":return\\\"Ongeldige invoer\\\";case\\\"invalid_element\\\":return`Ongeldige waarde in ${n.origin}`;default:return\\\"Ongeldige invoer\\\"}}};function n2(){return{localeError:r2()}}const i2=()=>{const e={string:{unit:\\\"tegn\\\",verb:\\\"å ha\\\"},file:{unit:\\\"bytes\\\",verb:\\\"å ha\\\"},array:{unit:\\\"elementer\\\",verb:\\\"å inneholde\\\"},set:{unit:\\\"elementer\\\",verb:\\\"å inneholde\\\"}};function t(n){return e[n]??null}const r={regex:\\\"input\\\",email:\\\"e-postadresse\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO dato- og klokkeslett\\\",date:\\\"ISO-dato\\\",time:\\\"ISO-klokkeslett\\\",duration:\\\"ISO-varighet\\\",ipv4:\\\"IPv4-område\\\",ipv6:\\\"IPv6-område\\\",cidrv4:\\\"IPv4-spekter\\\",cidrv6:\\\"IPv6-spekter\\\",base64:\\\"base64-enkodet streng\\\",base64url:\\\"base64url-enkodet streng\\\",json_string:\\\"JSON-streng\\\",e164:\\\"E.164-nummer\\\",jwt:\\\"JWT\\\",template_literal:\\\"input\\\"},i={nan:\\\"NaN\\\",number:\\\"tall\\\",array:\\\"liste\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${a}, fikk ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Ugyldig verdi: forventet ${ie(n.values[0])}`:`Ugyldig valg: forventet en av ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`For stor(t): forventet ${n.origin??\\\"value\\\"} til å ha ${a}${n.maximum.toString()} ${o.unit??\\\"elementer\\\"}`:`For stor(t): forventet ${n.origin??\\\"value\\\"} til å ha ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`For lite(n): forventet ${n.origin} til å ha ${a}${n.minimum.toString()} ${o.unit}`:`For lite(n): forventet ${n.origin} til å ha ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Ugyldig streng: må starte med \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Ugyldig streng: må ende med \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Ugyldig streng: må inneholde \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case\\\"unrecognized_keys\\\":return`${n.keys.length>1?\\\"Ukjente nøkler\\\":\\\"Ukjent nøkkel\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Ugyldig nøkkel i ${n.origin}`;case\\\"invalid_union\\\":return\\\"Ugyldig input\\\";case\\\"invalid_element\\\":return`Ugyldig verdi i ${n.origin}`;default:return\\\"Ugyldig input\\\"}}};function a2(){return{localeError:i2()}}const o2=()=>{const e={string:{unit:\\\"harf\\\",verb:\\\"olmalıdır\\\"},file:{unit:\\\"bayt\\\",verb:\\\"olmalıdır\\\"},array:{unit:\\\"unsur\\\",verb:\\\"olmalıdır\\\"},set:{unit:\\\"unsur\\\",verb:\\\"olmalıdır\\\"}};function t(n){return e[n]??null}const r={regex:\\\"giren\\\",email:\\\"epostagâh\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO hengâmı\\\",date:\\\"ISO tarihi\\\",time:\\\"ISO zamanı\\\",duration:\\\"ISO müddeti\\\",ipv4:\\\"IPv4 nişânı\\\",ipv6:\\\"IPv6 nişânı\\\",cidrv4:\\\"IPv4 menzili\\\",cidrv6:\\\"IPv6 menzili\\\",base64:\\\"base64-şifreli metin\\\",base64url:\\\"base64url-şifreli metin\\\",json_string:\\\"JSON metin\\\",e164:\\\"E.164 sayısı\\\",jwt:\\\"JWT\\\",template_literal:\\\"giren\\\"},i={nan:\\\"NaN\\\",number:\\\"numara\\\",array:\\\"saf\\\",null:\\\"gayb\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Fâsit giren: umulan instanceof ${n.expected}, alınan ${s}`:`Fâsit giren: umulan ${a}, alınan ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Fâsit giren: umulan ${ie(n.values[0])}`:`Fâsit tercih: mûteberler ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Fazla büyük: ${n.origin??\\\"value\\\"}, ${a}${n.maximum.toString()} ${o.unit??\\\"elements\\\"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??\\\"value\\\"}, ${a}${n.maximum.toString()} olmalıydı.`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Fazla küçük: ${n.origin}, ${a}${n.minimum.toString()} ${o.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${a}${n.minimum.toString()} olmalıydı.`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Fâsit metin: \\\"${a.prefix}\\\" ile başlamalı.`:a.format===\\\"ends_with\\\"?`Fâsit metin: \\\"${a.suffix}\\\" ile bitmeli.`:a.format===\\\"includes\\\"?`Fâsit metin: \\\"${a.includes}\\\" ihtivâ etmeli.`:a.format===\\\"regex\\\"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case\\\"unrecognized_keys\\\":return`Tanınmayan anahtar ${n.keys.length>1?\\\"s\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`${n.origin} için tanınmayan anahtar var.`;case\\\"invalid_union\\\":return\\\"Giren tanınamadı.\\\";case\\\"invalid_element\\\":return`${n.origin} için tanınmayan kıymet var.`;default:return\\\"Kıymet tanınamadı.\\\"}}};function s2(){return{localeError:o2()}}const u2=()=>{const e={string:{unit:\\\"توکي\\\",verb:\\\"ولري\\\"},file:{unit:\\\"بایټس\\\",verb:\\\"ولري\\\"},array:{unit:\\\"توکي\\\",verb:\\\"ولري\\\"},set:{unit:\\\"توکي\\\",verb:\\\"ولري\\\"}};function t(n){return e[n]??null}const r={regex:\\\"ورودي\\\",email:\\\"بریښنالیک\\\",url:\\\"یو آر ال\\\",emoji:\\\"ایموجي\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"نیټه او وخت\\\",date:\\\"نېټه\\\",time:\\\"وخت\\\",duration:\\\"موده\\\",ipv4:\\\"د IPv4 پته\\\",ipv6:\\\"د IPv6 پته\\\",cidrv4:\\\"د IPv4 ساحه\\\",cidrv6:\\\"د IPv6 ساحه\\\",base64:\\\"base64-encoded متن\\\",base64url:\\\"base64url-encoded متن\\\",json_string:\\\"JSON متن\\\",e164:\\\"د E.164 شمېره\\\",jwt:\\\"JWT\\\",template_literal:\\\"ورودي\\\"},i={nan:\\\"NaN\\\",number:\\\"عدد\\\",array:\\\"ارې\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`ناسم ورودي: باید instanceof ${n.expected} وای, مګر ${s} ترلاسه شو`:`ناسم ورودي: باید ${a} وای, مګر ${s} ترلاسه شو`}case\\\"invalid_value\\\":return n.values.length===1?`ناسم ورودي: باید ${ie(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${B(n.values,\\\"|\\\")} څخه وای`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`ډیر لوی: ${n.origin??\\\"ارزښت\\\"} باید ${a}${n.maximum.toString()} ${o.unit??\\\"عنصرونه\\\"} ولري`:`ډیر لوی: ${n.origin??\\\"ارزښت\\\"} باید ${a}${n.maximum.toString()} وي`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`ډیر کوچنی: ${n.origin} باید ${a}${n.minimum.toString()} ${o.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${a}${n.minimum.toString()} وي`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`ناسم متن: باید د \\\"${a.prefix}\\\" سره پیل شي`:a.format===\\\"ends_with\\\"?`ناسم متن: باید د \\\"${a.suffix}\\\" سره پای ته ورسيږي`:a.format===\\\"includes\\\"?`ناسم متن: باید \\\"${a.includes}\\\" ولري`:a.format===\\\"regex\\\"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${r[a.format]??n.format} ناسم دی`}case\\\"not_multiple_of\\\":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case\\\"unrecognized_keys\\\":return`ناسم ${n.keys.length>1?\\\"کلیډونه\\\":\\\"کلیډ\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`ناسم کلیډ په ${n.origin} کې`;case\\\"invalid_union\\\":return\\\"ناسمه ورودي\\\";case\\\"invalid_element\\\":return`ناسم عنصر په ${n.origin} کې`;default:return\\\"ناسمه ورودي\\\"}}};function l2(){return{localeError:u2()}}const c2=()=>{const e={string:{unit:\\\"znaków\\\",verb:\\\"mieć\\\"},file:{unit:\\\"bajtów\\\",verb:\\\"mieć\\\"},array:{unit:\\\"elementów\\\",verb:\\\"mieć\\\"},set:{unit:\\\"elementów\\\",verb:\\\"mieć\\\"}};function t(n){return e[n]??null}const r={regex:\\\"wyrażenie\\\",email:\\\"adres email\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"data i godzina w formacie ISO\\\",date:\\\"data w formacie ISO\\\",time:\\\"godzina w formacie ISO\\\",duration:\\\"czas trwania ISO\\\",ipv4:\\\"adres IPv4\\\",ipv6:\\\"adres IPv6\\\",cidrv4:\\\"zakres IPv4\\\",cidrv6:\\\"zakres IPv6\\\",base64:\\\"ciąg znaków zakodowany w formacie base64\\\",base64url:\\\"ciąg znaków zakodowany w formacie base64url\\\",json_string:\\\"ciąg znaków w formacie JSON\\\",e164:\\\"liczba E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"wejście\\\"},i={nan:\\\"NaN\\\",number:\\\"liczba\\\",array:\\\"tablica\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawidłowe dane wejściowe: oczekiwano ${a}, otrzymano ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${ie(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Za duża wartość: oczekiwano, że ${n.origin??\\\"wartość\\\"} będzie mieć ${a}${n.maximum.toString()} ${o.unit??\\\"elementów\\\"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??\\\"wartość\\\"} będzie wynosić ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Za mała wartość: oczekiwano, że ${n.origin??\\\"wartość\\\"} będzie mieć ${a}${n.minimum.toString()} ${o.unit??\\\"elementów\\\"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??\\\"wartość\\\"} będzie wynosić ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Nieprawidłowy ciąg znaków: musi zaczynać się od \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Nieprawidłowy ciąg znaków: musi kończyć się na \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Nieprawidłowy ciąg znaków: musi zawierać \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Nierozpoznane klucze${n.keys.length>1?\\\"s\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Nieprawidłowy klucz w ${n.origin}`;case\\\"invalid_union\\\":return\\\"Nieprawidłowe dane wejściowe\\\";case\\\"invalid_element\\\":return`Nieprawidłowa wartość w ${n.origin}`;default:return\\\"Nieprawidłowe dane wejściowe\\\"}}};function f2(){return{localeError:c2()}}const d2=()=>{const e={string:{unit:\\\"caracteres\\\",verb:\\\"ter\\\"},file:{unit:\\\"bytes\\\",verb:\\\"ter\\\"},array:{unit:\\\"itens\\\",verb:\\\"ter\\\"},set:{unit:\\\"itens\\\",verb:\\\"ter\\\"}};function t(n){return e[n]??null}const r={regex:\\\"padrão\\\",email:\\\"endereço de e-mail\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"data e hora ISO\\\",date:\\\"data ISO\\\",time:\\\"hora ISO\\\",duration:\\\"duração ISO\\\",ipv4:\\\"endereço IPv4\\\",ipv6:\\\"endereço IPv6\\\",cidrv4:\\\"faixa de IPv4\\\",cidrv6:\\\"faixa de IPv6\\\",base64:\\\"texto codificado em base64\\\",base64url:\\\"URL codificada em base64\\\",json_string:\\\"texto JSON\\\",e164:\\\"número E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"entrada\\\"},i={nan:\\\"NaN\\\",number:\\\"número\\\",null:\\\"nulo\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Tipo inválido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inválido: esperado ${a}, recebido ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Entrada inválida: esperado ${ie(n.values[0])}`:`Opção inválida: esperada uma das ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Muito grande: esperado que ${n.origin??\\\"valor\\\"} tivesse ${a}${n.maximum.toString()} ${o.unit??\\\"elementos\\\"}`:`Muito grande: esperado que ${n.origin??\\\"valor\\\"} fosse ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Muito pequeno: esperado que ${n.origin} tivesse ${a}${n.minimum.toString()} ${o.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Texto inválido: deve começar com \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Texto inválido: deve terminar com \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Texto inválido: deve incluir \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${r[a.format]??n.format} inválido`}case\\\"not_multiple_of\\\":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Chave${n.keys.length>1?\\\"s\\\":\\\"\\\"} desconhecida${n.keys.length>1?\\\"s\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Chave inválida em ${n.origin}`;case\\\"invalid_union\\\":return\\\"Entrada inválida\\\";case\\\"invalid_element\\\":return`Valor inválido em ${n.origin}`;default:return\\\"Campo inválido\\\"}}};function v2(){return{localeError:d2()}}const h2=()=>{const e={string:{unit:\\\"caractere\\\",verb:\\\"să aibă\\\"},file:{unit:\\\"octeți\\\",verb:\\\"să aibă\\\"},array:{unit:\\\"elemente\\\",verb:\\\"să aibă\\\"},set:{unit:\\\"elemente\\\",verb:\\\"să aibă\\\"},map:{unit:\\\"intrări\\\",verb:\\\"să aibă\\\"}};function t(n){return e[n]??null}const r={regex:\\\"intrare\\\",email:\\\"adresă de email\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"dată și oră ISO\\\",date:\\\"dată ISO\\\",time:\\\"oră ISO\\\",duration:\\\"durată ISO\\\",ipv4:\\\"adresă IPv4\\\",ipv6:\\\"adresă IPv6\\\",mac:\\\"adresă MAC\\\",cidrv4:\\\"interval IPv4\\\",cidrv6:\\\"interval IPv6\\\",base64:\\\"șir codat base64\\\",base64url:\\\"șir codat base64url\\\",json_string:\\\"șir JSON\\\",e164:\\\"număr E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"intrare\\\"},i={nan:\\\"NaN\\\",string:\\\"șir\\\",number:\\\"număr\\\",boolean:\\\"boolean\\\",function:\\\"funcție\\\",array:\\\"matrice\\\",object:\\\"obiect\\\",undefined:\\\"nedefinit\\\",symbol:\\\"simbol\\\",bigint:\\\"număr mare\\\",void:\\\"void\\\",never:\\\"never\\\",map:\\\"hartă\\\",set:\\\"set\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return`Intrare invalidă: așteptat ${a}, primit ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Intrare invalidă: așteptat ${ie(n.values[0])}`:`Opțiune invalidă: așteptat una dintre ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Prea mare: așteptat ca ${n.origin??\\\"valoarea\\\"} ${o.verb} ${a}${n.maximum.toString()} ${o.unit??\\\"elemente\\\"}`:`Prea mare: așteptat ca ${n.origin??\\\"valoarea\\\"} să fie ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Prea mic: așteptat ca ${n.origin} ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Prea mic: așteptat ca ${n.origin} să fie ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Șir invalid: trebuie să înceapă cu \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Șir invalid: trebuie să se termine cu \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Șir invalid: trebuie să includă \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Șir invalid: trebuie să se potrivească cu modelul ${a.pattern}`:`Format invalid: ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Număr invalid: trebuie să fie multiplu de ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Chei nerecunoscute: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Cheie invalidă în ${n.origin}`;case\\\"invalid_union\\\":return\\\"Intrare invalidă\\\";case\\\"invalid_element\\\":return`Valoare invalidă în ${n.origin}`;default:return\\\"Intrare invalidă\\\"}}};function p2(){return{localeError:h2()}}function pS(e,t,r,i){const n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:a===1?t:a>=2&&a<=4?r:i}const g2=()=>{const e={string:{unit:{one:\\\"символ\\\",few:\\\"символа\\\",many:\\\"символов\\\"},verb:\\\"иметь\\\"},file:{unit:{one:\\\"байт\\\",few:\\\"байта\\\",many:\\\"байт\\\"},verb:\\\"иметь\\\"},array:{unit:{one:\\\"элемент\\\",few:\\\"элемента\\\",many:\\\"элементов\\\"},verb:\\\"иметь\\\"},set:{unit:{one:\\\"элемент\\\",few:\\\"элемента\\\",many:\\\"элементов\\\"},verb:\\\"иметь\\\"}};function t(n){return e[n]??null}const r={regex:\\\"ввод\\\",email:\\\"email адрес\\\",url:\\\"URL\\\",emoji:\\\"эмодзи\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO дата и время\\\",date:\\\"ISO дата\\\",time:\\\"ISO время\\\",duration:\\\"ISO длительность\\\",ipv4:\\\"IPv4 адрес\\\",ipv6:\\\"IPv6 адрес\\\",cidrv4:\\\"IPv4 диапазон\\\",cidrv6:\\\"IPv6 диапазон\\\",base64:\\\"строка в формате base64\\\",base64url:\\\"строка в формате base64url\\\",json_string:\\\"JSON строка\\\",e164:\\\"номер E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"ввод\\\"},i={nan:\\\"NaN\\\",number:\\\"число\\\",array:\\\"массив\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Неверный ввод: ожидалось instanceof ${n.expected}, получено ${s}`:`Неверный ввод: ожидалось ${a}, получено ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Неверный ввод: ожидалось ${ie(n.values[0])}`:`Неверный вариант: ожидалось одно из ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);if(o){const s=Number(n.maximum),u=pS(s,o.unit.one,o.unit.few,o.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??\\\"значение\\\"} будет иметь ${a}${n.maximum.toString()} ${u}`}return`Слишком большое значение: ожидалось, что ${n.origin??\\\"значение\\\"} будет ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);if(o){const s=Number(n.minimum),u=pS(s,o.unit.one,o.unit.few,o.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${a}${n.minimum.toString()} ${u}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Неверная строка: должна начинаться с \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Неверная строка: должна заканчиваться на \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Неверная строка: должна содержать \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Неверное число: должно быть кратным ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Нераспознанн${n.keys.length>1?\\\"ые\\\":\\\"ый\\\"} ключ${n.keys.length>1?\\\"и\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Неверный ключ в ${n.origin}`;case\\\"invalid_union\\\":return\\\"Неверные входные данные\\\";case\\\"invalid_element\\\":return`Неверное значение в ${n.origin}`;default:return\\\"Неверные входные данные\\\"}}};function m2(){return{localeError:g2()}}const y2=()=>{const e={string:{unit:\\\"znakov\\\",verb:\\\"imeti\\\"},file:{unit:\\\"bajtov\\\",verb:\\\"imeti\\\"},array:{unit:\\\"elementov\\\",verb:\\\"imeti\\\"},set:{unit:\\\"elementov\\\",verb:\\\"imeti\\\"}};function t(n){return e[n]??null}const r={regex:\\\"vnos\\\",email:\\\"e-poštni naslov\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO datum in čas\\\",date:\\\"ISO datum\\\",time:\\\"ISO čas\\\",duration:\\\"ISO trajanje\\\",ipv4:\\\"IPv4 naslov\\\",ipv6:\\\"IPv6 naslov\\\",cidrv4:\\\"obseg IPv4\\\",cidrv6:\\\"obseg IPv6\\\",base64:\\\"base64 kodiran niz\\\",base64url:\\\"base64url kodiran niz\\\",json_string:\\\"JSON niz\\\",e164:\\\"E.164 številka\\\",jwt:\\\"JWT\\\",template_literal:\\\"vnos\\\"},i={nan:\\\"NaN\\\",number:\\\"število\\\",array:\\\"tabela\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pričakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pričakovano ${a}, prejeto ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Neveljaven vnos: pričakovano ${ie(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Preveliko: pričakovano, da bo ${n.origin??\\\"vrednost\\\"} imelo ${a}${n.maximum.toString()} ${o.unit??\\\"elementov\\\"}`:`Preveliko: pričakovano, da bo ${n.origin??\\\"vrednost\\\"} ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Premajhno: pričakovano, da bo ${n.origin} imelo ${a}${n.minimum.toString()} ${o.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Neveljaven niz: mora se začeti z \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Neveljaven niz: mora se končati z \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Neveljaven niz: mora vsebovati \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Neprepoznan${n.keys.length>1?\\\"i ključi\\\":\\\" ključ\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Neveljaven ključ v ${n.origin}`;case\\\"invalid_union\\\":return\\\"Neveljaven vnos\\\";case\\\"invalid_element\\\":return`Neveljavna vrednost v ${n.origin}`;default:return\\\"Neveljaven vnos\\\"}}};function _2(){return{localeError:y2()}}const b2=()=>{const e={string:{unit:\\\"tecken\\\",verb:\\\"att ha\\\"},file:{unit:\\\"bytes\\\",verb:\\\"att ha\\\"},array:{unit:\\\"objekt\\\",verb:\\\"att innehålla\\\"},set:{unit:\\\"objekt\\\",verb:\\\"att innehålla\\\"}};function t(n){return e[n]??null}const r={regex:\\\"reguljärt uttryck\\\",email:\\\"e-postadress\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO-datum och tid\\\",date:\\\"ISO-datum\\\",time:\\\"ISO-tid\\\",duration:\\\"ISO-varaktighet\\\",ipv4:\\\"IPv4-intervall\\\",ipv6:\\\"IPv6-intervall\\\",cidrv4:\\\"IPv4-spektrum\\\",cidrv6:\\\"IPv6-spektrum\\\",base64:\\\"base64-kodad sträng\\\",base64url:\\\"base64url-kodad sträng\\\",json_string:\\\"JSON-sträng\\\",e164:\\\"E.164-nummer\\\",jwt:\\\"JWT\\\",template_literal:\\\"mall-literal\\\"},i={nan:\\\"NaN\\\",number:\\\"antal\\\",array:\\\"lista\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: förväntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: förväntat ${a}, fick ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Ogiltig inmatning: förväntat ${ie(n.values[0])}`:`Ogiltigt val: förväntade en av ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`För stor(t): förväntade ${n.origin??\\\"värdet\\\"} att ha ${a}${n.maximum.toString()} ${o.unit??\\\"element\\\"}`:`För stor(t): förväntat ${n.origin??\\\"värdet\\\"} att ha ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`För lite(t): förväntade ${n.origin??\\\"värdet\\\"} att ha ${a}${n.minimum.toString()} ${o.unit}`:`För lite(t): förväntade ${n.origin??\\\"värdet\\\"} att ha ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Ogiltig sträng: måste börja med \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Ogiltig sträng: måste sluta med \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Ogiltig sträng: måste innehålla \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Ogiltig sträng: måste matcha mönstret \\\"${a.pattern}\\\"`:`Ogiltig(t) ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case\\\"unrecognized_keys\\\":return`${n.keys.length>1?\\\"Okända nycklar\\\":\\\"Okänd nyckel\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Ogiltig nyckel i ${n.origin??\\\"värdet\\\"}`;case\\\"invalid_union\\\":return\\\"Ogiltig input\\\";case\\\"invalid_element\\\":return`Ogiltigt värde i ${n.origin??\\\"värdet\\\"}`;default:return\\\"Ogiltig input\\\"}}};function S2(){return{localeError:b2()}}const w2=()=>{const e={string:{unit:\\\"எழுத்துக்கள்\\\",verb:\\\"கொண்டிருக்க வேண்டும்\\\"},file:{unit:\\\"பைட்டுகள்\\\",verb:\\\"கொண்டிருக்க வேண்டும்\\\"},array:{unit:\\\"உறுப்புகள்\\\",verb:\\\"கொண்டிருக்க வேண்டும்\\\"},set:{unit:\\\"உறுப்புகள்\\\",verb:\\\"கொண்டிருக்க வேண்டும்\\\"}};function t(n){return e[n]??null}const r={regex:\\\"உள்ளீடு\\\",email:\\\"மின்னஞ்சல் முகவரி\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO தேதி நேரம்\\\",date:\\\"ISO தேதி\\\",time:\\\"ISO நேரம்\\\",duration:\\\"ISO கால அளவு\\\",ipv4:\\\"IPv4 முகவரி\\\",ipv6:\\\"IPv6 முகவரி\\\",cidrv4:\\\"IPv4 வரம்பு\\\",cidrv6:\\\"IPv6 வரம்பு\\\",base64:\\\"base64-encoded சரம்\\\",base64url:\\\"base64url-encoded சரம்\\\",json_string:\\\"JSON சரம்\\\",e164:\\\"E.164 எண்\\\",jwt:\\\"JWT\\\",template_literal:\\\"input\\\"},i={nan:\\\"NaN\\\",number:\\\"எண்\\\",array:\\\"அணி\\\",null:\\\"வெறுமை\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${n.expected}, பெறப்பட்டது ${s}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${a}, பெறப்பட்டது ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${ie(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${B(n.values,\\\"|\\\")} இல் ஒன்று`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??\\\"மதிப்பு\\\"} ${a}${n.maximum.toString()} ${o.unit??\\\"உறுப்புகள்\\\"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??\\\"மதிப்பு\\\"} ${a}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${a}${n.minimum.toString()} ${o.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${a}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`தவறான சரம்: \\\"${a.prefix}\\\" இல் தொடங்க வேண்டும்`:a.format===\\\"ends_with\\\"?`தவறான சரம்: \\\"${a.suffix}\\\" இல் முடிவடைய வேண்டும்`:a.format===\\\"includes\\\"?`தவறான சரம்: \\\"${a.includes}\\\" ஐ உள்ளடக்க வேண்டும்`:a.format===\\\"regex\\\"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case\\\"unrecognized_keys\\\":return`அடையாளம் தெரியாத விசை${n.keys.length>1?\\\"கள்\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`${n.origin} இல் தவறான விசை`;case\\\"invalid_union\\\":return\\\"தவறான உள்ளீடு\\\";case\\\"invalid_element\\\":return`${n.origin} இல் தவறான மதிப்பு`;default:return\\\"தவறான உள்ளீடு\\\"}}};function x2(){return{localeError:w2()}}const T2=()=>{const e={string:{unit:\\\"ตัวอักษร\\\",verb:\\\"ควรมี\\\"},file:{unit:\\\"ไบต์\\\",verb:\\\"ควรมี\\\"},array:{unit:\\\"รายการ\\\",verb:\\\"ควรมี\\\"},set:{unit:\\\"รายการ\\\",verb:\\\"ควรมี\\\"}};function t(n){return e[n]??null}const r={regex:\\\"ข้อมูลที่ป้อน\\\",email:\\\"ที่อยู่อีเมล\\\",url:\\\"URL\\\",emoji:\\\"อิโมจิ\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"วันที่เวลาแบบ ISO\\\",date:\\\"วันที่แบบ ISO\\\",time:\\\"เวลาแบบ ISO\\\",duration:\\\"ช่วงเวลาแบบ ISO\\\",ipv4:\\\"ที่อยู่ IPv4\\\",ipv6:\\\"ที่อยู่ IPv6\\\",cidrv4:\\\"ช่วง IP แบบ IPv4\\\",cidrv6:\\\"ช่วง IP แบบ IPv6\\\",base64:\\\"ข้อความแบบ Base64\\\",base64url:\\\"ข้อความแบบ Base64 สำหรับ URL\\\",json_string:\\\"ข้อความแบบ JSON\\\",e164:\\\"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)\\\",jwt:\\\"โทเคน JWT\\\",template_literal:\\\"ข้อมูลที่ป้อน\\\"},i={nan:\\\"NaN\\\",number:\\\"ตัวเลข\\\",array:\\\"อาร์เรย์ (Array)\\\",null:\\\"ไม่มีค่า (null)\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${n.expected} แต่ได้รับ ${s}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${a} แต่ได้รับ ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${ie(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"ไม่เกิน\\\":\\\"น้อยกว่า\\\",o=t(n.origin);return o?`เกินกำหนด: ${n.origin??\\\"ค่า\\\"} ควรมี${a} ${n.maximum.toString()} ${o.unit??\\\"รายการ\\\"}`:`เกินกำหนด: ${n.origin??\\\"ค่า\\\"} ควรมี${a} ${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\"อย่างน้อย\\\":\\\"มากกว่า\\\",o=t(n.origin);return o?`น้อยกว่ากำหนด: ${n.origin} ควรมี${a} ${n.minimum.toString()} ${o.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${a} ${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี \\\"${a.includes}\\\" อยู่ในข้อความ`:a.format===\\\"regex\\\"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case\\\"unrecognized_keys\\\":return`พบคีย์ที่ไม่รู้จัก: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case\\\"invalid_union\\\":return\\\"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้\\\";case\\\"invalid_element\\\":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return\\\"ข้อมูลไม่ถูกต้อง\\\"}}};function k2(){return{localeError:T2()}}const I2=()=>{const e={string:{unit:\\\"karakter\\\",verb:\\\"olmalı\\\"},file:{unit:\\\"bayt\\\",verb:\\\"olmalı\\\"},array:{unit:\\\"öğe\\\",verb:\\\"olmalı\\\"},set:{unit:\\\"öğe\\\",verb:\\\"olmalı\\\"}};function t(n){return e[n]??null}const r={regex:\\\"girdi\\\",email:\\\"e-posta adresi\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO tarih ve saat\\\",date:\\\"ISO tarih\\\",time:\\\"ISO saat\\\",duration:\\\"ISO süre\\\",ipv4:\\\"IPv4 adresi\\\",ipv6:\\\"IPv6 adresi\\\",cidrv4:\\\"IPv4 aralığı\\\",cidrv6:\\\"IPv6 aralığı\\\",base64:\\\"base64 ile şifrelenmiş metin\\\",base64url:\\\"base64url ile şifrelenmiş metin\\\",json_string:\\\"JSON dizesi\\\",e164:\\\"E.164 sayısı\\\",jwt:\\\"JWT\\\",template_literal:\\\"Şablon dizesi\\\"},i={nan:\\\"NaN\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Geçersiz değer: beklenen instanceof ${n.expected}, alınan ${s}`:`Geçersiz değer: beklenen ${a}, alınan ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Geçersiz değer: beklenen ${ie(n.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Çok büyük: beklenen ${n.origin??\\\"değer\\\"} ${a}${n.maximum.toString()} ${o.unit??\\\"öğe\\\"}`:`Çok büyük: beklenen ${n.origin??\\\"değer\\\"} ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Çok küçük: beklenen ${n.origin} ${a}${n.minimum.toString()} ${o.unit}`:`Çok küçük: beklenen ${n.origin} ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Geçersiz metin: \\\"${a.prefix}\\\" ile başlamalı`:a.format===\\\"ends_with\\\"?`Geçersiz metin: \\\"${a.suffix}\\\" ile bitmeli`:a.format===\\\"includes\\\"?`Geçersiz metin: \\\"${a.includes}\\\" içermeli`:a.format===\\\"regex\\\"?`Geçersiz metin: ${a.pattern} desenine uymalı`:`Geçersiz ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Geçersiz sayı: ${n.divisor} ile tam bölünebilmeli`;case\\\"unrecognized_keys\\\":return`Tanınmayan anahtar${n.keys.length>1?\\\"lar\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`${n.origin} içinde geçersiz anahtar`;case\\\"invalid_union\\\":return\\\"Geçersiz değer\\\";case\\\"invalid_element\\\":return`${n.origin} içinde geçersiz değer`;default:return\\\"Geçersiz değer\\\"}}};function $2(){return{localeError:I2()}}const D2=()=>{const e={string:{unit:\\\"символів\\\",verb:\\\"матиме\\\"},file:{unit:\\\"байтів\\\",verb:\\\"матиме\\\"},array:{unit:\\\"елементів\\\",verb:\\\"матиме\\\"},set:{unit:\\\"елементів\\\",verb:\\\"матиме\\\"}};function t(n){return e[n]??null}const r={regex:\\\"вхідні дані\\\",email:\\\"адреса електронної пошти\\\",url:\\\"URL\\\",emoji:\\\"емодзі\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"дата та час ISO\\\",date:\\\"дата ISO\\\",time:\\\"час ISO\\\",duration:\\\"тривалість ISO\\\",ipv4:\\\"адреса IPv4\\\",ipv6:\\\"адреса IPv6\\\",cidrv4:\\\"діапазон IPv4\\\",cidrv6:\\\"діапазон IPv6\\\",base64:\\\"рядок у кодуванні base64\\\",base64url:\\\"рядок у кодуванні base64url\\\",json_string:\\\"рядок JSON\\\",e164:\\\"номер E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"вхідні дані\\\"},i={nan:\\\"NaN\\\",number:\\\"число\\\",array:\\\"масив\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Неправильні вхідні дані: очікується instanceof ${n.expected}, отримано ${s}`:`Неправильні вхідні дані: очікується ${a}, отримано ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Неправильні вхідні дані: очікується ${ie(n.values[0])}`:`Неправильна опція: очікується одне з ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Занадто велике: очікується, що ${n.origin??\\\"значення\\\"} ${o.verb} ${a}${n.maximum.toString()} ${o.unit??\\\"елементів\\\"}`:`Занадто велике: очікується, що ${n.origin??\\\"значення\\\"} буде ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Занадто мале: очікується, що ${n.origin} ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Неправильний рядок: повинен починатися з \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Неправильний рядок: повинен закінчуватися на \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Неправильний рядок: повинен містити \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Неправильне число: повинно бути кратним ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Нерозпізнаний ключ${n.keys.length>1?\\\"і\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Неправильний ключ у ${n.origin}`;case\\\"invalid_union\\\":return\\\"Неправильні вхідні дані\\\";case\\\"invalid_element\\\":return`Неправильне значення у ${n.origin}`;default:return\\\"Неправильні вхідні дані\\\"}}};function R$(){return{localeError:D2()}}function C2(){return R$()}const A2=()=>{const e={string:{unit:\\\"حروف\\\",verb:\\\"ہونا\\\"},file:{unit:\\\"بائٹس\\\",verb:\\\"ہونا\\\"},array:{unit:\\\"آئٹمز\\\",verb:\\\"ہونا\\\"},set:{unit:\\\"آئٹمز\\\",verb:\\\"ہونا\\\"}};function t(n){return e[n]??null}const r={regex:\\\"ان پٹ\\\",email:\\\"ای میل ایڈریس\\\",url:\\\"یو آر ایل\\\",emoji:\\\"ایموجی\\\",uuid:\\\"یو یو آئی ڈی\\\",uuidv4:\\\"یو یو آئی ڈی وی 4\\\",uuidv6:\\\"یو یو آئی ڈی وی 6\\\",nanoid:\\\"نینو آئی ڈی\\\",guid:\\\"جی یو آئی ڈی\\\",cuid:\\\"سی یو آئی ڈی\\\",cuid2:\\\"سی یو آئی ڈی 2\\\",ulid:\\\"یو ایل آئی ڈی\\\",xid:\\\"ایکس آئی ڈی\\\",ksuid:\\\"کے ایس یو آئی ڈی\\\",datetime:\\\"آئی ایس او ڈیٹ ٹائم\\\",date:\\\"آئی ایس او تاریخ\\\",time:\\\"آئی ایس او وقت\\\",duration:\\\"آئی ایس او مدت\\\",ipv4:\\\"آئی پی وی 4 ایڈریس\\\",ipv6:\\\"آئی پی وی 6 ایڈریس\\\",cidrv4:\\\"آئی پی وی 4 رینج\\\",cidrv6:\\\"آئی پی وی 6 رینج\\\",base64:\\\"بیس 64 ان کوڈڈ سٹرنگ\\\",base64url:\\\"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ\\\",json_string:\\\"جے ایس او این سٹرنگ\\\",e164:\\\"ای 164 نمبر\\\",jwt:\\\"جے ڈبلیو ٹی\\\",template_literal:\\\"ان پٹ\\\"},i={nan:\\\"NaN\\\",number:\\\"نمبر\\\",array:\\\"آرے\\\",null:\\\"نل\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`غلط ان پٹ: instanceof ${n.expected} متوقع تھا، ${s} موصول ہوا`:`غلط ان پٹ: ${a} متوقع تھا، ${s} موصول ہوا`}case\\\"invalid_value\\\":return n.values.length===1?`غلط ان پٹ: ${ie(n.values[0])} متوقع تھا`:`غلط آپشن: ${B(n.values,\\\"|\\\")} میں سے ایک متوقع تھا`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`بہت بڑا: ${n.origin??\\\"ویلیو\\\"} کے ${a}${n.maximum.toString()} ${o.unit??\\\"عناصر\\\"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??\\\"ویلیو\\\"} کا ${a}${n.maximum.toString()} ہونا متوقع تھا`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`بہت چھوٹا: ${n.origin} کے ${a}${n.minimum.toString()} ${o.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${a}${n.minimum.toString()} ہونا متوقع تھا`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`غلط سٹرنگ: \\\"${a.prefix}\\\" سے شروع ہونا چاہیے`:a.format===\\\"ends_with\\\"?`غلط سٹرنگ: \\\"${a.suffix}\\\" پر ختم ہونا چاہیے`:a.format===\\\"includes\\\"?`غلط سٹرنگ: \\\"${a.includes}\\\" شامل ہونا چاہیے`:a.format===\\\"regex\\\"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case\\\"unrecognized_keys\\\":return`غیر تسلیم شدہ کی${n.keys.length>1?\\\"ز\\\":\\\"\\\"}: ${B(n.keys,\\\"، \\\")}`;case\\\"invalid_key\\\":return`${n.origin} میں غلط کی`;case\\\"invalid_union\\\":return\\\"غلط ان پٹ\\\";case\\\"invalid_element\\\":return`${n.origin} میں غلط ویلیو`;default:return\\\"غلط ان پٹ\\\"}}};function P2(){return{localeError:A2()}}const M2=()=>{const e={string:{unit:\\\"belgi\\\",verb:\\\"bo‘lishi kerak\\\"},file:{unit:\\\"bayt\\\",verb:\\\"bo‘lishi kerak\\\"},array:{unit:\\\"element\\\",verb:\\\"bo‘lishi kerak\\\"},set:{unit:\\\"element\\\",verb:\\\"bo‘lishi kerak\\\"},map:{unit:\\\"yozuv\\\",verb:\\\"bo‘lishi kerak\\\"}};function t(n){return e[n]??null}const r={regex:\\\"kirish\\\",email:\\\"elektron pochta manzili\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO sana va vaqti\\\",date:\\\"ISO sana\\\",time:\\\"ISO vaqt\\\",duration:\\\"ISO davomiylik\\\",ipv4:\\\"IPv4 manzil\\\",ipv6:\\\"IPv6 manzil\\\",mac:\\\"MAC manzil\\\",cidrv4:\\\"IPv4 diapazon\\\",cidrv6:\\\"IPv6 diapazon\\\",base64:\\\"base64 kodlangan satr\\\",base64url:\\\"base64url kodlangan satr\\\",json_string:\\\"JSON satr\\\",e164:\\\"E.164 raqam\\\",jwt:\\\"JWT\\\",template_literal:\\\"kirish\\\"},i={nan:\\\"NaN\\\",number:\\\"raqam\\\",array:\\\"massiv\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto‘g‘ri kirish: kutilgan ${a}, qabul qilingan ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Noto‘g‘ri kirish: kutilgan ${ie(n.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Juda katta: kutilgan ${n.origin??\\\"qiymat\\\"} ${a}${n.maximum.toString()} ${o.unit} ${o.verb}`:`Juda katta: kutilgan ${n.origin??\\\"qiymat\\\"} ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Juda kichik: kutilgan ${n.origin} ${a}${n.minimum.toString()} ${o.unit} ${o.verb}`:`Juda kichik: kutilgan ${n.origin} ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Noto‘g‘ri satr: \\\"${a.prefix}\\\" bilan boshlanishi kerak`:a.format===\\\"ends_with\\\"?`Noto‘g‘ri satr: \\\"${a.suffix}\\\" bilan tugashi kerak`:a.format===\\\"includes\\\"?`Noto‘g‘ri satr: \\\"${a.includes}\\\" ni o‘z ichiga olishi kerak`:a.format===\\\"regex\\\"?`Noto‘g‘ri satr: ${a.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Noto‘g‘ri raqam: ${n.divisor} ning karralisi bo‘lishi kerak`;case\\\"unrecognized_keys\\\":return`Noma’lum kalit${n.keys.length>1?\\\"lar\\\":\\\"\\\"}: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`${n.origin} dagi kalit noto‘g‘ri`;case\\\"invalid_union\\\":return\\\"Noto‘g‘ri kirish\\\";case\\\"invalid_element\\\":return`${n.origin} da noto‘g‘ri qiymat`;default:return\\\"Noto‘g‘ri kirish\\\"}}};function L2(){return{localeError:M2()}}const O2=()=>{const e={string:{unit:\\\"ký tự\\\",verb:\\\"có\\\"},file:{unit:\\\"byte\\\",verb:\\\"có\\\"},array:{unit:\\\"phần tử\\\",verb:\\\"có\\\"},set:{unit:\\\"phần tử\\\",verb:\\\"có\\\"}};function t(n){return e[n]??null}const r={regex:\\\"đầu vào\\\",email:\\\"địa chỉ email\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ngày giờ ISO\\\",date:\\\"ngày ISO\\\",time:\\\"giờ ISO\\\",duration:\\\"khoảng thời gian ISO\\\",ipv4:\\\"địa chỉ IPv4\\\",ipv6:\\\"địa chỉ IPv6\\\",cidrv4:\\\"dải IPv4\\\",cidrv6:\\\"dải IPv6\\\",base64:\\\"chuỗi mã hóa base64\\\",base64url:\\\"chuỗi mã hóa base64url\\\",json_string:\\\"chuỗi JSON\\\",e164:\\\"số E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"đầu vào\\\"},i={nan:\\\"NaN\\\",number:\\\"số\\\",array:\\\"mảng\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${n.expected}, nhận được ${s}`:`Đầu vào không hợp lệ: mong đợi ${a}, nhận được ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${ie(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Quá lớn: mong đợi ${n.origin??\\\"giá trị\\\"} ${o.verb} ${a}${n.maximum.toString()} ${o.unit??\\\"phần tử\\\"}`:`Quá lớn: mong đợi ${n.origin??\\\"giá trị\\\"} ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Quá nhỏ: mong đợi ${n.origin} ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Chuỗi không hợp lệ: phải bắt đầu bằng \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Chuỗi không hợp lệ: phải kết thúc bằng \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Chuỗi không hợp lệ: phải bao gồm \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${r[a.format]??n.format} không hợp lệ`}case\\\"not_multiple_of\\\":return`Số không hợp lệ: phải là bội số của ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Khóa không được nhận dạng: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Khóa không hợp lệ trong ${n.origin}`;case\\\"invalid_union\\\":return\\\"Đầu vào không hợp lệ\\\";case\\\"invalid_element\\\":return`Giá trị không hợp lệ trong ${n.origin}`;default:return\\\"Đầu vào không hợp lệ\\\"}}};function E2(){return{localeError:O2()}}const z2=()=>{const e={string:{unit:\\\"字符\\\",verb:\\\"包含\\\"},file:{unit:\\\"字节\\\",verb:\\\"包含\\\"},array:{unit:\\\"项\\\",verb:\\\"包含\\\"},set:{unit:\\\"项\\\",verb:\\\"包含\\\"}};function t(n){return e[n]??null}const r={regex:\\\"输入\\\",email:\\\"电子邮件\\\",url:\\\"URL\\\",emoji:\\\"表情符号\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO日期时间\\\",date:\\\"ISO日期\\\",time:\\\"ISO时间\\\",duration:\\\"ISO时长\\\",ipv4:\\\"IPv4地址\\\",ipv6:\\\"IPv6地址\\\",cidrv4:\\\"IPv4网段\\\",cidrv6:\\\"IPv6网段\\\",base64:\\\"base64编码字符串\\\",base64url:\\\"base64url编码字符串\\\",json_string:\\\"JSON字符串\\\",e164:\\\"E.164号码\\\",jwt:\\\"JWT\\\",template_literal:\\\"输入\\\"},i={nan:\\\"NaN\\\",number:\\\"数字\\\",array:\\\"数组\\\",null:\\\"空值(null)\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`无效输入:期望 instanceof ${n.expected},实际接收 ${s}`:`无效输入:期望 ${a},实际接收 ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`无效输入:期望 ${ie(n.values[0])}`:`无效选项:期望以下之一 ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`数值过大:期望 ${n.origin??\\\"值\\\"} ${a}${n.maximum.toString()} ${o.unit??\\\"个元素\\\"}`:`数值过大:期望 ${n.origin??\\\"值\\\"} ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`数值过小:期望 ${n.origin} ${a}${n.minimum.toString()} ${o.unit}`:`数值过小:期望 ${n.origin} ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`无效字符串:必须以 \\\"${a.prefix}\\\" 开头`:a.format===\\\"ends_with\\\"?`无效字符串:必须以 \\\"${a.suffix}\\\" 结尾`:a.format===\\\"includes\\\"?`无效字符串:必须包含 \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`无效数字:必须是 ${n.divisor} 的倍数`;case\\\"unrecognized_keys\\\":return`出现未知的键(key): ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`${n.origin} 中的键(key)无效`;case\\\"invalid_union\\\":return\\\"无效输入\\\";case\\\"invalid_element\\\":return`${n.origin} 中包含无效值(value)`;default:return\\\"无效输入\\\"}}};function R2(){return{localeError:z2()}}const N2=()=>{const e={string:{unit:\\\"字元\\\",verb:\\\"擁有\\\"},file:{unit:\\\"位元組\\\",verb:\\\"擁有\\\"},array:{unit:\\\"項目\\\",verb:\\\"擁有\\\"},set:{unit:\\\"項目\\\",verb:\\\"擁有\\\"}};function t(n){return e[n]??null}const r={regex:\\\"輸入\\\",email:\\\"郵件地址\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"ISO 日期時間\\\",date:\\\"ISO 日期\\\",time:\\\"ISO 時間\\\",duration:\\\"ISO 期間\\\",ipv4:\\\"IPv4 位址\\\",ipv6:\\\"IPv6 位址\\\",cidrv4:\\\"IPv4 範圍\\\",cidrv6:\\\"IPv6 範圍\\\",base64:\\\"base64 編碼字串\\\",base64url:\\\"base64url 編碼字串\\\",json_string:\\\"JSON 字串\\\",e164:\\\"E.164 數值\\\",jwt:\\\"JWT\\\",template_literal:\\\"輸入\\\"},i={nan:\\\"NaN\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`無效的輸入值:預期為 instanceof ${n.expected},但收到 ${s}`:`無效的輸入值:預期為 ${a},但收到 ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`無效的輸入值:預期為 ${ie(n.values[0])}`:`無效的選項:預期為以下其中之一 ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`數值過大:預期 ${n.origin??\\\"值\\\"} 應為 ${a}${n.maximum.toString()} ${o.unit??\\\"個元素\\\"}`:`數值過大:預期 ${n.origin??\\\"值\\\"} 應為 ${a}${n.maximum.toString()}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`數值過小:預期 ${n.origin} 應為 ${a}${n.minimum.toString()} ${o.unit}`:`數值過小:預期 ${n.origin} 應為 ${a}${n.minimum.toString()}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`無效的字串:必須以 \\\"${a.prefix}\\\" 開頭`:a.format===\\\"ends_with\\\"?`無效的字串:必須以 \\\"${a.suffix}\\\" 結尾`:a.format===\\\"includes\\\"?`無效的字串:必須包含 \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`無效的數字:必須為 ${n.divisor} 的倍數`;case\\\"unrecognized_keys\\\":return`無法識別的鍵值${n.keys.length>1?\\\"們\\\":\\\"\\\"}:${B(n.keys,\\\"、\\\")}`;case\\\"invalid_key\\\":return`${n.origin} 中有無效的鍵值`;case\\\"invalid_union\\\":return\\\"無效的輸入值\\\";case\\\"invalid_element\\\":return`${n.origin} 中有無效的值`;default:return\\\"無效的輸入值\\\"}}};function U2(){return{localeError:N2()}}const B2=()=>{const e={string:{unit:\\\"àmi\\\",verb:\\\"ní\\\"},file:{unit:\\\"bytes\\\",verb:\\\"ní\\\"},array:{unit:\\\"nkan\\\",verb:\\\"ní\\\"},set:{unit:\\\"nkan\\\",verb:\\\"ní\\\"}};function t(n){return e[n]??null}const r={regex:\\\"ẹ̀rọ ìbáwọlé\\\",email:\\\"àdírẹ́sì ìmẹ́lì\\\",url:\\\"URL\\\",emoji:\\\"emoji\\\",uuid:\\\"UUID\\\",uuidv4:\\\"UUIDv4\\\",uuidv6:\\\"UUIDv6\\\",nanoid:\\\"nanoid\\\",guid:\\\"GUID\\\",cuid:\\\"cuid\\\",cuid2:\\\"cuid2\\\",ulid:\\\"ULID\\\",xid:\\\"XID\\\",ksuid:\\\"KSUID\\\",datetime:\\\"àkókò ISO\\\",date:\\\"ọjọ́ ISO\\\",time:\\\"àkókò ISO\\\",duration:\\\"àkókò tó pé ISO\\\",ipv4:\\\"àdírẹ́sì IPv4\\\",ipv6:\\\"àdírẹ́sì IPv6\\\",cidrv4:\\\"àgbègbè IPv4\\\",cidrv6:\\\"àgbègbè IPv6\\\",base64:\\\"ọ̀rọ̀ tí a kọ́ ní base64\\\",base64url:\\\"ọ̀rọ̀ base64url\\\",json_string:\\\"ọ̀rọ̀ JSON\\\",e164:\\\"nọ́mbà E.164\\\",jwt:\\\"JWT\\\",template_literal:\\\"ẹ̀rọ ìbáwọlé\\\"},i={nan:\\\"NaN\\\",number:\\\"nọ́mbà\\\",array:\\\"akopọ\\\"};return n=>{switch(n.code){case\\\"invalid_type\\\":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${n.expected}, àmọ̀ a rí ${s}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${a}, àmọ̀ a rí ${s}`}case\\\"invalid_value\\\":return n.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${ie(n.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${B(n.values,\\\"|\\\")}`;case\\\"too_big\\\":{const a=n.inclusive?\\\"<=\\\":\\\"<\\\",o=t(n.origin);return o?`Tó pọ̀ jù: a ní láti jẹ́ pé ${n.origin??\\\"iye\\\"} ${o.verb} ${a}${n.maximum} ${o.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${n.maximum}`}case\\\"too_small\\\":{const a=n.inclusive?\\\">=\\\":\\\">\\\",o=t(n.origin);return o?`Kéré ju: a ní láti jẹ́ pé ${n.origin} ${o.verb} ${a}${n.minimum} ${o.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${n.minimum}`}case\\\"invalid_format\\\":{const a=n;return a.format===\\\"starts_with\\\"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú \\\"${a.prefix}\\\"`:a.format===\\\"ends_with\\\"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú \\\"${a.suffix}\\\"`:a.format===\\\"includes\\\"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní \\\"${a.includes}\\\"`:a.format===\\\"regex\\\"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${r[a.format]??n.format}`}case\\\"not_multiple_of\\\":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${n.divisor}`;case\\\"unrecognized_keys\\\":return`Bọtìnì àìmọ̀: ${B(n.keys,\\\", \\\")}`;case\\\"invalid_key\\\":return`Bọtìnì aṣìṣe nínú ${n.origin}`;case\\\"invalid_union\\\":return\\\"Ìbáwọlé aṣìṣe\\\";case\\\"invalid_element\\\":return`Iye aṣìṣe nínú ${n.origin}`;default:return\\\"Ìbáwọlé aṣìṣe\\\"}}};function F2(){return{localeError:B2()}}const Zm=Object.freeze(Object.defineProperty({__proto__:null,ar:JE,az:ez,be:rz,bg:iz,ca:oz,cs:uz,da:cz,de:dz,el:hz,en:E$,eo:mz,es:_z,fa:Sz,fi:xz,fr:kz,frCA:$z,he:Cz,hr:Pz,hu:Lz,hy:Ez,id:Rz,is:Uz,it:Fz,ja:Zz,ka:Gz,kh:Wz,km:z$,ko:Yz,lt:Kz,mk:Qz,ms:t2,nl:n2,no:a2,ota:s2,pl:f2,ps:l2,pt:v2,ro:p2,ru:m2,sl:_2,sv:S2,ta:x2,th:k2,tr:$2,ua:C2,uk:R$,ur:P2,uz:L2,vi:E2,yo:F2,zhCN:R2,zhTW:U2},Symbol.toStringTag,{value:\\\"Module\\\"}));var gS;const Vm=Symbol(\\\"ZodOutput\\\"),Gm=Symbol(\\\"ZodInput\\\");class N${constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const i=r[0];return this._map.set(t,i),i&&typeof i==\\\"object\\\"&&\\\"id\\\"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r==\\\"object\\\"&&\\\"id\\\"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ad(){return new N$}(gS=globalThis).__zod_globalRegistry??(gS.__zod_globalRegistry=ad());const Kt=globalThis.__zod_globalRegistry;function U$(e,t){return new e({type:\\\"string\\\",...U(t)})}function B$(e,t){return new e({type:\\\"string\\\",coerce:!0,...U(t)})}function Hm(e,t){return new e({type:\\\"string\\\",format:\\\"email\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function af(e,t){return new e({type:\\\"string\\\",format:\\\"guid\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function Wm(e,t){return new e({type:\\\"string\\\",format:\\\"uuid\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function qm(e,t){return new e({type:\\\"string\\\",format:\\\"uuid\\\",check:\\\"string_format\\\",abort:!1,version:\\\"v4\\\",...U(t)})}function Ym(e,t){return new e({type:\\\"string\\\",format:\\\"uuid\\\",check:\\\"string_format\\\",abort:!1,version:\\\"v6\\\",...U(t)})}function Xm(e,t){return new e({type:\\\"string\\\",format:\\\"uuid\\\",check:\\\"string_format\\\",abort:!1,version:\\\"v7\\\",...U(t)})}function od(e,t){return new e({type:\\\"string\\\",format:\\\"url\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function Km(e,t){return new e({type:\\\"string\\\",format:\\\"emoji\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function Jm(e,t){return new e({type:\\\"string\\\",format:\\\"nanoid\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function Qm(e,t){return new e({type:\\\"string\\\",format:\\\"cuid\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function ey(e,t){return new e({type:\\\"string\\\",format:\\\"cuid2\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function ty(e,t){return new e({type:\\\"string\\\",format:\\\"ulid\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function ry(e,t){return new e({type:\\\"string\\\",format:\\\"xid\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function ny(e,t){return new e({type:\\\"string\\\",format:\\\"ksuid\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function iy(e,t){return new e({type:\\\"string\\\",format:\\\"ipv4\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function ay(e,t){return new e({type:\\\"string\\\",format:\\\"ipv6\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function F$(e,t){return new e({type:\\\"string\\\",format:\\\"mac\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function oy(e,t){return new e({type:\\\"string\\\",format:\\\"cidrv4\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function sy(e,t){return new e({type:\\\"string\\\",format:\\\"cidrv6\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function uy(e,t){return new e({type:\\\"string\\\",format:\\\"base64\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function ly(e,t){return new e({type:\\\"string\\\",format:\\\"base64url\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function cy(e,t){return new e({type:\\\"string\\\",format:\\\"e164\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}function fy(e,t){return new e({type:\\\"string\\\",format:\\\"jwt\\\",check:\\\"string_format\\\",abort:!1,...U(t)})}const dy={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function j$(e,t){return new e({type:\\\"string\\\",format:\\\"datetime\\\",check:\\\"string_format\\\",offset:!1,local:!1,precision:null,...U(t)})}function Z$(e,t){return new e({type:\\\"string\\\",format:\\\"date\\\",check:\\\"string_format\\\",...U(t)})}function V$(e,t){return new e({type:\\\"string\\\",format:\\\"time\\\",check:\\\"string_format\\\",precision:null,...U(t)})}function G$(e,t){return new e({type:\\\"string\\\",format:\\\"duration\\\",check:\\\"string_format\\\",...U(t)})}function H$(e,t){return new e({type:\\\"number\\\",checks:[],...U(t)})}function W$(e,t){return new e({type:\\\"number\\\",coerce:!0,checks:[],...U(t)})}function q$(e,t){return new e({type:\\\"number\\\",check:\\\"number_format\\\",abort:!1,format:\\\"safeint\\\",...U(t)})}function Y$(e,t){return new e({type:\\\"number\\\",check:\\\"number_format\\\",abort:!1,format:\\\"float32\\\",...U(t)})}function X$(e,t){return new e({type:\\\"number\\\",check:\\\"number_format\\\",abort:!1,format:\\\"float64\\\",...U(t)})}function K$(e,t){return new e({type:\\\"number\\\",check:\\\"number_format\\\",abort:!1,format:\\\"int32\\\",...U(t)})}function J$(e,t){return new e({type:\\\"number\\\",check:\\\"number_format\\\",abort:!1,format:\\\"uint32\\\",...U(t)})}function Q$(e,t){return new e({type:\\\"boolean\\\",...U(t)})}function eD(e,t){return new e({type:\\\"boolean\\\",coerce:!0,...U(t)})}function tD(e,t){return new e({type:\\\"bigint\\\",...U(t)})}function rD(e,t){return new e({type:\\\"bigint\\\",coerce:!0,...U(t)})}function nD(e,t){return new e({type:\\\"bigint\\\",check:\\\"bigint_format\\\",abort:!1,format:\\\"int64\\\",...U(t)})}function iD(e,t){return new e({type:\\\"bigint\\\",check:\\\"bigint_format\\\",abort:!1,format:\\\"uint64\\\",...U(t)})}function aD(e,t){return new e({type:\\\"symbol\\\",...U(t)})}function oD(e,t){return new e({type:\\\"undefined\\\",...U(t)})}function sD(e,t){return new e({type:\\\"null\\\",...U(t)})}function uD(e){return new e({type:\\\"any\\\"})}function lD(e){return new e({type:\\\"unknown\\\"})}function cD(e,t){return new e({type:\\\"never\\\",...U(t)})}function fD(e,t){return new e({type:\\\"void\\\",...U(t)})}function dD(e,t){return new e({type:\\\"date\\\",...U(t)})}function vD(e,t){return new e({type:\\\"date\\\",coerce:!0,...U(t)})}function hD(e,t){return new e({type:\\\"nan\\\",...U(t)})}function Tn(e,t){return new Lm({check:\\\"less_than\\\",...U(t),value:e,inclusive:!1})}function Jt(e,t){return new Lm({check:\\\"less_than\\\",...U(t),value:e,inclusive:!0})}function kn(e,t){return new Om({check:\\\"greater_than\\\",...U(t),value:e,inclusive:!1})}function zt(e,t){return new Om({check:\\\"greater_than\\\",...U(t),value:e,inclusive:!0})}function sd(e){return kn(0,e)}function ud(e){return Tn(0,e)}function ld(e){return Jt(0,e)}function cd(e){return zt(0,e)}function Qi(e,t){return new rI({check:\\\"multiple_of\\\",...U(t),value:e})}function da(e,t){return new aI({check:\\\"max_size\\\",...U(t),maximum:e})}function In(e,t){return new oI({check:\\\"min_size\\\",...U(t),minimum:e})}function ko(e,t){return new sI({check:\\\"size_equals\\\",...U(t),size:e})}function Io(e,t){return new uI({check:\\\"max_length\\\",...U(t),maximum:e})}function ei(e,t){return new lI({check:\\\"min_length\\\",...U(t),minimum:e})}function $o(e,t){return new cI({check:\\\"length_equals\\\",...U(t),length:e})}function $u(e,t){return new fI({check:\\\"string_format\\\",format:\\\"regex\\\",...U(t),pattern:e})}function Du(e){return new dI({check:\\\"string_format\\\",format:\\\"lowercase\\\",...U(e)})}function Cu(e){return new vI({check:\\\"string_format\\\",format:\\\"uppercase\\\",...U(e)})}function Au(e,t){return new hI({check:\\\"string_format\\\",format:\\\"includes\\\",...U(t),includes:e})}function Pu(e,t){return new pI({check:\\\"string_format\\\",format:\\\"starts_with\\\",...U(t),prefix:e})}function Mu(e,t){return new gI({check:\\\"string_format\\\",format:\\\"ends_with\\\",...U(t),suffix:e})}function fd(e,t,r){return new mI({check:\\\"property\\\",property:e,schema:t,...U(r)})}function Lu(e,t){return new yI({check:\\\"mime_type\\\",mime:e,...U(t)})}function fn(e){return new _I({check:\\\"overwrite\\\",tx:e})}function Ou(e){return fn(t=>t.normalize(e))}function Eu(){return fn(e=>e.trim())}function zu(){return fn(e=>e.toLowerCase())}function Ru(){return fn(e=>e.toUpperCase())}function Nu(){return fn(e=>rk(e))}function pD(e,t,r){return new e({type:\\\"array\\\",element:t,...U(r)})}function j2(e,t,r){return new e({type:\\\"union\\\",options:t,...U(r)})}function Z2(e,t,r){return new e({type:\\\"union\\\",options:t,inclusive:!1,...U(r)})}function V2(e,t,r,i){return new e({type:\\\"union\\\",options:r,discriminator:t,...U(i)})}function G2(e,t,r){return new e({type:\\\"intersection\\\",left:t,right:r})}function H2(e,t,r,i){const n=r instanceof ve,a=n?i:r,o=n?r:null;return new e({type:\\\"tuple\\\",items:t,rest:o,...U(a)})}function W2(e,t,r,i){return new e({type:\\\"record\\\",keyType:t,valueType:r,...U(i)})}function q2(e,t,r,i){return new e({type:\\\"map\\\",keyType:t,valueType:r,...U(i)})}function Y2(e,t,r){return new e({type:\\\"set\\\",valueType:t,...U(r)})}function X2(e,t,r){const i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:\\\"enum\\\",entries:i,...U(r)})}function K2(e,t,r){return new e({type:\\\"enum\\\",entries:t,...U(r)})}function J2(e,t,r){return new e({type:\\\"literal\\\",values:Array.isArray(t)?t:[t],...U(r)})}function gD(e,t){return new e({type:\\\"file\\\",...U(t)})}function Q2(e,t){return new e({type:\\\"transform\\\",transform:t})}function eR(e,t){return new e({type:\\\"optional\\\",innerType:t})}function tR(e,t){return new e({type:\\\"nullable\\\",innerType:t})}function rR(e,t,r){return new e({type:\\\"default\\\",innerType:t,get defaultValue(){return typeof r==\\\"function\\\"?r():Jf(r)}})}function nR(e,t,r){return new e({type:\\\"nonoptional\\\",innerType:t,...U(r)})}function iR(e,t){return new e({type:\\\"success\\\",innerType:t})}function aR(e,t,r){return new e({type:\\\"catch\\\",innerType:t,catchValue:typeof r==\\\"function\\\"?r:()=>r})}function oR(e,t,r){return new e({type:\\\"pipe\\\",in:t,out:r})}function sR(e,t){return new e({type:\\\"readonly\\\",innerType:t})}function uR(e,t,r){return new e({type:\\\"template_literal\\\",parts:t,...U(r)})}function lR(e,t){return new e({type:\\\"lazy\\\",getter:t})}function cR(e,t){return new e({type:\\\"promise\\\",innerType:t})}function mD(e,t,r){const i=U(r);return i.abort??(i.abort=!0),new e({type:\\\"custom\\\",check:\\\"custom\\\",fn:t,...i})}function yD(e,t,r){return new e({type:\\\"custom\\\",check:\\\"custom\\\",fn:t,...U(r)})}function _D(e,t){const r=bD(i=>(i.addIssue=n=>{if(typeof n==\\\"string\\\")i.issues.push(no(n,i.value,r._zod.def));else{const a=n;a.fatal&&(a.continue=!1),a.code??(a.code=\\\"custom\\\"),a.input??(a.input=i.value),a.inst??(a.inst=r),a.continue??(a.continue=!r._zod.def.abort),i.issues.push(no(a))}},e(i.value,i)),t);return r}function bD(e,t){const r=new Ke({check:\\\"custom\\\",...U(t)});return r._zod.check=e,r}function SD(e){const t=new Ke({check:\\\"describe\\\"});return t._zod.onattach=[r=>{const i=Kt.get(r)??{};Kt.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function wD(e){const t=new Ke({check:\\\"meta\\\"});return t._zod.onattach=[r=>{const i=Kt.get(r)??{};Kt.add(r,{...i,...e})}],t._zod.check=()=>{},t}function xD(e,t){const r=U(t);let i=r.truthy??[\\\"true\\\",\\\"1\\\",\\\"yes\\\",\\\"on\\\",\\\"y\\\",\\\"enabled\\\"],n=r.falsy??[\\\"false\\\",\\\"0\\\",\\\"no\\\",\\\"off\\\",\\\"n\\\",\\\"disabled\\\"];r.case!==\\\"sensitive\\\"&&(i=i.map(v=>typeof v==\\\"string\\\"?v.toLowerCase():v),n=n.map(v=>typeof v==\\\"string\\\"?v.toLowerCase():v));const a=new Set(i),o=new Set(n),s=e.Codec??jm,u=e.Boolean??Rm,l=e.String??Iu,c=new l({type:\\\"string\\\",error:r.error}),f=new u({type:\\\"boolean\\\",error:r.error}),d=new s({type:\\\"pipe\\\",in:c,out:f,transform:((v,h)=>{let p=v;return r.case!==\\\"sensitive\\\"&&(p=p.toLowerCase()),a.has(p)?!0:o.has(p)?!1:(h.issues.push({code:\\\"invalid_value\\\",expected:\\\"stringbool\\\",values:[...a,...o],input:h.value,inst:d,continue:!1}),{})}),reverseTransform:((v,h)=>v===!0?i[0]||\\\"true\\\":n[0]||\\\"false\\\"),error:r.error});return d}function Uu(e,t,r,i={}){const n=U(i),a={...U(i),check:\\\"string_format\\\",type:\\\"string\\\",format:t,fn:typeof r==\\\"function\\\"?r:s=>r.test(s),...n};return r instanceof RegExp&&(a.pattern=r),new e(a)}function ao(e){let t=(e==null?void 0:e.target)??\\\"draft-2020-12\\\";return t===\\\"draft-4\\\"&&(t=\\\"draft-04\\\"),t===\\\"draft-7\\\"&&(t=\\\"draft-07\\\"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Kt,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??\\\"throw\\\",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??\\\"output\\\",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??\\\"ref\\\",reused:(e==null?void 0:e.reused)??\\\"inline\\\",external:(e==null?void 0:e.external)??void 0}}function Ve(e,t,r={path:[],schemaPath:[]}){var c,f;var i;const n=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;const o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);const s=(f=(c=e._zod).toJSONSchema)==null?void 0:f.call(c);if(s)o.schema=s;else{const d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,d);else{const h=o.schema,p=t.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(e,t,h,d)}const v=e._zod.parent;v&&(o.ref||(o.ref=v),Ve(v,t,d),t.seen.get(v).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Object.assign(o.schema,u),t.io===\\\"input\\\"&&Mt(e)&&(delete o.schema.examples,delete o.schema.default),t.io===\\\"input\\\"&&\\\"_prefault\\\"in o.schema&&((i=o.schema).default??(i.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function oo(e,t){var o,s,u,l;const r=e.seen.get(t);if(!r)throw new Error(\\\"Unprocessed schema. This is a bug in Zod.\\\");const i=new Map;for(const c of e.seen.entries()){const f=(o=e.metadataRegistry.get(c[0]))==null?void 0:o.id;if(f){const d=i.get(f);if(d&&d!==c[0])throw new Error(`Duplicate schema id \\\"${f}\\\" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(f,c[0])}}const n=c=>{var p;const f=e.target===\\\"draft-2020-12\\\"?\\\"$defs\\\":\\\"definitions\\\";if(e.external){const g=(p=e.external.registry.get(c[0]))==null?void 0:p.id,m=e.external.uri??(_=>_);if(g)return{ref:m(g)};const y=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=y,{defId:y,ref:`${m(\\\"__shared\\\")}#/${f}/${y}`}}if(c[1]===r)return{ref:\\\"#\\\"};const v=`#/${f}/`,h=c[1].schema.id??`__schema${e.counter++}`;return{defId:h,ref:v+h}},a=c=>{if(c[1].schema.$ref)return;const f=c[1],{ref:d,defId:v}=n(c);f.def={...f.schema},v&&(f.defId=v);const h=f.schema;for(const p in h)delete h[p];h.$ref=d};if(e.cycles===\\\"throw\\\")for(const c of e.seen.entries()){const f=c[1];if(f.cycle)throw new Error(`Cycle detected: #/${(s=f.cycle)==null?void 0:s.join(\\\"/\\\")}/<root>\\n\\nSet the \\\\`cycles\\\\` parameter to \\\\`\\\"ref\\\"\\\\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const f=c[1];if(t===c[0]){a(c);continue}if(e.external){const v=(u=e.external.registry.get(c[0]))==null?void 0:u.id;if(t!==c[0]&&v){a(c);continue}}if((l=e.metadataRegistry.get(c[0]))==null?void 0:l.id){a(c);continue}if(f.cycle){a(c);continue}if(f.count>1&&e.reused===\\\"ref\\\"){a(c);continue}}}function so(e,t){var s,u,l,c;const r=e.seen.get(t);if(!r)throw new Error(\\\"Unprocessed schema. This is a bug in Zod.\\\");const i=f=>{const d=e.seen.get(f);if(d.ref===null)return;const v=d.def??d.schema,h={...v},p=d.ref;if(d.ref=null,p){i(p);const m=e.seen.get(p),y=m.schema;if(y.$ref&&(e.target===\\\"draft-07\\\"||e.target===\\\"draft-04\\\"||e.target===\\\"openapi-3.0\\\")?(v.allOf=v.allOf??[],v.allOf.push(y)):Object.assign(v,y),Object.assign(v,h),f._zod.parent===p)for(const b in v)b===\\\"$ref\\\"||b===\\\"allOf\\\"||b in h||delete v[b];if(y.$ref&&m.def)for(const b in v)b===\\\"$ref\\\"||b===\\\"allOf\\\"||b in m.def&&JSON.stringify(v[b])===JSON.stringify(m.def[b])&&delete v[b]}const g=f._zod.parent;if(g&&g!==p){i(g);const m=e.seen.get(g);if(m!=null&&m.schema.$ref&&(v.$ref=m.schema.$ref,m.def))for(const y in v)y===\\\"$ref\\\"||y===\\\"allOf\\\"||y in m.def&&JSON.stringify(v[y])===JSON.stringify(m.def[y])&&delete v[y]}e.override({zodSchema:f,jsonSchema:v,path:d.path??[]})};for(const f of[...e.seen.entries()].reverse())i(f[0]);const n={};if(e.target===\\\"draft-2020-12\\\"?n.$schema=\\\"https://json-schema.org/draft/2020-12/schema\\\":e.target===\\\"draft-07\\\"?n.$schema=\\\"http://json-schema.org/draft-07/schema#\\\":e.target===\\\"draft-04\\\"?n.$schema=\\\"http://json-schema.org/draft-04/schema#\\\":e.target,(s=e.external)!=null&&s.uri){const f=(u=e.external.registry.get(t))==null?void 0:u.id;if(!f)throw new Error(\\\"Schema is missing an `id` property\\\");n.$id=e.external.uri(f)}Object.assign(n,r.def??r.schema);const a=(l=e.metadataRegistry.get(t))==null?void 0:l.id;a!==void 0&&n.id===a&&delete n.id;const o=((c=e.external)==null?void 0:c.defs)??{};for(const f of e.seen.entries()){const d=f[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,o[d.defId]=d.def)}e.external||Object.keys(o).length>0&&(e.target===\\\"draft-2020-12\\\"?n.$defs=o:n.definitions=o);try{const f=JSON.parse(JSON.stringify(n));return Object.defineProperty(f,\\\"~standard\\\",{value:{...t[\\\"~standard\\\"],jsonSchema:{input:Zs(t,\\\"input\\\",e.processors),output:Zs(t,\\\"output\\\",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw new Error(\\\"Error converting schema to JSON.\\\")}}function Mt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type===\\\"transform\\\")return!0;if(i.type===\\\"array\\\")return Mt(i.element,r);if(i.type===\\\"set\\\")return Mt(i.valueType,r);if(i.type===\\\"lazy\\\")return Mt(i.getter(),r);if(i.type===\\\"promise\\\"||i.type===\\\"optional\\\"||i.type===\\\"nonoptional\\\"||i.type===\\\"nullable\\\"||i.type===\\\"readonly\\\"||i.type===\\\"default\\\"||i.type===\\\"prefault\\\")return Mt(i.innerType,r);if(i.type===\\\"intersection\\\")return Mt(i.left,r)||Mt(i.right,r);if(i.type===\\\"record\\\"||i.type===\\\"map\\\")return Mt(i.keyType,r)||Mt(i.valueType,r);if(i.type===\\\"pipe\\\")return e._zod.traits.has(\\\"$ZodCodec\\\")?!0:Mt(i.in,r)||Mt(i.out,r);if(i.type===\\\"object\\\"){for(const n in i.shape)if(Mt(i.shape[n],r))return!0;return!1}if(i.type===\\\"union\\\"){for(const n of i.options)if(Mt(n,r))return!0;return!1}if(i.type===\\\"tuple\\\"){for(const n of i.items)if(Mt(n,r))return!0;return!!(i.rest&&Mt(i.rest,r))}return!1}const TD=(e,t={})=>r=>{const i=ao({...r,processors:t});return Ve(e,i),oo(i,e),so(i,e)},Zs=(e,t,r={})=>i=>{const{libraryOptions:n,target:a}=i??{},o=ao({...n??{},target:a,io:t,processors:r});return Ve(e,o),oo(o,e),so(o,e)},fR={guid:\\\"uuid\\\",url:\\\"uri\\\",datetime:\\\"date-time\\\",json_string:\\\"json-string\\\",regex:\\\"\\\"},kD=(e,t,r,i)=>{const n=r;n.type=\\\"string\\\";const{minimum:a,maximum:o,format:s,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof a==\\\"number\\\"&&(n.minLength=a),typeof o==\\\"number\\\"&&(n.maxLength=o),s&&(n.format=fR[s]??s,n.format===\\\"\\\"&&delete n.format,s===\\\"time\\\"&&delete n.format),l&&(n.contentEncoding=l),u&&u.size>0){const c=[...u];c.length===1?n.pattern=c[0].source:c.length>1&&(n.allOf=[...c.map(f=>({...t.target===\\\"draft-07\\\"||t.target===\\\"draft-04\\\"||t.target===\\\"openapi-3.0\\\"?{type:\\\"string\\\"}:{},pattern:f.source}))])}},ID=(e,t,r,i)=>{const n=r,{minimum:a,maximum:o,format:s,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:c}=e._zod.bag;typeof s==\\\"string\\\"&&s.includes(\\\"int\\\")?n.type=\\\"integer\\\":n.type=\\\"number\\\";const f=typeof c==\\\"number\\\"&&c>=(a??Number.NEGATIVE_INFINITY),d=typeof l==\\\"number\\\"&&l<=(o??Number.POSITIVE_INFINITY),v=t.target===\\\"draft-04\\\"||t.target===\\\"openapi-3.0\\\";f?v?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c:typeof a==\\\"number\\\"&&(n.minimum=a),d?v?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l:typeof o==\\\"number\\\"&&(n.maximum=o),typeof u==\\\"number\\\"&&(n.multipleOf=u)},$D=(e,t,r,i)=>{r.type=\\\"boolean\\\"},DD=(e,t,r,i)=>{if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"BigInt cannot be represented in JSON Schema\\\")},CD=(e,t,r,i)=>{if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"Symbols cannot be represented in JSON Schema\\\")},AD=(e,t,r,i)=>{t.target===\\\"openapi-3.0\\\"?(r.type=\\\"string\\\",r.nullable=!0,r.enum=[null]):r.type=\\\"null\\\"},PD=(e,t,r,i)=>{if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"Undefined cannot be represented in JSON Schema\\\")},MD=(e,t,r,i)=>{if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"Void cannot be represented in JSON Schema\\\")},LD=(e,t,r,i)=>{r.not={}},OD=(e,t,r,i)=>{},ED=(e,t,r,i)=>{},zD=(e,t,r,i)=>{if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"Date cannot be represented in JSON Schema\\\")},RD=(e,t,r,i)=>{const n=e._zod.def,a=pm(n.entries);a.every(o=>typeof o==\\\"number\\\")&&(r.type=\\\"number\\\"),a.every(o=>typeof o==\\\"string\\\")&&(r.type=\\\"string\\\"),r.enum=a},ND=(e,t,r,i)=>{const n=e._zod.def,a=[];for(const o of n.values)if(o===void 0){if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"Literal `undefined` cannot be represented in JSON Schema\\\")}else if(typeof o==\\\"bigint\\\"){if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"BigInt literals cannot be represented in JSON Schema\\\");a.push(Number(o))}else a.push(o);if(a.length!==0)if(a.length===1){const o=a[0];r.type=o===null?\\\"null\\\":typeof o,t.target===\\\"draft-04\\\"||t.target===\\\"openapi-3.0\\\"?r.enum=[o]:r.const=o}else a.every(o=>typeof o==\\\"number\\\")&&(r.type=\\\"number\\\"),a.every(o=>typeof o==\\\"string\\\")&&(r.type=\\\"string\\\"),a.every(o=>typeof o==\\\"boolean\\\")&&(r.type=\\\"boolean\\\"),a.every(o=>o===null)&&(r.type=\\\"null\\\"),r.enum=a},UD=(e,t,r,i)=>{if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"NaN cannot be represented in JSON Schema\\\")},BD=(e,t,r,i)=>{const n=r,a=e._zod.pattern;if(!a)throw new Error(\\\"Pattern not found in template literal\\\");n.type=\\\"string\\\",n.pattern=a.source},FD=(e,t,r,i)=>{const n=r,a={type:\\\"string\\\",format:\\\"binary\\\",contentEncoding:\\\"binary\\\"},{minimum:o,maximum:s,mime:u}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),u?u.length===1?(a.contentMediaType=u[0],Object.assign(n,a)):(Object.assign(n,a),n.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(n,a)},jD=(e,t,r,i)=>{r.type=\\\"boolean\\\"},ZD=(e,t,r,i)=>{if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"Custom types cannot be represented in JSON Schema\\\")},VD=(e,t,r,i)=>{if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"Function types cannot be represented in JSON Schema\\\")},GD=(e,t,r,i)=>{if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"Transforms cannot be represented in JSON Schema\\\")},HD=(e,t,r,i)=>{if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"Map cannot be represented in JSON Schema\\\")},WD=(e,t,r,i)=>{if(t.unrepresentable===\\\"throw\\\")throw new Error(\\\"Set cannot be represented in JSON Schema\\\")},qD=(e,t,r,i)=>{const n=r,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==\\\"number\\\"&&(n.minItems=o),typeof s==\\\"number\\\"&&(n.maxItems=s),n.type=\\\"array\\\",n.items=Ve(a.element,t,{...i,path:[...i.path,\\\"items\\\"]})},YD=(e,t,r,i)=>{var l;const n=r,a=e._zod.def;n.type=\\\"object\\\",n.properties={};const o=a.shape;for(const c in o)n.properties[c]=Ve(o[c],t,{...i,path:[...i.path,\\\"properties\\\",c]});const s=new Set(Object.keys(o)),u=new Set([...s].filter(c=>{const f=a.shape[c]._zod;return t.io===\\\"input\\\"?f.optin===void 0:f.optout===void 0}));u.size>0&&(n.required=Array.from(u)),((l=a.catchall)==null?void 0:l._zod.def.type)===\\\"never\\\"?n.additionalProperties=!1:a.catchall?a.catchall&&(n.additionalProperties=Ve(a.catchall,t,{...i,path:[...i.path,\\\"additionalProperties\\\"]})):t.io===\\\"output\\\"&&(n.additionalProperties=!1)},vy=(e,t,r,i)=>{const n=e._zod.def,a=n.inclusive===!1,o=n.options.map((s,u)=>Ve(s,t,{...i,path:[...i.path,a?\\\"oneOf\\\":\\\"anyOf\\\",u]}));a?r.oneOf=o:r.anyOf=o},XD=(e,t,r,i)=>{const n=e._zod.def,a=Ve(n.left,t,{...i,path:[...i.path,\\\"allOf\\\",0]}),o=Ve(n.right,t,{...i,path:[...i.path,\\\"allOf\\\",1]}),s=l=>\\\"allOf\\\"in l&&Object.keys(l).length===1,u=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];r.allOf=u},KD=(e,t,r,i)=>{const n=r,a=e._zod.def;n.type=\\\"array\\\";const o=t.target===\\\"draft-2020-12\\\"?\\\"prefixItems\\\":\\\"items\\\",s=t.target===\\\"draft-2020-12\\\"||t.target===\\\"openapi-3.0\\\"?\\\"items\\\":\\\"additionalItems\\\",u=a.items.map((d,v)=>Ve(d,t,{...i,path:[...i.path,o,v]})),l=a.rest?Ve(a.rest,t,{...i,path:[...i.path,s,...t.target===\\\"openapi-3.0\\\"?[a.items.length]:[]]}):null;t.target===\\\"draft-2020-12\\\"?(n.prefixItems=u,l&&(n.items=l)):t.target===\\\"openapi-3.0\\\"?(n.items={anyOf:u},l&&n.items.anyOf.push(l),n.minItems=u.length,l||(n.maxItems=u.length)):(n.items=u,l&&(n.additionalItems=l));const{minimum:c,maximum:f}=e._zod.bag;typeof c==\\\"number\\\"&&(n.minItems=c),typeof f==\\\"number\\\"&&(n.maxItems=f)},JD=(e,t,r,i)=>{const n=r,a=e._zod.def;n.type=\\\"object\\\";const o=a.keyType,s=o._zod.bag,u=s==null?void 0:s.patterns;if(a.mode===\\\"loose\\\"&&u&&u.size>0){const c=Ve(a.valueType,t,{...i,path:[...i.path,\\\"patternProperties\\\",\\\"*\\\"]});n.patternProperties={};for(const f of u)n.patternProperties[f.source]=c}else(t.target===\\\"draft-07\\\"||t.target===\\\"draft-2020-12\\\")&&(n.propertyNames=Ve(a.keyType,t,{...i,path:[...i.path,\\\"propertyNames\\\"]})),n.additionalProperties=Ve(a.valueType,t,{...i,path:[...i.path,\\\"additionalProperties\\\"]});const l=o._zod.values;if(l){const c=[...l].filter(f=>typeof f==\\\"string\\\"||typeof f==\\\"number\\\");c.length>0&&(n.required=c)}},QD=(e,t,r,i)=>{const n=e._zod.def,a=Ve(n.innerType,t,i),o=t.seen.get(e);t.target===\\\"openapi-3.0\\\"?(o.ref=n.innerType,r.nullable=!0):r.anyOf=[a,{type:\\\"null\\\"}]},eC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType},tC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},rC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType,t.io===\\\"input\\\"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},nC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType;let o;try{o=n.catchValue(void 0)}catch{throw new Error(\\\"Dynamic catch values are not supported in JSON Schema\\\")}r.default=o},iC=(e,t,r,i)=>{const n=e._zod.def,a=n.in._zod.traits.has(\\\"$ZodTransform\\\"),o=t.io===\\\"input\\\"?a?n.out:n.in:n.out;Ve(o,t,i);const s=t.seen.get(e);s.ref=o},aC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType,r.readOnly=!0},oC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType},hy=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType},sC=(e,t,r,i)=>{const n=e._zod.innerType;Ve(n,t,i);const a=t.seen.get(e);a.ref=n},Ap={string:kD,number:ID,boolean:$D,bigint:DD,symbol:CD,null:AD,undefined:PD,void:MD,never:LD,any:OD,unknown:ED,date:zD,enum:RD,literal:ND,nan:UD,template_literal:BD,file:FD,success:jD,custom:ZD,function:VD,transform:GD,map:HD,set:WD,array:qD,object:YD,union:vy,intersection:XD,tuple:KD,record:JD,nullable:QD,nonoptional:eC,default:tC,prefault:rC,catch:nC,pipe:iC,readonly:aC,promise:oC,optional:hy,lazy:sC};function py(e,t){if(\\\"_idmap\\\"in e){const i=e,n=ao({...t,processors:Ap}),a={};for(const u of i._idmap.entries()){const[l,c]=u;Ve(c,n)}const o={},s={registry:i,uri:t==null?void 0:t.uri,defs:a};n.external=s;for(const u of i._idmap.entries()){const[l,c]=u;oo(n,c),o[l]=so(n,c)}if(Object.keys(a).length>0){const u=n.target===\\\"draft-2020-12\\\"?\\\"$defs\\\":\\\"definitions\\\";o.__shared={[u]:a}}return{schemas:o}}const r=ao({...t,processors:Ap});return Ve(e,r),oo(r,e),so(r,e)}class dR{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=(t==null?void 0:t.target)??\\\"draft-2020-12\\\";r===\\\"draft-4\\\"&&(r=\\\"draft-04\\\"),r===\\\"draft-7\\\"&&(r=\\\"draft-07\\\"),this.ctx=ao({processors:Ap,target:r,...(t==null?void 0:t.metadata)&&{metadata:t.metadata},...(t==null?void 0:t.unrepresentable)&&{unrepresentable:t.unrepresentable},...(t==null?void 0:t.override)&&{override:t.override},...(t==null?void 0:t.io)&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return Ve(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),oo(this.ctx,t);const i=so(this.ctx,t),{\\\"~standard\\\":n,...a}=i;return a}}const vR=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:\\\"Module\\\"})),uC=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:e$,$ZodArray:a$,$ZodAsyncError:Gi,$ZodBase64:jI,$ZodBase64URL:VI,$ZodBigInt:Nm,$ZodBigIntFormat:XI,$ZodBoolean:Rm,$ZodCIDRv4:BI,$ZodCIDRv6:FI,$ZodCUID:DI,$ZodCUID2:CI,$ZodCatch:I$,$ZodCheck:Ke,$ZodCheckBigIntFormat:iI,$ZodCheckEndsWith:gI,$ZodCheckGreaterThan:Om,$ZodCheckIncludes:hI,$ZodCheckLengthEquals:cI,$ZodCheckLessThan:Lm,$ZodCheckLowerCase:dI,$ZodCheckMaxLength:uI,$ZodCheckMaxSize:aI,$ZodCheckMimeType:yI,$ZodCheckMinLength:lI,$ZodCheckMinSize:oI,$ZodCheckMultipleOf:rI,$ZodCheckNumberFormat:nI,$ZodCheckOverwrite:_I,$ZodCheckProperty:mI,$ZodCheckRegex:fI,$ZodCheckSizeEquals:sI,$ZodCheckStartsWith:pI,$ZodCheckStringFormat:ku,$ZodCheckUpperCase:vI,$ZodCodec:jm,$ZodCustom:O$,$ZodCustomStringFormat:qI,$ZodDate:i$,$ZodDefault:w$,$ZodDiscriminatedUnion:f$,$ZodE164:GI,$ZodEmail:TI,$ZodEmoji:II,$ZodEncodeError:Xf,$ZodEnum:g$,$ZodError:ym,$ZodExactOptional:b$,$ZodFile:y$,$ZodFunction:P$,$ZodGUID:wI,$ZodIPv4:RI,$ZodIPv6:NI,$ZodISODate:OI,$ZodISODateTime:LI,$ZodISODuration:zI,$ZodISOTime:EI,$ZodIntersection:d$,$ZodJWT:WI,$ZodKSUID:MI,$ZodLazy:L$,$ZodLiteral:m$,$ZodMAC:UI,$ZodMap:h$,$ZodNaN:$$,$ZodNanoID:$I,$ZodNever:r$,$ZodNonOptional:T$,$ZodNull:QI,$ZodNullable:S$,$ZodNumber:zm,$ZodNumberFormat:YI,$ZodObject:u$,$ZodObjectJIT:l$,$ZodOptional:Bm,$ZodPipe:Fm,$ZodPrefault:x$,$ZodPreprocess:D$,$ZodPromise:M$,$ZodReadonly:C$,$ZodRealError:rr,$ZodRecord:v$,$ZodRegistry:N$,$ZodSet:p$,$ZodString:Iu,$ZodStringFormat:qe,$ZodSuccess:k$,$ZodSymbol:KI,$ZodTemplateLiteral:A$,$ZodTransform:_$,$ZodTuple:Um,$ZodType:ve,$ZodULID:AI,$ZodURL:kI,$ZodUUID:xI,$ZodUndefined:JI,$ZodUnion:id,$ZodUnknown:t$,$ZodVoid:n$,$ZodXID:PI,$ZodXor:c$,$brand:hm,$constructor:M,$input:Gm,$output:Vm,Doc:bI,JSONSchema:vR,JSONSchemaGenerator:dR,NEVER:vm,TimePrecision:dy,_any:uD,_array:pD,_base64:uy,_base64url:ly,_bigint:tD,_boolean:Q$,_catch:aR,_check:bD,_cidrv4:oy,_cidrv6:sy,_coercedBigint:rD,_coercedBoolean:eD,_coercedDate:vD,_coercedNumber:W$,_coercedString:B$,_cuid:Qm,_cuid2:ey,_custom:mD,_date:dD,_decode:xm,_decodeAsync:km,_default:rR,_discriminatedUnion:V2,_e164:cy,_email:Hm,_emoji:Km,_encode:wm,_encodeAsync:Tm,_endsWith:Mu,_enum:X2,_file:gD,_float32:Y$,_float64:X$,_gt:kn,_gte:zt,_guid:af,_includes:Au,_int:q$,_int32:K$,_int64:nD,_intersection:G2,_ipv4:iy,_ipv6:ay,_isoDate:Z$,_isoDateTime:j$,_isoDuration:G$,_isoTime:V$,_jwt:fy,_ksuid:ny,_lazy:lR,_length:$o,_literal:J2,_lowercase:Du,_lt:Tn,_lte:Jt,_mac:F$,_map:q2,_max:Jt,_maxLength:Io,_maxSize:da,_mime:Lu,_min:zt,_minLength:ei,_minSize:In,_multipleOf:Qi,_nan:hD,_nanoid:Jm,_nativeEnum:K2,_negative:ud,_never:cD,_nonnegative:cd,_nonoptional:nR,_nonpositive:ld,_normalize:Ou,_null:sD,_nullable:tR,_number:H$,_optional:eR,_overwrite:fn,_parse:_u,_parseAsync:bu,_pipe:oR,_positive:sd,_promise:cR,_property:fd,_readonly:sR,_record:W2,_refine:yD,_regex:$u,_safeDecode:$m,_safeDecodeAsync:Cm,_safeEncode:Im,_safeEncodeAsync:Dm,_safeParse:Su,_safeParseAsync:wu,_set:Y2,_size:ko,_slugify:Nu,_startsWith:Pu,_string:U$,_stringFormat:Uu,_stringbool:xD,_success:iR,_superRefine:_D,_symbol:aD,_templateLiteral:uR,_toLowerCase:zu,_toUpperCase:Ru,_transform:Q2,_trim:Eu,_tuple:H2,_uint32:J$,_uint64:iD,_ulid:ty,_undefined:oD,_union:j2,_unknown:lD,_uppercase:Cu,_url:od,_uuid:Wm,_uuidv4:qm,_uuidv6:Ym,_uuidv7:Xm,_void:fD,_xid:ry,_xor:Z2,clone:tr,config:ht,createStandardJSONSchemaMethod:Zs,createToJSONSchemaMethod:TD,decode:bE,decodeAsync:wE,describe:SD,encode:_E,encodeAsync:SE,extractDefs:oo,finalize:so,flattenError:td,formatError:rd,globalConfig:js,globalRegistry:Kt,initializeContext:ao,isValidBase64:Em,isValidBase64URL:ZI,isValidJWT:HI,locales:Zm,meta:wD,parse:$p,parseAsync:Dp,prettifyError:bm,process:Ve,regexes:nd,registry:ad,safeDecode:TE,safeDecodeAsync:IE,safeEncode:xE,safeEncodeAsync:kE,safeParse:Sm,safeParseAsync:bk,toDotPath:_k,toJSONSchema:py,treeifyError:_m,util:mm,version:SI},Symbol.toStringTag,{value:\\\"Module\\\"}));function gy(e){return!!e._zod}function lC(e,t){return gy(e)?Sm(e,t):e.safeParse(t)}function hR(e){var r,i;if(!e)return;let t;if(gy(e)?t=(i=(r=e._zod)==null?void 0:r.def)==null?void 0:i.shape:t=e.shape,!!t){if(typeof t==\\\"function\\\")try{return t()}catch{return}return t}}function pR(e){var n;if(gy(e)){const o=(n=e._zod)==null?void 0:n.def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}}const r=e._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}const i=e.value;if(i!==void 0)return i}const gR=Object.freeze(Object.defineProperty({__proto__:null,endsWith:Mu,gt:kn,gte:zt,includes:Au,length:$o,lowercase:Du,lt:Tn,lte:Jt,maxLength:Io,maxSize:da,mime:Lu,minLength:ei,minSize:In,multipleOf:Qi,negative:ud,nonnegative:cd,nonpositive:ld,normalize:Ou,overwrite:fn,positive:sd,property:fd,regex:$u,size:ko,slugify:Nu,startsWith:Pu,toLowerCase:zu,toUpperCase:Ru,trim:Eu,uppercase:Cu},Symbol.toStringTag,{value:\\\"Module\\\"})),dd=M(\\\"ZodISODateTime\\\",(e,t)=>{LI.init(e,t),Ge.init(e,t)});function my(e){return j$(dd,e)}const vd=M(\\\"ZodISODate\\\",(e,t)=>{OI.init(e,t),Ge.init(e,t)});function cC(e){return Z$(vd,e)}const hd=M(\\\"ZodISOTime\\\",(e,t)=>{EI.init(e,t),Ge.init(e,t)});function fC(e){return V$(hd,e)}const pd=M(\\\"ZodISODuration\\\",(e,t)=>{zI.init(e,t),Ge.init(e,t)});function dC(e){return G$(pd,e)}const yy=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:vd,ZodISODateTime:dd,ZodISODuration:pd,ZodISOTime:hd,date:cC,datetime:my,duration:dC,time:fC},Symbol.toStringTag,{value:\\\"Module\\\"})),vC=(e,t)=>{ym.init(e,t),e.name=\\\"ZodError\\\",Object.defineProperties(e,{format:{value:r=>rd(e,r)},flatten:{value:r=>td(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,tf,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,tf,2)}},isEmpty:{get(){return e.issues.length===0}}})},hC=M(\\\"ZodError\\\",vC),Yt=M(\\\"ZodError\\\",vC,{Parent:Error}),_y=_u(Yt),by=bu(Yt),Sy=Su(Yt),wy=wu(Yt),xy=wm(Yt),Ty=xm(Yt),ky=Tm(Yt),Iy=km(Yt),$y=Im(Yt),Dy=$m(Yt),Cy=Dm(Yt),Ay=Cm(Yt),mS=new WeakMap;function Bu(e,t,r){const i=Object.getPrototypeOf(e);let n=mS.get(i);if(n||(n=new Set,mS.set(i,n)),!n.has(t)){n.add(t);for(const a in r){const o=r[a];Object.defineProperty(i,a,{configurable:!0,enumerable:!1,get(){const s=o.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}const ge=M(\\\"ZodType\\\",(e,t)=>(ve.init(e,t),Object.assign(e[\\\"~standard\\\"],{jsonSchema:{input:Zs(e,\\\"input\\\"),output:Zs(e,\\\"output\\\")}}),e.toJSONSchema=TD(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,\\\"_def\\\",{value:t}),e.parse=(r,i)=>_y(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>Sy(e,r,i),e.parseAsync=async(r,i)=>by(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>wy(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>xy(e,r,i),e.decode=(r,i)=>Ty(e,r,i),e.encodeAsync=async(r,i)=>ky(e,r,i),e.decodeAsync=async(r,i)=>Iy(e,r,i),e.safeEncode=(r,i)=>$y(e,r,i),e.safeDecode=(r,i)=>Dy(e,r,i),e.safeEncodeAsync=async(r,i)=>Cy(e,r,i),e.safeDecodeAsync=async(r,i)=>Ay(e,r,i),Bu(e,\\\"ZodType\\\",{check(...r){const i=this.def;return this.clone(cn(i,{checks:[...i.checks??[],...r.map(n=>typeof n==\\\"function\\\"?{_zod:{check:n,def:{check:\\\"custom\\\"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return tr(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(rv(r,i))},superRefine(r,i){return this.check(nv(r,i))},overwrite(r){return this.check(fn(r))},optional(){return We(this)},exactOptional(){return zd(this)},nullable(){return co(this)},nullish(){return We(co(this))},nonoptional(r){return jd(this,r)},array(){return ue(this)},or(r){return Se([this,r])},and(r){return Eo(this,r)},transform(r){return Gs(this,ul(r))},default(r){return Ud(this,r)},prefault(r){return Fd(this,r)},catch(r){return Gd(this,r)},pipe(r){return Gs(this,r)},readonly(){return Yd(this)},describe(r){const i=this.clone();return Kt.add(i,{description:r}),i},meta(...r){if(r.length===0)return Kt.get(this);const i=this.clone();return Kt.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,\\\"description\\\",{get(){var r;return(r=Kt.get(e))==null?void 0:r.description},configurable:!0}),e)),Fu=M(\\\"_ZodString\\\",(e,t)=>{Iu.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(i,n,a)=>kD(e,i,n);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Bu(e,\\\"_ZodString\\\",{regex(...i){return this.check($u(...i))},includes(...i){return this.check(Au(...i))},startsWith(...i){return this.check(Pu(...i))},endsWith(...i){return this.check(Mu(...i))},min(...i){return this.check(ei(...i))},max(...i){return this.check(Io(...i))},length(...i){return this.check($o(...i))},nonempty(...i){return this.check(ei(1,...i))},lowercase(i){return this.check(Du(i))},uppercase(i){return this.check(Cu(i))},trim(){return this.check(Eu())},normalize(...i){return this.check(Ou(...i))},toLowerCase(){return this.check(zu())},toUpperCase(){return this.check(Ru())},slugify(){return this.check(Nu())}})}),Do=M(\\\"ZodString\\\",(e,t)=>{Iu.init(e,t),Fu.init(e,t),e.email=r=>e.check(Hm(ju,r)),e.url=r=>e.check(od(Co,r)),e.jwt=r=>e.check(fy(nl,r)),e.emoji=r=>e.check(Km(Zu,r)),e.guid=r=>e.check(af(uo,r)),e.uuid=r=>e.check(Wm(Or,r)),e.uuidv4=r=>e.check(qm(Or,r)),e.uuidv6=r=>e.check(Ym(Or,r)),e.uuidv7=r=>e.check(Xm(Or,r)),e.nanoid=r=>e.check(Jm(Vu,r)),e.guid=r=>e.check(af(uo,r)),e.cuid=r=>e.check(Qm(Gu,r)),e.cuid2=r=>e.check(ey(Hu,r)),e.ulid=r=>e.check(ty(Wu,r)),e.base64=r=>e.check(uy(el,r)),e.base64url=r=>e.check(ly(tl,r)),e.xid=r=>e.check(ry(qu,r)),e.ksuid=r=>e.check(ny(Yu,r)),e.ipv4=r=>e.check(iy(Xu,r)),e.ipv6=r=>e.check(ay(Ku,r)),e.cidrv4=r=>e.check(oy(Ju,r)),e.cidrv6=r=>e.check(sy(Qu,r)),e.e164=r=>e.check(cy(rl,r)),e.datetime=r=>e.check(my(r)),e.date=r=>e.check(cC(r)),e.time=r=>e.check(fC(r)),e.duration=r=>e.check(dC(r))});function O(e){return U$(Do,e)}const Ge=M(\\\"ZodStringFormat\\\",(e,t)=>{qe.init(e,t),Fu.init(e,t)}),ju=M(\\\"ZodEmail\\\",(e,t)=>{TI.init(e,t),Ge.init(e,t)});function Py(e){return Hm(ju,e)}const uo=M(\\\"ZodGUID\\\",(e,t)=>{wI.init(e,t),Ge.init(e,t)});function My(e){return af(uo,e)}const Or=M(\\\"ZodUUID\\\",(e,t)=>{xI.init(e,t),Ge.init(e,t)});function Ly(e){return Wm(Or,e)}function Oy(e){return qm(Or,e)}function Ey(e){return Ym(Or,e)}function zy(e){return Xm(Or,e)}const Co=M(\\\"ZodURL\\\",(e,t)=>{kI.init(e,t),Ge.init(e,t)});function Ry(e){return od(Co,e)}function Ny(e){return od(Co,{protocol:Pm,hostname:Uk,...U(e)})}const Zu=M(\\\"ZodEmoji\\\",(e,t)=>{II.init(e,t),Ge.init(e,t)});function Uy(e){return Km(Zu,e)}const Vu=M(\\\"ZodNanoID\\\",(e,t)=>{$I.init(e,t),Ge.init(e,t)});function By(e){return Jm(Vu,e)}const Gu=M(\\\"ZodCUID\\\",(e,t)=>{DI.init(e,t),Ge.init(e,t)});function Fy(e){return Qm(Gu,e)}const Hu=M(\\\"ZodCUID2\\\",(e,t)=>{CI.init(e,t),Ge.init(e,t)});function jy(e){return ey(Hu,e)}const Wu=M(\\\"ZodULID\\\",(e,t)=>{AI.init(e,t),Ge.init(e,t)});function Zy(e){return ty(Wu,e)}const qu=M(\\\"ZodXID\\\",(e,t)=>{PI.init(e,t),Ge.init(e,t)});function Vy(e){return ry(qu,e)}const Yu=M(\\\"ZodKSUID\\\",(e,t)=>{MI.init(e,t),Ge.init(e,t)});function Gy(e){return ny(Yu,e)}const Xu=M(\\\"ZodIPv4\\\",(e,t)=>{RI.init(e,t),Ge.init(e,t)});function Hy(e){return iy(Xu,e)}const gd=M(\\\"ZodMAC\\\",(e,t)=>{UI.init(e,t),Ge.init(e,t)});function Wy(e){return F$(gd,e)}const Ku=M(\\\"ZodIPv6\\\",(e,t)=>{NI.init(e,t),Ge.init(e,t)});function qy(e){return ay(Ku,e)}const Ju=M(\\\"ZodCIDRv4\\\",(e,t)=>{BI.init(e,t),Ge.init(e,t)});function Yy(e){return oy(Ju,e)}const Qu=M(\\\"ZodCIDRv6\\\",(e,t)=>{FI.init(e,t),Ge.init(e,t)});function Xy(e){return sy(Qu,e)}const el=M(\\\"ZodBase64\\\",(e,t)=>{jI.init(e,t),Ge.init(e,t)});function Ky(e){return uy(el,e)}const tl=M(\\\"ZodBase64URL\\\",(e,t)=>{VI.init(e,t),Ge.init(e,t)});function Jy(e){return ly(tl,e)}const rl=M(\\\"ZodE164\\\",(e,t)=>{GI.init(e,t),Ge.init(e,t)});function Qy(e){return cy(rl,e)}const nl=M(\\\"ZodJWT\\\",(e,t)=>{WI.init(e,t),Ge.init(e,t)});function e_(e){return fy(nl,e)}const va=M(\\\"ZodCustomStringFormat\\\",(e,t)=>{qI.init(e,t),Ge.init(e,t)});function t_(e,t,r={}){return Uu(va,e,t,r)}function r_(e){return Uu(va,\\\"hostname\\\",Nk,e)}function n_(e){return Uu(va,\\\"hex\\\",eI,e)}function i_(e,t){const r=(t==null?void 0:t.enc)??\\\"hex\\\",i=`${e}_${r}`,n=nd[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Uu(va,i,n,t)}const Ao=M(\\\"ZodNumber\\\",(e,t)=>{zm.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(i,n,a)=>ID(e,i,n),Bu(e,\\\"ZodNumber\\\",{gt(i,n){return this.check(kn(i,n))},gte(i,n){return this.check(zt(i,n))},min(i,n){return this.check(zt(i,n))},lt(i,n){return this.check(Tn(i,n))},lte(i,n){return this.check(Jt(i,n))},max(i,n){return this.check(Jt(i,n))},int(i){return this.check(Vs(i))},safe(i){return this.check(Vs(i))},positive(i){return this.check(kn(0,i))},nonnegative(i){return this.check(zt(0,i))},negative(i){return this.check(Tn(0,i))},nonpositive(i){return this.check(Jt(0,i))},multipleOf(i,n){return this.check(Qi(i,n))},step(i,n){return this.check(Qi(i,n))},finite(){return this}});const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??\\\"\\\").includes(\\\"int\\\")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function he(e){return H$(Ao,e)}const si=M(\\\"ZodNumberFormat\\\",(e,t)=>{YI.init(e,t),Ao.init(e,t)});function Vs(e){return q$(si,e)}function a_(e){return Y$(si,e)}function o_(e){return X$(si,e)}function s_(e){return K$(si,e)}function u_(e){return J$(si,e)}const Po=M(\\\"ZodBoolean\\\",(e,t)=>{Rm.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>$D(e,r,i)});function ze(e){return Q$(Po,e)}const Mo=M(\\\"ZodBigInt\\\",(e,t)=>{Nm.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(i,n,a)=>DD(e,i),e.gte=(i,n)=>e.check(zt(i,n)),e.min=(i,n)=>e.check(zt(i,n)),e.gt=(i,n)=>e.check(kn(i,n)),e.gte=(i,n)=>e.check(zt(i,n)),e.min=(i,n)=>e.check(zt(i,n)),e.lt=(i,n)=>e.check(Tn(i,n)),e.lte=(i,n)=>e.check(Jt(i,n)),e.max=(i,n)=>e.check(Jt(i,n)),e.positive=i=>e.check(kn(BigInt(0),i)),e.negative=i=>e.check(Tn(BigInt(0),i)),e.nonpositive=i=>e.check(Jt(BigInt(0),i)),e.nonnegative=i=>e.check(zt(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(Qi(i,n));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function l_(e){return tD(Mo,e)}const il=M(\\\"ZodBigIntFormat\\\",(e,t)=>{XI.init(e,t),Mo.init(e,t)});function c_(e){return nD(il,e)}function f_(e){return iD(il,e)}const md=M(\\\"ZodSymbol\\\",(e,t)=>{KI.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>CD(e,r)});function d_(e){return aD(md,e)}const yd=M(\\\"ZodUndefined\\\",(e,t)=>{JI.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>PD(e,r)});function lo(e){return oD(yd,e)}const _d=M(\\\"ZodNull\\\",(e,t)=>{QI.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>AD(e,r,i)});function al(e){return sD(_d,e)}const bd=M(\\\"ZodAny\\\",(e,t)=>{e$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>OD()});function v_(){return uD(bd)}const Sd=M(\\\"ZodUnknown\\\",(e,t)=>{t$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ED()});function Le(){return lD(Sd)}const wd=M(\\\"ZodNever\\\",(e,t)=>{r$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>LD(e,r,i)});function ea(e){return cD(wd,e)}const xd=M(\\\"ZodVoid\\\",(e,t)=>{n$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>MD(e,r)});function h_(e){return fD(xd,e)}const ol=M(\\\"ZodDate\\\",(e,t)=>{i$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(i,n,a)=>zD(e,i),e.min=(i,n)=>e.check(zt(i,n)),e.max=(i,n)=>e.check(Jt(i,n));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function p_(e){return dD(ol,e)}const Td=M(\\\"ZodArray\\\",(e,t)=>{a$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qD(e,r,i,n),e.element=t.element,Bu(e,\\\"ZodArray\\\",{min(r,i){return this.check(ei(r,i))},nonempty(r){return this.check(ei(1,r))},max(r,i){return this.check(Io(r,i))},length(r,i){return this.check($o(r,i))},unwrap(){return this.element}})});function ue(e,t){return pD(Td,e,t)}function g_(e){const t=e._zod.def.shape;return St(Object.keys(t))}const Lo=M(\\\"ZodObject\\\",(e,t)=>{l$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>YD(e,r,i,n),be(e,\\\"shape\\\",()=>t.shape),Bu(e,\\\"ZodObject\\\",{keyof(){return St(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:Le()})},loose(){return this.clone({...this._zod.def,catchall:Le()})},strict(){return this.clone({...this._zod.def,catchall:ea()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return ck(this,r)},safeExtend(r){return fk(this,r)},merge(r){return dk(this,r)},pick(r){return uk(this,r)},omit(r){return lk(this,r)},partial(...r){return vk(ll,this,r[0])},required(...r){return hk(cl,this,r[0])}})});function E(e,t){const r={type:\\\"object\\\",shape:e??{},...U(t)};return new Lo(r)}function m_(e,t){return new Lo({type:\\\"object\\\",shape:e,catchall:ea(),...U(t)})}function yt(e,t){return new Lo({type:\\\"object\\\",shape:e,catchall:Le(),...U(t)})}const Oo=M(\\\"ZodUnion\\\",(e,t)=>{id.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>vy(e,r,i,n),e.options=t.options});function Se(e,t){return new Oo({type:\\\"union\\\",options:e,...U(t)})}const kd=M(\\\"ZodXor\\\",(e,t)=>{Oo.init(e,t),c$.init(e,t),e._zod.processJSONSchema=(r,i,n)=>vy(e,r,i,n),e.options=t.options});function y_(e,t){return new kd({type:\\\"union\\\",options:e,inclusive:!1,...U(t)})}const Id=M(\\\"ZodDiscriminatedUnion\\\",(e,t)=>{Oo.init(e,t),f$.init(e,t)});function sl(e,t,r){return new Id({type:\\\"union\\\",options:t,discriminator:e,...U(r)})}const $d=M(\\\"ZodIntersection\\\",(e,t)=>{d$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>XD(e,r,i,n)});function Eo(e,t){return new $d({type:\\\"intersection\\\",left:e,right:t})}const Dd=M(\\\"ZodTuple\\\",(e,t)=>{Um.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>KD(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Cd(e,t,r){const i=t instanceof ve,n=i?r:t,a=i?t:null;return new Dd({type:\\\"tuple\\\",items:e,rest:a,...U(n)})}const ta=M(\\\"ZodRecord\\\",(e,t)=>{v$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>JD(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function De(e,t,r){return!t||!t._zod?new ta({type:\\\"record\\\",keyType:O(),valueType:e,...U(t)}):new ta({type:\\\"record\\\",keyType:e,valueType:t,...U(r)})}function __(e,t,r){const i=tr(e);return i._zod.values=void 0,new ta({type:\\\"record\\\",keyType:i,valueType:t,...U(r)})}function b_(e,t,r){return new ta({type:\\\"record\\\",keyType:e,valueType:t,mode:\\\"loose\\\",...U(r)})}const Ad=M(\\\"ZodMap\\\",(e,t)=>{h$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>HD(e,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(In(...r)),e.nonempty=r=>e.check(In(1,r)),e.max=(...r)=>e.check(da(...r)),e.size=(...r)=>e.check(ko(...r))});function S_(e,t,r){return new Ad({type:\\\"map\\\",keyType:e,valueType:t,...U(r)})}const Pd=M(\\\"ZodSet\\\",(e,t)=>{p$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>WD(e,r),e.min=(...r)=>e.check(In(...r)),e.nonempty=r=>e.check(In(1,r)),e.max=(...r)=>e.check(da(...r)),e.size=(...r)=>e.check(ko(...r))});function w_(e,t){return new Pd({type:\\\"set\\\",valueType:e,...U(t)})}const ra=M(\\\"ZodEnum\\\",(e,t)=>{g$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(i,n,a)=>RD(e,i,n),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{const a={};for(const o of i)if(r.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new ra({...t,checks:[],...U(n),entries:a})},e.exclude=(i,n)=>{const a={...t.entries};for(const o of i)if(r.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new ra({...t,checks:[],...U(n),entries:a})}});function St(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ra({type:\\\"enum\\\",entries:r,...U(t)})}function x_(e,t){return new ra({type:\\\"enum\\\",entries:e,...U(t)})}const Md=M(\\\"ZodLiteral\\\",(e,t)=>{m$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ND(e,r,i),e.values=new Set(t.values),Object.defineProperty(e,\\\"value\\\",{get(){if(t.values.length>1)throw new Error(\\\"This schema contains multiple valid literal values. Use `.values` instead.\\\");return t.values[0]}})});function L(e,t){return new Md({type:\\\"literal\\\",values:Array.isArray(e)?e:[e],...U(t)})}const Ld=M(\\\"ZodFile\\\",(e,t)=>{y$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>FD(e,r,i),e.min=(r,i)=>e.check(In(r,i)),e.max=(r,i)=>e.check(da(r,i)),e.mime=(r,i)=>e.check(Lu(Array.isArray(r)?r:[r],i))});function T_(e){return gD(Ld,e)}const Od=M(\\\"ZodTransform\\\",(e,t)=>{_$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>GD(e,r),e._zod.parse=(r,i)=>{if(i.direction===\\\"backward\\\")throw new Xf(e.constructor.name);r.addIssue=a=>{if(typeof a==\\\"string\\\")r.issues.push(no(a,r.value,t));else{const o=a;o.fatal&&(o.continue=!1),o.code??(o.code=\\\"custom\\\"),o.input??(o.input=r.value),o.inst??(o.inst=e),r.issues.push(no(o))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(a=>(r.value=a,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function ul(e){return new Od({type:\\\"transform\\\",transform:e})}const ll=M(\\\"ZodOptional\\\",(e,t)=>{Bm.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>hy(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function We(e){return new ll({type:\\\"optional\\\",innerType:e})}const Ed=M(\\\"ZodExactOptional\\\",(e,t)=>{b$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>hy(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function zd(e){return new Ed({type:\\\"optional\\\",innerType:e})}const Rd=M(\\\"ZodNullable\\\",(e,t)=>{S$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>QD(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function co(e){return new Rd({type:\\\"nullable\\\",innerType:e})}function k_(e){return We(co(e))}const Nd=M(\\\"ZodDefault\\\",(e,t)=>{w$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>tC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ud(e,t){return new Nd({type:\\\"default\\\",innerType:e,get defaultValue(){return typeof t==\\\"function\\\"?t():Jf(t)}})}const Bd=M(\\\"ZodPrefault\\\",(e,t)=>{x$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>rC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Fd(e,t){return new Bd({type:\\\"prefault\\\",innerType:e,get defaultValue(){return typeof t==\\\"function\\\"?t():Jf(t)}})}const cl=M(\\\"ZodNonOptional\\\",(e,t)=>{T$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>eC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function jd(e,t){return new cl({type:\\\"nonoptional\\\",innerType:e,...U(t)})}const Zd=M(\\\"ZodSuccess\\\",(e,t)=>{k$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jD(e,r,i),e.unwrap=()=>e._zod.def.innerType});function I_(e){return new Zd({type:\\\"success\\\",innerType:e})}const Vd=M(\\\"ZodCatch\\\",(e,t)=>{I$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>nC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Gd(e,t){return new Vd({type:\\\"catch\\\",innerType:e,catchValue:typeof t==\\\"function\\\"?t:()=>t})}const Hd=M(\\\"ZodNaN\\\",(e,t)=>{$$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>UD(e,r)});function $_(e){return hD(Hd,e)}const zo=M(\\\"ZodPipe\\\",(e,t)=>{Fm.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>iC(e,r,i,n),e.in=t.in,e.out=t.out});function Gs(e,t){return new zo({type:\\\"pipe\\\",in:e,out:t})}const Ro=M(\\\"ZodCodec\\\",(e,t)=>{zo.init(e,t),jm.init(e,t)});function D_(e,t,r){return new Ro({type:\\\"pipe\\\",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function C_(e){const t=e._zod.def;return new Ro({type:\\\"pipe\\\",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}const Wd=M(\\\"ZodPreprocess\\\",(e,t)=>{zo.init(e,t),D$.init(e,t)}),qd=M(\\\"ZodReadonly\\\",(e,t)=>{C$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>aC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Yd(e){return new qd({type:\\\"readonly\\\",innerType:e})}const Xd=M(\\\"ZodTemplateLiteral\\\",(e,t)=>{A$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>BD(e,r,i)});function A_(e,t){return new Xd({type:\\\"template_literal\\\",parts:e,...U(t)})}const Kd=M(\\\"ZodLazy\\\",(e,t)=>{L$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>sC(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Jd(e){return new Kd({type:\\\"lazy\\\",getter:e})}const Qd=M(\\\"ZodPromise\\\",(e,t)=>{M$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>oC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function P_(e){return new Qd({type:\\\"promise\\\",innerType:e})}const ev=M(\\\"ZodFunction\\\",(e,t)=>{P$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>VD(e,r)});function fo(e){return new ev({type:\\\"function\\\",input:Array.isArray(e==null?void 0:e.input)?Cd(e==null?void 0:e.input):(e==null?void 0:e.input)??ue(Le()),output:(e==null?void 0:e.output)??Le()})}const No=M(\\\"ZodCustom\\\",(e,t)=>{O$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ZD(e,r)});function M_(e){const t=new Ke({check:\\\"custom\\\"});return t._zod.check=e,t}function tv(e,t){return mD(No,e??(()=>!0),t)}function rv(e,t={}){return yD(No,e,t)}function nv(e,t){return _D(e,t)}const L_=SD,O_=wD;function E_(e,t={}){const r=new No({type:\\\"custom\\\",check:\\\"custom\\\",fn:i=>i instanceof e,abort:!0,...U(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:\\\"invalid_type\\\",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}const z_=(...e)=>xD({Codec:Ro,Boolean:Po,String:Do},...e);function R_(e){const t=Jd(()=>Se([O(e),he(),ze(),al(),ue(t),De(O(),t)]));return t}function fl(e,t){return new Wd({type:\\\"pipe\\\",in:ul(e),out:t})}const mR=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:bd,ZodArray:Td,ZodBase64:el,ZodBase64URL:tl,ZodBigInt:Mo,ZodBigIntFormat:il,ZodBoolean:Po,ZodCIDRv4:Ju,ZodCIDRv6:Qu,ZodCUID:Gu,ZodCUID2:Hu,ZodCatch:Vd,ZodCodec:Ro,ZodCustom:No,ZodCustomStringFormat:va,ZodDate:ol,ZodDefault:Nd,ZodDiscriminatedUnion:Id,ZodE164:rl,ZodEmail:ju,ZodEmoji:Zu,ZodEnum:ra,ZodExactOptional:Ed,ZodFile:Ld,ZodFunction:ev,ZodGUID:uo,ZodIPv4:Xu,ZodIPv6:Ku,ZodIntersection:$d,ZodJWT:nl,ZodKSUID:Yu,ZodLazy:Kd,ZodLiteral:Md,ZodMAC:gd,ZodMap:Ad,ZodNaN:Hd,ZodNanoID:Vu,ZodNever:wd,ZodNonOptional:cl,ZodNull:_d,ZodNullable:Rd,ZodNumber:Ao,ZodNumberFormat:si,ZodObject:Lo,ZodOptional:ll,ZodPipe:zo,ZodPrefault:Bd,ZodPreprocess:Wd,ZodPromise:Qd,ZodReadonly:qd,ZodRecord:ta,ZodSet:Pd,ZodString:Do,ZodStringFormat:Ge,ZodSuccess:Zd,ZodSymbol:md,ZodTemplateLiteral:Xd,ZodTransform:Od,ZodTuple:Dd,ZodType:ge,ZodULID:Wu,ZodURL:Co,ZodUUID:Or,ZodUndefined:yd,ZodUnion:Oo,ZodUnknown:Sd,ZodVoid:xd,ZodXID:qu,ZodXor:kd,_ZodString:Fu,_default:Ud,_function:fo,any:v_,array:ue,base64:Ky,base64url:Jy,bigint:l_,boolean:ze,catch:Gd,check:M_,cidrv4:Yy,cidrv6:Xy,codec:D_,cuid:Fy,cuid2:jy,custom:tv,date:p_,describe:L_,discriminatedUnion:sl,e164:Qy,email:Py,emoji:Uy,enum:St,exactOptional:zd,file:T_,float32:a_,float64:o_,function:fo,guid:My,hash:i_,hex:n_,hostname:r_,httpUrl:Ny,instanceof:E_,int:Vs,int32:s_,int64:c_,intersection:Eo,invertCodec:C_,ipv4:Hy,ipv6:qy,json:R_,jwt:e_,keyof:g_,ksuid:Gy,lazy:Jd,literal:L,looseObject:yt,looseRecord:b_,mac:Wy,map:S_,meta:O_,nan:$_,nanoid:By,nativeEnum:x_,never:ea,nonoptional:jd,null:al,nullable:co,nullish:k_,number:he,object:E,optional:We,partialRecord:__,pipe:Gs,prefault:Fd,preprocess:fl,promise:P_,readonly:Yd,record:De,refine:rv,set:w_,strictObject:m_,string:O,stringFormat:t_,stringbool:z_,success:I_,superRefine:nv,symbol:d_,templateLiteral:A_,transform:ul,tuple:Cd,uint32:u_,uint64:f_,ulid:Zy,undefined:lo,union:Se,unknown:Le,url:Ry,uuid:Ly,uuidv4:Oy,uuidv6:Ey,uuidv7:zy,void:h_,xid:Vy,xor:y_},Symbol.toStringTag,{value:\\\"Module\\\"})),pC={invalid_type:\\\"invalid_type\\\",too_big:\\\"too_big\\\",too_small:\\\"too_small\\\",invalid_format:\\\"invalid_format\\\",not_multiple_of:\\\"not_multiple_of\\\",unrecognized_keys:\\\"unrecognized_keys\\\",invalid_union:\\\"invalid_union\\\",invalid_key:\\\"invalid_key\\\",invalid_element:\\\"invalid_element\\\",invalid_value:\\\"invalid_value\\\",custom:\\\"custom\\\"};function gC(e){ht({customError:e})}function mC(){return ht().customError}var of;of||(of={});const X={...mR,...gR,iso:yy},yR=new Set([\\\"$schema\\\",\\\"$ref\\\",\\\"$defs\\\",\\\"definitions\\\",\\\"$id\\\",\\\"id\\\",\\\"$comment\\\",\\\"$anchor\\\",\\\"$vocabulary\\\",\\\"$dynamicRef\\\",\\\"$dynamicAnchor\\\",\\\"type\\\",\\\"enum\\\",\\\"const\\\",\\\"anyOf\\\",\\\"oneOf\\\",\\\"allOf\\\",\\\"not\\\",\\\"properties\\\",\\\"required\\\",\\\"additionalProperties\\\",\\\"patternProperties\\\",\\\"propertyNames\\\",\\\"minProperties\\\",\\\"maxProperties\\\",\\\"items\\\",\\\"prefixItems\\\",\\\"additionalItems\\\",\\\"minItems\\\",\\\"maxItems\\\",\\\"uniqueItems\\\",\\\"contains\\\",\\\"minContains\\\",\\\"maxContains\\\",\\\"minLength\\\",\\\"maxLength\\\",\\\"pattern\\\",\\\"format\\\",\\\"minimum\\\",\\\"maximum\\\",\\\"exclusiveMinimum\\\",\\\"exclusiveMaximum\\\",\\\"multipleOf\\\",\\\"description\\\",\\\"default\\\",\\\"contentEncoding\\\",\\\"contentMediaType\\\",\\\"contentSchema\\\",\\\"unevaluatedItems\\\",\\\"unevaluatedProperties\\\",\\\"if\\\",\\\"then\\\",\\\"else\\\",\\\"dependentSchemas\\\",\\\"dependentRequired\\\",\\\"nullable\\\",\\\"readOnly\\\"]);function _R(e,t){const r=e.$schema;return r===\\\"https://json-schema.org/draft/2020-12/schema\\\"?\\\"draft-2020-12\\\":r===\\\"http://json-schema.org/draft-07/schema#\\\"?\\\"draft-7\\\":r===\\\"http://json-schema.org/draft-04/schema#\\\"?\\\"draft-4\\\":t??\\\"draft-2020-12\\\"}function bR(e,t){if(!e.startsWith(\\\"#\\\"))throw new Error(\\\"External $ref is not supported, only local refs (#/...) are allowed\\\");const r=e.slice(1).split(\\\"/\\\").filter(Boolean);if(r.length===0)return t.rootSchema;const i=t.version===\\\"draft-2020-12\\\"?\\\"$defs\\\":\\\"definitions\\\";if(r[0]===i){const n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function yC(e,t){if(e.not!==void 0){if(typeof e.not==\\\"object\\\"&&Object.keys(e.not).length===0)return X.never();throw new Error(\\\"not is not supported in Zod (except { not: {} } for never)\\\")}if(e.unevaluatedItems!==void 0)throw new Error(\\\"unevaluatedItems is not supported\\\");if(e.unevaluatedProperties!==void 0)throw new Error(\\\"unevaluatedProperties is not supported\\\");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error(\\\"Conditional schemas (if/then/else) are not supported\\\");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error(\\\"dependentSchemas and dependentRequired are not supported\\\");if(e.$ref){const n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return X.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);const a=bR(n,t),o=kt(a,t);return t.refs.set(n,o),t.processing.delete(n),o}if(e.enum!==void 0){const n=e.enum;if(t.version===\\\"openapi-3.0\\\"&&e.nullable===!0&&n.length===1&&n[0]===null)return X.null();if(n.length===0)return X.never();if(n.length===1)return X.literal(n[0]);if(n.every(o=>typeof o==\\\"string\\\"))return X.enum(n);const a=n.map(o=>X.literal(o));return a.length<2?a[0]:X.union([a[0],a[1],...a.slice(2)])}if(e.const!==void 0)return X.literal(e.const);const r=e.type;if(Array.isArray(r)){const n=r.map(a=>{const o={...e,type:a};return yC(o,t)});return n.length===0?X.never():n.length===1?n[0]:X.union(n)}if(!r)return X.any();let i;switch(r){case\\\"string\\\":{let n=X.string();if(e.format){const a=e.format;a===\\\"email\\\"?n=n.check(X.email()):a===\\\"uri\\\"||a===\\\"uri-reference\\\"?n=n.check(X.url()):a===\\\"uuid\\\"||a===\\\"guid\\\"?n=n.check(X.uuid()):a===\\\"date-time\\\"?n=n.check(X.iso.datetime()):a===\\\"date\\\"?n=n.check(X.iso.date()):a===\\\"time\\\"?n=n.check(X.iso.time()):a===\\\"duration\\\"?n=n.check(X.iso.duration()):a===\\\"ipv4\\\"?n=n.check(X.ipv4()):a===\\\"ipv6\\\"?n=n.check(X.ipv6()):a===\\\"mac\\\"?n=n.check(X.mac()):a===\\\"cidr\\\"?n=n.check(X.cidrv4()):a===\\\"cidr-v6\\\"?n=n.check(X.cidrv6()):a===\\\"base64\\\"?n=n.check(X.base64()):a===\\\"base64url\\\"?n=n.check(X.base64url()):a===\\\"e164\\\"?n=n.check(X.e164()):a===\\\"jwt\\\"?n=n.check(X.jwt()):a===\\\"emoji\\\"?n=n.check(X.emoji()):a===\\\"nanoid\\\"?n=n.check(X.nanoid()):a===\\\"cuid\\\"?n=n.check(X.cuid()):a===\\\"cuid2\\\"?n=n.check(X.cuid2()):a===\\\"ulid\\\"?n=n.check(X.ulid()):a===\\\"xid\\\"?n=n.check(X.xid()):a===\\\"ksuid\\\"&&(n=n.check(X.ksuid()))}typeof e.minLength==\\\"number\\\"&&(n=n.min(e.minLength)),typeof e.maxLength==\\\"number\\\"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case\\\"number\\\":case\\\"integer\\\":{let n=r===\\\"integer\\\"?X.number().int():X.number();typeof e.minimum==\\\"number\\\"&&(n=n.min(e.minimum)),typeof e.maximum==\\\"number\\\"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum==\\\"number\\\"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==\\\"number\\\"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum==\\\"number\\\"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==\\\"number\\\"&&(n=n.lt(e.maximum)),typeof e.multipleOf==\\\"number\\\"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case\\\"boolean\\\":{i=X.boolean();break}case\\\"null\\\":{i=X.null();break}case\\\"object\\\":{const n={},a=e.properties||{},o=new Set(e.required||[]);for(const[u,l]of Object.entries(a)){const c=kt(l,t);n[u]=o.has(u)?c:c.optional()}if(e.propertyNames){const u=kt(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties==\\\"object\\\"?kt(e.additionalProperties,t):X.any();if(Object.keys(n).length===0){i=X.record(u,l);break}const c=X.object(n).passthrough(),f=X.looseRecord(u,l);i=X.intersection(c,f);break}if(e.patternProperties){const u=e.patternProperties,l=Object.keys(u),c=[];for(const d of l){const v=kt(u[d],t),h=X.string().regex(new RegExp(d));c.push(X.looseRecord(h,v))}const f=[];if(Object.keys(n).length>0&&f.push(X.object(n).passthrough()),f.push(...c),f.length===0)i=X.object({}).passthrough();else if(f.length===1)i=f[0];else{let d=X.intersection(f[0],f[1]);for(let v=2;v<f.length;v++)d=X.intersection(d,f[v]);i=d}break}const s=X.object(n);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties==\\\"object\\\"?i=s.catchall(kt(e.additionalProperties,t)):i=s.passthrough();break}case\\\"array\\\":{const n=e.prefixItems,a=e.items;if(n&&Array.isArray(n)){const o=n.map(u=>kt(u,t)),s=a&&typeof a==\\\"object\\\"&&!Array.isArray(a)?kt(a,t):void 0;s?i=X.tuple(o).rest(s):i=X.tuple(o),typeof e.minItems==\\\"number\\\"&&(i=i.check(X.minLength(e.minItems))),typeof e.maxItems==\\\"number\\\"&&(i=i.check(X.maxLength(e.maxItems)))}else if(Array.isArray(a)){const o=a.map(u=>kt(u,t)),s=e.additionalItems&&typeof e.additionalItems==\\\"object\\\"?kt(e.additionalItems,t):void 0;s?i=X.tuple(o).rest(s):i=X.tuple(o),typeof e.minItems==\\\"number\\\"&&(i=i.check(X.minLength(e.minItems))),typeof e.maxItems==\\\"number\\\"&&(i=i.check(X.maxLength(e.maxItems)))}else if(a!==void 0){const o=kt(a,t);let s=X.array(o);typeof e.minItems==\\\"number\\\"&&(s=s.min(e.minItems)),typeof e.maxItems==\\\"number\\\"&&(s=s.max(e.maxItems)),i=s}else i=X.array(X.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function kt(e,t){if(typeof e==\\\"boolean\\\")return e?X.any():X.never();let r=yC(e,t);const i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const s=e.anyOf.map(l=>kt(l,t)),u=X.union(s);r=i?X.intersection(r,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){const s=e.oneOf.map(l=>kt(l,t)),u=X.xor(s);r=i?X.intersection(r,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:X.any();else{let s=i?r:kt(e.allOf[0],t);const u=i?0:1;for(let l=u;l<e.allOf.length;l++)s=X.intersection(s,kt(e.allOf[l],t));r=s}e.nullable===!0&&t.version===\\\"openapi-3.0\\\"&&(r=X.nullable(r)),e.readOnly===!0&&(r=X.readonly(r)),e.default!==void 0&&(r=r.default(e.default));const n={},a=[\\\"$id\\\",\\\"id\\\",\\\"$comment\\\",\\\"$anchor\\\",\\\"$vocabulary\\\",\\\"$dynamicRef\\\",\\\"$dynamicAnchor\\\"];for(const s of a)s in e&&(n[s]=e[s]);const o=[\\\"contentEncoding\\\",\\\"contentMediaType\\\",\\\"contentSchema\\\"];for(const s of o)s in e&&(n[s]=e[s]);for(const s of Object.keys(e))yR.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function _C(e,t){if(typeof e==\\\"boolean\\\")return e?X.any():X.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error(\\\"fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas\\\")}const i=_R(r,t==null?void 0:t.defaultTarget),n=r.$defs||r.definitions||{},a={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:(t==null?void 0:t.registry)??Kt};return kt(r,a)}function SR(e){return B$(Do,e)}function wR(e){return W$(Ao,e)}function xR(e){return eD(Po,e)}function TR(e){return rD(Mo,e)}function kR(e){return vD(ol,e)}const bC=Object.freeze(Object.defineProperty({__proto__:null,bigint:TR,boolean:xR,date:kR,number:wR,string:SR},Symbol.toStringTag,{value:\\\"Module\\\"}));ht(E$());const yS=Object.freeze(Object.defineProperty({__proto__:null,$brand:hm,$input:Gm,$output:Vm,NEVER:vm,TimePrecision:dy,ZodAny:bd,ZodArray:Td,ZodBase64:el,ZodBase64URL:tl,ZodBigInt:Mo,ZodBigIntFormat:il,ZodBoolean:Po,ZodCIDRv4:Ju,ZodCIDRv6:Qu,ZodCUID:Gu,ZodCUID2:Hu,ZodCatch:Vd,ZodCodec:Ro,ZodCustom:No,ZodCustomStringFormat:va,ZodDate:ol,ZodDefault:Nd,ZodDiscriminatedUnion:Id,ZodE164:rl,ZodEmail:ju,ZodEmoji:Zu,ZodEnum:ra,ZodError:hC,ZodExactOptional:Ed,ZodFile:Ld,get ZodFirstPartyTypeKind(){return of},ZodFunction:ev,ZodGUID:uo,ZodIPv4:Xu,ZodIPv6:Ku,ZodISODate:vd,ZodISODateTime:dd,ZodISODuration:pd,ZodISOTime:hd,ZodIntersection:$d,ZodIssueCode:pC,ZodJWT:nl,ZodKSUID:Yu,ZodLazy:Kd,ZodLiteral:Md,ZodMAC:gd,ZodMap:Ad,ZodNaN:Hd,ZodNanoID:Vu,ZodNever:wd,ZodNonOptional:cl,ZodNull:_d,ZodNullable:Rd,ZodNumber:Ao,ZodNumberFormat:si,ZodObject:Lo,ZodOptional:ll,ZodPipe:zo,ZodPrefault:Bd,ZodPreprocess:Wd,ZodPromise:Qd,ZodReadonly:qd,ZodRealError:Yt,ZodRecord:ta,ZodSet:Pd,ZodString:Do,ZodStringFormat:Ge,ZodSuccess:Zd,ZodSymbol:md,ZodTemplateLiteral:Xd,ZodTransform:Od,ZodTuple:Dd,ZodType:ge,ZodULID:Wu,ZodURL:Co,ZodUUID:Or,ZodUndefined:yd,ZodUnion:Oo,ZodUnknown:Sd,ZodVoid:xd,ZodXID:qu,ZodXor:kd,_ZodString:Fu,_default:Ud,_function:fo,any:v_,array:ue,base64:Ky,base64url:Jy,bigint:l_,boolean:ze,catch:Gd,check:M_,cidrv4:Yy,cidrv6:Xy,clone:tr,codec:D_,coerce:bC,config:ht,core:uC,cuid:Fy,cuid2:jy,custom:tv,date:p_,decode:Ty,decodeAsync:Iy,describe:L_,discriminatedUnion:sl,e164:Qy,email:Py,emoji:Uy,encode:xy,encodeAsync:ky,endsWith:Mu,enum:St,exactOptional:zd,file:T_,flattenError:td,float32:a_,float64:o_,formatError:rd,fromJSONSchema:_C,function:fo,getErrorMap:mC,globalRegistry:Kt,gt:kn,gte:zt,guid:My,hash:i_,hex:n_,hostname:r_,httpUrl:Ny,includes:Au,instanceof:E_,int:Vs,int32:s_,int64:c_,intersection:Eo,invertCodec:C_,ipv4:Hy,ipv6:qy,iso:yy,json:R_,jwt:e_,keyof:g_,ksuid:Gy,lazy:Jd,length:$o,literal:L,locales:Zm,looseObject:yt,looseRecord:b_,lowercase:Du,lt:Tn,lte:Jt,mac:Wy,map:S_,maxLength:Io,maxSize:da,meta:O_,mime:Lu,minLength:ei,minSize:In,multipleOf:Qi,nan:$_,nanoid:By,nativeEnum:x_,negative:ud,never:ea,nonnegative:cd,nonoptional:jd,nonpositive:ld,normalize:Ou,null:al,nullable:co,nullish:k_,number:he,object:E,optional:We,overwrite:fn,parse:_y,parseAsync:by,partialRecord:__,pipe:Gs,positive:sd,prefault:Fd,preprocess:fl,prettifyError:bm,promise:P_,property:fd,readonly:Yd,record:De,refine:rv,regex:$u,regexes:nd,registry:ad,safeDecode:Dy,safeDecodeAsync:Ay,safeEncode:$y,safeEncodeAsync:Cy,safeParse:Sy,safeParseAsync:wy,set:w_,setErrorMap:gC,size:ko,slugify:Nu,startsWith:Pu,strictObject:m_,string:O,stringFormat:t_,stringbool:z_,success:I_,superRefine:nv,symbol:d_,templateLiteral:A_,toJSONSchema:py,toLowerCase:zu,toUpperCase:Ru,transform:ul,treeifyError:_m,trim:Eu,tuple:Cd,uint32:u_,uint64:f_,ulid:Zy,undefined:lo,union:Se,unknown:Le,uppercase:Cu,url:Ry,util:mm,uuid:Ly,uuidv4:Oy,uuidv6:Ey,uuidv7:zy,void:h_,xid:Vy,xor:y_},Symbol.toStringTag,{value:\\\"Module\\\"})),IR=Object.freeze(Object.defineProperty({__proto__:null,$brand:hm,$input:Gm,$output:Vm,NEVER:vm,TimePrecision:dy,ZodAny:bd,ZodArray:Td,ZodBase64:el,ZodBase64URL:tl,ZodBigInt:Mo,ZodBigIntFormat:il,ZodBoolean:Po,ZodCIDRv4:Ju,ZodCIDRv6:Qu,ZodCUID:Gu,ZodCUID2:Hu,ZodCatch:Vd,ZodCodec:Ro,ZodCustom:No,ZodCustomStringFormat:va,ZodDate:ol,ZodDefault:Nd,ZodDiscriminatedUnion:Id,ZodE164:rl,ZodEmail:ju,ZodEmoji:Zu,ZodEnum:ra,ZodError:hC,ZodExactOptional:Ed,ZodFile:Ld,get ZodFirstPartyTypeKind(){return of},ZodFunction:ev,ZodGUID:uo,ZodIPv4:Xu,ZodIPv6:Ku,ZodISODate:vd,ZodISODateTime:dd,ZodISODuration:pd,ZodISOTime:hd,ZodIntersection:$d,ZodIssueCode:pC,ZodJWT:nl,ZodKSUID:Yu,ZodLazy:Kd,ZodLiteral:Md,ZodMAC:gd,ZodMap:Ad,ZodNaN:Hd,ZodNanoID:Vu,ZodNever:wd,ZodNonOptional:cl,ZodNull:_d,ZodNullable:Rd,ZodNumber:Ao,ZodNumberFormat:si,ZodObject:Lo,ZodOptional:ll,ZodPipe:zo,ZodPrefault:Bd,ZodPreprocess:Wd,ZodPromise:Qd,ZodReadonly:qd,ZodRealError:Yt,ZodRecord:ta,ZodSet:Pd,ZodString:Do,ZodStringFormat:Ge,ZodSuccess:Zd,ZodSymbol:md,ZodTemplateLiteral:Xd,ZodTransform:Od,ZodTuple:Dd,ZodType:ge,ZodULID:Wu,ZodURL:Co,ZodUUID:Or,ZodUndefined:yd,ZodUnion:Oo,ZodUnknown:Sd,ZodVoid:xd,ZodXID:qu,ZodXor:kd,_ZodString:Fu,_default:Ud,_function:fo,any:v_,array:ue,base64:Ky,base64url:Jy,bigint:l_,boolean:ze,catch:Gd,check:M_,cidrv4:Yy,cidrv6:Xy,clone:tr,codec:D_,coerce:bC,config:ht,core:uC,cuid:Fy,cuid2:jy,custom:tv,date:p_,decode:Ty,decodeAsync:Iy,default:yS,describe:L_,discriminatedUnion:sl,e164:Qy,email:Py,emoji:Uy,encode:xy,encodeAsync:ky,endsWith:Mu,enum:St,exactOptional:zd,file:T_,flattenError:td,float32:a_,float64:o_,formatError:rd,fromJSONSchema:_C,function:fo,getErrorMap:mC,globalRegistry:Kt,gt:kn,gte:zt,guid:My,hash:i_,hex:n_,hostname:r_,httpUrl:Ny,includes:Au,instanceof:E_,int:Vs,int32:s_,int64:c_,intersection:Eo,invertCodec:C_,ipv4:Hy,ipv6:qy,iso:yy,json:R_,jwt:e_,keyof:g_,ksuid:Gy,lazy:Jd,length:$o,literal:L,locales:Zm,looseObject:yt,looseRecord:b_,lowercase:Du,lt:Tn,lte:Jt,mac:Wy,map:S_,maxLength:Io,maxSize:da,meta:O_,mime:Lu,minLength:ei,minSize:In,multipleOf:Qi,nan:$_,nanoid:By,nativeEnum:x_,negative:ud,never:ea,nonnegative:cd,nonoptional:jd,nonpositive:ld,normalize:Ou,null:al,nullable:co,nullish:k_,number:he,object:E,optional:We,overwrite:fn,parse:_y,parseAsync:by,partialRecord:__,pipe:Gs,positive:sd,prefault:Fd,preprocess:fl,prettifyError:bm,promise:P_,property:fd,readonly:Yd,record:De,refine:rv,regex:$u,regexes:nd,registry:ad,safeDecode:Dy,safeDecodeAsync:Ay,safeEncode:$y,safeEncodeAsync:Cy,safeParse:Sy,safeParseAsync:wy,set:w_,setErrorMap:gC,size:ko,slugify:Nu,startsWith:Pu,strictObject:m_,string:O,stringFormat:t_,stringbool:z_,success:I_,superRefine:nv,symbol:d_,templateLiteral:A_,toJSONSchema:py,toLowerCase:zu,toUpperCase:Ru,transform:ul,treeifyError:_m,trim:Eu,tuple:Cd,uint32:u_,uint64:f_,ulid:Zy,undefined:lo,union:Se,unknown:Le,uppercase:Cu,url:Ry,util:mm,uuid:Ly,uuidv4:Oy,uuidv6:Ey,uuidv7:zy,void:h_,xid:Vy,xor:y_,z:yS},Symbol.toStringTag,{value:\\\"Module\\\"})),Ri=\\\"io.modelcontextprotocol/related-task\\\",iv=\\\"2.0\\\",dt=tv(e=>e!==null&&(typeof e==\\\"object\\\"||typeof e==\\\"function\\\")),SC=Se([O(),he().int()]),wC=O();yt({ttl:he().optional(),pollInterval:he().optional()});const $R=E({ttl:he().optional()}),DR=E({taskId:O()}),N_=yt({progressToken:SC.optional(),[Ri]:DR.optional()}),nr=E({_meta:N_.optional()}),dl=nr.extend({task:$R.optional()}),CR=e=>dl.safeParse(e).success,wt=E({method:O(),params:nr.loose().optional()}),wr=E({_meta:N_.optional()}),xr=E({method:O(),params:wr.loose().optional()}),xt=yt({_meta:N_.optional()}),vl=Se([O(),he().int()]),xC=E({jsonrpc:L(iv),id:vl,...wt.shape}).strict(),_S=e=>xC.safeParse(e).success,TC=E({jsonrpc:L(iv),...xr.shape}).strict(),AR=e=>TC.safeParse(e).success,U_=E({jsonrpc:L(iv),id:vl,result:xt}).strict(),Rl=e=>U_.safeParse(e).success;var Ne;(function(e){e[e.ConnectionClosed=-32e3]=\\\"ConnectionClosed\\\",e[e.RequestTimeout=-32001]=\\\"RequestTimeout\\\",e[e.ParseError=-32700]=\\\"ParseError\\\",e[e.InvalidRequest=-32600]=\\\"InvalidRequest\\\",e[e.MethodNotFound=-32601]=\\\"MethodNotFound\\\",e[e.InvalidParams=-32602]=\\\"InvalidParams\\\",e[e.InternalError=-32603]=\\\"InternalError\\\",e[e.UrlElicitationRequired=-32042]=\\\"UrlElicitationRequired\\\"})(Ne||(Ne={}));const B_=E({jsonrpc:L(iv),id:vl.optional(),error:E({code:he().int(),message:O(),data:Le().optional()})}).strict(),PR=e=>B_.safeParse(e).success,MR=Se([xC,TC,U_,B_]);Se([U_,B_]);const F_=xt.strict(),LR=wr.extend({requestId:vl.optional(),reason:O().optional()}),j_=xr.extend({method:L(\\\"notifications/cancelled\\\"),params:LR}),OR=E({src:O(),mimeType:O().optional(),sizes:ue(O()).optional(),theme:St([\\\"light\\\",\\\"dark\\\"]).optional()}),hl=E({icons:ue(OR).optional()}),vo=E({name:O(),title:O().optional()}),av=vo.extend({...vo.shape,...hl.shape,version:O(),websiteUrl:O().optional(),description:O().optional()}),ER=Eo(E({applyDefaults:ze().optional()}),De(O(),Le())),zR=fl(e=>e&&typeof e==\\\"object\\\"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Eo(E({form:ER.optional(),url:dt.optional()}),De(O(),Le()).optional())),RR=yt({list:dt.optional(),cancel:dt.optional(),requests:yt({sampling:yt({createMessage:dt.optional()}).optional(),elicitation:yt({create:dt.optional()}).optional()}).optional()}),NR=yt({list:dt.optional(),cancel:dt.optional(),requests:yt({tools:yt({call:dt.optional()}).optional()}).optional()}),UR=E({experimental:De(O(),dt).optional(),sampling:E({context:dt.optional(),tools:dt.optional()}).optional(),elicitation:zR.optional(),roots:E({listChanged:ze().optional()}).optional(),tasks:RR.optional(),extensions:De(O(),dt).optional()}),BR=nr.extend({protocolVersion:O(),capabilities:UR,clientInfo:av}),FR=wt.extend({method:L(\\\"initialize\\\"),params:BR}),jR=E({experimental:De(O(),dt).optional(),logging:dt.optional(),completions:dt.optional(),prompts:E({listChanged:ze().optional()}).optional(),resources:E({subscribe:ze().optional(),listChanged:ze().optional()}).optional(),tools:E({listChanged:ze().optional()}).optional(),tasks:NR.optional(),extensions:De(O(),dt).optional()}),ZR=xt.extend({protocolVersion:O(),capabilities:jR,serverInfo:av,instructions:O().optional()}),VR=xr.extend({method:L(\\\"notifications/initialized\\\"),params:wr.optional()}),ov=wt.extend({method:L(\\\"ping\\\"),params:nr.optional()}),GR=E({progress:he(),total:We(he()),message:We(O())}),HR=E({...wr.shape,...GR.shape,progressToken:SC}),Z_=xr.extend({method:L(\\\"notifications/progress\\\"),params:HR}),WR=nr.extend({cursor:wC.optional()}),pl=wt.extend({params:WR.optional()}),gl=xt.extend({nextCursor:wC.optional()}),qR=St([\\\"working\\\",\\\"input_required\\\",\\\"completed\\\",\\\"failed\\\",\\\"cancelled\\\"]),ml=E({taskId:O(),status:qR,ttl:Se([he(),al()]),createdAt:O(),lastUpdatedAt:O(),pollInterval:We(he()),statusMessage:We(O())}),V_=xt.extend({task:ml}),YR=wr.merge(ml),sf=xr.extend({method:L(\\\"notifications/tasks/status\\\"),params:YR}),G_=wt.extend({method:L(\\\"tasks/get\\\"),params:nr.extend({taskId:O()})}),H_=xt.merge(ml),W_=wt.extend({method:L(\\\"tasks/result\\\"),params:nr.extend({taskId:O()})});xt.loose();const q_=pl.extend({method:L(\\\"tasks/list\\\")}),Y_=gl.extend({tasks:ue(ml)}),X_=wt.extend({method:L(\\\"tasks/cancel\\\"),params:nr.extend({taskId:O()})}),XR=xt.merge(ml),kC=E({uri:O(),mimeType:We(O()),_meta:De(O(),Le()).optional()}),IC=kC.extend({text:O()}),K_=O().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:\\\"Invalid Base64 string\\\"}),$C=kC.extend({blob:K_}),yl=St([\\\"user\\\",\\\"assistant\\\"]),Uo=E({audience:ue(yl).optional(),priority:he().min(0).max(1).optional(),lastModified:my({offset:!0}).optional()}),DC=E({...vo.shape,...hl.shape,uri:O(),description:We(O()),mimeType:We(O()),size:We(he()),annotations:Uo.optional(),_meta:We(yt({}))}),KR=E({...vo.shape,...hl.shape,uriTemplate:O(),description:We(O()),mimeType:We(O()),annotations:Uo.optional(),_meta:We(yt({}))}),JR=pl.extend({method:L(\\\"resources/list\\\")}),CC=gl.extend({resources:ue(DC)}),QR=pl.extend({method:L(\\\"resources/templates/list\\\")}),eN=gl.extend({resourceTemplates:ue(KR)}),J_=nr.extend({uri:O()}),tN=J_,rN=wt.extend({method:L(\\\"resources/read\\\"),params:tN}),AC=xt.extend({contents:ue(Se([IC,$C]))}),nN=xr.extend({method:L(\\\"notifications/resources/list_changed\\\"),params:wr.optional()}),iN=J_,aN=wt.extend({method:L(\\\"resources/subscribe\\\"),params:iN}),oN=J_,sN=wt.extend({method:L(\\\"resources/unsubscribe\\\"),params:oN}),uN=wr.extend({uri:O()}),lN=xr.extend({method:L(\\\"notifications/resources/updated\\\"),params:uN}),cN=E({name:O(),description:We(O()),required:We(ze())}),fN=E({...vo.shape,...hl.shape,description:We(O()),arguments:We(ue(cN)),_meta:We(yt({}))}),dN=pl.extend({method:L(\\\"prompts/list\\\")}),vN=gl.extend({prompts:ue(fN)}),hN=nr.extend({name:O(),arguments:De(O(),O()).optional()}),pN=wt.extend({method:L(\\\"prompts/get\\\"),params:hN}),Q_=E({type:L(\\\"text\\\"),text:O(),annotations:Uo.optional(),_meta:De(O(),Le()).optional()}),e0=E({type:L(\\\"image\\\"),data:K_,mimeType:O(),annotations:Uo.optional(),_meta:De(O(),Le()).optional()}),t0=E({type:L(\\\"audio\\\"),data:K_,mimeType:O(),annotations:Uo.optional(),_meta:De(O(),Le()).optional()}),gN=E({type:L(\\\"tool_use\\\"),name:O(),id:O(),input:De(O(),Le()),_meta:De(O(),Le()).optional()}),PC=E({type:L(\\\"resource\\\"),resource:Se([IC,$C]),annotations:Uo.optional(),_meta:De(O(),Le()).optional()}),MC=DC.extend({type:L(\\\"resource_link\\\")}),_l=Se([Q_,e0,t0,MC,PC]),mN=E({role:yl,content:_l}),yN=xt.extend({description:O().optional(),messages:ue(mN)}),_N=xr.extend({method:L(\\\"notifications/prompts/list_changed\\\"),params:wr.optional()}),bN=E({title:O().optional(),readOnlyHint:ze().optional(),destructiveHint:ze().optional(),idempotentHint:ze().optional(),openWorldHint:ze().optional()}),SN=E({taskSupport:St([\\\"required\\\",\\\"optional\\\",\\\"forbidden\\\"]).optional()}),r0=E({...vo.shape,...hl.shape,description:O().optional(),inputSchema:E({type:L(\\\"object\\\"),properties:De(O(),dt).optional(),required:ue(O()).optional()}).catchall(Le()),outputSchema:E({type:L(\\\"object\\\"),properties:De(O(),dt).optional(),required:ue(O()).optional()}).catchall(Le()).optional(),annotations:bN.optional(),execution:SN.optional(),_meta:De(O(),Le()).optional()}),LC=pl.extend({method:L(\\\"tools/list\\\")}),wN=gl.extend({tools:ue(r0)}),sv=xt.extend({content:ue(_l).default([]),structuredContent:De(O(),Le()).optional(),isError:ze().optional()});sv.or(xt.extend({toolResult:Le()}));const xN=dl.extend({name:O(),arguments:De(O(),Le()).optional()}),OC=wt.extend({method:L(\\\"tools/call\\\"),params:xN}),TN=xr.extend({method:L(\\\"notifications/tools/list_changed\\\"),params:wr.optional()});E({autoRefresh:ze().default(!0),debounceMs:he().int().nonnegative().default(300)});const EC=St([\\\"debug\\\",\\\"info\\\",\\\"notice\\\",\\\"warning\\\",\\\"error\\\",\\\"critical\\\",\\\"alert\\\",\\\"emergency\\\"]),kN=nr.extend({level:EC}),IN=wt.extend({method:L(\\\"logging/setLevel\\\"),params:kN}),$N=wr.extend({level:EC,logger:O().optional(),data:Le()}),DN=xr.extend({method:L(\\\"notifications/message\\\"),params:$N}),CN=E({name:O().optional()}),AN=E({hints:ue(CN).optional(),costPriority:he().min(0).max(1).optional(),speedPriority:he().min(0).max(1).optional(),intelligencePriority:he().min(0).max(1).optional()}),PN=E({mode:St([\\\"auto\\\",\\\"required\\\",\\\"none\\\"]).optional()}),MN=E({type:L(\\\"tool_result\\\"),toolUseId:O().describe(\\\"The unique identifier for the corresponding tool call.\\\"),content:ue(_l).default([]),structuredContent:E({}).loose().optional(),isError:ze().optional(),_meta:De(O(),Le()).optional()}),LN=sl(\\\"type\\\",[Q_,e0,t0]),uf=sl(\\\"type\\\",[Q_,e0,t0,gN,MN]),ON=E({role:yl,content:Se([uf,ue(uf)]),_meta:De(O(),Le()).optional()}),EN=dl.extend({messages:ue(ON),modelPreferences:AN.optional(),systemPrompt:O().optional(),includeContext:St([\\\"none\\\",\\\"thisServer\\\",\\\"allServers\\\"]).optional(),temperature:he().optional(),maxTokens:he().int(),stopSequences:ue(O()).optional(),metadata:dt.optional(),tools:ue(r0).optional(),toolChoice:PN.optional()}),zN=wt.extend({method:L(\\\"sampling/createMessage\\\"),params:EN}),zC=xt.extend({model:O(),stopReason:We(St([\\\"endTurn\\\",\\\"stopSequence\\\",\\\"maxTokens\\\"]).or(O())),role:yl,content:LN}),RC=xt.extend({model:O(),stopReason:We(St([\\\"endTurn\\\",\\\"stopSequence\\\",\\\"maxTokens\\\",\\\"toolUse\\\"]).or(O())),role:yl,content:Se([uf,ue(uf)])}),RN=E({type:L(\\\"boolean\\\"),title:O().optional(),description:O().optional(),default:ze().optional()}),NN=E({type:L(\\\"string\\\"),title:O().optional(),description:O().optional(),minLength:he().optional(),maxLength:he().optional(),format:St([\\\"email\\\",\\\"uri\\\",\\\"date\\\",\\\"date-time\\\"]).optional(),default:O().optional()}),UN=E({type:St([\\\"number\\\",\\\"integer\\\"]),title:O().optional(),description:O().optional(),minimum:he().optional(),maximum:he().optional(),default:he().optional()}),BN=E({type:L(\\\"string\\\"),title:O().optional(),description:O().optional(),enum:ue(O()),default:O().optional()}),FN=E({type:L(\\\"string\\\"),title:O().optional(),description:O().optional(),oneOf:ue(E({const:O(),title:O()})),default:O().optional()}),jN=E({type:L(\\\"string\\\"),title:O().optional(),description:O().optional(),enum:ue(O()),enumNames:ue(O()).optional(),default:O().optional()}),ZN=Se([BN,FN]),VN=E({type:L(\\\"array\\\"),title:O().optional(),description:O().optional(),minItems:he().optional(),maxItems:he().optional(),items:E({type:L(\\\"string\\\"),enum:ue(O())}),default:ue(O()).optional()}),GN=E({type:L(\\\"array\\\"),title:O().optional(),description:O().optional(),minItems:he().optional(),maxItems:he().optional(),items:E({anyOf:ue(E({const:O(),title:O()}))}),default:ue(O()).optional()}),HN=Se([VN,GN]),WN=Se([jN,ZN,HN]),qN=Se([WN,RN,NN,UN]),YN=dl.extend({mode:L(\\\"form\\\").optional(),message:O(),requestedSchema:E({type:L(\\\"object\\\"),properties:De(O(),qN),required:ue(O()).optional()})}),XN=dl.extend({mode:L(\\\"url\\\"),message:O(),elicitationId:O(),url:O().url()}),KN=Se([YN,XN]),JN=wt.extend({method:L(\\\"elicitation/create\\\"),params:KN}),QN=wr.extend({elicitationId:O()}),e4=xr.extend({method:L(\\\"notifications/elicitation/complete\\\"),params:QN}),t4=xt.extend({action:St([\\\"accept\\\",\\\"decline\\\",\\\"cancel\\\"]),content:fl(e=>e===null?void 0:e,De(O(),Se([O(),he(),ze(),ue(O())])).optional())}),r4=E({type:L(\\\"ref/resource\\\"),uri:O()}),n4=E({type:L(\\\"ref/prompt\\\"),name:O()}),i4=nr.extend({ref:Se([n4,r4]),argument:E({name:O(),value:O()}),context:E({arguments:De(O(),O()).optional()}).optional()}),a4=wt.extend({method:L(\\\"completion/complete\\\"),params:i4}),o4=xt.extend({completion:yt({values:ue(O()).max(100),total:We(he().int()),hasMore:We(ze())})}),s4=E({uri:O().startsWith(\\\"file://\\\"),name:O().optional(),_meta:De(O(),Le()).optional()}),u4=wt.extend({method:L(\\\"roots/list\\\"),params:nr.optional()}),l4=xt.extend({roots:ue(s4)}),c4=xr.extend({method:L(\\\"notifications/roots/list_changed\\\"),params:wr.optional()});Se([ov,FR,a4,IN,pN,dN,JR,QR,rN,aN,sN,OC,LC,G_,W_,q_,X_]);Se([j_,Z_,VR,c4,sf]);Se([F_,zC,RC,t4,l4,H_,Y_,V_]);Se([ov,zN,JN,u4,G_,W_,q_,X_]);Se([j_,Z_,DN,lN,nN,TN,_N,sf,e4]);Se([F_,ZR,o4,yN,vN,CC,eN,AC,sv,wN,H_,Y_,V_]);class Ce extends Error{constructor(t,r,i){super(`MCP error ${t}: ${r}`),this.code=t,this.data=i,this.name=\\\"McpError\\\"}static fromError(t,r,i){if(t===Ne.UrlElicitationRequired&&i){const n=i;if(n.elicitations)return new f4(n.elicitations,r)}return new Ce(t,r,i)}}class f4 extends Ce{constructor(t,r=`URL elicitation${t.length>1?\\\"s\\\":\\\"\\\"} required`){super(Ne.UrlElicitationRequired,r,{elicitations:t})}get elicitations(){var t;return((t=this.data)==null?void 0:t.elicitations)??[]}}function ci(e){return e===\\\"completed\\\"||e===\\\"failed\\\"||e===\\\"cancelled\\\"}new Set(\\\"ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789\\\");function bS(e){const t=hR(e),r=t==null?void 0:t.method;if(!r)throw new Error(\\\"Schema is missing a method literal\\\");const i=pR(r);if(typeof i!=\\\"string\\\")throw new Error(\\\"Schema method literal must be a string\\\");return i}function SS(e,t){const r=lC(e,t);if(!r.success)throw r.error;return r.data}const d4=6e4;class v4{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(j_,r=>{this._oncancel(r)}),this.setNotificationHandler(Z_,r=>{this._onprogress(r)}),this.setRequestHandler(ov,r=>({})),this._taskStore=t==null?void 0:t.taskStore,this._taskMessageQueue=t==null?void 0:t.taskMessageQueue,this._taskStore&&(this.setRequestHandler(G_,async(r,i)=>{const n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new Ce(Ne.InvalidParams,\\\"Failed to retrieve task: Task not found\\\");return{...n}}),this.setRequestHandler(W_,async(r,i)=>{const n=async()=>{var s;const a=r.params.taskId;if(this._taskMessageQueue){let u;for(;u=await this._taskMessageQueue.dequeue(a,i.sessionId);){if(u.type===\\\"response\\\"||u.type===\\\"error\\\"){const l=u.message,c=l.id,f=this._requestResolvers.get(c);if(f)if(this._requestResolvers.delete(c),u.type===\\\"response\\\")f(l);else{const d=l,v=new Ce(d.error.code,d.error.message,d.error.data);f(v)}else{const d=u.type===\\\"response\\\"?\\\"Response\\\":\\\"Error\\\";this._onerror(new Error(`${d} handler missing for request ${c}`))}continue}await((s=this._transport)==null?void 0:s.send(u.message,{relatedRequestId:i.requestId}))}}const o=await this._taskStore.getTask(a,i.sessionId);if(!o)throw new Ce(Ne.InvalidParams,`Task not found: ${a}`);if(!ci(o.status))return await this._waitForTaskUpdate(a,i.signal),await n();if(ci(o.status)){const u=await this._taskStore.getTaskResult(a,i.sessionId);return this._clearTaskQueue(a),{...u,_meta:{...u._meta,[Ri]:{taskId:a}}}}return await n()};return await n()}),this.setRequestHandler(q_,async(r,i)=>{var n;try{const{tasks:a,nextCursor:o}=await this._taskStore.listTasks((n=r.params)==null?void 0:n.cursor,i.sessionId);return{tasks:a,nextCursor:o,_meta:{}}}catch(a){throw new Ce(Ne.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(X_,async(r,i)=>{try{const n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new Ce(Ne.InvalidParams,`Task not found: ${r.params.taskId}`);if(ci(n.status))throw new Ce(Ne.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,\\\"cancelled\\\",\\\"Client cancelled task execution.\\\",i.sessionId),this._clearTaskQueue(r.params.taskId);const a=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!a)throw new Ce(Ne.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...a}}catch(n){throw n instanceof Ce?n:new Ce(Ne.InvalidRequest,`Failed to cancel task: ${n instanceof Error?n.message:String(n)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;const r=this._requestHandlerAbortControllers.get(t.params.requestId);r==null||r.abort(t.params.reason)}_setupTimeout(t,r,i,n,a=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(n,r),startTime:Date.now(),timeout:r,maxTotalTimeout:i,resetTimeoutOnProgress:a,onTimeout:n})}_resetTimeout(t){const r=this._timeoutInfo.get(t);if(!r)return!1;const i=Date.now()-r.startTime;if(r.maxTotalTimeout&&i>=r.maxTotalTimeout)throw this._timeoutInfo.delete(t),Ce.fromError(Ne.RequestTimeout,\\\"Maximum total timeout exceeded\\\",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:i});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(t){const r=this._timeoutInfo.get(t);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(t))}async connect(t){var a,o,s;if(this._transport)throw new Error(\\\"Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.\\\");this._transport=t;const r=(a=this.transport)==null?void 0:a.onclose;this._transport.onclose=()=>{r==null||r(),this._onclose()};const i=(o=this.transport)==null?void 0:o.onerror;this._transport.onerror=u=>{i==null||i(u),this._onerror(u)};const n=(s=this._transport)==null?void 0:s.onmessage;this._transport.onmessage=(u,l)=>{n==null||n(u,l),Rl(u)||PR(u)?this._onresponse(u):_S(u)?this._onrequest(u,l):AR(u)?this._onnotification(u):this._onerror(new Error(`Unknown message type: ${JSON.stringify(u)}`))},await this._transport.start()}_onclose(){var i;const t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(const n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();const r=Ce.fromError(Ne.ConnectionClosed,\\\"Connection closed\\\");this._transport=void 0,(i=this.onclose)==null||i.call(this);for(const n of t.values())n(r)}_onerror(t){var r;(r=this.onerror)==null||r.call(this,t)}_onnotification(t){const r=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(t,r){var c,f,d,v;const i=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,n=this._transport,a=(d=(f=(c=t.params)==null?void 0:c._meta)==null?void 0:f[Ri])==null?void 0:d.taskId;if(i===void 0){const h={jsonrpc:\\\"2.0\\\",id:t.id,error:{code:Ne.MethodNotFound,message:\\\"Method not found\\\"}};a&&this._taskMessageQueue?this._enqueueTaskMessage(a,{type:\\\"error\\\",message:h,timestamp:Date.now()},n==null?void 0:n.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):n==null||n.send(h).catch(p=>this._onerror(new Error(`Failed to send an error response: ${p}`)));return}const o=new AbortController;this._requestHandlerAbortControllers.set(t.id,o);const s=CR(t.params)?t.params.task:void 0,u=this._taskStore?this.requestTaskStore(t,n==null?void 0:n.sessionId):void 0,l={signal:o.signal,sessionId:n==null?void 0:n.sessionId,_meta:(v=t.params)==null?void 0:v._meta,sendNotification:async h=>{if(o.signal.aborted)return;const p={relatedRequestId:t.id};a&&(p.relatedTask={taskId:a}),await this.notification(h,p)},sendRequest:async(h,p,g)=>{var _;if(o.signal.aborted)throw new Ce(Ne.ConnectionClosed,\\\"Request was cancelled\\\");const m={...g,relatedRequestId:t.id};a&&!m.relatedTask&&(m.relatedTask={taskId:a});const y=((_=m.relatedTask)==null?void 0:_.taskId)??a;return y&&u&&await u.updateTaskStatus(y,\\\"input_required\\\"),await this.request(h,p,m)},authInfo:r==null?void 0:r.authInfo,requestId:t.id,requestInfo:r==null?void 0:r.requestInfo,taskId:a,taskStore:u,taskRequestedTtl:s==null?void 0:s.ttl,closeSSEStream:r==null?void 0:r.closeSSEStream,closeStandaloneSSEStream:r==null?void 0:r.closeStandaloneSSEStream};Promise.resolve().then(()=>{s&&this.assertTaskHandlerCapability(t.method)}).then(()=>i(t,l)).then(async h=>{if(o.signal.aborted)return;const p={result:h,jsonrpc:\\\"2.0\\\",id:t.id};a&&this._taskMessageQueue?await this._enqueueTaskMessage(a,{type:\\\"response\\\",message:p,timestamp:Date.now()},n==null?void 0:n.sessionId):await(n==null?void 0:n.send(p))},async h=>{if(o.signal.aborted)return;const p={jsonrpc:\\\"2.0\\\",id:t.id,error:{code:Number.isSafeInteger(h.code)?h.code:Ne.InternalError,message:h.message??\\\"Internal error\\\",...h.data!==void 0&&{data:h.data}}};a&&this._taskMessageQueue?await this._enqueueTaskMessage(a,{type:\\\"error\\\",message:p,timestamp:Date.now()},n==null?void 0:n.sessionId):await(n==null?void 0:n.send(p))}).catch(h=>this._onerror(new Error(`Failed to send response: ${h}`))).finally(()=>{this._requestHandlerAbortControllers.get(t.id)===o&&this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){const{progressToken:r,...i}=t.params,n=Number(r),a=this._progressHandlers.get(n);if(!a){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}const o=this._responseHandlers.get(n),s=this._timeoutInfo.get(n);if(s&&o&&s.resetTimeoutOnProgress)try{this._resetTimeout(n)}catch(u){this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),o(u);return}a(i)}_onresponse(t){const r=Number(t.id),i=this._requestResolvers.get(r);if(i){if(this._requestResolvers.delete(r),Rl(t))i(t);else{const o=new Ce(t.error.code,t.error.message,t.error.data);i(o)}return}const n=this._responseHandlers.get(r);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let a=!1;if(Rl(t)&&t.result&&typeof t.result==\\\"object\\\"){const o=t.result;if(o.task&&typeof o.task==\\\"object\\\"){const s=o.task;typeof s.taskId==\\\"string\\\"&&(a=!0,this._taskProgressTokens.set(s.taskId,r))}}if(a||this._progressHandlers.delete(r),Rl(t))n(t);else{const o=Ce.fromError(t.error.code,t.error.message,t.error.data);n(o)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)==null?void 0:t.close())}async*requestStream(t,r,i){var o,s;const{task:n}=i??{};if(!n){try{yield{type:\\\"result\\\",result:await this.request(t,r,i)}}catch(u){yield{type:\\\"error\\\",error:u instanceof Ce?u:new Ce(Ne.InternalError,String(u))}}return}let a;try{const u=await this.request(t,V_,i);if(u.task)a=u.task.taskId,yield{type:\\\"taskCreated\\\",task:u.task};else throw new Ce(Ne.InternalError,\\\"Task creation did not return a task\\\");for(;;){const l=await this.getTask({taskId:a},i);if(yield{type:\\\"taskStatus\\\",task:l},ci(l.status)){l.status===\\\"completed\\\"?yield{type:\\\"result\\\",result:await this.getTaskResult({taskId:a},r,i)}:l.status===\\\"failed\\\"?yield{type:\\\"error\\\",error:new Ce(Ne.InternalError,`Task ${a} failed`)}:l.status===\\\"cancelled\\\"&&(yield{type:\\\"error\\\",error:new Ce(Ne.InternalError,`Task ${a} was cancelled`)});return}if(l.status===\\\"input_required\\\"){yield{type:\\\"result\\\",result:await this.getTaskResult({taskId:a},r,i)};return}const c=l.pollInterval??((o=this._options)==null?void 0:o.defaultTaskPollInterval)??1e3;await new Promise(f=>setTimeout(f,c)),(s=i==null?void 0:i.signal)==null||s.throwIfAborted()}}catch(u){yield{type:\\\"error\\\",error:u instanceof Ce?u:new Ce(Ne.InternalError,String(u))}}}request(t,r,i){const{relatedRequestId:n,resumptionToken:a,onresumptiontoken:o,task:s,relatedTask:u}=i??{};return new Promise((l,c)=>{var y,_,b,S,w;const f=x=>{c(x)};if(!this._transport){f(new Error(\\\"Not connected\\\"));return}if(((y=this._options)==null?void 0:y.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(t.method),s&&this.assertTaskCapability(t.method)}catch(x){f(x);return}(_=i==null?void 0:i.signal)==null||_.throwIfAborted();const d=this._requestMessageId++,v={...t,jsonrpc:\\\"2.0\\\",id:d};i!=null&&i.onprogress&&(this._progressHandlers.set(d,i.onprogress),v.params={...t.params,_meta:{...((b=t.params)==null?void 0:b._meta)||{},progressToken:d}}),s&&(v.params={...v.params,task:s}),u&&(v.params={...v.params,_meta:{...((S=v.params)==null?void 0:S._meta)||{},[Ri]:u}});const h=x=>{var T;this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),(T=this._transport)==null||T.send({jsonrpc:\\\"2.0\\\",method:\\\"notifications/cancelled\\\",params:{requestId:d,reason:String(x)}},{relatedRequestId:n,resumptionToken:a,onresumptiontoken:o}).catch(I=>this._onerror(new Error(`Failed to send cancellation: ${I}`)));const k=x instanceof Ce?x:new Ce(Ne.RequestTimeout,String(x));c(k)};this._responseHandlers.set(d,x=>{var k;if(!((k=i==null?void 0:i.signal)!=null&&k.aborted)){if(x instanceof Error)return c(x);try{const T=lC(r,x.result);T.success?l(T.data):c(T.error)}catch(T){c(T)}}}),(w=i==null?void 0:i.signal)==null||w.addEventListener(\\\"abort\\\",()=>{var x;h((x=i==null?void 0:i.signal)==null?void 0:x.reason)});const p=(i==null?void 0:i.timeout)??d4,g=()=>h(Ce.fromError(Ne.RequestTimeout,\\\"Request timed out\\\",{timeout:p}));this._setupTimeout(d,p,i==null?void 0:i.maxTotalTimeout,g,(i==null?void 0:i.resetTimeoutOnProgress)??!1);const m=u==null?void 0:u.taskId;if(m){const x=k=>{const T=this._responseHandlers.get(d);T?T(k):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,x),this._enqueueTaskMessage(m,{type:\\\"request\\\",message:v,timestamp:Date.now()}).catch(k=>{this._cleanupTimeout(d),c(k)})}else this._transport.send(v,{relatedRequestId:n,resumptionToken:a,onresumptiontoken:o}).catch(x=>{this._cleanupTimeout(d),c(x)})})}async getTask(t,r){return this.request({method:\\\"tasks/get\\\",params:t},H_,r)}async getTaskResult(t,r,i){return this.request({method:\\\"tasks/result\\\",params:t},r,i)}async listTasks(t,r){return this.request({method:\\\"tasks/list\\\",params:t},Y_,r)}async cancelTask(t,r){return this.request({method:\\\"tasks/cancel\\\",params:t},XR,r)}async notification(t,r){var s,u,l,c;if(!this._transport)throw new Error(\\\"Not connected\\\");this.assertNotificationCapability(t.method);const i=(s=r==null?void 0:r.relatedTask)==null?void 0:s.taskId;if(i){const f={...t,jsonrpc:\\\"2.0\\\",params:{...t.params,_meta:{...((u=t.params)==null?void 0:u._meta)||{},[Ri]:r.relatedTask}}};await this._enqueueTaskMessage(i,{type:\\\"notification\\\",message:f,timestamp:Date.now()});return}if((((l=this._options)==null?void 0:l.debouncedNotificationMethods)??[]).includes(t.method)&&!t.params&&!(r!=null&&r.relatedRequestId)&&!(r!=null&&r.relatedTask)){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{var d,v;if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let f={...t,jsonrpc:\\\"2.0\\\"};r!=null&&r.relatedTask&&(f={...f,params:{...f.params,_meta:{...((d=f.params)==null?void 0:d._meta)||{},[Ri]:r.relatedTask}}}),(v=this._transport)==null||v.send(f,r).catch(h=>this._onerror(h))});return}let o={...t,jsonrpc:\\\"2.0\\\"};r!=null&&r.relatedTask&&(o={...o,params:{...o.params,_meta:{...((c=o.params)==null?void 0:c._meta)||{},[Ri]:r.relatedTask}}}),await this._transport.send(o,r)}setRequestHandler(t,r){const i=bS(t);this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(n,a)=>{const o=SS(t,n);return Promise.resolve(r(o,a))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,r){const i=bS(t);this._notificationHandlers.set(i,n=>{const a=SS(t,n);return Promise.resolve(r(a))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){const r=this._taskProgressTokens.get(t);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,r,i){var a;if(!this._taskStore||!this._taskMessageQueue)throw new Error(\\\"Cannot enqueue task message: taskStore and taskMessageQueue are not configured\\\");const n=(a=this._options)==null?void 0:a.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,r,i,n)}async _clearTaskQueue(t,r){if(this._taskMessageQueue){const i=await this._taskMessageQueue.dequeueAll(t,r);for(const n of i)if(n.type===\\\"request\\\"&&_S(n.message)){const a=n.message.id,o=this._requestResolvers.get(a);o?(o(new Ce(Ne.InternalError,\\\"Task cancelled or completed\\\")),this._requestResolvers.delete(a)):this._onerror(new Error(`Resolver missing for request ${a} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,r){var n,a;let i=((n=this._options)==null?void 0:n.defaultTaskPollInterval)??1e3;try{const o=await((a=this._taskStore)==null?void 0:a.getTask(t));o!=null&&o.pollInterval&&(i=o.pollInterval)}catch{}return new Promise((o,s)=>{if(r.aborted){s(new Ce(Ne.InvalidRequest,\\\"Request cancelled\\\"));return}const u=setTimeout(o,i);r.addEventListener(\\\"abort\\\",()=>{clearTimeout(u),s(new Ce(Ne.InvalidRequest,\\\"Request cancelled\\\"))},{once:!0})})}requestTaskStore(t,r){const i=this._taskStore;if(!i)throw new Error(\\\"No task store configured\\\");return{createTask:async n=>{if(!t)throw new Error(\\\"No request provided\\\");return await i.createTask(n,t.id,{method:t.method,params:t.params},r)},getTask:async n=>{const a=await i.getTask(n,r);if(!a)throw new Ce(Ne.InvalidParams,\\\"Failed to retrieve task: Task not found\\\");return a},storeTaskResult:async(n,a,o)=>{await i.storeTaskResult(n,a,o,r);const s=await i.getTask(n,r);if(s){const u=sf.parse({method:\\\"notifications/tasks/status\\\",params:s});await this.notification(u),ci(s.status)&&this._cleanupTaskProgressHandler(n)}},getTaskResult:n=>i.getTaskResult(n,r),updateTaskStatus:async(n,a,o)=>{const s=await i.getTask(n,r);if(!s)throw new Ce(Ne.InvalidParams,`Task \\\"${n}\\\" not found - it may have been cleaned up`);if(ci(s.status))throw new Ce(Ne.InvalidParams,`Cannot update task \\\"${n}\\\" from terminal status \\\"${s.status}\\\" to \\\"${a}\\\". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await i.updateTaskStatus(n,a,o,r);const u=await i.getTask(n,r);if(u){const l=sf.parse({method:\\\"notifications/tasks/status\\\",params:u});await this.notification(l),ci(u.status)&&this._cleanupTaskProgressHandler(n)}},listTasks:n=>i.listTasks(n,r)}}}function wS(e){return e!==null&&typeof e==\\\"object\\\"&&!Array.isArray(e)}function h4(e,t){const r={...e};for(const i in t){const n=i,a=t[n];if(a===void 0)continue;const o=r[n];wS(o)&&wS(a)?r[n]={...o,...a}:r[n]=a}return r}(e=>typeof require<\\\"u\\\"?require:typeof Proxy<\\\"u\\\"?new Proxy(e,{get:(t,r)=>(typeof require<\\\"u\\\"?require:t)[r]}):e)(function(e){if(typeof require<\\\"u\\\")return require.apply(this,arguments);throw Error('Dynamic require of \\\"'+e+'\\\" is not supported')});class p4 extends v4{constructor(){super(...arguments);Oe(this,\\\"_registeredMethods\\\",new Set);Oe(this,\\\"_eventSlots\\\",new Map);Oe(this,\\\"setRequestHandler\\\",(r,i)=>{this._assertMethodNotRegistered(r,\\\"setRequestHandler\\\"),super.setRequestHandler(r,i)});Oe(this,\\\"setNotificationHandler\\\",(r,i)=>{this._assertMethodNotRegistered(r,\\\"setNotificationHandler\\\"),super.setNotificationHandler(r,i)});Oe(this,\\\"replaceRequestHandler\\\",(r,i)=>{let n=r.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(r,i)})}onEventDispatch(r,i){}_ensureEventSlot(r){let i=this._eventSlots.get(r);if(!i){let n=this.eventSchemas[r];if(!n)throw Error(`Unknown event: ${String(r)}`);i={listeners:[]},this._eventSlots.set(r,i);let a=n.shape.method.value;this._registeredMethods.add(a);let o=i;super.setNotificationHandler(n,s=>{var l;let u=s.params;this.onEventDispatch(r,u),(l=o.onHandler)==null||l.call(o,u);for(let c of[...o.listeners])c(u)})}return i}setEventHandler(r,i){let n=this._ensureEventSlot(r);n.onHandler&&i&&console.warn(`[MCP Apps] on${String(r)} handler replaced. Use addEventListener(\\\"${String(r)}\\\", …) to add multiple listeners without replacing.`),n.onHandler=i}getEventHandler(r){var i;return(i=this._eventSlots.get(r))==null?void 0:i.onHandler}addEventListener(r,i){this._ensureEventSlot(r).listeners.push(i)}removeEventListener(r,i){let n=this._eventSlots.get(r);if(!n)return;let a=n.listeners.indexOf(i);a!==-1&&n.listeners.splice(a,1)}warnIfRequestHandlerReplaced(r,i,n){i&&n&&console.warn(`[MCP Apps] ${r} handler replaced. Previous handler will no longer be called.`)}_assertMethodNotRegistered(r,i){let n=r.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for \\\"${n}\\\" already registered (via ${i}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}}var g4=\\\"2026-01-26\\\",m4=\\\"ui/notifications/tool-input-partial\\\";class y4{constructor(t=window.parent,r){Oe(this,\\\"eventTarget\\\");Oe(this,\\\"eventSource\\\");Oe(this,\\\"messageListener\\\");Oe(this,\\\"onclose\\\");Oe(this,\\\"onerror\\\");Oe(this,\\\"onmessage\\\");Oe(this,\\\"sessionId\\\");Oe(this,\\\"setProtocolVersion\\\");this.eventTarget=t,this.eventSource=r,this.messageListener=i=>{var a,o,s;if(r&&i.source!==this.eventSource){console.debug(\\\"Ignoring message from unknown source\\\",i);return}let n=MR.safeParse(i.data);n.success?(console.debug(\\\"Parsed message\\\",n.data),(a=this.onmessage)==null||a.call(this,n.data)):((o=i.data)==null?void 0:o.jsonrpc)!==\\\"2.0\\\"?console.debug(\\\"Ignoring non-JSON-RPC message\\\",n.error.message,i):(console.error(\\\"Failed to parse message\\\",n.error.message,i),(s=this.onerror)==null||s.call(this,Error(\\\"Invalid JSON-RPC message received: \\\"+n.error.message)))}}async start(){window.addEventListener(\\\"message\\\",this.messageListener)}async send(t,r){t.method!==m4&&console.debug(\\\"Sending message\\\",t),this.eventTarget.postMessage(t,\\\"*\\\")}async close(){var t;window.removeEventListener(\\\"message\\\",this.messageListener),(t=this.onclose)==null||t.call(this)}}var _4=Se([L(\\\"light\\\"),L(\\\"dark\\\")]).describe(\\\"Color theme preference for the host environment.\\\"),Hs=Se([L(\\\"inline\\\"),L(\\\"fullscreen\\\"),L(\\\"pip\\\")]).describe(\\\"Display mode for UI presentation.\\\"),b4=Se([L(\\\"--color-background-primary\\\"),L(\\\"--color-background-secondary\\\"),L(\\\"--color-background-tertiary\\\"),L(\\\"--color-background-inverse\\\"),L(\\\"--color-background-ghost\\\"),L(\\\"--color-background-info\\\"),L(\\\"--color-background-danger\\\"),L(\\\"--color-background-success\\\"),L(\\\"--color-background-warning\\\"),L(\\\"--color-background-disabled\\\"),L(\\\"--color-text-primary\\\"),L(\\\"--color-text-secondary\\\"),L(\\\"--color-text-tertiary\\\"),L(\\\"--color-text-inverse\\\"),L(\\\"--color-text-ghost\\\"),L(\\\"--color-text-info\\\"),L(\\\"--color-text-danger\\\"),L(\\\"--color-text-success\\\"),L(\\\"--color-text-warning\\\"),L(\\\"--color-text-disabled\\\"),L(\\\"--color-border-primary\\\"),L(\\\"--color-border-secondary\\\"),L(\\\"--color-border-tertiary\\\"),L(\\\"--color-border-inverse\\\"),L(\\\"--color-border-ghost\\\"),L(\\\"--color-border-info\\\"),L(\\\"--color-border-danger\\\"),L(\\\"--color-border-success\\\"),L(\\\"--color-border-warning\\\"),L(\\\"--color-border-disabled\\\"),L(\\\"--color-ring-primary\\\"),L(\\\"--color-ring-secondary\\\"),L(\\\"--color-ring-inverse\\\"),L(\\\"--color-ring-info\\\"),L(\\\"--color-ring-danger\\\"),L(\\\"--color-ring-success\\\"),L(\\\"--color-ring-warning\\\"),L(\\\"--font-sans\\\"),L(\\\"--font-mono\\\"),L(\\\"--font-weight-normal\\\"),L(\\\"--font-weight-medium\\\"),L(\\\"--font-weight-semibold\\\"),L(\\\"--font-weight-bold\\\"),L(\\\"--font-text-xs-size\\\"),L(\\\"--font-text-sm-size\\\"),L(\\\"--font-text-md-size\\\"),L(\\\"--font-text-lg-size\\\"),L(\\\"--font-heading-xs-size\\\"),L(\\\"--font-heading-sm-size\\\"),L(\\\"--font-heading-md-size\\\"),L(\\\"--font-heading-lg-size\\\"),L(\\\"--font-heading-xl-size\\\"),L(\\\"--font-heading-2xl-size\\\"),L(\\\"--font-heading-3xl-size\\\"),L(\\\"--font-text-xs-line-height\\\"),L(\\\"--font-text-sm-line-height\\\"),L(\\\"--font-text-md-line-height\\\"),L(\\\"--font-text-lg-line-height\\\"),L(\\\"--font-heading-xs-line-height\\\"),L(\\\"--font-heading-sm-line-height\\\"),L(\\\"--font-heading-md-line-height\\\"),L(\\\"--font-heading-lg-line-height\\\"),L(\\\"--font-heading-xl-line-height\\\"),L(\\\"--font-heading-2xl-line-height\\\"),L(\\\"--font-heading-3xl-line-height\\\"),L(\\\"--border-radius-xs\\\"),L(\\\"--border-radius-sm\\\"),L(\\\"--border-radius-md\\\"),L(\\\"--border-radius-lg\\\"),L(\\\"--border-radius-xl\\\"),L(\\\"--border-radius-full\\\"),L(\\\"--border-width-regular\\\"),L(\\\"--shadow-hairline\\\"),L(\\\"--shadow-sm\\\"),L(\\\"--shadow-md\\\"),L(\\\"--shadow-lg\\\")]).describe(\\\"CSS variable keys available to MCP apps for theming.\\\"),S4=De(b4.describe(`Style variables for theming MCP apps.\\n\\nIndividual style keys are optional - hosts may provide any subset of these values.\\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\\n\\nNote: This type uses \\\\`Record<K, string | undefined>\\\\` rather than \\\\`Partial<Record<K, string>>\\\\`\\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),Se([O(),lo()]).describe(`Style variables for theming MCP apps.\\n\\nIndividual style keys are optional - hosts may provide any subset of these values.\\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\\n\\nNote: This type uses \\\\`Record<K, string | undefined>\\\\` rather than \\\\`Partial<Record<K, string>>\\\\`\\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.\\n\\nIndividual style keys are optional - hosts may provide any subset of these values.\\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\\n\\nNote: This type uses \\\\`Record<K, string | undefined>\\\\` rather than \\\\`Partial<Record<K, string>>\\\\`\\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`);E({method:L(\\\"ui/open-link\\\"),params:E({url:O().describe(\\\"URL to open in the host's browser\\\")})});var w4=E({isError:ze().optional().describe(\\\"True if the host failed to open the URL (e.g., due to security policy).\\\")}).passthrough(),x4=E({isError:ze().optional().describe(\\\"True if the download failed (e.g., user cancelled or host denied).\\\")}).passthrough(),T4=E({isError:ze().optional().describe(\\\"True if the host rejected or failed to deliver the message.\\\")}).passthrough();E({method:L(\\\"ui/notifications/sandbox-proxy-ready\\\"),params:E({})});var n0=E({connectDomains:ue(O()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).\\n\\n- Maps to CSP \\\\`connect-src\\\\` directive\\n- Empty or omitted → no network connections (secure default)`),resourceDomains:ue(O()).optional().describe(\\\"Origins for static resources (images, scripts, stylesheets, fonts, media).\\\\n\\\\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\\\\n- Wildcard subdomains supported: `https://*.example.com`\\\\n- Empty or omitted → no network resources (secure default)\\\"),frameDomains:ue(O()).optional().describe(\\\"Origins for nested iframes.\\\\n\\\\n- Maps to CSP `frame-src` directive\\\\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)\\\"),baseUriDomains:ue(O()).optional().describe(\\\"Allowed base URIs for the document.\\\\n\\\\n- Maps to CSP `base-uri` directive\\\\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)\\\")}),i0=E({camera:E({}).optional().describe(\\\"Request camera access.\\\\n\\\\nMaps to Permission Policy `camera` feature.\\\"),microphone:E({}).optional().describe(\\\"Request microphone access.\\\\n\\\\nMaps to Permission Policy `microphone` feature.\\\"),geolocation:E({}).optional().describe(\\\"Request geolocation access.\\\\n\\\\nMaps to Permission Policy `geolocation` feature.\\\"),clipboardWrite:E({}).optional().describe(\\\"Request clipboard write access.\\\\n\\\\nMaps to Permission Policy `clipboard-write` feature.\\\")});E({method:L(\\\"ui/notifications/size-changed\\\"),params:E({width:he().optional().describe(\\\"New width in pixels.\\\"),height:he().optional().describe(\\\"New height in pixels.\\\")})});var k4=E({method:L(\\\"ui/notifications/tool-input\\\"),params:E({arguments:De(O(),Le().describe(\\\"Complete tool call arguments as key-value pairs.\\\")).optional().describe(\\\"Complete tool call arguments as key-value pairs.\\\")})}),I4=E({method:L(\\\"ui/notifications/tool-input-partial\\\"),params:E({arguments:De(O(),Le().describe(\\\"Partial tool call arguments (incomplete, may change).\\\")).optional().describe(\\\"Partial tool call arguments (incomplete, may change).\\\")})}),$4=E({method:L(\\\"ui/notifications/tool-cancelled\\\"),params:E({reason:O().optional().describe('Optional reason for the cancellation (e.g., \\\"user action\\\", \\\"timeout\\\").')})}),D4=E({fonts:O().optional()}),C4=E({variables:S4.optional().describe(\\\"CSS variables for theming the app.\\\"),css:D4.optional().describe(\\\"CSS blocks that apps can inject.\\\")}),A4=E({method:L(\\\"ui/resource-teardown\\\"),params:E({})});De(O(),Le());var xS=E({text:E({}).optional().describe(\\\"Host supports text content blocks.\\\"),image:E({}).optional().describe(\\\"Host supports image content blocks.\\\"),audio:E({}).optional().describe(\\\"Host supports audio content blocks.\\\"),resource:E({}).optional().describe(\\\"Host supports resource content blocks.\\\"),resourceLink:E({}).optional().describe(\\\"Host supports resource link content blocks.\\\"),structuredContent:E({}).optional().describe(\\\"Host supports structured content.\\\")});E({method:L(\\\"ui/notifications/request-teardown\\\"),params:E({}).optional()});var P4=E({experimental:E({}).optional().describe(\\\"Experimental features (structure TBD).\\\"),openLinks:E({}).optional().describe(\\\"Host supports opening external URLs.\\\"),downloadFile:E({}).optional().describe(\\\"Host supports file downloads via ui/download-file.\\\"),serverTools:E({listChanged:ze().optional().describe(\\\"Host supports tools/list_changed notifications.\\\")}).optional().describe(\\\"Host can proxy tool calls to the MCP server.\\\"),serverResources:E({listChanged:ze().optional().describe(\\\"Host supports resources/list_changed notifications.\\\")}).optional().describe(\\\"Host can proxy resource reads to the MCP server.\\\"),logging:E({}).optional().describe(\\\"Host accepts log messages.\\\"),sandbox:E({permissions:i0.optional().describe(\\\"Permissions granted by the host (camera, microphone, geolocation).\\\"),csp:n0.optional().describe(\\\"CSP domains approved by the host.\\\")}).optional().describe(\\\"Sandbox configuration applied by the host.\\\"),updateModelContext:xS.optional().describe(\\\"Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.\\\"),message:xS.optional().describe(\\\"Host supports receiving content messages (ui/message) from the view.\\\"),sampling:E({tools:E({}).optional().describe(\\\"Host supports tool use via `tools` and `toolChoice` parameters.\\\")}).optional().describe(\\\"Host supports LLM sampling (sampling/createMessage) from the view.\\\\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.\\\")}),M4=E({experimental:E({}).optional().describe(\\\"Experimental features (structure TBD).\\\"),tools:E({listChanged:ze().optional().describe(\\\"App supports tools/list_changed notifications.\\\")}).optional().describe(\\\"App exposes MCP-style tools that the host can call.\\\"),availableDisplayModes:ue(Hs).optional().describe(\\\"Display modes the app supports.\\\")});E({method:L(\\\"ui/notifications/initialized\\\"),params:E({}).optional()});E({csp:n0.optional().describe(\\\"Content Security Policy configuration for UI resources.\\\"),permissions:i0.optional().describe(\\\"Sandbox permissions requested by the UI resource.\\\"),domain:O().optional().describe(`Dedicated origin for view sandbox.\\n\\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\\n\\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\\n- Hash-based subdomains (e.g., \\\\`{hash}.claudemcpcontent.com\\\\`)\\n- URL-derived subdomains (e.g., \\\\`www-example-com.oaiusercontent.com\\\\`)\\n\\nIf omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:ze().optional().describe(`Visual boundary preference - true if view prefers a visible border.\\n\\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\\n\\n- \\\\`true\\\\`: request visible border + background\\n- \\\\`false\\\\`: request no visible border + background\\n- omitted: host decides border`)});E({method:L(\\\"ui/request-display-mode\\\"),params:E({mode:Hs.describe(\\\"The display mode being requested.\\\")})});var L4=E({mode:Hs.describe(\\\"The display mode that was actually set. May differ from requested if not supported.\\\")}).passthrough(),O4=Se([L(\\\"model\\\"),L(\\\"app\\\")]).describe(\\\"Tool visibility scope - who can access the tool.\\\");E({resourceUri:O().optional(),visibility:ue(O4).optional().describe(`Who can access this tool. Default: [\\\"model\\\", \\\"app\\\"]\\n- \\\"model\\\": Tool visible to and callable by the agent\\n- \\\"app\\\": Tool callable by the app from this server only`),csp:ea().optional(),permissions:ea().optional()});E({mimeTypes:ue(O()).optional().describe('Array of supported MIME types for UI resources.\\\\nMust include `\\\"text/html;profile=mcp-app\\\"` for MCP Apps support.')});E({method:L(\\\"ui/download-file\\\"),params:E({contents:ue(Se([PC,MC])).describe(\\\"Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.\\\")})});E({method:L(\\\"ui/message\\\"),params:E({role:L(\\\"user\\\").describe('Message role, currently only \\\"user\\\" is supported.'),content:ue(_l).describe(\\\"Message content blocks (text, image, etc.).\\\")})});E({method:L(\\\"ui/notifications/sandbox-resource-ready\\\"),params:E({html:O().describe(\\\"HTML content to load into the inner iframe.\\\"),sandbox:O().optional().describe(\\\"Optional override for the inner iframe's sandbox attribute.\\\"),csp:n0.optional().describe(\\\"CSP configuration from resource metadata.\\\"),permissions:i0.optional().describe(\\\"Sandbox permissions from resource metadata.\\\")})});var E4=E({method:L(\\\"ui/notifications/tool-result\\\"),params:sv.describe(\\\"Standard MCP tool execution result.\\\")}),NC=E({toolInfo:E({id:vl.optional().describe(\\\"JSON-RPC id of the tools/call request.\\\"),tool:r0.describe(\\\"Tool definition including name, inputSchema, etc.\\\")}).optional().describe(\\\"Metadata of the tool call that instantiated this App.\\\"),theme:_4.optional().describe(\\\"Current color theme preference.\\\"),styles:C4.optional().describe(\\\"Style configuration for theming the app.\\\"),displayMode:Hs.optional().describe(\\\"How the UI is currently displayed.\\\"),availableDisplayModes:ue(Hs).optional().describe(\\\"Display modes the host supports.\\\"),containerDimensions:Se([E({height:he().describe(\\\"Fixed container height in pixels.\\\")}),E({maxHeight:Se([he(),lo()]).optional().describe(\\\"Maximum container height in pixels.\\\")})]).and(Se([E({width:he().describe(\\\"Fixed container width in pixels.\\\")}),E({maxWidth:Se([he(),lo()]).optional().describe(\\\"Maximum container width in pixels.\\\")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other\\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:O().optional().describe(\\\"User's language and region preference in BCP 47 format.\\\"),timeZone:O().optional().describe(\\\"User's timezone in IANA format.\\\"),userAgent:O().optional().describe(\\\"Host application identifier.\\\"),platform:Se([L(\\\"web\\\"),L(\\\"desktop\\\"),L(\\\"mobile\\\")]).optional().describe(\\\"Platform type for responsive design decisions.\\\"),deviceCapabilities:E({touch:ze().optional().describe(\\\"Whether the device supports touch input.\\\"),hover:ze().optional().describe(\\\"Whether the device supports hover interactions.\\\")}).optional().describe(\\\"Device input capabilities.\\\"),safeAreaInsets:E({top:he().describe(\\\"Top safe area inset in pixels.\\\"),right:he().describe(\\\"Right safe area inset in pixels.\\\"),bottom:he().describe(\\\"Bottom safe area inset in pixels.\\\"),left:he().describe(\\\"Left safe area inset in pixels.\\\")}).optional().describe(\\\"Mobile safe area boundaries in pixels.\\\")}).passthrough(),z4=E({method:L(\\\"ui/notifications/host-context-changed\\\"),params:NC.describe(\\\"Partial context update containing only changed fields.\\\")});E({method:L(\\\"ui/update-model-context\\\"),params:E({content:ue(_l).optional().describe(\\\"Context content blocks (text, image, etc.).\\\"),structuredContent:De(O(),Le().describe(\\\"Structured content for machine-readable context data.\\\")).optional().describe(\\\"Structured content for machine-readable context data.\\\")})});E({method:L(\\\"ui/initialize\\\"),params:E({appInfo:av.describe(\\\"App identification (name and version).\\\"),appCapabilities:M4.describe(\\\"Features and capabilities this app provides.\\\"),protocolVersion:O().describe(\\\"Protocol version this app supports.\\\")})});var R4=E({protocolVersion:O().describe('Negotiated protocol version string (e.g., \\\"2025-11-21\\\").'),hostInfo:av.describe(\\\"Host application identification and version.\\\"),hostCapabilities:P4.describe(\\\"Features and capabilities provided by the host.\\\"),hostContext:NC.describe(\\\"Rich context about the host environment.\\\")}).passthrough(),N4={target:\\\"draft-2020-12\\\"};async function TS(e,t){let r=e[\\\"~standard\\\"];if(r.jsonSchema)return r.jsonSchema[t](N4);if(r.vendor===\\\"zod\\\"){let{z:i}=await QO(()=>Promise.resolve().then(()=>IR),void 0,import.meta.url);return i.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${r.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function kS(e,t,r=\\\"\\\"){let i=await e[\\\"~standard\\\"].validate(t);if(i.issues){let n=i.issues.map(a=>{var s;let o=(s=a.path)==null?void 0:s.map(u=>typeof u==\\\"object\\\"?u.key:u).join(\\\".\\\");return o?`${o}: ${a.message}`:a.message}).join(\\\"; \\\");throw Error(r+n)}return i.value}const Yf=class Yf extends p4{constructor(r,i={},n={autoResize:!0}){super(n);Oe(this,\\\"_appInfo\\\");Oe(this,\\\"_capabilities\\\");Oe(this,\\\"options\\\");Oe(this,\\\"_hostCapabilities\\\");Oe(this,\\\"_hostInfo\\\");Oe(this,\\\"_hostContext\\\");Oe(this,\\\"_registeredTools\\\",{});Oe(this,\\\"_initializedSent\\\",!1);Oe(this,\\\"eventSchemas\\\",{toolinput:k4,toolinputpartial:I4,toolresult:E4,toolcancelled:$4,hostcontextchanged:z4});Oe(this,\\\"_everHadListener\\\",new Set);Oe(this,\\\"_toolHandlersInitialized\\\",!1);Oe(this,\\\"_onteardown\\\");Oe(this,\\\"_oncalltool\\\");Oe(this,\\\"_onlisttools\\\");Oe(this,\\\"sendOpenLink\\\",this.openLink);this._appInfo=r,this._capabilities=i,this.options=n,n.allowUnsafeEval||ht({jitless:!0}),this.setRequestHandler(ov,a=>(console.log(\\\"Received ping:\\\",a.params),{})),this.setEventHandler(\\\"hostcontextchanged\\\",void 0)}_assertInitialized(r){var n;if(this._initializedSent)return;let i=`[ext-apps] App.${r}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if((n=this.options)!=null&&n.strict)throw Error(i);console.warn(`${i}. This will throw in a future release.`)}_assertHandlerTiming(r){var n;if(!Yf.ONE_SHOT_EVENTS.has(r)||this._everHadListener.has(r)||(this._everHadListener.add(r),!this._initializedSent))return;let i=`[ext-apps] \\\"${String(r)}\\\" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if((n=this.options)!=null&&n.strict)throw Error(i);console.warn(i)}setEventHandler(r,i){i&&this._assertHandlerTiming(r),super.setEventHandler(r,i)}addEventListener(r,i){this._assertHandlerTiming(r),super.addEventListener(r,i)}onEventDispatch(r,i){r===\\\"hostcontextchanged\\\"&&(this._hostContext={...this._hostContext,...i})}registerCapabilities(r){if(this.transport)throw Error(\\\"Cannot register capabilities after transport is established\\\");this._capabilities=h4(this._capabilities,r)}registerTool(r,i,n){if(this._registeredTools[r])throw Error(`Tool ${r} is already registered`);let a=this,o=()=>{var l;a._initializedSent&&((l=a._capabilities.tools)!=null&&l.listChanged)&&a.sendToolListChanged()},s=i.inputSchema!==void 0,u={title:i.title,description:i.description,inputSchema:i.inputSchema,outputSchema:i.outputSchema,annotations:i.annotations,_meta:i._meta,enabled:!0,enable(){this.enabled=!0,o()},disable(){this.enabled=!1,o()},update(l){Object.assign(this,l),o()},remove(){a._registeredTools[r]===u&&(delete a._registeredTools[r],o())},handler:async(l,c)=>{if(!u.enabled)throw Error(`Tool ${r} is disabled`);let f;if(s){let d=u.inputSchema,v=d?await kS(d,l??{},`Invalid input for tool ${r}: `):l??{};f=await n(v,c)}else f=await n(c);return u.outputSchema&&!f.isError&&(f.structuredContent=await kS(u.outputSchema,f.structuredContent,`Invalid output for tool ${r}: `)),f}};return this._registeredTools[r]=u,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),o(),u}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(r,i)=>{let n=this._registeredTools[r.name];if(!n)throw Error(`Tool ${r.name} not found`);return n.handler(r.arguments,i)},this.onlisttools=async(r,i)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([n,a])=>a.enabled).map(async([n,a])=>{let o={name:n,title:a.title,description:a.description,inputSchema:a.inputSchema?await TS(a.inputSchema,\\\"input\\\"):{type:\\\"object\\\",properties:{}}};return a.outputSchema&&(o.outputSchema=await TS(a.outputSchema,\\\"output\\\")),a.annotations&&(o.annotations=a.annotations),a._meta&&(o._meta=a._meta),o}))}))}async sendToolListChanged(r={}){this._assertInitialized(\\\"sendToolListChanged\\\"),await this.notification({method:\\\"notifications/tools/list_changed\\\",params:r})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(\\\"toolinput\\\")}set ontoolinput(r){this.setEventHandler(\\\"toolinput\\\",r)}get ontoolinputpartial(){return this.getEventHandler(\\\"toolinputpartial\\\")}set ontoolinputpartial(r){this.setEventHandler(\\\"toolinputpartial\\\",r)}get ontoolresult(){return this.getEventHandler(\\\"toolresult\\\")}set ontoolresult(r){this.setEventHandler(\\\"toolresult\\\",r)}get ontoolcancelled(){return this.getEventHandler(\\\"toolcancelled\\\")}set ontoolcancelled(r){this.setEventHandler(\\\"toolcancelled\\\",r)}get onhostcontextchanged(){return this.getEventHandler(\\\"hostcontextchanged\\\")}set onhostcontextchanged(r){this.setEventHandler(\\\"hostcontextchanged\\\",r)}get onteardown(){return this._onteardown}set onteardown(r){this.warnIfRequestHandlerReplaced(\\\"onteardown\\\",this._onteardown,r),this._onteardown=r,this.replaceRequestHandler(A4,(i,n)=>{if(!this._onteardown)throw Error(\\\"No onteardown handler set\\\");return this._onteardown(i.params,n)})}get oncalltool(){return this._oncalltool}set oncalltool(r){this.warnIfRequestHandlerReplaced(\\\"oncalltool\\\",this._oncalltool,r),this._oncalltool=r,this.replaceRequestHandler(OC,(i,n)=>{if(!this._oncalltool)throw Error(\\\"No oncalltool handler set\\\");return this._oncalltool(i.params,n)})}get onlisttools(){return this._onlisttools}set onlisttools(r){this.warnIfRequestHandlerReplaced(\\\"onlisttools\\\",this._onlisttools,r),this._onlisttools=r,this.replaceRequestHandler(LC,(i,n)=>{if(!this._onlisttools)throw Error(\\\"No onlisttools handler set\\\");return this._onlisttools(i.params,n)})}assertCapabilityForMethod(r){var i;switch(r){case\\\"sampling/createMessage\\\":if(!((i=this._hostCapabilities)!=null&&i.sampling))throw Error(`Host does not support sampling (required for ${r})`);break}}assertRequestHandlerCapability(r){switch(r){case\\\"tools/call\\\":case\\\"tools/list\\\":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${r})`);return;case\\\"ping\\\":case\\\"ui/resource-teardown\\\":return;default:throw Error(`No handler for method ${r} registered`)}}assertNotificationCapability(r){}assertTaskCapability(r){throw Error(\\\"Tasks are not supported in MCP Apps\\\")}assertTaskHandlerCapability(r){throw Error(\\\"Task handlers are not supported in MCP Apps\\\")}async callServerTool(r,i){if(this._assertInitialized(\\\"callServerTool\\\"),typeof r==\\\"string\\\")throw Error(`callServerTool() expects an object as its first argument, but received a string (\\\"${r}\\\"). Did you mean: callServerTool({ name: \\\"${r}\\\", arguments: { ... } })?`);return await this.request({method:\\\"tools/call\\\",params:r},sv,{onprogress:()=>{},resetTimeoutOnProgress:!0,...i})}async readServerResource(r,i){return this._assertInitialized(\\\"readServerResource\\\"),await this.request({method:\\\"resources/read\\\",params:r},AC,i)}async listServerResources(r,i){return this._assertInitialized(\\\"listServerResources\\\"),await this.request({method:\\\"resources/list\\\",params:r},CC,i)}async createSamplingMessage(r,i){this._assertInitialized(\\\"createSamplingMessage\\\");let n=r.tools?RC:zC;return await this.request({method:\\\"sampling/createMessage\\\",params:r},n,i)}sendMessage(r,i){return this._assertInitialized(\\\"sendMessage\\\"),this.request({method:\\\"ui/message\\\",params:r},T4,i)}sendLog(r){return this.notification({method:\\\"notifications/message\\\",params:r})}updateModelContext(r,i){return this._assertInitialized(\\\"updateModelContext\\\"),this.request({method:\\\"ui/update-model-context\\\",params:r},F_,i)}openLink(r,i){return this._assertInitialized(\\\"openLink\\\"),this.request({method:\\\"ui/open-link\\\",params:r},w4,i)}downloadFile(r,i){return this._assertInitialized(\\\"downloadFile\\\"),this.request({method:\\\"ui/download-file\\\",params:r},x4,i)}requestTeardown(r={}){return this.notification({method:\\\"ui/notifications/request-teardown\\\",params:r})}requestDisplayMode(r,i){return this._assertInitialized(\\\"requestDisplayMode\\\"),this.request({method:\\\"ui/request-display-mode\\\",params:r},L4,i)}sendSizeChanged(r){return this.notification({method:\\\"ui/notifications/size-changed\\\",params:r})}setupSizeChangedNotifications(){let r=!1,i=0,n=0,a=()=>{r||(r=!0,requestAnimationFrame(()=>{r=!1;let s=document.documentElement,u=s.style.height;s.style.height=\\\"max-content\\\";let l=Math.ceil(s.getBoundingClientRect().height);s.style.height=u;let c=Math.ceil(window.innerWidth);(c!==i||l!==n)&&(i=c,n=l,this.sendSizeChanged({width:c,height:l}))}))};a();let o=new ResizeObserver(a);return o.observe(document.documentElement),o.observe(document.body),()=>o.disconnect()}async connect(r=new y4(window.parent,window.parent),i){var n;if(this.transport)throw Error(\\\"App is already connected. Call close() before connecting again.\\\");this._initializedSent=!1,await super.connect(r);try{let a=await this.request({method:\\\"ui/initialize\\\",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:g4}},R4,i);if(a===void 0)throw Error(`Server sent invalid initialize result: ${a}`);this._hostCapabilities=a.hostCapabilities,this._hostInfo=a.hostInfo,this._hostContext=a.hostContext,await this.notification({method:\\\"ui/notifications/initialized\\\"}),this._initializedSent=!0,(n=this.options)!=null&&n.autoResize&&this.setupSizeChangedNotifications()}catch(a){throw this.close(),a}}};Oe(Yf,\\\"ONE_SHOT_EVENTS\\\",new Set([\\\"toolinput\\\",\\\"toolinputpartial\\\",\\\"toolresult\\\",\\\"toolcancelled\\\"]));let Pp=Yf;/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation.\\n\\nPermission to use, copy, modify, and/or distribute this software for any\\npurpose with or without fee is hereby granted.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\\nPERFORMANCE OF THIS SOFTWARE.\\n***************************************************************************** */var Mp=function(e,t){return Mp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Mp(e,t)};function V(e,t){if(typeof t!=\\\"function\\\"&&t!==null)throw new TypeError(\\\"Class extends value \\\"+String(t)+\\\" is not a constructor or null\\\");Mp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var U4=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),B4=(function(){function e(){this.browser=new U4,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<\\\"u\\\"}return e})(),pe=new B4;typeof wx==\\\"object\\\"&&typeof wx.getSystemInfoSync==\\\"function\\\"?(pe.wxa=!0,pe.touchEventsSupported=!0):typeof document>\\\"u\\\"&&typeof self<\\\"u\\\"?pe.worker=!0:!pe.hasGlobalWindow||\\\"Deno\\\"in window||typeof navigator<\\\"u\\\"&&typeof navigator.userAgent==\\\"string\\\"&&navigator.userAgent.indexOf(\\\"Node.js\\\")>-1?(pe.node=!0,pe.svgSupported=!0):F4(navigator.userAgent,pe);function F4(e,t){var r=t.browser,i=e.match(/Firefox\\\\/([\\\\d.]+)/),n=e.match(/MSIE\\\\s([\\\\d.]+)/)||e.match(/Trident\\\\/.+?rv:(([\\\\d.]+))/),a=e.match(/Edge?\\\\/([\\\\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(\\\".\\\")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<\\\"u\\\",t.touchEventsSupported=\\\"ontouchstart\\\"in window&&!r.ie&&!r.edge,t.pointerEventsSupported=\\\"onpointerdown\\\"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<\\\"u\\\";if(s){var u=document.documentElement.style;t.transform3dSupported=(r.ie&&\\\"transition\\\"in u||r.edge||\\\"WebKitCSSMatrix\\\"in window&&\\\"m11\\\"in new WebKitCSSMatrix||\\\"MozPerspective\\\"in u)&&!(\\\"OTransition\\\"in u),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var a0=12,UC=\\\"sans-serif\\\",$n=a0+\\\"px \\\"+UC,j4=20,Z4=100,V4=\\\"007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\\\\\\\\\\\\\WQb\\\\\\\\0FWLg\\\\\\\\bWb\\\\\\\\WQ\\\\\\\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\\\\\\\FFF5.5N\\\";function G4(e){var t={};if(typeof JSON>\\\"u\\\")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-j4)/Z4;t[i]=n}return t}var H4=G4(V4),nn={createCanvas:function(){return typeof document<\\\"u\\\"&&document.createElement(\\\"canvas\\\")},measureText:(function(){var e,t;return function(r,i){if(!e){var n=nn.createCanvas();e=n&&n.getContext(\\\"2d\\\")}if(e)return t!==i&&(t=e.font=i||$n),e.measureText(r);r=r||\\\"\\\",i=i||$n;var a=/((?:\\\\d+)?\\\\.?\\\\d*)px/.exec(i),o=a&&+a[1]||a0,s=0;if(i.indexOf(\\\"mono\\\")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=H4[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i},getTime:function(){return Date.now?Date.now():+new Date}},BC=ti([\\\"Function\\\",\\\"RegExp\\\",\\\"Date\\\",\\\"Error\\\",\\\"CanvasGradient\\\",\\\"CanvasPattern\\\",\\\"Image\\\",\\\"Canvas\\\"],function(e,t){return e[\\\"[object \\\"+t+\\\"]\\\"]=!0,e},{}),FC=ti([\\\"Int8\\\",\\\"Uint8\\\",\\\"Uint8Clamped\\\",\\\"Int16\\\",\\\"Uint16\\\",\\\"Int32\\\",\\\"Uint32\\\",\\\"Float32\\\",\\\"Float64\\\"],function(e,t){return e[\\\"[object \\\"+t+\\\"Array]\\\"]=!0,e},{}),bl=Object.prototype.toString,uv=Array.prototype,W4=uv.forEach,q4=uv.filter,o0=uv.slice,Y4=uv.map,IS=(function(){}).constructor,Nl=IS?IS.prototype:null,s0=\\\"__proto__\\\",Vv=2311,X4=Math.pow(2,53)-1;function jC(){return Vv>=X4&&(Vv=0),Vv++}function ZC(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<\\\"u\\\"&&console.error.apply(console,e)}function me(e){if(e==null||typeof e!=\\\"object\\\")return e;var t=e,r=bl.call(e);if(r===\\\"[object Array]\\\"){if(!Cs(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=me(e[i])}}else if(FC[r]){if(!Cs(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!BC[r]&&!Cs(e)&&!Ws(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==s0&&(t[o]=me(e[o]))}return t}function Ze(e,t,r){if(!ne(t)||!ne(e))return r?me(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==s0){var n=e[i],a=t[i];ne(a)&&ne(n)&&!G(a)&&!G(n)&&!Ws(a)&&!Ws(n)&&!$S(a)&&!$S(n)&&!Cs(a)&&!Cs(n)?Ze(n,a,r):(r||!(i in e))&&(e[i]=me(t[i]))}return e}function Z(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==s0&&(e[r]=t[r]);return e}function K4(e,t,r){e=e||{};for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}return e}function je(e,t,r){for(var i=Te(t),n=0,a=i.length;n<a;n++){var o=i[n];e[o]==null&&(e[o]=t[o])}return e}function xe(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function J4(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function Fr(e,t,r){if(e=\\\"prototype\\\"in e?e.prototype:e,t=\\\"prototype\\\"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!==\\\"constructor\\\"&&e[a]==null&&(e[a]=t[a])}else je(e,t)}function Ht(e){return!e||typeof e==\\\"string\\\"?!1:typeof e.length==\\\"number\\\"}function C(e,t,r){if(e&&t)if(e.forEach&&e.forEach===W4)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Q(e,t,r){if(!e)return[];if(!t)return l0(e);if(e.map&&e.map===Y4)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function ti(e,t,r,i){if(e&&t){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function at(e,t,r){if(!e)return[];if(!t)return l0(e);if(e.filter&&e.filter===q4)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function Q4(e,t,r){if(e&&t){for(var i=0,n=e.length;i<n;i++)if(t.call(r,e[i],i,e))return e[i]}}function Te(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function eU(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return e.apply(t,r.concat(o0.call(arguments)))}}var Fe=Nl&&le(Nl.bind)?Nl.call.bind(Nl.bind):eU;function He(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(o0.call(arguments)))}}function G(e){return Array.isArray?Array.isArray(e):bl.call(e)===\\\"[object Array]\\\"}function le(e){return typeof e==\\\"function\\\"}function ee(e){return typeof e==\\\"string\\\"}function Lp(e){return bl.call(e)===\\\"[object String]\\\"}function Re(e){return typeof e==\\\"number\\\"}function ne(e){var t=typeof e;return t===\\\"function\\\"||!!e&&t===\\\"object\\\"}function $S(e){return!!BC[bl.call(e)]}function Wt(e){return!!FC[bl.call(e)]}function Ws(e){return typeof e==\\\"object\\\"&&typeof e.nodeType==\\\"number\\\"&&typeof e.ownerDocument==\\\"object\\\"}function u0(e){return e.colorStops!=null}function qs(e){return e!==e}function Ys(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e.length;r<i;r++)if(e[r]!=null)return e[r]}function J(e,t){return e??t}function Hi(e,t,r){return e??t??r}function l0(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return o0.apply(e,t)}function c0(e){if(typeof e==\\\"number\\\")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Nr(e,t){if(!e)throw new Error(t)}function en(e){return e==null?null:typeof e.trim==\\\"function\\\"?e.trim():e.replace(/^[\\\\s\\\\uFEFF\\\\xA0]+|[\\\\s\\\\uFEFF\\\\xA0]+$/g,\\\"\\\")}var VC=\\\"__ec_primitive__\\\";function Op(e){e[VC]=!0}function Cs(e){return e[VC]}var tU=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return Te(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&t(r[i],i)},e})(),GC=typeof Map==\\\"function\\\";function rU(){return GC?new Map:new tU}var nU=(function(){function e(t){var r=G(t);this.data=rU();var i=this;t instanceof e?t.each(n):t&&C(t,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(i,n){t.call(r,i,n)})},e.prototype.keys=function(){var t=this.data.keys();return GC?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function se(e){return new nU(e)}function iU(e,t){for(var r=new e.constructor(e.length+t.length),i=0;i<e.length;i++)r[i]=e[i];for(var n=e.length,i=0;i<t.length;i++)r[i+n]=t[i];return r}function lv(e,t){var r;if(Object.create)r=Object.create(e);else{var i=function(){};i.prototype=e,r=new i}return t&&Z(r,t),r}function Nt(e,t){return e.hasOwnProperty(t)}function _t(){}var zc=180/Math.PI;function Bo(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function aU(e){return[e[0],e[1]]}function Gv(e,t,r){return e[0]=t,e[1]=r,e}function DS(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function HC(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function oU(e){return Math.sqrt(sU(e))}function sU(e){return e[0]*e[0]+e[1]*e[1]}function Hv(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function f0(e,t){var r=oU(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Ep(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var zp=Ep;function uU(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Wa=uU;function Wv(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}function _r(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function Ba(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Fa(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Sa=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),lU=(function(){function e(t){this.handler=t,t.on(\\\"mousedown\\\",this._dragStart,this),t.on(\\\"mousemove\\\",this._drag,this),t.on(\\\"mouseup\\\",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Sa(r,t),\\\"dragstart\\\",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,t),this.handler.dispatchToElement(new Sa(r,t),\\\"drag\\\",t.event);var s=this.handler.findHover(i,n,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Sa(u,t),\\\"dragleave\\\",t.event),s&&s!==u&&this.handler.dispatchToElement(new Sa(s,t),\\\"dragenter\\\",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Sa(r,t),\\\"dragend\\\",t.event),this._dropTarget&&this.handler.dispatchToElement(new Sa(this._dropTarget,t),\\\"drop\\\",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Ln=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r==\\\"function\\\"&&(n=i,i=r,r=null),!i||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var u={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[t].length-1,c=a[t][l];return c&&c.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(r){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==r&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],u=n.length,l=0;l<u;l++){var c=n[l];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e})(),cU=Math.log(2);function Rp(e,t,r,i,n,a){var o=i+\\\"-\\\"+n,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/cU);return e[r][u]}for(var l=i|1<<r,c=r+1;i&1<<c;)c++;for(var f=0,d=0,v=0;d<s;d++){var h=1<<d;h&n||(f+=(v%2?-1:1)*e[r][d]*Rp(e,t-1,c,l,n|h,a),v++)}return a[o]=f,f}function CS(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},n=Rp(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Rp(r,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(u,l,c){var f=l*a[6]+c*a[7]+1;u[0]=(l*a[0]+c*a[1]+a[2])/f,u[1]=(l*a[3]+c*a[4]+a[5])/f}}}var lf=\\\"___zrEVENTSAVED\\\",qv=[];function fU(e,t,r,i,n){return Np(qv,t,i,n,!0)&&Np(e,r,qv[0],qv[1])}function dU(e,t){e&&r(e),t&&r(t);function r(i){var n=i[lf];n&&(n.clearMarkers&&n.clearMarkers(),delete i[lf])}}function Np(e,t,r,i,n){if(t.getBoundingClientRect&&pe.domSupported&&!WC(t)){var a=t[lf]||(t[lf]={}),o=vU(t,a),s=hU(o,a,n);if(s)return s(e,r,i),!0}return!1}function vU(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var i=[\\\"left\\\",\\\"right\\\"],n=[\\\"top\\\",\\\"bottom\\\"],a=0;a<4;a++){var o=document.createElement(\\\"div\\\"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=[\\\"position: absolute\\\",\\\"visibility: hidden\\\",\\\"padding: 0\\\",\\\"margin: 0\\\",\\\"border-width: 0\\\",\\\"user-select: none\\\",\\\"width:0\\\",\\\"height:0\\\",i[u]+\\\":0\\\",n[l]+\\\":0\\\",i[1-u]+\\\":auto\\\",n[1-l]+\\\":auto\\\",\\\"\\\"].join(\\\"!important;\\\"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){C(r,function(c){c.parentNode&&c.parentNode.removeChild(c)})},r}function hU(e,t,r){for(var i=r?\\\"invTrans\\\":\\\"trans\\\",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var c=e[l].getBoundingClientRect(),f=2*l,d=c.left,v=c.top;o.push(d,v),u=u&&a&&d===a[f]&&v===a[f+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=r?CS(s,o):CS(o,s))}function WC(e){return e.nodeName.toUpperCase()===\\\"CANVAS\\\"}var pU=/([&<>\\\"'])/g,gU={\\\"&\\\":\\\"&\\\",\\\"<\\\":\\\"<\\\",\\\">\\\":\\\">\\\",'\\\"':\\\""\\\",\\\"'\\\":\\\"'\\\"};function Et(e){return e==null?\\\"\\\":(e+\\\"\\\").replace(pU,function(t,r){return gU[r]})}var mU=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yv=[],yU=pe.browser.firefox&&+pe.browser.version.split(\\\".\\\")[0]<39;function Up(e,t,r,i){return r=r||{},i?AS(e,t,r):yU&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):AS(e,t,r),r}function AS(e,t,r){if(pe.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(WC(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Np(Yv,e,i,n)){r.zrX=Yv[0],r.zrY=Yv[1];return}}r.zrX=r.zrY=0}function d0(e){return e||window.event}function ur(e,t,r){if(t=d0(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf(\\\"touch\\\")>=0;if(n){var o=i!==\\\"touchend\\\"?t.targetTouches[0]:t.changedTouches[0];o&&Up(e,o,t,r)}else{Up(e,t,t,r);var a=_U(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&mU.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function _U(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function bU(e,t,r,i){e.addEventListener(t,r,i)}function SU(e,t,r,i){e.removeEventListener(t,r,i)}var qC=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},wU=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o<s;o++){var u=n[o],l=Up(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in Xv)if(Xv.hasOwnProperty(r)){var i=Xv[r](this._track,t);if(i)return i}},e})();function PS(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function xU(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Xv={pinch:function(e,t){var r=e.length;if(r){var i=(e[r-1]||{}).points,n=(e[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=PS(i)/PS(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=xU(i);return t.pinchX=o[0],t.pinchY=o[1],{type:\\\"pinch\\\",target:e[0].target,event:t}}}}};function an(){return[1,0,0,1,0,0]}function Sl(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function v0(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function As(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function Bp(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function h0(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=n*f+s*c,e[1]=-n*c+s*f,e[2]=a*f+u*c,e[3]=-a*c+f*u,e[4]=f*(o-i[0])+c*(l-i[1])+i[0],e[5]=f*(l-i[1])-c*(o-i[0])+i[1],e}function TU(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Fo(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*i;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-i*u,e[3]=r*u,e[4]=(i*s-o*n)*u,e[5]=(a*n-r*s)*u,e):null}var de=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e})(),ji=Math.min,ja=Math.max,Fp=Math.abs,MS=[\\\"x\\\",\\\"y\\\"],kU=[\\\"width\\\",\\\"height\\\"],fi=new de,di=new de,vi=new de,hi=new de,Xt=YC(),_s=Xt.minTv,jp=Xt.maxTv,Ps=[0,0],fe=(function(){function e(t,r,i,n){Kv(this,t,r,i,n)}return e.set=function(t,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),t.x=r,t.y=i,t.width=n,t.height=a,t},e.prototype.union=function(t){var r=ji(t.x,this.x),i=ji(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ja(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ja(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){return IU(an(),this,t)},e.prototype.intersect=function(t,r,i){return e.intersect(this,t,r,i)},e.intersect=function(t,r,i,n){i&&de.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=Kv($U,t.x,t.y,t.width,t.height)),r instanceof e||(r=Kv(DU,r.x,r.y,r.width,r.height));var s=!!i;Xt.reset(n,s);var u=Xt.touchThreshold,l=t.x+u,c=t.x+t.width-u,f=t.y+u,d=t.y+t.height-u,v=r.x+u,h=r.x+r.width-u,p=r.y+u,g=r.y+r.height-u;if(l>c||f>d||v>h||p>g)return!1;var m=!(c<v||h<l||d<p||g<f);return(s||a)&&(Ps[0]=1/0,Ps[1]=0,OS(l,c,v,h,0,s,a,o),OS(f,d,p,g,1,s,a,o),s&&de.copy(i,m?Xt.useDir?Xt.dirMinTv:_s:jp)),m},e.contain=function(t,r,i){return r>=t.x&&r<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){LS(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,i){if(!i){t!==r&&LS(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}fi.x=vi.x=r.x,fi.y=hi.y=r.y,di.x=hi.x=r.x+r.width,di.y=vi.y=r.y+r.height,fi.transform(i),hi.transform(i),di.transform(i),vi.transform(i),t.x=ji(fi.x,di.x,vi.x,hi.x),t.y=ji(fi.y,di.y,vi.y,hi.y);var u=ja(fi.x,di.x,vi.x,hi.x),l=ja(fi.y,di.y,vi.y,hi.y);t.width=u-t.x,t.height=l-t.y},e.calculateTransform=function(t,r,i){var n=i.width/r.width,a=i.height/r.height;return t=Sl(t||[]),Bp(t,t,Gv(Jv,-r.x,-r.y)),TU(t,t,Gv(Jv,n,a)),Bp(t,t,Gv(Jv,i.x,i.y)),t},e})();fe.create;var Kv=fe.set,LS=fe.copy,IU=fe.calculateTransform;fe.applyTransform;fe.contain;var $U=new fe(0,0,0,0),DU=new fe(0,0,0,0),Jv=[];function OS(e,t,r,i,n,a,o,s){var u=Fp(t-r),l=Fp(i-e),c=ji(u,l),f=MS[n],d=MS[1-n],v=kU[n];t<r||i<e?u<l?(a&&(jp[f]=-u),s&&(o[f]=t,o[v]=0)):(a&&(jp[f]=l),s&&(o[f]=e,o[v]=0)):(o&&(o[f]=ja(e,r),o[v]=ji(t,i)-o[f]),a&&(c<Ps[0]||Xt.useDir)&&(Ps[0]=ji(c,Ps[0]),(u<l||!Xt.bidirectional)&&(_s[f]=u,_s[d]=0,Xt.useDir&&Xt.calcDirMTV()),(u>=l||!Xt.bidirectional)&&(_s[f]=-l,_s[d]=0,Xt.useDir&&Xt.calcDirMTV())))}function YC(){var e=0,t=new de,r=new de,i={minTv:new de,maxTv:new de,useDir:!1,dirMinTv:new de,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=ja(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),e=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(e),l=Math.cos(e),c=u*a.y+l*a.x;if(n(c)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*l/c,r.y=s*u/c,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Fp(a)<1e-10}return i}var XC=\\\"silent\\\";function CU(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:AU}}function AU(){qC(this.event)}var PU=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Ln),Jo=(function(){function e(t,r){this.x=t,this.y=r}return e})(),MU=[\\\"click\\\",\\\"dblclick\\\",\\\"mousewheel\\\",\\\"mouseout\\\",\\\"mouseup\\\",\\\"mousedown\\\",\\\"mousemove\\\",\\\"contextmenu\\\"],Qv=new fe(0,0,0,0),KC=(function(e){V(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Jo(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new PU,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new lU(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(C(MU,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=JC(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Jo(i,n):this.findHover(i,n),l=u.target,c=this.proxy;c.setCursor&&c.setCursor(l?l.cursor:\\\"default\\\"),s&&l!==s&&this.dispatchToElement(o,\\\"mouseout\\\",r),this.dispatchToElement(u,\\\"mousemove\\\",r),l&&l!==s&&this.dispatchToElement(u,\\\"mouseover\\\",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!==\\\"only_globalout\\\"&&this.dispatchToElement(this._hovered,\\\"mouseout\\\",r),i!==\\\"no_globalout\\\"&&this.trigger(\\\"globalout\\\",{type:\\\"globalout\\\",event:r})},t.prototype.resize=function(){this._hovered=new Jo(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o=\\\"on\\\"+i,s=CU(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]==\\\"function\\\"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Jo(r,i);if(ES(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,c=new fe(r-l,i-l,u,u),f=a.length-1;f>=0;f--){var d=a[f];d!==n&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Qv.copy(d.getBoundingRect()),d.transform&&Qv.applyTransform(d.transform),Qv.intersect(c)&&s.push(d))}if(s.length)for(var v=4,h=Math.PI/12,p=Math.PI*2,g=0;g<l;g+=v)for(var m=0;m<p;m+=h){var y=r+g*Math.cos(m),_=i+g*Math.sin(m);if(ES(s,o,y,_,n),o.target)return o}}return o},t.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new wU);var n=this._gestureMgr;i===\\\"start\\\"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i===\\\"end\\\"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Jo;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Ln);C([\\\"click\\\",\\\"mousedown\\\",\\\"mouseup\\\",\\\"mousewheel\\\",\\\"dblclick\\\",\\\"contextmenu\\\"],function(e){KC.prototype[e]=function(t){var r=t.zrX,i=t.zrY,n=JC(this,r,i),a,o;if((e!==\\\"mouseup\\\"||!n)&&(a=this.findHover(r,i),o=a.target),e===\\\"mousedown\\\")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===\\\"mouseup\\\")this._upEl=o;else if(e===\\\"click\\\"){if(this._downEl!==this._upEl||!this._downPoint||zp(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function LU(e,t,r){if(e[e.rectHover?\\\"rectContain\\\":\\\"contain\\\"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?XC:!0}return!1}function ES(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=LU(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==XC)){t.target=o;break}}}function JC(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var QC=32,Qo=7;function OU(e){for(var t=0;e>=QC;)t|=e&1,e>>=1;return e+t}function zS(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;EU(e,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function EU(e,t,r){for(r--;t<r;){var i=e[t];e[t++]=e[r],e[r--]=i}}function RS(e,t,r,i,n){for(i===t&&i++;i<r;i++){for(var a=e[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,e[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function eh(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])>0){for(s=i-n;u<s&&a(e,t[r+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(e,t[r+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var c=o+(u-o>>>1);a(e,t[r+c])>0?o=c+1:u=c}return u}function th(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])<0){for(s=n+1;u<s&&a(e,t[r+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(e,t[r+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var c=o+(u-o>>>1);a(e,t[r+c])<0?u=c:o=c+1}return u}function zU(e,t){var r=Qo,i,n,a=0,o=[];i=[],n=[];function s(v,h){i[a]=v,n[a]=h,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;c(v)}}function l(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,c(v)}}function c(v){var h=i[v],p=n[v],g=i[v+1],m=n[v+1];n[v]=p+m,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var y=th(e[g],e,h,p,0,t);h+=y,p-=y,p!==0&&(m=eh(e[h+p-1],e,g,m,m-1,t),m!==0&&(p<=m?f(h,p,g,m):d(h,p,g,m)))}function f(v,h,p,g){var m=0;for(m=0;m<h;m++)o[m]=e[v+m];var y=0,_=p,b=v;if(e[b++]=e[_++],--g===0){for(m=0;m<h;m++)e[b+m]=o[y+m];return}if(h===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y];return}for(var S=r,w,x,k;;){w=0,x=0,k=!1;do if(t(e[_],o[y])<0){if(e[b++]=e[_++],x++,w=0,--g===0){k=!0;break}}else if(e[b++]=o[y++],w++,x=0,--h===1){k=!0;break}while((w|x)<S);if(k)break;do{if(w=th(e[_],o,y,h,0,t),w!==0){for(m=0;m<w;m++)e[b+m]=o[y+m];if(b+=w,y+=w,h-=w,h<=1){k=!0;break}}if(e[b++]=e[_++],--g===0){k=!0;break}if(x=eh(o[y],e,_,g,0,t),x!==0){for(m=0;m<x;m++)e[b+m]=e[_+m];if(b+=x,_+=x,g-=x,g===0){k=!0;break}}if(e[b++]=o[y++],--h===1){k=!0;break}S--}while(w>=Qo||x>=Qo);if(k)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),h===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y]}else{if(h===0)throw new Error;for(m=0;m<h;m++)e[b+m]=o[y+m]}}function d(v,h,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var y=v+h-1,_=g-1,b=p+g-1,S=0,w=0;if(e[b--]=e[y--],--h===0){for(S=b-(g-1),m=0;m<g;m++)e[S+m]=o[m];return}if(g===1){for(b-=h,y-=h,w=b+1,S=y+1,m=h-1;m>=0;m--)e[w+m]=e[S+m];e[b]=o[_];return}for(var x=r;;){var k=0,T=0,I=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],k++,T=0,--h===0){I=!0;break}}else if(e[b--]=o[_--],T++,k=0,--g===1){I=!0;break}while((k|T)<x);if(I)break;do{if(k=h-th(o[_],e,v,h,h-1,t),k!==0){for(b-=k,y-=k,h-=k,w=b+1,S=y+1,m=k-1;m>=0;m--)e[w+m]=e[S+m];if(h===0){I=!0;break}}if(e[b--]=o[_--],--g===1){I=!0;break}if(T=g-eh(e[y],o,0,g,g-1,t),T!==0){for(b-=T,_-=T,g-=T,w=b+1,S=_+1,m=0;m<T;m++)e[w+m]=o[S+m];if(g<=1){I=!0;break}}if(e[b--]=e[y--],--h===0){I=!0;break}x--}while(k>=Qo||T>=Qo);if(I)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),g===1){for(b-=h,y-=h,w=b+1,S=y+1,m=h-1;m>=0;m--)e[w+m]=e[S+m];e[b]=o[_]}else{if(g===0)throw new Error;for(S=b-(g-1),m=0;m<g;m++)e[S+m]=o[m]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Rc(e,t,r,i){r||(r=0),i||(i=e.length);var n=i-r;if(!(n<2)){var a=0;if(n<QC){a=zS(e,r,i,t),RS(e,r,i,r+a,t);return}var o=zU(e,t),s=OU(n);do{if(a=zS(e,r,i,t),a<s){var u=n;u>s&&(u=s),RS(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Mr=1,bs=2,Ra=4,NS=!1;function rh(){NS||(NS=!0,console.warn(\\\"z / z2 / zlevel of displayable is invalid, which may cause unexpected errors\\\"))}function US(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var RU=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=US}return e.prototype.traverse=function(t,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(r),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,t);i.length=this._displayListLen,Rc(i,US)},e.prototype._updateAndAddDisplayable=function(t,r,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=n,c=t;l;)l.parent=c,l.updateTransform(),s[o++]=l,c=l,l=l.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var f=t.childrenRef(),d=0;d<f.length;d++){var v=f[d];t.__dirty&&(v.__dirty|=Mr),this._updateAndAddDisplayable(v,s,i)}t.__dirty=0}else{var h=t;isNaN(h.z)&&(rh(),h.z=0),isNaN(h.z2)&&(rh(),h.z2=0),isNaN(h.zlevel)&&(rh(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,i);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,i);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,s,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)this.delRoot(t[r]);return}var n=xe(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),Zp;Zp=pe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Ms={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ms.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Ms.bounceIn(e*2)*.5:Ms.bounceOut(e*2-1)*.5+.5}},Ul=Math.pow,Yn=Math.sqrt,cf=1e-8,eA=1e-4,BS=Yn(3),Bl=1/3,Jr=Bo(),fr=Bo(),qa=Bo();function Hn(e){return e>-cf&&e<cf}function tA(e){return e>cf||e<-cf}function ft(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function FS(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function ff(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-n,c=s*s-3*o*u,f=s*u-9*o*l,d=u*u-3*s*l,v=0;if(Hn(c)&&Hn(f))if(Hn(s))a[0]=0;else{var h=-u/s;h>=0&&h<=1&&(a[v++]=h)}else{var p=f*f-4*c*d;if(Hn(p)){var g=f/c,h=-s/o+g,m=-g/2;h>=0&&h<=1&&(a[v++]=h),m>=0&&m<=1&&(a[v++]=m)}else if(p>0){var y=Yn(p),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-Ul(-_,Bl):_=Ul(_,Bl),b<0?b=-Ul(-b,Bl):b=Ul(b,Bl);var h=(-s-(_+b))/(3*o);h>=0&&h<=1&&(a[v++]=h)}else{var S=(2*c*s-3*o*f)/(2*Yn(c*c*c)),w=Math.acos(S)/3,x=Yn(c),k=Math.cos(w),h=(-s-2*x*k)/(3*o),m=(-s+x*(k+BS*Math.sin(w)))/(3*o),T=(-s+x*(k-BS*Math.sin(w)))/(3*o);h>=0&&h<=1&&(a[v++]=h),m>=0&&m<=1&&(a[v++]=m),T>=0&&T<=1&&(a[v++]=T)}}return v}function rA(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,u=0;if(Hn(o)){if(tA(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var c=a*a-4*o*s;if(Hn(c))n[0]=-a/(2*o);else if(c>0){var f=Yn(c),l=(-a+f)/(2*o),d=(-a-f)/(2*o);l>=0&&l<=1&&(n[u++]=l),d>=0&&d<=1&&(n[u++]=d)}}return u}function df(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,u=(i-r)*n+r,l=(s-o)*n+o,c=(u-s)*n+s,f=(c-l)*n+l;a[0]=e,a[1]=o,a[2]=l,a[3]=f,a[4]=f,a[5]=c,a[6]=u,a[7]=i}function nA(e,t,r,i,n,a,o,s,u,l,c){var f,d=.005,v=1/0,h,p,g,m;Jr[0]=u,Jr[1]=l;for(var y=0;y<1;y+=.05)fr[0]=ft(e,r,n,o,y),fr[1]=ft(t,i,a,s,y),g=Wa(Jr,fr),g<v&&(f=y,v=g);v=1/0;for(var _=0;_<32&&!(d<eA);_++)h=f-d,p=f+d,fr[0]=ft(e,r,n,o,h),fr[1]=ft(t,i,a,s,h),g=Wa(fr,Jr),h>=0&&g<v?(f=h,v=g):(qa[0]=ft(e,r,n,o,p),qa[1]=ft(t,i,a,s,p),m=Wa(qa,Jr),p<=1&&m<v?(f=p,v=m):d*=.5);return c&&(c[0]=ft(e,r,n,o,f),c[1]=ft(t,i,a,s,f)),Yn(v)}function NU(e,t,r,i,n,a,o,s,u){for(var l=e,c=t,f=0,d=1/u,v=1;v<=u;v++){var h=v*d,p=ft(e,r,n,o,h),g=ft(t,i,a,s,h),m=p-l,y=g-c;f+=Math.sqrt(m*m+y*y),l=p,c=g}return f}function It(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}function jS(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function UU(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,u=0;if(Hn(a)){if(tA(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var c=o*o-4*a*s;if(Hn(c)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(c>0){var f=Yn(c),l=(-o+f)/(2*a),d=(-o-f)/(2*a);l>=0&&l<=1&&(n[u++]=l),d>=0&&d<=1&&(n[u++]=d)}}return u}function iA(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function vf(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function aA(e,t,r,i,n,a,o,s,u){var l,c=.005,f=1/0;Jr[0]=o,Jr[1]=s;for(var d=0;d<1;d+=.05){fr[0]=It(e,r,n,d),fr[1]=It(t,i,a,d);var v=Wa(Jr,fr);v<f&&(l=d,f=v)}f=1/0;for(var h=0;h<32&&!(c<eA);h++){var p=l-c,g=l+c;fr[0]=It(e,r,n,p),fr[1]=It(t,i,a,p);var v=Wa(fr,Jr);if(p>=0&&v<f)l=p,f=v;else{qa[0]=It(e,r,n,g),qa[1]=It(t,i,a,g);var m=Wa(qa,Jr);g<=1&&m<f?(l=g,f=m):c*=.5}}return u&&(u[0]=It(e,r,n,l),u[1]=It(t,i,a,l)),Yn(f)}function BU(e,t,r,i,n,a,o){for(var s=e,u=t,l=0,c=1/o,f=1;f<=o;f++){var d=f*c,v=It(e,r,n,d),h=It(t,i,a,d),p=v-s,g=h-u;l+=Math.sqrt(p*p+g*g),s=v,u=h}return l}var FU=/cubic-bezier\\\\(([0-9,\\\\.e ]+)\\\\)/;function p0(e){var t=e&&FU.exec(e);if(t){var r=t[1].split(\\\",\\\"),i=+en(r[0]),n=+en(r[1]),a=+en(r[2]),o=+en(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:ff(0,i,a,1,u,s)&&ft(0,n,o,1,s[0])}}}var jU=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||_t,this.ondestroy=t.ondestroy||_t,this.onrestart=t.onrestart||_t,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=n%i;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=le(t)?t:Ms[t]||p0(t)},e})(),oA=(function(){function e(t){this.value=t}return e})(),ZU=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new oA(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),ho=(function(){function e(t){this._list=new ZU,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new oA(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),ZS={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Xn(e){return e=Math.round(e),e<0?0:e>255?255:e}function Vp(e){return e<0?0:e>1?1:e}function nh(e){var t=e;return t.length&&t.charAt(t.length-1)===\\\"%\\\"?Xn(parseFloat(t)/100*255):Xn(parseInt(t,10))}function Wi(e){var t=e;return t.length&&t.charAt(t.length-1)===\\\"%\\\"?Vp(parseFloat(t)/100):Vp(parseFloat(t))}function ih(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Fl(e,t,r){return e+(t-e)*r}function or(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Gp(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var sA=new ho(20),jl=null;function wa(e,t){jl&&Gp(jl,t),jl=sA.put(e,jl||t.slice())}function Rr(e,t){if(e){t=t||[];var r=sA.get(e);if(r)return Gp(t,r);e=e+\\\"\\\";var i=e.replace(/ /g,\\\"\\\").toLowerCase();if(i in ZS)return Gp(t,ZS[i]),wa(e,t),t;var n=i.length;if(i.charAt(0)===\\\"#\\\"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){or(t,0,0,0,1);return}return or(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),wa(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){or(t,0,0,0,1);return}return or(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),wa(e,t),t}return}var o=i.indexOf(\\\"(\\\"),s=i.indexOf(\\\")\\\");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(\\\",\\\"),c=1;switch(u){case\\\"rgba\\\":if(l.length!==4)return l.length===3?or(t,+l[0],+l[1],+l[2],1):or(t,0,0,0,1);c=Wi(l.pop());case\\\"rgb\\\":if(l.length>=3)return or(t,nh(l[0]),nh(l[1]),nh(l[2]),l.length===3?c:Wi(l[3])),wa(e,t),t;or(t,0,0,0,1);return;case\\\"hsla\\\":if(l.length!==4){or(t,0,0,0,1);return}return l[3]=Wi(l[3]),Hp(l,t),wa(e,t),t;case\\\"hsl\\\":if(l.length!==3){or(t,0,0,0,1);return}return Hp(l,t),wa(e,t),t;default:return}}or(t,0,0,0,1)}}function Hp(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Wi(e[1]),n=Wi(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],or(t,Xn(ih(o,a,r+1/3)*255),Xn(ih(o,a,r)*255),Xn(ih(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function VU(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+n):l=o/(2-a-n);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?u=d-f:r===a?u=1/3+c-d:i===a&&(u=2/3+f-c),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return e[3]!=null&&v.push(e[3]),v}}function VS(e,t){var r=Rr(e);if(r){for(var i=0;i<3;i++)r[i]=r[i]*(1-t)|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return wl(r,r.length===4?\\\"rgba\\\":\\\"rgb\\\")}}function GU(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Rr(t[n]),s=Rr(t[a]),u=i-n,l=wl([Xn(Fl(o[0],s[0],u)),Xn(Fl(o[1],s[1],u)),Xn(Fl(o[2],s[2],u)),Vp(Fl(o[3],s[3],u))],\\\"rgba\\\");return r?{color:l,leftIndex:n,rightIndex:a,value:i}:l}}function Wp(e,t,r,i){var n=Rr(e);if(e)return n=VU(n),r!=null&&(n[1]=Wi(le(r)?r(n[1]):r)),i!=null&&(n[2]=Wi(le(i)?i(n[2]):i)),wl(Hp(n),\\\"rgba\\\")}function wl(e,t){if(!(!e||!e.length)){var r=e[0]+\\\",\\\"+e[1]+\\\",\\\"+e[2];return(t===\\\"rgba\\\"||t===\\\"hsva\\\"||t===\\\"hsla\\\")&&(r+=\\\",\\\"+e[3]),t+\\\"(\\\"+r+\\\")\\\"}}function hf(e,t){var r=Rr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var GS=new ho(100);function qp(e){if(ee(e)){var t=GS.get(e);return t||(t=VS(e,-.1),GS.put(e,t)),t}else if(u0(e)){var r=Z({},e);return r.colorStops=Q(e.colorStops,function(i){return{offset:i.offset,color:VS(i.color,-.1)}}),r}return e}var pf=Math.round;function Xs(e){var t;if(!e||e===\\\"transparent\\\")e=\\\"none\\\";else if(typeof e==\\\"string\\\"&&e.indexOf(\\\"rgba\\\")>-1){var r=Rr(e);r&&(e=\\\"rgb(\\\"+r[0]+\\\",\\\"+r[1]+\\\",\\\"+r[2]+\\\")\\\",t=r[3])}return{color:e,opacity:t??1}}var HS=1e-4;function Wn(e){return e<HS&&e>-HS}function Zl(e){return pf(e*1e3)/1e3}function Yp(e){return pf(e*1e4)/1e4}function HU(e){return\\\"matrix(\\\"+Zl(e[0])+\\\",\\\"+Zl(e[1])+\\\",\\\"+Zl(e[2])+\\\",\\\"+Zl(e[3])+\\\",\\\"+Yp(e[4])+\\\",\\\"+Yp(e[5])+\\\")\\\"}var WU={left:\\\"start\\\",right:\\\"end\\\",center:\\\"middle\\\",middle:\\\"middle\\\"};function qU(e,t,r){return r===\\\"top\\\"?e+=t/2:r===\\\"bottom\\\"&&(e-=t/2),e}function YU(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function XU(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(\\\",\\\")}function uA(e){return e&&!!e.image}function KU(e){return e&&!!e.svgElement}function g0(e){return uA(e)||KU(e)}function lA(e){return e.type===\\\"linear\\\"}function cA(e){return e.type===\\\"radial\\\"}function fA(e){return e&&(e.type===\\\"linear\\\"||e.type===\\\"radial\\\")}function cv(e){return\\\"url(#\\\"+e+\\\")\\\"}function dA(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function vA(e){var t=e.x||0,r=e.y||0,i=(e.rotation||0)*zc,n=J(e.scaleX,1),a=J(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,u=[];return(t||r)&&u.push(\\\"translate(\\\"+t+\\\"px,\\\"+r+\\\"px)\\\"),i&&u.push(\\\"rotate(\\\"+i+\\\")\\\"),(n!==1||a!==1)&&u.push(\\\"scale(\\\"+n+\\\",\\\"+a+\\\")\\\"),(o||s)&&u.push(\\\"skew(\\\"+pf(o*zc)+\\\"deg, \\\"+pf(s*zc)+\\\"deg)\\\"),u.join(\\\" \\\")}var JU=(function(){return typeof Buffer<\\\"u\\\"&&typeof Buffer.from==\\\"function\\\"?function(e){return Buffer.from(e).toString(\\\"base64\\\")}:typeof btoa==\\\"function\\\"&&typeof unescape==\\\"function\\\"&&typeof encodeURIComponent==\\\"function\\\"?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),Xp=Array.prototype.slice;function mn(e,t,r){return(t-e)*r+e}function ah(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=mn(t[a],r[a],i);return e}function QU(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=mn(t[o][s],r[o][s],i)}return e}function Vl(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=t[a]+r[a]*i;return e}function WS(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*i}return e}function e6(e,t){for(var r=e.length,i=t.length,n=r>i?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function t6(e,t,r){var i=e,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var u=a;u<o;u++)i.push(r===1?n[u]:Xp.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(r===1)isNaN(i[u])&&(i[u]=n[u]);else for(var c=0;c<l;c++)isNaN(i[u][c])&&(i[u][c]=n[u][c])}}function Nc(e){if(Ht(e)){var t=e.length;if(Ht(e[0])){for(var r=[],i=0;i<t;i++)r.push(Xp.call(e[i]));return r}return Xp.call(e)}return e}function Uc(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],\\\"rgba(\\\"+e.join(\\\",\\\")+\\\")\\\"}function r6(e){return Ht(e&&e[0])?2:1}var Gl=0,Bc=1,hA=2,Ss=3,Kp=4,Jp=5,qS=6;function YS(e){return e===Kp||e===Jp}function Hl(e){return e===Bc||e===hA}var es=[0,0,0,0],n6=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=qS,u=r;if(Ht(r)){var l=r6(r);s=l,(l===1&&!Re(r[0])||l===2&&!Re(r[0][0]))&&(o=!0)}else if(Re(r)&&!qs(r))s=Gl;else if(ee(r))if(!isNaN(+r))s=Gl;else{var c=Rr(r);c&&(u=c,s=Ss)}else if(u0(r)){var f=Z({},u);f.colorStops=Q(r.colorStops,function(v){return{offset:v.offset,color:Rr(v.color)}}),lA(r)?s=Kp:cA(r)&&(s=Jp),u=f}a===0?this.valType=s:(s!==this.valType||s===qS)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:u,rawValue:r,percent:0};return i&&(d.easing=i,d.easingFunc=le(i)?i:Ms[i]||p0(i)),n.push(d),d},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(p,g){return p.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=Hl(n),l=YS(n),c=0;c<a;c++){var f=i[c],d=f.value,v=o.value;f.percent=f.time/t,s||(u&&c!==a-1?t6(d,v,n):l&&e6(d.colorStops,v.colorStops))}if(!s&&n!==Jp&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var h=i[0].value,c=0;c<a;c++)n===Gl?i[c].additiveValue=i[c].value-h:n===Ss?i[c].additiveValue=Vl([],i[c].value,h,-1):Hl(n)&&(i[c].additiveValue=n===Bc?Vl([],i[c].value,h,-1):WS([],i[c].value,h,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?\\\"additiveValue\\\":\\\"value\\\",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===Ss,c,f=this._lastFr,d=Math.min,v,h;if(s===1)v=h=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var p=d(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}h=o[c+1],v=o[c]}if(v&&h){this._lastFr=c,this._lastFrP=r;var g=h.percent-v.percent,m=g===0?1:d((r-v.percent)/g,1);h.easingFunc&&(m=h.easingFunc(m));var y=i?this._additiveValue:l?es:t[u];if((Hl(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[u]=m<1?v.rawValue:h.rawValue;else if(Hl(a))a===Bc?ah(y,v[n],h[n],m):QU(y,v[n],h[n],m);else if(YS(a)){var _=v[n],b=h[n],S=a===Kp;t[u]={type:S?\\\"linear\\\":\\\"radial\\\",x:mn(_.x,b.x,m),y:mn(_.y,b.y,m),colorStops:Q(_.colorStops,function(x,k){var T=b.colorStops[k];return{offset:mn(x.offset,T.offset,m),color:Uc(ah([],x.color,T.color,m))}}),global:b.global},S?(t[u].x2=mn(_.x2,b.x2,m),t[u].y2=mn(_.y2,b.y2,m)):t[u].r=mn(_.r,b.r,m)}else if(l)ah(y,v[n],h[n],m),i||(t[u]=Uc(y));else{var w=mn(v[n],h[n],m);i?this._additiveValue=w:t[u]=w}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===Gl?t[i]=t[i]+n:r===Ss?(Rr(t[i],es),Vl(es,es,n,1),t[i]=Uc(es)):r===Bc?Vl(t[i],t[i],n,1):r===hA&&WS(t[i],t[i],n,1)},e})(),m0=(function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){ZC(\\\"Can' use additive animation on looped animation.\\\");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,Te(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],u=a[s];if(!u){u=a[s]=new n6(s);var l=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];l=d&&d.value,c.valType===Ss&&l&&(l=Uc(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,Nc(l),n),this._trackKeys.push(s)}u.addKeyframe(t,Nc(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i<r;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)t[r[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,c=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=l[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var d=new jU({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var h=r._additiveAnimators;if(h){for(var p=!1,g=0;g<h.length;g++)if(h[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(r._target,v);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Q(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,i){if(t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(t[a]=Nc(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Te(t);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function Za(){return new Date().getTime()}var i6=(function(e){V(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Za()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger(\\\"frame\\\",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Zp(i),!r._paused&&r.update())}Zp(i)},t.prototype.start=function(){this._running||(this._time=Za(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Za(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Za()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new m0(r,i.loop);return this.addAnimator(n),n},t})(Ln),a6=300,oh=pe.domSupported,sh=(function(){var e=[\\\"click\\\",\\\"dblclick\\\",\\\"mousewheel\\\",\\\"wheel\\\",\\\"mouseout\\\",\\\"mouseup\\\",\\\"mousedown\\\",\\\"mousemove\\\",\\\"contextmenu\\\"],t=[\\\"touchstart\\\",\\\"touchend\\\",\\\"touchmove\\\"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=Q(e,function(n){var a=n.replace(\\\"mouse\\\",\\\"pointer\\\");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}})(),XS={mouse:[\\\"mousemove\\\",\\\"mouseup\\\"],pointer:[\\\"pointermove\\\",\\\"pointerup\\\"]},KS=!1;function Qp(e){var t=e.pointerType;return t===\\\"pen\\\"||t===\\\"touch\\\"}function o6(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function uh(e){e&&(e.zrByTouch=!0)}function s6(e,t){return ur(e.dom,new u6(e,t),!0)}function pA(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var u6=(function(){function e(t,r){this.stopPropagation=_t,this.stopImmediatePropagation=_t,this.preventDefault=_t,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),Ar={mousedown:function(e){e=ur(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(\\\"mousedown\\\",e)},mousemove:function(e){e=ur(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(\\\"mousemove\\\",e)},mouseup:function(e){e=ur(this.dom,e),this.__togglePointerCapture(!1),this.trigger(\\\"mouseup\\\",e)},mouseout:function(e){e=ur(this.dom,e);var t=e.toElement||e.relatedTarget;pA(this,t)||(this.__pointerCapturing&&(e.zrEventControl=\\\"no_globalout\\\"),this.trigger(\\\"mouseout\\\",e))},wheel:function(e){KS=!0,e=ur(this.dom,e),this.trigger(\\\"mousewheel\\\",e)},mousewheel:function(e){KS||(e=ur(this.dom,e),this.trigger(\\\"mousewheel\\\",e))},touchstart:function(e){e=ur(this.dom,e),uh(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,\\\"start\\\"),Ar.mousemove.call(this,e),Ar.mousedown.call(this,e)},touchmove:function(e){e=ur(this.dom,e),uh(e),this.handler.processGesture(e,\\\"change\\\"),Ar.mousemove.call(this,e)},touchend:function(e){e=ur(this.dom,e),uh(e),this.handler.processGesture(e,\\\"end\\\"),Ar.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<a6&&Ar.click.call(this,e)},pointerdown:function(e){Ar.mousedown.call(this,e)},pointermove:function(e){Qp(e)||Ar.mousemove.call(this,e)},pointerup:function(e){Ar.mouseup.call(this,e)},pointerout:function(e){Qp(e)||Ar.mouseout.call(this,e)}};C([\\\"click\\\",\\\"dblclick\\\",\\\"contextmenu\\\"],function(e){Ar[e]=function(t){t=ur(this.dom,t),this.trigger(e,t)}});var eg={pointermove:function(e){Qp(e)||eg.mousemove.call(this,e)},pointerup:function(e){eg.mouseup.call(this,e)},mousemove:function(e){this.trigger(\\\"mousemove\\\",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(\\\"mouseup\\\",e),t&&(e.zrEventControl=\\\"only_globalout\\\",this.trigger(\\\"mouseout\\\",e))}};function l6(e,t){var r=t.domHandlers;pe.pointerEventsSupported?C(sh.pointer,function(i){Fc(t,i,function(n){r[i].call(e,n)})}):(pe.touchEventsSupported&&C(sh.touch,function(i){Fc(t,i,function(n){r[i].call(e,n),o6(t)})}),C(sh.mouse,function(i){Fc(t,i,function(n){n=d0(n),t.touching||r[i].call(e,n)})}))}function c6(e,t){pe.pointerEventsSupported?C(XS.pointer,r):pe.touchEventsSupported||C(XS.mouse,r);function r(i){function n(a){a=d0(a),pA(e,a.target)||(a=s6(e,a),t.domHandlers[i].call(e,a))}Fc(t,i,n,{capture:!0})}}function Fc(e,t,r,i){e.mounted[t]=r,e.listenerOpts[t]=i,bU(e.domTarget,t,r,i)}function lh(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&SU(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var JS=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),f6=(function(e){V(t,e);function t(r,i){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new JS(r,Ar),oh&&(n._globalHandlerScope=new JS(document,eg)),l6(n,n._localHandlerScope),n}return t.prototype.dispose=function(){lh(this._localHandlerScope),oh&&lh(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||\\\"default\\\")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,oh&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?c6(this,i):lh(i)}},t})(Ln),gA=1;pe.hasGlobalWindow&&(gA=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var QS=gA,tg=.4,rg=\\\"#333\\\",ng=\\\"#ccc\\\",d6=\\\"#eee\\\",ew=Sl,tw=5e-5;function pi(e){return e>tw||e<-tw}var gi=[],xa=[],ch=an(),fh=Math.abs,jo=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return v6(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return pi(this.rotation)||pi(this.x)||pi(this.y)||pi(this.scaleX-1)||pi(this.scaleY-1)||pi(this.skewX)||pi(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(ew(i),this.invTransform=null);return}i=i||an(),r?this.getLocalTransform(i):ew(i),t&&(r?As(i,t,i):v0(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||an(),Fo(this.invTransform,i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(gi);var i=gi[0]<0?-1:1,n=gi[1]<0?-1:1,a=((gi[0]-i)*r+i)/gi[0]||0,o=((gi[1]-n)*r+n)/gi[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||an(),As(xa,t.invTransform,r),r=xa);var i=this.originX,n=this.originY;(i||n)&&(ch[4]=i,ch[5]=n,As(xa,r,ch),xa[4]-=i,xa[5]-=n,r=xa),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&_r(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&_r(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&fh(t[0]-1)>1e-10&&fh(t[3]-1)>1e-10?Math.sqrt(fh(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Ks(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||u){var h=i+s,p=n+u;r[4]=-h*a-d*p*o,r[5]=-p*o-v*h*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=d*o,l&&h0(r,r,l),r[4]+=i+c,r[5]+=n+f,r},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),v6=jo.getLocalTransform,fv=[\\\"x\\\",\\\"y\\\",\\\"originX\\\",\\\"originY\\\",\\\"anchorX\\\",\\\"anchorY\\\",\\\"rotation\\\",\\\"scaleX\\\",\\\"scaleY\\\",\\\"skewX\\\",\\\"skewY\\\"];function Ks(e,t){return K4(e,t,fv)}function on(e){Wl||(Wl=new ho(100)),e=e||$n;var t=Wl.get(e);return t||(t={font:e,strWidthCache:new ho(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:nn.measureText(\\\"国\\\",e).width,asciiCharWidth:nn.measureText(\\\"a\\\",e).width},Wl.put(e,t)),t}var Wl;function h6(e){if(!(dh>=rw)){e=e||$n;for(var t=[],r=+new Date,i=0;i<=127;i++)t[i]=nn.measureText(String.fromCharCode(i),e).width;var n=+new Date-r;return n>16?dh=rw:n>2&&dh++,t}}var dh=0,rw=5;function mA(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=h6(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function sn(e,t){var r=e.strWidthCache,i=r.get(t);return i==null&&(i=nn.measureText(t,e.font).width,r.put(t,i)),i}function nw(e,t,r,i){var n=sn(on(t),e),a=xl(t),o=po(0,n,r),s=qi(0,a,i),u=new fe(o,s,n,a);return u}function yA(e,t,r,i){var n=((e||\\\"\\\")+\\\"\\\").split(`\\n`),a=n.length;if(a===1)return nw(n[0],t,r,i);for(var o=new fe(0,0,0,0),s=0;s<n.length;s++){var u=nw(n[s],t,r,i);s===0?o.copy(u):o.union(u)}return o}function po(e,t,r,i){return r===\\\"right\\\"?i?e+=t:e-=t:r===\\\"center\\\"&&(i?e+=t/2:e-=t/2),e}function qi(e,t,r,i){return r===\\\"middle\\\"?i?e+=t/2:e-=t/2:r===\\\"bottom\\\"&&(i?e+=t:e-=t),e}function xl(e){return on(e).stWideCharWidth}function na(e,t){return typeof e==\\\"string\\\"?e.lastIndexOf(\\\"%\\\")>=0?parseFloat(e)/100*t:parseFloat(e):e}function gf(e,t,r){var i=t.position||\\\"inside\\\",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,c=\\\"left\\\",f=\\\"top\\\";if(i instanceof Array)u+=na(i[0],r.width),l+=na(i[1],r.height),c=null,f=null;else switch(i){case\\\"left\\\":u-=n,l+=s,c=\\\"right\\\",f=\\\"middle\\\";break;case\\\"right\\\":u+=n+o,l+=s,f=\\\"middle\\\";break;case\\\"top\\\":u+=o/2,l-=n,c=\\\"center\\\",f=\\\"bottom\\\";break;case\\\"bottom\\\":u+=o/2,l+=a+n,c=\\\"center\\\";break;case\\\"inside\\\":u+=o/2,l+=s,c=\\\"center\\\",f=\\\"middle\\\";break;case\\\"insideLeft\\\":u+=n,l+=s,f=\\\"middle\\\";break;case\\\"insideRight\\\":u+=o-n,l+=s,c=\\\"right\\\",f=\\\"middle\\\";break;case\\\"insideTop\\\":u+=o/2,l+=n,c=\\\"center\\\";break;case\\\"insideBottom\\\":u+=o/2,l+=a-n,c=\\\"center\\\",f=\\\"bottom\\\";break;case\\\"insideTopLeft\\\":u+=n,l+=n;break;case\\\"insideTopRight\\\":u+=o-n,l+=n,c=\\\"right\\\";break;case\\\"insideBottomLeft\\\":u+=n,l+=a-n,f=\\\"bottom\\\";break;case\\\"insideBottomRight\\\":u+=o-n,l+=a-n,c=\\\"right\\\",f=\\\"bottom\\\";break}return e=e||{},e.x=u,e.y=l,e.align=c,e.verticalAlign=f,e}var vh=\\\"__zr_normal__\\\",hh=fv.concat([\\\"ignore\\\"]),p6=ti(fv,function(e,t){return e[t]=!0,e},{ignore:!1}),Ta={},g6=new fe(0,0,0,0),ql=[],jc=0,dv=1,vv=(function(){function e(t){this.id=jC(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case\\\"horizontal\\\":r=0;break;case\\\"vertical\\\":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=n?this:null;var l=!1;a.copyTransform(r);var c=i.position!=null,f=i.autoOverflowArea,d=void 0;if((f||c)&&(d=g6,i.layoutRect?d.copy(i.layoutRect):d.copy(this.getBoundingRect()),n||d.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(Ta,i,d):gf(Ta,i,d),a.x=Ta.x,a.y=Ta.y,o=Ta.align,s=Ta.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var h=void 0,p=void 0;v===\\\"center\\\"?(h=d.width*.5,p=d.height*.5):(h=na(v[0],d.width),p=na(v[1],d.height)),l=!0,a.originX=-a.x+h+(n?0:d.x),a.originY=-a.y+p+(n?0:d.y)}}i.rotation!=null&&(a.rotation=i.rotation);var g=i.offset;g&&(a.x+=g[0],a.y+=g[1],l||(a.originX=-g[0],a.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var y=m.overflowRect=m.overflowRect||new fe(0,0,0,0);a.getLocalTransform(ql),Fo(ql,ql),fe.copy(y,d),y.applyTransform(ql)}else m.overflowRect=null;var _=i.inside==null?typeof i.position==\\\"string\\\"&&i.position.indexOf(\\\"inside\\\")>=0:i.inside,b=void 0,S=void 0,w=void 0;_&&this.canBeInsideText()?(b=i.insideFill,S=i.insideStroke,(b==null||b===\\\"auto\\\")&&(b=this.getInsideTextFill()),(S==null||S===\\\"auto\\\")&&(S=this.getInsideTextStroke(b),w=!0)):(b=i.outsideFill,S=i.outsideStroke,(b==null||b===\\\"auto\\\")&&(b=this.getOutsideFill()),(S==null||S===\\\"auto\\\")&&(S=this.getOutsideStroke(b),w=!0)),b=b||\\\"#000\\\",(b!==m.fill||S!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(u=!0,m.fill=b,m.stroke=S,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Mr,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return\\\"#fff\\\"},e.prototype.getInsideTextStroke=function(t){return\\\"#000\\\"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ng:rg},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r==\\\"string\\\"&&Rr(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,wl(i,\\\"rgba\\\")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t===\\\"textConfig\\\"?this.setTextConfig(r):t===\\\"textContent\\\"?this.setTextContent(r):t===\\\"clipPath\\\"?this.setClipPath(r):t===\\\"extra\\\"?(this.extra=this.extra||{},Z(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t==\\\"string\\\")this.attrKV(t,r);else if(ne(t))for(var i=t,n=Te(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==vh)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,hh)},e.prototype._savePrimaryToNormal=function(t,r,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(vh,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===vh,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(xe(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){ZC(\\\"State \\\"+t+\\\" not exists.\\\");return}a||this.saveCurrentToNormalState(l);var c=this._textContent,f=iw(this,c,l,n);f&&!this.__inHover&&(this.__inHover=f),this._applyStateObj(t,l,this._normalState,r,ow(this,i,u),u);var d=this._textGuide;return c&&c.useState(t,r,i,!!f),d&&d.useState(t,r,i,!!f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=jc,this.__dirty&=~Mr),l}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],c=void 0;this.stateProxy&&(c=this.stateProxy(l,t)),c||(c=this.states[l]),c&&n.push(c)}var f=n[o-1],d=this._textContent,v=iw(this,d,f,i);v&&!this.__inHover&&(this.__inHover=v);var h=this._mergeStates(n),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(\\\",\\\"),h,this._normalState,!1,ow(this,r,p),p);var g=this._textGuide;d&&d.useStates(t,r,!!v),g&&g.useStates(t,r,!!v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=jc,this.__dirty&=~Mr)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=xe(this.currentStates,t);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=xe(n,t),o=xe(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n<t.length;n++){var a=t[n];Z(r,a),a.textConfig&&(i=i||{},Z(i,a.textConfig))}return i&&(r.textConfig=i),r},e.prototype._applyStateObj=function(t,r,i,n,a,o){if(this.__inHover!==dv){var s=!(r&&n);r&&r.textConfig?(this.textConfig=Z({},n?this.textConfig:i.textConfig),Z(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,c=0;c<hh.length;c++){var f=hh[c],d=a&&p6[f];r&&r[f]!=null?d?(l=!0,u[f]=r[f]):this[f]=r[f]:s&&i[f]!=null&&(d?(l=!0,u[f]=i[f]):this[f]=i[f])}if(!a)for(var c=0;c<this.animators.length;c++){var v=this.animators[c],h=v.targetName;v.getLoop()||v.__changeFinalValue(h?(r||i)[h]:r||i)}l&&this._transitionState(t,u,o)}},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new jo,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Z(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Mr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,i){var n=t?this[t]:this,a=new m0(n,r,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=xe(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,i){ph(this,t,r,i)},e.prototype.animateFrom=function(t,r,i){ph(this,t,r,i,!0)},e.prototype._transitionState=function(t,r,i,n){for(var a=ph(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=\\\"element\\\",t.name=\\\"\\\",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=jc,t.__dirty=Mr;function r(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var u=this[n]=[];s(this,u)}return this[n]},set:function(u){this[a]=u[0],this[o]=u[1],this[n]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(c){u[a]=c}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(c){u[o]=c}})}}Object.defineProperty&&(r(\\\"position\\\",\\\"_legacyPos\\\",\\\"x\\\",\\\"y\\\"),r(\\\"scale\\\",\\\"_legacyScale\\\",\\\"scaleX\\\",\\\"scaleY\\\"),r(\\\"origin\\\",\\\"_legacyOrigin\\\",\\\"originX\\\",\\\"originY\\\"))})(),e})();Fr(vv,Ln);Fr(vv,jo);function ph(e,t,r,i,n){r=r||{};var a=[];_A(e,\\\"\\\",e,t,r,i,a,n);var o=a.length,s=!1,u=r.done,l=r.aborted,c=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},f=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(h,p){r.during(p)});for(var d=0;d<a.length;d++){var v=a[d];c&&v.done(c),f&&v.aborted(f),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function gh(e,t,r){for(var i=0;i<r;i++)e[i]=t[i]}function m6(e){return Ht(e[0])}function y6(e,t,r){if(Ht(t[r]))if(Ht(e[r])||(e[r]=[]),Wt(t[r])){var i=t[r].length;e[r].length!==i&&(e[r]=new t[r].constructor(i),gh(e[r],t[r],i))}else{var n=t[r],a=e[r],o=n.length;if(m6(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?gh(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else gh(a,n,o);a.length=n.length}else e[r]=t[r]}function _6(e,t){return e===t||Ht(e)&&Ht(t)&&b6(e,t)}function b6(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function _A(e,t,r,i,n,a,o,s){for(var u=Te(i),l=n.duration,c=n.delay,f=n.additive,d=n.setToFinal,v=!ne(a),h=e.animators,p=[],g=0;g<u.length;g++){var m=u[g],y=i[m];if(y!=null&&r[m]!=null&&(v||a[m]))if(ne(y)&&!Ht(y)&&!u0(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}_A(e,m,r[m],y,n,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!f&&_)for(var b=0;b<h.length;b++){var S=h[b];if(S.targetName===t){var w=S.stopTracks(p);if(w){var x=xe(h,S);h.splice(x,1)}}}if(n.force||(p=at(p,function($){return!_6(i[$],r[$])}),_=p.length),_>0||n.force&&!o.length){var k=void 0,T=void 0,I=void 0;if(s){T={},d&&(k={});for(var b=0;b<_;b++){var m=p[b];T[m]=r[m],d?k[m]=i[m]:r[m]=i[m]}}else if(d){I={};for(var b=0;b<_;b++){var m=p[b];I[m]=Nc(r[m]),y6(r,i,m)}}var S=new m0(r,!1,!1,f?at(h,function(A){return A.targetName===t}):null);S.targetName=t,n.scope&&(S.scope=n.scope),d&&k&&S.whenWithKeys(0,k,p),I&&S.whenWithKeys(0,I,p),S.whenWithKeys(l??500,s?T:i,p).delay(c||0),e.addAnimator(S,t),o.push(S)}}function iw(e,t,r,i){return!(r&&r.hoverLayer||i)||aw(e)||t&&aw(t)?jc:dv}function aw(e){return e.type===\\\"text\\\"||e.type===\\\"tspan\\\"}function ow(e,t,r){return!t&&!e.__inHover&&r&&r.duration>0}var st=(function(e){V(t,e);function t(r){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=xe(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=xe(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},t.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var i=new fe(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var u=n[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),c=u.getLocalTransform(a);c?(fe.applyTransform(i,l,c),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},t})(vv);st.prototype.type=\\\"group\\\";/*!\\n* ZRender, a high performance 2d drawing library.\\n*\\n* Copyright (c) 2013, Baidu Inc.\\n* All rights reserved.\\n*\\n* LICENSE\\n* https://github.com/ecomfe/zrender/blob/master/LICENSE\\n*/var Zc={},bA={};function S6(e){delete bA[e]}function w6(e){if(!e)return!1;if(typeof e==\\\"string\\\")return hf(e,1)<tg;if(e.colorStops){for(var t=e.colorStops,r=0,i=t.length,n=0;n<i;n++)r+=hf(t[n].color,1);return r/=i,r<tg}return!1}var x6=(function(){function e(t,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=t;var a=new RU,o=i.renderer||\\\"canvas\\\";Zc[o]||(o=Te(Zc)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Zc[o](r,a,i,t),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!pe.node&&!pe.worker&&!u?new f6(s.getViewportRoot(),s.root):null,c=i.useCoarsePointer,f=c==null||c===\\\"auto\\\"?pe.touchEventsSupported:!!c,d=44,v;f&&(v=J(i.pointerSize,d)),this.handler=new KC(a,s,l,s.root,v),this.animation=new i6({stage:{update:u?null:function(){return n._flush(!1)}}}),u||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=w6(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(t){var r,i=Za(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:t,refresh:n,refreshHover:a}));var o=Za();r?(this._stillFrameAccum=0,this.trigger(\\\"rendered\\\",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof st&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,S6(this.id))},e})();function sw(e,t){var r=new x6(jC(),e,t);return bA[r.id]=r,r}function T6(e,t){Zc[e]=t}var ig;function k6(e){if(typeof ig==\\\"function\\\")return ig(e)}function I6(e){ig=e}var uw=1e-4,SA=20;function $6(e){return e.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\")}var Dt=Math.min,Me=Math.max,ct=Math.abs,Dn=Math.round,ia=Math.floor,Tl=Math.ceil,ha=Math.pow,Js=Math.log,ag=Math.LN10,D6=Math.PI,C6=Math.random;function Qs(e,t,r,i){var n=t[0],a=t[1],o=r[0],s=r[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(i)if(u>0){if(e<=n)return o;if(e>=a)return s}else{if(e>=n)return o;if(e<=a)return s}else{if(e===n)return o;if(e===a)return s}return(e-n)/u*l+o}var $e=A6;function A6(e,t,r){switch(e){case\\\"center\\\":case\\\"middle\\\":e=\\\"50%\\\";break;case\\\"left\\\":case\\\"top\\\":e=\\\"0%\\\";break;case\\\"right\\\":case\\\"bottom\\\":e=\\\"100%\\\";break}return og(e,t,r)}function og(e,t,r){return ee(e)?P6(e)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function P6(e){return!!$6(e).match(/%$/)}function Ae(e,t,r){return isNaN(t)?r?\\\"\\\"+e:+e:(t=Dt(Me(0,t),SA),e=(+e).toFixed(t),r?e:+e)}function y0(e){return e.sort(function(t,r){return t-r}),e}function yn(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Dn(e*t)/t===e)return r}return M6(e)}function M6(e){var t=e.toString().toLowerCase(),r=t.indexOf(\\\"e\\\"),i=r>0?+t.slice(r+1):0,n=r>0?r:t.length,a=t.indexOf(\\\".\\\"),o=a<0?0:n-1-a;return Me(0,o-i)}function L6(e,t,r){var i=ct(e[1]-e[0]);if(!isFinite(i)||i===0)return NaN;var n=Js(2*ct(r||1)*ct(i))/ag,a=Js(ct(t))/ag,o=Me(0,Tl(-n+a));return isFinite(o)||(o=NaN),o}function O6(e,t){var r=ti(e,function(v,h){return v+(isNaN(h)?0:h)},0);if(r===0)return[];for(var i=ha(10,t),n=Q(e,function(v){return(isNaN(v)?0:v)/r*i*100}),a=i*100,o=Q(n,function(v){return ia(v)}),s=ti(o,function(v,h){return v+h},0),u=Q(n,function(v,h){return v-o[h]});s<a;){for(var l=Number.NEGATIVE_INFINITY,c=null,f=0,d=u.length;f<d;++f)u[f]>l&&(l=u[f],c=f);++o[c],u[c]=0,++s}return Q(o,function(v){return v/i})}function E6(e,t){var r=Me(yn(e),yn(t)),i=e+t;return r>SA?i:Ae(i,r)}var lw=ha(2,53)-1;function wA(e){var t=D6*2;return(e%t+t)%t}function mf(e){return e>-uw&&e<uw}var z6=/^(?:(\\\\d{4})(?:[-\\\\/](\\\\d{1,2})(?:[-\\\\/](\\\\d{1,2})(?:[T ](\\\\d{1,2})(?::(\\\\d{1,2})(?::(\\\\d{1,2})(?:[.,](\\\\d+))?)?)?(Z|[\\\\+\\\\-]\\\\d\\\\d:?\\\\d\\\\d)?)?)?)?)?$/;function Zo(e){if(e instanceof Date)return e;if(ee(e)){var t=z6.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!==\\\"Z\\\"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Dn(e))}function xA(e){return ha(10,_0(e))}function _0(e){if(e===0)return 0;var t=ia(Js(e)/ag);return e/ha(10,t)>=10&&t++,t}var TA=2;function b0(e,t){var r=_0(e),i=ha(10,r),n=e/i,a;return t===TA?a=1:t?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,e=a*i,Ae(e,-r)}function yf(e){var t=parseFloat(e);return t==e&&(t!==0||!ee(e)||e.indexOf(\\\"x\\\")<=0)?t:NaN}function R6(e){return!isNaN(yf(e))}function S0(){return Dn(C6()*9)}function kA(e,t){return t===0?e:kA(t,e%t)}function cw(e,t){return e==null?t:t==null?e:e*t/kA(e,t)}function Sr(e){return e!=null&&isFinite(e)}var N6=\\\"[ECharts] \\\",U6=typeof console<\\\"u\\\"&&console.warn&&console.log;function B6(e,t,r){U6&&console[e](N6+t)}function IA(e,t){B6(\\\"error\\\",e)}function Zt(e){throw new Error(e)}function fw(e,t,r){return(t-e)*r+e}var $A=\\\"series\\\\0\\\",F6=\\\"\\\\0_ec_\\\\0\\\";function Ut(e){return e instanceof Array?e:e==null?[]:[e]}function eu(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var dw=[\\\"fontStyle\\\",\\\"fontWeight\\\",\\\"fontSize\\\",\\\"fontFamily\\\",\\\"rich\\\",\\\"tag\\\",\\\"color\\\",\\\"textBorderColor\\\",\\\"textBorderWidth\\\",\\\"width\\\",\\\"height\\\",\\\"lineHeight\\\",\\\"align\\\",\\\"verticalAlign\\\",\\\"baseline\\\",\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\",\\\"textShadowColor\\\",\\\"textShadowBlur\\\",\\\"textShadowOffsetX\\\",\\\"textShadowOffsetY\\\",\\\"backgroundColor\\\",\\\"borderColor\\\",\\\"borderWidth\\\",\\\"borderRadius\\\",\\\"padding\\\"];function kl(e){return ne(e)&&!G(e)&&!(e instanceof Date)?e.value:e}function j6(e){return ne(e)&&!(e instanceof Array)}function Z6(e,t,r){var i=r===\\\"normalMerge\\\",n=r===\\\"replaceMerge\\\",a=r===\\\"replaceAll\\\";e=e||[],t=(t||[]).slice();var o=se();C(t,function(u,l){if(!ne(u)){t[l]=null;return}});var s=V6(e,o,r);return(i||n)&&G6(s,e,o,t),i&&H6(s,t),i||n?W6(s,t,n):a&&q6(s,t),Y6(s),s}function V6(e,t,r){var i=[];if(r===\\\"replaceAll\\\")return i;for(var n=0;n<e.length;n++){var a=e[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:r===\\\"replaceMerge\\\"||tu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function G6(e,t,r,i){C(i,function(n,a){if(!(!n||n.id==null)){var o=Ls(n.id),s=r.get(o);if(s!=null){var u=e[s];Nr(!u.newOption,'Duplicated option on id \\\"'+o+'\\\".'),u.newOption=n,u.existing=t[s],i[a]=null}}})}function H6(e,t){C(t,function(r,i){if(!(!r||r.name==null))for(var n=0;n<e.length;n++){var a=e[n].existing;if(!e[n].newOption&&a&&(a.id==null||r.id==null)&&!tu(r)&&!tu(a)&&DA(\\\"name\\\",a,r)){e[n].newOption=r,t[i]=null;return}}})}function W6(e,t,r){C(t,function(i){if(i){for(var n,a=0;(n=e[a])&&(n.newOption||tu(n.existing)||n.existing&&i.id!=null&&!DA(\\\"id\\\",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):e.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function q6(e,t){C(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function Y6(e){var t=se();C(e,function(r){var i=r.existing;i&&t.set(i.id,r)}),C(e,function(r){var i=r.newOption;Nr(!i||i.id==null||!t.get(i.id)||t.get(i.id)===r,\\\"id duplicates: \\\"+(i&&i.id)),i&&i.id!=null&&t.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),C(e,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(ne(a)){if(o.name=a.name!=null?Ls(a.name):n?n.name:$A+i,n)o.id=Ls(n.id);else if(a.id!=null)o.id=Ls(a.id);else{var s=0;do o.id=\\\"\\\\0\\\"+o.name+\\\"\\\\0\\\"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function DA(e,t,r){var i=un(t[e],null),n=un(r[e],null);return i!=null&&n!=null&&i===n}function Ls(e){return un(e,\\\"\\\")}function un(e,t){return e==null?t:ee(e)?e:Re(e)||Lp(e)?e+\\\"\\\":t}function w0(e){var t=e.name;return!!(t&&t.indexOf($A))}function tu(e){return e&&e.id!=null&&Ls(e.id).indexOf(F6)===0}function X6(e,t,r){C(e,function(i){var n=i.newOption;ne(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=K6(t,n,i.existing,r))})}function K6(e,t,r,i){var n=t.type?t.type:r?r.subType:i.determineSubType(e,t);return n}function aa(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return G(t.dataIndex)?Q(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return G(t.name)?Q(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function ke(){var e=\\\"__ec_inner_\\\"+J6++;return function(t){return t[e]||(t[e]={})}}var J6=S0();function mh(e,t,r){var i=x0(t,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=r?r.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,c){var f=Il(e,c,l,{useDefault:u===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+\\\"Models\\\"]=f.models,s[c+\\\"Model\\\"]=f.models[0]}),s}function x0(e,t){var r;if(ee(e)){var i={};i[e+\\\"Index\\\"]=0,r=i}else r=e;var n=se(),a={},o=!1;return C(r,function(s,u){if(u===\\\"dataIndex\\\"||u===\\\"dataIndexInside\\\"){a[u]=s;return}var l=u.match(/^(\\\\w+)(Index|Id|Name)$/)||[],c=l[1],f=(l[2]||\\\"\\\").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&xe(t.includeMainTypes,c)<0)){o=o||!!c;var d=n.get(c)||n.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var pr={useDefault:!0,enableAll:!1,enableNone:!1};function Il(e,t,r,i){i=i||pr;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=e.getComponent(t))?[u]:[],s}if(n===\\\"none\\\"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n===\\\"all\\\"&&(i.enableAll?n=a=o=null:n=-1),s.models=e.queryComponents({mainType:t,index:n,id:a,name:o}),s}function Q6(e,t,r){var i={};i[t+\\\"Id\\\"]=e[t+\\\"Id\\\"],i[t+\\\"Index\\\"]=e[t+\\\"Index\\\"],i[t+\\\"Name\\\"]=e[t+\\\"Name\\\"];var n={mainType:t,query:i};return r&&(n.subType=r),n}function CA(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function eB(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function tB(e){return e===\\\"auto\\\"?pe.domSupported?\\\"html\\\":\\\"richText\\\":e||\\\"html\\\"}function AA(e,t,r,i,n){var a=t==null||t===\\\"auto\\\";if(i==null)return i;if(Re(i)){var o=fw(r||0,i,n);return Ae(o,a?Math.max(yn(r||0),yn(i)):t)}else{if(ee(i))return n<1?r:i;for(var s=[],u=r,l=i,c=Math.max(u?u.length:0,l.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type===\\\"ordinal\\\")s[f]=(n<1&&u?u:l)[f];else{var v=u&&u[f]?u[f]:0,h=l[f],o=fw(v,h,n);s[f]=Ae(o,a?Math.max(yn(v),yn(h)):t)}}return s}}function dr(){return[1/0,-1/0]}function sg(e,t){Cn(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function PA(e,t){Cn(t)&&t<e[0]&&(e[0]=t)}function MA(e,t){Cn(t)&&t>e[1]&&(e[1]=t)}function rB(e,t){go(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Cn(e){return e!=null&&isFinite(e)}function go(e,t){return Cn(e)&&Cn(t)&&e<=t}function nB(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function iB(e){go(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function LA(){var e=\\\"__ec_once_\\\"+aB++;return function(t,r){Nt(t,e)||(t[e]=1,r())}}var aB=S0();function T0(e,t,r){var i=se(),n=0;C(e,function(a){var o=t(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(e[n++]=a),i.set(o,s+1)}),r||(e.length=n)}function oB(e){return e.value+\\\"\\\"}function sB(e){return e+\\\"\\\"}function OA(e,t){return J(t,!0)?e.seriesIndex+2:0}function EA(e,t,r){var i=e.getData().count();return{progressiveRender:r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,large:e.get(\\\"large\\\")&&i>=e.get(\\\"largeThreshold\\\"),modDataCount:e.get(\\\"progressiveChunkMode\\\")===\\\"mod\\\"?e.getData().count():null}}function zA(e,t){return{seriesType:e,overallReset:t}}function k0(e){return{overallReset:e}}var uB=\\\".\\\",mi=\\\"___EC__COMPONENT__CONTAINER___\\\",RA=\\\"___EC__EXTENDED_CLASS___\\\";function tn(e){var t={main:\\\"\\\",sub:\\\"\\\"};if(e){var r=e.split(uB);t.main=r[0]||\\\"\\\",t.sub=r[1]||\\\"\\\"}return t}function lB(e){Nr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType \\\"'+e+'\\\" illegal')}function cB(e){return!!(e&&e[RA])}function I0(e,t){e.$constructor=e,e.extend=function(r){var i=this,n;return fB(i)?n=(function(a){V(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},J4(n,this)),Z(n.prototype,r),n[RA]=!0,n.extend=this.extend,n.superCall=hB,n.superApply=pB,n.superClass=i,n}}function fB(e){return le(e)&&/^class\\\\s/.test(Function.prototype.toString.call(e))}function NA(e,t){e.extend=t.extend}var dB=Math.round(Math.random()*10);function vB(e){var t=[\\\"__\\\\0is_clz\\\",dB++].join(\\\"_\\\");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function hB(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,r)}function pB(e,t,r){return this.superClass.prototype[t].apply(e,r)}function hv(e){var t={};e.registerClass=function(i){var n=i.type||i.prototype.type;if(n){lB(n),i.prototype.type=n;var a=tn(n);if(!a.sub)t[a.main]=i;else if(a.sub!==mi){var o=r(a);o[a.sub]=i}}return i},e.getClass=function(i,n,a){var o=t[i];if(o&&o[mi]&&(o=n?o[n]:null),a&&!o)throw new Error(n?\\\"Component \\\"+i+\\\".\\\"+(n||\\\"\\\")+\\\" is used but not imported.\\\":i+\\\".type should be specified.\\\");return o},e.getClassesByMainType=function(i){var n=tn(i),a=[],o=t[n.main];return o&&o[mi]?C(o,function(s,u){u!==mi&&a.push(s)}):a.push(o),a},e.hasClass=function(i){var n=tn(i);return!!t[n.main]},e.getAllClassMainTypes=function(){var i=[];return C(t,function(n,a){i.push(a)}),i},e.hasSubTypes=function(i){var n=tn(i),a=t[n.main];return a&&a[mi]};function r(i){var n=t[i.main];return(!n||!n[mi])&&(n=t[i.main]={},n[mi]=!0),n}}function ru(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(n&&xe(n,u)>=0||a&&xe(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var gB=[[\\\"fill\\\",\\\"color\\\"],[\\\"shadowBlur\\\"],[\\\"shadowOffsetX\\\"],[\\\"shadowOffsetY\\\"],[\\\"opacity\\\"],[\\\"shadowColor\\\"]],mB=ru(gB),yB=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return mB(this,t,r)},e})(),ug=new ho(50);function _B(e){if(typeof e==\\\"string\\\"){var t=ug.get(e);return t&&t.image}else return e}function $0(e,t,r,i,n){if(e)if(typeof e==\\\"string\\\"){if(t&&t.__zrImageSrc===e||!r)return t;var a=ug.get(e),o={hostEl:r,cb:i,cbPayload:n};return a?(t=a.image,!pv(t)&&a.pending.push(o)):(t=nn.loadImage(e,vw,vw),t.__zrImageSrc=e,ug.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function vw(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function pv(e){return e&&e.width&&e.height}var yh=/\\\\{([a-zA-Z0-9_]+)\\\\|([^}]*)\\\\}/g;function bB(e,t,r,i,n,a){if(!r){e.text=\\\"\\\",e.isTruncated=!1;return}var o=(t+\\\"\\\").split(`\\n`);a=UA(r,i,n,a);for(var s=!1,u={},l=0,c=o.length;l<c;l++)BA(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;e.text=o.join(`\\n`),e.isTruncated=s}function UA(e,t,r,i){i=i||{};var n=Z({},i);r=J(r,\\\"...\\\"),n.maxIterations=J(i.maxIterations,2);var a=n.minChar=J(i.minChar,0),o=n.fontMeasureInfo=on(t),s=o.asciiCharWidth;n.placeholder=J(i.placeholder,\\\"\\\");for(var u=e=Math.max(0,e-1),l=0;l<a&&u>=s;l++)u-=s;var c=sn(o,r);return c>u&&(r=\\\"\\\",c=0),u=e-c,n.ellipsis=r,n.ellipsisWidth=c,n.contentWidth=u,n.containerWidth=e,n}function BA(e,t,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){e.textLine=\\\"\\\",e.isTruncated=!1;return}var o=sn(a,t);if(o<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){t+=r.ellipsis;break}var u=s===0?SB(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,u),o=sn(a,t)}t===\\\"\\\"&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function SB(e,t,r){for(var i=0,n=0,a=e.length;n<a&&i<t;n++)i+=mA(r,e.charCodeAt(n));return n}function wB(e,t,r,i){var n=D0(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=t.font,c=a===\\\"truncate\\\",f=xl(l),d=J(t.lineHeight,f),v=t.lineOverflow===\\\"truncate\\\",h=!1,p=t.width;p==null&&r!=null&&(p=r-s);var g=t.height;g==null&&i!=null&&(g=i-u);var m;p!=null&&(a===\\\"break\\\"||a===\\\"breakAll\\\")?m=n?FA(n,t.font,p,a===\\\"breakAll\\\",0).lines:[]:m=n?n.split(`\\n`):[];var y=m.length*d;if(g==null&&(g=y),y>g&&v){var _=Math.floor(g/d);h=h||m.length>_,m=m.slice(0,_),y=m.length*d}if(n&&c&&p!=null)for(var b=UA(p,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),S={},w=0;w<m.length;w++)BA(S,m[w],b),m[w]=S.textLine,h=h||S.isTruncated;for(var x=g,k=0,T=on(l),w=0;w<m.length;w++)k=Math.max(sn(T,m[w]),k);p==null&&(p=k);var I=p;return x+=u,I+=s,{lines:m,height:g,outerWidth:I,outerHeight:x,lineHeight:d,calculatedLineHeight:f,contentWidth:k,contentHeight:y,width:p,isTruncated:h}}var xB=(function(){function e(){}return e})(),hw=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),TB=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function kB(e,t,r,i,n){var a=new TB,o=D0(e);if(!o)return a;var s=t.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,c=t.width;c==null&&r!=null&&(c=r-u);var f=t.height;f==null&&i!=null&&(f=i-l);for(var d=t.overflow,v=(d===\\\"break\\\"||d===\\\"breakAll\\\")&&c!=null?{width:c,accumWidth:0,breakAll:d===\\\"breakAll\\\"}:null,h=yh.lastIndex=0,p;(p=yh.exec(o))!=null;){var g=p.index;g>h&&_h(a,o.substring(h,g),t,v),_h(a,p[2],t,v,p[1]),h=yh.lastIndex}h<o.length&&_h(a,o.substring(h,o.length),t,v);var m=[],y=0,_=0,b=d===\\\"truncate\\\",S=t.lineOverflow===\\\"truncate\\\",w={};function x(ye,et,Je){ye.width=et,ye.lineHeight=Je,y+=Je,_=Math.max(_,et)}e:for(var k=0;k<a.lines.length;k++){for(var T=a.lines[k],I=0,$=0,A=0;A<T.tokens.length;A++){var D=T.tokens[A],P=D.styleName&&t.rich[D.styleName]||{},z=D.textPadding=P.padding,R=z?z[1]+z[3]:0,F=D.font=P.font||t.font;D.contentHeight=xl(F);var N=J(P.height,D.contentHeight);if(D.innerHeight=N,z&&(N+=z[0]+z[2]),D.height=N,D.lineHeight=Hi(P.lineHeight,t.lineHeight,N),D.align=P&&P.align||n,D.verticalAlign=P&&P.verticalAlign||\\\"middle\\\",S&&f!=null&&y+D.lineHeight>f){var j=a.lines.length;A>0?(T.tokens=T.tokens.slice(0,A),x(T,$,I),a.lines=a.lines.slice(0,k+1)):a.lines=a.lines.slice(0,k),a.isTruncated=a.isTruncated||a.lines.length<j;break e}var H=P.width,W=H==null||H===\\\"auto\\\";if(typeof H==\\\"string\\\"&&H.charAt(H.length-1)===\\\"%\\\")D.percentWidth=H,m.push(D),D.contentWidth=sn(on(F),D.text);else{if(W){var q=P.backgroundColor,te=q&&q.image;te&&(te=_B(te),pv(te)&&(D.width=Math.max(D.width,te.width*N/te.height)))}var K=b&&c!=null?c-$:null;K!=null&&K<D.width?!W||K<R?(D.text=\\\"\\\",D.width=D.contentWidth=0):(bB(w,D.text,K-R,F,t.ellipsis,{minChar:t.truncateMinChar}),D.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,D.width=D.contentWidth=sn(on(F),D.text)):D.contentWidth=sn(on(F),D.text)}D.width+=R,$+=D.width,P&&(I=Math.max(I,D.lineHeight))}x(T,$,I)}a.outerWidth=a.width=J(c,_),a.outerHeight=a.height=J(f,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var k=0;k<m.length;k++){var D=m[k],ce=D.percentWidth;D.width=parseInt(ce,10)/100*a.width}return a}function _h(e,t,r,i,n){var a=t===\\\"\\\",o=n&&r.rich[n]||{},s=e.lines,u=o.font||r.font,l=!1,c,f;if(i){var d=o.padding,v=d?d[1]+d[3]:0;if(o.width!=null&&o.width!==\\\"auto\\\"){var h=na(o.width,i.width)+v;s.length>0&&h+i.accumWidth>i.width&&(c=t.split(`\\n`),l=!0),i.accumWidth=h}else{var p=FA(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=p.accumWidth+v,f=p.linesWidths,c=p.lines}}c||(c=t.split(`\\n`));for(var g=on(u),m=0;m<c.length;m++){var y=c[m],_=new xB;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width==\\\"number\\\"?_.width=o.width:_.width=f?f[m]:sn(g,y),!m&&!l){var b=(s[s.length-1]||(s[0]=new hw)).tokens,S=b.length;S===1&&b[0].isLineHolder?b[0]=_:(y||!S||a)&&b.push(_)}else s.push(new hw([_]))}}function IB(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var $B=ti(\\\",&?/;] \\\".split(\\\"\\\"),function(e,t){return e[t]=!0,e},{});function DB(e){return IB(e)?!!$B[e]:!0}function FA(e,t,r,i,n){for(var a=[],o=[],s=\\\"\\\",u=\\\"\\\",l=0,c=0,f=on(t),d=0;d<e.length;d++){var v=e.charAt(d);if(v===`\\n`){u&&(s+=u,c+=l),a.push(s),o.push(c),s=\\\"\\\",u=\\\"\\\",l=0,c=0;continue}var h=mA(f,v.charCodeAt(0)),p=i?!1:!DB(v);if(a.length?c+h>r:n+c+h>r){c?(s||u)&&(p?(s||(s=u,u=\\\"\\\",l=0,c=l),a.push(s),o.push(c-l),u+=v,l+=h,s=\\\"\\\",c=l):(u&&(s+=u,u=\\\"\\\",l=0),a.push(s),o.push(c),s=v,c=h)):p?(a.push(u),o.push(l),u=v,l=h):(a.push(v),o.push(h));continue}c+=h,p?(u+=v,l+=h):(u&&(s+=u,u=\\\"\\\",l=0),s+=v)}return u&&(s+=u),s&&(a.push(s),o.push(c)),a.length===1&&(c+=n),{accumWidth:c,lines:a,linesWidths:o}}function pw(e,t,r,i,n,a){if(e.baseX=r,e.baseY=i,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;fe.set(gw,po(r,o,n),qi(i,s,a),o,s),fe.intersect(t,gw,null,mw);var u=mw.outIntersectRect;e.outerWidth=u.width,e.outerHeight=u.height,e.baseX=po(u.x,u.width,n,!0),e.baseY=qi(u.y,u.height,a,!0)}}var gw=new fe(0,0,0,0),mw={outIntersectRect:{},clamp:!0};function D0(e){return e!=null?e+=\\\"\\\":e=\\\"\\\"}function CB(e){var t=D0(e.text),r=e.font,i=sn(on(r),t),n=xl(r);return lg(e,i,n,null)}function lg(e,t,r,i){var n=new fe(po(e.x||0,t,e.textAlign),qi(e.y||0,r,e.textBaseline),t,r),a=i??(jA(e)?e.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function jA(e){var t=e.stroke;return t!=null&&t!==\\\"none\\\"&&e.lineWidth>0}var cg=\\\"__zr_style_\\\"+Math.round(Math.random()*10),Yi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:\\\"#000\\\",opacity:1,blend:\\\"source-over\\\"},gv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Yi[cg]=!0;var yw=[\\\"z\\\",\\\"z2\\\",\\\"invisible\\\"],AB=[\\\"invisible\\\"],$l=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=Te(r),n=0;n<i.length;n++){var a=i[n];a===\\\"style\\\"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(r){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&PB(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(r,i){return this.rectContain(r,i)},t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new fe(0,0,0,0)),i?fe.applyTransform(r,n,i):r.copy(n),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new fe(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate(\\\"style\\\",r)},t.prototype.updateDuringAnimation=function(r){r===\\\"style\\\"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,i){r!==\\\"style\\\"?e.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(r,i){return typeof r==\\\"string\\\"?this.style[r]=i:Z(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=bs,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&bs)},t.prototype.styleUpdated=function(){this.__dirty&=~bs},t.prototype.createStyle=function(r){return lv(Yi,r)},t.prototype.useStyle=function(r){r[cg]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},t.prototype._useHoverStyle=function(r){this.__hoverStyle=r},t.prototype.isStyleObject=function(r){return r[cg]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,yw)},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var u=!(i&&a),l=this.__inHover===dv,c;if(i&&i.style?o?a?c=i.style:(c=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(c,i.style)):(c=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(c,i.style)):u&&(c=n.style),c)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var d=Te(f),v=0;v<d.length;v++){var h=d[v];h in c&&(c[h]=c[h],this.style[h]=f[h])}for(var p=Te(c),v=0;v<p.length;v++){var h=p[v];this.style[h]=this.style[h]}this._transitionState(r,{style:c},s,this.getAnimationStyleProps())}else l?this._useHoverStyle(c):this.useStyle(c);if(!l)for(var g=this.__inHover?AB:yw,v=0;v<g.length;v++){var h=g[v];i&&i[h]!=null?this[h]=i[h]:u&&n[h]!=null&&(this[h]=n[h])}},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(r,i){return Z(r,i),r},t.prototype.getAnimationStyleProps=function(){return gv},t.initDefaultProps=(function(){var r=t.prototype;r.type=\\\"displayable\\\",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor=\\\"pointer\\\",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Mr|bs})(),t})(vv),bh=new fe(0,0,0,0),Sh=new fe(0,0,0,0);function PB(e,t,r){return bh.copy(e.getBoundingRect()),e.transform&&bh.applyTransform(e.transform),Sh.width=t,Sh.height=r,!bh.intersect(Sh)}var vr=Math.min,hr=Math.max,wh=Math.sin,xh=Math.cos,yi=Math.PI*2,Yl=Bo(),Xl=Bo(),Kl=Bo();function _w(e,t,r,i,n,a){n[0]=vr(e,r),n[1]=vr(t,i),a[0]=hr(e,r),a[1]=hr(t,i)}var bw=[],Sw=[];function MB(e,t,r,i,n,a,o,s,u,l){var c=rA,f=ft,d=c(e,r,n,o,bw);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<d;v++){var h=f(e,r,n,o,bw[v]);u[0]=vr(h,u[0]),l[0]=hr(h,l[0])}d=c(t,i,a,s,Sw);for(var v=0;v<d;v++){var p=f(t,i,a,s,Sw[v]);u[1]=vr(p,u[1]),l[1]=hr(p,l[1])}u[0]=vr(e,u[0]),l[0]=hr(e,l[0]),u[0]=vr(o,u[0]),l[0]=hr(o,l[0]),u[1]=vr(t,u[1]),l[1]=hr(t,l[1]),u[1]=vr(s,u[1]),l[1]=hr(s,l[1])}function LB(e,t,r,i,n,a,o,s){var u=iA,l=It,c=hr(vr(u(e,r,n),1),0),f=hr(vr(u(t,i,a),1),0),d=l(e,r,n,c),v=l(t,i,a,f);o[0]=vr(e,n,d),o[1]=vr(t,a,v),s[0]=hr(e,n,d),s[1]=hr(t,a,v)}function OB(e,t,r,i,n,a,o,s,u){var l=Ba,c=Fa,f=Math.abs(n-a);if(f%yi<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-i,u[0]=e+r,u[1]=t+i;return}if(Yl[0]=xh(n)*r+e,Yl[1]=wh(n)*i+t,Xl[0]=xh(a)*r+e,Xl[1]=wh(a)*i+t,l(s,Yl,Xl),c(u,Yl,Xl),n=n%yi,n<0&&(n=n+yi),a=a%yi,a<0&&(a=a+yi),n>a&&!o?a+=yi:n<a&&o&&(n+=yi),o){var d=a;a=n,n=d}for(var v=0;v<a;v+=Math.PI/2)v>n&&(Kl[0]=xh(v)*r+e,Kl[1]=wh(v)*i+t,l(s,Kl,s),c(u,Kl,u))}var Ee={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_i=[],bi=[],Hr=[],En=[],Wr=[],qr=[],Th=Math.min,kh=Math.max,Si=Math.cos,wi=Math.sin,vn=Math.abs,fg=Math.PI,Zn=fg*2,Ih=typeof Float32Array<\\\"u\\\",ts=[];function $h(e){var t=Math.round(e/fg*1e8)/1e8;return t%2*fg}function ZA(e,t){var r=$h(e[0]);r<0&&(r+=Zn);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=Zn?n=r+Zn:t&&r-n>=Zn?n=r-Zn:!t&&r>n?n=r+(Zn-$h(r-n)):t&&r<n&&(n=r-(Zn-$h(n-r))),e[0]=r,e[1]=n}var An=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,i){i=i||0,i>0&&(this._ux=vn(i/QS/t)||0,this._uy=vn(i/QS/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(Ee.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=vn(t-this._xi),n=vn(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ee.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(Ee.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(Ee.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),ts[0]=n,ts[1]=a,ZA(ts,o),n=ts[0],a=ts[1];var s=a-n;return this.addData(Ee.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Si(a)*i+t,this._yi=wi(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(Ee.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ee.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&Ih&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=t[i];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,i=0,n=this._len,a=0;a<r;a++)i+=t[a].len();var o=this.data;if(Ih&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var u=t[a].data,s=0;s<u.length;s++)this.data[n++]=u[s];this._len=n}},e.prototype.addData=function(t,r,i,n,a,o,s,u,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ih&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Hr[0]=Hr[1]=Wr[0]=Wr[1]=Number.MAX_VALUE,En[0]=En[1]=qr[0]=qr[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],i=t[o+1],n=r,a=i),s){case Ee.M:r=n=t[o++],i=a=t[o++],Wr[0]=n,Wr[1]=a,qr[0]=n,qr[1]=a;break;case Ee.L:_w(r,i,t[o],t[o+1],Wr,qr),r=t[o++],i=t[o++];break;case Ee.C:MB(r,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Wr,qr),r=t[o++],i=t[o++];break;case Ee.Q:LB(r,i,t[o++],t[o++],t[o],t[o+1],Wr,qr),r=t[o++],i=t[o++];break;case Ee.A:var l=t[o++],c=t[o++],f=t[o++],d=t[o++],v=t[o++],h=t[o++]+v;o+=1;var p=!t[o++];u&&(n=Si(v)*f+l,a=wi(v)*d+c),OB(l,c,f,d,v,h,p,Wr,qr),r=Si(h)*f+l,i=wi(h)*d+c;break;case Ee.R:n=r=t[o++],a=i=t[o++];var g=t[o++],m=t[o++];_w(n,a,n+g,a+m,Wr,qr);break;case Ee.Z:r=n,i=a;break}Ba(Hr,Hr,Wr),Fa(En,En,qr)}return o===0&&(Hr[0]=Hr[1]=En[0]=En[1]=0),new fe(Hr[0],Hr[1],En[0]-Hr[0],En[1]-Hr[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,f=0,d=0;d<r;){var v=t[d++],h=d===1;h&&(a=t[d],o=t[d+1],s=a,u=o);var p=-1;switch(v){case Ee.M:a=s=t[d++],o=u=t[d++];break;case Ee.L:{var g=t[d++],m=t[d++],y=g-a,_=m-o;(vn(y)>i||vn(_)>n||d===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case Ee.C:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++],w=t[d++],x=t[d++];p=NU(a,o,b,S,g,m,w,x,10),a=w,o=x;break}case Ee.Q:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++];p=BU(a,o,b,S,g,m,10),a=g,o=m;break}case Ee.A:var k=t[d++],T=t[d++],I=t[d++],$=t[d++],A=t[d++],D=t[d++],P=D+A;d+=1,h&&(s=Si(A)*I+k,u=wi(A)*$+T),p=kh(I,$)*Th(Zn,Math.abs(D)),a=Si(P)*I+k,o=wi(P)*$+T;break;case Ee.R:{s=a=t[d++],u=o=t[d++];var z=t[d++],R=t[d++];p=z*2+R*2;break}case Ee.Z:{var y=s-a,_=u-o;p=Math.sqrt(y*y+_*_),a=s,o=u;break}}p>=0&&(l[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,u,l,c,f,d,v=r<1,h,p,g=0,m=0,y,_=0,b,S;if(!(v&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var w=0;w<o;){var x=i[w++],k=w===1;switch(k&&(l=i[w],c=i[w+1],s=l,u=c),x!==Ee.L&&_>0&&(t.lineTo(b,S),_=0),x){case Ee.M:s=l=i[w++],u=c=i[w++],t.moveTo(l,c);break;case Ee.L:{f=i[w++],d=i[w++];var T=vn(f-l),I=vn(d-c);if(T>n||I>a){if(v){var $=h[m++];if(g+$>y){var A=(y-g)/$;t.lineTo(l*(1-A)+f*A,c*(1-A)+d*A);break e}g+=$}t.lineTo(f,d),l=f,c=d,_=0}else{var D=T*T+I*I;D>_&&(b=f,S=d,_=D)}break}case Ee.C:{var P=i[w++],z=i[w++],R=i[w++],F=i[w++],N=i[w++],j=i[w++];if(v){var $=h[m++];if(g+$>y){var A=(y-g)/$;df(l,P,R,N,A,_i),df(c,z,F,j,A,bi),t.bezierCurveTo(_i[1],bi[1],_i[2],bi[2],_i[3],bi[3]);break e}g+=$}t.bezierCurveTo(P,z,R,F,N,j),l=N,c=j;break}case Ee.Q:{var P=i[w++],z=i[w++],R=i[w++],F=i[w++];if(v){var $=h[m++];if(g+$>y){var A=(y-g)/$;vf(l,P,R,A,_i),vf(c,z,F,A,bi),t.quadraticCurveTo(_i[1],bi[1],_i[2],bi[2]);break e}g+=$}t.quadraticCurveTo(P,z,R,F),l=R,c=F;break}case Ee.A:var H=i[w++],W=i[w++],q=i[w++],te=i[w++],K=i[w++],ce=i[w++],ye=i[w++],et=!i[w++],Je=q>te?q:te,Ie=vn(q-te)>.001,Ye=K+ce,oe=!1;if(v){var $=h[m++];g+$>y&&(Ye=K+ce*(y-g)/$,oe=!0),g+=$}if(Ie&&t.ellipse?t.ellipse(H,W,q,te,ye,K,Ye,et):t.arc(H,W,Je,K,Ye,et),oe)break e;k&&(s=Si(K)*q+H,u=wi(K)*te+W),l=Si(Ye)*q+H,c=wi(Ye)*te+W;break;case Ee.R:s=l=i[w],u=c=i[w+1],f=i[w++],d=i[w++];var _e=i[w++],Bt=i[w++];if(v){var $=h[m++];if(g+$>y){var tt=y-g;t.moveTo(f,d),t.lineTo(f+Th(tt,_e),d),tt-=_e,tt>0&&t.lineTo(f+_e,d+Th(tt,Bt)),tt-=Bt,tt>0&&t.lineTo(f+kh(_e-tt,0),d+Bt),tt-=_e,tt>0&&t.lineTo(f,d+kh(Bt-tt,0));break e}g+=$}t.rect(f,d,_e,Bt);break;case Ee.Z:if(v){var $=h[m++];if(g+$>y){var A=(y-g)/$;t.lineTo(l*(1-A)+s*A,c*(1-A)+u*A);break e}g+=$}t.closePath(),l=s,c=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Ee,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function ka(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=e;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)u=(t-i)/(e-r),l=(e*i-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=u*a-o+l,f=c*c/(u*u+1);return f<=s/2*s/2}function EB(e,t,r,i,n,a,o,s,u,l,c){if(u===0)return!1;var f=u;if(c>t+f&&c>i+f&&c>a+f&&c>s+f||c<t-f&&c<i-f&&c<a-f&&c<s-f||l>e+f&&l>r+f&&l>n+f&&l>o+f||l<e-f&&l<r-f&&l<n-f&&l<o-f)return!1;var d=nA(e,t,r,i,n,a,o,s,l,c,null);return d<=f/2}function zB(e,t,r,i,n,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>i+l&&u>a+l||u<t-l&&u<i-l&&u<a-l||s>e+l&&s>r+l&&s>n+l||s<e-l&&s<r-l&&s<n-l)return!1;var c=aA(e,t,r,i,n,a,s,u,null);return c<=l/2}var ww=Math.PI*2;function _n(e){return e%=ww,e<0&&(e+=ww),e}var rs=Math.PI*2;function RB(e,t,r,i,n,a,o,s,u){if(o===0)return!1;var l=o;s-=e,u-=t;var c=Math.sqrt(s*s+u*u);if(c-l>r||c+l<r)return!1;if(Math.abs(i-n)%rs<1e-4)return!0;if(a){var f=i;i=_n(n),n=_n(f)}else i=_n(i),n=_n(n);i>n&&(n+=rs);var d=Math.atan2(u,s);return d<0&&(d+=rs),d>=i&&d<=n||d+rs>=i&&d+rs<=n}function xi(e,t,r,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var u=o*(r-e)+e;return u===n?1/0:u>n?s:0}var zn=An.CMD,Ti=Math.PI*2,NB=1e-4;function UB(e,t){return Math.abs(e-t)<NB}var Lt=[-1,-1,-1],cr=[-1,-1];function BB(){var e=cr[0];cr[0]=cr[1],cr[1]=e}function FB(e,t,r,i,n,a,o,s,u,l){if(l>t&&l>i&&l>a&&l>s||l<t&&l<i&&l<a&&l<s)return 0;var c=ff(t,i,a,s,l,Lt);if(c===0)return 0;for(var f=0,d=-1,v=void 0,h=void 0,p=0;p<c;p++){var g=Lt[p],m=g===0||g===1?.5:1,y=ft(e,r,n,o,g);y<u||(d<0&&(d=rA(t,i,a,s,cr),cr[1]<cr[0]&&d>1&&BB(),v=ft(t,i,a,s,cr[0]),d>1&&(h=ft(t,i,a,s,cr[1]))),d===2?g<cr[0]?f+=v<t?m:-m:g<cr[1]?f+=h<v?m:-m:f+=s<h?m:-m:g<cr[0]?f+=v<t?m:-m:f+=s<v?m:-m)}return f}function jB(e,t,r,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var u=UU(t,i,a,s,Lt);if(u===0)return 0;var l=iA(t,i,a);if(l>=0&&l<=1){for(var c=0,f=It(t,i,a,l),d=0;d<u;d++){var v=Lt[d]===0||Lt[d]===1?.5:1,h=It(e,r,n,Lt[d]);h<o||(Lt[d]<l?c+=f<t?v:-v:c+=a<f?v:-v)}return c}else{var v=Lt[0]===0||Lt[0]===1?.5:1,h=It(e,r,n,Lt[0]);return h<o?0:a<t?v:-v}}function ZB(e,t,r,i,n,a,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Lt[0]=-u,Lt[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=Ti-1e-4){i=0,n=Ti;var c=a?1:-1;return o>=Lt[0]+e&&o<=Lt[1]+e?c:0}if(i>n){var f=i;i=n,n=f}i<0&&(i+=Ti,n+=Ti);for(var d=0,v=0;v<2;v++){var h=Lt[v];if(h+e>o){var p=Math.atan2(s,h),c=a?1:-1;p<0&&(p=Ti+p),(p>=i&&p<=n||p+Ti>=i&&p+Ti<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function VA(e,t,r,i,n){for(var a=e.data,o=e.len(),s=0,u=0,l=0,c=0,f=0,d,v,h=0;h<o;){var p=a[h++],g=h===1;switch(p===zn.M&&h>1&&(r||(s+=xi(u,l,c,f,i,n))),g&&(u=a[h],l=a[h+1],c=u,f=l),p){case zn.M:c=a[h++],f=a[h++],u=c,l=f;break;case zn.L:if(r){if(ka(u,l,a[h],a[h+1],t,i,n))return!0}else s+=xi(u,l,a[h],a[h+1],i,n)||0;u=a[h++],l=a[h++];break;case zn.C:if(r){if(EB(u,l,a[h++],a[h++],a[h++],a[h++],a[h],a[h+1],t,i,n))return!0}else s+=FB(u,l,a[h++],a[h++],a[h++],a[h++],a[h],a[h+1],i,n)||0;u=a[h++],l=a[h++];break;case zn.Q:if(r){if(zB(u,l,a[h++],a[h++],a[h],a[h+1],t,i,n))return!0}else s+=jB(u,l,a[h++],a[h++],a[h],a[h+1],i,n)||0;u=a[h++],l=a[h++];break;case zn.A:var m=a[h++],y=a[h++],_=a[h++],b=a[h++],S=a[h++],w=a[h++];h+=1;var x=!!(1-a[h++]);d=Math.cos(S)*_+m,v=Math.sin(S)*b+y,g?(c=d,f=v):s+=xi(u,l,d,v,i,n);var k=(i-m)*b/_+m;if(r){if(RB(m,y,b,S,S+w,x,t,k,n))return!0}else s+=ZB(m,y,b,S,S+w,x,k,n);u=Math.cos(S+w)*_+m,l=Math.sin(S+w)*b+y;break;case zn.R:c=u=a[h++],f=l=a[h++];var T=a[h++],I=a[h++];if(d=c+T,v=f+I,r){if(ka(c,f,d,f,t,i,n)||ka(d,f,d,v,t,i,n)||ka(d,v,c,v,t,i,n)||ka(c,v,c,f,t,i,n))return!0}else s+=xi(d,f,d,v,i,n),s+=xi(c,v,c,f,i,n);break;case zn.Z:if(r){if(ka(u,l,c,f,t,i,n))return!0}else s+=xi(u,l,c,f,i,n);u=c,l=f;break}}return!r&&!UB(l,f)&&(s+=xi(u,l,c,f,i,n)||0),s!==0}function VB(e,t,r){return VA(e,0,!1,t,r)}function GB(e,t,r,i){return VA(e,t,!0,r,i)}var _f=je({fill:\\\"#000\\\",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:\\\"butt\\\",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Yi),HB={style:je({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gv.style)},Dh=fv.concat([\\\"invisible\\\",\\\"culling\\\",\\\"z\\\",\\\"z2\\\",\\\"zlevel\\\",\\\"parent\\\"]),Pe=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(u){r.buildPath(u,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Dh.length;++s)n[Dh[s]]=this[Dh[s]];n.__dirty|=Mr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var i=Te(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o===\\\"style\\\"?this.style?Z(this.style,s):this.useStyle(s):o===\\\"shape\\\"?Z(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!==\\\"none\\\"){if(ee(r)){var i=hf(r,0);return i>.5?rg:i>.2?d6:ng}else if(r)return ng}return rg},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(ee(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=hf(r,0)<tg;if(a===o)return i}},t.prototype.buildPath=function(r,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Ra},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new An(!1)},t.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i===\\\"none\\\"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!==\\\"none\\\"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ra)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var u=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;l=Math.max(l,c??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),GB(s,u/l,r,i)))return!0}if(this.hasFill())return VB(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ra,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate(\\\"shape\\\",r)},t.prototype.updateDuringAnimation=function(r){r===\\\"style\\\"?this.dirtyStyle():r===\\\"shape\\\"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r===\\\"shape\\\"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r==\\\"string\\\"?n[r]=i:Z(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ra)},t.prototype.createStyle=function(r){return lv(_f,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=Z({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){if(e.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==dv){var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=Z({},n.shape),Z(l,i.shape)):(l=Z({},a?this.shape:n.shape),Z(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=Z({},this.shape);for(var c={},f=Te(l),d=0;d<f.length;d++){var v=f[d];typeof l[v]==\\\"object\\\"?this.shape[v]=l[v]:c[v]=l[v]}this._transitionState(r,{shape:c},s)}else this.shape=l,this.dirtyShape()}},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return HB},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var i=(function(a){V(o,a);function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return me(r.style)},o.prototype.getDefaultShape=function(){return me(r.shape)},o})(t);for(var n in r)typeof r[n]==\\\"function\\\"&&(i.prototype[n]=r[n]);return i},t.initDefaultProps=(function(){var r=t.prototype;r.type=\\\"path\\\",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Mr|bs|Ra})(),t})($l),WB=je({strokeFirst:!0,font:$n,x:0,y:0,textAlign:\\\"left\\\",textBaseline:\\\"top\\\",miterLimit:2},_f),nu=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return jA(this.style)},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!==\\\"none\\\"},t.prototype.createStyle=function(r){return lv(WB,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=CB(this.style)),this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})($l);nu.prototype.type=\\\"tspan\\\";var qB=je({x:0,y:0},Yi),YB={style:je({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gv.style)};function XB(e){return!!(e&&typeof e!=\\\"string\\\"&&e.width&&e.height)}var dn=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return lv(qB,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=XB(i.image)?i.image:this.__image;if(!a)return 0;var o=r===\\\"width\\\"?\\\"height\\\":\\\"width\\\",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize(\\\"width\\\")},t.prototype.getHeight=function(){return this._getSize(\\\"height\\\")},t.prototype.getAnimationStyleProps=function(){return YB},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new fe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})($l);dn.prototype.type=\\\"image\\\";function KB(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,u,l,c;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o==\\\"number\\\"?s=u=l=c=o:o instanceof Array?o.length===1?s=u=l=c=o[0]:o.length===2?(s=l=o[0],u=c=o[1]):o.length===3?(s=o[0],u=c=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],c=o[3]):s=u=l=c=0;var f;s+u>n&&(f=s+u,s*=n/f,u*=n/f),l+c>n&&(f=l+c,l*=n/f,c*=n/f),u+l>a&&(f=u+l,u*=a/f,l*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,i),e.lineTo(r+n-u,i),u!==0&&e.arc(r+n-u,i+u,u,-Math.PI/2,0),e.lineTo(r+n,i+a-l),l!==0&&e.arc(r+n-l,i+a-l,l,0,Math.PI/2),e.lineTo(r+c,i+a),c!==0&&e.arc(r+c,i+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Va=Math.round;function GA(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Va(i*2)===Va(n*2)&&(e.x1=e.x2=Zi(i,s,!0)),Va(a*2)===Va(o*2)&&(e.y1=e.y2=Zi(a,s,!0))),e}}function HA(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Zi(i,s,!0),e.y=Zi(n,s,!0),e.width=Math.max(Zi(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Zi(n+o,s,!1)-e.y,o===0?0:1)),e}}function Zi(e,t,r){if(!t)return e;var i=Va(e*2);return(i+Va(t))%2===0?i/2:(i+(r?1:-1))/2}var JB=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),QB={},ot=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new JB},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=HA(QB,i,this.style);n=u.x,a=u.y,o=u.width,s=u.height,u.r=i.r,i=u}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?KB(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Pe);ot.prototype.type=\\\"rect\\\";var xw={fill:\\\"#000\\\"},Tw=2,Yr={},eF={style:je({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},gv.style)},Ct=(function(e){V(t,e);function t(r){var i=e.call(this)||this;return i.type=\\\"text\\\",i._children=[],i._defaultStyle=xw,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,nF(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new fe(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],u=s.getBoundingRect(),l=s.getLocalTransform(n);l?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||xw},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return Z(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,i){for(var n=Te(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},Z(r[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return eF},t.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||$n,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||a.align||\\\"left\\\",l=r.verticalAlign||a.verticalAlign||\\\"top\\\";pw(Yr,a.overflowRect,o,s,u,l),o=Yr.baseX,s=Yr.baseY;var c=Pw(r),f=wB(c,r,Yr.outerWidth,Yr.outerHeight),d=Ch(r),v=!!r.backgroundColor,h=f.outerHeight,p=f.outerWidth,g=f.lines,m=f.lineHeight;this.isTruncated=!!f.isTruncated;var y=o,_=qi(s,f.contentHeight,l);if(d||n){var b=po(o,p,u),S=qi(s,h,l);d&&this._renderBackground(r,r,b,S,p,h)}_+=m/2,n&&(y=Aw(o,u,n),l===\\\"top\\\"?_+=n[0]:l===\\\"bottom\\\"&&(_-=n[2]));for(var w=0,x=!1,k=!1,T=Cw(\\\"fill\\\"in r?r.fill:(k=!0,a.fill)),I=Dw(\\\"stroke\\\"in r?r.stroke:!v&&(!a.autoStroke||k)?(w=Tw,x=!0,a.stroke):null),$=r.textShadowBlur>0,A=0;A<g.length;A++){var D=this._getOrCreateChild(nu),P=D.createStyle();D.useStyle(P),P.text=g[A],P.x=y,P.y=_,P.textAlign=u,P.textBaseline=\\\"middle\\\",P.opacity=r.opacity,P.strokeFirst=!0,$&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||\\\"transparent\\\",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=I,P.fill=T,I&&(P.lineWidth=r.lineWidth||w,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=i,Iw(P,r),_+=m,D.setBoundingRect(lg(P,f.contentWidth,f.calculatedLineHeight,x?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;pw(Yr,i.overflowRect,o,s,n,a),o=Yr.baseX,s=Yr.baseY;var u=Pw(r),l=kB(u,r,Yr.outerWidth,Yr.outerHeight,n),c=l.width,f=l.outerWidth,d=l.outerHeight,v=r.padding;this.isTruncated=!!l.isTruncated;var h=po(o,f,n),p=qi(s,d,a),g=h,m=p;v&&(g+=v[3],m+=v[0]);var y=g+c;Ch(r)&&this._renderBackground(r,r,h,p,f,d);for(var _=!!r.backgroundColor,b=0;b<l.lines.length;b++){for(var S=l.lines[b],w=S.tokens,x=w.length,k=S.lineHeight,T=S.width,I=0,$=g,A=y,D=x-1,P=void 0;I<x&&(P=w[I],!P.align||P.align===\\\"left\\\");)this._placeToken(P,r,k,m,$,\\\"left\\\",_),T-=P.width,$+=P.width,I++;for(;D>=0&&(P=w[D],P.align===\\\"right\\\");)this._placeToken(P,r,k,m,A,\\\"right\\\",_),T-=P.width,A-=P.width,D--;for($+=(c-($-g)-(y-A)-T)/2;I<=D;)P=w[I],this._placeToken(P,r,k,m,$+P.width/2,\\\"center\\\",_),$+=P.width,I++;m+=k}},t.prototype._placeToken=function(r,i,n,a,o,s,u){var l=i.rich[r.styleName]||{};l.text=r.text;var c=r.verticalAlign,f=a+n/2;c===\\\"top\\\"?f=a+r.height/2:c===\\\"bottom\\\"&&(f=a+n-r.height/2);var d=!r.isLineHolder&&Ch(l);d&&this._renderBackground(l,i,s===\\\"right\\\"?o-r.width:s===\\\"center\\\"?o-r.width/2:o,f-r.height/2,r.width,r.height);var v=!!l.backgroundColor,h=r.textPadding;h&&(o=Aw(o,s,h),f-=r.height/2-h[0]-r.innerHeight/2);var p=this._getOrCreateChild(nu),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,b=!1,S=Cw(\\\"fill\\\"in l?l.fill:\\\"fill\\\"in i?i.fill:(y=!0,m.fill)),w=Dw(\\\"stroke\\\"in l?l.stroke:\\\"stroke\\\"in i?i.stroke:!v&&!u&&(!m.autoStroke||y)?(_=Tw,b=!0,m.stroke):null),x=l.textShadowBlur>0||i.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,x&&(g.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,g.shadowColor=l.textShadowColor||i.textShadowColor||\\\"transparent\\\",g.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline=\\\"middle\\\",g.font=r.font||$n,g.opacity=Hi(l.opacity,i.opacity,1),Iw(g,l),w&&(g.lineWidth=Hi(l.lineWidth,i.lineWidth,_),g.lineDash=J(l.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=w),S&&(g.fill=S),p.setBoundingRect(lg(g,r.contentWidth,r.contentHeight,b?0:null))},t.prototype._renderBackground=function(r,i,n,a,o,s){var u=r.backgroundColor,l=r.borderWidth,c=r.borderColor,f=u&&u.image,d=u&&!f,v=r.borderRadius,h=this,p,g;if(d||r.lineHeight||l&&c){p=this._getOrCreateChild(ot),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=n,m.y=a,m.width=o,m.height=s,m.r=v,p.dirtyShape()}if(d){var y=p.style;y.fill=u||null,y.fillOpacity=J(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(dn),g.onload=function(){h.dirtyStyle()};var _=g.style;_.image=u.image,_.x=n,_.y=a,_.width=o,_.height=s}if(l&&c){var y=p.style;y.lineWidth=l,y.stroke=c,y.strokeOpacity=J(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||\\\"transparent\\\",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Hi(r.opacity,i.opacity,1)},t.makeFont=function(r){var i=\\\"\\\";return qA(r)&&(i=[r.fontStyle,r.fontWeight,WA(r.fontSize),r.fontFamily||\\\"sans-serif\\\"].join(\\\" \\\")),i&&en(i)||r.textFont||r.font},t})($l),tF={left:!0,right:1,center:1},rF={top:1,bottom:1,middle:1},kw=[\\\"fontStyle\\\",\\\"fontWeight\\\",\\\"fontSize\\\",\\\"fontFamily\\\"];function WA(e){return typeof e==\\\"string\\\"&&(e.indexOf(\\\"px\\\")!==-1||e.indexOf(\\\"rem\\\")!==-1||e.indexOf(\\\"em\\\")!==-1)?e:isNaN(+e)?a0+\\\"px\\\":e+\\\"px\\\"}function Iw(e,t){for(var r=0;r<kw.length;r++){var i=kw[r],n=t[i];n!=null&&(e[i]=n)}}function qA(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function nF(e){return $w(e),C(e.rich,$w),e}function $w(e){if(e){e.font=Ct.makeFont(e);var t=e.align;t===\\\"middle\\\"&&(t=\\\"center\\\"),e.align=t==null||tF[t]?t:\\\"left\\\";var r=e.verticalAlign;r===\\\"center\\\"&&(r=\\\"middle\\\"),e.verticalAlign=r==null||rF[r]?r:\\\"top\\\";var i=e.padding;i&&(e.padding=c0(e.padding))}}function Dw(e,t){return e==null||t<=0||e===\\\"transparent\\\"||e===\\\"none\\\"?null:e.image||e.colorStops?\\\"#000\\\":e}function Cw(e){return e==null||e===\\\"none\\\"?null:e.image||e.colorStops?\\\"#000\\\":e}function Aw(e,t,r){return t===\\\"right\\\"?e-r[1]:t===\\\"center\\\"?e+r[3]/2-r[1]/2:e+r[3]}function Pw(e){var t=e.text;return t!=null&&(t+=\\\"\\\"),t}function Ch(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var we=ke(),iF=function(e,t,r,i){if(i){var n=we(i);n.dataIndex=r,n.dataType=t,n.seriesIndex=e,n.ssrType=\\\"chart\\\",i.type===\\\"group\\\"&&i.traverse(function(a){var o=we(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType=\\\"chart\\\"})}},Vo=\\\"undefined\\\",YA=\\\"series\\\",XA=se([\\\"tooltip\\\",\\\"label\\\",\\\"itemName\\\",\\\"itemId\\\",\\\"itemGroupId\\\",\\\"itemChildGroupId\\\",\\\"seriesName\\\"]),ir=\\\"original\\\",At=\\\"arrayRows\\\",Tr=\\\"objectRows\\\",jr=\\\"keyedColumns\\\",Kn=\\\"typedArray\\\",KA=\\\"unknown\\\",ln=\\\"column\\\",pa=\\\"row\\\",aF=[\\\"getDom\\\",\\\"getZr\\\",\\\"getWidth\\\",\\\"getHeight\\\",\\\"getDevicePixelRatio\\\",\\\"dispatchAction\\\",\\\"isSSR\\\",\\\"isDisposed\\\",\\\"on\\\",\\\"off\\\",\\\"getDataURL\\\",\\\"getConnectedDataURL\\\",\\\"getOption\\\",\\\"getId\\\",\\\"updateLabelLayout\\\"],JA=(function(){function e(t){C(aF,function(r){this[r]=Fe(t[r],t)},this)}return e})();function oF(e,t){return t.mainType===YA?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Mw=1,Lw={},QA=ke(),C0=ke(),A0=0,mv=1,yv=2,qt=[\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],bf=[\\\"normal\\\",\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],sF=10,uF=9,Xi=\\\"highlight\\\",Vc=\\\"downplay\\\",Sf=\\\"select\\\",dg=\\\"unselect\\\",wf=\\\"toggleSelect\\\",P0=\\\"selectchanged\\\";function Ia(e){return e!=null&&e!==\\\"none\\\"}function _v(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function eP(e){_v(e,\\\"emphasis\\\",yv)}function tP(e){e.hoverState===yv&&_v(e,\\\"normal\\\",A0)}function M0(e){_v(e,\\\"blur\\\",mv)}function rP(e){e.hoverState===mv&&_v(e,\\\"normal\\\",A0)}function lF(e){e.selected=!0}function cF(e){e.selected=!1}function Ow(e,t,r){t(e,r)}function On(e,t,r){Ow(e,t,r),e.isGroup&&e.traverse(function(i){Ow(i,t,r)})}function Ew(e,t){switch(t){case\\\"emphasis\\\":e.hoverState=yv;break;case\\\"normal\\\":e.hoverState=A0;break;case\\\"blur\\\":e.hoverState=mv;break;case\\\"select\\\":e.selected=!0}}function fF(e,t,r,i){for(var n=e.style,a={},o=0;o<t.length;o++){var s=t[o],u=n[s];a[s]=u??(i&&i[s])}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName===\\\"style\\\"&&l.saveTo(a,t)}return a}function dF(e,t,r,i){var n=r&&xe(r,\\\"select\\\")>=0,a=!1;if(e instanceof Pe){var o=QA(e),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(Ia(s)||Ia(u)){i=i||{};var l=i.style||{};l.fill===\\\"inherit\\\"?(a=!0,i=Z({},i),l=Z({},l),l.fill=s):!Ia(l.fill)&&Ia(s)?(a=!0,i=Z({},i),l=Z({},l),l.fill=qp(s)):!Ia(l.stroke)&&Ia(u)&&(a||(i=Z({},i),l=Z({},l)),l.stroke=qp(u)),i.style=l}}if(i&&i.z2==null){a||(i=Z({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(c??sF)}return i}function vF(e,t,r){if(r&&r.z2==null){r=Z({},r);var i=e.z2SelectLift;r.z2=e.z2+(i??uF)}return r}function hF(e,t,r){var i=xe(e.currentStates,t)>=0,n=e.style.opacity,a=i?null:fF(e,[\\\"opacity\\\"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Z({},r),o=Z({opacity:i?n:a.opacity*.1},o),r.style=o),r}function Ah(e,t){var r=this.states[e];if(this.style){if(e===\\\"emphasis\\\")return dF(this,e,t,r);if(e===\\\"blur\\\")return hF(this,e,r);if(e===\\\"select\\\")return vF(this,e,r)}return r}function pF(e){e.stateProxy=Ah;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ah),r&&(r.stateProxy=Ah)}function zw(e,t){!oP(e,t)&&!e.__highByOuter&&On(e,eP)}function Rw(e,t){!oP(e,t)&&!e.__highByOuter&&On(e,tP)}function iu(e,t){e.__highByOuter|=1<<(t||0),On(e,eP)}function au(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&On(e,tP)}function nP(e){On(e,M0)}function L0(e){On(e,rP)}function iP(e){On(e,lF)}function aP(e){On(e,cF)}function oP(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function sP(e){var t=e.getModel(),r=[],i=[];t.eachComponent(function(n,a){var o=C0(a),s=oF(e,a),u=n===\\\"series\\\";!u&&i.push(s),o.isBlured&&(s.group.traverse(function(l){rP(l)}),u&&r.push(a)),o.isBlured=!1}),C(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,t)})}function vg(e,t,r,i){var n=i.getModel();r=r||\\\"coordinateSystem\\\";function a(l,c){for(var f=0;f<c.length;f++){var d=l.getItemGraphicEl(c[f]);d&&L0(d)}}if(e!=null&&!(!t||t===\\\"none\\\")){var o=n.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];n.eachSeries(function(l){var c=o===l,f=l.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r===\\\"series\\\"&&!c||r===\\\"coordinateSystem\\\"&&!d||t===\\\"series\\\"&&c)){var v=i.getViewOfSeriesModel(l);if(v.group.traverse(function(g){g.__highByOuter&&c&&t===\\\"self\\\"||M0(g)}),Ht(t))a(l.getData(),t);else if(ne(t))for(var h=Te(t),p=0;p<h.length;p++)a(l.getData(h[p]),t[h[p]]);u.push(l),C0(l).isBlured=!0}}),n.eachComponent(function(l,c){if(l!==\\\"series\\\"){var f=i.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(u,!0,n)}})}}function hg(e,t,r){if(!(e==null||t==null)){var i=r.getModel().getComponent(e,t);if(i){C0(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){M0(a)})}}}function gF(e,t,r){var i=e.seriesIndex,n=e.getData(t.dataType);if(n){var a=aa(n,t);a=(G(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),u=0;!o&&u<s;)o=n.getItemGraphicEl(u++);if(o){var l=we(o);vg(i,l.focus,l.blurScope,r)}else{var c=e.get([\\\"emphasis\\\",\\\"focus\\\"]),f=e.get([\\\"emphasis\\\",\\\"blurScope\\\"]);c!=null&&vg(i,c,f,r)}}}function O0(e,t,r,i){var n={focusSelf:!1,dispatchers:null};if(e==null||e===\\\"series\\\"||t==null||r==null)return n;var a=i.getModel().getComponent(e,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(we(s[l]).focus===\\\"self\\\"){u=!0;break}return{focusSelf:u,dispatchers:s}}function mF(e,t,r){var i=we(e),n=O0(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&hg(i.componentMainType,i.componentIndex,r),C(a,function(s){return zw(s,t)})):(vg(i.seriesIndex,i.focus,i.blurScope,r),i.focus===\\\"self\\\"&&hg(i.componentMainType,i.componentIndex,r),zw(e,t))}function yF(e,t,r){sP(r);var i=we(e),n=O0(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?C(n,function(a){return Rw(a,t)}):Rw(e,t)}function _F(e,t,r){if(mg(t)){var i=t.dataType,n=e.getData(i),a=aa(n,t);G(a)||(a=[a]),e[t.type===wf?\\\"toggleSelect\\\":t.type===Sf?\\\"select\\\":\\\"unselect\\\"](a,i)}}function Nw(e){var t=e.getAllData();C(t,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){e.isSelected(o,n)?iP(a):aP(a)})})}function bF(e){var t=[];return e.eachSeries(function(r){var i=r.getAllData();C(i,function(n){n.data;var a=n.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function pg(e,t,r){uP(e,!0),On(e,pF),wF(e,t,r)}function SF(e){uP(e,!1)}function oa(e,t,r,i){i?SF(e):pg(e,t,r)}function wF(e,t,r){var i=we(e);t!=null?(i.focus=t,i.blurScope=r):i.focus&&(i.focus=null)}var Uw=[\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],xF={itemStyle:\\\"getItemStyle\\\",lineStyle:\\\"getLineStyle\\\",areaStyle:\\\"getAreaStyle\\\"};function ou(e,t,r,i){r=r||\\\"itemStyle\\\";for(var n=0;n<Uw.length;n++){var a=Uw[n],o=t.getModel([a,r]),s=e.ensureState(a);s.style=o[xF[r]]()}}function uP(e,t){var r=t===!1,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function gg(e){return!!(e&&e.__highDownDispatcher)}function TF(e){var t=Lw[e];return t==null&&Mw<=32&&(t=Lw[e]=Mw++),t}function mg(e){var t=e.type;return t===Sf||t===dg||t===wf}function Bw(e){var t=e.type;return t===Xi||t===Vc}function kF(e){var t=QA(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var $a=An.CMD,IF=[[],[],[]],Fw=Math.sqrt,$F=Math.atan2;function DF(e,t){if(t){var r=e.data,i=e.len(),n,a,o,s,u,l,c=$a.M,f=$a.C,d=$a.L,v=$a.R,h=$a.A,p=$a.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case c:a=1;break;case d:a=1;break;case f:a=3;break;case p:a=2;break;case h:var g=t[4],m=t[5],y=Fw(t[0]*t[0]+t[1]*t[1]),_=Fw(t[2]*t[2]+t[3]*t[3]),b=$F(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case v:l[0]=r[o++],l[1]=r[o++],_r(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],_r(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var S=IF[u];S[0]=r[o++],S[1]=r[o++],_r(S,S,t),r[s++]=S[0],r[s++]=S[1]}}e.increaseVersion()}}var Ph=Math.sqrt,Jl=Math.sin,Ql=Math.cos,ns=Math.PI;function jw(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function yg(e,t){return(e[0]*t[0]+e[1]*t[1])/(jw(e)*jw(t))}function Zw(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(yg(e,t))}function Vw(e,t,r,i,n,a,o,s,u,l,c){var f=u*(ns/180),d=Ql(f)*(e-r)/2+Jl(f)*(t-i)/2,v=-1*Jl(f)*(e-r)/2+Ql(f)*(t-i)/2,h=d*d/(o*o)+v*v/(s*s);h>1&&(o*=Ph(h),s*=Ph(h));var p=(n===a?-1:1)*Ph((o*o*(s*s)-o*o*(v*v)-s*s*(d*d))/(o*o*(v*v)+s*s*(d*d)))||0,g=p*o*v/s,m=p*-s*d/o,y=(e+r)/2+Ql(f)*g-Jl(f)*m,_=(t+i)/2+Jl(f)*g+Ql(f)*m,b=Zw([1,0],[(d-g)/o,(v-m)/s]),S=[(d-g)/o,(v-m)/s],w=[(-1*d-g)/o,(-1*v-m)/s],x=Zw(S,w);if(yg(S,w)<=-1&&(x=ns),yg(S,w)>=1&&(x=0),x<0){var k=Math.round(x/ns*1e6)/1e6;x=ns*2+k%2*ns}c.addData(l,y,_,o,s,b,x,f,a)}var CF=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,AF=/-?([0-9]*\\\\.)?[0-9]+([eE]-?[0-9]+)?/g;function PF(e){var t=new An;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=An.CMD,u=e.match(CF);if(!u)return t;for(var l=0;l<u.length;l++){for(var c=u[l],f=c.charAt(0),d=void 0,v=c.match(AF)||[],h=v.length,p=0;p<h;p++)v[p]=parseFloat(v[p]);for(var g=0;g<h;){var m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,k=r,T=i,I=void 0,$=void 0;switch(f){case\\\"l\\\":r+=v[g++],i+=v[g++],d=s.L,t.addData(d,r,i);break;case\\\"L\\\":r=v[g++],i=v[g++],d=s.L,t.addData(d,r,i);break;case\\\"m\\\":r+=v[g++],i+=v[g++],d=s.M,t.addData(d,r,i),n=r,a=i,f=\\\"l\\\";break;case\\\"M\\\":r=v[g++],i=v[g++],d=s.M,t.addData(d,r,i),n=r,a=i,f=\\\"L\\\";break;case\\\"h\\\":r+=v[g++],d=s.L,t.addData(d,r,i);break;case\\\"H\\\":r=v[g++],d=s.L,t.addData(d,r,i);break;case\\\"v\\\":i+=v[g++],d=s.L,t.addData(d,r,i);break;case\\\"V\\\":i=v[g++],d=s.L,t.addData(d,r,i);break;case\\\"C\\\":d=s.C,t.addData(d,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),r=v[g-2],i=v[g-1];break;case\\\"c\\\":d=s.C,t.addData(d,v[g++]+r,v[g++]+i,v[g++]+r,v[g++]+i,v[g++]+r,v[g++]+i),r+=v[g-2],i+=v[g-1];break;case\\\"S\\\":m=r,y=i,I=t.len(),$=t.data,o===s.C&&(m+=r-$[I-4],y+=i-$[I-3]),d=s.C,k=v[g++],T=v[g++],r=v[g++],i=v[g++],t.addData(d,m,y,k,T,r,i);break;case\\\"s\\\":m=r,y=i,I=t.len(),$=t.data,o===s.C&&(m+=r-$[I-4],y+=i-$[I-3]),d=s.C,k=r+v[g++],T=i+v[g++],r+=v[g++],i+=v[g++],t.addData(d,m,y,k,T,r,i);break;case\\\"Q\\\":k=v[g++],T=v[g++],r=v[g++],i=v[g++],d=s.Q,t.addData(d,k,T,r,i);break;case\\\"q\\\":k=v[g++]+r,T=v[g++]+i,r+=v[g++],i+=v[g++],d=s.Q,t.addData(d,k,T,r,i);break;case\\\"T\\\":m=r,y=i,I=t.len(),$=t.data,o===s.Q&&(m+=r-$[I-4],y+=i-$[I-3]),r=v[g++],i=v[g++],d=s.Q,t.addData(d,m,y,r,i);break;case\\\"t\\\":m=r,y=i,I=t.len(),$=t.data,o===s.Q&&(m+=r-$[I-4],y+=i-$[I-3]),r+=v[g++],i+=v[g++],d=s.Q,t.addData(d,m,y,r,i);break;case\\\"A\\\":_=v[g++],b=v[g++],S=v[g++],w=v[g++],x=v[g++],k=r,T=i,r=v[g++],i=v[g++],d=s.A,Vw(k,T,r,i,w,x,_,b,S,d,t);break;case\\\"a\\\":_=v[g++],b=v[g++],S=v[g++],w=v[g++],x=v[g++],k=r,T=i,r+=v[g++],i+=v[g++],d=s.A,Vw(k,T,r,i,w,x,_,b,S,d,t);break}}(f===\\\"z\\\"||f===\\\"Z\\\")&&(d=s.Z,t.addData(d),r=n,i=a),o=d}return t.toStatic(),t}var lP=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(Pe);function cP(e){return e.setData!=null}function fP(e,t){var r=PF(e),i=Z({},t);return i.buildPath=function(n){var a=cP(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){DF(r,n),this.dirtyShape()},i}function MF(e,t){return new lP(fP(e,t))}function LF(e,t){var r=fP(e,t),i=(function(n){V(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(lP);return i}function OF(e,t){for(var r=[],i=e.length,n=0;n<i;n++){var a=e[n];r.push(a.getUpdatedPathProxy(!0))}var o=new Pe(t);return o.createPathProxy(),o.buildPath=function(s){if(cP(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var EF=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),bv=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new EF},t.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(Pe);bv.prototype.type=\\\"circle\\\";var zF=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),E0=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new zF},t.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,u=i.ry,l=s*n,c=u*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+c,a-s,o),r.closePath()},t})(Pe);E0.prototype.type=\\\"ellipse\\\";var dP=Math.PI,Mh=dP*2,ki=Math.sin,Da=Math.cos,RF=Math.acos,Tt=Math.atan2,Gw=Math.abs,Os=Math.sqrt,ws=Math.max,Xr=Math.min,Cr=1e-4;function NF(e,t,r,i,n,a,o,s){var u=r-e,l=i-t,c=o-n,f=s-a,d=f*u-c*l;if(!(d*d<Cr))return d=(c*(t-a)-f*(e-n))/d,[e+d*u,t+d*l]}function ec(e,t,r,i,n,a,o){var s=e-r,u=t-i,l=(o?a:-a)/Os(s*s+u*u),c=l*u,f=-l*s,d=e+c,v=t+f,h=r+c,p=i+f,g=(d+h)/2,m=(v+p)/2,y=h-d,_=p-v,b=y*y+_*_,S=n-a,w=d*p-h*v,x=(_<0?-1:1)*Os(ws(0,S*S*b-w*w)),k=(w*_-y*x)/b,T=(-w*y-_*x)/b,I=(w*_+y*x)/b,$=(-w*y+_*x)/b,A=k-g,D=T-m,P=I-g,z=$-m;return A*A+D*D>P*P+z*z&&(k=I,T=$),{cx:k,cy:T,x0:-c,y0:-f,x1:k*(n/S-1),y1:T*(n/S-1)}}function UF(e){var t;if(G(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function BF(e,t){var r,i=ws(t.r,0),n=ws(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var c=t.cx,f=t.cy,d=!!t.clockwise,v=Gw(l-u),h=v>Mh&&v%Mh;if(h>Cr&&(v=h),!(i>Cr))e.moveTo(c,f);else if(v>Mh-Cr)e.moveTo(c+i*Da(u),f+i*ki(u)),e.arc(c,f,i,u,l,!d),n>Cr&&(e.moveTo(c+n*Da(l),f+n*ki(l)),e.arc(c,f,n,l,u,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,k=void 0,T=void 0,I=void 0,$=void 0,A=void 0,D=void 0,P=void 0,z=i*Da(u),R=i*ki(u),F=n*Da(l),N=n*ki(l),j=v>Cr;if(j){var H=t.cornerRadius;H&&(r=UF(H),p=r[0],g=r[1],m=r[2],y=r[3]);var W=Gw(i-n)/2;if(_=Xr(W,m),b=Xr(W,y),S=Xr(W,p),w=Xr(W,g),T=x=ws(_,b),I=k=ws(S,w),(x>Cr||k>Cr)&&($=i*Da(l),A=i*ki(l),D=n*Da(u),P=n*ki(u),v<dP)){var q=NF(z,R,D,P,$,A,F,N);if(q){var te=z-q[0],K=R-q[1],ce=$-q[0],ye=A-q[1],et=1/ki(RF((te*ce+K*ye)/(Os(te*te+K*K)*Os(ce*ce+ye*ye)))/2),Je=Os(q[0]*q[0]+q[1]*q[1]);T=Xr(x,(i-Je)/(et+1)),I=Xr(k,(n-Je)/(et-1))}}}if(!j)e.moveTo(c+z,f+R);else if(T>Cr){var Ie=Xr(m,T),Ye=Xr(y,T),oe=ec(D,P,z,R,i,Ie,d),_e=ec($,A,F,N,i,Ye,d);e.moveTo(c+oe.cx+oe.x0,f+oe.cy+oe.y0),T<x&&Ie===Ye?e.arc(c+oe.cx,f+oe.cy,T,Tt(oe.y0,oe.x0),Tt(_e.y0,_e.x0),!d):(Ie>0&&e.arc(c+oe.cx,f+oe.cy,Ie,Tt(oe.y0,oe.x0),Tt(oe.y1,oe.x1),!d),e.arc(c,f,i,Tt(oe.cy+oe.y1,oe.cx+oe.x1),Tt(_e.cy+_e.y1,_e.cx+_e.x1),!d),Ye>0&&e.arc(c+_e.cx,f+_e.cy,Ye,Tt(_e.y1,_e.x1),Tt(_e.y0,_e.x0),!d))}else e.moveTo(c+z,f+R),e.arc(c,f,i,u,l,!d);if(!(n>Cr)||!j)e.lineTo(c+F,f+N);else if(I>Cr){var Ie=Xr(p,I),Ye=Xr(g,I),oe=ec(F,N,$,A,n,-Ye,d),_e=ec(z,R,D,P,n,-Ie,d);e.lineTo(c+oe.cx+oe.x0,f+oe.cy+oe.y0),I<k&&Ie===Ye?e.arc(c+oe.cx,f+oe.cy,I,Tt(oe.y0,oe.x0),Tt(_e.y0,_e.x0),!d):(Ye>0&&e.arc(c+oe.cx,f+oe.cy,Ye,Tt(oe.y0,oe.x0),Tt(oe.y1,oe.x1),!d),e.arc(c,f,n,Tt(oe.cy+oe.y1,oe.cx+oe.x1),Tt(_e.cy+_e.y1,_e.cx+_e.x1),d),Ie>0&&e.arc(c+_e.cx,f+_e.cy,Ie,Tt(_e.y1,_e.x1),Tt(_e.y0,_e.x0),!d))}else e.lineTo(c+F,f+N),e.arc(c,f,n,l,u,d)}e.closePath()}}}var FF=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),ui=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new FF},t.prototype.buildPath=function(r,i){BF(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Pe);ui.prototype.type=\\\"sector\\\";var jF=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),z0=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new jF},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t})(Pe);z0.prototype.type=\\\"ring\\\";function ZF(e,t,r,i){var n=[],a=[],o=[],s=[],u,l,c,f;if(i){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,v=e.length;d<v;d++)Ba(c,c,e[d]),Fa(f,f,e[d]);Ba(c,c,i[0]),Fa(f,f,i[1])}for(var d=0,v=e.length;d<v;d++){var h=e[d];if(r)u=e[d?d-1:v-1],l=e[(d+1)%v];else if(d===0||d===v-1){n.push(aU(e[d]));continue}else u=e[d-1],l=e[d+1];HC(a,l,u),Hv(a,a,t);var p=Ep(h,u),g=Ep(h,l),m=p+g;m!==0&&(p/=m,g/=m),Hv(o,a,-p),Hv(s,a,g);var y=DS([],h,o),_=DS([],h,s);i&&(Fa(y,y,c),Ba(y,y,f),Fa(_,_,c),Ba(_,_,f)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function vP(e,t,r){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=ZF(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],c=n[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],c[0],c[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,f=n.length;s<f;s++)e.lineTo(n[s][0],n[s][1])}r&&e.closePath()}}var VF=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),Sv=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new VF},t.prototype.buildPath=function(r,i){vP(r,i,!0)},t})(Pe);Sv.prototype.type=\\\"polygon\\\";var GF=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),Go=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},t.prototype.getDefaultShape=function(){return new GF},t.prototype.buildPath=function(r,i){vP(r,i,!1)},t})(Pe);Go.prototype.type=\\\"polyline\\\";var HF={},WF=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),Pn=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},t.prototype.getDefaultShape=function(){return new WF},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=GA(HF,i,this.style);n=u.x1,a=u.y1,o=u.x2,s=u.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var l=i.percent;l!==0&&(r.moveTo(n,a),l<1&&(o=n*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},t})(Pe);Pn.prototype.type=\\\"line\\\";var jt=[],qF=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function Hw(e,t,r){var i=e.cpx2,n=e.cpy2;return i!=null||n!=null?[(r?FS:ft)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?FS:ft)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?jS:It)(e.x1,e.cpx1,e.x2,t),(r?jS:It)(e.y1,e.cpy1,e.y2,t)]}var wv=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},t.prototype.getDefaultShape=function(){return new qF},t.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,u=i.cpx1,l=i.cpy1,c=i.cpx2,f=i.cpy2,d=i.percent;d!==0&&(r.moveTo(n,a),c==null||f==null?(d<1&&(vf(n,u,o,d,jt),u=jt[1],o=jt[2],vf(a,l,s,d,jt),l=jt[1],s=jt[2]),r.quadraticCurveTo(u,l,o,s)):(d<1&&(df(n,u,c,o,d,jt),u=jt[1],c=jt[2],o=jt[3],df(a,l,f,s,d,jt),l=jt[1],f=jt[2],s=jt[3]),r.bezierCurveTo(u,l,c,f,o,s)))},t.prototype.pointAt=function(r){return Hw(this.shape,r,!1)},t.prototype.tangentAt=function(r){var i=Hw(this.shape,r,!0);return f0(i,i)},t})(Pe);wv.prototype.type=\\\"bezier-curve\\\";var YF=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),xv=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},t.prototype.getDefaultShape=function(){return new YF},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,u=i.endAngle,l=i.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+n,f*o+a),r.arc(n,a,o,s,u,!l)},t})(Pe);xv.prototype.type=\\\"arc\\\";var hP=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=\\\"compound\\\",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Pe.prototype.getBoundingRect.call(this)},t})(Pe),pP=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),gP=(function(e){V(t,e);function t(r,i,n,a,o,s){var u=e.call(this,o)||this;return u.x=r??0,u.y=i??0,u.x2=n??1,u.y2=a??0,u.type=\\\"linear\\\",u.global=s||!1,u}return t})(pP),XF=(function(e){V(t,e);function t(r,i,n,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type=\\\"radial\\\",s.global=o||!1,s}return t})(pP),Lh=Math.min,KF=Math.max,tc=Math.abs,Ii=[0,0],$i=[0,0],gt=YC(),rc=gt.minTv,nc=gt.maxTv,mP=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new de;for(var i=0;i<2;i++)this._axes[i]=new de;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,u),i[3].set(a,u),r)for(var l=0;l<4;l++)i[l].transform(r);de.sub(n[0],i[1],i[0]),de.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},e.prototype.intersect=function(t,r,i){var n=!0,a=!r;return r&&de.set(r,0,0),gt.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!gt.negativeSize&&de.copy(r,n?gt.useDir?gt.dirMinTv:rc:nc),n},e.prototype._intersectCheckOneSide=function(t,r,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Ii),t._getProjMinMaxOnAxis(o,r._corners,$i),gt.negativeSize||Ii[1]<$i[0]||Ii[0]>$i[1]){if(a=!1,gt.negativeSize||i)return a;var u=tc($i[0]-Ii[1]),l=tc(Ii[0]-$i[1]);Lh(u,l)>nc.len()&&(u<l?de.scale(nc,s,-u*n):de.scale(nc,s,l*n))}else if(!i){var u=tc($i[0]-Ii[1]),l=tc(Ii[0]-$i[1]);(gt.useDir||Lh(u,l)<rc.len())&&((u<l||!gt.bidirectional)&&(de.scale(rc,s,u*n),gt.useDir&>.calcDirMTV()),(u>=l||!gt.bidirectional)&&(de.scale(rc,s,-l*n),gt.useDir&>.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,i){for(var n=this._axes[t],a=this._origin,o=r[0].dot(n)+a[t],s=o,u=o,l=1;l<r.length;l++){var c=r[l].dot(n)+a[t];s=Lh(c,s),u=KF(c,u)}i[0]=s+gt.touchThreshold,i[1]=u-gt.touchThreshold,gt.negativeSize=i[1]<i[0]},e})(),JF=1,QF=[],ej=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=JF,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new fe(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(QF)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},t})($l),tj=ke();function rj(e,t,r,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e===\\\"update\\\";if(s){var l=void 0,c=void 0,f=void 0;i?(l=J(i.duration,200),c=J(i.easing,\\\"cubicOut\\\"),f=0):(l=t.getShallow(u?\\\"animationDurationUpdate\\\":\\\"animationDuration\\\"),c=t.getShallow(u?\\\"animationEasingUpdate\\\":\\\"animationEasing\\\"),f=t.getShallow(u?\\\"animationDelayUpdate\\\":\\\"animationDelay\\\")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),le(f)&&(f=f(r,n)),le(l)&&(l=l(r));var d={duration:l||0,delay:f,easing:c};return d}else return null}function R0(e,t,r,i,n,a,o){var s=!1,u;le(n)?(o=a,a=n,n=null):ne(n)&&(a=n.cb,o=n.during,s=n.isFrom,u=n.removeOpt,n=n.dataIndex);var l=e===\\\"leave\\\";l||t.stopAnimation(\\\"leave\\\");var c=rj(e,i,n,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,v=c.easing,h={duration:f,delay:d||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,h):t.animateTo(r,h)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function ut(e,t,r,i,n,a){R0(\\\"update\\\",e,t,r,i,n,a)}function bt(e,t,r,i,n,a){R0(\\\"enter\\\",e,t,r,i,n,a)}function Ya(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope===\\\"leave\\\")return!0}return!1}function xf(e,t,r,i,n,a){Ya(e)||R0(\\\"leave\\\",e,t,r,i,n,a)}function Ww(e,t,r,i){e.removeTextContent(),e.removeTextGuideLine(),xf(e,{style:{opacity:0}},t,r,i)}function Xa(e,t,r){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(n){n.isGroup||Ww(n,t,r,i)}):Ww(e,t,r,i)}function Tv(e){tj(e).oldStyle=e.style}var _g={},Gn=[\\\"x\\\",\\\"y\\\"],mo=[\\\"width\\\",\\\"height\\\"],yP=0,_P=1,kv=2;function nj(e){return Pe.extend(e)}var ij=LF;function aj(e,t){return ij(e,t)}function Zr(e,t){_g[e]=t}function oj(e){if(_g.hasOwnProperty(e))return _g[e]}function N0(e,t,r,i){var n=MF(e,t);return r&&(i===\\\"center\\\"&&(r=SP(r,n.getBoundingRect())),wP(n,r)),n}function bP(e,t,r){var i=new dn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(r===\\\"center\\\"){var a={width:n.width,height:n.height};i.setStyle(SP(t,a))}}});return i}function SP(e,t){var r=t.width/t.height,i=e.height*r,n;i<=e.width?n=e.height:(i=e.width,n=i/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var sj=OF;function wP(e,t){if(e.applyTransform){var r=e.getBoundingRect(),i=r.calculateTransform(t);e.applyTransform(i)}}function su(e,t){return GA(e,e,{lineWidth:t}),e}function uj(e,t){return HA(e,e,t),e}var lj=Zi;function cj(e,t){for(var r=Sl([]);e&&e!==t;)As(r,e.getLocalTransform(),r),e=e.parent;return r}function U0(e,t,r){return t&&!Ht(t)&&(t=jo.getLocalTransform(t)),r&&(t=Fo([],t)),_r([],e,t)}function fj(e,t,r){var i=t[4]===0||t[5]===0||t[0]===0?1:ct(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:ct(2*t[4]/t[2]),a=[e===\\\"left\\\"?-i:e===\\\"right\\\"?i:0,e===\\\"top\\\"?-n:e===\\\"bottom\\\"?n:0];return a=U0(a,t,r),ct(a[0])>ct(a[1])?a[0]>0?\\\"right\\\":\\\"left\\\":a[1]>0?\\\"bottom\\\":\\\"top\\\"}function qw(e){return!e.isGroup}function dj(e){return e.shape!=null}function xP(e,t,r){if(!e||!t)return;function i(o){var s={};return o.traverse(function(u){qw(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return dj(o)&&(s.shape=me(o.shape)),s}var a=i(e);t.traverse(function(o){if(qw(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),ut(o,u,r,we(o).dataIndex)}}})}function vj(e,t){return Q(e,function(r){var i=r[0];i=Me(i,t.x),i=Dt(i,t.x+t.width);var n=r[1];return n=Me(n,t.y),n=Dt(n,t.y+t.height),[i,n]})}function hj(e,t){var r=Me(e.x,t.x),i=Dt(e.x+e.width,t.x+t.width),n=Me(e.y,t.y),a=Dt(e.y+e.height,t.y+t.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function B0(e,t,r){var i=Z({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf(\\\"image://\\\")===0?(n.image=e.slice(8),je(n,r),new dn(i)):N0(e.replace(\\\"path://\\\",\\\"\\\"),i,r,\\\"center\\\")}function pj(e,t,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(TP(e,t,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function TP(e,t,r,i,n,a,o,s){var u=r-e,l=i-t,c=o-n,f=s-a,d=Oh(c,f,u,l);if(gj(d))return!1;var v=e-n,h=t-a,p=Oh(v,h,u,l)/d;if(p<0||p>1)return!1;var g=Oh(v,h,c,f)/d;return!(g<0||g>1)}function Oh(e,t,r,i){return e*i-r*t}function gj(e){return e<=1e-6&&e>=-1e-6}function Tf(e,t,r,i,n){return t==null||(Re(t)?Xe[0]=Xe[1]=Xe[2]=Xe[3]=t:(Xe[0]=t[0],Xe[1]=t[1],Xe[2]=t[2],Xe[3]=t[3]),i&&(Xe[0]=Me(0,Xe[0]),Xe[1]=Me(0,Xe[1]),Xe[2]=Me(0,Xe[2]),Xe[3]=Me(0,Xe[3])),r&&(Xe[0]=-Xe[0],Xe[1]=-Xe[1],Xe[2]=-Xe[2],Xe[3]=-Xe[3]),Yw(e,Xe,\\\"x\\\",\\\"width\\\",3,1,n&&n[0]||0),Yw(e,Xe,\\\"y\\\",\\\"height\\\",0,2,n&&n[1]||0)),e}var Xe=[0,0,0,0];function Yw(e,t,r,i,n,a,o){var s=t[a]+t[n],u=e[i];e[i]+=s,o=Me(0,Dt(o,u)),e[i]<o?(e[i]=o,e[r]+=t[n]>=0?-t[n]:t[a]>=0?u+t[a]:ct(s)>1e-8?(u-o)*t[n]/s:0):e[r]-=t[n]}function Iv(e){var t=e.itemTooltipOption,r=e.componentModel,i=e.itemName,n=ee(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:[\\\"name\\\"]};s[a+\\\"Index\\\"]=o;var u=e.formatterParamsExtra;u&&C(Te(u),function(c){Nt(s,c)||(s[c]=u[c],s.$vars.push(c))});var l=we(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:je({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function bg(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Dl(e,t){if(e)if(G(e))for(var r=0;r<e.length;r++)bg(e[r],t);else bg(e,t)}function F0(e){return!e||ct(e[1])<ic&&ct(e[2])<ic||ct(e[0])<ic&&ct(e[3])<ic}var ic=1e-5;function uu(e,t){return e?fe.copy(e,t):t.clone()}function j0(e,t){return t?v0(e||an(),t):void 0}function Z0(e){return{z:e.get(\\\"z\\\")||0,zlevel:e.get(\\\"zlevel\\\")||0}}function mj(e){var t=-1/0,r=1/0;bg(e,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function V0(e,t,r){kP(e,t,r,-1/0)}function kP(e,t,r,i){if(e.ignoreModelZ)return i;var n=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),u=0;u<s.length;u++)i=Me(kP(s[u],t,r,i),i);else e.z=t,e.zlevel=r,i=Me(e.z2||0,i);if(n&&(n.z=t,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var l=e.textGuideLineConfig;a.z=t,a.zlevel=r,isFinite(i)&&(a.z2=i+(l&&l.showAbove?1:-1))}return i}function yj(e){return e.animation={duration:0},e}function _j(e,t){return t?v0(xs.transform,t):Sl(xs.transform),xs.decomposeTransform(),Ks(e,xs),e}var xs=new jo;xs.transform=an();function bj(e){var t=e.getZr().painter;return t.getType()===\\\"canvas\\\"?t:null}Zr(\\\"circle\\\",bv);Zr(\\\"ellipse\\\",E0);Zr(\\\"sector\\\",ui);Zr(\\\"ring\\\",z0);Zr(\\\"polygon\\\",Sv);Zr(\\\"polyline\\\",Go);Zr(\\\"rect\\\",ot);Zr(\\\"line\\\",Pn);Zr(\\\"bezierCurve\\\",wv);Zr(\\\"arc\\\",xv);const Sj=Object.freeze(Object.defineProperty({__proto__:null,Arc:xv,BezierCurve:wv,BoundingRect:fe,Circle:bv,CompoundPath:hP,Ellipse:E0,Group:st,HOVER_LAYER_FOR_INCREMENTAL:kv,HOVER_LAYER_FROM_THRESHOLD:_P,HOVER_LAYER_NO:yP,Image:dn,IncrementalDisplayable:ej,Line:Pn,LinearGradient:gP,OrientedBoundingRect:mP,Path:Pe,Point:de,Polygon:Sv,Polyline:Go,RadialGradient:XF,Rect:ot,Ring:z0,Sector:ui,Text:Ct,WH:mo,XY:Gn,applyTransform:U0,calcZ2Range:mj,clipPointsByRect:vj,clipRectByRect:hj,createIcon:B0,decomposeTransform:_j,ensureCopyRect:uu,ensureCopyTransform:j0,expandOrShrinkRect:Tf,extendPath:aj,extendShape:nj,getCurrentCanvasPainter:bj,getShapeClass:oj,getTransform:cj,groupTransition:xP,initProps:bt,isBoundingRectAxisAligned:F0,isElementRemoved:Ya,lineLineIntersect:TP,linePolygonIntersect:pj,makeImage:bP,makePath:N0,mergePath:sj,payloadDisableAnimation:yj,registerShape:Zr,removeElement:xf,removeElementWithFadeOut:Xa,resizePath:wP,retrieveZInfo:Z0,setTooltipConfig:Iv,subPixelOptimize:lj,subPixelOptimizeLine:su,subPixelOptimizeRect:uj,transformDirection:fj,traverseElements:Dl,traverseUpdateZ:V0,updateProps:ut},Symbol.toStringTag,{value:\\\"Module\\\"}));var $v={};function IP(e,t){for(var r=0;r<qt.length;r++){var i=qt[r],n=t[i],a=e.ensureState(i);a.style=a.style||{},a.style.text=n}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Sg(e,t,r){var i=e.labelFetcher,n=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,\\\"normal\\\",null,a,o&&o.get(\\\"formatter\\\"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=le(e.defaultText)?e.defaultText(n,e,r):e.defaultText);for(var u={normal:s},l=0;l<qt.length;l++){var c=qt[l],f=t[c];u[c]=J(i?i.getFormattedLabel(n,c,null,a,f&&f.get(\\\"formatter\\\")):null,s)}return u}function ga(e,t,r,i){r=r||$v;for(var n=e instanceof Ct,a=!1,o=0;o<bf.length;o++){var s=t[bf[o]];if(s&&s.getShallow(\\\"show\\\")){a=!0;break}}var u=n?e:e.getTextContent();if(a){n||(u||(u=new Ct,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=Sg(r,t),c=t.normal,f=!!c.getShallow(\\\"show\\\"),d=yo(c,i&&i.normal,r,!1,!n);d.text=l.normal,n||e.setTextConfig(Xw(c,r,!1));for(var o=0;o<qt.length;o++){var v=qt[o],s=t[v];if(s){var h=u.ensureState(v),p=!!J(s.getShallow(\\\"show\\\"),f);if(p!==f&&(h.ignore=!p),h.style=yo(s,i&&i[v],r,!0,!n),h.style.text=l[v],!n){var g=e.ensureState(v);g.textConfig=Xw(s,r,!0)}}}u.silent=!!c.getShallow(\\\"silent\\\"),u.style.x!=null&&(d.x=u.style.x),u.style.y!=null&&(d.y=u.style.y),u.ignore=!f,u.useStyle(d),u.dirty(),r.enableTextSetter&&(Ho(u).setLabelText=function(m){var y=Sg(r,t,m);IP(u,y)})}else u&&(u.ignore=!0);e.dirty()}function li(e,t){t=t||\\\"label\\\";for(var r={normal:e.getModel(t)},i=0;i<qt.length;i++){var n=qt[i];r[n]=e.getModel([n,t])}return r}function yo(e,t,r,i,n){var a={};return wj(a,e,r,i,n),t&&Z(a,t),a}function Xw(e,t,r){t=t||{};var i={},n,a=e.getShallow(\\\"rotate\\\"),o=J(e.getShallow(\\\"distance\\\"),r?null:5),s=e.getShallow(\\\"offset\\\");return n=e.getShallow(\\\"position\\\")||(r?null:\\\"inside\\\"),n===\\\"outside\\\"&&(n=t.defaultOutsidePosition||\\\"top\\\"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=e.get(\\\"color\\\")===\\\"inherit\\\"?t.inheritColor||null:\\\"auto\\\",t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}function wj(e,t,r,i,n){r=r||$v;var a=t.ecModel,o=a&&a.option.textStyle,s=xj(t),u;if(s){u={};var l=\\\"richInheritPlainLabel\\\",c=J(t.get(l),a?a.get(l):void 0);for(var f in s)if(s.hasOwnProperty(f)){var d=t.getModel([\\\"rich\\\",f]);e1(u[f]={},d,o,t,c,r,i,n,!1,!0)}}u&&(e.rich=u);var v=t.get(\\\"overflow\\\");v&&(e.overflow=v);var h=t.get(\\\"lineOverflow\\\");h&&(e.lineOverflow=h);var p=e,g=t.get(\\\"minMargin\\\");if(g!=null)g=Re(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=Ga.minMargin;else{var m=t.get(\\\"textMargin\\\");m!=null&&(p.margin=c0(m),p.__marginType=Ga.textMargin)}e1(e,t,o,null,null,r,i,n,!0,!1)}function xj(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||$v).rich;if(r){t=t||{};for(var i=Te(r),n=0;n<i.length;n++){var a=i[n];t[a]=1}}e=e.parentModel}return t}var Kw=[\\\"fontStyle\\\",\\\"fontWeight\\\",\\\"fontSize\\\",\\\"fontFamily\\\",\\\"textShadowColor\\\",\\\"textShadowBlur\\\",\\\"textShadowOffsetX\\\",\\\"textShadowOffsetY\\\"],Jw=[\\\"align\\\",\\\"lineHeight\\\",\\\"width\\\",\\\"height\\\",\\\"tag\\\",\\\"verticalAlign\\\",\\\"ellipsis\\\"],Qw=[\\\"padding\\\",\\\"borderWidth\\\",\\\"borderRadius\\\",\\\"borderDashOffset\\\",\\\"backgroundColor\\\",\\\"borderColor\\\",\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"];function e1(e,t,r,i,n,a,o,s,u,l){r=!o&&r||$v;var c=a&&a.inheritColor,f=t.getShallow(\\\"color\\\"),d=t.getShallow(\\\"textBorderColor\\\"),v=J(t.getShallow(\\\"opacity\\\"),r.opacity);(f===\\\"inherit\\\"||f===\\\"auto\\\")&&(c?f=c:f=null),(d===\\\"inherit\\\"||d===\\\"auto\\\")&&(c?d=c:d=null),s||(f=f||r.color,d=d||r.textBorderColor),f!=null&&(e.fill=f),d!=null&&(e.stroke=d);var h=J(t.getShallow(\\\"textBorderWidth\\\"),r.textBorderWidth);h!=null&&(e.lineWidth=h);var p=J(t.getShallow(\\\"textBorderType\\\"),r.textBorderType);p!=null&&(e.lineDash=p);var g=J(t.getShallow(\\\"textBorderDashOffset\\\"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&v==null&&!l&&(v=a&&a.defaultOpacity),v!=null&&(e.opacity=v),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var m=0;m<Kw.length;m++){var y=Kw[m],_=n!==!1&&i?Hi(t.getShallow(y),i.getShallow(y),r[y]):J(t.getShallow(y),r[y]);_!=null&&(e[y]=_)}for(var m=0;m<Jw.length;m++){var y=Jw[m],_=t.getShallow(y);_!=null&&(e[y]=_)}if(e.verticalAlign==null){var b=t.getShallow(\\\"baseline\\\");b!=null&&(e.verticalAlign=b)}if(!u||!a.disableBox){for(var m=0;m<Qw.length;m++){var y=Qw[m],_=t.getShallow(y);_!=null&&(e[y]=_)}var S=t.getShallow(\\\"borderType\\\");S!=null&&(e.borderDash=S),(e.backgroundColor===\\\"auto\\\"||e.backgroundColor===\\\"inherit\\\")&&c&&(e.backgroundColor=c),(e.borderColor===\\\"auto\\\"||e.borderColor===\\\"inherit\\\")&&c&&(e.borderColor=c)}}function Tj(e,t){var r=t&&t.getModel(\\\"textStyle\\\");return en([e.fontStyle||r&&r.getShallow(\\\"fontStyle\\\")||\\\"\\\",e.fontWeight||r&&r.getShallow(\\\"fontWeight\\\")||\\\"\\\",(e.fontSize||r&&r.getShallow(\\\"fontSize\\\")||12)+\\\"px\\\",e.fontFamily||r&&r.getShallow(\\\"fontFamily\\\")||\\\"sans-serif\\\"].join(\\\" \\\"))}var Ho=ke();function kj(e,t,r,i){if(e){var n=Ho(e);n.prevValue=n.value,n.value=r;var a=t.normal;n.valueAnimation=a.get(\\\"valueAnimation\\\"),n.valueAnimation&&(n.precision=a.get(\\\"precision\\\"),n.defaultInterpolatedText=i,n.statesModels=t)}}function Ij(e,t,r,i,n){var a=Ho(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=J(a.interpolatedValue,a.prevValue),u=a.value;function l(c){var f=AA(r,a.precision,s,u,c);a.interpolatedValue=c===1?null:f;var d=Sg({labelDataIndex:t,labelFetcher:n,defaultText:o?o(f):f+\\\"\\\"},a.statesModels,f);IP(e,d)}e.percent=0,(a.prevValue==null?bt:ut)(e,{percent:1},i,t,null,l)}var Ga={minMargin:1,textMargin:2},$j=[\\\"textStyle\\\",\\\"color\\\"],Eh=[\\\"fontStyle\\\",\\\"fontWeight\\\",\\\"fontSize\\\",\\\"fontFamily\\\",\\\"padding\\\",\\\"lineHeight\\\",\\\"rich\\\",\\\"width\\\",\\\"height\\\",\\\"overflow\\\"],zh=new Ct,Dj=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow(\\\"color\\\")||(!t&&r?r.get($j):null)},e.prototype.getFont=function(){return Tj({fontStyle:this.getShallow(\\\"fontStyle\\\"),fontWeight:this.getShallow(\\\"fontWeight\\\"),fontSize:this.getShallow(\\\"fontSize\\\"),fontFamily:this.getShallow(\\\"fontFamily\\\")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow(\\\"verticalAlign\\\")||this.getShallow(\\\"baseline\\\")},i=0;i<Eh.length;i++)r[Eh[i]]=this.getShallow(Eh[i]);return zh.useStyle(r),zh.update(),zh.getBoundingRect()},e})(),$P=[[\\\"lineWidth\\\",\\\"width\\\"],[\\\"stroke\\\",\\\"color\\\"],[\\\"opacity\\\"],[\\\"shadowBlur\\\"],[\\\"shadowOffsetX\\\"],[\\\"shadowOffsetY\\\"],[\\\"shadowColor\\\"],[\\\"lineDash\\\",\\\"type\\\"],[\\\"lineDashOffset\\\",\\\"dashOffset\\\"],[\\\"lineCap\\\",\\\"cap\\\"],[\\\"lineJoin\\\",\\\"join\\\"],[\\\"miterLimit\\\"]],Cj=ru($P),Aj=(function(){function e(){}return e.prototype.getLineStyle=function(t){return Cj(this,t)},e})(),DP=[[\\\"fill\\\",\\\"color\\\"],[\\\"stroke\\\",\\\"borderColor\\\"],[\\\"lineWidth\\\",\\\"borderWidth\\\"],[\\\"opacity\\\"],[\\\"shadowBlur\\\"],[\\\"shadowOffsetX\\\"],[\\\"shadowOffsetY\\\"],[\\\"shadowColor\\\"],[\\\"lineDash\\\",\\\"borderType\\\"],[\\\"lineDashOffset\\\",\\\"borderDashOffset\\\"],[\\\"lineCap\\\",\\\"borderCap\\\"],[\\\"lineJoin\\\",\\\"borderJoin\\\"],[\\\"miterLimit\\\",\\\"borderMiterLimit\\\"]],Pj=ru(DP),Mj=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Pj(this,t,r)},e})(),Qe=(function(){function e(t,r,i){this.parentModel=r,this.ecModel=i,this.option=t}return e.prototype.init=function(t,r,i){},e.prototype.mergeOption=function(t,r){Ze(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var i=this.option,n=i==null?i:i[t];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},e.prototype.getModel=function(t,r){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(me(this.option))},e.prototype.parsePath=function(t){return typeof t==\\\"string\\\"?t.split(\\\".\\\"):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!pe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i==\\\"object\\\"?i[t[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(t),r.parentModel)),i},e})();I0(Qe);vB(Qe);Fr(Qe,Aj);Fr(Qe,Mj);Fr(Qe,yB);Fr(Qe,Dj);var Lj=Math.round(Math.random()*10);function Dv(e){return[e||\\\"\\\",Lj++].join(\\\"_\\\")}function Oj(e){var t={};e.registerSubTypeDefaulter=function(r,i){var n=tn(r);t[n.main]=i},e.determineSubType=function(r,i){var n=i.type;if(!n){var a=tn(r).main;e.hasSubTypes(r)&&t[a]&&(n=t[a](i))}return n}}function Ej(e,t){e.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),c=l.graph,f=l.noEntryList,d={};for(C(a,function(y){d[y]=!0});f.length;){var v=f.pop(),h=c[v],p=!!d[v];p&&(s.call(u,v,h.originalDeps.slice()),delete d[v]),C(h.successor,p?m:g)}C(d,function(){var y=\\\"\\\";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){d[y]=!0,g(y)}};function r(a){var o={},s=[];return C(a,function(u){var l=i(o,u),c=l.originalDeps=t(u),f=n(c,a);l.entryCount=f.length,l.entryCount===0&&s.push(u),C(f,function(d){xe(l.predecessor,d)<0&&l.predecessor.push(d);var v=i(o,d);xe(v.successor,d)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return C(a,function(u){xe(o,u)>=0&&s.push(u)}),s}}function CP(e,t){return Ze(Ze({},e,!0),t,!0)}const zj={time:{month:[\\\"January\\\",\\\"February\\\",\\\"March\\\",\\\"April\\\",\\\"May\\\",\\\"June\\\",\\\"July\\\",\\\"August\\\",\\\"September\\\",\\\"October\\\",\\\"November\\\",\\\"December\\\"],monthAbbr:[\\\"Jan\\\",\\\"Feb\\\",\\\"Mar\\\",\\\"Apr\\\",\\\"May\\\",\\\"Jun\\\",\\\"Jul\\\",\\\"Aug\\\",\\\"Sep\\\",\\\"Oct\\\",\\\"Nov\\\",\\\"Dec\\\"],dayOfWeek:[\\\"Sunday\\\",\\\"Monday\\\",\\\"Tuesday\\\",\\\"Wednesday\\\",\\\"Thursday\\\",\\\"Friday\\\",\\\"Saturday\\\"],dayOfWeekAbbr:[\\\"Sun\\\",\\\"Mon\\\",\\\"Tue\\\",\\\"Wed\\\",\\\"Thu\\\",\\\"Fri\\\",\\\"Sat\\\"]},legend:{selector:{all:\\\"All\\\",inverse:\\\"Inv\\\"}},toolbox:{brush:{title:{rect:\\\"Box Select\\\",polygon:\\\"Lasso Select\\\",lineX:\\\"Horizontally Select\\\",lineY:\\\"Vertically Select\\\",keep:\\\"Keep Selections\\\",clear:\\\"Clear Selections\\\"}},dataView:{title:\\\"Data View\\\",lang:[\\\"Data View\\\",\\\"Close\\\",\\\"Refresh\\\"]},dataZoom:{title:{zoom:\\\"Zoom\\\",back:\\\"Zoom Reset\\\"}},magicType:{title:{line:\\\"Switch to Line Chart\\\",bar:\\\"Switch to Bar Chart\\\",stack:\\\"Stack\\\",tiled:\\\"Tile\\\"}},restore:{title:\\\"Restore\\\"},saveAsImage:{title:\\\"Save as Image\\\",lang:[\\\"Right Click to Save Image\\\"]}},series:{typeNames:{pie:\\\"Pie chart\\\",bar:\\\"Bar chart\\\",line:\\\"Line chart\\\",scatter:\\\"Scatter plot\\\",effectScatter:\\\"Ripple scatter plot\\\",radar:\\\"Radar chart\\\",tree:\\\"Tree\\\",treemap:\\\"Treemap\\\",boxplot:\\\"Boxplot\\\",candlestick:\\\"Candlestick\\\",k:\\\"K line chart\\\",heatmap:\\\"Heat map\\\",map:\\\"Map\\\",parallel:\\\"Parallel coordinate map\\\",lines:\\\"Line graph\\\",graph:\\\"Relationship graph\\\",sankey:\\\"Sankey diagram\\\",funnel:\\\"Funnel chart\\\",gauge:\\\"Gauge\\\",pictorialBar:\\\"Pictorial bar\\\",themeRiver:\\\"Theme River Map\\\",sunburst:\\\"Sunburst\\\",custom:\\\"Custom chart\\\",chart:\\\"Chart\\\"}},aria:{general:{withTitle:'This is a chart about \\\"{title}\\\"',withoutTitle:\\\"This is a chart\\\"},series:{single:{prefix:\\\"\\\",withName:\\\" with type {seriesType} named {seriesName}.\\\",withoutName:\\\" with type {seriesType}.\\\"},multiple:{prefix:\\\". It consists of {seriesCount} series count.\\\",withName:\\\" The {seriesId} series is a {seriesType} representing {seriesName}.\\\",withoutName:\\\" The {seriesId} series is a {seriesType}.\\\",separator:{middle:\\\"\\\",end:\\\"\\\"}}},data:{allData:\\\"The data is as follows: \\\",partialData:\\\"The first {displayCnt} items are: \\\",withName:\\\"the data for {name} is {value}\\\",withoutName:\\\"{value}\\\",separator:{middle:\\\", \\\",end:\\\". \\\"}}}},Rj={time:{month:[\\\"一月\\\",\\\"二月\\\",\\\"三月\\\",\\\"四月\\\",\\\"五月\\\",\\\"六月\\\",\\\"七月\\\",\\\"八月\\\",\\\"九月\\\",\\\"十月\\\",\\\"十一月\\\",\\\"十二月\\\"],monthAbbr:[\\\"1月\\\",\\\"2月\\\",\\\"3月\\\",\\\"4月\\\",\\\"5月\\\",\\\"6月\\\",\\\"7月\\\",\\\"8月\\\",\\\"9月\\\",\\\"10月\\\",\\\"11月\\\",\\\"12月\\\"],dayOfWeek:[\\\"星期日\\\",\\\"星期一\\\",\\\"星期二\\\",\\\"星期三\\\",\\\"星期四\\\",\\\"星期五\\\",\\\"星期六\\\"],dayOfWeekAbbr:[\\\"日\\\",\\\"一\\\",\\\"二\\\",\\\"三\\\",\\\"四\\\",\\\"五\\\",\\\"六\\\"]},legend:{selector:{all:\\\"全选\\\",inverse:\\\"反选\\\"}},toolbox:{brush:{title:{rect:\\\"矩形选择\\\",polygon:\\\"圈选\\\",lineX:\\\"横向选择\\\",lineY:\\\"纵向选择\\\",keep:\\\"保持选择\\\",clear:\\\"清除选择\\\"}},dataView:{title:\\\"数据视图\\\",lang:[\\\"数据视图\\\",\\\"关闭\\\",\\\"刷新\\\"]},dataZoom:{title:{zoom:\\\"区域缩放\\\",back:\\\"区域缩放还原\\\"}},magicType:{title:{line:\\\"切换为折线图\\\",bar:\\\"切换为柱状图\\\",stack:\\\"切换为堆叠\\\",tiled:\\\"切换为平铺\\\"}},restore:{title:\\\"还原\\\"},saveAsImage:{title:\\\"保存为图片\\\",lang:[\\\"右键另存为图片\\\"]}},series:{typeNames:{pie:\\\"饼图\\\",bar:\\\"柱状图\\\",line:\\\"折线图\\\",scatter:\\\"散点图\\\",effectScatter:\\\"涟漪散点图\\\",radar:\\\"雷达图\\\",tree:\\\"树图\\\",treemap:\\\"矩形树图\\\",boxplot:\\\"箱型图\\\",candlestick:\\\"K线图\\\",k:\\\"K线图\\\",heatmap:\\\"热力图\\\",map:\\\"地图\\\",parallel:\\\"平行坐标图\\\",lines:\\\"线图\\\",graph:\\\"关系图\\\",sankey:\\\"桑基图\\\",funnel:\\\"漏斗图\\\",gauge:\\\"仪表盘图\\\",pictorialBar:\\\"象形柱图\\\",themeRiver:\\\"主题河流图\\\",sunburst:\\\"旭日图\\\",custom:\\\"自定义图表\\\",chart:\\\"图表\\\"}},aria:{general:{withTitle:\\\"这是一个关于“{title}”的图表。\\\",withoutTitle:\\\"这是一个图表,\\\"},series:{single:{prefix:\\\"\\\",withName:\\\"图表类型是{seriesType},表示{seriesName}。\\\",withoutName:\\\"图表类型是{seriesType}。\\\"},multiple:{prefix:\\\"它由{seriesCount}个图表系列组成。\\\",withName:\\\"第{seriesId}个系列是一个表示{seriesName}的{seriesType},\\\",withoutName:\\\"第{seriesId}个系列是一个{seriesType},\\\",separator:{middle:\\\";\\\",end:\\\"。\\\"}}},data:{allData:\\\"其数据是——\\\",partialData:\\\"其中,前{displayCnt}项是——\\\",withName:\\\"{name}的数据是{value}\\\",withoutName:\\\"{value}\\\",separator:{middle:\\\",\\\",end:\\\"\\\"}}}};var kf=\\\"ZH\\\",G0=\\\"EN\\\",Ka=G0,Gc={},H0={},AP=pe.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ka).toUpperCase();return e.indexOf(kf)>-1?kf:Ka})():Ka;function PP(e,t){e=e.toUpperCase(),H0[e]=new Qe(t),Gc[e]=t}function Nj(e){if(ee(e)){var t=Gc[e.toUpperCase()]||{};return e===kf||e===G0?me(t):Ze(me(t),me(Gc[Ka]),!1)}else return Ze(me(e),me(Gc[Ka]),!1)}function Uj(e){return H0[e]}function Bj(){return H0[Ka]}PP(G0,zj);PP(kf,Rj);var Fj=null;function Cv(){return Fj}function MP(e,t){t.breakOption;var r=t.breakParsed;return r}function W0(e){var t=e.brk;return t?t.breaks:[]}function If(e){var t=e.brk;return t?t.hasBreaks():!1}var q0=1e3,Y0=q0*60,Es=Y0*60,gr=Es*24,t1=gr*365,jj={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Hc={year:\\\"{yyyy}\\\",month:\\\"{MMM}\\\",day:\\\"{d}\\\",hour:\\\"{HH}:{mm}\\\",minute:\\\"{HH}:{mm}\\\",second:\\\"{HH}:{mm}:{ss}\\\",millisecond:\\\"{HH}:{mm}:{ss} {SSS}\\\"},Zj=\\\"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}\\\",ac=\\\"{yyyy}-{MM}-{dd}\\\",r1={year:\\\"{yyyy}\\\",month:\\\"{yyyy}-{MM}\\\",day:ac,hour:ac+\\\" \\\"+Hc.hour,minute:ac+\\\" \\\"+Hc.minute,second:ac+\\\" \\\"+Hc.second,millisecond:Zj},Ki=[\\\"year\\\",\\\"month\\\",\\\"day\\\",\\\"hour\\\",\\\"minute\\\",\\\"second\\\",\\\"millisecond\\\"],Vj=[\\\"year\\\",\\\"half-year\\\",\\\"quarter\\\",\\\"month\\\",\\\"week\\\",\\\"half-week\\\",\\\"day\\\",\\\"half-day\\\",\\\"quarter-day\\\",\\\"hour\\\",\\\"minute\\\",\\\"second\\\",\\\"millisecond\\\"];function Gj(e){return!ee(e)&&!le(e)?Hj(e):e}function Hj(e){e=e||{};var t={},r=!0;return C(Ki,function(i){r&&(r=e[i]==null)}),C(Ki,function(i,n){var a=e[i];t[i]={};for(var o=null,s=n;s>=0;s--){var u=Ki[s],l=ne(a)&&!G(a)?a[u]:a,c=void 0;G(l)?(c=l.slice(),o=c[0]||\\\"\\\"):ee(l)?(o=l,c=[o]):(o==null?o=Hc[i]:jj[u].test(o)||(o=t[u][u][0]+\\\" \\\"+o),c=[o],r&&(c[1]=\\\"{primary|\\\"+o+\\\"}\\\")),t[i][u]=c}}),t}function Rn(e,t){return e+=\\\"\\\",\\\"0000\\\".substr(0,t-e.length)+e}function zs(e){switch(e){case\\\"half-year\\\":case\\\"quarter\\\":return\\\"month\\\";case\\\"week\\\":case\\\"half-week\\\":return\\\"day\\\";case\\\"half-day\\\":case\\\"quarter-day\\\":return\\\"hour\\\";default:return e}}function Wj(e){return e===zs(e)}function qj(e){switch(e){case\\\"year\\\":case\\\"month\\\":return\\\"day\\\";case\\\"millisecond\\\":return\\\"millisecond\\\";default:return\\\"second\\\"}}function Av(e,t,r,i){var n=Zo(e),a=n[LP(r)](),o=n[X0(r)]()+1,s=Math.floor((o-1)/3)+1,u=n[K0(r)](),l=n[\\\"get\\\"+(r?\\\"UTC\\\":\\\"\\\")+\\\"Day\\\"](),c=n[J0(r)](),f=(c-1)%12+1,d=n[Q0(r)](),v=n[eb(r)](),h=n[tb(r)](),p=c>=12?\\\"pm\\\":\\\"am\\\",g=p.toUpperCase(),m=i instanceof Qe?i:Uj(i||AP)||Bj(),y=m.getModel(\\\"time\\\"),_=y.get(\\\"month\\\"),b=y.get(\\\"monthAbbr\\\"),S=y.get(\\\"dayOfWeek\\\"),w=y.get(\\\"dayOfWeekAbbr\\\");return(t||\\\"\\\").replace(/{a}/g,p+\\\"\\\").replace(/{A}/g,g+\\\"\\\").replace(/{yyyy}/g,a+\\\"\\\").replace(/{yy}/g,Rn(a%100+\\\"\\\",2)).replace(/{Q}/g,s+\\\"\\\").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Rn(o,2)).replace(/{M}/g,o+\\\"\\\").replace(/{dd}/g,Rn(u,2)).replace(/{d}/g,u+\\\"\\\").replace(/{eeee}/g,S[l]).replace(/{ee}/g,w[l]).replace(/{e}/g,l+\\\"\\\").replace(/{HH}/g,Rn(c,2)).replace(/{H}/g,c+\\\"\\\").replace(/{hh}/g,Rn(f+\\\"\\\",2)).replace(/{h}/g,f+\\\"\\\").replace(/{mm}/g,Rn(d,2)).replace(/{m}/g,d+\\\"\\\").replace(/{ss}/g,Rn(v,2)).replace(/{s}/g,v+\\\"\\\").replace(/{SSS}/g,Rn(h,3)).replace(/{S}/g,h+\\\"\\\")}function Yj(e,t,r,i,n){var a=null;if(ee(r))a=r;else if(le(r)){var o={time:e.time,level:e.time?e.time.level:0},s=Cv();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var u=e.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||\\\"\\\"}else{var c=Wc(e.value,n);a=r[c][c][0]}}return Av(new Date(e.value),a,n,i)}function Wc(e,t){var r=Zo(e),i=r[X0(t)]()+1,n=r[K0(t)](),a=r[J0(t)](),o=r[Q0(t)](),s=r[eb(t)](),u=r[tb(t)](),l=u===0,c=l&&s===0,f=c&&o===0,d=f&&a===0,v=d&&n===1,h=v&&i===1;return h?\\\"year\\\":v?\\\"month\\\":d?\\\"day\\\":f?\\\"hour\\\":c?\\\"minute\\\":l?\\\"second\\\":\\\"millisecond\\\"}function wg(e,t,r){switch(t){case\\\"year\\\":e[OP(r)](0);case\\\"month\\\":e[EP(r)](1);case\\\"day\\\":e[zP(r)](0);case\\\"hour\\\":e[RP(r)](0);case\\\"minute\\\":e[NP(r)](0);case\\\"second\\\":e[UP(r)](0)}return e}function LP(e){return e?\\\"getUTCFullYear\\\":\\\"getFullYear\\\"}function X0(e){return e?\\\"getUTCMonth\\\":\\\"getMonth\\\"}function K0(e){return e?\\\"getUTCDate\\\":\\\"getDate\\\"}function J0(e){return e?\\\"getUTCHours\\\":\\\"getHours\\\"}function Q0(e){return e?\\\"getUTCMinutes\\\":\\\"getMinutes\\\"}function eb(e){return e?\\\"getUTCSeconds\\\":\\\"getSeconds\\\"}function tb(e){return e?\\\"getUTCMilliseconds\\\":\\\"getMilliseconds\\\"}function Xj(e){return e?\\\"setUTCFullYear\\\":\\\"setFullYear\\\"}function OP(e){return e?\\\"setUTCMonth\\\":\\\"setMonth\\\"}function EP(e){return e?\\\"setUTCDate\\\":\\\"setDate\\\"}function zP(e){return e?\\\"setUTCHours\\\":\\\"setHours\\\"}function RP(e){return e?\\\"setUTCMinutes\\\":\\\"setMinutes\\\"}function NP(e){return e?\\\"setUTCSeconds\\\":\\\"setSeconds\\\"}function UP(e){return e?\\\"setUTCMilliseconds\\\":\\\"setMilliseconds\\\"}function BP(e){if(!R6(e))return ee(e)?e:\\\"-\\\";var t=(e+\\\"\\\").split(\\\".\\\");return t[0].replace(/(\\\\d{1,3})(?=(?:\\\\d{3})+(?!\\\\d))/g,\\\"$1,\\\")+(t.length>1?\\\".\\\"+t[1]:\\\"\\\")}function FP(e,t){return e=(e||\\\"\\\").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Pv=c0;function xg(e,t,r){var i=\\\"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}\\\";function n(c){return c&&en(c)?c:\\\"-\\\"}function a(c){return Sr(c)}var o=t===\\\"time\\\",s=e instanceof Date;if(o||s){var u=o?Zo(e):e;if(isNaN(+u)){if(s)return\\\"-\\\"}else return Av(u,i,r)}if(t===\\\"ordinal\\\")return Lp(e)?n(e):Re(e)&&a(e)?e+\\\"\\\":\\\"-\\\";var l=yf(e);return a(l)?BP(l):Lp(e)?n(e):typeof e==\\\"boolean\\\"?e+\\\"\\\":\\\"-\\\"}var n1=[\\\"a\\\",\\\"b\\\",\\\"c\\\",\\\"d\\\",\\\"e\\\",\\\"f\\\",\\\"g\\\"],Rh=function(e,t){return\\\"{\\\"+e+(t??\\\"\\\")+\\\"}\\\"};function jP(e,t,r){G(t)||(t=[t]);var i=t.length;if(!i)return\\\"\\\";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=n1[a];e=e.replace(Rh(o),Rh(o,0))}for(var s=0;s<i;s++)for(var u=0;u<n.length;u++){var l=t[s][n[u]];e=e.replace(Rh(n1[u],s),r?Et(l):l)}return e}function Kj(e,t){var r=ee(e)?{color:e,extraCssText:t}:e||{},i=r.color,n=r.type;t=r.extraCssText;var a=r.renderMode||\\\"html\\\";if(!i)return\\\"\\\";if(a===\\\"html\\\")return n===\\\"subItem\\\"?'<span style=\\\"display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Et(i)+\\\";\\\"+(t||\\\"\\\")+'\\\"></span>':'<span style=\\\"display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Et(i)+\\\";\\\"+(t||\\\"\\\")+'\\\"></span>';var o=r.markerId||\\\"markerX\\\";return{renderMode:a,content:\\\"{\\\"+o+\\\"|} \\\",style:n===\\\"subItem\\\"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function sa(e,t){return t=t||\\\"transparent\\\",ee(e)?e:ne(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var qc={},Nh={},rb=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=i(qc),this._normalMasterList=i(Nh);function i(n,a){var o=[];return C(n,function(s,u){var l=s.create(t,r);o=o.concat(l||[])}),o}},e.prototype.update=function(t,r){C(this._normalMasterList,function(i){i.update&&i.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t===\\\"matrix\\\"||t===\\\"calendar\\\"){qc[t]=r;return}Nh[t]=r},e.get=function(t){return Nh[t]||qc[t]},e})();function Jj(e){return!!qc[e]}var Qj=1,ZP=2;function e5(e){VP.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var VP=se();function GP(e){var t=e.getShallow(\\\"coord\\\",!0),r=Qj;if(t==null){var i=VP.get(e.type);i&&i.getCoord2&&(r=ZP,t=i.getCoord2(e))}return{coord:t,from:r}}var Ja=0,Yc=1,t5=2;function r5(e,t){var r=e.getShallow(\\\"coordinateSystem\\\"),i=e.getShallow(\\\"coordinateSystemUsage\\\",!0),n=Ja;if(r){var a=e.mainType===\\\"series\\\";i==null&&(i=a?\\\"data\\\":\\\"box\\\"),i===\\\"data\\\"?(n=Yc,a||(n=Ja)):i===\\\"box\\\"&&(n=t5,!a&&!Jj(r)&&(n=Ja))}return{coordSysType:r,kind:n}}function n5(e){var t=e.targetModel,r=e.coordSysType,i=e.coordSysProvider,n=e.isDefaultDataCoordSys,a=r5(t),o=a.kind,s=a.coordSysType;if(n&&o!==Yc&&(o=Yc,s=r),o===Ja||s!==r)return Ja;var u=i(r,t);return u?(o===Yc?t.coordinateSystem=u:t.boxCoordinateSystem=u,o):Ja}var Xc=C,i5=[\\\"left\\\",\\\"right\\\",\\\"top\\\",\\\"bottom\\\",\\\"width\\\",\\\"height\\\"],oc=[[\\\"width\\\",\\\"left\\\",\\\"right\\\"],[\\\"height\\\",\\\"top\\\",\\\"bottom\\\"]];function nb(e,t,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(u,l){var c=u.getBoundingRect(),f=t.childAt(l+1),d=f&&f.getBoundingRect(),v,h;if(e===\\\"horizontal\\\"){var p=c.width+(d?-d.x+c.x:0);v=a+p,v>i||u.newline?(a=0,v=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);h=o+g,h>n||u.newline?(a+=s+r,o=0,h=g,s=c.width):s=Math.max(s,c.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),e===\\\"horizontal\\\"?a=v+r:o=h+r)})}var Rs=nb;He(nb,\\\"vertical\\\");He(nb,\\\"horizontal\\\");function a5(e,t){return{left:e.getShallow(\\\"left\\\",t),top:e.getShallow(\\\"top\\\",t),right:e.getShallow(\\\"right\\\",t),bottom:e.getShallow(\\\"bottom\\\",t),width:e.getShallow(\\\"width\\\",t),height:e.getShallow(\\\"height\\\",t)}}function o5(e,t){var r=Mv(e,t,{enableLayoutOnlyByCenter:!0}),i=e.getBoxLayoutParams(),n,a;if(r.type===Ts.point)a=r.refPoint,n=ri(i,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(\\\"center\\\"),s=G(o)?o:[o,o];n=ri(i,r.refContainer),a=r.boxCoordFrom===ZP?r.refPoint:[$e(s[0],n.width)+n.x,$e(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function s5(e,t){var r=o5(e,t),i=r.viewRect,n=r.center,a=e.get(\\\"radius\\\");G(a)||(a=[0,a]);var o=$e(i.width,t.getWidth()),s=$e(i.height,t.getHeight()),u=Math.min(o,s),l=$e(a[0],u/2),c=$e(a[1],u/2);return{cx:n[0],cy:n[1],r0:l,r:c,viewRect:i}}function ri(e,t,r){r=Pv(r||0);var i=t.width,n=t.height,a=$e(e.left,i),o=$e(e.top,n),s=$e(e.right,i),u=$e(e.bottom,n),l=$e(e.width,i),c=$e(e.height,n),f=r[2]+r[0],d=r[1]+r[3],v=e.aspect;switch(isNaN(l)&&(l=i-s-d-a),isNaN(c)&&(c=n-u-f-o),v!=null&&(isNaN(l)&&isNaN(c)&&(v>i/n?l=i*.8:c=n*.8),isNaN(l)&&(l=v*c),isNaN(c)&&(c=l/v)),isNaN(a)&&(a=i-s-l-d),isNaN(o)&&(o=n-u-c-f),e.left||e.right){case\\\"center\\\":a=i/2-l/2-r[3];break;case\\\"right\\\":a=i-l-d;break}switch(e.top||e.bottom){case\\\"middle\\\":case\\\"center\\\":o=n/2-c/2-r[0];break;case\\\"bottom\\\":o=n-c-f;break}a=a||0,o=o||0,isNaN(l)&&(l=i-d-a-(s||0)),isNaN(c)&&(c=n-f-o-(u||0));var h=new fe((t.x||0)+a+r[3],(t.y||0)+o+r[0],l,c);return h.margin=r,h}var Ts={rect:1,point:2};function Mv(e,t,r){var i,n,a,o=e.boxCoordinateSystem,s;if(o){var u=GP(e),l=u.coord,c=u.from;if(o.dataToLayout){a=Ts.rect,s=c;var f=o.dataToLayout(l);i=f.contentRect||f.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Ts.point,s=c,n=o.dataToPoint(l))}return a==null&&(a=Ts.rect),a===Ts.rect&&(i||(i={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function lu(e){var t=e.layoutMode||e.constructor.layoutMode;return ne(t)?t:t?{type:t}:null}function ni(e,t,r){var i=r&&r.ignoreSize;!G(i)&&(i=[i,i]);var n=o(oc[0],0),a=o(oc[1],1);u(oc[0],e,n),u(oc[1],e,a);function o(l,c){var f={},d=0,v={},h=0,p=2;if(Xc(l,function(y){v[y]=e[y]}),Xc(l,function(y){Nt(t,y)&&(f[y]=v[y]=t[y]),s(f,y)&&d++,s(v,y)&&h++}),i[c])return s(t,l[1])?v[l[2]]=null:s(t,l[2])&&(v[l[1]]=null),v;if(h===p||!d)return v;if(d>=p)return f;for(var g=0;g<l.length;g++){var m=l[g];if(!Nt(f,m)&&Nt(e,m)){f[m]=e[m];break}}return f}function s(l,c){return l[c]!=null&&l[c]!==\\\"auto\\\"}function u(l,c,f){Xc(l,function(d){c[d]=f[d]})}}function Cl(e){return u5({},e)}function u5(e,t){return t&&e&&Xc(i5,function(r){Nt(t,r)&&(e[r]=t[r])}),e}var l5=ke(),Be=(function(e){V(t,e);function t(r,i,n){var a=e.call(this,r,i,n)||this;return a.uid=Dv(\\\"ec_cpt_model\\\"),a}return t.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=lu(this),a=n?Cl(r):{},o=i.getTheme();Ze(r,o.get(this.mainType)),Ze(r,this.getDefaultOption()),n&&ni(r,a,n)},t.prototype.mergeOption=function(r,i){Ze(this.option,r,!0);var n=lu(this);n&&ni(this.option,r,n)},t.prototype.optionUpdated=function(r,i){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!cB(r))return r.defaultOption;var i=l5(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},u=n.length-1;u>=0;u--)s=Ze(s,n[u],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(r,i){var n=r+\\\"Index\\\",a=r+\\\"Id\\\";return Il(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){return a5(this,!1)},t.prototype.getZLevelKey=function(){return\\\"\\\"},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type=\\\"component\\\",r.id=\\\"\\\",r.name=\\\"\\\",r.mainType=\\\"\\\",r.subType=\\\"\\\",r.componentIndex=0})(),t})(Qe);NA(Be,Qe);hv(Be);Oj(Be);Ej(Be,c5);function c5(e){var t=[];return C(Be.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Q(t,function(r){return tn(r).main}),e!==\\\"dataset\\\"&&xe(t,\\\"dataset\\\")<=0&&t.unshift(\\\"dataset\\\"),t}var re={color:{},darkColor:{},size:{}},rt=re.color={theme:[\\\"#5070dd\\\",\\\"#b6d634\\\",\\\"#505372\\\",\\\"#ff994d\\\",\\\"#0ca8df\\\",\\\"#ffd10a\\\",\\\"#fb628b\\\",\\\"#785db0\\\",\\\"#3fbe95\\\"],neutral00:\\\"#fff\\\",neutral05:\\\"#f4f7fd\\\",neutral10:\\\"#e8ebf0\\\",neutral15:\\\"#dbdee4\\\",neutral20:\\\"#cfd2d7\\\",neutral25:\\\"#c3c5cb\\\",neutral30:\\\"#b7b9be\\\",neutral35:\\\"#aaacb2\\\",neutral40:\\\"#9ea0a5\\\",neutral45:\\\"#929399\\\",neutral50:\\\"#86878c\\\",neutral55:\\\"#797b7f\\\",neutral60:\\\"#6d6e73\\\",neutral65:\\\"#616266\\\",neutral70:\\\"#54555a\\\",neutral75:\\\"#48494d\\\",neutral80:\\\"#3c3c41\\\",neutral85:\\\"#303034\\\",neutral90:\\\"#232328\\\",neutral95:\\\"#17171b\\\",neutral99:\\\"#000\\\",accent05:\\\"#eff1f9\\\",accent10:\\\"#e0e4f2\\\",accent15:\\\"#d0d6ec\\\",accent20:\\\"#c0c9e6\\\",accent25:\\\"#b1bbdf\\\",accent30:\\\"#a1aed9\\\",accent35:\\\"#91a0d3\\\",accent40:\\\"#8292cc\\\",accent45:\\\"#7285c6\\\",accent50:\\\"#6578ba\\\",accent55:\\\"#5c6da9\\\",accent60:\\\"#536298\\\",accent65:\\\"#4a5787\\\",accent70:\\\"#404c76\\\",accent75:\\\"#374165\\\",accent80:\\\"#2e3654\\\",accent85:\\\"#252b43\\\",accent90:\\\"#1b2032\\\",accent95:\\\"#121521\\\",transparent:\\\"rgba(0,0,0,0)\\\",highlight:\\\"rgba(255,231,130,0.8)\\\"};Z(rt,{primary:rt.neutral80,secondary:rt.neutral70,tertiary:rt.neutral60,quaternary:rt.neutral50,disabled:rt.neutral20,border:rt.neutral30,borderTint:rt.neutral20,borderShade:rt.neutral40,background:rt.neutral05,backgroundTint:\\\"rgba(234,237,245,0.5)\\\",backgroundTransparent:\\\"rgba(255,255,255,0)\\\",backgroundShade:rt.neutral10,shadow:\\\"rgba(0,0,0,0.2)\\\",shadowTint:\\\"rgba(129,130,136,0.2)\\\",axisLine:rt.neutral70,axisLineTint:rt.neutral40,axisTick:rt.neutral70,axisTickMinor:rt.neutral60,axisLabel:rt.neutral70,axisSplitLine:rt.neutral15,axisMinorSplitLine:rt.neutral05});for(var Di in rt)if(rt.hasOwnProperty(Di)){var i1=rt[Di];Di===\\\"theme\\\"?re.darkColor.theme=rt.theme.slice():Di===\\\"highlight\\\"?re.darkColor.highlight=\\\"rgba(255,231,130,0.4)\\\":Di.indexOf(\\\"accent\\\")===0?re.darkColor[Di]=Wp(i1,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):re.darkColor[Di]=Wp(i1,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}re.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var HP=\\\"\\\";typeof navigator<\\\"u\\\"&&(HP=navigator.platform||\\\"\\\");var Ca=\\\"rgba(0, 0, 0, 0.2)\\\",WP=re.color.theme[0],f5=Wp(WP,null,null,.9);const qP={darkMode:\\\"auto\\\",colorBy:\\\"series\\\",color:re.color.theme,gradientColor:[f5,WP],aria:{decal:{decals:[{color:Ca,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ca,symbol:\\\"circle\\\",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ca,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ca,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ca,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ca,symbol:\\\"triangle\\\",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:HP.match(/^Win/)?\\\"Microsoft YaHei\\\":\\\"sans-serif\\\",fontSize:12,fontStyle:\\\"normal\\\",fontWeight:\\\"normal\\\"},blendMode:null,stateAnimation:{duration:300,easing:\\\"cubicOut\\\"},animation:\\\"auto\\\",animationDuration:1e3,animationDurationUpdate:500,animationEasing:\\\"cubicInOut\\\",animationEasingUpdate:\\\"cubicInOut\\\",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var mt={Must:1,Might:2,Not:3},YP=ke();function d5(e){YP(e).datasetMap=se()}function v5(e,t,r){var i={},n=ib(t);if(!n||!e)return i;var a=[],o=[],s=t.ecModel,u=YP(s).datasetMap,l=n.uid+\\\"_\\\"+r.seriesLayoutBy,c,f;e=e.slice(),C(e,function(p,g){var m=ne(p)?p:e[g]={name:p};m.type===\\\"ordinal\\\"&&c==null&&(c=g,f=h(m)),i[m.name]=[]});var d=u.get(l)||u.set(l,{categoryWayDim:f,valueWayDim:0});C(e,function(p,g){var m=p.name,y=h(p);if(c==null){var _=d.valueWayDim;v(i[m],_,y),v(o,_,y),d.valueWayDim+=y}else if(c===g)v(i[m],0,y),v(a,0,y);else{var _=d.categoryWayDim;v(i[m],_,y),v(o,_,y),d.categoryWayDim+=y}});function v(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function h(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function XP(e,t,r){var i={},n=ib(e);if(!n)return i;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Tr||a===jr)&&C(o,function(c,f){(ne(c)?c.name:c)===\\\"name\\\"&&(s=f)});var u=(function(){for(var c={},f={},d=[],v=0,h=Math.min(5,r);v<h;v++){var p=JP(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);d.push(p);var g=p===mt.Not;if(g&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v||!g&&d[c.n]===mt.Not)&&(c.n=v),m(c)&&d[c.n]!==mt.Not)return c;g||(p===mt.Might&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v)&&(f.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null})();if(u){i.value=[u.v];var l=s??u.n;i.itemName=[l],i.seriesName=[l]}return i}function ib(e){var t=e.get(\\\"data\\\",!0);if(!t)return Il(e.ecModel,\\\"dataset\\\",{index:e.get(\\\"datasetIndex\\\",!0),id:e.get(\\\"datasetId\\\",!0)},pr).models[0]}function h5(e){return!e.get(\\\"transform\\\",!0)&&!e.get(\\\"fromTransformResult\\\",!0)?[]:Il(e.ecModel,\\\"dataset\\\",{index:e.get(\\\"fromDatasetIndex\\\",!0),id:e.get(\\\"fromDatasetId\\\",!0)},pr).models}function KP(e,t){return JP(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function JP(e,t,r,i,n,a){var o,s=5;if(Wt(e))return mt.Not;var u,l;if(i){var c=i[a];ne(c)?(u=c.name,l=c.type):ee(c)&&(u=c)}if(l!=null)return l===\\\"ordinal\\\"?mt.Must:mt.Not;if(t===At){var f=e;if(r===pa){for(var d=f[a],v=0;v<(d||[]).length&&v<s;v++)if((o=b(d[n+v]))!=null)return o}else for(var v=0;v<f.length&&v<s;v++){var h=f[n+v];if(h&&(o=b(h[a]))!=null)return o}}else if(t===Tr){var p=e;if(!u)return mt.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=b(g[u]))!=null)return o}}else if(t===jr){var m=e;if(!u)return mt.Not;var d=m[u];if(!d||Wt(d))return mt.Not;for(var v=0;v<d.length&&v<s;v++)if((o=b(d[v]))!=null)return o}else if(t===ir)for(var y=e,v=0;v<y.length&&v<s;v++){var g=y[v],_=kl(g);if(!G(_))return mt.Not;if((o=b(_[a]))!=null)return o}function b(S){var w=ee(S);if(S!=null&&isFinite(Number(S))&&S!==\\\"\\\")return w?mt.Might:mt.Not;if(w&&S!==\\\"-\\\")return mt.Must}return mt.Not}var p5=se();function g5(e,t,r){var i=p5.get(t);if(!i)return r;var n=i(e);return n?r.concat(n):r}var a1=ke();ke();var ab=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,i){var n=Ut(this.get(\\\"color\\\",!0)),a=this.get(\\\"colorLayer\\\",!0);return y5(this,a1,n,a,t,r,i)},e.prototype.clearColorPalette=function(){_5(this,a1)},e})();function m5(e,t){for(var r=e.length,i=0;i<r;i++)if(e[i].length>t)return e[i];return e[r-1]}function y5(e,t,r,i,n,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var c=o==null||!i?r:m5(i,o);if(c=c||r,!(!c||!c.length)){var f=c[u];return n&&(l[n]=f),s.paletteIdx=(u+1)%c.length,f}}function _5(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var sc,is,o1,s1=\\\"\\\\0_ec_inner\\\",b5=1,ob=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Qe(a),this._locale=new Qe(o),this._optionManager=s},t.prototype.setOption=function(r,i,n){var a=c1(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,i){return this._resetOption(r,c1(i))},t.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r===\\\"recreate\\\"){var o=a.mountOption(r===\\\"recreate\\\");!this.option||r===\\\"recreate\\\"?o1(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r===\\\"timeline\\\"||r===\\\"media\\\")&&this.restoreData(),!r||r===\\\"recreate\\\"||r===\\\"timeline\\\"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r===\\\"recreate\\\"||r===\\\"media\\\"){var u=a.getMediaOption(this);u.length&&C(u,function(l){n=!0,this._mergeOption(l,i)},this)}return n},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=se(),l=i&&i.replaceMergeMainTypeMap;d5(this),C(r,function(f,d){f!=null&&(Be.hasClass(d)?d&&(s.push(d),u.set(d,!0)):n[d]=n[d]==null?me(f):Ze(n[d],f,!0))}),l&&l.each(function(f,d){Be.hasClass(d)&&!u.get(d)&&(s.push(d),u.set(d,!0))}),Be.topologicalTravel(s,Be.getAllClassMainTypes(),c,this);function c(f){var d=g5(this,f,Ut(r[f])),v=a.get(f),h=v?l&&l.get(f)?\\\"replaceMerge\\\":\\\"normalMerge\\\":\\\"replaceAll\\\",p=Z6(v,d,h);X6(p,f,Be),n[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;C(p,function(b,S){var w=b.existing,x=b.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var k=f===\\\"series\\\",T=Be.getClass(f,b.keyInfo.subType,!k);if(!T)return;if(f===\\\"tooltip\\\"){if(_)return;_=!0}if(w&&w.constructor===T)w.name=b.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var I=Z({componentIndex:S},b.keyInfo);w=new T(x,this,this,I),Z(w,I),b.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),n[f]=g,a.set(f,m),o.set(f,y),f===\\\"series\\\"&&sc(this)}this._seriesIndices||sc(this)},t.prototype.getOption=function(){var r=me(this.option);return C(r,function(i,n){if(Be.hasClass(n)){for(var a=Ut(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!tu(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[s1],r},t.prototype.setTheme=function(r){this._theme=new Qe(r),this._resetOption(\\\"recreate\\\",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var u;return n!=null?(u=[],C(Ut(n),function(l){s[l]&&u.push(s[l])})):a!=null?u=u1(\\\"id\\\",a,s):o!=null?u=u1(\\\"name\\\",o,s):u=at(s,function(l){return!!l}),l1(u,r)},t.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):at(this._componentsMap.get(n),function(l){return!!l});return u(l1(o,r));function s(l){var c=n+\\\"Index\\\",f=n+\\\"Id\\\",d=n+\\\"Name\\\";return l&&(l[c]!=null||l[f]!=null||l[d]!=null)?{mainType:n,index:l[c],id:l[f],name:l[d]}:null}function u(l){return r.filter?at(l,r.filter):l}},t.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(le(r)){var o=i,s=r;a.each(function(f,d){for(var v=0;f&&v<f.length;v++){var h=f[v];h&&s.call(o,d,h,h.componentIndex)}})}else for(var u=ee(r)?a.get(r):ne(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var c=u[l];c&&i.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var i=un(r,null);return at(this._componentsMap.get(\\\"series\\\"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get(\\\"series\\\")[r]},t.prototype.getSeriesByType=function(r){return at(this._componentsMap.get(\\\"series\\\"),function(i){return!!i&&i.subType===r})},t.prototype.getSeries=function(){return at(this._componentsMap.get(\\\"series\\\"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(\\\"series\\\")},t.prototype.eachSeries=function(r,i){is(this),C(this._seriesIndices,function(n){var a=this._componentsMap.get(\\\"series\\\")[n];r.call(i,a,n)},this)},t.prototype.eachRawSeries=function(r,i){C(this._componentsMap.get(\\\"series\\\"),function(n){n&&r.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(r,i,n){is(this),C(this._seriesIndices,function(a){var o=this._componentsMap.get(\\\"series\\\")[a];o.subType===r&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,i,n){return C(this.getSeriesByType(r),i,n)},t.prototype.isSeriesFiltered=function(r){return is(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,i){is(this);var n=[];C(this._seriesIndices,function(a){var o=this._componentsMap.get(\\\"series\\\")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=se(n)},t.prototype.restoreData=function(r){sc(this);var i=this._componentsMap,n=[];i.each(function(a,o){Be.hasClass(o)&&n.push(o)}),Be.topologicalTravel(n,Be.getAllClassMainTypes(),function(a){C(i.get(a),function(o){o&&(a!==\\\"series\\\"||!S5(o,r))&&o.restoreData()})})},t.internalField=(function(){sc=function(r){var i=r._seriesIndices=[];C(r._componentsMap.get(\\\"series\\\"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=se(i)},is=function(r){},o1=function(r,i){r.option={},r.option[s1]=b5,r._componentsMap=se({series:[]}),r._componentsCount=se();var n=i.aria;ne(n)&&n.enabled==null&&(n.enabled=!0),w5(i,r._theme.option),Ze(i,qP,!1),r._mergeOption(i,null)}})(),t})(Qe);function S5(e,t){if(t){var r=t.seriesIndex,i=t.seriesId,n=t.seriesName;return r!=null&&e.componentIndex!==r||i!=null&&e.id!==i||n!=null&&e.name!==n}}function w5(e,t){var r=e.color&&!e.colorLayer;C(t,function(i,n){n===\\\"colorLayer\\\"&&r||n===\\\"color\\\"&&e.color||Be.hasClass(n)||(typeof i==\\\"object\\\"?e[n]=e[n]?Ze(e[n],i,!1):me(i):e[n]==null&&(e[n]=i))})}function u1(e,t,r){if(G(t)){var i=se();return C(t,function(a){if(a!=null){var o=un(a,null);o!=null&&i.set(a,!0)}}),at(r,function(a){return a&&i.get(a[e])})}else{var n=un(t,null);return at(r,function(a){return a&&n!=null&&a[e]===n})}}function l1(e,t){return t.hasOwnProperty(\\\"subType\\\")?at(e,function(r){return r&&r.subType===t.subType}):e}function c1(e){var t=se();return e&&C(Ut(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Fr(ob,ab);var x5=/^(min|max)?(.+)$/,T5=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,i){t&&(C(Ut(t.series),function(o){o&&o.data&&Wt(o.data)&&Op(o.data)}),C(Ut(t.dataset),function(o){o&&o.source&&Wt(o.source)&&Op(o.source)})),t=me(t);var n=this._optionBackup,a=k5(t,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],me(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,i=this._timelineOptions;if(i.length){var n=t.getComponent(\\\"timeline\\\");n&&(r=me(i[n.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var u=0,l=n.length;u<l;u++)I5(n[u].query,r,i)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!D5(o,this._currentMediaIndices)&&(s=Q(o,function(c){return me(c===-1?a.option:n[c].option)})),this._currentMediaIndices=o,s},e})();function k5(e,t,r){var i=[],n,a,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,c=!!e.media,f=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(e.options=e.media=null),a=e),c&&G(l)&&C(l,function(v){v&&v.option&&(v.query?i.push(v):n||(n=v))}),d(a),C(u,function(v){return d(v)}),C(i,function(v){return d(v.option)});function d(v){C(t,function(h){h(v,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:n,mediaList:i}}function I5(e,t,r){var i={width:t,height:r,aspectratio:t/r},n=!0;return C(e,function(a,o){var s=o.match(x5);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();$5(i[l],a,u)||(n=!1)}}),n}function $5(e,t,r){return r===\\\"min\\\"?e>=t:r===\\\"max\\\"?e<=t:e===t}function D5(e,t){return e.join(\\\",\\\")===t.join(\\\",\\\")}var Dr=C,cu=ne,f1=[\\\"areaStyle\\\",\\\"lineStyle\\\",\\\"nodeStyle\\\",\\\"linkStyle\\\",\\\"chordStyle\\\",\\\"label\\\",\\\"labelLine\\\"];function Uh(e){var t=e&&e.itemStyle;if(t)for(var r=0,i=f1.length;r<i;r++){var n=f1[r],a=t.normal,o=t.emphasis;a&&a[n]&&(e[n]=e[n]||{},e[n].normal?Ze(e[n].normal,a[n]):e[n].normal=a[n],a[n]=null),o&&o[n]&&(e[n]=e[n]||{},e[n].emphasis?Ze(e[n].emphasis,o[n]):e[n].emphasis=o[n],o[n]=null)}}function $t(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,n=e[t].emphasis;i&&(r?(e[t].normal=e[t].emphasis=null,je(e[t],i)):e[t]=i),n&&(e.emphasis=e.emphasis||{},e.emphasis[t]=n,n.focus&&(e.emphasis.focus=n.focus),n.blurScope&&(e.emphasis.blurScope=n.blurScope))}}function ks(e){$t(e,\\\"itemStyle\\\"),$t(e,\\\"lineStyle\\\"),$t(e,\\\"areaStyle\\\"),$t(e,\\\"label\\\"),$t(e,\\\"labelLine\\\"),$t(e,\\\"upperLabel\\\"),$t(e,\\\"edgeLabel\\\")}function it(e,t){var r=cu(e)&&e[t],i=cu(r)&&r.textStyle;if(i)for(var n=0,a=dw.length;n<a;n++){var o=dw[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function lr(e){e&&(ks(e),it(e,\\\"label\\\"),e.emphasis&&it(e.emphasis,\\\"label\\\"))}function C5(e){if(cu(e)){Uh(e),ks(e),it(e,\\\"label\\\"),it(e,\\\"upperLabel\\\"),it(e,\\\"edgeLabel\\\"),e.emphasis&&(it(e.emphasis,\\\"label\\\"),it(e.emphasis,\\\"upperLabel\\\"),it(e.emphasis,\\\"edgeLabel\\\"));var t=e.markPoint;t&&(Uh(t),lr(t));var r=e.markLine;r&&(Uh(r),lr(r));var i=e.markArea;i&&lr(i);var n=e.data;if(e.type===\\\"graph\\\"){n=n||e.nodes;var a=e.links||e.edges;if(a&&!Wt(a))for(var o=0;o<a.length;o++)lr(a[o]);C(e.categories,function(l){ks(l)})}if(n&&!Wt(n))for(var o=0;o<n.length;o++)lr(n[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)lr(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)G(u[o])?(lr(u[o][0]),lr(u[o][1])):lr(u[o]);e.type===\\\"gauge\\\"?(it(e,\\\"axisLabel\\\"),it(e,\\\"title\\\"),it(e,\\\"detail\\\")):e.type===\\\"treemap\\\"?($t(e.breadcrumb,\\\"itemStyle\\\"),C(e.levels,function(l){ks(l)})):e.type===\\\"tree\\\"&&ks(e.leaves)}}function hn(e){return G(e)?e:e?[e]:[]}function d1(e){return(G(e)?e[0]:e)||{}}function A5(e,t){Dr(hn(e.series),function(i){cu(i)&&C5(i)});var r=[\\\"xAxis\\\",\\\"yAxis\\\",\\\"radiusAxis\\\",\\\"angleAxis\\\",\\\"singleAxis\\\",\\\"parallelAxis\\\",\\\"radar\\\"];t&&r.push(\\\"valueAxis\\\",\\\"categoryAxis\\\",\\\"logAxis\\\",\\\"timeAxis\\\"),Dr(r,function(i){Dr(hn(e[i]),function(n){n&&(it(n,\\\"axisLabel\\\"),it(n.axisPointer,\\\"label\\\"))})}),Dr(hn(e.parallel),function(i){var n=i&&i.parallelAxisDefault;it(n,\\\"axisLabel\\\"),it(n&&n.axisPointer,\\\"label\\\")}),Dr(hn(e.calendar),function(i){$t(i,\\\"itemStyle\\\"),it(i,\\\"dayLabel\\\"),it(i,\\\"monthLabel\\\"),it(i,\\\"yearLabel\\\")}),Dr(hn(e.radar),function(i){it(i,\\\"name\\\"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Dr(hn(e.geo),function(i){cu(i)&&(lr(i),Dr(hn(i.regions),function(n){lr(n)}))}),Dr(hn(e.timeline),function(i){lr(i),$t(i,\\\"label\\\"),$t(i,\\\"itemStyle\\\"),$t(i,\\\"controlStyle\\\",!0);var n=i.data;G(n)&&C(n,function(a){ne(a)&&($t(a,\\\"label\\\"),$t(a,\\\"itemStyle\\\"))})}),Dr(hn(e.toolbox),function(i){$t(i,\\\"iconStyle\\\"),Dr(i.feature,function(n){$t(n,\\\"iconStyle\\\")})}),it(d1(e.axisPointer),\\\"label\\\"),it(d1(e.tooltip).axisPointer,\\\"label\\\")}function P5(e,t){for(var r=t.split(\\\",\\\"),i=e,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function M5(e,t,r,i){for(var n=t.split(\\\",\\\"),a=e,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=r)}function v1(e){e&&C(L5,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var L5=[[\\\"x\\\",\\\"left\\\"],[\\\"y\\\",\\\"top\\\"],[\\\"x2\\\",\\\"right\\\"],[\\\"y2\\\",\\\"bottom\\\"]],O5=[\\\"grid\\\",\\\"geo\\\",\\\"parallel\\\",\\\"legend\\\",\\\"toolbox\\\",\\\"title\\\",\\\"visualMap\\\",\\\"dataZoom\\\",\\\"timeline\\\"],Bh=[[\\\"borderRadius\\\",\\\"barBorderRadius\\\"],[\\\"borderColor\\\",\\\"barBorderColor\\\"],[\\\"borderWidth\\\",\\\"barBorderWidth\\\"]];function as(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Bh.length;r++){var i=Bh[r][1],n=Bh[r][0];t[i]!=null&&(t[n]=t[i])}}function h1(e){e&&e.alignTo===\\\"edge\\\"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function p1(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function E5(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus=\\\"adjacency\\\"))}function QP(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&QP(e[r].children,t)}function eM(e,t){A5(e,t),e.series=Ut(e.series),C(e.series,function(r){if(ne(r)){var i=r.type;if(i===\\\"line\\\")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i===\\\"pie\\\"||i===\\\"gauge\\\"){r.clockWise!=null&&(r.clockwise=r.clockWise),h1(r.label);var n=r.data;if(n&&!Wt(n))for(var a=0;a<n.length;a++)h1(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i===\\\"gauge\\\"){var o=P5(r,\\\"pointer.color\\\");o!=null&&M5(r,\\\"itemStyle.color\\\",o)}else if(i===\\\"bar\\\"){as(r),as(r.backgroundStyle),as(r.emphasis);var n=r.data;if(n&&!Wt(n))for(var a=0;a<n.length;a++)typeof n[a]==\\\"object\\\"&&(as(n[a]),as(n[a]&&n[a].emphasis))}else if(i===\\\"sunburst\\\"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),p1(r),QP(r.data,p1)}else i===\\\"graph\\\"||i===\\\"sankey\\\"?E5(r):i===\\\"map\\\"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&je(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),v1(r)}}),e.dataRange&&(e.visualMap=e.dataRange),C(O5,function(r){var i=e[r];i&&(G(i)||(i=[i]),C(i,function(n){v1(n)}))})}var z5=k0(R5);function R5(e){var t=se();e.eachSeries(function(r){var i=r.get(\\\"stack\\\");if(i){var n=t.get(i)||t.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo(\\\"stackResultDimension\\\"),stackedOverDimension:a.getCalculationInfo(\\\"stackedOverDimension\\\"),stackedDimension:a.getCalculationInfo(\\\"stackedDimension\\\"),stackedByDimension:a.getCalculationInfo(\\\"stackedByDimension\\\"),isStackedByIndex:a.getCalculationInfo(\\\"isStackedByIndex\\\"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get(\\\"stackOrder\\\")||\\\"seriesAsc\\\";n===\\\"seriesDesc\\\"&&r.reverse(),C(r,function(a,o){a.data.setCalculationInfo(\\\"stackedOnSeries\\\",o>0?r[o-1].seriesModel:null)}),N5(r)}})}function N5(e){C(e,function(t,r){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get(\\\"stackStrategy\\\")||\\\"samesign\\\";o.modify(a,function(l,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return n;var v,h;s?h=o.getRawIndex(f):v=o.get(t.stackedByDimension,f);for(var p=NaN,g=r-1;g>=0;g--){var m=e[g];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,v)),h>=0){var y=m.data.getByRawIndex(m.stackResultDimension,h);if(u===\\\"all\\\"||u===\\\"positive\\\"&&y>0||u===\\\"negative\\\"&&y<0||u===\\\"samesign\\\"&&d>=0&&y>0||u===\\\"samesign\\\"&&d<=0&&y<0){d=E6(d,y),p=y;break}}}return i[0]=d,i[1]=p,i})})}var Lv=(function(){function e(t){this.data=t.data||(t.sourceFormat===jr?{}:[]),this.sourceFormat=t.sourceFormat||KA,this.seriesLayoutBy=t.seriesLayoutBy||ln,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&KP(this,i)===mt.Must&&(n.type=\\\"ordinal\\\")}}return e})();function sb(e){return e instanceof Lv}function Tg(e,t,r){r=r||rM(e);var i=t.seriesLayoutBy,n=B5(e,r,i,t.sourceHeader,t.dimensions),a=new Lv({data:e,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:me(t)});return a}function tM(e){return new Lv({data:e,sourceFormat:Wt(e)?Kn:ir})}function U5(e){return new Lv({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:me(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function rM(e){var t=KA;if(Wt(e))t=Kn;else if(G(e)){e.length===0&&(t=At);for(var r=0,i=e.length;r<i;r++){var n=e[r];if(n!=null){if(G(n)||Wt(n)){t=At;break}else if(ne(n)){t=Tr;break}}}}else if(ne(e)){for(var a in e)if(Nt(e,a)&&Ht(e[a])){t=jr;break}}return t}function B5(e,t,r,i,n){var a,o;if(!e)return{dimensionsDefine:g1(n),startIndex:o,dimensionsDetectedCount:a};if(t===At){var s=e;i===\\\"auto\\\"||i==null?m1(function(l){l!=null&&l!==\\\"-\\\"&&(ee(l)?o==null&&(o=1):o=0)},r,s,10):o=Re(i)?i:i?1:0,!n&&o===1&&(n=[],m1(function(l,c){n[c]=l!=null?l+\\\"\\\":\\\"\\\"},r,s,1/0)),a=n?n.length:r===pa?s.length:s[0]?s[0].length:null}else if(t===Tr)n||(n=F5(e));else if(t===jr)n||(n=[],C(e,function(l,c){n.push(c)}));else if(t===ir){var u=kl(e[0]);a=G(u)&&u.length||1}return{startIndex:o,dimensionsDefine:g1(n),dimensionsDetectedCount:a}}function F5(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Te(r)}function g1(e){if(e){var t=se();return Q(e,function(r,i){r=ne(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+=\\\"\\\",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+=\\\"-\\\"+a.count++:t.set(n.name,{count:1}),n})}}function m1(e,t,r,i){if(t===pa)for(var n=0;n<r.length&&n<i;n++)e(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)e(a[n],n)}function nM(e){var t=e.sourceFormat;return t===Tr||t===jr}var Ci,Ai,Pi,Mi,y1,_1,iM=(function(){function e(t,r){var i=sb(t)?t:tM(t);this._source=i;var n=this._data=i.data,a=i.sourceFormat;i.seriesLayoutBy,a===Kn&&(this._offset=0,this._dimSize=r,this._data=n),_1(this,n,i)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;_1=function(o,s,u){var l=u.sourceFormat,c=u.seriesLayoutBy,f=u.startIndex,d=u.dimensionsDefine,v=y1[ub(l,c)];if(Z(o,v),l===Kn)o.getItem=r,o.count=n,o.fillStorage=i;else{var h=aM(l,c);o.getItem=Fe(h,null,s,f,d);var p=oM(l,c);o.count=Fe(p,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,c=l*o,f=0;f<l;f++)s[f]=u[c+f];return s},i=function(o,s,u,l){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var v=l[d],h=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,m=u[d],y=0;y<g;y++){var _=c[y*f+d];m[o+y]=_,_<h&&(h=_),_>p&&(p=_)}v[0]=h,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};y1=(t={},t[At+\\\"_\\\"+ln]={pure:!0,appendData:a},t[At+\\\"_\\\"+pa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: \\\"row\\\".')}},t[Tr]={pure:!0,appendData:a},t[jr]={pure:!0,appendData:function(o){var s=this._data;C(o,function(u,l){for(var c=s[l]||(s[l]=[]),f=0;f<(u||[]).length;f++)c.push(u[f])})}},t[ir]={appendData:a},t[Kn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),e})(),uc=function(e){G(e)||IA(\\\"series.data or dataset.source must be an array.\\\")};Ci={},Ci[At+\\\"_\\\"+ln]=uc,Ci[At+\\\"_\\\"+pa]=uc,Ci[Tr]=uc,Ci[jr]=function(e,t){for(var r=0;r<t.length;r++){var i=t[r].name;i==null&&IA(\\\"dimension name must not be null/undefined.\\\")}},Ci[ir]=uc;var b1=function(e,t,r,i){return e[i]},j5=(Ai={},Ai[At+\\\"_\\\"+ln]=function(e,t,r,i){return e[i+t]},Ai[At+\\\"_\\\"+pa]=function(e,t,r,i,n){i+=t;for(var a=n||[],o=e,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[i]:null}return a},Ai[Tr]=b1,Ai[jr]=function(e,t,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?e[s]:null;a[o]=u?u[i]:null}return a},Ai[ir]=b1,Ai);function aM(e,t){var r=j5[ub(e,t)];return r}var S1=function(e,t,r){return e.length},Z5=(Pi={},Pi[At+\\\"_\\\"+ln]=function(e,t,r){return Math.max(0,e.length-t)},Pi[At+\\\"_\\\"+pa]=function(e,t,r){var i=e[0];return i?Math.max(0,i.length-t):0},Pi[Tr]=S1,Pi[jr]=function(e,t,r){var i=r[0].name,n=i!=null?e[i]:null;return n?n.length:0},Pi[ir]=S1,Pi);function oM(e,t){var r=Z5[ub(e,t)];return r}var Fh=function(e,t,r){return e[t]},V5=(Mi={},Mi[At]=Fh,Mi[Tr]=function(e,t,r){return e[r]},Mi[jr]=Fh,Mi[ir]=function(e,t,r){var i=kl(e);return i instanceof Array?i[t]:i},Mi[Kn]=Fh,Mi);function sM(e){var t=V5[e];return t}function ub(e,t){return e===At?e+\\\"_\\\"+t:e}function _o(e,t,r){if(e){var i=e.getRawDataItem(t);if(i!=null){var n=e.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=n.getDimensionProperty(o);return sM(a)(i,o,s)}else{var u=i;return a===ir&&(u=kl(i)),u}}}}var G5=/\\\\{@(.+?)\\\\}/g,lb=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var i=this.getData(r),n=this.getRawValue(t,r),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),u=i.getItemVisual(t,\\\"style\\\"),l=u&&u[i.getItemVisual(t,\\\"drawType\\\")||\\\"fill\\\"],c=u&&u.stroke,f=this.mainType,d=f===\\\"series\\\",v=i.userOutput&&i.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:l,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:[\\\"seriesName\\\",\\\"name\\\",\\\"value\\\"]}},e.prototype.getFormattedLabel=function(t,r,i,n,a,o){r=r||\\\"normal\\\";var s=this.getData(i),u=this.getDataParams(t,i);if(o&&(u.value=o.interpolatedValue),n!=null&&G(u.value)&&(u.value=u.value[n]),!a){var l=s.getItemModel(t);a=l.get(r===\\\"normal\\\"?[\\\"label\\\",\\\"formatter\\\"]:[r,\\\"label\\\",\\\"formatter\\\"])}if(le(a))return u.status=r,u.dimensionIndex=n,a(u);if(ee(a)){var c=jP(a,u);return c.replace(G5,function(f,d){var v=d.length,h=d;h.charAt(0)===\\\"[\\\"&&h.charAt(v-1)===\\\"]\\\"&&(h=+h.slice(1,v-1));var p=_o(s,t,h);if(o&&G(o.interpolatedValue)){var g=s.getDimensionIndex(h);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+\\\"\\\":\\\"\\\"})}},e.prototype.getRawValue=function(t,r){return _o(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,i){},e})();function w1(e){var t,r;return ne(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Ns(e){return new H5(e)}var H5=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,i=t&&t.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,u=c(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a=\\\"reset\\\");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a===\\\"reset\\\")&&(this._dirty=!1,f=this._doReset(i)),this._modBy=u,this._modDataCount=l;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,h=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(f||v<h)){var p=this._progress;if(G(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,h,u,l);else this._doProgress(p,v,h,u,l)}this._dueIndex=h;var m=this._settedOutputEnd!=null?this._settedOutputEnd:h;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,i,n,a){x1.reset(r,i,n,a),this._callingProgress=t,this._callingProgress({start:r,end:i,count:i-r,next:x1.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),G(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),x1=(function(){var e,t,r,i,n,a={reset:function(u,l,c,f){t=u,e=l,r=c,i=f,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var u=t%n*r+Math.ceil(t/n),l=t>=e?null:u<i?u:t;return t++,l}})();function Qa(e,t){var r=t&&t.type;return r===\\\"ordinal\\\"?e:(r===\\\"time\\\"&&!Re(e)&&e!=null&&e!==\\\"-\\\"&&(e=+Zo(e)),e==null||e===\\\"\\\"?NaN:Number(e))}se({number:function(e){return parseFloat(e)},time:function(e){return+Zo(e)},trim:function(e){return ee(e)?en(e):e}});var W5=(function(){function e(t,r){var i=t===\\\"desc\\\";this._resultLT=i?1:-1,r==null&&(r=i?\\\"min\\\":\\\"max\\\"),this._incomparable=r===\\\"min\\\"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var i=Re(t)?t:yf(t),n=Re(r)?r:yf(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=ee(t),u=ee(r);s&&(i=u?t:0),u&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},e})();function uM(e){var t=\\\"\\\",r=-1/0,i=-1/0,n=1/0,a=1/0;return e&&(e.g!=null&&(t+=\\\"G\\\"+e.g,r=e.g),e.ge!=null&&(t+=\\\"GE\\\"+e.ge,i=e.ge),e.l!=null&&(t+=\\\"L\\\"+e.l,n=e.l),e.le!=null&&(t+=\\\"LE\\\"+e.le,a=e.le)),{key:t,g:r,ge:i,l:n,le:a}}function lM(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var q5=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error(\\\"not supported\\\")},e.prototype.getRawDataItem=function(t){throw new Error(\\\"not supported\\\")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Qa(t,r)},e})();function Y5(e,t){var r=new q5,i=e.data,n=r.sourceFormat=e.sourceFormat,a=e.startIndex,o=\\\"\\\";e.seriesLayoutBy!==ln&&Zt(o);var s=[],u={},l=e.dimensionsDefine;if(l)C(l,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _=\\\"\\\";Nt(u,m)&&Zt(_),u[m]=y}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=aM(n,ln);t.__isBuiltIn&&(r.getRawDataItem=function(p){return f(i,a,s,p)},r.getRawData=Fe(X5,null,e)),r.cloneRawData=Fe(K5,null,e);var d=oM(n,ln);r.count=Fe(d,null,i,a,s);var v=sM(n);r.retrieveValue=function(p,g){var m=f(i,a,s,p);return h(m,g)};var h=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return v(p,g,m.name)}};return r.getDimensionInfo=Fe(J5,null,s,u),r.cloneAllDimensionInfo=Fe(Q5,null,s),r}function X5(e){var t=e.sourceFormat;if(!cb(t)){var r=\\\"\\\";Zt(r)}return e.data}function K5(e){var t=e.sourceFormat,r=e.data;if(!cb(t)){var i=\\\"\\\";Zt(i)}if(t===At){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(t===Tr){for(var n=[],a=0,o=r.length;a<o;a++)n.push(Z({},r[a]));return n}}function J5(e,t,r){if(r!=null){if(Re(r)||!isNaN(r)&&!Nt(t,r))return e[r];if(Nt(t,r))return t[r]}}function Q5(e){return me(e)}var cM=se();function eZ(e){e=me(e);var t=e.type,r=\\\"\\\";t||Zt(r);var i=t.split(\\\":\\\");i.length!==2&&Zt(r);var n=!1;i[0]===\\\"echarts\\\"&&(t=i[1],n=!0),e.__isBuiltIn=n,cM.set(t,e)}function tZ(e,t,r){var i=Ut(e),n=i.length,a=\\\"\\\";n||Zt(a);for(var o=0,s=n;o<s;o++){var u=i[o];t=rZ(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function rZ(e,t,r,i){var n=\\\"\\\";t.length||Zt(n),ne(e)||Zt(n);var a=e.type,o=cM.get(a);o||Zt(n);var s=Q(t,function(l){return Y5(l,o)}),u=Ut(o.transform({upstream:s[0],upstreamList:s,config:me(e.config)}));return Q(u,function(l,c){var f=\\\"\\\";ne(l)||Zt(f),l.data||Zt(f);var d=rM(l.data);cb(d)||Zt(f);var v,h=t[0];if(h&&c===0&&!l.dimensions){var p=h.startIndex;p&&(l.data=h.data.slice(0,p).concat(l.data)),v={seriesLayoutBy:ln,sourceHeader:p,dimensions:h.metaRawOption.dimensions}}else v={seriesLayoutBy:ln,sourceHeader:0,dimensions:l.dimensions};return Tg(l.data,v,null)})}function cb(e){return e===At||e===Tr}var nZ=typeof Uint32Array===Vo?Array:Uint32Array,iZ=typeof Uint16Array===Vo?Array:Uint16Array,fM=typeof Int32Array===Vo?Array:Int32Array,T1=typeof Float64Array===Vo?Array:Float64Array,dM={float:T1,int:fM,ordinal:Array,number:Array,time:T1},jh;function Aa(e){return e>65535?nZ:iZ}function aZ(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function k1(e,t,r,i,n){var a=dM[r||\\\"float\\\"];if(n){var o=e[t],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new a(i)}var kg=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=se()}return e.prototype.initData=function(t,r,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=jh[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],nM(n),this._dimensions=Q(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(t,a),this._chunks[a]=new dM[r||\\\"float\\\"](this._rawCount),this._rawExtent[a]=dr(),a},e.prototype.collectOrdinalMeta=function(t,r){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=dr());for(var u=a[t],l=o;l<s;l++){var c=i[l]=r.parseAndCollect(i[l]);isNaN(c)||(u[0]=Math.min(c,u[0]),u[1]=Math.max(c,u[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type=\\\"ordinal\\\"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],i=r.ordinalMeta;return i},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,i=this.count();r.appendData(t);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},e.prototype.appendValues=function(t,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<a;l++){var c=n[l];k1(i,l,c.type,u,!0)}for(var f=[],d=s;d<u;d++)for(var v=d-s,h=0;h<a;h++){var c=n[h],p=jh.arrayRows.call(this,t[v]||f,c.property,v,h);i[h][d]=p;var g=o[h];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=Q(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];u[c]||(u[c]=dr()),k1(a,c,f.type,r,i)}if(n.fillStorage)n.fillStorage(t,r,a,u);else for(var d=[],v=t;v<r;v++){d=n.getItem(v,d);for(var h=0;h<s;h++){var p=a[h],g=this._dimValueGetter(d,l[h],v,h);p[v]=g;var m=u[h];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var i=[],n=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[t];return i?i[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},e.prototype.getMedian=function(t){var r=[];this.each([t],function(n){isNaN(n)||r.push(n)}),y0(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,i=r[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<t)n=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=r[a]}else t=new i(r.buffer,0,n)}else{var i=Aa(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Aa(i._rawCount),o=new a(n),s=[],u=t.length,l=0,c=t[0],f=i._chunks,d=0;d<n;d++){var v=void 0,h=i.getRawIndex(d);if(u===0)v=r(d);else if(u===1){var p=f[c][h];v=r(p,d)}else{for(var g=0;g<u;g++)s[g]=f[t[g]][h];s[g]=d,v=r.apply(null,s)}v&&(o[l++]=h)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},e.prototype.selectRange=function(t){var r=this.clone(),i=r._count;if(!i)return this;var n=Te(t),a=n.length;if(!a)return this;var o=r.count(),s=Aa(r._rawCount),u=new s(o),l=0,c=n[0],f=t[c][0],d=t[c][1],v=r._chunks,h=!1;if(!r._indices){var p=0;if(a===1){for(var g=v[n[0]],m=0;m<i;m++){var y=g[m];(y>=f&&y<=d||isNaN(y))&&(u[l++]=p),p++}h=!0}else if(a===2){for(var g=v[n[0]],_=v[n[1]],b=t[n[1]][0],S=t[n[1]][1],m=0;m<i;m++){var y=g[m],w=_[m];(y>=f&&y<=d||isNaN(y))&&(w>=b&&w<=S||isNaN(w))&&(u[l++]=p),p++}h=!0}}if(!h)if(a===1)for(var m=0;m<o;m++){var x=r.getRawIndex(m),y=v[n[0]][x];(y>=f&&y<=d||isNaN(y))&&(u[l++]=x)}else for(var m=0;m<o;m++){for(var k=!0,x=r.getRawIndex(m),T=0;T<a;T++){var I=n[T],y=v[I][x];(y<t[I][0]||y>t[I][1])&&(k=!1)}k&&(u[l++]=r.getRawIndex(m))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var i=this.clone(t);return this._updateDims(i,t,r),i},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,i){for(var n=t._chunks,a=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,c=0;c<r.length;c++)l[r[c]]=dr();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),v=0;v<o;v++)u[v]=n[r[v]][d];u[o]=f;var h=i&&i.apply(null,u);if(h!=null){typeof h!=\\\"object\\\"&&(a[0]=h,h=a);for(var c=0;c<h.length;c++){var p=r[c],g=h[c],m=l[p],y=n[p];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),c,f,d,v=new(Aa(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var h=1;h<o-1;h+=u){for(var p=Math.min(h+u,o-1),g=Math.min(h+u*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var b=this.getRawIndex(_),S=a[b];isNaN(S)||(y+=S)}y/=g-p;var w=h,x=Math.min(h+u,o),k=h-1,T=a[l];c=-1,d=w;for(var I=-1,$=0,_=w;_<x;_++){var b=this.getRawIndex(_),S=a[b];if(isNaN(S)){$++,I<0&&(I=b);continue}f=Math.abs((k-m)*(S-T)-(k-_)*(y-T)),f>c&&(c=f,d=b)}$>0&&$<x-w&&(v[s++]=Math.min(I,d),d=Math.max(I,d)),v[s++]=d,l=d}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},e.prototype.minmaxDownSample=function(t,r){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/r),o=n[t],s=this.count(),u=new(Aa(this._rawCount))(Math.ceil(s/a)*2),l=0,c=0;c<s;c+=a){var f=c,d=o[this.getRawIndex(f)],v=c,h=o[this.getRawIndex(v)],p=a;c+a>s&&(p=s-c);for(var g=0;g<p;g++){var m=this.getRawIndex(c+g),y=o[m];y<d&&(d=y,f=c+g),y>h&&(h=y,v=c+g)}var _=this.getRawIndex(f),b=this.getRawIndex(v);f<v?(u[l++]=_,u[l++]=b):(u[l++]=b,u[l++]=_)}return i._count=l,i._indices=u,i._updateGetRawIdx(),i},e.prototype.downSample=function(t,r,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[t],c=this.count(),f=a._rawExtent[t]=dr(),d=new(Aa(this._rawCount))(Math.ceil(c/u)),v=0,h=0;h<c;h+=u){u>c-h&&(u=c-h,s.length=u);for(var p=0;p<u;p++){var g=this.getRawIndex(h+p);s[p]=l[g]}var m=i(s),y=this.getRawIndex(Math.min(h+n(s,m)||0,c-1));l[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),d[v++]=y}return a._count=v,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[t[0]][s],a);break;case 2:r(n[t[0]][s],n[t[1]][s],a);break;default:for(var u=0,l=[];u<i;u++)l[u]=n[t[u]][s];l[u]=a,r.apply(null,l)}}},e.prototype.getDataExtent=function(t,r){var i=this._chunks[t],n=dr();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[t].slice();var s=this._extent,u=s[t]||(s[t]={}),l=uM(r),c=l.key,f=u[c];if(f)return f.slice();for(var d=n[0],v=n[1],h=0;h<a;h++){var p=this.getRawIndex(h),g=i[p];(!r||lM(l,g))&&(g<d&&(d=g),g>v&&(v=g))}return u[c]=[d,v]},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},e.prototype.clone=function(t,r){var i=new e,n=this._chunks,a=t&&ti(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?aZ(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=me(this._extent),t._rawExtent=me(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var i=this._indices.length;r=new t(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,i,n,a){return Qa(r[a],this._dimensions[a])}jh={arrayRows:t,objectRows:function(r,i,n,a){return Qa(r[i],this._dimensions[a])},keyedColumns:t,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return Qa(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),e})(),oZ=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+\\\"_\\\"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(lc(t)){var o=t,s=void 0,u=void 0,l=void 0;if(i){var c=r[0];c.prepareSource(),l=c.getSource(),s=l.data,u=l.sourceFormat,a=[c._getVersionSign()]}else s=o.get(\\\"data\\\",!0),u=Wt(s)?Kn:ir,a=[];var f=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},v=J(f.seriesLayoutBy,d.seriesLayoutBy)||null,h=J(f.sourceHeader,d.sourceHeader),p=J(f.dimensions,d.dimensions),g=v!==d.seriesLayoutBy||!!h!=!!d.sourceHeader||p;n=g?[Tg(s,{seriesLayoutBy:v,sourceHeader:h,dimensions:p},u)]:[]}else{var m=t;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=m.get(\\\"source\\\",!0);n=[Tg(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,i=r.get(\\\"transform\\\",!0),n=r.get(\\\"fromTransformResult\\\",!0);if(n!=null){var a=\\\"\\\";t.length!==1&&I1(a)}var o,s=[],u=[];return C(t,function(l){l.prepareSource();var c=l.getSource(n||0),f=\\\"\\\";n!=null&&!c&&I1(f),s.push(c),u.push(l._getVersionSign())}),i?o=tZ(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[U5(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var i=t[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var u=this._getUpstreamSourceManagers()[0];lc(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,i):(s=new kg,s.initData(new iM(r,t.length),t)),o[i]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(lc(t)){var r=ib(t);return r?[r.getSourceManager()]:[]}else return Q(h5(t),function(i){return i.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,i,n;if(lc(t))r=t.get(\\\"seriesLayoutBy\\\",!0),i=t.get(\\\"sourceHeader\\\",!0),n=t.get(\\\"dimensions\\\",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get(\\\"seriesLayoutBy\\\",!0),i=a.get(\\\"sourceHeader\\\",!0),n=a.get(\\\"dimensions\\\",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},e})();function lc(e){return e.mainType===\\\"series\\\"}function I1(e){throw new Error(e)}var sZ=\\\"line-height:1\\\";function vM(e){var t=e.lineHeight;return t==null?sZ:\\\"line-height:\\\"+Et(t+\\\"\\\")+\\\"px\\\"}function hM(e,t){var r=e.color||re.color.tertiary,i=e.fontSize||12,n=e.fontWeight||\\\"400\\\",a=e.color||re.color.secondary,o=e.fontSize||14,s=e.fontWeight||\\\"900\\\";return t===\\\"html\\\"?{nameStyle:\\\"font-size:\\\"+Et(i+\\\"\\\")+\\\"px;color:\\\"+Et(r)+\\\";font-weight:\\\"+Et(n+\\\"\\\"),valueStyle:\\\"font-size:\\\"+Et(o+\\\"\\\")+\\\"px;color:\\\"+Et(a)+\\\";font-weight:\\\"+Et(s+\\\"\\\")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var uZ=[0,10,20,30],lZ=[\\\"\\\",`\\n`,`\\n\\n`,`\\n\\n\\n`];function ua(e,t){return t.type=e,t}function Ig(e){return e.type===\\\"section\\\"}function pM(e){return Ig(e)?cZ:fZ}function gM(e){if(Ig(e)){var t=0,r=e.blocks.length,i=r>1||r>0&&!e.noHeader;return C(e.blocks,function(n){var a=gM(n);a>=t&&(t=a+ +(i&&(!a||Ig(n)&&!n.noHeader)))}),t}return 0}function cZ(e,t,r,i){var n=t.noHeader,a=dZ(gM(t)),o=[],s=t.blocks||[];Nr(!s||G(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:\\\"asc\\\",valueDesc:\\\"desc\\\"};if(Nt(l,u)){var c=new W5(l[u],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else u===\\\"seriesDesc\\\"&&s.reverse()}C(s,function(p,g){var m=t.valueFormatter,y=pM(p)(m?Z(Z({},e),{valueFormatter:m}):e,p,g>0?a.html:0,i);y!=null&&o.push(y)});var f=e.renderMode===\\\"richText\\\"?o.join(a.richText):$g(i,o.join(\\\"\\\"),n?r:a.html);if(n)return f;var d=xg(t.header,\\\"ordinal\\\",e.useUTC),v=hM(i,e.renderMode).nameStyle,h=vM(i);return e.renderMode===\\\"richText\\\"?mM(e,d,v)+a.richText+f:$g(i,'<div style=\\\"'+v+\\\";\\\"+h+';\\\">'+Et(d)+\\\"</div>\\\"+f,r)}function fZ(e,t,r,i){var n=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=G(b)?b:[b],Q(b,function(S,w){return xg(S,G(v)?v[w]:v,l)})};if(!(a&&o)){var f=s?\\\"\\\":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||re.color.secondary,n),d=a?\\\"\\\":xg(u,\\\"ordinal\\\",l),v=t.valueType,h=o?[]:c(t.value,t.rawDataIndex),p=!s||!a,g=!s&&a,m=hM(i,n),y=m.nameStyle,_=m.valueStyle;return n===\\\"richText\\\"?(s?\\\"\\\":f)+(a?\\\"\\\":mM(e,d,y))+(o?\\\"\\\":pZ(e,h,p,g,_)):$g(i,(s?\\\"\\\":f)+(a?\\\"\\\":vZ(d,!s,y))+(o?\\\"\\\":hZ(h,p,g,_)),r)}}function $1(e,t,r,i,n,a){if(e){var o=pM(e),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function dZ(e){return{html:uZ[e],richText:lZ[e]}}function $g(e,t,r){var i='<div style=\\\"clear:both\\\"></div>',n=\\\"margin: \\\"+r+\\\"px 0 0\\\",a=vM(e);return'<div style=\\\"'+n+\\\";\\\"+a+';\\\">'+t+i+\\\"</div>\\\"}function vZ(e,t,r){var i=t?\\\"margin-left:2px\\\":\\\"\\\";return'<span style=\\\"'+r+\\\";\\\"+i+'\\\">'+Et(e)+\\\"</span>\\\"}function hZ(e,t,r,i){var n=r?\\\"10px\\\":\\\"20px\\\",a=t?\\\"float:right;margin-left:\\\"+n:\\\"\\\";return e=G(e)?e:[e],'<span style=\\\"'+a+\\\";\\\"+i+'\\\">'+Q(e,function(o){return Et(o)}).join(\\\" \\\")+\\\"</span>\\\"}function mM(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function pZ(e,t,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:\\\"right\\\"}),e.markupStyleCreator.wrapRichTextStyle(G(t)?t.join(\\\" \\\"):t,a)}function gZ(e,t){var r=e.getData().getItemVisual(t,\\\"style\\\"),i=r[e.visualDrawType];return sa(i)}function yM(e,t){var r=e.get(\\\"padding\\\");return r??(t===\\\"richText\\\"?[8,10]:10)}var Zh=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=S0()}return e.prototype._generateStyleName=function(){return\\\"__EC_aUTo_\\\"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,i){var n=i===\\\"richText\\\"?this._generateStyleName():null,a=Kj({color:r,type:t,renderMode:i,markerId:n});return ee(a)?a:(this.richTextStyles[n]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var i={};G(r)?C(r,function(a){return Z(i,a)}):Z(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,\\\"{\\\"+n+\\\"|\\\"+t+\\\"}\\\"},e})();function mZ(e){var t=e.series,r=e.dataIndex,i=e.multipleSeries,n=t.getData(),a=n.mapDimensionsAll(\\\"defaultedTooltip\\\"),o=a.length,s=t.getRawValue(r),u=G(s),l=gZ(t,r),c,f,d,v;if(o>1||u&&!o){var h=yZ(s,t,r,a,l);c=h.inlineValues,f=h.inlineValueTypes,d=h.blocks,v=h.inlineValues[0]}else if(o){var p=n.getDimensionInfo(a[0]);v=c=_o(n,r,a[0]),f=p.type}else v=c=u?s[0]:s;var g=w0(t),m=g&&t.name||\\\"\\\",y=n.getName(r),_=i?m:y;return ua(\\\"section\\\",{header:m,noHeader:i||!g,sortParam:v,blocks:[ua(\\\"nameValue\\\",{markerType:\\\"item\\\",markerColor:l,name:_,noName:!en(_),value:c,valueType:f,rawDataIndex:n.getRawIndex(r)})].concat(d||[])})}function yZ(e,t,r,i,n){var a=t.getData(),o=ti(e,function(f,d,v){var h=a.getDimensionInfo(v);return f=f||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],u=[],l=[];i.length?C(i,function(f){c(_o(a,r,f),f)}):C(e,c);function c(f,d){var v=a.getDimensionInfo(d);!v||v.otherDims.tooltip===!1||(o?l.push(ua(\\\"nameValue\\\",{markerType:\\\"subItem\\\",markerColor:n,name:v.displayName,value:f,valueType:v.type})):(s.push(f),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var Nn=ke();function cc(e,t){return e.getName(t)||e.getId(t)}var _Z=\\\"__universalTransitionEnabled\\\",er=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Ns({count:SZ,reset:wZ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=Nn(this).sourceManager=new oZ(this);a.prepareSource();var o=this.getInitialData(r,n);C1(o,this),this.dataTask.context.data=o,Nn(this).dataBeforeProcessed=o,D1(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=lu(this),a=n?Cl(r):{},o=this.subType;Be.hasClass(o)&&(o+=\\\"Series\\\"),Ze(r,i.getTheme().get(this.subType)),Ze(r,this.getDefaultOption()),eu(r,\\\"label\\\",[\\\"show\\\"]),this.fillDataTextStyle(r.data),n&&ni(r,a,n)},t.prototype.mergeOption=function(r,i){r=Ze(this.option,r,!0),this.fillDataTextStyle(r.data);var n=lu(this);n&&ni(this.option,r,n);var a=Nn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);C1(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Nn(this).dataBeforeProcessed=o,D1(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Wt(r))for(var i=[\\\"show\\\"],n=0;n<r.length;n++)r[n]&&r[n].label&&eu(r[n],\\\"label\\\",i)},t.prototype.getInitialData=function(r,i){},t.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},t.prototype.getData=function(r){var i=Dg(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return Nn(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var i=Dg(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}Nn(this).data=r},t.prototype.getEncode=function(){var r=this.get(\\\"encode\\\",!0);if(r)return se(r)},t.prototype.getSourceManager=function(){return Nn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Nn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get(\\\"colorBy\\\");return r||\\\"series\\\"},t.prototype.isColorBySeries=function(){return this.getColorBy()===\\\"series\\\"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(n);a==null&&(a=1/0);for(var c=[],f=1/0,d=-1,v=0,h=o.getDimensionIndex(i),p=o.getStore(),g=0,m=p.count();g<m;g++){var y=p.get(h,g),_=u.dataToCoord(y),b=l-_,S=Math.abs(b);S<=a&&((S<f||S===f&&b>=0&&d<0)&&(f=S,d=b,v=0),b===d&&(c[v++]=g))}return c.length=v,c},t.prototype.formatTooltip=function(r,i,n){return mZ({series:this,dataIndex:r,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(pe.node&&!(r&&r.ssr))return!1;var i=this.getShallow(\\\"animation\\\");return i&&this.getData().count()>this.getShallow(\\\"animationThreshold\\\")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=ab.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get(\\\"progressive\\\")},t.prototype.getProgressiveThreshold=function(){return this.get(\\\"progressiveThreshold\\\")},t.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},t.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a===\\\"series\\\"||n===\\\"all\\\"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=cc(o,u);n[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===\\\"all\\\")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=Te(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n===\\\"all\\\"||n[cc(a,r)])&&!a.getItemModel(r).get([\\\"select\\\",\\\"disabled\\\"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[_Z])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,u=i.length;if(!(!s||!u)){if(s===\\\"series\\\")o.selectedMap=\\\"all\\\";else if(s===\\\"multiple\\\"){ne(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,c=0;c<u;c++){var f=i[c],d=cc(r,f);l[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s===\\\"single\\\"||s===!0){var v=i[u-1],d=cc(r,v);o.selectedMap=(n={},n[d]=!0,n),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},t.registerClass=function(r){return Be.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type=\\\"series.__base__\\\",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol=\\\"circle\\\",r.visualStyleAccessPath=\\\"itemStyle\\\",r.visualDrawType=\\\"fill\\\"})(),t})(Be);Fr(er,lb);Fr(er,ab);NA(er,Be);function D1(e){var t=e.name;w0(e)||(e.name=bZ(e)||t)}function bZ(e){var t=e.getRawData(),r=t.mapDimensionsAll(\\\"seriesName\\\"),i=[];return C(r,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(\\\" \\\")}function SZ(e){return e.model.getRawData().count()}function wZ(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),xZ}function xZ(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function C1(e,t){C(iU(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,He(TZ,t))})}function TZ(e,t){var r=Dg(e);return r&&r.setOutputEnd((t||this).count()),t}function Dg(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(e.uid))}return i}}var Ur=(function(){function e(){this.group=new st,this.uid=Dv(\\\"viewComponent\\\")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){},e.prototype.updateLayout=function(t,r,i,n){},e.prototype.updateVisual=function(t,r,i,n){},e.prototype.toggleBlurSeries=function(t,r,i){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();I0(Ur);hv(Ur);function fb(){var e=ke();return function(t){var r=e(t),i=t.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&\\\"reset\\\"}}var _M=ke(),kZ=fb(),Gt=(function(){function e(){this.group=new st,this.uid=Dv(\\\"viewChart\\\"),this.renderTask=Ns({plan:IZ,reset:$Z}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.highlight=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&P1(a,n,\\\"emphasis\\\")},e.prototype.downplay=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&P1(a,n,\\\"normal\\\")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.updateVisual=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.eachRendered=function(t){Dl(this.group,t)},e.markUpdateMethod=function(t,r){_M(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type=\\\"chart\\\"})(),e})();function A1(e,t,r){e&&gg(e)&&(t===\\\"emphasis\\\"?iu:au)(e,r)}function P1(e,t,r){var i=aa(e,t),n=t&&t.highlightKey!=null?TF(t.highlightKey):null;i!=null?C(Ut(i),function(a){A1(e.getItemGraphicEl(a),r,n)}):e.eachItemGraphicEl(function(a){A1(a,r,n)})}I0(Gt);hv(Gt);function IZ(e){return kZ(e.model)}function $Z(e){var t=e.model,r=e.ecModel,i=e.api,n=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=n&&_M(n).updateMethod,u=a?\\\"incrementalPrepareRender\\\":s&&o[s]?s:\\\"render\\\";return u!==\\\"render\\\"&&o[u](t,r,i,n),DZ[u]}var DZ={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},$f=\\\"\\\\0__throttleOriginMethod\\\",M1=\\\"\\\\0__throttleRate\\\",L1=\\\"\\\\0__throttleType\\\";function db(e,t,r){var i,n=0,a=0,o=null,s,u,l,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(u,l||[])}var d=function(){for(var v=[],h=0;h<arguments.length;h++)v[h]=arguments[h];i=new Date().getTime(),u=this,l=v;var p=c||t,g=c||r;c=null,s=i-(g?n:a)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),n=i};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(v){c=v},d}function bM(e,t,r,i){var n=e[t];if(n){var a=n[$f]||n,o=n[L1],s=n[M1];if(s!==r||o!==i){if(r==null||!i)return e[t]=a;n=e[t]=db(a,r,i===\\\"debounce\\\"),n[$f]=a,n[L1]=i,n[M1]=r}return n}}function Cg(e,t){var r=e[t];r&&r[$f]&&(r.clear&&r.clear(),e[t]=r[$f])}var O1=ke(),E1={itemStyle:ru(DP,!0),lineStyle:ru($P,!0)},CZ={lineStyle:\\\"stroke\\\",itemStyle:\\\"fill\\\"};function SM(e,t){var r=e.visualStyleMapper||E1[t];return r||(console.warn(\\\"Unknown style type '\\\"+t+\\\"'.\\\"),E1.itemStyle)}function wM(e,t){var r=e.visualDrawType||CZ[t];return r||(console.warn(\\\"Unknown style type '\\\"+t+\\\"'.\\\"),\\\"fill\\\")}var AZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),i=e.visualStyleAccessPath||\\\"itemStyle\\\",n=e.getModel(i),a=SM(e,i),o=a(n),s=n.getShallow(\\\"decal\\\");s&&(r.setVisual(\\\"decal\\\",s),s.dirty=!0);var u=wM(e,i),l=o[u],c=le(l)?l:null,f=o.fill===\\\"auto\\\"||o.stroke===\\\"auto\\\";if(!o[u]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=d,r.setVisual(\\\"colorFromPalette\\\",!0)),o.fill=o.fill===\\\"auto\\\"||le(o.fill)?d:o.fill,o.stroke=o.stroke===\\\"auto\\\"||le(o.stroke)?d:o.stroke}if(r.setVisual(\\\"style\\\",o),r.setVisual(\\\"drawType\\\",u),!t.isSeriesFiltered(e)&&c)return r.setVisual(\\\"colorFromPalette\\\",!1),{dataEach:function(v,h){var p=e.getDataParams(h),g=Z({},o);g[u]=c(p),v.setItemVisual(h,\\\"style\\\",g)}}}},os=new Qe,PZ={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var r=e.getData(),i=e.visualStyleAccessPath||\\\"itemStyle\\\",n=SM(e,i),a=r.getVisual(\\\"drawType\\\");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){os.option=u[i];var l=n(os),c=o.ensureUniqueItemVisual(s,\\\"style\\\");Z(c,l),os.option.decal&&(o.setItemVisual(s,\\\"decal\\\",os.option.decal),os.option.decal.dirty=!0),a in l&&o.setItemVisual(s,\\\"colorFromPalette\\\",!1)}}:null}}}},MZ={performRawSeries:!0,overallReset:function(e){var t=se();e.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+\\\"-\\\"+r.getColorBy();O1(r).scope=t.get(i)||t.set(i,{})}}),e.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=O1(r).scope,s=r.visualStyleAccessPath||\\\"itemStyle\\\",u=wM(r,s);a.each(function(l){var c=a.getRawIndex(l);n[c]=l}),i.each(function(l){var c=n[l],f=a.getItemVisual(c,\\\"colorFromPalette\\\");if(f){var d=a.ensureUniqueItemVisual(c,\\\"style\\\"),v=i.getName(l)||l+\\\"\\\",h=i.count();d[u]=r.getColorFromPalette(v,o,h)}})}})}},fc=Math.PI;function LZ(e,t){t=t||{},je(t,{text:\\\"loading\\\",textColor:re.color.primary,fontSize:12,fontWeight:\\\"normal\\\",fontStyle:\\\"normal\\\",fontFamily:\\\"sans-serif\\\",maskColor:\\\"rgba(255,255,255,0.8)\\\",showSpinner:!0,color:re.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new st,i=new ot({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(i);var n=new Ct({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new ot({style:{fill:\\\"none\\\"},textContent:n,textConfig:{position:\\\"right\\\",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new xv({shape:{startAngle:-fc/2,endAngle:-fc/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:\\\"round\\\",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:fc*3/2}).start(\\\"circularInOut\\\"),o.animateShape(!0).when(1e3,{startAngle:fc*3/2}).delay(300).start(\\\"circularInOut\\\"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:c}),a.setShape({x:l-u,y:c-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var xM=(function(){function e(t,r,i,n){this._stageTaskMap=se(),this.ecInstance=t,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var i=this._pipelineMap.get(t.uid),n=t.__preparePipelineContext?t.__preparePipelineContext(r,i):EA(t,r,i);t.pipelineContext=i.context=n},e.prototype.restorePipelines=function(t,r){var i=this,n=i._pipelineMap=se();r.eachSeries(function(a){var o=t.painter.type===\\\"canvas\\\"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),i=this.api;C(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o=\\\"\\\";Nr(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},e.prototype.prepareView=function(t,r,i,n){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,i){this._performStageTasks(this._visualHandlers,t,r,i)},e.prototype._performStageTasks=function(t,r,i,n){n=n||{};var a=!1,o=this;C(t,function(u,l){if(!(n.visualType&&n.visualType!==u.visualType)){var c=o._stageTaskMap.get(u.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var v,h=d.agentStubMap;h.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&d.dirty(),o.updatePayload(d,i);var p=o.getPerformArgs(d,n.block);h.each(function(g){g.perform(p)}),d.perform(p)&&(a=!0)}else f&&f.each(function(g,m){s(n,g)&&g.dirty();var y=o.getPerformArgs(g,n.block);y.skip=!u.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(y)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!==\\\"remain\\\"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=se(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(c):u?i.eachRawSeriesByType(u,c):l&&l(i,n).each(c);function c(f){var d=f.uid,v=s.set(d,o&&o.get(d)||Ns({plan:NZ,reset:UZ,count:FZ}));v.context={model:f,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,v)}},e.prototype._createOverallStageTask=function(t,r,i,n){var a=this,o=r.overallTask=r.overallTask||Ns({reset:OZ});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=se(),l=t.seriesType,c=t.getTargetSeries,f=t.dirtyOnOverallProgress,d=!1,v=\\\"\\\";Nr(!t.createOnAllSeries,v),l?i.eachRawSeriesByType(l,h):c?c(i,n).each(h):C(i.getSeries(),h);function h(p){var g=p.uid,m=u.set(g,s&&s.get(g)||(d=!0,Ns({reset:EZ,onDirty:RZ})));m.context={model:p,dirtyOnOverallProgress:f},m.agent=o,m.__block=f,a._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},e.wrapStageHandler=function(t,r){return le(t)&&(t={overallReset:t,seriesType:jZ(t)}),t.uid=Dv(\\\"stageHandler\\\"),r&&(t.visualType=r),t},e})();function OZ(e){e.overallReset(e.ecModel,e.api,e.payload)}function EZ(e){return e.dirtyOnOverallProgress&&zZ}function zZ(){this.agent.dirty(),this.getDownstream().dirty()}function RZ(){this.agent&&this.agent.dirty()}function NZ(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function UZ(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ut(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Q(t,function(r,i){return TM(i)}):BZ}var BZ=TM(0);function TM(e){return function(t,r){var i=r.data,n=r.resetDefines[e];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function FZ(e){return e.data.count()}function jZ(e){Df=null;try{e(fu,kM)}catch{}return Df}var fu={},kM={},Df;IM(fu,ob);IM(kM,JA);fu.eachSeriesByType=fu.eachRawSeriesByType=function(e){Df=e};fu.eachComponent=function(e){e.mainType===\\\"series\\\"&&e.subType&&(Df=e.subType)};function IM(e,t){for(var r in t.prototype)e[r]=_t}var Y=re.darkColor,z1=Y.background,ss=function(){return{axisLine:{lineStyle:{color:Y.axisLine}},splitLine:{lineStyle:{color:Y.axisSplitLine}},splitArea:{areaStyle:{color:[Y.backgroundTint,Y.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Y.axisMinorSplitLine}},axisLabel:{color:Y.axisLabel},axisName:{}}},R1={label:{color:Y.secondary},itemStyle:{borderColor:Y.borderTint},dividerLineStyle:{color:Y.border}},$M={darkMode:!0,color:Y.theme,backgroundColor:z1,axisPointer:{lineStyle:{color:Y.border},crossStyle:{color:Y.borderShade},label:{color:Y.tertiary}},legend:{textStyle:{color:Y.secondary},pageTextStyle:{color:Y.tertiary}},textStyle:{color:Y.secondary},title:{textStyle:{color:Y.primary},subtextStyle:{color:Y.quaternary}},toolbox:{iconStyle:{borderColor:Y.accent50},feature:{dataView:{backgroundColor:z1,textColor:Y.primary,textareaColor:Y.background,textareaBorderColor:Y.border,buttonColor:Y.accent50,buttonTextColor:Y.neutral00}}},tooltip:{backgroundColor:Y.neutral20,defaultBorderColor:Y.border,textStyle:{color:Y.tertiary}},dataZoom:{borderColor:Y.accent10,textStyle:{color:Y.tertiary},brushStyle:{color:Y.backgroundTint},handleStyle:{color:Y.neutral00,borderColor:Y.accent20},moveHandleStyle:{color:Y.accent40},emphasis:{handleStyle:{borderColor:Y.accent50}},dataBackground:{lineStyle:{color:Y.accent30},areaStyle:{color:Y.accent20}},selectedDataBackground:{lineStyle:{color:Y.accent50},areaStyle:{color:Y.accent30}}},visualMap:{textStyle:{color:Y.secondary},handleStyle:{borderColor:Y.neutral30}},timeline:{lineStyle:{color:Y.accent10},label:{color:Y.tertiary},controlStyle:{color:Y.accent30,borderColor:Y.accent30}},calendar:{itemStyle:{color:Y.neutral00,borderColor:Y.neutral20},dayLabel:{color:Y.tertiary},monthLabel:{color:Y.secondary},yearLabel:{color:Y.secondary}},matrix:{x:R1,y:R1,backgroundColor:{borderColor:Y.axisLine},body:{itemStyle:{borderColor:Y.borderTint}}},timeAxis:ss(),logAxis:ss(),valueAxis:ss(),categoryAxis:ss(),line:{symbol:\\\"circle\\\"},graph:{color:Y.theme},gauge:{title:{color:Y.secondary},axisLine:{lineStyle:{color:[[1,Y.neutral05]]}},axisLabel:{color:Y.axisLabel},detail:{color:Y.primary}},candlestick:{itemStyle:{color:\\\"#f64e56\\\",color0:\\\"#54ea92\\\",borderColor:\\\"#f64e56\\\",borderColor0:\\\"#54ea92\\\"}},funnel:{itemStyle:{borderColor:Y.background}},radar:(function(){var e=ss();return e.axisName={color:Y.axisLabel},e.axisLine.lineStyle.color=Y.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:Y.neutral20,textStyle:{color:Y.secondary}},emphasis:{itemStyle:{color:Y.neutral30}}}},sunburst:{itemStyle:{borderColor:Y.background}},map:{itemStyle:{borderColor:Y.border,areaColor:Y.neutral10},label:{color:Y.tertiary},emphasis:{label:{color:Y.primary},itemStyle:{areaColor:Y.highlight}},select:{label:{color:Y.primary},itemStyle:{areaColor:Y.highlight}}},geo:{itemStyle:{borderColor:Y.border,areaColor:Y.neutral10},emphasis:{label:{color:Y.primary},itemStyle:{areaColor:Y.highlight}},select:{label:{color:Y.primary},itemStyle:{color:Y.highlight}}}};$M.categoryAxis.splitLine.show=!1;var ZZ=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},i={},n={};if(ee(t)){var a=tn(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=[\\\"Index\\\",\\\"Name\\\",\\\"Id\\\"],s={name:1,dataIndex:1,dataType:1};C(t,function(u,l){for(var c=!1,f=0;f<o.length;f++){var d=o[f],v=l.lastIndexOf(d);if(v>0&&v===l.length-d.length){var h=l.slice(0,v);h!==\\\"data\\\"&&(r.mainType=h,r[d.toLowerCase()]=u,c=!0)}}s.hasOwnProperty(l)&&(i[l]=u,c=!0),c||(n[l]=u)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},e.prototype.filter=function(t,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return c(u,o,\\\"mainType\\\")&&c(u,o,\\\"subType\\\")&&c(u,o,\\\"index\\\",\\\"componentIndex\\\")&&c(u,o,\\\"name\\\")&&c(u,o,\\\"id\\\")&&c(l,a,\\\"name\\\")&&c(l,a,\\\"dataIndex\\\")&&c(l,a,\\\"dataType\\\")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,n,a));function c(f,d,v,h){return f[v]==null||d[h||v]===f[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),Ag=[\\\"symbol\\\",\\\"symbolSize\\\",\\\"symbolRotate\\\",\\\"symbolOffset\\\"],N1=Ag.concat([\\\"symbolKeepAspect\\\"]),VZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual(\\\"legendIcon\\\",e.legendIcon),!e.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Ag.length;o++){var s=Ag[o],u=e.get(s);le(u)?(a=!0,n[s]=u):i[s]=u}if(i.symbol=i.symbol||e.defaultSymbol,r.setVisual(Z({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get(\\\"symbolKeepAspect\\\")},i)),t.isSeriesFiltered(e))return;var l=Te(n);function c(f,d){for(var v=e.getRawValue(d),h=e.getDataParams(d),p=0;p<l.length;p++){var g=l[p];f.setItemVisual(d,g,n[g](v,h))}}return{dataEach:a?c:null}}},GZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<N1.length;s++){var u=N1[s],l=o.getShallow(u,!0);l!=null&&n.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?i:null}}};function HZ(e,t,r){switch(r){case\\\"color\\\":var i=e.getItemVisual(t,\\\"style\\\");return i[e.getVisual(\\\"drawType\\\")];case\\\"opacity\\\":return e.getItemVisual(t,\\\"style\\\").opacity;case\\\"symbol\\\":case\\\"symbolSize\\\":case\\\"liftZ\\\":return e.getItemVisual(t,r)}}function DM(e,t){switch(t){case\\\"color\\\":var r=e.getVisual(\\\"style\\\");return r[e.getVisual(\\\"drawType\\\")];case\\\"opacity\\\":return e.getVisual(\\\"style\\\").opacity;case\\\"symbol\\\":case\\\"symbolSize\\\":case\\\"liftZ\\\":return e.getVisual(t)}}function WZ(e,t){function r(i,n){var a=[];return i.eachComponent({mainType:\\\"series\\\",subType:e,query:n},function(o){a.push(o.seriesIndex)}),a}C([[e+\\\"ToggleSelect\\\",\\\"toggleSelect\\\"],[e+\\\"Select\\\",\\\"select\\\"],[e+\\\"UnSelect\\\",\\\"unselect\\\"]],function(i){t(i[0],function(n,a,o){n=Z({},n),o.dispatchAction(Z(n,{type:i[1],seriesIndex:r(a,n)}))})})}function Pa(e,t,r,i,n){var a=e+t;r.isSilent(a)||i.eachComponent({mainType:\\\"series\\\",subType:\\\"pie\\\"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=n.selected,c=0;c<l.length;c++)if(l[c].seriesIndex===s){var f=o.getData(),d=aa(f,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:G(d)?f.getName(d[0]):f.getName(d),selected:ee(u)?u:Z({},u)})}})}function qZ(e,t,r){e.on(\\\"selectchanged\\\",function(i){var n=r.getModel();i.isFromClick?(Pa(\\\"map\\\",\\\"selectchanged\\\",t,n,i),Pa(\\\"pie\\\",\\\"selectchanged\\\",t,n,i)):i.fromAction===\\\"select\\\"?(Pa(\\\"map\\\",\\\"selected\\\",t,n,i),Pa(\\\"pie\\\",\\\"selected\\\",t,n,i)):i.fromAction===\\\"unselect\\\"&&(Pa(\\\"map\\\",\\\"unselected\\\",t,n,i),Pa(\\\"pie\\\",\\\"unselected\\\",t,n,i))})}function Is(e,t,r){for(var i;e&&!(t(e)&&(i=e,r));)e=e.__hostTarget||e.parent;return i}var sr=new Ln,CM={};function YZ(e,t){CM[e]=t}function XZ(e){return CM[e]}var Ov=ke();function KZ(e){Ov(e).prepare={}}function JZ(e){Ov(e).fullUpdate={}}function QZ(e){return Ov(e).prepare}function Wo(e){return Ov(e).fullUpdate}var eV=Math.round(Math.random()*9),tV=typeof Object.defineProperty==\\\"function\\\",rV=(function(){function e(){this._id=\\\"__ec_inner_\\\"+eV++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var i=this._guard(t);return tV?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError(\\\"Value of WeakMap is not a non-null object.\\\");return t},e})(),nV=Pe.extend({type:\\\"triangle\\\",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i+a),e.lineTo(r-n,i+a),e.closePath()}}),iV=Pe.extend({type:\\\"diamond\\\",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i),e.lineTo(r,i+a),e.lineTo(r-n,i),e.closePath()}}),aV=Pe.extend({type:\\\"pin\\\",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),u=i-a+o+s,l=Math.asin(s/o),c=Math.cos(l)*o,f=Math.sin(l),d=Math.cos(l),v=o*.6,h=o*.7;e.moveTo(r-c,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+c-f*v,u+s+d*v,r,i-h,r,i),e.bezierCurveTo(r,i-h,r-c+f*v,u+s+d*v,r-c,u+s),e.closePath()}}),oV=Pe.extend({type:\\\"arrow\\\",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;e.moveTo(n,a),e.lineTo(n+o,a+r),e.lineTo(n,a+r/4*3),e.lineTo(n-o,a+r),e.lineTo(n,a),e.closePath()}}),sV={line:Pn,rect:ot,roundRect:ot,square:ot,circle:bv,diamond:iV,pin:aV,arrow:oV,triangle:nV},uV={line:function(e,t,r,i,n){n.x1=e,n.y1=t+i/2,n.x2=e+r,n.y2=t+i/2},rect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i},roundRect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(e,t,r,i,n){var a=Math.min(r,i);n.x=e,n.y=t,n.width=a,n.height=a},circle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.r=Math.min(r,i)/2},diamond:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i},pin:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},arrow:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},triangle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i}},Pg={};C(sV,function(e,t){Pg[t]=new e});var lV=Pe.extend({type:\\\"symbol\\\",shape:{symbolType:\\\"\\\",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var i=gf(e,t,r),n=this.shape;return n&&n.symbolType===\\\"pin\\\"&&t.position===\\\"inside\\\"&&(i.y=r.y+r.height*.4),i},buildPath:function(e,t,r){var i=t.symbolType;if(i!==\\\"none\\\"){var n=Pg[i];n||(i=\\\"rect\\\",n=Pg[i]),uV[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(e,n.shape,r)}}});function cV(e,t){if(this.type!==\\\"image\\\"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||re.color.neutral00,r.lineWidth=2):this.shape.symbolType===\\\"line\\\"?r.stroke=e:r.fill=e,this.markRedraw()}}function ii(e,t,r,i,n,a,o){var s=e.indexOf(\\\"empty\\\")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf(\\\"image://\\\")===0?u=bP(e.slice(8),new fe(t,r,i,n),o?\\\"center\\\":\\\"cover\\\"):e.indexOf(\\\"path://\\\")===0?u=N0(e.slice(7),{},new fe(t,r,i,n),o?\\\"center\\\":\\\"cover\\\"):u=new lV({shape:{symbolType:e,x:t,y:r,width:i,height:n}}),u.__isEmptyBrush=s,u.setColor=cV,a&&u.setColor(a),u}function vb(e){return G(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ev(e,t){if(e!=null)return G(e)||(e=[e,e]),[$e(e[0],t[0])||0,$e(J(e[1],e[0]),t[1])||0]}function Vi(e){return isFinite(e)}function fV(e,t,r){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=Vi(i)?i:0,n=Vi(n)?n:1,a=Vi(a)?a:0,o=Vi(o)?o:0;var s=e.createLinearGradient(i,a,n,o);return s}function dV(e,t,r){var i=r.width,n=r.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*i+r.x,s=s*n+r.y,u=u*a),o=Vi(o)?o:.5,s=Vi(s)?s:.5,u=u>=0&&Vi(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function U1(e,t,r){for(var i=t.type===\\\"radial\\\"?dV(e,t,r):fV(e,t,r),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function vV(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function dc(e){return parseInt(e,10)}function B1(e,t,r){var i=[\\\"width\\\",\\\"height\\\"][t],n=[\\\"clientWidth\\\",\\\"clientHeight\\\"][t],a=[\\\"paddingLeft\\\",\\\"paddingTop\\\"][t],o=[\\\"paddingRight\\\",\\\"paddingBottom\\\"][t];if(r[i]!=null&&r[i]!==\\\"auto\\\")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(e);return(e[n]||dc(s[i])||dc(e.style[i]))-(dc(s[a])||0)-(dc(s[o])||0)||0}function hV(e,t){return!e||e===\\\"solid\\\"||!(t>0)?null:e===\\\"dashed\\\"?[4*t,2*t]:e===\\\"dotted\\\"?[t]:Re(e)?[e]:G(e)?e:null}function hb(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&hV(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=Q(r,function(a){return a/n}),i/=n)}return[r,i]}var pV=new An(!0);function Cf(e){var t=e.stroke;return!(t==null||t===\\\"none\\\"||!(e.lineWidth>0))}function F1(e){return typeof e==\\\"string\\\"&&e!==\\\"none\\\"}function Af(e){var t=e.fill;return t!=null&&t!==\\\"none\\\"}function j1(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Z1(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function V1(e,t,r){var i=$0(t.image,t.__image,r);if(pv(i)){var n=e.createPattern(i,t.repeat||\\\"repeat\\\");if(typeof DOMMatrix==\\\"function\\\"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*zc),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function gV(e,t,r,i,n){var a,o=Cf(r),s=Af(r),u=r.strokePercent,l=u<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var f=t.path||pV,d=t.__dirty;if(!i){var v=r.fill,h=r.stroke,p=s&&!!v.colorStops,g=o&&!!h.colorStops,m=s&&!!v.image,y=o&&!!h.image,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0;(p||g)&&(x=t.getBoundingRect()),p&&(_=d?U1(e,v,x):t.__canvasFillGradient,t.__canvasFillGradient=_),g&&(b=d?U1(e,h,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(S=d||!t.__canvasFillPattern?V1(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(w=d||!t.__canvasStrokePattern?V1(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),p?e.fillStyle=_:m&&(S?e.fillStyle=S:s=!1),g?e.strokeStyle=b:y&&(w?e.strokeStyle=w:o=!1)}var k=t.getGlobalScale();f.setScale(k[0],k[1],t.segmentIgnoreThreshold);var T,I;e.setLineDash&&r.lineDash&&(a=hb(t),T=a[0],I=a[1]);var $=!0;(c||d&Ra)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),$=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),$&&f.rebuildPath(e,l?u:1),T&&(e.setLineDash(T),e.lineDashOffset=I),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&Z1(e,r),s&&j1(e,r)):(s&&j1(e,r),o&&Z1(e,r)),T&&e.setLineDash([])}function mV(e,t,r){var i=t.__image=$0(r.image,t.__image,t,t.onload);if(!(!i||!pv(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),u=i.width/i.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var l=r.sx||0,c=r.sy||0;e.drawImage(i,l,c,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,c=r.sy,f=o-l,d=s-c;e.drawImage(i,l,c,f,d,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function yV(e,t,r){var i,n=r.text;if(n!=null&&(n+=\\\"\\\"),n){e.font=r.font||$n,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=hb(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Cf(r)&&e.strokeText(n,r.x,r.y),Af(r)&&e.fillText(n,r.x,r.y)):(Af(r)&&e.fillText(n,r.x,r.y),Cf(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var G1=[\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"],H1=[[\\\"lineCap\\\",\\\"butt\\\"],[\\\"lineJoin\\\",\\\"miter\\\"],[\\\"miterLimit\\\",10]];function AM(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){Rt(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Yi.opacity:o}(i||t.blend!==r.blend)&&(a||(Rt(e,n),a=!0),e.globalCompositeOperation=t.blend||Yi.blend);for(var s=0;s<G1.length;s++){var u=G1[s];(i||t[u]!==r[u])&&(a||(Rt(e,n),a=!0),e[u]=e.dpr*(t[u]||0))}return(i||t.shadowColor!==r.shadowColor)&&(a||(Rt(e,n),a=!0),e.shadowColor=t.shadowColor||Yi.shadowColor),a}function W1(e,t,r,i,n){var a=t.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=AM(e,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Rt(e,n),s=!0),F1(a.fill)&&(e.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Rt(e,n),s=!0),F1(a.stroke)&&(e.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Rt(e,n),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Rt(e,n),s=!0),e.lineWidth=l)}for(var c=0;c<H1.length;c++){var f=H1[c],d=f[0];(i||a[d]!==o[d])&&(s||(Rt(e,n),s=!0),e[d]=a[d]||f[1])}return s}function _V(e,t,r,i,n){return AM(e,t.style,r&&r.style,i,n)}function PM(e,t){var r=t.transform,i=e.dpr||1;r?e.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):e.setTransform(i,0,0,i,0,0)}function bV(e,t,r){for(var i=!1,n=0;n<e.length;n++){var a=e[n];i=i||a.isZeroArea(),PM(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=i}function SV(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var q1=1,Y1=2,X1=3,K1=4;function wV(e){var t=Af(e),r=Cf(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!=\\\"string\\\"||r&&typeof e.stroke!=\\\"string\\\"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Rt(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function xV(e,t){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Mg(e,t,r),Lg(e,r)}function Mg(e,t,r){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Mr,t.__isRendered=!1;return}var n=t.__clipPaths,a=r.prevElClipPaths,o=t.style,s=!1,u=!1;if((!a||vV(n,a))&&(a&&(Rt(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(Rt(e,r),e.save(),bV(n,e,r),s=!0,r.prevElClipPaths=n)),r.allClipped){t.__dirty&=~Mr,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(r.beforeBrushParam),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var c=t instanceof Pe&&t.autoBatch&&wV(o);s||SV(i,l.transform)?(Rt(e,r),PM(e,t)):c||Rt(e,r),t instanceof Pe?(r.lastDrawType!==q1&&(u=!0,r.lastDrawType=q1),W1(e,t,l,u,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),gV(e,t,o,c,r)):t instanceof nu?(r.lastDrawType!==X1&&(u=!0,r.lastDrawType=X1),W1(e,t,l,u,r),yV(e,t,o)):t instanceof dn?(r.lastDrawType!==Y1&&(u=!0,r.lastDrawType=Y1),_V(e,t,l,u,r),mV(e,t,o)):t.getTemporalDisplayables&&(r.lastDrawType!==K1&&(u=!0,r.lastDrawType=K1),TV(e,t,r)),t.innerAfterBrush(),t.afterBrush&&(c&&Rt(e,r),t.afterBrush()),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Lg(e,t){Rt(e,t),t.prevElClipPaths&&e.restore()}function TV(e,t,r){var i=t.getDisplayables(),n=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var u=i[o];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),Mg(e,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Lg(e,a);for(var l=0,c=n.length;l<c;l++){var u=n[l];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),Mg(e,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Lg(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Vh=new rV,J1=new ho(100),Q1=[\\\"symbol\\\",\\\"symbolSize\\\",\\\"symbolKeepAspect\\\",\\\"color\\\",\\\"backgroundColor\\\",\\\"dashArrayX\\\",\\\"dashArrayY\\\",\\\"maxTileWidth\\\",\\\"maxTileHeight\\\"];function Og(e,t){if(e===\\\"none\\\")return null;var r=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type===\\\"svg\\\";e.dirty&&Vh.delete(e);var a=Vh.get(e);if(a)return a;var o=je(e,{symbol:\\\"rect\\\",symbolSize:1,symbolKeepAspect:!0,color:\\\"rgba(0, 0, 0, 0.2)\\\",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===\\\"none\\\"&&(o.backgroundColor=null);var s={repeat:\\\"repeat\\\"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,Vh.set(e,s),e.dirty=!1,s;function u(l){for(var c=[r],f=!0,d=0;d<Q1.length;++d){var v=o[Q1[d]];if(v!=null&&!G(v)&&!ee(v)&&!Re(v)&&typeof v!=\\\"boolean\\\"){f=!1;break}c.push(v)}var h;if(f){h=c.join(\\\",\\\")+(n?\\\"-svg\\\":\\\"\\\");var p=J1.get(h);p&&(n?l.svgElement=p:l.image=p)}var g=LM(o.dashArrayX),m=kV(o.dashArrayY),y=MM(o.symbol),_=IV(g),b=OM(m),S=!n&&nn.createCanvas(),w=n&&{tag:\\\"g\\\",attrs:{},key:\\\"dcl\\\",children:[]},x=T(),k;S&&(S.width=x.width*r,S.height=x.height*r,k=S.getContext(\\\"2d\\\")),I(),f&&J1.put(h,S||w),l.image=S,l.svgElement=w,l.svgWidth=x.width,l.svgHeight=x.height;function T(){for(var $=1,A=0,D=_.length;A<D;++A)$=cw($,_[A]);for(var P=1,A=0,D=y.length;A<D;++A)P=cw(P,y[A].length);$*=P;var z=b*_.length*y.length;return{width:Math.max(1,Math.min($,o.maxTileWidth)),height:Math.max(1,Math.min(z,o.maxTileHeight))}}function I(){k&&(k.clearRect(0,0,S.width,S.height),o.backgroundColor&&(k.fillStyle=o.backgroundColor,k.fillRect(0,0,S.width,S.height)));for(var $=0,A=0;A<m.length;++A)$+=m[A];if($<=0)return;for(var D=-b,P=0,z=0,R=0;D<x.height;){if(P%2===0){for(var F=z/2%y.length,N=0,j=0,H=0;N<x.width*2;){for(var W=0,A=0;A<g[R].length;++A)W+=g[R][A];if(W<=0)break;if(j%2===0){var q=(1-o.symbolSize)*.5,te=N+g[R][j]*q,K=D+m[P]*q,ce=g[R][j]*o.symbolSize,ye=m[P]*o.symbolSize,et=H/2%y[F].length;Je(te,K,ce,ye,y[F][et])}N+=g[R][j],++H,++j,j===g[R].length&&(j=0)}++R,R===g.length&&(R=0)}D+=m[P],++z,++P,P===m.length&&(P=0)}function Je(Ie,Ye,oe,_e,Bt){var tt=n?1:r,kr=ii(Bt,Ie*tt,Ye*tt,oe*tt,_e*tt,o.color,o.symbolKeepAspect);if(n){var Ft=i.painter.renderOneToVNode(kr);Ft&&w.children.push(Ft)}else xV(k,kr)}}}}function MM(e){if(!e||e.length===0)return[[\\\"rect\\\"]];if(ee(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!ee(e[r])){t=!1;break}if(t)return MM([e]);for(var i=[],r=0;r<e.length;++r)ee(e[r])?i.push([e[r]]):i.push(e[r]);return i}function LM(e){if(!e||e.length===0)return[[0,0]];if(Re(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,i=0;i<e.length;++i)if(!Re(e[i])){r=!1;break}if(r)return LM([e]);for(var n=[],i=0;i<e.length;++i)if(Re(e[i])){var t=Math.ceil(e[i]);n.push([t,t])}else{var t=Q(e[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function kV(e){if(!e||typeof e==\\\"object\\\"&&e.length===0)return[0,0];if(Re(e)){var t=Math.ceil(e);return[t,t]}var r=Q(e,function(i){return Math.ceil(i)});return e.length%2?r.concat(r):r}function IV(e){return Q(e,function(t){return OM(t)})}function OM(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}var $V=k0(DV);function DV(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,\\\"decal\\\");if(s){var u=i.ensureUniqueItemVisual(o,\\\"style\\\");u.decal=Og(s,t)}});var n=i.getVisual(\\\"decal\\\");if(n){var a=i.getVisual(\\\"style\\\");a.decal=Og(n,t)}}})}var CV=1,AV=800,PV=900,MV=920,LV=1e3,OV=2e3,ex=5e3,EM=1e3,EV=1100,pb=2e3,zM=3e3,zV=4e3,zv=4500,RV=4600,NV=5e3,UV=6e3,RM=7e3,BV={PROCESSOR:{SERIES_FILTER:AV,AXIS_STATISTICS:MV,FILTER:LV,STATISTIC:ex,STATISTICS:ex},VISUAL:{LAYOUT:EM,PROGRESSIVE_LAYOUT:EV,GLOBAL:pb,CHART:zM,POST_CHART_LAYOUT:RV,COMPONENT:zV,BRUSH:NV,CHART_ITEM:zv,ARIA:UV,DECAL:RM}},lt=\\\"__flagInMainProcess\\\",vc=\\\"__mainProcessVersion\\\",pt=\\\"__pendingUpdate\\\",Gh=\\\"__needsUpdateStatus\\\",tx=/^[a-zA-Z0-9_]+$/,Hh=\\\"__connectUpdateStatus\\\",rx=0,FV=1,jV=2;function NM(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return BM(this,e,t)}}function UM(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return BM(this,e,t)}}function BM(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Ln.prototype[t].apply(e,r)}var FM=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Ln),jM=FM.prototype;jM.on=UM(\\\"on\\\");jM.off=UM(\\\"off\\\");var Li,Wh,hc,pn,pc,qh,Yh,Ma,La,nx,ix,Xh,ax,gc,ox,ZM,ar,sx,Oa,VM=(function(e){V(t,e);function t(r,i,n){var a=e.call(this,new ZZ)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o=\\\"canvas\\\",s=\\\"auto\\\",u=!1;a[vc]=1,n.ssr&&I6(function(d){var v=we(d),h=v.dataIndex;if(h!=null){var p=se();return p.set(\\\"series_index\\\",v.seriesIndex),p.set(\\\"data_index\\\",h),v.ssrType&&p.set(\\\"ssr_type\\\",v.ssrType),p}});var l=a._zr=sw(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:J(n.useDirtyRect,u),useCoarsePointer:J(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=db(Fe(l.flush,l),17),a._updateTheme(i),a._locale=Nj(n.locale||AP),a._coordSysMgr=new rb;var c=a._api=ox(a);function f(d,v){return d.__prio-v.__prio}return Rc(Mf,f),Rc(Rg,f),a._scheduler=new xM(a,c,Rg,Mf),a._messageCenter=new FM,a._initEvents(),a.resize=Fe(a.resize,a),l.animation.on(\\\"frame\\\",a._onframe,a),nx(l,a),ix(l,a),Op(a),a}return t.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(sx(this),this[pt]){var a=this[pt].silent;this[lt]=!0,Oa(this);try{Li(this),pn.update.call(this,null,this[pt].updateParams)}catch(u){throw this[lt]=!1,this[pt]=null,u}this._zr.flush(),this[lt]=!1,this[pt]=null,Ma.call(this,a),La.call(this,a)}else if(r.unfinished){var o=CV;do{r.unfinished=!1;var s=nn.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),qh(this,i),r.performVisualTasks(i),gc(this,this._model,n,\\\"remain\\\",{}),o-=nn.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,i,n){if(!this[lt]){if(this._disposed){this.id;return}var a,o,s;if(ne(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[lt]=!0,Oa(this),!this._model||i){var u=new T5(this._api),l=this._theme,c=this._model=new ob;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Ng);var f={seriesTransition:s,optionChanged:!0};if(n)this[pt]={silent:a,updateParams:f},this[lt]=!1,this.getZr().wakeUp();else{try{Li(this),pn.update.call(this,null,f)}catch(d){throw this[pt]=null,this[lt]=!1,d}this._ssr||this._zr.flush(),this[pt]=null,this[lt]=!1,Ma.call(this,a),La.call(this,a)}}},t.prototype.setTheme=function(r,i){if(!this[lt]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[pt]&&(a==null&&(a=this[pt].silent),o=this[pt].updateParams,this[pt]=null),this[lt]=!0,Oa(this);try{this._updateTheme(r),n.setTheme(this._theme),Li(this),pn.update.call(this,{type:\\\"setTheme\\\"},o)}catch(s){throw this[lt]=!1,s}this[lt]=!1,Ma.call(this,a),La.call(this,a)}}},t.prototype._updateTheme=function(r){ee(r)&&(r=GM[r]),r&&(r=me(r),r&&eM(r,!0),this._theme=r)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||pe.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get(\\\"backgroundColor\\\"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return C(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;C(i,function(u){n.eachComponent({mainType:u},function(l){var c=o._componentsMap[l.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()===\\\"svg\\\"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL(\\\"image/\\\"+(r&&r.type||\\\"png\\\"));return C(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type===\\\"svg\\\",n=this.group,a=Math.min,o=Math.max,s=1/0;if(ux[n]){var u=s,l=s,c=-s,f=-s,d=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();C(Us,function(_,b){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(me(r)),w=_.getDom().getBoundingClientRect();u=a(w.left,u),l=a(w.top,l),c=o(w.right,c),f=o(w.bottom,f),d.push({dom:S,left:w.left,top:w.top})}}),u*=v,l*=v,c*=v,f*=v;var h=c-u,p=f-l,g=nn.createCanvas(),m=sw(g,{renderer:i?\\\"svg\\\":\\\"canvas\\\"});if(m.resize({width:h,height:p}),i){var y=\\\"\\\";return C(d,function(_){var b=_.left-u,S=_.top-l;y+='<g transform=\\\"translate('+b+\\\",\\\"+S+')\\\">'+_.dom+\\\"</g>\\\"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new ot({shape:{x:0,y:0,width:h,height:p},style:{fill:r.connectedBackgroundColor}})),C(d,function(_){var b=new dn({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL(\\\"image/\\\"+(r&&r.type||\\\"png\\\"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,i,n){return pc(this,\\\"convertToPixel\\\",r,i,n)},t.prototype.convertToLayout=function(r,i,n){return pc(this,\\\"convertToLayout\\\",r,i,n)},t.prototype.convertFromPixel=function(r,i,n){return pc(this,\\\"convertFromPixel\\\",r,i,n)},t.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=mh(n,r);return C(o,function(s,u){u.indexOf(\\\"Models\\\")>=0&&C(s,function(l){var c=l.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(i);else if(u===\\\"seriesModels\\\"){var f=this._chartsMap[l.__viewId];f&&f.containPoint&&(a=a||f.containPoint(i,l))}},this)},this),!!a},t.prototype.getVisual=function(r,i){var n=this._model,a=mh(n,r,{defaultMainType:\\\"series\\\"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty(\\\"dataIndexInside\\\")?a.dataIndexInside:a.hasOwnProperty(\\\"dataIndex\\\")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?HZ(s,u,i):DM(s,i)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;C(ZV,function(n){var a=function(o){var s=r.getModel(),u=o.target,l,c=n===\\\"globalout\\\";if(c?l={}:u&&Is(u,function(p){var g=we(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,u)||{},!0}else if(g.eventData)return l=Z({},g.eventData),!0},!0),l){var f=l.componentType,d=l.componentIndex;(f===\\\"markLine\\\"||f===\\\"markPoint\\\"||f===\\\"markArea\\\")&&(f=\\\"series\\\",d=l.seriesIndex);var v=f&&d!=null&&s.getComponent(f,d),h=v&&r[v.mainType===\\\"series\\\"?\\\"_chartsMap\\\":\\\"_componentsMap\\\"][v.__viewId];l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:v,view:h},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;C(zg,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),qZ(i,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&CA(this.getDom(),mb,\\\"\\\");var i=this,n=i._api,a=i._model;C(i._componentsViews,function(o){o.dispose(a,n)}),C(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Us[i.id]},t.prototype.resize=function(r){if(!this[lt]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption(\\\"media\\\"),a=r&&r.silent;this[pt]&&(a==null&&(a=this[pt].silent),n=!0,this[pt]=null),this[lt]=!0,Oa(this);try{n&&Li(this),pn.update.call(this,{type:\\\"resize\\\",animation:Z({duration:0},r&&r.animation)})}catch(o){throw this[lt]=!1,o}this[lt]=!1,Ma.call(this,a),La.call(this,a)}}},t.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(ne(r)&&(i=r,r=\\\"\\\"),r=r||\\\"default\\\",this.hideLoading(),!!Ug[r]){var n=Ug[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var i=Z({},r);return i.type=Eg[r.type],i},t.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(ne(i)||(i={silent:!!i}),!!Pf[r.type]&&this._model){if(this[lt]){this._pendingActions.push(r);return}var n=i.silent;Yh.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&pe.browser.weChat&&this._throttledZrFlush(),Ma.call(this,n),La.call(this,n)}},t.prototype.updateLabelLayout=function(){sr.trigger(\\\"series:layoutlabels\\\",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Li=function(f){KZ(f._model);var d=f._scheduler;d.restorePipelines(f._zr,f._model),d.prepareStageTasks(),Wh(f,!0),Wh(f,!1),d.plan()},Wh=function(f,d){for(var v=f._model,h=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_<p.length;_++)p[_].__alive=!1;d?v.eachComponent(function(w,x){w!==\\\"series\\\"&&b(x)}):v.eachSeries(b);function b(w){var x=w.__requireNewView;w.__requireNewView=!1;var k=\\\"_ec_\\\"+w.id+\\\"_\\\"+w.type,T=!x&&g[k];if(!T){var I=tn(w.type),$=d?Ur.getClass(I.main,I.sub):Gt.getClass(I.sub);T=new $,T.init(v,y),g[k]=T,p.push(T),m.add(T.group)}w.__viewId=T.__id=k,T.__alive=!0,T.__model=w,T.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!d&&h.prepareView(T,w,v,y)}for(var _=0;_<p.length;){var S=p[_];S.__alive?_++:(!d&&S.renderTask.dispose(),m.remove(S.group),S.dispose(v,y),p.splice(_,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},hc=function(f,d,v,h,p){var g=f._model;if(g.setUpdatePayload(v),!h){C([].concat(f._componentsViews).concat(f._chartsViews),b);return}var m=Q6(v,h,p),y=v.excludeSeriesId,_;y!=null&&(_=se(),C(Ut(y),function(S){var w=un(S,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(m,function(S){var w=_&&_.get(S.id)!=null;if(!w)if(Bw(v))if(S instanceof er)v.type===Xi&&!v.notBlur&&!S.get([\\\"emphasis\\\",\\\"disabled\\\"])&&gF(S,v,f._api);else{var x=O0(S.mainType,S.componentIndex,v.name,f._api),k=x.focusSelf,T=x.dispatchers;v.type===Xi&&k&&!v.notBlur&&hg(S.mainType,S.componentIndex,f._api),T&&C(T,function(I){v.type===Xi?iu(I):au(I)})}else mg(v)&&S instanceof er&&(_F(S,v,f._api),Nw(S),ar(f))},f),g&&g.eachComponent(m,function(S){var w=_&&_.get(S.id)!=null;w||b(f[h===\\\"series\\\"?\\\"_chartsMap\\\":\\\"_componentsMap\\\"][S.__viewId])},f);function b(S){S&&S.__alive&&S[d]&&S[d](S.__model,g,f._api,v)}},pn={prepareAndUpdate:function(f){Li(this),pn.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,d){var v=this._model,h=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(v){JZ(v),v.setUpdatePayload(f),m.restoreData(v,f),m.performSeriesTasks(v),g.create(v,h),sr.trigger(\\\"coordsys:aftercreate\\\",v,h),m.performDataProcessorTasks(v,f),qh(this,v),g.update(v,h),i(v),m.performVisualTasks(v,f);var y=v.get(\\\"backgroundColor\\\")||\\\"transparent\\\";p.setBackgroundColor(y);var _=v.get(\\\"darkMode\\\");_!=null&&_!==\\\"auto\\\"&&p.setDarkMode(_),Xh(this,v,h,f,d),sr.trigger(\\\"afterupdate\\\",v,h)}},updateTransform:function(f){var d=this,v=d._model,h=d._api;if(v){v.setUpdatePayload(f);var p=[];v.eachComponent(function(m,y){if(m!==YA){var _=d.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,v,h,f);b&&b.update&&p.push(_)}else p.push(_)}});var g=se();v.eachSeries(function(m){var y=d._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var b=y.updateTransform(m,v,h,f);b&&b.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),d._scheduler.performVisualTasks(v,f,{setDirty:!0,dirtyMap:g}),gc(d,v,h,f,{},g),sr.trigger(\\\"afterupdate\\\",v,h)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Gt.markUpdateMethod(f,\\\"updateView\\\"),i(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),Xh(this,d,this._api,f,{}),sr.trigger(\\\"afterupdate\\\",d,this._api))},updateVisual:function(f){var d=this,v=this._model;v&&(v.setUpdatePayload(f),v.eachSeries(function(h){h.getData().clearAllVisual()}),Gt.markUpdateMethod(f,\\\"updateVisual\\\"),i(v),this._scheduler.performVisualTasks(v,f,{visualType:\\\"visual\\\",setDirty:!0}),v.eachComponent(function(h,p){if(h!==\\\"series\\\"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,d._api,f)}}),v.eachSeries(function(h){var p=d._chartsMap[h.__viewId];p.updateVisual(h,v,d._api,f)}),sr.trigger(\\\"afterupdate\\\",v,this._api))},updateLayout:function(f){pn.update.call(this,f)}};function r(f,d,v,h,p){if(f._disposed){f.id;return}for(var g=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,_=mh(g,v),b=0;b<m.length;b++){var S=m[b];if(S[d]&&(y=S[d](g,_,h,p))!=null)return y}}pc=r,qh=function(f,d){var v=f._chartsMap,h=f._scheduler;d.eachSeries(function(p){h.updateStreamModes(p,v[p.__viewId])})},Yh=function(f,d){var v=this,h=this.getModel(),p=f.type,g=f.escapeConnect,m=Pf[p],y=(m.update||\\\"update\\\").split(\\\":\\\"),_=y.pop(),b=y[0]!=null&&tn(y[0]);this[lt]=!0,Oa(this);var S=[f],w=!1;f.batch&&(w=!0,S=Q(f.batch,function(R){return R=je(Z({},R),f),R.batch=null,R}));var x=[],k,T=[],I=m.nonRefinedEventType,$=mg(f),A=Bw(f);if(A&&sP(this._api),C(S,function(R){var F=m.action(R,h,v._api);if(m.refineEvent?T.push(F):k=F,k=k||Z({},R),k.type=I,x.push(k),A){var N=x0(f),j=N.queryOptionMap,H=N.mainTypeSpecified,W=H?j.keys()[0]:\\\"series\\\";hc(v,_,R,W),ar(v)}else $?(hc(v,_,R,\\\"series\\\"),ar(v)):b&&hc(v,_,R,b.main,b.sub)}),_!==\\\"none\\\"&&!A&&!$&&!b)try{this[pt]?(Li(this),pn.update.call(this,f),this[pt]=null):pn[_].call(this,f)}catch(R){throw this[lt]=!1,R}if(w?k={type:I,escapeConnect:g,batch:x}:k=x[0],this[lt]=!1,!d){var D=void 0;if(m.refineEvent){var P=m.refineEvent(T,f,h,this._api).eventContent;Nr(ne(P)),D=je({type:m.refinedEventType},P),D.fromAction=f.type,D.fromActionPayload=f,D.escapeConnect=!0}var z=this._messageCenter;z.trigger(k.type,k),D&&z.trigger(D.type,D)}},Ma=function(f){for(var d=this._pendingActions;d.length;){var v=d.shift();Yh.call(this,v,f)}},La=function(f){!f&&this.trigger(\\\"updated\\\")},nx=function(f,d){f.on(\\\"rendered\\\",function(v){d.trigger(\\\"rendered\\\",v),f.animation.isFinished()&&!d[pt]&&!d._scheduler.unfinished&&!d._pendingActions.length?d.trigger(\\\"finished\\\"):f.refresh()})},ix=function(f,d){f.on(\\\"mouseover\\\",function(v){var h=v.target,p=Is(h,gg);p&&(mF(p,v,d._api),ar(d))}).on(\\\"mouseout\\\",function(v){var h=v.target,p=Is(h,gg);p&&(yF(p,v,d._api),ar(d))}).on(\\\"click\\\",function(v){var h=v.target,p=Is(h,function(y){return we(y).dataIndex!=null},!0);if(p){var g=p.selected?\\\"unselect\\\":\\\"select\\\",m=we(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function i(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],v=[],h=!1;if(f.eachComponent(function(y,_){var b=_.get(\\\"zlevel\\\")||0,S=_.get(\\\"z\\\")||0,w=_.getZLevelKey();h=h||!!w,(y===\\\"series\\\"?v:d).push({zlevel:b,z:S,idx:_.componentIndex,type:y,key:w})}),h){var p=d.concat(v),g,m;Rc(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),C(p,function(y){var _=f.getComponent(y.type,y.idx),b=y.zlevel,S=y.key;g!=null&&(b=Math.max(g,b)),S?(b===g&&S!==m&&b++,m=S):m&&(b===g&&b++,m=\\\"\\\"),g=b,_.setZLevel(b)})}}Xh=function(f,d,v,h,p){n(d),ax(f,d,v,h,p),C(f._chartsViews,function(g){g.__alive=!1}),gc(f,d,v,h,p),C(f._chartsViews,function(g){g.__alive||g.remove(d,v)})},ax=function(f,d,v,h,p,g){C(g||f._componentsViews,function(m){var y=m.__model;l(y,m),m.render(y,d,v,h),u(y,m),c(y,m)})},gc=function(f,d,v,h,p,g){var m=f._scheduler;p=Z(p||{},{updatedSeries:d.getSeries()}),sr.trigger(\\\"series:beforeupdate\\\",d,v,p);var y=!1;d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];b.__alive=!0;var S=b.renderTask;m.updatePayload(S,h),l(_,b),g&&g.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),b.group.silent=!!_.get(\\\"silent\\\"),s(_,b),Nw(_)}),m.unfinished=y||m.unfinished,sr.trigger(\\\"series:layoutlabels\\\",d,v,p),sr.trigger(\\\"series:transition\\\",d,v,p),d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];u(_,b),c(_,b)}),o(f,d),sr.trigger(\\\"series:afterupdate\\\",d,v,p)},ar=function(f){f[Gh]=!0,f.getZr().wakeUp()},Oa=function(f){f[vc]=(f[vc]+1)%1e6},sx=function(f){f[Gh]&&(f.getZr().storage.traverse(function(d){Ya(d)||a(d)}),f[Gh]=!1)};function a(f){for(var d=[],v=f.currentStates,h=0;h<v.length;h++){var p=v[h];p===\\\"emphasis\\\"||p===\\\"blur\\\"||p===\\\"select\\\"||d.push(p)}f.selected&&f.states.select&&d.push(\\\"select\\\"),f.hoverState===yv&&f.states.emphasis?d.push(\\\"emphasis\\\"):f.hoverState===mv&&f.states.blur&&d.push(\\\"blur\\\"),f.useStates(d)}function o(f,d){var v=f._zr;if(v.painter.type===\\\"canvas\\\"){var h=v.storage,p=0;h.traverse(function(m){m.isGroup||p++});var g=p>J(d.get(\\\"hoverLayerThreshold\\\"),qP.hoverLayerThreshold)&&!pe.node&&!pe.worker;(f._usingTHL||g)&&(d.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=f._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var b=_.states.emphasis;b&&b.hoverLayer!==kv&&(b.hoverLayer=g?_P:yP)})}}),f._usingTHL=g)}}function s(f,d){var v=f.get(\\\"blendMode\\\")||null;d.eachRendered(function(h){h.isGroup||(h.style.blend=v)})}function u(f,d){if(!f.preventAutoZ){var v=Z0(f);d.eachRendered(function(h){return V0(h,v.z,v.zlevel),!0})}}function l(f,d){d.eachRendered(function(v){if(!Ya(v)){var h=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,d){var v=f.getModel(\\\"stateAnimation\\\"),h=f.isAnimationEnabled(),p=v.get(\\\"duration\\\"),g=p>0?{duration:p,delay:v.get(\\\"delay\\\"),easing:v.get(\\\"easing\\\")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ya(m))return;if(m instanceof Pe&&kF(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(h){m.stateTransition=g;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&a(m)}})}ox=function(f){return new((function(d){V(v,d);function v(){return d!==null&&d.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(h){for(;h;){var p=h.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);h=h.parent}},v.prototype.enterEmphasis=function(h,p){iu(h,p),ar(f)},v.prototype.leaveEmphasis=function(h,p){au(h,p),ar(f)},v.prototype.enterBlur=function(h){nP(h),ar(f)},v.prototype.leaveBlur=function(h){L0(h),ar(f)},v.prototype.enterSelect=function(h){iP(h),ar(f)},v.prototype.leaveSelect=function(h){aP(h),ar(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(h){return f.getViewOfComponentModel(h)},v.prototype.getViewOfSeriesModel=function(h){return f.getViewOfSeriesModel(h)},v.prototype.getECUpdateCycleVersion=function(){return f[vc]},v.prototype.usingTHL=function(){return f._usingTHL},v})(JA))(f)},ZM=function(f){function d(v,h){for(var p=0;p<v.length;p++){var g=v[p];g[Hh]=h}}C(Eg,function(v,h){f._messageCenter.on(h,function(p){if(ux[f.group]&&f[Hh]!==rx){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];C(Us,function(y){y!==f&&y.group===f.group&&m.push(y)}),d(m,rx),C(m,function(y){y[Hh]!==FV&&y.dispatchAction(g)}),d(m,jV)}})})}})(),t})(Ln),gb=VM.prototype;gb.on=NM(\\\"on\\\");gb.off=NM(\\\"off\\\");gb.one=function(e,t,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(e,n)}this.on.call(this,e,n,r)};var ZV=[\\\"click\\\",\\\"dblclick\\\",\\\"mouseover\\\",\\\"mouseout\\\",\\\"mousemove\\\",\\\"mousedown\\\",\\\"mouseup\\\",\\\"globalout\\\",\\\"contextmenu\\\"];var Pf={},Eg={},zg={},Rg=[],Ng=[],Mf=[],GM={},Ug={},Us={},ux={},VV=+new Date-0,mb=\\\"_echarts_instance_\\\";function GV(e,t,r){var i=!(r&&r.ssr);if(i){var n=HV(e);if(n)return n}var a=new VM(e,t,r);return a.id=\\\"ec_\\\"+VV++,Us[a.id]=a,i&&CA(e,mb,a.id),ZM(a),sr.trigger(\\\"afterinit\\\",a),a}function HV(e){return Us[eB(e,mb)]}function Rv(e,t){GM[e]=t}function HM(e){xe(Ng,e)<0&&Ng.push(e)}function WM(e,t){_b(Rg,e,t,OV)}function WV(e){yb(\\\"afterinit\\\",e)}function qV(e){yb(\\\"afterupdate\\\",e)}function yb(e,t){sr.on(e,t)}function qo(e,t,r){var i,n,a,o,s;le(t)&&(r=t,t=\\\"\\\"),ne(e)?(i=e.type,n=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),a=e.refineEvent):(i=e,n=t);function u(c){return c.toLowerCase()}n=u(n||i);var l=a?u(i):n;Pf[i]||(Nr(tx.test(i)&&tx.test(n)),a&&Nr(n!==i),Pf[i]={actionType:i,refinedEventType:n,nonRefinedEventType:l,update:o,action:r,refineEvent:a},zg[n]=1,a&&s&&(zg[l]=1),Eg[l]=i)}function YV(e,t){rb.register(e,t)}function XV(e,t){_b(Mf,e,t,EM,\\\"layout\\\")}function ma(e,t){_b(Mf,e,t,zM,\\\"visual\\\")}var lx=[];function _b(e,t,r,i,n,a){if((le(t)||ne(t))&&(r=t,t=i),!(xe(lx,r)>=0)){lx.push(r);var o=xM.wrapStageHandler(r,n);o.__prio=t,o.__raw=r,e.push(o)}}function qM(e,t){Ug[e]=t}function KV(e,t,r){var i=XZ(\\\"registerMap\\\");i&&i(e,t,r)}var JV=eZ;ma(pb,AZ);ma(zv,PZ);ma(zv,MZ);ma(pb,VZ);ma(zv,GZ);ma(RM,$V);HM(eM);WM(PV,z5);qM(\\\"default\\\",LZ);qo({type:Xi,event:Xi,update:Xi},_t);qo({type:Vc,event:Vc,update:Vc},_t);qo({type:Sf,event:P0,update:Sf,action:_t,refineEvent:bb,publishNonRefinedEvent:!0});qo({type:dg,event:P0,update:dg,action:_t,refineEvent:bb,publishNonRefinedEvent:!0});qo({type:wf,event:P0,update:wf,action:_t,refineEvent:bb,publishNonRefinedEvent:!0});function bb(e,t,r,i){return{eventContent:{selected:bF(r),isFromClick:t.isFromClick||!1}}}Rv(\\\"default\\\",{});Rv(\\\"dark\\\",$M);function us(e){return e==null?0:e.length||1}function cx(e){return e}var QV=(function(){function e(t,r,i,n,a,o){this._old=t,this._new=r,this._oldKeyGetter=i||cx,this._newKeyGetter=n||cx,this.context=a,this._diffModeMultiple=o===\\\"multiple\\\"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?\\\"_executeMultiple\\\":\\\"_executeOneToOne\\\"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,i={},n=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,n,\\\"_oldKeyGetter\\\"),this._initIndexMap(r,i,a,\\\"_newKeyGetter\\\");for(var o=0;o<t.length;o++){var s=n[o],u=i[s],l=us(u);if(l>1){var c=u.shift();u.length===1&&(i[s]=u[0]),this._update&&this._update(c,o)}else l===1?(i[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,\\\"_oldKeyGetter\\\"),this._initIndexMap(r,n,o,\\\"_newKeyGetter\\\");for(var s=0;s<a.length;s++){var u=a[s],l=i[u],c=n[u],f=us(l),d=us(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,l),n[u]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,l),n[u]=null;else if(f===1&&d===1)this._update&&this._update(c,l),n[u]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,l),n[u]=null;else if(f>1)for(var v=0;v<f;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},e.prototype._performRestAdd=function(t,r){for(var i=0;i<t.length;i++){var n=t[i],a=r[n],o=us(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},e.prototype._initIndexMap=function(t,r,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s=\\\"_ec_\\\"+this[n](t[o],o);if(a||(i[o]=s),!!r){var u=r[s],l=us(u);l===0?(r[s]=o,a&&i.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e})(),eG=(function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function tG(e,t){var r={},i=r.encode={},n=se(),a=[],o=[],s={};C(e.dimensions,function(d){var v=e.getDimensionInfo(d),h=v.coordDim;if(h){var p=v.coordDimIndex;Kh(i,h)[p]=d,v.isExtraCoord||(n.set(h,1),nG(v.type)&&(a[0]=d),Kh(s,h)[p]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(d)}XA.each(function(g,m){var y=Kh(i,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var u=[],l={};n.each(function(d,v){var h=i[v];l[v]=h[0],u=u.concat(h)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=Q(u,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=l;var c=i.label;c&&c.length&&(a=c.slice());var f=i.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new eG(s,t),r}function Kh(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function rG(e){return e===\\\"category\\\"?\\\"ordinal\\\":e===\\\"time\\\"?\\\"time\\\":\\\"float\\\"}function nG(e){return!(e===\\\"ordinal\\\"||e===\\\"time\\\")}var Kc=(function(){function e(t){this.otherDims={},t!=null&&Z(this,t)}return e})(),iG=ke(),aG={float:\\\"f\\\",int:\\\"i\\\",ordinal:\\\"o\\\",number:\\\"n\\\",time:\\\"t\\\"},YM=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=KM(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return J(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=nM(this.source),i=!JM(t),n=\\\"\\\",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)u=r?f.name:null,l=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(u=r?d.name:null,l=d.type)}a.push({property:u,type:l,ordinalMeta:c}),r&&u!=null&&(!f||!f.isCalculationCoord)&&(n+=i?u.replace(/\\\\`/g,\\\"`1\\\").replace(/\\\\$/g,\\\"`2\\\"):u),n+=\\\"$\\\",n+=aG[l]||\\\"f\\\",c&&(n+=c.uid),n+=\\\"$\\\"}var v=this.source,h=[v.seriesLayoutBy,v.startIndex,n].join(\\\"$$\\\");return{dimensions:a,hash:h}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}t.push(n)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function XM(e){return e instanceof YM}function Sb(e){for(var t=se(),r=0;r<(e||[]).length;r++){var i=e[r],n=ne(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,r)}return t}function KM(e){var t=iG(e);return t.dimNameMap||(t.dimNameMap=Sb(e.dimensionsDefine))}function JM(e){return e>30}var ls=ne,Un=Q,oG=typeof Int32Array>\\\"u\\\"?Array:Int32Array,sG=\\\"e\\\\0\\\\0\\\",fx=-1,uG=[\\\"hasItemOption\\\",\\\"_nameList\\\",\\\"_idList\\\",\\\"_invertedIndicesMap\\\",\\\"_dimSummary\\\",\\\"userOutput\\\",\\\"_rawData\\\",\\\"_dimValueGetter\\\",\\\"_nameDimIdx\\\",\\\"_idDimIdx\\\",\\\"_nameRepeatCount\\\"],lG=[\\\"_approximateExtent\\\"],dx,mc,cs,fs,Jh,ds,Qh,Bs=(function(){function e(t,r){this.type=\\\"list\\\",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[\\\"cloneShallow\\\",\\\"downSample\\\",\\\"minmaxDownSample\\\",\\\"lttbDownSample\\\",\\\"map\\\"],this.CHANGABLE_METHODS=[\\\"filterSelf\\\",\\\"selectRange\\\"],this.DOWNSAMPLE_METHODS=[\\\"downSample\\\",\\\"minmaxDownSample\\\",\\\"lttbDownSample\\\"];var i,n=!1;XM(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||[\\\"x\\\",\\\"y\\\"];for(var a={},o=[],s={},u=!1,l={},c=0;c<i.length;c++){var f=i[c],d=ee(f)?new Kc({name:f}):f instanceof Kc?f:new Kc(f),v=d.name;d.type=d.type||\\\"float\\\",d.coordDim||(d.coordDim=v,d.coordDimIndex=0);var h=d.otherDims=d.otherDims||{};o.push(v),a[v]=d,l[v]!=null&&(u=!0),d.createInvertedIndices&&(s[v]=[]),n&&(d.storeDimIndex=c),h.itemName===0&&(this._nameDimIdx=d.storeDimIndex),h.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=se();C(o,function(g){p.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Re(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,i=r.encode[t];return(i||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,i){var n=this,a;if(t instanceof kg&&(a=t),!a){var o=this.dimensions,s=sb(t)||Ht(t)?new iM(t,o.length):t;a=new kg;var u=Un(o,function(l){return{type:n._dimInfos[l].type,property:l}});a.initData(s,u,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=tG(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var i=this._store.appendValues(t,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var u=s-n;this._nameList[s]=r[u],o&&Qh(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Kn&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,u=s===ir;if(u&&!n.pure)for(var l=[],c=t;c<r;c++){var f=n.getItem(c,l);if(!this.hasItemOption&&j6(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=un(d,null));var v=f.id;o[c]==null&&v!=null&&(o[c]=un(v,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)Qh(this,c);dx(this)}},e.prototype.getApproximateExtent=function(t,r){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),r)},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){ls(t)?Z(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=cs(this,this._nameDimIdx,r)),i==null&&(i=\\\"\\\"),i},e.prototype._getCategory=function(t,r){var i=this._store.get(t,r),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},e.prototype.getId=function(t){return mc(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var i=this,n=this._store;return G(t)?n.getValues(Un(t,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var i=t&&this._invertedIndicesMap[t],n=i&&i[r];return n==null||isNaN(n)?fx:n},e.prototype.each=function(t,r,i){le(t)&&(i=r,r=t,t=[]);var n=i||this,a=Un(fs(t),this._getStoreDimIndex,this);this._store.each(a,n?Fe(r,n):r)},e.prototype.filterSelf=function(t,r,i){le(t)&&(i=r,r=t,t=[]);var n=i||this,a=Un(fs(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?Fe(r,n):r),this},e.prototype.selectRange=function(t){var r=this,i={},n=Te(t);return C(n,function(a){var o=r._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},e.prototype.mapArray=function(t,r,i){le(t)&&(i=r,r=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(r&&r.apply(this,arguments))},i),n},e.prototype.map=function(t,r,i,n){var a=i||n||this,o=Un(fs(t),this._getStoreDimIndex,this),s=ds(this);return s._store=this._store.map(o,a?Fe(r,a):r),s},e.prototype.modify=function(t,r,i,n){var a=i||n||this,o=Un(fs(t),this._getStoreDimIndex,this);this._store.modify(o,a?Fe(r,a):r)},e.prototype.downSample=function(t,r,i,n){var a=ds(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,i,n),a},e.prototype.minmaxDownSample=function(t,r){var i=ds(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),i},e.prototype.lttbDownSample=function(t,r){var i=ds(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),i},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,i=this.getRawDataItem(t);return new Qe(i,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new QV(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return mc(t,i)},function(i){return mc(r,i)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},ls(t)?Z(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var i=this._itemVisuals[t],n=i&&i[r];return n??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[r];return a==null&&(a=this.getVisual(r),G(a)?a=a.slice():ls(a)&&(a=Z({},a)),n[r]=a),a},e.prototype.setItemVisual=function(t,r,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,ls(r)?Z(n,r):n[r]=i},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){ls(t)?Z(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,i){this._itemLayouts[t]=i?Z(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var i=this.hostModel&&this.hostModel.seriesIndex;iF(i,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){C(this._graphicEls,function(i,n){i&&t&&t.call(r,i,n)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Un(this.dimensions,this._getDimInfo,this),this.hostModel)),Jh(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var i=this[t];le(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(l0(arguments)))})},e.internalField=(function(){dx=function(t){var r=t._invertedIndicesMap;C(r,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=r[n]=new oG(o.categories.length);for(var u=0;u<i.length;u++)i[u]=fx;for(var u=0;u<s.count();u++)i[s.get(a.storeDimIndex,u)]=u}})},cs=function(t,r,i){return un(t._getCategory(r,i),null)},mc=function(t,r){var i=t._idList[r];return i==null&&t._idDimIdx!=null&&(i=cs(t,t._idDimIdx,r)),i==null&&(i=sG+r),i},fs=function(t){return G(t)||(t=t!=null?[t]:[]),t},ds=function(t){var r=new e(t._schema?t._schema:Un(t.dimensions,t._getDimInfo,t),t.hostModel);return Jh(r,t),r},Jh=function(t,r){C(uG.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(t[i]=r[i])}),t.__wrappedMethods=r.__wrappedMethods,C(lG,function(i){t[i]=me(r[i])}),t._calculationInfo=Z({},r._calculationInfo)},Qh=function(t,r){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[r],u=n[r];if(s==null&&a!=null&&(i[r]=s=cs(t,a,r)),u==null&&o!=null&&(n[r]=u=cs(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,c=l[s]=(l[s]||0)+1;u=s,c>1&&(u+=\\\"__ec__\\\"+c),n[r]=u}}})(),e})();function QM(e,t){sb(e)||(e=tM(e)),t=t||{};var r=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],n=se(),a=[],o=cG(e,r,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&JM(o),u=i===e.dimensionsDefine,l=u?KM(e):Sb(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=se(c),d=new fM(o),v=0;v<d.length;v++)d[v]=-1;function h(T){var I=d[T];if(I<0){var $=i[T],A=ne($)?$:{name:$},D=new Kc,P=A.name;P!=null&&l.get(P)!=null&&(D.name=D.displayName=P),A.type!=null&&(D.type=A.type),A.displayName!=null&&(D.displayName=A.displayName);var z=a.length;return d[T]=z,D.storeDimIndex=T,a.push(D),D}return a[I]}if(!s)for(var v=0;v<o;v++)h(v);f.each(function(T,I){var $=Ut(T).slice();if($.length===1&&!ee($[0])&&$[0]<0){f.set(I,!1);return}var A=f.set(I,[]);C($,function(D,P){var z=ee(D)?l.get(D):D;z!=null&&z<o&&(A[P]=z,g(h(z),I,P))})});var p=0;C(r,function(T){var I,$,A,D;if(ee(T))I=T,D={};else{D=T,I=D.name;var P=D.ordinalMeta;D.ordinalMeta=null,D=Z({},D),D.ordinalMeta=P,$=D.dimsDef,A=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var z=f.get(I);if(z!==!1){if(z=Ut(z),!z.length)for(var R=0;R<($&&$.length||1);R++){for(;p<o&&h(p).coordDim!=null;)p++;p<o&&z.push(p++)}C(z,function(F,N){var j=h(F);if(u&&D.type!=null&&(j.type=D.type),g(je(j,D),I,N),j.name==null&&$){var H=$[N];!ne(H)&&(H={name:H}),j.name=j.displayName=H.name,j.defaultTooltip=H.defaultTooltip}A&&je(j.otherDims,A)})}});function g(T,I,$){XA.get(I)!=null?T.otherDims[I]=$:(T.coordDim=I,T.coordDimIndex=$,n.set(I,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||\\\"value\\\";function S(T){T.name==null&&(T.name=T.coordDim)}if(s)C(a,function(T){S(T)}),a.sort(function(T,I){return T.storeDimIndex-I.storeDimIndex});else for(var w=0;w<o;w++){var x=h(w),k=x.coordDim;k==null&&(x.coordDim=fG(b,n,_),x.coordDimIndex=0,(!m||y<=0)&&(x.isExtraCoord=!0),y--),S(x),x.type==null&&(KP(e,w)===mt.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type=\\\"ordinal\\\")}return T0(a,function(T){return T.name},function(T,I){I>0&&(T.name=T.name+(I-1))}),new YM({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function cG(e,t,r,i){var n=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,i||0);return C(t,function(a){var o;ne(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function fG(e,t,r){if(r||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}var dG=(function(){function e(t){this.coordSysDims=[],this.axisMap=se(),this.categoryAxisMap=se(),this.coordSysName=t}return e})();function vG(e){var t=e.get(\\\"coordinateSystem\\\"),r=new dG(t),i=hG[t];if(i)return i(e,r,r.axisMap,r.categoryAxisMap),r}var hG={cartesian2d:function(e,t,r,i){var n=e.getReferringComponents(\\\"xAxis\\\",pr).models[0],a=e.getReferringComponents(\\\"yAxis\\\",pr).models[0];t.coordSysDims=[\\\"x\\\",\\\"y\\\"],r.set(\\\"x\\\",n),r.set(\\\"y\\\",a),Ea(n)&&(i.set(\\\"x\\\",n),t.firstCategoryDimIndex=0),Ea(a)&&(i.set(\\\"y\\\",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,i){var n=e.getReferringComponents(\\\"singleAxis\\\",pr).models[0];t.coordSysDims=[\\\"single\\\"],r.set(\\\"single\\\",n),Ea(n)&&(i.set(\\\"single\\\",n),t.firstCategoryDimIndex=0)},polar:function(e,t,r,i){var n=e.getReferringComponents(\\\"polar\\\",pr).models[0],a=n.findAxisModel(\\\"radiusAxis\\\"),o=n.findAxisModel(\\\"angleAxis\\\");t.coordSysDims=[\\\"radius\\\",\\\"angle\\\"],r.set(\\\"radius\\\",a),r.set(\\\"angle\\\",o),Ea(a)&&(i.set(\\\"radius\\\",a),t.firstCategoryDimIndex=0),Ea(o)&&(i.set(\\\"angle\\\",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,i){t.coordSysDims=[\\\"lng\\\",\\\"lat\\\"]},parallel:function(e,t,r,i){var n=e.ecModel,a=n.getComponent(\\\"parallel\\\",e.get(\\\"parallelIndex\\\")),o=t.coordSysDims=a.dimensions.slice();C(a.parallelAxisIndex,function(s,u){var l=n.getComponent(\\\"parallelAxis\\\",s),c=o[u];r.set(c,l),Ea(l)&&(i.set(c,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})},matrix:function(e,t,r,i){var n=e.getReferringComponents(\\\"matrix\\\",pr).models[0];t.coordSysDims=[\\\"x\\\",\\\"y\\\"];var a=n.getDimensionModel(\\\"x\\\"),o=n.getDimensionModel(\\\"y\\\");r.set(\\\"x\\\",a),r.set(\\\"y\\\",o),i.set(\\\"x\\\",a),i.set(\\\"y\\\",o)}};function Ea(e){return e.get(\\\"type\\\")===\\\"category\\\"}function pG(e,t,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;gG(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get(\\\"stack\\\")),l,c,f,d,v=!0;function h(b){return b.type!==\\\"ordinal\\\"&&b.type!==\\\"time\\\"}if(C(a,function(b,S){ee(b)&&(a[S]=b={name:b}),h(b)||(v=!1)}),C(a,function(b,S){u&&!b.isExtraCoord&&(!i&&!l&&b.ordinalMeta&&(l=b),!c&&h(b)&&(!v||b.coordDim!==\\\"x\\\"&&b.coordDim!==\\\"angle\\\")&&(!n||n===b.coordDim)&&(c=b))}),c&&!i&&!l&&(i=!0),c){f=\\\"__\\\\0ecstackresult_\\\"+e.id,d=\\\"__\\\\0ecstackedover_\\\"+e.id,l&&(l.createInvertedIndices=!0);var p=c.coordDim,g=c.type,m=0;C(a,function(b){b.coordDim===p&&m++});var y={name:f,coordDim:p,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:d,coordDim:d,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,g),_.storeDimIndex=s.ensureCalculationDimension(f,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:i,stackedOverDimension:d,stackResultDimension:f}}function gG(e){return!XM(e.schema)}function la(e,t){return!!t&&t===e.getCalculationInfo(\\\"stackedDimension\\\")}function eL(e,t){return la(e,t)?e.getCalculationInfo(\\\"stackResultDimension\\\"):t}function mG(e,t){var r=e.get(\\\"coordinateSystem\\\"),i=rb.get(r),n;return t&&t.coordSysDims&&(n=Q(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get(\\\"type\\\");o.type=rG(u)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||[\\\"x\\\",\\\"y\\\"]),n}function yG(e,t,r){var i,n;return r&&C(e,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(i==null&&(i=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(e[i].otherDims.itemName=0),i}function Nv(e,t,r){r=r||{};var i=t.getSourceManager(),n,a=!1;n=i.getSource(),a=n.sourceFormat===ir;var o=vG(t),s=mG(t,o),u=r.useEncodeDefaulter,l=le(u)?u:u?He(v5,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},f=QM(n,c),d=yG(f.dimensions,r.createInvertedIndices,o),v=a?null:i.getSharedDataStore(f),h=pG(t,{schema:f,store:v}),p=new Bs(f,t);p.setCalculationInfo(h);var g=d!=null&&_G(n)?function(m,y,_,b){return b===d?_:this.defaultDimValueGetter(m,y,_,b)}:null;return p.hasItemOption=!1,p.initData(a?n:v,null,g),p}function _G(e){if(e.sourceFormat===ir){var t=bG(e.data||[]);return!G(kl(t))}}function bG(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Vr=(function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();hv(Vr);var SG=0,Bg=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++SG,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,i=r.data,n=i&&Q(i,wG);return new e({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,i=this._needCollect;if(!ee(t)&&!i)return t;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var n=this._getOrCreateMap();return r=n.get(t),r==null&&(i?(r=this.categories.length,this.categories[r]=t,n.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=se(this.categories))},e})();function wG(e){return ne(e)&&e.value!=null?e.value:e+\\\"\\\"}var mr=0,du=1,xG={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},TG=Te(xG),Lf=2,tL=3;function wb(e,t,r){var i;return e=e||{},IG(e,r),{brk:i,mapper:e}}function rL(e,t){C(TG,function(r){e[r]=t[r]})}function nL(e,t){e.freeze=_t}function vu(e){return e.getExtentUnsafe(mr,Lf)}function Of(e,t){return e.getExtentUnsafe(du,t)||e.getExtentUnsafe(mr,t)}function kG(e){var t=Of(e,tL);return t[1]-t[0]}function Uv(e){var t=e.getExtentUnsafe(mr,tL);return t[1]-t[0]}function IG(e,t){var r=e||{},i=[];return r._extents=i,i[mr]=t?t.slice():dr(),Z(r,$G),r}var $G={needTransform:function(){return!1},normalize:function(e){var t=this._extents[du]||this._extents[mr];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[du]||this._extents[mr];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=Of(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[mr].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){vx(this._extents,mr,e,t)},setExtent2:function(e,t,r){var i=this._extents;i[e]||(i[e]=i[mr].slice()),vx(i,e,t,r)},freeze:function(){}};function vx(e,t,r,i){go(r,i)&&(e[t][0]=r,e[t][1]=i)}function iL(e){return Ef(e)||bo(e)}function Ef(e){return e.type===\\\"interval\\\"}function xb(e){return e.type===\\\"time\\\"}function bo(e){return e.type===\\\"log\\\"}function Gr(e){return e.type===\\\"ordinal\\\"}function DG(e){var t=_0(e),r=ha(10,t),i=Dn(e/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,Ae(i*r,-t)}function ca(e){return yn(e)+2}function yc(e,t){return Js(e)/Js(t)}function ep(e,t,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(e===i.from[n])return i.to[n]}return ha(t,e)}function aL(e,t,r){var i=e.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=ct(i[0]);t[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Cn(i[0])||!Cn(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function CG(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Tb(e,t){return e=e||t,Dn(Me(e,1))}function oL(e,t,r){var i=vu(e),n=i[0],a=e.count(),o=Math.max((t||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&u(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)u(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&u(i[1],!0,!0);function u(l,c,f){r({value:l,offInterval:c},f)}}var kb=(function(e){V(t,e);function t(r){var i=e.call(this)||this;i.type=\\\"ordinal\\\",i.parse=t.parse,rL(i,t.decoratedMethods);var n=r.ordinalMeta;n||(n=new Bg({})),G(n)&&(n=new Bg({categories:Q(n,function(o){return ne(o)?o.value:o})})),i._ordinalMeta=n;var a=wb(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,nL(i),i}return t.parse=function(r){return r==null?r=NaN:ee(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Dn(r),r},t.prototype.getTicks=function(){var r=[];return oL(this,0,function(i){r.push(i)}),r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Dt(s,i.length);o<u;++o){var l=n[o]=i[o];a[l]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;n[o]=c,a[c]=o}},t.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?\\\"\\\":n+\\\"\\\"}},t.prototype.count=function(){var r=vu(this._mapper);return r[1]-r[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=\\\"ordinal\\\",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Dn(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},t})(Vr);Vr.registerClass(kb);function Ib(e,t,r,i){for(var n=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<n.length;s++){var u=n[s],l=n[s-1];if(!(l.break||u.break)){for(var c=0,f=[],d=u.value-l.value,v=d/t,h=ca(v);c<t-1;){var p=Ae(l.value+(c+1)*v,h);p>o[0]&&p<o[1]&&f.push(p),c++}var g=Cv();g&&g.pruneTicksByBreak(\\\"auto\\\",f,r,function(m){return m},i,o),a.push(f)}}return a}var eo=(function(e){V(t,e);function t(r){var i=e.call(this)||this;i.type=\\\"interval\\\",i.parse=t.parse,r=r||{};var n=MP(i,r),a=wb(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return t.parse=function(r){return r==null||r===\\\"\\\"?NaN:Number(r)},t.prototype.getConfig=function(){return me(this._cfg)},t.prototype.setConfig=function(r){var i=vu(this);this._cfg=r=me(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=ca(r.interval))},t.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=vu(this),o=i.niceExtent,s=i.intervalPrecision,u=Cv(),l=this.brk,c=u,f=[];if(!n)return f;r.breakTicks;var d=3e3;a[0]<o[0]&&f.push({value:r.expandToNicedExtent?Ae(o[0]-n,s):a[0]});for(var v=function(_,b){return Dn((b-_)/n)},h=i.intervalCount,p=o[0],g=0;;g++){if(h==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>h)break;p=Dt(p,o[1]),g===h&&(p=o[1])}if(f.push({value:p}),p=Ae(p+n,s),l){var m=l.calcNiceTickMultiple(p,v);m>=0&&(p=Ae(p+m*n,s))}if(f.length>0&&p===f[f.length-1].value)break;if(f.length>d)return[]}var y=f.length?f[f.length-1].value:o[1];return a[1]>y&&f.push({value:r.expandToNicedExtent?Ae(y+n,s):a[1]}),f},t.prototype.getMinorTicks=function(r){return Ib(this,r,W0(this),this._cfg.interval)},t.prototype.getLabel=function(r,i){if(r==null)return\\\"\\\";var n=i&&i.precision;n==null?n=yn(r.value)||0:n===\\\"auto\\\"&&(n=this._cfg.intervalPrecision);var a=Ae(r.value,n,!0);return BP(a)},t.type=\\\"interval\\\",t})(Vr);Vr.registerClass(eo);var AG=function(e,t,r,i){for(;r<i;){var n=r+i>>>1;e[n][1]<t?r=n+1:i=n}return r},sL=(function(e){V(t,e);function t(r){var i=e.call(this)||this;i.type=\\\"time\\\",i.parse=t.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=MP(i,r),a=wb(i,n,null);return i.brk=a.brk,i}return t.prototype.getLabel=function(r){return Av(r.value,r1[qj(zs(this._minLevelUnit))]||r1.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(r,i,n){return Yj(r,i,n,this._locale,this._useUTC)},t.prototype.getTicks=function(r){var i=this._interval,n=vu(this),a=this.brk,o=[];if(!i)return o;var s=this._useUTC;o=NG(this._minLevelUnit,this._approxInterval,s,n,Uv(this),a);var u=Ki.length-1,l=0;return C(o,function(c){c.time&&(u=Math.min(u,xe(Ki,c.time.upperTimeUnit)),l=Math.max(l,c.time.level))}),o},t.prototype.getMinorTicks=function(r){return Ib(this,r,W0(this),this._interval)},t.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},t.parse=function(r){return Re(r)?Math.round(r):+Zo(r)},t.type=\\\"time\\\",t})(Vr),_c=[[\\\"second\\\",q0],[\\\"minute\\\",Y0],[\\\"hour\\\",Es],[\\\"quarter-day\\\",Es*6],[\\\"half-day\\\",Es*12],[\\\"day\\\",gr*1.2],[\\\"half-week\\\",gr*3.5],[\\\"week\\\",gr*7],[\\\"month\\\",gr*31],[\\\"quarter\\\",gr*95],[\\\"half-year\\\",t1/2],[\\\"year\\\",t1]];function PG(e,t,r,i){return wg(new Date(t),e,i).getTime()===wg(new Date(r),e,i).getTime()}function MG(e,t){return e/=gr,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function LG(e){var t=30*gr;return e/=t,e>6?6:e>3?3:e>2?2:1}function OG(e){return e/=Es,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function hx(e,t){return e/=t?Y0:q0,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function EG(e){return Me(b0(e,!0),1)}function zG(e,t,r){var i=Math.max(0,xe(Ki,t)-1);return wg(new Date(e),Ki[i],r).getTime()}function RG(e,t){var r=new Date(0);r[e](1);var i=r.getTime();r[e](1+t);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function NG(e,t,r,i,n,a){var o=3e3,s=Vj,u=0;function l(R,F,N,j,H,W,q){for(var te=RG(H,R),K=F,ce=new Date(K);K<N&&K<=i[1]&&(q.push({value:K}),!(u++>o));)if(ce[H](ce[j]()+R),K=ce.getTime(),a){var ye=a.calcNiceTickMultiple(K,te);ye>0&&(ce[H](ce[j]()+ye*R),K=ce.getTime())}q.push({value:K,notAdd:K>i[1]})}function c(R,F,N){var j=[],H=!F.length;if(!PG(zs(R),i[0],i[1],r)){H&&(F=[{value:zG(i[0],R,r)},{value:i[1]}]);for(var W=0;W<F.length-1;W++){var q=F[W].value,te=F[W+1].value;if(q!==te){var K=void 0,ce=void 0,ye=void 0,et=!1;switch(R){case\\\"year\\\":K=Math.max(1,Math.round(t/gr/365)),ce=LP(r),ye=Xj(r);break;case\\\"half-year\\\":case\\\"quarter\\\":case\\\"month\\\":K=LG(t),ce=X0(r),ye=OP(r);break;case\\\"week\\\":case\\\"half-week\\\":case\\\"day\\\":K=MG(t),ce=K0(r),ye=EP(r),et=!0;break;case\\\"half-day\\\":case\\\"quarter-day\\\":case\\\"hour\\\":K=OG(t),ce=J0(r),ye=zP(r);break;case\\\"minute\\\":K=hx(t,!0),ce=Q0(r),ye=RP(r);break;case\\\"second\\\":K=hx(t,!1),ce=eb(r),ye=NP(r);break;case\\\"millisecond\\\":K=EG(t),ce=tb(r),ye=UP(r);break}te>=i[0]&&q<=i[1]&&l(K,q,te,ce,ye,et,j),R===\\\"year\\\"&&N.length>1&&W===0&&N.unshift({value:N[0].value-K})}}for(var W=0;W<j.length;W++)N.push(j[W])}}for(var f=[],d=[],v=0,h=0,p=0;p<s.length;++p){var g=zs(s[p]);if(Wj(s[p])){c(s[p],f[f.length-1]||[],d);var m=s[p+1]?zs(s[p+1]):null;if(g!==m){if(d.length){h=v,d.sort(function(R,F){return R.value-F.value});for(var y=[],_=0;_<d.length;++_){var b=d[_].value;(_===0||d[_-1].value!==b)&&(y.push(d[_]),b>=i[0]&&b<=i[1]&&v++)}var S=n/t;if(v>S*1.5&&h>S/1.5||(f.push(y),v>S||e===s[p]))break}d=[]}}}for(var w=at(Q(f,function(R){return at(R,function(F){return F.value>=i[0]&&F.value<=i[1]&&!F.notAdd})}),function(R){return R.length>0}),x=w.length-1,k=[],p=0;p<w.length;++p)for(var T=w[p],I=0;I<T.length;++I){var $=Wc(T[I].value,r);k.push({value:T[I].value,time:{level:x-p,upperTimeUnit:$,lowerTimeUnit:$}})}T0(k,oB,null),k.sort(function(R,F){return R.value-F.value});var A=k[0],D=k[k.length-1],P=Wc(i[0],r),z=Wc(i[1],r);return(!A||A.value>i[0])&&k.unshift({value:i[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!D||D.value<i[1])&&k.push({value:i[1],time:{level:0,upperTimeUnit:z,lowerTimeUnit:z},notNice:!0}),k}var UG=function(e,t){var r=e.getExtent();if(r[0]===r[1]&&(r[0]-=gr,r[1]+=gr),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-gr}e.setExtent(r[0],r[1]);var n=Tb(t.splitNumber,10),a=Uv(e)/n,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var u=_c.length,l=Math.min(AG(_c,a,0,u),u-1),c=_c[l][1],f=_c[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:c,minLevelUnit:f})};Vr.registerClass(sL);var bc=0,Sc=1,uL=(function(e){V(t,e);function t(r){var i=e.call(this)||this;i.type=\\\"log\\\",i.parse=eo.parse,i.base=r.logBase||10;var n=[],a=[];i._lookup={from:n,to:a},n[bc]=n[Sc]=a[bc]=a[Sc]=NaN,rL(i,t.mapperMethods),r.breakOption;var o={};return i.powStub=new eo({breakParsed:o.original}),i.intervalStub=new eo({breakParsed:o.transformed}),nL(i,i.intervalStub),i}return t.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=this.intervalStub,o=a.getExtent(),s=n.getExtent(),u={lookup:{from:o,to:s}};return Q(a.getTicks(r||{}),function(l){var c=l.value,f=ep(c,i,u),d;return{value:f,break:d}},this)},t.prototype.getMinorTicks=function(r){return Ib(this,r,W0(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},t.type=\\\"log\\\",t.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(yc(r,this.base))},scale:function(r){return ep(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=yc(r,this.base),i&&i.depth===Lf?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return px.depth=n,gx.lookup=this._lookup,ep(n===Lf?r:this.intervalStub.transformOut(r,px),this.base,gx)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(mr,r,i)},setExtent2:function(r,i,n){if(!(!go(i,n)||i<=0||n<=0)){var a=mx,o=mx;if(r===mr){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[bc]=i,a[Sc]=n);var u=this.base;this.intervalStub.setExtent2(r,o[bc]=yc(i,u),o[Sc]=yc(n,u))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return go(i[0],i[1])&&Sr(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},t})(Vr);Vr.registerClass(uL);var px={},gx={},mx=[],lL={value:1,category:1,time:1,log:1},cL=ke();function BG(e){var t=e.get(\\\"type\\\");return(t==null||!Nt(lL,t)&&!Vr.getClass(t))&&(t=\\\"value\\\"),t}function FG(e,t,r){var i;switch(t){case\\\"category\\\":return new kb({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:dr()});case\\\"time\\\":return new sL({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(\\\"useUTC\\\"),breakOption:i});case\\\"log\\\":return new uL({logBase:e.get(\\\"logBase\\\"),breakOption:i});case\\\"value\\\":return new eo({breakOption:i});default:return new(Vr.getClass(t)||eo)({})}}function jG(e,t,r){var i=e.getExtentUnsafe(mr,null),n=i[0],a=i[1];return go(n,a)?n===t||a===t?VG:n<t&&a>t?ZG:Fg:Fg}var ZG=1,VG=2,Fg=3;function GG(e){cL(e).noOnMyZero=!0}function HG(e){return cL(e).noOnMyZero}function Al(e){var t=e.getLabelModel().get(\\\"formatter\\\");if(e.type===\\\"time\\\"){var r=Gj(t);return function(n,a){return e.scale.getFormattedLabel(n,a,r)}}else{if(ee(t))return function(n){var a=e.scale.getLabel(n),o=t.replace(\\\"{value}\\\",a??\\\"\\\");return o};if(le(t)){if(e.type===\\\"category\\\")return function(n,a){return t(zf(e,n),n.value-e.scale.getExtent()[0],null)};var i=Cv();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),t(zf(e,n),a,o)}}else return function(n){return e.scale.getLabel(n)}}}function zf(e,t){var r=e.scale;return Gr(r)?r.getLabel(t):t.value}function $b(e){var t=e.get(\\\"interval\\\");return t??\\\"auto\\\"}function WG(e){return e.type===\\\"category\\\"&&$b(e.getLabelModel())===0}function qG(e,t){var r={};return C(e.mapDimensionsAll(t),function(i){r[eL(e,i)]=!0}),Te(r)}function So(e){return e===\\\"middle\\\"||e===\\\"center\\\"}function hu(e){return e.getShallow(\\\"show\\\")}function YG(e,t,r){var i=e.get(\\\"breaks\\\",!0);i==null}function fL(e,t,r,i,n,a){var o=bo(e),s=o?e.intervalStub:e;if(s.setExtent(i[0],i[1]),o){var u=e.powStub,l={depth:Lf},c=e.transformOut(i[0],l),f=e.transformOut(i[1],l),d=CG(r,i);t[0]&&!d[0]&&(c=n[0]),t[1]&&!d[1]&&(f=n[1]),u.setExtent(c,f)}s.setConfig(a)}function Pl(e,t){return Gr(e)?e.getRawOrdinalNumber(t.value):t.value}function dL(e,t){return Gr(e)&&!!t.get(\\\"boundaryGap\\\")}var XG=(function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e})(),KG=LA(),jg=\\\"|&\\\",Yo=ke(),vL=-2,JG=-1,QG=ke();function hL(e,t){var r=e.model,i=Yo(Wo(r.ecModel)).keyed,n=i&&i.get(t);return n&&n.get(r.uid)}function eH(e,t){return gL(hL(e,t))}function tH(e,t){var r=[];return pL(e.model.ecModel,function(i){for(var n=0;n<t.length;n++)t[n]&&i.serByIdx[t[n].seriesIndex]&&r.push(gL(i))}),r}function pL(e,t){var r=Yo(Wo(e)).keyed;r&&r.each(function(i,n){i.each(function(a,o){t(a,n,o)})})}function gL(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function rH(e,t){var r=e.model.ecModel,i=Yo(Wo(r)).axSer;i&&Db(r,i.get(e.model.uid),t)}function mL(e,t,r){var i=hL(e,t);i&&Db(e.model.ecModel,i.sers,r)}function Db(e,t,r){if(t)for(var i=0;i<t.length;i++){var n=t[i];e.isSeriesFiltered(n)||r(n)}}function nH(e,t,r){var i=Yo(Wo(e)).keyed,n=i&&i.get(t);n&&n.each(function(a){r(a.axis)})}function yL(e,t){var r=e.model,i=Yo(Wo(r.ecModel)).keys;i&&C(i.get(r.uid),function(n){t(n)})}function iH(e){var t=QG(QZ(e)),r=t.keyed||(t.keyed=se());pL(e,function(i,n,a){var o=r.get(n)||r.set(n,se()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&_L.liPosMinGap(e,i,s)})}function aH(e,t){_L[e]=t}var _L={};function yx(e,t,r){if(e){var i=t.ecModel,n=Yo(Wo(i)),a=e.model.uid,o=n.axSer||(n.axSer=se()),s=o.get(a)||o.set(a,[]);s.push(t);var u=t.subType,l=t.getBaseAxis()===e,c=Vg.get(Zg(u,l,r))||Vg.get(Zg(u,l,null));if(c){var f=n.keyed||(n.keyed=se()),d=n.keys||(n.keys=se()),v=c.key,h=f.get(v)||f.set(v,se()),p=h.get(a);p||(p=h.set(a,{axis:e,sers:[],serByIdx:[]}),p.metrics=c.getMetrics(e),(d.get(a)||d.set(a,[])).push(v)),p.sers.push(t),p.serByIdx[t.seriesIndex]=t}}}function Zg(e,t,r){return e+jg+J(t,!0)+jg+(r||\\\"\\\")}function oH(e,t){var r=Zg(t.seriesType,t.baseAxis,t.coordSysType);Vg.set(r,t),KG(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:iH})})}var Vg=se(),sH=ke(),uH=1,lH=3,bL=(function(){function e(t,r,i,n,a){var o=Gr(t),s=o?r.getCategories().length:null,u;if(o){var l=r.getCategories(!0);u=l&&!l.length}var c=i.slice();(Ef(t)||bo(t)||xb(t))&&(PA(c,vs(t,r.get(\\\"dataMin\\\",!0))),MA(c,vs(t,r.get(\\\"dataMax\\\",!0)))),nB(c)||(c[0]=c[1]=NaN);var f=[],d=[!1,!1],v=r.get(\\\"min\\\",!0);v===\\\"dataMin\\\"?(f[0]=c[0],d[0]=!0):(f[0]=vs(t,le(v)?v({min:c[0],max:c[1]}):v),d[0]=f[0]!=null);var h=r.get(\\\"max\\\",!0);h===\\\"dataMax\\\"?(f[1]=c[1],d[1]=!0):(f[1]=vs(t,le(h)?h({min:c[0],max:c[1]}):h),d[1]=f[1]!=null);var p=cH(t,r),g=o?null:c[1]-c[0]||Math.abs(c[0]);f[0]==null&&(f[0]=o?u?c[0]:s?0:NaN:c[0]-p[0]*g),f[1]==null&&(f[1]=o?u?c[1]:s?s-1:NaN:c[1]+p[1]*g),!Cn(f[0])&&(f[0]=NaN),!Cn(f[1])&&(f[1]=NaN);var m=u||qs(f[0])||qs(f[1])||o&&!s,y=Ef(t),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(f[0]>0&&f[1]>0&&!d[0]&&(f[0]=0),f[0]<0&&f[1]<0&&!d[1]&&(f[1]=0));var b=!1;f[0]>f[1]&&(f.reverse(),b=!0);var S=vs(t,r.get(\\\"startValue\\\",!0)),w=S!=null;!Sr(S)&&n&&(S=t.getDefaultStartValue?t.getDefaultStartValue():0),Sr(S)&&(w||!y||_)&&(S<f[0]&&!d[0]?(f[0]=S,d[0]=!0):S>f[1]&&!d[1]&&(f[1]=S,d[1]=!0));var x=this._i={scale:t,dataMM:c,noZoomEffMM:f,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:S,isBlank:m,incl0:_,tggAxInv:b,ctnShp:a};_x(x,f)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var t=this._i,r=t.zoomMM,i=t.noZoomEffMM,n=t.zoomFixMM,a=t.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),_x(t,s),o},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(t,r){this._i.zoomMM[t]=r},e})();function _x(e,t){var r=e.scale,i=e.dataMM;r.sanitize&&(t[0]=r.sanitize(t[0],i),t[1]=r.sanitize(t[1],i),iB(t))}function vs(e,t){return t==null?null:qs(t)?NaN:e.parse(t)}function cH(e,t){var r;if(Gr(e))r=[0,0];else{var i=t.get(\\\"boundaryGap\\\");typeof i==\\\"boolean\\\"&&(i=null),r=G(i)?i:[i,i]}return[bx(r[0]),bx(r[1])]}function bx(e){return na(typeof e==\\\"boolean\\\"?0:e,1)||0}function SL(e){var t=sH(e.scale);return t.extent||(t.extent=dr()),t}function fH(e,t){SL(e).dimIdxInCoord=t.get(e.dim)}function dH(e,t){var r=e.scale,i=e.model,n=e.dim;r.rawExtentInfo||vH(r,e,n,i,t)}function vH(e,t,r,i,n){var a=SL(t),o=a.extent,s=!1;rH(t,function(c){if(c.boxCoordinateSystem){var f=GP(c).coord,d=a.dimIdxInCoord;if(d>=0){if(G(f)){var v=f[d];v!=null&&!G(v)&&sg(o,e.parse(v))}}}else if(c.coordinateSystem){var h=c.getData();if(h){var p=e.getFilter?e.getFilter():null;C(qG(h,r),function(g){rB(o,h.getApproximateExtent(g,p))})}c.__requireStartValue&&c.__requireStartValue(t)&&(s=!0)}});var u=gH(e,t,i),l=new bL(e,i,o,s,u);wL(e,l,n),a.extent=null}function hH(e,t){var r=e.scale;wL(r,new bL(r,e.model,t,!1,!1),lH)}function wL(e,t,r){e.rawExtentInfo=t,t.from=r}function pH(e,t){Cb.set(e,t)}var Cb=se();function xL(e,t,r,i,n){e.rawExtentInfo||hH({scale:e,model:t},dr());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get(\\\"legacyMinMaxDontInverseAxis\\\")&&(i.inverse=!i.inverse),a}function gH(e,t,r){var i=dL(e,r),n=r.get(\\\"containShape\\\",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return yL(t,function(o){a=!!Cb.get(o)||a}),a}function mH(e,t,r,i){if(r.ctnShp){var n;if(yL(e,function(s){var u=Cb.get(s);if(u){var l=u(e,i);l&&(n=n||[0,0],PA(n,l[0]),MA(n,l[1]),GG(e))}}),!!n){var a=t.getExtent();if(Gr(t))e.onBand||t.setExtent2(du,Dt(a[0],a[0]+n[0]),Me(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=Dt(o[0],t.transformOut(t.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=Me(o[1],t.transformOut(t.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(du,o[0],o[1])}}}}function Sx(e,t){var r=bo(e),i=r?e.intervalStub:e,n=t.fixMinMax||[],a=r?e.getExtent():null,o=i.getExtent(),s=aL(o,n,t.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var u=r?_H(i,t):yH(i,t),l=u.intervalPrecision,c=u.interval,f=t.userInterval;f!=null&&(u.interval=f,u.intervalPrecision=ca(f)),n[0]||(s[0]=Ae(ia(s[0]/c)*c,l)),n[1]||(s[1]=Ae(Tl(s[1]/c)*c,l)),f!=null&&(u.niceExtent=s.slice()),fL(e,n,o,s,a,u)}function yH(e,t){var r=Tb(t.splitNumber,5),i=Uv(e),n=t.minInterval,a=t.maxInterval,o=b0(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=ca(o),u=e.getExtent(),l=[Ae(Tl(u[0]/o)*o,s),Ae(ia(u[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function _H(e,t){var r=Tb(t.splitNumber,10),i=e.getExtent(),n=Uv(e),a=Me(xA(n),1),o=r/n*a;o<=.5&&(a*=10);var s=ca(a),u=[Ae(Tl(i[0]/a)*a,s),Ae(ia(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:u}}function xx(e){var t=e.scale,r=e.model,i=r.axis,n=r.ecModel;bH(t,r,i,n)}function bH(e,t,r,i,n){var a=xL(e,t,i,r),o=Ef(e)||xb(e);SH(e,{splitNumber:t.get(\\\"splitNumber\\\"),fixMinMax:a.fixMM,userInterval:t.get(\\\"interval\\\"),minInterval:o?t.get(\\\"minInterval\\\"):null,maxInterval:o?t.get(\\\"maxInterval\\\"):null,rawExtentResult:a}),r&&i&&mH(r,e,a,i)}function SH(e,t){wH[e.type](e,t)}var wH={interval:Sx,log:Sx,time:UG,ordinal:_t},Tx=[],xH={registerPreprocessor:HM,registerProcessor:WM,registerPostInit:WV,registerPostUpdate:qV,registerUpdateLifecycle:yb,registerAction:qo,registerCoordinateSystem:YV,registerLayout:XV,registerVisual:ma,registerTransform:JV,registerLoading:qM,registerMap:KV,registerImpl:YZ,PRIORITY:BV,ComponentModel:Be,ComponentView:Ur,SeriesModel:er,ChartView:Gt,registerComponentModel:function(e){Be.registerClass(e)},registerComponentView:function(e){Ur.registerClass(e)},registerSeriesModel:function(e){er.registerClass(e)},registerChartView:function(e){Gt.registerClass(e)},registerCustomSeries:function(e,t){},registerSubTypeDefaulter:function(e,t){Be.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){T6(e,t)}};function Mn(e){if(G(e)){C(e,function(t){Mn(t)});return}xe(Tx,e)>=0||(Tx.push(e),le(e)&&(e={install:e}),e.install(xH))}var TH=ke(),Fs=ke(),Br={estimate:1,determine:2};function Rf(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function kH(e,t){var r=e.getLabelModel().get(\\\"customValues\\\");if(r){var i=e.scale;return{labels:Q(TL(r,i),function(n,a){return{formattedLabel:Al(e)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return e.type===\\\"category\\\"?$H(e,t):CH(e)}function IH(e,t,r){var i=e.scale,n=e.getTickModel().get(\\\"customValues\\\");return n?{ticks:TL(n,i)}:e.type===\\\"category\\\"?DH(e,t):{ticks:i.getTicks(r)}}function TL(e,t){var r=t.getExtent(),i=[];return C(e,function(n){n=t.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),T0(i,sB,null),y0(i),Q(i,function(n){return{value:n}})}function $H(e,t){var r=e.getLabelModel(),i=kL(e,r,t);return!r.get(\\\"show\\\")||e.scale.isBlank()?{labels:[]}:i}function kL(e,t,r){var i=PH(e),n=$b(t),a=r.kind===Br.estimate;if(!a){var o=$L(i,n);if(o)return o}var s,u;le(n)?s=Nf(e,n,!1):(u=n===\\\"auto\\\"?MH(e,r):n,s=Nf(e,u,!1));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return Gg(i,n,l),!0}):Gg(i,n,l),l}function DH(e,t){var r=AH(e),i=$b(t),n=$L(r,i);if(n)return n;var a,o;if((!t.get(\\\"show\\\")||e.scale.isBlank())&&(a=[]),le(i))a=Nf(e,i,!0);else if(i===\\\"auto\\\"){var s=kL(e,e.getLabelModel(),Rf(Br.determine));o=s.labelCategoryInterval,a=Q(s.labels,function(u){return u.tick})}else o=i,a=Nf(e,o,!0);return Gg(r,i,{ticks:a,tickCategoryInterval:o})}function CH(e){var t=e.scale.getTicks(),r=Al(e);return{labels:Q(t,function(i,n){return{formattedLabel:r(i,n),rawLabel:e.scale.getLabel(i),tick:i}})}}var AH=IL(\\\"axisTick\\\"),PH=IL(\\\"axisLabel\\\");function IL(e){return function(r){return Fs(r)[e]||(Fs(r)[e]={list:[]})}}function $L(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function Gg(e,t,r){return e.list.push({key:t,value:r}),r}function MH(e,t){if(t.kind===Br.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Fs(e).autoInterval=r,!0}),r}var i=Fs(e).autoInterval;return i??(Fs(e).autoInterval=e.calculateCategoryInterval(t))}function LH(e,t){var r=t.kind,i=EH(e),n=Al(e),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,c=40;u>c&&(l=Math.max(1,Math.floor(u/c)));for(var f=s[0],d=e.dataToCoord(f+1)-e.dataToCoord(f),v=Math.abs(d*Math.cos(a)),h=Math.abs(d*Math.sin(a)),p=0,g=0;f<=s[1];f+=l){var m=0,y=0,_=yA(n({value:f}),i.font,\\\"center\\\",\\\"top\\\");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var b=p/v,S=g/h;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(b,S)));if(r===Br.estimate)return t.out.noPxChangeTryDetermine.push(Fe(OH,null,e,w,u)),w;var x=DL(e,w,u);return x??w}function OH(e,t,r){return DL(e,t,r)==null}function DL(e,t,r){var i=TH(e.model),n=e.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=t,i.axisExtent0=n[0],i.axisExtent1=n[1]}function EH(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(\\\"rotate\\\")||0,font:t.getFont()}}function Nf(e,t,r){var i=Al(e),n=e.scale,a=[],o=le(t);return oL(n,o?0:t,function(s,u){var l=n.getLabel(s);if(o){var c=!!t(s.value,l);if(s.offInterval=!c,!c&&!u)return}a.push(r?s:{formattedLabel:i(s),rawLabel:l,tick:s})}),a}var zH=.8;function Xo(e,t){t=t||{};var r={w:NaN,w2:NaN},i=e.scale,n=t.fromStat,a=t.min,o=kG(i);Sr(o)||(o=NaN);var s=e.getExtent(),u=ct(s[1]-s[0]);return Gr(i)?RH(r,e,o,u):n&&NH(r,e,o,u,n),a!=null&&(r.w=Sr(r.w)?Me(a,r.w):a),r}function RH(e,t,r,i){var n=t.onBand,a=r+(n?1:0);a===0&&(a=1),e.w=i/a,!n&&r&&i&&(e.w2=e.w*r/i)}function NH(e,t,r,i,n){var a=!1,o=-1/0;C(n.key?[eH(t,n.key)]:tH(t,n.sers||[]),function(s){var u=s.liPosMinGap;u!=null&&(u>0?(u>o&&(o=u),a=!1):u===vL&&(a=!0))}),Sr(r)&&r>0&&Sr(o)?(e.w=i/r*o,e.w2=o):a&&(e.w=i*zH,e.w2=e.w*r/i)}var kx=[0,1],UH=(function(){function e(t,r,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=i||[0,0]}return e.prototype.contain=function(t){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return t>=i&&t<=n},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var i=this._extent;i[0]=t,i[1]=r},e.prototype.dataToCoord=function(t,r){var i=this.scale;return t=i.normalize(i.parse(t)),Qs(t,kx,Ix(this),r)},e.prototype.coordToData=function(t,r){var i=Qs(t,Ix(this),kx,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),i=IH(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=Q(i.ticks,function(s){return{coord:this.dataToCoord(Pl(this.scale,s)),tick:s}},this),a=r.get(\\\"alignWithLabel\\\"),o=BH(this,n,a);return Q(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},e.prototype.getMinorTicksCoords=function(){if(Gr(this.scale))return[];var t=this.model.getModel(\\\"minorTick\\\"),r=t.get(\\\"splitNumber\\\");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=Q(i,function(a){return Q(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},e.prototype.getViewLabels=function(t){return t=t||Rf(Br.determine),kH(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel(\\\"axisLabel\\\")},e.prototype.getTickModel=function(){return this.model.getModel(\\\"axisTick\\\")},e.prototype.getBandWidth=function(){return Xo(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(t){return t=t||Rf(Br.determine),LH(this,t)},e})();function Ix(e){var t=e.getExtent();if(e.onBand){var r=t[1]-t[0],i=r/e.scale.count()/2;t[0]+=i,t[1]-=i}return t}function BH(e,t,r){var i=t.length;if(!e.onBand||r||!i)return!1;var n=Xo(e).w;if(!n)return!1;C(t,function(s){s.coord-=n/2});var a=e.scale.getExtent(),o=t[i-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var hs=Math.PI*2,Oi=An.CMD,FH=[\\\"top\\\",\\\"right\\\",\\\"bottom\\\",\\\"left\\\"];function jH(e,t,r,i,n){var a=r.width,o=r.height;switch(e){case\\\"top\\\":i.set(r.x+a/2,r.y-t),n.set(0,-1);break;case\\\"bottom\\\":i.set(r.x+a/2,r.y+o+t),n.set(0,1);break;case\\\"left\\\":i.set(r.x-t,r.y+o/2),n.set(-1,0);break;case\\\"right\\\":i.set(r.x+a+t,r.y+o/2),n.set(1,0);break}}function ZH(e,t,r,i,n,a,o,s,u){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var c=o*r+e,f=s*r+t;if(Math.abs(i-n)%hs<1e-4)return u[0]=c,u[1]=f,l-r;if(a){var d=i;i=_n(n),n=_n(d)}else i=_n(i),n=_n(n);i>n&&(n+=hs);var v=Math.atan2(s,o);if(v<0&&(v+=hs),v>=i&&v<=n||v+hs>=i&&v+hs<=n)return u[0]=c,u[1]=f,l-r;var h=r*Math.cos(i)+e,p=r*Math.sin(i)+t,g=r*Math.cos(n)+e,m=r*Math.sin(n)+t,y=(h-o)*(h-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(u[0]=h,u[1]=p,Math.sqrt(y)):(u[0]=g,u[1]=m,Math.sqrt(_))}function Uf(e,t,r,i,n,a,o,s){var u=n-e,l=a-t,c=r-e,f=i-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var v=u*c+l*f,h=v/d;s&&(h=Math.min(Math.max(h,0),1)),h*=d;var p=o[0]=e+h*c,g=o[1]=t+h*f;return Math.sqrt((p-n)*(p-n)+(g-a)*(g-a))}function CL(e,t,r,i,n,a,o){r<0&&(e=e+r,r=-r),i<0&&(t=t+i,i=-i);var s=e+r,u=t+i,l=o[0]=Math.min(Math.max(n,e),s),c=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-n)*(l-n)+(c-a)*(c-a))}var Pr=[];function VH(e,t,r){var i=CL(t.x,t.y,t.width,t.height,e.x,e.y,Pr);return r.set(Pr[0],Pr[1]),i}function GH(e,t,r){for(var i=0,n=0,a=0,o=0,s,u,l=1/0,c=t.data,f=e.x,d=e.y,v=0;v<c.length;){var h=c[v++];v===1&&(i=c[v],n=c[v+1],a=i,o=n);var p=l;switch(h){case Oi.M:a=c[v++],o=c[v++],i=a,n=o;break;case Oi.L:p=Uf(i,n,c[v],c[v+1],f,d,Pr,!0),i=c[v++],n=c[v++];break;case Oi.C:p=nA(i,n,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],f,d,Pr),i=c[v++],n=c[v++];break;case Oi.Q:p=aA(i,n,c[v++],c[v++],c[v],c[v+1],f,d,Pr),i=c[v++],n=c[v++];break;case Oi.A:var g=c[v++],m=c[v++],y=c[v++],_=c[v++],b=c[v++],S=c[v++];v+=1;var w=!!(1-c[v++]);s=Math.cos(b)*y+g,u=Math.sin(b)*_+m,v<=1&&(a=s,o=u);var x=(f-g)*_/y+g;p=ZH(g,m,_,b,b+S,w,x,d,Pr),i=Math.cos(b+S)*y+g,n=Math.sin(b+S)*_+m;break;case Oi.R:a=i=c[v++],o=n=c[v++];var k=c[v++],T=c[v++];p=CL(a,o,k,T,f,d,Pr);break;case Oi.Z:p=Uf(i,n,a,o,f,d,Pr,!0),i=a,n=o;break}p<l&&(l=p,r.set(Pr[0],Pr[1]))}return l}var Er=new de,Ue=new de,nt=new de,rn=new de,Qr=new de;function $x(e,t){if(e){var r=e.getTextGuideLine(),i=e.getTextContent();if(i&&r){var n=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=n.candidates||FH,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var u=1/0,l=n.anchor,c=e.getComputedTransform(),f=c&&Fo([],c),d=t.get(\\\"length2\\\")||0;l&&nt.copy(l);for(var v=0;v<o.length;v++){var h=o[v];jH(h,0,s,Er,rn),de.scaleAndAdd(Ue,Er,rn,d),Ue.transform(f);var p=e.getBoundingRect(),g=l?l.distance(Ue):e instanceof Pe?GH(Ue,e.path,nt):VH(Ue,p,nt);g<u&&(u=g,Ue.transform(c),nt.transform(c),nt.toArray(a[0]),Ue.toArray(a[1]),Er.toArray(a[2]))}AL(a,t.get(\\\"minTurnAngle\\\")),r.setShape({points:a})}}}var Bf=[],Ot=new de;function AL(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Er.fromArray(e[0]),Ue.fromArray(e[1]),nt.fromArray(e[2]),de.sub(rn,Er,Ue),de.sub(Qr,nt,Ue);var r=rn.len(),i=Qr.len();if(!(r<.001||i<.001)){rn.scale(1/r),Qr.scale(1/i);var n=rn.dot(Qr),a=Math.cos(t);if(a<n){var o=Uf(Ue.x,Ue.y,nt.x,nt.y,Er.x,Er.y,Bf,!1);Ot.fromArray(Bf),Ot.scaleAndAdd(Qr,o/Math.tan(Math.PI-t));var s=nt.x!==Ue.x?(Ot.x-Ue.x)/(nt.x-Ue.x):(Ot.y-Ue.y)/(nt.y-Ue.y);if(isNaN(s))return;s<0?de.copy(Ot,Ue):s>1&&de.copy(Ot,nt),Ot.toArray(e[1])}}}}function HH(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Er.fromArray(e[0]),Ue.fromArray(e[1]),nt.fromArray(e[2]),de.sub(rn,Ue,Er),de.sub(Qr,nt,Ue);var i=rn.len(),n=Qr.len();if(!(i<.001||n<.001)){rn.scale(1/i),Qr.scale(1/n);var a=rn.dot(t),o=Math.cos(r);if(a<o){var s=Uf(Ue.x,Ue.y,nt.x,nt.y,Er.x,Er.y,Bf,!1);Ot.fromArray(Bf);var u=Math.PI/2,l=Math.acos(Qr.dot(t)),c=u+l-r;if(c>=u)de.copy(Ot,nt);else{Ot.scaleAndAdd(Qr,s/Math.tan(Math.PI/2-c));var f=nt.x!==Ue.x?(Ot.x-Ue.x)/(nt.x-Ue.x):(Ot.y-Ue.y)/(nt.y-Ue.y);if(isNaN(f))return;f<0?de.copy(Ot,Ue):f>1&&de.copy(Ot,nt)}Ot.toArray(e[1])}}}}function tp(e,t,r,i){var n=r===\\\"normal\\\",a=n?e:e.ensureState(r);a.ignore=t;var o=i.get(\\\"smooth\\\");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=i.getModel(\\\"lineStyle\\\").getLineStyle();n?e.useStyle(s):a.style=s}function WH(e,t){var r=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),r>0&&i.length>=3){var n=zp(i[0],i[1]),a=zp(i[1],i[2]);if(!n||!a){e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*r,s=Wv([],i[1],i[0],o/n),u=Wv([],i[1],i[2],o/a),l=Wv([],s,u,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(u[0],u[1],u[0],u[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}function Ab(e,t,r){var i=e.getTextGuideLine(),n=e.getTextContent();if(!n){i&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(\\\"show\\\"),s=n.ignore,u=0;u<bf.length;u++){var l=bf[u],c=t[l],f=l===\\\"normal\\\";if(c){var d=c.get(\\\"show\\\"),v=f?s:J(n.states[l]&&n.states[l].ignore,s);if(v||!J(d,o)){var h=f?i:i&&i.states[l];h&&(h.ignore=!0),i&&tp(i,!0,l,c);continue}i||(i=new Go,e.setTextGuideLine(i),!f&&(s||!o)&&tp(i,!0,\\\"normal\\\",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),tp(i,!1,l,c)}}if(i){je(i.style,r),i.style.fill=null;var p=a.get(\\\"showAbove\\\"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,i.buildPath=WH}}function Pb(e,t){t=t||\\\"labelLine\\\";for(var r={normal:e.getModel(t)},i=0;i<qt.length;i++){var n=qt[i];r[n]=e.getModel([n,t])}return r}var Dx=[\\\"label\\\",\\\"labelLine\\\",\\\"layoutOption\\\",\\\"priority\\\",\\\"defaultAttr\\\",\\\"marginForce\\\",\\\"minMarginForce\\\",\\\"marginDefault\\\",\\\"suggestIgnore\\\"],qH=1,Ff=2,PL=qH|Ff;function jf(e,t,r){r=r||PL,t?e.dirty|=r:e.dirty&=~r}function ML(e,t){return t=t||PL,e.dirty==null||!!(e.dirty&t)}function ai(e){if(e)return ML(e)&&LL(e,e.label,e),e}function LL(e,t,r){var i=t.getComputedTransform();e.transform=j0(e.transform,i);var n=e.localRect=uu(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,c=a.__marginType;c==null&&l&&(o=l,c=Ga.textMargin);for(var f=0;f<4;f++)rp[f]=c===Ga.minMargin&&u&&u[f]!=null?u[f]:s&&s[f]!=null?s[f]:o?o[f]:0;c===Ga.textMargin&&Tf(n,rp,!1,!1);var d=e.rect=uu(e.rect,n);return i&&d.applyTransform(i),c===Ga.minMargin&&Tf(d,rp,!1,!1),e.axisAligned=F0(i),(e.label=e.label||{}).ignore=t.ignore,jf(e,!1),jf(e,!0,Ff),e}var rp=[0,0,0,0];function YH(e,t,r){return e.transform=j0(e.transform,r),e.localRect=uu(e.localRect,t),e.rect=uu(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=F0(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function XH(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var i=e.rect;i&&(i.x+=t.x,i.y+=t.y);var n=e.obb;n&&n.fromBoundingRect(e.localRect,r)}}function Hg(e,t){for(var r=0;r<Dx.length;r++){var i=Dx[r];e[i]==null&&(e[i]=t[i])}return ai(e)}function Cx(e){var t=e.obb;return(!t||ML(e,Ff))&&(e.obb=t=t||new mP,t.fromBoundingRect(e.localRect,e.transform),jf(e,!1,Ff)),t}function Wg(e,t,r,i,n){var a=e.length,o=Gn[t],s=mo[t];if(a<2)return!1;e.sort(function(x,k){return x.rect[o]-k.rect[o]});for(var u=0,l,c=!1,f=0;f<a;f++){var d=e[f],v=d.rect;l=v[o]-u,l<0&&(v[o]-=l,d.label[o]-=l,c=!0),u=v[o]+v[s]}var h=e[0],p=e[a-1],g,m;y(),g<0&&S(-g,.8),m<0&&S(m,.8),y(),_(g,m,1),_(m,g,-1),y(),g<0&&w(-g),m<0&&w(m);function y(){g=h.rect[o]-r,m=i-p.rect[o]-p.rect[s]}function _(x,k,T){if(x<0){var I=Math.min(k,-x);if(I>0){b(I*T,0,a);var $=I+x;$<0&&S(-$*T,1)}else S(-x*T,1)}}function b(x,k,T){x!==0&&(c=!0);for(var I=k;I<T;I++){var $=e[I],A=$.rect;A[o]+=x,$.label[o]+=x}}function S(x,k){for(var T=[],I=0,$=1;$<a;$++){var A=e[$-1].rect,D=Math.max(e[$].rect[o]-A[o]-A[s],0);T.push(D),I+=D}if(I){var P=Math.min(Math.abs(x)/I,k);if(x>0)for(var $=0;$<a-1;$++){var z=T[$]*P;b(z,0,$+1)}else for(var $=a-1;$>0;$--){var z=T[$-1]*P;b(-z,$,a)}}}function w(x){var k=x<0?-1:1;x=Math.abs(x);for(var T=Math.ceil(x/(a-1)),I=0;I<a-1;I++)if(k>0?b(T,0,I+1):b(-T,a-I-1,a),x-=T,x<=0)return}return c}function KH(e){for(var t=0;t<e.length;t++){var r=e[t],i=r.defaultAttr,n=r.labelLine;r.label.attr(\\\"ignore\\\",i.ignore),n&&n.attr(\\\"ignore\\\",i.labelGuideIgnore)}}function OL(e){var t=[];e.sort(function(l,c){return(c.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||c.priority-l.priority});function r(l){if(!l.ignore){var c=l.ensureState(\\\"emphasis\\\");c.ignore==null&&(c.ignore=!1)}l.ignore=!0}for(var i=0;i<e.length;i++){var n=ai(e[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,u=0;u<t.length;u++)if(Mb(n,t[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):t.push(n)}}}function Mb(e,t,r,i){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,i)?!1:e.axisAligned&&t.axisAligned?!0:Cx(e).intersect(Cx(t),r,i)}function JH(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function QH(e,t){var r=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:JH(i&&i.shape.points)}}var Ax=[\\\"align\\\",\\\"verticalAlign\\\",\\\"width\\\",\\\"height\\\",\\\"fontSize\\\"],Pt=new jo,np=ke(),e3=ke();function wc(e,t,r){for(var i=0;i<r.length;i++){var n=r[i];t[n]!=null&&(e[n]=t[n])}}var xc=[\\\"x\\\",\\\"y\\\",\\\"rotation\\\"],t3=(function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,i,n,a){var o=n.style,s=n.__hostTarget,u=s.textConfig||{},l=n.getComputedTransform(),c=n.getBoundingRect().plain();fe.applyTransform(c,c,l),l?Pt.setLocalTransform(l):(Pt.x=Pt.y=Pt.rotation=Pt.originX=Pt.originY=0,Pt.scaleX=Pt.scaleY=1),Pt.rotation=_n(Pt.rotation);var f=n.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var v=f.getComputedTransform();fe.applyTransform(d,d,v)}var h=d&&f.getTextGuideLine();this._labelList.push({label:n,labelLine:h,seriesModel:i,dataIndex:t,dataType:r,layoutOptionOrCb:a,layoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:h&&h.ignore,x:Pt.x,y:Pt.y,scaleX:Pt.scaleX,scaleY:Pt.scaleY,rotation:Pt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:u.position,attachedRot:u.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var i=t.__model,n=i.get(\\\"labelLayout\\\");(le(n)||Te(n).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=we(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,i,o,n)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),i=t.getHeight();function n(_,b){return function(){$x(_,b)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,u=s.__hostTarget,l=o.defaultAttr,c=void 0;le(o.layoutOptionOrCb)?c=o.layoutOptionOrCb(QH(o,u)):c=o.layoutOptionOrCb,c=c||{},o.layoutOption=c;var f=Math.PI/180;u&&u.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:l.attachedPos,rotation:c.rotate!=null?c.rotate*f:l.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=$e(c.x,r),s.setStyle(\\\"x\\\",0),d=!0):(s.x=l.x,s.setStyle(\\\"x\\\",l.style.x)),c.y!=null?(s.y=$e(c.y,i),s.setStyle(\\\"y\\\",0),d=!0):(s.y=l.y,s.setStyle(\\\"y\\\",l.style.y)),c.labelLinePoints){var v=u.getTextGuideLine();v&&(v.setShape({points:c.labelLinePoints}),d=!1)}var h=np(s);h.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var p=0;p<Ax.length;p++){var g=Ax[p];s.setStyle(g,c[g]!=null?c[g]:l.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor=\\\"move\\\",u){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on(\\\"drag\\\",n(u,m.getModel(\\\"labelLine\\\")))}}else s.off(\\\"drag\\\"),s.cursor=l.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),i=t.getHeight(),n=[];C(this._labelList,function(u){u.defaultAttr.ignore||n.push(Hg({},u))});var a=at(n,function(u){return u.layoutOption.moveOverlap===\\\"shiftX\\\"}),o=at(n,function(u){return u.layoutOption.moveOverlap===\\\"shiftY\\\"});Wg(a,0,0,r),Wg(o,1,0,i);var s=at(n,function(u){return u.layoutOption.hideOverlap});KH(s),OL(s)},e.prototype.processLabelsOverall=function(){var t=this;C(this._chartViewList,function(r){var i=r.__model,n=r.ignoreLabelLineUpdate,a=i.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,u=o.getTextContent();!s&&u&&(s=np(u).needsUpdateLabelLine),s&&t._updateLabelLine(o,i),a&&t._animateLabels(o,i)})})},e.prototype._updateLabelLine=function(t,r){var i=t.getTextContent(),n=we(t),a=n.dataIndex;if(i&&a!=null){var o=r.getData(n.dataType),s=o.getItemModel(a),u={},l=o.getItemVisual(a,\\\"style\\\");if(l){var c=o.getVisual(\\\"drawType\\\");u.stroke=l[c]}var f=s.getModel(\\\"labelLine\\\");Ab(t,Pb(s),u),$x(t,f)}},e.prototype._animateLabels=function(t,r){var i=t.getTextContent(),n=t.getTextGuideLine();if(i&&(t.forceLabelAnimation||!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!Ya(t))){var a=np(i),o=a.oldLayout,s=we(t),u=s.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},c=r.getData(s.dataType);if(o){i.attr(o);var d=t.prevStates;d&&(xe(d,\\\"select\\\")>=0&&i.attr(a.oldLayoutSelect),xe(d,\\\"emphasis\\\")>=0&&i.attr(a.oldLayoutEmphasis)),ut(i,l,r,u)}else if(i.attr(l),!Ho(i).valueAnimation){var f=J(i.style.opacity,1);i.style.opacity=0,bt(i,{style:{opacity:f}},r,u)}if(a.oldLayout=l,i.states.select){var v=a.oldLayoutSelect={};wc(v,l,xc),wc(v,i.states.select,xc)}if(i.states.emphasis){var h=a.oldLayoutEmphasis={};wc(h,l,xc),wc(h,i.states.emphasis,xc)}Ij(i,u,c,r,r)}if(n&&!n.ignore&&!n.invisible){var a=e3(n),o=a.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),ut(n,{shape:p},r)):(n.setShape(p),n.style.strokePercent=0,bt(n,{style:{strokePercent:1}},r)),a.oldLayout=p}},e})(),ip=ke();function r3(e){e.registerUpdateLifecycle(\\\"series:beforeupdate\\\",function(t,r,i){var n=ip(r).labelManager;n||(n=ip(r).labelManager=new t3),n.clearLabels()}),e.registerUpdateLifecycle(\\\"series:layoutlabels\\\",function(t,r,i){var n=ip(r).labelManager;C(i.updatedSeries,function(a){n.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),n.updateLayoutConfig(r),n.layout(r),n.processLabelsOverall()})}var n3=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return Nv(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var i=new st,n=ii(\\\"line\\\",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual(\\\"symbol\\\"),o=this.getData().getVisual(\\\"symbolRotate\\\"),s=a===\\\"none\\\"?\\\"circle\\\":a,u=r.itemHeight*.8,l=ii(s,(r.itemWidth-u)/2,(r.itemHeight-u)/2,u,u,r.itemStyle.fill);i.add(l),l.setStyle(r.itemStyle);var c=r.iconRotate===\\\"inherit\\\"?o:r.iconRotate||0;return l.rotation=c*Math.PI/180,l.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf(\\\"empty\\\")>-1&&(l.style.stroke=l.style.fill,l.style.fill=re.color.neutral00,l.style.lineWidth=2),i},t.type=\\\"series.line\\\",t.dependencies=[\\\"grid\\\",\\\"polar\\\"],t.defaultOption={z:3,coordinateSystem:\\\"cartesian2d\\\",legendHoverLink:!0,clip:!0,label:{position:\\\"top\\\"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:\\\"solid\\\"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:\\\"emptyCircle\\\",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:\\\"auto\\\",connectNulls:!1,sampling:\\\"none\\\",animationEasing:\\\"linear\\\",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:\\\"clone\\\"},triggerLineEvent:!1,triggerEvent:!1},t})(er);function Lb(e,t){var r=e.mapDimensionsAll(\\\"defaultedLabel\\\"),i=r.length;if(i===1){var n=_o(e,t,r[0]);return n!=null?n+\\\"\\\":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(_o(e,t,r[o]));return a.join(\\\" \\\")}}function EL(e,t){var r=e.mapDimensionsAll(\\\"defaultedLabel\\\");if(!G(t))return t+\\\"\\\";for(var i=[],n=0;n<r.length;n++){var a=e.getDimensionIndex(r[n]);a>=0&&i.push(t[a])}return i.join(\\\" \\\")}var Ob=(function(e){V(t,e);function t(r,i,n,a){var o=e.call(this)||this;return o.updateData(r,i,n,a),o}return t.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var u=ii(r,-1,-1,2,2,null,s);u.attr({z2:J(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),u.drift=i3,this._symbolType=r,this.add(u)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){iu(this.childAt(0))},t.prototype.downplay=function(){au(this.childAt(0))},t.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},t.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?\\\"move\\\":n.cursor},t.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,\\\"symbol\\\")||\\\"circle\\\",s=r.hostModel,u=t.getSymbolSize(r,i),l=t.getSymbolZ2(r,i),c=o!==this._symbolType,f=a&&a.disableAnimation;if(c){var d=r.getItemVisual(i,\\\"symbolKeepAspect\\\");this._createSymbol(o,r,i,u,l,d)}else{var v=this.childAt(0);v.silent=!1;var h={scaleX:u[0]/2,scaleY:u[1]/2};f?v.attr(h):ut(v,h,s,i),Tv(v)}if(this._updateCommon(r,i,u,n,a),c){var v=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,bt(v,h,s,i)}}f&&this.childAt(0).stopAnimation(\\\"leave\\\")},t.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),u=r.hostModel,l,c,f,d,v,h,p,g,m;if(a&&(l=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,v=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,h=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel(\\\"emphasis\\\");l=_.getModel(\\\"itemStyle\\\").getItemStyle(),f=y.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),c=y.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),d=_.get(\\\"focus\\\"),v=_.get(\\\"blurScope\\\"),h=_.get(\\\"disabled\\\"),p=li(y),g=_.getShallow(\\\"scale\\\"),m=y.getShallow(\\\"cursor\\\")}var b=r.getItemVisual(i,\\\"symbolRotate\\\");s.attr(\\\"rotation\\\",(b||0)*Math.PI/180||0);var S=Ev(r.getItemVisual(i,\\\"symbolOffset\\\"),n);S&&(s.x=S[0],s.y=S[1]),m&&s.attr(\\\"cursor\\\",m);var w=r.getItemVisual(i,\\\"style\\\"),x=w.fill;if(s instanceof dn){var k=s.style;s.useStyle(Z({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},w))}else s.__isEmptyBrush?s.useStyle(Z({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=r.getItemVisual(i,\\\"liftZ\\\"),I=this._z2;T!=null?I==null&&(this._z2=s.z2,s.z2+=T):I!=null&&(s.z2=I,this._z2=null);var $=o&&o.useNameLabel;ga(s,p,{labelFetcher:u,labelDataIndex:i,defaultText:A,inheritColor:x,defaultOpacity:w.opacity});function A(z){return $?r.getName(z):Lb(r,z)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=s.ensureState(\\\"emphasis\\\");D.style=l,s.ensureState(\\\"select\\\").style=f,s.ensureState(\\\"blur\\\").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;D.scaleX=this._sizeX*P,D.scaleY=this._sizeY*P,this.setSymbolScale(1),oa(this,d,v,h)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=we(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var u=a.getTextContent();u&&xf(u,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();xf(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,i){return vb(r.getItemVisual(i,\\\"symbolSize\\\"))},t.getSymbolZ2=function(r,i){return r.getItemVisual(i,\\\"z2\\\")},t})(st);function i3(e,t){this.parent.drift(e,t)}function Tc(e,t,r,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,\\\"symbol\\\")!==\\\"none\\\"}function Px(e){return e!=null&&!ne(e)&&(e={isIgnore:e}),e||{}}function Mx(e){var t=e.hostModel,r=t.getModel(\\\"emphasis\\\");return{emphasisItemStyle:r.getModel(\\\"itemStyle\\\").getItemStyle(),blurItemStyle:t.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),selectItemStyle:t.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),focus:r.get(\\\"focus\\\"),blurScope:r.get(\\\"blurScope\\\"),emphasisDisabled:r.get(\\\"disabled\\\"),hoverScale:r.get(\\\"scale\\\"),labelStatesModels:li(t),cursorStyle:t.get(\\\"cursor\\\")}}function Lx(e,t,r,i,n,a,o){var s=new e(t,r,i,n);return s.setPosition(a),t.setItemGraphicEl(r,s),o.add(s),s}var zL=(function(){function e(t){this.group=new st,this._SymbolCtor=t||Ob}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=Px(r);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,u=this._seriesScope=Mx(t),l={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||i.removeAll(),t.diff(a).add(function(f){var d=c(f);Tc(t,d,f,r)&&Lx(o,t,f,u,l,d,i)}).update(function(f,d){var v=a.getItemGraphicEl(d),h=c(f);if(!Tc(t,h,f,r)){i.remove(v);return}var p=t.getItemVisual(f,\\\"symbol\\\")||\\\"circle\\\",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)i.remove(v),v=new o(t,f,u,l),v.setPosition(h);else{v.updateData(t,f,u,l);var m={x:h[0],y:h[1]};s?v.attr(m):ut(v,m,n)}i.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){i.remove(d)},n)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(t){var r=this._data;if(r)for(var i=this,n=r.getStore(),a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),u=i._getSymbolPoint(a);Tc(r,u,a,t)?(s=s||Lx(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},u,i.group),s.stopAnimation(),s.setPosition(u),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(a,null))}},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Mx(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,i,n){this._progressiveEls=[],n=Px(n);function a(l){l.isGroup||(l.incremental=i,l.ensureState(\\\"emphasis\\\").hoverLayer=kv)}for(var o=t.start;o<t.end;o++){var s=r.getItemLayout(o);if(Tc(r,s,o,n)){var u=new this._SymbolCtor(r,o,this._seriesScope);u.traverse(a),u.setPosition(s),this.group.add(u),r.setItemGraphicEl(o,u),this._progressiveEls.push(u)}}},e.prototype.eachRendered=function(t){Dl(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},e})();function RL(e,t,r){var i=e.getBaseAxis(),n=e.getOtherAxis(i),a=a3(n,r),o=i.dim,s=n.dim,u=t.mapDimension(s),l=t.mapDimension(o),c=s===\\\"x\\\"||s===\\\"radius\\\"?1:0,f=Q(e.dimensions,function(h){return t.mapDimension(h)}),d=!1,v=t.getCalculationInfo(\\\"stackResultDimension\\\");return la(t,f[0])&&(d=!0,f[0]=v),la(t,f[1])&&(d=!0,f[1]=v),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:u,baseDim:l,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo(\\\"stackedOverDimension\\\")}}function a3(e,t){var r=0,i=e.scale.getExtent();return t===\\\"start\\\"?r=i[0]:t===\\\"end\\\"?r=i[1]:Re(t)&&!isNaN(t)?r=t:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function NL(e,t,r,i){var n=NaN;e.stacked&&(n=r.get(r.getCalculationInfo(\\\"stackedOverDimension\\\"),i)),isNaN(n)&&(n=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function br(e,t){return!isFinite(e)||!isFinite(t)}var o3=typeof Float32Array!==Vo?Float32Array:void 0,s3=typeof Float64Array!==Vo?Float64Array:void 0;function bn(e){return Eb({ctor:o3},e).arr}function Eb(e,t){var r=e.arr,i=e.ctor;if(t>lw&&(t=lw),!r||e.typed&&r.length<t){var n=void 0;if(i)try{n=new i(t),e.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],e.typed=!1,r))for(var a=0,o=r.length;a<o;a++)n[a]=r[a];e.arr=n}return e}function u3(e,t){var r=[];return t.diff(e).add(function(i){r.push({cmd:\\\"+\\\",idx:i})}).update(function(i,n){r.push({cmd:\\\"=\\\",idx:n,idx1:i})}).remove(function(i){r.push({cmd:\\\"-\\\",idx:i})}).execute(),r}function l3(e,t,r,i,n,a,o,s){for(var u=u3(e,t),l=[],c=[],f=[],d=[],v=[],h=[],p=[],g=RL(n,t,o),m=e.getLayout(\\\"points\\\")||[],y=t.getLayout(\\\"points\\\")||[],_=0;_<u.length;_++){var b=u[_],S=!0,w=void 0,x=void 0;switch(b.cmd){case\\\"=\\\":w=b.idx*2,x=b.idx1*2;var k=m[w],T=m[w+1],I=y[x],$=y[x+1];(isNaN(k)||isNaN(T))&&(k=I,T=$),l.push(k,T),c.push(I,$),f.push(r[w],r[w+1]),d.push(i[x],i[x+1]),p.push(t.getRawIndex(b.idx1));break;case\\\"+\\\":var A=b.idx,D=g.dataDimsForPoint,P=n.dataToPoint([t.get(D[0],A),t.get(D[1],A)]);x=A*2,l.push(P[0],P[1]),c.push(y[x],y[x+1]);var z=NL(g,n,t,A);f.push(z[0],z[1]),d.push(i[x],i[x+1]),p.push(t.getRawIndex(A));break;case\\\"-\\\":S=!1}S&&(v.push(b),h.push(h.length))}h.sort(function(ce,ye){return p[ce]-p[ye]});for(var R=l.length,F=bn(R),N=bn(R),j=bn(R),H=bn(R),W=[],_=0;_<h.length;_++){var q=h[_],te=_*2,K=q*2;F[te]=l[K],F[te+1]=l[K+1],N[te]=c[K],N[te+1]=c[K+1],j[te]=f[K],j[te+1]=f[K+1],H[te]=d[K],H[te+1]=d[K+1],W[_]=v[q]}return{current:F,next:N,stackedOnCurrent:j,stackedOnNext:H,status:W}}var Bn=Math.min,Fn=Math.max;function qg(e,t,r,i,n,a,o,s,u){for(var l,c,f,d,v,h,p=r,g=0;g<i;g++){var m=t[p*2],y=t[p*2+1];if(p>=n||p<0)break;if(br(m,y)){if(u){p+=a;continue}break}if(p===r)e[a>0?\\\"moveTo\\\":\\\"lineTo\\\"](m,y),f=m,d=y;else{var _=m-l,b=y-c;if(_*_+b*b<.5){p+=a;continue}if(o>0){for(var S=p+a,w=t[S*2],x=t[S*2+1];w===m&&x===y&&g<i;)g++,S+=a,p+=a,w=t[S*2],x=t[S*2+1],m=t[p*2],y=t[p*2+1],_=m-l,b=y-c;var k=g+1;if(u)for(;br(w,x)&&k<i;)k++,S+=a,w=t[S*2],x=t[S*2+1];var T=.5,I=0,$=0,A=void 0,D=void 0;if(k>=i||br(w,x))v=m,h=y;else{I=w-l,$=x-c;var P=m-l,z=w-m,R=y-c,F=x-y,N=void 0,j=void 0;if(s===\\\"x\\\"){N=Math.abs(P),j=Math.abs(z);var H=I>0?1:-1;v=m-H*N*o,h=y,A=m+H*j*o,D=y}else if(s===\\\"y\\\"){N=Math.abs(R),j=Math.abs(F);var W=$>0?1:-1;v=m,h=y-W*N*o,A=m,D=y+W*j*o}else N=Math.sqrt(P*P+R*R),j=Math.sqrt(z*z+F*F),T=j/(j+N),v=m-I*o*(1-T),h=y-$*o*(1-T),A=m+I*o*T,D=y+$*o*T,A=Bn(A,Fn(w,m)),D=Bn(D,Fn(x,y)),A=Fn(A,Bn(w,m)),D=Fn(D,Bn(x,y)),I=A-m,$=D-y,v=m-I*N/j,h=y-$*N/j,v=Bn(v,Fn(l,m)),h=Bn(h,Fn(c,y)),v=Fn(v,Bn(l,m)),h=Fn(h,Bn(c,y)),I=m-v,$=y-h,A=m+I*j/N,D=y+$*j/N}e.bezierCurveTo(f,d,v,h,m,y),f=A,d=D}else e.lineTo(m,y)}l=m,c=y,p+=a}return g}var UL=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),c3=(function(e){V(t,e);function t(r){var i=e.call(this,r)||this;return i.type=\\\"ec-polyline\\\",i}return t.prototype.getDefaultStyle=function(){return{stroke:re.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new UL},t.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&br(n[o*2-2],n[o*2-1]);o--);for(;a<o&&br(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=qg(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=An.CMD,s,u,l=i===\\\"x\\\",c=[],f=0;f<a.length;){var d=a[f++],v=void 0,h=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(d){case o.M:s=a[f++],u=a[f++];break;case o.L:if(v=a[f++],h=a[f++],_=l?(r-s)/(v-s):(r-u)/(h-u),_<=1&&_>=0){var b=l?(h-u)*_+u:(v-s)*_+s;return l?[r,b]:[b,r]}s=v,u=h;break;case o.C:v=a[f++],h=a[f++],p=a[f++],g=a[f++],m=a[f++],y=a[f++];var S=l?ff(s,v,p,m,r,c):ff(u,h,g,y,r,c);if(S>0)for(var w=0;w<S;w++){var x=c[w];if(x<=1&&x>=0){var b=l?ft(u,h,g,y,x):ft(s,v,p,m,x);return l?[r,b]:[b,r]}}s=m,u=y;break}}},t})(Pe),f3=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(UL),d3=(function(e){V(t,e);function t(r){var i=e.call(this,r)||this;return i.type=\\\"ec-polygon\\\",i}return t.prototype.getDefaultShape=function(){return new f3},t.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,u=i.smoothMonotone;if(i.connectNulls){for(;s>0&&br(n[s*2-2],n[s*2-1]);s--);for(;o<s&&br(n[o*2],n[o*2+1]);o++);}for(;o<s;){var l=qg(r,n,o,s,s,1,i.smooth,u,i.connectNulls);qg(r,a,o+l-1,l,s,-1,i.stackedOnSmooth,u,i.connectNulls),o+=l+1,r.closePath()}},t})(Pe);function BL(e,t,r,i,n){var a=e.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,c=r.get([\\\"lineStyle\\\",\\\"width\\\"])||0;o-=c/2,s-=c/2,u+=c,l+=c,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var f=new ot({shape:{x:o,y:s,width:u,height:l}});if(t){var d=e.getBaseAxis(),v=d.isHorizontal(),h=d.inverse;v?(h&&(f.shape.x+=u),f.shape.width=0):(h||(f.shape.y+=l),f.shape.height=0);var p=le(n)?function(g){n(g,f)}:null;bt(f,{shape:{width:u,height:l,x:o,y:s}},r,null,i,p)}return f}function FL(e,t,r){var i=e.getArea(),n=Ae(i.r0,1),a=Ae(i.r,1),o=new ui({shape:{cx:Ae(e.cx,1),cy:Ae(e.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=e.getBaseAxis().dim===\\\"angle\\\";s?o.shape.endAngle=i.startAngle:o.shape.r=n,bt(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function v3(e,t,r,i,n){if(e){if(e.type===\\\"polar\\\")return FL(e,t,r);if(e.type===\\\"cartesian2d\\\")return BL(e,t,r,i,n)}else return null;return null}function h3(e){var t=e.coordinateSystem;if(e.get(\\\"clip\\\",!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function zb(e,t){return e.type===t}function Ox(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function Ex(e){for(var t=dr(),r=dr(),i=0;i<e.length;){var n=e[i++],a=e[i++];br(n,a)||(sg(t,n),sg(r,a))}return[t,r]}function zx(e,t){var r=Ex(e),i=r[0],n=r[1],a=Ex(t),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function Rx(e){return Re(e)?e:e?.5:0}function p3(e,t,r){if(r.valueDim==null)return[];for(var i=t.count(),n=bn(i*2),a=0;a<i;a++){var o=NL(r,e,t,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function jn(e,t,r,i,n){var a=r.getBaseAxis(),o=a.dim===\\\"x\\\"||a.dim===\\\"radius\\\"?0:1,s=[],u=0,l=[],c=[],f=[],d=[];if(n){for(u=0;u<e.length;u+=2){var v=t||e;br(v[u],v[u+1])||d.push(e[u],e[u+1])}e=d}for(u=0;u<e.length-2;u+=2)switch(f[0]=e[u+2],f[1]=e[u+3],c[0]=e[u],c[1]=e[u+1],s.push(c[0],c[1]),i){case\\\"end\\\":l[o]=f[o],l[1-o]=c[1-o],s.push(l[0],l[1]);break;case\\\"middle\\\":var h=(c[o]+f[o])/2,p=[];l[o]=p[o]=h,l[1-o]=c[1-o],p[1-o]=f[1-o],s.push(l[0],l[1]),s.push(p[0],p[1]);break;default:l[o]=c[o],l[1-o]=f[1-o],s.push(l[0],l[1])}return s.push(e[u++],e[u++]),s}function g3(e,t){var r=[],i=e.length,n,a;function o(c,f,d){var v=c.coord,h=(d-v)/(f.coord-v),p=GU(h,[c.color,f.color]);return{coord:d,color:p}}for(var s=0;s<i;s++){var u=e[s],l=u.coord;if(l<0)n=u;else if(l>t){a?r.push(o(a,u,t)):n&&r.push(o(n,u,0),o(n,u,t));break}else n&&(r.push(o(n,u,0)),n=null),r.push(u),a=u}return r}function m3(e,t,r){var i=e.getVisual(\\\"visualMeta\\\");if(!(!i||!i.length||!e.count())&&t.type===\\\"cartesian2d\\\"){for(var n,a,o=i.length-1;o>=0;o--){var s=e.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n===\\\"x\\\"||n===\\\"y\\\"){a=i[o];break}}if(a){var u=t.getAxis(n),l=Q(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),c=l.length,f=a.outerColors.slice();c&&l[0].coord>l[c-1].coord&&(l.reverse(),f.reverse());var d=g3(l,n===\\\"x\\\"?r.getWidth():r.getHeight()),v=d.length;if(!v&&c)return l[0].coord<0?f[1]?f[1]:l[c-1].color:f[0]?f[0]:l[0].color;var h=10,p=d[0].coord-h,g=d[v-1].coord+h,m=g-p;if(m<.001)return\\\"transparent\\\";C(d,function(_){_.offset=(_.coord-p)/m}),d.push({offset:v?d[v-1].offset:.5,color:f[1]||\\\"transparent\\\"}),d.unshift({offset:v?d[0].offset:.5,color:f[0]||\\\"transparent\\\"});var y=new gP(0,0,0,0,d,!0);return y[n]=p,y[n+\\\"2\\\"]=g,y}}}function y3(e,t,r){var i=e.get(\\\"showAllSymbol\\\"),n=i===\\\"auto\\\";if(!(i&&!n)){var a=r.getAxesByScale(\\\"ordinal\\\")[0];if(a&&!(n&&_3(a,t))){var o=t.mapDimension(a.dim),s={};return C(a.getViewLabels(),function(u){u.tick.offInterval||(s[Pl(a.scale,u.tick)]=1)}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function _3(e,t){var r=e.getExtent(),i=Math.abs(r[1]-r[0])/e.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(Ob.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>i)return!1;return!0}function b3(e){for(var t=e.length/2;t>0&&br(e[t*2-2],e[t*2-1]);t--);return t-1}function Nx(e,t){return[e[t*2],e[t*2+1]]}function S3(e,t,r){for(var i=e.length/2,n=r===\\\"x\\\"?0:1,a,o,s=0,u=-1,l=0;l<i;l++)if(o=e[l*2+n],!br(o,e[l*2+1-n])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function jL(e){if(e.get([\\\"endLabel\\\",\\\"show\\\"]))return!0;for(var t=0;t<qt.length;t++)if(e.get([qt[t],\\\"endLabel\\\",\\\"show\\\"]))return!0;return!1}function ap(e,t,r,i){if(zb(t,\\\"cartesian2d\\\")){var n=i.getModel(\\\"endLabel\\\"),a=n.get(\\\"valueAnimation\\\"),o=i.getData(),s={lastFrameIndex:0},u=jL(i)?function(v,h){e._endLabelOnDuring(v,h,o,s,a,n,t)}:null,l=t.getBaseAxis().isHorizontal(),c=BL(t,r,i,function(){var v=e._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},u);if(!i.get(\\\"clip\\\",!0)){var f=c.shape,d=Math.max(f.width,f.height);l?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return u&&u(1,c),c}else return FL(t,r,i)}function w3(e,t){var r=t.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?\\\"right\\\":\\\"left\\\":\\\"center\\\",o=i?\\\"middle\\\":n?\\\"top\\\":\\\"bottom\\\";return{normal:{align:e.get(\\\"align\\\")||a,verticalAlign:e.get(\\\"verticalAlign\\\")||o}}}var x3=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new st,i=new zL;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=Fe(this._changePolyState,this)},t.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),u=r.getModel(\\\"lineStyle\\\"),l=r.getModel(\\\"areaStyle\\\"),c=s.getLayout(\\\"points\\\")||[],f=a.type===\\\"polar\\\",d=this._coordSys,v=this._symbolDraw,h=this._polyline,p=this._polygon,g=this._lineGroup,m=!i.ssr&&r.get(\\\"animation\\\"),y=!l.isEmpty(),_=l.get(\\\"origin\\\"),b=RL(a,s,_),S=y&&p3(a,s,b),w=r.get(\\\"showSymbol\\\"),x=r.get(\\\"connectNulls\\\"),k=w&&!f&&y3(r,s,a),T=this._data;T&&T.eachItemGraphicEl(function(Ie,Ye){Ie.__temp&&(o.remove(Ie),T.setItemGraphicEl(Ye,null))}),w||v.remove(),o.add(g);var I=f?!1:r.get(\\\"step\\\"),$;a&&a.getArea&&r.get(\\\"clip\\\",!0)&&($=a.getArea(),$.width!=null?($.x-=.1,$.y-=.1,$.width+=.2,$.height+=.2):$.r0&&($.r0-=.5,$.r+=.5)),this._clipShapeForSymbol=$;var A=m3(s,a,n)||s.getVisual(\\\"style\\\")[s.getVisual(\\\"drawType\\\")];if(!(h&&d.type===a.type&&I===this._step))w&&v.updateData(s,{isIgnore:k,clipShape:$,disableAnimation:!0,getSymbolPoint:function(Ie){return[c[Ie*2],c[Ie*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,$),I&&(S&&(S=jn(S,c,a,I,x)),c=jn(c,null,a,I,x)),h=this._newPolyline(c),y?p=this._newPolygon(c,S):p&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(r,a,sa(A)),g.setClipPath(ap(this,a,!0,r));else{y&&!p?p=this._newPolygon(c,S):p&&!y&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(r,a,sa(A));var D=g.getClipPath();if(D){var P=ap(this,a,!1,r);bt(D,{shape:P.shape},r)}else g.setClipPath(ap(this,a,!0,r));w&&v.updateData(s,{isIgnore:k,clipShape:$,disableAnimation:!0,getSymbolPoint:function(Ie){return[c[Ie*2],c[Ie*2+1]]}}),(!Ox(this._stackedOnPoints,S)||!Ox(this._points,c))&&(m?this._doUpdateAnimation(s,S,a,n,I,_,x):(I&&(S&&(S=jn(S,c,a,I,x)),c=jn(c,null,a,I,x)),h.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:S})))}var z=r.getModel(\\\"emphasis\\\"),R=z.get(\\\"focus\\\"),F=z.get(\\\"blurScope\\\"),N=z.get(\\\"disabled\\\");if(h.useStyle(je(u.getLineStyle(),{fill:\\\"none\\\",stroke:A,lineJoin:\\\"bevel\\\"})),ou(h,r,\\\"lineStyle\\\"),h.style.lineWidth>0&&r.get([\\\"emphasis\\\",\\\"lineStyle\\\",\\\"width\\\"])===\\\"bolder\\\"){var j=h.getState(\\\"emphasis\\\").style;j.lineWidth=+h.style.lineWidth+1}we(h).seriesIndex=r.seriesIndex,oa(h,R,F,N);var H=Rx(r.get(\\\"smooth\\\")),W=r.get(\\\"smoothMonotone\\\");if(h.setShape({smooth:H,smoothMonotone:W,connectNulls:x}),p){var q=s.getCalculationInfo(\\\"stackedOnSeries\\\"),te=0;p.useStyle(je(l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:\\\"bevel\\\",decal:s.getVisual(\\\"style\\\").decal})),q&&(te=Rx(q.get(\\\"smooth\\\"))),p.setShape({smooth:H,stackedOnSmooth:te,smoothMonotone:W,connectNulls:x}),ou(p,r,\\\"areaStyle\\\"),we(p).seriesIndex=r.seriesIndex,oa(p,R,F,N)}var K=this._changePolyState;s.eachItemGraphicEl(function(Ie){Ie&&(Ie.onHoverStateChange=K)}),this._polyline.onHoverStateChange=K,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=c,this._step=I,this._valueOrigin=_;var ce=r.get(\\\"triggerEvent\\\"),ye=r.get(\\\"triggerLineEvent\\\"),et=ye===!0||ce===!0||ce===\\\"line\\\",Je=ye===!0||ce===!0||ce===\\\"area\\\";this.packEventData(r,h,et),p&&this.packEventData(r,p,Je)},t.prototype.packEventData=function(r,i,n){we(i).eventData=n?{componentType:\\\"series\\\",componentSubType:\\\"line\\\",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:\\\"line\\\",selfType:i===this._polygon?\\\"area\\\":\\\"line\\\"}:null},t.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=aa(o,a);if(this._changePolyState(\\\"emphasis\\\"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout(\\\"points\\\"),l=o.getItemGraphicEl(s);if(!l){var c=u[s*2],f=u[s*2+1];if(br(c,f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get(\\\"zlevel\\\")||0,v=r.get(\\\"z\\\")||0;l=new Ob(o,s),l.x=c,l.y=f,l.setZ(d,v);var h=l.getSymbolPath().getTextContent();h&&(h.zlevel=d,h.z=v,h.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Gt.prototype.highlight.call(this,r,i,n,a)},t.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=aa(o,a);if(this._changePolyState(\\\"normal\\\"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else Gt.prototype.downplay.call(this,r,i,n,a)},t.prototype._changePolyState=function(r){var i=this._polygon;Ew(this._polyline,r),i&&Ew(i,r)},t.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new c3({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new d3({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),u=s.inverse;i.type===\\\"cartesian2d\\\"?(a=s.isHorizontal(),o=!1):i.type===\\\"polar\\\"&&(a=s.dim===\\\"angle\\\",o=!0);var l=r.hostModel,c=l.get(\\\"animationDuration\\\");le(c)&&(c=c(null));var f=l.get(\\\"animationDelay\\\")||0,d=le(f)?f(null):f;r.eachItemGraphicEl(function(v,h){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(n)if(o){var b=n,S=i.pointToCoord(g);a?(m=b.startAngle,y=b.endAngle,_=-S[1]/180*Math.PI):(m=b.r0,y=b.r,_=S[0])}else{var w=n;a?(m=w.x,y=w.x+w.width,_=v.x):(m=w.y+w.height,y=w.y,_=v.y)}var x=y===m?0:(_-m)/(y-m);u&&(x=1-x);var k=le(f)?f(h):c*x+d,T=p.getSymbolPath(),I=T.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:k}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:k}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel(\\\"endLabel\\\");if(jL(r)){var o=r.getData(),s=this._polyline,u=o.getLayout(\\\"points\\\");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Ct({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=b3(u);c>=0&&(ga(s,li(r,\\\"endLabel\\\"),{inheritColor:n,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,v){return v!=null?EL(o,v):Lb(o,f)},enableTextSetter:!0},w3(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,i,n,a,o,s,u){var l=this._endLabel,c=this._polyline;if(l){r<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var f=n.getLayout(\\\"points\\\"),d=n.hostModel,v=d.get(\\\"connectNulls\\\"),h=s.get(\\\"precision\\\"),p=s.get(\\\"distance\\\")||0,g=u.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=i.shape,b=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,S=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),x=m?\\\"x\\\":\\\"y\\\",k=S3(f,b,x),T=k.range,I=T[1]-T[0],$=void 0;if(I>=1){if(I>1&&!v){var A=Nx(f,T[0]);l.attr({x:A[0]+S,y:A[1]+w}),o&&($=d.getRawValue(T[0]))}else{var A=c.getPointOn(b,x);A&&l.attr({x:A[0]+S,y:A[1]+w});var D=d.getRawValue(T[0]),P=d.getRawValue(T[1]);o&&($=AA(n,h,D,P,k.t))}a.lastFrameIndex=T[0]}else{var z=r===1||a.lastFrameIndex>0?T[0]:0,A=Nx(f,z);o&&($=d.getRawValue(z)),l.attr({x:A[0]+S,y:A[1]+w})}if(o){var R=Ho(l);typeof R.setLabelText==\\\"function\\\"&&R.setLabelText($)}}},t.prototype._doUpdateAnimation=function(r,i,n,a,o,s,u){var l=this._polyline,c=this._polygon,f=r.hostModel,d=l3(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),v=d.current,h=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(o&&(h=jn(d.stackedOnCurrent,d.current,n,o,u),v=jn(d.current,null,n,o,u),g=jn(d.stackedOnNext,d.next,n,o,u),p=jn(d.next,null,n,o,u)),zx(v,p)>3e3||c&&zx(h,g)>3e3){l.stopAnimation(),l.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}l.shape.__points=d.current,l.shape.points=v;var m={shape:{points:p}};d.current!==v&&(m.shape.__points=d.next),l.stopAnimation(),ut(l,m,f),c&&(c.setShape({points:v,stackedOnPoints:h}),c.stopAnimation(),ut(c,{shape:{stackedOnPoints:g}},f),l.shape.points!==c.shape.points&&(c.shape.points=l.shape.points));for(var y=[],_=d.status,b=0;b<_.length;b++){var S=_[b].cmd;if(S===\\\"=\\\"){var w=r.getItemGraphicEl(_[b].idx1);w&&y.push({el:w,ptIdx:b})}}l.animators&&l.animators.length&&l.animators[0].during(function(){c&&c.dirtyShape();for(var x=l.shape.__points,k=0;k<y.length;k++){var T=y[k].el,I=y[k].ptIdx*2;T.x=x[I],T.y=x[I+1],T.markRedraw()}})},t.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=\\\"line\\\",t})(Gt);function Rb(e,t){return{seriesType:e,plan:fb(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(n){var s=Q(n.dimensions,function(v){return i.mapDimension(v)}).slice(0,2),u=s.length,l=i.getCalculationInfo(\\\"stackResultDimension\\\");la(i,s[0])&&(s[0]=l),la(i,s[1])&&(s[1]=l);var c=i.getStore(),f=i.getDimensionIndex(s[0]),d=i.getDimensionIndex(s[1]);return u&&{progress:function(v,h){for(var p=v.end-v.start,g=o&&bn(p*u),m=[],y=[],_=v.start,b=0;_<v.end;_++){var S=void 0;if(u===1){var w=c.get(f,_);S=n.dataToPoint(w,null,y)}else m[0]=c.get(f,_),m[1]=c.get(d,_),S=n.dataToPoint(m,null,y);o?(g[b++]=S[0],g[b++]=S[1]):h.setItemLayout(_,S.slice())}o&&(h.setLayout(\\\"points\\\",g),h.setLayout(\\\"pointsRange\\\",{start:v.start,end:v.end}))}}}}}}var T3={average:function(e){for(var t=0,r=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},k3=function(e){return Math.round(e.length/2)};function ZL(e){return{seriesType:e,reset:function(t,r,i){var n=t.getData(),a=t.get(\\\"sampling\\\"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type===\\\"cartesian2d\\\"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),c=u.getExtent(),f=i.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/d);if(isFinite(v)&&v>1){a===\\\"lttb\\\"?t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/v)):a===\\\"minmax\\\"&&t.setData(n.minmaxDownSample(n.mapDimension(l.dim),1/v));var h=void 0;ee(a)?h=T3[a]:le(a)&&(h=a),h&&t.setData(n.downSample(n.mapDimension(l.dim),1/v,h,k3))}}}}}function I3(e){e.registerChartView(x3),e.registerSeriesModel(n3),e.registerLayout(Rb(\\\"line\\\",!0)),e.registerVisual({seriesType:\\\"line\\\",reset:function(t){var r=t.getData(),i=t.getModel(\\\"lineStyle\\\").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual(\\\"style\\\").fill),r.setVisual(\\\"legendLineStyle\\\",i)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ZL(\\\"line\\\"))}var $3=(function(e){V(t,e);function t(r,i,n,a,o){var s=e.call(this,r,i,n)||this;return s.index=0,s.type=a||\\\"value\\\",s.position=o||\\\"bottom\\\",s}return t.prototype.isHorizontal=function(){var r=this.position;return r===\\\"top\\\"||r===\\\"bottom\\\"},t.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim===\\\"x\\\"?0:1]),i)},t.prototype.setCategorySortInfo=function(r){if(this.type!==\\\"category\\\")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t})(UH),D3=null;function C3(){return D3}var A3=\\\"expandAxisBreak\\\",qn=Math.PI,P3=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],M3=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],wo=ke(),VL=ke(),GL=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,i=t.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},e})();function L3(e,t,r,i){var n=r.axis,a=t.ensureRecord(r),o=[],s,u=Nb(e.axisName)&&So(e.nameLocation);C(i,function(h){var p=ai(h);if(!(!p||p.label.ignore)){o.push(p);var g=a.transGroup;u&&(g.transform?Fo(ps,g.transform):Sl(ps),p.transform&&As(ps,ps,p.transform),fe.copy(kc,p.localRect),kc.applyTransform(ps),s?s.union(kc):fe.copy(s=new fe(0,0,0,0),kc))}});var l=Math.abs(a.dirVec.x)>.1?\\\"x\\\":\\\"y\\\",c=a.transGroup[l];if(o.sort(function(h,p){return Math.abs(h.label[l]-c)-Math.abs(p.label[l]-c)}),u&&s){var f=n.getExtent(),d=Math.min(f[0],f[1]),v=Math.max(f[0],f[1])-d;s.union(new fe(d,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ps=an(),kc=new fe(0,0,0,0),HL=function(e,t,r,i,n,a){if(So(e.nameLocation)){var o=a.stOccupiedRect;o&&WL(YH({},o,a.transGroup.transform),i,n)}else qL(a.labelInfoList,a.dirVec,i,n)};function WL(e,t,r){var i=new de;Mb(e,t,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&XH(t,i)}function qL(e,t,r,i){for(var n=de.dot(i,t)>=0,a=0,o=e.length;a<o;a++){var s=e[n?a:o-1-a];s.label.ignore||WL(s,r,i)}}var Jn=(function(){function e(t,r,i,n){this.group=new st,this._axisModel=t,this._api=r,this._local={},this._shared=n||new GL(HL),this._resetCfgDetermined(i)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=J(t.axisName,r.get(\\\"name\\\")),a=r.get(\\\"nameMoveOverlap\\\");(a==null||a===\\\"auto\\\")&&(a=J(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:J(t.nameDirection,1),tickDirection:J(t.tickDirection,1),labelDirection:J(t.labelDirection,1),labelOffset:J(t.labelOffset,0),silent:J(t.silent,!0),axisName:n,nameLocation:Hi(r.get(\\\"nameLocation\\\"),i.nameLocation,\\\"end\\\"),shouldNameMoveOverlap:Nb(n)&&a,optionHideOverlap:r.get([\\\"axisLabel\\\",\\\"hideOverlap\\\"]),showMinorTicks:r.get([\\\"minorTick\\\",\\\"show\\\"])};this._cfg=o;var s=new st({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(r);u.transGroup=this._transformGroup,u.dirVec=new de(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),C(O3,function(n){t[n]&&E3[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},e.innerTextLayout=function(t,r,i){var n=wA(r-t),a,o;return mf(n)?(o=i>0?\\\"top\\\":\\\"bottom\\\",a=\\\"center\\\"):mf(n-qn)?(o=i>0?\\\"bottom\\\":\\\"top\\\",a=\\\"center\\\"):(o=\\\"middle\\\",n>0&&n<qn?a=i>0?\\\"right\\\":\\\"left\\\":a=i>0?\\\"left\\\":\\\"right\\\"),{rotation:n,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+\\\"Index\\\"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get(\\\"tooltip\\\");return t.get(\\\"silent\\\")||!(t.get(\\\"triggerEvent\\\")||r&&r.show)},e})(),O3=[\\\"axisLine\\\",\\\"axisTickLabelEstimate\\\",\\\"axisTickLabelDetermine\\\",\\\"axisName\\\"],E3={axisLine:function(e,t,r,i,n,a,o){var s=i.get([\\\"axisLine\\\",\\\"show\\\"]);if(s===\\\"auto\\\"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var u=i.axis.getExtent(),l=a.transform,c=[u[0],0],f=[u[1],0],d=c[0]>f[0];l&&(_r(c,c,l),_r(f,f,l));var v=Z({lineCap:\\\"round\\\"},i.getModel([\\\"axisLine\\\",\\\"lineStyle\\\"]).getLineStyle()),h={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get([\\\"axisLine\\\",\\\"breakLine\\\"])&&If(i.axis.scale))C3().buildAxisBreakLine(i,n,a,h);else{var p=new Pn(Z({shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]}},h));su(p.shape,p.style.lineWidth),p.anid=\\\"line\\\",n.add(p)}var g=i.get([\\\"axisLine\\\",\\\"symbol\\\"]);if(g!=null){var m=i.get([\\\"axisLine\\\",\\\"symbolSize\\\"]);ee(g)&&(g=[g,g]),(ee(m)||Re(m))&&(m=[m,m]);var y=Ev(i.get([\\\"axisLine\\\",\\\"symbolOffset\\\"])||0,m),_=m[0],b=m[1];C([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((c[0]-f[0])*(c[0]-f[0])+(c[1]-f[1])*(c[1]-f[1]))}],function(S,w){if(g[w]!==\\\"none\\\"&&g[w]!=null){var x=ii(g[w],-_/2,-b/2,_,b,v.stroke,!0),k=S.r+S.offset,T=d?f:c;x.attr({rotation:S.rotate,x:T[0]+k*Math.cos(e.rotation),y:T[1]-k*Math.sin(e.rotation),silent:!0,z2:11}),n.add(x)}})}}},axisTickLabelEstimate:function(e,t,r,i,n,a,o,s){var u=Bx(t,n,s);u&&Ux(e,t,r,i,n,a,o,Br.estimate)},axisTickLabelDetermine:function(e,t,r,i,n,a,o,s){var u=Bx(t,n,s);u&&Ux(e,t,r,i,n,a,o,Br.determine);var l=U3(e,n,a,i);N3(e,t.labelLayoutList,l),B3(e,n,a,i,e.tickDirection)},axisName:function(e,t,r,i,n,a,o,s){var u=r.ensureRecord(i);t.nameEl&&(n.remove(t.nameEl),t.nameEl=u.nameLayout=u.nameLocation=null);var l=e.axisName;if(Nb(l)){var c=e.nameLocation,f=e.nameDirection,d=i.getModel(\\\"nameTextStyle\\\"),v=i.get(\\\"nameGap\\\")||0,h=i.axis.getExtent(),p=i.axis.inverse?-1:1,g=new de(0,0),m=new de(0,0);c===\\\"start\\\"?(g.x=h[0]-p*v,m.x=-p):c===\\\"end\\\"?(g.x=h[1]+p*v,m.x=p):(g.x=(h[0]+h[1])/2,g.y=e.labelOffset+f*v,m.y=f);var y=an();m.transform(h0(y,y,e.rotation));var _=i.get(\\\"nameRotate\\\");_!=null&&(_=_*qn/180);var b,S;So(c)?b=Jn.innerTextLayout(e.rotation,_??e.rotation,f):(b=z3(e.rotation,c,_||0,h),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var w=d.getFont(),x=i.get(\\\"nameTruncate\\\",!0)||{},k=x.ellipsis,T=Ys(e.raw.nameTruncateMaxWidth,x.maxWidth,S),I=s.nameMarginLevel||0,$=new Ct({x:g.x,y:g.y,rotation:b.rotation,silent:Jn.isLabelSilent(i),style:yo(d,{text:l,font:w,overflow:\\\"truncate\\\",width:T,ellipsis:k,fill:d.getTextColor()||i.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),align:d.get(\\\"align\\\")||b.textAlign,verticalAlign:d.get(\\\"verticalAlign\\\")||b.textVerticalAlign}),z2:1});if(Iv({el:$,componentModel:i,itemName:l}),$.__fullText=l,$.anid=\\\"name\\\",i.get(\\\"triggerEvent\\\")){var A=Jn.makeAxisEventDataBase(i);A.targetType=\\\"axisName\\\",A.name=l,we($).eventData=A}a.add($),$.updateTransform(),t.nameEl=$;var D=u.nameLayout=ai({label:$,priority:$.z2,defaultAttr:{ignore:$.ignore},marginDefault:So(c)?P3[I]:M3[I]});if(u.nameLocation=c,n.add($),$.decomposeTransform(),e.shouldNameMoveOverlap&&D){var P=r.ensureRecord(i);r.resolveAxisNameOverlap(e,r,i,D,m,P)}}}};function Ux(e,t,r,i,n,a,o,s){XL(t)||F3(e,t,n,s,i,o);var u=t.labelLayoutList;j3(e,i,u,a),e.rotation;var l=e.optionHideOverlap;R3(i,u,l),l&&OL(at(u,function(c){return c&&!c.label.ignore})),L3(e,r,i,u)}function z3(e,t,r,i){var n=wA(r-e),a,o,s=i[0]>i[1],u=t===\\\"start\\\"&&!s||t!==\\\"start\\\"&&s;return mf(n-qn/2)?(o=u?\\\"bottom\\\":\\\"top\\\",a=\\\"center\\\"):mf(n-qn*1.5)?(o=u?\\\"top\\\":\\\"bottom\\\",a=\\\"center\\\"):(o=\\\"middle\\\",n<qn*1.5&&n>qn/2?a=u?\\\"left\\\":\\\"right\\\":a=u?\\\"right\\\":\\\"left\\\"),{rotation:n,textAlign:a,textVerticalAlign:o}}function R3(e,t,r){var i=e.axis,n=e.get([\\\"axisLabel\\\",\\\"customValues\\\"]);if(WG(i))return;function a(l,c,f){var d=ai(t[c]),v=ai(t[f]),h=i.scale;if(!(!d||!v)){if(l==null){if(!r&&n)return;var p=wo(d.label).labelInfo.tick;if(xb(h)&&p.notNice||Gr(h)&&p.offInterval){Na(d.label);return}}if(l===!1||d.suggestIgnore){Na(d.label);return}if(v.suggestIgnore){Na(v.label);return}var g=.1;if(!r){var m=[0,0,0,0];d=Hg({marginForce:m},d),v=Hg({marginForce:m},v)}Mb(d,v,null,{touchThreshold:g})&&Na(l?v.label:d.label)}}var o=e.get([\\\"axisLabel\\\",\\\"showMinLabel\\\"]),s=e.get([\\\"axisLabel\\\",\\\"showMaxLabel\\\"]),u=t.length;a(o,0,1),a(s,u-1,u-2)}function N3(e,t,r){e.showMinorTicks||C(t,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=VL(a),s=wo(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Na(a);return}}})}function Na(e){e&&(e.ignore=!0)}function YL(e,t,r,i,n){for(var a=[],o=[],s=[],u=0;u<e.length;u++){var l=e[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,t&&(_r(o,o,t),_r(s,s,t));var c=new Pn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});su(c.shape,c.style.lineWidth),c.anid=n+\\\"_\\\"+e[u].tickValue,a.push(c);var f=VL(c);f.onBand=!!e[u].onBand,f.tickValue=e[u].tickValue}return a}function U3(e,t,r,i){var n=i.axis,a=i.getModel(\\\"axisTick\\\"),o=a.get(\\\"show\\\");if(o===\\\"auto\\\"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel(\\\"lineStyle\\\"),u=e.tickDirection*a.get(\\\"length\\\"),l=n.getTicksCoords(),c=YL(l,r.transform,u,je(s.getLineStyle(),{stroke:i.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])}),\\\"ticks\\\"),f=0;f<c.length;f++)t.add(c[f]);return c}function B3(e,t,r,i,n){var a=i.axis,o=i.getModel(\\\"minorTick\\\");if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel(\\\"lineStyle\\\"),l=n*o.get(\\\"length\\\"),c=je(u.getLineStyle(),je(i.getModel(\\\"axisTick\\\").getLineStyle(),{stroke:i.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])})),f=0;f<s.length;f++)for(var d=YL(s[f],r.transform,l,c,\\\"minorticks_\\\"+f),v=0;v<d.length;v++)t.add(d[v])}}function Bx(e,t,r){if(XL(e)){var i=e.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(t.remove(e.labelGroup),Yg(e,null,null,null))}return!0}function F3(e,t,r,i,n,a){var o=n.axis,s=Ys(e.raw.axisLabelShow,n.get([\\\"axisLabel\\\",\\\"show\\\"])),u=new st;r.add(u);var l=Rf(i);if(!s||o.scale.isBlank()){Yg(t,[],u,l);return}var c=n.getModel(\\\"axisLabel\\\"),f=o.getViewLabels(l),d=(Ys(e.raw.labelRotate,c.get(\\\"rotate\\\"))||0)*qn/180,v=Jn.innerTextLayout(e.rotation,d,e.labelDirection),h=n.getCategories&&n.getCategories(!0),p=[],g=n.get(\\\"triggerEvent\\\"),m=1/0,y=-1/0;C(f,function(b,S){var w,x=b.tick,k=b.formattedLabel,T=b.rawLabel,I=c,$=Pl(o.scale,x);if(h&&h[$]){var A=h[$];ne(A)&&A.textStyle&&(I=new Qe(A.textStyle,c,n.ecModel))}var D=I.getTextColor()||n.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),P=I.getShallow(\\\"align\\\",!0)||v.textAlign,z=J(I.getShallow(\\\"alignMinLabel\\\",!0),P),R=J(I.getShallow(\\\"alignMaxLabel\\\",!0),P),F=I.getShallow(\\\"verticalAlign\\\",!0)||I.getShallow(\\\"baseline\\\",!0)||v.textVerticalAlign,N=J(I.getShallow(\\\"verticalAlignMinLabel\\\",!0),F),j=J(I.getShallow(\\\"verticalAlignMaxLabel\\\",!0),F),H=10+(((w=x.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,H),y=Math.max(y,H);var W=new Ct({x:0,y:0,rotation:0,silent:Jn.isLabelSilent(n),z2:H,style:yo(I,{text:k,align:S===0?z:S===f.length-1?R:P,verticalAlign:S===0?N:S===f.length-1?j:F,fill:le(D)?D(o.type===\\\"category\\\"?T:o.type===\\\"value\\\"?$+\\\"\\\":$,S):D})});W.anid=\\\"label_\\\"+$;var q=wo(W);if(q.labelInfo=b,q.layoutRotation=v.rotation,Iv({el:W,componentModel:n,itemName:k,formatterParamsExtra:{isTruncated:function(){return W.isTruncated},value:T,tickIndex:S}}),g){var te=Jn.makeAxisEventDataBase(n);te.targetType=\\\"axisLabel\\\",te.value=T,te.tickIndex=S;var K=b.tick.break;if(K){var ce=K.parsedBreak;te.break={start:ce.vmin,end:ce.vmax}}o.type===\\\"category\\\"&&(te.dataIndex=$),we(W).eventData=te,K&&V3(n,a,W,K)}p.push(W),u.add(W)});var _=Q(p,function(b){return{label:b,priority:wo(b).labelInfo.tick.break?b.z2+(y-m+1):b.z2,defaultAttr:{ignore:b.ignore}}});Yg(t,_,u,l)}function XL(e){return!!e.labelLayoutList}function Yg(e,t,r,i){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=i}function j3(e,t,r,i){var n=t.get([\\\"axisLabel\\\",\\\"margin\\\"]);C(r,function(a,o){var s=ai(a);if(s){var u=s.label,l=wo(u);s.suggestIgnore=u.ignore,u.ignore=!1,Ks(gn,Z3);var c=t.axis;gn.x=c.dataToCoord(Pl(c.scale,l.labelInfo.tick)),gn.y=e.labelOffset+e.labelDirection*n,gn.rotation=l.layoutRotation,i.add(gn),gn.updateTransform(),i.remove(gn),gn.decomposeTransform(),Ks(u,gn),u.markRedraw(),jf(s,!0),ai(s)}})}var gn=new ot,Z3=new ot;function Nb(e){return!!e}function V3(e,t,r,i){r.on(\\\"click\\\",function(n){var a={type:A3,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[e.axis.dim+\\\"AxisIndex\\\"]=e.componentIndex,t.dispatchAction(a)})}function Zf(e,t,r){r=r||{};var i=t.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?\\\"onZero\\\":o,u=i.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get(\\\"offset\\\")||0,d=u===\\\"x\\\"?[l[2]-f,l[3]+f]:[l[0]-f,l[1]+f];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));d[c.onZero]=Math.max(Math.min(v,d[1]),d[0])}n.position=[u===\\\"y\\\"?d[c[s]]:l[0],u===\\\"x\\\"?d[c[s]]:l[3]],n.rotation=Math.PI/2*(u===\\\"x\\\"?0:1);var h={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=h[o],n.labelOffset=a?d[c[o]]-d[c.onZero]:0,t.get([\\\"axisTick\\\",\\\"inside\\\"])&&(n.tickDirection=-n.tickDirection),Ys(r.labelInside,t.get([\\\"axisLabel\\\",\\\"inside\\\"]))&&(n.labelDirection=-n.labelDirection);var p=t.get([\\\"axisLabel\\\",\\\"rotate\\\"]);return n.labelRotate=s===\\\"top\\\"?-p:p,n.z2=1,n}function G3(e){return e.coordinateSystem&&e.coordinateSystem.type===\\\"cartesian2d\\\"}function H3(e){var t={xAxisModel:null,yAxisModel:null};return C(t,function(r,i){var n=i.replace(/Model$/,\\\"\\\"),a=e.getReferringComponents(n,pr).models[0];t[i]=a}),t}function W3(e,t,r,i,n,a){for(var o=Zf(e,r),s=!1,u=!1,l=0;l<t.length;l++)iL(t[l].getOtherAxis(r.axis).scale)&&(s=u=!0,r.axis.type===\\\"category\\\"&&r.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=a,new Jn(r,i,o,n)}function q3(e,t,r){var i=Zf(t,r);e.updateCfg(i)}function Y3(){aH(\\\"liPosMinGap\\\",X3)}function X3(e,t,r){var i=se(),n=r.serUids,a=r.liPosMinGap,o,s=t.axis,u=s.scale,l=u.needTransform(),c=u.getFilter?u.getFilter():null,f=uM(c);function d(_){Db(e,t.sers,function(b){var S=b.getRawData(),w=S.getDimensionIndex(S.mapDimension(s.dim));w>=0&&_(w,b,S.getStore())})}var v=0;if(d(function(_,b,S){i.set(b.uid,1),(!n||!n.hasKey(b.uid))&&(o=!0),v+=S.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}Eb(Ei,v);var h=0;d(function(_,b,S){for(var w=0,x=S.count();w<x;++w){var k=S.get(_,w);isFinite(k)&&(!c||lM(f,k))&&(l&&(k=u.transformIn(k,null)),Ei.arr[h++]=k)}});var p=Ei.typed?Ei.arr.subarray(0,h):(Ei.arr.length=h,Ei.arr);Ei.typed?p.sort():y0(p);for(var g=1/0,m=1;m<h;++m){var y=p[m]-p[m-1];y>0&&y<g&&(g=y)}r.liPosMinGap=t.liPosMinGap=Sr(g)?g:h>0?vL:JG,r.serUids=i}var Ei=Eb({ctor:s3},50);function K3(e){return function(t,r){var i=Xo(t,{fromStat:{key:e}});if(Sr(i.w2))return[-i.w2/2,i.w2/2]}}function Bv(e,t){return e+jg+t}function J3(e){return Y3(),{liPosMinGap:!Gr(e.scale)}}var to=\\\"bar\\\";function Q3(e,t,r,i){oH(e,{key:t,seriesType:r,coordSysType:i,getMetrics:J3})}function eW(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var KL={left:0,right:0,top:0,bottom:0},Vf=[\\\"25%\\\",\\\"25%\\\"],wn=\\\"cartesian2d\\\",tW=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,i){var n=Cl(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&ni(r.outerBounds,n)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&ni(this.option.outerBounds,r.outerBounds)},t.type=\\\"grid\\\",t.dependencies=[\\\"xAxis\\\",\\\"yAxis\\\"],t.layoutMode=\\\"box\\\",t.defaultOption={show:!1,z:0,left:\\\"15%\\\",top:65,right:\\\"10%\\\",bottom:80,containLabel:!1,outerBoundsMode:\\\"auto\\\",outerBounds:KL,outerBoundsContain:\\\"all\\\",outerBoundsClampWidth:Vf[0],outerBoundsClampHeight:Vf[1],backgroundColor:re.color.transparent,borderWidth:1,borderColor:re.color.neutral30},t})(Be),rW=LA(),nW=\\\"__ec_stack_\\\";function JL(e){return e.get(\\\"stack\\\")||nW+e.seriesIndex}function iW(e,t){var r=aW(e,t);return r.columnMap=oW(r),r}function aW(e,t){var r=Bv(t,wn),i=[],n=Xo(e,{fromStat:{key:r},min:1});return mL(e,r,function(a){i.push({barWidth:$e(a.get(\\\"barWidth\\\"),n.w),barMaxWidth:$e(a.get(\\\"barMaxWidth\\\"),n.w),barMinWidth:$e(a.get(\\\"barMinWidth\\\")||(QL(a)?.5:1),n.w),barGap:a.get(\\\"barGap\\\"),barCategoryGap:a.get(\\\"barCategoryGap\\\"),defaultBarGap:a.get(\\\"defaultBarGap\\\"),stackId:JL(a)})}),{bandWidthResult:n,seriesInfo:i}}function oW(e){var t=e.bandWidthResult.w,r=t,i=0,n,a,o=[],s={};C(e.seriesInfo,function(p,g){g||(a=p.defaultBarGap||0);var m=p.stackId;Nt(s,m)||i++;var y=s[m];y||(y=s[m]={width:0,maxWidth:0},o.push(m));var _=p.barWidth;_&&!y.width&&(y.width=_,_=Dt(r,_),r-=_);var b=p.barMaxWidth;b&&(y.maxWidth=b);var S=p.barMinWidth;S&&(y.minWidth=S);var w=p.barGap;w!=null&&(a=w);var x=p.barCategoryGap;x!=null&&(n=x)}),n==null&&(n=Me(35-o.length*4,15)+\\\"%\\\");var u=$e(n,t),l=$e(a,1),c=(r-u)/(i+(i-1)*l);c=Me(c,0),C(o,function(p){var g=s[p],m=g.maxWidth,y=g.minWidth;if(g.width){var _=g.width;m&&(_=Dt(_,m)),y&&(_=Me(_,y)),g.width=_,r-=_+l*_,i--}else{var _=c;m&&m<_&&(_=Dt(m,r)),y&&y>_&&(_=y),_!==c&&(g.width=_,r-=_+l*_,i--)}}),c=(r-u)/(i+(i-1)*l),c=Me(c,0);var f=0,d;C(o,function(p){var g=s[p];g.width||(g.width=c),d=g,f+=g.width*(1+l)}),d&&(f-=d.width*l);var v={},h=-f/2;return C(o,function(p){var g=s[p];v[p]=v[p]||{bandWidth:t,offset:h,width:g.width},h+=g.width*(1+l)}),v}function sW(e){return{seriesType:e,overallReset:function(t){var r=Bv(e,wn);nH(t,r,function(i){var n=iW(i,e);mL(i,r,function(a){var o=n.columnMap[JL(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function uW(e){return{seriesType:e,plan:fb(),reset:function(t){if(G3(t)){var r=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),u=t.get(\\\"showBackground\\\",!0),l=r.mapDimension(a.dim),c=r.getCalculationInfo(\\\"stackResultDimension\\\"),f=la(r,l)&&!!r.getCalculationInfo(\\\"stackedOnSeries\\\"),d=a.isHorizontal(),v=a.toGlobalCoord(a.dataToCoord(eW(a))),h=QL(t),p=t.get(\\\"barMinHeight\\\")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout(\\\"size\\\"),y=r.getLayout(\\\"offset\\\");return{progress:function(_,b){for(var S=_.count,w=h&&bn(S*3),x=h&&u&&bn(S*3),k=h&&bn(S),T=i.master.getRect(),I=d?T.width:T.height,$,A=b.getStore(),D=0;($=_.next())!=null;){var P=A.get(f?g:o,$),z=A.get(s,$),R=v,F=void 0;f&&(F=+P-A.get(o,$));var N=void 0,j=void 0,H=void 0,W=void 0;if(d){var q=i.dataToPoint([P,z]);f&&(R=i.dataToPoint([F,z])[0]),N=R,j=q[1]+y,H=q[0]-R,W=m,ct(H)<p&&(H=(H<0?-1:1)*p)}else{var q=i.dataToPoint([z,P]);f&&(R=i.dataToPoint([z,F])[1]),N=q[0]+y,j=R,H=m,W=q[1]-R,ct(W)<p&&(W=(W<=0?-1:1)*p)}h?(w[D]=N,w[D+1]=j,w[D+2]=d?H:W,x&&(x[D]=d?T.x:N,x[D+1]=d?j:T.y,x[D+2]=I),k[$]=$):b.setItemLayout($,{x:N,y:j,width:H,height:W}),D+=3}h&&b.setLayout({largePoints:w,largeDataIndices:k,largeBackgroundPoints:x,valueAxisHorizontal:d})}}}}}}function QL(e){return e.pipelineContext&&e.pipelineContext.large}function lW(e){return K3(Bv(e,wn))}function cW(e){rW(e,function(){function t(r){var i=Bv(r,wn);Q3(e,i,r,wn),pH(i,lW(r))}t(\\\"bar\\\"),t(\\\"pictorialBar\\\")})}var Xg=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,i){return Nv(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(n)C(a.getAxes(),function(d,v){if(d.type===\\\"category\\\"&&i!=null){var h=d.getTicksCoords(),p=d.getTickModel().get(\\\"alignWithLabel\\\"),g=o[v],m=i[v]===\\\"x1\\\"||i[v]===\\\"y1\\\";if(m&&!p&&(g+=1),h.length<2)return;if(h.length===2){s[v]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,b=1,S=0;S<h.length;S++){var w=h[S].coord,x=S===h.length-1?h[S-1].tickValue+b:h[S].tickValue;if(x===g){_=w;break}else if(x<g)y=w;else if(y!=null&&x>g){_=(w+y)/2;break}S===1&&(b=x-h[0].tickValue)}_==null&&(y?y&&(_=h[h.length-1].coord):_=h[0].coord),s[v]=d.toGlobalCoord(_)}});else{var u=this.getData(),l=u.getLayout(\\\"offset\\\"),c=u.getLayout(\\\"size\\\"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=l+c/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},t.type=\\\"series.__base_bar__\\\",t.defaultOption={z:2,coordinateSystem:\\\"cartesian2d\\\",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:\\\"mod\\\",defaultBarGap:\\\"10%\\\"},t})(er);er.registerClass(Xg);var fW=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Nv(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(\\\"realtimeSort\\\",!0)||null})},t.prototype.getProgressive=function(){return this.get(\\\"large\\\")?this.get(\\\"progressive\\\"):!1},t.prototype.__preparePipelineContext=function(r,i){var n=EA(this,r,i);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},t.type=\\\"series.\\\"+to,t.dependencies=[\\\"grid\\\",\\\"polar\\\"],t.defaultOption=CP(Xg.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:\\\"rgba(180, 180, 180, 0.2)\\\",borderColor:null,borderWidth:0,borderType:\\\"solid\\\",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:re.color.primary,borderWidth:2}},realtimeSort:!1}),t})(Xg),dW=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),Fx=(function(e){V(t,e);function t(r){var i=e.call(this,r)||this;return i.type=\\\"sausage\\\",i}return t.prototype.getDefaultShape=function(){return new dW},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),u=(s-o)*.5,l=o+u,c=i.startAngle,f=i.endAngle,d=i.clockwise,v=Math.PI*2,h=d?f-c<v:c-f<v;h||(c=f-(d?v:-v));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);h?(r.moveTo(p*o+n,g*o+a),r.arc(p*l+n,g*l+a,u,-Math.PI+c,c,!d)):r.moveTo(p*s+n,g*s+a),r.arc(n,a,s,c,f,!d),r.arc(m*l+n,y*l+a,u,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(n,a,o,f,c,d)},t})(Pe);function vW(e,t){t=t||{};var r=t.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return gf(i,n,a);var s=e(o),u=n.distance!=null?n.distance:5,l=this.shape,c=l.cx,f=l.cy,d=l.r,v=l.r0,h=(d+v)/2,p=l.startAngle,g=l.endAngle,m=(p+g)/2,y=r?Math.abs(d-v)/2:0,_=Math.cos,b=Math.sin,S=c+d*_(p),w=f+d*b(p),x=\\\"left\\\",k=\\\"top\\\";switch(s){case\\\"startArc\\\":S=c+(v-u)*_(m),w=f+(v-u)*b(m),x=\\\"center\\\",k=\\\"top\\\";break;case\\\"insideStartArc\\\":S=c+(v+u)*_(m),w=f+(v+u)*b(m),x=\\\"center\\\",k=\\\"bottom\\\";break;case\\\"startAngle\\\":S=c+h*_(p)+Ic(p,u+y,!1),w=f+h*b(p)+$c(p,u+y,!1),x=\\\"right\\\",k=\\\"middle\\\";break;case\\\"insideStartAngle\\\":S=c+h*_(p)+Ic(p,-u+y,!1),w=f+h*b(p)+$c(p,-u+y,!1),x=\\\"left\\\",k=\\\"middle\\\";break;case\\\"middle\\\":S=c+h*_(m),w=f+h*b(m),x=\\\"center\\\",k=\\\"middle\\\";break;case\\\"endArc\\\":S=c+(d+u)*_(m),w=f+(d+u)*b(m),x=\\\"center\\\",k=\\\"bottom\\\";break;case\\\"insideEndArc\\\":S=c+(d-u)*_(m),w=f+(d-u)*b(m),x=\\\"center\\\",k=\\\"top\\\";break;case\\\"endAngle\\\":S=c+h*_(g)+Ic(g,u+y,!0),w=f+h*b(g)+$c(g,u+y,!0),x=\\\"left\\\",k=\\\"middle\\\";break;case\\\"insideEndAngle\\\":S=c+h*_(g)+Ic(g,-u+y,!0),w=f+h*b(g)+$c(g,-u+y,!0),x=\\\"right\\\",k=\\\"middle\\\";break;default:return gf(i,n,a)}return i=i||{},i.x=S,i.y=w,i.align=x,i.verticalAlign=k,i}}function hW(e,t,r,i){if(Re(i)){e.setTextConfig({rotation:i});return}else if(G(t)){e.setTextConfig({rotation:0});return}var n=e.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,u,l=r(t);switch(l){case\\\"startArc\\\":case\\\"insideStartArc\\\":case\\\"middle\\\":case\\\"insideEndArc\\\":case\\\"endArc\\\":u=s;break;case\\\"startAngle\\\":case\\\"insideStartAngle\\\":u=a;break;case\\\"endAngle\\\":case\\\"insideEndAngle\\\":u=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-u;l===\\\"middle\\\"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function Ic(e,t,r){return t*Math.sin(e)*(r?-1:1)}function $c(e,t,r){return t*Math.cos(e)*(r?1:-1)}function $s(e,t,r){var i=e.get(\\\"borderRadius\\\");if(i==null)return r?{cornerRadius:0}:null;G(i)||(i=[i,i,i,i]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Q(i,function(a){return na(a,n)})}}var op=Math.max,sp=Math.min,pW=(function(e){V(t,e);function t(){var r=e.call(this)||this;return r.type=to,r._isFirstFrame=!0,r}return t.prototype.render=function(r,i,n,a){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get(\\\"coordinateSystem\\\");(o===\\\"cartesian2d\\\"||o===\\\"polar\\\")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},t.prototype.eachRendered=function(r){Dl(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(r,i,n,a){var o=this.group,s=r.getData(),u=this._data,l=r.coordinateSystem,c=l.getBaseAxis(),f;l.type===\\\"cartesian2d\\\"?f=c.isHorizontal():l.type===\\\"polar\\\"&&(f=c.dim===\\\"angle\\\");var d=r.isAnimationEnabled()?r:null,v=gW(r,l);v&&this._enableRealtimeSort(v,s,n);var h=r.get(\\\"clip\\\",!0)||v,p=l.getArea();o.removeClipPath();var g=r.get(\\\"roundCap\\\",!0),m=r.get(\\\"showBackground\\\",!0),y=r.getModel(\\\"backgroundStyle\\\"),_=y.get(\\\"borderRadius\\\")||0,b=[],S=this._backgroundEls,w=a&&a.isInitSort,x=a&&a.type===\\\"changeAxisOrder\\\";function k($){var A=Dc[l.type](s,$);if(!A)return null;var D=xW(l,f,A);return D.useStyle(y.getItemStyle()),l.type===\\\"cartesian2d\\\"?D.setShape(\\\"r\\\",_):D.setShape(\\\"cornerRadius\\\",_),b[$]=D,D}s.diff(u).add(function($){var A=s.getItemModel($),D=Dc[l.type](s,$,A);if(D&&(m&&k($),!(!s.hasValue($)||!Hx[l.type](D)))){var P=!1;h&&(P=jx[l.type](p,D));var z=Zx[l.type](r,s,$,D,f,d,c.model,!1,g);v&&(z.forceLabelAnimation=!0),Wx(z,s,$,A,D,r,f,l.type===\\\"polar\\\"),w?z.attr({shape:D}):v?Vx(v,d,z,D,$,f,!1,!1):bt(z,{shape:D},r,$),s.setItemGraphicEl($,z),o.add(z),z.ignore=P}}).update(function($,A){var D=s.getItemModel($),P=Dc[l.type](s,$,D);if(P){if(m){var z=void 0;S.length===0?z=k(A):(z=S[A],z.useStyle(y.getItemStyle()),l.type===\\\"cartesian2d\\\"?z.setShape(\\\"r\\\",_):z.setShape(\\\"cornerRadius\\\",_),b[$]=z);var R=Dc[l.type](s,$),F=tO(f,R,l);ut(z,{shape:F},d,$)}var N=u.getItemGraphicEl(A);if(!s.hasValue($)||!Hx[l.type](P)){o.remove(N);return}var j=!1;h&&(j=jx[l.type](p,P),j&&o.remove(N));var H=N&&(N.type===\\\"sector\\\"&&g||N.type===\\\"sausage\\\"&&!g);if(H&&(N&&Xa(N,r,A),N=null),N?Tv(N):N=Zx[l.type](r,s,$,P,f,d,c.model,!0,g),v&&(N.forceLabelAnimation=!0),x){var W=N.getTextContent();if(W){var q=Ho(W);q.prevValue!=null&&(q.prevValue=q.value)}}else Wx(N,s,$,D,P,r,f,l.type===\\\"polar\\\");w?N.attr({shape:P}):v?Vx(v,d,N,P,$,f,!0,x):ut(N,{shape:P},r,$,null),s.setItemGraphicEl($,N),N.ignore=j,o.add(N)}}).remove(function($){var A=u.getItemGraphicEl($);A&&Xa(A,r,$)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new st);T.removeAll();for(var I=0;I<b.length;++I)T.add(b[I]);o.add(T),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,i,n){this._clear(),Yx(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),Yx(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var i=r.get(\\\"clip\\\",!0)&&v3(r.coordinateSystem,!1,r),n=this.group;i?n.setClipPath(i):n.removeClipPath()},t.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,n),this._isFirstFrame=!1;else{var s=function(u){var l=i.getItemGraphicEl(u),c=l&&l.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on(\\\"rendered\\\",this._onRendered)}}},t.prototype._dataSort=function(r,i,n){var a=[];return r.each(r.mapDimension(i.dim),function(o,s){var u=n(s);u=u??NaN,a.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Q(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,i,n){for(var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,u=0,l=a.getOrdinalMeta().categories.length;u<l;++u){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(u)),f=c<0?Number.MIN_VALUE:i(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,i,n,a){if(this._isOrderChangedWithinSameData(r,i,n)){var o=this._dataSort(r,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:\\\"changeAxisOrder\\\",componentType:n.dim+\\\"Axis\\\",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,i,n){var a=i.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:\\\"changeAxisOrder\\\",componentType:a.dim+\\\"Axis\\\",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off(\\\"rendered\\\",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var i=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){Xa(a,r,we(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=to,t})(Gt),jx={cartesian2d:function(e,t){var r=t.width<0?-1:1,i=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var n=e.x+e.width,a=e.y+e.height,o=op(t.x,e.x),s=sp(t.x+t.width,n),u=op(t.y,e.y),l=sp(t.y+t.height,a),c=s<o,f=l<u;return t.x=c&&o>n?s:o,t.y=f&&u>a?l:u,t.width=c?0:s-o,t.height=f?0:l-u,r<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var i=t.r;t.r=t.r0,t.r0=i}var n=sp(t.r,e.r),a=op(t.r0,e.r0);t.r=n,t.r0=a;var o=n-a<0;if(r<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},Zx={cartesian2d:function(e,t,r,i,n,a,o,s,u){var l=new ot({shape:Z({},i),z2:1});if(l.__dataIndex=r,l.name=\\\"item\\\",a){var c=l.shape,f=n?\\\"height\\\":\\\"width\\\";c[f]=0}return l},polar:function(e,t,r,i,n,a,o,s,u){var l=!n&&u?Fx:ui,c=new l({shape:i,z2:1});c.name=\\\"item\\\";var f=eO(n);if(c.calculateTextPosition=vW(f,{isRoundCap:l===Fx}),a){var d=c.shape,v=n?\\\"r\\\":\\\"endAngle\\\",h={};d[v]=n?i.r0:i.startAngle,h[v]=i[v],(s?ut:bt)(c,{shape:h},a)}return c}};function gW(e,t){var r=e.get(\\\"realtimeSort\\\",!0),i=t.getBaseAxis();if(r&&i.type===\\\"category\\\"&&t.type===\\\"cartesian2d\\\")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function Vx(e,t,r,i,n,a,o,s){var u,l;a?(l={x:i.x,width:i.width},u={y:i.y,height:i.height}):(l={y:i.y,height:i.height},u={x:i.x,width:i.width}),s||(o?ut:bt)(r,{shape:u},t,n,null);var c=t?e.baseAxis.model:null;(o?ut:bt)(r,{shape:l},c,n)}function Gx(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var mW=[\\\"x\\\",\\\"y\\\",\\\"width\\\",\\\"height\\\"],yW=[\\\"cx\\\",\\\"cy\\\",\\\"r\\\",\\\"startAngle\\\",\\\"endAngle\\\"],Hx={cartesian2d:function(e){return!Gx(e,mW)},polar:function(e){return!Gx(e,yW)}},Dc={cartesian2d:function(e,t,r){var i=e.getItemLayout(t);if(!i)return null;var n=r?bW(r,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(e,t,r){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function _W(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function eO(e){return(function(t){var r=t?\\\"Arc\\\":\\\"Angle\\\";return function(i){switch(i){case\\\"start\\\":case\\\"insideStart\\\":case\\\"end\\\":case\\\"insideEnd\\\":return i+r;default:return i}}})(e)}function Wx(e,t,r,i,n,a,o,s){var u=t.getItemVisual(r,\\\"style\\\");if(s){if(!a.get(\\\"roundCap\\\")){var c=e.shape,f=$s(i.getModel(\\\"itemStyle\\\"),c,!0);Z(c,f),e.setShape(c)}}else{var l=i.get([\\\"itemStyle\\\",\\\"borderRadius\\\"])||0;e.setShape(\\\"r\\\",l)}e.useStyle(u);var d=i.getShallow(\\\"cursor\\\");d&&e.attr(\\\"cursor\\\",d);var v=s?o?n.r>=n.r0?\\\"endArc\\\":\\\"startArc\\\":n.endAngle>=n.startAngle?\\\"endAngle\\\":\\\"startAngle\\\":o?TW(n,a.coordinateSystem):kW(n,a.coordinateSystem),h=li(i);ga(e,h,{labelFetcher:a,labelDataIndex:r,defaultText:Lb(a.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:v});var p=e.getTextContent();if(s&&p){var g=i.get([\\\"label\\\",\\\"position\\\"]);e.textConfig.inside=g===\\\"middle\\\"?!0:null,hW(e,g===\\\"outside\\\"?v:g,eO(o),i.get([\\\"label\\\",\\\"rotate\\\"]))}kj(p,h,a.getRawValue(r),function(y){return EL(t,y)});var m=i.getModel([\\\"emphasis\\\"]);oa(e,m.get(\\\"focus\\\"),m.get(\\\"blurScope\\\"),m.get(\\\"disabled\\\")),ou(e,i),_W(n)&&(e.style.fill=\\\"none\\\",e.style.stroke=\\\"none\\\",C(e.states,function(y){y.style&&(y.style.fill=y.style.stroke=\\\"none\\\")}))}function bW(e,t){var r=e.get([\\\"itemStyle\\\",\\\"borderColor\\\"]);if(!r||r===\\\"none\\\")return 0;var i=e.get([\\\"itemStyle\\\",\\\"borderWidth\\\"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var SW=(function(){function e(){}return e})(),qx=(function(e){V(t,e);function t(r){var i=e.call(this,r)||this;return i.type=\\\"largeBar\\\",i}return t.prototype.getDefaultShape=function(){return new SW},t.prototype.buildPath=function(r,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,c=0;c<n.length;c+=3)u[a]=l,u[o]=n[c+2],s[a]=n[c+a],s[o]=n[c+o],r.rect(s[0],s[1],u[0],u[1])},t})(Pe);function Yx(e,t,r,i){var n=e.getData(),a=n.getLayout(\\\"valueAxisHorizontal\\\")?1:0,o=n.getLayout(\\\"largeDataIndices\\\"),s=n.getLayout(\\\"size\\\"),u=e.getModel(\\\"backgroundStyle\\\"),l=n.getLayout(\\\"largeBackgroundPoints\\\"),c=i?OA(e):0;if(l){var f=new qx({shape:{points:l},incremental:c,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(u.getItemStyle()),t.add(f),r&&r.push(f)}var d=new qx({shape:{points:n.getLayout(\\\"largePoints\\\")},incremental:c,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(n.getVisual(\\\"style\\\")),d.style.stroke=null,we(d).seriesIndex=e.seriesIndex,e.get(\\\"silent\\\")||(d.on(\\\"mousedown\\\",Xx),d.on(\\\"mousemove\\\",Xx)),r&&r.push(d)}var Xx=db(function(e){var t=this,r=wW(t,e.offsetX,e.offsetY);we(t).dataIndex=r>=0?r:null},30,!1);function wW(e,t,r){for(var i=e.baseDimIdx,n=1-i,a=e.shape.points,o=e.largeDataIndices,s=[],u=[],l=e.barWidth,c=0,f=a.length/3;c<f;c++){var d=c*3;if(u[i]=l,u[n]=a[d+2],s[i]=a[d+i],s[n]=a[d+n],u[n]<0&&(s[n]+=u[n],u[n]=-u[n]),t>=s[0]&&t<=s[0]+u[0]&&r>=s[1]&&r<=s[1]+u[1])return o[c]}return-1}function tO(e,t,r){if(zb(r,\\\"cartesian2d\\\")){var i=t,n=r.getArea();return{x:e?i.x:n.x,y:e?n.y:i.y,width:e?i.width:n.width,height:e?n.height:i.height}}else{var n=r.getArea(),a=t;return{cx:n.cx,cy:n.cy,r0:e?n.r0:a.r0,r:e?n.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function xW(e,t,r){var i=e.type===\\\"polar\\\"?ui:ot;return new i({shape:tO(t,r,e),silent:!0,z2:0})}function TW(e,t){if(e.height===0){var r=t.getOtherAxis(t.getBaseAxis());return r.inverse?\\\"bottom\\\":\\\"top\\\"}return e.height>0?\\\"bottom\\\":\\\"top\\\"}function kW(e,t){if(e.width===0){var r=t.getOtherAxis(t.getBaseAxis());return r.inverse?\\\"left\\\":\\\"right\\\"}return e.width>=0?\\\"right\\\":\\\"left\\\"}function IW(e){e.registerChartView(pW),e.registerSeriesModel(fW),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,sW(to)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,uW(to)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ZL(to)),e.registerAction({type:\\\"changeAxisOrder\\\",event:\\\"changeAxisOrder\\\",update:\\\"update\\\"},function(t,r){var i=t.componentType||\\\"series\\\";r.eachComponent({mainType:i,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})}),cW(e)}function rO(e){return{seriesType:e,reset:function(t,r){var i=r.findComponents({mainType:\\\"legend\\\"});if(!(!i||!i.length)){var n=t.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}function nO(e,t,r){t=G(t)&&{coordDimensions:t}||Z({encodeDefine:e.getEncode()},t);var i=e.getSource(),n=QM(i,t).dimensions,a=new Bs(n,e);return a.initData(i,r),a}var iO=(function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,r)},e})(),Qn=\\\"pie\\\",$W=ke(),aO=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new iO(Fe(this.getData,this),Fe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return nO(this,{coordDimensions:[\\\"value\\\"],encodeDefaulter:He(XP,this)})},t.prototype.getDataParams=function(r){var i=this.getData(),n=$W(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension(\\\"value\\\"),function(u){o.push(u)}),a=n.seats=O6(o,i.hostModel.get(\\\"percentPrecision\\\"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push(\\\"percent\\\"),s},t.prototype._defaultLabelLine=function(r){eu(r,\\\"labelLine\\\",[\\\"show\\\"]);var i=r.labelLine,n=r.emphasis.labelLine;i.show=i.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},t.type=\\\"series.\\\"+Qn,t.defaultOption={z:2,legendHoverLink:!0,colorBy:\\\"data\\\",center:[\\\"50%\\\",\\\"50%\\\"],radius:[0,\\\"50%\\\"],clockwise:!0,startAngle:90,endAngle:\\\"auto\\\",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:\\\"box\\\",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:\\\"truncate\\\",position:\\\"outer\\\",alignTo:\\\"none\\\",edgeDistance:\\\"25%\\\",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:\\\"solid\\\"}},itemStyle:{borderWidth:1,borderJoin:\\\"round\\\"},showEmptyCircle:!0,emptyCircleStyle:{color:\\\"lightgray\\\",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:\\\"expansion\\\",animationDuration:1e3,animationTypeUpdate:\\\"transition\\\",animationEasingUpdate:\\\"cubicInOut\\\",animationDurationUpdate:500,animationEasing:\\\"cubicInOut\\\"},t})(er);e5({fullType:aO.type,getCoord2:function(e){return e.getShallow(\\\"center\\\")}});var DW=Math.PI/180;function Kx(e,t,r,i,n,a,o,s,u,l){if(e.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],b=Math.abs(_.label.y-r),S=i+_.len,w=S*S,x=Math.sqrt(Math.abs((1-b*b/m)*w)),k=t+(x+_.len2)*n,T=k-_.label.x,I=_.targetTextWidth-T*n;oO(_,I,!0),_.label.x=k}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo===\\\"none\\\"){var _=p[y],b=_.label.y>r?m:g,S=Math.abs(_.label.y-r);if(S>=b.maxY){var w=_.label.x-t-_.len2*n,x=i+_.len,k=Math.abs(w)<x?Math.sqrt(S*S/(1-w*w/x/x)):x;b.rB=k,b.maxY=S}b.list.push(_)}c(g),c(m)}for(var d=e.length,v=0;v<d;v++)if(e[v].position===\\\"outer\\\"&&e[v].labelAlignTo===\\\"labelLine\\\"){var h=e[v].label.x-l;e[v].linePoints[1][0]+=h,e[v].label.x=l}Wg(e,1,u,u+o)&&f(e)}function CW(e,t,r,i,n,a,o,s){for(var u=[],l=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var v=e[d].label;up(e[d])||(v.x<t?(c=Math.min(c,v.x),u.push(e[d])):(f=Math.max(f,v.x),l.push(e[d])))}for(var d=0;d<e.length;d++){var h=e[d];if(!up(h)&&h.linePoints){if(h.labelStyleWidth!=null)continue;var v=h.label,p=h.linePoints,g=void 0;h.labelAlignTo===\\\"edge\\\"?v.x<t?g=p[2][0]-h.labelDistance-o-h.edgeDistance:g=o+n-h.edgeDistance-p[2][0]-h.labelDistance:h.labelAlignTo===\\\"labelLine\\\"?v.x<t?g=c-o-h.bleedMargin:g=o+n-f-h.bleedMargin:v.x<t?g=v.x-o-h.bleedMargin:g=o+n-v.x-h.bleedMargin,h.targetTextWidth=g,oO(h,g,!1)}}Kx(l,t,r,i,1,n,a,o,s,f),Kx(u,t,r,i,-1,n,a,o,s,c);for(var d=0;d<e.length;d++){var h=e[d];if(!up(h)&&h.linePoints){var v=h.label,p=h.linePoints,m=h.labelAlignTo===\\\"edge\\\",y=v.style.padding,_=y?y[1]+y[3]:0,b=v.style.backgroundColor?0:_,S=h.rect.width+b,w=p[1][0]-p[2][0];m?v.x<t?p[2][0]=o+h.edgeDistance+S+h.labelDistance:p[2][0]=o+n-h.edgeDistance-S-h.labelDistance:(v.x<t?p[2][0]=v.x+h.labelDistance:p[2][0]=v.x-h.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=v.y}}}function oO(e,t,r){if(e.labelStyleWidth==null){var i=e.label,n=i.style,a=e.rect,o=n.backgroundColor,s=n.padding,u=s?s[1]+s[3]:0,l=n.overflow,c=a.width+(o?0:u);if(t<c||r){if(l&&l.match(\\\"break\\\")){i.setStyle(\\\"backgroundColor\\\",null),i.setStyle(\\\"width\\\",t-u);var f=i.getBoundingRect();i.setStyle(\\\"width\\\",Math.ceil(f.width)),i.setStyle(\\\"backgroundColor\\\",o)}else{var d=t-u,v=t<c?d:r?d>e.unconstrainedWidth?null:d:null;i.setStyle(\\\"width\\\",v)}sO(a,i)}}}function sO(e,t){Jx.rect=e,LL(Jx,t,AW)}var AW={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Jx={};function up(e){return e.position===\\\"center\\\"}function PW(e){var t=e.getData(),r=[],i,n,a=!1,o=(e.get(\\\"minShowLabelAngle\\\")||0)*DW,s=t.getLayout(\\\"viewRect\\\"),u=t.getLayout(\\\"r\\\"),l=s.width,c=s.x,f=s.y,d=s.height;function v(w){w.ignore=!0}function h(w){if(!w.ignore)return!0;for(var x in w.states)if(w.states[x].ignore===!1)return!0;return!1}t.each(function(w){var x=t.getItemGraphicEl(w),k=x.shape,T=x.getTextContent(),I=x.getTextGuideLine(),$=t.getItemModel(w),A=$.getModel(\\\"label\\\"),D=A.get(\\\"position\\\")||$.get([\\\"emphasis\\\",\\\"label\\\",\\\"position\\\"]),P=A.get(\\\"distanceToLabelLine\\\"),z=A.get(\\\"alignTo\\\"),R=$e(A.get(\\\"edgeDistance\\\"),l),F=A.get(\\\"bleedMargin\\\");F==null&&(F=Math.min(l,d)>200?10:2);var N=$.getModel(\\\"labelLine\\\"),j=N.get(\\\"length\\\");j=$e(j,l);var H=N.get(\\\"length2\\\");if(H=$e(H,l),Math.abs(k.endAngle-k.startAngle)<o){C(T.states,v),T.ignore=!0,I&&(C(I.states,v),I.ignore=!0);return}if(h(T)){var W=(k.startAngle+k.endAngle)/2,q=Math.cos(W),te=Math.sin(W),K,ce,ye,et;i=k.cx,n=k.cy;var Je=D===\\\"inside\\\"||D===\\\"inner\\\";if(D===\\\"center\\\")K=k.cx,ce=k.cy,et=\\\"center\\\";else{var Ie=(Je?(k.r+k.r0)/2*q:k.r*q)+i,Ye=(Je?(k.r+k.r0)/2*te:k.r*te)+n;if(K=Ie+q*3,ce=Ye+te*3,!Je){var oe=Ie+q*(j+u-k.r),_e=Ye+te*(j+u-k.r),Bt=oe+(q<0?-1:1)*H,tt=_e;z===\\\"edge\\\"?K=q<0?c+R:c+l-R:K=Bt+(q<0?-P:P),ce=tt,ye=[[Ie,Ye],[oe,_e],[Bt,tt]]}et=Je?\\\"center\\\":z===\\\"edge\\\"?q>0?\\\"right\\\":\\\"left\\\":q>0?\\\"left\\\":\\\"right\\\"}var kr=Math.PI,Ft=0,Ir=A.get(\\\"rotate\\\");if(Re(Ir))Ft=Ir*(kr/180);else if(D===\\\"center\\\")Ft=0;else if(Ir===\\\"radial\\\"||Ir===!0){var ya=q<0?-W+kr:-W;Ft=ya}else if(Ir===\\\"tangential\\\"||Ir===\\\"tangential-noflip\\\"&&D!==\\\"outside\\\"&&D!==\\\"outer\\\"){var $r=Math.atan2(q,te);$r<0&&($r=kr*2+$r);var Ll=te>0;Ll&&Ir!==\\\"tangential-noflip\\\"&&($r=kr+$r),Ft=$r-kr}if(a=!!Ft,T.x=K,T.y=ce,T.rotation=Ft,T.setStyle({verticalAlign:\\\"middle\\\"}),Je){T.setStyle({align:et});var Zv=T.states.select;Zv&&(Zv.x+=T.x,Zv.y+=T.y)}else{var _a=new fe(0,0,0,0);sO(_a,T),r.push({label:T,labelLine:I,position:D,len:j,len2:H,minTurnAngle:N.get(\\\"minTurnAngle\\\"),maxSurfaceAngle:N.get(\\\"maxSurfaceAngle\\\"),surfaceNormal:new de(q,te),linePoints:ye,textAlign:et,labelDistance:P,labelAlignTo:z,edgeDistance:R,bleedMargin:F,rect:_a,unconstrainedWidth:_a.width,labelStyleWidth:T.style.width})}x.setTextConfig({inside:Je})}}),!a&&e.get(\\\"avoidLabelOverlap\\\")&&CW(r,i,n,u,l,d,c,f);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(C(m.states,v),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(y){var S=g.linePoints;_||!S?(C(y.states,v),y.ignore=!0):(AL(S,g.minTurnAngle),HH(S,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new de(S[0][0],S[0][1])})}}}var Qx=Math.PI*2,Cc=Math.PI/180,MW=zA(Qn,LW);function LW(e,t){e.eachSeriesByType(Qn,function(r){var i=r.getData(),n=i.mapDimension(\\\"value\\\"),a=s5(r,t),o=a.cx,s=a.cy,u=a.r,l=a.r0,c=a.viewRect,f=-r.get(\\\"startAngle\\\")*Cc,d=r.get(\\\"endAngle\\\"),v=r.get(\\\"padAngle\\\")*Cc;d=d===\\\"auto\\\"?f-Qx:-d*Cc;var h=r.get(\\\"minAngle\\\")*Cc,p=h+v,g=0;i.each(n,function(R){!isNaN(R)&&g++});var m=i.getSum(n),y=Math.PI/(m||g)*2,_=r.get(\\\"clockwise\\\"),b=r.get(\\\"roseType\\\"),S=r.get(\\\"stillShowZeroSum\\\"),w=i.getDataExtent(n);w[0]=0;var x=_?1:-1,k=[f,d],T=x*v/2;ZA(k,!_),f=k[0],d=k[1];var I=uO(r);I.startAngle=f,I.endAngle=d,I.clockwise=_,I.cx=o,I.cy=s,I.r=u,I.r0=l;var $=Math.abs(d-f),A=$,D=0,P=f;if(i.setLayout({viewRect:c,r:u}),i.each(n,function(R,F){var N;if(isNaN(R)){i.setItemLayout(F,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:l,r:b?NaN:u});return}b!==\\\"area\\\"?N=m===0&&S?y:R*y:N=$/g,N<p?(N=p,A-=p):D+=R;var j=P+x*N,H=0,W=0;v>N?(H=P+x*N/2,W=H):(H=P+T,W=j-T),i.setItemLayout(F,{angle:N,startAngle:H,endAngle:W,clockwise:_,cx:o,cy:s,r0:l,r:b?Qs(R,w,[l,u]):u}),P=j}),A<Qx&&g)if(A<=.001){var z=$/g;i.each(n,function(R,F){if(!isNaN(R)){var N=i.getItemLayout(F);N.angle=z;var j=0,H=0;z<v?(j=f+x*(F+1/2)*z,H=j):(j=f+x*F*z+T,H=f+x*(F+1)*z-T),N.startAngle=j,N.endAngle=H}})}else y=A/D,P=f,i.each(n,function(R,F){if(!isNaN(R)){var N=i.getItemLayout(F),j=N.angle===p?p:R*y,H=0,W=0;j<v?(H=P+x*j/2,W=H):(H=P+T,W=P+x*j-T),N.startAngle=H,N.endAngle=W,P+=x*j}})})}var uO=ke(),OW=(function(e){V(t,e);function t(r,i,n){var a=e.call(this)||this;a.z2=2;var o=new Ct;return a.setTextContent(o),a.updateData(r,i,n,!0),a}return t.prototype.updateData=function(r,i,n,a){var o=this,s=r.hostModel,u=r.getItemModel(i),l=u.getModel(\\\"emphasis\\\"),c=r.getItemLayout(i),f=Z($s(u.getModel(\\\"itemStyle\\\"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var d=s.getShallow(\\\"animationType\\\");s.ecModel.ssr?(bt(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d===\\\"scale\\\"?(o.shape.r=c.r0,bt(o,{shape:{r:c.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),bt(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,i)):(o.shape.endAngle=c.startAngle,ut(o,{shape:{endAngle:c.endAngle}},s,i))}else Tv(o),ut(o,{shape:f},s,i);o.useStyle(r.getItemVisual(i,\\\"style\\\")),ou(o,u);var v=(c.startAngle+c.endAngle)/2,h=s.get(\\\"selectedOffset\\\"),p=Math.cos(v)*h,g=Math.sin(v)*h,m=u.getShallow(\\\"cursor\\\");m&&o.attr(\\\"cursor\\\",m),this._updateLabel(s,r,i),o.ensureState(\\\"emphasis\\\").shape=Z({r:c.r+(l.get(\\\"scale\\\")&&l.get(\\\"scaleSize\\\")||0)},$s(l.getModel(\\\"itemStyle\\\"),c)),Z(o.ensureState(\\\"select\\\"),{x:p,y:g,shape:$s(u.getModel([\\\"select\\\",\\\"itemStyle\\\"]),c)}),Z(o.ensureState(\\\"blur\\\"),{shape:$s(u.getModel([\\\"blur\\\",\\\"itemStyle\\\"]),c)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&Z(y.ensureState(\\\"select\\\"),{x:p,y:g}),Z(_.ensureState(\\\"select\\\"),{x:p,y:g}),oa(this,l.get(\\\"focus\\\"),l.get(\\\"blurScope\\\"),l.get(\\\"disabled\\\"))},t.prototype._updateLabel=function(r,i,n){var a=this,o=i.getItemModel(n),s=o.getModel(\\\"labelLine\\\"),u=i.getItemVisual(n,\\\"style\\\"),l=u&&u.fill,c=u&&u.opacity;ga(a,li(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:l,defaultOpacity:c,defaultText:r.getFormattedLabel(n,\\\"normal\\\")||i.getName(n)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=o.get([\\\"label\\\",\\\"position\\\"]);if(d!==\\\"outside\\\"&&d!==\\\"outer\\\")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Go,this.setTextGuideLine(v)),Ab(this,Pb(o),{stroke:l,opacity:Hi(s.get([\\\"lineStyle\\\",\\\"opacity\\\"]),c,1)})}},t})(ui),EW=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Qn,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,i,n,a){var o=r.getData(),s=this._data,u=this.group,l;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(l=c.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),o.count()===0&&r.get(\\\"showEmptyCircle\\\")){var d=uO(r),v=new ui({shape:me(d)});v.useStyle(r.getModel(\\\"emptyCircleStyle\\\").getItemStyle()),this._emptyCircleSector=v,u.add(v)}o.diff(s).add(function(h){var p=new OW(o,h,l);o.setItemGraphicEl(h,p),u.add(p)}).update(function(h,p){var g=s.getItemGraphicEl(p);g.updateData(o,h,l),g.off(\\\"click\\\"),u.add(g),o.setItemGraphicEl(h,g)}).remove(function(h){var p=s.getItemGraphicEl(h);Xa(p,r,h)}).execute(),PW(r),r.get(\\\"animationTypeUpdate\\\")!==\\\"expansion\\\"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,u=Math.sqrt(o*o+s*s);return u<=a.r&&u>=a.r0}},t.type=Qn,t})(Gt);function zW(e){return{seriesType:e,reset:function(t,r){var i=t.getData();i.filterSelf(function(n){var a=i.mapDimension(\\\"value\\\"),o=i.get(a,n);return!(Re(o)&&!isNaN(o)&&o<0)})}}}function RW(e){e.registerChartView(EW),e.registerSeriesModel(aO),WZ(Qn,e.registerAction),e.registerLayout(MW),e.registerProcessor(rO(Qn)),e.registerProcessor(zW(Qn))}var NW=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,i){return Nv(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get(\\\"progressive\\\"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get(\\\"progressiveThreshold\\\"))},t.prototype.brushSelector=function(r,i,n){return n.point(i.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:\\\"\\\"},t.type=\\\"series.scatter\\\",t.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"singleAxis\\\",\\\"calendar\\\",\\\"matrix\\\"],t.defaultOption={coordinateSystem:\\\"cartesian2d\\\",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:re.color.primary}},universalTransition:{divideShape:\\\"clone\\\"}},t})(er),lO=4,UW=(function(){function e(){}return e})(),BW=(function(e){V(t,e);function t(r){var i=e.call(this,r)||this;return i._off=0,i.hoverDataIdx=-1,i}return t.prototype.getDefaultShape=function(){return new UW},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},t.prototype.buildPath=function(r,i){var n=i.points,a=i.size,o=this.symbolProxy,s=o.shape,u=r.getContext?r.getContext():r,l=u&&a[0]<lO,c=this.softClipShape,f;if(l){this._ctx=u;return}for(this._ctx=null,f=this._off;f<n.length;){var d=n[f++],v=n[f++];isNaN(d)||isNaN(v)||c&&!c.contain(d,v)||(s.x=d-a[0]/2,s.y=v-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,i=r.points,n=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<i.length;){var u=i[s++],l=i[s++];isNaN(u)||isNaN(l)||o&&!o.contain(u,l)||a.fillRect(u-n[0]/2,l-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,i){for(var n=this.shape,a=n.points,o=n.size,s=Math.max(o[0],4),u=Math.max(o[1],4),l=a.length/2-1;l>=0;l--){var c=l*2,f=a[c]-s/2,d=a[c+1]-u/2;if(r>=f&&i>=d&&r<=f+s&&i<=d+u)return l}return-1},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(r=n[0],i=n[1],a.contain(r,i)){var o=this.hoverDataIdx=this.findDataIndex(r,i);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var i=this.shape,n=i.points,a=i.size,o=a[0],s=a[1],u=1/0,l=1/0,c=-1/0,f=-1/0,d=0;d<n.length;){var v=n[d++],h=n[d++];u=Math.min(v,u),c=Math.max(v,c),l=Math.min(h,l),f=Math.max(h,f)}r=this._rect=new fe(u-o/2,l-s/2,c-u+o,f-l+s)}return r},t})(Pe),FW=(function(){function e(){this.group=new st}return e.prototype.updateData=function(t,r){this._clear(),this._data=t;var i=this._create();i.setShape({points:t.getLayout(\\\"points\\\")}),this._setCommon(i,t,r)},e.prototype.updateLayout=function(t){var r=this._data;if(r){var i=r.getLayout(\\\"points\\\");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;i=new Float32Array(i.buffer,o,a)}n.setShape(\\\"points\\\",i),n.reset(),n.stopAnimation()})}},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,i,n){var a=this._newAdded[0],o=r.getLayout(\\\"points\\\"),s=a&&a.shape.points;if(s&&s.length<2e4){var u=s.length,l=new Float32Array(u+o.length);l.set(s),l.set(o,u),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var c=this._create();c.startIndex=t.start,c.endIndex=t.end,c.incremental=i,c.setShape({points:o}),this._setCommon(c,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new BW({cursor:\\\"default\\\"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,i){var n=r.hostModel;i=i||{};var a=r.getVisual(\\\"symbolSize\\\");t.setShape(\\\"size\\\",a instanceof Array?a:[a,a]),t.softClipShape=i.clipShape||null,t.symbolProxy=ii(r.getVisual(\\\"symbol\\\"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<lO;t.useStyle(n.getModel(\\\"itemStyle\\\").getItemStyle(o?[\\\"color\\\",\\\"shadowBlur\\\",\\\"shadowColor\\\"]:[\\\"color\\\"]));var s=r.getVisual(\\\"style\\\"),u=s&&s.fill;u&&t.setColor(u);var l=we(t);l.seriesIndex=n.seriesIndex,t.on(\\\"mousemove\\\",function(c){l.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(l.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e})(),jW=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,lp(r)),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,i,n){this._symbolDraw.incrementalUpdate(r,i.getData(),OA(i),lp(i)),this._finished=r.end===i.getData().count()},t.prototype.updateTransform=function(r,i,n){var a=r.getData();if(this.group.dirty(),this._finished){var o=Rb(\\\"\\\").reset(r,i,n);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(lp(r))}else return{update:!0}},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._updateSymbolDraw=function(r,i){var n=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new FW:new zL,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(r,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=\\\"scatter\\\",t})(Gt);function lp(e){return{clipShape:h3(e)}}var Kg=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(\\\"grid\\\",pr).models[0]},t.type=\\\"cartesian2dAxis\\\",t})(Be);Fr(Kg,XG);var cO={show:!0,z:0,inverse:!1,name:\\\"\\\",nameLocation:\\\"end\\\",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:\\\"...\\\",placeholder:\\\".\\\"},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:\\\"auto\\\",onZeroAxisIndex:null,lineStyle:{color:re.color.axisLine,width:1,type:\\\"solid\\\"},symbol:[\\\"none\\\",\\\"none\\\"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:re.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:re.color.axisSplitLine,width:1,type:\\\"solid\\\"}},splitArea:{show:!1,areaStyle:{color:[re.color.backgroundTint,re.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:re.color.neutral00,borderColor:re.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:\\\"auto\\\"}},ZW=Ze({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:\\\"auto\\\",show:\\\"auto\\\"},axisLabel:{interval:\\\"auto\\\"}},cO),Ub=Ze({boundaryGap:[0,0],axisLine:{show:\\\"auto\\\"},axisTick:{show:\\\"auto\\\"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:re.color.axisMinorSplitLine,width:1}}},cO),VW=Ze({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:\\\"bold\\\"}}},splitLine:{show:!1}},Ub),GW=je({logBase:10},Ub);const HW={category:ZW,value:Ub,time:VW,log:GW};function eT(e,t,r,i){C(lL,function(n,a){var o=Ze(Ze({},HW[a],!0),i,!0),s=(function(u){V(l,u);function l(){var c=u!==null&&u.apply(this,arguments)||this;return c.type=t+\\\"Axis.\\\"+a,c}return l.prototype.mergeDefaultAndTheme=function(c,f){var d=lu(this),v=d?Cl(c):{},h=f.getTheme();Ze(c,h.get(a+\\\"Axis\\\")),Ze(c,this.getDefaultOption()),c.type=tT(c),d&&ni(c,v,d)},l.prototype.optionUpdated=function(){var c=this.option;c.type===\\\"category\\\"&&(this.__ordinalMeta=Bg.createByAxisModel(this))},l.prototype.getCategories=function(c){var f=this.option;if(f.type===\\\"category\\\")return c?f.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(c){return{breaks:[]}},l.type=t+\\\"Axis.\\\"+a,l.defaultOption=o,l})(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+\\\"Axis\\\",tT)}function tT(e){return e.type||(e.data?\\\"category\\\":\\\"value\\\")}var WW=(function(){function e(t){this.type=\\\"cartesian\\\",this._dimList=[],this._axes={},this.name=t||\\\"\\\"}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Q(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),at(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e})(),Jc=[\\\"x\\\",\\\"y\\\"];function rT(e){return(e.type===\\\"interval\\\"||e.type===\\\"time\\\")&&!If(e)}var qW=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=wn,r.dimensions=Jc,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis(\\\"x\\\").scale,i=this.getAxis(\\\"y\\\").scale;if(!(!rT(r)||!rT(i))){var n=Of(r,null),a=Of(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),u=n[1]-n[0],l=a[1]-a[0];if(!(!u||!l)){var c=(s[0]-o[0])/u,f=(s[1]-o[1])/l,d=o[0]-n[0]*c,v=o[1]-a[0]*f,h=this._transform=[c,0,0,f,d,v];this._invTransform=Fo([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(\\\"ordinal\\\")[0]||this.getAxesByScale(\\\"time\\\")[0]||this.getAxis(\\\"x\\\")},t.prototype.containPoint=function(r){var i=this.getAxis(\\\"x\\\"),n=this.getAxis(\\\"y\\\");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis(\\\"x\\\").containData(r[0])&&this.getAxis(\\\"y\\\").containData(r[1])},t.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new fe(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return _r(n,r,this._transform);var s=this.getAxis(\\\"x\\\"),u=this.getAxis(\\\"y\\\");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=u.toGlobalCoord(u.dataToCoord(o,i)),n},t.prototype.clampData=function(r,i){var n=this.getAxis(\\\"x\\\").scale,a=this.getAxis(\\\"y\\\").scale,o=n.getExtent(),s=a.getExtent(),u=n.parse(r[0]),l=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return _r(n,r,this._invTransform);var a=this.getAxis(\\\"x\\\"),o=this.getAxis(\\\"y\\\");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim===\\\"x\\\"?\\\"y\\\":\\\"x\\\")},t.prototype.getArea=function(r){r=r||0;var i=this.getAxis(\\\"x\\\").getGlobalExtent(),n=this.getAxis(\\\"y\\\").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,u=Math.max(n[0],n[1])-o+r;return new fe(a,o,s,u)},t})(WW);function YW(e,t){var r=e.scale,i=e.model,n=xL(r,i,i.ecModel,e),a=bo(r),o=bo(t)?t.intervalStub:t,s=a?r.intervalStub:r,u=r.base,l=o.getTicks(),c=o.getTicks({expandToNicedExtent:!0}),f=l.length-1,d,v,h;if(f===1)d=v=0,h=1;else if(f===2){var p=ct(l[0].value-l[1].value),g=ct(l[1].value-l[2].value);d=v=0,p===g?h=2:(h=1,p<g?d=p/g:v=g/p)}else{var m=o.getConfig().interval;d=(1-(l[0].value-c[0].value)/m)%1,v=(1-(c[f].value-l[f].value)/m)%1,h=f-(d?1:0)-(v?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],b=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),w=s.getExtent(),x=aL(w,b),k,T,I,$,A,D;function P(q){for(var te=50,K=0;K<te&&!q();K++)I=a?I*Me(u,2):DG(I),$=ca(I)}function z(){k=Ae(D-I*d,$)}function R(){T=Ae(A+I*v,$)}function F(){D=d?Ae(k+I*d,$):k}function N(){A=v?Ae(T-I*v,$):T}if(b[0]&&b[1]){k=x[0],T=x[1],I=(T-k)/(h+d+v);var j=e.getExtent(),H=ct(j[1]-j[0]);$=L6([T,k],H,.5/h),F(),N(),Sr($)&&(I=Ae(I,$))}else{var W=x[1]-x[0];I=a?Me(xA(W),1):b0(W/h,TA),$=ca(I),b[0]?(k=x[0],P(function(){if(F(),A=Ae(D+I*h,$),R(),T>=x[1])return!0})):b[1]?(T=x[1],P(function(){if(N(),D=Ae(A-I*h,$),z(),k<=x[0])return!0})):P(function(){D=Ae(Tl(x[0]/I)*I,$),A=Ae(ia(x[1]/I)*I,$);var q=Dn((A-D)/I);if(q<=h){var te=h-q,K=void 0,ce=n.incl0||a;if(ce&&x[0]===0)K=[0,te];else if(ce&&x[1]===0)K=[te,0];else{var ye=ia(te/2);K=te%2===0?[ye,ye]:k+T<x[0]+x[1]?[ye,ye+1]:[ye+1,ye]}if(D=Ae(D-I*K[0],$),A=Ae(A+I*K[1],$),z(),R(),k<=x[0]&&T>=x[1])return!0}})}fL(r,b,w,[k,T],S,{interval:I,intervalCount:h,intervalPrecision:$,niceExtent:[D,A]})}var nT=[[3,1],[0,2]],XW=(function(){function e(t,r,i){this.type=\\\"grid\\\",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Jc,this._initCartesian(t,r,i),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var i=this._axesMap;C(this._axesList,function(o){dH(o,uH);var s=o.scale;Gr(s)&&s.setSortInfo(o.model.get(\\\"categorySortInfo\\\"))});function n(o){for(var s=Te(o),u=[],l=s.length-1;l>=0;l--){var c=o[+s[l]];c.__alignTo?u.push(c):xx(c)}C(u,function(f){JW(f,f.__alignTo)?xx(f):YW(f,f.__alignTo.scale)})}n(i.x),n(i.y);var a={};C(i.x,function(o){iT(i,\\\"y\\\",o,a)}),C(i.y,function(o){iT(i,\\\"x\\\",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,i){var n=Mv(t,r),a=this._rect=ri(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,u=t.get(\\\"containLabel\\\");if(Jg(o,a),!i){var l=tq(a,s,o,u,r),c=void 0;if(u)Qg?(Qg(this._axesList,a),Jg(o,a)):c=uT(a.clone(),\\\"axisLabel\\\",null,a,o,l,n);else{var f=rq(t,a,n),d=f.outerBoundsRect,v=f.parsedOuterBoundsContain,h=f.outerBoundsClamp;d&&(c=uT(d,v,h,a,o,l,n))}fO(a,o,Br.determine,null,c,n),C(this._coordsList,function(p){p.calcAffineTransform()})}},e.prototype.getAxis=function(t,r){var i=this._axesMap[t];if(i!=null)return i[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var i=\\\"x\\\"+t+\\\"y\\\"+r;return this._coordsMap[i]}ne(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis(\\\"x\\\").index===t||a[n].getAxis(\\\"y\\\").index===r)return a[n]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},e.prototype.convertFromPixel=function(t,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents(\\\"xAxis\\\",pr).models[0],n=t.yAxisModel||r&&r.getReferringComponents(\\\"yAxis\\\",pr).models[0],a=t.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,xe(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)u=this.getAxis(\\\"x\\\",i.componentIndex);else if(n)u=this.getAxis(\\\"y\\\",n.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(r.eachComponent(\\\"xAxis\\\",l(\\\"x\\\"),this),r.eachComponent(\\\"yAxis\\\",l(\\\"y\\\"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,C(s.x,function(c,f){C(s.y,function(d,v){var h=\\\"x\\\"+f+\\\"y\\\"+v,p=new qW(h);p.master=n,p.model=t,n._coordsMap[h]=p,n._coordsList.push(p),p.addAxis(c),p.addAxis(d)})}),oT(s.x),oT(s.y);function l(c){return function(f,d){if(KW(f,t)){var v=f.get(\\\"position\\\");c===\\\"x\\\"?v!==\\\"top\\\"&&v!==\\\"bottom\\\"&&(v=o.bottom?\\\"top\\\":\\\"bottom\\\"):v!==\\\"left\\\"&&v!==\\\"right\\\"&&(v=o.left?\\\"right\\\":\\\"left\\\"),o[v]=!0;var h=BG(f),p=new $3(c,FG(f,h),[0,0],h,v);p.onBand=dL(p.scale,f),p.inverse=f.get(\\\"inverse\\\"),f.axis=p,p.model=f,p.grid=a,p.index=d,a._axesList.push(p),s[c][d]=p,u[c]++}}}},e.prototype.getTooltipAxes=function(t){var r=[],i=[];return C(this.getCartesians(),function(n){var a=t!=null&&t!==\\\"auto\\\"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);xe(r,a)<0&&r.push(a),xe(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},e.create=function(t,r){var i=[];return t.eachComponent(\\\"grid\\\",function(n,a){var o=new e(n,t,r);o.name=\\\"grid_\\\"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o),C(o._axesList,function(s){fH(s,e.dimIdxMap)})}),t.eachSeries(function(n){var a,o;n5({targetModel:n,coordSysType:wn,coordSysProvider:s});function s(){var u=H3(n),l=u.xAxisModel,c=u.yAxisModel;a=l.axis,o=c.axis;var f=l.getCoordSysModel(),d=f.coordinateSystem;return d.getCartesian(l.componentIndex,c.componentIndex)}a&&o&&(yx(a,n,wn),yx(o,n,wn))},this),i},e.dimensions=Jc,e.dimIdxMap=Sb(Jc),e})();function KW(e,t){return e.getCoordSysModel()===t}function iT(e,t,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=e[t],a,o=r.model,s=o.get([\\\"axisLine\\\",\\\"onZero\\\"]),u=o.get([\\\"axisLine\\\",\\\"onZeroAxisIndex\\\"]);if(!s)return;if(u!=null)aT(s,n[u])&&(a=n[u]);else for(var l in n)if(Nt(n,l)&&aT(s,n[l])&&!i[c(n[l])]){a=n[l];break}a&&(i[c(a)]=!0);function c(f){return f.dim+\\\"_\\\"+f.index}}function aT(e,t){if(!t)return!1;var r=t.scale,i=jG(r,0),n=t&&t.type!==\\\"category\\\"&&t.type!==\\\"time\\\"&&i!==Fg;return n&&e===\\\"auto\\\"&&HG(t)&&(n=!1),n}function oT(e){for(var t=Te(e),r,i=[],n=t.length-1;n>=0;n--){var a=e[+t[n]];iL(a.scale)&&YG(a.model,a.type)==null&&(a.model.get(\\\"alignTicks\\\")&&a.model.get(\\\"interval\\\")==null?i.push(a):r=a)}r||(r=i.pop()),r&&C(i,function(o){o.__alignTo=r})}function JW(e,t){return If(e.scale)||If(t.scale)||t.scale.getTicks().length<2}function QW(e,t){var r=e.getExtent(),i=r[0]+r[1];e.toGlobalCoord=e.dim===\\\"x\\\"?function(n){return n+t}:function(n){return i-n+t},e.toLocalCoord=e.dim===\\\"x\\\"?function(n){return n-t}:function(n){return i-n+t}}function Jg(e,t){C(e.x,function(r){return sT(r,t.x,t.width)}),C(e.y,function(r){return sT(r,t.y,t.height)})}function sT(e,t,r){var i=[0,r],n=e.inverse?1:0;e.setExtent(i[n],i[1-n]),QW(e,t)}var Qg;function eq(e){Qg=e}function uT(e,t,r,i,n,a,o){fO(i,n,Br.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),c(i,0,NaN),c(i,1,NaN);var u=Q4(s,function(d){return d>0})==null;return Tf(i,s,!0,!0,r),Jg(n,i),u;function l(d){C(n[Gn[d]],function(v){if(hu(v.model)){var h=a.ensureRecord(v.model),p=h.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],y=v.scale.normalize(Pl(v.scale,wo(m.label).labelInfo.tick));y=d===1?1-y:y,c(m.rect,d,y),c(m.rect,1-d,NaN)}var _=h.nameLayout;if(_){var y=So(h.nameLocation)?.5:NaN;c(_.rect,d,y),c(_.rect,1-d,NaN)}}})}function c(d,v,h){var p=e[Gn[v]]-d[Gn[v]],g=d[mo[v]]+d[Gn[v]]-(e[mo[v]]+e[Gn[v]]);p=f(p,1-h),g=f(g,h);var m=nT[v][0],y=nT[v][1];s[m]=Me(s[m],p),s[y]=Me(s[y],g)}function f(d,v){return d>0&&!qs(v)&&v>1e-4&&(d/=v),d}}function tq(e,t,r,i,n){var a=new GL(nq);return C(r,function(o){return C(o,function(s){if(hu(s.model)){var u=!i;s.axisBuilder=W3(e,t,s.model,n,a,u)}})}),a}function fO(e,t,r,i,n,a){var o=r===Br.determine;C(t,function(l){return C(l,function(c){hu(c.model)&&(q3(c.axisBuilder,e,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[Gn[1-l]]=e[mo[l]]<=a.refContainer[mo[l]]*.5?0:1-l===1?2:1}C(t,function(l,c){return C(l,function(f){hu(f.model)&&((i===\\\"all\\\"||o)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),o&&f.axisBuilder.build({axisLine:!0}))})})}function rq(e,t,r){var i,n=e.get(\\\"outerBoundsMode\\\",!0);n===\\\"same\\\"?i=t.clone():(n==null||n===\\\"auto\\\")&&(i=ri(e.get(\\\"outerBounds\\\",!0)||KL,r.refContainer));var a=e.get(\\\"outerBoundsContain\\\",!0),o;a==null||a===\\\"auto\\\"||xe([\\\"all\\\",\\\"axisLabel\\\"],a)<0?o=\\\"all\\\":o=a;var s=[og(J(e.get(\\\"outerBoundsClampWidth\\\",!0),Vf[0]),t.width),og(J(e.get(\\\"outerBoundsClampHeight\\\",!0),Vf[1]),t.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var nq=function(e,t,r,i,n,a){var o=r.axis.dim===\\\"x\\\"?\\\"y\\\":\\\"x\\\";HL(e,t,r,i,n,a),So(e.nameLocation)||C(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&qL(s.labelInfoList,s.dirVec,i,n)})};function iq(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return aq(r,e,t),r.seriesInvolved&&sq(r,e),r}function aq(e,t,r){var i=t.getComponent(\\\"tooltip\\\"),n=t.getComponent(\\\"axisPointer\\\"),a=n.get(\\\"link\\\",!0)||[],o=[];C(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=pu(s.model),l=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=s;var c=s.model,f=c.getModel(\\\"tooltip\\\",i);if(C(s.getAxes(),He(p,!1,null)),s.getTooltipAxes&&i&&f.get(\\\"show\\\")){var d=f.get(\\\"trigger\\\")===\\\"axis\\\",v=f.get([\\\"axisPointer\\\",\\\"type\\\"])===\\\"cross\\\",h=s.getTooltipAxes(f.get([\\\"axisPointer\\\",\\\"axis\\\"]));(d||v)&&C(h.baseAxes,He(p,v?\\\"cross\\\":!0,d)),v&&C(h.otherAxes,He(p,\\\"cross\\\",!1))}function p(g,m,y){var _=y.model.getModel(\\\"axisPointer\\\",n),b=_.get(\\\"show\\\");if(!(!b||b===\\\"auto\\\"&&!g&&!em(_))){m==null&&(m=_.get(\\\"triggerTooltip\\\")),_=g?oq(y,f,n,t,g,m):_;var S=_.get(\\\"snap\\\"),w=_.get(\\\"triggerEmphasis\\\"),x=pu(y.model),k=m||S||y.type===\\\"category\\\",T=e.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:k,snap:S,useHandle:em(_),seriesModels:[],linkGroup:null};l[x]=T,e.seriesInvolved=e.seriesInvolved||k;var I=uq(a,y);if(I!=null){var $=o[I]||(o[I]={axesInfo:{}});$.axesInfo[x]=T,$.mapper=a[I].mapper,T.linkGroup=$}}}})}function oq(e,t,r,i,n,a){var o=t.getModel(\\\"axisPointer\\\"),s=[\\\"type\\\",\\\"snap\\\",\\\"lineStyle\\\",\\\"shadowStyle\\\",\\\"label\\\",\\\"animation\\\",\\\"animationDurationUpdate\\\",\\\"animationEasingUpdate\\\",\\\"z\\\"],u={};C(s,function(d){u[d]=me(o.get(d))}),u.snap=e.type!==\\\"category\\\"&&!!a,o.get(\\\"type\\\")===\\\"cross\\\"&&(u.type=\\\"line\\\");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),n===\\\"cross\\\"){var c=o.get([\\\"label\\\",\\\"show\\\"]);if(l.show=c??!0,!a){var f=u.lineStyle=o.get(\\\"crossStyle\\\");f&&je(l,f.textStyle)}}return e.model.getModel(\\\"axisPointer\\\",new Qe(u,r,i))}function sq(e,t){t.eachSeries(function(r){var i=r.coordinateSystem,n=r.get([\\\"tooltip\\\",\\\"trigger\\\"],!0),a=r.get([\\\"tooltip\\\",\\\"show\\\"],!0);!i||!i.model||n===\\\"none\\\"||n===!1||n===\\\"item\\\"||a===!1||r.get([\\\"axisPointer\\\",\\\"show\\\"],!0)===!1||C(e.coordSysAxesInfo[pu(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function uq(e,t){for(var r=t.model,i=t.dim,n=0;n<e.length;n++){var a=e[n]||{};if(cp(a[i+\\\"AxisId\\\"],r.id)||cp(a[i+\\\"AxisIndex\\\"],r.componentIndex)||cp(a[i+\\\"AxisName\\\"],r.name))return n}}function cp(e,t){return e===\\\"all\\\"||G(e)&&xe(e,t)>=0||e===t}function lq(e){var t=Bb(e);if(t){var r=t.axisPointerModel,i=t.axis.scale,n=r.option,a=r.get(\\\"status\\\"),o=r.get(\\\"value\\\");o!=null&&(o=i.parse(o));var s=em(r);a==null&&(n.status=s?\\\"show\\\":\\\"hide\\\");var u=i.getExtent();(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?\\\"hide\\\":\\\"show\\\")}}function Bb(e){var t=(e.ecModel.getComponent(\\\"axisPointer\\\")||{}).coordSysAxesInfo;return t&&t.axesInfo[pu(e)]}function cq(e){var t=Bb(e);return t&&t.axisPointerModel}function em(e){return!!e.get([\\\"handle\\\",\\\"show\\\"])}function pu(e){return e.type+\\\"||\\\"+e.id}var lT={},dO=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n,a){this.axisPointerClass&&lq(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},t.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},t.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(r,i){this._disposeAxisPointer(i),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=cq(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,i){lT[r]=i},t.getAxisPointerClass=function(r){return r&&lT[r]},t.type=\\\"axis\\\",t})(Ur),tm=ke();function fq(e,t,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel(\\\"splitArea\\\"),o=a.getModel(\\\"areaStyle\\\"),s=o.get(\\\"color\\\"),u=i.coordinateSystem.getRect(),l=n.getTicksCoords({tickModel:a,breakTicks:\\\"none\\\",pruneByBreak:\\\"preserve_extent_bound\\\"});if(l.length){var c=s.length,f=tm(e).splitAreaColors,d=se(),v=0;if(f)for(var h=0;h<l.length;h++){var p=f.get(l[h].tickValue);if(p!=null){v=(p+(c-1)*h)%c;break}}var g=n.toGlobalCoord(l[0].coord),m=o.getAreaStyle();s=G(s)?s:[s];for(var h=1;h<l.length;h++){var y=n.toGlobalCoord(l[h].coord),_=void 0,b=void 0,S=void 0,w=void 0;n.isHorizontal()?(_=g,b=u.y,S=y-_,w=u.height,g=_+S):(_=u.x,b=g,S=u.width,w=y-b,g=b+w);var x=l[h-1].tickValue;x!=null&&d.set(x,v),t.add(new ot({anid:x!=null?\\\"area_\\\"+x:null,shape:{x:_,y:b,width:S,height:w},style:je({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%c}tm(e).splitAreaColors=d}}}function dq(e){tm(e).splitAreaColors=null}var vq=[\\\"splitArea\\\",\\\"splitLine\\\",\\\"minorSplitLine\\\",\\\"breakArea\\\"],vO=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass=\\\"CartesianAxisPointer\\\",r}return t.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new st,this.group.add(this._axisGroup),!!hu(r)){this._axisGroup.add(r.axis.axisBuilder.group),C(vq,function(u){r.get([u,\\\"show\\\"])&&hq[u](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type===\\\"changeAxisOrder\\\"&&a.isInitSort;s||xP(o,this._axisGroup,r),e.prototype.render.call(this,r,i,n,a)}},t.prototype.remove=function(){dq(this)},t.type=\\\"cartesianAxis\\\",t})(dO),hq={splitLine:function(e,t,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel(\\\"splitLine\\\"),s=o.getModel(\\\"lineStyle\\\"),u=s.get(\\\"color\\\"),l=o.get(\\\"showMinLine\\\")!==!1,c=o.get(\\\"showMaxLine\\\")!==!1;u=G(u)?u:[u];for(var f=i.coordinateSystem.getRect(),d=a.isHorizontal(),v=0,h=a.getTicksCoords({tickModel:o,breakTicks:\\\"none\\\",pruneByBreak:\\\"preserve_extent_bound\\\"}),p=[],g=[],m=s.getLineStyle(),y=0;y<h.length;y++){var _=a.toGlobalCoord(h[y].coord);if(!(y===0&&!l||y===h.length-1&&!c)){var b=h[y].tickValue;d?(p[0]=_,p[1]=f.y,g[0]=_,g[1]=f.y+f.height):(p[0]=f.x,p[1]=_,g[0]=f.x+f.width,g[1]=_);var S=v++%u.length,w=new Pn({anid:b!=null?\\\"line_\\\"+b:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:je({stroke:u[S]},m),silent:!0});su(w.shape,m.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,r,i,n){var a=r.axis,o=r.getModel(\\\"minorSplitLine\\\"),s=o.getModel(\\\"lineStyle\\\"),u=i.coordinateSystem.getRect(),l=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var f=[],d=[],v=s.getLineStyle(),h=0;h<c.length;h++)for(var p=0;p<c[h].length;p++){var g=a.toGlobalCoord(c[h][p].coord);l?(f[0]=g,f[1]=u.y,d[0]=g,d[1]=u.y+u.height):(f[0]=u.x,f[1]=g,d[0]=u.x+u.width,d[1]=g);var m=new Pn({anid:\\\"minor_line_\\\"+c[h][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:v,silent:!0});su(m.shape,v.lineWidth),t.add(m)}},splitArea:function(e,t,r,i,n){fq(e,t,r,i)},breakArea:function(e,t,r,i,n){r.axis.scale}},hO=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type=\\\"xAxis\\\",t})(vO),pq=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=hO.type,r}return t.type=\\\"yAxis\\\",t})(vO),gq=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=\\\"grid\\\",r}return t.prototype.render=function(r,i){this.group.removeAll(),r.get(\\\"show\\\")&&this.group.add(new ot({shape:r.coordinateSystem.getRect(),style:je({fill:r.get(\\\"backgroundColor\\\")},r.getItemStyle()),silent:!0,z2:-1}))},t.type=\\\"grid\\\",t})(Ur),cT={offset:0};function pO(e){e.registerComponentView(gq),e.registerComponentModel(tW),e.registerCoordinateSystem(\\\"cartesian2d\\\",XW),eT(e,\\\"x\\\",Kg,cT),eT(e,\\\"y\\\",Kg,cT),e.registerComponentView(hO),e.registerComponentView(pq),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function mq(e){Mn(pO),e.registerSeriesModel(NW),e.registerChartView(jW),e.registerLayout(Rb(\\\"scatter\\\"))}var fT=Pn.prototype,fp=wv.prototype,gO=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})();(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(gO);function dp(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var yq=(function(e){V(t,e);function t(r){var i=e.call(this,r)||this;return i.type=\\\"ec-line\\\",i}return t.prototype.getDefaultStyle=function(){return{stroke:re.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new gO},t.prototype.buildPath=function(r,i){dp(i)?fT.buildPath.call(this,r,i):fp.buildPath.call(this,r,i)},t.prototype.pointAt=function(r){return dp(this.shape)?fT.pointAt.call(this,r):fp.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var i=this.shape,n=dp(i)?[i.x2-i.x1,i.y2-i.y1]:fp.tangentAt.call(this,r);return f0(n,n)},t})(Pe),vp=[\\\"fromSymbol\\\",\\\"toSymbol\\\"];function dT(e){return\\\"_\\\"+e+\\\"Type\\\"}function vT(e,t,r){var i=t.getItemVisual(r,e);if(!i||i===\\\"none\\\")return i;var n=t.getItemVisual(r,e+\\\"Size\\\"),a=t.getItemVisual(r,e+\\\"Rotate\\\"),o=t.getItemVisual(r,e+\\\"Offset\\\"),s=t.getItemVisual(r,e+\\\"KeepAspect\\\"),u=vb(n),l=Ev(o||0,u);return i+u+l+(a||\\\"\\\")+(s||\\\"\\\")}function hT(e,t,r){var i=t.getItemVisual(r,e);if(!(!i||i===\\\"none\\\")){var n=t.getItemVisual(r,e+\\\"Size\\\"),a=t.getItemVisual(r,e+\\\"Rotate\\\"),o=t.getItemVisual(r,e+\\\"Offset\\\"),s=t.getItemVisual(r,e+\\\"KeepAspect\\\"),u=vb(n),l=Ev(o||0,u),c=ii(i,-u[0]/2+l[0],-u[1]/2+l[1],u[0],u[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=e,c}}function _q(e){var t=new yq({name:\\\"line\\\",subPixelOptimize:!0});return rm(t.shape,e),t}function rm(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var bq=(function(e){V(t,e);function t(r,i,n){var a=e.call(this)||this;return a._createLine(r,i,n),a}return t.prototype._createLine=function(r,i,n){var a=r.hostModel,o=r.getItemLayout(i),s=r.getItemVisual(i,\\\"z2\\\"),u=_q(o);u.shape.percent=0,bt(u,{z2:J(s,0),shape:{percent:1}},a,i),this.add(u),C(vp,function(l){var c=hT(l,r,i);this.add(c),this[dT(l)]=vT(l,r,i)},this),this._updateCommonStl(r,i,n)},t.prototype.updateData=function(r,i,n){var a=r.hostModel,o=this.childOfName(\\\"line\\\"),s=r.getItemLayout(i),u={shape:{}};rm(u.shape,s),ut(o,u,a,i),C(vp,function(l){var c=vT(l,r,i),f=dT(l);if(this[f]!==c){this.remove(this.childOfName(l));var d=hT(l,r,i);this.add(d)}this[f]=c},this),this._updateCommonStl(r,i,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,i,n){var a=r.hostModel,o=this.childOfName(\\\"line\\\"),s=n&&n.emphasisLineStyle,u=n&&n.blurLineStyle,l=n&&n.selectLineStyle,c=n&&n.labelStatesModels,f=n&&n.emphasisDisabled,d=n&&n.focus,v=n&&n.blurScope;if(!n||r.hasItemOption){var h=r.getItemModel(i),p=h.getModel(\\\"emphasis\\\");s=p.getModel(\\\"lineStyle\\\").getLineStyle(),u=h.getModel([\\\"blur\\\",\\\"lineStyle\\\"]).getLineStyle(),l=h.getModel([\\\"select\\\",\\\"lineStyle\\\"]).getLineStyle(),f=p.get(\\\"disabled\\\"),d=p.get(\\\"focus\\\"),v=p.get(\\\"blurScope\\\"),c=li(h)}var g=r.getItemVisual(i,\\\"style\\\"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState(\\\"emphasis\\\").style=s,o.ensureState(\\\"blur\\\").style=u,o.ensureState(\\\"select\\\").style=l,C(vp,function(w){var x=this.childOfName(w);if(x){x.setColor(m),x.style.opacity=g.opacity;for(var k=0;k<qt.length;k++){var T=qt[k],I=o.getState(T);if(I){var $=I.style||{},A=x.ensureState(T),D=A.style||(A.style={});$.stroke!=null&&(D[x.__isEmptyBrush?\\\"stroke\\\":\\\"fill\\\"]=$.stroke),$.opacity!=null&&(D.opacity=$.opacity)}}x.markRedraw()}},this);var y=a.getRawValue(i);ga(this,c,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(w,x){return a.getFormattedLabel(w,x,r.dataType)}},inheritColor:m||re.color.neutral99,defaultOpacity:g.opacity,defaultText:(y==null?r.getName(i):isFinite(y)?Ae(y,10):y)+\\\"\\\"});var _=this.getTextContent();if(_){var b=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=b.get(\\\"position\\\")||\\\"middle\\\";var S=b.get(\\\"distance\\\");G(S)||(S=[S,S]),_.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),oa(this,d,v,f)},t.prototype.highlight=function(){iu(this)},t.prototype.downplay=function(){au(this)},t.prototype.updateLayout=function(r,i){this.childOfName(\\\"line\\\").stopAnimation(),this.setLinePoints(r.getItemLayout(i))},t.prototype.setLinePoints=function(r){var i=this.childOfName(\\\"line\\\");rm(i.shape,r),i.dirty()},t.prototype.beforeUpdate=function(){var r=this,i=r.childOfName(\\\"fromSymbol\\\"),n=r.childOfName(\\\"toSymbol\\\"),a=r.getTextContent();if(!i&&!n&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var u=r.childOfName(\\\"line\\\");if(!this.__dirty&&!u.__dirty)return;var l=u.shape.percent,c=u.pointAt(0),f=u.pointAt(l),d=HC([],f,c);f0(d,d);function v(I,$){var A=I.__specifiedRotation;if(A==null){var D=u.tangentAt($);I.attr(\\\"rotation\\\",($===1?-1:1)*Math.PI/2-Math.atan2(D[1],D[0]))}else I.attr(\\\"rotation\\\",A)}if(i&&(i.setPosition(c),v(i,0),i.scaleX=i.scaleY=o*l,i.markRedraw()),n&&(n.setPosition(f),v(n,1),n.scaleX=n.scaleY=o*l,n.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var h=void 0,p=void 0,g=a.__labelDistance,m=g[0]*o,y=g[1]*o,_=l/2,b=u.tangentAt(_),S=[b[1],-b[0]],w=u.pointAt(_);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var x=b[0]<0?-1:1;if(a.__position!==\\\"start\\\"&&a.__position!==\\\"end\\\"){var k=-Math.atan2(b[1],b[0]);f[0]<c[0]&&(k=Math.PI+k),a.rotation=k}var T=void 0;switch(a.__position){case\\\"insideStartTop\\\":case\\\"insideMiddleTop\\\":case\\\"insideEndTop\\\":case\\\"middle\\\":T=-y,p=\\\"bottom\\\";break;case\\\"insideStartBottom\\\":case\\\"insideMiddleBottom\\\":case\\\"insideEndBottom\\\":T=y,p=\\\"top\\\";break;default:T=0,p=\\\"middle\\\"}switch(a.__position){case\\\"end\\\":a.x=d[0]*m+f[0],a.y=d[1]*y+f[1],h=d[0]>.8?\\\"left\\\":d[0]<-.8?\\\"right\\\":\\\"center\\\",p=d[1]>.8?\\\"top\\\":d[1]<-.8?\\\"bottom\\\":\\\"middle\\\";break;case\\\"start\\\":a.x=-d[0]*m+c[0],a.y=-d[1]*y+c[1],h=d[0]>.8?\\\"right\\\":d[0]<-.8?\\\"left\\\":\\\"center\\\",p=d[1]>.8?\\\"bottom\\\":d[1]<-.8?\\\"top\\\":\\\"middle\\\";break;case\\\"insideStartTop\\\":case\\\"insideStart\\\":case\\\"insideStartBottom\\\":a.x=m*x+c[0],a.y=c[1]+T,h=b[0]<0?\\\"right\\\":\\\"left\\\",a.originX=-m*x,a.originY=-T;break;case\\\"insideMiddleTop\\\":case\\\"insideMiddle\\\":case\\\"insideMiddleBottom\\\":case\\\"middle\\\":a.x=w[0],a.y=w[1]+T,h=\\\"center\\\",a.originY=-T;break;case\\\"insideEndTop\\\":case\\\"insideEnd\\\":case\\\"insideEndBottom\\\":a.x=-m*x+f[0],a.y=f[1]+T,h=b[0]>=0?\\\"right\\\":\\\"left\\\",a.originX=m*x,a.originY=-T;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||h})}},t})(st),Sq=(function(){function e(t){this.group=new st,this._LineCtor=t||bq}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var i=this,n=i.group,a=i._lineData;i._lineData=t,a||n.removeAll();var o=pT(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,u){r._doUpdate(a,t,u,s,o)}).remove(function(s){n.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,i){r.updateLayout(t,i)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=pT(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,i){this._progressiveEls=[];function n(u){!u.isGroup&&!wq(u)&&(u.incremental=i,u.ensureState(\\\"emphasis\\\").hoverLayer=kv)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(hp(o)){var s=new this._LineCtor(r,a,this._seriesScope);s.traverse(n),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Dl(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,i){var n=t.getItemLayout(r);if(hp(n)){var a=new this._LineCtor(t,r,i);t.setItemGraphicEl(r,a),this.group.add(a)}},e.prototype._doUpdate=function(t,r,i,n,a){var o=t.getItemGraphicEl(i);if(!hp(r.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(r,n,a):o=new this._LineCtor(r,n,a),r.setItemGraphicEl(n,o),this.group.add(o)},e})();function wq(e){return e.animators&&e.animators.length>0}function pT(e){var t=e.hostModel,r=t.getModel(\\\"emphasis\\\");return{lineStyle:t.getModel(\\\"lineStyle\\\").getLineStyle(),emphasisLineStyle:r.getModel([\\\"lineStyle\\\"]).getLineStyle(),blurLineStyle:t.getModel([\\\"blur\\\",\\\"lineStyle\\\"]).getLineStyle(),selectLineStyle:t.getModel([\\\"select\\\",\\\"lineStyle\\\"]).getLineStyle(),emphasisDisabled:r.get(\\\"disabled\\\"),blurScope:r.get(\\\"blurScope\\\"),focus:r.get(\\\"focus\\\"),labelStatesModels:li(t)}}function gT(e){return isNaN(e[0])||isNaN(e[1])}function hp(e){return e&&!gT(e[0])&&!gT(e[1])}var xo=\\\"funnel\\\",xq=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new iO(Fe(this.getData,this),Fe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,i){return nO(this,{coordDimensions:[\\\"value\\\"],encodeDefaulter:He(XP,this)})},t.prototype._defaultLabelLine=function(r){eu(r,\\\"labelLine\\\",[\\\"show\\\"]);var i=r.labelLine,n=r.emphasis.labelLine;i.show=i.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var i=this.getData(),n=e.prototype.getDataParams.call(this,r),a=i.mapDimension(\\\"value\\\"),o=i.getSum(a);return n.percent=o?+(i.get(a,r)/o*100).toFixed(2):0,n.$vars.push(\\\"percent\\\"),n},t.type=\\\"series.\\\"+xo,t.defaultOption={coordinateSystemUsage:\\\"box\\\",z:2,legendHoverLink:!0,colorBy:\\\"data\\\",left:80,top:60,right:80,bottom:65,minSize:\\\"0%\\\",maxSize:\\\"100%\\\",sort:\\\"descending\\\",orient:\\\"vertical\\\",gap:0,funnelAlign:\\\"center\\\",label:{show:!0,position:\\\"outer\\\"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:re.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:re.color.primary}}},t})(er),Tq=[\\\"itemStyle\\\",\\\"opacity\\\"],kq=(function(e){V(t,e);function t(r,i){var n=e.call(this)||this,a=n,o=new Go,s=new Ct;return a.setTextContent(s),n.setTextGuideLine(o),n.updateData(r,i,!0),n}return t.prototype.updateData=function(r,i,n){var a=this,o=r.hostModel,s=r.getItemModel(i),u=r.getItemLayout(i),l=s.getModel(\\\"emphasis\\\"),c=s.get(Tq);c=c??1,n||Tv(a),a.useStyle(r.getItemVisual(i,\\\"style\\\")),a.style.lineJoin=\\\"round\\\",n?(a.setShape({points:u.points}),a.style.opacity=0,bt(a,{style:{opacity:c}},o,i)):ut(a,{style:{opacity:c},shape:{points:u.points}},o,i),ou(a,s),this._updateLabel(r,i),oa(this,l.get(\\\"focus\\\"),l.get(\\\"blurScope\\\"),l.get(\\\"disabled\\\"))},t.prototype._updateLabel=function(r,i){var n=this,a=this.getTextGuideLine(),o=n.getTextContent(),s=r.hostModel,u=r.getItemModel(i),l=r.getItemLayout(i),c=l.label,f=r.getItemVisual(i,\\\"style\\\"),d=f.fill;ga(o,li(u),{labelFetcher:r.hostModel,labelDataIndex:i,defaultOpacity:f.opacity,defaultText:r.getName(i)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}});var v=u.getModel(\\\"label\\\"),h=v.get(\\\"color\\\"),p=h===\\\"inherit\\\"?d:null;n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:p,outsideFill:p});var g=c.linePoints;a.setShape({points:g}),n.textGuideLineConfig={anchor:g?new de(g[0][0],g[0][1]):null},ut(o,{style:{x:c.x,y:c.y}},s,i),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Ab(n,Pb(u),{stroke:d})},t})(Sv),Iq=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=xo,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,i,n){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(u){var l=new kq(a,u);a.setItemGraphicEl(u,l),s.add(l)}).update(function(u,l){var c=o.getItemGraphicEl(l);c.updateData(a,u),s.add(c),a.setItemGraphicEl(u,c)}).remove(function(u){var l=o.getItemGraphicEl(u);Xa(l,r,u)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=xo,t})(Gt);function $q(e,t){for(var r=e.mapDimension(\\\"value\\\"),i=e.mapArray(r,function(u){return u}),n=[],a=t===\\\"ascending\\\",o=0,s=e.count();o<s;o++)n[o]=o;return le(t)?n.sort(t):t!==\\\"none\\\"&&n.sort(function(u,l){return a?i[u]-i[l]:i[l]-i[u]}),n}function Dq(e){var t=e.hostModel,r=mO(t);e.each(function(i){var n=e.getItemModel(i),a=n.getModel(\\\"label\\\"),o=a.get(\\\"position\\\"),s=n.getModel(\\\"labelLine\\\"),u=e.getItemLayout(i),l=u.points,c=o===\\\"inner\\\"||o===\\\"inside\\\"||o===\\\"center\\\"||o===\\\"insideLeft\\\"||o===\\\"insideRight\\\",f,d,v,h;if(c)o===\\\"insideLeft\\\"?(d=(l[0][0]+l[3][0])/2+5,v=(l[0][1]+l[3][1])/2,f=\\\"left\\\"):o===\\\"insideRight\\\"?(d=(l[1][0]+l[2][0])/2-5,v=(l[1][1]+l[2][1])/2,f=\\\"right\\\"):(d=(l[0][0]+l[1][0]+l[2][0]+l[3][0])/4,v=(l[0][1]+l[1][1]+l[2][1]+l[3][1])/4,f=\\\"center\\\"),h=[[d,v],[d,v]];else{var p=void 0,g=void 0,m=void 0,y=void 0,_=s.get(\\\"length\\\");ee(o)&&(!r&&xe([\\\"top\\\",\\\"bottom\\\"],o)>-1&&(o=\\\"left\\\"),r&&xe([\\\"left\\\",\\\"right\\\"],o)>-1&&(o=\\\"bottom\\\")),o===\\\"left\\\"?(p=(l[3][0]+l[0][0])/2,g=(l[3][1]+l[0][1])/2,m=p-_,d=m-5,f=\\\"right\\\"):o===\\\"right\\\"?(p=(l[1][0]+l[2][0])/2,g=(l[1][1]+l[2][1])/2,m=p+_,d=m+5,f=\\\"left\\\"):o===\\\"top\\\"?(p=(l[3][0]+l[0][0])/2,g=(l[3][1]+l[0][1])/2,y=g-_,v=y-5,f=\\\"center\\\"):o===\\\"bottom\\\"?(p=(l[1][0]+l[2][0])/2,g=(l[1][1]+l[2][1])/2,y=g+_,v=y+5,f=\\\"center\\\"):o===\\\"rightTop\\\"?(p=r?l[3][0]:l[1][0],g=r?l[3][1]:l[1][1],r?(y=g-_,v=y-5,f=\\\"center\\\"):(m=p+_,d=m+5,f=\\\"top\\\")):o===\\\"rightBottom\\\"?(p=l[2][0],g=l[2][1],r?(y=g+_,v=y+5,f=\\\"center\\\"):(m=p+_,d=m+5,f=\\\"bottom\\\")):o===\\\"leftTop\\\"?(p=l[0][0],g=r?l[0][1]:l[1][1],r?(y=g-_,v=y-5,f=\\\"center\\\"):(m=p-_,d=m-5,f=\\\"right\\\")):o===\\\"leftBottom\\\"?(p=r?l[1][0]:l[3][0],g=r?l[1][1]:l[2][1],r?(y=g+_,v=y+5,f=\\\"center\\\"):(m=p-_,d=m-5,f=\\\"right\\\")):(p=(l[1][0]+l[2][0])/2,g=(l[1][1]+l[2][1])/2,r?(y=g+_,v=y+5,f=\\\"center\\\"):(m=p+_,d=m+5,f=\\\"left\\\")),r?(m=p,d=m):(y=g,v=y),h=[[p,g],[m,y]]}u.label={linePoints:h,x:d,y:v,verticalAlign:\\\"middle\\\",textAlign:f,inside:c}})}var Cq=zA(xo,Aq);function Aq(e,t){e.eachSeriesByType(xo,function(r){var i=r.getData(),n=i.mapDimension(\\\"value\\\"),a=r.get(\\\"sort\\\"),o=Mv(r,t),s=ri(r.getBoxLayoutParams(),o.refContainer),u=mO(r),l=s.width,c=s.height,f=$q(i,a),d=s.x,v=s.y,h=u?[$e(r.get(\\\"minSize\\\"),c),$e(r.get(\\\"maxSize\\\"),c)]:[$e(r.get(\\\"minSize\\\"),l),$e(r.get(\\\"maxSize\\\"),l)],p=i.getDataExtent(n),g=r.get(\\\"min\\\"),m=r.get(\\\"max\\\");g==null&&(g=Math.min(p[0],0)),m==null&&(m=p[1]);var y=r.get(\\\"funnelAlign\\\"),_=r.get(\\\"gap\\\"),b=u?l:c,S=(b-_*(i.count()-1))/i.count(),w=function(z,R){if(u){var F=i.get(n,z)||0,N=Qs(F,[g,m],h,!0),j=void 0;switch(y){case\\\"top\\\":j=v;break;case\\\"center\\\":j=v+(c-N)/2;break;case\\\"bottom\\\":j=v+(c-N);break}return[[R,j],[R,j+N]]}var H=i.get(n,z)||0,W=Qs(H,[g,m],h,!0),q;switch(y){case\\\"left\\\":q=d;break;case\\\"center\\\":q=d+(l-W)/2;break;case\\\"right\\\":q=d+l-W;break}return[[q,R],[q+W,R]]};a===\\\"ascending\\\"&&(S=-S,_=-_,u?d+=l:v+=c,f=f.reverse());for(var x=0;x<f.length;x++){var k=f[x],T=f[x+1],I=i.getItemModel(k);if(u){var $=I.get([\\\"itemStyle\\\",\\\"width\\\"]);$==null?$=S:($=$e($,l),a===\\\"ascending\\\"&&($=-$));var A=w(k,d),D=w(T,d+$);d+=$+_,i.setItemLayout(k,{points:A.concat(D.slice().reverse())})}else{var P=I.get([\\\"itemStyle\\\",\\\"height\\\"]);P==null?P=S:(P=$e(P,c),a===\\\"ascending\\\"&&(P=-P));var A=w(k,v),D=w(T,v+P);v+=P+_,i.setItemLayout(k,{points:A.concat(D.slice().reverse())})}}Dq(i)})}function mO(e){return e.get(\\\"orient\\\")===\\\"horizontal\\\"}function Pq(e){e.registerChartView(Iq),e.registerSeriesModel(xq),e.registerLayout(Cq),e.registerProcessor(rO(xo))}var Ui=ke(),mT=me,pp=Fe,Mq=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,i,n){var a=r.get(\\\"value\\\"),o=r.get(\\\"status\\\");if(this._axisModel=t,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o===\\\"hide\\\"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,r,i);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new st,this.createPointerEl(s,l,t,r),this.createLabelEl(s,l,t,r),i.getZr().add(s);else{var d=He(yT,r,f);this.updatePointerEl(s,l,d),this.updateLabelEl(s,l,d,r)}bT(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var i=r.get(\\\"animation\\\"),n=t.axis,a=n.type===\\\"category\\\",o=r.get(\\\"snap\\\");if(!o&&!a)return!1;if(i===\\\"auto\\\"||i==null){var s=this.animationThreshold;if(a&&Xo(n).w>s)return!0;if(o){var u=Bb(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return i===!0},e.prototype.makeElOption=function(t,r,i,n,a){},e.prototype.createPointerEl=function(t,r,i,n){var a=r.pointer;if(a){var o=Ui(t).pointerEl=new Sj[a.type](mT(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,i,n){if(r.label){var a=Ui(t).labelEl=new Ct(mT(r.label));t.add(a),_T(a,n)}},e.prototype.updatePointerEl=function(t,r,i){var n=Ui(t).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,i,n){var a=Ui(t).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),_T(a,n))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel(\\\"handle\\\"),o=r.get(\\\"status\\\");if(!a.get(\\\"show\\\")||!o||o===\\\"hide\\\"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=B0(a.get(\\\"icon\\\"),{cursor:\\\"move\\\",draggable:!0,onmousemove:function(l){qC(l.event)},onmousedown:pp(this._onHandleDragMove,this,0,0),drift:pp(this._onHandleDragMove,this),ondragend:pp(this._onHandleDragEnd,this)}),i.add(n)),bT(n,r,!1),n.setStyle(a.getItemStyle(null,[\\\"color\\\",\\\"borderColor\\\",\\\"borderWidth\\\",\\\"opacity\\\",\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"]));var u=a.get(\\\"size\\\");G(u)||(u=[u,u]),n.scaleX=u[0]/2,n.scaleY=u[1]/2,bM(this,\\\"_doDispatchAxisPointer\\\",a.get(\\\"throttle\\\")||0,\\\"fixRate\\\"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){yT(this._axisPointerModel,!r&&this._moveAnimation,this._handle,gp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(gp(i),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(gp(n)),Ui(i).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:\\\"updateAxisPointer\\\",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get(\\\"value\\\");this._moveHandleToValue(r),this._api.dispatchAction({type:\\\"hideTip\\\"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Cg(this,\\\"_doDispatchAxisPointer\\\")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,i){return i=i||0,{x:t[i],y:t[1-i],width:r[i],height:r[1-i]}},e})();function yT(e,t,r,i){yO(Ui(r).lastProp,i)||(Ui(r).lastProp=i,t?ut(r,i,e):(r.stopAnimation(),r.attr(i)))}function yO(e,t){if(ne(e)&&ne(t)){var r=!0;return C(t,function(i,n){r=r&&yO(e[n],i)}),!!r}else return e===t}function _T(e,t){e[t.get([\\\"label\\\",\\\"show\\\"])?\\\"show\\\":\\\"hide\\\"]()}function gp(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function bT(e,t,r){var i=t.get(\\\"z\\\"),n=t.get(\\\"zlevel\\\");e&&e.traverse(function(a){a.type!==\\\"group\\\"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}function Lq(e){var t=e.get(\\\"type\\\"),r=e.getModel(t+\\\"Style\\\"),i;return t===\\\"line\\\"?(i=r.getLineStyle(),i.fill=null):t===\\\"shadow\\\"&&(i=r.getAreaStyle(),i.stroke=null),i}function Oq(e,t,r,i,n){var a=r.get(\\\"value\\\"),o=_O(a,t.axis,t.ecModel,r.get(\\\"seriesDataIndices\\\"),{precision:r.get([\\\"label\\\",\\\"precision\\\"]),formatter:r.get([\\\"label\\\",\\\"formatter\\\"])}),s=r.getModel(\\\"label\\\"),u=Pv(s.get(\\\"padding\\\")||0),l=s.getFont(),c=yA(o,l),f=n.position,d=c.width+u[1]+u[3],v=c.height+u[0]+u[2],h=n.align;h===\\\"right\\\"&&(f[0]-=d),h===\\\"center\\\"&&(f[0]-=d/2);var p=n.verticalAlign;p===\\\"bottom\\\"&&(f[1]-=v),p===\\\"middle\\\"&&(f[1]-=v/2),Eq(f,d,v,i);var g=s.get(\\\"backgroundColor\\\");(!g||g===\\\"auto\\\")&&(g=t.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])),e.label={x:f[0],y:f[1],style:yo(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function Eq(e,t,r,i){var n=i.getWidth(),a=i.getHeight();e[0]=Math.min(e[0]+t,n)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function _O(e,t,r,i,n){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:n.precision}),o=n.formatter;if(o){var s={value:zf(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};C(i,function(u){var l=r.getSeriesByIndex(u.seriesIndex),c=u.dataIndexInside,f=l&&l.getDataParams(c);f&&s.seriesData.push(f)}),ee(o)?a=o.replace(\\\"{value}\\\",a):le(o)&&(a=o(s))}return a}function bO(e,t,r){var i=an();return h0(i,i,r.rotation),Bp(i,i,r.position),U0([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function zq(e,t,r,i,n,a){var o=Jn.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get([\\\"label\\\",\\\"margin\\\"]),Oq(t,i,n,a,{position:bO(i.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Rq(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function Nq(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function Uq(e,t,r){return Xo(e,{fromStat:{sers:Q(t,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function Bq(e,t,r){return[Me(Dt(t[0],t[1]),e-r/2),Dt(e+r/2,Me(t[0],t[1]))]}var Fq=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,u=s.grid,l=a.get(\\\"type\\\"),c=s.getGlobalExtent(),f=ST(u,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(i,!0));if(l&&l!==\\\"none\\\"){var v=Lq(a),h=jq[l](s,d,c,f,a.get(\\\"seriesDataIndices\\\"),a.ecModel);h.style=v,r.graphicKey=h.type,r.pointer=h}var p=Zf(u.getRect(),n);zq(i,r,p,n,a,o)},t.prototype.getHandleTransform=function(r,i,n){var a=Zf(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get([\\\"handle\\\",\\\"margin\\\"]);var o=bO(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,u=o.getGlobalExtent(!0),l=ST(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim===\\\"x\\\"?0:1,f=[r.x,r.y];f[c]+=i[c],f[c]=Dt(u[1],f[c]),f[c]=Me(u[0],f[c]);var d=(l[1]+l[0])/2,v=[d,d];v[c]=f[c];var h=[{verticalAlign:\\\"middle\\\"},{align:\\\"center\\\"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:v,tooltipOption:h[c]}},t})(Mq);function ST(e,t){var r={};return r[t.dim+\\\"AxisIndex\\\"]=t.index,e.getCartesian(r)}var jq={line:function(e,t,r,i){var n=Rq([t,i[0]],[t,i[1]],wT(e));return{type:\\\"Line\\\",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r,i,n,a){var o=Uq(e,n,a),s=i[1]-i[0],u=Bq(t,r,o),l=u[0],c=u[1];return{type:\\\"Rect\\\",shape:Nq([l,i[0]],[c-l,s],wT(e))}}};function wT(e){return e.dim===\\\"x\\\"?0:1}var Zq=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type=\\\"axisPointer\\\",t.defaultOption={show:\\\"auto\\\",z:50,type:\\\"line\\\",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:re.color.border,width:1,type:\\\"dashed\\\"},shadowStyle:{color:re.color.shadowTint},label:{show:!0,formatter:null,precision:\\\"auto\\\",margin:3,color:re.color.neutral00,padding:[5,7,5,7],backgroundColor:re.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:\\\"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z\\\",size:45,margin:50,color:re.color.accent40,throttle:40}},t})(Be),Sn=ke(),Vq=C;function SO(e,t,r){if(!pe.node){var i=t.getZr();Sn(i).records||(Sn(i).records={}),Gq(i,t);var n=Sn(i).records[e]||(Sn(i).records[e]={});n.handler=r}}function Gq(e,t){if(Sn(e).initialized)return;Sn(e).initialized=!0,r(\\\"click\\\",He(mp,\\\"click\\\")),r(\\\"mousemove\\\",He(mp,\\\"mousemove\\\")),r(\\\"mousewheel\\\",He(mp,\\\"mousewheel\\\")),r(\\\"globalout\\\",Wq);function r(i,n){e.on(i,function(a){var o=qq(t);Vq(Sn(e).records,function(s){s&&n(s,a,o.dispatchAction)}),Hq(o.pendings,t)})}}function Hq(e,t){var r=e.showTip.length,i=e.hideTip.length,n;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function Wq(e,t,r){e.handler(\\\"leave\\\",null,r)}function mp(e,t,r,i){t.handler(e,r,i)}function qq(e){var t={showTip:[],hideTip:[]},r=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=r,e.dispatchAction(i))};return{dispatchAction:r,pendings:t}}function nm(e,t){if(!pe.node){var r=t.getZr(),i=(Sn(r).records||{})[e];i&&(Sn(r).records[e]=null)}}var Yq=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n){var a=i.getComponent(\\\"tooltip\\\"),o=r.get(\\\"triggerOn\\\")||a&&a.get(\\\"triggerOn\\\")||\\\"mousemove|click|mousewheel\\\";SO(\\\"axisPointer\\\",n,function(s,u,l){o!==\\\"none\\\"&&(s===\\\"leave\\\"||o.indexOf(s)>=0)&&l({type:\\\"updateAxisPointer\\\",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(r,i){nm(\\\"axisPointer\\\",i)},t.prototype.dispose=function(r,i){nm(\\\"axisPointer\\\",i)},t.type=\\\"axisPointer\\\",t})(Ur);function wO(e,t){var r=[],i=e.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=aa(a,e);if(o==null||o<0||G(o))return{point:[]};var s=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.isStacked){var l=u.getBaseAxis(),c=u.getOtherAxis(l),f=c.dim,d=l.dim,v=f===\\\"x\\\"||f===\\\"radius\\\"?1:0,h=a.mapDimension(d),p=[];p[v]=a.get(h,o),p[1-v]=a.get(a.getCalculationInfo(\\\"stackResultDimension\\\"),o),r=u.dataToPoint(p)||[]}else r=u.dataToPoint(a.getValues(Q(u.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var xT=ke();function Xq(e,t,r){var i=e.currTrigger,n=[e.x,e.y],a=e,o=e.dispatchAction||Fe(r.dispatchAction,r),s=t.getComponent(\\\"axisPointer\\\").coordSysAxesInfo;if(s){Qc(n)&&(n=wO({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Qc(n),l=a.axesInfo,c=s.axesInfo,f=i===\\\"leave\\\"||Qc(n),d={},v={},h={list:[],map:{}},p={showPointer:He(Jq,v),showTooltip:He(Qq,h)};C(s.coordSysMap,function(m,y){var _=u||m.containPoint(n);C(s.coordSysAxesInfo[y],function(b,S){var w=b.axis,x=nY(l,b);if(!f&&_&&(!l||x)){var k=x&&x.value;k==null&&!u&&(k=w.pointToData(n)),k!=null&&TT(b,k,p,!1,d)}})});var g={};return C(c,function(m,y){var _=m.linkGroup;_&&!v[y]&&C(_.axesInfo,function(b,S){var w=v[S];if(b!==m&&w){var x=w.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,kT(b),kT(m)))),g[m.key]=x}})}),C(g,function(m,y){TT(c[y],m,p,!0,d)}),eY(v,c,d),tY(h,n,e,o),rY(c,o,r),d}}function TT(e,t,r,i,n){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=Kq(t,e),s=o.payloadBatch,u=o.snapToValue;s[0]&&n.seriesIndex==null&&Z(n,s[0]),!i&&e.snap&&a.containData(u)&&u!=null&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,o,u)}}function Kq(e,t){var r=t.axis,i=r.dim,n=e,a=[],o=Number.MAX_VALUE,s=-1;return C(t.seriesModels,function(u,l){var c=u.getData().mapDimensionsAll(i),f,d;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(c,e,r);d=v.dataIndices,f=v.nestestValue}else{if(d=u.indicesOfNearest(i,c[0],e,r.type===\\\"category\\\"?.5:null),!d.length)return;f=u.getData().get(c[0],d[0])}if(Sr(f)){var h=e-f,p=Math.abs(h);p<=o&&((p<o||h>=0&&s<0)&&(o=p,s=h,n=f,a.length=0),C(d,function(g){a.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function Jq(e,t,r,i){e[t.key]={value:r,payloadBatch:i}}function Qq(e,t,r,i){var n=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var u=t.coordSys.model,l=pu(u),c=e.map[l];c||(c=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get([\\\"label\\\",\\\"precision\\\"]),formatter:s.get([\\\"label\\\",\\\"formatter\\\"])},seriesDataIndices:n.slice()})}}function eY(e,t,r){var i=r.axesInfo=[];C(t,function(n,a){var o=n.axisPointerModel.option,s=e[a];s?(!n.useHandle&&(o.status=\\\"show\\\"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status=\\\"hide\\\"),o.status===\\\"show\\\"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function tY(e,t,r,i){if(Qc(t)||!e.list.length){i({type:\\\"hideTip\\\"});return}var n=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:\\\"showTip\\\",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:e.list})}function rY(e,t,r){var i=r.getZr(),n=\\\"axisPointerLastHighlights\\\",a=xT(i)[n]||{},o=xT(i)[n]={};C(e,function(c,f){var d=c.axisPointerModel.option;d.status===\\\"show\\\"&&c.triggerEmphasis&&C(d.seriesDataIndices,function(v){o[v.seriesIndex+\\\"|\\\"+v.dataIndex]=v})});var s=[],u=[];function l(c){return{seriesIndex:c.seriesIndex,dataIndex:c.dataIndex}}C(a,function(c,f){!o[f]&&u.push(l(c))}),C(o,function(c,f){!a[f]&&s.push(l(c))}),u.length&&r.dispatchAction({type:\\\"downplay\\\",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:\\\"highlight\\\",escapeConnect:!0,notBlur:!0,batch:s})}function nY(e,t){for(var r=0;r<(e||[]).length;r++){var i=e[r];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function kT(e){var t=e.axis.model,r={},i=r.axisDim=e.axis.dim;return r.axisIndex=r[i+\\\"AxisIndex\\\"]=t.componentIndex,r.axisName=r[i+\\\"AxisName\\\"]=t.name,r.axisId=r[i+\\\"AxisId\\\"]=t.id,r}function Qc(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function xO(e){dO.registerAxisPointerClass(\\\"CartesianAxisPointer\\\",Fq),e.registerComponentModel(Zq),e.registerComponentView(Yq),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!G(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,r){t.getComponent(\\\"axisPointer\\\").coordSysAxesInfo=iq(t,r)}}),e.registerAction({type:\\\"updateAxisPointer\\\",event:\\\"updateAxisPointer\\\",update:\\\":updateAxisPointer\\\"},Xq)}function iY(e){Mn(pO),Mn(xO)}function aY(e,t){var r=Pv(t.get(\\\"padding\\\")),i=t.getItemStyle([\\\"color\\\",\\\"opacity\\\"]);i.fill=t.get(\\\"backgroundColor\\\");var n=new ot({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get(\\\"borderRadius\\\")},style:i,silent:!0,z2:-1});return n}var oY=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type=\\\"tooltip\\\",t.dependencies=[\\\"axisPointer\\\"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:\\\"item\\\",triggerOn:\\\"mousemove|click|mousewheel\\\",alwaysShowContent:!1,renderMode:\\\"auto\\\",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:re.color.neutral00,shadowBlur:10,shadowColor:\\\"rgba(0, 0, 0, .2)\\\",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:re.color.border,padding:null,extraCssText:\\\"\\\",axisPointer:{type:\\\"line\\\",axis:\\\"auto\\\",animation:\\\"auto\\\",animationDurationUpdate:200,animationEasingUpdate:\\\"exponentialOut\\\",crossStyle:{color:re.color.borderShade,width:1,type:\\\"dashed\\\",textStyle:{}}},textStyle:{color:re.color.tertiary,fontSize:14}},t})(Be);function TO(e){var t=e.get(\\\"confine\\\");return t!=null?!!t:e.get(\\\"renderMode\\\")===\\\"richText\\\"}function kO(e){if(pe.domSupported){for(var t=document.documentElement.style,r=0,i=e.length;r<i;r++)if(e[r]in t)return e[r]}}var IO=kO([\\\"transform\\\",\\\"webkitTransform\\\",\\\"OTransform\\\",\\\"MozTransform\\\",\\\"msTransform\\\"]),sY=kO([\\\"webkitTransition\\\",\\\"transition\\\",\\\"OTransition\\\",\\\"MozTransition\\\",\\\"msTransition\\\"]);function $O(e,t){if(!e)return t;t=FP(t,!0);var r=e.indexOf(t);return e=r===-1?t:\\\"-\\\"+e.slice(0,r)+\\\"-\\\"+t,e.toLowerCase()}function uY(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var lY=$O(sY,\\\"transition\\\"),Fb=$O(IO,\\\"transform\\\"),cY=\\\"position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;\\\"+(pe.transform3dSupported?\\\"will-change:transform;\\\":\\\"\\\");function fY(e){return e=e===\\\"left\\\"?\\\"right\\\":e===\\\"right\\\"?\\\"left\\\":e===\\\"top\\\"?\\\"bottom\\\":\\\"top\\\",e}function dY(e,t,r){if(!ee(r)||r===\\\"inside\\\")return\\\"\\\";var i=e.get(\\\"backgroundColor\\\"),n=e.get(\\\"borderWidth\\\");t=sa(t);var a=fY(r),o=Math.max(Math.round(n)*1.5,6),s=\\\"\\\",u=Fb+\\\":\\\",l;xe([\\\"left\\\",\\\"right\\\"],a)>-1?(s+=\\\"top:50%\\\",u+=\\\"translateY(-50%) rotate(\\\"+(l=a===\\\"left\\\"?-225:-45)+\\\"deg)\\\"):(s+=\\\"left:50%\\\",u+=\\\"translateX(-50%) rotate(\\\"+(l=a===\\\"top\\\"?225:45)+\\\"deg)\\\");var c=l*Math.PI/180,f=o+n,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((d-Math.SQRT2*n)/2+Math.SQRT2*n-(d-f)/2)*100)/100;s+=\\\";\\\"+a+\\\":-\\\"+v+\\\"px\\\";var h=t+\\\" solid \\\"+n+\\\"px;\\\",p=[\\\"position:absolute;width:\\\"+o+\\\"px;height:\\\"+o+\\\"px;z-index:-1;\\\",s+\\\";\\\"+u+\\\";\\\",\\\"border-bottom:\\\"+h,\\\"border-right:\\\"+h,\\\"background-color:\\\"+i+\\\";\\\"];return'<div style=\\\"'+p.join(\\\"\\\")+'\\\"></div>'}function vY(e,t,r){var i=\\\"cubic-bezier(0.23,1,0.32,1)\\\",n=\\\"\\\",a=\\\"\\\";return r&&(n=\\\" \\\"+e/2+\\\"s \\\"+i,a=\\\"opacity\\\"+n+\\\",visibility\\\"+n),t||(n=\\\" \\\"+e+\\\"s \\\"+i,a+=(a.length?\\\",\\\":\\\"\\\")+(pe.transformSupported?\\\"\\\"+Fb+n:\\\",left\\\"+n+\\\",top\\\"+n)),lY+\\\":\\\"+a}function IT(e,t,r){var i=e.toFixed(0)+\\\"px\\\",n=t.toFixed(0)+\\\"px\\\";if(!pe.transformSupported)return r?\\\"top:\\\"+n+\\\";left:\\\"+i+\\\";\\\":[[\\\"top\\\",n],[\\\"left\\\",i]];var a=pe.transform3dSupported,o=\\\"translate\\\"+(a?\\\"3d\\\":\\\"\\\")+\\\"(\\\"+i+\\\",\\\"+n+(a?\\\",0\\\":\\\"\\\")+\\\")\\\";return r?\\\"top:0;left:0;\\\"+Fb+\\\":\\\"+o+\\\";\\\":[[\\\"top\\\",0],[\\\"left\\\",0],[IO,o]]}function hY(e){var t=[],r=e.get(\\\"fontSize\\\"),i=e.getTextColor();i&&t.push(\\\"color:\\\"+i),t.push(\\\"font:\\\"+e.getFont());var n=J(e.get(\\\"lineHeight\\\"),Math.round(r*3/2));r&&t.push(\\\"line-height:\\\"+n+\\\"px\\\");var a=e.get(\\\"textShadowColor\\\"),o=e.get(\\\"textShadowBlur\\\")||0,s=e.get(\\\"textShadowOffsetX\\\")||0,u=e.get(\\\"textShadowOffsetY\\\")||0;return a&&o&&t.push(\\\"text-shadow:\\\"+s+\\\"px \\\"+u+\\\"px \\\"+o+\\\"px \\\"+a),C([\\\"decoration\\\",\\\"align\\\"],function(l){var c=e.get(l);c&&t.push(\\\"text-\\\"+l+\\\":\\\"+c)}),t.join(\\\";\\\")}function pY(e,t,r,i){var n=[],a=e.get(\\\"transitionDuration\\\"),o=e.get(\\\"backgroundColor\\\"),s=e.get(\\\"shadowBlur\\\"),u=e.get(\\\"shadowColor\\\"),l=e.get(\\\"shadowOffsetX\\\"),c=e.get(\\\"shadowOffsetY\\\"),f=e.getModel(\\\"textStyle\\\"),d=yM(e,\\\"html\\\"),v=l+\\\"px \\\"+c+\\\"px \\\"+s+\\\"px \\\"+u;return n.push(\\\"box-shadow:\\\"+v),t&&a>0&&n.push(vY(a,r,i)),o&&n.push(\\\"background-color:\\\"+o),C([\\\"width\\\",\\\"color\\\",\\\"radius\\\"],function(h){var p=\\\"border-\\\"+h,g=FP(p),m=e.get(g);m!=null&&n.push(p+\\\":\\\"+m+(h===\\\"color\\\"?\\\"\\\":\\\"px\\\"))}),n.push(hY(f)),d!=null&&n.push(\\\"padding:\\\"+Pv(d).join(\\\"px \\\")+\\\"px\\\"),n.join(\\\";\\\")+\\\";\\\"}function $T(e,t,r,i,n){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&fU(e,o,r,i,n)}else{e[0]=i,e[1]=n;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var gY=(function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,pe.wxa)return null;var i=document.createElement(\\\"div\\\");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=r.appendTo,o=a&&(ee(a)?document.querySelector(a):Ws(a)?a:le(a)&&a(t.getDom()));$T(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=n.handler,c=n.painter.getViewportRoot();ur(c,u,!0),l.dispatch(\\\"mousemove\\\",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),i=uY(r,\\\"position\\\"),n=r.style;n.position!==\\\"absolute\\\"&&i!==\\\"absolute\\\"&&(n.position=\\\"relative\\\")}var a=t.get(\\\"alwaysShowContent\\\");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get(\\\"displayTransition\\\")&&t.get(\\\"transitionDuration\\\")>0,this.el.className=t.get(\\\"className\\\")||\\\"\\\"},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=cY+pY(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+IT(a[0],a[1],!0)+(\\\"border-color:\\\"+sa(r)+\\\";\\\")+(t.get(\\\"extraCssText\\\")||\\\"\\\")+(\\\";pointer-events:\\\"+(this._enterable?\\\"auto\\\":\\\"none\\\")):n.display=\\\"none\\\",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,i,n,a){var o=this.el;if(t==null){o.innerHTML=\\\"\\\";return}var s=\\\"\\\";if(ee(a)&&i.get(\\\"trigger\\\")===\\\"item\\\"&&!TO(i)&&(s=dY(i,n,a)),ee(t))o.innerHTML=t+s;else if(t){o.innerHTML=\\\"\\\",G(t)||(t=[t]);for(var u=0;u<t.length;u++)Ws(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement(\\\"div\\\");l.innerHTML=s,o.appendChild(l)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var i=this._styleCoord;if($T(i,this._zr,this._container,t,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=IT(i[0],i[1]);C(a,function(o){n[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility=\\\"hidden\\\",r.opacity=\\\"0\\\"):r.display=\\\"none\\\",pe.transform3dSupported&&(r.willChange=\\\"\\\"),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Fe(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;dU(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},e})(),mY=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),CT(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get(\\\"alwaysShowContent\\\");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,i,n,a){var o=this;ne(t)&&Zt(\\\"\\\"),this.el&&this._zr.remove(this.el);var s=i.getModel(\\\"textStyle\\\");this.el=new Ct({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get(\\\"textShadowColor\\\"),fill:i.get([\\\"textStyle\\\",\\\"color\\\"]),padding:yM(i,\\\"richText\\\"),verticalAlign:\\\"top\\\",align:\\\"left\\\"},z:i.get(\\\"z\\\")}),C([\\\"backgroundColor\\\",\\\"borderRadius\\\",\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"],function(l){o.el.style[l]=i.get(l)}),C([\\\"textShadowBlur\\\",\\\"textShadowOffsetX\\\",\\\"textShadowOffsetY\\\"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on(\\\"mouseover\\\",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on(\\\"mouseout\\\",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),i=DT(t.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},e.prototype.moveTo=function(t,r){var i=this.el;if(i){var n=this._styleCoord;CT(n,this._zr,t,r),t=n[0],r=n[1];var a=i.style,o=Vn(a.borderWidth||0),s=DT(a);i.x=t+o+s.left,i.y=r+o+s.top,i.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Fe(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function Vn(e){return Math.max(0,e)}function DT(e){var t=Vn(e.shadowBlur||0),r=Vn(e.shadowOffsetX||0),i=Vn(e.shadowOffsetY||0);return{left:Vn(t-r),right:Vn(t+r),top:Vn(t-i),bottom:Vn(t+i)}}function CT(e,t,r,i){e[0]=r,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var yY=new ot({shape:{x:-1,y:-1,width:2,height:2}}),_Y=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,i){if(!(pe.node||!i.getDom())){var n=r.getComponent(\\\"tooltip\\\"),a=this._renderMode=tB(n.get(\\\"renderMode\\\"));this._tooltipContent=a===\\\"richText\\\"?new mY(i):new gY(i,{appendTo:n.get(\\\"appendToBody\\\",!0)?\\\"body\\\":n.get(\\\"appendTo\\\",!0)})}},t.prototype.render=function(r,i,n){if(!(pe.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get(\\\"enterable\\\")),this._initGlobalListener(),this._keepShow(),this._renderMode!==\\\"richText\\\"&&r.get(\\\"transitionDuration\\\")?bM(this,\\\"_updatePosition\\\",50,\\\"fixRate\\\"):Cg(this,\\\"_updatePosition\\\")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get(\\\"triggerOn\\\");SO(\\\"itemTooltip\\\",this._api,Fe(function(n,a,o){i!==\\\"none\\\"&&(i.indexOf(n)>=0?this._tryShow(a,o):n===\\\"leave\\\"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get(\\\"triggerOn\\\");if(r.get(\\\"trigger\\\")!==\\\"axis\\\"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!==\\\"none\\\"&&a!==\\\"click\\\"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||pe.node||!n.getDom())){var o=AT(a,n);this._ticket=\\\"\\\";var s=a.dataByCoordSys,u=xY(a,i,n);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:\\\"bottom\\\"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=yY;c.x=a.x,c.y=a.y,c.update(),we(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,a))return;var f=wO(a,i),d=f.point[0],v=f.point[1];d!=null&&v!=null&&this._tryShow({offsetX:d,offsetY:v,target:f.el,position:a.position,positionDefault:\\\"bottom\\\"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:\\\"updateAxisPointer\\\",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get(\\\"hideDelay\\\")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(AT(a,n))},t.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,u=i.getComponent(\\\"axisPointer\\\").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=i.getSeriesByIndex(o);if(l){var c=l.getData(),f=gs([c.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(f.get(\\\"trigger\\\")===\\\"axis\\\")return n.dispatchAction({type:\\\"updateAxisPointer\\\",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=we(n);if(s.ssrType===\\\"legend\\\")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var u,l;Is(n,function(c){if(c.tooltipDisabled)return u=l=null,!0;u||l||(we(c).dataIndex!=null?u=c:we(c).tooltipConfig!=null&&(l=c))},!0),u?this._showSeriesItemTooltip(r,u,i):l?this._showComponentItemTooltip(r,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},t.prototype._showOrMove=function(r,i){var n=r.get(\\\"showDelay\\\");i=Fe(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=gs([i.tooltipOption],a),u=this._renderMode,l=[],c=ua(\\\"section\\\",{blocks:[],noHeader:!0}),f=[],d=new Zh;C(r,function(y){C(y.dataByAxis,function(_){var b=n.getComponent(_.axisDim+\\\"Axis\\\",_.axisIndex),S=_.value,w=b.axis,x=w.scale.parse(S);if(!(!b||S==null)){var k=_O(S,w,n,_.seriesDataIndices,_.valueLabelOpt),T=ua(\\\"section\\\",{header:k,noHeader:!en(k),sortBlocks:!0,blocks:[]});c.blocks.push(T),C(_.seriesDataIndices,function(I){var $=n.getSeriesByIndex(I.seriesIndex),A=I.dataIndexInside,D=$.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=zf(b.axis,{value:x}),D.axisValueLabel=k,D.marker=d.makeTooltipMarker(\\\"item\\\",sa(D.color),u);var P=w1($.formatTooltip(A,!0,null)),z=P.frag;if(z){var R=gs([$],a).get(\\\"valueFormatter\\\");T.blocks.push(R?Z({valueFormatter:R},z):z)}P.text&&f.push(P.text),l.push(D)}})}})}),c.blocks.reverse(),f.reverse();var v=i.position,h=s.get(\\\"order\\\"),p=$1(c,d,u,h,n.get(\\\"useUTC\\\"),s.get(\\\"textStyle\\\"));p&&f.unshift(p);var g=u===\\\"richText\\\"?`\\n\\n`:\\\"<br/>\\\",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,m,l,Math.random()+\\\"\\\",o[0],o[1],v,null,d)})},t.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=we(i),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,c=o.dataIndex,f=o.dataType,d=l.getData(f),v=this._renderMode,h=r.positionDefault,p=gs([d.getItemModel(c),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),g=p.get(\\\"trigger\\\");if(!(g!=null&&g!==\\\"item\\\")){var m=l.getDataParams(c,f),y=new Zh;m.marker=y.makeTooltipMarker(\\\"item\\\",sa(m.color),v);var _=w1(l.formatTooltip(c,!1,f)),b=p.get(\\\"order\\\"),S=p.get(\\\"valueFormatter\\\"),w=_.frag,x=w?$1(S?Z({valueFormatter:S},w):w,y,v,b,a.get(\\\"useUTC\\\"),p.get(\\\"textStyle\\\")):_.text,k=\\\"item_\\\"+l.name+\\\"_\\\"+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,k,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:\\\"showTip\\\",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode===\\\"html\\\",o=we(i),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(ee(u)){var c=u;u={content:c,formatter:c},l=!0}l&&a&&u.content&&(u=me(u),u.content=Et(u.content));var f=[u],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:u.content});var v=r.positionDefault,h=gs(f,this._tooltipModel,v?{position:v}:null),p=h.get(\\\"content\\\"),g=Math.random()+\\\"\\\",m=new Zh;this._showOrMove(h,function(){var y=me(h.get(\\\"formatterParams\\\")||{});this._showTooltipContent(h,p,y,g,r.offsetX,r.offsetY,r.position,i,m)}),n({type:\\\"showTip\\\",from:this.uid})},t.prototype._showTooltipContent=function(r,i,n,a,o,s,u,l,c){if(this._ticket=\\\"\\\",!(!r.get(\\\"showContent\\\")||!r.get(\\\"show\\\"))){var f=this._tooltipContent;f.setEnterable(r.get(\\\"enterable\\\"));var d=r.get(\\\"formatter\\\");u=u||r.get(\\\"position\\\");var v=i,h=this._getNearestPoint([o,s],n,r.get(\\\"trigger\\\"),r.get(\\\"borderColor\\\"),r.get(\\\"defaultBorderColor\\\",!0)),p=h.color;if(d)if(ee(d)){var g=r.ecModel.get(\\\"useUTC\\\"),m=G(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf(\\\"time\\\")>=0;v=d,y&&(v=Av(m.axisValue,v,g)),v=jP(v,n,!0)}else if(le(d)){var _=Fe(function(b,S){b===this._ticket&&(f.setContent(S,c,r,p,u),this._updatePosition(r,u,o,s,f,n,l))},this);this._ticket=a,v=d(n,a,_)}else v=d;f.setContent(v,c,r,p,u),f.show(r,p),this._updatePosition(r,u,o,s,f,n,l)}},t.prototype._getNearestPoint=function(r,i,n,a,o){if(n===\\\"axis\\\"||G(i))return{color:a||o};if(!G(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(r,i,n,a,o,s,u){var l=this._api.getWidth(),c=this._api.getHeight();i=i||r.get(\\\"position\\\");var f=o.getSize(),d=r.get(\\\"align\\\"),v=r.get(\\\"verticalAlign\\\"),h=u&&u.getBoundingRect().clone();if(u&&h.applyTransform(u.transform),le(i)&&(i=i([n,a],s,o.el,h,{viewSize:[l,c],contentSize:f.slice()})),G(i))n=$e(i[0],l),a=$e(i[1],c);else if(ne(i)){var p=i;p.width=f[0],p.height=f[1];var g=ri(p,{width:l,height:c});n=g.x,a=g.y,d=null,v=null}else if(ee(i)&&u){var m=wY(i,h,f,r.get(\\\"borderWidth\\\"));n=m[0],a=m[1]}else{var m=bY(n,a,o,l,c,d?null:20,v?null:20);n=m[0],a=m[1]}if(d&&(n-=PT(d)?f[0]/2:d===\\\"right\\\"?f[0]:0),v&&(a-=PT(v)?f[1]/2:v===\\\"bottom\\\"?f[1]:0),TO(r)){var m=SY(n,a,o,l,c);n=m[0],a=m[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&C(n,function(s,u){var l=s.dataByAxis||[],c=r[u]||{},f=c.dataByAxis||[];o=o&&l.length===f.length,o&&C(l,function(d,v){var h=f[v]||{},p=d.seriesDataIndices||[],g=h.seriesDataIndices||[];o=o&&d.value===h.value&&d.axisType===h.axisType&&d.axisId===h.axisId&&p.length===g.length,o&&C(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&C(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=i[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:\\\"hideTip\\\",from:this.uid})},t.prototype.dispose=function(r,i){pe.node||!i.getDom()||(Cg(this,\\\"_updatePosition\\\"),this._tooltipContent.dispose(),nm(\\\"itemTooltip\\\",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=\\\"tooltip\\\",t})(Ur);function gs(e,t,r){var i=t.ecModel,n;r?(n=new Qe(r,i,i),n=new Qe(t.option,n,i)):n=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Qe&&(o=o.get(\\\"tooltip\\\",!0)),ee(o)&&(o={formatter:o}),o&&(n=new Qe(o,n,i)))}return n}function AT(e,t){return e.dispatchAction||Fe(t.dispatchAction,t)}function bY(e,t,r,i,n,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(e+u+a+2>i?e-=u+a:e+=a),o!=null&&(t+l+o>n?t-=l+o:t+=o),[e,t]}function SY(e,t,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,i)-o,t=Math.min(t+s,n)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function wY(e,t,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,l=t.width,c=t.height;switch(e){case\\\"inside\\\":s=t.x+l/2-n/2,u=t.y+c/2-a/2;break;case\\\"top\\\":s=t.x+l/2-n/2,u=t.y-a-o;break;case\\\"bottom\\\":s=t.x+l/2-n/2,u=t.y+c+o;break;case\\\"left\\\":s=t.x-n-o,u=t.y+c/2-a/2;break;case\\\"right\\\":s=t.x+l+o,u=t.y+c/2-a/2}return[s,u]}function PT(e){return e===\\\"center\\\"||e===\\\"middle\\\"}function xY(e,t,r){var i=x0(e).queryOptionMap,n=i.keys()[0];if(!(!n||n===\\\"series\\\")){var a=Il(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var c=we(l).tooltipConfig;if(c&&c.name===e.name)return u=l,!0}),u)return{componentMainType:n,componentIndex:o.componentIndex,el:u}}}}function TY(e){Mn(xO),e.registerComponentModel(oY),e.registerComponentView(_Y),e.registerAction({type:\\\"showTip\\\",event:\\\"showTip\\\",update:\\\"tooltip:manuallyShowTip\\\"},_t),e.registerAction({type:\\\"hideTip\\\",event:\\\"hideTip\\\",update:\\\"tooltip:manuallyHideTip\\\"},_t)}function kY(e,t){if(!e)return!1;for(var r=G(e)?e:[e],i=0;i<r.length;i++)if(r[i]&&r[i][t])return!0;return!1}function Ac(e){eu(e,\\\"label\\\",[\\\"show\\\"])}var Pc=ke(),To=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return t.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),this._mergeOption(r,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(pe.node)return!1;var r=this.__hostSeries;return this.getShallow(\\\"animation\\\")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,i){this._mergeOption(r,i,!1,!1)},t.prototype._mergeOption=function(r,i,n,a){var o=this.mainType;n||i.eachSeries(function(s){var u=s.get(this.mainType,!0),l=Pc(s)[o];if(!u||!u.data){Pc(s)[o]=null;return}l?l._mergeOption(u,i,!0):(a&&Ac(u),C(u.data,function(c){c instanceof Array?(Ac(c[0]),Ac(c[1])):Ac(c)}),l=this.createMarkerModelFromSeries(u,this,i),Z(l,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),l.__hostSeries=s),Pc(s)[o]=l},this)},t.prototype.formatTooltip=function(r,i,n){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return ua(\\\"section\\\",{header:this.name,blocks:[ua(\\\"nameValue\\\",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,i){var n=lb.prototype.getDataParams.call(this,r,i),a=this.__hostSeries;return a&&(n.seriesId=a.id,n.seriesName=a.name,n.seriesType=a.subType),n},t.getMarkerModelFromSeries=function(r,i){return Pc(r)[i]},t.type=\\\"marker\\\",t.dependencies=[\\\"series\\\",\\\"grid\\\",\\\"polar\\\",\\\"geo\\\"],t})(Be);Fr(To,lb.prototype);function IY(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function $Y(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Mc(e,t,r,i,n,a,o){var s=[],u=la(t,n),l=u?t.getCalculationInfo(\\\"stackResultDimension\\\"):n,c=Gf(t,l,e),f=t.hostModel,d=f.indicesOfNearest(r,l,c)[0];s[a]=t.get(i,d),s[o]=t.get(l,d);var v=t.get(n,d),h=yn(t.get(n,d));return h=Math.min(h,20),h>=0&&(s[o]=+s[o].toFixed(h)),[s,v]}var Lc={min:He(Mc,\\\"min\\\"),max:He(Mc,\\\"max\\\"),average:He(Mc,\\\"average\\\"),median:He(Mc,\\\"median\\\")};function MT(e,t){if(t){var r=e.getData(),i=e.coordinateSystem,n=i&&i.dimensions;if(!$Y(t)&&!G(t.coord)&&G(n)){var a=DO(t,r,i,e);if(t=me(t),t.type&&Lc[t.type]&&a.baseAxis&&a.valueAxis){var o=xe(n,a.baseAxis.dim),s=xe(n,a.valueAxis.dim),u=Lc[t.type](r,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=u[0],t.value=u[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!G(n)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&Lc[t.type]){var c=i.getOtherAxis(l);c&&(t.value=Gf(r,r.mapDimension(c.dim),t.type))}}else for(var f=t.coord,d=0;d<2;d++)Lc[f[d]]&&(f[d]=Gf(r,r.mapDimension(n[d]),f[d]));return t}}function DO(e,t,r,i){var n={};return e.valueIndex!=null||e.valueDim!=null?(n.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,n.valueAxis=r.getAxis(DY(i,n.valueDataDim)),n.baseAxis=r.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=i.getBaseAxis(),n.valueAxis=r.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function DY(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function LT(e,t){return e&&e.containData&&t.coord&&!IY(t)?e.containData(t.coord):!0}function CY(e,t){return e?function(r,i,n,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Qa(o,t[a])}:function(r,i,n,a){return Qa(r.value,t[a])}}function Gf(e,t,r){if(r===\\\"average\\\"){var i=0,n=0;return e.each(t,function(a,o){isNaN(a)||(i+=a,n++)}),i/n}else return r===\\\"median\\\"?e.getMedian(t):e.getDataExtent(t)[r===\\\"max\\\"?1:0]}var yp=ke(),AY=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=se()},t.prototype.render=function(r,i,n){var a=this,o=this.markerGroupMap;o.each(function(s){yp(s).keep=!1}),i.eachSeries(function(s){var u=To.getMarkerModelFromSeries(s,a.type);u&&a.renderSeries(s,u,i,n)}),o.each(function(s){!yp(s).keep&&a.group.remove(s.group)}),PY(i,o,this.type)},t.prototype.markKeep=function(r){yp(r).keep=!0},t.prototype.toggleBlurSeries=function(r,i){var n=this;C(r,function(a){var o=To.getMarkerModelFromSeries(a,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(u){u&&(i?nP(u):L0(u))})}})},t.type=\\\"marker\\\",t})(Ur);function PY(e,t,r){e.eachSeries(function(i){var n=To.getMarkerModelFromSeries(i,r),a=t.get(i.id);if(n&&a&&a.group){var o=Z0(n),s=o.z,u=o.zlevel;V0(a.group,s,u)}})}var MY=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,i,n){return new t(r,i,n)},t.type=\\\"markLine\\\",t.defaultOption={z:5,symbol:[\\\"circle\\\",\\\"arrow\\\"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:\\\"item\\\"},label:{show:!0,position:\\\"end\\\",distance:5},lineStyle:{type:\\\"dashed\\\"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:\\\"linear\\\"},t})(To),Oc=ke(),LY=function(e,t,r,i){var n=e.getData(),a;if(G(i))a=i;else{var o=i.type;if(o===\\\"min\\\"||o===\\\"max\\\"||o===\\\"average\\\"||o===\\\"median\\\"||i.xAxis!=null||i.yAxis!=null){var s=void 0,u=void 0;if(i.yAxis!=null||i.xAxis!=null)s=t.getAxis(i.yAxis!=null?\\\"y\\\":\\\"x\\\"),u=Ys(i.yAxis,i.xAxis);else{var l=DO(i,n,t,e);s=l.valueAxis;var c=eL(n,l.valueDataDim);u=Gf(n,c,o)}var f=s.dim===\\\"x\\\"?0:1,d=1-f,v=me(i),h={coord:[]};v.type=null,v.coord=[],v.coord[d]=-1/0,h.coord[d]=1/0;var p=r.get(\\\"precision\\\");p>=0&&Re(u)&&(u=+u.toFixed(Math.min(p,20))),v.coord[f]=h.coord[f]=u,a=[v,h,{type:o,valueIndex:i.valueIndex,value:u}]}else a=[]}var g=[MT(e,a[0]),MT(e,a[1]),Z({},a[2])];return g[2].type=g[2].type||null,Ze(g[2],g[0]),Ze(g[2],g[1]),g};function Hf(e){return!isNaN(e)&&!isFinite(e)}function OT(e,t,r,i){var n=1-e,a=i.dimensions[e];return Hf(t[n])&&Hf(r[n])&&t[e]===r[e]&&i.getAxis(a).containData(t[e])}function OY(e,t){if(e.type===\\\"cartesian2d\\\"){var r=t[0].coord,i=t[1].coord;if(r&&i&&(OT(1,r,i,e)||OT(0,r,i,e)))return!0}return LT(e,t[0])&<(e,t[1])}function _p(e,t,r,i,n){var a=i.coordinateSystem,o=e.getItemModel(t),s,u=$e(o.get(\\\"x\\\"),n.getWidth()),l=$e(o.get(\\\"y\\\"),n.getHeight());if(!isNaN(u)&&!isNaN(l))s=[u,l];else{if(i.getMarkerPosition)s=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(zb(a,\\\"cartesian2d\\\")){var v=a.getAxis(\\\"x\\\"),h=a.getAxis(\\\"y\\\"),c=a.dimensions;Hf(e.get(c[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[r?0:1]):Hf(e.get(c[1],t))&&(s[1]=h.toGlobalCoord(h.getExtent()[r?0:1]))}isNaN(u)||(s[0]=u),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var EY=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,i,n){i.eachSeries(function(a){var o=To.getMarkerModelFromSeries(a,\\\"markLine\\\");if(o){var s=o.getData(),u=Oc(o).from,l=Oc(o).to;u.each(function(c){_p(u,c,!0,a,n),_p(l,c,!1,a,n)}),s.each(function(c){s.setItemLayout(c,[u.getItemLayout(c),l.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,i,n,a){var o=r.coordinateSystem,s=r.id,u=r.getData(),l=this.markerGroupMap,c=l.get(s)||l.set(s,new Sq);this.group.add(c.group);var f=zY(o,r,i),d=f.from,v=f.to,h=f.line;Oc(i).from=d,Oc(i).to=v,i.setData(h);var p=i.get(\\\"symbol\\\"),g=i.get(\\\"symbolSize\\\"),m=i.get(\\\"symbolRotate\\\"),y=i.get(\\\"symbolOffset\\\");G(p)||(p=[p,p]),G(g)||(g=[g,g]),G(m)||(m=[m,m]),G(y)||(y=[y,y]),f.from.each(function(b){_(d,b,!0),_(v,b,!1)}),h.each(function(b){var S=h.getItemModel(b),w=S.getModel(\\\"lineStyle\\\").getLineStyle();h.setItemLayout(b,[d.getItemLayout(b),v.getItemLayout(b)]);var x=S.get(\\\"z2\\\");w.stroke==null&&(w.stroke=d.getItemVisual(b,\\\"style\\\").fill),h.setItemVisual(b,{z2:J(x,0),fromSymbolKeepAspect:d.getItemVisual(b,\\\"symbolKeepAspect\\\"),fromSymbolOffset:d.getItemVisual(b,\\\"symbolOffset\\\"),fromSymbolRotate:d.getItemVisual(b,\\\"symbolRotate\\\"),fromSymbolSize:d.getItemVisual(b,\\\"symbolSize\\\"),fromSymbol:d.getItemVisual(b,\\\"symbol\\\"),toSymbolKeepAspect:v.getItemVisual(b,\\\"symbolKeepAspect\\\"),toSymbolOffset:v.getItemVisual(b,\\\"symbolOffset\\\"),toSymbolRotate:v.getItemVisual(b,\\\"symbolRotate\\\"),toSymbolSize:v.getItemVisual(b,\\\"symbolSize\\\"),toSymbol:v.getItemVisual(b,\\\"symbol\\\"),style:w})}),c.updateData(h),f.line.eachItemGraphicEl(function(b){we(b).dataModel=i,b.traverse(function(S){we(S).dataModel=i})});function _(b,S,w){var x=b.getItemModel(S);_p(b,S,w,r,a);var k=x.getModel(\\\"itemStyle\\\").getItemStyle();k.fill==null&&(k.fill=DM(u,\\\"color\\\")),b.setItemVisual(S,{symbolKeepAspect:x.get(\\\"symbolKeepAspect\\\"),symbolOffset:J(x.get(\\\"symbolOffset\\\",!0),y[w?0:1]),symbolRotate:J(x.get(\\\"symbolRotate\\\",!0),m[w?0:1]),symbolSize:J(x.get(\\\"symbolSize\\\"),g[w?0:1]),symbol:J(x.get(\\\"symbol\\\",!0),p[w?0:1]),style:k})}this.markKeep(c),c.group.silent=i.get(\\\"silent\\\")||r.get(\\\"silent\\\")},t.type=\\\"markLine\\\",t})(AY);function zY(e,t,r){var i;e?i=Q(e&&e.dimensions,function(l){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(l))||{};return Z(Z({},f),{name:l,ordinalMeta:null})}):i=[{name:\\\"value\\\",type:\\\"float\\\"}];var n=new Bs(i,r),a=new Bs(i,r),o=new Bs([],r),s=Q(r.get(\\\"data\\\"),He(LY,t,e,r));e&&(s=at(s,He(OY,e)));var u=CY(!!e,i);return n.initData(Q(s,function(l){return l[0]}),null,u),a.initData(Q(s,function(l){return l[1]}),null,u),o.initData(Q(s,function(l){return l[2]})),o.hasItemOption=!0,{from:n,to:a,line:o}}function RY(e){e.registerComponentModel(MY),e.registerComponentView(EY),e.registerPreprocessor(function(t){kY(t.series,\\\"markLine\\\")&&(t.markLine=t.markLine||{})})}var NY=function(e,t){if(t===\\\"all\\\")return{type:\\\"all\\\",title:e.getLocaleModel().get([\\\"legend\\\",\\\"selector\\\",\\\"all\\\"])};if(t===\\\"inverse\\\")return{type:\\\"inverse\\\",title:e.getLocaleModel().get([\\\"legend\\\",\\\"selector\\\",\\\"inverse\\\"])}},im=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:\\\"box\\\",ignoreSize:!0},r}return t.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},t.prototype._updateSelector=function(r){var i=r.selector,n=this.ecModel;i===!0&&(i=r.selector=[\\\"all\\\",\\\"inverse\\\"]),G(i)&&C(i,function(a,o){ee(a)&&(a={type:a}),i[o]=Ze(a,NY(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get(\\\"selectedMode\\\")===\\\"single\\\"){for(var i=!1,n=0;n<r.length;n++){var a=r[n].get(\\\"name\\\");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(r[0].get(\\\"name\\\"))}},t.prototype._updateData=function(r){var i=[],n=[];r.eachRawSeries(function(u){var l=u.name;n.push(l);var c;if(u.legendVisualProvider){var f=u.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(u)||(n=n.concat(d)),d.length?i=i.concat(d):c=!0}else c=!0;c&&w0(u)&&i.push(u.name)}),this._availableNames=n;var a=this.get(\\\"data\\\")||i,o=se(),s=Q(a,function(u){return(ee(u)||Re(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new Qe(u,this,this.ecModel))},this);this._data=at(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var i=this.option.selected,n=this.get(\\\"selectedMode\\\");if(n===\\\"single\\\"){var a=this._data;C(a,function(o){i[o.get(\\\"name\\\")]=!1})}i[r]=!0},t.prototype.unSelect=function(r){this.get(\\\"selectedMode\\\")!==\\\"single\\\"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var i=this.option.selected;i.hasOwnProperty(r)||(i[r]=!0),this[i[r]?\\\"unSelect\\\":\\\"select\\\"](r)},t.prototype.allSelect=function(){var r=this._data,i=this.option.selected;C(r,function(n){i[n.get(\\\"name\\\",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,i=this.option.selected;C(r,function(n){var a=n.get(\\\"name\\\",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},t.prototype.isSelected=function(r){var i=this.option.selected;return!(i.hasOwnProperty(r)&&!i[r])&&xe(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get(\\\"orient\\\")===\\\"vertical\\\"?{index:1,name:\\\"vertical\\\"}:{index:0,name:\\\"horizontal\\\"}},t.type=\\\"legend.plain\\\",t.dependencies=[\\\"series\\\"],t.defaultOption={z:4,show:!0,orient:\\\"horizontal\\\",left:\\\"center\\\",bottom:re.size.m,align:\\\"auto\\\",backgroundColor:re.color.transparent,borderColor:re.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:\\\"inherit\\\",symbolKeepAspect:!0,inactiveColor:re.color.disabled,inactiveBorderColor:re.color.disabled,inactiveBorderWidth:\\\"auto\\\",itemStyle:{color:\\\"inherit\\\",opacity:\\\"inherit\\\",borderColor:\\\"inherit\\\",borderWidth:\\\"auto\\\",borderCap:\\\"inherit\\\",borderJoin:\\\"inherit\\\",borderDashOffset:\\\"inherit\\\",borderMiterLimit:\\\"inherit\\\"},lineStyle:{width:\\\"auto\\\",color:\\\"inherit\\\",inactiveColor:re.color.disabled,inactiveWidth:2,opacity:\\\"inherit\\\",type:\\\"inherit\\\",cap:\\\"inherit\\\",join:\\\"inherit\\\",dashOffset:\\\"inherit\\\",miterLimit:\\\"inherit\\\"},textStyle:{color:re.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:\\\"sans-serif\\\",color:re.color.tertiary,borderWidth:1,borderColor:re.color.border},emphasis:{selectorLabel:{show:!0,color:re.color.quaternary}},selectorPosition:\\\"auto\\\",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(Be),za=He,am=C,Ec=st,CO=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Ec),this.group.add(this._selectorGroup=new Ec),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get(\\\"show\\\",!0)){var o=r.get(\\\"align\\\"),s=r.get(\\\"orient\\\");(!o||o===\\\"auto\\\")&&(o=r.get(\\\"left\\\")===\\\"right\\\"&&s===\\\"vertical\\\"?\\\"right\\\":\\\"left\\\");var u=r.get(\\\"selector\\\",!0),l=r.get(\\\"selectorPosition\\\",!0);u&&(!l||l===\\\"auto\\\")&&(l=s===\\\"horizontal\\\"?\\\"end\\\":\\\"start\\\"),this.renderInner(o,r,i,n,u,s,l);var c=Mv(r,n).refContainer,f=r.getBoxLayoutParams(),d=r.get(\\\"padding\\\"),v=ri(f,c,d),h=this.layoutInner(r,o,v,a,u,l),p=ri(je({width:h.width,height:h.height},f),c,d);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=aY(h,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,i,n,a,o,s,u){var l=this.getContentGroup(),c=se(),f=i.get(\\\"selectedMode\\\"),d=i.get(\\\"triggerEvent\\\"),v=[];n.eachRawSeries(function(h){!h.get(\\\"legendHoverLink\\\")&&v.push(h.id)}),am(i.getData(),function(h,p){var g=this,m=h.get(\\\"name\\\");if(!this.newlineDisabled&&(m===\\\"\\\"||m===`\\n`)){var y=new Ec;y.newline=!0,l.add(y);return}var _=n.getSeriesByName(m)[0];if(!c.get(m))if(_){var b=_.getData(),S=b.getVisual(\\\"legendLineStyle\\\")||{},w=b.getVisual(\\\"legendIcon\\\"),x=b.getVisual(\\\"style\\\"),k=this._createItem(_,m,p,h,i,r,S,x,w,f,a);k.on(\\\"click\\\",za(ET,m,null,a,v)).on(\\\"mouseover\\\",za(om,_.name,null,a,v)).on(\\\"mouseout\\\",za(sm,_.name,null,a,v)),n.ssr&&k.eachChild(function(T){var I=we(T);I.seriesIndex=_.seriesIndex,I.dataIndex=p,I.ssrType=\\\"legend\\\"}),d&&k.eachChild(function(T){g.packEventData(T,i,_,p,m)}),c.set(m,!0)}else n.eachRawSeries(function(T){var I=this;if(!c.get(m)&&T.legendVisualProvider){var $=T.legendVisualProvider;if(!$.containName(m))return;var A=$.indexOfName(m),D=$.getItemVisual(A,\\\"style\\\"),P=$.getItemVisual(A,\\\"legendIcon\\\"),z=Rr(D.fill);z&&z[3]===0&&(z[3]=.2,D=Z(Z({},D),{fill:wl(z,\\\"rgba\\\")}));var R=this._createItem(T,m,p,h,i,r,{},D,P,f,a);R.on(\\\"click\\\",za(ET,null,m,a,v)).on(\\\"mouseover\\\",za(om,null,m,a,v)).on(\\\"mouseout\\\",za(sm,null,m,a,v)),n.ssr&&R.eachChild(function(F){var N=we(F);N.seriesIndex=T.seriesIndex,N.dataIndex=p,N.ssrType=\\\"legend\\\"}),d&&R.eachChild(function(F){I.packEventData(F,i,T,p,m)}),c.set(m,!0)}},this)},this),o&&this._createSelector(o,i,a,s,u)},t.prototype.packEventData=function(r,i,n,a,o){var s={componentType:\\\"legend\\\",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};we(r).eventData=s},t.prototype._createSelector=function(r,i,n,a,o){var s=this.getSelectorGroup();am(r,function(l){var c=l.type,f=new Ct({style:{x:0,y:0,align:\\\"center\\\",verticalAlign:\\\"middle\\\"},onclick:function(){n.dispatchAction({type:c===\\\"all\\\"?\\\"legendAllSelect\\\":\\\"legendInverseSelect\\\",legendId:i.id})}});s.add(f);var d=i.getModel(\\\"selectorLabel\\\"),v=i.getModel([\\\"emphasis\\\",\\\"selectorLabel\\\"]);ga(f,{normal:d,emphasis:v},{defaultText:l.title}),pg(f)})},t.prototype._createItem=function(r,i,n,a,o,s,u,l,c,f,d){var v=r.visualDrawType,h=o.get(\\\"itemWidth\\\"),p=o.get(\\\"itemHeight\\\"),g=o.isSelected(i),m=a.get(\\\"symbolRotate\\\"),y=a.get(\\\"symbolKeepAspect\\\"),_=a.get(\\\"icon\\\");c=_||c||\\\"roundRect\\\";var b=UY(c,a,u,l,v,g,d),S=new Ec,w=a.getModel(\\\"textStyle\\\");if(le(r.getLegendIcon)&&(!_||_===\\\"inherit\\\"))S.add(r.getLegendIcon({itemWidth:h,itemHeight:p,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var x=_===\\\"inherit\\\"&&r.getData().getVisual(\\\"symbol\\\")?m===\\\"inherit\\\"?r.getData().getVisual(\\\"symbolRotate\\\"):m:0;S.add(BY({itemWidth:h,itemHeight:p,icon:c,iconRotate:x,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var k=s===\\\"left\\\"?h+5:-5,T=s,I=o.get(\\\"formatter\\\"),$=i;ee(I)&&I?$=I.replace(\\\"{name}\\\",i??\\\"\\\"):le(I)&&($=I(i));var A=g?w.getTextColor():a.get(\\\"inactiveColor\\\");S.add(new Ct({style:yo(w,{text:$,x:k,y:p/2,fill:A,align:T,verticalAlign:\\\"middle\\\"},{inheritColor:A})}));var D=new ot({shape:S.getBoundingRect(),style:{fill:\\\"transparent\\\"}}),P=a.getModel(\\\"tooltip\\\");return P.get(\\\"show\\\")&&Iv({el:D,componentModel:o,itemName:i,itemTooltipOption:P.option}),S.add(D),S.eachChild(function(z){z.silent=!0}),D.silent=!f,this.getContentGroup().add(S),pg(S),S.__legendDataIndex=n,S},t.prototype.layoutInner=function(r,i,n,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Rs(r.get(\\\"orient\\\"),u,r.get(\\\"itemGap\\\"),n.width,n.height);var c=u.getBoundingRect(),f=[-c.x,-c.y];if(l.markRedraw(),u.markRedraw(),o){Rs(\\\"horizontal\\\",l,r.get(\\\"selectorItemGap\\\",!0));var d=l.getBoundingRect(),v=[-d.x,-d.y],h=r.get(\\\"selectorButtonGap\\\",!0),p=r.getOrient().index,g=p===0?\\\"width\\\":\\\"height\\\",m=p===0?\\\"height\\\":\\\"width\\\",y=p===0?\\\"y\\\":\\\"x\\\";s===\\\"end\\\"?v[p]+=c[g]+h:f[p]+=d[g]+h,v[1-p]+=c[m]/2-d[m]/2,l.x=v[0],l.y=v[1],u.x=f[0],u.y=f[1];var _={x:0,y:0};return _[g]=c[g]+h+d[g],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+v[1-p]),_}else return u.x=f[0],u.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=\\\"legend.plain\\\",t})(Ur);function UY(e,t,r,i,n,a,o){function s(g,m){g.lineWidth===\\\"auto\\\"&&(g.lineWidth=m.lineWidth>0?2:0),am(g,function(y,_){g[_]===\\\"inherit\\\"&&(g[_]=m[_])})}var u=t.getModel(\\\"itemStyle\\\"),l=u.getItemStyle(),c=e.lastIndexOf(\\\"empty\\\",0)===0?\\\"fill\\\":\\\"stroke\\\",f=u.getShallow(\\\"decal\\\");l.decal=!f||f===\\\"inherit\\\"?i.decal:Og(f,o),l.fill===\\\"inherit\\\"&&(l.fill=i[n]),l.stroke===\\\"inherit\\\"&&(l.stroke=i[c]),l.opacity===\\\"inherit\\\"&&(l.opacity=(n===\\\"fill\\\"?i:r).opacity),s(l,i);var d=t.getModel(\\\"lineStyle\\\"),v=d.getLineStyle();if(s(v,r),l.fill===\\\"auto\\\"&&(l.fill=i.fill),l.stroke===\\\"auto\\\"&&(l.stroke=i.fill),v.stroke===\\\"auto\\\"&&(v.stroke=i.fill),!a){var h=t.get(\\\"inactiveBorderWidth\\\"),p=l[c];l.lineWidth=h===\\\"auto\\\"?i.lineWidth>0&&p?2:0:l.lineWidth,l.fill=t.get(\\\"inactiveColor\\\"),l.stroke=t.get(\\\"inactiveBorderColor\\\"),v.stroke=d.get(\\\"inactiveColor\\\"),v.lineWidth=d.get(\\\"inactiveWidth\\\")}return{itemStyle:l,lineStyle:v}}function BY(e){var t=e.icon||\\\"roundRect\\\",r=ii(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(\\\"empty\\\")>-1&&(r.style.stroke=r.style.fill,r.style.fill=re.color.neutral00,r.style.lineWidth=2),r}function ET(e,t,r,i){sm(e,t,r,i),r.dispatchAction({type:\\\"legendToggleSelect\\\",name:e??t}),om(e,t,r,i)}function om(e,t,r,i){r.usingTHL()||r.dispatchAction({type:\\\"highlight\\\",seriesName:e,name:t,excludeSeriesId:i})}function sm(e,t,r,i){r.usingTHL()||r.dispatchAction({type:\\\"downplay\\\",seriesName:e,name:t,excludeSeriesId:i})}function ms(e,t,r){var i=e===\\\"allSelect\\\"||e===\\\"inverseSelect\\\",n={},a=[];r.eachComponent({mainType:\\\"legend\\\",query:t},function(s){i?s[e]():s[e](t.name),zT(s,n),a.push(s.componentIndex)});var o={};return r.eachComponent(\\\"legend\\\",function(s){C(n,function(u,l){s[u?\\\"select\\\":\\\"unSelect\\\"](l)}),zT(s,o)}),i?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function zT(e,t){var r=t||{};return C(e.getData(),function(i){var n=i.get(\\\"name\\\");if(!(n===`\\n`||n===\\\"\\\")){var a=e.isSelected(n);Nt(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function FY(e){e.registerAction(\\\"legendToggleSelect\\\",\\\"legendselectchanged\\\",He(ms,\\\"toggleSelected\\\")),e.registerAction(\\\"legendAllSelect\\\",\\\"legendselectall\\\",He(ms,\\\"allSelect\\\")),e.registerAction(\\\"legendInverseSelect\\\",\\\"legendinverseselect\\\",He(ms,\\\"inverseSelect\\\")),e.registerAction(\\\"legendSelect\\\",\\\"legendselected\\\",He(ms,\\\"select\\\")),e.registerAction(\\\"legendUnSelect\\\",\\\"legendunselected\\\",He(ms,\\\"unSelect\\\"))}var jY=k0(ZY);function ZY(e){var t=e.findComponents({mainType:\\\"legend\\\"});t&&t.length&&e.filterSeries(function(r){for(var i=0;i<t.length;i++)if(!t[i].isSelected(r.name))return!1;return!0})}function AO(e){e.registerComponentModel(im),e.registerComponentView(CO),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,jY),e.registerSubTypeDefaulter(\\\"legend\\\",function(){return\\\"plain\\\"}),FY(e)}var VY=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,i,n){var a=Cl(r);e.prototype.init.call(this,r,i,n),RT(this,r,a)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.call(this,r,i),RT(this,this.option,r)},t.type=\\\"legend.scroll\\\",t.defaultOption=CP(im.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:\\\"end\\\",pageFormatter:\\\"{current}/{total}\\\",pageIcons:{horizontal:[\\\"M0,0L12,-10L12,10z\\\",\\\"M0,0L-12,-10L-12,10z\\\"],vertical:[\\\"M0,0L20,0L10,-20z\\\",\\\"M0,0L20,0L10,20z\\\"]},pageIconColor:re.color.accent50,pageIconInactiveColor:re.color.accent10,pageIconSize:15,pageTextStyle:{color:re.color.tertiary},animationDurationUpdate:800}),t})(im);function RT(e,t,r){var i=e.getOrient(),n=[1,1];n[i.index]=0,ni(t,r,{type:\\\"box\\\",ignoreSize:!!n})}var NT=st,bp=[\\\"width\\\",\\\"height\\\"],Sp=[\\\"x\\\",\\\"y\\\"],GY=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new NT),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new NT)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,i,n,a,o,s,u){var l=this;e.prototype.renderInner.call(this,r,i,n,a,o,s,u);var c=this._controllerGroup,f=i.get(\\\"pageIconSize\\\",!0),d=G(f)?f:[f,f];h(\\\"pagePrev\\\",0);var v=i.getModel(\\\"pageTextStyle\\\");c.add(new Ct({name:\\\"pageText\\\",style:{text:\\\"xx/xx\\\",fill:v.getTextColor(),font:v.getFont(),verticalAlign:\\\"middle\\\",align:\\\"center\\\"},silent:!0})),h(\\\"pageNext\\\",1);function h(p,g){var m=p+\\\"DataIndex\\\",y=B0(i.get(\\\"pageIcons\\\",!0)[i.getOrient().name][g],{onclick:Fe(l._pageGo,l,m,i,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=p,c.add(y)}},t.prototype.layoutInner=function(r,i,n,a,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,c=bp[l],f=Sp[l],d=bp[1-l],v=Sp[1-l];o&&Rs(\\\"horizontal\\\",u,r.get(\\\"selectorItemGap\\\",!0));var h=r.get(\\\"selectorButtonGap\\\",!0),p=u.getBoundingRect(),g=[-p.x,-p.y],m=me(n);o&&(m[c]=n[c]-p[c]-h);var y=this._layoutContentAndController(r,a,m,l,c,d,v,f);if(o){if(s===\\\"end\\\")g[l]+=y[c]+h;else{var _=p[c]+h;g[l]-=_,y[f]-=_}y[c]+=p[c]+h,g[1-l]+=y[v]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[v]=Math.min(y[v],p[v]+g[1-l]),u.x=g[0],u.y=g[1],u.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,i,n,a,o,s,u,l){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Rs(r.get(\\\"orient\\\"),c,r.get(\\\"itemGap\\\"),a?n.width:null,a?null:n.height),Rs(\\\"horizontal\\\",d,r.get(\\\"pageButtonItemGap\\\",!0));var v=c.getBoundingRect(),h=d.getBoundingRect(),p=this._showController=v[o]>n[o],g=[-v.x,-v.y];i||(g[a]=c[l]);var m=[0,0],y=[-h.x,-h.y],_=J(r.get(\\\"pageButtonGap\\\",!0),r.get(\\\"itemGap\\\",!0));if(p){var b=r.get(\\\"pageButtonPosition\\\",!0);b===\\\"end\\\"?y[a]+=n[o]-h[o]:m[a]+=h[o]+_}y[1-a]+=v[s]/2-h[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var S={x:0,y:0};if(S[o]=p?n[o]:v[o],S[s]=Math.max(v[s],h[s]),S[u]=Math.min(0,h[u]+y[1-a]),f.__rectSize=n[o],p){var w={x:0,y:0};w[o]=Math.max(n[o]-h[o]-_,0),w[s]=S[s],f.setClipPath(new ot({shape:w})),f.__rectSize=w[o]}else d.eachChild(function(k){k.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&ut(c,{x:x.contentPosition[0],y:x.contentPosition[1]},p?r:null),this._updatePageInfoView(r,x),S},t.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:\\\"legendScroll\\\",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;C([\\\"pagePrev\\\",\\\"pageNext\\\"],function(c){var f=c+\\\"DataIndex\\\",d=i[f]!=null,v=n.childOfName(c);v&&(v.setStyle(\\\"fill\\\",d?r.get(\\\"pageIconColor\\\",!0):r.get(\\\"pageIconInactiveColor\\\",!0)),v.cursor=d?\\\"pointer\\\":\\\"default\\\")});var a=n.childOfName(\\\"pageText\\\"),o=r.get(\\\"pageFormatter\\\"),s=i.pageIndex,u=s!=null?s+1:0,l=i.pageCount;a&&o&&a.setStyle(\\\"text\\\",ee(o)?o.replace(\\\"{current}\\\",u==null?\\\"\\\":u+\\\"\\\").replace(\\\"{total}\\\",l==null?\\\"\\\":l+\\\"\\\"):o({current:u,total:l}))},t.prototype._getPageInfo=function(r){var i=r.get(\\\"scrollDataIndex\\\",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=bp[o],u=Sp[o],l=this._findTargetItemIndex(i),c=n.children(),f=c[l],d=c.length,v=d?1:0,h={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return h;var p=b(f);h.contentPosition[o]=-p.s;for(var g=l+1,m=p,y=p,_=null;g<=d;++g)_=b(c[g]),(!_&&y.e>m.s+a||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=m.i),++h.pageCount)),y=_;for(var g=l-1,m=p,y=p,_=null;g>=-1;--g)_=b(c[g]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,h.pagePrevDataIndex==null&&(h.pagePrevDataIndex=m.i),++h.pageCount,++h.pageIndex),m=_;return h;function b(w){if(w){var x=w.getBoundingRect(),k=x[u]+w[u];return{s:k,e:k+x[s],i:w.__legendDataIndex}}}function S(w,x){return w.e>=x&&w.s<=x+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===r&&(i=s)}),i??a},t.type=\\\"legend.scroll\\\",t})(CO);function HY(e){e.registerAction(\\\"legendScroll\\\",\\\"legendscroll\\\",function(t,r){var i=t.scrollDataIndex;i!=null&&r.eachComponent({mainType:\\\"legend\\\",subType:\\\"scroll\\\",query:t},function(n){n.setScrollDataIndex(i)})})}function WY(e){Mn(AO),e.registerComponentModel(VY),e.registerComponentView(GY),HY(e)}function qY(e){Mn(AO),Mn(WY)}function YY(){eq(XY)}function XY(e,t){C(e,function(r){if(!r.model.get([\\\"axisLabel\\\",\\\"inside\\\"])){var i=KY(r);if(i){var n=r.isHorizontal()?\\\"height\\\":\\\"width\\\",a=r.model.get([\\\"axisLabel\\\",\\\"margin\\\"]);t[n]-=i[n]+a,r.position===\\\"top\\\"?t.y+=i.height+a:r.position===\\\"left\\\"&&(t.x+=i.width+a)}}})}function KY(e){var t=e.model,r=e.scale;if(!t.get([\\\"axisLabel\\\",\\\"show\\\"])||r.isBlank())return;var i,n,a=r.getExtent();r instanceof kb?n=r.count():(i=r.getTicks(),n=i.length);var o=e.getLabelModel(),s=Al(e),u,l=1;n>40&&(l=Math.ceil(n/40));for(var c=0;c<n;c+=l){var f=i?i[c]:{value:a[0]+c},d=s(f,c),v=o.getTextRect(d),h=p(v,o.get(\\\"rotate\\\")||0);u?u.union(h):u=h}return u;function p(g,m){var y=m*Math.PI/180,_=g.width,b=g.height,S=_*Math.abs(Math.cos(y))+Math.abs(b*Math.sin(y)),w=_*Math.abs(Math.sin(y))+Math.abs(b*Math.cos(y)),x=new fe(g.x,g.y,S,w);return x}}var wp=Math.sin,xp=Math.cos,PO=Math.PI,zi=Math.PI*2,JY=180/PO,MO=(function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str=\\\"\\\",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add(\\\"M\\\",t,r)},e.prototype.lineTo=function(t,r){this._add(\\\"L\\\",t,r)},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){this._add(\\\"C\\\",t,r,i,n,a,o)},e.prototype.quadraticCurveTo=function(t,r,i,n){this._add(\\\"Q\\\",t,r,i,n)},e.prototype.arc=function(t,r,i,n,a,o){this.ellipse(t,r,i,i,0,n,a,o)},e.prototype.ellipse=function(t,r,i,n,a,o,s,u){var l=s-o,c=!u,f=Math.abs(l),d=Wn(f-zi)||(c?l>=zi:-l>=zi),v=l>0?l%zi:l%zi+zi,h=!1;d?h=!0:Wn(f)?h=!1:h=v>=PO==!!c;var p=t+i*xp(o),g=r+n*wp(o);this._start&&this._add(\\\"M\\\",p,g);var m=Math.round(a*JY);if(d){var y=1/this._p,_=(c?1:-1)*(zi-y);this._add(\\\"A\\\",i,n,m,1,+c,t+i*xp(o+_),r+n*wp(o+_)),y>.01&&this._add(\\\"A\\\",i,n,m,0,+c,p,g)}else{var b=t+i*xp(s),S=r+n*wp(s);this._add(\\\"A\\\",i,n,m,+h,+c,b,S)}},e.prototype.rect=function(t,r,i,n){this._add(\\\"M\\\",t,r),this._add(\\\"l\\\",i,0),this._add(\\\"l\\\",0,n),this._add(\\\"l\\\",-i,0),this._add(\\\"Z\\\")},e.prototype.closePath=function(){this._d.length>0&&this._add(\\\"Z\\\")},e.prototype._add=function(t,r,i,n,a,o,s,u,l){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var v=arguments[d];if(isNaN(v)){this._invalid=!0;return}c.push(Math.round(v*f)/f)}this._d.push(t+c.join(\\\" \\\")),this._start=t===\\\"Z\\\"},e.prototype.generateStr=function(){this._str=this._invalid?\\\"\\\":this._d.join(\\\"\\\"),this._d=[]},e.prototype.getStr=function(){return this._str},e})(),jb=\\\"none\\\",QY=Math.round;function e9(e){var t=e.fill;return t!=null&&t!==jb}function t9(e){var t=e.stroke;return t!=null&&t!==jb}var um=[\\\"lineCap\\\",\\\"miterLimit\\\",\\\"lineJoin\\\"],r9=Q(um,function(e){return\\\"stroke-\\\"+e.toLowerCase()});function n9(e,t,r,i){var n=t.opacity==null?1:t.opacity;if(r instanceof dn){e(\\\"opacity\\\",n);return}if(e9(t)){var a=Xs(t.fill);e(\\\"fill\\\",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*n:a.opacity*n;o<1&&e(\\\"fill-opacity\\\",o)}else e(\\\"fill\\\",jb);if(t9(t)){var s=Xs(t.stroke);e(\\\"stroke\\\",s.color);var u=t.strokeNoScale?r.getLineScale():1,l=u?(t.lineWidth||0)/u:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*n:s.opacity*n,f=t.strokeFirst;if(l!==1&&e(\\\"stroke-width\\\",l),f&&e(\\\"paint-order\\\",f?\\\"stroke\\\":\\\"fill\\\"),c<1&&e(\\\"stroke-opacity\\\",c),t.lineDash){var d=hb(r),v=d[0],h=d[1];v&&(h=QY(h||0),e(\\\"stroke-dasharray\\\",v.join(\\\",\\\")),(h||i)&&e(\\\"stroke-dashoffset\\\",h))}for(var p=0;p<um.length;p++){var g=um[p];if(t[g]!==_f[g]){var m=t[g]||_f[g];m&&e(r9[p],m)}}}}var LO=\\\"http://www.w3.org/2000/svg\\\",OO=\\\"http://www.w3.org/1999/xlink\\\",i9=\\\"http://www.w3.org/2000/xmlns/\\\",a9=\\\"http://www.w3.org/XML/1998/namespace\\\",UT=\\\"ecmeta_\\\";function EO(e){return document.createElementNS(LO,e)}function vt(e,t,r,i,n){return{tag:e,attrs:r||{},children:i,text:n,key:t}}function o9(e,t){var r=[];if(t)for(var i in t){var n=t[i],a=i;n!==!1&&(n!==!0&&n!=null&&(a+='=\\\"'+n+'\\\"'),r.push(a))}return\\\"<\\\"+e+\\\" \\\"+r.join(\\\" \\\")+\\\">\\\"}function s9(e){return\\\"</\\\"+e+\\\">\\\"}function Zb(e,t){t=t||{};var r=t.newline?`\\n`:\\\"\\\";function i(n){var a=n.children,o=n.tag,s=n.attrs,u=n.text;return o9(o,s)+(o!==\\\"style\\\"?Et(u):u||\\\"\\\")+(a?\\\"\\\"+r+Q(a,function(l){return i(l)}).join(r)+r:\\\"\\\")+s9(o)}return i(e)}function u9(e,t,r){r=r||{};var i=r.newline?`\\n`:\\\"\\\",n=\\\" {\\\"+i,a=i+\\\"}\\\",o=Q(Te(e),function(u){return u+n+Q(Te(e[u]),function(l){return l+\\\":\\\"+e[u][l]+\\\";\\\"}).join(i)+a}).join(i),s=Q(Te(t),function(u){return\\\"@keyframes \\\"+u+n+Q(Te(t[u]),function(l){return l+n+Q(Te(t[u][l]),function(c){var f=t[u][l][c];return c===\\\"d\\\"&&(f='path(\\\"'+f+'\\\")'),c+\\\":\\\"+f+\\\";\\\"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?\\\"\\\":[\\\"<![CDATA[\\\",o,s,\\\"]]>\\\"].join(i)}function lm(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function BT(e,t,r,i){return vt(\\\"svg\\\",\\\"root\\\",{width:e,height:t,xmlns:LO,\\\"xmlns:xlink\\\":OO,version:\\\"1.1\\\",baseProfile:\\\"full\\\",viewBox:i?\\\"0 0 \\\"+e+\\\" \\\"+t:!1},r)}var l9=0;function zO(){return l9++}var FT={cubicIn:\\\"0.32,0,0.67,0\\\",cubicOut:\\\"0.33,1,0.68,1\\\",cubicInOut:\\\"0.65,0,0.35,1\\\",quadraticIn:\\\"0.11,0,0.5,0\\\",quadraticOut:\\\"0.5,1,0.89,1\\\",quadraticInOut:\\\"0.45,0,0.55,1\\\",quarticIn:\\\"0.5,0,0.75,0\\\",quarticOut:\\\"0.25,1,0.5,1\\\",quarticInOut:\\\"0.76,0,0.24,1\\\",quinticIn:\\\"0.64,0,0.78,0\\\",quinticOut:\\\"0.22,1,0.36,1\\\",quinticInOut:\\\"0.83,0,0.17,1\\\",sinusoidalIn:\\\"0.12,0,0.39,0\\\",sinusoidalOut:\\\"0.61,1,0.88,1\\\",sinusoidalInOut:\\\"0.37,0,0.63,1\\\",exponentialIn:\\\"0.7,0,0.84,0\\\",exponentialOut:\\\"0.16,1,0.3,1\\\",exponentialInOut:\\\"0.87,0,0.13,1\\\",circularIn:\\\"0.55,0,1,0.45\\\",circularOut:\\\"0,0.55,0.45,1\\\",circularInOut:\\\"0.85,0,0.15,1\\\"},Ni=\\\"transform-origin\\\";function c9(e,t,r){var i=Z({},e.shape);Z(i,t),e.buildPath(r,i);var n=new MO;return n.reset(dA(e)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function f9(e,t){var r=t.originX,i=t.originY;(r||i)&&(e[Ni]=r+\\\"px \\\"+i+\\\"px\\\")}var d9={fill:\\\"fill\\\",opacity:\\\"opacity\\\",lineWidth:\\\"stroke-width\\\",lineDashOffset:\\\"stroke-dashoffset\\\"};function RO(e,t){var r=t.zrId+\\\"-ani-\\\"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function v9(e,t,r){var i=e.shape.paths,n={},a,o;if(C(i,function(u){var l=lm(r.zrId);l.animation=!0,Fv(u,{},l,!0);var c=l.cssAnims,f=l.cssNodes,d=Te(c),v=d.length;if(v){o=d[v-1];var h=c[o];for(var p in h){var g=h[p];n[p]=n[p]||{d:\\\"\\\"},n[p].d+=g.d||\\\"\\\"}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){t.d=!1;var s=RO(n,r);return a.replace(o,s)}}function jT(e){return ee(e)?FT[e]?\\\"cubic-bezier(\\\"+FT[e]+\\\")\\\":p0(e)?e:\\\"\\\":\\\"\\\"}function Fv(e,t,r,i){var n=e.animators,a=n.length,o=[];if(e instanceof hP){var s=v9(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var u={},l=0;l<a;l++){var c=n[l],f=[c.getMaxTime()/1e3+\\\"s\\\"],d=jT(c.getClip().easing),v=c.getDelay();d?f.push(d):f.push(\\\"linear\\\"),v&&f.push(v/1e3+\\\"s\\\"),c.getLoop()&&f.push(\\\"infinite\\\");var h=f.join(\\\" \\\");u[h]=u[h]||[h,[]],u[h][1].push(c)}function p(y){var _=y[1],b=_.length,S={},w={},x={},k=\\\"animation-timing-function\\\";function T(Je,Ie,Ye){for(var oe=Je.getTracks(),_e=Je.getMaxTime(),Bt=0;Bt<oe.length;Bt++){var tt=oe[Bt];if(tt.needsAnimate()){var kr=tt.keyframes,Ft=tt.propName;if(Ye&&(Ft=Ye(Ft)),Ft)for(var Ir=0;Ir<kr.length;Ir++){var ya=kr[Ir],$r=Math.round(ya.time/_e*100)+\\\"%\\\",Ll=jT(ya.easing),_a=ya.rawValue;(ee(_a)||Re(_a))&&(Ie[$r]=Ie[$r]||{},Ie[$r][Ft]=ya.rawValue,Ll&&(Ie[$r][k]=Ll))}}}}for(var I=0;I<b;I++){var $=_[I],A=$.targetName;A?A===\\\"shape\\\"&&T($,w):!i&&T($,S)}for(var D in S){var P={};Ks(P,e),Z(P,S[D]);var z=vA(P),R=S[D][k];x[D]=z?{transform:z}:{},f9(x[D],P),R&&(x[D][k]=R)}var F,N=!0;for(var D in w){x[D]=x[D]||{};var j=!F,R=w[D][k];j&&(F=new An);var H=F.len();F.reset(),x[D].d=c9(e,w[D],F);var W=F.len();if(!j&&H!==W){N=!1;break}R&&(x[D][k]=R)}if(!N)for(var D in x)delete x[D].d;if(!i)for(var I=0;I<b;I++){var $=_[I],A=$.targetName;A===\\\"style\\\"&&T($,x,function(oe){return d9[oe]})}for(var q=Te(x),te=!0,K,I=1;I<q.length;I++){var ce=q[I-1],ye=q[I];if(x[ce][Ni]!==x[ye][Ni]){te=!1;break}K=x[ce][Ni]}if(te&&K){for(var D in x)x[D][Ni]&&delete x[D][Ni];t[Ni]=K}if(at(q,function(Je){return Te(x[Je]).length>0}).length){var et=RO(x,r);return et+\\\" \\\"+y[0]+\\\" both\\\"}}for(var g in u){var s=p(u[g]);s&&o.push(s)}if(o.length){var m=r.zrId+\\\"-cls-\\\"+zO();r.cssNodes[\\\".\\\"+m]={animation:o.join(\\\",\\\")},t.class=m}}function h9(e,t,r){if(!e.ignore)if(e.isSilent()){var i={\\\"pointer-events\\\":\\\"none\\\"};ZT(i,t,r)}else{var n=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=n.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,u=e.currentStates.indexOf(\\\"select\\\")>=0&&s||o;u&&(a=qp(u))}var l=n.lineWidth;if(l){var c=!n.strokeNoScale&&e.transform?e.transform[0]:1;l=l/c}var i={cursor:\\\"pointer\\\"};a&&(i.fill=a),n.stroke&&(i.stroke=n.stroke),l&&(i[\\\"stroke-width\\\"]=l),ZT(i,t,r)}}function ZT(e,t,r,i){var n=JSON.stringify(e),a=r.cssStyleCache[n];a||(a=r.zrId+\\\"-cls-\\\"+zO(),r.cssStyleCache[n]=a,r.cssNodes[\\\".\\\"+a+\\\":hover\\\"]=e),t.class=t.class?t.class+\\\" \\\"+a:a}var gu=Math.round;function NO(e){return e&&ee(e.src)}function UO(e){return e&&le(e.toDataURL)}function Vb(e,t,r,i){n9(function(n,a){var o=n===\\\"fill\\\"||n===\\\"stroke\\\";o&&fA(a)?FO(t,e,n,i):o&&g0(a)?jO(r,e,n,i):e[n]=a,o&&i.ssr&&a===\\\"none\\\"&&(e[\\\"pointer-events\\\"]=\\\"visible\\\")},t,r,!1),S9(r,e,i)}function Gb(e,t){var r=k6(t);r&&(r.each(function(i,n){i!=null&&(e[(UT+n).toLowerCase()]=i+\\\"\\\")}),t.isSilent()&&(e[UT+\\\"silent\\\"]=\\\"true\\\"))}function VT(e){return Wn(e[0]-1)&&Wn(e[1])&&Wn(e[2])&&Wn(e[3]-1)}function p9(e){return Wn(e[4])&&Wn(e[5])}function Hb(e,t,r){if(t&&!(p9(t)&&VT(t))){var i=1e4;e.transform=VT(t)?\\\"translate(\\\"+gu(t[4]*i)/i+\\\" \\\"+gu(t[5]*i)/i+\\\")\\\":HU(t)}}function GT(e,t,r){for(var i=e.points,n=[],a=0;a<i.length;a++)n.push(gu(i[a][0]*r)/r),n.push(gu(i[a][1]*r)/r);t.points=n.join(\\\" \\\")}function HT(e){return!e.smooth}function g9(e){var t=Q(e,function(r){return typeof r==\\\"string\\\"?[r,r]:r});return function(r,i,n){for(var a=0;a<t.length;a++){var o=t[a],s=r[o[0]];s!=null&&(i[o[1]]=gu(s*n)/n)}}}var m9={circle:[g9([\\\"cx\\\",\\\"cy\\\",\\\"r\\\"])],polyline:[GT,HT],polygon:[GT,HT]};function y9(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName===\\\"shape\\\")return!0;return!1}function BO(e,t){var r=e.style,i=e.shape,n=m9[e.type],a={},o=t.animation,s=\\\"path\\\",u=e.style.strokePercent,l=t.compress&&dA(e)||4;if(n&&!t.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&y9(e))&&!(u<1)){s=e.type;var c=Math.pow(10,l);n[0](i,a,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;f&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var v=d.getVersion(),h=e,p=h.__svgPathBuilder;(h.__svgPathVersion!==v||!p||u!==h.__svgPathStrokePercent)&&(p||(p=h.__svgPathBuilder=new MO),p.reset(l),d.rebuildPath(p,u),p.generateStr(),h.__svgPathVersion=v,h.__svgPathStrokePercent=u),a.d=p.getStr()}return Hb(a,e.transform),Vb(a,r,e,t),Gb(a,e),t.animation&&Fv(e,a,t),t.emphasis&&h9(e,a,t),vt(s,e.id+\\\"\\\",a)}function _9(e,t){var r=e.style,i=r.image;if(i&&!ee(i)&&(NO(i)?i=i.src:UO(i)&&(i=i.toDataURL())),!!i){var n=r.x||0,a=r.y||0,o=r.width,s=r.height,u={href:i,width:o,height:s};return n&&(u.x=n),a&&(u.y=a),Hb(u,e.transform),Vb(u,r,e,t),Gb(u,e),t.animation&&Fv(e,u,t),vt(\\\"image\\\",e.id+\\\"\\\",u)}}function b9(e,t){var r=e.style,i=r.text;if(i!=null&&(i+=\\\"\\\"),!(!i||isNaN(r.x)||isNaN(r.y))){var n=r.font||$n,a=r.x||0,o=qU(r.y||0,xl(n),r.textBaseline),s=WU[r.textAlign]||r.textAlign,u={\\\"dominant-baseline\\\":\\\"central\\\",\\\"text-anchor\\\":s};if(qA(r)){var l=\\\"\\\",c=r.fontStyle,f=WA(r.fontSize);if(!parseFloat(f))return;var d=r.fontFamily||UC,v=r.fontWeight;l+=\\\"font-size:\\\"+f+\\\";font-family:\\\"+d+\\\";\\\",c&&c!==\\\"normal\\\"&&(l+=\\\"font-style:\\\"+c+\\\";\\\"),v&&v!==\\\"normal\\\"&&(l+=\\\"font-weight:\\\"+v+\\\";\\\"),u.style=l}else u.style=\\\"font: \\\"+n;return i.match(/\\\\s/)&&(u[\\\"xml:space\\\"]=\\\"preserve\\\"),a&&(u.x=a),o&&(u.y=o),Hb(u,e.transform),Vb(u,r,e,t),Gb(u,e),t.animation&&Fv(e,u,t),vt(\\\"text\\\",e.id+\\\"\\\",u,void 0,i)}}function WT(e,t){if(e instanceof Pe)return BO(e,t);if(e instanceof dn)return _9(e,t);if(e instanceof nu)return b9(e,t)}function S9(e,t,r){var i=e.style;if(YU(i)){var n=XU(e),a=r.shadowCache,o=a[n];if(!o){var s=e.getGlobalScale(),u=s[0],l=s[1];if(!u||!l)return;var c=i.shadowOffsetX||0,f=i.shadowOffsetY||0,d=i.shadowBlur,v=Xs(i.shadowColor),h=v.opacity,p=v.color,g=d/2/u,m=d/2/l,y=g+\\\" \\\"+m;o=r.zrId+\\\"-s\\\"+r.shadowIdx++,r.defs[o]=vt(\\\"filter\\\",o,{id:o,x:\\\"-100%\\\",y:\\\"-100%\\\",width:\\\"300%\\\",height:\\\"300%\\\"},[vt(\\\"feDropShadow\\\",\\\"\\\",{dx:c/u,dy:f/l,stdDeviation:y,\\\"flood-color\\\":p,\\\"flood-opacity\\\":h})]),a[n]=o}t.filter=cv(o)}}function FO(e,t,r,i){var n=e[r],a,o={gradientUnits:n.global?\\\"userSpaceOnUse\\\":\\\"objectBoundingBox\\\"};if(lA(n))a=\\\"linearGradient\\\",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(cA(n))a=\\\"radialGradient\\\",o.cx=J(n.x,.5),o.cy=J(n.y,.5),o.r=J(n.r,.5);else return;for(var s=n.colorStops,u=[],l=0,c=s.length;l<c;++l){var f=Yp(s[l].offset)*100+\\\"%\\\",d=s[l].color,v=Xs(d),h=v.color,p=v.opacity,g={offset:f};g[\\\"stop-color\\\"]=h,p<1&&(g[\\\"stop-opacity\\\"]=p),u.push(vt(\\\"stop\\\",l+\\\"\\\",g))}var m=vt(a,\\\"\\\",o,u),y=Zb(m),_=i.gradientCache,b=_[y];b||(b=i.zrId+\\\"-g\\\"+i.gradientIdx++,_[y]=b,o.id=b,i.defs[b]=vt(a,b,o,u)),t[r]=cv(b)}function jO(e,t,r,i){var n=e.style[r],a=e.getBoundingRect(),o={},s=n.repeat,u=s===\\\"no-repeat\\\",l=s===\\\"repeat-x\\\",c=s===\\\"repeat-y\\\",f;if(uA(n)){var d=n.imageWidth,v=n.imageHeight,h=void 0,p=n.image;if(ee(p)?h=p:NO(p)?h=p.src:UO(p)&&(h=p.toDataURL()),typeof Image>\\\"u\\\"){var g=\\\"Image width/height must been given explictly in svg-ssr renderer.\\\";Nr(d,g),Nr(v,g)}else if(d==null||v==null){var m=function(I,$){if(I){var A=I.elm,D=d||$.width,P=v||$.height;I.tag===\\\"pattern\\\"&&(l?(P=1,D/=a.width):c&&(D=1,P/=a.height)),I.attrs.width=D,I.attrs.height=P,A&&(A.setAttribute(\\\"width\\\",D),A.setAttribute(\\\"height\\\",P))}},y=$0(h,null,e,function(I){u||m(w,I),m(f,I)});y&&y.width&&y.height&&(d=d||y.width,v=v||y.height)}f=vt(\\\"image\\\",\\\"img\\\",{href:h,width:d,height:v}),o.width=d,o.height=v}else n.svgElement&&(f=me(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(f){var _,b;u?_=b=1:l?(b=1,_=o.width/a.width):c?(_=1,b=o.height/a.height):o.patternUnits=\\\"userSpaceOnUse\\\",_!=null&&!isNaN(_)&&(o.width=_),b!=null&&!isNaN(b)&&(o.height=b);var S=vA(n);S&&(o.patternTransform=S);var w=vt(\\\"pattern\\\",\\\"\\\",o,[f]),x=Zb(w),k=i.patternCache,T=k[x];T||(T=i.zrId+\\\"-p\\\"+i.patternIdx++,k[x]=T,o.id=T,w=i.defs[T]=vt(\\\"pattern\\\",T,o,[f])),t[r]=cv(T)}}function w9(e,t,r){var i=r.clipPathCache,n=r.defs,a=i[e.id];if(!a){a=r.zrId+\\\"-c\\\"+r.clipPathIdx++;var o={id:a};i[e.id]=a,n[a]=vt(\\\"clipPath\\\",a,o,[BO(e,r)])}t[\\\"clip-path\\\"]=cv(a)}function qT(e){return document.createTextNode(e)}function Bi(e,t,r){e.insertBefore(t,r)}function YT(e,t){e.removeChild(t)}function XT(e,t){e.appendChild(t)}function ZO(e){return e.parentNode}function VO(e){return e.nextSibling}function Tp(e,t){e.textContent=t}var KT=58,x9=120,T9=vt(\\\"\\\",\\\"\\\");function cm(e){return e===void 0}function Kr(e){return e!==void 0}function k9(e,t,r){for(var i={},n=t;n<=r;++n){var a=e[n].key;a!==void 0&&(i[a]=n)}return i}function Ds(e,t){var r=e.key===t.key,i=e.tag===t.tag;return i&&r}function mu(e){var t,r=e.children,i=e.tag;if(Kr(i)){var n=e.elm=EO(i);if(Wb(T9,e),G(r))for(t=0;t<r.length;++t){var a=r[t];a!=null&&XT(n,mu(a))}else Kr(e.text)&&!ne(e.text)&&XT(n,qT(e.text))}else e.elm=qT(e.text);return e.elm}function GO(e,t,r,i,n){for(;i<=n;++i){var a=r[i];a!=null&&Bi(e,mu(a),t)}}function Wf(e,t,r,i){for(;r<=i;++r){var n=t[r];if(n!=null)if(Kr(n.tag)){var a=ZO(n.elm);YT(a,n.elm)}else YT(e,n.elm)}}function Wb(e,t){var r,i=t.elm,n=e&&e.attrs||{},a=t.attrs||{};if(n!==a){for(r in a){var o=a[r],s=n[r];s!==o&&(o===!0?i.setAttribute(r,\\\"\\\"):o===!1?i.removeAttribute(r):r===\\\"style\\\"?i.style.cssText=o:r.charCodeAt(0)!==x9?i.setAttribute(r,o):r===\\\"xmlns:xlink\\\"||r===\\\"xmlns\\\"?i.setAttributeNS(i9,r,o):r.charCodeAt(3)===KT?i.setAttributeNS(a9,r,o):r.charCodeAt(5)===KT?i.setAttributeNS(OO,r,o):i.setAttribute(r,o))}for(r in n)r in a||i.removeAttribute(r)}}function I9(e,t,r){for(var i=0,n=0,a=t.length-1,o=t[0],s=t[a],u=r.length-1,l=r[0],c=r[u],f,d,v,h;i<=a&&n<=u;)o==null?o=t[++i]:s==null?s=t[--a]:l==null?l=r[++n]:c==null?c=r[--u]:Ds(o,l)?(Ua(o,l),o=t[++i],l=r[++n]):Ds(s,c)?(Ua(s,c),s=t[--a],c=r[--u]):Ds(o,c)?(Ua(o,c),Bi(e,o.elm,VO(s.elm)),o=t[++i],c=r[--u]):Ds(s,l)?(Ua(s,l),Bi(e,s.elm,o.elm),s=t[--a],l=r[++n]):(cm(f)&&(f=k9(t,i,a)),d=f[l.key],cm(d)?Bi(e,mu(l),o.elm):(v=t[d],v.tag!==l.tag?Bi(e,mu(l),o.elm):(Ua(v,l),t[d]=void 0,Bi(e,v.elm,o.elm))),l=r[++n]);(i<=a||n<=u)&&(i>a?(h=r[u+1]==null?null:r[u+1].elm,GO(e,h,r,n,u)):Wf(e,t,i,a))}function Ua(e,t){var r=t.elm=e.elm,i=e.children,n=t.children;e!==t&&(Wb(e,t),cm(t.text)?Kr(i)&&Kr(n)?i!==n&&I9(r,i,n):Kr(n)?(Kr(e.text)&&Tp(r,\\\"\\\"),GO(r,null,n,0,n.length-1)):Kr(i)?Wf(r,i,0,i.length-1):Kr(e.text)&&Tp(r,\\\"\\\"):e.text!==t.text&&(Kr(i)&&Wf(r,i,0,i.length-1),Tp(r,t.text)))}function $9(e,t){if(Ds(e,t))Ua(e,t);else{var r=e.elm,i=ZO(r);mu(t),i!==null&&(Bi(i,t.elm,VO(r)),Wf(i,[e],0,0))}return t}var D9=0,C9=(function(){function e(t,r,i){if(this.type=\\\"svg\\\",this.configLayer=A9(),this.storage=r,this._opts=i=Z({},i),this.root=t,this._id=\\\"zr\\\"+D9++,this._oldVNode=BT(i.width,i.height),t&&!i.ssr){var n=this._viewport=document.createElement(\\\"div\\\");n.style.cssText=\\\"position:relative;overflow:hidden\\\";var a=this._svgDom=this._oldVNode.elm=EO(\\\"svg\\\");Wb(null,this._oldVNode),n.appendChild(a),t.appendChild(n)}this.resize(i.width,i.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style=\\\"position:absolute;left:0;top:0;user-select:none\\\",$9(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return WT(t,lm(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=lm(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=P9(i,n,this._backgroundColor,a);s&&o.push(s);var u=t.compress?null:this._mainVNode=vt(\\\"g\\\",\\\"main\\\",{},[]);this._paintList(r,a,u?u.children:o),u&&o.push(u);var l=Q(Te(a.defs),function(d){return a.defs[d]});if(l.length&&o.push(vt(\\\"defs\\\",\\\"defs\\\",{},l)),t.animation){var c=u9(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=vt(\\\"style\\\",\\\"stl\\\",{},[],c);o.push(f)}}return BT(i,n,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},Zb(this.renderToVNode({animation:J(t.cssAnimation,!0),emphasis:J(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:J(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,i){for(var n=t.length,a=[],o=0,s,u,l=0,c=0;c<n;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,v=d&&d.length||0,h=u&&u.length||0,p=void 0;for(p=Math.max(v-1,h-1);p>=0&&!(d&&u&&d[p]===u[p]);p--);for(var g=h-1;g>p;g--)o--,s=a[o-1];for(var m=p+1;m<v;m++){var y={};w9(d[m],y,r);var _=vt(\\\"g\\\",\\\"clip-g-\\\"+l++,y,[]);(s?s.children:i).push(_),a[o++]=_,s=_}u=d;var b=WT(f,r);b&&(s?s.children:i).push(b)}}},e.prototype.resize=function(t,r){var i=this._opts,n=this.root,a=this._viewport;if(t!=null&&(i.width=t),r!=null&&(i.height=r),n&&a&&(a.style.display=\\\"none\\\",t=B1(n,0,i),r=B1(n,1,i),a.style.display=\\\"\\\"),this._width!==t||this._height!==r){if(this._width=t,this._height=r,a){var o=a.style;o.width=t+\\\"px\\\",o.height=r+\\\"px\\\"}if(g0(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute(\\\"width\\\",t),s.setAttribute(\\\"height\\\",r));var u=this._bgVNode&&this._bgVNode.elm;u&&(u.setAttribute(\\\"width\\\",t),u.setAttribute(\\\"height\\\",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=\\\"\\\"),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),i=\\\"data:image/svg+xml;\\\";return t?(r=JU(r),r&&i+\\\"base64,\\\"+r):i+\\\"charset=UTF-8,\\\"+encodeURIComponent(r)},e})();function A9(e){return function(){}}function P9(e,t,r,i){var n;if(r&&r!==\\\"none\\\")if(n=vt(\\\"rect\\\",\\\"bg\\\",{width:e,height:t,x:\\\"0\\\",y:\\\"0\\\"}),fA(r))FO({fill:r},n.attrs,\\\"fill\\\",i);else if(g0(r))jO({style:{fill:r},dirty:_t,getBoundingRect:function(){return{width:e,height:t}}},n.attrs,\\\"fill\\\",i);else{var a=Xs(r),o=a.color,s=a.opacity;n.attrs.fill=o,s<1&&(n.attrs[\\\"fill-opacity\\\"]=s)}return n}function M9(e){e.registerPainter(\\\"svg\\\",C9)}Mn([IW,I3,RW,mq,Pq,iY,TY,qY,RY,r3,YY,M9]);const L9=[\\\"#5b5bd6\\\",\\\"#0ea5e9\\\",\\\"#10b981\\\",\\\"#f59e0b\\\",\\\"#ef4444\\\",\\\"#8b5cf6\\\",\\\"#ec4899\\\",\\\"#14b8a6\\\"];function HO(e,t,r){const i={axisLine:{lineStyle:{color:r}},axisTick:{show:!1},axisLabel:{color:t},splitLine:{lineStyle:{color:r}}};return{color:L9,backgroundColor:\\\"transparent\\\",textStyle:{color:e,fontFamily:'ui-sans-serif, system-ui, -apple-system, \\\"Segoe UI\\\", Roboto, sans-serif'},title:{textStyle:{color:e}},categoryAxis:{...i,splitLine:{show:!1}},valueAxis:i,legend:{textStyle:{color:t}},tooltip:{backgroundColor:e===\\\"#1a1a1a\\\"?\\\"#ffffff\\\":\\\"#1f1f1f\\\",borderColor:r,textStyle:{color:e===\\\"#1a1a1a\\\"?\\\"#1a1a1a\\\":\\\"#fafafa\\\"}}}}Rv(\\\"bonnard-light\\\",HO(\\\"#1a1a1a\\\",\\\"#6b7280\\\",\\\"#e5e7eb\\\"));Rv(\\\"bonnard-dark\\\",HO(\\\"#fafafa\\\",\\\"#9ca3af\\\",\\\"#2a2a2a\\\"));const O9=e=>e===\\\"dark\\\"?\\\"bonnard-dark\\\":\\\"bonnard-light\\\",Vt=e=>String(e).replace(/[&<>\\\"]/g,t=>({\\\"&\\\":\\\"&\\\",\\\"<\\\":\\\"<\\\",\\\">\\\":\\\">\\\",'\\\"':\\\""\\\"})[t]);function zr(e,t,r,i,n=!0){const a=Number(e);if(e==null||Number.isNaN(a))return e==null?\\\"\\\":String(e);if(t===\\\"percent\\\")return`${(i??Math.abs(a)<=1?a*100:a).toFixed(1)}%`;const o=l=>l.toLocaleString(\\\"en-US\\\",{maximumFractionDigits:2}),s=l=>Math.abs(l)>=1e6?`${(l/1e6).toFixed(1)}M`:Math.abs(l)>=1e3?`${(l/1e3).toFixed(1)}K`:String(Number.isInteger(l)?l:l.toFixed(2)),u=n?s:o;return t===\\\"currency\\\"?`${r===\\\"USD\\\"||!r?\\\"$\\\":r+\\\" \\\"}${u(a)}`:n?Number.isInteger(a)?a.toLocaleString():s(a):o(a)}function E9(e,t){if(!t)return String(e);let r=String(e);/^\\\\d{4}-\\\\d{2}-\\\\d{2}T/.test(r)&&!r.endsWith(\\\"Z\\\")&&!/[+-]\\\\d{2}:\\\\d{2}$/.test(r)?r+=\\\"Z\\\":/^\\\\d{4}-\\\\d{2}-\\\\d{2}$/.test(r)&&(r+=\\\"T00:00:00.000Z\\\");const i=new Date(r);if(Number.isNaN(i.getTime()))return String(e);const n=String(i.getUTCFullYear()).slice(-2);switch(t){case\\\"year\\\":return String(i.getUTCFullYear());case\\\"quarter\\\":return`Q${Math.floor(i.getUTCMonth()/3)+1} ${n}`;case\\\"month\\\":return i.toLocaleDateString(\\\"en-US\\\",{month:\\\"short\\\",year:\\\"2-digit\\\",timeZone:\\\"UTC\\\"});default:return i.toLocaleDateString(\\\"en-US\\\",{day:\\\"numeric\\\",month:\\\"short\\\",timeZone:\\\"UTC\\\"})}}function z9(e){switch(e.chartType){case\\\"pie\\\":return B9(e);case\\\"scatter\\\":return R9(e);case\\\"funnel\\\":return N9(e);case\\\"waterfall\\\":return U9(e);case\\\"line\\\":return kp(e,\\\"line\\\",!1);case\\\"area\\\":return kp(e,\\\"line\\\",!0);default:return kp(e,\\\"bar\\\",!1)}}function R9(e){var f,d,v;const t=h=>{var p,g,m;return zr(h,(p=e.xAxis)==null?void 0:p.format,(g=e.xAxis)==null?void 0:g.currency,(m=e.xAxis)==null?void 0:m.fraction)},r=h=>{var p,g,m;return zr(h,(p=e.yAxis)==null?void 0:p.format,(g=e.yAxis)==null?void 0:g.currency,(m=e.yAxis)==null?void 0:m.fraction)},i=e.size,n=e.pointLabel,a=e.series.length>1,o=((f=e.yAxis)==null?void 0:f.label)??(a?\\\"value\\\":((d=e.series[0])==null?void 0:d.label)??\\\"value\\\"),s=i?e.data.map(h=>Number(h[i])||0):[],u=s.length?Math.max(...s):0,l=i?h=>10+(u?h[2]/u*38:0):11,c=h=>e.data.filter(p=>p[h]!=null&&p[h]!==\\\"\\\").map(p=>[Number(p[e.x]),Number(p[h]),i?Number(p[i])||0:null,n?p[n]:null]);return{grid:{left:8,right:24,top:16,bottom:a?48:32,containLabel:!0},...a&&{legend:{bottom:0,type:\\\"scroll\\\"}},tooltip:{trigger:\\\"item\\\",formatter:h=>{var _,b,S;const p=h.data,g=a?`${Vt(h.seriesName)}<br/>`:\\\"\\\",m=p[3]!=null?`${Vt(p[3])}<br/>`:\\\"\\\",y=i?`<br/>${Vt(((b=(_=e.columns)==null?void 0:_.find(w=>w.key===i))==null?void 0:b.label)??i)}: ${zr(p[2])}`:\\\"\\\";return`${g}${m}${Vt(((S=e.xAxis)==null?void 0:S.label)??e.x)}: ${t(p[0])}<br/>${Vt(o)}: ${r(p[1])}${y}`}},xAxis:{type:\\\"value\\\",...((v=e.xAxis)==null?void 0:v.label)&&{name:e.xAxis.label,nameLocation:\\\"middle\\\",nameGap:26},axisLabel:{formatter:h=>t(h)},axisLine:{onZero:!1},splitLine:{show:!0}},yAxis:{type:\\\"value\\\",axisLabel:{formatter:h=>r(h)}},series:e.series.map(h=>({name:h.label,type:\\\"scatter\\\",symbolSize:l,itemStyle:{opacity:.8},emphasis:{focus:\\\"self\\\"},data:c(h.key)}))}}function kp(e,t,r){var S,w,x,k;const i=!!e.yAxisRight,n=!i&&(e.stacking===\\\"stacked\\\"||e.stacking===\\\"stacked100\\\"),a=!i&&e.stacking===\\\"stacked100\\\",o=a?\\\"percent\\\":(S=e.yAxis)==null?void 0:S.format,s=(w=e.yAxis)==null?void 0:w.currency,u=T=>{var I;return zr(T,o,s,a?!1:(I=e.yAxis)==null?void 0:I.fraction)},l=T=>{var I,$,A;return zr(T,(I=e.yAxisRight)==null?void 0:I.format,($=e.yAxisRight)==null?void 0:$.currency,(A=e.yAxisRight)==null?void 0:A.fraction)},c=t===\\\"line\\\"&&!n&&!!((x=e.xAxis)!=null&&x.numeric),f=e.data.map(T=>{var I;return E9(T[e.x],(I=e.xAxis)==null?void 0:I.granularity)}),d=e.series.filter(T=>T.type!==\\\"line\\\").map(T=>T.key),v=e.data.map(T=>d.reduce((I,$)=>I+(Number(T[$])||0),0)),h=e.series.map(T=>{const I=T.axis===\\\"right\\\",$=I?\\\"line\\\":T.type??t,A=e.data.map(P=>P[T.key]),D=a?A.map((P,z)=>{const R=Number(P)||0;return{value:v[z]?+(R/v[z]*100).toFixed(2):0,raw:R}}):c?A.map((P,z)=>[Number(e.data[z][e.x]),P==null?null:Number(P)||0]):A.map(P=>P==null?null:Number(P)||0);return{name:T.label,type:$,yAxisIndex:I?1:0,...n&&!I&&!($===\\\"line\\\"&&t===\\\"bar\\\")?{stack:\\\"total\\\"}:{},...$===\\\"line\\\"?{symbolSize:6,showSymbol:e.data.length<=60}:{barMaxWidth:48},...r&&$===\\\"line\\\"&&!I?{areaStyle:{opacity:n?.85:.18}}:{},emphasis:{focus:\\\"series\\\"},tooltip:{valueFormatter:I?l:u},data:D}}),p={type:\\\"value\\\",...a?{max:100,axisLabel:{formatter:T=>`${T}%`}}:{axisLabel:{formatter:u}}},g={type:\\\"value\\\",axisLabel:{formatter:l},splitLine:{show:!1}},m={type:\\\"category\\\",data:f,boundaryGap:t===\\\"bar\\\",axisLine:{onZero:!1},axisLabel:{hideOverlap:!0}},y={type:\\\"value\\\",axisLabel:{formatter:T=>{var I;return zr(T,(I=e.xAxis)==null?void 0:I.format)}},axisLine:{onZero:!1}},_=!i&&!!e.horizontal&&t===\\\"bar\\\",b=_?{...m,inverse:!0}:i?[p,g]:p;if((k=e.reference)!=null&&k.length&&h[0]){const T=_?\\\"xAxis\\\":\\\"yAxis\\\",I=_?\\\"end\\\":\\\"insideEndTop\\\",$=_?\\\"start\\\":\\\"insideStartTop\\\";h[0].markLine={symbol:\\\"none\\\",lineStyle:{type:\\\"dashed\\\"},label:{rotate:0,formatter:\\\"{b}\\\",fontSize:11},data:e.reference.map((A,D)=>({[T]:A.value,name:`${A.label}: ${u(A.value)}`,label:{position:D%2?$:I}}))}}return{grid:{left:8,right:16,top:16,bottom:e.legend?28:8,containLabel:!0},legend:e.legend?{bottom:0,type:\\\"scroll\\\",icon:\\\"roundRect\\\"}:void 0,tooltip:{trigger:\\\"axis\\\",axisPointer:{type:t===\\\"bar\\\"?\\\"shadow\\\":\\\"line\\\"},...a?{formatter:T=>{var D;const I=Array.isArray(T)?T:[T],$=Vt(((D=I[0])==null?void 0:D.axisValueLabel)??\\\"\\\"),A=I.map(P=>{var z,R,F;return`${P.marker}${Vt(P.seriesName)}: ${zr((z=P.data)==null?void 0:z.raw,(R=e.yAxis)==null?void 0:R.format,s,(F=e.yAxis)==null?void 0:F.fraction)} (${P.value}%)`}).join(\\\"<br/>\\\");return`${$}<br/>${A}`}}:{}},xAxis:_?p:c?y:m,yAxis:b,series:h}}function N9(e){var a,o;const t=((a=e.series[0])==null?void 0:a.key)??\\\"\\\",r=(o=e.columns)==null?void 0:o.find(s=>s.key===t),i=s=>zr(s,r==null?void 0:r.format,r==null?void 0:r.currency,r==null?void 0:r.fraction),n=e.data.map(s=>({name:String(s[e.x]),value:Number(s[t])||0}));return{tooltip:{trigger:\\\"item\\\",formatter:s=>`${s.marker}${Vt(s.name)}: ${i(s.value)} (${s.percent}%)`},series:[{type:\\\"funnel\\\",left:\\\"6%\\\",right:\\\"6%\\\",top:10,bottom:10,gap:2,sort:\\\"descending\\\",minSize:\\\"6%\\\",maxSize:\\\"100%\\\",label:{show:!0,position:\\\"inside\\\",formatter:\\\"{b} {c}\\\"},labelLine:{show:!1},emphasis:{label:{fontWeight:\\\"bold\\\"}},data:n}]}}function U9(e){var d,v;const t=((d=e.series[0])==null?void 0:d.key)??\\\"\\\",r=(v=e.columns)==null?void 0:v.find(h=>h.key===t),i=h=>zr(h,r==null?void 0:r.format,r==null?void 0:r.currency,r==null?void 0:r.fraction),n=new Set(e.totals??[]),a=e.data.map(h=>String(h[e.x])),o=\\\"#10b981\\\",s=\\\"#ef4444\\\",u=\\\"#6b7280\\\",l=[],c=[];let f=0;for(const h of e.data){const p=Number(h[t])||0;n.has(String(h[e.x]))?(l.push(0),c.push({value:p,itemStyle:{color:u}}),f=p):p>=0?(l.push(f),c.push({value:p,itemStyle:{color:o}}),f+=p):(f+=p,l.push(f),c.push({value:-p,itemStyle:{color:s}}))}return{grid:{left:8,right:16,top:16,bottom:8,containLabel:!0},tooltip:{trigger:\\\"item\\\",formatter:h=>{const p=e.data[h.dataIndex];return`${Vt(p==null?void 0:p[e.x])}: ${i(Number(p==null?void 0:p[t]))}`}},xAxis:{type:\\\"category\\\",data:a,axisLine:{onZero:!1},axisLabel:{hideOverlap:!0}},yAxis:{type:\\\"value\\\",axisLabel:{formatter:h=>i(h)}},series:[{type:\\\"bar\\\",stack:\\\"wf\\\",itemStyle:{color:\\\"transparent\\\"},emphasis:{disabled:!0},silent:!0,data:l},{type:\\\"bar\\\",stack:\\\"wf\\\",barMaxWidth:48,data:c,label:{show:e.data.length<=12,position:\\\"top\\\",fontSize:10,formatter:h=>{var p;return i(Number((p=e.data[h.dataIndex])==null?void 0:p[t]))}}}]}}function B9(e){var a,o,s;const t=((a=e.series[0])==null?void 0:a.key)??\\\"\\\",r=(o=e.yAxis)==null?void 0:o.currency,i=(s=e.yAxis)==null?void 0:s.format,n=e.data.map(u=>({name:String(u[e.x]),value:Number(u[t])||0}));return{legend:{bottom:0,type:\\\"scroll\\\",icon:\\\"roundRect\\\"},tooltip:{trigger:\\\"item\\\",formatter:u=>{var l;return`${u.marker}${Vt(u.name)}: ${zr(u.value,i,r,(l=e.yAxis)==null?void 0:l.fraction)} (${u.percent}%)`}},series:[{type:\\\"pie\\\",radius:[\\\"45%\\\",\\\"70%\\\"],center:[\\\"50%\\\",\\\"46%\\\"],minShowLabelAngle:6,label:{formatter:\\\"{b}: {d}%\\\"},labelLine:{length:8,length2:8},data:n}]}}function F9(e){var n;const t=(n=e.columns)!=null&&n.length?e.columns:Object.keys(e.data[0]??{}).map(a=>({key:a,label:a})),r=t.map(a=>`<th>${Vt(a.label)}</th>`).join(\\\"\\\"),i=e.data.map(a=>`<tr>${t.map(o=>`<td>${Vt(zr(a[o.key],o.format,o.currency,o.fraction,!1))}</td>`).join(\\\"\\\")}</tr>`).join(\\\"\\\");return`<table class=\\\"tbl\\\"><thead><tr>${r}</tr></thead><tbody>${i}</tbody></table>`}const qf=document.getElementById(\\\"root\\\");let Lr=null,Ha=null,ef=\\\"light\\\",fm=null;function j9(e){return!!e&&typeof e==\\\"object\\\"&&Array.isArray(e.data)}function dm(){Ha==null||Ha.disconnect(),Ha=null,Lr==null||Lr.dispose(),Lr=null}function WO(e,t){j9(e)?(fm=e,qO(e)):t?(dm(),qf.innerHTML=`<pre class=\\\"fallback\\\">${Vt(t)}</pre>`):(dm(),qf.innerHTML='<div class=\\\"empty\\\">Waiting for chart data…</div>')}function qO(e){if(dm(),e.chartType===\\\"table\\\"){qf.innerHTML=F9(e);return}const t=e.title?`<div class=\\\"title\\\">${Vt(e.title)}</div>`:\\\"\\\";qf.innerHTML=`${t}<div class=\\\"ec\\\" id=\\\"ec\\\"></div>`;const r=document.getElementById(\\\"ec\\\");Lr=GV(r,O9(ef),{renderer:\\\"svg\\\"}),Lr.setOption(z9(e)),Ha=new ResizeObserver(()=>Lr==null?void 0:Lr.resize()),Ha.observe(r)}function Z9(){var r,i,n;const e=(r=window.openai)==null?void 0:r.theme;if(e===\\\"light\\\"||e===\\\"dark\\\")return e;const t=(i=jv.getHostContext())==null?void 0:i.theme;return t===\\\"dark\\\"||t===\\\"light\\\"?t:(n=window.matchMedia)!=null&&n.call(window,\\\"(prefers-color-scheme: dark)\\\").matches?\\\"dark\\\":\\\"light\\\"}function V9(e){e===ef&&Lr||(ef=e,document.documentElement.dataset.theme=ef,Lr&&fm&&qO(fm))}const Ml=()=>V9(Z9()),jv=new Pp({name:\\\"Bonnard Chart\\\",version:\\\"0.1.0\\\"});jv.ontoolresult=e=>{var r,i;const t=(i=(r=e.content)==null?void 0:r.find(n=>n.type===\\\"text\\\"))==null?void 0:i.text;WO(e.structuredContent,t)};jv.onhostcontextchanged=()=>Ml();document.addEventListener(\\\"openai:set_globals\\\",e=>{var t,r;(r=(t=e.detail)==null?void 0:t.globals)!=null&&r.theme&&Ml()});var JT,QT,ek;(ek=(JT=window.matchMedia)==null?void 0:(QT=JT.call(window,\\\"(prefers-color-scheme: dark)\\\")).addEventListener)==null||ek.call(QT,\\\"change\\\",Ml);WO(void 0);Ml();jv.connect().then(Ml).catch(e=>{console.warn(\\\"MCP Apps host not detected:\\\",e)});</script>\\n </head>\\n <body>\\n <div id=\\\"root\\\"></div>\\n </body>\\n</html>\\n\";\n"],"mappings":";;;;;;;;AAGO,SAAS,gBAAgB,QAAgC;AAC9D,MAAI,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,MAAM,EAAG,QAAO;AAClD,MAAI,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,WAAW,EAAG,QAAO;AACvD,SAAO;AACT;;;ACDO,SAAS,UACd,MACA,MACA,UACA,UAC8E;AAC9E,QAAM,aAAuB,CAAC;AAC9B,QAAM,OAAO,oBAAI,IAAY;AAE7B,aAAW,OAAO,MAAM;AACtB,UAAM,MAAM,IAAI,QAAQ;AACxB,UAAM,aAAa,OAAO,QAAQ,QAAQ,KAAK,eAAe,OAAO,GAAG;AACxE,QAAI,CAAC,KAAK,IAAI,UAAU,GAAG;AACzB,WAAK,IAAI,UAAU;AACnB,iBAAW,KAAK,UAAU;AAAA,IAC5B;AAAA,EACF;AAKA,QAAM,SAAS,oBAAI,IAAqC;AACxD,MAAI,YAAY;AAChB,aAAW,OAAO,MAAM;AACtB,UAAM,SAAS,OAAO,IAAI,IAAI,KAAK,EAAE;AACrC,UAAM,MAAM,IAAI,QAAQ;AACxB,UAAM,aAAa,OAAO,QAAQ,QAAQ,KAAK,eAAe,OAAO,GAAG;AACxE,QAAI,CAAC,OAAO,IAAI,MAAM,EAAG,QAAO,IAAI,QAAQ,EAAE,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;AACjE,UAAM,QAAQ,OAAO,IAAI,MAAM;AAG/B,QAAI,OAAO,OAAO,OAAO,UAAU,GAAG;AACpC;AACA,YAAM,UAAU,KAAK,OAAO,MAAM,UAAU,CAAC,KAAK,MAAM,OAAO,IAAI,QAAQ,CAAC,KAAK;AAAA,IACnF,OAAO;AACL,YAAM,UAAU,IAAI,IAAI,QAAQ;AAAA,IAClC;AAAA,EACF;AAEA,SAAO,EAAE,MAAM,MAAM,KAAK,OAAO,OAAO,CAAC,GAAG,YAAY,UAAU;AACpE;;;ACzCO,SAAS,yBACd,MACA,MACA,aACA,aAC2B;AAC3B,MAAI,KAAK,SAAS,EAAG,QAAO;AAE5B,QAAM,UAA4B,CAAC;AACnC,aAAW,OAAO,MAAM;AACtB,UAAM,OAAO,SAAS,OAAO,IAAI,IAAI,CAAC,CAAC;AACvC,QAAI,KAAM,SAAQ,KAAK,EAAE,KAAK,CAAC;AAAA,EACjC;AACA,MAAI,QAAQ,SAAS,EAAG,QAAO;AAE/B,UAAQ,KAAK,CAAC,GAAG,MAAM,EAAE,KAAK,QAAQ,IAAI,EAAE,KAAK,QAAQ,CAAC;AAC1D,QAAM,MAAM,QAAQ,CAAC,EAAG;AACxB,QAAM,MAAM,QAAQ,QAAQ,SAAS,CAAC,EAAG;AACzC,QAAM,WAAW,iBAAiB,KAAK,KAAK,WAAW;AAKvD,QAAM,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,eAAe,GAAG,IAAI,YAAY,GAAG,IAAI,WAAW,CAAC,CAAC;AAC3F,QAAM,MAAM,CAAC,MAAY,QAAQ,GAAG,aAAa,MAAM;AACvD,QAAM,WAAW,oBAAI,IAAuC;AAC5D,QAAM,UAAU,oBAAI,IAA6B;AACjD,aAAW,OAAO,MAAM;AACtB,UAAM,OAAO,SAAS,OAAO,IAAI,IAAI,CAAC,CAAC;AACvC,QAAI,CAAC,KAAM;AACX,UAAM,IAAI,IAAI,IAAI;AAClB,UAAM,OAAO,SAAS,IAAI,CAAC,KAAK,CAAC;AACjC,SAAK,KAAK,GAAG;AACb,aAAS,IAAI,GAAG,IAAI;AAAA,EACtB;AAEA,QAAM,SAAoC,CAAC;AAC3C,aAAW,QAAQ,UAAU;AAC3B,UAAM,QAAQ,SAAS,IAAI,IAAI,IAAI,CAAC;AACpC,QAAI,OAAO;AACT,iBAAW,OAAO,OAAO;AACvB,eAAO,KAAK,GAAG;AACf,gBAAQ,IAAI,GAAG;AAAA,MACjB;AAAA,IACF,OAAO;AACL,YAAM,UAAmC,EAAE,CAAC,IAAI,GAAG,SAAS,IAAI,EAAE;AAClE,iBAAW,MAAM,YAAa,SAAQ,EAAE,IAAI;AAC5C,aAAO,KAAK,OAAO;AAAA,IACrB;AAAA,EACF;AAGA,aAAW,OAAO,KAAM,KAAI,CAAC,QAAQ,IAAI,GAAG,EAAG,QAAO,KAAK,GAAG;AAC9D,SAAO;AACT;AAEA,SAAS,SAAS,KAA0B;AAC1C,MAAI,IAAI,IAAI,KAAK;AACjB,MAAI,iCAAiC,KAAK,CAAC,EAAG,KAAI,EAAE,QAAQ,KAAK,GAAG;AACpE,MAAI,sBAAsB,KAAK,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC,mBAAmB,KAAK,CAAC,GAAG;AACpF,SAAK;AAAA,EACP,WAAW,sBAAsB,KAAK,CAAC,GAAG;AACxC,SAAK;AAAA,EACP;AACA,QAAM,IAAI,IAAI,KAAK,CAAC;AACpB,SAAO,MAAM,EAAE,QAAQ,CAAC,IAAI,OAAO;AACrC;AAEA,IAAM,UAAU,IAAI;AAIpB,SAAS,QAAQ,GAAS,aAA8B,QAAsB;AAC5E,QAAM,IAAI,EAAE,eAAe;AAC3B,UAAQ,aAAa;AAAA,IACnB,KAAK;AACH,aAAO,OAAO,CAAC;AAAA,IACjB,KAAK;AACH,aAAO,GAAG,CAAC,KAAK,KAAK,MAAM,EAAE,YAAY,IAAI,CAAC,IAAI,CAAC;AAAA,IACrD,KAAK;AACH,aAAO,GAAG,CAAC,IAAI,IAAI,EAAE,YAAY,IAAI,CAAC,CAAC;AAAA,IACzC,KAAK;AACH,aAAO,IAAI,KAAK,OAAO,EAAE,QAAQ,IAAI,OAAO,QAAQ,KAAK,OAAO,CAAC;AAAA,IACnE;AACE,aAAO,GAAG,CAAC,IAAI,IAAI,EAAE,YAAY,IAAI,CAAC,CAAC,IAAI,IAAI,EAAE,WAAW,CAAC,CAAC;AAAA,EAClE;AACF;AAEA,SAAS,SAAS,GAAiB;AACjC,SAAO,GAAG,EAAE,eAAe,CAAC,IAAI,IAAI,EAAE,YAAY,IAAI,CAAC,CAAC,IAAI,IAAI,EAAE,WAAW,CAAC,CAAC;AACjF;AAEA,SAAS,IAAI,GAAmB;AAC9B,SAAO,IAAI,KAAK,IAAI,CAAC,KAAK,OAAO,CAAC;AACpC;AAEA,SAAS,iBAAiB,OAAa,KAAW,aAAsC;AACtF,QAAM,QAAgB,CAAC;AACvB,QAAM,UAAU,IAAI,QAAQ;AAC5B,QAAM,gBAAgB;AACtB,MAAI,IAAI,MAAM,eAAe;AAC7B,MAAI,IAAI,MAAM,YAAY;AAC1B,MAAI,IAAI,MAAM,WAAW;AAEzB,SAAO,MAAM,SAAS,eAAe;AACnC,UAAM,UAAU,IAAI,KAAK,KAAK,IAAI,GAAG,GAAG,CAAC,CAAC;AAC1C,QAAI,QAAQ,QAAQ,IAAI,QAAS;AACjC,UAAM,KAAK,OAAO;AAClB,YAAQ,aAAa;AAAA,MACnB,KAAK;AACH,aAAK;AACL;AAAA,MACF,KAAK;AACH,aAAK;AACL;AAAA,MACF,KAAK;AACH,aAAK;AACL,YAAI;AACJ;AAAA,MACF,KAAK;AACH,aAAK;AACL,YAAI;AACJ;AAAA,MACF,KAAK;AACH,aAAK;AACL;AAAA,MACF;AACE,aAAK;AACL;AAAA,IACJ;AAAA,EACF;AACA,SAAO;AACT;;;ACtHA,IAAM,gCAAgC;AACtC,IAAM,iBAAiB;AACvB,IAAM,mBAAmB;AACzB,IAAM,WAAW;AACjB,IAAM,aAAa;AACnB,IAAM,aAAa;AACnB,IAAM,eAAe;AAIrB,SAAS,gBAAgB,MAAiC,MAAyB;AACjF,MAAI,MAAM;AACV,aAAW,KAAK,MAAM;AACpB,eAAW,KAAK,MAAM;AACpB,YAAM,IAAI,EAAE,CAAC;AACb,UAAI,KAAK,KAAM;AACf,YAAM,IAAI,OAAO,CAAC;AAClB,UAAI,OAAO,SAAS,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,IAAK,OAAM,KAAK,IAAI,CAAC;AAAA,IAC/D;AAAA,EACF;AACA,SAAO,OAAO,KAAK,OAAO;AAC5B;AAEO,SAAS,QAAQ,MAAiB,OAAuB,CAAC,GAAc;AAC7E,QAAM,SAAS,KAAK,UAAU,CAAC;AAC/B,QAAM,SAAS,YAAY,IAAI;AAC/B,QAAM,SAAS,IAAI,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAIrD,QAAM,aAAa,CAAC,MAA2B,KAAK,OAAO,CAAC,IAAI,MAAM,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC;AACzF,QAAM,cAAc;AAAA,IAClB,GAAG,IAAI;AAAA,MACL,CAAC,OAAO,GAAG,GAAG,WAAW,OAAO,CAAC,GAAG,OAAO,QAAQ,GAAG,WAAW,OAAO,EAAE,GAAG,GAAG,WAAW,OAAO,IAAI,GAAG,OAAO,IAAI,EAAE;AAAA,QACpH,CAAC,MAAmB,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;AAAA,MAC1C;AAAA,IACF;AAAA,EACF;AACA,MAAI,YAAY,QAAQ;AACtB,SAAK,QAAQ;AAAA,MACX,gCAAgC,YAAY,SAAS,IAAI,MAAM,EAAE,IAAI,YAAY,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC,gBAAgB,OAAO,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;AAAA,MACpK,GAAI,KAAK,SAAS,CAAC;AAAA,IACrB;AAAA,EACF;AAIA,QAAM,YAAY,KAAK,cAAc;AAMrC,MACE,CAAC,aACD,CAAC,OAAO,KACR,KAAK,KAAK,SAAS,KACnB,OAAO,UAAU,KACjB,OAAO,MAAM,CAAC,MAAM,EAAE,SAAS,SAAS,GACxC;AACA,UAAM,WAAW,CAAC,MAAc,IAAI,IAAI,KAAK,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;AACpE,QAAI,OAAO,OAAO,CAAC;AACnB,eAAW,KAAK,OAAQ,KAAI,SAAS,EAAE,IAAI,IAAI,SAAS,KAAK,IAAI,EAAG,QAAO;AAC3E,SAAK,OAAO;AAAA,EACd;AAGA,QAAM,eAAe,IAAI,IAAI,OAAO,OAAO,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC;AAC1F,MAAI,OAAkC,KAAK,KAAK,IAAI,CAAC,QAAQ;AAC3D,UAAM,MAA+B,EAAE,GAAG,IAAI;AAC9C,eAAW,KAAK,OAAO,KAAK,GAAG,GAAG;AAChC,UAAI,aAAa,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,MAAM;AACzC,cAAM,IAAI,OAAO,IAAI,CAAC,CAAC;AACvB,YAAI,CAAC,OAAO,MAAM,CAAC,EAAG,KAAI,CAAC,IAAI;AAAA,MACjC;AAAA,IACF;AACA,WAAO;AAAA,EACT,CAAC;AAGD,MAAI,UAAW,QAAO,UAAU,eAAe,MAAM,QAAQ,QAAQ,IAAI,GAAG,KAAK,KAAK;AAEtF,MAAI,KAAK,cAAc,SAAU,QAAO,UAAU,cAAc,MAAM,QAAQ,QAAQ,IAAI,GAAG,KAAK,KAAK;AAEvG,MAAI,KAAK,cAAc,YAAa,QAAO,UAAU,iBAAiB,MAAM,QAAQ,QAAQ,IAAI,GAAG,KAAK,KAAK;AAG7G,QAAM,YAAY,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,MAAM;AACtD,QAAM,WAAW,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,WAAW;AAC1D,QAAM,SAAgC,OAAO,IAAI,OAAO,IAAI,OAAO,CAAC,IAAK,aAAa;AACtF,QAAM,IAAI,QAAQ,QAAQ;AAI1B,QAAM,UAAU,OAAO,KAAM,MAAM,QAAQ,OAAO,EAAE,IAAI,OAAO,KAAK,CAAC,OAAO,EAAE,IAAK,CAAC;AACpF,QAAM,UACJ,OAAO,IACH,MAAM,QAAQ,OAAO,CAAC,IACpB,OAAO,IACP,CAAC,OAAO,CAAC,IACX,OAAO,OAAO,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,SAAS,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,GAChF,OAAO,CAAC,MAAM,CAAC,QAAQ,SAAS,CAAC,CAAC;AAEpC,MAAI,YAAY,CAAC,KAAK,aAAa,KAAK,cAAc,SAAS,gBAAgB,MAAM,IAAI,KAAK;AAG9F,MAAI,CAAC,KAAK,cAAc,QAAS,aAAY;AAK7C,MAAI,cAAc,SAAS;AACzB,WAAO;AAAA,MACL,WAAW;AAAA,MACX,MAAM;AAAA,MACN,GAAG;AAAA,MACH,QAAQ,CAAC;AAAA,MACT,QAAQ;AAAA,MACR,GAAI,KAAK,OAAO,UAAU,EAAE,OAAO,KAAK,MAAM;AAAA,MAC9C,GAAI,KAAK,SAAS,EAAE,OAAO,KAAK,MAAM;AAAA,MACtC,SAAS,OAAO,IAAI,CAAC,OAAO;AAAA,QAC1B,KAAK,EAAE;AAAA,QACP,OAAO,EAAE,SAAS,EAAE;AAAA,QACpB,GAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO;AAAA,QACnC,GAAI,EAAE,WAAW,aAAa,EAAE,UAAU,gBAAgB,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE;AAAA,QAC1E,GAAI,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS;AAAA,QACzC,GAAI,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY;AAAA,MACpD,EAAE;AAAA,IACJ;AAAA,EACF;AAGA,MAAI,GAAG;AACL,UAAM,SAAS,QAAQ,SAAS;AAChC,QAAI,WAAW,KAAK,SAAS;AAC7B,eAAW,OAAO,MAAM;AACtB,YAAM,IAAI,IAAI,CAAC;AACf,UAAI,KAAK,QAAQ,MAAM,GAAI,KAAI,CAAC,IAAI;AAAA,WAC/B;AACH,mBAAW;AACX,YAAI,OAAQ,KAAI,CAAC,IAAI,MAAM,QAAQ,MAAM,SAAS,QAAQ;AAAA,MAC5D;AAAA,IACF;AAEA,QAAI,SAAU,OAAM,IAAI,MAAM,WAAW,CAAC,0DAAqD;AAAA,EACjG;AAGA,QAAM,WACJ,OAAO,WACN,aAAa,YAAY,SAAS,SAAS,KAAK,SAAS,SAAS,WAAW,SAAS,OAAO;AAEhG,QAAM,QAAkB,CAAC,GAAI,KAAK,SAAS,CAAC,CAAE;AAC9C,MAAI;AACJ,MAAI;AACJ,MAAI,YAAY,OAAO,WAAW,GAAG;AACnC,UAAM,SAAS,UAAU,MAAM,GAAG,UAAU,OAAO,CAAC,CAAE;AACtD,WAAO,OAAO;AACd,aAAS,OAAO,WAAW,IAAI,CAAC,SAAS,EAAE,KAAK,OAAO,IAAI,EAAE;AAC7D,QAAI,OAAO,YAAY;AACrB,YAAM;AAAA,QACJ,UAAU,OAAO,SAAS,gCAAgC,CAAC,MAAM,QAAQ;AAAA,MAC3E;AAEF,QAAI,QAAQ,SAAS;AACnB,YAAM;AAAA,QACJ,6BAA6B,QAAQ,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC,2DAA2D,QAAQ;AAAA,MACzI;AAGF,QAAI,OAAO,SAAS,YAAY;AAC9B,YAAM,QAAQ,CAAC,QAAgB,KAAK,OAAO,CAAC,GAAG,MAAM,KAAK,OAAO,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;AACjF,YAAM,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,GAAG,MAAM,MAAM,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,aAAa,CAAC;AACzF,YAAM,WAAW,IAAI,IAAI,KAAK,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC;AAC/C,iBAAW,KAAK,MAAM;AACpB,YAAI,QAAQ;AACZ,mBAAW,KAAK,UAAU;AACxB,mBAAS,OAAO,EAAE,CAAC,CAAC,KAAK;AACzB,iBAAO,EAAE,CAAC;AAAA,QACZ;AACA,UAAE,QAAQ;AAAA,MACZ;AACA,eAAS,CAAC,GAAG,OAAO,OAAO,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,GAAG,CAAC,GAAG,EAAE,KAAK,SAAS,OAAO,QAAQ,CAAC;AACzF,YAAM,KAAK,WAAW,KAAK,MAAM,+BAA+B;AAAA,IAClE;AAAA,EACF,OAAO;AAGL,UAAM,YAAY,OAAO,OAAQ,MAAM,QAAQ,OAAO,IAAI,IAAI,OAAO,OAAO,CAAC,OAAO,IAAI,IAAK,CAAC;AAC9F,aAAS,OAAO,IAAI,CAAC,SAAS;AAAA,MAC5B;AAAA,MACA,OAAO,OAAO,IAAI,GAAG,GAAG,SAAS;AAAA,MACjC,GAAI,UAAU,SAAS,GAAG,KAAK,EAAE,MAAM,OAAgB;AAAA,IACzD,EAAE;AAGF,eAAW,OAAO,WAAW;AAC3B,UAAI,OAAO,SAAS,GAAG,KAAK,QAAQ,SAAS,GAAG,KAAK,CAAC,OAAO,IAAI,GAAG,EAAG;AACvE,aAAO,KAAK,EAAE,KAAK,OAAO,OAAO,IAAI,GAAG,GAAG,SAAS,KAAK,MAAM,OAAO,CAAC;AAAA,IACzE;AACA,eAAW,OAAO,QAAS,QAAO,KAAK,EAAE,KAAK,OAAO,OAAO,IAAI,GAAG,GAAG,SAAS,KAAK,MAAM,QAAQ,CAAC;AACnG,QAAI,QAAQ,SAAS,GAAG;AACtB,YAAM,IAAI,OAAO,IAAI,QAAQ,CAAC,CAAE;AAChC,mBAAa;AAAA,QACX,GAAI,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM;AAAA,QACjC,GAAI,GAAG,UAAU,EAAE,QAAQ,EAAE,OAAO;AAAA,QACpC,GAAI,GAAG,YAAY,EAAE,UAAU,EAAE,SAAS;AAAA,MAC5C;AAAA,IACF;AAGA,QAAI,KAAK,OAAO,SAAS,GAAG;AAC1B,YAAM,MAAM;AAAA,QACV;AAAA,QACA;AAAA,QACA,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG;AAAA,MACzB;AACA,aAAO,IAAI;AACX,UAAI,IAAI,YAAY,GAAG;AACrB,cAAM,KAAK,UAAU,IAAI,SAAS,gCAAgC,CAAC,uCAAkC;AAErG,cAAM,WAAW,OAAO,OAAO,CAAC,MAAM,OAAO,IAAI,EAAE,GAAG,GAAG,WAAW,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG;AAC/F,YAAI,SAAS;AACX,gBAAM;AAAA,YACJ,GAAG,SAAS,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC;AAAA,UAC7C;AAAA,MACJ;AAAA,IACF;AAAA,EACF;AAIA,MAAI,KAAK,cAAc,MAAO,QAAO,YAAY,MAAM,GAAG,MAAM;AAGhE,MAAI,QAAQ,SAAS,UAAU,OAAO,eAAe,GAAG;AACtD,WAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG;AAAA,MACvB,OAAO;AAAA,IACT;AAAA,EACF;AAKA,MAAI,cAAc,SAAS,OAAO,SAAS,KAAK,KAAK,SAAS,UAAU;AACtE,UAAM,UAAU,KAAK;AACrB,UAAM,QAAQ,CAAC,MAA+B,OAAO,OAAO,CAAC,GAAG,MAAM,KAAK,OAAO,EAAE,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;AACpG,UAAM,OAAO,IAAI,IAAI,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,MAAM,MAAM,CAAC,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;AACrF,WAAO,KAAK,OAAO,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC;AACrC,UAAM,KAAK,mBAAmB,KAAK,MAAM,OAAO,OAAO,uBAAuB;AAAA,EAChF;AAIA,OAAK,cAAc,UAAU,cAAc,WAAW,KAAK,SAAS,YAAY;AAC9E,UAAM,UAAU,KAAK;AACrB,UAAM,OAAO,KAAK,KAAK,UAAU,UAAU;AAC3C,UAAM,UAAU,KAAK,OAAO,CAAC,GAAG,MAAM,IAAI,SAAS,CAAC;AACpD,QAAI,QAAQ,QAAQ,SAAS,CAAC,MAAM,KAAK,UAAU,CAAC,EAAG,SAAQ,KAAK,KAAK,UAAU,CAAC,CAAE;AACtF,WAAO;AACP,UAAM,KAAK,eAAe,OAAO,cAAc,KAAK,MAAM,eAAe;AAAA,EAC3E;AAIA,OAAK,KAAK,aAAa,aAAa,KAAK,aAAa,iBAAiB,OAAO,SAAS,GAAG;AACxF,eAAW,OAAO,KAAM,YAAW,KAAK,OAAQ,KAAI,IAAI,EAAE,GAAG,KAAK,KAAM,KAAI,EAAE,GAAG,IAAI;AAAA,EACvF;AAMA,MAAI,cAAc,SAAS,OAAO,SAAS,GAAG;AAC5C,UAAM,IAAI,OAAO,CAAC,EAAG;AAErB,QAAI,CAAC,KAAK,KAAK,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG;AACvC,YAAM,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,KAAK,QAAQ,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC;AAC/D,aAAO,IAAI,IAAI,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,CAAC,GAAG,KAAK,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;AAC7D,UAAI,KAAK,SAAS,EAAG,OAAM,KAAK,2DAAsD;AAAA,IACxF,OAAO;AACL,aAAO,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,KAAK,QAAQ,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC;AAAA,IAC5D;AACA,WAAO,KAAK,KAAK,CAAC,GAAG,OAAO,OAAO,EAAE,CAAC,CAAC,KAAK,MAAM,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE;AACpE,UAAM,QAAQ,KAAK,OAAO,CAAC,KAAK,MAAM,OAAO,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC;AAClE,UAAM,UAAU,CAAC,GAA4B,MAC3C,KAAK,iBAAiB,KAAM,QAAQ,MAAM,OAAO,EAAE,CAAC,CAAC,KAAK,KAAK,QAAQ;AACzE,UAAM,QAAQ,KAAK,OAAO,OAAO;AACjC,QAAI,MAAM,SAAS,GAAG;AACpB,YAAM,OAAO,KAAK,OAAO,CAAC,GAAG,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAC;AACjD,YAAM,QAAQ,MAAM,OAAO,CAAC,KAAK,MAAM,OAAO,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC;AACnE,aAAO,CAAC,GAAG,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC;AAC7C,YAAM,KAAK,WAAW,MAAM,MAAM,6BAA6B;AAAA,IACjE;AAAA,EACF;AAGA,QAAM,eAAe,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE;AAC/C,QAAM,QAAQ;AAAA,IACZ,GAAI,OAAO,WAAW,KAAK,EAAE,OAAO,OAAO,CAAC,EAAG,MAAM;AAAA,IACrD,GAAI,cAAc,UAAU,EAAE,QAAQ,aAAa,OAAO;AAAA,IAC1D,GAAI,cAAc,WAAW,aAAa;AAAA,MACxC,UAAU;AAAA,QACR;AAAA,QACA,OAAO,OAAO,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG;AAAA,MAC3D;AAAA,IACF;AAAA,IACA,GAAI,cAAc,YAAY,EAAE,UAAU,aAAa,SAAS;AAAA,EAClE;AACA,MAAI,YAAY,WAAW,UAAW,YAAW,WAAW,gBAAgB,MAAM,OAAO;AACzF,QAAM,QAAQ;AAAA,IACZ,GAAI,UAAU,EAAE,OAAO,OAAO,MAAM;AAAA,IACpC,GAAI,QAAQ,eAAe,EAAE,aAAa,OAAO,YAAY;AAAA;AAAA;AAAA,IAG7D,GAAI,QAAQ,SAAS,YAAY,EAAE,SAAS,KAAK;AAAA,EACnD;AAKA,QAAM,eAAe,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,MAAM;AACzD,MAAI,aAAa,KAAK;AACtB,MACE,cAAc,QACd,cAAc,SACd,QAAQ,SAAS,YACjB,KAAK,SAAS,+BACd;AACA,iBAAa;AAAA,EACf;AAGA,MAAI,aAAc,cAAa;AAE/B,QAAM,UAAU,aAAa,GAAG,QAAQ,QAAQ,QAAQ,IAAI;AAG5D,QAAM,YAA6B,CAAC;AACpC,MAAI,KAAK,WAAW;AAClB,UAAM,UAAU,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,OAAO,KAAK,OAAO,CAAC;AAClE,QAAI,KAAK,UAAU,WAAW,SAAS;AACrC,YAAM,OAAO,KAAK,IAAI,CAAC,MAAM,OAAO,EAAE,QAAQ,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AACrF,UAAI,KAAK;AACP,kBAAU,KAAK;AAAA,UACb,OAAO,KAAK,MAAO,KAAK,OAAO,CAAC,GAAG,MAAM,IAAI,GAAG,CAAC,IAAI,KAAK,SAAU,GAAG,IAAI;AAAA,UAC3E,OAAO;AAAA,QACT,CAAC;AAAA,IACL;AACA,QAAI,KAAK,UAAU,UAAU,KAAM,WAAU,KAAK,EAAE,OAAO,KAAK,UAAU,QAAQ,OAAO,SAAS,CAAC;AAAA,EACrG;AAEA,SAAO;AAAA,IACL;AAAA,IACA,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA,GAAI,UAAU,SAAS,KAAK,EAAE,UAAU;AAAA,IACxC,GAAI,OAAO,KAAK,KAAK,EAAE,SAAS,KAAK,EAAE,MAAM;AAAA,IAC7C,GAAI,OAAO,KAAK,KAAK,EAAE,SAAS,KAAK,EAAE,MAAM;AAAA,IAC7C,GAAI,cAAc,OAAO,KAAK,UAAU,EAAE,SAAS,KAAK,EAAE,WAAW;AAAA,IACrE,QAAQ,OAAO,SAAS;AAAA,IACxB,GAAI,KAAK,YAAY,EAAE,UAAU,KAAK,SAAS;AAAA,IAC/C,GAAI,cAAc,QAAQ,EAAE,WAAW;AAAA,IACvC,GAAI,KAAK,SAAS,EAAE,OAAO,KAAK,MAAM;AAAA,IACtC;AAAA,IACA,GAAI,MAAM,SAAS,KAAK,EAAE,MAAM;AAAA,EAClC;AACF;AAIA,SAAS,UAAU,MAAiB,OAA6B;AAC/D,SAAO,OAAO,SAAS,EAAE,GAAG,MAAM,OAAO,CAAC,GAAG,OAAO,GAAI,KAAK,SAAS,CAAC,CAAE,EAAE,IAAI;AACjF;AAIA,SAAS,eACP,MACA,QACA,QACA,MACW;AACX,QAAM,SAAS,IAAI,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACrD,QAAM,WAAW,OAAO,OAAO,CAAC,MAAM,EAAE,SAAS,SAAS;AAC1D,QAAM,OAAO,MAAM,QAAQ,OAAO,CAAC,IAAI,OAAO,EAAE,CAAC,IAAI,OAAO;AAC5D,QAAM,IAAI,OAAO,KAAK,SAAS,CAAC,GAAG;AACnC,QAAM,IAAI,QAAQ,SAAS,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG;AACtD,MAAI,CAAC,KAAK,CAAC,GAAG;AACZ,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,QAAM,SAAS,OAAO,IAAI,CAAC;AAC3B,QAAM,SAAS,OAAO,IAAI,CAAC;AAC3B,QAAM,QAAQ,CAAC,MAAkB,GAAG,SAAS;AAC7C,MAAI,CAAC,MAAM,MAAM,KAAK,CAAC,MAAM,MAAM,GAAG;AACpC,UAAM,IAAI,MAAM,2CAA2C,CAAC,SAAS,CAAC,mBAAmB;AAAA,EAC3F;AACA,QAAM,OAAO,OAAO,QAAQ,OAAO,IAAI,OAAO,IAAI,GAAG,SAAS,WAAW,OAAO,OAAO;AAIvF,QAAM,aAAa,OAAO,SAAS,OAAO,IAAI,OAAO,MAAM,IAAI;AAC/D,QAAM,WAAW,cAAc,WAAW,SAAS,WAAW,WAAW,OAAO;AAChF,QAAM,aAAa,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,SAAS,QAAQ,GAAG;AAEtF,QAAM,UAAU,CAAC,GAAW,IAAI,OAAO,IAAI,CAAC,OAAO;AAAA,IACjD,KAAK;AAAA,IACL,OAAO,GAAG,SAAS;AAAA,IACnB,GAAI,GAAG,UAAU,EAAE,QAAQ,EAAE,OAAO;AAAA,IACpC,GAAI,GAAG,YAAY,EAAE,UAAU,EAAE,SAAS;AAAA,EAC5C;AACA,QAAM,QAAkB;AAAA,IACtB,GAAI,QAAQ,SAAS,EAAE,OAAO,OAAO,MAAM;AAAA,IAC3C,GAAI,QAAQ,UAAU,EAAE,QAAQ,OAAO,OAAO;AAAA,IAC9C,GAAI,QAAQ,YAAY,EAAE,UAAU,OAAO,SAAS;AAAA,IACpD,SAAS;AAAA,EACX;AACA,QAAM,QAAkB;AAAA,IACtB,GAAI,QAAQ,SAAS,EAAE,OAAO,OAAO,MAAM;AAAA,IAC3C,GAAI,QAAQ,UAAU,EAAE,QAAQ,OAAO,OAAO;AAAA,IAC9C,GAAI,QAAQ,YAAY,EAAE,UAAU,OAAO,SAAS;AAAA,EACtD;AAEA,MAAI,UAAU;AAGZ,UAAM,SAAS,oBAAI,IAAoB;AACvC,eAAW,KAAK,MAAM;AACpB,YAAM,IAAI,OAAO,EAAE,QAAQ,KAAK,YAAY;AAC5C,aAAO,IAAI,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,CAAC;AAAA,IACxC;AACA,UAAM,UAAU,CAAC,GAAG,OAAO,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,MAAM,OAAO,IAAI,CAAC,IAAK,OAAO,IAAI,CAAC,CAAE;AACjF,UAAM,SAAS,QAAQ,SAAS;AAChC,UAAM,OAAO,IAAI,IAAI,SAAS,QAAQ,MAAM,GAAG,aAAa,CAAC,IAAI,OAAO;AACxE,UAAM,YAAY,SAAS,CAAC,GAAG,MAAM,OAAO,IAAI,CAAC,GAAG,IAAI;AAGxD,UAAM,OAAO,KAAK,IAAI,CAAC,MAAM;AAC3B,YAAM,IAAI,OAAO,EAAE,QAAQ,KAAK,YAAY;AAC5C,YAAM,MAAM,KAAK,IAAI,CAAC,IAAI,IAAI;AAC9B,aAAO;AAAA,QACL,CAAC,CAAC,GAAG,EAAE,CAAC;AAAA,QACR,CAAC,GAAG,GAAG,EAAE,CAAC;AAAA,QACV,GAAI,QAAQ,EAAE,CAAC,IAAI,GAAG,EAAE,IAAI,EAAE;AAAA,QAC9B,GAAI,cAAc,EAAE,CAAC,UAAU,GAAG,EAAE,UAAU,EAAE;AAAA,MAClD;AAAA,IACF,CAAC;AACD,UAAM,QAAQ,SAAS,CAAC,WAAW,QAAQ,SAAS,KAAK,IAAI,mCAAmC,IAAI,CAAC;AACrG,WAAO;AAAA,MACL,WAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA,QAAQ,UAAU,IAAI,CAAC,OAAO,EAAE,KAAK,GAAG,OAAO,EAAE,EAAE;AAAA,MACnD,GAAI,QAAQ,EAAE,KAAK;AAAA,MACnB,GAAI,cAAc,EAAE,WAAW;AAAA,MAC/B;AAAA,MACA;AAAA,MACA,QAAQ;AAAA,MACR,GAAI,KAAK,SAAS,EAAE,OAAO,KAAK,MAAM;AAAA,MACtC,GAAI,MAAM,UAAU,EAAE,MAAM;AAAA,MAC5B,SAAS;AAAA,QACP,QAAQ,CAAC;AAAA,QACT,GAAG,UAAU,IAAI,CAAC,OAAO;AAAA,UACvB,KAAK;AAAA,UACL,OAAO;AAAA,UACP,GAAI,QAAQ,UAAU,EAAE,QAAQ,OAAO,OAAO;AAAA,UAC9C,GAAI,QAAQ,YAAY,EAAE,UAAU,OAAO,SAAS;AAAA,QACtD,EAAE;AAAA,QACF,GAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC;AAAA,QAC9B,GAAI,aAAa,CAAC,QAAQ,UAAU,CAAC,IAAI,CAAC;AAAA,MAC5C;AAAA,IACF;AAAA,EACF;AAEA,QAAM,UAAU,CAAC,GAAG,GAAG,GAAI,OAAO,CAAC,IAAI,IAAI,CAAC,GAAI,GAAI,aAAa,CAAC,UAAU,IAAI,CAAC,CAAE,EAAE,IAAI,CAAC,MAAM,QAAQ,CAAC,CAAC;AAC1G,SAAO;AAAA,IACL,WAAW;AAAA,IACX,MAAM;AAAA,IACN;AAAA,IACA,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,QAAQ,SAAS,EAAE,CAAC;AAAA,IAC9C,GAAI,QAAQ,EAAE,KAAK;AAAA,IACnB,GAAI,cAAc,EAAE,WAAW;AAAA,IAC/B;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,GAAI,KAAK,SAAS,EAAE,OAAO,KAAK,MAAM;AAAA,IACtC;AAAA,EACF;AACF;AAGA,SAAS,cACP,MACA,QACA,QACA,MACW;AACX,QAAM,SAAS,IAAI,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACrD,QAAM,MAAM,OAAO,KAAK,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,WAAW,GAAG;AACpE,QAAM,OAAO,MAAM,QAAQ,OAAO,CAAC,IAAI,OAAO,EAAE,CAAC,IAAI,OAAO;AAC5D,QAAM,QAAQ,QAAQ,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,SAAS,GAAG;AAChE,MAAI,CAAC,OAAO,CAAC,OAAO;AAClB,UAAM,IAAI,MAAM,4FAA4F;AAAA,EAC9G;AACA,QAAM,WAAW,OAAO,IAAI,KAAK;AAEjC,QAAM,WAAW,KAAK,OAAO,CAAC,OAAO,OAAO,EAAE,KAAK,CAAC,KAAK,KAAK,CAAC;AAC/D,QAAM,OAAO,SAAS,SAAS,IAAI,WAAW;AAC9C,QAAM,UAAU,CAAC,MAAc;AAC7B,UAAM,IAAI,OAAO,IAAI,CAAC;AACtB,WAAO;AAAA,MACL,KAAK;AAAA,MACL,OAAO,GAAG,SAAS;AAAA,MACnB,GAAI,GAAG,UAAU,EAAE,QAAQ,EAAE,OAAO;AAAA,MACpC,GAAI,GAAG,YAAY,EAAE,UAAU,EAAE,SAAS;AAAA,IAC5C;AAAA,EACF;AACA,SAAO;AAAA,IACL,WAAW;AAAA,IACX;AAAA,IACA,GAAG;AAAA,IACH,QAAQ,CAAC,EAAE,KAAK,OAAO,OAAO,UAAU,SAAS,MAAM,CAAC;AAAA,IACxD,QAAQ;AAAA,IACR,GAAI,KAAK,SAAS,EAAE,OAAO,KAAK,MAAM;AAAA,IACtC,SAAS,CAAC,KAAK,KAAK,EAAE,IAAI,OAAO;AAAA,EACnC;AACF;AAKA,IAAM,WAAW;AACjB,SAAS,iBACP,MACA,QACA,QACA,MACW;AACX,QAAM,SAAS,IAAI,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACrD,QAAM,MAAM,OAAO,KAAK,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,WAAW,GAAG;AACpE,QAAM,SACH,MAAM,QAAQ,OAAO,CAAC,IAAI,OAAO,EAAE,CAAC,IAAI,OAAO,MAChD,OAAO,KAAK,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,SAAS,GAAG,GAAG;AAC9D,MAAI,CAAC,OAAO,CAAC,OAAO;AAClB,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,MAAI,KAAK,SAAS,GAAG;AACnB,UAAM,IAAI,MAAM,+DAA+D;AAAA,EACjF;AAGA,QAAM,YAAY,OAAO;AAAA,IACvB,CAAC,MACC,EAAE,SAAS,OACX,EAAE,SAAS,SACX,EAAE,SAAS,eACX,KAAK,KAAK,CAAC,MAAM,SAAS,KAAK,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;AAAA,EACrD;AACA,QAAM,SAAS,YACX,KAAK,OAAO,CAAC,MAAM,SAAS,KAAK,OAAO,EAAE,UAAU,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,OAAO,EAAE,GAAG,CAAC,CAAC,IACtF,CAAC,OAAO,KAAK,CAAC,EAAG,GAAG,CAAC,GAAG,OAAO,KAAK,KAAK,SAAS,CAAC,EAAG,GAAG,CAAC,CAAC;AAE/D,QAAM,QAAQ,YACV,CAAC,IACD,CAAC,qJAAqJ;AAE1J,QAAM,WAAW,OAAO,IAAI,KAAK;AACjC,QAAM,UAAU,CAAC,MAAc;AAC7B,UAAM,IAAI,OAAO,IAAI,CAAC;AACtB,WAAO;AAAA,MACL,KAAK;AAAA,MACL,OAAO,GAAG,SAAS;AAAA,MACnB,GAAI,GAAG,UAAU,EAAE,QAAQ,EAAE,OAAO;AAAA,MACpC,GAAI,GAAG,YAAY,EAAE,UAAU,EAAE,SAAS;AAAA,IAC5C;AAAA,EACF;AACA,SAAO;AAAA,IACL,WAAW;AAAA,IACX,MAAM;AAAA,IACN,GAAG;AAAA,IACH,QAAQ,CAAC,EAAE,KAAK,OAAO,OAAO,UAAU,SAAS,MAAM,CAAC;AAAA,IACxD,GAAI,OAAO,SAAS,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAI,IAAI,MAAM,CAAC,EAAE;AAAA,IACxD,GAAI,MAAM,UAAU,EAAE,MAAM;AAAA,IAC5B,OAAO;AAAA,MACL,GAAI,UAAU,SAAS,EAAE,OAAO,SAAS,MAAM;AAAA,MAC/C,GAAI,UAAU,UAAU,EAAE,QAAQ,SAAS,OAAO;AAAA,MAClD,GAAI,UAAU,YAAY,EAAE,UAAU,SAAS,SAAS;AAAA,IAC1D;AAAA,IACA,QAAQ;AAAA,IACR,GAAI,KAAK,SAAS,EAAE,OAAO,KAAK,MAAM;AAAA,IACtC,SAAS,CAAC,KAAK,KAAK,EAAE,IAAI,OAAO;AAAA,EACnC;AACF;AAIA,SAAS,YACP,MACA,MACA,QAC2B;AAC3B,MAAI,QAAQ,SAAS,QAAQ;AAC3B,UAAM,IAAI,CAAC,MAAe;AACxB,UAAI,IAAI,OAAO,CAAC;AAChB,UAAI,sBAAsB,KAAK,CAAC,EAAG,MAAK;AAAA,eAC/B,sBAAsB,KAAK,CAAC,KAAK,CAAC,yBAAyB,KAAK,EAAE,MAAM,EAAE,CAAC,EAAG,MAAK;AAC5F,YAAM,KAAK,IAAI,KAAK,CAAC,EAAE,QAAQ;AAC/B,aAAO,OAAO,MAAM,EAAE,IAAI,WAAW;AAAA,IACvC;AACA,WAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,MAAM,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;AAAA,EACzD;AACA,MAAI,QAAQ,SAAS,UAAU;AAC7B,WAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,OAAO,OAAO,EAAE,IAAI,CAAC,KAAK,MAAM,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE;AAAA,EACjF;AACA,SAAO;AACT;AAIA,SAAS,aACP,MACA,MACA,aACwD;AACxD,QAAM,SAAS,oBAAI,IAAqC;AACxD,MAAI,YAAY;AAChB,aAAW,OAAO,MAAM;AACtB,UAAM,MAAM,OAAO,IAAI,IAAI,CAAC;AAC5B,UAAM,WAAW,OAAO,IAAI,GAAG;AAC/B,QAAI,CAAC,UAAU;AACb,aAAO,IAAI,KAAK,EAAE,GAAG,IAAI,CAAC;AAAA,IAC5B,OAAO;AACL;AACA,iBAAW,KAAK,aAAa;AAC3B,iBAAS,CAAC,KAAK,OAAO,SAAS,CAAC,CAAC,KAAK,MAAM,OAAO,IAAI,CAAC,CAAC,KAAK;AAAA,MAChE;AAAA,IACF;AAAA,EACF;AACA,SAAO,EAAE,MAAM,MAAM,KAAK,OAAO,OAAO,CAAC,GAAG,UAAU;AACxD;AAEA,SAAS,aACP,GACA,QACA,QACA,QACA,MACc;AACd,QAAM,OAAqB,CAAC;AAC5B,MAAI,GAAG;AACL,SAAK,KAAK;AAAA,MACR,KAAK;AAAA,MACL,OAAO,QAAQ,SAAS;AAAA,MACxB,GAAI,QAAQ,eAAe,EAAE,aAAa,OAAO,YAAY;AAAA,IAC/D,CAAC;AAAA,EACH;AACA,aAAW,KAAK,QAAQ;AACtB,UAAM,IAAI,OAAO,IAAI,EAAE,GAAG;AAC1B,SAAK,KAAK;AAAA,MACR,KAAK,EAAE;AAAA,MACP,OAAO,EAAE;AAAA,MACT,GAAI,GAAG,UAAU,EAAE,QAAQ,EAAE,OAAO;AAAA,MACpC,GAAI,GAAG,WAAW,aAAa,EAAE,UAAU,gBAAgB,MAAM,CAAC,EAAE,GAAG,CAAC,EAAE;AAAA,MAC1E,GAAI,GAAG,YAAY,EAAE,UAAU,EAAE,SAAS;AAAA,IAC5C,CAAC;AAAA,EACH;AACA,SAAO;AACT;;;ACnrBA,SAAS,SAAS;;;ACIlB,IAAM,eAAe,oBAAI,IAAI,CAAC,UAAU,UAAU,WAAW,QAAQ,CAAC;AACtE,IAAM,iBAAiB;AAEvB,SAAS,SAAS,GAAqB;AACrC,SAAO,KAAK,QAAQ,aAAa,IAAI,OAAO,CAAC,KAAK,aAAa;AACjE;AAGO,SAAS,kBAAkB,MAA0D;AAC1F,MAAI,CAAC,MAAM,QAAQ,IAAI,GAAG;AACxB,UAAM,IAAI;AAAA,MACR,kFAAkF,SAAS,OAAO,SAAS,OAAO,IAAI;AAAA,IACxH;AAAA,EACF;AACA,MAAI,KAAK,WAAW,EAAG;AACvB,QAAM,QAAQ,KAAK,CAAC;AACpB,MAAI,UAAU,QAAQ,OAAO,UAAU,YAAY,MAAM,QAAQ,KAAK,GAAG;AACvE,UAAM,IAAI;AAAA,MACR,kGACS,MAAM,QAAQ,KAAK,IAAI,aAAa,OAAO,KAAK;AAAA,IAE3D;AAAA,EACF;AACF;AAOO,SAAS,mBAAmB,MAAiB,SAAS,IAAc;AACzE,QAAM,WAAW,IAAI,KAAK,KAAK,UAAU,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC;AACrF,QAAM,OAAO,KAAK,KAAK,MAAM,GAAG,MAAM;AACtC,QAAM,OAAO,KAAK,CAAC,IAAI,OAAO,KAAK,KAAK,CAAC,CAAC,IAAI,CAAC;AAC/C,QAAM,MAAgB,CAAC;AACvB,aAAW,KAAK,MAAM;AACpB,QAAI,SAAS,IAAI,CAAC,EAAG;AACrB,UAAM,OAAO,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,KAAK,IAAI;AAC1D,QAAI,KAAK,WAAW,EAAG;AAEvB,UAAM,iBAAiB,KAAK,MAAM,CAAC,MAAM,OAAO,MAAM,YAAY,eAAe,KAAK,CAAC,CAAC;AACxF,UAAM,UAAU,KAAK,MAAM,CAAC,MAAM,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC;AAC3D,QAAI,kBAAkB,CAAC,SAAS;AAC9B,UAAI,KAAK,WAAW,CAAC,2GAA2G;AAAA,IAClI,WAAW,KAAK,KAAK,CAAC,MAAM,OAAO,MAAM,YAAY,EAAE,aAAa,KAAK,GAAG;AAC1E,UAAI,KAAK,WAAW,CAAC,yFAAyF;AAAA,IAChH;AAAA,EACF;AACA,SAAO;AACT;AAGO,SAAS,oBAAoB,MAAiB,SAAS,IAAU;AACtE,QAAM,OAAO,CAAC,KAAK,GAAG,GAAG,KAAK,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,OAAO;AACtE,aAAW,OAAO,KAAK,KAAK,MAAM,GAAG,MAAM,GAAG;AAC5C,eAAW,KAAK,MAAM;AACpB,YAAM,IAAI,IAAI,CAAC;AACf,UAAI,CAAC,SAAS,CAAC,GAAG;AAChB,cAAM,OAAO,MAAM,QAAQ,CAAC,IAAI,aAAa;AAC7C,cAAM,IAAI;AAAA,UACR,WAAW,CAAC,cAAc,IAAI,+DACE,CAAC;AAAA,QACnC;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;ACxEO,IAAM,cAAc;;;AFQ3B,IAAM,kBAA+B,CAAC,QAAQ,OAAO,QAAQ,OAAO,WAAW,UAAU,aAAa,OAAO;AAG7G,IAAM,qBAAqB;AAC3B,IAAM,gBAAgB;AAetB,SAAS,kBAAkB,OAAkD;AAC3E,SAAO;AAAA,IACL,WAAW,EACR,KAAK,KAAoC,EACzC,SAAS,EACT;AAAA,MACC;AAAA,IAEF;AAAA,IACF,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,aAAa;AAAA,IACnD,UAAU,EAAE,KAAK,CAAC,WAAW,WAAW,YAAY,CAAC,EAAE,SAAS;AAAA,IAChE,YAAY,EAAE,QAAQ,EAAE,SAAS;AAAA,IACjC,WAAW,EACR,OAAO;AAAA,MACN,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,uDAAuD;AAAA,MAC9F,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,kDAAkD;AAAA,IAC7F,CAAC,EACA,SAAS,EACT,SAAS,2DAA2D;AAAA,IACvE,QAAQ,EACL,OAAO;AAAA,MACN,GAAG,EAAE,OAAO,EAAE,SAAS;AAAA,MACvB,GAAG,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,SAAS;AAAA,MACvD,QAAQ,EAAE,OAAO,EAAE,SAAS;AAAA,MAC5B,IAAI,EACD,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACvC,SAAS,EACT,SAAS,+EAA+E;AAAA,MAC3F,MAAM,EACH,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACvC,SAAS,EACT;AAAA,QACC;AAAA,MACF;AAAA,MACF,MAAM,EACH,OAAO,EACP,SAAS,EACT,SAAS,gFAAgF;AAAA,IAC9F,CAAC,EACA,SAAS,EACT,SAAS,8DAA8D;AAAA,EAC5E;AACF;AAKA,IAAM,cAAc;AAGpB,SAAS,YAAY,MAAiB;AACpC,QAAM,OACJ,GAAG,KAAK,SAAS,SAAS,KAAK,QAAQ,KAAK,KAAK,KAAK,MAAM,EAAE,KAC3D,KAAK,KAAK,MAAM,cAAc,KAAK,KAAK,QAAQ,aAAa,KAAK,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAC1G,QAAM,QAAQ,KAAK,OAAO,SAAS;AAAA,QAAW,KAAK,MAAM,KAAK,GAAG,CAAC,KAAK;AACvE,QAAM,YAAY,KAAK,KAAK,SAAS;AACrC,QAAM,SAAS,YAAY,KAAK,KAAK,MAAM,GAAG,WAAW,IAAI,KAAK;AAClE,QAAM,aAAa,YACf;AAAA,wBAA2B,WAAW,OAAO,KAAK,KAAK,MAAM,sCAC7D;AACJ,SAAO;AAAA,IACL,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,UAAU;AAAA,EAAK,KAAK,UAAU,MAAM,CAAC,GAAG,CAAC;AAAA,IACpG,mBAAmB;AAAA,EACrB;AACF;AAGA,SAAS,YAAY,OAAgB;AACnC,QAAM,OAAkB;AAAA,IACtB,WAAW;AAAA,IACX,MAAM,CAAC;AAAA,IACP,GAAG;AAAA,IACH,QAAQ,CAAC;AAAA,IACT,QAAQ;AAAA,IACR,GAAI,SAAS,EAAE,MAAM;AAAA,IACrB,SAAS,CAAC;AAAA,EACZ;AACA,SAAO;AAAA,IACL,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM,mBAAmB,QAAQ,SAAS,KAAK,MAAM,EAAE,4BAAuB,CAAC;AAAA,IAClH,mBAAmB;AAAA,EACrB;AACF;AAGA,IAAM,oBAAoB,oBAAI,IAAY;AAG1C,IAAM,mBAAmB,oBAAI,QAAgB;AAC7C,SAAS,uBAAuB,QAAyB;AACvD,MAAI,iBAAiB,IAAI,MAAM,EAAG;AAClC,mBAAiB,IAAI,MAAM;AAC3B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,EAAE,aAAa,4BAA4B,UAAU,cAAc;AAAA,IACnE,OAAO;AAAA,MACL,UAAU,CAAC,EAAE,KAAK,oBAAoB,UAAU,eAAe,MAAM,YAAY,CAAC;AAAA,IACpF;AAAA,EACF;AACF;AAGO,SAAS,UAAU,QAAmB,SAAiC;AAC5E,QAAM,QAAQ,QAAQ,SAAS;AAE/B,QAAM,EAAE,OAAO,IAAI;AACnB,MAAI,CAAC,QAAQ;AACX,UAAM,IAAI,MAAM,oDAAoD;AAAA,EACtE;AAEA,QAAM,OAAO,QAAQ,WAAW,WAC5B,iBAAiB,QAAQ,UAAU,QAAQ,uCAC3C;AACJ,QAAM,cACJ,6DACA,OACA;AAGF,QAAM,cAAc;AAAA,IAClB,KAAK,EAAE,OAAO,EAAE,SAAS,yCAAyC;AAAA,IAClE,GAAG,kBAAkB,KAAK;AAAA,EAC5B;AAGA,yBAAuB,MAAM;AAE7B,SAAO;AAAA,IACL,QAAQ,YAAY;AAAA,IACpB;AAAA,MACE,OAAO;AAAA,MACP;AAAA,MACA;AAAA;AAAA;AAAA,MAGA,cAAc;AAAA,QACZ,WAAW,EAAE,OAAO;AAAA,QACpB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;AAAA,QAC/C,GAAG,EAAE,OAAO;AAAA,QACZ,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;AAAA,QACjD,QAAQ,EAAE,QAAQ;AAAA,QAClB,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS;AAAA,QAClD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS;AAAA,QAClD,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS;AAAA,QACvD,UAAU,EAAE,OAAO,EAAE,SAAS;AAAA,QAC9B,YAAY,EAAE,QAAQ,EAAE,SAAS;AAAA,QACjC,OAAO,EAAE,OAAO,EAAE,SAAS;AAAA,QAC3B,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,EAAE,SAAS;AAAA,QAC7D,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,EAAE,SAAS;AAAA,QAC/D,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA,QAC1B,YAAY,EAAE,OAAO,EAAE,SAAS;AAAA,QAChC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,QACrC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,MACtC;AAAA,MACA,aAAa,EAAE,cAAc,MAAM,eAAe,MAAM;AAAA;AAAA;AAAA,MAGxD,OAAO;AAAA,QACL,IAAI,EAAE,aAAa,mBAAmB;AAAA,QACtC,yBAAyB;AAAA,MAC3B;AAAA,IACF;AAAA,IACA,OAAO,SAAkC;AACvC,YAAM,MAAoB,CAAC;AAC3B,UAAI;AACF,cAAM,OAAO,MAAM,OAAO,OAAO,KAAK,GAAG,GAAG,GAAG;AAC/C,0BAAkB,KAAK,IAAI;AAE3B,mBAAW,KAAK,mBAAmB,IAAI,GAAG;AACxC,cAAI,kBAAkB,IAAI,CAAC,EAAG;AAC9B,4BAAkB,IAAI,CAAC;AACvB,kBAAQ,KAAK,gBAAgB,CAAC,EAAE;AAAA,QAClC;AACA,cAAM,QAAQ,KAAK;AACnB,YAAI,KAAK,KAAK,WAAW,EAAG,QAAO,YAAY,KAAK;AACpD,YAAI,KAAK,OAAQ,MAAK,SAAS,EAAE,GAAI,KAAK,UAAU,CAAC,GAAI,GAAI,KAAK,OAAkB;AACpF,cAAM,OAAO,QAAQ,MAAM;AAAA,UACzB,WAAW,KAAK;AAAA,UAChB;AAAA,UACA,UAAU,KAAK;AAAA,UACf,YAAY,KAAK;AAAA,UACjB,WAAW,KAAK;AAAA,QAClB,CAAC;AACD,4BAAoB,IAAI;AACxB,eAAO,YAAY,IAAI;AAAA,MACzB,SAAS,KAAK;AACZ,cAAM,UAAU,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;AAC/D,eAAO;AAAA,UACL,SAAS;AAAA,UACT,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM,qBAAqB,OAAO,GAAG,CAAC;AAAA,QAC3E;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/views.ts","../src/charts.ts"],"sourcesContent":["// Authoring ergonomics for the named-views surface: build chart cells without the\n// buildChartData/resolve ceremony, wrap a DashboardSpec into the widget-linked tool result, and\n// register the explore_views + render_view tool pair over a set of named views. The raw\n// DashboardSpec path stays first-class — these just remove the per-cell boilerplate.\nimport type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport type {\n ChartCell,\n ChartData,\n ChartExplanation,\n ChartSpec,\n DashboardSpec,\n Encode,\n FieldMeta,\n ResolveOptions,\n} from \"./types.js\";\nimport { resolve } from \"./resolve/resolve.js\";\nimport { inferFields } from \"./resolve/infer.js\";\nimport { warnUntypedColumns } from \"./validate.js\";\nimport { isChartSpec, isDashboardSpec } from \"./dashboard.js\";\nimport { registerChartWidget, CHART_RESOURCE_URI } from \"./charts.js\";\n\n// Link a tool + its result to the chart widget. `ui.resourceUri` is the MCP Apps standard (Claude,\n// Cursor, Inspector); `openai/outputTemplate` is the ChatGPT Apps SDK alias. Same shape as visualize.\nconst WIDGET_META = {\n ui: { resourceUri: CHART_RESOURCE_URI },\n \"openai/outputTemplate\": CHART_RESOURCE_URI,\n} as const;\n\n/** Extra per-cell options layered on top of resolve()'s options. */\nexport interface ChartCellOptions extends ResolveOptions {\n /** Stable id for addressing this cell via render_view's item_id (re-render one chart alone). */\n id?: string;\n /** Grid columns this cell spans (renderer clamps to the dashboard's column count). */\n span?: number;\n /** Declare field typing when inference can't nail it (currency, numeric-string dimensions). */\n fields?: FieldMeta[];\n /** Map columns to x / y / series when the names aren't obvious. */\n encode?: Encode;\n}\n\n/** Options for a standalone chart: resolve()'s options plus the field-typing / encoding escape hatches. */\nexport type ChartOptions = ResolveOptions & { fields?: FieldMeta[]; encode?: Encode };\n\n/** Normalize the first arg of chart()/chartCell() into a ChartData. Raw rows (an array) become\n * `{ rows }` + inferred fields; a typed ChartData (from an adapter) passes through unsniffed, with\n * opts.fields/encode layering onto any it already declares. */\nfunction toChartData(source: Record<string, unknown>[] | ChartData, opts: { fields?: FieldMeta[]; encode?: Encode }) {\n if (Array.isArray(source)) return { rows: source, fields: opts.fields, encode: opts.encode };\n return {\n rows: source.rows,\n fields: opts.fields ?? source.fields,\n encode: opts.encode ?? source.encode,\n notes: source.notes,\n };\n}\n\n// Merge integrator advisories (numbers-as-strings, wrapper objects) into a spec's notes, deduped.\n// After numeric-string recovery these are \"recovered\" signals, so they surface on the views path\n// the way visualize already surfaces them (visualize logs them itself; don't double up there).\nfunction mergeAdvisories(spec: ChartSpec, data: ChartData): ChartSpec {\n const advisories = warnUntypedColumns(data);\n if (advisories.length === 0) return spec;\n const notes = [...(spec.notes ?? [])];\n for (const a of advisories) if (!notes.includes(a)) notes.push(a);\n return { ...spec, notes };\n}\n\n/**\n * Build a standalone ChartSpec, inferring the encoding via resolve(). The first arg is EITHER raw\n * rows (`Record<string, unknown>[]` — inference sniffs types) OR a typed `ChartData` (`{ rows,\n * fields?, encode?, notes? }` from an adapter — driver types are trusted, no sniff). For a\n * DB-connected view, `chart(await runSql(\"select ...\"), { chartType: \"line\" })` is the same one\n * line but rides declared types. `fields`/`encode` are escape hatches for the raw path. The sibling\n * of chartCell, which wraps this spec in a dashboard cell.\n */\nexport function chart(source: Record<string, unknown>[] | ChartData, opts: ChartOptions = {}): ChartSpec {\n const { fields, encode, ...resolveOpts } = opts;\n const data = toChartData(source, { fields, encode });\n return mergeAdvisories(resolve(data, resolveOpts), data);\n}\n\n/**\n * Build a dashboard chart cell, inferring the encoding via resolve(). Like chart(), the first arg is\n * either raw rows or a typed `ChartData`. `fields`/`encode` are escape hatches; `span` sets the grid\n * width.\n */\nexport function chartCell(source: Record<string, unknown>[] | ChartData, opts: ChartCellOptions): ChartCell {\n const { id, span, ...chartOpts } = opts;\n return {\n spec: chart(source, chartOpts),\n ...(id ? { id } : {}),\n ...(span ? { span } : {}),\n };\n}\n\n/**\n * Diagnose how rows (or a typed ChartData) would be charted, WITHOUT building the render payload:\n * the inferred field typing, the resolved chartType / x / series, and any notes. For asserting the\n * encoding in a unit test or CI before a host ever renders it, e.g.\n * `expect(explain(sampleRows, { chartType: \"bar\" }).series.length).toBeGreaterThan(0)`. Pair with\n * `strict: true` to throw on a bad encoding (zero series, ignored encode column) instead of noting.\n */\nexport function explain(source: Record<string, unknown>[] | ChartData, opts: ChartOptions = {}): ChartExplanation {\n const { fields, encode, ...resolveOpts } = opts;\n const data = toChartData(source, { fields, encode });\n const spec = mergeAdvisories(resolve(data, resolveOpts), data);\n return {\n fields: inferFields(data).map((f) => ({ name: f.name, kind: f.kind!, role: f.role! })),\n chartType: spec.chartType,\n x: spec.x,\n series: spec.series.map((s) => s.key),\n notes: spec.notes ?? [],\n };\n}\n\n/** A compact, bounded text summary of a dashboard for the model + a non-widget fallback. One line\n * per item (KPI value/delta, chart title/type/row-count, text heading) — never echoes chart rows. */\nexport function summarizeDashboard(spec: DashboardSpec): string {\n const lines: string[] = [spec.title ?? \"Dashboard\"];\n for (const item of spec.items) {\n if (\"type\" in item && item.type === \"kpi\") {\n const delta = item.delta != null ? ` (Δ ${item.delta})` : \"\";\n lines.push(`- ${item.label}: ${item.value ?? \"—\"}${delta}`);\n } else if (\"type\" in item && item.type === \"text\") {\n if (item.heading) lines.push(`- ${item.heading}`);\n } else if (\"spec\" in item) {\n const title = item.spec.title ?? item.spec.chartType;\n const id = item.id ? ` [id: ${item.id}]` : \"\";\n const notes = item.spec.notes?.length ? ` Note: ${item.spec.notes.join(\" \")}` : \"\";\n lines.push(`- ${title}${id}: ${item.spec.chartType} chart, ${item.spec.data.length} row(s)${notes}`);\n }\n }\n if (spec.notes?.length) lines.push(`Note: ${spec.notes.join(\" \")}`);\n return lines.join(\"\\n\");\n}\n\n/** The DashboardSpec envelope: structuredContent for the widget + a text fallback + the widget link.\n * Absorbs the structuredContent cast so callers never write it. */\nexport function dashboardResult(spec: DashboardSpec, opts?: { summary?: string | ((s: DashboardSpec) => string) }) {\n const text = typeof opts?.summary === \"function\" ? opts.summary(spec) : (opts?.summary ?? summarizeDashboard(spec));\n return {\n content: [{ type: \"text\" as const, text }],\n structuredContent: spec as unknown as Record<string, unknown>,\n _meta: WIDGET_META,\n };\n}\n\n// Permissive outputSchema for the DashboardSpec envelope, mirroring visualize's in charts.ts: some\n// hosts only forward structuredContent to the widget when the tool declares an outputSchema, and\n// nested items stay open records so a valid spec is never rejected. Exported once so it can't drift.\nexport const DASHBOARD_OUTPUT_SCHEMA = {\n title: z.string().optional(),\n columns: z.number().optional(),\n items: z.array(z.record(z.string(), z.unknown())),\n notes: z.array(z.string()).optional(),\n};\n\n// render_view returns a ChartSpec, a DashboardSpec, or (with item_id) a single cell's ChartSpec, so\n// its outputSchema must accept all three. DASHBOARD_OUTPUT_SCHEMA can't: it requires `items` and\n// types `columns` as a number (a ChartSpec's `columns` is an array). A passthrough object still\n// declares an outputSchema (so hosts forward structuredContent to the widget) but sets\n// `additionalProperties` open, accepting any of the spec shapes.\nconst VIEW_OUTPUT_SCHEMA = z.object({}).passthrough();\n\n// --- Multi-view registry: one discovery tool (explore_views) + one execute tool (render_view)\n// over a set of named views, each returning a ChartSpec or DashboardSpec. ---\n\n/** What a view's render returns: a bare spec or one paired with a summary. */\nexport type ViewResult = ChartSpec | DashboardSpec | { spec: ChartSpec | DashboardSpec; summary?: string };\n\n/** One named, renderable view in a views registry. */\nexport interface ViewDef {\n /** The render_view view_id enum value (snake/kebab, stable). */\n id: string;\n title: string;\n /** One line; shown in explore_views and the render_view catalog. */\n description: string;\n /** Optional author hint for the catalog. */\n kind?: \"chart\" | \"dashboard\";\n /** Per-view input params as a zod raw shape. */\n params?: Record<string, z.ZodTypeAny>;\n /**\n * Produce the view's spec(s). For a DB-connected view, return a typed `ChartData` so the encoding\n * rides driver types instead of a value sniff, e.g. `chart(await runSql(\"select ...\"), { chartType:\n * \"line\" })` — `chart`/`chartCell` accept a `ChartData` anywhere they accept raw rows.\n */\n render: (args: Record<string, unknown>) => ViewResult | Promise<ViewResult>;\n}\n\n/** Options for addViews. */\nexport interface AddViewsOptions {\n views: ViewDef[];\n /** Override the discovery tool name (default: \"explore_views\"). */\n exploreToolName?: string;\n /** Override the execute tool name (default: \"render_view\"). */\n renderToolName?: string;\n /** Extra text appended to render_view's description. */\n renderDescription?: string;\n}\n\n/** A compact, bounded chart summary (the single-chart analogue of summarizeDashboard). Appends the\n * chart's notes so encoding advisories (blank chart, coerced columns) reach the agent, not just the\n * human looking at the widget. */\nfunction chartSummary(spec: ChartSpec): string {\n const notes = spec.notes?.length ? ` Note: ${spec.notes.join(\" \")}` : \"\";\n return `${spec.title ?? spec.chartType}: ${spec.chartType} chart, ${spec.data.length} row(s)${notes}`;\n}\n\n// Best-effort primitive type name across zod 3 (_def.typeName) and zod 4 (_zod.def.type), unwrapping\n// optional/nullable/default wrappers to report the inner type (e.g. \"enum\", not \"optional\").\nfunction zodTypeName(schema: z.ZodTypeAny): string {\n let s: unknown = schema;\n for (let i = 0; i < 5; i++) {\n const v4 = (s as { _zod?: { def?: { type?: string; innerType?: unknown } } })._zod?.def;\n const v3 = (s as { _def?: { typeName?: string; innerType?: unknown } })._def;\n const type = v4?.type ?? (v3?.typeName ? String(v3.typeName).replace(/^Zod/, \"\").toLowerCase() : undefined);\n if (type && type !== \"optional\" && type !== \"nullable\" && type !== \"default\") return type;\n const inner = v4?.innerType ?? v3?.innerType;\n if (!inner) break;\n s = inner;\n }\n return \"unknown\";\n}\n\n/** Best-effort {name,type,required} for a view's zod params, for the explore_views catalog. */\nfunction describeParams(params?: Record<string, z.ZodTypeAny>): { name: string; type: string; required: boolean }[] {\n if (!params) return [];\n return Object.entries(params).map(([name, schema]) => ({\n name,\n type: zodTypeName(schema),\n required: !schema.isOptional(),\n }));\n}\n\n/** One catalog line per view: `` `id` (kind) — description. params: region?, ... ``. */\nfunction catalogLine(view: ViewDef): string {\n const kind = view.kind ? ` (${view.kind})` : \"\";\n const params = describeParams(view.params);\n const paramList = params.length\n ? ` params: ${params.map((p) => `${p.name}${p.required ? \"\" : \"?\"}`).join(\", \")}`\n : \"\";\n return `- \\`${view.id}\\`${kind} - ${view.description}.${paramList}`;\n}\n\n/** The widget-linked envelope for a single ChartSpec, shared by chart-kind views and selected cells. */\nfunction chartResult(spec: ChartSpec, summary?: string) {\n return {\n content: [{ type: \"text\" as const, text: summary ?? chartSummary(spec) }],\n structuredContent: spec as unknown as Record<string, unknown>,\n _meta: WIDGET_META,\n };\n}\n\n/**\n * Register a two-tool named-views surface: `explore_views` (list the available views) and\n * `render_view` (render one, bound to the chart widget). Each view returns a ChartSpec or a\n * DashboardSpec. Owns the widget resource, the outputSchema, the _meta link, param validation, the\n * result envelope, and error handling.\n */\nexport function addViews(server: McpServer, opts: AddViewsOptions): void {\n const { views } = opts;\n if (!views.length) throw new Error(\"addViews: `views` must be non-empty\");\n const ids = views.map((v) => v.id);\n const dupe = ids.find((id, i) => ids.indexOf(id) !== i);\n if (dupe) throw new Error(`addViews: duplicate view id \"${dupe}\"`);\n\n registerChartWidget(server);\n\n const byId = new Map(views.map((v) => [v.id, v]));\n const catalog = views.map(catalogLine).join(\"\\n\");\n\n const exploreName = opts.exploreToolName ?? \"explore_views\";\n const renderName = opts.renderToolName ?? \"render_view\";\n\n const itemIdSentence =\n `For dashboard views, pass item_id to re-render a single chart cell by its id ` +\n `(ids appear in the dashboard summary).`;\n\n server.registerTool(\n exploreName,\n {\n title: \"Explore views\",\n description:\n `List the available views (id, title, description, params). Call this first to ` +\n `discover what you can render, then call \\`${renderName}\\` with a chosen view_id. ` +\n itemIdSentence,\n inputSchema: {},\n annotations: { readOnlyHint: true, openWorldHint: false },\n },\n () => {\n const structuredViews = views.map((v) => ({\n id: v.id,\n title: v.title,\n description: v.description,\n ...(v.kind && { kind: v.kind }),\n params: describeParams(v.params),\n }));\n return {\n content: [{ type: \"text\" as const, text: `Available views:\\n${catalog}` }],\n structuredContent: { views: structuredViews },\n };\n },\n );\n\n const renderDescription =\n `Render one view by view_id, returning a chart or dashboard bound to the widget. ` +\n `${itemIdSentence} ` +\n `Available views:\\n${catalog}` +\n (opts.renderDescription ? `\\n\\n${opts.renderDescription}` : \"\");\n\n server.registerTool(\n renderName,\n {\n title: \"Render view\",\n description: renderDescription,\n inputSchema: {\n view_id: z.enum(ids as [string, ...string[]]),\n params: z.record(z.string(), z.unknown()).optional(),\n item_id: z.string().optional(),\n },\n outputSchema: VIEW_OUTPUT_SCHEMA,\n annotations: { readOnlyHint: true, openWorldHint: false },\n _meta: WIDGET_META,\n },\n async (args: Record<string, unknown>) => {\n const viewId = String(args.view_id);\n const itemId = args.item_id != null ? String(args.item_id) : undefined;\n const view = byId.get(viewId);\n if (!view) {\n return { isError: true, content: [{ type: \"text\" as const, text: `${renderName}: unknown view \"${viewId}\"` }] };\n }\n try {\n let renderArgs: Record<string, unknown> = {};\n if (view.params) {\n const parsed = z\n .object(view.params)\n .strict()\n .safeParse(args.params ?? {});\n if (!parsed.success) {\n const issue = parsed.error.issues[0];\n const path = issue?.path.join(\".\") || \"params\";\n return {\n isError: true,\n content: [{ type: \"text\" as const, text: `${renderName}: invalid param \"${path}\": ${issue?.message}` }],\n };\n }\n renderArgs = parsed.data;\n }\n const out = await view.render(renderArgs);\n const { spec, summary } = \"spec\" in out ? out : { spec: out, summary: undefined };\n\n if (itemId != null) {\n const err = (text: string) => ({ isError: true as const, content: [{ type: \"text\" as const, text }] });\n if (isChartSpec(spec)) {\n return err(`${renderName}: view \"${viewId}\" is a single chart; item_id does not apply`);\n }\n if (!isDashboardSpec(spec)) {\n throw new Error(\"view render returned neither a ChartSpec nor a DashboardSpec\");\n }\n const matches = spec.items.filter((it) => \"id\" in it && it.id === itemId);\n if (matches.length === 0) {\n const chartIds = spec.items.flatMap((it) => (\"spec\" in it && it.id ? [it.id] : []));\n const tail = chartIds.length\n ? ` Selectable chart cells: ${chartIds.map((c) => `\"${c}\"`).join(\", \")}`\n : ` This view has no items with ids; add id to chartCell(...) to enable item selection`;\n return err(`${renderName}: unknown item_id \"${itemId}\" for view \"${viewId}\".${tail}`);\n }\n if (matches.length > 1) {\n return err(`${renderName}: duplicate item id \"${itemId}\" in view \"${viewId}\"`);\n }\n const item = matches[0]!;\n if (!(\"spec\" in item)) {\n const kind = \"type\" in item && item.type === \"text\" ? \"text block\" : \"kpi tile\";\n return err(\n `${renderName}: item \"${itemId}\" in view \"${viewId}\" is a ${kind}, not a chart; only chart cells render alone`,\n );\n }\n return chartResult(item.spec);\n }\n\n if (isDashboardSpec(spec)) return dashboardResult(spec, { summary });\n if (isChartSpec(spec)) return chartResult(spec, summary);\n throw new Error(\"view render returned neither a ChartSpec nor a DashboardSpec\");\n } catch (err) {\n const message = err instanceof Error ? err.message : String(err);\n return { isError: true, content: [{ type: \"text\" as const, text: `${renderName} failed: ${message}` }] };\n }\n },\n );\n}\n","// addCharts — register the agent-facing visualize tool + chart widget, call the dev's data\n// callback, run resolve() server-side, and return a ChartSpec linked to the ui:// widget.\nimport type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport type { ChartContext, ChartData, ChartSpec, ChartType, Encode } from \"./types.js\";\nimport { resolve } from \"./resolve/resolve.js\";\nimport { validateRowsShape, assertPlottedScalar, warnUntypedColumns } from \"./validate.js\";\nimport { WIDGET_HTML } from \"./generated/widget-html.js\";\n\nconst ALL_CHART_TYPES: ChartType[] = [\"line\", \"bar\", \"area\", \"pie\", \"scatter\", \"funnel\", \"waterfall\", \"table\"];\n\n// MCP Apps: the widget is served as a ui:// resource; the tool links to it via _meta.\nexport const CHART_RESOURCE_URI = \"ui://bonnard/chart\";\nconst APP_MIME_TYPE = \"text/html;profile=mcp-app\";\n\n/** Options for addCharts. */\nexport interface AddChartsOptions {\n /** SQL mode: the agent writes SQL; you execute it read-only and return rows. */\n runSql?: (sql: string, ctx: ChartContext) => Promise<ChartData>;\n /** Which chart types the agent may use (default: all). */\n allow?: ChartType[];\n /** Names the dev's schema-discovery tool so the agent is told to call it first. */\n discovery?: { toolName: string };\n /** Override the tool name (default: \"visualize\"). */\n toolName?: string;\n}\n\n/** Presentation inputs shared by every chart. */\nfunction presentationInput(allow: ChartType[]): Record<string, z.ZodTypeAny> {\n return {\n chartType: z\n .enum(allow as [ChartType, ...ChartType[]])\n .optional()\n .describe(\n \"Chart type. Omit to auto-detect from the data shape. For waterfall, return ordered steps \" +\n \"where the value is a SIGNED change (+ gain, − loss) and the start/end rows are totals.\",\n ),\n title: z.string().optional().describe(\"Chart title\"),\n stacking: z.enum([\"stacked\", \"grouped\", \"stacked100\"]).optional(),\n horizontal: z.boolean().optional(),\n reference: z\n .object({\n target: z.number().optional().describe(\"Draw a horizontal target/threshold line at this value\"),\n average: z.boolean().optional().describe(\"Draw a line at the average of the primary series\"),\n })\n .optional()\n .describe(\"Reference lines on the value axis (target and/or average)\"),\n encode: z\n .object({\n x: z.string().optional(),\n y: z.union([z.string(), z.array(z.string())]).optional(),\n series: z.string().optional(),\n y2: z\n .union([z.string(), z.array(z.string())])\n .optional()\n .describe(\"Measure(s) for a secondary right axis, drawn as a line (e.g. a % over $ bars)\"),\n line: z\n .union([z.string(), z.array(z.string())])\n .optional()\n .describe(\n \"Measure(s) to draw as a line instead of bars on the same axis (e.g. actual bars + target/forecast/moving-average line). Compute that measure in SQL, select it, and name it here.\",\n ),\n size: z\n .string()\n .optional()\n .describe(\"Scatter only: a 3rd numeric column mapped to point size (makes a bubble chart)\"),\n })\n .optional()\n .describe(\"Map columns to x / y / series / y2 when names aren't obvious\"),\n };\n}\n\n// The widget renders from structuredContent; the text is just a fallback + a peek for the agent.\n// Echo only a sample of the rows so a large result doesn't flood the model context (the full\n// dataset is already in structuredContent for the chart).\nconst ECHO_SAMPLE = 50;\n\n/** Build the CallToolResult: ChartSpec as structuredContent + a text fallback with the data. */\nfunction buildResult(spec: ChartSpec) {\n const head =\n `${spec.chartType} chart${spec.title ? ` \"${spec.title}\"` : \"\"}: ` +\n `${spec.data.length} row(s), x=${spec.x || \"(none)\"}, series=[${spec.series.map((s) => s.key).join(\", \")}]`;\n const notes = spec.notes?.length ? `\\nNote: ${spec.notes.join(\" \")}` : \"\";\n const truncated = spec.data.length > ECHO_SAMPLE;\n const sample = truncated ? spec.data.slice(0, ECHO_SAMPLE) : spec.data;\n const sampleNote = truncated\n ? `\\n(text shows the first ${ECHO_SAMPLE} of ${spec.data.length} rows; the chart has all of them)`\n : \"\";\n return {\n content: [{ type: \"text\" as const, text: `${head}${notes}${sampleNote}\\n${JSON.stringify(sample)}` }],\n structuredContent: spec as unknown as Record<string, unknown>,\n };\n}\n\n/** A clean \"no rows\" result — not an error; renders an empty chart, not a broken one. */\nfunction emptyResult(title?: string) {\n const spec: ChartSpec = {\n chartType: \"table\",\n data: [],\n x: \"\",\n series: [],\n legend: false,\n ...(title && { title }),\n columns: [],\n };\n return {\n content: [{ type: \"text\" as const, text: `No rows returned${title ? ` for \"${title}\"` : \"\"} — nothing to chart.` }],\n structuredContent: spec as unknown as Record<string, unknown>,\n };\n}\n\n// Dedupe integration warnings so a mis-wired runSql logs each issue once, not per call.\nconst warnedIntegration = new Set<string>();\n\n// Register the ui:// widget resource once per server (addCharts may be called repeatedly).\nconst widgetRegistered = new WeakSet<object>();\nfunction registerWidgetResource(server: McpServer): void {\n if (widgetRegistered.has(server)) return;\n widgetRegistered.add(server);\n server.registerResource(\n \"Bonnard Chart\",\n CHART_RESOURCE_URI,\n { description: \"Interactive chart widget\", mimeType: APP_MIME_TYPE },\n () => ({\n contents: [{ uri: CHART_RESOURCE_URI, mimeType: APP_MIME_TYPE, text: WIDGET_HTML }],\n }),\n );\n}\n\n/** Register the chart/dashboard widget ui:// resource. Idempotent per server. A consumer that\n * returns a ChartSpec/DashboardSpec from its own tool (instead of `visualize`) calls this so the\n * host has the widget to render into. */\nexport function registerChartWidget(server: McpServer): void {\n registerWidgetResource(server);\n}\n\n/** Register the generic `visualize` tool on an MCP server. */\nexport function addCharts(server: McpServer, options: AddChartsOptions): void {\n const allow = options.allow ?? ALL_CHART_TYPES;\n\n const { runSql } = options;\n if (!runSql) {\n throw new Error(\"addCharts: provide a data source (e.g. { runSql })\");\n }\n\n const disc = options.discovery?.toolName\n ? ` First call \\`${options.discovery.toolName}\\` to discover tables and columns.`\n : \"\";\n const description =\n \"Render an interactive chart from a read-only SQL SELECT.\" +\n disc +\n \" Alias columns clearly. Omit chartType to auto-detect; pass `encode` to map columns\" +\n \" to x / y / series when the names aren't obvious.\";\n\n const inputSchema = {\n sql: z.string().describe(\"A single read-only SQL SELECT statement\"),\n ...presentationInput(allow),\n };\n\n // Register the chart widget as a ui:// resource (MCP Apps). Idempotent across calls.\n registerWidgetResource(server);\n\n server.registerTool(\n options.toolName ?? \"visualize\",\n {\n title: \"Visualize\",\n description,\n inputSchema,\n // Schema-back structuredContent: some hosts only forward it to the widget when the tool\n // declares an outputSchema. Permissive (nested objects as open records) so it never rejects a spec.\n outputSchema: {\n chartType: z.string(),\n data: z.array(z.record(z.string(), z.unknown())),\n x: z.string(),\n series: z.array(z.record(z.string(), z.unknown())),\n legend: z.boolean(),\n xAxis: z.record(z.string(), z.unknown()).optional(),\n yAxis: z.record(z.string(), z.unknown()).optional(),\n yAxisRight: z.record(z.string(), z.unknown()).optional(),\n stacking: z.string().optional(),\n horizontal: z.boolean().optional(),\n title: z.string().optional(),\n columns: z.array(z.record(z.string(), z.unknown())).optional(),\n reference: z.array(z.record(z.string(), z.unknown())).optional(),\n size: z.string().optional(),\n pointLabel: z.string().optional(),\n totals: z.array(z.string()).optional(),\n notes: z.array(z.string()).optional(),\n },\n annotations: { readOnlyHint: true, openWorldHint: false },\n // Link the tool to its widget. `ui.resourceUri` is the MCP Apps standard (Claude,\n // Cursor, Inspector); `openai/outputTemplate` is the ChatGPT Apps SDK alias.\n _meta: {\n ui: { resourceUri: CHART_RESOURCE_URI },\n \"openai/outputTemplate\": CHART_RESOURCE_URI,\n },\n },\n async (args: Record<string, unknown>) => {\n const ctx: ChartContext = {};\n try {\n const data = await runSql(String(args.sql), ctx);\n validateRowsShape(data.rows); // fail loud on a wrong shape (not array / not objects)\n // Nudge the integrator (once) if a column arrived untyped and looks mis-inferrable.\n for (const w of warnUntypedColumns(data)) {\n if (warnedIntegration.has(w)) continue;\n warnedIntegration.add(w);\n console.warn(`[mcp-charts] ${w}`);\n }\n const title = args.title as string | undefined;\n if (data.rows.length === 0) return emptyResult(title); // friendly \"no rows\" state\n if (args.encode) data.encode = { ...(data.encode ?? {}), ...(args.encode as Encode) };\n const spec = resolve(data, {\n chartType: args.chartType as ChartType | undefined,\n title,\n stacking: args.stacking as ChartSpec[\"stacking\"],\n horizontal: args.horizontal as boolean | undefined,\n reference: args.reference as { target?: number; average?: boolean } | undefined,\n });\n assertPlottedScalar(spec); // every plotted column must be scalar\n return buildResult(spec);\n } catch (err) {\n const message = err instanceof Error ? err.message : String(err);\n return {\n isError: true,\n content: [{ type: \"text\" as const, text: `visualize failed: ${message}` }],\n };\n }\n },\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAKA,SAAS,KAAAA,UAAS;;;ACFlB,SAAS,SAAS;AAMlB,IAAM,kBAA+B,CAAC,QAAQ,OAAO,QAAQ,OAAO,WAAW,UAAU,aAAa,OAAO;AAGtG,IAAM,qBAAqB;AAClC,IAAM,gBAAgB;AAetB,SAAS,kBAAkB,OAAkD;AAC3E,SAAO;AAAA,IACL,WAAW,EACR,KAAK,KAAoC,EACzC,SAAS,EACT;AAAA,MACC;AAAA,IAEF;AAAA,IACF,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,aAAa;AAAA,IACnD,UAAU,EAAE,KAAK,CAAC,WAAW,WAAW,YAAY,CAAC,EAAE,SAAS;AAAA,IAChE,YAAY,EAAE,QAAQ,EAAE,SAAS;AAAA,IACjC,WAAW,EACR,OAAO;AAAA,MACN,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,uDAAuD;AAAA,MAC9F,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,kDAAkD;AAAA,IAC7F,CAAC,EACA,SAAS,EACT,SAAS,2DAA2D;AAAA,IACvE,QAAQ,EACL,OAAO;AAAA,MACN,GAAG,EAAE,OAAO,EAAE,SAAS;AAAA,MACvB,GAAG,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,SAAS;AAAA,MACvD,QAAQ,EAAE,OAAO,EAAE,SAAS;AAAA,MAC5B,IAAI,EACD,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACvC,SAAS,EACT,SAAS,+EAA+E;AAAA,MAC3F,MAAM,EACH,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACvC,SAAS,EACT;AAAA,QACC;AAAA,MACF;AAAA,MACF,MAAM,EACH,OAAO,EACP,SAAS,EACT,SAAS,gFAAgF;AAAA,IAC9F,CAAC,EACA,SAAS,EACT,SAAS,8DAA8D;AAAA,EAC5E;AACF;AAKA,IAAM,cAAc;AAGpB,SAAS,YAAY,MAAiB;AACpC,QAAM,OACJ,GAAG,KAAK,SAAS,SAAS,KAAK,QAAQ,KAAK,KAAK,KAAK,MAAM,EAAE,KAC3D,KAAK,KAAK,MAAM,cAAc,KAAK,KAAK,QAAQ,aAAa,KAAK,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAC1G,QAAM,QAAQ,KAAK,OAAO,SAAS;AAAA,QAAW,KAAK,MAAM,KAAK,GAAG,CAAC,KAAK;AACvE,QAAM,YAAY,KAAK,KAAK,SAAS;AACrC,QAAM,SAAS,YAAY,KAAK,KAAK,MAAM,GAAG,WAAW,IAAI,KAAK;AAClE,QAAM,aAAa,YACf;AAAA,wBAA2B,WAAW,OAAO,KAAK,KAAK,MAAM,sCAC7D;AACJ,SAAO;AAAA,IACL,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,UAAU;AAAA,EAAK,KAAK,UAAU,MAAM,CAAC,GAAG,CAAC;AAAA,IACpG,mBAAmB;AAAA,EACrB;AACF;AAGA,SAAS,YAAY,OAAgB;AACnC,QAAM,OAAkB;AAAA,IACtB,WAAW;AAAA,IACX,MAAM,CAAC;AAAA,IACP,GAAG;AAAA,IACH,QAAQ,CAAC;AAAA,IACT,QAAQ;AAAA,IACR,GAAI,SAAS,EAAE,MAAM;AAAA,IACrB,SAAS,CAAC;AAAA,EACZ;AACA,SAAO;AAAA,IACL,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM,mBAAmB,QAAQ,SAAS,KAAK,MAAM,EAAE,4BAAuB,CAAC;AAAA,IAClH,mBAAmB;AAAA,EACrB;AACF;AAGA,IAAM,oBAAoB,oBAAI,IAAY;AAG1C,IAAM,mBAAmB,oBAAI,QAAgB;AAC7C,SAAS,uBAAuB,QAAyB;AACvD,MAAI,iBAAiB,IAAI,MAAM,EAAG;AAClC,mBAAiB,IAAI,MAAM;AAC3B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,EAAE,aAAa,4BAA4B,UAAU,cAAc;AAAA,IACnE,OAAO;AAAA,MACL,UAAU,CAAC,EAAE,KAAK,oBAAoB,UAAU,eAAe,MAAM,YAAY,CAAC;AAAA,IACpF;AAAA,EACF;AACF;AAKO,SAAS,oBAAoB,QAAyB;AAC3D,yBAAuB,MAAM;AAC/B;AAGO,SAAS,UAAU,QAAmB,SAAiC;AAC5E,QAAM,QAAQ,QAAQ,SAAS;AAE/B,QAAM,EAAE,OAAO,IAAI;AACnB,MAAI,CAAC,QAAQ;AACX,UAAM,IAAI,MAAM,oDAAoD;AAAA,EACtE;AAEA,QAAM,OAAO,QAAQ,WAAW,WAC5B,iBAAiB,QAAQ,UAAU,QAAQ,uCAC3C;AACJ,QAAM,cACJ,6DACA,OACA;AAGF,QAAM,cAAc;AAAA,IAClB,KAAK,EAAE,OAAO,EAAE,SAAS,yCAAyC;AAAA,IAClE,GAAG,kBAAkB,KAAK;AAAA,EAC5B;AAGA,yBAAuB,MAAM;AAE7B,SAAO;AAAA,IACL,QAAQ,YAAY;AAAA,IACpB;AAAA,MACE,OAAO;AAAA,MACP;AAAA,MACA;AAAA;AAAA;AAAA,MAGA,cAAc;AAAA,QACZ,WAAW,EAAE,OAAO;AAAA,QACpB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;AAAA,QAC/C,GAAG,EAAE,OAAO;AAAA,QACZ,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;AAAA,QACjD,QAAQ,EAAE,QAAQ;AAAA,QAClB,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS;AAAA,QAClD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS;AAAA,QAClD,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS;AAAA,QACvD,UAAU,EAAE,OAAO,EAAE,SAAS;AAAA,QAC9B,YAAY,EAAE,QAAQ,EAAE,SAAS;AAAA,QACjC,OAAO,EAAE,OAAO,EAAE,SAAS;AAAA,QAC3B,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,EAAE,SAAS;AAAA,QAC7D,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,EAAE,SAAS;AAAA,QAC/D,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA,QAC1B,YAAY,EAAE,OAAO,EAAE,SAAS;AAAA,QAChC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,QACrC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,MACtC;AAAA,MACA,aAAa,EAAE,cAAc,MAAM,eAAe,MAAM;AAAA;AAAA;AAAA,MAGxD,OAAO;AAAA,QACL,IAAI,EAAE,aAAa,mBAAmB;AAAA,QACtC,yBAAyB;AAAA,MAC3B;AAAA,IACF;AAAA,IACA,OAAO,SAAkC;AACvC,YAAM,MAAoB,CAAC;AAC3B,UAAI;AACF,cAAM,OAAO,MAAM,OAAO,OAAO,KAAK,GAAG,GAAG,GAAG;AAC/C,0BAAkB,KAAK,IAAI;AAE3B,mBAAW,KAAK,mBAAmB,IAAI,GAAG;AACxC,cAAI,kBAAkB,IAAI,CAAC,EAAG;AAC9B,4BAAkB,IAAI,CAAC;AACvB,kBAAQ,KAAK,gBAAgB,CAAC,EAAE;AAAA,QAClC;AACA,cAAM,QAAQ,KAAK;AACnB,YAAI,KAAK,KAAK,WAAW,EAAG,QAAO,YAAY,KAAK;AACpD,YAAI,KAAK,OAAQ,MAAK,SAAS,EAAE,GAAI,KAAK,UAAU,CAAC,GAAI,GAAI,KAAK,OAAkB;AACpF,cAAM,OAAO,QAAQ,MAAM;AAAA,UACzB,WAAW,KAAK;AAAA,UAChB;AAAA,UACA,UAAU,KAAK;AAAA,UACf,YAAY,KAAK;AAAA,UACjB,WAAW,KAAK;AAAA,QAClB,CAAC;AACD,4BAAoB,IAAI;AACxB,eAAO,YAAY,IAAI;AAAA,MACzB,SAAS,KAAK;AACZ,cAAM,UAAU,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;AAC/D,eAAO;AAAA,UACL,SAAS;AAAA,UACT,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM,qBAAqB,OAAO,GAAG,CAAC;AAAA,QAC3E;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;AD7MA,IAAM,cAAc;AAAA,EAClB,IAAI,EAAE,aAAa,mBAAmB;AAAA,EACtC,yBAAyB;AAC3B;AAoBA,SAAS,YAAY,QAA+C,MAAiD;AACnH,MAAI,MAAM,QAAQ,MAAM,EAAG,QAAO,EAAE,MAAM,QAAQ,QAAQ,KAAK,QAAQ,QAAQ,KAAK,OAAO;AAC3F,SAAO;AAAA,IACL,MAAM,OAAO;AAAA,IACb,QAAQ,KAAK,UAAU,OAAO;AAAA,IAC9B,QAAQ,KAAK,UAAU,OAAO;AAAA,IAC9B,OAAO,OAAO;AAAA,EAChB;AACF;AAKA,SAAS,gBAAgB,MAAiB,MAA4B;AACpE,QAAM,aAAa,mBAAmB,IAAI;AAC1C,MAAI,WAAW,WAAW,EAAG,QAAO;AACpC,QAAM,QAAQ,CAAC,GAAI,KAAK,SAAS,CAAC,CAAE;AACpC,aAAW,KAAK,WAAY,KAAI,CAAC,MAAM,SAAS,CAAC,EAAG,OAAM,KAAK,CAAC;AAChE,SAAO,EAAE,GAAG,MAAM,MAAM;AAC1B;AAUO,SAAS,MAAM,QAA+C,OAAqB,CAAC,GAAc;AACvG,QAAM,EAAE,QAAQ,QAAQ,GAAG,YAAY,IAAI;AAC3C,QAAM,OAAO,YAAY,QAAQ,EAAE,QAAQ,OAAO,CAAC;AACnD,SAAO,gBAAgB,QAAQ,MAAM,WAAW,GAAG,IAAI;AACzD;AAOO,SAAS,UAAU,QAA+C,MAAmC;AAC1G,QAAM,EAAE,IAAI,MAAM,GAAG,UAAU,IAAI;AACnC,SAAO;AAAA,IACL,MAAM,MAAM,QAAQ,SAAS;AAAA,IAC7B,GAAI,KAAK,EAAE,GAAG,IAAI,CAAC;AAAA,IACnB,GAAI,OAAO,EAAE,KAAK,IAAI,CAAC;AAAA,EACzB;AACF;AASO,SAAS,QAAQ,QAA+C,OAAqB,CAAC,GAAqB;AAChH,QAAM,EAAE,QAAQ,QAAQ,GAAG,YAAY,IAAI;AAC3C,QAAM,OAAO,YAAY,QAAQ,EAAE,QAAQ,OAAO,CAAC;AACnD,QAAM,OAAO,gBAAgB,QAAQ,MAAM,WAAW,GAAG,IAAI;AAC7D,SAAO;AAAA,IACL,QAAQ,YAAY,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,EAAE,MAAO,MAAM,EAAE,KAAM,EAAE;AAAA,IACrF,WAAW,KAAK;AAAA,IAChB,GAAG,KAAK;AAAA,IACR,QAAQ,KAAK,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG;AAAA,IACpC,OAAO,KAAK,SAAS,CAAC;AAAA,EACxB;AACF;AAIO,SAAS,mBAAmB,MAA6B;AAC9D,QAAM,QAAkB,CAAC,KAAK,SAAS,WAAW;AAClD,aAAW,QAAQ,KAAK,OAAO;AAC7B,QAAI,UAAU,QAAQ,KAAK,SAAS,OAAO;AACzC,YAAM,QAAQ,KAAK,SAAS,OAAO,YAAO,KAAK,KAAK,MAAM;AAC1D,YAAM,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,SAAS,QAAG,GAAG,KAAK,EAAE;AAAA,IAC5D,WAAW,UAAU,QAAQ,KAAK,SAAS,QAAQ;AACjD,UAAI,KAAK,QAAS,OAAM,KAAK,KAAK,KAAK,OAAO,EAAE;AAAA,IAClD,WAAW,UAAU,MAAM;AACzB,YAAM,QAAQ,KAAK,KAAK,SAAS,KAAK,KAAK;AAC3C,YAAM,KAAK,KAAK,KAAK,SAAS,KAAK,EAAE,MAAM;AAC3C,YAAM,QAAQ,KAAK,KAAK,OAAO,SAAS,UAAU,KAAK,KAAK,MAAM,KAAK,GAAG,CAAC,KAAK;AAChF,YAAM,KAAK,KAAK,KAAK,GAAG,EAAE,KAAK,KAAK,KAAK,SAAS,WAAW,KAAK,KAAK,KAAK,MAAM,UAAU,KAAK,EAAE;AAAA,IACrG;AAAA,EACF;AACA,MAAI,KAAK,OAAO,OAAQ,OAAM,KAAK,SAAS,KAAK,MAAM,KAAK,GAAG,CAAC,EAAE;AAClE,SAAO,MAAM,KAAK,IAAI;AACxB;AAIO,SAAS,gBAAgB,MAAqB,MAA8D;AACjH,QAAM,OAAO,OAAO,MAAM,YAAY,aAAa,KAAK,QAAQ,IAAI,IAAK,MAAM,WAAW,mBAAmB,IAAI;AACjH,SAAO;AAAA,IACL,SAAS,CAAC,EAAE,MAAM,QAAiB,KAAK,CAAC;AAAA,IACzC,mBAAmB;AAAA,IACnB,OAAO;AAAA,EACT;AACF;AAKO,IAAM,0BAA0B;AAAA,EACrC,OAAOC,GAAE,OAAO,EAAE,SAAS;AAAA,EAC3B,SAASA,GAAE,OAAO,EAAE,SAAS;AAAA,EAC7B,OAAOA,GAAE,MAAMA,GAAE,OAAOA,GAAE,OAAO,GAAGA,GAAE,QAAQ,CAAC,CAAC;AAAA,EAChD,OAAOA,GAAE,MAAMA,GAAE,OAAO,CAAC,EAAE,SAAS;AACtC;AAOA,IAAM,qBAAqBA,GAAE,OAAO,CAAC,CAAC,EAAE,YAAY;AAyCpD,SAAS,aAAa,MAAyB;AAC7C,QAAM,QAAQ,KAAK,OAAO,SAAS,UAAU,KAAK,MAAM,KAAK,GAAG,CAAC,KAAK;AACtE,SAAO,GAAG,KAAK,SAAS,KAAK,SAAS,KAAK,KAAK,SAAS,WAAW,KAAK,KAAK,MAAM,UAAU,KAAK;AACrG;AAIA,SAAS,YAAY,QAA8B;AACjD,MAAI,IAAa;AACjB,WAAS,IAAI,GAAG,IAAI,GAAG,KAAK;AAC1B,UAAM,KAAM,EAAkE,MAAM;AACpF,UAAM,KAAM,EAA4D;AACxE,UAAM,OAAO,IAAI,SAAS,IAAI,WAAW,OAAO,GAAG,QAAQ,EAAE,QAAQ,QAAQ,EAAE,EAAE,YAAY,IAAI;AACjG,QAAI,QAAQ,SAAS,cAAc,SAAS,cAAc,SAAS,UAAW,QAAO;AACrF,UAAM,QAAQ,IAAI,aAAa,IAAI;AACnC,QAAI,CAAC,MAAO;AACZ,QAAI;AAAA,EACN;AACA,SAAO;AACT;AAGA,SAAS,eAAe,QAA4F;AAClH,MAAI,CAAC,OAAQ,QAAO,CAAC;AACrB,SAAO,OAAO,QAAQ,MAAM,EAAE,IAAI,CAAC,CAAC,MAAM,MAAM,OAAO;AAAA,IACrD;AAAA,IACA,MAAM,YAAY,MAAM;AAAA,IACxB,UAAU,CAAC,OAAO,WAAW;AAAA,EAC/B,EAAE;AACJ;AAGA,SAAS,YAAY,MAAuB;AAC1C,QAAM,OAAO,KAAK,OAAO,KAAK,KAAK,IAAI,MAAM;AAC7C,QAAM,SAAS,eAAe,KAAK,MAAM;AACzC,QAAM,YAAY,OAAO,SACrB,YAAY,OAAO,IAAI,CAAC,MAAM,GAAG,EAAE,IAAI,GAAG,EAAE,WAAW,KAAK,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,KAC7E;AACJ,SAAO,OAAO,KAAK,EAAE,KAAK,IAAI,MAAM,KAAK,WAAW,IAAI,SAAS;AACnE;AAGA,SAAS,YAAY,MAAiB,SAAkB;AACtD,SAAO;AAAA,IACL,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM,WAAW,aAAa,IAAI,EAAE,CAAC;AAAA,IACxE,mBAAmB;AAAA,IACnB,OAAO;AAAA,EACT;AACF;AAQO,SAAS,SAAS,QAAmB,MAA6B;AACvE,QAAM,EAAE,MAAM,IAAI;AAClB,MAAI,CAAC,MAAM,OAAQ,OAAM,IAAI,MAAM,qCAAqC;AACxE,QAAM,MAAM,MAAM,IAAI,CAAC,MAAM,EAAE,EAAE;AACjC,QAAM,OAAO,IAAI,KAAK,CAAC,IAAI,MAAM,IAAI,QAAQ,EAAE,MAAM,CAAC;AACtD,MAAI,KAAM,OAAM,IAAI,MAAM,gCAAgC,IAAI,GAAG;AAEjE,sBAAoB,MAAM;AAE1B,QAAM,OAAO,IAAI,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AAChD,QAAM,UAAU,MAAM,IAAI,WAAW,EAAE,KAAK,IAAI;AAEhD,QAAM,cAAc,KAAK,mBAAmB;AAC5C,QAAM,aAAa,KAAK,kBAAkB;AAE1C,QAAM,iBACJ;AAGF,SAAO;AAAA,IACL;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,aACE,2HAC6C,UAAU,+BACvD;AAAA,MACF,aAAa,CAAC;AAAA,MACd,aAAa,EAAE,cAAc,MAAM,eAAe,MAAM;AAAA,IAC1D;AAAA,IACA,MAAM;AACJ,YAAM,kBAAkB,MAAM,IAAI,CAAC,OAAO;AAAA,QACxC,IAAI,EAAE;AAAA,QACN,OAAO,EAAE;AAAA,QACT,aAAa,EAAE;AAAA,QACf,GAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK;AAAA,QAC7B,QAAQ,eAAe,EAAE,MAAM;AAAA,MACjC,EAAE;AACF,aAAO;AAAA,QACL,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM;AAAA,EAAqB,OAAO,GAAG,CAAC;AAAA,QACzE,mBAAmB,EAAE,OAAO,gBAAgB;AAAA,MAC9C;AAAA,IACF;AAAA,EACF;AAEA,QAAM,oBACJ,mFACG,cAAc;AAAA,EACI,OAAO,MAC3B,KAAK,oBAAoB;AAAA;AAAA,EAAO,KAAK,iBAAiB,KAAK;AAE9D,SAAO;AAAA,IACL;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,aAAa;AAAA,MACb,aAAa;AAAA,QACX,SAASA,GAAE,KAAK,GAA4B;AAAA,QAC5C,QAAQA,GAAE,OAAOA,GAAE,OAAO,GAAGA,GAAE,QAAQ,CAAC,EAAE,SAAS;AAAA,QACnD,SAASA,GAAE,OAAO,EAAE,SAAS;AAAA,MAC/B;AAAA,MACA,cAAc;AAAA,MACd,aAAa,EAAE,cAAc,MAAM,eAAe,MAAM;AAAA,MACxD,OAAO;AAAA,IACT;AAAA,IACA,OAAO,SAAkC;AACvC,YAAM,SAAS,OAAO,KAAK,OAAO;AAClC,YAAM,SAAS,KAAK,WAAW,OAAO,OAAO,KAAK,OAAO,IAAI;AAC7D,YAAM,OAAO,KAAK,IAAI,MAAM;AAC5B,UAAI,CAAC,MAAM;AACT,eAAO,EAAE,SAAS,MAAM,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM,GAAG,UAAU,mBAAmB,MAAM,IAAI,CAAC,EAAE;AAAA,MAChH;AACA,UAAI;AACF,YAAI,aAAsC,CAAC;AAC3C,YAAI,KAAK,QAAQ;AACf,gBAAM,SAASA,GACZ,OAAO,KAAK,MAAM,EAClB,OAAO,EACP,UAAU,KAAK,UAAU,CAAC,CAAC;AAC9B,cAAI,CAAC,OAAO,SAAS;AACnB,kBAAM,QAAQ,OAAO,MAAM,OAAO,CAAC;AACnC,kBAAM,OAAO,OAAO,KAAK,KAAK,GAAG,KAAK;AACtC,mBAAO;AAAA,cACL,SAAS;AAAA,cACT,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM,GAAG,UAAU,oBAAoB,IAAI,MAAM,OAAO,OAAO,GAAG,CAAC;AAAA,YACxG;AAAA,UACF;AACA,uBAAa,OAAO;AAAA,QACtB;AACA,cAAM,MAAM,MAAM,KAAK,OAAO,UAAU;AACxC,cAAM,EAAE,MAAM,QAAQ,IAAI,UAAU,MAAM,MAAM,EAAE,MAAM,KAAK,SAAS,OAAU;AAEhF,YAAI,UAAU,MAAM;AAClB,gBAAM,MAAM,CAAC,UAAkB,EAAE,SAAS,MAAe,SAAS,CAAC,EAAE,MAAM,QAAiB,KAAK,CAAC,EAAE;AACpG,cAAI,YAAY,IAAI,GAAG;AACrB,mBAAO,IAAI,GAAG,UAAU,WAAW,MAAM,6CAA6C;AAAA,UACxF;AACA,cAAI,CAAC,gBAAgB,IAAI,GAAG;AAC1B,kBAAM,IAAI,MAAM,8DAA8D;AAAA,UAChF;AACA,gBAAM,UAAU,KAAK,MAAM,OAAO,CAAC,OAAO,QAAQ,MAAM,GAAG,OAAO,MAAM;AACxE,cAAI,QAAQ,WAAW,GAAG;AACxB,kBAAM,WAAW,KAAK,MAAM,QAAQ,CAAC,OAAQ,UAAU,MAAM,GAAG,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAE;AAClF,kBAAM,OAAO,SAAS,SAClB,4BAA4B,SAAS,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC,KACpE;AACJ,mBAAO,IAAI,GAAG,UAAU,sBAAsB,MAAM,eAAe,MAAM,KAAK,IAAI,EAAE;AAAA,UACtF;AACA,cAAI,QAAQ,SAAS,GAAG;AACtB,mBAAO,IAAI,GAAG,UAAU,wBAAwB,MAAM,cAAc,MAAM,GAAG;AAAA,UAC/E;AACA,gBAAM,OAAO,QAAQ,CAAC;AACtB,cAAI,EAAE,UAAU,OAAO;AACrB,kBAAM,OAAO,UAAU,QAAQ,KAAK,SAAS,SAAS,eAAe;AACrE,mBAAO;AAAA,cACL,GAAG,UAAU,WAAW,MAAM,cAAc,MAAM,UAAU,IAAI;AAAA,YAClE;AAAA,UACF;AACA,iBAAO,YAAY,KAAK,IAAI;AAAA,QAC9B;AAEA,YAAI,gBAAgB,IAAI,EAAG,QAAO,gBAAgB,MAAM,EAAE,QAAQ,CAAC;AACnE,YAAI,YAAY,IAAI,EAAG,QAAO,YAAY,MAAM,OAAO;AACvD,cAAM,IAAI,MAAM,8DAA8D;AAAA,MAChF,SAAS,KAAK;AACZ,cAAM,UAAU,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;AAC/D,eAAO,EAAE,SAAS,MAAM,SAAS,CAAC,EAAE,MAAM,QAAiB,MAAM,GAAG,UAAU,YAAY,OAAO,GAAG,CAAC,EAAE;AAAA,MACzG;AAAA,IACF;AAAA,EACF;AACF;","names":["z","z"]}
|