From 6c16bd0d828ac90aedf8d89a50e45223e5b4b8ce Mon Sep 17 00:00:00 2001 From: wuqinchuan Date: Sun, 11 Jan 2026 20:42:14 +0800 Subject: [PATCH] perf: optimize tag graph response and surface LLM failures --- javascript/index.js | 2 +- scripts/iib/tag_graph.py | 276 +++++++++++++----- ...ckbox-951f37ba.js => Checkbox-431074e2.js} | 2 +- ...eItem-cc53e03a.js => FileItem-6ddd7179.js} | 2 +- ...5dc424f1.js => ImgSliPagePane-25a3c965.js} | 2 +- ...c6fa7f.js => MatchedImageGrid-59968c61.js} | 2 +- ...b35dd9.js => MatchedImageGrid-c0a36e04.js} | 2 +- ...4181f4c.js => MultiSelectKeep-f7eadb70.js} | 12 +- ...h-549f6935.js => SubstrSearch-0571f040.js} | 2 +- ...arch-3cb5874b.js => TagSearch-4ec898b0.js} | 2 +- ...-e239a03c.css => TopicSearch-179508c7.css} | 2 +- ...ch-4fe24c7f.js => TopicSearch-1abffd49.js} | 58 ++-- ...008db8e.js => _isIterateeCall-e2252db1.js} | 2 +- ...-0bd1b629.js => batchDownload-88ec1277.js} | 2 +- ...p-94fd8d18.js => emptyStartup-4685419f.js} | 2 +- ...-c284fbc0.js => globalSetting-ed72e088.js} | 2 +- ...dView-f8ee15ac.js => gridView-4048615e.js} | 2 +- .../{hook-4ff6f457.js => hook-47732221.js} | 2 +- .../{index-e9cc5bd5.js => index-11d9431b.js} | 2 +- .../{index-0205daf8.js => index-157194fb.js} | 12 +- .../{index-859cb083.js => index-1c4f06bb.js} | 2 +- .../{index-17a1bd90.js => index-7996ed59.js} | 2 +- .../{index-728b29ca.js => index-89286149.js} | 2 +- .../{index-6d8e3499.js => index-8929347d.js} | 2 +- .../{index-6a8edab1.js => index-8e3285c7.js} | 2 +- .../{index-b9ffc995.js => index-b39f3e91.js} | 2 +- .../{index-af89284c.js => index-e33c98d2.js} | 2 +- vue/dist/assets/isArrayLikeObject-55a21cf1.js | 1 - vue/dist/assets/isArrayLikeObject-ca08191a.js | 1 + ...Input-a524d3bc.js => numInput-8bb1e710.js} | 2 +- ..._index_0_scoped_bd954eda_lang-2254804f.js} | 2 +- ...ge-12e0ef07.js => randomImage-a0fc1235.js} | 2 +- ...-c9de01d4.js => searchHistory-5c5a132b.js} | 2 +- ...rtcut-eca2d427.js => shortcut-f1e6388a.js} | 2 +- ...View-2bd6cdf7.js => stackView-2425ddfa.js} | 2 +- ...13d2ea38.js => useGenInfoDiff-4c9e8f19.js} | 2 +- vue/dist/index.html | 2 +- vue/src/api/db.ts | 18 +- vue/src/page/TopicSearch/TagRelationGraph.vue | 42 ++- 39 files changed, 330 insertions(+), 152 deletions(-) rename vue/dist/assets/{Checkbox-951f37ba.js => Checkbox-431074e2.js} (97%) rename vue/dist/assets/{FileItem-cc53e03a.js => FileItem-6ddd7179.js} (98%) rename vue/dist/assets/{ImgSliPagePane-5dc424f1.js => ImgSliPagePane-25a3c965.js} (64%) rename vue/dist/assets/{MatchedImageGrid-e6c6fa7f.js => MatchedImageGrid-59968c61.js} (87%) rename vue/dist/assets/{MatchedImageGrid-23b35dd9.js => MatchedImageGrid-c0a36e04.js} (89%) rename vue/dist/assets/{MultiSelectKeep-74181f4c.js => MultiSelectKeep-f7eadb70.js} (90%) rename vue/dist/assets/{SubstrSearch-549f6935.js => SubstrSearch-0571f040.js} (93%) rename vue/dist/assets/{TagSearch-3cb5874b.js => TagSearch-4ec898b0.js} (99%) rename vue/dist/assets/{TopicSearch-e239a03c.css => TopicSearch-179508c7.css} (93%) rename vue/dist/assets/{TopicSearch-4fe24c7f.js => TopicSearch-1abffd49.js} (65%) rename vue/dist/assets/{_isIterateeCall-7008db8e.js => _isIterateeCall-e2252db1.js} (68%) rename vue/dist/assets/{batchDownload-0bd1b629.js => batchDownload-88ec1277.js} (65%) rename vue/dist/assets/{emptyStartup-94fd8d18.js => emptyStartup-4685419f.js} (99%) rename vue/dist/assets/{globalSetting-c284fbc0.js => globalSetting-ed72e088.js} (96%) rename vue/dist/assets/{gridView-f8ee15ac.js => gridView-4048615e.js} (66%) rename vue/dist/assets/{hook-4ff6f457.js => hook-47732221.js} (90%) rename vue/dist/assets/{index-e9cc5bd5.js => index-11d9431b.js} (87%) rename vue/dist/assets/{index-0205daf8.js => index-157194fb.js} (96%) rename vue/dist/assets/{index-859cb083.js => index-1c4f06bb.js} (53%) rename vue/dist/assets/{index-17a1bd90.js => index-7996ed59.js} (61%) rename vue/dist/assets/{index-728b29ca.js => index-89286149.js} (95%) rename vue/dist/assets/{index-6d8e3499.js => index-8929347d.js} (82%) rename vue/dist/assets/{index-6a8edab1.js => index-8e3285c7.js} (84%) rename vue/dist/assets/{index-b9ffc995.js => index-b39f3e91.js} (98%) rename vue/dist/assets/{index-af89284c.js => index-e33c98d2.js} (75%) delete mode 100644 vue/dist/assets/isArrayLikeObject-55a21cf1.js create mode 100644 vue/dist/assets/isArrayLikeObject-ca08191a.js rename vue/dist/assets/{numInput-a524d3bc.js => numInput-8bb1e710.js} (99%) rename vue/dist/assets/{numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js => numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js} (95%) rename vue/dist/assets/{randomImage-12e0ef07.js => randomImage-a0fc1235.js} (68%) rename vue/dist/assets/{searchHistory-c9de01d4.js => searchHistory-5c5a132b.js} (95%) rename vue/dist/assets/{shortcut-eca2d427.js => shortcut-f1e6388a.js} (96%) rename vue/dist/assets/{stackView-2bd6cdf7.js => stackView-2425ddfa.js} (96%) rename vue/dist/assets/{useGenInfoDiff-13d2ea38.js => useGenInfoDiff-4c9e8f19.js} (91%) diff --git a/javascript/index.js b/javascript/index.js index fec92c4..45b9eba 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -13,7 +13,7 @@ Promise.resolve().then(async () => { Infinite Image Browsing - + diff --git a/scripts/iib/tag_graph.py b/scripts/iib/tag_graph.py index e07b260..48b338e 100644 --- a/scripts/iib/tag_graph.py +++ b/scripts/iib/tag_graph.py @@ -5,15 +5,23 @@ Builds a multi-layer neural-network-style visualization with LLM-driven abstract import hashlib import json +import os +import time from typing import Dict, List, Optional from pydantic import BaseModel from fastapi import Depends, FastAPI, HTTPException from scripts.iib.db.datamodel import DataBase, GlobalSetting from scripts.iib.tool import normalize_output_lang +from scripts.iib.logger import logger # Cache version for tag abstraction - increment to invalidate all caches -TAG_ABSTRACTION_CACHE_VERSION = 2 +TAG_ABSTRACTION_CACHE_VERSION = 3 +TAG_GRAPH_CACHE_VERSION = 1 +_MAX_TAGS_FOR_LLM = int(os.getenv("IIB_TAG_GRAPH_MAX_TAGS_FOR_LLM", "200") or "200") +_TOPK_TAGS_FOR_LLM = int(os.getenv("IIB_TAG_GRAPH_TOPK_TAGS_FOR_LLM", "200") or "200") +_LLM_REQUEST_TIMEOUT_SEC = int(os.getenv("IIB_TAG_GRAPH_LLM_TIMEOUT_SEC", "30") or "30") +_LLM_MAX_ATTEMPTS = int(os.getenv("IIB_TAG_GRAPH_LLM_MAX_ATTEMPTS", "2") or "2") class TagGraphReq(BaseModel): @@ -113,13 +121,14 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } "max_tokens": 2048, } - # Retry up to 5 times + # Retry a few times then fallback quickly (to avoid frontend timeout on large datasets). last_error = "" - for attempt in range(1, 6): + for attempt in range(1, _LLM_MAX_ATTEMPTS + 1): try: - resp = requests.post(url, json=payload, headers=headers, timeout=60) + resp = requests.post(url, json=payload, headers=headers, timeout=_LLM_REQUEST_TIMEOUT_SEC) except requests.RequestException as e: last_error = f"network_error: {type(e).__name__}: {e}" + logger.warning("[tag_graph] llm_request_error attempt=%s err=%s", attempt, last_error) continue # Retry on 429 or 5xx, fail immediately on other 4xx @@ -127,14 +136,17 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } body = (resp.text or "")[:400] if resp.status_code == 429 or resp.status_code >= 500: last_error = f"api_error_retriable: status={resp.status_code}" + logger.warning("[tag_graph] llm_http_error attempt=%s status=%s body=%s", attempt, resp.status_code, body) continue # 4xx client error - fail immediately + logger.error("[tag_graph] llm_http_client_error attempt=%s status=%s body=%s", attempt, resp.status_code, body) raise Exception(f"API client error: {resp.status_code} {body}") try: data = resp.json() except Exception as e: last_error = f"response_not_json: {type(e).__name__}" + logger.warning("[tag_graph] llm_response_not_json attempt=%s err=%s body=%s", attempt, last_error, (resp.text or "")[:400]) continue choice0 = (data.get("choices") or [{}])[0] @@ -164,6 +176,7 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } if not json_str: last_error = f"no_json_found: {content[:200]}" + logger.warning("[tag_graph] llm_no_json attempt=%s err=%s", attempt, last_error) continue # Clean up common JSON issues @@ -175,55 +188,34 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } result = json.loads(json_str) except json.JSONDecodeError as e: last_error = f"json_parse_error: {e}" + logger.warning("[tag_graph] llm_json_parse_error attempt=%s err=%s json=%s", attempt, last_error, json_str[:400]) continue # Validate structure if not isinstance(result, dict) or "layers" not in result: last_error = f"invalid_structure: {str(result)[:200]}" + logger.warning("[tag_graph] llm_invalid_structure attempt=%s err=%s", attempt, last_error) continue # Success! return result - # All retries exhausted - # Fallback: create simple heuristic grouping - # Group by first character/prefix for basic organization - groups_dict = {} - for tag in tags: - # Simple heuristic: group by first 2 chars or common keywords - prefix = tag[:2] if len(tag) >= 2 else tag - if prefix not in groups_dict: - groups_dict[prefix] = [] - groups_dict[prefix].append(tag) - - # Merge small groups - merged_groups = [] - for prefix, tag_list in sorted(groups_dict.items()): - if len(merged_groups) > 0 and len(tag_list) < 3: - # Merge into last group if this group is too small - merged_groups[-1]["tags"].extend(tag_list) - else: - group_id = f"group{len(merged_groups) + 1}" - label = f"Group {len(merged_groups) + 1}" - merged_groups.append({ - "id": group_id, - "label": label, - "tags": tag_list - }) - - # Limit to max 12 groups - if len(merged_groups) > 12: - # Merge smallest groups - merged_groups = sorted(merged_groups, key=lambda g: len(g["tags"]), reverse=True)[:12] - - return { - "layers": [ - { - "level": 1, - "groups": merged_groups - } - ] - } + # No fallback: expose error to frontend, but log enough info for debugging. + logger.error( + "[tag_graph] llm_failed attempts=%s timeout_sec=%s last_error=%s", + _LLM_MAX_ATTEMPTS, + _LLM_REQUEST_TIMEOUT_SEC, + last_error, + ) + raise HTTPException( + status_code=500, + detail={ + "type": "tag_graph_llm_failed", + "attempts": _LLM_MAX_ATTEMPTS, + "timeout_sec": _LLM_REQUEST_TIMEOUT_SEC, + "last_error": last_error, + }, + ) return await asyncio.to_thread(_call_sync) @@ -241,6 +233,7 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } - Layer 1: Tag nodes (deduplicated cluster keywords) - Layer 2+: Abstract groupings (LLM-generated, max 2 layers) """ + t0 = time.time() # Validate if not req.folder_paths: raise HTTPException(400, "folder_paths is required") @@ -252,21 +245,25 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } from contextlib import closing with closing(conn.cursor()) as cur: + # Avoid full table scan on large DBs; we only need recent caches for matching. cur.execute( """SELECT cache_key, folders, result FROM topic_cluster_cache - ORDER BY updated_at DESC""" + ORDER BY updated_at DESC + LIMIT 200""" ) rows = cur.fetchall() # Find a cache that matches the folders (order-independent) folders_set = set(folders) row = None + topic_cluster_cache_key: Optional[str] = None for cache_row in rows: try: cached_folders = json.loads(cache_row[1]) if isinstance(cache_row[1], str) else cache_row[1] if isinstance(cached_folders, list) and set(cached_folders) == folders_set: - row = (cache_row[0], cache_row[2]) + topic_cluster_cache_key = str(cache_row[0] or "") + row = (topic_cluster_cache_key, cache_row[2]) break except Exception: continue @@ -288,6 +285,45 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } if not clusters: raise HTTPException(400, "No clusters found in result") + logger.info( + "[tag_graph] start folders=%s clusters=%s lang=%s", + len(folders), + len(clusters) if isinstance(clusters, list) else "n/a", + str(req.lang or ""), + ) + + # Graph cache (best-effort): cache by topic_cluster_cache_key + lang + version. + graph_cache_key = None + if topic_cluster_cache_key: + try: + graph_cache_key_hash = hashlib.md5( + json.dumps( + { + "v": TAG_GRAPH_CACHE_VERSION, + "topic_cluster_cache_key": topic_cluster_cache_key, + "lang": str(req.lang or ""), + }, + ensure_ascii=False, + sort_keys=True, + ).encode("utf-8") + ).hexdigest() + graph_cache_key = f"tag_graph_v{TAG_GRAPH_CACHE_VERSION}_{graph_cache_key_hash}" + cached_graph = GlobalSetting.get_setting(conn, graph_cache_key) + if cached_graph: + cached_graph_obj = json.loads(cached_graph) if isinstance(cached_graph, str) else cached_graph + if isinstance(cached_graph_obj, dict) and "layers" in cached_graph_obj and "links" in cached_graph_obj: + cached_graph_obj.setdefault("stats", {}) + if isinstance(cached_graph_obj["stats"], dict): + cached_graph_obj["stats"].setdefault("topic_cluster_cache_key", topic_cluster_cache_key) + logger.info( + "[tag_graph] cache_hit topic_cluster_cache_key=%s cost_ms=%s", + topic_cluster_cache_key, + int((time.time() - t0) * 1000), + ) + return cached_graph_obj + except Exception: + pass + # === Layer 0: Cluster Nodes === top_clusters = sorted(clusters, key=lambda c: c.get("size", 0), reverse=True) @@ -299,8 +335,6 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } cluster_title = cluster.get("title", "Untitled") cluster_size = cluster.get("size", 0) keywords = cluster.get("keywords", []) - paths = cluster.get("paths", []) - node_id = f"cluster_{cluster_id}" cluster_nodes.append(LayerNode( id=node_id, @@ -309,7 +343,8 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } metadata={ "type": "cluster", "image_count": cluster_size, - "paths": paths + # Do NOT include full paths list here (can be huge); fetch on demand. + "cluster_id": cluster_id, } )) @@ -382,14 +417,41 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } abstract_layers = [] layer1_to_2_links = [] - if len(selected_tags) > 3: # Only abstract if we have enough tags + # LLM abstraction: for large datasets, do TopK by total_images (frequency/weight) instead of skipping. + # This keeps response useful while controlling LLM latency and prompt size. + llm_tags = [t for (t, _stats) in sorted_tags][: max(0, int(_TOPK_TAGS_FOR_LLM))] + llm_tags_set = set(llm_tags) + # IMPORTANT: Do not gate LLM by total tag count; only use TopK tags for LLM input. + # Otherwise, large datasets would "skip" abstraction even though we already limited llm_tags. + should_use_llm = ( + len(llm_tags) > 3 + and len(llm_tags) <= _MAX_TAGS_FOR_LLM + and bool(openai_api_key) + and bool(openai_base_url) + ) + if not should_use_llm: + logger.info( + "[tag_graph] llm_disabled reasons={topk_tags:%s,max:%s,has_key:%s,has_base:%s}", + len(llm_tags), + _MAX_TAGS_FOR_LLM, + bool(openai_api_key), + bool(openai_base_url), + ) + logger.info( + "[tag_graph] tags_total=%s tags_for_llm=%s llm_enabled=%s", + len(selected_tags), + len(llm_tags), + bool(should_use_llm), + ) + + if should_use_llm: # Use language from request lang = req.lang or "en" # Generate cache key for this set of tags (with version) import hashlib - tags_sorted = sorted(selected_tags) - cache_input = f"v{TAG_ABSTRACTION_CACHE_VERSION}|{ai_model}|{lang}|{','.join(tags_sorted)}" + tags_sorted = sorted(llm_tags_set) + cache_input = f"v{TAG_ABSTRACTION_CACHE_VERSION}|{ai_model}|{lang}|topk={len(tags_sorted)}|{','.join(tags_sorted)}" cache_key_hash = hashlib.md5(cache_input.encode()).hexdigest() cache_key = f"tag_abstraction_v{TAG_ABSTRACTION_CACHE_VERSION}_{cache_key_hash}" @@ -404,13 +466,23 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } # Call LLM if not cached if not abstraction: - abstraction = await _call_llm_for_abstraction( - list(selected_tags), - lang, - ai_model, - openai_base_url, - openai_api_key - ) + t_llm = time.time() + try: + abstraction = await _call_llm_for_abstraction( + list(llm_tags_set), + lang, + ai_model, + openai_base_url, + openai_api_key + ) + except Exception as e: + logger.exception( + "[tag_graph] llm_call_failed cost_ms=%s err=%s", + int((time.time() - t_llm) * 1000), + f"{type(e).__name__}: {e}", + ) + raise + logger.info("[tag_graph] llm_done cost_ms=%s cached=%s", int((time.time() - t_llm) * 1000), False) # Save to cache if successful if abstraction and isinstance(abstraction, dict) and abstraction.get("layers"): @@ -418,6 +490,8 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } GlobalSetting.save_setting(conn, cache_key, json.dumps(abstraction, ensure_ascii=False)) except Exception: pass + else: + logger.info("[tag_graph] llm_done cost_ms=%s cached=%s", 0, True) # Build abstract layers from LLM response llm_layers = abstraction.get("layers", []) @@ -443,7 +517,7 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } total_size = sum( tag_stats.get(tag, {}).get("total_images", 0) for tag in contained_tags - if tag in selected_tags + if tag in llm_tags_set ) abstract_nodes.append(LayerNode( @@ -455,7 +529,7 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } # Create links from tags to this abstract node for tag in contained_tags: - if tag in selected_tags: + if tag in llm_tags_set: tag_id = f"tag_{tag}" layer1_to_2_links.append(GraphLink( source=tag_id, @@ -511,15 +585,79 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } all_links = [link.dict() for link in (layer0_to_1_links + layer1_to_2_links)] - return TagGraphResp( + stats = { + "total_clusters": len(clusters), + "selected_clusters": len(cluster_nodes), + "total_tags": len(tag_stats), + "selected_tags": len(tag_nodes), + "abstraction_layers": len(abstract_layers), + "total_links": len(all_links), + } + if topic_cluster_cache_key: + stats["topic_cluster_cache_key"] = topic_cluster_cache_key + + resp_obj = TagGraphResp( layers=layers, links=all_links, - stats={ - "total_clusters": len(clusters), - "selected_clusters": len(cluster_nodes), - "total_tags": len(tag_stats), - "selected_tags": len(tag_nodes), - "abstraction_layers": len(abstract_layers), - "total_links": len(all_links), - } + stats=stats, + ).dict() + + # Save graph cache (best-effort) + if graph_cache_key: + try: + GlobalSetting.save_setting(conn, graph_cache_key, json.dumps(resp_obj, ensure_ascii=False)) + conn.commit() + except Exception: + pass + + logger.info( + "[tag_graph] done nodes=%s links=%s abstraction_layers=%s cost_ms=%s", + sum(len(l.get("nodes") or []) for l in (resp_obj.get("layers") or []) if isinstance(l, dict)), + len(resp_obj.get("links") or []), + int((resp_obj.get("stats") or {}).get("abstraction_layers") or 0), + int((time.time() - t0) * 1000), ) + return resp_obj + + class ClusterPathsReq(BaseModel): + topic_cluster_cache_key: str + cluster_id: str + + @app.post( + f"{db_api_base}/cluster_tag_graph_cluster_paths", + dependencies=[Depends(verify_secret)], + ) + async def cluster_tag_graph_cluster_paths(req: ClusterPathsReq): + """ + Fetch full paths for a specific cluster from cached clustering result. + This avoids returning huge "paths" arrays inside cluster_tag_graph response. + """ + ck = str(req.topic_cluster_cache_key or "").strip() + cid = str(req.cluster_id or "").strip() + if not ck or not cid: + raise HTTPException(400, "topic_cluster_cache_key and cluster_id are required") + conn = DataBase.get_conn() + from contextlib import closing + with closing(conn.cursor()) as cur: + cur.execute("SELECT result FROM topic_cluster_cache WHERE cache_key = ?", (ck,)) + row = cur.fetchone() + if not row: + raise HTTPException(404, "topic_cluster_cache not found") + try: + result_obj = json.loads(row[0]) if isinstance(row[0], str) else row[0] + except Exception: + result_obj = None + if not isinstance(result_obj, dict): + raise HTTPException(400, "invalid cached result") + clusters = result_obj.get("clusters", []) + if not isinstance(clusters, list): + clusters = [] + for c in clusters: + if not isinstance(c, dict): + continue + if str(c.get("id", "")) == cid: + paths = c.get("paths", []) + if not isinstance(paths, list): + paths = [] + return {"paths": [str(p) for p in paths if p]} + raise HTTPException(404, "cluster not found") diff --git a/vue/dist/assets/Checkbox-951f37ba.js b/vue/dist/assets/Checkbox-431074e2.js similarity index 97% rename from vue/dist/assets/Checkbox-951f37ba.js rename to vue/dist/assets/Checkbox-431074e2.js index 43bec87..7d38a9e 100644 --- a/vue/dist/assets/Checkbox-951f37ba.js +++ b/vue/dist/assets/Checkbox-431074e2.js @@ -1 +1 @@ -import{d as E,bC as $,r as f,m as M,_ as T,a as c,an as W,h as m,c as v,P as z}from"./index-0205daf8.js";var G=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],H={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:z.any,required:Boolean};const L=E({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:$(H,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(a,d){var t=d.attrs,h=d.emit,g=d.expose,o=f(a.checked===void 0?a.defaultChecked:a.checked),i=f();M(function(){return a.checked},function(){o.value=a.checked}),g({focus:function(){var e;(e=i.value)===null||e===void 0||e.focus()},blur:function(){var e;(e=i.value)===null||e===void 0||e.blur()}});var l=f(),x=function(e){if(!a.disabled){a.checked===void 0&&(o.value=e.target.checked),e.shiftKey=l.value;var r={target:c(c({},a),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e};a.checked!==void 0&&(i.value.checked=!!a.checked),h("change",r),l.value=!1}},C=function(e){h("click",e),l.value=e.shiftKey};return function(){var n,e=a.prefixCls,r=a.name,s=a.id,p=a.type,b=a.disabled,K=a.readonly,P=a.tabindex,B=a.autofocus,S=a.value,N=a.required,_=T(a,G),q=t.class,D=t.onFocus,j=t.onBlur,w=t.onKeydown,A=t.onKeypress,F=t.onKeyup,y=c(c({},_),t),O=Object.keys(y).reduce(function(k,u){return(u.substr(0,5)==="aria-"||u.substr(0,5)==="data-"||u==="role")&&(k[u]=y[u]),k},{}),R=W(e,q,(n={},m(n,"".concat(e,"-checked"),o.value),m(n,"".concat(e,"-disabled"),b),n)),V=c(c({name:r,id:s,type:p,readonly:K,disabled:b,tabindex:P,class:"".concat(e,"-input"),checked:!!o.value,autofocus:B,value:S},O),{},{onChange:x,onClick:C,onFocus:D,onBlur:j,onKeydown:w,onKeypress:A,onKeyup:F,required:N});return v("span",{class:R},[v("input",c({ref:i},V),null),v("span",{class:"".concat(e,"-inner")},null)])}}});export{L as V}; +import{d as E,bC as $,r as f,m as M,_ as T,a as c,an as W,h as m,c as v,P as z}from"./index-157194fb.js";var G=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],H={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:z.any,required:Boolean};const L=E({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:$(H,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(a,d){var t=d.attrs,h=d.emit,g=d.expose,o=f(a.checked===void 0?a.defaultChecked:a.checked),i=f();M(function(){return a.checked},function(){o.value=a.checked}),g({focus:function(){var e;(e=i.value)===null||e===void 0||e.focus()},blur:function(){var e;(e=i.value)===null||e===void 0||e.blur()}});var l=f(),x=function(e){if(!a.disabled){a.checked===void 0&&(o.value=e.target.checked),e.shiftKey=l.value;var r={target:c(c({},a),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e};a.checked!==void 0&&(i.value.checked=!!a.checked),h("change",r),l.value=!1}},C=function(e){h("click",e),l.value=e.shiftKey};return function(){var n,e=a.prefixCls,r=a.name,s=a.id,p=a.type,b=a.disabled,K=a.readonly,P=a.tabindex,B=a.autofocus,S=a.value,N=a.required,_=T(a,G),q=t.class,D=t.onFocus,j=t.onBlur,w=t.onKeydown,A=t.onKeypress,F=t.onKeyup,y=c(c({},_),t),O=Object.keys(y).reduce(function(k,u){return(u.substr(0,5)==="aria-"||u.substr(0,5)==="data-"||u==="role")&&(k[u]=y[u]),k},{}),R=W(e,q,(n={},m(n,"".concat(e,"-checked"),o.value),m(n,"".concat(e,"-disabled"),b),n)),V=c(c({name:r,id:s,type:p,readonly:K,disabled:b,tabindex:P,class:"".concat(e,"-input"),checked:!!o.value,autofocus:B,value:S},O),{},{onChange:x,onClick:C,onFocus:D,onBlur:j,onKeydown:w,onKeypress:A,onKeyup:F,required:N});return v("span",{class:R},[v("input",c({ref:i},V),null),v("span",{class:"".concat(e,"-inner")},null)])}}});export{L as V}; diff --git a/vue/dist/assets/FileItem-cc53e03a.js b/vue/dist/assets/FileItem-6ddd7179.js similarity index 98% rename from vue/dist/assets/FileItem-cc53e03a.js rename to vue/dist/assets/FileItem-6ddd7179.js index f012dc4..4cd5b91 100644 --- a/vue/dist/assets/FileItem-cc53e03a.js +++ b/vue/dist/assets/FileItem-6ddd7179.js @@ -1,3 +1,3 @@ -var ut=Object.defineProperty;var dt=(i,n,e)=>n in i?ut(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var q=(i,n,e)=>(dt(i,typeof n!="symbol"?n+"":n,e),e);import{c as I,A as Y,dy as le,O as de,am as ye,bk as ct,dk as ft,c0 as ht,dz as gt,r as L,cU as pt,bF as De,dA as mt,p as vt,dB as xe,bB as yt,dC as be,dD as bt,aH as At,G as H,dE as St,C as kt,dF as _t,n as ce,m as ne,aU as It,t as Ue,a1 as Ae,c9 as Je,aJ as wt,dG as We,dH as Ct,Q as Et,x as Tt,ct as fe,d3 as Ke,d4 as Ge,aP as Se,aQ as ke,az as Ye,U as l,a2 as F,dI as Pt,dJ as Ot,dK as Dt,c5 as zt,dL as Nt,at as Qt,V as c,aG as Z,$ as y,a3 as A,Z as V,a8 as x,c6 as ze,c7 as Mt,dM as $t,a7 as qe,ag as W,d as _e,X as S,Y as h,a4 as $,al as Ze,dr as Bt,dq as Ft,M as Xe,W as a,a0 as et,dl as Rt,dN as Ne,af as Lt,dO as Vt,dm as jt,dP as Ht,dQ as xt,dR as ae,cZ as Ut,dS as Jt,dT as Wt,dU as Kt}from"./index-0205daf8.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";import{i as Gt}from"./_isIterateeCall-7008db8e.js";import{_ as Yt}from"./index-6d8e3499.js";import{D as G,a as he}from"./index-e9cc5bd5.js";/* empty css */G.Button=he;G.install=function(i){return i.component(G.name,G),i.component(he.name,he),i};var qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const Zt=qt;function Qe(i){for(var n=1;n{const r=ht();de(r),X.has(r)||(X.set(r,ye(i(r,t??(n==null?void 0:n())))),ct(()=>{X.delete(r)}));const o=X.get(r);return de(o),{state:o,toRefs(){return ft(o)}}}}}var vi={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const yi=vi;function Be(i){for(var n=1;n{const i=L([]);return{selectdFiles:i,addFiles:e=>{i.value=pt([...i.value,...e])}}});class se{constructor(n,e=mt.CREATED_TIME_DESC){q(this,"root");q(this,"execQueue",[]);q(this,"walkerInitPromsie");this.entryPath=n,this.sortMethod=e,this.root={children:[],info:{name:this.entryPath,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:this.entryPath}},this.walkerInitPromsie=new Promise(t=>{De([this.entryPath]).then(async r=>{this.root.info=r[this.entryPath],await this.fetchChildren(this.root),t()})})}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const n=e=>e.children.map(t=>{if(t.info.type==="dir")return n(t);if(be(t.info.name))return t.info}).filter(t=>t).flat(1);return n(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(n){const{files:e}=await vt(n.info.fullpath);return n.children=xe(e,this.sortMethod).map(t=>({info:t,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...n.children.filter(t=>t.info.type==="dir").map(t=>({fn:()=>this.fetchChildren(t),...t}))),n}async next(){await this.walkerInitPromsie;const n=ai(this.execQueue);if(!n)return null;const e=await n.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},e}async isExpired(){const n=[this.root.info],e=r=>{for(const o of r.children)o.info.type==="dir"&&(n.push(o.info),e(o))};e(this.root);const t=await De(n.map(r=>r.fullpath));for(const r of n)if(!yt(r,t[r.fullpath]))return!0;return!1}async seamlessRefresh(n,e=L(!1)){const t=performance.now(),r=new se(this.entryPath,this.sortMethod);for(await r.walkerInitPromsie;!r.isCompleted&&r.images.lengthn in i?ut(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var q=(i,n,e)=>(dt(i,typeof n!="symbol"?n+"":n,e),e);import{c as I,A as Y,dz as le,O as de,am as ye,bk as ct,dl as ft,c0 as ht,dA as gt,r as L,cV as pt,bF as De,dB as mt,p as vt,dC as xe,bB as yt,dD as be,dE as bt,aH as At,G as H,dF as St,C as kt,dG as _t,n as ce,m as ne,aU as It,t as Ue,a1 as Ae,c9 as Je,aJ as wt,dH as We,dI as Ct,Q as Et,x as Tt,ct as fe,d4 as Ke,d5 as Ge,aP as Se,aQ as ke,az as Ye,U as l,a2 as F,dJ as Pt,dK as Ot,dL as Dt,c5 as zt,dM as Nt,at as Qt,V as c,aG as Z,$ as y,a3 as A,Z as V,a8 as x,c6 as ze,c7 as Mt,dN as $t,a7 as qe,ag as W,d as _e,X as S,Y as h,a4 as $,al as Ze,ds as Bt,dr as Ft,M as Xe,W as a,a0 as et,dm as Rt,dO as Ne,af as Lt,dP as Vt,dn as jt,dQ as Ht,dR as xt,dS as ae,c_ as Ut,dT as Jt,dU as Wt,dV as Kt}from"./index-157194fb.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js";import{i as Gt}from"./_isIterateeCall-e2252db1.js";import{_ as Yt}from"./index-8929347d.js";import{D as G,a as he}from"./index-11d9431b.js";/* empty css */G.Button=he;G.install=function(i){return i.component(G.name,G),i.component(he.name,he),i};var qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const Zt=qt;function Qe(i){for(var n=1;n{const r=ht();de(r),X.has(r)||(X.set(r,ye(i(r,t??(n==null?void 0:n())))),ct(()=>{X.delete(r)}));const o=X.get(r);return de(o),{state:o,toRefs(){return ft(o)}}}}}var vi={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const yi=vi;function Be(i){for(var n=1;n{const i=L([]);return{selectdFiles:i,addFiles:e=>{i.value=pt([...i.value,...e])}}});class se{constructor(n,e=mt.CREATED_TIME_DESC){q(this,"root");q(this,"execQueue",[]);q(this,"walkerInitPromsie");this.entryPath=n,this.sortMethod=e,this.root={children:[],info:{name:this.entryPath,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:this.entryPath}},this.walkerInitPromsie=new Promise(t=>{De([this.entryPath]).then(async r=>{this.root.info=r[this.entryPath],await this.fetchChildren(this.root),t()})})}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const n=e=>e.children.map(t=>{if(t.info.type==="dir")return n(t);if(be(t.info.name))return t.info}).filter(t=>t).flat(1);return n(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(n){const{files:e}=await vt(n.info.fullpath);return n.children=xe(e,this.sortMethod).map(t=>({info:t,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...n.children.filter(t=>t.info.type==="dir").map(t=>({fn:()=>this.fetchChildren(t),...t}))),n}async next(){await this.walkerInitPromsie;const n=ai(this.execQueue);if(!n)return null;const e=await n.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},e}async isExpired(){const n=[this.root.info],e=r=>{for(const o of r.children)o.info.type==="dir"&&(n.push(o.info),e(o))};e(this.root);const t=await De(n.map(r=>r.fullpath));for(const r of n)if(!yt(r,t[r.fullpath]))return!0;return!1}async seamlessRefresh(n,e=L(!1)){const t=performance.now(),r=new se(this.entryPath,this.sortMethod);for(await r.walkerInitPromsie;!r.isCompleted&&r.images.length
'};e.configure=function(u){var d,s;for(d in u)s=u[d],s!==void 0&&u.hasOwnProperty(d)&&(t[d]=s);return this},e.status=null,e.set=function(u){var d=e.isStarted();u=r(u,t.minimum,1),e.status=u===1?null:u;var s=e.render(!d),b=s.querySelector(t.barSelector),w=t.speed,M=t.easing;return s.offsetWidth,f(function(p){t.positionUsing===""&&(t.positionUsing=e.getPositioningCSS()),g(b,v(u,w,M)),u===1?(g(s,{transition:"none",opacity:1}),s.offsetWidth,setTimeout(function(){g(s,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){e.remove(),p()},w)},w)):setTimeout(p,w)}),this},e.isStarted=function(){return typeof e.status=="number"},e.start=function(){e.status||e.set(0);var u=function(){setTimeout(function(){e.status&&(e.trickle(),u())},t.trickleSpeed)};return t.trickle&&u(),this},e.done=function(u){return!u&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(u){var d=e.status;return d?d>1?void 0:(typeof u!="number"&&(d>=0&&d<.2?u=.1:d>=.2&&d<.5?u=.04:d>=.5&&d<.8?u=.02:d>=.8&&d<.99?u=.005:u=0),d=r(d+u,0,.994),e.set(d)):e.start()},e.trickle=function(){return e.inc()},function(){var u=0,d=0;e.promise=function(s){return!s||s.state()==="resolved"?this:(d===0&&e.start(),u++,d++,s.always(function(){d--,d===0?(u=0,e.done()):e.set((u-d)/u)}),this)}}(),e.getElement=function(){var u=e.getParent();if(u){var d=Array.prototype.slice.call(u.querySelectorAll(".nprogress")).filter(function(s){return s.parentElement===u});if(d.length>0)return d[0]}return null},e.getParent=function(){if(t.parent instanceof HTMLElement)return t.parent;if(typeof t.parent=="string")return document.querySelector(t.parent)},e.render=function(u){if(e.isRendered())return e.getElement();N(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.className="nprogress",d.innerHTML=t.template;var s=d.querySelector(t.barSelector),b=u?"-100":o(e.status||0),w=e.getParent(),M;return g(s,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),t.showSpinner||(M=d.querySelector(t.spinnerSelector),M&&j(M)),w!=document.body&&N(w,"nprogress-custom-parent"),w.appendChild(d),d},e.remove=function(){e.status=null,T(document.documentElement,"nprogress-busy"),T(e.getParent(),"nprogress-custom-parent");var u=e.getElement();u&&j(u)},e.isRendered=function(){return!!e.getElement()},e.getPositioningCSS=function(){var u=document.body.style,d="WebkitTransform"in u?"Webkit":"MozTransform"in u?"Moz":"msTransform"in u?"ms":"OTransform"in u?"O":"";return d+"Perspective"in u?"translate3d":d+"Transform"in u?"translate":"margin"};function r(u,d,s){return us?s:u}function o(u){return(-1+u)*100}function v(u,d,s){var b;return t.positionUsing==="translate3d"?b={transform:"translate3d("+o(u)+"%,0,0)"}:t.positionUsing==="translate"?b={transform:"translate("+o(u)+"%,0)"}:b={"margin-left":o(u)+"%"},b.transition="all "+d+"ms "+s,b}var f=function(){var u=[];function d(){var s=u.shift();s&&s(d)}return function(s){u.push(s),u.length==1&&d()}}(),g=function(){var u=["Webkit","O","Moz","ms"],d={};function s(p){return p.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(C,E){return E.toUpperCase()})}function b(p){var C=document.body.style;if(p in C)return p;for(var E=u.length,Q=p.charAt(0).toUpperCase()+p.slice(1),m;E--;)if(m=u[E]+Q,m in C)return m;return p}function w(p){return p=s(p),d[p]||(d[p]=b(p))}function M(p,C,E){C=w(C),p.style[C]=E}return function(p,C){var E=arguments,Q,m;if(E.length==2)for(Q in C)m=C[Q],m!==void 0&&C.hasOwnProperty(Q)&&M(p,Q,m);else M(p,E[1],E[2])}}();function _(u,d){var s=typeof u=="string"?u:P(u);return s.indexOf(" "+d+" ")>=0}function N(u,d){var s=P(u),b=s+d;_(s,d)||(u.className=b.substring(1))}function T(u,d){var s=P(u),b;_(u,d)&&(b=s.replace(" "+d+" "," "),u.className=b.substring(1,b.length-1))}function P(u){return(" "+(u&&u.className||"")+" ").replace(/\s+/gi," ")}function j(u){u&&u.parentNode&&u.parentNode.removeChild(u)}return e})})(nt);var wi=nt.exports;const Gs=At(wi);function Ys({fetchNext:i}={}){const{scroller:n,sortedFiles:e,sortMethod:t,currLocation:r,stackViewEl:o,canLoadNext:v,previewIdx:f,props:g,walker:_,getViewableAreaFiles:N}=re().toRefs(),{state:T}=re(),P=L(!1),j=L(K.defaultGridCellWidth),u=H(()=>j.value+16),d=44,{width:s}=St(o),b=H(()=>~~(s.value/u.value)),w=ye(new Map),M=H(()=>{const O=u.value;return{first:O+(j.value<=160?0:d),second:O}}),p=L(!1),C=async()=>{var O;if(!(p.value||g.value.mode!=="walk"||!v.value))try{p.value=!0,await((O=_.value)==null?void 0:O.next())}finally{p.value=!1}},E=async(O=!1)=>{const k=n.value,R=()=>O?f.value:(k==null?void 0:k.$_endIndex)??0,D=()=>{const B=e.value.length,J=50;return B?i?R()>B-J:R()>B-J&&v.value:!0};for(;D();){await Ue(30);const B=await(i??C)();if(typeof B=="boolean"&&!B)return}};T.useEventListen("loadNextDir",kt(async(O=!1)=>{await E(O),g.value.mode==="walk"&&Q()})),T.useEventListen("viewableAreaFilesChange",()=>{const O=N.value(),k=O.filter(D=>D.is_under_scanned_path&&be(D.name)).map(D=>D.fullpath);Ci.fetchImageTags(k);const R=O.filter(D=>D.is_under_scanned_path&&D.type==="dir"&&!w.has(D.fullpath)).map(D=>D.fullpath);R.length&&_t(R).then(D=>{for(const B in D)if(Object.prototype.hasOwnProperty.call(D,B)){const J=D[B];w.set(B,J)}})}),T.useEventListen("refresh",async()=>{T.eventEmitter.emit("viewableAreaFilesChange")});const Q=ce(()=>T.eventEmitter.emit("viewableAreaFilesChange"),300);ne(r,Q);const m=ce(async()=>{await E(),Q()},150);return{gridItems:b,sortedFiles:e,sortMethodConv:It,moreActionsDropdownShow:P,gridSize:u,sortMethod:t,onScroll:m,loadNextDir:C,loadNextDirLoading:p,canLoadNext:v,itemSize:M,cellWidth:j,dirCoverCache:w}}const qs=new Map,K=Ae(),Zs=Ii(),Ci=Je(),Xs=wt(),er=new BroadcastChannel("iib-image-transfer-bus"),{eventEmitter:tr,useEventListen:ir}=We(),{useHookShareState:re}=mi((i,{images:n})=>{const e=L({tabIdx:-1,paneIdx:-1}),t=H(()=>Et(r.value)),r=L([]),o=H(()=>{var C;return r.value.map(E=>E.curr).slice((C=K.conf)!=null&&C.is_win&&e.value.mode!=="scanned-fixed"?1:0)}),v=H(()=>Tt(...o.value)),f=H(()=>{var C,E;return e.value.mode==="scanned-fixed"?((E=(C=r.value)==null?void 0:C[0])==null?void 0:E.curr)??"":e.value.mode==="walk"?e.value.path??"":r.value.length===1?"/":v.value}),g=L(K.defaultSortingMethod),_=L(e.value.mode=="walk"?new se(e.value.path,g.value):void 0);ne([()=>e.value.mode,()=>e.value.path,g],async([C,E,Q])=>{var m;C==="walk"?(_.value=new se(E,Q),r.value=[{files:[],curr:E}],await Ue(),await((m=_.value)==null?void 0:m.reset()),M.eventEmitter.emit("loadNextDir")):_.value=void 0});const N=ye(new Set);ne(t,()=>N.clear());const T=H(()=>{var m;if(n.value)return n.value;if(_.value)return _.value.images.filter(O=>!N.has(O.fullpath));if(!t.value)return[];const C=((m=t.value)==null?void 0:m.files)??[],E=g.value;return xe((O=>{const k=K.fileTypeFilter;return k.includes("all")||k.length===0?O:O.filter(R=>!!(R.type==="dir"||k.includes("image")&&fe(R.name)||k.includes("video")&&Ke(R.name)||k.includes("audio")&&Ge(R.name)))})(C),E).filter(O=>!N.has(O.fullpath))}),P=L([]),j=L(-1),u=H(()=>_.value?!_.value.isCompleted:!1),d=L(!1),s=L(!1),b=L(),w=()=>{var C,E,Q;return(Q=(E=(C=K.tabList)==null?void 0:C[e.value.tabIdx])==null?void 0:E.panes)==null?void 0:Q[e.value.paneIdx]},M=We();M.useEventListen("selectAll",()=>{console.log(`select all 0 -> ${T.value.length}`),P.value=gi(0,T.value.length)});const p=()=>{const C=b.value;if(C){const E=Math.max(C.$_startIndex-10,0);return T.value.slice(E,C.$_endIndex+10)}return[]};return{previewing:s,spinning:d,canLoadNext:u,multiSelectedIdxs:P,previewIdx:j,basePath:o,currLocation:f,currPage:t,stack:r,sortMethod:g,sortedFiles:T,scroller:b,stackViewEl:L(),props:e,getPane:w,walker:_,deletedFiles:N,getViewableAreaFiles:p,...M}},()=>({images:L()}));function nr(){const{eventEmitter:i,multiSelectedIdxs:n,sortedFiles:e}=re().toRefs();return{onSelectAll:()=>i.value.emit("selectAll"),onReverseSelect:()=>{n.value=e.value.map((v,f)=>f).filter(v=>!n.value.includes(v))},onClearAllSelected:()=>{n.value=[]}}}const sr=()=>{const{stackViewEl:i}=re().toRefs(),n=L(-1);return Ct(i,e=>{var r;let t=e.target;for(;t.parentElement;)if(t=t.parentElement,t.tagName.toLowerCase()==="li"&&t.classList.contains("file-item-trigger")){const o=(r=t.dataset)==null?void 0:r.idx;o&&Number.isSafeInteger(+o)&&(n.value=+o);return}}),{showMenuIdx:n}};function Ei(){var i=window.navigator.userAgent,n=i.indexOf("MSIE ");if(n>0)return parseInt(i.substring(n+5,i.indexOf(".",n)),10);var e=i.indexOf("Trident/");if(e>0){var t=i.indexOf("rv:");return parseInt(i.substring(t+3,i.indexOf(".",t)),10)}var r=i.indexOf("Edge/");return r>0?parseInt(i.substring(r+5,i.indexOf(".",r)),10):-1}let te;function ge(){ge.init||(ge.init=!0,te=Ei()!==-1)}var oe={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ge(),Ye(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const i=document.createElement("object");this._resizeObject=i,i.setAttribute("aria-hidden","true"),i.setAttribute("tabindex",-1),i.onload=this.addResizeHandlers,i.type="text/html",te&&this.$el.appendChild(i),i.data="about:blank",te||this.$el.appendChild(i)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!te&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Ti=Pt();Se("data-v-b329ee4c");const Pi={class:"resize-observer",tabindex:"-1"};ke();const Oi=Ti((i,n,e,t,r,o)=>(l(),F("div",Pi)));oe.render=Oi;oe.__scopeId="data-v-b329ee4c";oe.__file="src/components/ResizeObserver.vue";function ie(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ie=function(n){return typeof n}:ie=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ie(i)}function Di(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Le(i,n){for(var e=0;ei.length)&&(n=i.length);for(var e=0,t=new Array(n);e2&&arguments[2]!==void 0?arguments[2]:{},t,r,o,v=function(g){for(var _=arguments.length,N=new Array(_>1?_-1:0),T=1;T<_;T++)N[T-1]=arguments[T];if(o=N,!(t&&g===r)){var P=e.leading;typeof P=="function"&&(P=P(g,r)),(!t||g!==r)&&P&&i.apply(void 0,[g].concat(Ve(o))),r=g,clearTimeout(t),t=setTimeout(function(){i.apply(void 0,[g].concat(Ve(o))),t=0},n)}};return v._clear=function(){clearTimeout(t),t=null},v}function st(i,n){if(i===n)return!0;if(ie(i)==="object"){for(var e in i)if(!st(i[e],n[e]))return!1;return!0}return!1}var Ri=function(){function i(n,e,t){Di(this,i),this.el=n,this.observer=null,this.frozen=!1,this.createObserver(e,t)}return zi(i,[{key:"createObserver",value:function(e,t){var r=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Bi(e),this.callback=function(f,g){r.options.callback(f,g),f&&r.options.once&&(r.frozen=!0,r.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},v=o.leading;this.callback=Fi(this.callback,this.options.throttle,{leading:function(g){return v==="both"||v==="visible"&&g||v==="hidden"&&!g}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(f){var g=f[0];if(f.length>1){var _=f.find(function(T){return T.isIntersecting});_&&(g=_)}if(r.callback){var N=g.isIntersecting&&g.intersectionRatio>=r.threshold;if(N===r.oldResult)return;r.oldResult=N,r.callback(N,g)}},this.options.intersection),Ye(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),i}();function rt(i,n,e){var t=n.value;if(t)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new Ri(i,t,e);i._vue_visibilityState=r}}function Li(i,n,e){var t=n.value,r=n.oldValue;if(!st(t,r)){var o=i._vue_visibilityState;if(!t){ot(i);return}o?o.createObserver(t,e):rt(i,{value:t},e)}}function ot(i){var n=i._vue_visibilityState;n&&(n.destroyObserver(),delete i._vue_visibilityState)}var Vi={beforeMount:rt,updated:Li,unmounted:ot},ji={itemsLimit:1e3},Hi=/(auto|scroll)/;function lt(i,n){return i.parentNode===null?n:lt(i.parentNode,n.concat([i]))}var ue=function(n,e){return getComputedStyle(n,null).getPropertyValue(e)},xi=function(n){return ue(n,"overflow")+ue(n,"overflow-y")+ue(n,"overflow-x")},Ui=function(n){return Hi.test(xi(n))};function je(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var n=lt(i.parentNode,[]),e=0;e{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const i=this.$_lastUpdateScrollPosition;typeof i=="number"&&this.$nextTick(()=>{this.scrollToPosition(i)})},beforeUnmount(){this.removeListeners()},methods:{addView(i,n,e,t,r){const o=Ot({id:Gi++,index:n,used:!0,key:t,type:r}),v=Dt({item:e,position:0,nr:o});return i.push(v),v},unuseView(i,n=!1){const e=this.$_unusedViews,t=i.nr.type;let r=e.get(t);r||(r=[],e.set(t,r)),r.push(i),n||(i.nr.used=!1,i.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(i){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const n=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});n(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&n()},this.updateInterval))}},handleVisibilityChange(i,n){this.ready&&(i||n.boundingClientRect.width!==0||n.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(i,n=!1){const e=this.itemSize,t=this.gridItems||1,r=this.itemSecondarySize||e,o=this.$_computedMinItemSize,v=this.typeField,f=this.simpleArray?null:this.keyField,g=this.items,_=g.length,N=this.sizes,T=this.$_views,P=this.$_unusedViews,j=this.pool,u=this.itemIndexByKey;let d,s,b,w,M;if(!_)d=s=w=M=b=0;else if(this.$_prerender)d=w=0,s=M=Math.min(this.prerender,g.length),b=null;else{const k=this.getScroll();if(n){let B=k.start-this.$_lastUpdateScrollPosition;if(B<0&&(B=-B),e===null&&Bk.start&&(Pe=U),U=~~((J+Pe)/2);while(U!==Oe);for(U<0&&(U=0),d=U,b=N[_-1].accumulator,s=U;s<_&&N[s].accumulator_&&(s=_)),w=d;w<_&&D+N[w].accumulator_&&(s=_),w<0&&(w=0),M>_&&(M=_),b=Math.ceil(_/t)*e}}s-d>ji.itemsLimit&&this.itemsLimitError(),this.totalSize=b;let p;const C=d<=this.$_endIndex&&s>=this.$_startIndex;if(C)for(let k=0,R=j.length;k=s)&&this.unuseView(p));const E=C?null:new Map;let Q,m,O;for(let k=d;k=D.length)&&(p=this.addView(j,k,Q,R,m),this.unuseView(p,!0),D=P.get(m)),p=D[O],E.set(m,O+1)),T.delete(p.nr.key),p.nr.used=!0,p.nr.index=k,p.nr.key=R,p.nr.type=m,T.set(R,p),B=!0;else if(!p.nr.used&&(p.nr.used=!0,p.nr.index=k,B=!0,D)){const J=D.indexOf(p);J!==-1&&D.splice(J,1)}p.item=Q,B&&(k===g.length-1&&this.$emit("scroll-end"),k===0&&this.$emit("scroll-start")),e===null?(p.position=N[k-1].accumulator,p.offset=0):(p.position=Math.floor(k/t)*e,p.offset=k%t*r)}return this.$_startIndex=d,this.$_endIndex=s,this.emitUpdate&&this.$emit("update",d,s,w,M),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:C}},getListenerTarget(){let i=je(this.$el);return window.document&&(i===window.document.documentElement||i===window.document.body)&&(i=window),i},getScroll(){const{$el:i,direction:n}=this,e=n==="vertical";let t;if(this.pageMode){const r=i.getBoundingClientRect(),o=e?r.height:r.width;let v=-(e?r.top:r.left),f=e?window.innerHeight:window.innerWidth;v<0&&(f+=v,v=0),v+f>o&&(f=o-v),t={start:v,end:v+f}}else e?t={start:i.scrollTop,end:i.scrollTop+i.clientHeight}:t={start:i.scrollLeft,end:i.scrollLeft+i.clientWidth};return t},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ve?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(i){let n;const e=this.gridItems||1;this.itemSize===null?n=i>0?this.sizes[i-1].accumulator:0:n=Math.floor(i/e)*this.itemSize,this.scrollToPosition(n)},scrollToPosition(i){const n=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let e,t,r;if(this.pageMode){const o=je(this.$el),v=o.tagName==="HTML"?0:o[n.scroll],f=o.getBoundingClientRect(),_=this.$el.getBoundingClientRect()[n.start]-f[n.start];e=o,t=n.scroll,r=i+v+_}else e=this.$el,t=n.scroll,r=i;e[t]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((i,n)=>i.nr.index-n.nr.index)}}};const Yi={key:0,ref:"before",class:"vue-recycle-scroller__slot"},qi={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Zi(i,n,e,t,r,o){const v=zt("ResizeObserver"),f=Nt("observe-visibility");return Qt((l(),c("div",{class:W(["vue-recycle-scroller",{ready:r.ready,"page-mode":e.pageMode,[`direction-${i.direction}`]:!0}]),onScrollPassive:n[0]||(n[0]=(...g)=>o.handleScroll&&o.handleScroll(...g))},[i.$slots.before?(l(),c("div",Yi,[Z(i.$slots,"before")],512)):y("v-if",!0),(l(),F(ze(e.listTag),{ref:"wrapper",style:qe({[i.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:W(["vue-recycle-scroller__item-wrapper",e.listClass])},{default:A(()=>[(l(!0),c(V,null,x(r.pool,g=>(l(),F(ze(e.itemTag),Mt({key:g.nr.id,style:r.ready?{transform:`translate${i.direction==="vertical"?"Y":"X"}(${g.position}px) translate${i.direction==="vertical"?"X":"Y"}(${g.offset}px)`,width:e.gridItems?`${i.direction==="vertical"&&e.itemSecondarySize||e.itemSize}px`:void 0,height:e.gridItems?`${i.direction==="horizontal"&&e.itemSecondarySize||e.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[e.itemClass,{hover:!e.skipHover&&r.hoverKey===g.nr.key}]]},$t(e.skipHover?{}:{mouseenter:()=>{r.hoverKey=g.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:A(()=>[Z(i.$slots,"default",{item:g.item,index:g.nr.index,active:g.nr.used})]),_:2},1040,["style","class"]))),128)),Z(i.$slots,"empty")]),_:3},8,["style","class"])),i.$slots.after?(l(),c("div",qi,[Z(i.$slots,"after")],512)):y("v-if",!0),I(v,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[f,o.handleVisibilityChange]])}at.render=Zi;at.__file="src/components/RecycleScroller.vue";const He=_e({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},isSelectedMutilFiles:{type:Boolean}},emits:["contextMenuClick"],setup(i,{emit:n}){const e=i,t=Ae(),r=H(()=>{var o;return(((o=t.conf)==null?void 0:o.all_custom_tags)??[]).reduce((v,f)=>[...v,{...f,selected:!!e.selectedTag.find(g=>g.id===f.id)}],[])});return(o,v)=>{const f=Ze,g=Bt,_=Ft,N=Xe;return l(),F(N,{onClick:v[0]||(v[0]=T=>n("contextMenuClick",T,o.file,o.idx))},{default:A(()=>{var T;return[I(f,{key:"deleteFiles"},{default:A(()=>[S(h(o.$t("deleteSelected")),1)]),_:1}),I(f,{key:"openWithDefaultApp"},{default:A(()=>[S(h(o.$t("openWithDefaultApp")),1)]),_:1}),I(f,{key:"saveSelectedAsJson"},{default:A(()=>[S(h(o.$t("saveSelectedAsJson")),1)]),_:1}),o.file.type==="dir"?(l(),c(V,{key:0},[I(f,{key:"openInNewTab"},{default:A(()=>[S(h(o.$t("openInNewTab")),1)]),_:1}),I(f,{key:"openOnTheRight"},{default:A(()=>[S(h(o.$t("openOnTheRight")),1)]),_:1}),I(f,{key:"openWithWalkMode"},{default:A(()=>[S(h(o.$t("openWithWalkMode")),1)]),_:1})],64)):y("",!0),o.file.type==="file"?(l(),c(V,{key:1},[$(be)(o.file.name)?(l(),c(V,{key:0},[I(f,{key:"viewGenInfo"},{default:A(()=>[S(h(o.$t("viewGenerationInfo")),1)]),_:1}),I(f,{key:"tiktokView"},{default:A(()=>[S(h(o.$t("tiktokView")),1)]),_:1}),I(g),((T=$(t).conf)==null?void 0:T.launch_mode)!=="server"?(l(),c(V,{key:0},[I(f,{key:"send2txt2img"},{default:A(()=>[S(h(o.$t("sendToTxt2img")),1)]),_:1}),I(f,{key:"send2img2img"},{default:A(()=>[S(h(o.$t("sendToImg2img")),1)]),_:1}),I(f,{key:"send2inpaint"},{default:A(()=>[S(h(o.$t("sendToInpaint")),1)]),_:1}),I(f,{key:"send2extras"},{default:A(()=>[S(h(o.$t("sendToExtraFeatures")),1)]),_:1}),I(_,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:A(()=>[I(f,{key:"send2controlnet-txt2img"},{default:A(()=>[S("ControlNet - "+h(o.$t("t2i")),1)]),_:1}),I(f,{key:"send2controlnet-img2img"},{default:A(()=>[S("ControlNet - "+h(o.$t("i2i")),1)]),_:1}),I(f,{key:"send2outpaint"},{default:A(()=>[S("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):y("",!0),I(f,{key:"send2BatchDownload"},{default:A(()=>[S(h(o.$t("sendToBatchDownload")),1)]),_:1}),I(_,{key:"copy2target",title:o.$t("copyTo")},{default:A(()=>[(l(!0),c(V,null,x($(t).quickMovePaths,P=>(l(),F(f,{key:`copy-to-${P.dir}`},{default:A(()=>[S(h(P.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),I(_,{key:"move2target",title:o.$t("moveTo")},{default:A(()=>[(l(!0),c(V,null,x($(t).quickMovePaths,P=>(l(),F(f,{key:`move-to-${P.dir}`},{default:A(()=>[S(h(P.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),I(g),o.isSelectedMutilFiles?(l(),c(V,{key:1},[I(_,{key:"batch-add-tag",title:o.$t("batchAddTag")},{default:A(()=>[I(f,{key:"add-custom-tag"},{default:A(()=>[S("+ "+h(o.$t("addNewCustomTag")),1)]),_:1}),(l(!0),c(V,null,x(r.value,P=>(l(),F(f,{key:`batch-add-tag-${P.id}`},{default:A(()=>[S(h(P.name),1)]),_:2},1024))),128))]),_:1},8,["title"]),I(_,{key:"batch-remove-tag",title:o.$t("batchRemoveTag")},{default:A(()=>[(l(!0),c(V,null,x(r.value,P=>(l(),F(f,{key:`batch-remove-tag-${P.id}`},{default:A(()=>[S(h(P.name),1)]),_:2},1024))),128))]),_:1},8,["title"])],64)):(l(),F(_,{key:"toggle-tag",title:o.$t("toggleTag")},{default:A(()=>[I(f,{key:"add-custom-tag"},{default:A(()=>[S("+ "+h(o.$t("addNewCustomTag")),1)]),_:1}),(l(!0),c(V,null,x(r.value,P=>(l(),F(f,{key:`toggle-tag-${P.id}`},{default:A(()=>[S(h(P.name)+" ",1),P.selected?(l(),F($(tt),{key:0})):(l(),F($(it),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"])),I(g),I(f,{key:"openFileLocationInNewTab"},{default:A(()=>[S(h(o.$t("openFileLocationInNewTab")),1)]),_:1}),I(f,{key:"openWithLocalFileBrowser"},{default:A(()=>[S(h(o.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):y("",!0),I(g),I(f,{key:"rename"},{default:A(()=>[S(h(o.$t("rename")),1)]),_:1}),I(f,{key:"previewInNewWindow"},{default:A(()=>[S(h(o.$t("previewInNewWindow")),1)]),_:1}),I(f,{key:"download"},{default:A(()=>[S(h(o.$t("download")),1)]),_:1}),I(f,{key:"copyPreviewUrl"},{default:A(()=>[S(h(o.$t("copySourceFilePreviewLink")),1)]),_:1}),I(f,{key:"copyFilePath"},{default:A(()=>[S(h(o.$t("copyFilePath")),1)]),_:1})],64)):y("",!0)]}),_:1})}}}),z=i=>(Se("data-v-4ea1ffe2"),i=i(),ke(),i),Xi={class:"changeIndicatorWrapper"},en={key:0,class:"changeIndicatorsLeft changeIndicators"},tn={key:0,class:"promptChangeIndicator changeIndicator"},nn={key:1,class:"negpromptChangeIndicator changeIndicator"},sn={key:2,class:"seedChangeIndicator changeIndicator"},rn={key:3,class:"stepsChangeIndicator changeIndicator"},on={key:4,class:"cfgChangeIndicator changeIndicator"},ln={key:5,class:"sizeChangeIndicator changeIndicator"},an={key:6,class:"modelChangeIndicator changeIndicator"},un={key:7,class:"samplerChangeIndicator changeIndicator"},dn={key:8,class:"otherChangeIndicator changeIndicator"},cn={class:"hoverOverlay"},fn=z(()=>a("strong",null,"This file",-1)),hn=z(()=>a("br",null,null,-1)),gn=z(()=>a("br",null,null,-1)),pn={key:0},mn=z(()=>a("td",null,[a("span",{class:"promptChangeIndicator"},"+ Prompt")],-1)),vn={key:1},yn=z(()=>a("td",null,[a("span",{class:"negpromptChangeIndicator"},"- Prompt")],-1)),bn={key:2},An=z(()=>a("td",null,[a("span",{class:"seedChangeIndicator"},"Seed")],-1)),Sn={key:3},kn=z(()=>a("td",null,[a("span",{class:"stepsChangeIndicator"},"Steps")],-1)),_n={key:4},In=z(()=>a("td",null,[a("span",{class:"cfgChangeIndicator"},"Cfg Scale")],-1)),wn={key:5},Cn=z(()=>a("td",null,[a("span",{class:"sizeChangeIndicator"},"Size")],-1)),En={key:6},Tn=z(()=>a("td",null,[a("span",{class:"modelChangeIndicator"},"Model")],-1)),Pn=z(()=>a("br",null,null,-1)),On={key:7},Dn=z(()=>a("td",null,[a("span",{class:"samplerChangeIndicator"},"Sampler")],-1)),zn=z(()=>a("br",null,null,-1)),Nn=z(()=>a("br",null,null,-1)),Qn={key:0},Mn=z(()=>a("span",{class:"otherChangeIndicator"},"Other",-1)),$n=z(()=>a("br",null,null,-1)),Bn=z(()=>a("br",null,null,-1)),Fn={key:1,class:"changeIndicatorsRight changeIndicators"},Rn={key:0,class:"promptChangeIndicator changeIndicator"},Ln={key:1,class:"negpromptChangeIndicator changeIndicator"},Vn={key:2,class:"seedChangeIndicator changeIndicator"},jn={key:3,class:"stepsChangeIndicator changeIndicator"},Hn={key:4,class:"cfgChangeIndicator changeIndicator"},xn={key:5,class:"sizeChangeIndicator changeIndicator"},Un={key:6,class:"modelChangeIndicator changeIndicator"},Jn={key:7,class:"samplerChangeIndicator changeIndicator"},Wn={key:8,class:"otherChangeIndicator changeIndicator"},Kn={class:"hoverOverlay"},Gn=z(()=>a("strong",null,"This file",-1)),Yn=z(()=>a("br",null,null,-1)),qn=z(()=>a("br",null,null,-1)),Zn={key:0},Xn=z(()=>a("td",null,[a("span",{class:"promptChangeIndicator"},"+ Prompt")],-1)),es={key:1},ts=z(()=>a("td",null,[a("span",{class:"negpromptChangeIndicator"},"- Prompt")],-1)),is={key:2},ns=z(()=>a("td",null,[a("span",{class:"seedChangeIndicator"},"Seed")],-1)),ss={key:3},rs=z(()=>a("td",null,[a("span",{class:"stepsChangeIndicator"},"Steps")],-1)),os={key:4},ls=z(()=>a("td",null,[a("span",{class:"cfgChangeIndicator"},"Cfg Scale")],-1)),as={key:5},us=z(()=>a("td",null,[a("span",{class:"sizeChangeIndicator"},"Size")],-1)),ds={key:6},cs=z(()=>a("td",null,[a("span",{class:"modelChangeIndicator"},"Model")],-1)),fs=z(()=>a("br",null,null,-1)),hs={key:7},gs=z(()=>a("td",null,[a("span",{class:"samplerChangeIndicator"},"Sampler")],-1)),ps=z(()=>a("br",null,null,-1)),ms=z(()=>a("br",null,null,-1)),vs={key:0},ys=z(()=>a("span",{class:"otherChangeIndicator"},"Other",-1)),bs=z(()=>a("br",null,null,-1)),As=z(()=>a("br",null,null,-1)),Ss=_e({__name:"ChangeIndicator",props:{genDiffToPrevious:{},genDiffToNext:{},genInfo:{}},setup(i){function n(t){const r=["prompt","negativePrompt","seed","steps","cfgScale","size","Model","others"],o=Object.keys(t).filter(v=>!r.includes(v));return Object.fromEntries(o.map(v=>[v,t[v]]))}function e(t){return Object.keys(n(t)).length>0}return(t,r)=>(l(),c("div",Xi,[t.genDiffToPrevious.empty?y("",!0):(l(),c("div",en,["prompt"in t.genDiffToPrevious.diff?(l(),c("div",tn,"P+")):y("",!0),"negativePrompt"in t.genDiffToPrevious.diff?(l(),c("div",nn,"P-")):y("",!0),"seed"in t.genDiffToPrevious.diff?(l(),c("div",sn,"Se")):y("",!0),"steps"in t.genDiffToPrevious.diff?(l(),c("div",rn,"St")):y("",!0),"cfgScale"in t.genDiffToPrevious.diff?(l(),c("div",on,"Cf")):y("",!0),"size"in t.genDiffToPrevious.diff?(l(),c("div",ln,"Si")):y("",!0),"Model"in t.genDiffToPrevious.diff?(l(),c("div",an,"Mo")):y("",!0),"Sampler"in t.genDiffToPrevious.diff?(l(),c("div",un,"Sa")):y("",!0),e(t.genDiffToPrevious.diff)?(l(),c("div",dn,"Ot")):y("",!0)])),a("div",cn,[a("small",null,[I($(Fe)),fn,S(" vs "+h(t.genDiffToPrevious.otherFile)+" ",1),hn,gn,a("table",null,["prompt"in t.genDiffToPrevious.diff?(l(),c("tr",pn,[mn,a("td",null,h(t.genDiffToPrevious.diff.prompt)+" tokens changed",1)])):y("",!0),"negativePrompt"in t.genDiffToPrevious.diff?(l(),c("tr",vn,[yn,a("td",null,h(t.genDiffToPrevious.diff.negativePrompt)+" tokens changed",1)])):y("",!0),"seed"in t.genDiffToPrevious.diff?(l(),c("tr",bn,[An,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.seed[0]),1),S(" vs "+h(t.genDiffToPrevious.diff.seed[1]),1)])])):y("",!0),"steps"in t.genDiffToPrevious.diff?(l(),c("tr",Sn,[kn,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.steps[0]),1),S(" vs "+h(t.genDiffToPrevious.diff.steps[1]),1)])])):y("",!0),"cfgScale"in t.genDiffToPrevious.diff?(l(),c("tr",_n,[In,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.cfgScale[0]),1),S(" vs "+h(t.genDiffToPrevious.diff.cfgScale[1]),1)])])):y("",!0),"size"in t.genDiffToPrevious.diff?(l(),c("tr",wn,[Cn,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.size[0]),1),S(" vs "+h(t.genDiffToPrevious.diff.size[1]),1)])])):y("",!0),"Model"in t.genDiffToPrevious.diff?(l(),c("tr",En,[Tn,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.Model[0]),1),Pn,S(" vs "+h(t.genDiffToPrevious.diff.Model[1]),1)])])):y("",!0),"Sampler"in t.genDiffToPrevious.diff?(l(),c("tr",On,[Dn,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.Sampler[0]),1),zn,S(" vs "+h(t.genDiffToPrevious.diff.Sampler[1]),1)])])):y("",!0)]),Nn,e(t.genDiffToPrevious.diff)?(l(),c("div",Qn,[Mn,S(" props that changed:"),$n,Bn,a("ul",null,[(l(!0),c(V,null,x(n(t.genDiffToPrevious.diff),(o,v)=>(l(),c("li",null,h(v),1))),256))])])):y("",!0)])]),t.genDiffToNext.empty?y("",!0):(l(),c("div",Fn,["prompt"in t.genDiffToNext.diff?(l(),c("div",Rn,"P+")):y("",!0),"negativePrompt"in t.genDiffToNext.diff?(l(),c("div",Ln,"P-")):y("",!0),"seed"in t.genDiffToNext.diff?(l(),c("div",Vn,"Se")):y("",!0),"steps"in t.genDiffToNext.diff?(l(),c("div",jn,"St")):y("",!0),"cfgScale"in t.genDiffToNext.diff?(l(),c("div",Hn,"Cf")):y("",!0),"size"in t.genDiffToNext.diff?(l(),c("div",xn,"Si")):y("",!0),"Model"in t.genDiffToNext.diff?(l(),c("div",Un,"Mo")):y("",!0),"Sampler"in t.genDiffToNext.diff?(l(),c("div",Jn,"Sa")):y("",!0),e(t.genDiffToNext.diff)?(l(),c("div",Wn,"Ot")):y("",!0)])),a("div",Kn,[a("small",null,[I($(Fe)),Gn,S(" vs "+h(t.genDiffToNext.otherFile)+" ",1),Yn,qn,a("table",null,["prompt"in t.genDiffToNext.diff?(l(),c("tr",Zn,[Xn,a("td",null,h(t.genDiffToNext.diff.prompt)+" tokens changed",1)])):y("",!0),"negativePrompt"in t.genDiffToNext.diff?(l(),c("tr",es,[ts,a("td",null,h(t.genDiffToNext.diff.negativePrompt)+" tokens changed",1)])):y("",!0),"seed"in t.genDiffToNext.diff?(l(),c("tr",is,[ns,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.seed[0]),1),S(" vs "+h(t.genDiffToNext.diff.seed[1]),1)])])):y("",!0),"steps"in t.genDiffToNext.diff?(l(),c("tr",ss,[rs,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.steps[0]),1),S(" vs "+h(t.genDiffToNext.diff.steps[1]),1)])])):y("",!0),"cfgScale"in t.genDiffToNext.diff?(l(),c("tr",os,[ls,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.cfgScale[0]),1),S(" vs "+h(t.genDiffToNext.diff.cfgScale[1]),1)])])):y("",!0),"size"in t.genDiffToNext.diff?(l(),c("tr",as,[us,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.size[0]),1),S(" vs "+h(t.genDiffToNext.diff.size[1]),1)])])):y("",!0),"Model"in t.genDiffToNext.diff?(l(),c("tr",ds,[cs,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.Model[0]),1),fs,S(" vs "+h(t.genDiffToNext.diff.Model[1]),1)])])):y("",!0),"Sampler"in t.genDiffToNext.diff?(l(),c("tr",hs,[gs,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.Sampler[0]),1),ps,S(" vs "+h(t.genDiffToNext.diff.Sampler[1]),1)])])):y("",!0)]),ms,e(t.genDiffToNext.diff)?(l(),c("div",vs,[ys,S(" props that changed:"),bs,As,a("ul",null,[(l(!0),c(V,null,x(n(t.genDiffToNext.diff),(o,v)=>(l(),c("li",null,h(v),1))),256))])])):y("",!0)])])]))}});const ks=et(Ss,[["__scopeId","data-v-4ea1ffe2"]]),_s=i=>(Se("data-v-b6f9f791"),i=i(),ke(),i),Is=["data-idx"],ws={key:1,class:"more"},Cs={class:"float-btn-wrap"},Es={key:1,class:"tags-container"},Ts=["url"],Ps={class:"play-icon"},Os=["src"],Ds={key:0,class:"tags-container"},zs=_s(()=>a("div",{class:"audio-icon"},"🎵",-1)),Ns={key:0,class:"tags-container"},Qs={key:5,class:"preview-icon-wrap"},Ms={key:1,class:"dir-cover-container"},$s=["src"],Bs={key:6,class:"profile"},Fs=["title"],Rs={class:"basic-info"},Ls={style:{"margin-right":"4px"}},ee=160,Vs=_e({__name:"FileItem",props:{file:{},idx:{},selected:{type:Boolean,default:!1},showMenuIdx:{},cellWidth:{},fullScreenPreviewImageUrl:{},enableRightClickMenu:{type:Boolean,default:!0},enableCloseIcon:{type:Boolean,default:!1},isSelectedMutilFiles:{type:Boolean},genInfo:{},enableChangeIndicator:{type:Boolean},extraTags:{},coverFiles:{},getGenDiff:{},getGenDiffWatchDep:{}},emits:["update:showMenuIdx","fileItemClick","dragstart","dragend","previewVisibleChange","contextMenuClick","close-icon-click","tiktokView"],setup(i,{emit:n}){const e=i;Rt(s=>({c9c53b76:s.$props.cellWidth+"px"}));const t=Ae(),r=Je(),o=L(),v=L(),f=ce(()=>{const{getGenDiff:s,file:b,idx:w}=e;s&&(v.value=s(b.gen_info_obj,w,1,b),o.value=s(b.gen_info_obj,w,-1,b))},200+100*Math.random());ne(()=>{var s;return(s=e.getGenDiffWatchDep)==null?void 0:s.call(e,e.idx)},()=>{f()},{immediate:!0,deep:!0});const g=H(()=>r.tagMap.get(e.file.fullpath)??[]),_=H(()=>{const s=t.gridThumbnailResolution;return t.enableThumbnail?Ne(e.file,[s,s].join("x")):Lt(e.file)}),N=H(()=>{var s;return(((s=t.conf)==null?void 0:s.all_custom_tags)??[]).reduce((b,w)=>[...b,{...w,selected:!!g.value.find(M=>M.id===w.id)}],[])}),T=H(()=>N.value.find(s=>s.type==="custom"&&s.name==="like")),P=()=>{de(T.value),n("contextMenuClick",{key:`toggle-tag-${T.value.id}`},e.file,e.idx)},j=s=>{t.magicSwitchTiktokView&&e.file.type==="file"&&fe(e.file.name)?(s.stopPropagation(),s.preventDefault(),n("tiktokView",e.file,e.idx),setTimeout(()=>{Ut()},500)):n("fileItemClick",s,e.file,e.idx)},u=()=>{t.magicSwitchTiktokView?n("tiktokView",e.file,e.idx):Jt(e.file,s=>n("contextMenuClick",{key:`toggle-tag-${s}`},e.file,e.idx),()=>n("tiktokView",e.file,e.idx))},d=()=>{t.magicSwitchTiktokView?n("tiktokView",e.file,e.idx):Wt(e.file,s=>n("contextMenuClick",{key:`toggle-tag-${s}`},e.file,e.idx),()=>n("tiktokView",e.file,e.idx))};return(s,b)=>{const w=G,M=Ze,p=Xe,C=Kt,E=Yt;return l(),F(w,{trigger:["contextmenu"],visible:$(t).longPressOpenContextMenu?typeof s.idx=="number"&&s.showMenuIdx===s.idx:void 0,"onUpdate:visible":b[7]||(b[7]=Q=>typeof s.idx=="number"&&n("update:showMenuIdx",Q?s.idx:-1))},{overlay:A(()=>[s.enableRightClickMenu?(l(),F(He,{key:0,file:s.file,idx:s.idx,"selected-tag":g.value,onContextMenuClick:b[6]||(b[6]=(Q,m,O)=>n("contextMenuClick",Q,m,O)),"is-selected-mutil-files":s.isSelectedMutilFiles},null,8,["file","idx","selected-tag","is-selected-mutil-files"])):y("",!0)]),default:A(()=>{var Q;return[(l(),c("li",{class:W(["file file-item-trigger grid",{clickable:s.file.type==="dir",selected:s.selected}]),"data-idx":s.idx,key:s.file.name,draggable:"true",onDragstart:b[3]||(b[3]=m=>n("dragstart",m,s.idx)),onDragend:b[4]||(b[4]=m=>n("dragend",m,s.idx)),onClickCapture:b[5]||(b[5]=m=>j(m))},[a("div",null,[s.enableCloseIcon?(l(),c("div",{key:0,class:"close-icon",onClick:b[0]||(b[0]=m=>n("close-icon-click"))},[I($(Vt))])):y("",!0),s.enableRightClickMenu?(l(),c("div",ws,[I(w,null,{overlay:A(()=>[I(He,{file:s.file,idx:s.idx,"selected-tag":g.value,onContextMenuClick:b[1]||(b[1]=(m,O,k)=>n("contextMenuClick",m,O,k)),"is-selected-mutil-files":s.isSelectedMutilFiles},null,8,["file","idx","selected-tag","is-selected-mutil-files"])]),default:A(()=>[a("div",Cs,[I($(jt))])]),_:1}),s.file.type==="file"?(l(),F(w,{key:0},{overlay:A(()=>[N.value.length>1?(l(),F(p,{key:0,onClick:b[2]||(b[2]=m=>n("contextMenuClick",m,s.file,s.idx))},{default:A(()=>[(l(!0),c(V,null,x(N.value,m=>(l(),F(M,{key:`toggle-tag-${m.id}`},{default:A(()=>[S(h(m.name)+" ",1),m.selected?(l(),F($(tt),{key:0})):(l(),F($(it),{key:1}))]),_:2},1024))),128))]),_:1})):y("",!0)]),default:A(()=>{var m,O;return[a("div",{class:W(["float-btn-wrap",{"like-selected":(m=T.value)==null?void 0:m.selected}]),onClick:P},[(O=T.value)!=null&&O.selected?(l(),F($(Ht),{key:0})):(l(),F($(xt),{key:1}))],2)]}),_:1})):y("",!0)])):y("",!0),$(fe)(s.file.name)?(l(),c("div",{key:s.file.fullpath,class:W(`idx-${s.idx} item-content`)},[s.enableChangeIndicator&&v.value&&o.value?(l(),F(ks,{key:0,"gen-diff-to-next":v.value,"gen-diff-to-previous":o.value},null,8,["gen-diff-to-next","gen-diff-to-previous"])):y("",!0),I(C,{src:_.value,fallback:$(pi),preview:{src:s.fullScreenPreviewImageUrl,onVisibleChange:(m,O)=>n("previewVisibleChange",m,O)}},null,8,["src","fallback","preview"]),g.value&&s.cellWidth>ee?(l(),c("div",Es,[(l(!0),c(V,null,x(s.extraTags??g.value,m=>(l(),F(E,{key:m.id,color:$(r).getColor(m)},{default:A(()=>[S(h(m.name),1)]),_:2},1032,["color"]))),128))])):y("",!0)],2)):$(Ke)(s.file.name)?(l(),c("div",{key:3,class:W(`idx-${s.idx} item-content video`),url:$(ae)(s.file),style:qe({"background-image":`url('${s.file.cover_url??$(ae)(s.file)}')`}),onClick:u},[a("div",Ps,[a("img",{src:$(_i),style:{width:"40px",height:"40px"}},null,8,Os)]),g.value&&s.cellWidth>ee?(l(),c("div",Ds,[(l(!0),c(V,null,x(g.value,m=>(l(),F(E,{key:m.id,color:$(r).getColor(m)},{default:A(()=>[S(h(m.name),1)]),_:2},1032,["color"]))),128))])):y("",!0)],14,Ts)):$(Ge)(s.file.name)?(l(),c("div",{key:4,class:W(`idx-${s.idx} item-content audio`),onClick:d},[zs,g.value&&s.cellWidth>ee?(l(),c("div",Ns,[(l(!0),c(V,null,x(g.value,m=>(l(),F(E,{key:m.id,color:$(r).getColor(m)},{default:A(()=>[S(h(m.name),1)]),_:2},1032,["color"]))),128))])):y("",!0)],2)):(l(),c("div",Qs,[s.file.type==="file"?(l(),F($(ni),{key:0,class:"icon center"})):(Q=s.coverFiles)!=null&&Q.length&&s.cellWidth>160?(l(),c("div",Ms,[(l(!0),c(V,null,x(s.coverFiles,m=>(l(),c("img",{class:"dir-cover-item",src:m.media_type==="image"?$(Ne)(m):$(ae)(m),key:m.fullpath},null,8,$s))),128))])):(l(),F($(li),{key:2,class:"icon center"}))])),s.cellWidth>ee?(l(),c("div",Bs,[a("div",{class:"name line-clamp-1",title:s.file.name},h(s.file.name),9,Fs),a("div",Rs,[a("div",Ls,h(s.file.type)+" "+h(s.file.size),1),a("div",null,h(s.file.date),1)])])):y("",!0)])],42,Is))]}),_:1},8,["visible"])}}});const rr=et(Vs,[["__scopeId","data-v-b6f9f791"]]);export{rr as F,Gs as N,He as _,Ys as a,sr as b,nr as c,at as d,ir as e,Ii as f,K as g,Xs as h,tr as i,Zs as j,er as k,gi as r,qs as s,Ci as t,re as u}; diff --git a/vue/dist/assets/ImgSliPagePane-5dc424f1.js b/vue/dist/assets/ImgSliPagePane-25a3c965.js similarity index 64% rename from vue/dist/assets/ImgSliPagePane-5dc424f1.js rename to vue/dist/assets/ImgSliPagePane-25a3c965.js index 67da900..4cbcac0 100644 --- a/vue/dist/assets/ImgSliPagePane-5dc424f1.js +++ b/vue/dist/assets/ImgSliPagePane-25a3c965.js @@ -1 +1 @@ -import{d as a,U as t,V as s,c as n,cQ as _,a0 as c}from"./index-0205daf8.js";const o={class:"img-sli-container"},i=a({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(l){return(e,r)=>(t(),s("div",o,[n(_,{left:e.left,right:e.right},null,8,["left","right"])]))}});const p=c(i,[["__scopeId","data-v-ec71de83"]]);export{p as default}; +import{d as a,U as t,V as s,c as n,cR as _,a0 as c}from"./index-157194fb.js";const o={class:"img-sli-container"},i=a({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(l){return(e,r)=>(t(),s("div",o,[n(_,{left:e.left,right:e.right},null,8,["left","right"])]))}});const p=c(i,[["__scopeId","data-v-ec71de83"]]);export{p as default}; diff --git a/vue/dist/assets/MatchedImageGrid-e6c6fa7f.js b/vue/dist/assets/MatchedImageGrid-59968c61.js similarity index 87% rename from vue/dist/assets/MatchedImageGrid-e6c6fa7f.js rename to vue/dist/assets/MatchedImageGrid-59968c61.js index eaaf03e..5dd0937 100644 --- a/vue/dist/assets/MatchedImageGrid-e6c6fa7f.js +++ b/vue/dist/assets/MatchedImageGrid-59968c61.js @@ -1 +1 @@ -import{d as ke,r as he,m as C,az as B,a1 as ve,U as u,V as S,c as n,a4 as e,a3 as o,a6 as G,W as d,L as we,Y as a,X as p,a2 as U,af as Ie,aT as _e,$ as b,ag as E,ai as Ce,T as Se,ak as L,aP as be,aQ as ye,bE as xe,a0 as Me}from"./index-0205daf8.js";import{S as Te}from"./index-af89284c.js";import{_ as Ae}from"./index-728b29ca.js";import{o as N,L as Ve,R as $e,f as De,M as Fe}from"./MultiSelectKeep-74181f4c.js";import{c as Re,d as ze,F as Be}from"./FileItem-cc53e03a.js";import{c as Ge,u as Ue}from"./hook-4ff6f457.js";import"./shortcut-eca2d427.js";import"./Checkbox-951f37ba.js";/* empty css */import"./index-6a8edab1.js";import"./index-e9cc5bd5.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./useGenInfoDiff-13d2ea38.js";const Ee=r=>(be("data-v-6e837a6f"),r=r(),ye(),r),Le={class:"hint"},Ne={class:"action-bar"},Pe=Ee(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Je={key:1},We={class:"no-res-hint"},Ke={class:"hint"},Oe={key:2,class:"preview-switch"},qe=ke({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(r){const k=r,m=he(!1),g=Ge(t=>xe({...k.selectedTagIds,random_sort:m.value},t)),{queue:P,images:s,onContextMenuClickU:y,stackViewEl:J,previewIdx:c,previewing:x,onPreviewVisibleChange:W,previewImgMove:M,canPreview:T,itemSize:A,gridItems:K,showGenInfo:f,imageGenInfo:V,q:O,multiSelectedIdxs:h,onFileItemClick:q,scroller:v,showMenuIdx:w,onFileDragStart:Q,onFileDragEnd:X,cellWidth:Y,onScroll:I,saveAllFileAsJson:j,props:H,saveLoadedFileAsJson:Z,changeIndchecked:ee,seedChangeChecked:te,getGenDiff:le,getGenDiffWatchDep:ne}=Ue(g);C(()=>k.selectedTagIds,async()=>{var t;await g.reset(),await B(),(t=v.value)==null||t.scrollToItem(0),I()},{immediate:!0}),C(m,async()=>{var t;await g.reset(),await B(),(t=v.value)==null||t.scrollToItem(0),I()}),C(()=>k,async t=>{H.value=t},{deep:!0,immediate:!0});const se=ve(),{onClearAllSelected:ie,onSelectAll:oe,onReverseSelect:ae}=Re(),de=()=>{s.value.length!==0&&N(s.value,0)};return(t,l)=>{const re=Fe,ce=Ce,ue=Se,pe=Ae,_=L,me=L,ge=Te;return u(),S("div",{class:"container",ref_key:"stackViewEl",ref:J},[n(re,{show:!!e(h).length||e(se).keepMultiSelect,onClearAllSelected:e(ie),onSelectAll:e(oe),onReverseSelect:e(ae)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),n(ge,{size:"large",spinning:!e(P).isIdle},{default:o(()=>{var $,D,F;return[n(ue,{visible:e(f),"onUpdate:visible":l[1]||(l[1]=i=>G(f)?f.value=i:null),width:"70vw","mask-closable":"",onOk:l[2]||(l[2]=i=>f.value=!1)},{cancelText:o(()=>[]),default:o(()=>[n(ce,{active:"",loading:!e(O).isIdle},{default:o(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:l[0]||(l[0]=i=>e(we)(e(V)))},[d("div",Le,a(t.$t("doubleClickToCopy")),1),p(" "+a(e(V)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Ne,[n(pe,{checked:m.value,"onUpdate:checked":l[3]||(l[3]=i=>m.value=i),"checked-children":t.$t("randomSort"),"un-checked-children":t.$t("sortByDate")},null,8,["checked","checked-children","un-checked-children"]),n(_,{onClick:de,disabled:!(($=e(s))!=null&&$.length)},{default:o(()=>[p(a(t.$t("tiktokView")),1)]),_:1},8,["disabled"]),n(_,{onClick:e(Z)},{default:o(()=>[p(a(t.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"]),n(_,{onClick:e(j)},{default:o(()=>[p(a(t.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])]),(D=e(s))!=null&&D.length?(u(),U(e(ze),{key:0,ref_key:"scroller",ref:v,class:"file-list",items:e(s),"item-size":e(A).first,"key-field":"fullpath","item-secondary-size":e(A).second,gridItems:e(K),onScroll:e(I)},{after:o(()=>[Pe]),default:o(({item:i,index:R})=>[n(Be,{idx:R,file:i,"cell-width":e(Y),"show-menu-idx":e(w),"onUpdate:showMenuIdx":l[4]||(l[4]=z=>G(w)?w.value=z:null),onDragstart:e(Q),onDragend:e(X),onFileItemClick:e(q),onTiktokView:(z,fe)=>e(N)(e(s),fe),"full-screen-preview-image-url":e(s)[e(c)]?e(Ie)(e(s)[e(c)]):"",selected:e(h).includes(R),onContextMenuClick:e(y),onPreviewVisibleChange:e(W),"is-selected-mutil-files":e(h).length>1,"enable-change-indicator":e(ee),"seed-change-checked":e(te),"get-gen-diff":e(le),"get-gen-diff-watch-dep":e(ne)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","onTiktokView","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):e(g).load&&t.selectedTagIds.and_tags.length===1&&!((F=t.selectedTagIds.folder_paths_str)!=null&&F.trim())?(u(),S("div",Je,[d("div",We,[d("p",Ke,a(t.$t("tagSearchNoResultsMessage")),1),n(me,{onClick:l[5]||(l[5]=i=>e(_e)()),type:"primary"},{default:o(()=>[p(a(t.$t("rebuildImageIndex")),1)]),_:1})])])):b("",!0),e(x)?(u(),S("div",Oe,[n(e(Ve),{onClick:l[6]||(l[6]=i=>e(M)("prev")),class:E({disable:!e(T)("prev")})},null,8,["class"]),n(e($e),{onClick:l[7]||(l[7]=i=>e(M)("next")),class:E({disable:!e(T)("next")})},null,8,["class"])])):b("",!0)]}),_:1},8,["spinning"]),e(x)&&e(s)&&e(s)[e(c)]?(u(),U(De,{key:0,file:e(s)[e(c)],idx:e(c),onContextMenuClick:e(y)},null,8,["file","idx","onContextMenuClick"])):b("",!0)],512)}}});const rt=Me(qe,[["__scopeId","data-v-6e837a6f"]]);export{rt as default}; +import{d as ke,r as he,m as C,az as B,a1 as ve,U as u,V as S,c as n,a4 as e,a3 as o,a6 as G,W as d,L as we,Y as a,X as p,a2 as U,af as Ie,aT as _e,$ as b,ag as E,ai as Ce,T as Se,ak as L,aP as be,aQ as ye,bE as xe,a0 as Me}from"./index-157194fb.js";import{S as Te}from"./index-e33c98d2.js";import{_ as Ae}from"./index-89286149.js";import{o as N,L as Ve,R as $e,f as De,M as Fe}from"./MultiSelectKeep-f7eadb70.js";import{c as Re,d as ze,F as Be}from"./FileItem-6ddd7179.js";import{c as Ge,u as Ue}from"./hook-47732221.js";import"./shortcut-f1e6388a.js";import"./Checkbox-431074e2.js";/* empty css */import"./index-8e3285c7.js";import"./index-11d9431b.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js";import"./_isIterateeCall-e2252db1.js";import"./index-8929347d.js";import"./useGenInfoDiff-4c9e8f19.js";const Ee=r=>(be("data-v-6e837a6f"),r=r(),ye(),r),Le={class:"hint"},Ne={class:"action-bar"},Pe=Ee(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Je={key:1},We={class:"no-res-hint"},Ke={class:"hint"},Oe={key:2,class:"preview-switch"},qe=ke({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(r){const k=r,m=he(!1),g=Ge(t=>xe({...k.selectedTagIds,random_sort:m.value},t)),{queue:P,images:s,onContextMenuClickU:y,stackViewEl:J,previewIdx:c,previewing:x,onPreviewVisibleChange:W,previewImgMove:M,canPreview:T,itemSize:A,gridItems:K,showGenInfo:f,imageGenInfo:V,q:O,multiSelectedIdxs:h,onFileItemClick:q,scroller:v,showMenuIdx:w,onFileDragStart:Q,onFileDragEnd:X,cellWidth:Y,onScroll:I,saveAllFileAsJson:j,props:H,saveLoadedFileAsJson:Z,changeIndchecked:ee,seedChangeChecked:te,getGenDiff:le,getGenDiffWatchDep:ne}=Ue(g);C(()=>k.selectedTagIds,async()=>{var t;await g.reset(),await B(),(t=v.value)==null||t.scrollToItem(0),I()},{immediate:!0}),C(m,async()=>{var t;await g.reset(),await B(),(t=v.value)==null||t.scrollToItem(0),I()}),C(()=>k,async t=>{H.value=t},{deep:!0,immediate:!0});const se=ve(),{onClearAllSelected:ie,onSelectAll:oe,onReverseSelect:ae}=Re(),de=()=>{s.value.length!==0&&N(s.value,0)};return(t,l)=>{const re=Fe,ce=Ce,ue=Se,pe=Ae,_=L,me=L,ge=Te;return u(),S("div",{class:"container",ref_key:"stackViewEl",ref:J},[n(re,{show:!!e(h).length||e(se).keepMultiSelect,onClearAllSelected:e(ie),onSelectAll:e(oe),onReverseSelect:e(ae)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),n(ge,{size:"large",spinning:!e(P).isIdle},{default:o(()=>{var $,D,F;return[n(ue,{visible:e(f),"onUpdate:visible":l[1]||(l[1]=i=>G(f)?f.value=i:null),width:"70vw","mask-closable":"",onOk:l[2]||(l[2]=i=>f.value=!1)},{cancelText:o(()=>[]),default:o(()=>[n(ce,{active:"",loading:!e(O).isIdle},{default:o(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:l[0]||(l[0]=i=>e(we)(e(V)))},[d("div",Le,a(t.$t("doubleClickToCopy")),1),p(" "+a(e(V)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Ne,[n(pe,{checked:m.value,"onUpdate:checked":l[3]||(l[3]=i=>m.value=i),"checked-children":t.$t("randomSort"),"un-checked-children":t.$t("sortByDate")},null,8,["checked","checked-children","un-checked-children"]),n(_,{onClick:de,disabled:!(($=e(s))!=null&&$.length)},{default:o(()=>[p(a(t.$t("tiktokView")),1)]),_:1},8,["disabled"]),n(_,{onClick:e(Z)},{default:o(()=>[p(a(t.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"]),n(_,{onClick:e(j)},{default:o(()=>[p(a(t.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])]),(D=e(s))!=null&&D.length?(u(),U(e(ze),{key:0,ref_key:"scroller",ref:v,class:"file-list",items:e(s),"item-size":e(A).first,"key-field":"fullpath","item-secondary-size":e(A).second,gridItems:e(K),onScroll:e(I)},{after:o(()=>[Pe]),default:o(({item:i,index:R})=>[n(Be,{idx:R,file:i,"cell-width":e(Y),"show-menu-idx":e(w),"onUpdate:showMenuIdx":l[4]||(l[4]=z=>G(w)?w.value=z:null),onDragstart:e(Q),onDragend:e(X),onFileItemClick:e(q),onTiktokView:(z,fe)=>e(N)(e(s),fe),"full-screen-preview-image-url":e(s)[e(c)]?e(Ie)(e(s)[e(c)]):"",selected:e(h).includes(R),onContextMenuClick:e(y),onPreviewVisibleChange:e(W),"is-selected-mutil-files":e(h).length>1,"enable-change-indicator":e(ee),"seed-change-checked":e(te),"get-gen-diff":e(le),"get-gen-diff-watch-dep":e(ne)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","onTiktokView","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):e(g).load&&t.selectedTagIds.and_tags.length===1&&!((F=t.selectedTagIds.folder_paths_str)!=null&&F.trim())?(u(),S("div",Je,[d("div",We,[d("p",Ke,a(t.$t("tagSearchNoResultsMessage")),1),n(me,{onClick:l[5]||(l[5]=i=>e(_e)()),type:"primary"},{default:o(()=>[p(a(t.$t("rebuildImageIndex")),1)]),_:1})])])):b("",!0),e(x)?(u(),S("div",Oe,[n(e(Ve),{onClick:l[6]||(l[6]=i=>e(M)("prev")),class:E({disable:!e(T)("prev")})},null,8,["class"]),n(e($e),{onClick:l[7]||(l[7]=i=>e(M)("next")),class:E({disable:!e(T)("next")})},null,8,["class"])])):b("",!0)]}),_:1},8,["spinning"]),e(x)&&e(s)&&e(s)[e(c)]?(u(),U(De,{key:0,file:e(s)[e(c)],idx:e(c),onContextMenuClick:e(y)},null,8,["file","idx","onContextMenuClick"])):b("",!0)],512)}}});const rt=Me(qe,[["__scopeId","data-v-6e837a6f"]]);export{rt as default}; diff --git a/vue/dist/assets/MatchedImageGrid-23b35dd9.js b/vue/dist/assets/MatchedImageGrid-c0a36e04.js similarity index 89% rename from vue/dist/assets/MatchedImageGrid-23b35dd9.js rename to vue/dist/assets/MatchedImageGrid-c0a36e04.js index 690476b..29c3e43 100644 --- a/vue/dist/assets/MatchedImageGrid-23b35dd9.js +++ b/vue/dist/assets/MatchedImageGrid-c0a36e04.js @@ -1 +1 @@ -import{d as pe,am as ue,bF as fe,m as me,az as ge,a1 as he,U as g,V as I,c as s,a4 as e,a3 as o,a6 as P,W as d,L as ke,Y as c,X as v,a2 as U,af as ve,ag as E,$ as J,ai as we,T as _e,ak as Ce,aP as Se,aQ as Ie,a0 as xe}from"./index-0205daf8.js";import{S as be}from"./index-af89284c.js";import{o as N,L as ye,R as Me,f as Ae,M as Ve}from"./MultiSelectKeep-74181f4c.js";import{c as Fe,d as ze,F as De}from"./FileItem-cc53e03a.js";import{u as Te}from"./hook-4ff6f457.js";import"./shortcut-eca2d427.js";import"./Checkbox-951f37ba.js";/* empty css */import"./index-6a8edab1.js";import"./index-728b29ca.js";import"./index-e9cc5bd5.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./useGenInfoDiff-13d2ea38.js";const x=r=>(Se("data-v-795e5ef4"),r=r(),Ie(),r),$e={class:"hint"},Ge={class:"action-bar"},Re={class:"title line-clamp-1"},Be=x(()=>d("div",{"flex-placeholder":""},null,-1)),Le=x(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Pe={key:1,class:"no-res-hint"},Ue=x(()=>d("p",{class:"hint"},"暂无结果",-1)),Ee=[Ue],Je={key:2,class:"preview-switch"},Ne=pe({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},id:{},title:{},paths:{}},setup(r){const h=r,t=ue({res:[],load:!1,loading:!1,async next(){var n;if(!(t.loading||t.load)){t.loading=!0;try{const u=t.res.length,f=(h.paths??[]).slice(u,u+200);if(!f.length){t.load=!0;return}const C=await fe(f),m=f.map(S=>C[S]).filter(Boolean);t.res.push(...m),u+200>=(((n=h.paths)==null?void 0:n.length)??0)&&(t.load=!0)}finally{t.loading=!1}}},async reset(){t.res=[],t.load=!1,await t.next()}}),{queue:W,images:l,onContextMenuClickU:b,stackViewEl:K,previewIdx:p,previewing:y,onPreviewVisibleChange:O,previewImgMove:M,canPreview:A,itemSize:V,gridItems:q,showGenInfo:k,imageGenInfo:F,q:Q,multiSelectedIdxs:w,onFileItemClick:X,scroller:z,showMenuIdx:_,onFileDragStart:Y,onFileDragEnd:j,cellWidth:H,onScroll:D,saveAllFileAsJson:Z,saveLoadedFileAsJson:ee,changeIndchecked:te,seedChangeChecked:le,getGenDiff:ie,getGenDiffWatchDep:ne}=Te(t);me(()=>h.paths,async()=>{var n;await t.reset({refetch:!0}),await ge(),(n=z.value)==null||n.scrollToItem(0),D()},{immediate:!0});const se=he(),{onClearAllSelected:oe,onSelectAll:ae,onReverseSelect:de}=Fe(),ce=()=>{l.value.length!==0&&N(l.value,0)};return(n,i)=>{const u=Ve,f=we,C=_e,m=Ce,S=be;return g(),I("div",{class:"container",ref_key:"stackViewEl",ref:K},[s(u,{show:!!e(w).length||e(se).keepMultiSelect,onClearAllSelected:e(oe),onSelectAll:e(ae),onReverseSelect:e(de)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),s(S,{size:"large",spinning:!e(W).isIdle||t.loading},{default:o(()=>{var T,$,G,R;return[s(C,{visible:e(k),"onUpdate:visible":i[1]||(i[1]=a=>P(k)?k.value=a:null),width:"70vw","mask-closable":"",onOk:i[2]||(i[2]=a=>k.value=!1)},{cancelText:o(()=>[]),default:o(()=>[s(f,{active:"",loading:!e(Q).isIdle},{default:o(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:i[0]||(i[0]=a=>e(ke)(e(F)))},[d("div",$e,c(n.$t("doubleClickToCopy")),1),v(" "+c(e(F)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Ge,[d("div",Re,"🧩 "+c(h.title),1),Be,s(m,{onClick:ce,disabled:!((T=e(l))!=null&&T.length)},{default:o(()=>[v(c(n.$t("tiktokView")),1)]),_:1},8,["disabled"]),s(m,{onClick:e(ee),disabled:!(($=e(l))!=null&&$.length)},{default:o(()=>[v(c(n.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick","disabled"]),s(m,{onClick:e(Z),disabled:!((G=e(l))!=null&&G.length)},{default:o(()=>[v(c(n.$t("saveAllAsJson")),1)]),_:1},8,["onClick","disabled"])]),(R=e(l))!=null&&R.length?(g(),U(e(ze),{key:0,ref_key:"scroller",ref:z,class:"file-list",items:e(l),"item-size":e(V).first,"key-field":"fullpath","item-secondary-size":e(V).second,gridItems:e(q),onScroll:e(D)},{after:o(()=>[Le]),default:o(({item:a,index:B})=>[s(De,{idx:B,file:a,"cell-width":e(H),"show-menu-idx":e(_),"onUpdate:showMenuIdx":i[3]||(i[3]=L=>P(_)?_.value=L:null),onDragstart:e(Y),onDragend:e(j),onFileItemClick:e(X),onTiktokView:(L,re)=>e(N)(e(l),re),"full-screen-preview-image-url":e(l)[e(p)]?e(ve)(e(l)[e(p)]):"",selected:e(w).includes(B),onContextMenuClick:e(b),onPreviewVisibleChange:e(O),"is-selected-mutil-files":e(w).length>1,"enable-change-indicator":e(te),"seed-change-checked":e(le),"get-gen-diff":e(ie),"get-gen-diff-watch-dep":e(ne)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","onTiktokView","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):(g(),I("div",Pe,Ee)),e(y)?(g(),I("div",Je,[s(e(ye),{onClick:i[4]||(i[4]=a=>e(M)("prev")),class:E({disable:!e(A)("prev")})},null,8,["class"]),s(e(Me),{onClick:i[5]||(i[5]=a=>e(M)("next")),class:E({disable:!e(A)("next")})},null,8,["class"])])):J("",!0)]}),_:1},8,["spinning"]),e(y)&&e(l)&&e(l)[e(p)]?(g(),U(Ae,{key:0,file:e(l)[e(p)],idx:e(p),onContextMenuClick:e(b)},null,8,["file","idx","onContextMenuClick"])):J("",!0)],512)}}});const st=xe(Ne,[["__scopeId","data-v-795e5ef4"]]);export{st as default}; +import{d as pe,am as ue,bF as fe,m as me,az as ge,a1 as he,U as g,V as I,c as s,a4 as e,a3 as o,a6 as P,W as d,L as ke,Y as c,X as v,a2 as U,af as ve,ag as E,$ as J,ai as we,T as _e,ak as Ce,aP as Se,aQ as Ie,a0 as xe}from"./index-157194fb.js";import{S as be}from"./index-e33c98d2.js";import{o as N,L as ye,R as Me,f as Ae,M as Ve}from"./MultiSelectKeep-f7eadb70.js";import{c as Fe,d as ze,F as De}from"./FileItem-6ddd7179.js";import{u as Te}from"./hook-47732221.js";import"./shortcut-f1e6388a.js";import"./Checkbox-431074e2.js";/* empty css */import"./index-8e3285c7.js";import"./index-89286149.js";import"./index-11d9431b.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js";import"./_isIterateeCall-e2252db1.js";import"./index-8929347d.js";import"./useGenInfoDiff-4c9e8f19.js";const x=r=>(Se("data-v-795e5ef4"),r=r(),Ie(),r),$e={class:"hint"},Ge={class:"action-bar"},Re={class:"title line-clamp-1"},Be=x(()=>d("div",{"flex-placeholder":""},null,-1)),Le=x(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Pe={key:1,class:"no-res-hint"},Ue=x(()=>d("p",{class:"hint"},"暂无结果",-1)),Ee=[Ue],Je={key:2,class:"preview-switch"},Ne=pe({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},id:{},title:{},paths:{}},setup(r){const h=r,t=ue({res:[],load:!1,loading:!1,async next(){var n;if(!(t.loading||t.load)){t.loading=!0;try{const u=t.res.length,f=(h.paths??[]).slice(u,u+200);if(!f.length){t.load=!0;return}const C=await fe(f),m=f.map(S=>C[S]).filter(Boolean);t.res.push(...m),u+200>=(((n=h.paths)==null?void 0:n.length)??0)&&(t.load=!0)}finally{t.loading=!1}}},async reset(){t.res=[],t.load=!1,await t.next()}}),{queue:W,images:l,onContextMenuClickU:b,stackViewEl:K,previewIdx:p,previewing:y,onPreviewVisibleChange:O,previewImgMove:M,canPreview:A,itemSize:V,gridItems:q,showGenInfo:k,imageGenInfo:F,q:Q,multiSelectedIdxs:w,onFileItemClick:X,scroller:z,showMenuIdx:_,onFileDragStart:Y,onFileDragEnd:j,cellWidth:H,onScroll:D,saveAllFileAsJson:Z,saveLoadedFileAsJson:ee,changeIndchecked:te,seedChangeChecked:le,getGenDiff:ie,getGenDiffWatchDep:ne}=Te(t);me(()=>h.paths,async()=>{var n;await t.reset({refetch:!0}),await ge(),(n=z.value)==null||n.scrollToItem(0),D()},{immediate:!0});const se=he(),{onClearAllSelected:oe,onSelectAll:ae,onReverseSelect:de}=Fe(),ce=()=>{l.value.length!==0&&N(l.value,0)};return(n,i)=>{const u=Ve,f=we,C=_e,m=Ce,S=be;return g(),I("div",{class:"container",ref_key:"stackViewEl",ref:K},[s(u,{show:!!e(w).length||e(se).keepMultiSelect,onClearAllSelected:e(oe),onSelectAll:e(ae),onReverseSelect:e(de)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),s(S,{size:"large",spinning:!e(W).isIdle||t.loading},{default:o(()=>{var T,$,G,R;return[s(C,{visible:e(k),"onUpdate:visible":i[1]||(i[1]=a=>P(k)?k.value=a:null),width:"70vw","mask-closable":"",onOk:i[2]||(i[2]=a=>k.value=!1)},{cancelText:o(()=>[]),default:o(()=>[s(f,{active:"",loading:!e(Q).isIdle},{default:o(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:i[0]||(i[0]=a=>e(ke)(e(F)))},[d("div",$e,c(n.$t("doubleClickToCopy")),1),v(" "+c(e(F)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Ge,[d("div",Re,"🧩 "+c(h.title),1),Be,s(m,{onClick:ce,disabled:!((T=e(l))!=null&&T.length)},{default:o(()=>[v(c(n.$t("tiktokView")),1)]),_:1},8,["disabled"]),s(m,{onClick:e(ee),disabled:!(($=e(l))!=null&&$.length)},{default:o(()=>[v(c(n.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick","disabled"]),s(m,{onClick:e(Z),disabled:!((G=e(l))!=null&&G.length)},{default:o(()=>[v(c(n.$t("saveAllAsJson")),1)]),_:1},8,["onClick","disabled"])]),(R=e(l))!=null&&R.length?(g(),U(e(ze),{key:0,ref_key:"scroller",ref:z,class:"file-list",items:e(l),"item-size":e(V).first,"key-field":"fullpath","item-secondary-size":e(V).second,gridItems:e(q),onScroll:e(D)},{after:o(()=>[Le]),default:o(({item:a,index:B})=>[s(De,{idx:B,file:a,"cell-width":e(H),"show-menu-idx":e(_),"onUpdate:showMenuIdx":i[3]||(i[3]=L=>P(_)?_.value=L:null),onDragstart:e(Y),onDragend:e(j),onFileItemClick:e(X),onTiktokView:(L,re)=>e(N)(e(l),re),"full-screen-preview-image-url":e(l)[e(p)]?e(ve)(e(l)[e(p)]):"",selected:e(w).includes(B),onContextMenuClick:e(b),onPreviewVisibleChange:e(O),"is-selected-mutil-files":e(w).length>1,"enable-change-indicator":e(te),"seed-change-checked":e(le),"get-gen-diff":e(ie),"get-gen-diff-watch-dep":e(ne)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","onTiktokView","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):(g(),I("div",Pe,Ee)),e(y)?(g(),I("div",Je,[s(e(ye),{onClick:i[4]||(i[4]=a=>e(M)("prev")),class:E({disable:!e(A)("prev")})},null,8,["class"]),s(e(Me),{onClick:i[5]||(i[5]=a=>e(M)("next")),class:E({disable:!e(A)("next")})},null,8,["class"])])):J("",!0)]}),_:1},8,["spinning"]),e(y)&&e(l)&&e(l)[e(p)]?(g(),U(Ae,{key:0,file:e(l)[e(p)],idx:e(p),onContextMenuClick:e(b)},null,8,["file","idx","onContextMenuClick"])):J("",!0)],512)}}});const st=xe(Ne,[["__scopeId","data-v-795e5ef4"]]);export{st as default}; diff --git a/vue/dist/assets/MultiSelectKeep-74181f4c.js b/vue/dist/assets/MultiSelectKeep-f7eadb70.js similarity index 90% rename from vue/dist/assets/MultiSelectKeep-74181f4c.js rename to vue/dist/assets/MultiSelectKeep-f7eadb70.js index 85d4897..d340810 100644 --- a/vue/dist/assets/MultiSelectKeep-74181f4c.js +++ b/vue/dist/assets/MultiSelectKeep-f7eadb70.js @@ -1,10 +1,10 @@ -import{bk as Tt,c as u,A as we,cZ as Oe,ct as ae,z as Q,B as x,m as ye,y as Xe,c_ as ht,cS as Nt,cc as tt,T as be,c$ as Lt,ak as ve,cO as Bt,d0 as St,d1 as Ye,d2 as Ht,d3 as Et,d4 as At,d5 as Jt,d6 as Xt,af as de,r as ie,Q as Ze,d7 as Ft,H as ft,d8 as Yt,d9 as Ge,da as Zt,X as M,ae as Gt,db as Ke,R as Te,N as Kt,dc as Qt,dd as Rt,L as pe,de as en,df as tn,cs as nn,dg as an,dh as on,di as ln,t as mt,dj as sn,o as It,az as un,a1 as nt,J as ke,K as Qe,am as rn,G as ee,dk as cn,n as Ae,aR as dn,d as Dt,dl as gn,c9 as pn,cv as We,aS as hn,U as h,V as z,a4 as c,$ as H,W as k,a2 as se,cC as fn,cD as mn,a3 as b,dm as vt,Z as R,Y as v,a8 as ue,a5 as yt,a7 as Ue,ag as qe,a6 as Le,dn as Ve,dp as vn,al as yn,dq as $n,dr as wn,M as _n,aN as bn,ds as kn,dt as On,aP as zn,aQ as xn,a0 as Pt}from"./index-0205daf8.js";import{u as Fe,e as Re,g as Z,h as $t,i as ge,r as Cn,t as Ne,j as Mn,s as wt,k as Se,_ as Tn}from"./FileItem-cc53e03a.js";import{C as Ln,g as Sn}from"./shortcut-eca2d427.js";/* empty css */import{_ as En}from"./index-6a8edab1.js";import{_ as An}from"./index-728b29ca.js";import{D as Fn}from"./index-e9cc5bd5.js";const $e=(...e)=>{document.addEventListener(...e),Tt(()=>document.removeEventListener(...e))};var In={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};const Dn=In;function _t(e){for(var t=1;t{var f;s.value=S,I!=null&&!S&&p&&((f=w.value)==null||f.scrollToItem(I),I=null)},W=()=>{if(!D("next")){if(e!=null&&e.loadNext)return e.loadNext();T.value.mode==="walk"&&a.value&&(Q.info(x("loadingNextFolder")),n.value.emit("loadNextDir",!0))}};$e("keydown",S=>{var p;if(s.value){let f=t.value;if(["ArrowDown","ArrowRight"].includes(S.key))for(f++;i.value[f]&&!ae(i.value[f].name);)f++;else if(["ArrowUp","ArrowLeft"].includes(S.key))for(f--;i.value[f]&&!ae(i.value[f].name);)f--;if(ae((p=i.value[f])==null?void 0:p.name)??""){t.value=f;const E=w.value;E&&!(f>=E.$_startIndex&&f<=E.$_endIndex)&&(I=f)}W()}});const L=S=>{var f;let p=t.value;if(S==="next")for(p++;i.value[p]&&!ae(i.value[p].name);)p++;else if(S==="prev")for(p--;i.value[p]&&!ae(i.value[p].name);)p--;if(ae((f=i.value[p])==null?void 0:f.name)??""){t.value=p;const E=w.value;E&&!(p>=E.$_startIndex&&p<=E.$_endIndex)&&(I=p)}W()},D=S=>{var f;let p=t.value;if(S==="next")for(p++;i.value[p]&&!ae(i.value[p].name);)p++;else if(S==="prev")for(p--;i.value[p]&&!ae(i.value[p].name);)p--;return ae((f=i.value[p])==null?void 0:f.name)};return Re("removeFiles",async()=>{s.value&&!A.sortedFiles[t.value]&&Oe()}),{previewIdx:t,onPreviewVisibleChange:V,previewing:s,previewImgMove:L,canPreview:D}}function Be(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bt(e)}function ko(){const{currLocation:e,sortedFiles:t,currPage:n,multiSelectedIdxs:a,eventEmitter:s,walker:i}=Fe().toRefs(),w=()=>{a.value=[]};return $e("click",()=>{Z.keepMultiSelect||w()}),$e("blur",()=>{Z.keepMultiSelect||w()}),ye(n,w),{onFileDragStart:(V,W)=>{const L=Xe(t.value[W]);$t.fileDragging=!0,console.log("onFileDragStart set drag file ",V,W,L);const D=[L];let S=L.type==="dir";if(a.value.includes(W)){const f=a.value.map(E=>t.value[E]);D.push(...f),S=f.some(E=>E.type==="dir")}const p={includeDir:S,loc:e.value||"search-result",path:ht(D,"fullpath").map(f=>f.fullpath),nodes:ht(D,"fullpath"),__id:"FileTransferData"};V.dataTransfer.setData("text/plain",JSON.stringify(p))},onDrop:async V=>{if(i.value)return;const W=Nt(V);if(!W)return;const L=e.value;if(W.loc===L)return;const D=tt(),S=async()=>D.pushAction(async()=>{await St(W.path,L),s.value.emit("refresh"),be.destroyAll()}),p=()=>D.pushAction(async()=>{await Ye(W.path,L),ge.emit("removeFiles",{paths:W.path,loc:W.loc}),s.value.emit("refresh"),be.destroyAll()});be.confirm({title:x("confirm")+"?",width:"60vw",content:()=>{let f,E,te;return u("div",null,[u("div",null,[`${x("moveSelectedFilesTo")} ${L}`,u("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[W.path.map(m=>u("li",null,[m.split(/[/\\]/).pop()]))])]),u(Lt,null,null),u("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[u(ve,{onClick:be.destroyAll},Be(f=x("cancel"))?f:{default:()=>[f]}),u(ve,{type:"primary",loading:!D.isIdle,onClick:S},Be(E=x("copy"))?E:{default:()=>[E]}),u(ve,{type:"primary",loading:!D.isIdle,onClick:p},Be(te=x("move"))?te:{default:()=>[te]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:a,onFileDragEnd:()=>{$t.fileDragging=!1}}}const oa=e=>{const t=Et(e.name),n=At(e.name);let a,s;return t?(a=Jt(e),s="video"):n?(a=Xt(e),s="audio"):(a=de(e),s="image"),{id:e.fullpath,url:a,type:s,originalFile:e,name:e.name,fullpath:e.fullpath}},la=e=>e.filter(t=>t.type==="file"&&(ae(t.name)||Et(t.name)||At(t.name))).map(oa),sa=(e,t=0)=>{t=Math.min(t,e.length-1),t=Math.max(t,0);const n=Ht(),a=la(e);if(a.length===0){console.warn("没有找到可以显示的媒体文件");return}let s=0;if(tw.id===i.fullpath),s===-1&&(s=0)}n.openTiktokView(a,s)};function Oo({openNext:e}){const t=ie(!1),n=ie(""),{sortedFiles:a,previewIdx:s,multiSelectedIdxs:i,stack:w,currLocation:T,spinning:A,previewing:I,stackViewEl:V,eventEmitter:W,props:L,deletedFiles:D}=Fe().toRefs(),S=ft;Re("removeFiles",({paths:m,loc:l})=>{S(l)!==S(T.value)||!Ze(w.value)||(m.forEach($=>D.value.add($)),m.filter(ae).forEach($=>D.value.add($.replace(/\.\w+$/,".txt"))))}),Re("addFiles",({files:m,loc:l})=>{if(S(l)!==S(T.value))return;const y=Ze(w.value);y&&y.files.unshift(...m)});const p=tt(),f=async(m,l,y)=>{s.value=y,Z.fullscreenPreviewInitialUrl=de(l);const $=i.value.indexOf(y);if(m.shiftKey){if($!==-1)i.value.splice($,1);else{i.value.push(y),i.value.sort((U,G)=>U-G);const F=i.value[0],J=i.value[i.value.length-1];i.value=Cn(F,J+1)}m.stopPropagation()}else m.ctrlKey||m.metaKey?($!==-1?i.value.splice($,1):i.value.push(y),m.stopPropagation()):await e(l)},E=async(m,l,y)=>{var ce,ne,ze;const $=de(l),F=T.value,J={IIB_container_id:parent.IIB_container_id},U=()=>{let d=[];return i.value.includes(y)?d=i.value.map(_=>a.value[_]):d.push(l),d},G=async d=>{if(!A.value)try{A.value=!0,await an(l.fullpath),Se.postMessage({...J,event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}),await on(),Se.postMessage({...J,event:"click_hidden_button",btnEleId:`iib_hidden_tab_${d}`})}catch(_){console.error(_),Q.error("发送图像失败,请携带console的错误消息找开发者")}finally{A.value=!1}},K=`${m.key}`;if(K.startsWith("toggle-tag-")){const d=+K.split("toggle-tag-")[1],{is_remove:_}=await Yt({tag_id:d,img_path:l.fullpath}),q=(ne=(ce=Z.conf)==null?void 0:ce.all_custom_tags.find(P=>P.id===d))==null?void 0:ne.name;await Ne.refreshTags([l.fullpath]),Q.success(x(_?"removedTagFromImage":"addedTagToImage",{tag:q}));return}else if(K==="add-custom-tag")Ge();else if(K.startsWith("batch-add-tag-")||K.startsWith("batch-remove-tag-")){const d=+K.split("-tag-")[1],_=K.includes("add")?"add":"remove",q=U().map(P=>P.fullpath);await Zt({tag_id:d,img_paths:q,action:_}),await Ne.refreshTags(q),Q.success(x(_==="add"?"addCompleted":"removeCompleted"));return}else if(K.startsWith("copy-to-")){const d=K.split("copy-to-")[1],_=U(),q=_.map(P=>P.fullpath);await St(q,d,!0),ge.emit("addFiles",{files:_,loc:d}),Q.success(x("copySuccess"));return}else if(K.startsWith("move-to-")){const d=K.split("move-to-")[1],_=U(),q=_.map(P=>P.fullpath);await Ye(q,d,!0),ge.emit("removeFiles",{paths:q,loc:T.value}),ge.emit("addFiles",{files:_,loc:d}),Q.success(x("moveSuccess"));return}switch(m.key){case"previewInNewWindow":return window.open($);case"copyFilePath":return pe(l.fullpath);case"saveSelectedAsJson":return nn(U());case"openWithDefaultApp":return tn(l.fullpath);case"download":{const d=U();en(d.map(_=>de(_,!0)));break}case"copyPreviewUrl":return pe(parent.document.location.origin+$);case"rename":{let d=await Rt(l.fullpath);d=ft(d);const _=Ne.tagMap;_.set(d,_.get(l.fullpath)??[]),_.delete(l.fullpath),l.fullpath=d,l.name=d.split(/[\\/]/).pop()??"";return}case"send2txt2img":return G("txt2img");case"send2img2img":return G("img2img");case"send2inpaint":return G("inpaint");case"send2extras":return G("extras");case"send2savedDir":{const d=Z.quickMovePaths.find(P=>P.key==="outdir_save");if(!d)return Q.error(x("unknownSavedDir"));const _=Qt(d.dir,(ze=Z.conf)==null?void 0:ze.sd_cwd),q=U();await Ye(q.map(P=>P.fullpath),_,!0),ge.emit("removeFiles",{paths:q.map(P=>P.fullpath),loc:T.value}),ge.emit("addFiles",{files:q,loc:_});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const d=m.key.split("-")[1];Se.postMessage({...J,event:"send_to_control_net",type:d,url:de(l)});break}case"send2outpaint":{n.value=await p.pushAction(()=>Ke(l.fullpath)).res;const[d,_]=(n.value||"").split(` -`);Se.postMessage({...J,event:"send_to_outpaint",url:de(l),prompt:d,negPrompt:_.slice(17)});break}case"openWithWalkMode":{wt.set(F,w.value);const d=Z.tabList[L.value.tabIdx],_={type:"local",key:Te(),path:l.fullpath,name:x("local"),stackKey:F,mode:"walk"};d.panes.push(_),d.key=_.key;break}case"openFileLocationInNewTab":case"openInNewTab":{const d=Z.tabList[L.value.tabIdx],_={type:"local",key:Te(),path:m.key==="openInNewTab"?l.fullpath:Kt(l.fullpath),name:x("local"),mode:"scanned-fixed"};d.panes.push(_),d.key=_.key;break}case"openOnTheRight":{wt.set(F,w.value);let d=Z.tabList[L.value.tabIdx+1];d||(d={panes:[],key:"",id:Te()},Z.tabList[L.value.tabIdx+1]=d);const _={type:"local",key:Te(),path:l.fullpath,name:x("local"),stackKey:F};d.panes.push(_),d.key=_.key;break}case"send2BatchDownload":{Mn.addFiles(U());break}case"viewGenInfo":{t.value=!0,n.value=await p.pushAction(()=>Ke(l.fullpath)).res;break}case"tiktokView":{sa(a.value,y);break}case"openWithLocalFileBrowser":{await Gt(l.fullpath);break}case"deleteFiles":{const d=U(),_=async()=>{const q=d.map(P=>P.fullpath);if(await ln(q),Q.success(x("deleteSuccess")),I.value){const P=de(l)===Z.fullscreenPreviewInitialUrl,he=s.value===a.value.length-1;if((P||he)&&(Oe(),await mt(100),P&&a.value.length>1)){const _e=s.value;mt(0).then(()=>sn(_e,V.value))}}ge.emit("removeFiles",{paths:q,loc:T.value})};if(d.length===1&&Z.ignoredConfirmActions.deleteOneOnly)return _();await new Promise(q=>{be.confirm({title:x("confirmDelete"),maskClosable:!0,width:"60vw",content:()=>u("div",null,[u("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[d.map(P=>u("li",null,[P.fullpath.split(/[/\\]/).pop()]))]),u(Lt,null,null),u(Ln,{checked:Z.ignoredConfirmActions.deleteOneOnly,"onUpdate:checked":P=>Z.ignoredConfirmActions.deleteOneOnly=P},{default:()=>[x("deleteOneOnlySkipConfirm"),M(" ("),x("resetOnGlobalSettingsPage"),M(")")]})]),async onOk(){await _(),q()}})});break}}return{}},{isOutside:te}=Ft(V);return $e("keydown",m=>{var y,$,F;const l=Sn(m);if(I.value){l==="Esc"&&Oe();const J=(y=Object.entries(Z.shortcut).find(U=>U[1]===l&&U[1]))==null?void 0:y[0];if(J){m.stopPropagation(),m.preventDefault();const U=s.value,G=a.value[U];switch(J){case"delete":return E({key:"deleteFiles"},G,U);case"download":return E({key:"download"},G,U);default:{const K=($=/^toggle_tag_(.*)$/.exec(J))==null?void 0:$[1],ce=(F=Z.conf)==null?void 0:F.all_custom_tags.find(ne=>ne.name===K);if(ce)return E({key:`toggle-tag-${ce.id}`},G,U);if(J.startsWith("copy_to_")){const ne=J.split("copy_to_")[1];return E({key:`copy-to-${ne}`},G,U)}if(J.startsWith("move_to_")){const ne=J.split("move_to_")[1];return E({key:`move-to-${ne}`},G,U)}}}}}else!te.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(l)&&(m.preventDefault(),m.stopPropagation(),W.value.emit("selectAll"))}),{onFileItemClick:f,onContextMenuClick:E,showGenInfo:t,imageGenInfo:n,q:p}}function ia(e,t,n,a){let s=0,i=0,w=typeof(a==null?void 0:a.width)=="number"?a.width:0,T=typeof(a==null?void 0:a.height)=="number"?a.height:0,A=typeof(a==null?void 0:a.left)=="number"?a.left:0,I=typeof(a==null?void 0:a.top)=="number"?a.top:0,V=!1;const W=l=>{l.stopPropagation(),l.preventDefault(),!(!e.value||!t.value)&&(s=l instanceof MouseEvent?l.clientX:l.touches[0].clientX,i=l instanceof MouseEvent?l.clientY:l.touches[0].clientY,w=e.value.offsetWidth,T=e.value.offsetHeight,t.value.offsetLeft,t.value.offsetTop,document.documentElement.addEventListener("mousemove",L),document.documentElement.addEventListener("touchmove",L),document.documentElement.addEventListener("mouseup",D),document.documentElement.addEventListener("touchend",D))},L=l=>{if(!e.value||!t.value)return;let y=w+((l instanceof MouseEvent?l.clientX:l.touches[0].clientX)-s),$=T+((l instanceof MouseEvent?l.clientY:l.touches[0].clientY)-i);e.value.offsetLeft+y>window.innerWidth&&(y=window.innerWidth-e.value.offsetLeft),e.value.offsetTop+$>window.innerHeight&&($=window.innerHeight-e.value.offsetTop),e.value.style.width=`${y}px`,e.value.style.height=`${$}px`,a!=null&&a.onResize&&a.onResize(y,$)},D=()=>{document.documentElement.removeEventListener("mousemove",L),document.documentElement.removeEventListener("touchmove",L),document.documentElement.removeEventListener("mouseup",D),document.documentElement.removeEventListener("touchend",D)},S=l=>{l.stopPropagation(),l.preventDefault(),!(!e.value||!n.value)&&(V=!0,A=e.value.offsetLeft,I=e.value.offsetTop,s=l instanceof MouseEvent?l.clientX:l.touches[0].clientX,i=l instanceof MouseEvent?l.clientY:l.touches[0].clientY,document.documentElement.addEventListener("mousemove",p),document.documentElement.addEventListener("touchmove",p),document.documentElement.addEventListener("mouseup",f),document.documentElement.addEventListener("touchend",f))},p=l=>{if(!e.value||!n.value||!V)return;const y=A+((l instanceof MouseEvent?l.clientX:l.touches[0].clientX)-s),$=I+((l instanceof MouseEvent?l.clientY:l.touches[0].clientY)-i);y<0?e.value.style.left="0px":y+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${y}px`,$<0?e.value.style.top="0px":$+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${$}px`,a!=null&&a.onDrag&&a.onDrag(y,$)},f=()=>{V=!1,document.documentElement.removeEventListener("mousemove",p),document.documentElement.removeEventListener("touchmove",p),document.documentElement.removeEventListener("mouseup",f),document.documentElement.removeEventListener("touchend",f)},E=()=>{if(!e.value||!t.value)return;let l=e.value.offsetLeft,y=e.value.offsetTop,$=e.value.offsetWidth,F=e.value.offsetHeight;l+$>window.innerWidth&&(l=window.innerWidth-$,l<0&&(l=0,$=window.innerWidth)),y+F>window.innerHeight&&(y=window.innerHeight-F,y<0&&(y=0,F=window.innerHeight)),e.value.style.left=`${l}px`,e.value.style.top=`${y}px`,e.value.style.width=`${$}px`,e.value.style.height=`${F}px`},te=()=>{!e.value||!a||(typeof a.width=="number"&&(e.value.style.width=`${a.width}px`),typeof a.height=="number"&&(e.value.style.height=`${a.height}px`),typeof a.left=="number"&&(e.value.style.left=`${a.left}px`),typeof a.top=="number"&&(e.value.style.top=`${a.top}px`),E(),window.addEventListener("resize",E))},m=()=>{document.documentElement.removeEventListener("mousemove",L),document.documentElement.removeEventListener("touchmove",L),document.documentElement.removeEventListener("mouseup",D),document.documentElement.removeEventListener("touchend",D),document.documentElement.removeEventListener("mousemove",p),document.documentElement.removeEventListener("touchmove",p),document.documentElement.removeEventListener("mouseup",f),document.documentElement.removeEventListener("touchend",f),window.removeEventListener("resize",E)};return It(te),Tt(m),ye(()=>a==null?void 0:a.disbaled,async l=>{await un(),l!==void 0&&(l?m():te())}),ye(()=>[e.value,t.value,n.value],([l,y,$])=>{l&&y&&(y.addEventListener("mousedown",W),y.addEventListener("touchstart",W)),l&&$&&($.addEventListener("mousedown",S),$.addEventListener("touchstart",S))}),{handleResizeMouseDown:W,handleDragMouseDown:S}}let Ct=null;const ua=()=>{var A,I;const e=nt(),t=ke(Qe+"fullscreen_layout",{enable:!0,panelWidth:384,alwaysOn:!0}),n=rn(Ct??((I=(A=e.conf)==null?void 0:A.app_fe_setting)==null?void 0:I.fullscreen_layout)??Xe(t.value)),a="--iib-lr-layout-info-panel-width",s=ee(()=>n.alwaysOn&&n.enable?n.panelWidth:0);ye(n,V=>{t.value=Xe(V),Mt(n,a,s),ra(n),Ct=n},{deep:!0}),It(()=>Mt(n,a,s));const{enable:i,panelWidth:w,alwaysOn:T}=cn(n);return{state:n,isLeftRightLayout:i,panelwidtrhStyleVarName:a,lrLayoutInfoPanelWidth:w,lrMenuAlwaysOn:T}},ra=Ae(e=>dn("fullscreen_layout",e),300),Mt=Ae((e,t,n)=>{e.enable?(document.body.classList.add("fullscreen-lr-layout"),document.documentElement.style.setProperty(t,`${e.panelWidth}px`),document.documentElement.style.setProperty("--iib-lr-layout-container-offset",`${n.value}px`)):(document.documentElement.style.removeProperty(t),document.documentElement.style.removeProperty("--iib-lr-layout-container-offset"),document.body.classList.remove("fullscreen-lr-layout"))},300);/*! +import{bk as Mt,c as u,A as we,c_ as Oe,ct as ae,z as Q,B as x,m as ye,y as Xe,c$ as ht,cT as Nt,cc as tt,T as be,d0 as Lt,ak as ve,cP as Bt,d1 as St,d2 as Ye,d3 as Ht,d4 as Et,d5 as At,d6 as Jt,d7 as Xt,af as de,r as ie,Q as Ze,d8 as Ft,H as ft,d9 as Yt,da as Ge,db as Zt,X as T,ae as Gt,dc as Ke,R as Me,N as Kt,dd as Qt,de as Rt,L as pe,df as en,dg as tn,cs as nn,dh as an,di as on,dj as ln,t as mt,dk as sn,o as It,az as un,a1 as nt,J as ke,K as Qe,am as rn,G as ee,dl as cn,n as Ae,aR as dn,d as Pt,dm as gn,c9 as pn,cv as We,aS as hn,U as h,V as z,a4 as c,$ as H,W as k,a2 as se,cC as fn,cD as mn,a3 as b,dn as vt,Z as R,Y as v,a8 as ue,a5 as yt,a7 as Ue,ag as qe,a6 as Le,dp as Ve,dq as vn,al as yn,dr as $n,ds as wn,M as _n,aN as bn,dt as kn,du as On,aP as zn,aQ as xn,a0 as Dt}from"./index-157194fb.js";import{u as Fe,e as Re,g as Z,h as $t,i as ge,r as Cn,t as Ne,j as Tn,s as wt,k as Se,_ as Mn}from"./FileItem-6ddd7179.js";import{C as Ln,g as Sn}from"./shortcut-f1e6388a.js";/* empty css */import{_ as En}from"./index-8e3285c7.js";import{_ as An}from"./index-89286149.js";import{D as Fn}from"./index-11d9431b.js";const $e=(...e)=>{document.addEventListener(...e),Mt(()=>document.removeEventListener(...e))};var In={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};const Pn=In;function _t(e){for(var t=1;t{var f;s.value=S,I!=null&&!S&&p&&((f=w.value)==null||f.scrollToItem(I),I=null)},W=()=>{if(!P("next")){if(e!=null&&e.loadNext)return e.loadNext();M.value.mode==="walk"&&a.value&&(Q.info(x("loadingNextFolder")),n.value.emit("loadNextDir",!0))}};$e("keydown",S=>{var p;if(s.value){let f=t.value;if(["ArrowDown","ArrowRight"].includes(S.key))for(f++;i.value[f]&&!ae(i.value[f].name);)f++;else if(["ArrowUp","ArrowLeft"].includes(S.key))for(f--;i.value[f]&&!ae(i.value[f].name);)f--;if(ae((p=i.value[f])==null?void 0:p.name)??""){t.value=f;const E=w.value;E&&!(f>=E.$_startIndex&&f<=E.$_endIndex)&&(I=f)}W()}});const L=S=>{var f;let p=t.value;if(S==="next")for(p++;i.value[p]&&!ae(i.value[p].name);)p++;else if(S==="prev")for(p--;i.value[p]&&!ae(i.value[p].name);)p--;if(ae((f=i.value[p])==null?void 0:f.name)??""){t.value=p;const E=w.value;E&&!(p>=E.$_startIndex&&p<=E.$_endIndex)&&(I=p)}W()},P=S=>{var f;let p=t.value;if(S==="next")for(p++;i.value[p]&&!ae(i.value[p].name);)p++;else if(S==="prev")for(p--;i.value[p]&&!ae(i.value[p].name);)p--;return ae((f=i.value[p])==null?void 0:f.name)};return Re("removeFiles",async()=>{s.value&&!A.sortedFiles[t.value]&&Oe()}),{previewIdx:t,onPreviewVisibleChange:V,previewing:s,previewImgMove:L,canPreview:P}}function Be(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bt(e)}function ko(){const{currLocation:e,sortedFiles:t,currPage:n,multiSelectedIdxs:a,eventEmitter:s,walker:i}=Fe().toRefs(),w=()=>{a.value=[]};return $e("click",()=>{Z.keepMultiSelect||w()}),$e("blur",()=>{Z.keepMultiSelect||w()}),ye(n,w),{onFileDragStart:(V,W)=>{const L=Xe(t.value[W]);$t.fileDragging=!0,console.log("onFileDragStart set drag file ",V,W,L);const P=[L];let S=L.type==="dir";if(a.value.includes(W)){const f=a.value.map(E=>t.value[E]);P.push(...f),S=f.some(E=>E.type==="dir")}const p={includeDir:S,loc:e.value||"search-result",path:ht(P,"fullpath").map(f=>f.fullpath),nodes:ht(P,"fullpath"),__id:"FileTransferData"};V.dataTransfer.setData("text/plain",JSON.stringify(p))},onDrop:async V=>{if(i.value)return;const W=Nt(V);if(!W)return;const L=e.value;if(W.loc===L)return;const P=tt(),S=async()=>P.pushAction(async()=>{await St(W.path,L),s.value.emit("refresh"),be.destroyAll()}),p=()=>P.pushAction(async()=>{await Ye(W.path,L),ge.emit("removeFiles",{paths:W.path,loc:W.loc}),s.value.emit("refresh"),be.destroyAll()});be.confirm({title:x("confirm")+"?",width:"60vw",content:()=>{let f,E,te;return u("div",null,[u("div",null,[`${x("moveSelectedFilesTo")} ${L}`,u("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[W.path.map(m=>u("li",null,[m.split(/[/\\]/).pop()]))])]),u(Lt,null,null),u("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[u(ve,{onClick:be.destroyAll},Be(f=x("cancel"))?f:{default:()=>[f]}),u(ve,{type:"primary",loading:!P.isIdle,onClick:S},Be(E=x("copy"))?E:{default:()=>[E]}),u(ve,{type:"primary",loading:!P.isIdle,onClick:p},Be(te=x("move"))?te:{default:()=>[te]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:a,onFileDragEnd:()=>{$t.fileDragging=!1}}}const oa=e=>{const t=Et(e.name),n=At(e.name);let a,s;return t?(a=Jt(e),s="video"):n?(a=Xt(e),s="audio"):(a=de(e),s="image"),{id:e.fullpath,url:a,type:s,originalFile:e,name:e.name,fullpath:e.fullpath}},la=e=>e.filter(t=>t.type==="file"&&(ae(t.name)||Et(t.name)||At(t.name))).map(oa),sa=(e,t=0)=>{t=Math.min(t,e.length-1),t=Math.max(t,0);const n=Ht(),a=la(e);if(a.length===0){console.warn("没有找到可以显示的媒体文件");return}let s=0;if(tw.id===i.fullpath),s===-1&&(s=0)}n.openTiktokView(a,s)};function Oo({openNext:e}){const t=ie(!1),n=ie(""),{sortedFiles:a,previewIdx:s,multiSelectedIdxs:i,stack:w,currLocation:M,spinning:A,previewing:I,stackViewEl:V,eventEmitter:W,props:L,deletedFiles:P}=Fe().toRefs(),S=ft;Re("removeFiles",({paths:m,loc:l})=>{S(l)!==S(M.value)||!Ze(w.value)||(m.forEach($=>P.value.add($)),m.filter(ae).forEach($=>P.value.add($.replace(/\.\w+$/,".txt"))))}),Re("addFiles",({files:m,loc:l})=>{if(S(l)!==S(M.value))return;const y=Ze(w.value);y&&y.files.unshift(...m)});const p=tt(),f=async(m,l,y)=>{s.value=y,Z.fullscreenPreviewInitialUrl=de(l);const $=i.value.indexOf(y);if(m.shiftKey){if($!==-1)i.value.splice($,1);else{i.value.push(y),i.value.sort((U,G)=>U-G);const F=i.value[0],J=i.value[i.value.length-1];i.value=Cn(F,J+1)}m.stopPropagation()}else m.ctrlKey||m.metaKey?($!==-1?i.value.splice($,1):i.value.push(y),m.stopPropagation()):await e(l)},E=async(m,l,y)=>{var ce,ne,ze;const $=de(l),F=M.value,J={IIB_container_id:parent.IIB_container_id},U=()=>{let d=[];return i.value.includes(y)?d=i.value.map(_=>a.value[_]):d.push(l),d},G=async d=>{if(!A.value)try{A.value=!0,await an(l.fullpath),Se.postMessage({...J,event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}),await on(),Se.postMessage({...J,event:"click_hidden_button",btnEleId:`iib_hidden_tab_${d}`})}catch(_){console.error(_),Q.error("发送图像失败,请携带console的错误消息找开发者")}finally{A.value=!1}},K=`${m.key}`;if(K.startsWith("toggle-tag-")){const d=+K.split("toggle-tag-")[1],{is_remove:_}=await Yt({tag_id:d,img_path:l.fullpath}),q=(ne=(ce=Z.conf)==null?void 0:ce.all_custom_tags.find(D=>D.id===d))==null?void 0:ne.name;await Ne.refreshTags([l.fullpath]),Q.success(x(_?"removedTagFromImage":"addedTagToImage",{tag:q}));return}else if(K==="add-custom-tag")Ge();else if(K.startsWith("batch-add-tag-")||K.startsWith("batch-remove-tag-")){const d=+K.split("-tag-")[1],_=K.includes("add")?"add":"remove",q=U().map(D=>D.fullpath);await Zt({tag_id:d,img_paths:q,action:_}),await Ne.refreshTags(q),Q.success(x(_==="add"?"addCompleted":"removeCompleted"));return}else if(K.startsWith("copy-to-")){const d=K.split("copy-to-")[1],_=U(),q=_.map(D=>D.fullpath);await St(q,d,!0),ge.emit("addFiles",{files:_,loc:d}),Q.success(x("copySuccess"));return}else if(K.startsWith("move-to-")){const d=K.split("move-to-")[1],_=U(),q=_.map(D=>D.fullpath);await Ye(q,d,!0),ge.emit("removeFiles",{paths:q,loc:M.value}),ge.emit("addFiles",{files:_,loc:d}),Q.success(x("moveSuccess"));return}switch(m.key){case"previewInNewWindow":return window.open($);case"copyFilePath":return pe(l.fullpath);case"saveSelectedAsJson":return nn(U());case"openWithDefaultApp":return tn(l.fullpath);case"download":{const d=U();en(d.map(_=>de(_,!0)));break}case"copyPreviewUrl":return pe(parent.document.location.origin+$);case"rename":{let d=await Rt(l.fullpath);d=ft(d);const _=Ne.tagMap;_.set(d,_.get(l.fullpath)??[]),_.delete(l.fullpath),l.fullpath=d,l.name=d.split(/[\\/]/).pop()??"";return}case"send2txt2img":return G("txt2img");case"send2img2img":return G("img2img");case"send2inpaint":return G("inpaint");case"send2extras":return G("extras");case"send2savedDir":{const d=Z.quickMovePaths.find(D=>D.key==="outdir_save");if(!d)return Q.error(x("unknownSavedDir"));const _=Qt(d.dir,(ze=Z.conf)==null?void 0:ze.sd_cwd),q=U();await Ye(q.map(D=>D.fullpath),_,!0),ge.emit("removeFiles",{paths:q.map(D=>D.fullpath),loc:M.value}),ge.emit("addFiles",{files:q,loc:_});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const d=m.key.split("-")[1];Se.postMessage({...J,event:"send_to_control_net",type:d,url:de(l)});break}case"send2outpaint":{n.value=await p.pushAction(()=>Ke(l.fullpath)).res;const[d,_]=(n.value||"").split(` +`);Se.postMessage({...J,event:"send_to_outpaint",url:de(l),prompt:d,negPrompt:_.slice(17)});break}case"openWithWalkMode":{wt.set(F,w.value);const d=Z.tabList[L.value.tabIdx],_={type:"local",key:Me(),path:l.fullpath,name:x("local"),stackKey:F,mode:"walk"};d.panes.push(_),d.key=_.key;break}case"openFileLocationInNewTab":case"openInNewTab":{const d=Z.tabList[L.value.tabIdx],_={type:"local",key:Me(),path:m.key==="openInNewTab"?l.fullpath:Kt(l.fullpath),name:x("local"),mode:"scanned-fixed"};d.panes.push(_),d.key=_.key;break}case"openOnTheRight":{wt.set(F,w.value);let d=Z.tabList[L.value.tabIdx+1];d||(d={panes:[],key:"",id:Me()},Z.tabList[L.value.tabIdx+1]=d);const _={type:"local",key:Me(),path:l.fullpath,name:x("local"),stackKey:F};d.panes.push(_),d.key=_.key;break}case"send2BatchDownload":{Tn.addFiles(U());break}case"viewGenInfo":{t.value=!0,n.value=await p.pushAction(()=>Ke(l.fullpath)).res;break}case"tiktokView":{sa(a.value,y);break}case"openWithLocalFileBrowser":{await Gt(l.fullpath);break}case"deleteFiles":{const d=U(),_=async()=>{const q=d.map(D=>D.fullpath);if(await ln(q),Q.success(x("deleteSuccess")),I.value){const D=de(l)===Z.fullscreenPreviewInitialUrl,he=s.value===a.value.length-1;if((D||he)&&(Oe(),await mt(100),D&&a.value.length>1)){const _e=s.value;mt(0).then(()=>sn(_e,V.value))}}ge.emit("removeFiles",{paths:q,loc:M.value})};if(d.length===1&&Z.ignoredConfirmActions.deleteOneOnly)return _();await new Promise(q=>{be.confirm({title:x("confirmDelete"),maskClosable:!0,width:"60vw",content:()=>u("div",null,[u("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[d.map(D=>u("li",null,[D.fullpath.split(/[/\\]/).pop()]))]),u(Lt,null,null),u(Ln,{checked:Z.ignoredConfirmActions.deleteOneOnly,"onUpdate:checked":D=>Z.ignoredConfirmActions.deleteOneOnly=D},{default:()=>[x("deleteOneOnlySkipConfirm"),T(" ("),x("resetOnGlobalSettingsPage"),T(")")]})]),async onOk(){await _(),q()}})});break}}return{}},{isOutside:te}=Ft(V);return $e("keydown",m=>{var y,$,F;const l=Sn(m);if(I.value){l==="Esc"&&Oe();const J=(y=Object.entries(Z.shortcut).find(U=>U[1]===l&&U[1]))==null?void 0:y[0];if(J){m.stopPropagation(),m.preventDefault();const U=s.value,G=a.value[U];switch(J){case"delete":return E({key:"deleteFiles"},G,U);case"download":return E({key:"download"},G,U);default:{const K=($=/^toggle_tag_(.*)$/.exec(J))==null?void 0:$[1],ce=(F=Z.conf)==null?void 0:F.all_custom_tags.find(ne=>ne.name===K);if(ce)return E({key:`toggle-tag-${ce.id}`},G,U);if(J.startsWith("copy_to_")){const ne=J.split("copy_to_")[1];return E({key:`copy-to-${ne}`},G,U)}if(J.startsWith("move_to_")){const ne=J.split("move_to_")[1];return E({key:`move-to-${ne}`},G,U)}}}}}else!te.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(l)&&(m.preventDefault(),m.stopPropagation(),W.value.emit("selectAll"))}),{onFileItemClick:f,onContextMenuClick:E,showGenInfo:t,imageGenInfo:n,q:p}}function ia(e,t,n,a){let s=0,i=0,w=typeof(a==null?void 0:a.width)=="number"?a.width:0,M=typeof(a==null?void 0:a.height)=="number"?a.height:0,A=typeof(a==null?void 0:a.left)=="number"?a.left:0,I=typeof(a==null?void 0:a.top)=="number"?a.top:0,V=!1;const W=l=>{l.stopPropagation(),l.preventDefault(),!(!e.value||!t.value)&&(s=l instanceof MouseEvent?l.clientX:l.touches[0].clientX,i=l instanceof MouseEvent?l.clientY:l.touches[0].clientY,w=e.value.offsetWidth,M=e.value.offsetHeight,t.value.offsetLeft,t.value.offsetTop,document.documentElement.addEventListener("mousemove",L),document.documentElement.addEventListener("touchmove",L),document.documentElement.addEventListener("mouseup",P),document.documentElement.addEventListener("touchend",P))},L=l=>{if(!e.value||!t.value)return;let y=w+((l instanceof MouseEvent?l.clientX:l.touches[0].clientX)-s),$=M+((l instanceof MouseEvent?l.clientY:l.touches[0].clientY)-i);e.value.offsetLeft+y>window.innerWidth&&(y=window.innerWidth-e.value.offsetLeft),e.value.offsetTop+$>window.innerHeight&&($=window.innerHeight-e.value.offsetTop),e.value.style.width=`${y}px`,e.value.style.height=`${$}px`,a!=null&&a.onResize&&a.onResize(y,$)},P=()=>{document.documentElement.removeEventListener("mousemove",L),document.documentElement.removeEventListener("touchmove",L),document.documentElement.removeEventListener("mouseup",P),document.documentElement.removeEventListener("touchend",P)},S=l=>{l.stopPropagation(),l.preventDefault(),!(!e.value||!n.value)&&(V=!0,A=e.value.offsetLeft,I=e.value.offsetTop,s=l instanceof MouseEvent?l.clientX:l.touches[0].clientX,i=l instanceof MouseEvent?l.clientY:l.touches[0].clientY,document.documentElement.addEventListener("mousemove",p),document.documentElement.addEventListener("touchmove",p),document.documentElement.addEventListener("mouseup",f),document.documentElement.addEventListener("touchend",f))},p=l=>{if(!e.value||!n.value||!V)return;const y=A+((l instanceof MouseEvent?l.clientX:l.touches[0].clientX)-s),$=I+((l instanceof MouseEvent?l.clientY:l.touches[0].clientY)-i);y<0?e.value.style.left="0px":y+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${y}px`,$<0?e.value.style.top="0px":$+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${$}px`,a!=null&&a.onDrag&&a.onDrag(y,$)},f=()=>{V=!1,document.documentElement.removeEventListener("mousemove",p),document.documentElement.removeEventListener("touchmove",p),document.documentElement.removeEventListener("mouseup",f),document.documentElement.removeEventListener("touchend",f)},E=()=>{if(!e.value||!t.value)return;let l=e.value.offsetLeft,y=e.value.offsetTop,$=e.value.offsetWidth,F=e.value.offsetHeight;l+$>window.innerWidth&&(l=window.innerWidth-$,l<0&&(l=0,$=window.innerWidth)),y+F>window.innerHeight&&(y=window.innerHeight-F,y<0&&(y=0,F=window.innerHeight)),e.value.style.left=`${l}px`,e.value.style.top=`${y}px`,e.value.style.width=`${$}px`,e.value.style.height=`${F}px`},te=()=>{!e.value||!a||(typeof a.width=="number"&&(e.value.style.width=`${a.width}px`),typeof a.height=="number"&&(e.value.style.height=`${a.height}px`),typeof a.left=="number"&&(e.value.style.left=`${a.left}px`),typeof a.top=="number"&&(e.value.style.top=`${a.top}px`),E(),window.addEventListener("resize",E))},m=()=>{document.documentElement.removeEventListener("mousemove",L),document.documentElement.removeEventListener("touchmove",L),document.documentElement.removeEventListener("mouseup",P),document.documentElement.removeEventListener("touchend",P),document.documentElement.removeEventListener("mousemove",p),document.documentElement.removeEventListener("touchmove",p),document.documentElement.removeEventListener("mouseup",f),document.documentElement.removeEventListener("touchend",f),window.removeEventListener("resize",E)};return It(te),Mt(m),ye(()=>a==null?void 0:a.disbaled,async l=>{await un(),l!==void 0&&(l?m():te())}),ye(()=>[e.value,t.value,n.value],([l,y,$])=>{l&&y&&(y.addEventListener("mousedown",W),y.addEventListener("touchstart",W)),l&&$&&($.addEventListener("mousedown",S),$.addEventListener("touchstart",S))}),{handleResizeMouseDown:W,handleDragMouseDown:S}}let Ct=null;const ua=()=>{var A,I;const e=nt(),t=ke(Qe+"fullscreen_layout",{enable:!0,panelWidth:384,alwaysOn:!0}),n=rn(Ct??((I=(A=e.conf)==null?void 0:A.app_fe_setting)==null?void 0:I.fullscreen_layout)??Xe(t.value)),a="--iib-lr-layout-info-panel-width",s=ee(()=>n.alwaysOn&&n.enable?n.panelWidth:0);ye(n,V=>{t.value=Xe(V),Tt(n,a,s),ra(n),Ct=n},{deep:!0}),It(()=>Tt(n,a,s));const{enable:i,panelWidth:w,alwaysOn:M}=cn(n);return{state:n,isLeftRightLayout:i,panelwidtrhStyleVarName:a,lrLayoutInfoPanelWidth:w,lrMenuAlwaysOn:M}},ra=Ae(e=>dn("fullscreen_layout",e),300),Tt=Ae((e,t,n)=>{e.enable?(document.body.classList.add("fullscreen-lr-layout"),document.documentElement.style.setProperty(t,`${e.panelWidth}px`),document.documentElement.style.setProperty("--iib-lr-layout-container-offset",`${n.value}px`)):(document.documentElement.style.removeProperty(t),document.documentElement.style.removeProperty("--iib-lr-layout-container-offset"),document.body.classList.remove("fullscreen-lr-layout"))},300);/*! author:kooboy_li@163.com MIT licensed -*/let jt=19968,ca=(40896-jt)/2,et="",Ee=",",da=(()=>{let e=[];for(let t=33;t<127;t++)t!=34&&t!=92&&t!=45&&e.push(String.fromCharCode(t));return e.join(et)})(),rt={a:{yi:"!]#R$!$q(3(p)[*2*g+6+d.C.q0[0w1L2<717l8B8E9?:8;V;[;e;{<)<+.>4??@~A`BbC:CGC^CiDMDjDkF!H/H;JaL?M.M2MoNCN|OgO|P$P)PBPyQ~R%R.S.T;Tk^l$lt?uJv$vMyE|R}a-!}-#&-#8-#L-#b-$Q-%?-+q-,6-,8",yu:"#V$l%S&9&I('(7(=)))m*#*$*B+2+F+v,0,b,i.W0.1F232L2a3(384>6P8n;';i;y<1>(>)>]@iB&X&m&s'2'X'd'f(9(c(i(j)@)l+'+M.).+1y1{2=3K4c6&6'6)606<6B6`9`9{:a`?`AgCLCuD%D2F2GyH&H1I;K~LkLuM&MYO0O3O9P8PbPcQqR5S2SCU0U~V%XYY&Z}[G^P`7cUc}dEeNgOj$j)l?m:n4p,sOuRv.y'{/|i}1~P-$B-%Y-)|-)}-*K-+G-+H-,m-.@-.M-/|-0y-2D-2c-4W-4`-4h-7a-7p-9c-9i",shang:")Y6V9cJvR8UqXJXa])asbQc,s,uSvz-#+-.;",xia:"#Y#w&,&;'''I)1.u/j7=:[<'B[ByCtL'NmNyQOR([0`(cLh[iRkVt/t_u4uezFzM|W|{~d-&)-*4-.}-0a-5;-8S",han:"#,.m/h:l

MFrGXJqNrOUPCPqPrQ|]@`+`2h1lBlZnXp*r;rWrkz9{4{B}x-#c-#y-$;-$l-$y-%Q-%n-(i-(x-)i-/!-3*-5B-9V",wan:"#=$0&o.]0F4@5X5b6*628u9pk@,JhR`b$b`knmtujz'z0}<-#+-'I-*Q-16-7m",san:"3T3q3w3x7~uJuwzA-'n-([-,s",ji:"#r%''l'y)3)d)o*Z+'+9+G+M+T+Z+^+g+x._.c/R090d1S1W2;43484J4R5C5w6)6C6`7f7s878H8t8w9J9X9Z9{;8;<;B;C=(=2>6?YA$B+CHD0D8DbE:EQF2I*I|JEJnKKL)L:LkLzMdN'N5N:NiQ6QyRrUWVcVnWPWQWtX6XEXYXuY(ZAZ|[/]O]e^F^J^U^~`)b#b0c*ckc}dee!e$e9e>eyf+fXfrg)hFhriMjZlrqmr)sRt%uov3vevw|@};}N}g~!~+~F~{-!&-!u-#N-$%-&a-'u-(,-*x-+]-,W-.?-.V-._-.d-.g-/+-0$-0H-1%-1/-10-1^-1o-2/-2@-3'-4)-4o-5>-5H-5U-6,-6J-7/-7P-9e-9g-9h-9i-9j-:l",bu:"0$192,FKJgT=UYZ^e+hhjmm8mFoGpGp}sjw]w{-'7-'E-/m-3#-4.-6=",fou:"4I:L:O:Q~1-3:",mian:"!G!d#4$U$W$]3Y5X6A6_6o9g9w@qB/CkG!H_Q;-!L-!M-!P-/_-7y-7z-8'-8,-8q-8r",gai:"):5=5LD,ErI!J1Z'_/`TaYaac!lnpcw[|O}1",chou:"!+#n$N+0/y0}2:4e5/6#9jB*B.GNLfUmZ+^3^5_4e%e4fWkan]nbo.o6oU}u~$~*-.X-/>",zhuan:"%H'S'V.K0k1B1H1r2?7Z+7+f,8.#.|0K0p2O>#DNE1P.ccd]eMlpt8y>-0&",ju:"!Z$L$w%R*W,c,l/e1~3&3J8#:t=#=`=k@FBGC0DlD}FeGAIaIkJbMrN[OVP`RDTlU|W>Y`[$^Z`Ua*ccc{dWd]dae#e@eFeff8fSg*ga@'@2@KA%C|DQO+O]O^PvR!REScU'UfZw]m`l`na'i[l_m;p-4F-6'-63-91",shi:"!E!Q!e#?$p%$&+'$([(](q*^.&/5/n0[1w204zQQR9VYW2W@W^X2XNYxY{ZI[:[<[v]X^l^{^}_p`DaDbmgqi8ixjdk!kNkpl(lkntoMo^ocoeofp5ppq%q&q*q4qbr=t9x/-&^-&_-&}-'<-'@-(*-(8-)!-)H-+,-/<-0?-0d-0o-0p-2:-2O-3+-38-57-6M-9C-9E",qiu:"*6*7+a0r3k4D5]6j>7CaCeF`HEJXMhNgNjONP;QMQ_RfSWUUX?XUXqXrajc$d'jpjskXl]n@o.oup:r?-#5-#6-$8-/'-/k-0W-0X-1,-2Z-4v-7&-9U-:Y-:Z-:]",bing:"!n)F*4+/,>.75@DsOcZ7l`puqar||>-!:-!q-#,-#G-''-'C-(D-/O",ye:"$>$E(0,a6g=;@?HfSb[]_]lUlfn(oip=rmtDtTtevTx?-!O-!R-$5-%N-'F-'e-(T-*o-4Y-61",cong:"$'&Y1>8==g=l=p=vDIE=I2JUK0LsRZZk]$a}a~sKtBuKu_-*)-*V-+Y",dong:"&&.r0b5D?7?C@JD|G;I#KwQ([&jV~^-)T-/=-0)-4g-5/-6T-9,",si:"'?(b)^)g)p*+.+>0KxL+NLP7PiQnReS&W_`tp1pvp{qTqnr8r`tIuzyB-&6-&R-&^-&c-&s-&{-(:-)L-)q-*8-+.-0.-5j-6`-9N-:o",cheng:"#0$,$P&W*O*[*w+A+{,O,v/l5[7#:`?}FQOoS(UKZV_#cHcJk#m$nhrxtkuxv@vWx=xB|2-!A-$h-'w-)o-*>-+B-/u",diu:"r2xL-&&",liang:"3A3D3{6K@0CRF{Q%Up[,_Oe1h!h2hCiBiHojss-!=-)h-.J-.O",you:"(r)O*I7o8W;L;f=5=M>VDKFoFsFwG/KaOOOSPSQLY8ZN_;`qh%hMjWjnk6kPlYmEn3n>ncodp~r3x&x<-),-.y-/1-1p-1z-7N-8P-9D",yan:"##%F%L&%&F&T&v(Z,j/u1?2$5t7V;!;h?<@@AsCVCYCZD3FmGpH.JlN_PVQAT$UxV9WUX/XkXmXnY?Z3[U^1^C^E_e_~`B`C`RbDbPc;g/g7kIm#mNmsn5nHnsnyoPoVo`x+z7zkzmzn{A{`{e|}}2}b-%'-%,-%B-%v-'0-(#-)~-*$-*F-*j-*s-+C-.4-.H-.Y-0V-3$-3*-3B-3n-5#-5G-5u-7K-7r-8T-8W-8_-8`-8a-8d-8j-9L-9Q-9w-:1-:N",sang:"'EVNts-%2-%{",gun:"#<&#'U6F6z9dJ>JpTFTwUu]4h:?B@}AbB3BwECHxJ1NwOrP'U9UPXM[X[hhLhmq`tetlu.xSyUzTzU{W}4-!S-!s-#F-#`-#j-%f-(A-*%-+t-.3-/K-/U-1u-3T-3z-6g",ya:"#B%C&{'I*{,a.g=UDEKqO;T1WEWGY.^[g=i!j4lUp=s=v7x;}f-3C-3c-4U-6O-6V-9o-:;",pan:"!&!>!?!H!o'L'x2A76=F>R?$AIH+m/V2T4{6b99>j@`BnEkK*O:OBP^R2RKSzTKTNTO[@e^f>ohparHtQv5wbyF-3_-9@",jie:"#S%@&{(.*d+=.G0e4J5,599D;k=(@/CfD,G#G`J[LzOFP&P:PTQ=SKSQSqT/TITPTlU4U7UPVQXOXSX}Z%ZWZh]/^K^~_5ckdve=j^qGtNtXz,|1}.-!m-!u-$U-%c-&v-+i-.l-/@-2&-4{-5$",feng:"!@%N'40m5v7R:3C$FdHnN.PFSaWI[R^c`?b.c5k'n+n;r[u5uXxs-!$-!4-&%-&J-&L-(w-3(-3,-3F-8)",guan:"!'$b$j$k(W)B,Y/f0E6:9&:]:gBVFqIEWSW{X+X.a?bifMh?kmsUu>w7zOzS{,{2}{-'K-(N-0q-1N-1j-2e-2z-6D-7A",kuang:"!Y!z$Y%1%r%w(G+}/O/z5'538V8vZ-8>",chuan:",40jA7BYB`BhBxEvale[hIkJp%wQ-5+",chan:"&6'W)K)q1N6D7$8*8A8[8_:6;xCODJIHKQQ2RGR_R{S1UeW!W`X3ZMZy]B^+^7_N_bfbi|n2n6o@rTr]uWw3xYz%ze{7{g-#Q-%D-%~-(%-(S-+Z",lin:"$B&['t0:393O5{8!S]SrU;VsD5E4GTO$WNYk`LdDdNgjozp?wr~~-!a-&.-.D-.`-/&-/0-1t-1v-1}-9=",dan:"!K%$%5)r,S0N1h4V8A=A=B=H=~>q@9ATAVH*JDOkPUTLV?VoXGX~ZK_'a|bBc3f{mHn&nKn~~t-$I-'G-'s-)*-)a-,C-3Z-8H-8b-8i",wei:"#o$M%}&0'#'D'M6/6p6r7+8y9f;6>n@gC+D!DOE+FCGBH)I&I(I4INJ]K$KJL7LdMDN0PwQ$QDQHR?T3T6V`WkX$Z)[#[^^*^4_I_^e;fefig@hbj>kg?:?k@N?#@!@D@E@nA3C!CWC}D*DFE'E,E]EpFFF|GKHKHjJXKsNSODOGOXOwPIPMQEQIQWTETsTvU.V(V6ViW+WKWMXpYS[C^H`Va4a{b4bXc(c7cRd=dZegh*hPhRiAiLlIm(m*mmnQowo|pFqZYZZ]U_6_9d9fYj6j~lWm)mep)rQrbrctvwkxc{y|U}6~?~C~`~m-!Z-*'-+R-/j-0j-3i-4/-4@-5,-5f-6j-6s-7)-9G-9W-9X",tuo:"%U%V&z0L2J4v?{@$F_H6MUTbT~Y'Yc^QdHdQnVq+r`x1{{|;|<-&d-(.-(z-({-)1-)J-)K-*:-*e-*p-+$-+3-.b-/%-/[-0b-3O-4,-6_-8}-9$-9?",zhe:"#'%+%E'P2f2|_@eB>CADvFAI0I>J:L]M:M~TgWHWfY/Ya[|[}^6_ngmi6k`kll*l9r!tdwhxRzv}!-!j-%=-&9-&T-'(-'=-*&-0u-1I-2f-3;-3]-5F-5Y-7+-9T-:%",zhi:"!7!t$s%=(J(i(k(s(y)2)I)Z*2*>*A*T*^*c+(+)+J+Y,G/k4Q4b5T5W5s6~7^7|9(98;(<0=E=Q=b=}>L>|?+?QA4^4g=0D{OPOZX]Yb[(]G]W^ng=o;t*xHzI{N~J-&t-/9-/a-1{-22-9]-9`",hu:"(1(~.j0Z1M3!3^545r757G?0AMCtCxD5C_{u-$*-'1-(A-1!-1d-2i",yue:"$S%!(a){0^0|242S2_373H4<8sAlM{O,O.ZaZc_>cid2dCdFfZgApDqBw2whw}zczd{[-,V-6:-6B-8Y-:^-:m",lao:"&)'n,71s3<5>9M~CXE%F$H(JWMaOQP%Yg^jgrh>mAqa-$^-(w-/(-1w",pang:"!o'A1+=/>R?$?=A/B|QmWsd@jf~6~|-0k-2g-:K-:M",guai:"0,;%",sheng:"!D!^...t7*7q859e=[=x?*E(KM]^aMb1q2t2|#|Y|u-4_-9B",hao:"*:.,25-%|-0i",mie:"!`(D1G1dJxL>SNS~W]vt-1e-3M",nie:"1&294(4,=G=|B)B0E!GDMlSX^=e)e?eAezforAs$sJu*vfw9wByVyY{&|c}(-%L-%x-:#",xi:"!>#6$3$d%/&(&g'J's(!)P)n*l+7,,,n313z434i5j6H7?7W81878g979U;V;n<2<5<6>c>d@>A6BABBB}FUG]HeI9IbIwJ+JVKzL2NdPjQoQqRYRqSiT!U)UzW9WFWiWlX7XfXjXlZH[K[m]5]F_@`.`/`W`_a(cCcGcfcwesf)fulGlplwm&m4m_n:oIokp2p7pbqLqMqvsYu+ufv&w6wSxJy,z[{5{b}9}?}P}U~#~2~q-!%-&?-'2-'`-'r-(1-(C-*C-*O-*{-.)-/x-0_-1+-1J-2X-2q-46-6*-8I-9O",xiang:"!;)*+50U5Q6Y8b9u:U;E;J<4APC{HGHvLTaU4UI`]a$a]bxdRjGl{m/q#qOrXu,x$x>y`-$a-$e-%c-%d-)B-+5-3J-3q-4(-7i",mao:"!M#i$i*:/66e:uqcsVx,y%-,B-,O-4|",mai:"?W?XF>K^LgS{aKaxj(l+~g~h-!'-5{-7t-7u",luan:";D?dAzA{L=NDW~o{r7w@-4'-6G-6h-:y",ru:"/M7F8G:1>AEgIYJ6KlLhQJSHU:VGW,inlEm`oSr+x_-%E-&!-1]-3)-3K-3x",xue:"$?,(A=C@E@IGLKStTnXd[p_[coe,hdibig~/-!_-#M-18-2k-6%-6^",sha:"%4&G052u4O8F8~<<WIYIuTJU!Zt`m`pgNlNlypHu7wcyZ~0-!d-.x",qian:"'K.(/~0A0t1'2*2D2R2p6+7[8J8q:G;h>b@vA~CnD(EIElF:I%IjK>KLNNO&O8P}VR[*[u]u_q`!`&gSh;i~kjk~p9pEpOq;q?r6sPtYukvqwPwgwtwvx+{x-#U-$z-*+-*/-*=-+U-,y-,z-0x-37-4M-6z-8G-8M",suo:"#*1Z1^4Z797U:?;cFaFbJ7P{VJcuk)tatju3u9xi-/b",gan:"!3%)*1*t.Y/x1*1}3%4s91>GCmE#T>Y^bJbTcAcTcti}nE-+e-.Q-1T-2w-3*-:i",gui:"!q#o$.$C%x%})0)s,E/?1K1T?NERJ;N%P/R*RpUgEi#lilxuyvlzY{P|M~#-#K-*;-.7-.:-.=-/S-1F-1U-2%-2r-34-:Y-:]",jue:"$Z$l$o%6,%525S8#9NA^D=KiKtNnO6RwRxU!WWWbX%X5X>XBXZXiY4Zj]N^f_}a0c[chd7h7x8D9V:4AQCyFOFPNxV}Zm]c_QazkFkHl.uqv!vF}*}/}G}H}w-#$-#r-+|-,/",gen:"CQEHdc",xie:"';(f*&3c4k5+595I5h6g6v7&8>8T92:B:M<3>l?T?V?ZA&LRLTM0Q7QKS+S@SBStTRV*V^W4XKXOXS[B[y^<_Z_mflfnl,lU-!i-!v-#1-#D-#h-$#-%c-/S-2%-9Z-9q-9t-9~-:b",zhai:"%X)3,92qP*Q,Znh5iGj+jM-.N",kang:"%<+U2v3tg1lJpgugwmz={L-17",da:"!W.u/(/S84;H=Xs]Q]fa`d0dhe3gvh_hfi;i?lvnkoHo]p#q]v*xW-'%-(B-*h-+;-/Q-1>-20-3|-5k-5s-78-:a",hai:"5L?Aj9l/lnnro<-'!-'~-)Z-)b-+>-+p",heng:"?J?mMZT9vc-3o-4$-6e",peng:"%c&'&S'+'Z+,.V1+1@5@8P>~AACgE%FdJRMkRiRjU3eSgbh:s9v{zL-$+-$0-):-*A-,X-,b-,q-4K-6y",mu:"!1#N%]+V7`7n:@?.C5DeF~G%O=e/qKqPx!~3~G-#9",ting:"/s5l%>&?qC)FnI7PWQ8ZJ[El=rUxKz`~K-!~-$g-%e-9F",qin:"$j$k*'*Q.d5c=>>MD1DAGZG^GkMRO8Q}RJS7TVWJWrZQc]pXpkriwix{}c-!]-$~-)f-+E-/c-33-4L",qing:"&/&Z'i046+60:ZDaHzQ#Wr[%]%_Agph+i7m;>t?fA!BuC,DrGWH=I'J{L4MmO^U+U,U6VrW5ZL[d]Rd8d_eKf@m3pxq5qFrVtow0wxw|x(yT-'4-'^-(E-(V-(d-(g-).-)[-*^-+)-+~-,$-/0-1=-1}-42-6k",lian:"'K+D2+2P2V6w7b8k94;s{M-#!",ren:"(o*,*e+#4A4U5)5y8x9$>?@AD)E}FGGDTUU2Y!ZC^I^Vg&gFi&p/p;pRqp-!W-![-#[-#w-&i-'#-(2-.^-3{",shen:"!U![$8$r$u%j)#)9,12e2g3T3U3q3w4l96:p:~>i>m?t@BFkHwH}JGK!LCPGPHUNX)Y1YHZ*[2^)_%_L_S_VfylPqRrj-$W-)W-.m-/z-0@-0|-1)-2N-4A-8b",ze:"#R#}$n(+*p/,0J1I=0BsKAS?Vz[(].a@b7b]c:jO-&t-6.-9s-:,",jin:"!#$j$k%M)8)G.U.m/J4W4`6L70:/B6F&F;GcGkJYM!TWW%WzXsTwGy2-!^-'m-(Y-)$-7D-88-::",pu:"$5*k+j0$8LBTBUFXGGGaH~IsIt[D]]_|bEfInprtupv=xbyqyu|[-/m",reng:"(_DGiu|z",zong:"&Y'h+?3P3]4$5z6E6Q6n6x7(7M7X7e7t9%9nz?!?MB'CwE5E7ENE`F4GHHuJbL;NsXHYOYP[I_caFa[bzb~cZcpd(h3hQiJmbp&pmsGtRtuy=yO-$s-$t-,I-/{-0r-2P-4e-9)-9f-9i-9u-:D",zai:"#^7HGHb+g|i9n^",ta:"(d)i2~VAZr]wdBe7etfFfOfpkdkiq+sBt]tex1{'{5{;{={R{o-!s-#*-#B-/?-0t-2d",xian:"!:!O#5$<&#(F(h)X*3+D/D0V2k3B4%4|5A5c5t6,6]7J7r8Z8c8q90:%;];d;h?&@oAnA~B;BvDSDwFzG,LOM'M*MpOKO_O}PJT+T0V_W:WRX,ZXZo[O]d`>awbKb^cYdgd}f;fhgBhHnfo'oPqvr#r$rFrqs0o334=4P4f5i8o8{;z*]+m.?/Q/i345D5N5`9PA@EjJPO1T,Z,cFj|ndq:qYqjxC-')-/L-2*",dai:"0,1n4x7%9AC?OMQ]TdW=Yd^xa7aLbqdff'gCgLg[i%jIk4p0~z-!0-)E-/>-3I-8N-8e",ling:"%d)D*M++.5/+4p6@9];K;U<.=KBqD[GiJJJmL%M|OiT(TcUjYVdLgZh/n8oWpts0x)zN|q~;~O~]~a~c-!2-$L-%`-)C-/$-05-2C-3L-6Y-7E-7q-9z-9{-:A-:T",chao:"!k,h,r2u6?9b;5J@mA+DTGMH!UlUqZfs&sWy+z'z(z0zh{1{a-#d-.0-02-1X-2H-2T-92-:d",sa:"8g?^HDK{LYY@fnpQuwwS}A-!c-!s-&,-&P-)&",fan:"%0(M/1/40i2A2d6R7i8$;o<[AIBcBfE0KNLPM>N!SOVqXva=bcfXo:-+g",wo:"#l&A,R,_6}>I@OAlB!G*HQLgP[Qbe:-(p-:4-:I-:L",jian:"!%#9#`$<$D$I&N&b','r'}(&(<(X+D.p/9/g0#0/0Q181k262I3_5U6Z788(899v:9$>S@fB4BoCICSCTETE~G-#O-#X-'A-'S-(7-(k-,h-0Y-0`-0h-1(-28-2h-37-40-4R-5@-71-7F-7I-7J-7W",fen:"#|%A*9./2x3=3r4S9';M;q;~ARD4IxKmO?O@TGY,`^`ff|hjnOpUvY}K~5-'W-'}-(c-(r-.w-1M-2Q-35-85-8n-9.-9:",bin:"%A8I::A)AiNc`X`cahailKvjya~l-$p-%G-%k-,'-,1-,E-,_-,p-.!",di:"!u#/%W')'.'{)<)_*U.v/*1=2c4+6c:);X;@WDXD_FMG9G_ICJMJrJwJ|M6Q+QVR-0>-69",fang:"!I!n(l4Y9*>TBjD;O!Y;^ed@lLp@siwn|,-,?-.v-1s-3E-51",pei:">Q?(JBSwUrUsauc2hyiPnBn{s5y7|%|f~M-)#",diao:"$#&a,C,k.B1]5FJML|NhOaXxZ8Zv_M`ro~p_r!r:s*s[vawUxExR}v~D-.c-//-0%-2L-2{-3&-4O-9>",dun:"!^?gD'G!O'O(R/RO`ahShWiNu6zlzqzw{<{D{Q{c~4-#?-#{-%(-'f-)(-)4-.r-0g-0z-2V-36-3G-9<",xin:"!=(F?zBID7FkLZSyVtY3Y-%T-%U-*[-,w-.G-.W-1_",tang:"$f'@)f0{3V3j3o;l=)@zA4J4LJQSR$RAcMc~eef&g+m]o=tiu)uTv'wDx[yWyd{1}:-#I-']-'h-5:-96",huo:"!V$S$^(*)>)S*Y*_*`+|,W10=$=4AuCJG.IhMTSI[g`0a:4<%<@?R?U@.AEANAhG{THVmd#uQ}Y-$|",che:"$;%I&?&@=JFjP@gFA}EKFRFcK:LmRBTDW6Y7Zz[Q[o^;_V`$arb;c`cad>dKeagKimjHmDo@pAt(|C|o~H-5T-7]-9l-9m-:=",xun:"!x$Q*p,^4;8MAjEnF:KLKSL[LaMcRzS%XwY#Y)Yt^R^T_+j%jajlkclsmzoTv`-%A-(}-)U-+%-1?-1H-24-5A",chi:"!]!y$).X.y/A0+02133,5W<#<$>?2?D@SE9E|GeO%OHORR;U/U0UkVMYFZ9Zq[t`8aRcBc^d+dfeGj@jBkKkfkrkyl7q7q^qusx~9-&l-(4-(|-+&-.R-3Y-4!-4r-4w-4y-5]-6Z-8(-8C-9k-9v-:<",xuan:"!m!x#d$['5)k0R5?7J7d7w9K-+4",bai:"+&.;3;3M51L^W3b:b_-#k",gu:"!/$J'B)A*~+P.z010?0u3g75:r:v;Q>K@(AfE)G>GhJ,LSOdOjSeXFYR^h`%a]bxgdgehYi,iXk,nYprpws]wwy.}h-%@-%W-'Y-(Q-+`-/;-0'-2I-3^-5?-6S-7%-9*-9+",ni:"!h#P*G2m73=i>$>}@pABA{DqLpOLP.Q!XXZt`~d`h.jhmCpnx3}L~X-(e-0,-2J-7`-:+",ban:"*E2s5!9;>PBgBkQ*QvVKd[iciipPqEwfzx|$-!h-$F-%Z-.n-35",zhou:"!+#U$x&y062.2@2C3+384:777o8p9:B>o?#B^F@GoI$LfY][a]y^r_4_Manc0gkg{h,i0inCqg~Q-);-)`-)t-*r-+[-0(-3~-6f",qu:"$L'o(}.2.F/@2U3?4o5#<1u?/AxDlG:HhKbM}O[OfOpQdRDRlSkSpT'T:U&WxX!X&X=YeYjZj^tcjcld%d*fqf}g2gWw-#)",ga:"g=onsfwH-.A",dian:"&p'v,j1iIiKRPXdXeVewq!x%|8~@-!E-%3-%4-%z-*g-8Q-:8",tian:"!:#;'1'H,j4w6D>v@:BRBXGvWmX9atnTr#rFsXx%xM{%{n-!>-!G-'$-3f-5J-5S-8:",bi:"#L#M'!(w)L*@*C+;.n.o/E/Y0(0)1/1<2r2y4M4m6>7Q8@8};7<,=a>a>r@lA[BlC|E*F.FJG~H:J*>1>2GdYf^ucScxorpC&CqD^FyHSK}Tjh$la-#&-$)-,Z-/`",zuo:"(|*S+!+n/,/p4*7{?'D{F^H`HaJ?Th[(nWp||7-&t",ti:"!g#e')'?)Z)|*v/8285f6|9Y9y:{DXF!KgLIUzV&V'[qd)d2eJemexf~g8jxk=kLo&rDt)xy-%$-%r-*2-+m-,0-,L-,]-,a-/^-0B-2U-4;-4w-4y-5L-5M-5i-6r",zhan:"$H&b.33*6=9oGQLMN2N`NaOeWyYQZ/]h]l^B`#cghUhgiSl0n|zK~V-%~-&*-&N-&e-'|-*b-*l-.Z-1S-2y-37-60-7=-8i-:h",he:"&c()*(0z2i3@4?8r-:`",she:"'y(`BJBKBLJuNpOgP(S5Y>^dagakc'cDg~{!{^-#h-)u-7l",die:"!g!t&w5M9GpB5C6D~PmQ`R@V,V]YU[7_WcbdOdXdreigojNz+-#1-0S-2R-3d",gou:"/01%2)3g6t:&DhO[U#VBWwX;YNY~_(`ob5bgk_pMqHwl}k-#A-#m",kou:"!P!Z#r$$,P.2/W1OD+K=KFp$-5K",ning:"$P=R>!DpLevm-,~-64",yong:"%p&>A]DcIPP=Yre2e]l@mJmio9rHuVyh}n}~-%*-%s-'x-/y-0w-15-2A-2o-5`",wa:"%K,),?,E,`=N@r@xOyTuW1lc-#W-#^-#t-8w",ka:"?8U@qV",bao:",<.~6h?,DgGYHcK`L4MJN^OJTeUdV4V5Vf`ib*d8q/w%x.zs~>-!6-&x-&|-(9-)/-+j-,M-/7-1~-3/-3A-6Q-9r-:B",huai:"=7N3N8VDVSeE-:f",ming:"!C!w#zEDJ'R,WuZ0m^n_q}xT-3.-6L",hen:"Y|-!y",quan:"$b%u/K0B5<6$7:9mEqI3NAP|SlXLZ#_)dkeIgzi=o5qxv%xO{#-#_-%M-&$-)V-*3-,e-0L-2^-9}",tiao:"!~(t),,J,g/!3/4.5F=S?PCdD^H0J@JMJNPnWdZ8Zv_McqdwjCr!rdtyxR-#%-,G-/o-1&-2;-9y-:C",xing:"!D#Z&$0Y0g6J@YApBFEuF7FhHrP9T#XVX_[_lMluo+pBqZqwrhwZx6|D|S-'V-(/-)p-+D-/5-0D",kan:"!N$=$g%?'^.QG&T%h8ho{4{q-%)-.+-:R-:X",lai:"#8#F/X0%2/2MG'H%MSW7Zqaob,c&c4k.mBsgxd-$q-$w-)y-0*-4B-4f-8%",kua:"50?>B~Z=d9dlq~-+s",gong:"'91*44474=8o;z>[OBXQXba6bZfzg$gtrG-!z-,T-:L-:Q-:W-:u",mi:"!s#p$A(w)')w*C1d2b2}3p407c;>;F?bClH{J#K'K/L}N#N6PaU*WZW[WcX1Z.[j[l_g_rjXo4oXoYo_r,z/-!K-66-7X-7Y-7j-82-9&",an:"!(!.;)?I@XEzGlHWHgJSUxZS[N_d`k`{r1s:x]zy}+~=-!w-!x-$1-(l-/E-4I-4u-6v-8c",lu:"!)#Q$_%|&L&d'])E)J*}+[+o071X1v2!2#2G2H3I6S8^9q:f?9A,AtBmBzCFCMCND.G@JcJeJtKcM[NSYXh[~aVb|d$dseCf#gxh^h|i/i>iTk5nwpis2sascu8uMumvGw&w+yr|A|t~x-%J-%_-)+-)r-*N-,3-.q-.t-00-1i-1r-1y-3w-4E-4P-6!-6>-6U-7;-7C-7M-7b-8l",mou:"!|7n:@Oq[[_Ue6t=-#9-3y-8!",cun:".N2nA>lS",lv:"$()(*r+~0`5Z5~6S7_7j9q:*@wA(A8A;HkM,NKV=VZm'rJw#xDz_{T-*u-+*-5a",zhen:"!X!b!c!}%Y'%)5)T)b+I.A0X264N4w5Y7D7L9,:2=I?%B9H5I5IWJ&LnTpUSWaYKZb^pa2afbWc%g^hZi4iqkOnNoxq$r~s`tOu$u%wJyS|0|_~L-)D-,o-1f-3@-6R-8d",ce:"/%/U/^/t0G1W36F/H3HPJA",chai:")&>HCjEJNzS9T[Xz`jp4wY",nong:")v*j+q8C?cAXL,V~]iioipoL-,{-9a",hou:"#c$t0q3Z@AGFyHCKyL2LtNBNMP{DoU1UbVTdPllnm-+o-/R-:p",jun:"&].=/`0<0CFlGCI1O/PeTXWhaeg?m1p^qfr&t'wj|Q}^}l-$j-'8-(J-)m-+F-/]-2?-43-44-47-7U-7^-7d-:Y-:]",zu:"(x*J+10H4}95GqHbIkYm^kd6eLtdu2u;yk|6-!f",hun:"!F#O#W#]F6I8JyXT[=_2hczo{d-'>-(L-.C-9J",su:"';+1+3+],X1U3.324X7K7U:?>,>/@{DWFwJsM+M]MiXWYE[r^o_lcyf(k$khksnZrR-':-*_-+L-/i-1@-5p-6~",pai:"0'1z1|IOhBjLtV",biao:"'c,!1D@3A,A1AoJoM=T@UoVa[3]#b?seuZw$ycz#-&&-&+-&5-&D-&E-&F-&H-&O-&W-&X-*~-+@-+W-,;-2j-7Q",fei:"%[//1!6M9aO>e>r>z>{@GDFGjH$KhP_PuRuUtZp_GaObsvEyP|g~T-!/-!H-!I-&Y-&[-&]-'H-(j-*!-*,-0+-2F-9;",bei:"&i&r)`0'3f>wA[DfJ9M8PAU'V;ZLZwa1bVgch@iDlbm5mQqWrPv[wd|=-!l-#,-#C-+k-4N-6x",dao:")=)H)x+B+K005F8hbdm?n~o,oJqQsMx#y8-$x",chui:"&U0D@8GPsFtny0|n-$u-:_",kong:"%.&V,/0@;gg,sA-#(-4[",juan:"!{#2#H5J5V7Z9S:|;=?w@7AaG[K3SfUM^&mTrZras6u0vHy5yXzt}^}l-#'-&k-'.-6m-:w",luo:"%T&!&='n/>0M2]5>8f9M:n;@@)@UAwF8H9HYJ5N9OrRHS6UvW~X'Z1dbf`g'kAl:uEw>y/yf}s-$f-('-)_-*P-*k-+=-+X-/K-4#-6)",song:"&P.@===yGOY0Z]^b_?jcu1-$@-%[-'[-)e-,c",leng:"#>&h++L@eD",ben:"/&<(DxRuaUblk/sIy&",cai:"#T677P8aGSK+U>a5b[dxeQob",ying:"!R$v&C&|(P)c+_2K2^6U7/8`9^:>:X:Y:c=?A:ASDzEAF7F9G0G1H@HAHBHZJKLqMwOmQ0QPQiR0S8SgVPWv[i]M]|adbHc@g:j/m2twv8vky?~_-##-$.-$i-%g-%o-%p-1V-3g-4q-5*-53-5o-5~-67-6C-74-7>",ruan:"&u(>6^U?sA7C~G3G}HRITJZQgSUb(hKn}o/sL|T-0#-0Q-4i-4~-6{",ruo:"0P1#DnI}mP-0e-0{-5<",dang:"!,#s%2'((2/[1f2&CDF3GbKuN(S)UCW&]b^A_kd&kEvWxB{9~A-8[",huang:"'w+e0f1q7O>=C1F#H|Q@RtSuYv[V[f_Xd,kWt3txu}yI},-$,-'P-*.-0T-1A-2]-5q-86-87",duan:"${'&.I1`2X6a:#IMK(QfRI]1a*g3kxu]yN|F~x-#J-+}-,*-5a",sou:"#v2BC;IQJ(L_M?Qum[o3t~uAyH-&:-&<-&S-'c-(R-*<",yuan:"!9!f)V.i0F6f7':.;m>CD3DYE?I?I_InLGLdO5PRPzQFQXQrT&TYUiUuV3VF[xa3bYh]iQj=k@kgl8lRnPphs'u(|^-%1-)9-*G-.o-30-3U-4V-5%-54-6K-6]-6}-8s-9!-90-95",rong:"+Q+S5E7@9C;^>FEFEfF5J/QhQwQxSDVEghthyb-)R",jiang:"(43u3|5P8:9L:F<>=.A2EaH^ILK.LAQjRM[w]=^W`6ngo>oF|H-#P-%5-12-2_",bang:"&<'A+%5_749B@uC8IcO!O*OvPt[s_olQlVt^y^-#3-,#",shan:"#:'m)K)q+W.s7g7}:D;p;r?pALATBaD&DtR}S,TCWjY%[b]r^ObFc?cVd^gGlAn#p!qtvBwRz4z5z;{@|P|X-'q-*J-+V-/l-1C-1D-2s-2y",que:"&5&E&g'6'7(1(N:P:RI]O6c}z}{*{l{p}a-4Q-6t",nuo:"+<+u3e3y4&5JiKWL.M4N*N+N7N@SPZ:^(^zhxnoqls?vPvvw:yz~<-!*-$O-$_-%7-%}-1Y-6<-9R",zao:",y,~1R3sC#LlMPOC]`d1f4fNk%ktoCwA",cao:"3m>9C=C[EwJ_R:VbV|n)uc-*D-94",ao:"!T'Y}I-*S-+S-0~-2b-5X-8{",cou:"@ThJiK",chuang:"'_,H,L,q{+{E",piao:"$+).1D7a:;_tmuuCuUye-#!-%;-%y-'i-(Z-,t-,u-1*-2m",zun:"8':^U5]Pk|qqv+-1B-2u-4n-5|",deng:"$7'q.M/H1pCCW|`:f9l>mxv6yx}E",tie:"=VH8OhaPbndXq'qzv>vRx'-&z-'Q-*i",seng:"-,v",zhuang:"3:3nF)F]UBUZ",min:"!B%9&`.}/<1l6O6d:,:wDiSSb'pqs7tEzEzZ{K{S-1$-2n-3P-8q-8r",sai:"2'@cb6c9-%#-0_-2X",tai:"0+27>h>yB8BeD]GeLjdIl[nSpfw^-&/-)E-+7-/6-2$",lan:"17212Q4/8K8i9x;+I2F7I@sAHM9N?R1Z@[`l1~u-)S-*B-*v-0s-97",long:"!p$a%n&=(R(S,u.!.6/;1*162N=P>'?6E'[,A6;9l;1;;-&@-&C-&U-'b-(W-)M-)c-*@-*d-+T-.9-0m-5=-5_-7.-76-7[",shou:"6.9h@yC2uA-(_-:s",ran:"7v>ZDZIFOEOYTST`Tz-,A-,K",gang:"%.&q/{639!:N:W:x>Ep+s)ttwe",gua:"506}:z;%>xU^|cnedr#rFxM-&'-&1-*9-3k-6c",zui:"#G)C+15&8d;$KjRdXHi]nInqo!s$s8",qia:"%{'I?1HyU4dUnU-!{-+z",mei:"!L!_#)#a({)]+X0h3p;I;T?S?r@PE&FfI@QGTZdMg0mOnlrKtUtZyMyQ~N-#^-.>-.F-5(-7(-8V-8h",zhun:"+$,56(>UT8YAZ{_Pj.",du:"#K#b*f.T.^1,>DCsFBR&SZSmUyWqZd^$^D_E`3b%bNc)mMo(sDs|v}yL{!{^-!Y-#V-#s-#u-*E-,,-8]-8k",kai:"II`7gysvtbt{vCxGxvy@z<{({U-&;",hua:"%;&K'B3S8/BWD9D:GgIKK[MzR#XKZ&Ze[4[>]A]o_&`0p(p)rbsdunxN-*]-+<-5m-8=",bie:"FTNFObRmVuf6-19-2l-8|-:[",pao:"%e(@(O,!?|H>M=TeTfV>dDdTgfq/x.-!N-!o-7Q-7S-7|",geng:"56575d6m7,9Q;j;uAbArG?HYM3PfQ4Q[SRi_i`l6v|z$-#0-,k-0F",pou:"0$UO",tuan:"1H4'V8a%u<-5V-6#",zuan:"1B2Y808N8U8e:Kb3fjftq)vxw?w~",keng:"%t&3&RZOr>t1uOxg|&",gao:"#R#g)4)6)e*m+N+O/v0~3i7E:5;O;TA'B,GILrMHZ[_:m+ryu#xny]-#o-'_-,4-,5-5R-5v-93",lang:"&7*n/dC(F{IXJ.JHPOQlZEg%lzl~m.rLu&xzz^{]-)h",weng:"#q:b;}=rJ0L(Qstg-56-7,-9_",tao:")?58617A7N9W9kG|PoUhX{Yn[{^MdwhXjPjenzs+|r-!k-!t-#@-#l-#|-&w-'d-'y-)P-)x-9/",nao:"%z&q'*?a@&@ZAkP6R~YZ]Ju|x@zJ{O-.'",zang:";S?_AmAyB$I,K@M#abambLbUb}rC-)A-++-,.",suan:"(z.b/m0;1BI^nn",nian:"':*5*P1Y3*C/K6evf5f[h=iCiS-/4-0;-1x-2K-4%-8B",shuai:"7>:4RNTH",mang:"!5!6&<&D.ZCvEXEiG4G5M_OvRaSAlDp.rsx:-)g",rou:"*!2w3X>3?l@aHdQC]tekhEt$-#2-#f-*7-0R-4t",cen:"+W.m1A",shuang:"(V7;CPuh}z~b-*M-*y-+^-5c-6A-7B",po:"%g%i/70I3'7i<,IlK,jLn%n[o1oKotq9uswMwz|=-$K-%a-)7-,N-.E",a:"@@s@x}|:",tun:"AYAeC~OlVL`G`IgJ~Z-&h-(0-.j-1q-8J",hang:".k/T5*9HBiDHOAT#UAa9j3lJ-$C-%]-.i",shun:"!x$&$1$9BZKo-$:-%S-,g",ne:"!vY6^]",chuo:"'j0^6?8&9bd!e'e`Q`b`va/hpj9k3l/lsn9tCvSyJy{{:{r}i}{-*|-,|-/n-0A-0K-2>-3?-4+-7<",ken:"&#>8>Y>fUFV$`S`wsh-:?-:E",chuai:"A0ACeb",pa:"/bm|roxk-.6-1K",nin:"?[",kun:"#7&H);*s+*5oGEPpUEUJUgV.`wo%sCy*z]zj{Y-)w-,<-,=-,D-0/-2G-4^-5'-6w",qun:"0<;_;`UVU^e.k&-7U",ri:"TMp/p;pd-)%-+(",lve:"+4rgrlxr",zhui:"&U((.h66729r:'@C@|[!b>c6j_o#s>sQvdy1})}Y-)s-+J-4Z",sao:"$O7m8<:A:HAdR4-&<-*#-*I-+Q-,:-0l-1R-2a",en:"J!",zou:"0&6GG=[)_CcNcOlem@mcn.|h-*H-+1-/w-06-2E-83-:.-:7-:n",nv:"2h=TSvSxp8wW",nuan:"-'M",shuo:"$m&+'$0cIvZaZc_>qttmv~x*",niu:"4H9.FxpTwq-!`",rao:"+i8)9FF,KdVvk}}B-'v-(>",niang:"nuoRoZ",shui:"#I)7*q*z@1U[ZaZcZg_>_KzG",nve:"&ONJ",niao:"@%E>K1T^UGVO-2{-6H",kuan:",s,tAqw(-,&-,2",cuan:",',Q,s,t,z1)1[fLfsrZw;yv",te:"?vRgr{xe",zen:"]V_y",zei:"S;a_bv-0M-1Q-2+",zhua:"2(AU-,Y",shuan:"5<@]z3{?",zhuai:"#1dmi'",nou:";v=,tfv;",shai:"/Z121J1e2[[K",sen:"Ve",run:"$1AOz@zQ{F",ei:"ZH_@",gei:"5C9J",miu:"7n:@]+_w",neng:"?LR'",fiao:"WL",shei:"Zg",zhei:"j:",nun:"-84"},m:{yi:"-:~-:<-:;-:4-:3-:#-:!-9~-9T-92-8u-8R-8N-8I-8+-8(-7O-7M-74-6l-6c-6L-5z-5)-40-2U-2Q-2>-11-0o-/_-..-,o-,B-,3-+q-+[-+<-)X-(o-(5-'w-'k-'=-'#-&6-$'-!?~=}E}1|x{Zz|zzxix6x.x%wKw,v%uPs_rurorEr8r)pppdpXojoioVnxn_,^g]|]{]`]/[!Z=Y5XVVTTgT_T7T1SxSsR~RyR;QwQ0Q!PDP6NbN^N,MZMSLXLIL6L$J9I}IUIIHMG?EaEHE4D!CwCFBkBTBEB9B5@2?Y?K?I>K>H>'=a=R;m:~:48c8!7,5g4q3&2}2Y1j1f1`1M1/1'0t.O.K,_,,*x*f(c'G&.&&%b%Y%G%$$b$6$/#x#T!9",ding:"-:}-8q-)?-%!vipfkGiydzY2Ik6u+B&^&[%_",zheng:"-:}-9O-7L-0#{1{,yjuvsRm*lNlIi;eheZe8e4e3d/`x_v]3[+ZSY8Y2XlVFTYT#Q1C@A!4W3w07.),]%*#C",kao:"-:|n{k][#TbL>>R3p/,",qiao:"-:|-:(-6A-5v-4=-3(-2[-.@-,2-$H-$5-!q-!=y/y$xkx4rSm+m!k]k%j:iSi(hqbvaT_wVuV6V$T%KgGaF^FKFGEpDSBCBBB;8<2b1C1>.}#e",yu:"-:|-:p-9^-9P-9J-9H-80-7t-75-6'-5g-5b-5H-4U-3F-2l-20-1F-+K-)O-)+-(J-%a-$p-$K-$9-!7}]}W}5{7zizNzEvyvwv9v3tytjtetcsqsos@rsq|pyp+p%oQn6m%l8kyklk8jfgvguf%eGdWbtb(aLaKa:`1_1^:]e]d]KZOZ!YmXiTDS`SUS7RpQyNvLAKsJKJJJ;IAH|HmHVDVD:D*D#D!CrC[CDC,B*@K=Q<><<<1;h;_:v9G908=7M7I7A535#2{2R1b1:1(0;/q.(.&,1+G+9+7)n)h)F))(+&*%!$M$D$=#V!A!0",qi:"-:{-:r-9{-9E-9;-99-82-8$-5f-5(-3D-2{-1:-0G-.j-(Y-(A-(.-'v-'C-&%-%m-%I-%F-%E-%:-$D-#N-!Z-!B}$zvyHwbw;w1u~t[tFn;n3n$m~l^kkiBg/dpdTcKbJ4GyGJEW8l1T",xia:"-:y-:s-9u-6I-5e-3w-+T-*+-(v-'m-%n-!!}({Mwtwpm/logkeB_3YST)P~M-1A-/j-/i-*P-*J-(^-&C-&9-$k}[{Xtrrbp,n8lJl%dqbm_c_L]cZ(VLV%T]R_R^QRQQPOK9IJCH@l@^@?=k=Z=?y>]=x<`;t;(9.9(857&6{6d5m3D/;.j+?(>(!&8%{%t%4$X$,#H#>#'!w",bu:"-:q-7F-,M-*w-*t-(d-'K-&D{B{?{6zPtOm#izh'gfd,bi[rY}Y{YfQHM,C>C;C:'=",fou:"-:q-(cvCBj4H",mian:"-:o-42-1d-0w-,S-,H-$`tktQsZqpq#aDNWJ^E=D~@p?|;k;,7G/o",gai:"-:n-9w-6e-+u-+t|'uYm@dy^AW%T`QYNaHZGNGM:M8|'{&6!,",chou:"-:m-:l-8m-5_-4=-2A-(m~{t/r!iKhld$b3aS_%[_Y%W~N?N=LJJkI|E?B_0h/O.s.p&3&!%l#v!m",zhuan:"-:k-7o-3G-3+-2y-.I-)n-%+~EzRyPreq;<`,E%g#(",ju:"-:j-:?-9m-7n-62-5`-5S-4x-4j-2l-19-0%-.Z-.:-,.-+n-)H-'d-$|{/ztx_uct_tNt$o{nvnqnOnMmqmil`jYj9j7g+e%d:-(h-(c-%5-!.-!,~|~X}2|L{2xhvCs7*6e4n2x.Q.G,n)Q'(%k%h%@$p#R!U",shi:"-:h-:g-9q-9l-9N-9M-8t-8_-7R-6k-6]-1X-0m-,^-,:-+_-+6-++-*>-);-()-'{-',-%.-#t-#7-!W-!>{>z|y{xn=}:{:s:W:5:'9v7C7?6n4=4%28.3.+.#,0)$&3$}",qiu:"-:f-:^-8m-6#-)u-)9-&+~*|FyTsQl4j2j1cFc&]rWkO%KIHeF8BpAn@s@b?J=o;^:l:k:j2D/T.k+D*'([!P!(",bing:"-:e-:W-8h-8b-6u-5B-4T-3Y-1;-0a-0[{mp1ngnZhbhah&cm[vY,W5R0QpN/MQLQLLJnJbGXE:@~4E)r%,",ye:"-:d-9z-9.-9&-4e-2_-0U-)7-(u-'%-$W-#,-!]{:zIxqxdwgoVm$jxjw[hZzZ!YyY;X:X6UhUcUUUSURQUPxP@P?P,OmOkMYMXIQHsHpCXBh>i-,u-,G-,/-'I|/{)y&u^tXr*mSm>lKl?eNc3_H^LZhXL^>J=,7[6?1e=_=G<8:?7f7d6/05/f*6*2)c%x!'",diu:"-:_-:[",liang:"-:]-:Y-9)-5x-5[-5>-5%-1G-0B-&J-%y-%7-$Ly2bWY7Q*KJIwG%~n}bvRuAq=pZo8o6m1lyh[hZh(d]d$c|cqbY`,^xXkTaS4OVM;LAKGK=H{GFD}DJ@8@(?V?>=g;C:b976B/j/i/O.b.D,?,>+Z+Q&g&d%O%!",yan:"-:X-9d-5]-4]-4O-3;-1u-1Z-1Y-.a-.[-+:-*O-*F-*/-*$-){-)z-'%-&=-&2-%'-$N-$G-!L~~~a~Q~5{GzAydy7xLx@wMw>vPv>uFu@titfrgr?r9qwqfqWpKmhlEl'kuktk0jUjKjJjIjGgM-9<-9:-7m-5K-0W-.$-*H-*G-*A-*?-(s-(H-&n-&'-%;}L}@}9{j{5zbxTuBu3t%q2n,lVlUhKh?[`[ZZZY:XLN'KlIsIFA0A,}>k:c9s84684l0$/w&C&/&,!*",zhong:"-:P-8A-83-7x-4Z-0j-/C-$Tz8ysx$vMvHs^o)i)eqe0dddYS`MKC2@=?G4w2k.T$F!>",jie:"-:N-8i-8<-5$-4~-4W-4!-3j-2]-/@-/?-/)-,r-,a-*j-*i-(e-&c-%d-%H-$m-$8-#q~zzKz7vevOuit>sasVsCs(qSpIoJnpnln*m|lCkvkbjrjqjgjbhihIeEbr^S^;]_[,YZY+X{XwX?W_UmUOUJS9RINXNJL0KxKoI~I1HqHgHfH8EOB,>j>;:z9b882?/'.6+0)H)8&K&J%g%]%M%##D!~",feng:"-:M-8:-5L-4N-2Y-0]-0&-0!-/{-/y-%p{Rz9z5w}w9v7odoYl}l|l5W4MkKPI.E[?m?h=S;Y;#:R8e5Z4i3V3*2g1h/1,O)u%C$B",guan:"-:L-58-1=-0l-*vphb@b?af`LXqW*SRJ+G*D(B2>wRWQkP#L)?N>=0X.X.U",chuan:"-:K-7o-3G-2t-.K-$]}Tz3jFjDPMIRIDCbA?@i,H+<)7",chan:"-:J-91-2y-2R-1~-1/-/:-.k-.J-.*-*~-%$-$F-!n~P~@xBszr>q3l>kJkCkBjXh{hpgWdu^r^lXsX+W;VqVhU#S9RYJsJXDEB#=v:^967o7n71655d5B2V1I,#&v&u",lin:"-:I-9U-2g-0e-00-0/-)v-(l-%PxDlbk,gIgHc=bob)_=_6[MVGS?Q+PGN!FIEmEDQ>L#JuJfJ3J,IoGcDh@j=|=h.h)e)N",zhu:"-:G-:B-9]-7d-7G-7?-6Z-.&-,t-,n-#T-!z~4|=xpx3qVq!ploNnWnIl*i>[[[WT&StS;OqO1O0O.N>M#LzLFGWFmF,DhDbD^D0BH?&>Q;b7t7Z6s5x5>4V4A3y2^2@1+0x0?,K*K%B$J",ba:"-:F-8l-7`-1E-)^-)@-(b-&M-&I|_{[x>wCv0mumIj,fq]o]I]6]#[GZ)O+M'D,5?4R0+.m+@%N#/#!",dan:"-:D-8~-7{-7H-2r-2J-/V-,,-+G-*~-*{-'f-&2-%C-%B-$v-$F-!m-!b~[vTsjiofTfOfEb$aga>_q_P]4[VXuV@V?UjRiM/BeBSA*@)>rc>C=n=$;S;N;0:N:08?837i6R6G5|4]4>4$2]2O2F1]0u02/$.r,[,P,I*~)h);'f&H%!$N#X#U",jing:"-:A-9C-9+-9'-5r-5%-3A-2O-1N-0K-0C-/9-.~-,y-,k-,[|i|g|cyIvQt:t8t+pojAh|fdfZeeeWb/___NUoT+S&S%Q:Q3PIP0KZJpEvBsBn@I@H>m>%=><87]6#,r,'(^(B(<%($u",li:"-:@-6_-5u-5k-5Z-3s-2&-1z-08-/Q-/=-.o-.G-.'-.%-,l-,&-*L-*I-*:-*.-*!-)|-)Z-)X-(z-(2-&U-&0-%g-$C~g~`~A~>|`yrxEu+tat#rjqYq,nAmkm5m.lzjag@b]bXbRbB`l^&]q]gWYU@U3TsTlSpP_P>P%O&NmN^MqMSLnLcLYLUK!JoJdJMG1ECDuDjD_D8D.C/C+?k?[?Z=Y=U=/:/8z7@6C6$5H0a0U/>/=/#.z,~,u*V*$)z(t(_'x'u'l'W%R%F$l#P#A!Y",pie:"-:>rVV]V[PHAD8>",fu:"-:=-9c-8[-8#-7z-73-5y-5m-5j-5U-46-3v-0d-/|-/J-.R-+h-(=-(6-'[-'S-&E-!s|<|!{]wvwWvVvRuru'tDt,sbr5qJq/pmp3oWmgmFi~ifi7hzh;fwfkeje?c{ct^w]l]J]&]%[Y[QZ+YfV7S}SLS)ORN+M]MGM)M'L1KWJ2IYIPHKA:>~>Y=W-8%-6;-5|-4k-2k-2:-1q-.T-,|-,C-+y-+/-*V-(U-(T-(J-(?-(+-&)-%K-#v}4|^zLykxvvxv4u%tjthsurTownkn9n+lmkzk_j6hFgQfudbd`d@c'b[bZbKat_]^[]e]d]]Z4WGTTS7RoROQENvNtNoM&K#FLCVC=B3@[@Z@S?{>T>*=V;^:,874(3C322*1w/V/A+3*4*3(|(P')$h",tuo:"-:6-8X-77-6h-6.-'a-'G-%[-%$|Sz;v8sNrRmck'gzet]i]`[H[F[EZMYuV1NgN^MTM8ITI+GbFBF0AvA_@d?`?_?^-)C-(W-'v-'8|||{|T|:z~z{yFy@x$v%uNtsrGp&m7l0j+iridiahyh5h3ggf5eYeKe4e3dmdUcU`6`*_$^{^E]Y]F]E[u[HZtZpZ]Y{XvWpWVW2V{VvVtUKUJU>TjSMRwRgQ`Q/NOMyMcM2LqLhL6K~K7JjIuI]I*H+GHF_D|DnCAC6BiAJ@t@O@N?v?T?3>V>34`1_/9,x,^(R'w'[&3%c%;%7${$z$k$E",zha:"-:0-48-.N-.=-*C-(w-'X-'?-&K-$j-$O-$Aw/pNd6]s[m[XZdX4WIW#O2M7M1M0LvLlI?H4Fv;X:67u5#4@2N/p&d%.!M!H",hu:"-:/-:'-9j-9F-5E-0Z-+U-+L-'h-'W-%n-%Z-$_-$4-$1-#>-#2~k}v|;x1x0x,uGt4sEr]r[oxm[iphxfxfgdFd*d)cGa{^V^6^4^3^/^.^,^']y]9[xWWW$SXRFR-'$-&N-%z-#p-!}uSr`ljk/cY_f_eYtVZO:L=G5F!=O='8%7a3{/^./*<$f#c",yin:"-:+-7}-6^-0t-0;-*c-(j-(V-%o-$d-!T-!+~l~+~$}`}$|&{w{YzXz:w_u=t0t&p:n}lnlLlfya@`i`B_u_t_0SMO[L:KKEkE@E1DKCwC_BYBGA5>l>d>U<5;~:}:i9}9V6^6]4).],|,j*I(U$7#k#_#:",ping:"-:*-5i-0]-/z-/s-'u|Qz1u/ngnZmTi[iJi4heh&`0_zMfEU?6>6=A[KMbLw",sheng:"-:%-:$-4H-.X-.Q-,?-+0-(9}=x{x7u*k}_VS[RGQJQIOeMuIyG~E{BzBF?%;k;@:q7G2u/M.N*h)i&y&s&`!'",hao:"-:!-65-3k-2)-)6-'j-&_-#k-!t-!Y-!#~xxRvacOblRDR'QBPePaPWP7J!A~Ao=]-'6-&/-%]-$X-$:-!p-![~T~8y?xWwnw'tgs;rCr@nsncn`nRnHkgk9jpj`jZiqiOeceOe9djd_dEcscgcZcKc/bqbeb8ay`r`p_s_r^V^6^4^3]_]O]HW%R:QKQ9Q6PEOzNON)MdLZKSIdIGG{GUFkFRE|EjCzCuCmCMCJA4@e>X>S=f<[;i:+9h9)8p8/8,7N3e3R3K343&2Y2+2)2%1q1P1O1N0}0P/E/?/*.{.t.#+p*r)|(#'h$1!k",xiang:"-9x-9,-9(-6}-3*-1}-,4-,$-*0-(x-&r-%L~Ww~uXk5j)h7gqe'abQXP5LWH^F1DH;!8:*E'g'T",shu:"-9s-61-5g-55-54-1|-1F-)Y-'3yNyGu[tGq4oNoCnWnIg}gxdWchcgcIbt^X].Z.Z#Y>WBU9T'S|PvPtP*OhO1O0O.N[NBMtL`JtFuFYEpBuBKAaA`?c&=L/3,E,B*n*d&f%0$8",mao:"-9k-1,-1(-0|-0z-*dzLwksLmOkzi?a=_?^(S/QvPrN4M@I'B!AcAW?9;F/Y/#,J)E#$",mai:"-9i-7I-,{-,*-*}-#${Kx5",luan:"-9h-9Y-9V-*^}C}Bvmu0qXq:q$m)jOZ[TvOuL2D69K5J59#4#3",ru:"-9f-6K-2C-1K-(N-#{-!$vkv[s7qyq)jciX]kZgUTP+NzL(E0@W>7;Q9u6b+^",xue:"-9e-.x-(Q-!9|Bxbq>q+mmmMjzf=ckT/SlKvFc?!>u9j7>5y1&.B%L%<",sha:"-9b-4c-3?-2H-/,-.t-*+-%t-%^-%H-%4-$R-$0iCgkZEZDW$<%81806O5S4B2Z/J/B/2+%!l",suo:"-9_-9=-3]-&8-%x-$&-#j-#gu&s(as^$ZEZDW:PjKaJz:E9y+|)w)v)!(]",gan:"-9Z-8S-7J-5&-0=-/u-'c|Ro'o%o#o!hfh_dqa5U~T]T6R_NuMDKLH6FNEd@??;<:8f7_7/55+;*w'#%?!T",gui:"-9X-6q-3{-/(-/&-.7-.5-+Q-+J-+I-+F-*%}3{zv2u;s?rhrIp|k$jpj`iLhLh,gmf;cMVxVVTiThRCQ2O%M9L.KeIeI`GTGAG_k_Z^b]7Z`Y~Y9V^V;TnSgKTF7F6D[CvAG@:?!5P2|1d1>0S0G000/+z+M+)+'*](n(G%L$3",liao:"-9R-2|-!rrLovomo[>90%*F",chu:"-9K-5N-3d-3R-2K-2!-0$-/m-/Y-/I-,t-*)-!o{$x!s>n5hjgXcj`g_SWxW$VoTNS=NEIjI&HoHQF|E}EsESE#DsDdCzCG?@9r9q6x4N/+*+(,&;",kui:"-9I-3{-/4-+I-+F-$U-$;-!xwow4s/rBo*mQjVjHb]a.a,_y^BXgQdPyI2I0E&BV:S7x2l.q!/",yun:"-9G-7r-3q-1p-+}-+x-(0-&^-$^}xwEvsvEqOb}aca4a)`c]2[yRNQTP}MwHWF@BmBaA&A%@0=3=!:!7W2h2:202(2$1b.Y+(&P",sui:"-9A-5#-&F-#U{3wytvr1nwn4kpRqEWC1C0Ab=H9[7+6z5}2C1g0~(/'p",gen:"-9@-9?-&pX=X'L7",xie:"-9=-9!-7[-4J-4A-4/-39-1{-0s-0c-,w-,+-+'-+!-*k-*Z-)7-$(-!C~e{ry_wrw8w1u)sOq]opnenVnNm$jrgJeFcT`z`p_BZ~ZWZ8X9WnWMV*UiUFT}SWRePXMZLIK@JwI,HOH?H/FlC]?K>p>A;P9h7B695{5!4Q4P3b3E2,0w0s0O,C+k+e)8",zhai:"-9;-6B-4f-4*-3E-*K-*C-&c~zw{p{os[u[2YxW/UwU>SiSfH#EL#t",tou:"-98-4'-4&{$wNv'sqs@aK]*T0SQ",wang:"-97-8v-87-1JvYo7o1o0o/eoeiefe[dldJa}]>RTQ(OEODO=N1JD@J6;+E",kang:"-96-8)-+X}|rmkKg|dG`8]f](G=8_4d.a",da:"-95-.N-+f-'f-'R-&m-#~-!J{hxrw[v*d'ag_q]nWZVJ@f?}:<4Y0p&@&4$#",jiao:"-94-6n-6D-2q-2j-2I-.B-.6-,6-)B-(<-$H-#M-#K-#?-#(-!^-!=~IuUu1r=r6qcm+m(k1k%k!e.e+cJbl_~_i_KZjZTZ5X&W9VlVCV(ToTJT?T,SwSuSgSSQbPgP2LOIpG!>!:l:k9Y8w8<7b5[5C443,2b1>1*.9+l*X(5#e!v!^!V",hai:"-93-'V-'0-$#-#h~ey]vOq;pL[!A3=N3[,C",heng:"-90-&B-%QuJcXcLbaVKL/FiF&<|42*B",peng:"-90-5,-3J-.F-+o-!~zgyqyYfUe|cyc+`%[tZ?Z6YkXpWvW4OTKCJLIlIWGGFn?6t}sxk~hVhJh)gBg?g;dzZT8T.O)O(NfN^MrMTMSM&KuIRAh?`?^&D$i",men:"-8{-8G-53d8bcbCaz_9_&]VYgS^PZIh@>3=1,+((W",ren:"-8z-8y-8s-8U-8F-88-/d-/cx;vSu`n:n2d|dwdv]XO,NiLPLMK6J7/]",shen:"-8t-7V-6i-6/-5d-1Q-)l-)k-)j-)i-(V-'i-&}z^u|u>ttsys.qmp_pHorn7lui(fp`t`b]b]4WPTFR4P9P3M:J7J(IHHRA9@+=D<0n:(9U7C5[!e",jin:"-8o-8j-8d-7}-6<-35-2^-2=-01-,y-,k-,[-*X-*'-%o-!F~y{Fzkz6yE=q=M:I9$6~6g3h2M0i*Y)y)K(z(d(@(*",pu:"-8n-3$-+k-!S}^}O}<{BzPy(]p[rY{V0UvTeTdQ;PiPPP&O*M,FZE_AS=`:17k6T614r3a+v(C$m",reng:"-8g]m",zong:"-8f-5:-4y-43-3KzFpikxkrkNeJcdaraVY^XXX(W&Q|O>MxJQIKG28L8D8#3+1n1c0{,b,R%E#w",fo:"-8e-8;-73|IJl",lun:"-8c-7i-6S-4u}l}Y{.t*lSlRb9[{YMJa?j<6:3",cang:"-8a-89-7h-5;-3e-07-+OkeDW<];o:Y9g9_8a7;/G+J(!&Y&7",zai:"-8`-3V-2G-1!-&v}8pOl.]j]>L3>f;>:.4|4{3~&Y&7",ta:"-8^-6E-3^-#~-!&~Kz$yyy6vep}lc[HZXW`V&HCG}EqA[?}u.t`tZs~r~rOrNr9q`pUo;o:nBmylxlhjthhgCfhf+dI_a_X_R_'ZPYQXsWnWiVhVXVSU6U'QlQNPKNFMhGiFFEtDRC~ArA@>S=E=7:]:C7Q6*574*0l.=,s,G+f+c+U+O*|*s*T*,'3$c#b#Z",cha:"-8X-6Q-4D-/,-.t-)e-$A-$$~s{yvbu?o|m}kqj3]a]OZ7Z.XZX5WJW1NsM0LvK?I?GjEB@k,<%s",hong:"-8W-)w-).-(X-(K-(;-&{-%}-$)~i{kvXu6pqpjn=j[fvfBa*``XeVNQ[@E?y?<>@=b=S;J;B:R8J7U5(3|31+>+4'T",tong:"-8V-7/-6R-4Z-2h-,/-(}-&|-#Z}o|/mNm>m3h:f(c%`P`)Z1Q]PwwuqtKqdmdmVlQjhekYffd9]bDaxT:RBQtPcIiATX7s5L",fan:"-8E-0)-0(-0'-,1-+R-)a-!hy%v_tDr;r:iwhwdi_h]l[ARvRtNpMLKXJrJAG,FD@w@g?4955t5_3n2E15.l.[(A&O&/&,!.",miao:"-8D-,m-)v-$?vDscrPh>gtgSX^NP<#;A+K",yang:"-8C-7<-6{-3[-15-,f-,@-*g-'Z|J{xwTukswmrl6l3e`d4cEaA`m^}]T[lXRUz>`8N6A4y4D4.2B+6*O)4%Q$|$@#F",ang:"-8C-*gn.RLQoN0!5",wo:"-8?-4s-4L-*l-(/-'&-%q-$atCtBsfi8^TZYYbYSXKV#SRN8I>@1=#YqXmXjX7WmV!UGU'R{PpO_MoM(LEK3JgIfIJICI)HEG]FhFCEKE2DLC&BMBLA]>a>$OYOSN.K&J*J)F)A>@66}5i4v391=16+{+.",bin:"-86-3S-2EpAe}W?UNShJnImGXE:B^BO@r9I6q6Q6M6,+.(j((",di:"-85-7@-5a-4F-3:-*D-'}-&t-&$-%R-%&-#O-!(}0|h|d|@{Q{L{8zMyFy;x|w?tqsmrimUkIjoi`hBg:fofjeld#`7]g[g[=YFX]XGW2TLT!R[NfN(MrM3KAK:JCHiG7AI=g<};T9f9=3F/K.V+=*5'1%c##",fang:"-84-4}-+^|r{Qzcv5er^%TZS:S(RER6N/@<@'8*4c1@/!+m",wen:"-8,-/X-(M-(C-(&-%Jy`vNf)dfde]:X.WRSmQsKNHWH)C$B`@>;z;R:*4s+1*8(}(&$;$.",xin:"-8*-7f-5d-5G-!3-!0~%vSCR9N@N%D$C^4a3$",ai:"-8&-2W-09-)h-'!-&q-&5-%Y-$'-#]-#E-!;{SzIyfxUtgtUrxr'kaa9_7_,ZNYaT&T$QqP^P.CxClB.:%9t6U3.03(k(;#]!s!j!]",xiu:"-7~-5c-5V-''-$/~|p@mfmPh2N~G09~9F8I4+*P*#(N",xu:"-7~-7Y-6Y-6!-49-0x-,F-,E-*Y-)T-)+-'p-$e-$Q-#7-!o-!W}7{Wy,x+v&uxspsArFhHeXckcKc:b(`g^YY4XMTKT@RbRZR!QcP{O^OOLGI9GfC|CtCiCOCKBw@5@4>?=t<>;+;):P9r998W8B433W2H0m+t*N*?&;%T",tang:"-7y-5+-4M-3l-3U-1v-.2-&.-${-#.|XzpyukdilaA^cW^V~OsJFH%F{F<@P/:f8U6y6Y6+525127+_#@",hui:"-7u-7#-2u-1{-+H-+.-'/-&j-$[-#=-!f-!U-!D~p~,~&}u}Fz]xztEsgr7q]onn?n>i*gmg7g5f6f4f3e,e*cDcCcVEQSQCP|PQO]KeIOI3GRF4EiEZEQDqBVB>B=B7@n?D>h>g=y;+:S9X897x796y6:5,5)3t3q3k2h0y0q+h*9)G(=(2$~$)",kuai:"-7u-6@-2M-/p-&f-!8}:|ez&y'jEgMdXUkRrO]Cq=y79.*+g(2",cui:"-7s-5?-3N-04-%I-%>y8lYlWkhdSbE`TV|IxH*GHAg<48P6a331g)p(b%I$L!d",che:"-7n-5`-4I-,%-'y-&*|?vln|nGene/]QY.XcVsV>V<7`3r3b3E0C",chen:"-7h-4_-3e-2'-#|~ZyWyAw]pGoBdRa>[aY]THS~QAP$L[K_K'J(HUG3D]@+@*2n05)l%P$?$$",xun:"-7g-6O-4.-,Q-,A-,)-,(-+5-'3-!k-!P~u|y{=yixYxAw#uHqKq9o`oOmEj@j&j#g=ebe>c]`uXUTfRcP(NqL_KbF`BvB@Au@Y>5=r=l8+7y6V583O2h1{1D130j0Y0Q.5+b*H(L&T",chi:"-7c-7M-6b-6P-5E-3@-,W-,K-+_-*]-)<-)3-))-(:-&W-$z-$I-#l-!g-!=|@|)yLw/vBs6n|fsf$eweve6cBc9`X`7_|_2]`[f[!ZvZ/W+TxTCSNNcMPM3G1ChC6C4BX@T?Y;:8g4~4;3U1K.O'A$Y$U$E$2#G",xuan:"-7b-2N-/.-)o-)'-'(-$Y-$Mz)wsv&sWrqr.p]f[cobMaQaI_I^nX_SyS'RAR,QeQ$Q#PNK@HxHwEf?#;I8d4M3x2e+L*s*)*&)B(Z'~%/#E#<",nu:"-7a-3r-,svjq?ilfed1Wo",bai:"-7`-6z-(1-&:hJ[?[>ZwYeX}WAUfUCTAMFLN,n'D#*#)",gu:"-7_-3T-2e-0F-)I-'s-'N-&<-&;-%G-#y-#@}gzfx#uhrUq@o&lXl=j5j4d*`~]_]9TSNaM.K-27-+8-(%|Nzsznv/v)t'Y'R$*#[",zhou:"-7W-6M-2X-0{-'|-'z-'Q-'5-%X-$i-!G~{v.t/pgjCiceIY%QnQLQ8)<3;[5U3G2o0D(K(8#9",ci:"-7T-7B-6m-47-17-/+-/'-'t-'r-%@|*q}j3h<`hN|MILHD&C??56Z*p*k'E'6%=!{",beng:"-7S-#w-#+{R{#zgyXw!lBkYX0>v)d)[',&k&j$a",ga:"-7Q-'M-#A-#/-!4wIwDoEo>o.RaOM+C",dian:"-7K-7:-3m-18-**~M|P{lyBxfw6v~t6t!kXj]jNjMh@ao^!YOTrTWT9I_GqG_FPF5B?-(7-%`ylybwYvit=nodgc2b:Y#WPQ?LSB{?U-72-66-4E-'L-&,-#!|lmtmsj;h0d6YTV4R%M7M&)e",ti:"-7;-5N-5'-4R-/!-.n-*;-%H-$y-$3~w~rw?smsPnmnYnVl2foeCe6bnbjb#b!aU^)ZHY*X]XGU>OaONL$JxJCCQB]=0;T8O*5)A'r",zhan:"-7:-4>-2y-*s-!IrQnamRl>l)kCkBk.j|d+b0^M^?^5W|SJSGS0RsMjLiL-&t-%H-$j{szSmDl/kIi3c}cPa`^IZbX:QwP!M2HsGUBcAK?I0*/}/n'_&#%q%j%i",gou:"-71-3p-0y-+z-)H-'p-%W|C{uwdwcuTs0mnfM[CX%VcN6M^Gm?q:925.C*o%2",kou:"-71-0f-.C-,g-)J-)DpCp8fId3]^[|VpTV9@",ning:"-70-6>-4a-29-0.-'H-!)r%q!p2p)p'p!ot[4UMM5F/E5?17J6k.<+a&i",yong:"-7*-5t-3M-,U-,T-'T-$t-$+-!:{Oz!yCxcrlkUg{gAe{ceb{bzapaC`w`n`:[6XTU}M4LaGQ@}>x=9:p947:5T/{/i&p&l%)#S#8",wa:"-7)-/n-,e-(/-'P-'&-&x-%h-%A-#y-#nu5tbt3sGnCije[ZaWUTq>.:;8h'V'D'>&A",ka:"-7&-*r-'O-'M-'4-$u{g",bao:"-7%-5h-21-/>-.e-.]-,!-+{-+s~ozPzOz@sBqBpcpMp$ohoee&d:[w[kPPP1P&M]614J2<0_.u.h*G",huai:"-7#-',|mx^xIe_dC_:^oGhDX<25z",ming:"-6x-0g-06-(|-'guEs&`aXxR@PhOFH<>0:7,8",hen:"-6s-&p-!3eac6[0.:$y",quan:"-6p-1H-/.-.#-,5-,#-%%}X}Q{4w5u:t;q[m?jRf`c0b_b%['Y`WKNxJ:I[H_GLFjD>?F>F:a5841/I/H/7.o.n.m.O)2&I%'",tiao:"-6o-%Xr#pWmjmWh4cRZfSQRdQjOLO'NYK.Fo",xing:"-6j-5.-1<-/U-&g|0{auft{t5qljAh`f*cxb>aZUYR/P4Nl>ZG<9;H9<8o6o6l5n5G1z0B,a+T'h",an:"-6W-5J-4<-2D-*P-*J-')-%e-$x{b{&z_sYpwn@n8mXm:hXg~ZnXNQ.PnL'L&A1>M.g*w$V",lu:"-6V-33-1C-.H-,N-,<-*q-*o-!N~q~_};|G|5yVyUxMtVmChGgZgFf9f8^7XzW)V)UzUAU/O{MpLeJ#G&FyEuDvDaARAM>sb._,A$C",jiong:"-69-3'-1.-1$-0}}z|K{;]~]}?M=J7e4t4I3c2T2S1W1.",tui:"-6.-6(-3&y'tmo$ftfodrY(F>24",nan:"-6+-*|-$r~'~#v=tzstrb^e[sXfPqN*M6H}:d29&a&?",xiao:"-6*-5v-5R-3a-.x-,d-'j-'1-&l-&P-$}-$1-#D-#?-#&-!|-!v~c~J~CuUtHqGpPpJoKlGh/fFcJ_iX;V:TPT/SoSnQVQ'P;MiMaLOK+DOCYCLBAB4>B===8M=5;9*7)`$V$O!r",guang:"-5~-2}-1h-'@{~uIhXhTgOZsVKL+>28)5/4b4_4^3s.d+Y*U",ku:"-5}-/3-&Q-$6~R}PzrhDh+gN]dZiZ5OPMgL!I%3N.>$9",jun:"-5{-2T-0q-(n-(G|u{NuHollq_;Z3U5TzQPKMJH@F=l6V3G1B*1&'!Q!K!J",zu:"-5w-5?-+1-+$-&S-%rlYlAd(S#M1Ix0'*e",hun:"-5s-4o}_t9t'o9dMaz`oYDR?Q~JYJRBf=u>=4:&9z828&+F*L(F&r",lia:"-5[-5>",pai:"-5Q-&sg9eP[NY?JU?p>+;j;8/t.w,q",biao:"-5O-36-2/yJtIryi%f!VfNhLjFzEG<.9C66511o0c,k#|",fei:"-5M-.m-+M-*4-(i-%8w%vZt@t?nXh8gpgPbH]xSdQxQ%P:OPNLLxJVH5FOF)Di?Wq>O>N;y8^6F3{/(,T+P*M#y#5!Y",song:"-4q-3I-0D-)'u8pulDk^kOgydYdAb`a3a$`D_MZ#XXW0NK%J`HyEF-#*-!K~Oz%x#s{sXs9s%quqqq_q%kcj[jWhCgDexdha/_AVwV_U0U&R]R.Q:PwO?MHKpK]J{HvHdFbDMDI=_;E:U:K9d9O8K8F6j6i6N6=6&5~5o5j5M5A2w2r2_1x1)0b*:)*(y(S'i'5'%#j#;!B!;",ruan:"-4[zJxQsiVWOUE0):'}",chun:"-4Y-&7sda^RPR(PlOONDIBGrFQE(=T<,:[9N8u/6)C",ruo:"-4S-)[sskPf]Z:YUI8;y3'0^",dang:"-4M-2P-1V-/k-!1}*{fx]swpkl6kdf:aAZUUsTpKiEYD5@|8:7E5D*;(J(6'?%}",huang:"-4@-1L-/w-$PzDz.xtw&s[pEl9jBi0e@clcQa_a#`dXTQgQfPBOEHbH7D{@9:x9i8)4:2c2.1J0X+w)((E#i!}!g!Z",duan:"-4+-.Uz+s`SFS[$XOVUU8U*TwR1Q&PYKrEy6E5K't'k'c",za:"-4$-+Z-'b-'X-'2-$c-!c~B~:~5i}]s[$NyKr?r?a",lou:"-4#-38-.}-$7-#ByMu4tRo{n[kjkEg_`5X)W'HaG#:O9&8~1i'2$5#o#n",sou:"-3z-0J-)Q-)N-#z-#R-#QgsghZ#YvWlW>W0V:U`UBJ/DgCn:#,5#s",yuan:"-3u-1n-1)-0h-.z-*3-*1-)y-(0-&^-$Y-!<}{}t}Z}R}N}M}D{t{_yawlv6v(sSs:s)qhpepH0ErDk@/P>#;L9A8M.|,&&B%y%n%m",bang:"-3n{^ypiNi5h~hme|Z?YrWvS2KEJTJSH@=j/m++",shan:"-3h-3)-2R-/F-/<-.a-.E-*~-$q-$F-#H}'{Gy+y*ulubr2nDj|i(f+]zZ;Y3XuXsWaVhV?UySvQ8NrL|LlIVFSEhCI@`7|7p7O5F4B2Z211~.4*b%U%1",que:"-3f-*_-*W{Pyty$lgbNa+`KX!T8T.JBH$@j4e0|)O#q!N",nuo:"-3Q-1w-$ftxa6_#_!ZLXnWoWbWLK0HJF2Am",can:"-3P-2F-)l-)k-)j-)i-$D-#H~:r(q3amah`W`V`U_[XsVqVhO_BtBg;/784z1!0L(9",lei:"-3O-24-1t-,J-)q-#1|(z0xOx?rrU|U;G'E]DyDxD/?$>I=+JO7F5&2>1#(](7#&#%",cao:"-3L-#GnGk@`v`k`^_DVAUqOgOfG:8x",ao:"-3H-/n-*&-#X-#W|H|4xnxkv}vyvwsDs2rZmxmakAjnga`O_@]I]![DVuUeTBM*K=?>9;7M741m1^0Z,!+~(Y",cou:"-3D-0:Hl;1",chuang:"-3B-/b-/K-/5-.s-.i-.L-$T-!dhvhMd=`|W7O|;z;+:t8(+1*c)o)j)=$R!D",sai:"-2V-#b-#)-!/yod%a2XaAxAb",tai:"-2B-0_-)=}e|Mw[wXwOvzqvqCdodQdB`e[pU]SpR]MeE>@f@D@C>{:=4G4F1$*f",lan:"-2?-1@-)}-%P-!'~3|hx`xXt(qgqaqUmwkwhgb)_8_'^p[5X/UXU(TmSaS_PpLbHXDDD2D1=^9L8i7K6W5`5W5=5<46121%0n0d0I0@0>($'j",meng:"-2;-0k-,Lwaw`qEo2hnh*_._+^qXtUaP)O9K$F;EAANAF:A6h,Z+]'/&X#B!#",qiong:"-28-*fr.pza]`!K}F(3(3%2L1}*))J(G's'f",lie:"-25-0N-/O-,z-,w-,`-'<-&G{D{CuDjaj=djZeZ_YiUEL;JMA{>_=p403f2A1$0a0[.x,h,V+k+[",teng:"-2%i+9]8r1e%6%&",long:"-2#-'J-&]~^|7|6xHxGo2n=k6j_j^g.e([9U.QmOxO8LgKDGYDU>t:g9T9%5w0N*Z'n#f",rang:"-1}-,$~Nx[xC^mU$5b0K+S'X",xiong:"-1m-1j-/q-+v-+p-&zwsdLc?Sy@;>42w2r2#2!",chong:"-1l-0Y-#L{*p`oflelde0dc`+_dXT2NB6[6G5|5u$P",rui:"-1g-1e-1`-)LxFas]0M~KVF.@G)'&t",ke:"-1f-/*-.w-,]-,R-+;-)>-'o-'0-$!|Dzqx4u#p^oUmomIkvknjqc4bra6U4U0!/N//*j%>$O",tu:"-1c-1]-0H-/o-(y-&3-%?}n}c}J}I}A}?zezZyvxipvnUlskikFh.gVeVc}bsZ.YYX@W2K?EL@R=C=::r7u(i$r$>",nei:"-1I-1*-&TtvA(=w::8Q7V631r1[*a)~)%(v(?&S&>&%%r$(#d",shou:"-13-)`-)V-%l-!o{ox)x&pxo[]v]uYITcTN,",mei:"-0I~j|vz>yRv#sks]sTs4r

-+b-+(-(_-(.-&h-#%{@wGuWs}s|rJrDlaWTV}V+NAMvKfIgGKFX9a7c,7&]&+%~",bie:"-/A-/;fGe2`#M'M!$!#I",pao:"-/>-+i-'^~o|2w=hA]$[P?.4J4H3d06.M'^%A!S",geng:"-/7-&A{TzHlrh=ZIOlK4IX=X2p&M",shua:"-//-%j",cuo:"-.y-.p-*5wukWkSh!ZKY&WuV4(o$j$'",kei:"-.woU",la:"-.v-%3-$n~L|8[RXFXEWnUEU2R`MOI6DT:T0['o$A",pou:"-.l-'_-&[{]twtO]+]&Z+YGJS/<",tuan:"-.I~!}~}K}HyPy&f7`>[}XIVmGLE;;.:m8t2[,F%v%p",zuan:"-.)XOTt",keng:"-,x-([|t|kvIZCXlVgBF/C",gao:"-,Z-(I-(>wRlpWjNHGxGwGdG>E~E3Dm,)!y!t",lang:"-,V-&J-$~{Jy[r{llgiSeOIOHO;KRHHG4Cp=[3Y,z*%(s",weng:"-,@-#oyxv{kfU!Pd9o'N'&",tao:"-+m-)E-'+-%DwPwMw*r}i/fl`j[oYBWXL,JkGtE?><=)'v",cen:"-)l-)k-)j-)i{Un#kH@?=1",shuang:"-)byOqeq^`NDB>t8R5w5^0&",po:"-)8-&M-#6~]|ZvztMoZmlmZg9W]TXR+O*E%?E>q>o>D;*:J8;6F3v,9*l!`",a:"-(s-'o-%O-$0",tun:"-(k-(7-%L-!`}}|snFhNdP_mRQPFOC@x=335",hang:"-([{dwSvIj)dGS8NML/@.",shun:"-(ZHnF?",ne:"-(R-(8-(%-&T]0%a",chuo:"-(Q-&@-%=~Hu!t~t.ssqVa|^2Z}UuCClMi@i$fDf@b1`Y_4XyW6TMMzJ$I:GOD{=#gKfVfSfC^P^N^>[zWQW!VySKMlIvGkFdEJ:)8{4[1s/|/z,f,.*{(p%m",pen:"-('-$E-$=-!6CN;'6}'Q!=",pin:"-&~~Yuatnrvq{[AZ{H]@_/c+!)r",ha:"-&wvz",yo:"-&`-%c-$B",o:"-&X-$a-!H-!%",n:"-&)-#a",huan:"-%v-$Z-$Y~G}D{_zWw@w2r.q[pYp0okm8l!h]bVaH_I^iYpXQUnU1KyK2GBD%CPCB>1=c<~;c8V7D734/3>2I.[.;,3+R*})9(1'b$d$:",ken:"-%V{qxjc*_CX~*I",chuai:"-%=XIW}Ch",pa:"-%/vLisihd.]oX|NC@r8608)P#!",se:"-%,-$,yogK_WY%X`W~J/J.Hl",nv:"vkc7OM@!",nuan:"vcPo;`:m2X2W",shuo:"v]a'WhT'S|OKGnCn>>470W+p",niu:"v?q=dKd0]S]![DN?@8@!4u/e/d.W",rao:"u2rA]PU?KkFJ",niang:"t|r&qb",shui:"t]iTZMYuA$A#@{=.=*",nve:"t)%S$%",nen:"sirarYc^",niao:"s!r+qsnwFq9x",kuan:"pBp#ooK)CoCfCd",cuan:"jPV'U*T~TwDtD7BU@o6E5K1S0<",te:"dsdr`R/F/9",zen:"d5VU",zei:"^H",den:"][]C",zhua:"],ZYV#ER0:09",shuan:"[&L^GL{let t=0,n=1;for(let a=e.length;a--;)t+=n*da.indexOf(e.charAt(a)),n*=91;return t},Wt=(e,t)=>{let n,a,s,i,w;for(n in e)if(e.hasOwnProperty(n))for(a=e[n].match(ga),s=0;s(zn("data-v-c7e0b9b7"),e=e(),xn(),e),ya={key:0},$a={class:"container"},wa={class:"action-bar"},_a=["title"],ba=["title"],ka=["title"],Oa=["src"],za={key:0,class:"icon",style:{cursor:"pointer"}},xa={key:2,"flex-placeholder":""},Ca={key:3,class:"action-bar"},Ma={key:0,class:"gen-info"},Ta={class:"info-tags"},La={class:"info-tag"},Sa={class:"name"},Ea=["title"],Aa={class:"name"},Fa=["title","onDblclick"],Ia={key:0,class:"tags-container"},Da={style:{display:"inline-block",width:"32px"}},Pa=["onClick"],ja=["onClick"],Wa={class:"lr-layout-control"},Ua={class:"ctrl-item"},qa={class:"ctrl-item"},Va={class:"ctrl-item"},Na=re(()=>k("br",null,null,-1)),Ba=re(()=>k("h3",null,"Prompt",-1)),Ha=["innerHTML"],Ja=re(()=>k("br",null,null,-1)),Xa=re(()=>k("h3",null,"Negative Prompt",-1)),Ya=["innerHTML"],Za=re(()=>k("br",null,null,-1)),Ga=re(()=>k("h3",null,"Params",-1)),Ka={style:{"font-weight":"600","text-transform":"capitalize"}},Qa=["onDblclick"],Ra=["onDblclick"],eo=re(()=>k("br",null,null,-1)),to=re(()=>k("h3",null,"Extra Meta Info",-1)),no={class:"extra-meta-table"},ao={style:{"font-weight":"600","text-transform":"capitalize"}},oo=["onDblclick"],lo={class:"extra-meta-value"},so=["title"],io=Dt({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e;gn(o=>({b7cd59ce:c($)?0:"46px","0e09e1cc":c(y)+"px","62228ae0":`calc(100vw - ${c(y)}px)`}));const a=nt(),s=pn(),i=ie(),w=ee(()=>s.tagMap.get(n.file.fullpath)??[]),T=ie(""),A=tt(),I=ie(""),V=ee(()=>I.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")),W=ee(()=>V.value.split(` -`)),L=ee(()=>We(V.value)),D=ee(()=>{let o=We(V.value);return delete o.prompt,delete o.negativePrompt,delete o.extraJsonMetaInfo,o}),S=ee(()=>We(I.value).extraJsonMetaInfo);ye(()=>{var o;return(o=n==null?void 0:n.file)==null?void 0:o.fullpath},async o=>{o&&(A.tasks.forEach(r=>r.cancel()),A.pushAction(()=>Ke(o)).res.then(r=>{I.value=r}))},{immediate:!0});const p=ke("iib@fullScreenContextMenu.prompt-tab","structedData"),f=ie(),E=ie(),te={left:100,top:100,width:512,height:384,expanded:!0},m=ke("fullScreenContextMenu.vue-drag",te);m.value&&(m.value.left<0||m.value.top<0)&&(m.value={...te});const{isLeftRightLayout:l,lrLayoutInfoPanelWidth:y,lrMenuAlwaysOn:$}=ua(),F=l;ia(i,f,E,{disbaled:F,...m.value,onDrag:Ae(function(o,r){m.value={...m.value,left:o,top:r}},300),onResize:Ae(function(o,r){m.value={...m.value,width:o,height:r}},300)});const J=ie(!1),{isOutside:U}=Ft(ee(()=>!F.value||$.value?null:J.value?i.value:Ze(document.querySelectorAll(".iib-tab-edge-trigger"))));ye(U,hn(o=>{J.value=!o},300));function G(o){return o.parentNode}function K(o){let r=0;for(const X of o)/[\u4e00-\u9fa5]/.test(X)?r+=3:r+=1;return r}function ce(o){if(o.length===0)return!1;let r=0;for(const j of o){const O=K(j);if(r+=O,O>50)return!1}return!(r/o.length>30)}function ne(o){if(!o)return"";const r="BREAK",X=o.replace(/>\s/g,"> ,").replace(/\sBREAK\s/g,","+r+",").split(/[\n,]+/).map(C=>C.trim()).filter(C=>C);if(!ce(X))return o.split(` -`).map(C=>C.trim()).filter(C=>C).map(C=>`

${C}

`).join("");const j=[];let O=!1;for(let C=0;CBREAK
');continue}const Y=X[C];O||(O=Y.includes("("));const le=["tag"];O&&le.push("has-parentheses"),Y.length<32&&le.push("short-tag"),j.push(`${Y}`),O&&(O=!Y.includes(")"))}return j.join(a.showCommaInInfoPanel?",":" ")}$e("load",o=>{const r=o.target;r.className==="ant-image-preview-img"&&(T.value=`${r.naturalWidth} x ${r.naturalHeight}`)},{capture:!0});const ze=ee(()=>{const o=[{name:x("fileSize"),val:n.file.size}];return T.value&&o.push({name:x("resolution"),val:T.value}),o}),d=()=>{const o="Negative prompt:",r=I.value.includes(o)?I.value.split(o)[0]:W.value[0]??"";pe(Ve(r.trim()))},_=()=>document.body.requestFullscreen(),q=o=>{pe(typeof o=="object"?JSON.stringify(o,null,4):o)},P=o=>{o.key.startsWith("Arrow")?(o.stopPropagation(),o.preventDefault(),document.dispatchEvent(new KeyboardEvent("keydown",o))):o.key==="Escape"&&document.fullscreenElement&&document.exitFullscreen()};$e("dblclick",o=>{var r;((r=o.target)==null?void 0:r.className)==="ant-image-preview-img"&&Oe()});const he=ee(()=>F.value||m.value.expanded),_e=ke(Qe+"contextShowFullPath",!1),De=ee(()=>_e.value?n.file.fullpath:n.file.name),xe=ke(Qe+"tagA2ZClassify",!1),Ut=ee(()=>{var X;const o=(X=a.conf)==null?void 0:X.all_custom_tags.map(j=>{var C,Y;return{char:((C=j.display_name)==null?void 0:C[0])||((Y=j.name)==null?void 0:Y[0]),...j}}).reduce((j,O)=>{var Y;let C="#";if(/[a-z]/i.test(O.char))C=O.char.toUpperCase();else if(/[\u4e00-\u9fa5]/.test(O.char))try{C=((Y=/^\[?(\w)/.exec(va(O.char)+""))==null?void 0:Y[1])??"#"}catch(le){console.log("err",le)}return C=C.toUpperCase(),j[C]||(j[C]=[]),j[C].push(O),j},{});return Object.entries(o??{}).sort((j,O)=>j[0].charCodeAt(0)-O[0].charCodeAt(0))}),Pe=()=>{Oe(),t("contextMenuClick",{key:"tiktokView"},n.file,n.idx)},je=ie(!1),qt=async()=>{var o,r;if(!L.value.prompt){Q.warning(x("aiAnalyzeTagsNoPrompt"));return}if(!((r=(o=a.conf)==null?void 0:o.all_custom_tags)!=null&&r.length)){Q.warning(x("aiAnalyzeTagsNoCustomTags"));return}je.value=!0;try{const X=L.value.prompt,O=`You are a professional AI assistant responsible for analyzing Stable Diffusion prompts and categorizing them into appropriate tags. +*/let jt=19968,ca=(40896-jt)/2,et="",Ee=",",da=(()=>{let e=[];for(let t=33;t<127;t++)t!=34&&t!=92&&t!=45&&e.push(String.fromCharCode(t));return e.join(et)})(),rt={a:{yi:"!]#R$!$q(3(p)[*2*g+6+d.C.q0[0w1L2<717l8B8E9?:8;V;[;e;{<)<+.>4??@~A`BbC:CGC^CiDMDjDkF!H/H;JaL?M.M2MoNCN|OgO|P$P)PBPyQ~R%R.S.T;Tk^l$lt?uJv$vMyE|R}a-!}-#&-#8-#L-#b-$Q-%?-+q-,6-,8",yu:"#V$l%S&9&I('(7(=)))m*#*$*B+2+F+v,0,b,i.W0.1F232L2a3(384>6P8n;';i;y<1>(>)>]@iB&X&m&s'2'X'd'f(9(c(i(j)@)l+'+M.).+1y1{2=3K4c6&6'6)606<6B6`9`9{:a`?`AgCLCuD%D2F2GyH&H1I;K~LkLuM&MYO0O3O9P8PbPcQqR5S2SCU0U~V%XYY&Z}[G^P`7cUc}dEeNgOj$j)l?m:n4p,sOuRv.y'{/|i}1~P-$B-%Y-)|-)}-*K-+G-+H-,m-.@-.M-/|-0y-2D-2c-4W-4`-4h-7a-7p-9c-9i",shang:")Y6V9cJvR8UqXJXa])asbQc,s,uSvz-#+-.;",xia:"#Y#w&,&;'''I)1.u/j7=:[<'B[ByCtL'NmNyQOR([0`(cLh[iRkVt/t_u4uezFzM|W|{~d-&)-*4-.}-0a-5;-8S",han:"#,.m/h:l

MFrGXJqNrOUPCPqPrQ|]@`+`2h1lBlZnXp*r;rWrkz9{4{B}x-#c-#y-$;-$l-$y-%Q-%n-(i-(x-)i-/!-3*-5B-9V",wan:"#=$0&o.]0F4@5X5b6*628u9pk@,JhR`b$b`knmtujz'z0}<-#+-'I-*Q-16-7m",san:"3T3q3w3x7~uJuwzA-'n-([-,s",ji:"#r%''l'y)3)d)o*Z+'+9+G+M+T+Z+^+g+x._.c/R090d1S1W2;43484J4R5C5w6)6C6`7f7s878H8t8w9J9X9Z9{;8;<;B;C=(=2>6?YA$B+CHD0D8DbE:EQF2I*I|JEJnKKL)L:LkLzMdN'N5N:NiQ6QyRrUWVcVnWPWQWtX6XEXYXuY(ZAZ|[/]O]e^F^J^U^~`)b#b0c*ckc}dee!e$e9e>eyf+fXfrg)hFhriMjZlrqmr)sRt%uov3vevw|@};}N}g~!~+~F~{-!&-!u-#N-$%-&a-'u-(,-*x-+]-,W-.?-.V-._-.d-.g-/+-0$-0H-1%-1/-10-1^-1o-2/-2@-3'-4)-4o-5>-5H-5U-6,-6J-7/-7P-9e-9g-9h-9i-9j-:l",bu:"0$192,FKJgT=UYZ^e+hhjmm8mFoGpGp}sjw]w{-'7-'E-/m-3#-4.-6=",fou:"4I:L:O:Q~1-3:",mian:"!G!d#4$U$W$]3Y5X6A6_6o9g9w@qB/CkG!H_Q;-!L-!M-!P-/_-7y-7z-8'-8,-8q-8r",gai:"):5=5LD,ErI!J1Z'_/`TaYaac!lnpcw[|O}1",chou:"!+#n$N+0/y0}2:4e5/6#9jB*B.GNLfUmZ+^3^5_4e%e4fWkan]nbo.o6oU}u~$~*-.X-/>",zhuan:"%H'S'V.K0k1B1H1r2?7Z+7+f,8.#.|0K0p2O>#DNE1P.ccd]eMlpt8y>-0&",ju:"!Z$L$w%R*W,c,l/e1~3&3J8#:t=#=`=k@FBGC0DlD}FeGAIaIkJbMrN[OVP`RDTlU|W>Y`[$^Z`Ua*ccc{dWd]dae#e@eFeff8fSg*ga@'@2@KA%C|DQO+O]O^PvR!REScU'UfZw]m`l`na'i[l_m;p-4F-6'-63-91",shi:"!E!Q!e#?$p%$&+'$([(](q*^.&/5/n0[1w204zQQR9VYW2W@W^X2XNYxY{ZI[:[<[v]X^l^{^}_p`DaDbmgqi8ixjdk!kNkpl(lkntoMo^ocoeofp5ppq%q&q*q4qbr=t9x/-&^-&_-&}-'<-'@-(*-(8-)!-)H-+,-/<-0?-0d-0o-0p-2:-2O-3+-38-57-6M-9C-9E",qiu:"*6*7+a0r3k4D5]6j>7CaCeF`HEJXMhNgNjONP;QMQ_RfSWUUX?XUXqXrajc$d'jpjskXl]n@o.oup:r?-#5-#6-$8-/'-/k-0W-0X-1,-2Z-4v-7&-9U-:Y-:Z-:]",bing:"!n)F*4+/,>.75@DsOcZ7l`puqar||>-!:-!q-#,-#G-''-'C-(D-/O",ye:"$>$E(0,a6g=;@?HfSb[]_]lUlfn(oip=rmtDtTtevTx?-!O-!R-$5-%N-'F-'e-(T-*o-4Y-61",cong:"$'&Y1>8==g=l=p=vDIE=I2JUK0LsRZZk]$a}a~sKtBuKu_-*)-*V-+Y",dong:"&&.r0b5D?7?C@JD|G;I#KwQ([&jV~^-)T-/=-0)-4g-5/-6T-9,",si:"'?(b)^)g)p*+.+>0KxL+NLP7PiQnReS&W_`tp1pvp{qTqnr8r`tIuzyB-&6-&R-&^-&c-&s-&{-(:-)L-)q-*8-+.-0.-5j-6`-9N-:o",cheng:"#0$,$P&W*O*[*w+A+{,O,v/l5[7#:`?}FQOoS(UKZV_#cHcJk#m$nhrxtkuxv@vWx=xB|2-!A-$h-'w-)o-*>-+B-/u",diu:"r2xL-&&",liang:"3A3D3{6K@0CRF{Q%Up[,_Oe1h!h2hCiBiHojss-!=-)h-.J-.O",you:"(r)O*I7o8W;L;f=5=M>VDKFoFsFwG/KaOOOSPSQLY8ZN_;`qh%hMjWjnk6kPlYmEn3n>ncodp~r3x&x<-),-.y-/1-1p-1z-7N-8P-9D",yan:"##%F%L&%&F&T&v(Z,j/u1?2$5t7V;!;h?<@@AsCVCYCZD3FmGpH.JlN_PVQAT$UxV9WUX/XkXmXnY?Z3[U^1^C^E_e_~`B`C`RbDbPc;g/g7kIm#mNmsn5nHnsnyoPoVo`x+z7zkzmzn{A{`{e|}}2}b-%'-%,-%B-%v-'0-(#-)~-*$-*F-*j-*s-+C-.4-.H-.Y-0V-3$-3*-3B-3n-5#-5G-5u-7K-7r-8T-8W-8_-8`-8a-8d-8j-9L-9Q-9w-:1-:N",sang:"'EVNts-%2-%{",gun:"#<&#'U6F6z9dJ>JpTFTwUu]4h:?B@}AbB3BwECHxJ1NwOrP'U9UPXM[X[hhLhmq`tetlu.xSyUzTzU{W}4-!S-!s-#F-#`-#j-%f-(A-*%-+t-.3-/K-/U-1u-3T-3z-6g",ya:"#B%C&{'I*{,a.g=UDEKqO;T1WEWGY.^[g=i!j4lUp=s=v7x;}f-3C-3c-4U-6O-6V-9o-:;",pan:"!&!>!?!H!o'L'x2A76=F>R?$AIH+m/V2T4{6b99>j@`BnEkK*O:OBP^R2RKSzTKTNTO[@e^f>ohparHtQv5wbyF-3_-9@",jie:"#S%@&{(.*d+=.G0e4J5,599D;k=(@/CfD,G#G`J[LzOFP&P:PTQ=SKSQSqT/TITPTlU4U7UPVQXOXSX}Z%ZWZh]/^K^~_5ckdve=j^qGtNtXz,|1}.-!m-!u-$U-%c-&v-+i-.l-/@-2&-4{-5$",feng:"!@%N'40m5v7R:3C$FdHnN.PFSaWI[R^c`?b.c5k'n+n;r[u5uXxs-!$-!4-&%-&J-&L-(w-3(-3,-3F-8)",guan:"!'$b$j$k(W)B,Y/f0E6:9&:]:gBVFqIEWSW{X+X.a?bifMh?kmsUu>w7zOzS{,{2}{-'K-(N-0q-1N-1j-2e-2z-6D-7A",kuang:"!Y!z$Y%1%r%w(G+}/O/z5'538V8vZ-8>",chuan:",40jA7BYB`BhBxEvale[hIkJp%wQ-5+",chan:"&6'W)K)q1N6D7$8*8A8[8_:6;xCODJIHKQQ2RGR_R{S1UeW!W`X3ZMZy]B^+^7_N_bfbi|n2n6o@rTr]uWw3xYz%ze{7{g-#Q-%D-%~-(%-(S-+Z",lin:"$B&['t0:393O5{8!S]SrU;VsD5E4GTO$WNYk`LdDdNgjozp?wr~~-!a-&.-.D-.`-/&-/0-1t-1v-1}-9=",dan:"!K%$%5)r,S0N1h4V8A=A=B=H=~>q@9ATAVH*JDOkPUTLV?VoXGX~ZK_'a|bBc3f{mHn&nKn~~t-$I-'G-'s-)*-)a-,C-3Z-8H-8b-8i",wei:"#o$M%}&0'#'D'M6/6p6r7+8y9f;6>n@gC+D!DOE+FCGBH)I&I(I4INJ]K$KJL7LdMDN0PwQ$QDQHR?T3T6V`WkX$Z)[#[^^*^4_I_^e;fefig@hbj>kg?:?k@N?#@!@D@E@nA3C!CWC}D*DFE'E,E]EpFFF|GKHKHjJXKsNSODOGOXOwPIPMQEQIQWTETsTvU.V(V6ViW+WKWMXpYS[C^H`Va4a{b4bXc(c7cRd=dZegh*hPhRiAiLlIm(m*mmnQowo|pFqZYZZ]U_6_9d9fYj6j~lWm)mep)rQrbrctvwkxc{y|U}6~?~C~`~m-!Z-*'-+R-/j-0j-3i-4/-4@-5,-5f-6j-6s-7)-9G-9W-9X",tuo:"%U%V&z0L2J4v?{@$F_H6MUTbT~Y'Yc^QdHdQnVq+r`x1{{|;|<-&d-(.-(z-({-)1-)J-)K-*:-*e-*p-+$-+3-.b-/%-/[-0b-3O-4,-6_-8}-9$-9?",zhe:"#'%+%E'P2f2|_@eB>CADvFAI0I>J:L]M:M~TgWHWfY/Ya[|[}^6_ngmi6k`kll*l9r!tdwhxRzv}!-!j-%=-&9-&T-'(-'=-*&-0u-1I-2f-3;-3]-5F-5Y-7+-9T-:%",zhi:"!7!t$s%=(J(i(k(s(y)2)I)Z*2*>*A*T*^*c+(+)+J+Y,G/k4Q4b5T5W5s6~7^7|9(98;(<0=E=Q=b=}>L>|?+?QA4^4g=0D{OPOZX]Yb[(]G]W^ng=o;t*xHzI{N~J-&t-/9-/a-1{-22-9]-9`",hu:"(1(~.j0Z1M3!3^545r757G?0AMCtCxD5C_{u-$*-'1-(A-1!-1d-2i",yue:"$S%!(a){0^0|242S2_373H4<8sAlM{O,O.ZaZc_>cid2dCdFfZgApDqBw2whw}zczd{[-,V-6:-6B-8Y-:^-:m",lao:"&)'n,71s3<5>9M~CXE%F$H(JWMaOQP%Yg^jgrh>mAqa-$^-(w-/(-1w",pang:"!o'A1+=/>R?$?=A/B|QmWsd@jf~6~|-0k-2g-:K-:M",guai:"0,;%",sheng:"!D!^...t7*7q859e=[=x?*E(KM]^aMb1q2t2|#|Y|u-4_-9B",hao:"*:.,25-%|-0i",mie:"!`(D1G1dJxL>SNS~W]vt-1e-3M",nie:"1&294(4,=G=|B)B0E!GDMlSX^=e)e?eAezforAs$sJu*vfw9wByVyY{&|c}(-%L-%x-:#",xi:"!>#6$3$d%/&(&g'J's(!)P)n*l+7,,,n313z434i5j6H7?7W81878g979U;V;n<2<5<6>c>d@>A6BABBB}FUG]HeI9IbIwJ+JVKzL2NdPjQoQqRYRqSiT!U)UzW9WFWiWlX7XfXjXlZH[K[m]5]F_@`.`/`W`_a(cCcGcfcwesf)fulGlplwm&m4m_n:oIokp2p7pbqLqMqvsYu+ufv&w6wSxJy,z[{5{b}9}?}P}U~#~2~q-!%-&?-'2-'`-'r-(1-(C-*C-*O-*{-.)-/x-0_-1+-1J-2X-2q-46-6*-8I-9O",xiang:"!;)*+50U5Q6Y8b9u:U;E;J<4APC{HGHvLTaU4UI`]a$a]bxdRjGl{m/q#qOrXu,x$x>y`-$a-$e-%c-%d-)B-+5-3J-3q-4(-7i",mao:"!M#i$i*:/66e:uqcsVx,y%-,B-,O-4|",mai:"?W?XF>K^LgS{aKaxj(l+~g~h-!'-5{-7t-7u",luan:";D?dAzA{L=NDW~o{r7w@-4'-6G-6h-:y",ru:"/M7F8G:1>AEgIYJ6KlLhQJSHU:VGW,inlEm`oSr+x_-%E-&!-1]-3)-3K-3x",xue:"$?,(A=C@E@IGLKStTnXd[p_[coe,hdibig~/-!_-#M-18-2k-6%-6^",sha:"%4&G052u4O8F8~<<WIYIuTJU!Zt`m`pgNlNlypHu7wcyZ~0-!d-.x",qian:"'K.(/~0A0t1'2*2D2R2p6+7[8J8q:G;h>b@vA~CnD(EIElF:I%IjK>KLNNO&O8P}VR[*[u]u_q`!`&gSh;i~kjk~p9pEpOq;q?r6sPtYukvqwPwgwtwvx+{x-#U-$z-*+-*/-*=-+U-,y-,z-0x-37-4M-6z-8G-8M",suo:"#*1Z1^4Z797U:?;cFaFbJ7P{VJcuk)tatju3u9xi-/b",gan:"!3%)*1*t.Y/x1*1}3%4s91>GCmE#T>Y^bJbTcAcTcti}nE-+e-.Q-1T-2w-3*-:i",gui:"!q#o$.$C%x%})0)s,E/?1K1T?NERJ;N%P/R*RpUgEi#lilxuyvlzY{P|M~#-#K-*;-.7-.:-.=-/S-1F-1U-2%-2r-34-:Y-:]",jue:"$Z$l$o%6,%525S8#9NA^D=KiKtNnO6RwRxU!WWWbX%X5X>XBXZXiY4Zj]N^f_}a0c[chd7h7x8D9V:4AQCyFOFPNxV}Zm]c_QazkFkHl.uqv!vF}*}/}G}H}w-#$-#r-+|-,/",gen:"CQEHdc",xie:"';(f*&3c4k5+595I5h6g6v7&8>8T92:B:M<3>l?T?V?ZA&LRLTM0Q7QKS+S@SBStTRV*V^W4XKXOXS[B[y^<_Z_mflfnl,lU-!i-!v-#1-#D-#h-$#-%c-/S-2%-9Z-9q-9t-9~-:b",zhai:"%X)3,92qP*Q,Znh5iGj+jM-.N",kang:"%<+U2v3tg1lJpgugwmz={L-17",da:"!W.u/(/S84;H=Xs]Q]fa`d0dhe3gvh_hfi;i?lvnkoHo]p#q]v*xW-'%-(B-*h-+;-/Q-1>-20-3|-5k-5s-78-:a",hai:"5L?Aj9l/lnnro<-'!-'~-)Z-)b-+>-+p",heng:"?J?mMZT9vc-3o-4$-6e",peng:"%c&'&S'+'Z+,.V1+1@5@8P>~AACgE%FdJRMkRiRjU3eSgbh:s9v{zL-$+-$0-):-*A-,X-,b-,q-4K-6y",mu:"!1#N%]+V7`7n:@?.C5DeF~G%O=e/qKqPx!~3~G-#9",ting:"/s5l%>&?qC)FnI7PWQ8ZJ[El=rUxKz`~K-!~-$g-%e-9F",qin:"$j$k*'*Q.d5c=>>MD1DAGZG^GkMRO8Q}RJS7TVWJWrZQc]pXpkriwix{}c-!]-$~-)f-+E-/c-33-4L",qing:"&/&Z'i046+60:ZDaHzQ#Wr[%]%_Agph+i7m;>t?fA!BuC,DrGWH=I'J{L4MmO^U+U,U6VrW5ZL[d]Rd8d_eKf@m3pxq5qFrVtow0wxw|x(yT-'4-'^-(E-(V-(d-(g-).-)[-*^-+)-+~-,$-/0-1=-1}-42-6k",lian:"'K+D2+2P2V6w7b8k94;s{M-#!",ren:"(o*,*e+#4A4U5)5y8x9$>?@AD)E}FGGDTUU2Y!ZC^I^Vg&gFi&p/p;pRqp-!W-![-#[-#w-&i-'#-(2-.^-3{",shen:"!U![$8$r$u%j)#)9,12e2g3T3U3q3w4l96:p:~>i>m?t@BFkHwH}JGK!LCPGPHUNX)Y1YHZ*[2^)_%_L_S_VfylPqRrj-$W-)W-.m-/z-0@-0|-1)-2N-4A-8b",ze:"#R#}$n(+*p/,0J1I=0BsKAS?Vz[(].a@b7b]c:jO-&t-6.-9s-:,",jin:"!#$j$k%M)8)G.U.m/J4W4`6L70:/B6F&F;GcGkJYM!TWW%WzXsTwGy2-!^-'m-(Y-)$-7D-88-::",pu:"$5*k+j0$8LBTBUFXGGGaH~IsIt[D]]_|bEfInprtupv=xbyqyu|[-/m",reng:"(_DGiu|z",zong:"&Y'h+?3P3]4$5z6E6Q6n6x7(7M7X7e7t9%9nz?!?MB'CwE5E7ENE`F4GHHuJbL;NsXHYOYP[I_caFa[bzb~cZcpd(h3hQiJmbp&pmsGtRtuy=yO-$s-$t-,I-/{-0r-2P-4e-9)-9f-9i-9u-:D",zai:"#^7HGHb+g|i9n^",ta:"(d)i2~VAZr]wdBe7etfFfOfpkdkiq+sBt]tex1{'{5{;{={R{o-!s-#*-#B-/?-0t-2d",xian:"!:!O#5$<&#(F(h)X*3+D/D0V2k3B4%4|5A5c5t6,6]7J7r8Z8c8q90:%;];d;h?&@oAnA~B;BvDSDwFzG,LOM'M*MpOKO_O}PJT+T0V_W:WRX,ZXZo[O]d`>awbKb^cYdgd}f;fhgBhHnfo'oPqvr#r$rFrqs0o334=4P4f5i8o8{;z*]+m.?/Q/i345D5N5`9PA@EjJPO1T,Z,cFj|ndq:qYqjxC-')-/L-2*",dai:"0,1n4x7%9AC?OMQ]TdW=Yd^xa7aLbqdff'gCgLg[i%jIk4p0~z-!0-)E-/>-3I-8N-8e",ling:"%d)D*M++.5/+4p6@9];K;U<.=KBqD[GiJJJmL%M|OiT(TcUjYVdLgZh/n8oWpts0x)zN|q~;~O~]~a~c-!2-$L-%`-)C-/$-05-2C-3L-6Y-7E-7q-9z-9{-:A-:T",chao:"!k,h,r2u6?9b;5J@mA+DTGMH!UlUqZfs&sWy+z'z(z0zh{1{a-#d-.0-02-1X-2H-2T-92-:d",sa:"8g?^HDK{LYY@fnpQuwwS}A-!c-!s-&,-&P-)&",fan:"%0(M/1/40i2A2d6R7i8$;o<[AIBcBfE0KNLPM>N!SOVqXva=bcfXo:-+g",wo:"#l&A,R,_6}>I@OAlB!G*HQLgP[Qbe:-(p-:4-:I-:L",jian:"!%#9#`$<$D$I&N&b','r'}(&(<(X+D.p/9/g0#0/0Q181k262I3_5U6Z788(899v:9$>S@fB4BoCICSCTETE~G-#O-#X-'A-'S-(7-(k-,h-0Y-0`-0h-1(-28-2h-37-40-4R-5@-71-7F-7I-7J-7W",fen:"#|%A*9./2x3=3r4S9';M;q;~ARD4IxKmO?O@TGY,`^`ff|hjnOpUvY}K~5-'W-'}-(c-(r-.w-1M-2Q-35-85-8n-9.-9:",bin:"%A8I::A)AiNc`X`cahailKvjya~l-$p-%G-%k-,'-,1-,E-,_-,p-.!",di:"!u#/%W')'.'{)<)_*U.v/*1=2c4+6c:);X;@WDXD_FMG9G_ICJMJrJwJ|M6Q+QVR-0>-69",fang:"!I!n(l4Y9*>TBjD;O!Y;^ed@lLp@siwn|,-,?-.v-1s-3E-51",pei:">Q?(JBSwUrUsauc2hyiPnBn{s5y7|%|f~M-)#",diao:"$#&a,C,k.B1]5FJML|NhOaXxZ8Zv_M`ro~p_r!r:s*s[vawUxExR}v~D-.c-//-0%-2L-2{-3&-4O-9>",dun:"!^?gD'G!O'O(R/RO`ahShWiNu6zlzqzw{<{D{Q{c~4-#?-#{-%(-'f-)(-)4-.r-0g-0z-2V-36-3G-9<",xin:"!=(F?zBID7FkLZSyVtY3Y-%T-%U-*[-,w-.G-.W-1_",tang:"$f'@)f0{3V3j3o;l=)@zA4J4LJQSR$RAcMc~eef&g+m]o=tiu)uTv'wDx[yWyd{1}:-#I-']-'h-5:-96",huo:"!V$S$^(*)>)S*Y*_*`+|,W10=$=4AuCJG.IhMTSI[g`0a:4<%<@?R?U@.AEANAhG{THVmd#uQ}Y-$|",che:"$;%I&?&@=JFjP@gFA}EKFRFcK:LmRBTDW6Y7Zz[Q[o^;_V`$arb;c`cad>dKeagKimjHmDo@pAt(|C|o~H-5T-7]-9l-9m-:=",xun:"!x$Q*p,^4;8MAjEnF:KLKSL[LaMcRzS%XwY#Y)Yt^R^T_+j%jajlkclsmzoTv`-%A-(}-)U-+%-1?-1H-24-5A",chi:"!]!y$).X.y/A0+02133,5W<#<$>?2?D@SE9E|GeO%OHORR;U/U0UkVMYFZ9Zq[t`8aRcBc^d+dfeGj@jBkKkfkrkyl7q7q^qusx~9-&l-(4-(|-+&-.R-3Y-4!-4r-4w-4y-5]-6Z-8(-8C-9k-9v-:<",xuan:"!m!x#d$['5)k0R5?7J7d7w9K-+4",bai:"+&.;3;3M51L^W3b:b_-#k",gu:"!/$J'B)A*~+P.z010?0u3g75:r:v;Q>K@(AfE)G>GhJ,LSOdOjSeXFYR^h`%a]bxgdgehYi,iXk,nYprpws]wwy.}h-%@-%W-'Y-(Q-+`-/;-0'-2I-3^-5?-6S-7%-9*-9+",ni:"!h#P*G2m73=i>$>}@pABA{DqLpOLP.Q!XXZt`~d`h.jhmCpnx3}L~X-(e-0,-2J-7`-:+",ban:"*E2s5!9;>PBgBkQ*QvVKd[iciipPqEwfzx|$-!h-$F-%Z-.n-35",zhou:"!+#U$x&y062.2@2C3+384:777o8p9:B>o?#B^F@GoI$LfY][a]y^r_4_Manc0gkg{h,i0inCqg~Q-);-)`-)t-*r-+[-0(-3~-6f",qu:"$L'o(}.2.F/@2U3?4o5#<1u?/AxDlG:HhKbM}O[OfOpQdRDRlSkSpT'T:U&WxX!X&X=YeYjZj^tcjcld%d*fqf}g2gWw-#)",ga:"g=onsfwH-.A",dian:"&p'v,j1iIiKRPXdXeVewq!x%|8~@-!E-%3-%4-%z-*g-8Q-:8",tian:"!:#;'1'H,j4w6D>v@:BRBXGvWmX9atnTr#rFsXx%xM{%{n-!>-!G-'$-3f-5J-5S-8:",bi:"#L#M'!(w)L*@*C+;.n.o/E/Y0(0)1/1<2r2y4M4m6>7Q8@8};7<,=a>a>r@lA[BlC|E*F.FJG~H:J*>1>2GdYf^ucScxorpC&CqD^FyHSK}Tjh$la-#&-$)-,Z-/`",zuo:"(|*S+!+n/,/p4*7{?'D{F^H`HaJ?Th[(nWp||7-&t",ti:"!g#e')'?)Z)|*v/8285f6|9Y9y:{DXF!KgLIUzV&V'[qd)d2eJemexf~g8jxk=kLo&rDt)xy-%$-%r-*2-+m-,0-,L-,]-,a-/^-0B-2U-4;-4w-4y-5L-5M-5i-6r",zhan:"$H&b.33*6=9oGQLMN2N`NaOeWyYQZ/]h]l^B`#cghUhgiSl0n|zK~V-%~-&*-&N-&e-'|-*b-*l-.Z-1S-2y-37-60-7=-8i-:h",he:"&c()*(0z2i3@4?8r-:`",she:"'y(`BJBKBLJuNpOgP(S5Y>^dagakc'cDg~{!{^-#h-)u-7l",die:"!g!t&w5M9GpB5C6D~PmQ`R@V,V]YU[7_WcbdOdXdreigojNz+-#1-0S-2R-3d",gou:"/01%2)3g6t:&DhO[U#VBWwX;YNY~_(`ob5bgk_pMqHwl}k-#A-#m",kou:"!P!Z#r$$,P.2/W1OD+K=KFp$-5K",ning:"$P=R>!DpLevm-,~-64",yong:"%p&>A]DcIPP=Yre2e]l@mJmio9rHuVyh}n}~-%*-%s-'x-/y-0w-15-2A-2o-5`",wa:"%K,),?,E,`=N@r@xOyTuW1lc-#W-#^-#t-8w",ka:"?8U@qV",bao:",<.~6h?,DgGYHcK`L4MJN^OJTeUdV4V5Vf`ib*d8q/w%x.zs~>-!6-&x-&|-(9-)/-+j-,M-/7-1~-3/-3A-6Q-9r-:B",huai:"=7N3N8VDVSeE-:f",ming:"!C!w#zEDJ'R,WuZ0m^n_q}xT-3.-6L",hen:"Y|-!y",quan:"$b%u/K0B5<6$7:9mEqI3NAP|SlXLZ#_)dkeIgzi=o5qxv%xO{#-#_-%M-&$-)V-*3-,e-0L-2^-9}",tiao:"!~(t),,J,g/!3/4.5F=S?PCdD^H0J@JMJNPnWdZ8Zv_McqdwjCr!rdtyxR-#%-,G-/o-1&-2;-9y-:C",xing:"!D#Z&$0Y0g6J@YApBFEuF7FhHrP9T#XVX_[_lMluo+pBqZqwrhwZx6|D|S-'V-(/-)p-+D-/5-0D",kan:"!N$=$g%?'^.QG&T%h8ho{4{q-%)-.+-:R-:X",lai:"#8#F/X0%2/2MG'H%MSW7Zqaob,c&c4k.mBsgxd-$q-$w-)y-0*-4B-4f-8%",kua:"50?>B~Z=d9dlq~-+s",gong:"'91*44474=8o;z>[OBXQXba6bZfzg$gtrG-!z-,T-:L-:Q-:W-:u",mi:"!s#p$A(w)')w*C1d2b2}3p407c;>;F?bClH{J#K'K/L}N#N6PaU*WZW[WcX1Z.[j[l_g_rjXo4oXoYo_r,z/-!K-66-7X-7Y-7j-82-9&",an:"!(!.;)?I@XEzGlHWHgJSUxZS[N_d`k`{r1s:x]zy}+~=-!w-!x-$1-(l-/E-4I-4u-6v-8c",lu:"!)#Q$_%|&L&d'])E)J*}+[+o071X1v2!2#2G2H3I6S8^9q:f?9A,AtBmBzCFCMCND.G@JcJeJtKcM[NSYXh[~aVb|d$dseCf#gxh^h|i/i>iTk5nwpis2sascu8uMumvGw&w+yr|A|t~x-%J-%_-)+-)r-*N-,3-.q-.t-00-1i-1r-1y-3w-4E-4P-6!-6>-6U-7;-7C-7M-7b-8l",mou:"!|7n:@Oq[[_Ue6t=-#9-3y-8!",cun:".N2nA>lS",lv:"$()(*r+~0`5Z5~6S7_7j9q:*@wA(A8A;HkM,NKV=VZm'rJw#xDz_{T-*u-+*-5a",zhen:"!X!b!c!}%Y'%)5)T)b+I.A0X264N4w5Y7D7L9,:2=I?%B9H5I5IWJ&LnTpUSWaYKZb^pa2afbWc%g^hZi4iqkOnNoxq$r~s`tOu$u%wJyS|0|_~L-)D-,o-1f-3@-6R-8d",ce:"/%/U/^/t0G1W36F/H3HPJA",chai:")&>HCjEJNzS9T[Xz`jp4wY",nong:")v*j+q8C?cAXL,V~]iioipoL-,{-9a",hou:"#c$t0q3Z@AGFyHCKyL2LtNBNMP{DoU1UbVTdPllnm-+o-/R-:p",jun:"&].=/`0<0CFlGCI1O/PeTXWhaeg?m1p^qfr&t'wj|Q}^}l-$j-'8-(J-)m-+F-/]-2?-43-44-47-7U-7^-7d-:Y-:]",zu:"(x*J+10H4}95GqHbIkYm^kd6eLtdu2u;yk|6-!f",hun:"!F#O#W#]F6I8JyXT[=_2hczo{d-'>-(L-.C-9J",su:"';+1+3+],X1U3.324X7K7U:?>,>/@{DWFwJsM+M]MiXWYE[r^o_lcyf(k$khksnZrR-':-*_-+L-/i-1@-5p-6~",pai:"0'1z1|IOhBjLtV",biao:"'c,!1D@3A,A1AoJoM=T@UoVa[3]#b?seuZw$ycz#-&&-&+-&5-&D-&E-&F-&H-&O-&W-&X-*~-+@-+W-,;-2j-7Q",fei:"%[//1!6M9aO>e>r>z>{@GDFGjH$KhP_PuRuUtZp_GaObsvEyP|g~T-!/-!H-!I-&Y-&[-&]-'H-(j-*!-*,-0+-2F-9;",bei:"&i&r)`0'3f>wA[DfJ9M8PAU'V;ZLZwa1bVgch@iDlbm5mQqWrPv[wd|=-!l-#,-#C-+k-4N-6x",dao:")=)H)x+B+K005F8hbdm?n~o,oJqQsMx#y8-$x",chui:"&U0D@8GPsFtny0|n-$u-:_",kong:"%.&V,/0@;gg,sA-#(-4[",juan:"!{#2#H5J5V7Z9S:|;=?w@7AaG[K3SfUM^&mTrZras6u0vHy5yXzt}^}l-#'-&k-'.-6m-:w",luo:"%T&!&='n/>0M2]5>8f9M:n;@@)@UAwF8H9HYJ5N9OrRHS6UvW~X'Z1dbf`g'kAl:uEw>y/yf}s-$f-('-)_-*P-*k-+=-+X-/K-4#-6)",song:"&P.@===yGOY0Z]^b_?jcu1-$@-%[-'[-)e-,c",leng:"#>&h++L@eD",ben:"/&<(DxRuaUblk/sIy&",cai:"#T677P8aGSK+U>a5b[dxeQob",ying:"!R$v&C&|(P)c+_2K2^6U7/8`9^:>:X:Y:c=?A:ASDzEAF7F9G0G1H@HAHBHZJKLqMwOmQ0QPQiR0S8SgVPWv[i]M]|adbHc@g:j/m2twv8vky?~_-##-$.-$i-%g-%o-%p-1V-3g-4q-5*-53-5o-5~-67-6C-74-7>",ruan:"&u(>6^U?sA7C~G3G}HRITJZQgSUb(hKn}o/sL|T-0#-0Q-4i-4~-6{",ruo:"0P1#DnI}mP-0e-0{-5<",dang:"!,#s%2'((2/[1f2&CDF3GbKuN(S)UCW&]b^A_kd&kEvWxB{9~A-8[",huang:"'w+e0f1q7O>=C1F#H|Q@RtSuYv[V[f_Xd,kWt3txu}yI},-$,-'P-*.-0T-1A-2]-5q-86-87",duan:"${'&.I1`2X6a:#IMK(QfRI]1a*g3kxu]yN|F~x-#J-+}-,*-5a",sou:"#v2BC;IQJ(L_M?Qum[o3t~uAyH-&:-&<-&S-'c-(R-*<",yuan:"!9!f)V.i0F6f7':.;m>CD3DYE?I?I_InLGLdO5PRPzQFQXQrT&TYUiUuV3VF[xa3bYh]iQj=k@kgl8lRnPphs'u(|^-%1-)9-*G-.o-30-3U-4V-5%-54-6K-6]-6}-8s-9!-90-95",rong:"+Q+S5E7@9C;^>FEFEfF5J/QhQwQxSDVEghthyb-)R",jiang:"(43u3|5P8:9L:F<>=.A2EaH^ILK.LAQjRM[w]=^W`6ngo>oF|H-#P-%5-12-2_",bang:"&<'A+%5_749B@uC8IcO!O*OvPt[s_olQlVt^y^-#3-,#",shan:"#:'m)K)q+W.s7g7}:D;p;r?pALATBaD&DtR}S,TCWjY%[b]r^ObFc?cVd^gGlAn#p!qtvBwRz4z5z;{@|P|X-'q-*J-+V-/l-1C-1D-2s-2y",que:"&5&E&g'6'7(1(N:P:RI]O6c}z}{*{l{p}a-4Q-6t",nuo:"+<+u3e3y4&5JiKWL.M4N*N+N7N@SPZ:^(^zhxnoqls?vPvvw:yz~<-!*-$O-$_-%7-%}-1Y-6<-9R",zao:",y,~1R3sC#LlMPOC]`d1f4fNk%ktoCwA",cao:"3m>9C=C[EwJ_R:VbV|n)uc-*D-94",ao:"!T'Y}I-*S-+S-0~-2b-5X-8{",cou:"@ThJiK",chuang:"'_,H,L,q{+{E",piao:"$+).1D7a:;_tmuuCuUye-#!-%;-%y-'i-(Z-,t-,u-1*-2m",zun:"8':^U5]Pk|qqv+-1B-2u-4n-5|",deng:"$7'q.M/H1pCCW|`:f9l>mxv6yx}E",tie:"=VH8OhaPbndXq'qzv>vRx'-&z-'Q-*i",seng:"-,v",zhuang:"3:3nF)F]UBUZ",min:"!B%9&`.}/<1l6O6d:,:wDiSSb'pqs7tEzEzZ{K{S-1$-2n-3P-8q-8r",sai:"2'@cb6c9-%#-0_-2X",tai:"0+27>h>yB8BeD]GeLjdIl[nSpfw^-&/-)E-+7-/6-2$",lan:"17212Q4/8K8i9x;+I2F7I@sAHM9N?R1Z@[`l1~u-)S-*B-*v-0s-97",long:"!p$a%n&=(R(S,u.!.6/;1*162N=P>'?6E'[,A6;9l;1;;-&@-&C-&U-'b-(W-)M-)c-*@-*d-+T-.9-0m-5=-5_-7.-76-7[",shou:"6.9h@yC2uA-(_-:s",ran:"7v>ZDZIFOEOYTST`Tz-,A-,K",gang:"%.&q/{639!:N:W:x>Ep+s)ttwe",gua:"506}:z;%>xU^|cnedr#rFxM-&'-&1-*9-3k-6c",zui:"#G)C+15&8d;$KjRdXHi]nInqo!s$s8",qia:"%{'I?1HyU4dUnU-!{-+z",mei:"!L!_#)#a({)]+X0h3p;I;T?S?r@PE&FfI@QGTZdMg0mOnlrKtUtZyMyQ~N-#^-.>-.F-5(-7(-8V-8h",zhun:"+$,56(>UT8YAZ{_Pj.",du:"#K#b*f.T.^1,>DCsFBR&SZSmUyWqZd^$^D_E`3b%bNc)mMo(sDs|v}yL{!{^-!Y-#V-#s-#u-*E-,,-8]-8k",kai:"II`7gysvtbt{vCxGxvy@z<{({U-&;",hua:"%;&K'B3S8/BWD9D:GgIKK[MzR#XKZ&Ze[4[>]A]o_&`0p(p)rbsdunxN-*]-+<-5m-8=",bie:"FTNFObRmVuf6-19-2l-8|-:[",pao:"%e(@(O,!?|H>M=TeTfV>dDdTgfq/x.-!N-!o-7Q-7S-7|",geng:"56575d6m7,9Q;j;uAbArG?HYM3PfQ4Q[SRi_i`l6v|z$-#0-,k-0F",pou:"0$UO",tuan:"1H4'V8a%u<-5V-6#",zuan:"1B2Y808N8U8e:Kb3fjftq)vxw?w~",keng:"%t&3&RZOr>t1uOxg|&",gao:"#R#g)4)6)e*m+N+O/v0~3i7E:5;O;TA'B,GILrMHZ[_:m+ryu#xny]-#o-'_-,4-,5-5R-5v-93",lang:"&7*n/dC(F{IXJ.JHPOQlZEg%lzl~m.rLu&xzz^{]-)h",weng:"#q:b;}=rJ0L(Qstg-56-7,-9_",tao:")?58617A7N9W9kG|PoUhX{Yn[{^MdwhXjPjenzs+|r-!k-!t-#@-#l-#|-&w-'d-'y-)P-)x-9/",nao:"%z&q'*?a@&@ZAkP6R~YZ]Ju|x@zJ{O-.'",zang:";S?_AmAyB$I,K@M#abambLbUb}rC-)A-++-,.",suan:"(z.b/m0;1BI^nn",nian:"':*5*P1Y3*C/K6evf5f[h=iCiS-/4-0;-1x-2K-4%-8B",shuai:"7>:4RNTH",mang:"!5!6&<&D.ZCvEXEiG4G5M_OvRaSAlDp.rsx:-)g",rou:"*!2w3X>3?l@aHdQC]tekhEt$-#2-#f-*7-0R-4t",cen:"+W.m1A",shuang:"(V7;CPuh}z~b-*M-*y-+^-5c-6A-7B",po:"%g%i/70I3'7i<,IlK,jLn%n[o1oKotq9uswMwz|=-$K-%a-)7-,N-.E",a:"@@s@x}|:",tun:"AYAeC~OlVL`G`IgJ~Z-&h-(0-.j-1q-8J",hang:".k/T5*9HBiDHOAT#UAa9j3lJ-$C-%]-.i",shun:"!x$&$1$9BZKo-$:-%S-,g",ne:"!vY6^]",chuo:"'j0^6?8&9bd!e'e`Q`b`va/hpj9k3l/lsn9tCvSyJy{{:{r}i}{-*|-,|-/n-0A-0K-2>-3?-4+-7<",ken:"&#>8>Y>fUFV$`S`wsh-:?-:E",chuai:"A0ACeb",pa:"/bm|roxk-.6-1K",nin:"?[",kun:"#7&H);*s+*5oGEPpUEUJUgV.`wo%sCy*z]zj{Y-)w-,<-,=-,D-0/-2G-4^-5'-6w",qun:"0<;_;`UVU^e.k&-7U",ri:"TMp/p;pd-)%-+(",lve:"+4rgrlxr",zhui:"&U((.h66729r:'@C@|[!b>c6j_o#s>sQvdy1})}Y-)s-+J-4Z",sao:"$O7m8<:A:HAdR4-&<-*#-*I-+Q-,:-0l-1R-2a",en:"J!",zou:"0&6GG=[)_CcNcOlem@mcn.|h-*H-+1-/w-06-2E-83-:.-:7-:n",nv:"2h=TSvSxp8wW",nuan:"-'M",shuo:"$m&+'$0cIvZaZc_>qttmv~x*",niu:"4H9.FxpTwq-!`",rao:"+i8)9FF,KdVvk}}B-'v-(>",niang:"nuoRoZ",shui:"#I)7*q*z@1U[ZaZcZg_>_KzG",nve:"&ONJ",niao:"@%E>K1T^UGVO-2{-6H",kuan:",s,tAqw(-,&-,2",cuan:",',Q,s,t,z1)1[fLfsrZw;yv",te:"?vRgr{xe",zen:"]V_y",zei:"S;a_bv-0M-1Q-2+",zhua:"2(AU-,Y",shuan:"5<@]z3{?",zhuai:"#1dmi'",nou:";v=,tfv;",shai:"/Z121J1e2[[K",sen:"Ve",run:"$1AOz@zQ{F",ei:"ZH_@",gei:"5C9J",miu:"7n:@]+_w",neng:"?LR'",fiao:"WL",shei:"Zg",zhei:"j:",nun:"-84"},m:{yi:"-:~-:<-:;-:4-:3-:#-:!-9~-9T-92-8u-8R-8N-8I-8+-8(-7O-7M-74-6l-6c-6L-5z-5)-40-2U-2Q-2>-11-0o-/_-..-,o-,B-,3-+q-+[-+<-)X-(o-(5-'w-'k-'=-'#-&6-$'-!?~=}E}1|x{Zz|zzxix6x.x%wKw,v%uPs_rurorEr8r)pppdpXojoioVnxn_,^g]|]{]`]/[!Z=Y5XVVTTgT_T7T1SxSsR~RyR;QwQ0Q!PDP6NbN^N,MZMSLXLIL6L$J9I}IUIIHMG?EaEHE4D!CwCFBkBTBEB9B5@2?Y?K?I>K>H>'=a=R;m:~:48c8!7,5g4q3&2}2Y1j1f1`1M1/1'0t.O.K,_,,*x*f(c'G&.&&%b%Y%G%$$b$6$/#x#T!9",ding:"-:}-8q-)?-%!vipfkGiydzY2Ik6u+B&^&[%_",zheng:"-:}-9O-7L-0#{1{,yjuvsRm*lNlIi;eheZe8e4e3d/`x_v]3[+ZSY8Y2XlVFTYT#Q1C@A!4W3w07.),]%*#C",kao:"-:|n{k][#TbL>>R3p/,",qiao:"-:|-:(-6A-5v-4=-3(-2[-.@-,2-$H-$5-!q-!=y/y$xkx4rSm+m!k]k%j:iSi(hqbvaT_wVuV6V$T%KgGaF^FKFGEpDSBCBBB;8<2b1C1>.}#e",yu:"-:|-:p-9^-9P-9J-9H-80-7t-75-6'-5g-5b-5H-4U-3F-2l-20-1F-+K-)O-)+-(J-%a-$p-$K-$9-!7}]}W}5{7zizNzEvyvwv9v3tytjtetcsqsos@rsq|pyp+p%oQn6m%l8kyklk8jfgvguf%eGdWbtb(aLaKa:`1_1^:]e]d]KZOZ!YmXiTDS`SUS7RpQyNvLAKsJKJJJ;IAH|HmHVDVD:D*D#D!CrC[CDC,B*@K=Q<><<<1;h;_:v9G908=7M7I7A535#2{2R1b1:1(0;/q.(.&,1+G+9+7)n)h)F))(+&*%!$M$D$=#V!A!0",qi:"-:{-:r-9{-9E-9;-99-82-8$-5f-5(-3D-2{-1:-0G-.j-(Y-(A-(.-'v-'C-&%-%m-%I-%F-%E-%:-$D-#N-!Z-!B}$zvyHwbw;w1u~t[tFn;n3n$m~l^kkiBg/dpdTcKbJ4GyGJEW8l1T",xia:"-:y-:s-9u-6I-5e-3w-+T-*+-(v-'m-%n-!!}({Mwtwpm/logkeB_3YST)P~M-1A-/j-/i-*P-*J-(^-&C-&9-$k}[{Xtrrbp,n8lJl%dqbm_c_L]cZ(VLV%T]R_R^QRQQPOK9IJCH@l@^@?=k=Z=?y>]=x<`;t;(9.9(857&6{6d5m3D/;.j+?(>(!&8%{%t%4$X$,#H#>#'!w",bu:"-:q-7F-,M-*w-*t-(d-'K-&D{B{?{6zPtOm#izh'gfd,bi[rY}Y{YfQHM,C>C;C:'=",fou:"-:q-(cvCBj4H",mian:"-:o-42-1d-0w-,S-,H-$`tktQsZqpq#aDNWJ^E=D~@p?|;k;,7G/o",gai:"-:n-9w-6e-+u-+t|'uYm@dy^AW%T`QYNaHZGNGM:M8|'{&6!,",chou:"-:m-:l-8m-5_-4=-2A-(m~{t/r!iKhld$b3aS_%[_Y%W~N?N=LJJkI|E?B_0h/O.s.p&3&!%l#v!m",zhuan:"-:k-7o-3G-3+-2y-.I-)n-%+~EzRyPreq;<`,E%g#(",ju:"-:j-:?-9m-7n-62-5`-5S-4x-4j-2l-19-0%-.Z-.:-,.-+n-)H-'d-$|{/ztx_uct_tNt$o{nvnqnOnMmqmil`jYj9j7g+e%d:-(h-(c-%5-!.-!,~|~X}2|L{2xhvCs7*6e4n2x.Q.G,n)Q'(%k%h%@$p#R!U",shi:"-:h-:g-9q-9l-9N-9M-8t-8_-7R-6k-6]-1X-0m-,^-,:-+_-+6-++-*>-);-()-'{-',-%.-#t-#7-!W-!>{>z|y{xn=}:{:s:W:5:'9v7C7?6n4=4%28.3.+.#,0)$&3$}",qiu:"-:f-:^-8m-6#-)u-)9-&+~*|FyTsQl4j2j1cFc&]rWkO%KIHeF8BpAn@s@b?J=o;^:l:k:j2D/T.k+D*'([!P!(",bing:"-:e-:W-8h-8b-6u-5B-4T-3Y-1;-0a-0[{mp1ngnZhbhah&cm[vY,W5R0QpN/MQLQLLJnJbGXE:@~4E)r%,",ye:"-:d-9z-9.-9&-4e-2_-0U-)7-(u-'%-$W-#,-!]{:zIxqxdwgoVm$jxjw[hZzZ!YyY;X:X6UhUcUUUSURQUPxP@P?P,OmOkMYMXIQHsHpCXBh>i-,u-,G-,/-'I|/{)y&u^tXr*mSm>lKl?eNc3_H^LZhXL^>J=,7[6?1e=_=G<8:?7f7d6/05/f*6*2)c%x!'",diu:"-:_-:[",liang:"-:]-:Y-9)-5x-5[-5>-5%-1G-0B-&J-%y-%7-$Ly2bWY7Q*KJIwG%~n}bvRuAq=pZo8o6m1lyh[hZh(d]d$c|cqbY`,^xXkTaS4OVM;LAKGK=H{GFD}DJ@8@(?V?>=g;C:b976B/j/i/O.b.D,?,>+Z+Q&g&d%O%!",yan:"-:X-9d-5]-4]-4O-3;-1u-1Z-1Y-.a-.[-+:-*O-*F-*/-*$-){-)z-'%-&=-&2-%'-$N-$G-!L~~~a~Q~5{GzAydy7xLx@wMw>vPv>uFu@titfrgr?r9qwqfqWpKmhlEl'kuktk0jUjKjJjIjGgM-9<-9:-7m-5K-0W-.$-*H-*G-*A-*?-(s-(H-&n-&'-%;}L}@}9{j{5zbxTuBu3t%q2n,lVlUhKh?[`[ZZZY:XLN'KlIsIFA0A,}>k:c9s84684l0$/w&C&/&,!*",zhong:"-:P-8A-83-7x-4Z-0j-/C-$Tz8ysx$vMvHs^o)i)eqe0dddYS`MKC2@=?G4w2k.T$F!>",jie:"-:N-8i-8<-5$-4~-4W-4!-3j-2]-/@-/?-/)-,r-,a-*j-*i-(e-&c-%d-%H-$m-$8-#q~zzKz7vevOuit>sasVsCs(qSpIoJnpnln*m|lCkvkbjrjqjgjbhihIeEbr^S^;]_[,YZY+X{XwX?W_UmUOUJS9RINXNJL0KxKoI~I1HqHgHfH8EOB,>j>;:z9b882?/'.6+0)H)8&K&J%g%]%M%##D!~",feng:"-:M-8:-5L-4N-2Y-0]-0&-0!-/{-/y-%p{Rz9z5w}w9v7odoYl}l|l5W4MkKPI.E[?m?h=S;Y;#:R8e5Z4i3V3*2g1h/1,O)u%C$B",guan:"-:L-58-1=-0l-*vphb@b?af`LXqW*SRJ+G*D(B2>wRWQkP#L)?N>=0X.X.U",chuan:"-:K-7o-3G-2t-.K-$]}Tz3jFjDPMIRIDCbA?@i,H+<)7",chan:"-:J-91-2y-2R-1~-1/-/:-.k-.J-.*-*~-%$-$F-!n~P~@xBszr>q3l>kJkCkBjXh{hpgWdu^r^lXsX+W;VqVhU#S9RYJsJXDEB#=v:^967o7n71655d5B2V1I,#&v&u",lin:"-:I-9U-2g-0e-00-0/-)v-(l-%PxDlbk,gIgHc=bob)_=_6[MVGS?Q+PGN!FIEmEDQ>L#JuJfJ3J,IoGcDh@j=|=h.h)e)N",zhu:"-:G-:B-9]-7d-7G-7?-6Z-.&-,t-,n-#T-!z~4|=xpx3qVq!ploNnWnIl*i>[[[WT&StS;OqO1O0O.N>M#LzLFGWFmF,DhDbD^D0BH?&>Q;b7t7Z6s5x5>4V4A3y2^2@1+0x0?,K*K%B$J",ba:"-:F-8l-7`-1E-)^-)@-(b-&M-&I|_{[x>wCv0mumIj,fq]o]I]6]#[GZ)O+M'D,5?4R0+.m+@%N#/#!",dan:"-:D-8~-7{-7H-2r-2J-/V-,,-+G-*~-*{-'f-&2-%C-%B-$v-$F-!m-!b~[vTsjiofTfOfEb$aga>_q_P]4[VXuV@V?UjRiM/BeBSA*@)>rc>C=n=$;S;N;0:N:08?837i6R6G5|4]4>4$2]2O2F1]0u02/$.r,[,P,I*~)h);'f&H%!$N#X#U",jing:"-:A-9C-9+-9'-5r-5%-3A-2O-1N-0K-0C-/9-.~-,y-,k-,[|i|g|cyIvQt:t8t+pojAh|fdfZeeeWb/___NUoT+S&S%Q:Q3PIP0KZJpEvBsBn@I@H>m>%=><87]6#,r,'(^(B(<%($u",li:"-:@-6_-5u-5k-5Z-3s-2&-1z-08-/Q-/=-.o-.G-.'-.%-,l-,&-*L-*I-*:-*.-*!-)|-)Z-)X-(z-(2-&U-&0-%g-$C~g~`~A~>|`yrxEu+tat#rjqYq,nAmkm5m.lzjag@b]bXbRbB`l^&]q]gWYU@U3TsTlSpP_P>P%O&NmN^MqMSLnLcLYLUK!JoJdJMG1ECDuDjD_D8D.C/C+?k?[?Z=Y=U=/:/8z7@6C6$5H0a0U/>/=/#.z,~,u*V*$)z(t(_'x'u'l'W%R%F$l#P#A!Y",pie:"-:>rVV]V[PHAD8>",fu:"-:=-9c-8[-8#-7z-73-5y-5m-5j-5U-46-3v-0d-/|-/J-.R-+h-(=-(6-'[-'S-&E-!s|<|!{]wvwWvVvRuru'tDt,sbr5qJq/pmp3oWmgmFi~ifi7hzh;fwfkeje?c{ct^w]l]J]&]%[Y[QZ+YfV7S}SLS)ORN+M]MGM)M'L1KWJ2IYIPHKA:>~>Y=W-8%-6;-5|-4k-2k-2:-1q-.T-,|-,C-+y-+/-*V-(U-(T-(J-(?-(+-&)-%K-#v}4|^zLykxvvxv4u%tjthsurTownkn9n+lmkzk_j6hFgQfudbd`d@c'b[bZbKat_]^[]e]d]]Z4WGTTS7RoROQENvNtNoM&K#FLCVC=B3@[@Z@S?{>T>*=V;^:,874(3C322*1w/V/A+3*4*3(|(P')$h",tuo:"-:6-8X-77-6h-6.-'a-'G-%[-%$|Sz;v8sNrRmck'gzet]i]`[H[F[EZMYuV1NgN^MTM8ITI+GbFBF0AvA_@d?`?_?^-)C-(W-'v-'8|||{|T|:z~z{yFy@x$v%uNtsrGp&m7l0j+iridiahyh5h3ggf5eYeKe4e3dmdUcU`6`*_$^{^E]Y]F]E[u[HZtZpZ]Y{XvWpWVW2V{VvVtUKUJU>TjSMRwRgQ`Q/NOMyMcM2LqLhL6K~K7JjIuI]I*H+GHF_D|DnCAC6BiAJ@t@O@N?v?T?3>V>34`1_/9,x,^(R'w'[&3%c%;%7${$z$k$E",zha:"-:0-48-.N-.=-*C-(w-'X-'?-&K-$j-$O-$Aw/pNd6]s[m[XZdX4WIW#O2M7M1M0LvLlI?H4Fv;X:67u5#4@2N/p&d%.!M!H",hu:"-:/-:'-9j-9F-5E-0Z-+U-+L-'h-'W-%n-%Z-$_-$4-$1-#>-#2~k}v|;x1x0x,uGt4sEr]r[oxm[iphxfxfgdFd*d)cGa{^V^6^4^3^/^.^,^']y]9[xWWW$SXRFR-'$-&N-%z-#p-!}uSr`ljk/cY_f_eYtVZO:L=G5F!=O='8%7a3{/^./*<$f#c",yin:"-:+-7}-6^-0t-0;-*c-(j-(V-%o-$d-!T-!+~l~+~$}`}$|&{w{YzXz:w_u=t0t&p:n}lnlLlfya@`i`B_u_t_0SMO[L:KKEkE@E1DKCwC_BYBGA5>l>d>U<5;~:}:i9}9V6^6]4).],|,j*I(U$7#k#_#:",ping:"-:*-5i-0]-/z-/s-'u|Qz1u/ngnZmTi[iJi4heh&`0_zMfEU?6>6=A[KMbLw",sheng:"-:%-:$-4H-.X-.Q-,?-+0-(9}=x{x7u*k}_VS[RGQJQIOeMuIyG~E{BzBF?%;k;@:q7G2u/M.N*h)i&y&s&`!'",hao:"-:!-65-3k-2)-)6-'j-&_-#k-!t-!Y-!#~xxRvacOblRDR'QBPePaPWP7J!A~Ao=]-'6-&/-%]-$X-$:-!p-![~T~8y?xWwnw'tgs;rCr@nsncn`nRnHkgk9jpj`jZiqiOeceOe9djd_dEcscgcZcKc/bqbeb8ay`r`p_s_r^V^6^4^3]_]O]HW%R:QKQ9Q6PEOzNON)MdLZKSIdIGG{GUFkFRE|EjCzCuCmCMCJA4@e>X>S=f<[;i:+9h9)8p8/8,7N3e3R3K343&2Y2+2)2%1q1P1O1N0}0P/E/?/*.{.t.#+p*r)|(#'h$1!k",xiang:"-9x-9,-9(-6}-3*-1}-,4-,$-*0-(x-&r-%L~Ww~uXk5j)h7gqe'abQXP5LWH^F1DH;!8:*E'g'T",shu:"-9s-61-5g-55-54-1|-1F-)Y-'3yNyGu[tGq4oNoCnWnIg}gxdWchcgcIbt^X].Z.Z#Y>WBU9T'S|PvPtP*OhO1O0O.N[NBMtL`JtFuFYEpBuBKAaA`?c&=L/3,E,B*n*d&f%0$8",mao:"-9k-1,-1(-0|-0z-*dzLwksLmOkzi?a=_?^(S/QvPrN4M@I'B!AcAW?9;F/Y/#,J)E#$",mai:"-9i-7I-,{-,*-*}-#${Kx5",luan:"-9h-9Y-9V-*^}C}Bvmu0qXq:q$m)jOZ[TvOuL2D69K5J59#4#3",ru:"-9f-6K-2C-1K-(N-#{-!$vkv[s7qyq)jciX]kZgUTP+NzL(E0@W>7;Q9u6b+^",xue:"-9e-.x-(Q-!9|Bxbq>q+mmmMjzf=ckT/SlKvFc?!>u9j7>5y1&.B%L%<",sha:"-9b-4c-3?-2H-/,-.t-*+-%t-%^-%H-%4-$R-$0iCgkZEZDW$<%81806O5S4B2Z/J/B/2+%!l",suo:"-9_-9=-3]-&8-%x-$&-#j-#gu&s(as^$ZEZDW:PjKaJz:E9y+|)w)v)!(]",gan:"-9Z-8S-7J-5&-0=-/u-'c|Ro'o%o#o!hfh_dqa5U~T]T6R_NuMDKLH6FNEd@??;<:8f7_7/55+;*w'#%?!T",gui:"-9X-6q-3{-/(-/&-.7-.5-+Q-+J-+I-+F-*%}3{zv2u;s?rhrIp|k$jpj`iLhLh,gmf;cMVxVVTiThRCQ2O%M9L.KeIeI`GTGAG_k_Z^b]7Z`Y~Y9V^V;TnSgKTF7F6D[CvAG@:?!5P2|1d1>0S0G000/+z+M+)+'*](n(G%L$3",liao:"-9R-2|-!rrLovomo[>90%*F",chu:"-9K-5N-3d-3R-2K-2!-0$-/m-/Y-/I-,t-*)-!o{$x!s>n5hjgXcj`g_SWxW$VoTNS=NEIjI&HoHQF|E}EsESE#DsDdCzCG?@9r9q6x4N/+*+(,&;",kui:"-9I-3{-/4-+I-+F-$U-$;-!xwow4s/rBo*mQjVjHb]a.a,_y^BXgQdPyI2I0E&BV:S7x2l.q!/",yun:"-9G-7r-3q-1p-+}-+x-(0-&^-$^}xwEvsvEqOb}aca4a)`c]2[yRNQTP}MwHWF@BmBaA&A%@0=3=!:!7W2h2:202(2$1b.Y+(&P",sui:"-9A-5#-&F-#U{3wytvr1nwn4kpRqEWC1C0Ab=H9[7+6z5}2C1g0~(/'p",gen:"-9@-9?-&pX=X'L7",xie:"-9=-9!-7[-4J-4A-4/-39-1{-0s-0c-,w-,+-+'-+!-*k-*Z-)7-$(-!C~e{ry_wrw8w1u)sOq]opnenVnNm$jrgJeFcT`z`p_BZ~ZWZ8X9WnWMV*UiUFT}SWRePXMZLIK@JwI,HOH?H/FlC]?K>p>A;P9h7B695{5!4Q4P3b3E2,0w0s0O,C+k+e)8",zhai:"-9;-6B-4f-4*-3E-*K-*C-&c~zw{p{os[u[2YxW/UwU>SiSfH#EL#t",tou:"-98-4'-4&{$wNv'sqs@aK]*T0SQ",wang:"-97-8v-87-1JvYo7o1o0o/eoeiefe[dldJa}]>RTQ(OEODO=N1JD@J6;+E",kang:"-96-8)-+X}|rmkKg|dG`8]f](G=8_4d.a",da:"-95-.N-+f-'f-'R-&m-#~-!J{hxrw[v*d'ag_q]nWZVJ@f?}:<4Y0p&@&4$#",jiao:"-94-6n-6D-2q-2j-2I-.B-.6-,6-)B-(<-$H-#M-#K-#?-#(-!^-!=~IuUu1r=r6qcm+m(k1k%k!e.e+cJbl_~_i_KZjZTZ5X&W9VlVCV(ToTJT?T,SwSuSgSSQbPgP2LOIpG!>!:l:k9Y8w8<7b5[5C443,2b1>1*.9+l*X(5#e!v!^!V",hai:"-93-'V-'0-$#-#h~ey]vOq;pL[!A3=N3[,C",heng:"-90-&B-%QuJcXcLbaVKL/FiF&<|42*B",peng:"-90-5,-3J-.F-+o-!~zgyqyYfUe|cyc+`%[tZ?Z6YkXpWvW4OTKCJLIlIWGGFn?6t}sxk~hVhJh)gBg?g;dzZT8T.O)O(NfN^MrMTMSM&KuIRAh?`?^&D$i",men:"-8{-8G-53d8bcbCaz_9_&]VYgS^PZIh@>3=1,+((W",ren:"-8z-8y-8s-8U-8F-88-/d-/cx;vSu`n:n2d|dwdv]XO,NiLPLMK6J7/]",shen:"-8t-7V-6i-6/-5d-1Q-)l-)k-)j-)i-(V-'i-&}z^u|u>ttsys.qmp_pHorn7lui(fp`t`b]b]4WPTFR4P9P3M:J7J(IHHRA9@+=D<0n:(9U7C5[!e",jin:"-8o-8j-8d-7}-6<-35-2^-2=-01-,y-,k-,[-*X-*'-%o-!F~y{Fzkz6yE=q=M:I9$6~6g3h2M0i*Y)y)K(z(d(@(*",pu:"-8n-3$-+k-!S}^}O}<{BzPy(]p[rY{V0UvTeTdQ;PiPPP&O*M,FZE_AS=`:17k6T614r3a+v(C$m",reng:"-8g]m",zong:"-8f-5:-4y-43-3KzFpikxkrkNeJcdaraVY^XXX(W&Q|O>MxJQIKG28L8D8#3+1n1c0{,b,R%E#w",fo:"-8e-8;-73|IJl",lun:"-8c-7i-6S-4u}l}Y{.t*lSlRb9[{YMJa?j<6:3",cang:"-8a-89-7h-5;-3e-07-+OkeDW<];o:Y9g9_8a7;/G+J(!&Y&7",zai:"-8`-3V-2G-1!-&v}8pOl.]j]>L3>f;>:.4|4{3~&Y&7",ta:"-8^-6E-3^-#~-!&~Kz$yyy6vep}lc[HZXW`V&HCG}EqA[?}u.t`tZs~r~rOrNr9q`pUo;o:nBmylxlhjthhgCfhf+dI_a_X_R_'ZPYQXsWnWiVhVXVSU6U'QlQNPKNFMhGiFFEtDRC~ArA@>S=E=7:]:C7Q6*574*0l.=,s,G+f+c+U+O*|*s*T*,'3$c#b#Z",cha:"-8X-6Q-4D-/,-.t-)e-$A-$$~s{yvbu?o|m}kqj3]a]OZ7Z.XZX5WJW1NsM0LvK?I?GjEB@k,<%s",hong:"-8W-)w-).-(X-(K-(;-&{-%}-$)~i{kvXu6pqpjn=j[fvfBa*``XeVNQ[@E?y?<>@=b=S;J;B:R8J7U5(3|31+>+4'T",tong:"-8V-7/-6R-4Z-2h-,/-(}-&|-#Z}o|/mNm>m3h:f(c%`P`)Z1Q]PwwuqtKqdmdmVlQjhekYffd9]bDaxT:RBQtPcIiATX7s5L",fan:"-8E-0)-0(-0'-,1-+R-)a-!hy%v_tDr;r:iwhwdi_h]l[ARvRtNpMLKXJrJAG,FD@w@g?4955t5_3n2E15.l.[(A&O&/&,!.",miao:"-8D-,m-)v-$?vDscrPh>gtgSX^NP<#;A+K",yang:"-8C-7<-6{-3[-15-,f-,@-*g-'Z|J{xwTukswmrl6l3e`d4cEaA`m^}]T[lXRUz>`8N6A4y4D4.2B+6*O)4%Q$|$@#F",ang:"-8C-*gn.RLQoN0!5",wo:"-8?-4s-4L-*l-(/-'&-%q-$atCtBsfi8^TZYYbYSXKV#SRN8I>@1=#YqXmXjX7WmV!UGU'R{PpO_MoM(LEK3JgIfIJICI)HEG]FhFCEKE2DLC&BMBLA]>a>$OYOSN.K&J*J)F)A>@66}5i4v391=16+{+.",bin:"-86-3S-2EpAe}W?UNShJnImGXE:B^BO@r9I6q6Q6M6,+.(j((",di:"-85-7@-5a-4F-3:-*D-'}-&t-&$-%R-%&-#O-!(}0|h|d|@{Q{L{8zMyFy;x|w?tqsmrimUkIjoi`hBg:fofjeld#`7]g[g[=YFX]XGW2TLT!R[NfN(MrM3KAK:JCHiG7AI=g<};T9f9=3F/K.V+=*5'1%c##",fang:"-84-4}-+^|r{Qzcv5er^%TZS:S(RER6N/@<@'8*4c1@/!+m",wen:"-8,-/X-(M-(C-(&-%Jy`vNf)dfde]:X.WRSmQsKNHWH)C$B`@>;z;R:*4s+1*8(}(&$;$.",xin:"-8*-7f-5d-5G-!3-!0~%vSCR9N@N%D$C^4a3$",ai:"-8&-2W-09-)h-'!-&q-&5-%Y-$'-#]-#E-!;{SzIyfxUtgtUrxr'kaa9_7_,ZNYaT&T$QqP^P.CxClB.:%9t6U3.03(k(;#]!s!j!]",xiu:"-7~-5c-5V-''-$/~|p@mfmPh2N~G09~9F8I4+*P*#(N",xu:"-7~-7Y-6Y-6!-49-0x-,F-,E-*Y-)T-)+-'p-$e-$Q-#7-!o-!W}7{Wy,x+v&uxspsArFhHeXckcKc:b(`g^YY4XMTKT@RbRZR!QcP{O^OOLGI9GfC|CtCiCOCKBw@5@4>?=t<>;+;):P9r998W8B433W2H0m+t*N*?&;%T",tang:"-7y-5+-4M-3l-3U-1v-.2-&.-${-#.|XzpyukdilaA^cW^V~OsJFH%F{F<@P/:f8U6y6Y6+525127+_#@",hui:"-7u-7#-2u-1{-+H-+.-'/-&j-$[-#=-!f-!U-!D~p~,~&}u}Fz]xztEsgr7q]onn?n>i*gmg7g5f6f4f3e,e*cDcCcVEQSQCP|PQO]KeIOI3GRF4EiEZEQDqBVB>B=B7@n?D>h>g=y;+:S9X897x796y6:5,5)3t3q3k2h0y0q+h*9)G(=(2$~$)",kuai:"-7u-6@-2M-/p-&f-!8}:|ez&y'jEgMdXUkRrO]Cq=y79.*+g(2",cui:"-7s-5?-3N-04-%I-%>y8lYlWkhdSbE`TV|IxH*GHAg<48P6a331g)p(b%I$L!d",che:"-7n-5`-4I-,%-'y-&*|?vln|nGene/]QY.XcVsV>V<7`3r3b3E0C",chen:"-7h-4_-3e-2'-#|~ZyWyAw]pGoBdRa>[aY]THS~QAP$L[K_K'J(HUG3D]@+@*2n05)l%P$?$$",xun:"-7g-6O-4.-,Q-,A-,)-,(-+5-'3-!k-!P~u|y{=yixYxAw#uHqKq9o`oOmEj@j&j#g=ebe>c]`uXUTfRcP(NqL_KbF`BvB@Au@Y>5=r=l8+7y6V583O2h1{1D130j0Y0Q.5+b*H(L&T",chi:"-7c-7M-6b-6P-5E-3@-,W-,K-+_-*]-)<-)3-))-(:-&W-$z-$I-#l-!g-!=|@|)yLw/vBs6n|fsf$eweve6cBc9`X`7_|_2]`[f[!ZvZ/W+TxTCSNNcMPM3G1ChC6C4BX@T?Y;:8g4~4;3U1K.O'A$Y$U$E$2#G",xuan:"-7b-2N-/.-)o-)'-'(-$Y-$Mz)wsv&sWrqr.p]f[cobMaQaI_I^nX_SyS'RAR,QeQ$Q#PNK@HxHwEf?#;I8d4M3x2e+L*s*)*&)B(Z'~%/#E#<",nu:"-7a-3r-,svjq?ilfed1Wo",bai:"-7`-6z-(1-&:hJ[?[>ZwYeX}WAUfUCTAMFLN,n'D#*#)",gu:"-7_-3T-2e-0F-)I-'s-'N-&<-&;-%G-#y-#@}gzfx#uhrUq@o&lXl=j5j4d*`~]_]9TSNaM.K-27-+8-(%|Nzsznv/v)t'Y'R$*#[",zhou:"-7W-6M-2X-0{-'|-'z-'Q-'5-%X-$i-!G~{v.t/pgjCiceIY%QnQLQ8)<3;[5U3G2o0D(K(8#9",ci:"-7T-7B-6m-47-17-/+-/'-'t-'r-%@|*q}j3h<`hN|MILHD&C??56Z*p*k'E'6%=!{",beng:"-7S-#w-#+{R{#zgyXw!lBkYX0>v)d)[',&k&j$a",ga:"-7Q-'M-#A-#/-!4wIwDoEo>o.RaOM+C",dian:"-7K-7:-3m-18-**~M|P{lyBxfw6v~t6t!kXj]jNjMh@ao^!YOTrTWT9I_GqG_FPF5B?-(7-%`ylybwYvit=nodgc2b:Y#WPQ?LSB{?U-72-66-4E-'L-&,-#!|lmtmsj;h0d6YTV4R%M7M&)e",ti:"-7;-5N-5'-4R-/!-.n-*;-%H-$y-$3~w~rw?smsPnmnYnVl2foeCe6bnbjb#b!aU^)ZHY*X]XGU>OaONL$JxJCCQB]=0;T8O*5)A'r",zhan:"-7:-4>-2y-*s-!IrQnamRl>l)kCkBk.j|d+b0^M^?^5W|SJSGS0RsMjLiL-&t-%H-$j{szSmDl/kIi3c}cPa`^IZbX:QwP!M2HsGUBcAK?I0*/}/n'_&#%q%j%i",gou:"-71-3p-0y-+z-)H-'p-%W|C{uwdwcuTs0mnfM[CX%VcN6M^Gm?q:925.C*o%2",kou:"-71-0f-.C-,g-)J-)DpCp8fId3]^[|VpTV9@",ning:"-70-6>-4a-29-0.-'H-!)r%q!p2p)p'p!ot[4UMM5F/E5?17J6k.<+a&i",yong:"-7*-5t-3M-,U-,T-'T-$t-$+-!:{Oz!yCxcrlkUg{gAe{ceb{bzapaC`w`n`:[6XTU}M4LaGQ@}>x=9:p947:5T/{/i&p&l%)#S#8",wa:"-7)-/n-,e-(/-'P-'&-&x-%h-%A-#y-#nu5tbt3sGnCije[ZaWUTq>.:;8h'V'D'>&A",ka:"-7&-*r-'O-'M-'4-$u{g",bao:"-7%-5h-21-/>-.e-.]-,!-+{-+s~ozPzOz@sBqBpcpMp$ohoee&d:[w[kPPP1P&M]614J2<0_.u.h*G",huai:"-7#-',|mx^xIe_dC_:^oGhDX<25z",ming:"-6x-0g-06-(|-'guEs&`aXxR@PhOFH<>0:7,8",hen:"-6s-&p-!3eac6[0.:$y",quan:"-6p-1H-/.-.#-,5-,#-%%}X}Q{4w5u:t;q[m?jRf`c0b_b%['Y`WKNxJ:I[H_GLFjD>?F>F:a5841/I/H/7.o.n.m.O)2&I%'",tiao:"-6o-%Xr#pWmjmWh4cRZfSQRdQjOLO'NYK.Fo",xing:"-6j-5.-1<-/U-&g|0{auft{t5qljAh`f*cxb>aZUYR/P4Nl>ZG<9;H9<8o6o6l5n5G1z0B,a+T'h",an:"-6W-5J-4<-2D-*P-*J-')-%e-$x{b{&z_sYpwn@n8mXm:hXg~ZnXNQ.PnL'L&A1>M.g*w$V",lu:"-6V-33-1C-.H-,N-,<-*q-*o-!N~q~_};|G|5yVyUxMtVmChGgZgFf9f8^7XzW)V)UzUAU/O{MpLeJ#G&FyEuDvDaARAM>sb._,A$C",jiong:"-69-3'-1.-1$-0}}z|K{;]~]}?M=J7e4t4I3c2T2S1W1.",tui:"-6.-6(-3&y'tmo$ftfodrY(F>24",nan:"-6+-*|-$r~'~#v=tzstrb^e[sXfPqN*M6H}:d29&a&?",xiao:"-6*-5v-5R-3a-.x-,d-'j-'1-&l-&P-$}-$1-#D-#?-#&-!|-!v~c~J~CuUtHqGpPpJoKlGh/fFcJ_iX;V:TPT/SoSnQVQ'P;MiMaLOK+DOCYCLBAB4>B===8M=5;9*7)`$V$O!r",guang:"-5~-2}-1h-'@{~uIhXhTgOZsVKL+>28)5/4b4_4^3s.d+Y*U",ku:"-5}-/3-&Q-$6~R}PzrhDh+gN]dZiZ5OPMgL!I%3N.>$9",jun:"-5{-2T-0q-(n-(G|u{NuHollq_;Z3U5TzQPKMJH@F=l6V3G1B*1&'!Q!K!J",zu:"-5w-5?-+1-+$-&S-%rlYlAd(S#M1Ix0'*e",hun:"-5s-4o}_t9t'o9dMaz`oYDR?Q~JYJRBf=u>=4:&9z828&+F*L(F&r",lia:"-5[-5>",pai:"-5Q-&sg9eP[NY?JU?p>+;j;8/t.w,q",biao:"-5O-36-2/yJtIryi%f!VfNhLjFzEG<.9C66511o0c,k#|",fei:"-5M-.m-+M-*4-(i-%8w%vZt@t?nXh8gpgPbH]xSdQxQ%P:OPNLLxJVH5FOF)Di?Wq>O>N;y8^6F3{/(,T+P*M#y#5!Y",song:"-4q-3I-0D-)'u8pulDk^kOgydYdAb`a3a$`D_MZ#XXW0NK%J`HyEF-#*-!K~Oz%x#s{sXs9s%quqqq_q%kcj[jWhCgDexdha/_AVwV_U0U&R]R.Q:PwO?MHKpK]J{HvHdFbDMDI=_;E:U:K9d9O8K8F6j6i6N6=6&5~5o5j5M5A2w2r2_1x1)0b*:)*(y(S'i'5'%#j#;!B!;",ruan:"-4[zJxQsiVWOUE0):'}",chun:"-4Y-&7sda^RPR(PlOONDIBGrFQE(=T<,:[9N8u/6)C",ruo:"-4S-)[sskPf]Z:YUI8;y3'0^",dang:"-4M-2P-1V-/k-!1}*{fx]swpkl6kdf:aAZUUsTpKiEYD5@|8:7E5D*;(J(6'?%}",huang:"-4@-1L-/w-$PzDz.xtw&s[pEl9jBi0e@clcQa_a#`dXTQgQfPBOEHbH7D{@9:x9i8)4:2c2.1J0X+w)((E#i!}!g!Z",duan:"-4+-.Uz+s`SFS[$XOVUU8U*TwR1Q&PYKrEy6E5K't'k'c",za:"-4$-+Z-'b-'X-'2-$c-!c~B~:~5i}]s[$NyKr?r?a",lou:"-4#-38-.}-$7-#ByMu4tRo{n[kjkEg_`5X)W'HaG#:O9&8~1i'2$5#o#n",sou:"-3z-0J-)Q-)N-#z-#R-#QgsghZ#YvWlW>W0V:U`UBJ/DgCn:#,5#s",yuan:"-3u-1n-1)-0h-.z-*3-*1-)y-(0-&^-$Y-!<}{}t}Z}R}N}M}D{t{_yawlv6v(sSs:s)qhpepH0ErDk@/P>#;L9A8M.|,&&B%y%n%m",bang:"-3n{^ypiNi5h~hme|Z?YrWvS2KEJTJSH@=j/m++",shan:"-3h-3)-2R-/F-/<-.a-.E-*~-$q-$F-#H}'{Gy+y*ulubr2nDj|i(f+]zZ;Y3XuXsWaVhV?UySvQ8NrL|LlIVFSEhCI@`7|7p7O5F4B2Z211~.4*b%U%1",que:"-3f-*_-*W{Pyty$lgbNa+`KX!T8T.JBH$@j4e0|)O#q!N",nuo:"-3Q-1w-$ftxa6_#_!ZLXnWoWbWLK0HJF2Am",can:"-3P-2F-)l-)k-)j-)i-$D-#H~:r(q3amah`W`V`U_[XsVqVhO_BtBg;/784z1!0L(9",lei:"-3O-24-1t-,J-)q-#1|(z0xOx?rrU|U;G'E]DyDxD/?$>I=+JO7F5&2>1#(](7#&#%",cao:"-3L-#GnGk@`v`k`^_DVAUqOgOfG:8x",ao:"-3H-/n-*&-#X-#W|H|4xnxkv}vyvwsDs2rZmxmakAjnga`O_@]I]![DVuUeTBM*K=?>9;7M741m1^0Z,!+~(Y",cou:"-3D-0:Hl;1",chuang:"-3B-/b-/K-/5-.s-.i-.L-$T-!dhvhMd=`|W7O|;z;+:t8(+1*c)o)j)=$R!D",sai:"-2V-#b-#)-!/yod%a2XaAxAb",tai:"-2B-0_-)=}e|Mw[wXwOvzqvqCdodQdB`e[pU]SpR]MeE>@f@D@C>{:=4G4F1$*f",lan:"-2?-1@-)}-%P-!'~3|hx`xXt(qgqaqUmwkwhgb)_8_'^p[5X/UXU(TmSaS_PpLbHXDDD2D1=^9L8i7K6W5`5W5=5<46121%0n0d0I0@0>($'j",meng:"-2;-0k-,Lwaw`qEo2hnh*_._+^qXtUaP)O9K$F;EAANAF:A6h,Z+]'/&X#B!#",qiong:"-28-*fr.pza]`!K}F(3(3%2L1}*))J(G's'f",lie:"-25-0N-/O-,z-,w-,`-'<-&G{D{CuDjaj=djZeZ_YiUEL;JMA{>_=p403f2A1$0a0[.x,h,V+k+[",teng:"-2%i+9]8r1e%6%&",long:"-2#-'J-&]~^|7|6xHxGo2n=k6j_j^g.e([9U.QmOxO8LgKDGYDU>t:g9T9%5w0N*Z'n#f",rang:"-1}-,$~Nx[xC^mU$5b0K+S'X",xiong:"-1m-1j-/q-+v-+p-&zwsdLc?Sy@;>42w2r2#2!",chong:"-1l-0Y-#L{*p`oflelde0dc`+_dXT2NB6[6G5|5u$P",rui:"-1g-1e-1`-)LxFas]0M~KVF.@G)'&t",ke:"-1f-/*-.w-,]-,R-+;-)>-'o-'0-$!|Dzqx4u#p^oUmomIkvknjqc4bra6U4U0!/N//*j%>$O",tu:"-1c-1]-0H-/o-(y-&3-%?}n}c}J}I}A}?zezZyvxipvnUlskikFh.gVeVc}bsZ.YYX@W2K?EL@R=C=::r7u(i$r$>",nei:"-1I-1*-&TtvA(=w::8Q7V631r1[*a)~)%(v(?&S&>&%%r$(#d",shou:"-13-)`-)V-%l-!o{ox)x&pxo[]v]uYITcTN,",mei:"-0I~j|vz>yRv#sks]sTs4r

-+b-+(-(_-(.-&h-#%{@wGuWs}s|rJrDlaWTV}V+NAMvKfIgGKFX9a7c,7&]&+%~",bie:"-/A-/;fGe2`#M'M!$!#I",pao:"-/>-+i-'^~o|2w=hA]$[P?.4J4H3d06.M'^%A!S",geng:"-/7-&A{TzHlrh=ZIOlK4IX=X2p&M",shua:"-//-%j",cuo:"-.y-.p-*5wukWkSh!ZKY&WuV4(o$j$'",kei:"-.woU",la:"-.v-%3-$n~L|8[RXFXEWnUEU2R`MOI6DT:T0['o$A",pou:"-.l-'_-&[{]twtO]+]&Z+YGJS/<",tuan:"-.I~!}~}K}HyPy&f7`>[}XIVmGLE;;.:m8t2[,F%v%p",zuan:"-.)XOTt",keng:"-,x-([|t|kvIZCXlVgBF/C",gao:"-,Z-(I-(>wRlpWjNHGxGwGdG>E~E3Dm,)!y!t",lang:"-,V-&J-$~{Jy[r{llgiSeOIOHO;KRHHG4Cp=[3Y,z*%(s",weng:"-,@-#oyxv{kfU!Pd9o'N'&",tao:"-+m-)E-'+-%DwPwMw*r}i/fl`j[oYBWXL,JkGtE?><=)'v",cen:"-)l-)k-)j-)i{Un#kH@?=1",shuang:"-)byOqeq^`NDB>t8R5w5^0&",po:"-)8-&M-#6~]|ZvztMoZmlmZg9W]TXR+O*E%?E>q>o>D;*:J8;6F3v,9*l!`",a:"-(s-'o-%O-$0",tun:"-(k-(7-%L-!`}}|snFhNdP_mRQPFOC@x=335",hang:"-([{dwSvIj)dGS8NML/@.",shun:"-(ZHnF?",ne:"-(R-(8-(%-&T]0%a",chuo:"-(Q-&@-%=~Hu!t~t.ssqVa|^2Z}UuCClMi@i$fDf@b1`Y_4XyW6TMMzJ$I:GOD{=#gKfVfSfC^P^N^>[zWQW!VySKMlIvGkFdEJ:)8{4[1s/|/z,f,.*{(p%m",pen:"-('-$E-$=-!6CN;'6}'Q!=",pin:"-&~~Yuatnrvq{[AZ{H]@_/c+!)r",ha:"-&wvz",yo:"-&`-%c-$B",o:"-&X-$a-!H-!%",n:"-&)-#a",huan:"-%v-$Z-$Y~G}D{_zWw@w2r.q[pYp0okm8l!h]bVaH_I^iYpXQUnU1KyK2GBD%CPCB>1=c<~;c8V7D734/3>2I.[.;,3+R*})9(1'b$d$:",ken:"-%V{qxjc*_CX~*I",chuai:"-%=XIW}Ch",pa:"-%/vLisihd.]oX|NC@r8608)P#!",se:"-%,-$,yogK_WY%X`W~J/J.Hl",nv:"vkc7OM@!",nuan:"vcPo;`:m2X2W",shuo:"v]a'WhT'S|OKGnCn>>470W+p",niu:"v?q=dKd0]S]![DN?@8@!4u/e/d.W",rao:"u2rA]PU?KkFJ",niang:"t|r&qb",shui:"t]iTZMYuA$A#@{=.=*",nve:"t)%S$%",nen:"sirarYc^",niao:"s!r+qsnwFq9x",kuan:"pBp#ooK)CoCfCd",cuan:"jPV'U*T~TwDtD7BU@o6E5K1S0<",te:"dsdr`R/F/9",zen:"d5VU",zei:"^H",den:"][]C",zhua:"],ZYV#ER0:09",shuan:"[&L^GL{let t=0,n=1;for(let a=e.length;a--;)t+=n*da.indexOf(e.charAt(a)),n*=91;return t},Wt=(e,t)=>{let n,a,s,i,w;for(n in e)if(e.hasOwnProperty(n))for(a=e[n].match(ga),s=0;s(zn("data-v-c7e0b9b7"),e=e(),xn(),e),ya={key:0},$a={class:"container"},wa={class:"action-bar"},_a=["title"],ba=["title"],ka=["title"],Oa=["src"],za={key:0,class:"icon",style:{cursor:"pointer"}},xa={key:2,"flex-placeholder":""},Ca={key:3,class:"action-bar"},Ta={key:0,class:"gen-info"},Ma={class:"info-tags"},La={class:"info-tag"},Sa={class:"name"},Ea=["title"],Aa={class:"name"},Fa=["title","onDblclick"],Ia={key:0,class:"tags-container"},Pa={style:{display:"inline-block",width:"32px"}},Da=["onClick"],ja=["onClick"],Wa={class:"lr-layout-control"},Ua={class:"ctrl-item"},qa={class:"ctrl-item"},Va={class:"ctrl-item"},Na=re(()=>k("br",null,null,-1)),Ba=re(()=>k("h3",null,"Prompt",-1)),Ha=["innerHTML"],Ja=re(()=>k("br",null,null,-1)),Xa=re(()=>k("h3",null,"Negative Prompt",-1)),Ya=["innerHTML"],Za=re(()=>k("br",null,null,-1)),Ga=re(()=>k("h3",null,"Params",-1)),Ka={style:{"font-weight":"600","text-transform":"capitalize"}},Qa=["onDblclick"],Ra=["onDblclick"],eo=re(()=>k("br",null,null,-1)),to=re(()=>k("h3",null,"Extra Meta Info",-1)),no={class:"extra-meta-table"},ao={style:{"font-weight":"600","text-transform":"capitalize"}},oo=["onDblclick"],lo={class:"extra-meta-value"},so=["title"],io=Pt({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e;gn(o=>({b7cd59ce:c($)?0:"46px","0e09e1cc":c(y)+"px","62228ae0":`calc(100vw - ${c(y)}px)`}));const a=nt(),s=pn(),i=ie(),w=ee(()=>s.tagMap.get(n.file.fullpath)??[]),M=ie(""),A=tt(),I=ie(""),V=ee(()=>I.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")),W=ee(()=>V.value.split(` +`)),L=ee(()=>We(V.value)),P=ee(()=>{let o=We(V.value);return delete o.prompt,delete o.negativePrompt,delete o.extraJsonMetaInfo,o}),S=ee(()=>We(I.value).extraJsonMetaInfo);ye(()=>{var o;return(o=n==null?void 0:n.file)==null?void 0:o.fullpath},async o=>{o&&(A.tasks.forEach(r=>r.cancel()),A.pushAction(()=>Ke(o)).res.then(r=>{I.value=r}))},{immediate:!0});const p=ke("iib@fullScreenContextMenu.prompt-tab","structedData"),f=ie(),E=ie(),te={left:100,top:100,width:512,height:384,expanded:!0},m=ke("fullScreenContextMenu.vue-drag",te);m.value&&(m.value.left<0||m.value.top<0)&&(m.value={...te});const{isLeftRightLayout:l,lrLayoutInfoPanelWidth:y,lrMenuAlwaysOn:$}=ua(),F=l;ia(i,f,E,{disbaled:F,...m.value,onDrag:Ae(function(o,r){m.value={...m.value,left:o,top:r}},300),onResize:Ae(function(o,r){m.value={...m.value,width:o,height:r}},300)});const J=ie(!1),{isOutside:U}=Ft(ee(()=>!F.value||$.value?null:J.value?i.value:Ze(document.querySelectorAll(".iib-tab-edge-trigger"))));ye(U,hn(o=>{J.value=!o},300));function G(o){return o.parentNode}function K(o){let r=0;for(const X of o)/[\u4e00-\u9fa5]/.test(X)?r+=3:r+=1;return r}function ce(o){if(o.length===0)return!1;let r=0;for(const j of o){const O=K(j);if(r+=O,O>50)return!1}return!(r/o.length>30)}function ne(o){if(!o)return"";const r="BREAK",X=o.replace(/>\s/g,"> ,").replace(/\sBREAK\s/g,","+r+",").split(/[\n,]+/).map(C=>C.trim()).filter(C=>C);if(!ce(X))return o.split(` +`).map(C=>C.trim()).filter(C=>C).map(C=>`

${C}

`).join("");const j=[];let O=!1;for(let C=0;CBREAK
');continue}const Y=X[C];O||(O=Y.includes("("));const le=["tag"];O&&le.push("has-parentheses"),Y.length<32&&le.push("short-tag"),j.push(`${Y}`),O&&(O=!Y.includes(")"))}return j.join(a.showCommaInInfoPanel?",":" ")}$e("load",o=>{const r=o.target;r.className==="ant-image-preview-img"&&(M.value=`${r.naturalWidth} x ${r.naturalHeight}`)},{capture:!0});const ze=ee(()=>{const o=[{name:x("fileSize"),val:n.file.size}];return M.value&&o.push({name:x("resolution"),val:M.value}),o}),d=()=>{const o="Negative prompt:",r=I.value.includes(o)?I.value.split(o)[0]:W.value[0]??"";pe(Ve(r.trim()))},_=()=>document.body.requestFullscreen(),q=o=>{pe(typeof o=="object"?JSON.stringify(o,null,4):o)},D=o=>{o.key.startsWith("Arrow")?(o.stopPropagation(),o.preventDefault(),document.dispatchEvent(new KeyboardEvent("keydown",o))):o.key==="Escape"&&document.fullscreenElement&&document.exitFullscreen()};$e("dblclick",o=>{var r;((r=o.target)==null?void 0:r.className)==="ant-image-preview-img"&&Oe()});const he=ee(()=>F.value||m.value.expanded),_e=ke(Qe+"contextShowFullPath",!1),Pe=ee(()=>_e.value?n.file.fullpath:n.file.name),xe=ke(Qe+"tagA2ZClassify",!1),Ut=ee(()=>{var X;const o=(X=a.conf)==null?void 0:X.all_custom_tags.map(j=>{var C,Y;return{char:((C=j.display_name)==null?void 0:C[0])||((Y=j.name)==null?void 0:Y[0]),...j}}).reduce((j,O)=>{var Y;let C="#";if(/[a-z]/i.test(O.char))C=O.char.toUpperCase();else if(/[\u4e00-\u9fa5]/.test(O.char))try{C=((Y=/^\[?(\w)/.exec(va(O.char)+""))==null?void 0:Y[1])??"#"}catch(le){console.log("err",le)}return C=C.toUpperCase(),j[C]||(j[C]=[]),j[C].push(O),j},{});return Object.entries(o??{}).sort((j,O)=>j[0].charCodeAt(0)-O[0].charCodeAt(0))}),De=()=>{Oe(),t("contextMenuClick",{key:"tiktokView"},n.file,n.idx)},je=ie(!1),qt=async()=>{var o,r;if(!L.value.prompt){Q.warning(x("aiAnalyzeTagsNoPrompt"));return}if(!((r=(o=a.conf)==null?void 0:o.all_custom_tags)!=null&&r.length)){Q.warning(x("aiAnalyzeTagsNoCustomTags"));return}je.value=!0;try{const X=L.value.prompt,O=`You are a professional AI assistant responsible for analyzing Stable Diffusion prompts and categorizing them into appropriate tags. Your task is: 1. Analyze the given prompt @@ -15,4 +15,4 @@ Your task is: Available tags: ${a.conf.all_custom_tags.map(N=>N.name).join(", ")} -Please return only tag names, do not include any other content.`,Y=(await vn({messages:[{role:"system",content:O},{role:"user",content:`Please analyze this prompt and return matching tags: ${X}`}],temperature:.3,max_tokens:200})).choices[0].message.content.trim();if(!Y){Q.info(x("aiAnalyzeTagsNoMatchedTags"));return}const le=Y.split(",").map(N=>N.trim()).filter(N=>N),Ce=a.conf.all_custom_tags.filter(N=>le.some(me=>N.name.toLowerCase()===me.toLowerCase()||N.name.toLowerCase().includes(me.toLowerCase())||me.toLowerCase().includes(N.name.toLowerCase()))),Me=new Set(w.value.map(N=>N.id)),fe=Ce.filter(N=>!Me.has(N.id));if(fe.length===0){Ce.length>0?Q.info(x("aiAnalyzeTagsAllTagsAlreadyAdded")):Q.info(x("aiAnalyzeTagsNoValidTags"));return}for(const N of fe)t("contextMenuClick",{key:`toggle-tag-${N.id}`},n.file,n.idx);Q.success(x("aiAnalyzeTagsSuccess",[fe.length.toString(),fe.map(N=>N.name).join(", ")]))}catch(X){console.error("AI分析标签失败:",X),Q.error(x("aiAnalyzeTagsFailed"))}finally{je.value=!1}};return(o,r)=>{var ct,dt,gt;const X=Fn,j=ve,O=yn,C=$n,Y=wn,le=_n,Ce=ve,Me=An,fe=En,N=bn,me=kn,Vt=On;return h(),z("div",{ref_key:"el",ref:i,class:qe(["full-screen-menu",{"unset-size":!c(m).expanded,lr:c(F),"always-on":c($),"mouse-in":J.value}]),onWheelCapture:r[13]||(r[13]=yt(()=>{},["stop"])),onKeydownCapture:P},[c(F)?(h(),z("div",ya)):H("",!0),k("div",$a,[k("div",wa,[c(F)?H("",!0):(h(),z("div",{key:0,ref_key:"dragHandle",ref:E,class:"icon",style:{cursor:"grab"},title:c(x)("dragToMovePanel")},[u(c(Jn))],8,_a)),c(F)?H("",!0):(h(),z("div",{key:1,class:"icon",style:{cursor:"pointer"},onClick:r[0]||(r[0]=g=>c(m).expanded=!c(m).expanded),title:c(x)("clickToToggleMaximizeMinimize")},[he.value?(h(),se(c(fn),{key:0})):(h(),se(c(mn),{key:1}))],8,ba)),k("div",{style:{display:"flex","flex-direction":"column","align-items":"center",cursor:"grab"},class:"icon",title:c(x)("fullscreenview"),onClick:_},[k("img",{src:c(aa),style:{width:"21px",height:"21px","padding-bottom":"2px"},alt:""},null,8,Oa)],8,ka),u(X,{"get-popup-container":G},{overlay:b(()=>[u(Tn,{file:o.file,idx:o.idx,"selected-tag":w.value,onContextMenuClick:r[1]||(r[1]=(g,B,oe)=>t("contextMenuClick",g,B,oe))},null,8,["file","idx","selected-tag"])]),default:b(()=>[c(m).expanded?H("",!0):(h(),z("div",za,[u(c(vt))]))]),_:1}),he.value?(h(),z("div",xa)):H("",!0),he.value?(h(),z("div",Ca,[u(X,{trigger:["hover"],"get-popup-container":G},{overlay:b(()=>[u(le,{onClick:r[2]||(r[2]=g=>t("contextMenuClick",g,o.file,o.idx))},{default:b(()=>{var g;return[((g=c(a).conf)==null?void 0:g.launch_mode)!=="server"?(h(),z(R,{key:0},[u(O,{key:"send2txt2img"},{default:b(()=>[M(v(o.$t("sendToTxt2img")),1)]),_:1}),u(O,{key:"send2img2img"},{default:b(()=>[M(v(o.$t("sendToImg2img")),1)]),_:1}),u(O,{key:"send2inpaint"},{default:b(()=>[M(v(o.$t("sendToInpaint")),1)]),_:1}),u(O,{key:"send2extras"},{default:b(()=>[M(v(o.$t("sendToExtraFeatures")),1)]),_:1}),u(C,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:b(()=>[u(O,{key:"send2controlnet-txt2img"},{default:b(()=>[M("ControlNet - "+v(o.$t("t2i")),1)]),_:1}),u(O,{key:"send2controlnet-img2img"},{default:b(()=>[M("ControlNet - "+v(o.$t("i2i")),1)]),_:1}),u(O,{key:"send2outpaint"},{default:b(()=>[M("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):H("",!0),u(O,{key:"send2BatchDownload"},{default:b(()=>[M(v(o.$t("sendToBatchDownload")),1)]),_:1}),u(C,{key:"copy2target",title:o.$t("copyTo")},{default:b(()=>[(h(!0),z(R,null,ue(c(a).quickMovePaths,B=>(h(),se(O,{key:`copy-to-${B.dir}`},{default:b(()=>[M(v(B.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),u(C,{key:"move2target",title:o.$t("moveTo")},{default:b(()=>[(h(!0),z(R,null,ue(c(a).quickMovePaths,B=>(h(),se(O,{key:`move-to-${B.dir}`},{default:b(()=>[M(v(B.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),u(Y),u(O,{key:"deleteFiles"},{default:b(()=>[M(v(o.$t("deleteSelected")),1)]),_:1}),u(O,{key:"previewInNewWindow"},{default:b(()=>[M(v(o.$t("previewInNewWindow")),1)]),_:1}),u(O,{key:"copyPreviewUrl"},{default:b(()=>[M(v(o.$t("copySourceFilePreviewLink")),1)]),_:1}),u(O,{key:"copyFilePath"},{default:b(()=>[M(v(o.$t("copyFilePath")),1)]),_:1}),u(Y),u(O,{key:"tiktokView",onClick:Pe},{default:b(()=>[M(v(o.$t("tiktokView")),1)]),_:1})]}),_:1})]),default:b(()=>[u(j,null,{default:b(()=>[M(v(c(x)("openContextMenu")),1)]),_:1})]),_:1}),u(Ce,{onClick:r[3]||(r[3]=g=>t("contextMenuClick",{key:"download"},n.file,n.idx))},{default:b(()=>[M(v(o.$t("download")),1)]),_:1}),I.value?(h(),se(j,{key:0,onClick:r[4]||(r[4]=g=>c(pe)(I.value))},{default:b(()=>[M(v(o.$t("copyPrompt")),1)]),_:1})):H("",!0),I.value?(h(),se(j,{key:1,onClick:d},{default:b(()=>[M(v(o.$t("copyPositivePrompt")),1)]),_:1})):H("",!0),I.value&&((dt=(ct=c(a).conf)==null?void 0:ct.all_custom_tags)!=null&&dt.length)?(h(),se(j,{key:2,onClick:qt,type:"primary",loading:je.value},{default:b(()=>[M(v(o.$t("aiAnalyzeTags")),1)]),_:1},8,["loading"])):H("",!0),u(j,{onClick:Pe,onTouchstart:yt(Pe,["prevent"]),type:"default"},{default:b(()=>[M(v(o.$t("tiktokView")),1)]),_:1},8,["onTouchstart"])])):H("",!0)]),he.value?(h(),z("div",Ma,[k("div",Ta,[k("span",La,[k("span",Sa,v(o.$t("fileName")),1),k("span",{class:"value",title:De.value,onDblclick:r[5]||(r[5]=g=>c(pe)(De.value))},v(De.value),41,Ea),k("span",{style:{margin:"0 8px",cursor:"pointer"},title:"Click to expand full path",onClick:r[6]||(r[6]=g=>_e.value=!c(_e))},[u(c(vt))])]),(h(!0),z(R,null,ue(ze.value,g=>(h(),z("span",{class:"info-tag",key:g.name},[k("span",Aa,v(g.name),1),k("span",{class:"value",title:g.val,onDblclick:B=>c(pe)(g.val)},v(g.val),41,Fa)]))),128))]),(gt=c(a).conf)!=null&>.all_custom_tags?(h(),z("div",Ia,[k("div",{class:"sort-tag-switch",onClick:r[7]||(r[7]=g=>xe.value=!c(xe))},[c(xe)?(h(),se(c(jn),{key:1})):(h(),se(c(na),{key:0}))]),k("div",{class:"tag",onClick:r[8]||(r[8]=(...g)=>c(Ge)&&c(Ge)(...g)),style:Ue({"--tag-color":"var(--zp-luminous)"})},"+ "+v(o.$t("add")),5),c(xe)?(h(!0),z(R,{key:0},ue(Ut.value,([g,B])=>(h(),z("div",{key:g,class:"tag-alpha-item"},[k("h4",Da,v(g)+" : ",1),k("div",null,[(h(!0),z(R,null,ue(B,oe=>(h(),z("div",{class:qe(["tag",{selected:w.value.some(pt=>pt.id===oe.id)}]),onClick:pt=>t("contextMenuClick",{key:`toggle-tag-${oe.id}`},o.file,o.idx),key:oe.id,style:Ue({"--tag-color":c(s).getColor(oe)})},v(oe.name),15,Pa))),128))])]))),128)):(h(!0),z(R,{key:1},ue(c(a).conf.all_custom_tags,g=>(h(),z("div",{class:qe(["tag",{selected:w.value.some(B=>B.id===g.id)}]),onClick:B=>t("contextMenuClick",{key:`toggle-tag-${g.id}`},o.file,o.idx),key:g.id,style:Ue({"--tag-color":c(s).getColor(g)})},v(g.name),15,ja))),128))])):H("",!0),k("div",Wa,[k("div",Ua,[M(v(o.$t("experimentalLRLayout"))+": ",1),u(Me,{checked:c(F),"onUpdate:checked":r[9]||(r[9]=g=>Le(F)?F.value=g:null),size:"small"},null,8,["checked"])]),c(F)?(h(),z(R,{key:0},[k("div",qa,[M(v(o.$t("width"))+": ",1),u(fe,{value:c(y),"onUpdate:value":r[10]||(r[10]=g=>Le(y)?y.value=g:null),style:{width:"64px"},step:16,min:128,max:1024},null,8,["value"])]),u(N,{title:o.$t("alwaysOnTooltipInfo")},{default:b(()=>[k("div",Va,[M(v(o.$t("alwaysOn"))+": ",1),u(Me,{checked:c($),"onUpdate:checked":r[11]||(r[11]=g=>Le($)?$.value=g:null),size:"small"},null,8,["checked"])])]),_:1},8,["title"])],64)):H("",!0)]),u(Vt,{activeKey:c(p),"onUpdate:activeKey":r[12]||(r[12]=g=>Le(p)?p.value=g:null)},{default:b(()=>[u(me,{key:"structedData",tab:o.$t("structuredData")},{default:b(()=>[k("div",null,[L.value.prompt?(h(),z(R,{key:0},[Na,Ba,k("code",{innerHTML:ne(L.value.prompt??"")},null,8,Ha)],64)):H("",!0),L.value.negativePrompt?(h(),z(R,{key:1},[Ja,Xa,k("code",{innerHTML:ne(L.value.negativePrompt??"")},null,8,Ya)],64)):H("",!0)]),Object.keys(D.value).length?(h(),z(R,{key:0},[Za,Ga,k("table",null,[(h(!0),z(R,null,ue(D.value,(g,B)=>(h(),z("tr",{key:B,class:"gen-info-frag"},[k("td",Ka,v(B),1),typeof g=="object"?(h(),z("td",{key:0,style:{cursor:"pointer"},onDblclick:oe=>q(g)},[k("code",null,v(g),1)],40,Qa)):(h(),z("td",{key:1,style:{cursor:"pointer"},onDblclick:oe=>q(c(Ve)(g))},v(c(Ve)(g)),41,Ra))]))),128))])],64)):H("",!0),S.value&&Object.keys(S.value).length?(h(),z(R,{key:1},[eo,to,k("table",no,[(h(!0),z(R,null,ue(S.value,(g,B)=>(h(),z("tr",{key:B,class:"gen-info-frag"},[k("td",ao,v(B),1),k("td",{style:{cursor:"pointer"},onDblclick:oe=>q(g)},[k("code",lo,v(typeof g=="string"?g:JSON.stringify(g,null,2)),1)],40,oo)]))),128))])],64)):H("",!0)]),_:1},8,["tab"]),u(me,{key:"sourceText",tab:o.$t("sourceText")},{default:b(()=>[k("code",null,v(I.value),1)]),_:1},8,["tab"])]),_:1},8,["activeKey"])])):H("",!0)]),c(m).expanded&&!c(F)?(h(),z("div",{key:1,class:"mouse-sensor",ref_key:"resizeHandle",ref:f,title:c(x)("dragToResizePanel")},[u(c(Vn))],8,so)):H("",!0)],34)}}});const zo=Pt(io,[["__scopeId","data-v-c7e0b9b7"]]),uo={key:0,class:"float-panel"},ro={key:0,class:"select-actions"},co={key:1},go=Dt({__name:"MultiSelectKeep",props:{show:{type:Boolean}},emits:["selectAll","reverseSelect","clearAllSelected"],setup(e,{emit:t}){const n=nt(),a=()=>{t("clearAllSelected"),n.keepMultiSelect=!1},s=()=>{n.keepMultiSelect=!0};return(i,w)=>{const T=ve;return i.show?(h(),z("div",uo,[c(n).keepMultiSelect?(h(),z("div",ro,[u(T,{size:"small",onClick:w[0]||(w[0]=A=>t("selectAll"))},{default:b(()=>[M(v(i.$t("select-all")),1)]),_:1}),u(T,{size:"small",onClick:w[1]||(w[1]=A=>t("reverseSelect"))},{default:b(()=>[M(v(i.$t("rerverse-select")),1)]),_:1}),u(T,{size:"small",onClick:w[2]||(w[2]=A=>t("clearAllSelected"))},{default:b(()=>[M(v(i.$t("clear-all-selected")),1)]),_:1}),u(T,{size:"small",onClick:a},{default:b(()=>[M(v(i.$t("exit")),1)]),_:1})])):(h(),z("div",co,[u(T,{size:"small",type:"primary",onClick:s},{default:b(()=>[M(v(i.$t("keep-multi-selected")),1)]),_:1})]))])):H("",!0)}}});const xo=Pt(go,[["__scopeId","data-v-b6f9a67c"]]);export{wo as L,xo as M,_o as R,ko as a,Oo as b,bo as c,zo as f,sa as o,$e as u}; +Please return only tag names, do not include any other content.`,Y=(await vn({messages:[{role:"system",content:O},{role:"user",content:`Please analyze this prompt and return matching tags: ${X}`}],temperature:.3,max_tokens:200})).choices[0].message.content.trim();if(!Y){Q.info(x("aiAnalyzeTagsNoMatchedTags"));return}const le=Y.split(",").map(N=>N.trim()).filter(N=>N),Ce=a.conf.all_custom_tags.filter(N=>le.some(me=>N.name.toLowerCase()===me.toLowerCase()||N.name.toLowerCase().includes(me.toLowerCase())||me.toLowerCase().includes(N.name.toLowerCase()))),Te=new Set(w.value.map(N=>N.id)),fe=Ce.filter(N=>!Te.has(N.id));if(fe.length===0){Ce.length>0?Q.info(x("aiAnalyzeTagsAllTagsAlreadyAdded")):Q.info(x("aiAnalyzeTagsNoValidTags"));return}for(const N of fe)t("contextMenuClick",{key:`toggle-tag-${N.id}`},n.file,n.idx);Q.success(x("aiAnalyzeTagsSuccess",[fe.length.toString(),fe.map(N=>N.name).join(", ")]))}catch(X){console.error("AI分析标签失败:",X),Q.error(x("aiAnalyzeTagsFailed"))}finally{je.value=!1}};return(o,r)=>{var ct,dt,gt;const X=Fn,j=ve,O=yn,C=$n,Y=wn,le=_n,Ce=ve,Te=An,fe=En,N=bn,me=kn,Vt=On;return h(),z("div",{ref_key:"el",ref:i,class:qe(["full-screen-menu",{"unset-size":!c(m).expanded,lr:c(F),"always-on":c($),"mouse-in":J.value}]),onWheelCapture:r[13]||(r[13]=yt(()=>{},["stop"])),onKeydownCapture:D},[c(F)?(h(),z("div",ya)):H("",!0),k("div",$a,[k("div",wa,[c(F)?H("",!0):(h(),z("div",{key:0,ref_key:"dragHandle",ref:E,class:"icon",style:{cursor:"grab"},title:c(x)("dragToMovePanel")},[u(c(Jn))],8,_a)),c(F)?H("",!0):(h(),z("div",{key:1,class:"icon",style:{cursor:"pointer"},onClick:r[0]||(r[0]=g=>c(m).expanded=!c(m).expanded),title:c(x)("clickToToggleMaximizeMinimize")},[he.value?(h(),se(c(fn),{key:0})):(h(),se(c(mn),{key:1}))],8,ba)),k("div",{style:{display:"flex","flex-direction":"column","align-items":"center",cursor:"grab"},class:"icon",title:c(x)("fullscreenview"),onClick:_},[k("img",{src:c(aa),style:{width:"21px",height:"21px","padding-bottom":"2px"},alt:""},null,8,Oa)],8,ka),u(X,{"get-popup-container":G},{overlay:b(()=>[u(Mn,{file:o.file,idx:o.idx,"selected-tag":w.value,onContextMenuClick:r[1]||(r[1]=(g,B,oe)=>t("contextMenuClick",g,B,oe))},null,8,["file","idx","selected-tag"])]),default:b(()=>[c(m).expanded?H("",!0):(h(),z("div",za,[u(c(vt))]))]),_:1}),he.value?(h(),z("div",xa)):H("",!0),he.value?(h(),z("div",Ca,[u(X,{trigger:["hover"],"get-popup-container":G},{overlay:b(()=>[u(le,{onClick:r[2]||(r[2]=g=>t("contextMenuClick",g,o.file,o.idx))},{default:b(()=>{var g;return[((g=c(a).conf)==null?void 0:g.launch_mode)!=="server"?(h(),z(R,{key:0},[u(O,{key:"send2txt2img"},{default:b(()=>[T(v(o.$t("sendToTxt2img")),1)]),_:1}),u(O,{key:"send2img2img"},{default:b(()=>[T(v(o.$t("sendToImg2img")),1)]),_:1}),u(O,{key:"send2inpaint"},{default:b(()=>[T(v(o.$t("sendToInpaint")),1)]),_:1}),u(O,{key:"send2extras"},{default:b(()=>[T(v(o.$t("sendToExtraFeatures")),1)]),_:1}),u(C,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:b(()=>[u(O,{key:"send2controlnet-txt2img"},{default:b(()=>[T("ControlNet - "+v(o.$t("t2i")),1)]),_:1}),u(O,{key:"send2controlnet-img2img"},{default:b(()=>[T("ControlNet - "+v(o.$t("i2i")),1)]),_:1}),u(O,{key:"send2outpaint"},{default:b(()=>[T("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):H("",!0),u(O,{key:"send2BatchDownload"},{default:b(()=>[T(v(o.$t("sendToBatchDownload")),1)]),_:1}),u(C,{key:"copy2target",title:o.$t("copyTo")},{default:b(()=>[(h(!0),z(R,null,ue(c(a).quickMovePaths,B=>(h(),se(O,{key:`copy-to-${B.dir}`},{default:b(()=>[T(v(B.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),u(C,{key:"move2target",title:o.$t("moveTo")},{default:b(()=>[(h(!0),z(R,null,ue(c(a).quickMovePaths,B=>(h(),se(O,{key:`move-to-${B.dir}`},{default:b(()=>[T(v(B.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),u(Y),u(O,{key:"deleteFiles"},{default:b(()=>[T(v(o.$t("deleteSelected")),1)]),_:1}),u(O,{key:"previewInNewWindow"},{default:b(()=>[T(v(o.$t("previewInNewWindow")),1)]),_:1}),u(O,{key:"copyPreviewUrl"},{default:b(()=>[T(v(o.$t("copySourceFilePreviewLink")),1)]),_:1}),u(O,{key:"copyFilePath"},{default:b(()=>[T(v(o.$t("copyFilePath")),1)]),_:1}),u(Y),u(O,{key:"tiktokView",onClick:De},{default:b(()=>[T(v(o.$t("tiktokView")),1)]),_:1})]}),_:1})]),default:b(()=>[u(j,null,{default:b(()=>[T(v(c(x)("openContextMenu")),1)]),_:1})]),_:1}),u(Ce,{onClick:r[3]||(r[3]=g=>t("contextMenuClick",{key:"download"},n.file,n.idx))},{default:b(()=>[T(v(o.$t("download")),1)]),_:1}),I.value?(h(),se(j,{key:0,onClick:r[4]||(r[4]=g=>c(pe)(I.value))},{default:b(()=>[T(v(o.$t("copyPrompt")),1)]),_:1})):H("",!0),I.value?(h(),se(j,{key:1,onClick:d},{default:b(()=>[T(v(o.$t("copyPositivePrompt")),1)]),_:1})):H("",!0),I.value&&((dt=(ct=c(a).conf)==null?void 0:ct.all_custom_tags)!=null&&dt.length)?(h(),se(j,{key:2,onClick:qt,type:"primary",loading:je.value},{default:b(()=>[T(v(o.$t("aiAnalyzeTags")),1)]),_:1},8,["loading"])):H("",!0),u(j,{onClick:De,onTouchstart:yt(De,["prevent"]),type:"default"},{default:b(()=>[T(v(o.$t("tiktokView")),1)]),_:1},8,["onTouchstart"])])):H("",!0)]),he.value?(h(),z("div",Ta,[k("div",Ma,[k("span",La,[k("span",Sa,v(o.$t("fileName")),1),k("span",{class:"value",title:Pe.value,onDblclick:r[5]||(r[5]=g=>c(pe)(Pe.value))},v(Pe.value),41,Ea),k("span",{style:{margin:"0 8px",cursor:"pointer"},title:"Click to expand full path",onClick:r[6]||(r[6]=g=>_e.value=!c(_e))},[u(c(vt))])]),(h(!0),z(R,null,ue(ze.value,g=>(h(),z("span",{class:"info-tag",key:g.name},[k("span",Aa,v(g.name),1),k("span",{class:"value",title:g.val,onDblclick:B=>c(pe)(g.val)},v(g.val),41,Fa)]))),128))]),(gt=c(a).conf)!=null&>.all_custom_tags?(h(),z("div",Ia,[k("div",{class:"sort-tag-switch",onClick:r[7]||(r[7]=g=>xe.value=!c(xe))},[c(xe)?(h(),se(c(jn),{key:1})):(h(),se(c(na),{key:0}))]),k("div",{class:"tag",onClick:r[8]||(r[8]=(...g)=>c(Ge)&&c(Ge)(...g)),style:Ue({"--tag-color":"var(--zp-luminous)"})},"+ "+v(o.$t("add")),5),c(xe)?(h(!0),z(R,{key:0},ue(Ut.value,([g,B])=>(h(),z("div",{key:g,class:"tag-alpha-item"},[k("h4",Pa,v(g)+" : ",1),k("div",null,[(h(!0),z(R,null,ue(B,oe=>(h(),z("div",{class:qe(["tag",{selected:w.value.some(pt=>pt.id===oe.id)}]),onClick:pt=>t("contextMenuClick",{key:`toggle-tag-${oe.id}`},o.file,o.idx),key:oe.id,style:Ue({"--tag-color":c(s).getColor(oe)})},v(oe.name),15,Da))),128))])]))),128)):(h(!0),z(R,{key:1},ue(c(a).conf.all_custom_tags,g=>(h(),z("div",{class:qe(["tag",{selected:w.value.some(B=>B.id===g.id)}]),onClick:B=>t("contextMenuClick",{key:`toggle-tag-${g.id}`},o.file,o.idx),key:g.id,style:Ue({"--tag-color":c(s).getColor(g)})},v(g.name),15,ja))),128))])):H("",!0),k("div",Wa,[k("div",Ua,[T(v(o.$t("experimentalLRLayout"))+": ",1),u(Te,{checked:c(F),"onUpdate:checked":r[9]||(r[9]=g=>Le(F)?F.value=g:null),size:"small"},null,8,["checked"])]),c(F)?(h(),z(R,{key:0},[k("div",qa,[T(v(o.$t("width"))+": ",1),u(fe,{value:c(y),"onUpdate:value":r[10]||(r[10]=g=>Le(y)?y.value=g:null),style:{width:"64px"},step:16,min:128,max:1024},null,8,["value"])]),u(N,{title:o.$t("alwaysOnTooltipInfo")},{default:b(()=>[k("div",Va,[T(v(o.$t("alwaysOn"))+": ",1),u(Te,{checked:c($),"onUpdate:checked":r[11]||(r[11]=g=>Le($)?$.value=g:null),size:"small"},null,8,["checked"])])]),_:1},8,["title"])],64)):H("",!0)]),u(Vt,{activeKey:c(p),"onUpdate:activeKey":r[12]||(r[12]=g=>Le(p)?p.value=g:null)},{default:b(()=>[u(me,{key:"structedData",tab:o.$t("structuredData")},{default:b(()=>[k("div",null,[L.value.prompt?(h(),z(R,{key:0},[Na,Ba,k("code",{innerHTML:ne(L.value.prompt??"")},null,8,Ha)],64)):H("",!0),L.value.negativePrompt?(h(),z(R,{key:1},[Ja,Xa,k("code",{innerHTML:ne(L.value.negativePrompt??"")},null,8,Ya)],64)):H("",!0)]),Object.keys(P.value).length?(h(),z(R,{key:0},[Za,Ga,k("table",null,[(h(!0),z(R,null,ue(P.value,(g,B)=>(h(),z("tr",{key:B,class:"gen-info-frag"},[k("td",Ka,v(B),1),typeof g=="object"?(h(),z("td",{key:0,style:{cursor:"pointer"},onDblclick:oe=>q(g)},[k("code",null,v(g),1)],40,Qa)):(h(),z("td",{key:1,style:{cursor:"pointer"},onDblclick:oe=>q(c(Ve)(g))},v(c(Ve)(g)),41,Ra))]))),128))])],64)):H("",!0),S.value&&Object.keys(S.value).length?(h(),z(R,{key:1},[eo,to,k("table",no,[(h(!0),z(R,null,ue(S.value,(g,B)=>(h(),z("tr",{key:B,class:"gen-info-frag"},[k("td",ao,v(B),1),k("td",{style:{cursor:"pointer"},onDblclick:oe=>q(g)},[k("code",lo,v(typeof g=="string"?g:JSON.stringify(g,null,2)),1)],40,oo)]))),128))])],64)):H("",!0)]),_:1},8,["tab"]),u(me,{key:"sourceText",tab:o.$t("sourceText")},{default:b(()=>[k("code",null,v(I.value),1)]),_:1},8,["tab"])]),_:1},8,["activeKey"])])):H("",!0)]),c(m).expanded&&!c(F)?(h(),z("div",{key:1,class:"mouse-sensor",ref_key:"resizeHandle",ref:f,title:c(x)("dragToResizePanel")},[u(c(Vn))],8,so)):H("",!0)],34)}}});const zo=Dt(io,[["__scopeId","data-v-c7e0b9b7"]]),uo={key:0,class:"float-panel"},ro={key:0,class:"select-actions"},co={key:1},go=Pt({__name:"MultiSelectKeep",props:{show:{type:Boolean}},emits:["selectAll","reverseSelect","clearAllSelected"],setup(e,{emit:t}){const n=nt(),a=()=>{t("clearAllSelected"),n.keepMultiSelect=!1},s=()=>{n.keepMultiSelect=!0};return(i,w)=>{const M=ve;return i.show?(h(),z("div",uo,[c(n).keepMultiSelect?(h(),z("div",ro,[u(M,{size:"small",onClick:w[0]||(w[0]=A=>t("selectAll"))},{default:b(()=>[T(v(i.$t("select-all")),1)]),_:1}),u(M,{size:"small",onClick:w[1]||(w[1]=A=>t("reverseSelect"))},{default:b(()=>[T(v(i.$t("rerverse-select")),1)]),_:1}),u(M,{size:"small",onClick:w[2]||(w[2]=A=>t("clearAllSelected"))},{default:b(()=>[T(v(i.$t("clear-all-selected")),1)]),_:1}),u(M,{size:"small",onClick:a},{default:b(()=>[T(v(i.$t("exit")),1)]),_:1})])):(h(),z("div",co,[u(M,{size:"small",type:"primary",onClick:s},{default:b(()=>[T(v(i.$t("keep-multi-selected")),1)]),_:1})]))])):H("",!0)}}});const xo=Dt(go,[["__scopeId","data-v-b6f9a67c"]]);export{wo as L,xo as M,_o as R,ko as a,Oo as b,bo as c,zo as f,sa as o,$e as u}; diff --git a/vue/dist/assets/SubstrSearch-549f6935.js b/vue/dist/assets/SubstrSearch-0571f040.js similarity index 93% rename from vue/dist/assets/SubstrSearch-549f6935.js rename to vue/dist/assets/SubstrSearch-0571f040.js index 3381453..56f9d6f 100644 --- a/vue/dist/assets/SubstrSearch-549f6935.js +++ b/vue/dist/assets/SubstrSearch-0571f040.js @@ -1 +1 @@ -import{c as a,A as Fe,d as Ue,c9 as Be,r as w,o as Ee,cd as te,m as He,C as Pe,az as Ge,z as Ke,B as Le,E as ae,ce as je,a1 as qe,U as f,V as U,a3 as t,a4 as e,W as d,X as o,Y as i,a2 as y,$ as k,a5 as B,cp as Ne,ag as O,a6 as le,L as Je,af as We,Z as Qe,T as se,aj as Xe,cq as Ye,ah as Ze,ak as ne,ci as et,ai as tt,aP as at,aQ as lt,cr as st,ck as nt,a0 as it}from"./index-0205daf8.js";import{S as ot}from"./index-af89284c.js";/* empty css */import"./index-859cb083.js";import"./index-b9ffc995.js";import{c as rt,d as dt,F as ut}from"./FileItem-cc53e03a.js";import{M as ct,o as pt,L as ft,R as vt,f as mt}from"./MultiSelectKeep-74181f4c.js";import{c as gt,u as _t}from"./hook-4ff6f457.js";import{f as M,H as ie,_ as ht,a as yt}from"./searchHistory-c9de01d4.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";/* empty css */import"./index-6a8edab1.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./index-e9cc5bd5.js";import"./shortcut-eca2d427.js";import"./Checkbox-951f37ba.js";import"./index-728b29ca.js";import"./useGenInfoDiff-13d2ea38.js";var kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};const wt=kt;function oe(u){for(var c=1;c(at("data-v-2a7f2e56"),u=u(),lt(),u),xt={style:{"padding-right":"16px"}},It=H(()=>d("div",null,null,-1)),$t=["title"],At=["src"],Rt={class:"search-bar"},Ot={class:"form-name"},Mt={class:"search-bar last actions"},Tt={class:"hint"},zt={key:0,style:{margin:"64px 16px 32px",padding:"8px",background:"var(--zp-secondary-variant-background)","border-radius":"16px"}},Vt={style:{margin:"16px 32px 16px"}},Dt={style:{"padding-right":"16px"}},Ft=H(()=>d("div",null,null,-1)),Ut=H(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Bt={key:2,class:"preview-switch"},Et=Ue({__name:"SubstrSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(u){const c=u,g=Be(),p=w(!1),_=w(""),$=w(!1),S=w(c.searchScope??""),C=w(!1),P=w(0),x=w("all"),T=gt(l=>{const s={cursor:l,regexp:p.value?_.value:"",surstr:p.value?"":_.value,path_only:$.value,folder_paths:(S.value??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),media_type:x.value};return st(s)}),{queue:b,images:v,onContextMenuClickU:G,stackViewEl:re,previewIdx:I,previewing:K,onPreviewVisibleChange:de,previewImgMove:L,canPreview:j,itemSize:q,gridItems:ue,showGenInfo:A,imageGenInfo:N,q:ce,multiSelectedIdxs:z,onFileItemClick:pe,scroller:J,showMenuIdx:V,onFileDragStart:fe,onFileDragEnd:ve,cellWidth:me,onScroll:W,saveAllFileAsJson:ge,saveLoadedFileAsJson:_e,props:he,changeIndchecked:ye,seedChangeChecked:ke,getGenDiff:we,getGenDiffWatchDep:be}=_t(T),m=w();Ee(async()=>{m.value=await te(),m.value.img_count&&m.value.expired&&await Q(),c.searchScope&&await R()}),He(()=>c,async l=>{he.value=l},{deep:!0,immediate:!0});const Q=Pe(()=>b.pushAction(async()=>(await nt(),m.value=await te(),g.tagMap.clear(),m.value)).res),X=l=>{_.value=l.substr,S.value=l.folder_paths_str,p.value=l.isRegex,x.value=l.mediaType||"all",C.value=!1,R()},R=async()=>{P.value++,M.value.add({substr:_.value,folder_paths_str:S.value,isRegex:p.value,mediaType:x.value}),await T.reset({refetch:!0}),await Ge(),W(),J.value.scrollToItem(0),v.value.length||Ke.info(Le("fuzzy-search-noResults"))};ae("returnToIIB",async()=>{const l=await b.pushAction(je).res;m.value.expired=l.expired}),ae("searchIndexExpired",()=>m.value&&(m.value.expired=!0));const Se=()=>{p.value=!p.value},Ce=qe(),{onClearAllSelected:xe,onSelectAll:Ie,onReverseSelect:$e}=rt();return(l,s)=>{const r=ht,h=yt,Ae=se,Re=Xe,D=Ye,Oe=Ze,Y=ne,Me=et,F=ne,Te=tt,ze=se,Ve=ot;return f(),U(Qe,null,[a(Ae,{visible:C.value,"onUpdate:visible":s[0]||(s[0]=n=>C.value=n),width:"70vw","mask-closable":"",onOk:s[1]||(s[1]=n=>C.value=!1)},{default:t(()=>[a(ie,{records:e(M),onReuseRecord:X},{default:t(({record:n})=>[d("div",xt,[a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(f(),y(h,{key:0},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("searchScope"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.isRegex),1)]),_:2},1024)]),_:2},1024),n.mediaType?(f(),y(h,{key:1},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("mediaType"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.mediaType),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("time"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.time),1)]),_:2},1024)]),_:2},1024),It])]),_:1},8,["records"])]),_:1},8,["visible"]),d("div",{class:"container",ref_key:"stackViewEl",ref:re},[a(ct,{show:!!e(z).length||e(Ce).keepMultiSelect,onClearAllSelected:e(xe),onSelectAll:e(Ie),onReverseSelect:e($e)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),d("div",{class:"search-bar",onKeydown:s[7]||(s[7]=B(()=>{},["stop"]))},[a(Re,{value:_.value,"onUpdate:value":s[2]||(s[2]=n=>_.value=n),placeholder:l.$t("fuzzy-search-placeholder")+" "+l.$t("regexSearchEnabledHint"),disabled:!e(b).isIdle,onKeydown:Ne(R,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),a(Oe,{value:x.value,"onUpdate:value":s[3]||(s[3]=n=>x.value=n),style:{width:"100px",margin:"0 4px"},disabled:!e(b).isIdle},{default:t(()=>[a(D,{value:"all"},{default:t(()=>[o(i(l.$t("all")),1)]),_:1}),a(D,{value:"image"},{default:t(()=>[o(i(l.$t("image")),1)]),_:1}),a(D,{value:"video"},{default:t(()=>[o(i(l.$t("video")),1)]),_:1})]),_:1},8,["value","disabled"]),d("div",{class:O(["regex-icon",{selected:$.value}]),onKeydown:s[4]||(s[4]=B(()=>{},["stop"])),onClick:s[5]||(s[5]=n=>$.value=!$.value),title:l.$t("pathOnly")},[a(e(St))],42,$t),d("div",{class:O(["regex-icon",{selected:p.value}]),onKeydown:s[6]||(s[6]=B(()=>{},["stop"])),onClick:Se,title:"Use Regular Expression"},[d("img",{src:e(Ct)},null,8,At)],34),m.value&&(m.value.expired||!m.value.img_count)?(f(),y(Y,{key:0,onClick:e(Q),loading:!e(b).isIdle,type:"primary"},{default:t(()=>[o(i(m.value.img_count===0?l.$t("generateIndexHint"):l.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(f(),y(Y,{key:1,type:"primary",onClick:R,loading:!e(b).isIdle||e(T).loading},{default:t(()=>[o(i(l.$t("search")),1)]),_:1},8,["loading"]))],32),d("div",Rt,[d("div",Ot,i(l.$t("searchScope")),1),a(Me,{"auto-size":{maxRows:8},value:S.value,"onUpdate:value":s[8]||(s[8]=n=>S.value=n),placeholder:l.$t("specifiedSearchFolder")},null,8,["value","placeholder"])]),d("div",Mt,[e(v).length?(f(),y(F,{key:0,onClick:e(_e)},{default:t(()=>[o(i(l.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"])):k("",!0),e(v).length?(f(),y(F,{key:1,onClick:e(ge)},{default:t(()=>[o(i(l.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])):k("",!0),a(F,{onClick:s[9]||(s[9]=n=>C.value=!0)},{default:t(()=>[o(i(l.$t("history")),1)]),_:1})]),a(Ve,{size:"large",spinning:!e(b).isIdle},{default:t(()=>[a(ze,{visible:e(A),"onUpdate:visible":s[11]||(s[11]=n=>le(A)?A.value=n:null),width:"70vw","mask-closable":"",onOk:s[12]||(s[12]=n=>A.value=!1)},{cancelText:t(()=>[]),default:t(()=>[a(Te,{active:"",loading:!e(ce).isIdle},{default:t(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:s[10]||(s[10]=n=>e(Je)(e(N)))},[d("div",Tt,i(l.$t("doubleClickToCopy")),1),o(" "+i(e(N)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),P.value===0&&!e(v).length&&e(M).getRecords().length?(f(),U("div",zt,[d("h2",Vt,i(l.$t("restoreFromHistory")),1),a(ie,{records:e(M),onReuseRecord:X},{default:t(({record:n})=>[d("div",Dt,[a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(f(),y(h,{key:0},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("searchScope"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.isRegex),1)]),_:2},1024)]),_:2},1024),n.mediaType?(f(),y(h,{key:1},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("mediaType"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.mediaType),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("time"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.time),1)]),_:2},1024)]),_:2},1024),Ft])]),_:1},8,["records"])])):k("",!0),e(v)?(f(),y(e(dt),{key:1,ref_key:"scroller",ref:J,class:"file-list",items:e(v),"item-size":e(q).first,"key-field":"fullpath","item-secondary-size":e(q).second,gridItems:e(ue),onScroll:e(W)},{after:t(()=>[Ut]),default:t(({item:n,index:Z})=>[a(ut,{idx:Z,file:n,"show-menu-idx":e(V),"onUpdate:showMenuIdx":s[13]||(s[13]=ee=>le(V)?V.value=ee:null),onFileItemClick:e(pe),"full-screen-preview-image-url":e(v)[e(I)]?e(We)(e(v)[e(I)]):"","cell-width":e(me),selected:e(z).includes(Z),onContextMenuClick:e(G),onDragstart:e(fe),onDragend:e(ve),onTiktokView:(ee,De)=>e(pt)(e(v),De),"enable-change-indicator":e(ye),"seed-change-checked":e(ke),"get-gen-diff":e(we),"get-gen-diff-watch-dep":e(be),"is-selected-mutil-files":e(z).length>1,onPreviewVisibleChange:e(de)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","onTiktokView","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","is-selected-mutil-files","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):k("",!0),e(K)?(f(),U("div",Bt,[a(e(ft),{onClick:s[14]||(s[14]=n=>e(L)("prev")),class:O({disable:!e(j)("prev")})},null,8,["class"]),a(e(vt),{onClick:s[15]||(s[15]=n=>e(L)("next")),class:O({disable:!e(j)("next")})},null,8,["class"])])):k("",!0)]),_:1},8,["spinning"]),e(K)&&e(v)&&e(v)[e(I)]?(f(),y(mt,{key:0,file:e(v)[e(I)],idx:e(I),onContextMenuClick:e(G)},null,8,["file","idx","onContextMenuClick"])):k("",!0)],512)],64)}}});const na=it(Et,[["__scopeId","data-v-2a7f2e56"]]);export{na as default}; +import{c as a,A as Fe,d as Ue,c9 as Be,r as w,o as Ee,cd as te,m as He,C as Pe,az as Ge,z as Ke,B as Le,E as ae,ce as je,a1 as qe,U as f,V as U,a3 as t,a4 as e,W as d,X as o,Y as i,a2 as y,$ as k,a5 as B,cp as Ne,ag as O,a6 as le,L as Je,af as We,Z as Qe,T as se,aj as Xe,cq as Ye,ah as Ze,ak as ne,ci as et,ai as tt,aP as at,aQ as lt,cr as st,ck as nt,a0 as it}from"./index-157194fb.js";import{S as ot}from"./index-e33c98d2.js";/* empty css */import"./index-1c4f06bb.js";import"./index-b39f3e91.js";import{c as rt,d as dt,F as ut}from"./FileItem-6ddd7179.js";import{M as ct,o as pt,L as ft,R as vt,f as mt}from"./MultiSelectKeep-f7eadb70.js";import{c as gt,u as _t}from"./hook-47732221.js";import{f as M,H as ie,_ as ht,a as yt}from"./searchHistory-5c5a132b.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js";/* empty css */import"./index-8e3285c7.js";import"./_isIterateeCall-e2252db1.js";import"./index-8929347d.js";import"./index-11d9431b.js";import"./shortcut-f1e6388a.js";import"./Checkbox-431074e2.js";import"./index-89286149.js";import"./useGenInfoDiff-4c9e8f19.js";var kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};const wt=kt;function oe(u){for(var c=1;c(at("data-v-2a7f2e56"),u=u(),lt(),u),xt={style:{"padding-right":"16px"}},It=H(()=>d("div",null,null,-1)),$t=["title"],At=["src"],Rt={class:"search-bar"},Ot={class:"form-name"},Mt={class:"search-bar last actions"},Tt={class:"hint"},zt={key:0,style:{margin:"64px 16px 32px",padding:"8px",background:"var(--zp-secondary-variant-background)","border-radius":"16px"}},Vt={style:{margin:"16px 32px 16px"}},Dt={style:{"padding-right":"16px"}},Ft=H(()=>d("div",null,null,-1)),Ut=H(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Bt={key:2,class:"preview-switch"},Et=Ue({__name:"SubstrSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(u){const c=u,g=Be(),p=w(!1),_=w(""),$=w(!1),S=w(c.searchScope??""),C=w(!1),P=w(0),x=w("all"),T=gt(l=>{const s={cursor:l,regexp:p.value?_.value:"",surstr:p.value?"":_.value,path_only:$.value,folder_paths:(S.value??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),media_type:x.value};return st(s)}),{queue:b,images:v,onContextMenuClickU:G,stackViewEl:re,previewIdx:I,previewing:K,onPreviewVisibleChange:de,previewImgMove:L,canPreview:j,itemSize:q,gridItems:ue,showGenInfo:A,imageGenInfo:N,q:ce,multiSelectedIdxs:z,onFileItemClick:pe,scroller:J,showMenuIdx:V,onFileDragStart:fe,onFileDragEnd:ve,cellWidth:me,onScroll:W,saveAllFileAsJson:ge,saveLoadedFileAsJson:_e,props:he,changeIndchecked:ye,seedChangeChecked:ke,getGenDiff:we,getGenDiffWatchDep:be}=_t(T),m=w();Ee(async()=>{m.value=await te(),m.value.img_count&&m.value.expired&&await Q(),c.searchScope&&await R()}),He(()=>c,async l=>{he.value=l},{deep:!0,immediate:!0});const Q=Pe(()=>b.pushAction(async()=>(await nt(),m.value=await te(),g.tagMap.clear(),m.value)).res),X=l=>{_.value=l.substr,S.value=l.folder_paths_str,p.value=l.isRegex,x.value=l.mediaType||"all",C.value=!1,R()},R=async()=>{P.value++,M.value.add({substr:_.value,folder_paths_str:S.value,isRegex:p.value,mediaType:x.value}),await T.reset({refetch:!0}),await Ge(),W(),J.value.scrollToItem(0),v.value.length||Ke.info(Le("fuzzy-search-noResults"))};ae("returnToIIB",async()=>{const l=await b.pushAction(je).res;m.value.expired=l.expired}),ae("searchIndexExpired",()=>m.value&&(m.value.expired=!0));const Se=()=>{p.value=!p.value},Ce=qe(),{onClearAllSelected:xe,onSelectAll:Ie,onReverseSelect:$e}=rt();return(l,s)=>{const r=ht,h=yt,Ae=se,Re=Xe,D=Ye,Oe=Ze,Y=ne,Me=et,F=ne,Te=tt,ze=se,Ve=ot;return f(),U(Qe,null,[a(Ae,{visible:C.value,"onUpdate:visible":s[0]||(s[0]=n=>C.value=n),width:"70vw","mask-closable":"",onOk:s[1]||(s[1]=n=>C.value=!1)},{default:t(()=>[a(ie,{records:e(M),onReuseRecord:X},{default:t(({record:n})=>[d("div",xt,[a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(f(),y(h,{key:0},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("searchScope"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.isRegex),1)]),_:2},1024)]),_:2},1024),n.mediaType?(f(),y(h,{key:1},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("mediaType"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.mediaType),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("time"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.time),1)]),_:2},1024)]),_:2},1024),It])]),_:1},8,["records"])]),_:1},8,["visible"]),d("div",{class:"container",ref_key:"stackViewEl",ref:re},[a(ct,{show:!!e(z).length||e(Ce).keepMultiSelect,onClearAllSelected:e(xe),onSelectAll:e(Ie),onReverseSelect:e($e)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),d("div",{class:"search-bar",onKeydown:s[7]||(s[7]=B(()=>{},["stop"]))},[a(Re,{value:_.value,"onUpdate:value":s[2]||(s[2]=n=>_.value=n),placeholder:l.$t("fuzzy-search-placeholder")+" "+l.$t("regexSearchEnabledHint"),disabled:!e(b).isIdle,onKeydown:Ne(R,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),a(Oe,{value:x.value,"onUpdate:value":s[3]||(s[3]=n=>x.value=n),style:{width:"100px",margin:"0 4px"},disabled:!e(b).isIdle},{default:t(()=>[a(D,{value:"all"},{default:t(()=>[o(i(l.$t("all")),1)]),_:1}),a(D,{value:"image"},{default:t(()=>[o(i(l.$t("image")),1)]),_:1}),a(D,{value:"video"},{default:t(()=>[o(i(l.$t("video")),1)]),_:1})]),_:1},8,["value","disabled"]),d("div",{class:O(["regex-icon",{selected:$.value}]),onKeydown:s[4]||(s[4]=B(()=>{},["stop"])),onClick:s[5]||(s[5]=n=>$.value=!$.value),title:l.$t("pathOnly")},[a(e(St))],42,$t),d("div",{class:O(["regex-icon",{selected:p.value}]),onKeydown:s[6]||(s[6]=B(()=>{},["stop"])),onClick:Se,title:"Use Regular Expression"},[d("img",{src:e(Ct)},null,8,At)],34),m.value&&(m.value.expired||!m.value.img_count)?(f(),y(Y,{key:0,onClick:e(Q),loading:!e(b).isIdle,type:"primary"},{default:t(()=>[o(i(m.value.img_count===0?l.$t("generateIndexHint"):l.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(f(),y(Y,{key:1,type:"primary",onClick:R,loading:!e(b).isIdle||e(T).loading},{default:t(()=>[o(i(l.$t("search")),1)]),_:1},8,["loading"]))],32),d("div",Rt,[d("div",Ot,i(l.$t("searchScope")),1),a(Me,{"auto-size":{maxRows:8},value:S.value,"onUpdate:value":s[8]||(s[8]=n=>S.value=n),placeholder:l.$t("specifiedSearchFolder")},null,8,["value","placeholder"])]),d("div",Mt,[e(v).length?(f(),y(F,{key:0,onClick:e(_e)},{default:t(()=>[o(i(l.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"])):k("",!0),e(v).length?(f(),y(F,{key:1,onClick:e(ge)},{default:t(()=>[o(i(l.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])):k("",!0),a(F,{onClick:s[9]||(s[9]=n=>C.value=!0)},{default:t(()=>[o(i(l.$t("history")),1)]),_:1})]),a(Ve,{size:"large",spinning:!e(b).isIdle},{default:t(()=>[a(ze,{visible:e(A),"onUpdate:visible":s[11]||(s[11]=n=>le(A)?A.value=n:null),width:"70vw","mask-closable":"",onOk:s[12]||(s[12]=n=>A.value=!1)},{cancelText:t(()=>[]),default:t(()=>[a(Te,{active:"",loading:!e(ce).isIdle},{default:t(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:s[10]||(s[10]=n=>e(Je)(e(N)))},[d("div",Tt,i(l.$t("doubleClickToCopy")),1),o(" "+i(e(N)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),P.value===0&&!e(v).length&&e(M).getRecords().length?(f(),U("div",zt,[d("h2",Vt,i(l.$t("restoreFromHistory")),1),a(ie,{records:e(M),onReuseRecord:X},{default:t(({record:n})=>[d("div",Dt,[a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(f(),y(h,{key:0},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("searchScope"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.isRegex),1)]),_:2},1024)]),_:2},1024),n.mediaType?(f(),y(h,{key:1},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("mediaType"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.mediaType),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("time"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.time),1)]),_:2},1024)]),_:2},1024),Ft])]),_:1},8,["records"])])):k("",!0),e(v)?(f(),y(e(dt),{key:1,ref_key:"scroller",ref:J,class:"file-list",items:e(v),"item-size":e(q).first,"key-field":"fullpath","item-secondary-size":e(q).second,gridItems:e(ue),onScroll:e(W)},{after:t(()=>[Ut]),default:t(({item:n,index:Z})=>[a(ut,{idx:Z,file:n,"show-menu-idx":e(V),"onUpdate:showMenuIdx":s[13]||(s[13]=ee=>le(V)?V.value=ee:null),onFileItemClick:e(pe),"full-screen-preview-image-url":e(v)[e(I)]?e(We)(e(v)[e(I)]):"","cell-width":e(me),selected:e(z).includes(Z),onContextMenuClick:e(G),onDragstart:e(fe),onDragend:e(ve),onTiktokView:(ee,De)=>e(pt)(e(v),De),"enable-change-indicator":e(ye),"seed-change-checked":e(ke),"get-gen-diff":e(we),"get-gen-diff-watch-dep":e(be),"is-selected-mutil-files":e(z).length>1,onPreviewVisibleChange:e(de)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","onTiktokView","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","is-selected-mutil-files","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):k("",!0),e(K)?(f(),U("div",Bt,[a(e(ft),{onClick:s[14]||(s[14]=n=>e(L)("prev")),class:O({disable:!e(j)("prev")})},null,8,["class"]),a(e(vt),{onClick:s[15]||(s[15]=n=>e(L)("next")),class:O({disable:!e(j)("next")})},null,8,["class"])])):k("",!0)]),_:1},8,["spinning"]),e(K)&&e(v)&&e(v)[e(I)]?(f(),y(mt,{key:0,file:e(v)[e(I)],idx:e(I),onContextMenuClick:e(G)},null,8,["file","idx","onContextMenuClick"])):k("",!0)],512)],64)}}});const na=it(Et,[["__scopeId","data-v-2a7f2e56"]]);export{na as default}; diff --git a/vue/dist/assets/TagSearch-3cb5874b.js b/vue/dist/assets/TagSearch-4ec898b0.js similarity index 99% rename from vue/dist/assets/TagSearch-3cb5874b.js rename to vue/dist/assets/TagSearch-4ec898b0.js index 7dde127..98dd338 100644 --- a/vue/dist/assets/TagSearch-3cb5874b.js +++ b/vue/dist/assets/TagSearch-4ec898b0.js @@ -1,4 +1,4 @@ -import{P as Ze,ay as Xi,d as se,bC as Lo,b9 as Ji,r as W,bG as Zi,m as Qe,u as Do,G as J,an as yn,h as he,c as P,a as Gt,bH as Qi,b as el,f as tl,bI as nl,ap as ha,bJ as rl,b0 as al,i as ol,bh as il,bK as ll,at as en,au as mn,as as sl,A as ul,b3 as cl,b1 as dl,bL as pr,b2 as fl,bM as pl,bN as No,bx as vl,bO as Vo,bP as hl,bQ as gl,bR as yl,bS as ml,bT as bl,bv as Cl,bU as ga,bV as Fo,bW as _l,bX as xl,bY as wl,am as Te,bZ as jt,az as Ko,b_ as fe,b$ as Sl,J as $r,av as Wo,c0 as kl,c1 as We,o as zo,U as A,V as L,W as S,ag as le,a7 as ce,Z as $e,a8 as lt,$ as K,c2 as Al,X as ae,Y as z,ax as Ol,c3 as $l,c4 as El,c5 as ne,a2 as G,a3 as q,c6 as ya,c7 as ma,aG as vr,c8 as Rl,aP as dt,aQ as ft,c9 as Uo,a5 as bn,a4 as xe,ca as Tl,cb as Ml,a0 as Go,a1 as Pl,cc as Il,n as jl,y as Hl,R as Bl,cd as ba,t as Ll,E as Ca,C as Dl,ce as Nl,ac as Un,aM as Vl,cf as Fl,z as _a,B as Gn,T as xa,cg as Kl,ch as Wl,ak as wa,ci as zl,aj as Ul,cj as Gl,ck as ql}from"./index-0205daf8.js";import{S as Yl}from"./index-af89284c.js";/* empty css */import"./index-859cb083.js";import{t as Sa,_ as Xl,a as Jl,H as Zl}from"./searchHistory-c9de01d4.js";import"./index-b9ffc995.js";import{b as Ql,i as es}from"./isArrayLikeObject-55a21cf1.js";import{i as ts}from"./_isIterateeCall-7008db8e.js";var ns=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:Ze.object,expandIconPosition:Ze.oneOf(Xi("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},qo=function(){return{openAnimation:Ze.object,prefixCls:String,header:Ze.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:Ze.any,panelKey:Ze.oneOfType([Ze.string,Ze.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function ka(e){var t=e;if(!Array.isArray(t)){var n=el(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}const qt=se({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Lo(ns(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:Ji("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(t,n){var r=n.attrs,a=n.slots,o=n.emit,s=W(ka(Zi([t.activeKey,t.defaultActiveKey])));Qe(function(){return t.activeKey},function(){s.value=ka(t.activeKey)},{deep:!0});var i=Do("collapse",t),l=i.prefixCls,c=i.direction,u=J(function(){var g=t.expandIconPosition;return g!==void 0?g:c.value==="rtl"?"right":"left"}),d=function(p){var C=t.expandIcon,_=C===void 0?a.expandIcon:C,w=_?_(p):P(rl,{rotate:p.isActive?90:void 0},null);return P("div",null,[al(Array.isArray(_)?w[0]:w)?ha(w,{class:"".concat(l.value,"-arrow")},!1):w])},v=function(p){t.activeKey===void 0&&(s.value=p);var C=t.accordion?p[0]:p;o("update:activeKey",C),o("change",C)},f=function(p){var C=s.value;if(t.accordion)C=C[0]===p?[]:[p];else{C=ol(C);var _=C.indexOf(p),w=_>-1;w?C.splice(_,1):C.push(p)}v(C)},m=function(p,C){var _,w,$;if(!nl(p)){var O=s.value,M=t.accordion,D=t.destroyInactivePanel,j=t.collapsible,F=t.openAnimation,b=String((_=p.key)!==null&&_!==void 0?_:C),R=p.props||{},T=R.header,H=T===void 0?(w=p.children)===null||w===void 0||($=w.header)===null||$===void 0?void 0:$.call(w):T,N=R.headerClass,U=R.collapsible,h=R.disabled,x=!1;M?x=O[0]===b:x=O.indexOf(b)>-1;var E=U??j;(h||h==="")&&(E="disabled");var V={key:b,panelKey:b,header:H,headerClass:N,isActive:x,prefixCls:l.value,destroyInactivePanel:D,openAnimation:F,accordion:M,onItemClick:E==="disabled"?null:f,expandIcon:d,collapsible:E};return ha(p,V)}},y=function(){var p;return tl((p=a.default)===null||p===void 0?void 0:p.call(a)).map(m)};return function(){var g,p=t.accordion,C=t.bordered,_=t.ghost,w=yn((g={},he(g,l.value,!0),he(g,"".concat(l.value,"-borderless"),!C),he(g,"".concat(l.value,"-icon-position-").concat(u.value),!0),he(g,"".concat(l.value,"-rtl"),c.value==="rtl"),he(g,"".concat(l.value,"-ghost"),!!_),he(g,r.class,!!r.class),g));return P("div",Gt(Gt({class:w},Qi(r)),{},{style:r.style,role:p?"tablist":null}),[y()])}}}),rs=se({compatConfig:{MODE:3},name:"PanelContent",props:qo(),setup:function(t,n){var r=n.slots,a=W(!1);return il(function(){(t.isActive||t.forceRender)&&(a.value=!0)}),function(){var o,s;if(!a.value)return null;var i=t.prefixCls,l=t.isActive,c=t.role;return P("div",{ref:W,class:yn("".concat(i,"-content"),(o={},he(o,"".concat(i,"-content-active"),l),he(o,"".concat(i,"-content-inactive"),!l),o)),role:c},[P("div",{class:"".concat(i,"-content-box")},[(s=r.default)===null||s===void 0?void 0:s.call(r)])])}}}),Cn=se({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Lo(qo(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(t,n){var r=n.slots,a=n.emit,o=n.attrs;ll(t.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var s=Do("collapse",t),i=s.prefixCls,l=function(){a("itemClick",t.panelKey)},c=function(d){(d.key==="Enter"||d.keyCode===13||d.which===13)&&l()};return function(){var u,d,v,f,m=t.header,y=m===void 0?(u=r.header)===null||u===void 0?void 0:u.call(r):m,g=t.headerClass,p=t.isActive,C=t.showArrow,_=t.destroyInactivePanel,w=t.accordion,$=t.forceRender,O=t.openAnimation,M=t.expandIcon,D=M===void 0?r.expandIcon:M,j=t.extra,F=j===void 0?(d=r.extra)===null||d===void 0?void 0:d.call(r):j,b=t.collapsible,R=b==="disabled",T=i.value,H=yn("".concat(T,"-header"),(v={},he(v,g,g),he(v,"".concat(T,"-header-collapsible-only"),b==="header"),v)),N=yn((f={},he(f,"".concat(T,"-item"),!0),he(f,"".concat(T,"-item-active"),p),he(f,"".concat(T,"-item-disabled"),R),he(f,"".concat(T,"-no-arrow"),!C),he(f,"".concat(o.class),!!o.class),f)),U=P("i",{class:"arrow"},null);C&&typeof D=="function"&&(U=D(t));var h=en(P(rs,{prefixCls:T,isActive:p,forceRender:$,role:w?"tabpanel":null},{default:r.default}),[[mn,p]]),x=Gt({appear:!1,css:!1},O);return P("div",Gt(Gt({},o),{},{class:N}),[P("div",{class:H,onClick:function(){return b!=="header"&&l()},role:w?"tab":"button",tabindex:R?-1:0,"aria-expanded":p,onKeypress:c},[C&&U,b==="header"?P("span",{onClick:l,class:"".concat(T,"-header-text")},[y]):y,F&&P("div",{class:"".concat(T,"-extra")},[F])]),P(sl,x,{default:function(){return[!_||p?h:null]}})])}}});qt.Panel=Cn;qt.install=function(e){return e.component(qt.name,qt),e.component(Cn.name,Cn),e};var as={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const os=as;function Aa(e){for(var t=1;t1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,s&&ts(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r=0,o=!n&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(js,arguments)},brighten:function(){return this._applyModification(Hs,arguments)},darken:function(){return this._applyModification(Bs,arguments)},desaturate:function(){return this._applyModification(Ms,arguments)},saturate:function(){return this._applyModification(Ps,arguments)},greyscale:function(){return this._applyModification(Is,arguments)},spin:function(){return this._applyModification(Ls,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Vs,arguments)},complement:function(){return this._applyCombination(Ds,arguments)},monochromatic:function(){return this._applyCombination(Fs,arguments)},splitcomplement:function(){return this._applyCombination(Ns,arguments)},triad:function(){return this._applyCombination(Ta,[3])},tetrad:function(){return this._applyCombination(Ta,[4])}};k.fromRatio=function(e,t){if(_n(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=zt(e[r]));e=n}return k(e,t)};function Os(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,s=!1,i=!1;return typeof e=="string"&&(e=Gs(e)),_n(e)=="object"&&(Fe(e.r)&&Fe(e.g)&&Fe(e.b)?(t=$s(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fe(e.h)&&Fe(e.s)&&Fe(e.v)?(r=zt(e.s),a=zt(e.v),t=Rs(e.h,r,a),s=!0,i="hsv"):Fe(e.h)&&Fe(e.s)&&Fe(e.l)&&(r=zt(e.s),o=zt(e.l),t=Es(e.h,r,o),s=!0,i="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Jo(n),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function $s(e,t,n){return{r:X(e,255)*255,g:X(t,255)*255,b:X(n,255)*255}}function Oa(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,s,i=(r+a)/2;if(r==a)o=s=0;else{var l=r-a;switch(s=i>.5?l/(2-r-a):l/(r+a),r){case e:o=(t-n)/l+(t1&&(d-=1),d<1/6?c+(u-c)*6*d:d<1/2?u:d<2/3?c+(u-c)*(2/3-d)*6:c}if(t===0)r=a=o=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=s(l,i,e+1/3),a=s(l,i,e),o=s(l,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function $a(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,s,i=r,l=r-a;if(s=r===0?0:l/r,r==a)o=0;else{switch(r){case e:o=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(k(r));return o}function Fs(e,t){t=t||6;for(var n=k(e).toHsv(),r=n.h,a=n.s,o=n.v,s=[],i=1/t;t--;)s.push(k({h:r,s:a,v:o})),o=(o+i)%1;return s}k.mix=function(e,t,n){n=n===0?0:n||50;var r=k(e).toRgb(),a=k(t).toRgb(),o=n/100,s={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return k(s)};k.readability=function(e,t){var n=k(e),r=k(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};k.isReadable=function(e,t,n){var r=k.readability(e,t),a,o;switch(o=!1,a=qs(n),a.level+a.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};k.mostReadable=function(e,t,n){var r=null,a=0,o,s,i,l;n=n||{},s=n.includeFallbackColors,i=n.level,l=n.size;for(var c=0;ca&&(a=o,r=k(t[c]));return k.isReadable(e,r,{level:i,size:l})||!s?r:(n.includeFallbackColors=!1,k.mostReadable(e,["#fff","#000"],n))};var yr=k.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ks=k.hexNames=Ws(yr);function Ws(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Jo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function X(e,t){zs(e)&&(e="100%");var n=Us(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function jn(e){return Math.min(1,Math.max(0,e))}function _e(e){return parseInt(e,16)}function zs(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Us(e){return typeof e=="string"&&e.indexOf("%")!=-1}function He(e){return e.length==1?"0"+e:""+e}function zt(e){return e<=1&&(e=e*100+"%"),e}function Zo(e){return Math.round(parseFloat(e)*255).toString(16)}function Ma(e){return _e(e)/255}var je=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Fe(e){return!!je.CSS_UNIT.exec(e)}function Gs(e){e=e.replace(ks,"").replace(As,"").toLowerCase();var t=!1;if(yr[e])e=yr[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=je.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=je.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=je.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=je.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=je.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=je.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=je.hex8.exec(e))?{r:_e(n[1]),g:_e(n[2]),b:_e(n[3]),a:Ma(n[4]),format:t?"name":"hex8"}:(n=je.hex6.exec(e))?{r:_e(n[1]),g:_e(n[2]),b:_e(n[3]),format:t?"name":"hex"}:(n=je.hex4.exec(e))?{r:_e(n[1]+""+n[1]),g:_e(n[2]+""+n[2]),b:_e(n[3]+""+n[3]),a:Ma(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=je.hex3.exec(e))?{r:_e(n[1]+""+n[1]),g:_e(n[2]+""+n[2]),b:_e(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function qs(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var pt=pt||{};pt.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var n=e.visit(t.orientation);return n&&(n+=", "),t.type+"("+n+e.visit(t.colorStops)+")"},visit_shape:function(t){var n=t.value,r=e.visit(t.at),a=e.visit(t.style);return a&&(n+=" "+a),r&&(n+=" at "+r),n},"visit_default-radial":function(t){var n="",r=e.visit(t.at);return r&&(n+=r),n},"visit_extent-keyword":function(t){var n=t.value,r=e.visit(t.at);return r&&(n+=" at "+r),n},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,n){var r=t,a=e.visit(n.length);return a&&(r+=" "+a),r},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var n="",r=t.length;return t.forEach(function(a,o){n+=e.visit(a),o0&&n("Invalid input not EOF"),h}function a(){return _(o)}function o(){return s("linear-gradient",e.linearGradient,l)||s("repeating-linear-gradient",e.repeatingLinearGradient,l)||s("radial-gradient",e.radialGradient,d)||s("repeating-radial-gradient",e.repeatingRadialGradient,d)}function s(h,x,E){return i(x,function(V){var ue=E();return ue&&(N(e.comma)||n("Missing comma before color stops")),{type:h,orientation:ue,colorStops:_(w)}})}function i(h,x){var E=N(h);if(E){N(e.startCall)||n("Missing (");var V=x(E);return N(e.endCall)||n("Missing )"),V}}function l(){return c()||u()}function c(){return H("directional",e.sideOrCorner,1)}function u(){return H("angular",e.angleValue,1)}function d(){var h,x=v(),E;return x&&(h=[],h.push(x),E=t,N(e.comma)&&(x=v(),x?h.push(x):t=E)),h}function v(){var h=f()||m();if(h)h.at=g();else{var x=y();if(x){h=x;var E=g();E&&(h.at=E)}else{var V=p();V&&(h={type:"default-radial",at:V})}}return h}function f(){var h=H("shape",/^(circle)/i,0);return h&&(h.style=T()||y()),h}function m(){var h=H("shape",/^(ellipse)/i,0);return h&&(h.style=b()||y()),h}function y(){return H("extent-keyword",e.extentKeywords,1)}function g(){if(H("position",/^at/,0)){var h=p();return h||n("Missing positioning value"),h}}function p(){var h=C();if(h.x||h.y)return{type:"position",value:h}}function C(){return{x:b(),y:b()}}function _(h){var x=h(),E=[];if(x)for(E.push(x);N(e.comma);)x=h(),x?E.push(x):n("One extra comma");return E}function w(){var h=$();return h||n("Expected color definition"),h.length=b(),h}function $(){return M()||j()||D()||O()}function O(){return H("literal",e.literalColor,0)}function M(){return H("hex",e.hexColor,1)}function D(){return i(e.rgbColor,function(){return{type:"rgb",value:_(F)}})}function j(){return i(e.rgbaColor,function(){return{type:"rgba",value:_(F)}})}function F(){return N(e.number)[1]}function b(){return H("%",e.percentageValue,1)||R()||T()}function R(){return H("position-keyword",e.positionKeywords,1)}function T(){return H("px",e.pixelValue,1)||H("em",e.emValue,1)}function H(h,x,E){var V=N(x);if(V)return{type:h,value:V[E]}}function N(h){var x,E;return E=/^[\n\r\t\s]+/.exec(t),E&&U(E[0].length),x=h.exec(t),x&&U(x[0].length),x}function U(h){t=t.substr(h)}return function(h){return t=h.toString(),r()}}();var Ys=pt.parse,Xs=pt.stringify,me="top",Me="bottom",Pe="right",be="left",Rr="auto",on=[me,Me,Pe,be],kt="start",tn="end",Js="clippingParents",Qo="viewport",Vt="popper",Zs="reference",Pa=on.reduce(function(e,t){return e.concat([t+"-"+kt,t+"-"+tn])},[]),ei=[].concat(on,[Rr]).reduce(function(e,t){return e.concat([t,t+"-"+kt,t+"-"+tn])},[]),Qs="beforeRead",eu="read",tu="afterRead",nu="beforeMain",ru="main",au="afterMain",ou="beforeWrite",iu="write",lu="afterWrite",su=[Qs,eu,tu,nu,ru,au,ou,iu,lu];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Se(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function st(e){var t=Se(e).Element;return e instanceof t||e instanceof Element}function Ee(e){var t=Se(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tr(e){if(typeof ShadowRoot>"u")return!1;var t=Se(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uu(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!Ee(o)||!Ne(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(s){var i=a[s];i===!1?o.removeAttribute(s):o.setAttribute(s,i===!0?"":i)}))})}function cu(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ee(a)||!Ne(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const du={name:"applyStyles",enabled:!0,phase:"write",fn:uu,effect:cu,requires:["computeStyles"]};function Le(e){return e.split("-")[0]}var it=Math.max,xn=Math.min,At=Math.round;function mr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ti(){return!/^((?!chrome|android).)*safari/i.test(mr())}function Ot(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&Ee(e)&&(a=e.offsetWidth>0&&At(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&At(r.height)/e.offsetHeight||1);var s=st(e)?Se(e):window,i=s.visualViewport,l=!ti()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/a,u=(r.top+(l&&i?i.offsetTop:0))/o,d=r.width/a,v=r.height/o;return{width:d,height:v,top:u,right:c+d,bottom:u+v,left:c,x:c,y:u}}function Mr(e){var t=Ot(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ni(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Tr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ue(e){return Se(e).getComputedStyle(e)}function fu(e){return["table","td","th"].indexOf(Ne(e))>=0}function rt(e){return((st(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hn(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(Tr(e)?e.host:null)||rt(e)}function Ia(e){return!Ee(e)||Ue(e).position==="fixed"?null:e.offsetParent}function pu(e){var t=/firefox/i.test(mr()),n=/Trident/i.test(mr());if(n&&Ee(e)){var r=Ue(e);if(r.position==="fixed")return null}var a=Hn(e);for(Tr(a)&&(a=a.host);Ee(a)&&["html","body"].indexOf(Ne(a))<0;){var o=Ue(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function ln(e){for(var t=Se(e),n=Ia(e);n&&fu(n)&&Ue(n).position==="static";)n=Ia(n);return n&&(Ne(n)==="html"||Ne(n)==="body"&&Ue(n).position==="static")?t:n||pu(e)||t}function Pr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yt(e,t,n){return it(e,xn(t,n))}function vu(e,t,n){var r=Yt(e,t,n);return r>n?n:r}function ri(){return{top:0,right:0,bottom:0,left:0}}function ai(e){return Object.assign({},ri(),e)}function oi(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var hu=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ai(typeof t!="number"?t:oi(t,on))};function gu(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Le(n.placement),l=Pr(i),c=[be,Pe].indexOf(i)>=0,u=c?"height":"width";if(!(!o||!s)){var d=hu(a.padding,n),v=Mr(o),f=l==="y"?me:be,m=l==="y"?Me:Pe,y=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],g=s[l]-n.rects.reference[l],p=ln(o),C=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,_=y/2-g/2,w=d[f],$=C-v[u]-d[m],O=C/2-v[u]/2+_,M=Yt(w,O,$),D=l;n.modifiersData[r]=(t={},t[D]=M,t.centerOffset=M-O,t)}}function yu(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ni(t.elements.popper,a)&&(t.elements.arrow=a))}const mu={name:"arrow",enabled:!0,phase:"main",fn:gu,effect:yu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $t(e){return e.split("-")[1]}var bu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cu(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:At(n*a)/a||0,y:At(r*a)/a||0}}function ja(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,v=s.x,f=v===void 0?0:v,m=s.y,y=m===void 0?0:m,g=typeof u=="function"?u({x:f,y}):{x:f,y};f=g.x,y=g.y;var p=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),_=be,w=me,$=window;if(c){var O=ln(n),M="clientHeight",D="clientWidth";if(O===Se(n)&&(O=rt(n),Ue(O).position!=="static"&&i==="absolute"&&(M="scrollHeight",D="scrollWidth")),O=O,a===me||(a===be||a===Pe)&&o===tn){w=Me;var j=d&&O===$&&$.visualViewport?$.visualViewport.height:O[M];y-=j-r.height,y*=l?1:-1}if(a===be||(a===me||a===Me)&&o===tn){_=Pe;var F=d&&O===$&&$.visualViewport?$.visualViewport.width:O[D];f-=F-r.width,f*=l?1:-1}}var b=Object.assign({position:i},c&&bu),R=u===!0?Cu({x:f,y},Se(n)):{x:f,y};if(f=R.x,y=R.y,l){var T;return Object.assign({},b,(T={},T[w]=C?"0":"",T[_]=p?"0":"",T.transform=($.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",T))}return Object.assign({},b,(t={},t[w]=C?y+"px":"",t[_]=p?f+"px":"",t.transform="",t))}function _u(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:Le(t.placement),variation:$t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ja(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ja(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_u,data:{}};var dn={passive:!0};function wu(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,s=r.resize,i=s===void 0?!0:s,l=Se(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,dn)}),i&&l.addEventListener("resize",n.update,dn),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,dn)}),i&&l.removeEventListener("resize",n.update,dn)}}const Su={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wu,data:{}};var ku={left:"right",right:"left",bottom:"top",top:"bottom"};function hn(e){return e.replace(/left|right|bottom|top/g,function(t){return ku[t]})}var Au={start:"end",end:"start"};function Ha(e){return e.replace(/start|end/g,function(t){return Au[t]})}function Ir(e){var t=Se(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function jr(e){return Ot(rt(e)).left+Ir(e).scrollLeft}function Ou(e,t){var n=Se(e),r=rt(e),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,i=0,l=0;if(a){o=a.width,s=a.height;var c=ti();(c||!c&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:s,x:i+jr(e),y:l}}function $u(e){var t,n=rt(e),r=Ir(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=it(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=it(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-r.scrollLeft+jr(e),l=-r.scrollTop;return Ue(a||n).direction==="rtl"&&(i+=it(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:i,y:l}}function Hr(e){var t=Ue(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function ii(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:Ee(e)&&Hr(e)?e:ii(Hn(e))}function Xt(e,t){var n;t===void 0&&(t=[]);var r=ii(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=Se(r),s=a?[o].concat(o.visualViewport||[],Hr(r)?r:[]):r,i=t.concat(s);return a?i:i.concat(Xt(Hn(s)))}function br(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Eu(e,t){var n=Ot(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ba(e,t,n){return t===Qo?br(Ou(e,n)):st(t)?Eu(t,n):br($u(rt(e)))}function Ru(e){var t=Xt(Hn(e)),n=["absolute","fixed"].indexOf(Ue(e).position)>=0,r=n&&Ee(e)?ln(e):e;return st(r)?t.filter(function(a){return st(a)&&ni(a,r)&&Ne(a)!=="body"}):[]}function Tu(e,t,n,r){var a=t==="clippingParents"?Ru(e):[].concat(t),o=[].concat(a,[n]),s=o[0],i=o.reduce(function(l,c){var u=Ba(e,c,r);return l.top=it(u.top,l.top),l.right=xn(u.right,l.right),l.bottom=xn(u.bottom,l.bottom),l.left=it(u.left,l.left),l},Ba(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function li(e){var t=e.reference,n=e.element,r=e.placement,a=r?Le(r):null,o=r?$t(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(a){case me:l={x:s,y:t.y-n.height};break;case Me:l={x:s,y:t.y+t.height};break;case Pe:l={x:t.x+t.width,y:i};break;case be:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=a?Pr(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case kt:l[c]=l[c]-(t[u]/2-n[u]/2);break;case tn:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function nn(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?Js:i,c=n.rootBoundary,u=c===void 0?Qo:c,d=n.elementContext,v=d===void 0?Vt:d,f=n.altBoundary,m=f===void 0?!1:f,y=n.padding,g=y===void 0?0:y,p=ai(typeof g!="number"?g:oi(g,on)),C=v===Vt?Zs:Vt,_=e.rects.popper,w=e.elements[m?C:v],$=Tu(st(w)?w:w.contextElement||rt(e.elements.popper),l,u,s),O=Ot(e.elements.reference),M=li({reference:O,element:_,strategy:"absolute",placement:a}),D=br(Object.assign({},_,M)),j=v===Vt?D:O,F={top:$.top-j.top+p.top,bottom:j.bottom-$.bottom+p.bottom,left:$.left-j.left+p.left,right:j.right-$.right+p.right},b=e.modifiersData.offset;if(v===Vt&&b){var R=b[a];Object.keys(F).forEach(function(T){var H=[Pe,Me].indexOf(T)>=0?1:-1,N=[me,Me].indexOf(T)>=0?"y":"x";F[T]+=R[N]*H})}return F}function Mu(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ei:l,u=$t(r),d=u?i?Pa:Pa.filter(function(m){return $t(m)===u}):on,v=d.filter(function(m){return c.indexOf(m)>=0});v.length===0&&(v=d);var f=v.reduce(function(m,y){return m[y]=nn(e,{placement:y,boundary:a,rootBoundary:o,padding:s})[Le(y)],m},{});return Object.keys(f).sort(function(m,y){return f[m]-f[y]})}function Pu(e){if(Le(e)===Rr)return[];var t=hn(e);return[Ha(e),t,Ha(t)]}function Iu(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,v=n.altBoundary,f=n.flipVariations,m=f===void 0?!0:f,y=n.allowedAutoPlacements,g=t.options.placement,p=Le(g),C=p===g,_=l||(C||!m?[hn(g)]:Pu(g)),w=[g].concat(_).reduce(function(Be,Ce){return Be.concat(Le(Ce)===Rr?Mu(t,{placement:Ce,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}):Ce)},[]),$=t.rects.reference,O=t.rects.popper,M=new Map,D=!0,j=w[0],F=0;F=0,N=H?"width":"height",U=nn(t,{placement:b,boundary:u,rootBoundary:d,altBoundary:v,padding:c}),h=H?T?Pe:be:T?Me:me;$[N]>O[N]&&(h=hn(h));var x=hn(h),E=[];if(o&&E.push(U[R]<=0),i&&E.push(U[h]<=0,U[x]<=0),E.every(function(Be){return Be})){j=b,D=!1;break}M.set(b,E)}if(D)for(var V=m?3:1,ue=function(Ce){var Ye=w.find(function(yt){var Ve=M.get(yt);if(Ve)return Ve.slice(0,Ce).every(function(Dt){return Dt})});if(Ye)return j=Ye,"break"},Ae=V;Ae>0;Ae--){var ye=ue(Ae);if(ye==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const ju={name:"flip",enabled:!0,phase:"main",fn:Iu,requiresIfExists:["offset"],data:{_skip:!1}};function La(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Da(e){return[me,Pe,Me,be].some(function(t){return e[t]>=0})}function Hu(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=nn(t,{elementContext:"reference"}),i=nn(t,{altBoundary:!0}),l=La(s,r),c=La(i,a,o),u=Da(l),d=Da(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Bu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Hu};function Lu(e,t,n){var r=Le(e),a=[be,me].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],i=o[1];return s=s||0,i=(i||0)*a,[be,Pe].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function Du(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,s=ei.reduce(function(u,d){return u[d]=Lu(d,t.rects,o),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Nu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Du};function Vu(e){var t=e.state,n=e.name;t.modifiersData[n]=li({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Fu={name:"popperOffsets",enabled:!0,phase:"read",fn:Vu,data:{}};function Ku(e){return e==="x"?"y":"x"}function Wu(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,v=n.tether,f=v===void 0?!0:v,m=n.tetherOffset,y=m===void 0?0:m,g=nn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),p=Le(t.placement),C=$t(t.placement),_=!C,w=Pr(p),$=Ku(w),O=t.modifiersData.popperOffsets,M=t.rects.reference,D=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,F=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(O){if(o){var T,H=w==="y"?me:be,N=w==="y"?Me:Pe,U=w==="y"?"height":"width",h=O[w],x=h+g[H],E=h-g[N],V=f?-D[U]/2:0,ue=C===kt?M[U]:D[U],Ae=C===kt?-D[U]:-M[U],ye=t.elements.arrow,Be=f&&ye?Mr(ye):{width:0,height:0},Ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ri(),Ye=Ce[H],yt=Ce[N],Ve=Yt(0,M[U],Be[U]),Dt=_?M[U]/2-V-Ve-Ye-F.mainAxis:ue-Ve-Ye-F.mainAxis,Kn=_?-M[U]/2+V+Ve+yt+F.mainAxis:Ae+Ve+yt+F.mainAxis,B=t.elements.arrow&&ln(t.elements.arrow),Nt=B?w==="y"?B.clientTop||0:B.clientLeft||0:0,ee=(T=b==null?void 0:b[w])!=null?T:0,Wn=h+Dt-ee-Nt,Xe=h+Kn-ee,la=Yt(f?xn(x,Wn):x,h,f?it(E,Xe):E);O[w]=la,R[w]=la-h}if(i){var sa,qi=w==="x"?me:be,Yi=w==="x"?Me:Pe,at=O[$],cn=$==="y"?"height":"width",ua=at+g[qi],ca=at-g[Yi],zn=[me,be].indexOf(p)!==-1,da=(sa=b==null?void 0:b[$])!=null?sa:0,fa=zn?ua:at-M[cn]-D[cn]-da+F.altAxis,pa=zn?at+M[cn]+D[cn]-da-F.altAxis:ca,va=f&&zn?vu(fa,at,pa):Yt(f?fa:ua,at,f?pa:ca);O[$]=va,R[$]=va-at}t.modifiersData[r]=R}}const zu={name:"preventOverflow",enabled:!0,phase:"main",fn:Wu,requiresIfExists:["offset"]};function Uu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gu(e){return e===Se(e)||!Ee(e)?Ir(e):Uu(e)}function qu(e){var t=e.getBoundingClientRect(),n=At(t.width)/e.offsetWidth||1,r=At(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Yu(e,t,n){n===void 0&&(n=!1);var r=Ee(t),a=Ee(t)&&qu(t),o=rt(t),s=Ot(e,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ne(t)!=="body"||Hr(o))&&(i=Gu(t)),Ee(t)?(l=Ot(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=jr(o))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Xu(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&a(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function Ju(e){var t=Xu(e);return su.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function Zu(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Qu(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Na={placement:"bottom",modifiers:[],strategy:"absolute"};function Va(){for(var e=arguments.length,t=new Array(e),n=0;n-1;w?C.splice(_,1):C.push(p)}v(C)},m=function(p,C){var _,w,$;if(!nl(p)){var O=s.value,M=t.accordion,D=t.destroyInactivePanel,j=t.collapsible,F=t.openAnimation,b=String((_=p.key)!==null&&_!==void 0?_:C),R=p.props||{},T=R.header,H=T===void 0?(w=p.children)===null||w===void 0||($=w.header)===null||$===void 0?void 0:$.call(w):T,N=R.headerClass,U=R.collapsible,h=R.disabled,x=!1;M?x=O[0]===b:x=O.indexOf(b)>-1;var E=U??j;(h||h==="")&&(E="disabled");var V={key:b,panelKey:b,header:H,headerClass:N,isActive:x,prefixCls:l.value,destroyInactivePanel:D,openAnimation:F,accordion:M,onItemClick:E==="disabled"?null:f,expandIcon:d,collapsible:E};return ha(p,V)}},y=function(){var p;return tl((p=a.default)===null||p===void 0?void 0:p.call(a)).map(m)};return function(){var g,p=t.accordion,C=t.bordered,_=t.ghost,w=yn((g={},he(g,l.value,!0),he(g,"".concat(l.value,"-borderless"),!C),he(g,"".concat(l.value,"-icon-position-").concat(u.value),!0),he(g,"".concat(l.value,"-rtl"),c.value==="rtl"),he(g,"".concat(l.value,"-ghost"),!!_),he(g,r.class,!!r.class),g));return P("div",Gt(Gt({class:w},Qi(r)),{},{style:r.style,role:p?"tablist":null}),[y()])}}}),rs=se({compatConfig:{MODE:3},name:"PanelContent",props:qo(),setup:function(t,n){var r=n.slots,a=W(!1);return il(function(){(t.isActive||t.forceRender)&&(a.value=!0)}),function(){var o,s;if(!a.value)return null;var i=t.prefixCls,l=t.isActive,c=t.role;return P("div",{ref:W,class:yn("".concat(i,"-content"),(o={},he(o,"".concat(i,"-content-active"),l),he(o,"".concat(i,"-content-inactive"),!l),o)),role:c},[P("div",{class:"".concat(i,"-content-box")},[(s=r.default)===null||s===void 0?void 0:s.call(r)])])}}}),Cn=se({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Lo(qo(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(t,n){var r=n.slots,a=n.emit,o=n.attrs;ll(t.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var s=Do("collapse",t),i=s.prefixCls,l=function(){a("itemClick",t.panelKey)},c=function(d){(d.key==="Enter"||d.keyCode===13||d.which===13)&&l()};return function(){var u,d,v,f,m=t.header,y=m===void 0?(u=r.header)===null||u===void 0?void 0:u.call(r):m,g=t.headerClass,p=t.isActive,C=t.showArrow,_=t.destroyInactivePanel,w=t.accordion,$=t.forceRender,O=t.openAnimation,M=t.expandIcon,D=M===void 0?r.expandIcon:M,j=t.extra,F=j===void 0?(d=r.extra)===null||d===void 0?void 0:d.call(r):j,b=t.collapsible,R=b==="disabled",T=i.value,H=yn("".concat(T,"-header"),(v={},he(v,g,g),he(v,"".concat(T,"-header-collapsible-only"),b==="header"),v)),N=yn((f={},he(f,"".concat(T,"-item"),!0),he(f,"".concat(T,"-item-active"),p),he(f,"".concat(T,"-item-disabled"),R),he(f,"".concat(T,"-no-arrow"),!C),he(f,"".concat(o.class),!!o.class),f)),U=P("i",{class:"arrow"},null);C&&typeof D=="function"&&(U=D(t));var h=en(P(rs,{prefixCls:T,isActive:p,forceRender:$,role:w?"tabpanel":null},{default:r.default}),[[mn,p]]),x=Gt({appear:!1,css:!1},O);return P("div",Gt(Gt({},o),{},{class:N}),[P("div",{class:H,onClick:function(){return b!=="header"&&l()},role:w?"tab":"button",tabindex:R?-1:0,"aria-expanded":p,onKeypress:c},[C&&U,b==="header"?P("span",{onClick:l,class:"".concat(T,"-header-text")},[y]):y,F&&P("div",{class:"".concat(T,"-extra")},[F])]),P(sl,x,{default:function(){return[!_||p?h:null]}})])}}});qt.Panel=Cn;qt.install=function(e){return e.component(qt.name,qt),e.component(Cn.name,Cn),e};var as={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const os=as;function Aa(e){for(var t=1;t1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,s&&ts(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r=0,o=!n&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(js,arguments)},brighten:function(){return this._applyModification(Hs,arguments)},darken:function(){return this._applyModification(Bs,arguments)},desaturate:function(){return this._applyModification(Ms,arguments)},saturate:function(){return this._applyModification(Ps,arguments)},greyscale:function(){return this._applyModification(Is,arguments)},spin:function(){return this._applyModification(Ls,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Vs,arguments)},complement:function(){return this._applyCombination(Ds,arguments)},monochromatic:function(){return this._applyCombination(Fs,arguments)},splitcomplement:function(){return this._applyCombination(Ns,arguments)},triad:function(){return this._applyCombination(Ta,[3])},tetrad:function(){return this._applyCombination(Ta,[4])}};k.fromRatio=function(e,t){if(_n(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=zt(e[r]));e=n}return k(e,t)};function Os(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,s=!1,i=!1;return typeof e=="string"&&(e=Gs(e)),_n(e)=="object"&&(Fe(e.r)&&Fe(e.g)&&Fe(e.b)?(t=$s(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fe(e.h)&&Fe(e.s)&&Fe(e.v)?(r=zt(e.s),a=zt(e.v),t=Rs(e.h,r,a),s=!0,i="hsv"):Fe(e.h)&&Fe(e.s)&&Fe(e.l)&&(r=zt(e.s),o=zt(e.l),t=Es(e.h,r,o),s=!0,i="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Jo(n),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function $s(e,t,n){return{r:X(e,255)*255,g:X(t,255)*255,b:X(n,255)*255}}function Oa(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,s,i=(r+a)/2;if(r==a)o=s=0;else{var l=r-a;switch(s=i>.5?l/(2-r-a):l/(r+a),r){case e:o=(t-n)/l+(t1&&(d-=1),d<1/6?c+(u-c)*6*d:d<1/2?u:d<2/3?c+(u-c)*(2/3-d)*6:c}if(t===0)r=a=o=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=s(l,i,e+1/3),a=s(l,i,e),o=s(l,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function $a(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,s,i=r,l=r-a;if(s=r===0?0:l/r,r==a)o=0;else{switch(r){case e:o=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(k(r));return o}function Fs(e,t){t=t||6;for(var n=k(e).toHsv(),r=n.h,a=n.s,o=n.v,s=[],i=1/t;t--;)s.push(k({h:r,s:a,v:o})),o=(o+i)%1;return s}k.mix=function(e,t,n){n=n===0?0:n||50;var r=k(e).toRgb(),a=k(t).toRgb(),o=n/100,s={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return k(s)};k.readability=function(e,t){var n=k(e),r=k(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};k.isReadable=function(e,t,n){var r=k.readability(e,t),a,o;switch(o=!1,a=qs(n),a.level+a.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};k.mostReadable=function(e,t,n){var r=null,a=0,o,s,i,l;n=n||{},s=n.includeFallbackColors,i=n.level,l=n.size;for(var c=0;ca&&(a=o,r=k(t[c]));return k.isReadable(e,r,{level:i,size:l})||!s?r:(n.includeFallbackColors=!1,k.mostReadable(e,["#fff","#000"],n))};var yr=k.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ks=k.hexNames=Ws(yr);function Ws(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Jo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function X(e,t){zs(e)&&(e="100%");var n=Us(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function jn(e){return Math.min(1,Math.max(0,e))}function _e(e){return parseInt(e,16)}function zs(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Us(e){return typeof e=="string"&&e.indexOf("%")!=-1}function He(e){return e.length==1?"0"+e:""+e}function zt(e){return e<=1&&(e=e*100+"%"),e}function Zo(e){return Math.round(parseFloat(e)*255).toString(16)}function Ma(e){return _e(e)/255}var je=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Fe(e){return!!je.CSS_UNIT.exec(e)}function Gs(e){e=e.replace(ks,"").replace(As,"").toLowerCase();var t=!1;if(yr[e])e=yr[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=je.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=je.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=je.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=je.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=je.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=je.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=je.hex8.exec(e))?{r:_e(n[1]),g:_e(n[2]),b:_e(n[3]),a:Ma(n[4]),format:t?"name":"hex8"}:(n=je.hex6.exec(e))?{r:_e(n[1]),g:_e(n[2]),b:_e(n[3]),format:t?"name":"hex"}:(n=je.hex4.exec(e))?{r:_e(n[1]+""+n[1]),g:_e(n[2]+""+n[2]),b:_e(n[3]+""+n[3]),a:Ma(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=je.hex3.exec(e))?{r:_e(n[1]+""+n[1]),g:_e(n[2]+""+n[2]),b:_e(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function qs(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var pt=pt||{};pt.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var n=e.visit(t.orientation);return n&&(n+=", "),t.type+"("+n+e.visit(t.colorStops)+")"},visit_shape:function(t){var n=t.value,r=e.visit(t.at),a=e.visit(t.style);return a&&(n+=" "+a),r&&(n+=" at "+r),n},"visit_default-radial":function(t){var n="",r=e.visit(t.at);return r&&(n+=r),n},"visit_extent-keyword":function(t){var n=t.value,r=e.visit(t.at);return r&&(n+=" at "+r),n},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,n){var r=t,a=e.visit(n.length);return a&&(r+=" "+a),r},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var n="",r=t.length;return t.forEach(function(a,o){n+=e.visit(a),o0&&n("Invalid input not EOF"),h}function a(){return _(o)}function o(){return s("linear-gradient",e.linearGradient,l)||s("repeating-linear-gradient",e.repeatingLinearGradient,l)||s("radial-gradient",e.radialGradient,d)||s("repeating-radial-gradient",e.repeatingRadialGradient,d)}function s(h,x,E){return i(x,function(V){var ue=E();return ue&&(N(e.comma)||n("Missing comma before color stops")),{type:h,orientation:ue,colorStops:_(w)}})}function i(h,x){var E=N(h);if(E){N(e.startCall)||n("Missing (");var V=x(E);return N(e.endCall)||n("Missing )"),V}}function l(){return c()||u()}function c(){return H("directional",e.sideOrCorner,1)}function u(){return H("angular",e.angleValue,1)}function d(){var h,x=v(),E;return x&&(h=[],h.push(x),E=t,N(e.comma)&&(x=v(),x?h.push(x):t=E)),h}function v(){var h=f()||m();if(h)h.at=g();else{var x=y();if(x){h=x;var E=g();E&&(h.at=E)}else{var V=p();V&&(h={type:"default-radial",at:V})}}return h}function f(){var h=H("shape",/^(circle)/i,0);return h&&(h.style=T()||y()),h}function m(){var h=H("shape",/^(ellipse)/i,0);return h&&(h.style=b()||y()),h}function y(){return H("extent-keyword",e.extentKeywords,1)}function g(){if(H("position",/^at/,0)){var h=p();return h||n("Missing positioning value"),h}}function p(){var h=C();if(h.x||h.y)return{type:"position",value:h}}function C(){return{x:b(),y:b()}}function _(h){var x=h(),E=[];if(x)for(E.push(x);N(e.comma);)x=h(),x?E.push(x):n("One extra comma");return E}function w(){var h=$();return h||n("Expected color definition"),h.length=b(),h}function $(){return M()||j()||D()||O()}function O(){return H("literal",e.literalColor,0)}function M(){return H("hex",e.hexColor,1)}function D(){return i(e.rgbColor,function(){return{type:"rgb",value:_(F)}})}function j(){return i(e.rgbaColor,function(){return{type:"rgba",value:_(F)}})}function F(){return N(e.number)[1]}function b(){return H("%",e.percentageValue,1)||R()||T()}function R(){return H("position-keyword",e.positionKeywords,1)}function T(){return H("px",e.pixelValue,1)||H("em",e.emValue,1)}function H(h,x,E){var V=N(x);if(V)return{type:h,value:V[E]}}function N(h){var x,E;return E=/^[\n\r\t\s]+/.exec(t),E&&U(E[0].length),x=h.exec(t),x&&U(x[0].length),x}function U(h){t=t.substr(h)}return function(h){return t=h.toString(),r()}}();var Ys=pt.parse,Xs=pt.stringify,me="top",Me="bottom",Pe="right",be="left",Rr="auto",on=[me,Me,Pe,be],kt="start",tn="end",Js="clippingParents",Qo="viewport",Vt="popper",Zs="reference",Pa=on.reduce(function(e,t){return e.concat([t+"-"+kt,t+"-"+tn])},[]),ei=[].concat(on,[Rr]).reduce(function(e,t){return e.concat([t,t+"-"+kt,t+"-"+tn])},[]),Qs="beforeRead",eu="read",tu="afterRead",nu="beforeMain",ru="main",au="afterMain",ou="beforeWrite",iu="write",lu="afterWrite",su=[Qs,eu,tu,nu,ru,au,ou,iu,lu];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Se(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function st(e){var t=Se(e).Element;return e instanceof t||e instanceof Element}function Ee(e){var t=Se(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tr(e){if(typeof ShadowRoot>"u")return!1;var t=Se(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uu(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!Ee(o)||!Ne(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(s){var i=a[s];i===!1?o.removeAttribute(s):o.setAttribute(s,i===!0?"":i)}))})}function cu(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ee(a)||!Ne(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const du={name:"applyStyles",enabled:!0,phase:"write",fn:uu,effect:cu,requires:["computeStyles"]};function Le(e){return e.split("-")[0]}var it=Math.max,xn=Math.min,At=Math.round;function mr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ti(){return!/^((?!chrome|android).)*safari/i.test(mr())}function Ot(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&Ee(e)&&(a=e.offsetWidth>0&&At(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&At(r.height)/e.offsetHeight||1);var s=st(e)?Se(e):window,i=s.visualViewport,l=!ti()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/a,u=(r.top+(l&&i?i.offsetTop:0))/o,d=r.width/a,v=r.height/o;return{width:d,height:v,top:u,right:c+d,bottom:u+v,left:c,x:c,y:u}}function Mr(e){var t=Ot(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ni(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Tr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ue(e){return Se(e).getComputedStyle(e)}function fu(e){return["table","td","th"].indexOf(Ne(e))>=0}function rt(e){return((st(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hn(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(Tr(e)?e.host:null)||rt(e)}function Ia(e){return!Ee(e)||Ue(e).position==="fixed"?null:e.offsetParent}function pu(e){var t=/firefox/i.test(mr()),n=/Trident/i.test(mr());if(n&&Ee(e)){var r=Ue(e);if(r.position==="fixed")return null}var a=Hn(e);for(Tr(a)&&(a=a.host);Ee(a)&&["html","body"].indexOf(Ne(a))<0;){var o=Ue(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function ln(e){for(var t=Se(e),n=Ia(e);n&&fu(n)&&Ue(n).position==="static";)n=Ia(n);return n&&(Ne(n)==="html"||Ne(n)==="body"&&Ue(n).position==="static")?t:n||pu(e)||t}function Pr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yt(e,t,n){return it(e,xn(t,n))}function vu(e,t,n){var r=Yt(e,t,n);return r>n?n:r}function ri(){return{top:0,right:0,bottom:0,left:0}}function ai(e){return Object.assign({},ri(),e)}function oi(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var hu=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ai(typeof t!="number"?t:oi(t,on))};function gu(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Le(n.placement),l=Pr(i),c=[be,Pe].indexOf(i)>=0,u=c?"height":"width";if(!(!o||!s)){var d=hu(a.padding,n),v=Mr(o),f=l==="y"?me:be,m=l==="y"?Me:Pe,y=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],g=s[l]-n.rects.reference[l],p=ln(o),C=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,_=y/2-g/2,w=d[f],$=C-v[u]-d[m],O=C/2-v[u]/2+_,M=Yt(w,O,$),D=l;n.modifiersData[r]=(t={},t[D]=M,t.centerOffset=M-O,t)}}function yu(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ni(t.elements.popper,a)&&(t.elements.arrow=a))}const mu={name:"arrow",enabled:!0,phase:"main",fn:gu,effect:yu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $t(e){return e.split("-")[1]}var bu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cu(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:At(n*a)/a||0,y:At(r*a)/a||0}}function ja(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,v=s.x,f=v===void 0?0:v,m=s.y,y=m===void 0?0:m,g=typeof u=="function"?u({x:f,y}):{x:f,y};f=g.x,y=g.y;var p=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),_=be,w=me,$=window;if(c){var O=ln(n),M="clientHeight",D="clientWidth";if(O===Se(n)&&(O=rt(n),Ue(O).position!=="static"&&i==="absolute"&&(M="scrollHeight",D="scrollWidth")),O=O,a===me||(a===be||a===Pe)&&o===tn){w=Me;var j=d&&O===$&&$.visualViewport?$.visualViewport.height:O[M];y-=j-r.height,y*=l?1:-1}if(a===be||(a===me||a===Me)&&o===tn){_=Pe;var F=d&&O===$&&$.visualViewport?$.visualViewport.width:O[D];f-=F-r.width,f*=l?1:-1}}var b=Object.assign({position:i},c&&bu),R=u===!0?Cu({x:f,y},Se(n)):{x:f,y};if(f=R.x,y=R.y,l){var T;return Object.assign({},b,(T={},T[w]=C?"0":"",T[_]=p?"0":"",T.transform=($.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",T))}return Object.assign({},b,(t={},t[w]=C?y+"px":"",t[_]=p?f+"px":"",t.transform="",t))}function _u(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:Le(t.placement),variation:$t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ja(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ja(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_u,data:{}};var dn={passive:!0};function wu(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,s=r.resize,i=s===void 0?!0:s,l=Se(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,dn)}),i&&l.addEventListener("resize",n.update,dn),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,dn)}),i&&l.removeEventListener("resize",n.update,dn)}}const Su={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wu,data:{}};var ku={left:"right",right:"left",bottom:"top",top:"bottom"};function hn(e){return e.replace(/left|right|bottom|top/g,function(t){return ku[t]})}var Au={start:"end",end:"start"};function Ha(e){return e.replace(/start|end/g,function(t){return Au[t]})}function Ir(e){var t=Se(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function jr(e){return Ot(rt(e)).left+Ir(e).scrollLeft}function Ou(e,t){var n=Se(e),r=rt(e),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,i=0,l=0;if(a){o=a.width,s=a.height;var c=ti();(c||!c&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:s,x:i+jr(e),y:l}}function $u(e){var t,n=rt(e),r=Ir(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=it(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=it(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-r.scrollLeft+jr(e),l=-r.scrollTop;return Ue(a||n).direction==="rtl"&&(i+=it(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:i,y:l}}function Hr(e){var t=Ue(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function ii(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:Ee(e)&&Hr(e)?e:ii(Hn(e))}function Xt(e,t){var n;t===void 0&&(t=[]);var r=ii(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=Se(r),s=a?[o].concat(o.visualViewport||[],Hr(r)?r:[]):r,i=t.concat(s);return a?i:i.concat(Xt(Hn(s)))}function br(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Eu(e,t){var n=Ot(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ba(e,t,n){return t===Qo?br(Ou(e,n)):st(t)?Eu(t,n):br($u(rt(e)))}function Ru(e){var t=Xt(Hn(e)),n=["absolute","fixed"].indexOf(Ue(e).position)>=0,r=n&&Ee(e)?ln(e):e;return st(r)?t.filter(function(a){return st(a)&&ni(a,r)&&Ne(a)!=="body"}):[]}function Tu(e,t,n,r){var a=t==="clippingParents"?Ru(e):[].concat(t),o=[].concat(a,[n]),s=o[0],i=o.reduce(function(l,c){var u=Ba(e,c,r);return l.top=it(u.top,l.top),l.right=xn(u.right,l.right),l.bottom=xn(u.bottom,l.bottom),l.left=it(u.left,l.left),l},Ba(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function li(e){var t=e.reference,n=e.element,r=e.placement,a=r?Le(r):null,o=r?$t(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(a){case me:l={x:s,y:t.y-n.height};break;case Me:l={x:s,y:t.y+t.height};break;case Pe:l={x:t.x+t.width,y:i};break;case be:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=a?Pr(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case kt:l[c]=l[c]-(t[u]/2-n[u]/2);break;case tn:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function nn(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?Js:i,c=n.rootBoundary,u=c===void 0?Qo:c,d=n.elementContext,v=d===void 0?Vt:d,f=n.altBoundary,m=f===void 0?!1:f,y=n.padding,g=y===void 0?0:y,p=ai(typeof g!="number"?g:oi(g,on)),C=v===Vt?Zs:Vt,_=e.rects.popper,w=e.elements[m?C:v],$=Tu(st(w)?w:w.contextElement||rt(e.elements.popper),l,u,s),O=Ot(e.elements.reference),M=li({reference:O,element:_,strategy:"absolute",placement:a}),D=br(Object.assign({},_,M)),j=v===Vt?D:O,F={top:$.top-j.top+p.top,bottom:j.bottom-$.bottom+p.bottom,left:$.left-j.left+p.left,right:j.right-$.right+p.right},b=e.modifiersData.offset;if(v===Vt&&b){var R=b[a];Object.keys(F).forEach(function(T){var H=[Pe,Me].indexOf(T)>=0?1:-1,N=[me,Me].indexOf(T)>=0?"y":"x";F[T]+=R[N]*H})}return F}function Mu(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ei:l,u=$t(r),d=u?i?Pa:Pa.filter(function(m){return $t(m)===u}):on,v=d.filter(function(m){return c.indexOf(m)>=0});v.length===0&&(v=d);var f=v.reduce(function(m,y){return m[y]=nn(e,{placement:y,boundary:a,rootBoundary:o,padding:s})[Le(y)],m},{});return Object.keys(f).sort(function(m,y){return f[m]-f[y]})}function Pu(e){if(Le(e)===Rr)return[];var t=hn(e);return[Ha(e),t,Ha(t)]}function Iu(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,v=n.altBoundary,f=n.flipVariations,m=f===void 0?!0:f,y=n.allowedAutoPlacements,g=t.options.placement,p=Le(g),C=p===g,_=l||(C||!m?[hn(g)]:Pu(g)),w=[g].concat(_).reduce(function(Be,Ce){return Be.concat(Le(Ce)===Rr?Mu(t,{placement:Ce,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}):Ce)},[]),$=t.rects.reference,O=t.rects.popper,M=new Map,D=!0,j=w[0],F=0;F=0,N=H?"width":"height",U=nn(t,{placement:b,boundary:u,rootBoundary:d,altBoundary:v,padding:c}),h=H?T?Pe:be:T?Me:me;$[N]>O[N]&&(h=hn(h));var x=hn(h),E=[];if(o&&E.push(U[R]<=0),i&&E.push(U[h]<=0,U[x]<=0),E.every(function(Be){return Be})){j=b,D=!1;break}M.set(b,E)}if(D)for(var V=m?3:1,ue=function(Ce){var Ye=w.find(function(yt){var Ve=M.get(yt);if(Ve)return Ve.slice(0,Ce).every(function(Dt){return Dt})});if(Ye)return j=Ye,"break"},Ae=V;Ae>0;Ae--){var ye=ue(Ae);if(ye==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const ju={name:"flip",enabled:!0,phase:"main",fn:Iu,requiresIfExists:["offset"],data:{_skip:!1}};function La(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Da(e){return[me,Pe,Me,be].some(function(t){return e[t]>=0})}function Hu(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=nn(t,{elementContext:"reference"}),i=nn(t,{altBoundary:!0}),l=La(s,r),c=La(i,a,o),u=Da(l),d=Da(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Bu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Hu};function Lu(e,t,n){var r=Le(e),a=[be,me].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],i=o[1];return s=s||0,i=(i||0)*a,[be,Pe].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function Du(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,s=ei.reduce(function(u,d){return u[d]=Lu(d,t.rects,o),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Nu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Du};function Vu(e){var t=e.state,n=e.name;t.modifiersData[n]=li({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Fu={name:"popperOffsets",enabled:!0,phase:"read",fn:Vu,data:{}};function Ku(e){return e==="x"?"y":"x"}function Wu(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,v=n.tether,f=v===void 0?!0:v,m=n.tetherOffset,y=m===void 0?0:m,g=nn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),p=Le(t.placement),C=$t(t.placement),_=!C,w=Pr(p),$=Ku(w),O=t.modifiersData.popperOffsets,M=t.rects.reference,D=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,F=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(O){if(o){var T,H=w==="y"?me:be,N=w==="y"?Me:Pe,U=w==="y"?"height":"width",h=O[w],x=h+g[H],E=h-g[N],V=f?-D[U]/2:0,ue=C===kt?M[U]:D[U],Ae=C===kt?-D[U]:-M[U],ye=t.elements.arrow,Be=f&&ye?Mr(ye):{width:0,height:0},Ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ri(),Ye=Ce[H],yt=Ce[N],Ve=Yt(0,M[U],Be[U]),Dt=_?M[U]/2-V-Ve-Ye-F.mainAxis:ue-Ve-Ye-F.mainAxis,Kn=_?-M[U]/2+V+Ve+yt+F.mainAxis:Ae+Ve+yt+F.mainAxis,B=t.elements.arrow&&ln(t.elements.arrow),Nt=B?w==="y"?B.clientTop||0:B.clientLeft||0:0,ee=(T=b==null?void 0:b[w])!=null?T:0,Wn=h+Dt-ee-Nt,Xe=h+Kn-ee,la=Yt(f?xn(x,Wn):x,h,f?it(E,Xe):E);O[w]=la,R[w]=la-h}if(i){var sa,qi=w==="x"?me:be,Yi=w==="x"?Me:Pe,at=O[$],cn=$==="y"?"height":"width",ua=at+g[qi],ca=at-g[Yi],zn=[me,be].indexOf(p)!==-1,da=(sa=b==null?void 0:b[$])!=null?sa:0,fa=zn?ua:at-M[cn]-D[cn]-da+F.altAxis,pa=zn?at+M[cn]+D[cn]-da-F.altAxis:ca,va=f&&zn?vu(fa,at,pa):Yt(f?fa:ua,at,f?pa:ca);O[$]=va,R[$]=va-at}t.modifiersData[r]=R}}const zu={name:"preventOverflow",enabled:!0,phase:"main",fn:Wu,requiresIfExists:["offset"]};function Uu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gu(e){return e===Se(e)||!Ee(e)?Ir(e):Uu(e)}function qu(e){var t=e.getBoundingClientRect(),n=At(t.width)/e.offsetWidth||1,r=At(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Yu(e,t,n){n===void 0&&(n=!1);var r=Ee(t),a=Ee(t)&&qu(t),o=rt(t),s=Ot(e,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ne(t)!=="body"||Hr(o))&&(i=Gu(t)),Ee(t)?(l=Ot(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=jr(o))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Xu(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&a(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function Ju(e){var t=Xu(e);return su.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function Zu(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Qu(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Na={placement:"bottom",modifiers:[],strategy:"absolute"};function Va(){for(var e=arguments.length,t=new Array(e),n=0;n * * Copyright (c) 2014-2017, Jon Schlinkert. diff --git a/vue/dist/assets/TopicSearch-e239a03c.css b/vue/dist/assets/TopicSearch-179508c7.css similarity index 93% rename from vue/dist/assets/TopicSearch-e239a03c.css rename to vue/dist/assets/TopicSearch-179508c7.css index daffc96..bd4bcfa 100644 --- a/vue/dist/assets/TopicSearch-e239a03c.css +++ b/vue/dist/assets/TopicSearch-179508c7.css @@ -1 +1 @@ -.ant-progress{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block}.ant-progress-line{position:relative;width:100%;font-size:14px}.ant-progress-steps{display:inline-block}.ant-progress-steps-outer{display:flex;flex-direction:row;align-items:center}.ant-progress-steps-item{flex-shrink:0;min-width:2px;margin-right:2px;background:#f3f3f3;transition:all .3s}.ant-progress-steps-item-active{background:#1890ff}.ant-progress-small.ant-progress-line,.ant-progress-small.ant-progress-line .ant-progress-text .anticon{font-size:12px}.ant-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0}.ant-progress-show-info .ant-progress-outer{margin-right:calc(-2em - 8px);padding-right:calc(2em + 8px)}.ant-progress-inner{position:relative;display:inline-block;width:100%;overflow:hidden;vertical-align:middle;background-color:#f5f5f5;border-radius:100px}.ant-progress-circle-trail{stroke:#f5f5f5}.ant-progress-circle-path{animation:ant-progress-appear .3s}.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#1890ff}.ant-progress-success-bg,.ant-progress-bg{position:relative;background-color:#1890ff;border-radius:100px;transition:all .4s cubic-bezier(.08,.82,.17,1) 0s}.ant-progress-success-bg{position:absolute;top:0;left:0;background-color:#52c41a}.ant-progress-text{display:inline-block;width:2em;margin-left:8px;color:#000000d9;font-size:1em;line-height:1;white-space:nowrap;text-align:left;vertical-align:middle;word-break:normal}.ant-progress-text .anticon{font-size:14px}.ant-progress-status-active .ant-progress-bg:before{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border-radius:10px;opacity:0;animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;content:""}.ant-progress-status-exception .ant-progress-bg{background-color:#ff4d4f}.ant-progress-status-exception .ant-progress-text{color:#ff4d4f}.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#ff4d4f}.ant-progress-status-success .ant-progress-bg{background-color:#52c41a}.ant-progress-status-success .ant-progress-text{color:#52c41a}.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#52c41a}.ant-progress-circle .ant-progress-inner{position:relative;line-height:1;background-color:transparent}.ant-progress-circle .ant-progress-text{position:absolute;top:50%;left:50%;width:100%;margin:0;padding:0;color:#000000d9;font-size:1em;line-height:1;white-space:normal;text-align:center;transform:translate(-50%,-50%)}.ant-progress-circle .ant-progress-text .anticon{font-size:1.16666667em}.ant-progress-circle.ant-progress-status-exception .ant-progress-text{color:#ff4d4f}.ant-progress-circle.ant-progress-status-success .ant-progress-text{color:#52c41a}@keyframes ant-progress-active{0%{transform:translate(-100%) scaleX(0);opacity:.1}20%{transform:translate(-100%) scaleX(0);opacity:.5}to{transform:translate(0) scaleX(1);opacity:0}}.ant-progress-rtl{direction:rtl}.ant-progress-rtl.ant-progress-show-info .ant-progress-outer{margin-right:0;margin-left:calc(-2em - 8px);padding-right:0;padding-left:calc(2em + 8px)}.ant-progress-rtl .ant-progress-success-bg{right:0;left:auto}.ant-progress-rtl.ant-progress-line .ant-progress-text,.ant-progress-rtl.ant-progress-steps .ant-progress-text{margin-right:8px;margin-left:0;text-align:right}.ant-space{display:inline-flex}.ant-space-vertical{flex-direction:column}.ant-space-align-center{align-items:center}.ant-space-align-start{align-items:flex-start}.ant-space-align-end{align-items:flex-end}.ant-space-align-baseline{align-items:baseline}.ant-space-item:empty{display:none}.ant-space-rtl{direction:rtl}.tag-hierarchy-graph[data-v-1071c65c]{width:100%;height:calc(100vh - 200px);min-height:600px;position:relative;background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);border-radius:8px;overflow:hidden}.loading-container[data-v-1071c65c],.error-container[data-v-1071c65c]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#fff}.loading-text[data-v-1071c65c]{margin-top:16px;font-size:14px;color:#aaa}.graph-container[data-v-1071c65c]{width:100%;height:100%;position:relative}.control-panel[data-v-1071c65c]{position:absolute;top:16px;left:16px;z-index:10;background:rgba(0,0,0,.7);padding:8px 12px;border-radius:6px;backdrop-filter:blur(10px)}.chart-container[data-v-1071c65c]{width:100%;height:100%}.topic-search[data-v-174295e7]{height:var(--pane-max-height);overflow:auto;padding:12px}.toolbar[data-v-174295e7]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--zp-primary-background);border-radius:12px}.left[data-v-174295e7]{display:flex;align-items:center;gap:8px}.title[data-v-174295e7]{display:flex;align-items:center;gap:8px;font-weight:700}.right[data-v-174295e7]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.label[data-v-174295e7]{color:#888}.guide[data-v-174295e7]{display:flex;flex-direction:column;gap:8px;padding:10px 12px;background:var(--zp-primary-background);border-radius:12px;border:1px solid rgba(0,0,0,.06)}.guide-row[data-v-174295e7]{display:flex;align-items:center;gap:10px}.guide-hint[data-v-174295e7]{margin-top:4px;display:flex;align-items:center;gap:10px;opacity:.85}.guide-icon[data-v-174295e7]{width:22px;text-align:center;flex:0 0 22px}.guide-text[data-v-174295e7]{flex:1 1 auto;min-width:0;color:#000000bf}.grid[data-v-174295e7]{margin-top:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.card[data-v-174295e7]{background:var(--zp-primary-background);border-radius:12px;padding:10px 12px;cursor:pointer;border:1px solid rgba(0,0,0,.06)}.card[data-v-174295e7]:hover{border-color:#1890ff99}.card-top[data-v-174295e7]{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-title[data-v-174295e7]{font-weight:700}.card-count[data-v-174295e7]{min-width:28px;text-align:right;opacity:.75}.card-desc[data-v-174295e7]{margin-top:6px;color:#666;font-size:12px}.empty[data-v-174295e7]{height:calc(var(--pane-max-height) - 72px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.hint[data-v-174295e7]{font-size:16px;opacity:.75} +.ant-progress{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block}.ant-progress-line{position:relative;width:100%;font-size:14px}.ant-progress-steps{display:inline-block}.ant-progress-steps-outer{display:flex;flex-direction:row;align-items:center}.ant-progress-steps-item{flex-shrink:0;min-width:2px;margin-right:2px;background:#f3f3f3;transition:all .3s}.ant-progress-steps-item-active{background:#1890ff}.ant-progress-small.ant-progress-line,.ant-progress-small.ant-progress-line .ant-progress-text .anticon{font-size:12px}.ant-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0}.ant-progress-show-info .ant-progress-outer{margin-right:calc(-2em - 8px);padding-right:calc(2em + 8px)}.ant-progress-inner{position:relative;display:inline-block;width:100%;overflow:hidden;vertical-align:middle;background-color:#f5f5f5;border-radius:100px}.ant-progress-circle-trail{stroke:#f5f5f5}.ant-progress-circle-path{animation:ant-progress-appear .3s}.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#1890ff}.ant-progress-success-bg,.ant-progress-bg{position:relative;background-color:#1890ff;border-radius:100px;transition:all .4s cubic-bezier(.08,.82,.17,1) 0s}.ant-progress-success-bg{position:absolute;top:0;left:0;background-color:#52c41a}.ant-progress-text{display:inline-block;width:2em;margin-left:8px;color:#000000d9;font-size:1em;line-height:1;white-space:nowrap;text-align:left;vertical-align:middle;word-break:normal}.ant-progress-text .anticon{font-size:14px}.ant-progress-status-active .ant-progress-bg:before{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border-radius:10px;opacity:0;animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;content:""}.ant-progress-status-exception .ant-progress-bg{background-color:#ff4d4f}.ant-progress-status-exception .ant-progress-text{color:#ff4d4f}.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#ff4d4f}.ant-progress-status-success .ant-progress-bg{background-color:#52c41a}.ant-progress-status-success .ant-progress-text{color:#52c41a}.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#52c41a}.ant-progress-circle .ant-progress-inner{position:relative;line-height:1;background-color:transparent}.ant-progress-circle .ant-progress-text{position:absolute;top:50%;left:50%;width:100%;margin:0;padding:0;color:#000000d9;font-size:1em;line-height:1;white-space:normal;text-align:center;transform:translate(-50%,-50%)}.ant-progress-circle .ant-progress-text .anticon{font-size:1.16666667em}.ant-progress-circle.ant-progress-status-exception .ant-progress-text{color:#ff4d4f}.ant-progress-circle.ant-progress-status-success .ant-progress-text{color:#52c41a}@keyframes ant-progress-active{0%{transform:translate(-100%) scaleX(0);opacity:.1}20%{transform:translate(-100%) scaleX(0);opacity:.5}to{transform:translate(0) scaleX(1);opacity:0}}.ant-progress-rtl{direction:rtl}.ant-progress-rtl.ant-progress-show-info .ant-progress-outer{margin-right:0;margin-left:calc(-2em - 8px);padding-right:0;padding-left:calc(2em + 8px)}.ant-progress-rtl .ant-progress-success-bg{right:0;left:auto}.ant-progress-rtl.ant-progress-line .ant-progress-text,.ant-progress-rtl.ant-progress-steps .ant-progress-text{margin-right:8px;margin-left:0;text-align:right}.ant-space{display:inline-flex}.ant-space-vertical{flex-direction:column}.ant-space-align-center{align-items:center}.ant-space-align-start{align-items:flex-start}.ant-space-align-end{align-items:flex-end}.ant-space-align-baseline{align-items:baseline}.ant-space-item:empty{display:none}.ant-space-rtl{direction:rtl}.tag-hierarchy-graph[data-v-4ad8ae8c]{width:100%;height:calc(100vh - 200px);min-height:600px;position:relative;background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);border-radius:8px;overflow:hidden}.loading-container[data-v-4ad8ae8c],.error-container[data-v-4ad8ae8c]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#fff}.loading-text[data-v-4ad8ae8c]{margin-top:16px;font-size:14px;color:#aaa}.graph-container[data-v-4ad8ae8c]{width:100%;height:100%;position:relative}.control-panel[data-v-4ad8ae8c]{position:absolute;top:16px;left:16px;z-index:10;background:rgba(0,0,0,.7);padding:8px 12px;border-radius:6px;backdrop-filter:blur(10px)}.chart-container[data-v-4ad8ae8c]{width:100%;height:100%}.topic-search[data-v-174295e7]{height:var(--pane-max-height);overflow:auto;padding:12px}.toolbar[data-v-174295e7]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--zp-primary-background);border-radius:12px}.left[data-v-174295e7]{display:flex;align-items:center;gap:8px}.title[data-v-174295e7]{display:flex;align-items:center;gap:8px;font-weight:700}.right[data-v-174295e7]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.label[data-v-174295e7]{color:#888}.guide[data-v-174295e7]{display:flex;flex-direction:column;gap:8px;padding:10px 12px;background:var(--zp-primary-background);border-radius:12px;border:1px solid rgba(0,0,0,.06)}.guide-row[data-v-174295e7]{display:flex;align-items:center;gap:10px}.guide-hint[data-v-174295e7]{margin-top:4px;display:flex;align-items:center;gap:10px;opacity:.85}.guide-icon[data-v-174295e7]{width:22px;text-align:center;flex:0 0 22px}.guide-text[data-v-174295e7]{flex:1 1 auto;min-width:0;color:#000000bf}.grid[data-v-174295e7]{margin-top:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.card[data-v-174295e7]{background:var(--zp-primary-background);border-radius:12px;padding:10px 12px;cursor:pointer;border:1px solid rgba(0,0,0,.06)}.card[data-v-174295e7]:hover{border-color:#1890ff99}.card-top[data-v-174295e7]{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-title[data-v-174295e7]{font-weight:700}.card-count[data-v-174295e7]{min-width:28px;text-align:right;opacity:.75}.card-desc[data-v-174295e7]{margin-top:6px;color:#666;font-size:12px}.empty[data-v-174295e7]{height:calc(var(--pane-max-height) - 72px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.hint[data-v-174295e7]{font-size:16px;opacity:.75} diff --git a/vue/dist/assets/TopicSearch-4fe24c7f.js b/vue/dist/assets/TopicSearch-1abffd49.js similarity index 65% rename from vue/dist/assets/TopicSearch-4fe24c7f.js rename to vue/dist/assets/TopicSearch-1abffd49.js index 172872e..61e0bf9 100644 --- a/vue/dist/assets/TopicSearch-4fe24c7f.js +++ b/vue/dist/assets/TopicSearch-1abffd49.js @@ -1,6 +1,6 @@ -import{ay as Jl,P as zl,bK as kA,d as Kn,G as zt,a as Me,c as _t,Z as Lc,_ as RA,cz as rg,r as $t,cA as BR,bC as EA,cB as zR,b7 as OA,h as pr,u as NA,be as VR,cb as GR,bc as FR,ca as HR,cw as BA,m as fs,an as WR,ao as $R,B as Wt,az as Ch,o as zA,I as UR,U as Kt,V as Re,W as Ct,Y as Bt,a4 as Ae,a3 as se,X as Ke,cp as VA,a2 as pa,cC as YR,cD as ZR,$ as vr,z as $a,cE as XR,aO as GA,ah as FA,aj as HA,ak as WA,aP as $A,aQ as UA,a0 as YA,a1 as qR,J as KR,bk as jR,a9 as JR,a8 as QR,cF as tE,cG as eE,cH as rE,ck as aE,cI as nE,cJ as iE,R as Ao,T as oE,cK as sE}from"./index-0205daf8.js";import{u as lE}from"./index-859cb083.js";import{S as ZA}from"./index-af89284c.js";import{_ as uE}from"./index-728b29ca.js";import{_ as XA}from"./index-6a8edab1.js";/* empty css */import{_ as qA}from"./index-6d8e3499.js";var KA=Jl("normal","exception","active","success"),fE=Jl("line","circle","dashboard"),cE=Jl("default","small"),Bv=function(){return{prefixCls:String,type:zl.oneOf(fE),percent:Number,format:{type:Function},status:zl.oneOf(KA),showInfo:{type:Boolean,default:void 0},strokeWidth:Number,strokeLinecap:String,strokeColor:{type:[String,Object],default:void 0},trailColor:String,width:Number,success:{type:Object,default:function(){return{}}},gapDegree:Number,gapPosition:String,size:zl.oneOf(cE),steps:Number,successPercent:Number,title:String}};function Ui(r){return!r||r<0?0:r>100?100:r}function Ic(r){var t=r.success,e=r.successPercent,a=e;return t&&"progress"in t&&(kA(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),a=t.progress),t&&"percent"in t&&(a=t.percent),a}var vE=["from","to","direction"],hE=function(){return Me(Me({},Bv()),{},{prefixCls:String,direction:{type:String}})},dE=function(t){var e=[];return Object.keys(t).forEach(function(a){var n=parseFloat(a.replace(/%/g,""));isNaN(n)||e.push({key:n,value:t[a]})}),e=e.sort(function(a,n){return a.key-n.key}),e.map(function(a){var n=a.key,i=a.value;return"".concat(i," ").concat(n,"%")}).join(", ")},pE=function(t,e){var a=t.from,n=a===void 0?rg.blue:a,i=t.to,o=i===void 0?rg.blue:i,s=t.direction,l=s===void 0?e==="rtl"?"to left":"to right":s,u=RA(t,vE);if(Object.keys(u).length!==0){var f=dE(u);return{backgroundImage:"linear-gradient(".concat(l,", ").concat(f,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(n,", ").concat(o,")")}};const gE=Kn({compatConfig:{MODE:3},name:"Line",props:hE(),setup:function(t,e){var a=e.slots,n=zt(function(){var u=t.strokeColor,f=t.direction;return u&&typeof u!="string"?pE(u,f):{background:u}}),i=zt(function(){return t.trailColor?{backgroundColor:t.trailColor}:void 0}),o=zt(function(){var u=t.percent,f=t.strokeWidth,c=t.strokeLinecap,v=t.size;return Me({width:"".concat(Ui(u),"%"),height:"".concat(f||(v==="small"?6:8),"px"),borderRadius:c==="square"?0:""},n.value)}),s=zt(function(){return Ic(t)}),l=zt(function(){var u=t.strokeWidth,f=t.size,c=t.strokeLinecap,v=t.success;return{width:"".concat(Ui(s.value),"%"),height:"".concat(u||(f==="small"?6:8),"px"),borderRadius:c==="square"?0:"",backgroundColor:v==null?void 0:v.strokeColor}});return function(){var u;return _t(Lc,null,[_t("div",{class:"".concat(t.prefixCls,"-outer")},[_t("div",{class:"".concat(t.prefixCls,"-inner"),style:i.value},[_t("div",{class:"".concat(t.prefixCls,"-bg"),style:o.value},null),s.value!==void 0?_t("div",{class:"".concat(t.prefixCls,"-success-bg"),style:l.value},null):null])]),(u=a.default)===null||u===void 0?void 0:u.call(a)])}}});var yE={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},mE=function(t){var e=$t(null);return BR(function(){var a=Date.now(),n=!1;t.value.forEach(function(i){var o=(i==null?void 0:i.$el)||i;if(o){n=!0;var s=o.style;s.transitionDuration=".3s, .3s, .3s, .06s",e.value&&a-e.value<100&&(s.transitionDuration="0s, 0s")}}),n&&(e.value=Date.now())}),t},_E={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},SE=["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"],W_=0;function $_(r){return+r.replace("%","")}function U_(r){return Array.isArray(r)?r:[r]}function Y_(r,t,e,a){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,o=50-a/2,s=0,l=-o,u=0,f=-2*o;switch(i){case"left":s=-o,l=0,u=2*o,f=0;break;case"right":s=o,l=0,u=-2*o,f=0;break;case"bottom":l=o,f=2*o;break}var c="M 50,50 m ".concat(s,",").concat(l,` +import{ay as eu,P as Fl,bK as kA,d as Kn,G as Vt,a as Me,c as yt,Z as kc,_ as RA,cz as ig,r as $t,cA as BR,bC as EA,cB as zR,b7 as OA,h as yr,u as NA,be as VR,cb as GR,bc as FR,ca as HR,cw as BA,m as hs,an as WR,ao as $R,B as Wt,az as Dh,o as zA,I as UR,U as jt,V as Re,W as Ct,Y as zt,a4 as Ae,a3 as se,X as Je,cp as VA,a2 as ga,cC as YR,cD as ZR,$ as dr,z as Xr,cE as XR,aO as GA,ah as FA,aj as HA,ak as WA,aP as $A,aQ as UA,cF as qR,a0 as YA,a1 as KR,J as jR,bk as JR,a9 as QR,a8 as tE,cG as eE,cH as rE,cI as aE,ck as nE,cJ as iE,cK as oE,R as Lo,T as sE,cL as lE}from"./index-157194fb.js";import{u as uE}from"./index-1c4f06bb.js";import{S as ZA}from"./index-e33c98d2.js";import{_ as fE}from"./index-89286149.js";import{_ as XA}from"./index-8e3285c7.js";/* empty css */import{_ as qA}from"./index-8929347d.js";var KA=eu("normal","exception","active","success"),cE=eu("line","circle","dashboard"),vE=eu("default","small"),Gv=function(){return{prefixCls:String,type:Fl.oneOf(cE),percent:Number,format:{type:Function},status:Fl.oneOf(KA),showInfo:{type:Boolean,default:void 0},strokeWidth:Number,strokeLinecap:String,strokeColor:{type:[String,Object],default:void 0},trailColor:String,width:Number,success:{type:Object,default:function(){return{}}},gapDegree:Number,gapPosition:String,size:Fl.oneOf(vE),steps:Number,successPercent:Number,title:String}};function Yi(r){return!r||r<0?0:r>100?100:r}function Rc(r){var t=r.success,e=r.successPercent,a=e;return t&&"progress"in t&&(kA(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),a=t.progress),t&&"percent"in t&&(a=t.percent),a}var hE=["from","to","direction"],dE=function(){return Me(Me({},Gv()),{},{prefixCls:String,direction:{type:String}})},pE=function(t){var e=[];return Object.keys(t).forEach(function(a){var n=parseFloat(a.replace(/%/g,""));isNaN(n)||e.push({key:n,value:t[a]})}),e=e.sort(function(a,n){return a.key-n.key}),e.map(function(a){var n=a.key,i=a.value;return"".concat(i," ").concat(n,"%")}).join(", ")},gE=function(t,e){var a=t.from,n=a===void 0?ig.blue:a,i=t.to,o=i===void 0?ig.blue:i,s=t.direction,l=s===void 0?e==="rtl"?"to left":"to right":s,u=RA(t,hE);if(Object.keys(u).length!==0){var f=pE(u);return{backgroundImage:"linear-gradient(".concat(l,", ").concat(f,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(n,", ").concat(o,")")}};const yE=Kn({compatConfig:{MODE:3},name:"Line",props:dE(),setup:function(t,e){var a=e.slots,n=Vt(function(){var u=t.strokeColor,f=t.direction;return u&&typeof u!="string"?gE(u,f):{background:u}}),i=Vt(function(){return t.trailColor?{backgroundColor:t.trailColor}:void 0}),o=Vt(function(){var u=t.percent,f=t.strokeWidth,c=t.strokeLinecap,v=t.size;return Me({width:"".concat(Yi(u),"%"),height:"".concat(f||(v==="small"?6:8),"px"),borderRadius:c==="square"?0:""},n.value)}),s=Vt(function(){return Rc(t)}),l=Vt(function(){var u=t.strokeWidth,f=t.size,c=t.strokeLinecap,v=t.success;return{width:"".concat(Yi(s.value),"%"),height:"".concat(u||(f==="small"?6:8),"px"),borderRadius:c==="square"?0:"",backgroundColor:v==null?void 0:v.strokeColor}});return function(){var u;return yt(kc,null,[yt("div",{class:"".concat(t.prefixCls,"-outer")},[yt("div",{class:"".concat(t.prefixCls,"-inner"),style:i.value},[yt("div",{class:"".concat(t.prefixCls,"-bg"),style:o.value},null),s.value!==void 0?yt("div",{class:"".concat(t.prefixCls,"-success-bg"),style:l.value},null):null])]),(u=a.default)===null||u===void 0?void 0:u.call(a)])}}});var mE={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},_E=function(t){var e=$t(null);return BR(function(){var a=Date.now(),n=!1;t.value.forEach(function(i){var o=(i==null?void 0:i.$el)||i;if(o){n=!0;var s=o.style;s.transitionDuration=".3s, .3s, .3s, .06s",e.value&&a-e.value<100&&(s.transitionDuration="0s, 0s")}}),n&&(e.value=Date.now())}),t},SE={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},xE=["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"],W_=0;function $_(r){return+r.replace("%","")}function U_(r){return Array.isArray(r)?r:[r]}function Y_(r,t,e,a){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,o=50-a/2,s=0,l=-o,u=0,f=-2*o;switch(i){case"left":s=-o,l=0,u=2*o,f=0;break;case"right":s=o,l=0,u=-2*o,f=0;break;case"bottom":l=o,f=2*o;break}var c="M 50,50 m ".concat(s,",").concat(l,` a `).concat(o,",").concat(o," 0 1 1 ").concat(u,",").concat(-f,` - a `).concat(o,",").concat(o," 0 1 1 ").concat(-u,",").concat(f),v=Math.PI*2*o,h={stroke:e,strokeDasharray:"".concat(t/100*(v-n),"px ").concat(v,"px"),strokeDashoffset:"-".concat(n/2+r/100*(v-n),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:c,pathStyle:h}}const xE=Kn({compatConfig:{MODE:3},name:"VCCircle",props:EA(_E,yE),setup:function(t){W_+=1;var e=$t(W_),a=zt(function(){return U_(t.percent)}),n=zt(function(){return U_(t.strokeColor)}),i=zR(),o=OA(i,2),s=o[0],l=o[1];mE(l);var u=function(){var c=t.prefixCls,v=t.strokeWidth,h=t.strokeLinecap,d=t.gapDegree,p=t.gapPosition,g=0;return a.value.map(function(y,m){var _=n.value[m]||n.value[n.value.length-1],S=Object.prototype.toString.call(_)==="[object Object]"?"url(#".concat(c,"-gradient-").concat(e.value,")"):"",b=Y_(g,y,_,v,d,p),x=b.pathString,w=b.pathStyle;g+=y;var T={key:m,d:x,stroke:S,"stroke-linecap":h,"stroke-width":v,opacity:y===0?0:1,"fill-opacity":"0",class:"".concat(c,"-circle-path"),style:w};return _t("path",Me({ref:s(m)},T),null)})};return function(){var f=t.prefixCls,c=t.strokeWidth,v=t.trailWidth,h=t.gapDegree,d=t.gapPosition,p=t.trailColor,g=t.strokeLinecap;t.strokeColor;var y=RA(t,SE),m=Y_(0,100,p,c,h,d),_=m.pathString,S=m.pathStyle;delete y.percent;var b=n.value.find(function(w){return Object.prototype.toString.call(w)==="[object Object]"}),x={d:_,stroke:p,"stroke-linecap":g,"stroke-width":v||c,"fill-opacity":"0",class:"".concat(f,"-circle-trail"),style:S};return _t("svg",Me({class:"".concat(f,"-circle"),viewBox:"0 0 100 100"},y),[b&&_t("defs",null,[_t("linearGradient",{id:"".concat(f,"-gradient-").concat(e.value),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(b).sort(function(w,T){return $_(w)-$_(T)}).map(function(w,T){return _t("stop",{key:T,offset:w,"stop-color":b[w]},null)})])]),_t("path",x,null),u().reverse()])}}});function bE(r){var t=r.percent,e=r.success,a=r.successPercent,n=Ui(Ic({success:e,successPercent:a}));return[n,Ui(Ui(t)-n)]}function wE(r){var t=r.success,e=t===void 0?{}:t,a=r.strokeColor,n=e.strokeColor;return[n||rg.green,a||null]}const TE=Kn({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:Bv(),setup:function(t,e){var a=e.slots,n=zt(function(){if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),i=zt(function(){var v=t.width||120;return{width:typeof v=="number"?"".concat(v,"px"):v,height:typeof v=="number"?"".concat(v,"px"):v,fontSize:"".concat(v*.15+6,"px")}}),o=zt(function(){return t.strokeWidth||6}),s=zt(function(){return t.gapPosition||t.type==="dashboard"&&"bottom"||"top"}),l=zt(function(){return bE(t)}),u=zt(function(){return Object.prototype.toString.call(t.strokeColor)==="[object Object]"}),f=zt(function(){return wE({success:t.success,strokeColor:t.strokeColor})}),c=zt(function(){var v;return v={},pr(v,"".concat(t.prefixCls,"-inner"),!0),pr(v,"".concat(t.prefixCls,"-circle-gradient"),u.value),v});return function(){var v;return _t("div",{class:c.value,style:i.value},[_t(xE,{percent:l.value,strokeWidth:o.value,trailWidth:o.value,strokeColor:f.value,strokeLinecap:t.strokeLinecap,trailColor:t.trailColor,prefixCls:t.prefixCls,gapDegree:n.value,gapPosition:s.value},null),(v=a.default)===null||v===void 0?void 0:v.call(a)])}}});var CE=function(){return Me(Me({},Bv()),{},{steps:Number,size:{type:String},strokeColor:String,trailColor:String})};const AE=Kn({compatConfig:{MODE:3},name:"Steps",props:CE(),setup:function(t,e){var a=e.slots,n=zt(function(){return Math.round(t.steps*((t.percent||0)/100))}),i=zt(function(){return t.size==="small"?2:14}),o=zt(function(){for(var s=t.steps,l=t.strokeWidth,u=l===void 0?8:l,f=t.strokeColor,c=t.trailColor,v=t.prefixCls,h=[],d=0;d=100?"success":c||"normal"}),f=function(){var v=t.showInfo,h=t.format,d=t.type,p=t.percent,g=t.title,y=Ic(t);if(!v)return null;var m,_=h||(a==null?void 0:a.format)||function(b){return"".concat(b,"%")},S=d==="line";return h||a!=null&&a.format||u.value!=="exception"&&u.value!=="success"?m=_(Ui(p),Ui(y)):u.value==="exception"?m=S?_t(VR,null,null):_t(GR,null,null):u.value==="success"&&(m=S?_t(FR,null,null):_t(HR,null,null)),_t("span",{class:"".concat(i.value,"-text"),title:g===void 0&&typeof m=="string"?m:void 0},[m])};return function(){var c=t.type,v=t.steps,h=t.strokeColor,d=t.title,p=f(),g;c==="line"?g=v?_t(AE,Me(Me({},t),{},{strokeColor:typeof h=="string"?h:void 0,prefixCls:i.value,steps:v}),{default:function(){return[p]}}):_t(gE,Me(Me({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}):(c==="circle"||c==="dashboard")&&(g=_t(TE,Me(Me({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}));var y=Me(Me({},s.value),{},pr({},"".concat(i.value,"-status-").concat(u.value),!0));return _t("div",{class:y,title:d},[g])}}}),DE=BA(ME);var LE={small:8,middle:16,large:24},IE=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:zl.oneOf(Jl("horizontal","vertical")).def("horizontal"),align:zl.oneOf(Jl("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function PE(r){return typeof r=="string"?LE[r]:r||0}var kE=Kn({compatConfig:{MODE:3},name:"ASpace",props:IE(),slots:["split"],setup:function(t,e){var a=e.slots,n=NA("space",t),i=n.prefixCls,o=n.space,s=n.direction,l=lE(),u=zt(function(){var g,y,m;return(g=(y=t.size)!==null&&y!==void 0?y:(m=o.value)===null||m===void 0?void 0:m.size)!==null&&g!==void 0?g:"small"}),f=$t(),c=$t();fs(u,function(){var g=(Array.isArray(u.value)?u.value:[u.value,u.value]).map(function(m){return PE(m)}),y=OA(g,2);f.value=y[0],c.value=y[1]},{immediate:!0});var v=zt(function(){return t.align===void 0&&t.direction==="horizontal"?"center":t.align}),h=zt(function(){var g;return WR(i.value,"".concat(i.value,"-").concat(t.direction),(g={},pr(g,"".concat(i.value,"-rtl"),s.value==="rtl"),pr(g,"".concat(i.value,"-align-").concat(v.value),v.value),g))}),d=zt(function(){return s.value==="rtl"?"marginLeft":"marginRight"}),p=zt(function(){var g={};return l.value&&(g.columnGap="".concat(f.value,"px"),g.rowGap="".concat(c.value,"px")),Me(Me({},g),t.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-c.value,"px")})});return function(){var g,y,m=t.wrap,_=t.direction,S=_===void 0?"horizontal":_,b=(g=a.default)===null||g===void 0?void 0:g.call(a),x=$R(b),w=x.length;if(w===0)return null;var T=(y=a.split)===null||y===void 0?void 0:y.call(a),C="".concat(i.value,"-item"),M=f.value,D=w-1;return _t("div",{class:h.value,style:p.value},[x.map(function(I,L){var k=b.indexOf(I),R={};return l.value||(S==="vertical"?L=100?"success":c||"normal"}),f=function(){var v=t.showInfo,h=t.format,d=t.type,p=t.percent,g=t.title,y=Rc(t);if(!v)return null;var m,_=h||(a==null?void 0:a.format)||function(b){return"".concat(b,"%")},S=d==="line";return h||a!=null&&a.format||u.value!=="exception"&&u.value!=="success"?m=_(Yi(p),Yi(y)):u.value==="exception"?m=S?yt(VR,null,null):yt(GR,null,null):u.value==="success"&&(m=S?yt(FR,null,null):yt(HR,null,null)),yt("span",{class:"".concat(i.value,"-text"),title:g===void 0&&typeof m=="string"?m:void 0},[m])};return function(){var c=t.type,v=t.steps,h=t.strokeColor,d=t.title,p=f(),g;c==="line"?g=v?yt(ME,Me(Me({},t),{},{strokeColor:typeof h=="string"?h:void 0,prefixCls:i.value,steps:v}),{default:function(){return[p]}}):yt(yE,Me(Me({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}):(c==="circle"||c==="dashboard")&&(g=yt(CE,Me(Me({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}));var y=Me(Me({},s.value),{},yr({},"".concat(i.value,"-status-").concat(u.value),!0));return yt("div",{class:y,title:d},[g])}}}),LE=BA(DE);var IE={small:8,middle:16,large:24},PE=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:Fl.oneOf(eu("horizontal","vertical")).def("horizontal"),align:Fl.oneOf(eu("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function kE(r){return typeof r=="string"?IE[r]:r||0}var RE=Kn({compatConfig:{MODE:3},name:"ASpace",props:PE(),slots:["split"],setup:function(t,e){var a=e.slots,n=NA("space",t),i=n.prefixCls,o=n.space,s=n.direction,l=uE(),u=Vt(function(){var g,y,m;return(g=(y=t.size)!==null&&y!==void 0?y:(m=o.value)===null||m===void 0?void 0:m.size)!==null&&g!==void 0?g:"small"}),f=$t(),c=$t();hs(u,function(){var g=(Array.isArray(u.value)?u.value:[u.value,u.value]).map(function(m){return kE(m)}),y=OA(g,2);f.value=y[0],c.value=y[1]},{immediate:!0});var v=Vt(function(){return t.align===void 0&&t.direction==="horizontal"?"center":t.align}),h=Vt(function(){var g;return WR(i.value,"".concat(i.value,"-").concat(t.direction),(g={},yr(g,"".concat(i.value,"-rtl"),s.value==="rtl"),yr(g,"".concat(i.value,"-align-").concat(v.value),v.value),g))}),d=Vt(function(){return s.value==="rtl"?"marginLeft":"marginRight"}),p=Vt(function(){var g={};return l.value&&(g.columnGap="".concat(f.value,"px"),g.rowGap="".concat(c.value,"px")),Me(Me({},g),t.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-c.value,"px")})});return function(){var g,y,m=t.wrap,_=t.direction,S=_===void 0?"horizontal":_,b=(g=a.default)===null||g===void 0?void 0:g.call(a),x=$R(b),w=x.length;if(w===0)return null;var T=(y=a.split)===null||y===void 0?void 0:y.call(a),C="".concat(i.value,"-item"),M=f.value,D=w-1;return yt("div",{class:h.value,style:p.value},[x.map(function(I,L){var k=b.indexOf(I),R={};return l.value||(S==="vertical"?L"u"&&typeof self<"u"?xn.worker=!0:!xn.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(xn.node=!0,xn.svgSupported=!0):NE(navigator.userAgent,xn);function NE(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}const Nt=xn;var dm=12,jA="sans-serif",Qa=dm+"px "+jA,BE=20,zE=100,VE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function GE(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){A(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function lO(r,t,e){for(var a=e?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&i&&v===i[c]&&h===i[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=e?K_(s,o):K_(o,s))}function nM(r){return r.nodeName.toUpperCase()==="CANVAS"}var uO=/([&<>"'])/g,fO={"&":"&","<":"<",">":">",'"':""","'":"'"};function $e(r){return r==null?"":(r+"").replace(uO,function(t,e){return fO[e]})}var cO=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Mh=[],vO=Nt.browser.firefox&&+Nt.browser.version.split(".")[0]<39;function fg(r,t,e,a){return e=e||{},a?j_(r,t,e):vO&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):j_(r,t,e),e}function j_(r,t,e){if(Nt.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(nM(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(ug(Mh,r,a,n)){e.zrX=Mh[0],e.zrY=Mh[1];return}}e.zrX=e.zrY=0}function xm(r){return r||window.event}function Dr(r,t,e){if(t=xm(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&fg(r,o,t,e)}else{fg(r,t,t,e);var i=hO(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&cO.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function hO(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var n=Math.abs(a!==0?a:e),i=a>0?-1:a<0?1:e>0?-1:1;return 3*n*i}function cg(r,t,e,a){r.addEventListener(t,e,a)}function dO(r,t,e,a){r.removeEventListener(t,e,a)}var tn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function J_(r){return r.which===2||r.which===3}var pO=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},o=0,s=n.length;o1&&a&&a.length>1){var i=Q_(a)/Q_(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=gO(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Oe(){return[1,0,0,1,0,0]}function Hv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Wv(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Aa(r,t,e){var a=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Pa(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function jn(r,t,e,a){a===void 0&&(a=[0,0]);var n=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),c=Math.cos(e);return r[0]=n*c+s*f,r[1]=-n*f+s*c,r[2]=i*c+l*f,r[3]=-i*f+c*l,r[4]=c*(o-a[0])+f*(u-a[1])+a[0],r[5]=c*(u-a[1])-f*(o-a[0])+a[1],r}function bm(r,t,e){var a=e[0],n=e[1];return r[0]=t[0]*a,r[1]=t[1]*n,r[2]=t[2]*a,r[3]=t[3]*n,r[4]=t[4]*a,r[5]=t[5]*n,r}function Qr(r,t){var e=t[0],a=t[2],n=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-e*s)*l,r):null}function yO(r){var t=Oe();return Wv(t,r),t}var mO=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,a){t.x=e,t.y=a},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,n){t.x=e.x+a.x*n,t.y=e.y+a.y*n},r.lerp=function(t,e,a,n){var i=1-n;t.x=i*e.x+n*a.x,t.y=i*e.y+n*a.y},r}();const ct=mO;var zi=Math.min,as=Math.max,vg=Math.abs,t1=["x","y"],_O=["width","height"],ei=new ct,ri=new ct,ai=new ct,ni=new ct,dr=iM(),Cl=dr.minTv,hg=dr.maxTv,Gl=[0,0],wm=function(){function r(t,e,a,n){r.set(this,t,e,a,n)}return r.set=function(t,e,a,n,i){return n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),t.x=e,t.y=a,t.width=n,t.height=i,t},r.prototype.union=function(t){var e=zi(t.x,this.x),a=zi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=as(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=as(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,a=t.width/e.width,n=t.height/e.height,i=Oe();return Pa(i,i,[-e.x,-e.y]),bm(i,i,[a,n]),Pa(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e,a){return r.intersect(this,t,e,a)},r.intersect=function(t,e,a,n){a&&ct.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(SO,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(xO,e.x,e.y,e.width,e.height));var s=!!a;dr.reset(n,s);var l=dr.touchThreshold,u=t.x+l,f=t.x+t.width-l,c=t.y+l,v=t.y+t.height-l,h=e.x+l,d=e.x+e.width-l,p=e.y+l,g=e.y+e.height-l;if(u>f||c>v||h>d||p>g)return!1;var y=!(f=t.x&&e<=t.x+t.width&&a>=t.y&&a<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];t.x=e.x*n+o,t.y=e.y*i+s,t.width=e.width*n,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ei.x=ai.x=e.x,ei.y=ni.y=e.y,ri.x=ni.x=e.x+e.width,ri.y=ai.y=e.y+e.height,ei.transform(a),ni.transform(a),ri.transform(a),ai.transform(a),t.x=zi(ei.x,ri.x,ai.x,ni.x),t.y=zi(ei.y,ri.y,ai.y,ni.y);var l=as(ei.x,ri.x,ai.x,ni.x),u=as(ei.y,ri.y,ai.y,ni.y);t.width=l-t.x,t.height=u-t.y},r}(),SO=new wm(0,0,0,0),xO=new wm(0,0,0,0);function e1(r,t,e,a,n,i,o,s){var l=vg(t-e),u=vg(a-r),f=zi(l,u),c=t1[n],v=t1[1-n],h=_O[n];t=u||!dr.bidirectional)&&(Cl[c]=-u,Cl[v]=0,dr.useDir&&dr.calcDirMTV())))}function iM(){var r=0,t=new ct,e=new ct,a={minTv:new ct,maxTv:new ct,useDir:!1,dirMinTv:new ct,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=as(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),e.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(n(f)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,n(e.x)&&n(e.y)){o.set(0,0);return}(a.bidirectional||t.dot(e)>0)&&e.len()=0;c--){var v=i[c];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Lh.copy(v.getBoundingRect()),v.transform&&Lh.applyTransform(v.transform),Lh.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function AO(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?oM:!0}return!1}function r1(r,t,e,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=AO(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==oM)){t.target=o;break}}}function lM(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}const MO=sM;var uM=32,Xs=7;function DO(r){for(var t=0;r>=uM;)t|=r&1,r>>=1;return r+t}function a1(r,t,e,a){var n=t+1;if(n===e)return 1;if(a(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function LO(r,t,e){for(e--;t>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Ih(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function Ph(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function IO(r,t){var e=Xs,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]n[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]=Xs||w>=Xs);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=e;;){var T=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){M=!0;break}while((T|C)=0;y--)r[x+y]=r[b+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(C=g-Ih(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y=Xs||C>=Xs);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),n1(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),n-=i,e+=i}while(n!==0);o.forceMergeRuns()}}var gr=1,Al=2,Qo=4,i1=!1;function kh(){i1||(i1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function o1(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var PO=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=o1}return r.prototype.traverse=function(t,e){for(var a=0;a=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const kO=PO;var fM;fM=Nt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const dg=fM;var cc={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-cc.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?cc.bounceIn(r*2)*.5:cc.bounceOut(r*2-1)*.5+.5}};const cM=cc;var Zu=Math.pow,On=Math.sqrt,Rc=1e-8,vM=1e-4,s1=On(3),Xu=1/3,ya=vo(),kr=vo(),cs=vo();function Ln(r){return r>-Rc&&rRc||r<-Rc}function De(r,t,e,a,n){var i=1-n;return i*i*(i*r+3*n*t)+n*n*(n*a+3*i*e)}function l1(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function Ec(r,t,e,a,n,i){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Ln(f)&&Ln(c))if(Ln(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=c*c-4*f*v;if(Ln(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=On(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-Zu(-_,Xu):_=Zu(_,Xu),S<0?S=-Zu(-S,Xu):S=Zu(S,Xu);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*On(f*f*f)),x=Math.acos(b)/3,w=On(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+s1*Math.sin(x)))/(3*o),C=(-s+w*(T-s1*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),C>=0&&C<=1&&(i[h++]=C)}}return h}function dM(r,t,e,a,n){var i=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if(Ln(o)){if(hM(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Ln(f))n[0]=-i/(2*o);else if(f>0){var c=On(f),u=(-i+c)/(2*o),v=(-i-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Hn(r,t,e,a,n,i){var o=(t-r)*n+r,s=(e-t)*n+t,l=(a-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=a}function pM(r,t,e,a,n,i,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,y;ya[0]=l,ya[1]=u;for(var m=0;m<1;m+=.05)kr[0]=De(r,e,n,o,m),kr[1]=De(t,a,i,s,m),g=Yi(ya,kr),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Ln(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=On(f),u=(-o+c)/(2*i),v=(-o-c)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function gM(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function tu(r,t,e,a,n){var i=(t-r)*a+r,o=(e-t)*a+t,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function yM(r,t,e,a,n,i,o,s,l){var u,f=.005,c=1/0;ya[0]=o,ya[1]=s;for(var v=0;v<1;v+=.05){kr[0]=Ee(r,e,n,v),kr[1]=Ee(t,a,i,v);var h=Yi(ya,kr);h=0&&h=1?1:Ec(0,a,i,1,l,s)&&De(0,n,o,1,s[0])}}}var BO=function(){function r(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||fe,this.ondestroy=t.ondestroy||fe,this.onrestart=t.onrestart||fe,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,n=t-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ot(t)?t:cM[t]||Tm(t)},r}();const zO=BO;var mM=function(){function r(t){this.value=t}return r}(),VO=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new mM(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),GO=function(){function r(t){this._list=new VO,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,n=this._map,i=null;if(n[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new mM(e),s.key=t,a.insertEntry(s),n[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const ys=GO;var u1={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 qr(r){return r=Math.round(r),r<0?0:r>255?255:r}function FO(r){return r=Math.round(r),r<0?0:r>360?360:r}function eu(r){return r<0?0:r>1?1:r}function Rh(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?qr(parseFloat(t)/100*255):qr(parseInt(t,10))}function Nn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?eu(parseFloat(t)/100):eu(parseFloat(t))}function Eh(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function In(r,t,e){return r+(t-r)*e}function Mr(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function gg(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var _M=new ys(20),qu=null;function Do(r,t){qu&&gg(qu,t),qu=_M.put(r,qu||t.slice())}function lr(r,t){if(r){t=t||[];var e=_M.get(r);if(e)return gg(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in u1)return gg(t,u1[a]),Do(r,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Mr(t,0,0,0,1);return}return Mr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Do(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Mr(t,0,0,0,1);return}return Mr(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Do(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Mr(t,+u[0],+u[1],+u[2],1):Mr(t,0,0,0,1);f=Nn(u.pop());case"rgb":if(u.length>=3)return Mr(t,Rh(u[0]),Rh(u[1]),Rh(u[2]),u.length===3?f:Nn(u[3])),Do(r,t),t;Mr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Mr(t,0,0,0,1);return}return u[3]=Nn(u[3]),yg(u,t),Do(r,t),t;case"hsl":if(u.length!==3){Mr(t,0,0,0,1);return}return yg(u,t),Do(r,t),t;default:return}}Mr(t,0,0,0,1)}}function yg(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=Nn(r[1]),n=Nn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],Mr(t,qr(Eh(o,i,e+1/3)*255),qr(Eh(o,i,e)*255),qr(Eh(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function HO(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,n=Math.min(t,e,a),i=Math.max(t,e,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-t)/6+o/2)/o,c=((i-e)/6+o/2)/o,v=((i-a)/6+o/2)/o;t===i?l=v-c:e===i?l=1/3+f-v:a===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function mg(r,t){var e=lr(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return Ma(e,e.length===4?"rgba":"rgb")}}function Oh(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=t[n],s=t[i],l=a-n;return e[0]=qr(In(o[0],s[0],l)),e[1]=qr(In(o[1],s[1],l)),e[2]=qr(In(o[2],s[2],l)),e[3]=eu(In(o[3],s[3],l)),e}}function WO(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=lr(t[n]),s=lr(t[i]),l=a-n,u=Ma([qr(In(o[0],s[0],l)),qr(In(o[1],s[1],l)),qr(In(o[2],s[2],l)),eu(In(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Bn(r,t,e,a){var n=lr(r);if(r)return n=HO(n),t!=null&&(n[0]=FO(ot(t)?t(n[0]):t)),e!=null&&(n[1]=Nn(ot(e)?e(n[1]):e)),a!=null&&(n[2]=Nn(ot(a)?a(n[2]):a)),Ma(yg(n),"rgba")}function Oc(r,t){var e=lr(r);if(e&&t!=null)return e[3]=eu(t),Ma(e,"rgba")}function Ma(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Nc(r,t){var e=lr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var f1=new ys(100);function _g(r){if(Q(r)){var t=f1.get(r);return t||(t=mg(r,-.1),f1.put(r,t)),t}else if(Vv(r)){var e=$({},r);return e.colorStops=Y(r.colorStops,function(a){return{offset:a.offset,color:mg(a.color,-.1)}}),e}return r}var Bc=Math.round;function ru(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=lr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var c1=1e-4;function Pn(r){return r-c1}function Ku(r){return Bc(r*1e3)/1e3}function Sg(r){return Bc(r*1e4)/1e4}function $O(r){return"matrix("+Ku(r[0])+","+Ku(r[1])+","+Ku(r[2])+","+Ku(r[3])+","+Sg(r[4])+","+Sg(r[5])+")"}var UO={left:"start",right:"end",center:"middle",middle:"middle"};function YO(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function ZO(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function XO(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function SM(r){return r&&!!r.image}function qO(r){return r&&!!r.svgElement}function Cm(r){return SM(r)||qO(r)}function xM(r){return r.type==="linear"}function bM(r){return r.type==="radial"}function wM(r){return r&&(r.type==="linear"||r.type==="radial")}function $v(r){return"url(#"+r+")"}function TM(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function CM(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*sc,n=nt(r.scaleX,1),i=nt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Bc(o*sc)+"deg, "+Bc(s*sc)+"deg)"),l.join(" ")}var KO=function(){return Nt.hasGlobalWindow&&ot(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),xg=Array.prototype.slice;function Ha(r,t,e){return(t-r)*e+r}function Nh(r,t,e,a){for(var n=t.length,i=0;ia?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=h1,l=e;if(Ye(e)){var u=tN(e);s=u,(u===1&&!Pt(e[0])||u===2&&!Pt(e[0][0]))&&(o=!0)}else if(Pt(e)&&!Ue(e))s=Ju;else if(Q(e))if(!isNaN(+e))s=Ju;else{var f=lr(e);f&&(l=f,s=Ml)}else if(Vv(e)){var c=$({},l);c.colorStops=Y(e.colorStops,function(h){return{offset:h.offset,color:lr(h.color)}}),xM(e)?s=bg:bM(e)&&(s=wg),l=c}i===0?this.valType=s:(s!==this.valType||s===h1)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return a&&(v.easing=a,v.easingFunc=ot(a)?a:cM[a]||Tm(a)),n.push(v),v},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Qu(n),u=d1(n),f=0;f=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=c;fe);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-h.percent,y=g===0?1:v((e-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?qs:t[l];if((Qu(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(Qu(i))i===hc?Nh(m,h[n],d[n],y):jO(m,h[n],d[n],y);else if(d1(i)){var _=h[n],S=d[n],b=i===bg;t[l]={type:b?"linear":"radial",x:Ha(_.x,S.x,y),y:Ha(_.y,S.y,y),colorStops:Y(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Ha(w.offset,C.offset,y),color:vc(Nh([],w.color,C.color,y))}}),global:S.global},b?(t[l].x2=Ha(_.x2,S.x2,y),t[l].y2=Ha(_.y2,S.y2,y)):t[l].r=Ha(_.r,S.r,y)}else if(u)Nh(m,h[n],d[n],y),a||(t[l]=vc(m));else{var x=Ha(h[n],d[n],y);a?this._additiveValue=x:t[l]=x}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===Ju?t[a]=t[a]+n:e===Ml?(lr(t[a],qs),ju(qs,qs,n,1),t[a]=vc(qs)):e===hc?ju(t[a],t[a],n,1):e===AM&&v1(t[a],t[a],n,1)},r}(),Am=function(){function r(t,e,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){ym("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,It(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Fl(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Fl(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a0)){this._started=1;for(var e=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function ns(){return new Date().getTime()}var rN=function(r){z(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,n=e.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=ns()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(dg(a),!e._paused&&e.update())}dg(a)},t.prototype.start=function(){this._running||(this._time=ns(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ns(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ns()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var n=new Am(e,a.loop);return this.addAnimator(n),n},t}(Fr);const aN=rN;var nN=300,Bh=Nt.domSupported,zh=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Y(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}}(),p1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},g1=!1;function Tg(r){var t=r.pointerType;return t==="pen"||t==="touch"}function iN(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Vh(r){r&&(r.zrByTouch=!0)}function oN(r,t){return Dr(r.dom,new sN(r,t),!0)}function MM(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var sN=function(){function r(t,e){this.stopPropagation=fe,this.stopImmediatePropagation=fe,this.preventDefault=fe,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Ur={mousedown:function(r){r=Dr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Dr(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Dr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Dr(this.dom,r);var t=r.toElement||r.relatedTarget;MM(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){g1=!0,r=Dr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){g1||(r=Dr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Dr(this.dom,r),Vh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ur.mousemove.call(this,r),Ur.mousedown.call(this,r)},touchmove:function(r){r=Dr(this.dom,r),Vh(r),this.handler.processGesture(r,"change"),Ur.mousemove.call(this,r)},touchend:function(r){r=Dr(this.dom,r),Vh(r),this.handler.processGesture(r,"end"),Ur.mouseup.call(this,r),+new Date-+this.__lastTouchMoment_1||r<-_1}var oi=[],Lo=[],Fh=Oe(),Hh=Math.abs,hN=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return ii(this.rotation)||ii(this.x)||ii(this.y)||ii(this.scaleX-1)||ii(this.scaleY-1)||ii(this.skewX)||ii(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(m1(a),this.invTransform=null);return}a=a||Oe(),e?this.getLocalTransform(a):m1(a),t&&(e?Aa(a,t,a):Wv(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(oi);var a=oi[0]<0?-1:1,n=oi[1]<0?-1:1,i=((oi[0]-a)*e+a)/oi[0]||0,o=((oi[1]-n)*e+n)/oi[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Oe(),Qr(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Oe(),Aa(Lo,t.invTransform,e),e=Lo);var a=this.originX,n=this.originY;(a||n)&&(Fh[4]=a,Fh[5]=n,Aa(Lo,e,Fh),Lo[4]-=a,Lo[5]-=n,e=Lo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var a=[t,e],n=this.invTransform;return n&&ce(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&ce(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&Hh(t[0]-1)>1e-10&&Hh(t[3]-1)>1e-10?Math.sqrt(Hh(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Vc(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,v=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;e[4]=-d*i-v*p*o,e[5]=-p*o-h*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=h*i,e[2]=v*o,u&&jn(e,e,u),e[4]+=a+f,e[5]+=n+c,e},r.initDefaultProps=function(){var t=r.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}(),r}(),ka=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Vc(r,t){for(var e=0;e=S1)){r=r||Qa;for(var t=[],e=+new Date,a=0;a<=127;a++)t[a]=Jr.measureText(String.fromCharCode(a),r).width;var n=+new Date-e;return n>16?Wh=S1:n>2&&Wh++,t}}var Wh=0,S1=5;function LM(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=dN(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function La(r,t){var e=r.strWidthCache,a=e.get(t);return a==null&&(a=Jr.measureText(t,r.font).width,e.put(t,a)),a}function x1(r,t,e,a){var n=La(Da(t),r),i=Iu(t),o=ms(0,n,e),s=Zi(0,i,a),l=new dt(o,s,n,i);return l}function Uv(r,t,e,a){var n=((r||"")+"").split(` -`),i=n.length;if(i===1)return x1(n[0],t,e,a);for(var o=new dt(0,0,0,0),s=0;s=0?parseFloat(r)/100*t:parseFloat(r):r}function Gc(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",c="top";if(a instanceof Array)l+=ta(a[0],e.width),u+=ta(a[1],e.height),f=null,c=null;else switch(a){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var $h="__zr_normal__",Uh=ka.concat(["ignore"]),pN=Ia(ka,function(r,t){return r[t]=!0,r},{ignore:!1}),Io={},gN=new dt(0,0,0,0),ef=[],Mm=function(){function r(t){this.id=tM(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=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]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(e);var f=a.position!=null,c=a.autoOverflowArea,v=void 0;if((c||f)&&(v=gN,a.layoutRect?v.copy(a.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Io,a,v):Gc(Io,a,v),i.x=Io.x,i.y=Io.y,o=Io.align,s=Io.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=ta(h[0],v.width),p=ta(h[1],v.height)),u=!0,i.originX=-i.x+d+(n?0:v.x),i.originY=-i.y+p+(n?0:v.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=y.overflowRect=y.overflowRect||new dt(0,0,0,0);i.getLocalTransform(ef),Qr(ef,ef),dt.copy(m,v),m.applyTransform(ef)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,b=void 0,x=void 0;_&&this.canBeInsideText()?(S=a.insideFill,b=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),x=!0)):(S=a.outsideFill,b=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),x=!0)),S=S||"#000",(S!==y.fill||b!==y.stroke||x!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=b,y.autoStroke=x,y.align=o,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=gr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Dg:Mg},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&lr(e);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Ma(a,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},$(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(ht(t))for(var a=t,n=It(a),i=0;i0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState($h,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===$h,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(bt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){ym("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,v=this._textGuide;return c&&c.useState(t,e,a,f),v&&v.useState(t,e,a,f),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~gr),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var n=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,v),g&&g.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~gr)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var n=this.currentStates.slice(),i=bt(n,t),o=bt(n,e)>=0;i>=0?o?n.splice(i,1):n[i]=e:a&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,n=a.length,i=[],o=0;o0&&e.during&&i[0].during(function(d,p){e.during(p)});for(var v=0;v0||n.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],v?T[y]=a[y]:e[y]=a[y]}}else if(v){M={};for(var S=0;S<_;S++){var y=p[S];M[y]=Fl(e[y]),mN(e,a,y)}}var b=new Am(e,!1,!1,c?Ft(d,function(I){return I.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,p),M&&b.whenWithKeys(0,M,p),b.whenWithKeys(u??500,s?C:a,p).delay(f||0),r.addAnimator(b,t),o.push(b)}}const PM=Mm;var kM=function(r){z(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var a=this._children,n=0;n=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var n=bt(this._children,e);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(e,a){var n=this._children,i=n[a];if(e&&e!==this&&e.parent!==this&&e!==i){n[a]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,n=this._children,i=bt(n,e);return i<0?this:(n.splice(i,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,n=0;n"u"&&typeof self<"u"?xn.worker=!0:!xn.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(xn.node=!0,xn.svgSupported=!0):BE(navigator.userAgent,xn);function BE(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}const Bt=xn;var ym=12,jA="sans-serif",Qa=ym+"px "+jA,zE=20,VE=100,GE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function FE(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){A(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function uO(r,t,e){for(var a=e?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&i&&v===i[c]&&h===i[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=e?K_(s,o):K_(o,s))}function nM(r){return r.nodeName.toUpperCase()==="CANVAS"}var fO=/([&<>"'])/g,cO={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ye(r){return r==null?"":(r+"").replace(fO,function(t,e){return cO[e]})}var vO=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ih=[],hO=Bt.browser.firefox&&+Bt.browser.version.split(".")[0]<39;function hg(r,t,e,a){return e=e||{},a?j_(r,t,e):hO&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):j_(r,t,e),e}function j_(r,t,e){if(Bt.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(nM(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(vg(Ih,r,a,n)){e.zrX=Ih[0],e.zrY=Ih[1];return}}e.zrX=e.zrY=0}function Tm(r){return r||window.event}function Lr(r,t,e){if(t=Tm(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&hg(r,o,t,e)}else{hg(r,t,t,e);var i=dO(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&vO.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function dO(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var n=Math.abs(a!==0?a:e),i=a>0?-1:a<0?1:e>0?-1:1;return 3*n*i}function dg(r,t,e,a){r.addEventListener(t,e,a)}function pO(r,t,e,a){r.removeEventListener(t,e,a)}var tn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function J_(r){return r.which===2||r.which===3}var gO=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},o=0,s=n.length;o1&&a&&a.length>1){var i=Q_(a)/Q_(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=yO(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Oe(){return[1,0,0,1,0,0]}function Uv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Yv(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ma(r,t,e){var a=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function ka(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function jn(r,t,e,a){a===void 0&&(a=[0,0]);var n=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),c=Math.cos(e);return r[0]=n*c+s*f,r[1]=-n*f+s*c,r[2]=i*c+l*f,r[3]=-i*f+c*l,r[4]=c*(o-a[0])+f*(u-a[1])+a[0],r[5]=c*(u-a[1])-f*(o-a[0])+a[1],r}function Cm(r,t,e){var a=e[0],n=e[1];return r[0]=t[0]*a,r[1]=t[1]*n,r[2]=t[2]*a,r[3]=t[3]*n,r[4]=t[4]*a,r[5]=t[5]*n,r}function ea(r,t){var e=t[0],a=t[2],n=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-e*s)*l,r):null}function mO(r){var t=Oe();return Yv(t,r),t}var _O=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,a){t.x=e,t.y=a},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,n){t.x=e.x+a.x*n,t.y=e.y+a.y*n},r.lerp=function(t,e,a,n){var i=1-n;t.x=i*e.x+n*a.x,t.y=i*e.y+n*a.y},r}();const ft=_O;var Vi=Math.min,os=Math.max,pg=Math.abs,t1=["x","y"],SO=["width","height"],ri=new ft,ai=new ft,ni=new ft,ii=new ft,gr=iM(),Dl=gr.minTv,gg=gr.maxTv,Wl=[0,0],Am=function(){function r(t,e,a,n){r.set(this,t,e,a,n)}return r.set=function(t,e,a,n,i){return n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),t.x=e,t.y=a,t.width=n,t.height=i,t},r.prototype.union=function(t){var e=Vi(t.x,this.x),a=Vi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=os(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=os(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,a=t.width/e.width,n=t.height/e.height,i=Oe();return ka(i,i,[-e.x,-e.y]),Cm(i,i,[a,n]),ka(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e,a){return r.intersect(this,t,e,a)},r.intersect=function(t,e,a,n){a&&ft.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(xO,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(bO,e.x,e.y,e.width,e.height));var s=!!a;gr.reset(n,s);var l=gr.touchThreshold,u=t.x+l,f=t.x+t.width-l,c=t.y+l,v=t.y+t.height-l,h=e.x+l,d=e.x+e.width-l,p=e.y+l,g=e.y+e.height-l;if(u>f||c>v||h>d||p>g)return!1;var y=!(f=t.x&&e<=t.x+t.width&&a>=t.y&&a<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];t.x=e.x*n+o,t.y=e.y*i+s,t.width=e.width*n,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ri.x=ni.x=e.x,ri.y=ii.y=e.y,ai.x=ii.x=e.x+e.width,ai.y=ni.y=e.y+e.height,ri.transform(a),ii.transform(a),ai.transform(a),ni.transform(a),t.x=Vi(ri.x,ai.x,ni.x,ii.x),t.y=Vi(ri.y,ai.y,ni.y,ii.y);var l=os(ri.x,ai.x,ni.x,ii.x),u=os(ri.y,ai.y,ni.y,ii.y);t.width=l-t.x,t.height=u-t.y},r}(),xO=new Am(0,0,0,0),bO=new Am(0,0,0,0);function e1(r,t,e,a,n,i,o,s){var l=pg(t-e),u=pg(a-r),f=Vi(l,u),c=t1[n],v=t1[1-n],h=SO[n];t=u||!gr.bidirectional)&&(Dl[c]=-u,Dl[v]=0,gr.useDir&&gr.calcDirMTV())))}function iM(){var r=0,t=new ft,e=new ft,a={minTv:new ft,maxTv:new ft,useDir:!1,dirMinTv:new ft,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=os(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),e.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(n(f)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,n(e.x)&&n(e.y)){o.set(0,0);return}(a.bidirectional||t.dot(e)>0)&&e.len()=0;c--){var v=i[c];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(kh.copy(v.getBoundingRect()),v.transform&&kh.applyTransform(v.transform),kh.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function MO(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?oM:!0}return!1}function r1(r,t,e,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=MO(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==oM)){t.target=o;break}}}function lM(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}const DO=sM;var uM=32,js=7;function LO(r){for(var t=0;r>=uM;)t|=r&1,r>>=1;return r+t}function a1(r,t,e,a){var n=t+1;if(n===e)return 1;if(a(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function IO(r,t,e){for(e--;t>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Rh(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function Eh(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function PO(r,t){var e=js,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]n[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]=js||w>=js);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=e;;){var T=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){M=!0;break}while((T|C)=0;y--)r[x+y]=r[b+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(C=g-Rh(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y=js||C>=js);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),n1(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),n-=i,e+=i}while(n!==0);o.forceMergeRuns()}}var mr=1,Ll=2,rs=4,i1=!1;function Oh(){i1||(i1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function o1(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var kO=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=o1}return r.prototype.traverse=function(t,e){for(var a=0;a=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const RO=kO;var fM;fM=Bt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const yg=fM;var dc={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-dc.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?dc.bounceIn(r*2)*.5:dc.bounceOut(r*2-1)*.5+.5}};const cM=dc;var Ku=Math.pow,On=Math.sqrt,Nc=1e-8,vM=1e-4,s1=On(3),ju=1/3,ma=ho(),Rr=ho(),ds=ho();function Ln(r){return r>-Nc&&rNc||r<-Nc}function De(r,t,e,a,n){var i=1-n;return i*i*(i*r+3*n*t)+n*n*(n*a+3*i*e)}function l1(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function Bc(r,t,e,a,n,i){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Ln(f)&&Ln(c))if(Ln(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=c*c-4*f*v;if(Ln(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=On(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-Ku(-_,ju):_=Ku(_,ju),S<0?S=-Ku(-S,ju):S=Ku(S,ju);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*On(f*f*f)),x=Math.acos(b)/3,w=On(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+s1*Math.sin(x)))/(3*o),C=(-s+w*(T-s1*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),C>=0&&C<=1&&(i[h++]=C)}}return h}function dM(r,t,e,a,n){var i=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if(Ln(o)){if(hM(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Ln(f))n[0]=-i/(2*o);else if(f>0){var c=On(f),u=(-i+c)/(2*o),v=(-i-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Hn(r,t,e,a,n,i){var o=(t-r)*n+r,s=(e-t)*n+t,l=(a-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=a}function pM(r,t,e,a,n,i,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,y;ma[0]=l,ma[1]=u;for(var m=0;m<1;m+=.05)Rr[0]=De(r,e,n,o,m),Rr[1]=De(t,a,i,s,m),g=Zi(ma,Rr),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Ln(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=On(f),u=(-o+c)/(2*i),v=(-o-c)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function gM(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function au(r,t,e,a,n){var i=(t-r)*a+r,o=(e-t)*a+t,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function yM(r,t,e,a,n,i,o,s,l){var u,f=.005,c=1/0;ma[0]=o,ma[1]=s;for(var v=0;v<1;v+=.05){Rr[0]=Ee(r,e,n,v),Rr[1]=Ee(t,a,i,v);var h=Zi(ma,Rr);h=0&&h=1?1:Bc(0,a,i,1,l,s)&&De(0,n,o,1,s[0])}}}var zO=function(){function r(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||fe,this.ondestroy=t.ondestroy||fe,this.onrestart=t.onrestart||fe,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,n=t-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ot(t)?t:cM[t]||Mm(t)},r}();const VO=zO;var mM=function(){function r(t){this.value=t}return r}(),GO=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new mM(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),FO=function(){function r(t){this._list=new GO,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,n=this._map,i=null;if(n[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new mM(e),s.key=t,a.insertEntry(s),n[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Ss=FO;var u1={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 jr(r){return r=Math.round(r),r<0?0:r>255?255:r}function HO(r){return r=Math.round(r),r<0?0:r>360?360:r}function nu(r){return r<0?0:r>1?1:r}function Nh(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?jr(parseFloat(t)/100*255):jr(parseInt(t,10))}function Nn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?nu(parseFloat(t)/100):nu(parseFloat(t))}function Bh(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function In(r,t,e){return r+(t-r)*e}function Dr(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function _g(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var _M=new Ss(20),Ju=null;function Po(r,t){Ju&&_g(Ju,t),Ju=_M.put(r,Ju||t.slice())}function fr(r,t){if(r){t=t||[];var e=_M.get(r);if(e)return _g(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in u1)return _g(t,u1[a]),Po(r,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Dr(t,0,0,0,1);return}return Dr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Po(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Dr(t,0,0,0,1);return}return Dr(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Po(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Dr(t,+u[0],+u[1],+u[2],1):Dr(t,0,0,0,1);f=Nn(u.pop());case"rgb":if(u.length>=3)return Dr(t,Nh(u[0]),Nh(u[1]),Nh(u[2]),u.length===3?f:Nn(u[3])),Po(r,t),t;Dr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Dr(t,0,0,0,1);return}return u[3]=Nn(u[3]),Sg(u,t),Po(r,t),t;case"hsl":if(u.length!==3){Dr(t,0,0,0,1);return}return Sg(u,t),Po(r,t),t;default:return}}Dr(t,0,0,0,1)}}function Sg(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=Nn(r[1]),n=Nn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],Dr(t,jr(Bh(o,i,e+1/3)*255),jr(Bh(o,i,e)*255),jr(Bh(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function WO(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,n=Math.min(t,e,a),i=Math.max(t,e,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-t)/6+o/2)/o,c=((i-e)/6+o/2)/o,v=((i-a)/6+o/2)/o;t===i?l=v-c:e===i?l=1/3+f-v:a===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function xg(r,t){var e=fr(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return Da(e,e.length===4?"rgba":"rgb")}}function zh(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=t[n],s=t[i],l=a-n;return e[0]=jr(In(o[0],s[0],l)),e[1]=jr(In(o[1],s[1],l)),e[2]=jr(In(o[2],s[2],l)),e[3]=nu(In(o[3],s[3],l)),e}}function $O(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=fr(t[n]),s=fr(t[i]),l=a-n,u=Da([jr(In(o[0],s[0],l)),jr(In(o[1],s[1],l)),jr(In(o[2],s[2],l)),nu(In(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Bn(r,t,e,a){var n=fr(r);if(r)return n=WO(n),t!=null&&(n[0]=HO(ot(t)?t(n[0]):t)),e!=null&&(n[1]=Nn(ot(e)?e(n[1]):e)),a!=null&&(n[2]=Nn(ot(a)?a(n[2]):a)),Da(Sg(n),"rgba")}function zc(r,t){var e=fr(r);if(e&&t!=null)return e[3]=nu(t),Da(e,"rgba")}function Da(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Vc(r,t){var e=fr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var f1=new Ss(100);function bg(r){if(Q(r)){var t=f1.get(r);return t||(t=xg(r,-.1),f1.put(r,t)),t}else if(Hv(r)){var e=$({},r);return e.colorStops=Y(r.colorStops,function(a){return{offset:a.offset,color:xg(a.color,-.1)}}),e}return r}var Gc=Math.round;function iu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=fr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var c1=1e-4;function Pn(r){return r-c1}function Qu(r){return Gc(r*1e3)/1e3}function wg(r){return Gc(r*1e4)/1e4}function UO(r){return"matrix("+Qu(r[0])+","+Qu(r[1])+","+Qu(r[2])+","+Qu(r[3])+","+wg(r[4])+","+wg(r[5])+")"}var YO={left:"start",right:"end",center:"middle",middle:"middle"};function ZO(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function XO(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function qO(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function SM(r){return r&&!!r.image}function KO(r){return r&&!!r.svgElement}function Dm(r){return SM(r)||KO(r)}function xM(r){return r.type==="linear"}function bM(r){return r.type==="radial"}function wM(r){return r&&(r.type==="linear"||r.type==="radial")}function Zv(r){return"url(#"+r+")"}function TM(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function CM(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*fc,n=nt(r.scaleX,1),i=nt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Gc(o*fc)+"deg, "+Gc(s*fc)+"deg)"),l.join(" ")}var jO=function(){return Bt.hasGlobalWindow&&ot(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Tg=Array.prototype.slice;function Wa(r,t,e){return(t-r)*e+r}function Vh(r,t,e,a){for(var n=t.length,i=0;ia?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=h1,l=e;if(Xe(e)){var u=eN(e);s=u,(u===1&&!kt(e[0])||u===2&&!kt(e[0][0]))&&(o=!0)}else if(kt(e)&&!Ze(e))s=ef;else if(Q(e))if(!isNaN(+e))s=ef;else{var f=fr(e);f&&(l=f,s=Il)}else if(Hv(e)){var c=$({},l);c.colorStops=Y(e.colorStops,function(h){return{offset:h.offset,color:fr(h.color)}}),xM(e)?s=Cg:bM(e)&&(s=Ag),l=c}i===0?this.valType=s:(s!==this.valType||s===h1)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return a&&(v.easing=a,v.easingFunc=ot(a)?a:cM[a]||Mm(a)),n.push(v),v},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=rf(n),u=d1(n),f=0;f=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=c;fe);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-h.percent,y=g===0?1:v((e-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?Js:t[l];if((rf(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(rf(i))i===gc?Vh(m,h[n],d[n],y):JO(m,h[n],d[n],y);else if(d1(i)){var _=h[n],S=d[n],b=i===Cg;t[l]={type:b?"linear":"radial",x:Wa(_.x,S.x,y),y:Wa(_.y,S.y,y),colorStops:Y(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Wa(w.offset,C.offset,y),color:pc(Vh([],w.color,C.color,y))}}),global:S.global},b?(t[l].x2=Wa(_.x2,S.x2,y),t[l].y2=Wa(_.y2,S.y2,y)):t[l].r=Wa(_.r,S.r,y)}else if(u)Vh(m,h[n],d[n],y),a||(t[l]=pc(m));else{var x=Wa(h[n],d[n],y);a?this._additiveValue=x:t[l]=x}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===ef?t[a]=t[a]+n:e===Il?(fr(t[a],Js),tf(Js,Js,n,1),t[a]=pc(Js)):e===gc?tf(t[a],t[a],n,1):e===AM&&v1(t[a],t[a],n,1)},r}(),Lm=function(){function r(t,e,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Sm("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,It(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,$l(u),n),this._trackKeys.push(s)}l.addKeyframe(t,$l(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a0)){this._started=1;for(var e=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function ss(){return new Date().getTime()}var aN=function(r){z(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,n=e.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=ss()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(yg(a),!e._paused&&e.update())}yg(a)},t.prototype.start=function(){this._running||(this._time=ss(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ss(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ss()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var n=new Lm(e,a.loop);return this.addAnimator(n),n},t}(Hr);const nN=aN;var iN=300,Gh=Bt.domSupported,Fh=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Y(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}}(),p1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},g1=!1;function Mg(r){var t=r.pointerType;return t==="pen"||t==="touch"}function oN(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Hh(r){r&&(r.zrByTouch=!0)}function sN(r,t){return Lr(r.dom,new lN(r,t),!0)}function MM(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var lN=function(){function r(t,e){this.stopPropagation=fe,this.stopImmediatePropagation=fe,this.preventDefault=fe,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Yr={mousedown:function(r){r=Lr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Lr(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Lr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Lr(this.dom,r);var t=r.toElement||r.relatedTarget;MM(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){g1=!0,r=Lr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){g1||(r=Lr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Lr(this.dom,r),Hh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Yr.mousemove.call(this,r),Yr.mousedown.call(this,r)},touchmove:function(r){r=Lr(this.dom,r),Hh(r),this.handler.processGesture(r,"change"),Yr.mousemove.call(this,r)},touchend:function(r){r=Lr(this.dom,r),Hh(r),this.handler.processGesture(r,"end"),Yr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment_1||r<-_1}var si=[],ko=[],$h=Oe(),Uh=Math.abs,dN=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return oi(this.rotation)||oi(this.x)||oi(this.y)||oi(this.scaleX-1)||oi(this.scaleY-1)||oi(this.skewX)||oi(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(m1(a),this.invTransform=null);return}a=a||Oe(),e?this.getLocalTransform(a):m1(a),t&&(e?Ma(a,t,a):Yv(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(si);var a=si[0]<0?-1:1,n=si[1]<0?-1:1,i=((si[0]-a)*e+a)/si[0]||0,o=((si[1]-n)*e+n)/si[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Oe(),ea(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Oe(),Ma(ko,t.invTransform,e),e=ko);var a=this.originX,n=this.originY;(a||n)&&($h[4]=a,$h[5]=n,Ma(ko,e,$h),ko[4]-=a,ko[5]-=n,e=ko),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var a=[t,e],n=this.invTransform;return n&&ce(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&ce(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&Uh(t[0]-1)>1e-10&&Uh(t[3]-1)>1e-10?Math.sqrt(Uh(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Hc(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,v=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;e[4]=-d*i-v*p*o,e[5]=-p*o-h*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=h*i,e[2]=v*o,u&&jn(e,e,u),e[4]+=a+f,e[5]+=n+c,e},r.initDefaultProps=function(){var t=r.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}(),r}(),Ra=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Hc(r,t){for(var e=0;e=S1)){r=r||Qa;for(var t=[],e=+new Date,a=0;a<=127;a++)t[a]=ta.measureText(String.fromCharCode(a),r).width;var n=+new Date-e;return n>16?Yh=S1:n>2&&Yh++,t}}var Yh=0,S1=5;function LM(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=pN(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Ia(r,t){var e=r.strWidthCache,a=e.get(t);return a==null&&(a=ta.measureText(t,r.font).width,e.put(t,a)),a}function x1(r,t,e,a){var n=Ia(La(t),r),i=Ru(t),o=xs(0,n,e),s=Xi(0,i,a),l=new ht(o,s,n,i);return l}function Xv(r,t,e,a){var n=((r||"")+"").split(` +`),i=n.length;if(i===1)return x1(n[0],t,e,a);for(var o=new ht(0,0,0,0),s=0;s=0?parseFloat(r)/100*t:parseFloat(r):r}function Wc(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",c="top";if(a instanceof Array)l+=ra(a[0],e.width),u+=ra(a[1],e.height),f=null,c=null;else switch(a){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Zh="__zr_normal__",Xh=Ra.concat(["ignore"]),gN=Pa(Ra,function(r,t){return r[t]=!0,r},{ignore:!1}),Ro={},yN=new ht(0,0,0,0),nf=[],Im=function(){function r(t){this.id=tM(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=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]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(e);var f=a.position!=null,c=a.autoOverflowArea,v=void 0;if((c||f)&&(v=yN,a.layoutRect?v.copy(a.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ro,a,v):Wc(Ro,a,v),i.x=Ro.x,i.y=Ro.y,o=Ro.align,s=Ro.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=ra(h[0],v.width),p=ra(h[1],v.height)),u=!0,i.originX=-i.x+d+(n?0:v.x),i.originY=-i.y+p+(n?0:v.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=y.overflowRect=y.overflowRect||new ht(0,0,0,0);i.getLocalTransform(nf),ea(nf,nf),ht.copy(m,v),m.applyTransform(nf)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,b=void 0,x=void 0;_&&this.canBeInsideText()?(S=a.insideFill,b=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),x=!0)):(S=a.outsideFill,b=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),x=!0)),S=S||"#000",(S!==y.fill||b!==y.stroke||x!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=b,y.autoStroke=x,y.align=o,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=mr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Pg:Ig},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&fr(e);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Da(a,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},$(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(vt(t))for(var a=t,n=It(a),i=0;i0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Zh,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===Zh,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(bt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){Sm("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,v=this._textGuide;return c&&c.useState(t,e,a,f),v&&v.useState(t,e,a,f),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~mr),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var n=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,v),g&&g.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~mr)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var n=this.currentStates.slice(),i=bt(n,t),o=bt(n,e)>=0;i>=0?o?n.splice(i,1):n[i]=e:a&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,n=a.length,i=[],o=0;o0&&e.during&&i[0].during(function(d,p){e.during(p)});for(var v=0;v0||n.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],v?T[y]=a[y]:e[y]=a[y]}}else if(v){M={};for(var S=0;S<_;S++){var y=p[S];M[y]=$l(e[y]),_N(e,a,y)}}var b=new Lm(e,!1,!1,c?Ht(d,function(I){return I.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,p),M&&b.whenWithKeys(0,M,p),b.whenWithKeys(u??500,s?C:a,p).delay(f||0),r.addAnimator(b,t),o.push(b)}}const PM=Im;var kM=function(r){z(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var a=this._children,n=0;n=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var n=bt(this._children,e);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(e,a){var n=this._children,i=n[a];if(e&&e!==this&&e.parent!==this&&e!==i){n[a]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,n=this._children,i=bt(n,e);return i<0?this:(n.splice(i,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var J=DN;function DN(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Fc(r,t,e)}function Fc(r,t,e){return Q(r)?MN(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function de(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),EM),r=(+r).toFixed(t),e?r:+r}function Br(r){return r.sort(function(t,e){return t-e}),r}function xa(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return LN(r)}function LN(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function OM(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Sa(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function IN(r,t){var e=Ia(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=Y(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=Y(n,function(h){return Math.floor(h)}),s=Ia(o,function(h,d){return h+d},0),l=Y(n,function(h,d){return h-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Y(o,function(h){return h/a})}function PN(r,t){var e=Math.max(xa(r),xa(t)),a=r+t;return e>EM?a:de(a,e)}var T1=9007199254740991;function NM(r){var t=Math.PI*2;return(r%t+t)%t}function au(r){return r>-w1&&r=10&&t++,t}function BM(r,t){var e=Dm(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function Xh(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function C1(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a0?t.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r}();function qh(r){r.option=r.parentModel=r.ecModel=null}var JN=".",si="___EC__COMPONENT__CONTAINER___",XM="___EC__EXTENDED_CLASS___";function ba(r){var t={main:"",sub:""};if(r){var e=r.split(JN);t.main=e[0]||"",t.sub=e[1]||""}return t}function QN(r){Ze(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function tB(r){return!!(r&&r[XM])}function Pm(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return eB(a)?n=function(i){z(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},YE(n,this)),$(n.prototype,e),n[XM]=!0,n.extend=this.extend,n.superCall=nB,n.superApply=iB,n.superClass=a,n}}function eB(r){return ot(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function qM(r,t){r.extend=t.extend}var rB=Math.round(Math.random()*10);function aB(r){var t=["__\0is_clz",rB++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function nB(r,t){for(var e=[],a=2;a=0||i&&bt(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var oB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],sB=no(oB),lB=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return sB(this,t,e)},r}(),Pg=new ys(50);function uB(r){if(typeof r=="string"){var t=Pg.get(r);return t&&t.image}else return r}function km(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Pg.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!Zv(t)&&i.pending.push(o)):(t=Jr.loadImage(r,I1,I1),t.__zrImageSrc=r,Pg.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function I1(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var J=LN;function LN(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return $c(r,t,e)}function $c(r,t,e){return Q(r)?DN(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function de(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),EM),r=(+r).toFixed(t),e?r:+r}function zr(r){return r.sort(function(t,e){return t-e}),r}function ba(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return IN(r)}function IN(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function OM(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(xa(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function PN(r,t){var e=Pa(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=Y(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=Y(n,function(h){return Math.floor(h)}),s=Pa(o,function(h,d){return h+d},0),l=Y(n,function(h,d){return h-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Y(o,function(h){return h/a})}function kN(r,t){var e=Math.max(ba(r),ba(t)),a=r+t;return e>EM?a:de(a,e)}var T1=9007199254740991;function NM(r){var t=Math.PI*2;return(r%t+t)%t}function ou(r){return r>-w1&&r=10&&t++,t}function BM(r,t){var e=Pm(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function jh(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function C1(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a0?t.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r}();function Jh(r){r.option=r.parentModel=r.ecModel=null}var QN=".",li="___EC__COMPONENT__CONTAINER___",XM="___EC__EXTENDED_CLASS___";function wa(r){var t={main:"",sub:""};if(r){var e=r.split(QN);t.main=e[0]||"",t.sub=e[1]||""}return t}function tB(r){qe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function eB(r){return!!(r&&r[XM])}function Em(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return rB(a)?n=function(i){z(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},ZE(n,this)),$(n.prototype,e),n[XM]=!0,n.extend=this.extend,n.superCall=iB,n.superApply=oB,n.superClass=a,n}}function rB(r){return ot(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function qM(r,t){r.extend=t.extend}var aB=Math.round(Math.random()*10);function nB(r){var t=["__\0is_clz",aB++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function iB(r,t){for(var e=[],a=2;a=0||i&&bt(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var sB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lB=io(sB),uB=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return lB(this,t,e)},r}(),Eg=new Ss(50);function fB(r){if(typeof r=="string"){var t=Eg.get(r);return t&&t.image}else return r}function Om(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Eg.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!Kv(t)&&i.pending.push(o)):(t=ta.loadImage(r,I1,I1),t.__zrImageSrc=r,Eg.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function I1(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;u++)l-=s;var f=La(o,e);return f>l&&(e="",f=0),l=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function jM(r,t,e){var a=e.containerWidth,n=e.contentWidth,i=e.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=La(i,t);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?cB(t,n,i):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=La(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function cB(r,t,e){for(var a=0,n=0,i=r.length;ng&&h){var _=Math.floor(g/v);d=d||y.length>_,y=y.slice(0,_),m=y.length*v}if(n&&f&&p!=null)for(var S=KM(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},x=0;xd&&jh(i,o.substring(d,g),t,h),jh(i,p[2],t,h,p[1]),d=Kh.lastIndex}dc){var B=i.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),w(C,D,M),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length0&&d+a.accumWidth>a.width&&(f=t.split(` +`),r.isTruncated=s}function KM(r,t,e,a){a=a||{};var n=$({},a);e=nt(e,"..."),n.maxIterations=nt(a.maxIterations,2);var i=n.minChar=nt(a.minChar,0),o=n.fontMeasureInfo=La(t),s=o.asciiCharWidth;n.placeholder=nt(a.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u=s;u++)l-=s;var f=Ia(o,e);return f>l&&(e="",f=0),l=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function jM(r,t,e){var a=e.containerWidth,n=e.contentWidth,i=e.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ia(i,t);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?vB(t,n,i):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=Ia(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function vB(r,t,e){for(var a=0,n=0,i=r.length;ng&&h){var _=Math.floor(g/v);d=d||y.length>_,y=y.slice(0,_),m=y.length*v}if(n&&f&&p!=null)for(var S=KM(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},x=0;xd&&td(i,o.substring(d,g),t,h),td(i,p[2],t,h,p[1]),d=Qh.lastIndex}dc){var B=i.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),w(C,D,M),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length0&&d+a.accumWidth>a.width&&(f=t.split(` `),u=!0),a.accumWidth=d}else{var p=JM(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}f||(f=t.split(` -`));for(var g=Da(l),y=0;y=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var yB=Ia(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function mB(r){return gB(r)?!!yB[r]:!0}function JM(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,c=Da(t),v=0;ve:n+f+d>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}function k1(r,t,e,a,n,i){if(r.baseX=e,r.baseY=a,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;dt.set(R1,ms(e,o,n),Zi(a,s,i),o,s),dt.intersect(t,R1,null,E1);var l=E1.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=ms(l.x,l.width,n,!0),r.baseY=Zi(l.y,l.height,i,!0)}}var R1=new dt(0,0,0,0),E1={outIntersectRect:{},clamp:!0};function Rm(r){return r!=null?r+="":r=""}function _B(r){var t=Rm(r.text),e=r.font,a=La(Da(e),t),n=Iu(e);return kg(r,a,n,null)}function kg(r,t,e,a){var n=new dt(ms(r.x||0,t,r.textAlign),Zi(r.y||0,e,r.textBaseline),t,e),i=a??(QM(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function QM(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var Rg="__zr_style_"+Math.round(Math.random()*10),Xi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xi[Rg]=!0;var O1=["z","z2","invisible"],SB=["invisible"],xB=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=It(e),n=0;n1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(rf[0]=ed(n)*e+r,rf[1]=td(n)*a+t,af[0]=ed(i)*e+r,af[1]=td(i)*a+t,u(s,rf,af),f(l,rf,af),n=n%li,n<0&&(n=n+li),i=i%li,i<0&&(i=i+li),n>i&&!o?i+=li:nn&&(nf[0]=ed(h)*e+r,nf[1]=td(h)*a+t,u(s,nf,s),f(l,nf,l))}var Yt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ui=[],fi=[],oa=[],vn=[],sa=[],la=[],rd=Math.min,ad=Math.max,ci=Math.cos,vi=Math.sin,Ba=Math.abs,Eg=Math.PI,bn=Eg*2,nd=typeof Float32Array<"u",Ks=[];function id(r){var t=Math.round(r/Eg*1e8)/1e8;return t%2*Eg}function Kv(r,t){var e=id(r[0]);e<0&&(e+=bn);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=bn?n=e+bn:t&&e-n>=bn?n=e-bn:!t&&e>n?n=e+(bn-id(e-n)):t&&e0&&(this._ux=Ba(a/zc/t)||0,this._uy=Ba(a/zc/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Yt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var a=Ba(t-this._xi),n=Ba(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Yt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(Yt.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(Yt.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),Ks[0]=n,Ks[1]=i,Kv(Ks,o),n=Ks[0],i=Ks[1];var s=i-n;return this.addData(Yt.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=ci(i)*a+t,this._yi=vi(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(Yt.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Yt.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&nd&&(this.data=new Float32Array(e));for(var a=0;a0&&o))for(var s=0;sf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){oa[0]=oa[1]=sa[0]=sa[1]=Number.MAX_VALUE,vn[0]=vn[1]=la[0]=la[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;oa||Ba(_)>n||v===e-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Yt.C:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++],x=t[v++],w=t[v++];p=RO(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case Yt.Q:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++];p=OO(i,o,S,b,g,y,10),i=g,o=y;break}case Yt.A:var T=t[v++],C=t[v++],M=t[v++],D=t[v++],I=t[v++],L=t[v++],k=L+I;v+=1,d&&(s=ci(I)*M+T,l=vi(I)*D+C),p=ad(M,D)*rd(bn,Math.abs(L)),i=ci(k)*M+T,o=vi(k)*D+C;break;case Yt.R:{s=i=t[v++],l=o=t[v++];var R=t[v++],P=t[v++];p=R*2+P*2;break}case Yt.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,c,v,h=e<1,d,p,g=0,y=0,m,_=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var x=0;x0&&(t.lineTo(S,b),_=0),w){case Yt.M:s=u=a[x++],l=f=a[x++],t.moveTo(u,f);break;case Yt.L:{c=a[x++],v=a[x++];var C=Ba(c-u),M=Ba(v-f);if(C>n||M>i){if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+c*I,f*(1-I)+v*I);break t}g+=D}t.lineTo(c,v),u=c,f=v,_=0}else{var L=C*C+M*M;L>_&&(S=c,b=v,_=L)}break}case Yt.C:{var k=a[x++],R=a[x++],P=a[x++],O=a[x++],E=a[x++],B=a[x++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;Hn(u,k,P,E,I,ui),Hn(f,R,O,B,I,fi),t.bezierCurveTo(ui[1],fi[1],ui[2],fi[2],ui[3],fi[3]);break t}g+=D}t.bezierCurveTo(k,R,P,O,E,B),u=E,f=B;break}case Yt.Q:{var k=a[x++],R=a[x++],P=a[x++],O=a[x++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;tu(u,k,P,I,ui),tu(f,R,O,I,fi),t.quadraticCurveTo(ui[1],fi[1],ui[2],fi[2]);break t}g+=D}t.quadraticCurveTo(k,R,P,O),u=P,f=O;break}case Yt.A:var V=a[x++],H=a[x++],W=a[x++],X=a[x++],j=a[x++],q=a[x++],it=a[x++],St=!a[x++],at=W>X?W:X,N=Ba(W-X)>.001,F=j+q,Z=!1;if(h){var D=d[y++];g+D>m&&(F=j+q*(m-g)/D,Z=!0),g+=D}if(N&&t.ellipse?t.ellipse(V,H,W,X,it,j,F,St):t.arc(V,H,at,j,F,St),Z)break t;T&&(s=ci(j)*W+V,l=vi(j)*X+H),u=ci(F)*W+V,f=vi(F)*X+H;break;case Yt.R:s=u=a[x],l=f=a[x+1],c=a[x++],v=a[x++];var K=a[x++],mt=a[x++];if(h){var D=d[y++];if(g+D>m){var gt=m-g;t.moveTo(c,v),t.lineTo(c+rd(gt,K),v),gt-=K,gt>0&&t.lineTo(c+K,v+rd(gt,mt)),gt-=mt,gt>0&&t.lineTo(c+ad(K-gt,0),v+mt),gt-=K,gt>0&&t.lineTo(c,v+ad(mt-gt,0));break t}g+=D}t.rect(c,v,K,mt);break;case Yt.Z:if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Yt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const Ra=AB;function Tn(r,t,e,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>a+s||or+s&&i>e+s||it+c&&f>a+c&&f>i+c&&f>s+c||fr+c&&u>e+c&&u>n+c&&u>o+c||ut+u&&l>a+u&&l>i+u||lr+u&&s>e+u&&s>n+u||se||f+un&&(n+=js);var v=Math.atan2(l,s);return v<0&&(v+=js),v>=a&&v<=n||v+js>=a&&v+js<=n}function Wa(r,t,e,a,n,i){if(i>t&&i>a||in?s:0}var hn=Ra.CMD,hi=Math.PI*2,LB=1e-4;function IB(r,t){return Math.abs(r-t)t&&u>a&&u>i&&u>s||u1&&PB(),h=De(t,a,i,s,Ir[0]),v>1&&(d=De(t,a,i,s,Ir[1]))),v===2?gt&&s>a&&s>i||s=0&&u<=1){for(var f=0,c=Ee(t,a,i,u),v=0;ve||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Je[0]=-l,Je[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=hi-1e-4){a=0,n=hi;var f=i?1:-1;return o>=Je[0]+r&&o<=Je[1]+r?f:0}if(a>n){var c=a;a=n,n=c}a<0&&(a+=hi,n+=hi);for(var v=0,h=0;h<2;h++){var d=Je[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=hi+p),(p>=a&&p<=n||p+hi>=a&&p+hi<=n)&&(p>Math.PI/2&&p1&&(e||(s+=Wa(l,u,f,c,a,n))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case hn.M:f=i[d++],c=i[d++],l=f,u=c;break;case hn.L:if(e){if(Tn(l,u,i[d],i[d+1],t,a,n))return!0}else s+=Wa(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case hn.C:if(e){if(MB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=kB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case hn.Q:if(e){if(tD(l,u,i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=RB(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case hn.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],x=i[d++];d+=1;var w=!!(1-i[d++]);v=Math.cos(b)*_+y,h=Math.sin(b)*S+m,g?(f=v,c=h):s+=Wa(l,u,v,h,a,n);var T=(a-y)*S/_+y;if(e){if(DB(y,m,S,b,b+x,w,t,T,n))return!0}else s+=EB(y,m,S,b,b+x,w,T,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case hn.R:f=l=i[d++],c=u=i[d++];var C=i[d++],M=i[d++];if(v=f+C,h=c+M,e){if(Tn(f,c,v,c,t,a,n)||Tn(v,c,v,h,t,a,n)||Tn(v,h,f,h,t,a,n)||Tn(f,h,f,c,t,a,n))return!0}else s+=Wa(v,c,v,h,a,n),s+=Wa(f,h,f,c,a,n);break;case hn.Z:if(e){if(Tn(l,u,f,c,t,a,n))return!0}else s+=Wa(l,u,f,c,a,n);l=f,u=c;break}}return!e&&!IB(u,c)&&(s+=Wa(l,u,f,c,a,n)||0),s!==0}function OB(r,t,e){return eD(r,0,!1,t,e)}function NB(r,t,e,a){return eD(r,t,!0,e,a)}var Hc=vt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xi),BB={style:vt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xv.style)},od=ka.concat(["invisible","culling","z","z2","zlevel","parent"]),zB=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Mg:a>.2?vN:Dg}else if(e)return Dg}return Mg},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(Q(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Nc(e,0)0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Qo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect(),o=this.style;if(e=n[0],a=n[1],i.contain(e,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),NB(s,l/u,e,a)))return!0}if(this.hasFill())return OB(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Qo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=a:$(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Qo)},t.prototype.createStyle=function(e){return Fv(Hc,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=$({},this.shape))},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=$({},n.shape),$(u,a.shape)):(u=$({},i?this.shape:n.shape),$(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=$({},this.shape);for(var f={},c=It(u),v=0;vn&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),r.moveTo(e+s,a),r.lineTo(e+n-l,a),l!==0&&r.arc(e+n-l,a+l,l,-Math.PI/2,0),r.lineTo(e+n,a+i-u),u!==0&&r.arc(e+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(e+f,a+i),f!==0&&r.arc(e+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5)}var is=Math.round;function jv(r,t,e){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(is(a*2)===is(n*2)&&(r.x1=r.x2=mr(a,s,!0)),is(i*2)===is(o*2)&&(r.y1=r.y2=mr(i,s,!0))),r}}function nD(r,t,e){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=mr(a,s,!0),r.y=mr(n,s,!0),r.width=Math.max(mr(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(mr(n+o,s,!1)-r.y,o===0?0:1)),r}}function mr(r,t,e){if(!t)return r;var a=is(r*2);return(a+is(t))%2===0?a/2:(a+(e?1:-1))/2}var $B=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),UB={},iD=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new $B},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=nD(UB,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?WB(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Lt);iD.prototype.type="rect";const Mt=iD;var G1={fill:"#000"},F1=2,ua={},YB={style:vt({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},Xv.style)},oD=function(r){z(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=G1,a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,I=0;I=0&&(k=x[L],k.align==="right");)this._placeToken(k,e,T,y,I,"right",_),C-=k.width,I-=k.width,L--;for(D+=(f-(D-g)-(m-I)-C)/2;M<=L;)k=x[M],this._placeToken(k,e,T,y,D+k.width/2,"center",_),D+=k.width,M++;y+=T}},t.prototype._placeToken=function(e,a,n,i,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,c=i+n/2;f==="top"?c=i+e.height/2:f==="bottom"&&(c=i+n-e.height/2);var v=!e.isLineHolder&&sd(u);v&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,c-e.height/2,e.width,e.height);var h=!!u.backgroundColor,d=e.textPadding;d&&(o=Z1(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(iu),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,b=Y1("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),x=U1("stroke"in u?u.stroke:"stroke"in a?a.stroke:!h&&!l&&(!y.autoStroke||m)?(_=F1,S=!0,y.stroke):null),w=u.textShadowBlur>0||a.textShadowBlur>0;g.text=e.text,g.x=o,g.y=c,w&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Qa,g.opacity=_r(u.opacity,a.opacity,1),W1(g,u),x&&(g.lineWidth=_r(u.lineWidth,a.lineWidth,_),g.lineDash=nt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=x),b&&(g.fill=b),p.setBoundingRect(kg(g,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,a,n,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,c=l&&l.image,v=l&&!c,h=e.borderRadius,d=this,p,g;if(v||e.lineHeight||u&&f){p=this._getOrCreateChild(Mt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=nt(e.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Fe),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=nt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=_r(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return lD(e)&&(a=[e.fontStyle,e.fontWeight,sD(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&Nr(a)||e.textFont||e.font},t}(Vr),ZB={left:!0,right:1,center:1},XB={top:1,bottom:1,middle:1},H1=["fontStyle","fontWeight","fontSize","fontFamily"];function sD(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?dm+"px":r+"px"}function W1(r,t){for(var e=0;e=0,i=!1;if(r instanceof Lt){var o=uD(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Po(s)||Po(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=$({},a),u=$({},u),u.fill=s):!Po(u.fill)&&Po(s)?(i=!0,a=$({},a),u=$({},u),u.fill=_g(s)):!Po(u.stroke)&&Po(l)&&(i||(a=$({},a),u=$({},u)),u.stroke=_g(l)),a.style=u}}if(a&&a.z2==null){i||(a=$({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??Es)}return a}function ez(r,t,e){if(e&&e.z2==null){e=$({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??KB)}return e}function rz(r,t,e){var a=bt(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:QB(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=$({},e),o=$({opacity:a?n:i.opacity*.1},o),e.style=o),e}function ld(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return tz(this,r,t,e);if(r==="blur")return rz(this,r,e);if(r==="select")return ez(this,r,e)}return e}function io(r){r.stateProxy=ld;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=ld),e&&(e.stateProxy=ld)}function J1(r,t){!gD(r,t)&&!r.__highByOuter&&un(r,fD)}function Q1(r,t){!gD(r,t)&&!r.__highByOuter&&un(r,cD)}function rn(r,t){r.__highByOuter|=1<<(t||0),un(r,fD)}function an(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&un(r,cD)}function hD(r){un(r,Bm)}function zm(r){un(r,vD)}function dD(r){un(r,jB)}function pD(r){un(r,JB)}function gD(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function yD(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Em(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){vD(u)}),s&&e.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Bg(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Ki(r,t,e){Vi(r,!0),un(r,io),Vg(r,t,e)}function lz(r){Vi(r,!1)}function Jt(r,t,e,a){a?lz(r):Ki(r,t,e)}function Vg(r,t,e){var a=pt(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var eS=["emphasis","blur","select"],uz={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function we(r,t,e,a){e=e||"itemStyle";for(var n=0;n1&&(o*=ud(d),s*=ud(d));var p=(n===i?-1:1)*ud((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,y=p*-s*v/o,m=(r+e)/2+sf(c)*g-of(c)*y,_=(t+a)/2+of(c)*g+sf(c)*y,S=iS([1,0],[(v-g)/o,(h-y)/s]),b=[(v-g)/o,(h-y)/s],x=[(-1*v-g)/o,(-1*h-y)/s],w=iS(b,x);if(Fg(b,x)<=-1&&(w=Js),Fg(b,x)>=1&&(w=0),w<0){var T=Math.round(w/Js*1e6)/1e6;w=Js*2+T%2*Js}f.addData(u,m,_,o,s,S,w,c,i)}var pz=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,gz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function yz(r){var t=new Ra;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=Ra.CMD,l=r.match(pz);if(!l)return t;for(var u=0;uk*k+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(n/b-1),y1:C*(n/b-1)}}function Tz(r){var t;if(U(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Cz(r,t){var e,a=Dl(t.r,0),n=Dl(t.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,v=!!t.clockwise,h=sS(u-l),d=h>fd&&h%fd;if(d>$r&&(h=d),!(a>$r))r.moveTo(f,c);else if(h>fd-$r)r.moveTo(f+a*Ro(l),c+a*di(l)),r.arc(f,c,a,l,u,!v),n>$r&&(r.moveTo(f+n*Ro(u),c+n*di(u)),r.arc(f,c,n,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,I=void 0,L=void 0,k=void 0,R=a*Ro(l),P=a*di(l),O=n*Ro(u),E=n*di(u),B=h>$r;if(B){var V=t.cornerRadius;V&&(e=Tz(V),p=e[0],g=e[1],y=e[2],m=e[3]);var H=sS(a-n)/2;if(_=fa(H,y),S=fa(H,m),b=fa(H,p),x=fa(H,g),C=w=Dl(_,S),M=T=Dl(b,x),(w>$r||T>$r)&&(D=a*Ro(u),I=a*di(u),L=n*Ro(l),k=n*di(l),h$r){var N=fa(y,C),F=fa(m,C),Z=lf(L,k,R,P,a,N,v),K=lf(D,I,O,E,a,F,v);r.moveTo(f+Z.cx+Z.x0,c+Z.cy+Z.y0),C0&&r.arc(f+Z.cx,c+Z.cy,N,He(Z.y0,Z.x0),He(Z.y1,Z.x1),!v),r.arc(f,c,a,He(Z.cy+Z.y1,Z.cx+Z.x1),He(K.cy+K.y1,K.cx+K.x1),!v),F>0&&r.arc(f+K.cx,c+K.cy,F,He(K.y1,K.x1),He(K.y0,K.x0),!v))}else r.moveTo(f+R,c+P),r.arc(f,c,a,l,u,!v);if(!(n>$r)||!B)r.lineTo(f+O,c+E);else if(M>$r){var N=fa(p,M),F=fa(g,M),Z=lf(O,E,D,I,n,-F,v),K=lf(R,P,L,k,n,-N,v);r.lineTo(f+Z.cx+Z.x0,c+Z.cy+Z.y0),M0&&r.arc(f+Z.cx,c+Z.cy,F,He(Z.y0,Z.x0),He(Z.y1,Z.x1),!v),r.arc(f,c,n,He(Z.cy+Z.y1,Z.cx+Z.x1),He(K.cy+K.y1,K.cx+K.x1),v),N>0&&r.arc(f+K.cx,c+K.cy,N,He(K.y1,K.x1),He(K.y0,K.x0),!v))}else r.lineTo(f+O,c+E),r.arc(f,c,n,u,l,v)}r.closePath()}}}var Az=function(){function r(){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 r}(),AD=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Az},t.prototype.buildPath=function(e,a){Cz(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Lt);AD.prototype.type="sector";const rr=AD;var Mz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),MD=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Mz},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.PI*2;e.moveTo(n+a.r,i),e.arc(n,i,a.r,0,o,!1),e.moveTo(n+a.r0,i),e.arc(n,i,a.r0,0,o,!0)},t}(Lt);MD.prototype.type="ring";const th=MD;function Dz(r,t,e,a){var n=[],i=[],o=[],s=[],l,u,f,c;if(a){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=r.length;v=2){if(a){var i=Dz(n,a,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;sgi[1]){if(i=!1,ke.negativeSize||a)return i;var l=uf(gi[0]-pi[1]),u=uf(pi[0]-gi[1]);cd(l,u)>cf.len()&&(l=u||!ke.bidirectional)&&(ct.scale(ff,s,-u*n),ke.useDir&&ke.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(t,e,a){for(var n=this._axes[t],i=this._origin,o=e[0].dot(n)+i[t],s=o,l=o,u=1;u0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function Et(r,t,e,a,n,i){Wm("update",r,t,e,a,n,i)}function jt(r,t,e,a,n,i){Wm("enter",r,t,e,a,n,i)}function hs(r){if(!r.__zr)return!0;for(var t=0;tSa(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function fS(r){return!r.isGroup}function qz(r){return r.shape!=null}function ku(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){fS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return qz(o)&&(s.shape=st(o.shape)),s}var i=a(r);t.traverse(function(o){if(fS(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Et(o,l,e,pt(o).dataIndex)}}})}function FD(r,t){return Y(r,function(e){var a=e[0];a=ue(a,t.x),a=Sr(a,t.x+t.width);var n=e[1];return n=ue(n,t.y),n=Sr(n,t.y+t.height),[a,n]})}function Kz(r,t){var e=ue(r.x,t.x),a=Sr(r.x+r.width,t.x+t.width),n=ue(r.y,t.y),i=Sr(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Ru(r,t,e){var a=$({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),vt(n,e),new Fe(a)):lu(r.replace("path://",""),a,e,"center")}function Ll(r,t,e,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=vd(h,d,f,c)/v;return!(g<0||g>1)}function vd(r,t,e,a){return r*a-e*t}function jz(r){return r<=1e-6&&r>=-1e-6}function oo(r,t,e,a,n){return t==null||(Pt(t)?ee[0]=ee[1]=ee[2]=ee[3]=t:(ee[0]=t[0],ee[1]=t[1],ee[2]=t[2],ee[3]=t[3]),a&&(ee[0]=ue(0,ee[0]),ee[1]=ue(0,ee[1]),ee[2]=ue(0,ee[2]),ee[3]=ue(0,ee[3])),e&&(ee[0]=-ee[0],ee[1]=-ee[1],ee[2]=-ee[2],ee[3]=-ee[3]),cS(r,ee,"x","width",3,1,n&&n[0]||0),cS(r,ee,"y","height",0,2,n&&n[1]||0)),r}var ee=[0,0,0,0];function cS(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=ue(0,Sr(o,l)),r[a]=0?-t[n]:t[i]>=0?l+t[i]:Sa(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function fn(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=Q(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(It(l),function(f){et(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=pt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:vt({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Wg(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Qn(r,t){if(r)if(U(r))for(var e=0;et&&(t=o),ot&&(e=t=0),{min:e,max:t}}function nh(r,t,e){$D(r,t,e,-1/0)}function $D(r,t,e,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l=0&&s.push(l)}),s}}function ti(r,t){return wt(wt({},r,!0),t,!0)}const fV={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:". "}}}},cV={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 Xc="ZH",Zm="EN",ds=Zm,mc={},Xm={},KD=Nt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ds).toUpperCase();return r.indexOf(Xc)>-1?Xc:ds}():ds;function jD(r,t){r=r.toUpperCase(),Xm[r]=new Ot(t),mc[r]=t}function vV(r){if(Q(r)){var t=mc[r.toUpperCase()]||{};return r===Xc||r===Zm?st(t):wt(st(t),st(mc[ds]),!1)}else return wt(st(r),st(mc[ds]),!1)}function Ug(r){return Xm[r]}function hV(){return Xm[ds]}jD(Zm,fV);jD(Xc,cV);var Yg=null;function dV(r){Yg||(Yg=r)}function pe(){return Yg}var qm=1e3,Km=qm*60,$l=Km*60,Or=$l*24,gS=Or*365,pV={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})/},_c={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},gV="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",hf="{yyyy}-{MM}-{dd}",yS={year:"{yyyy}",month:"{yyyy}-{MM}",day:hf,hour:hf+" "+_c.hour,minute:hf+" "+_c.minute,second:hf+" "+_c.second,millisecond:gV},hr=["year","month","day","hour","minute","second","millisecond"],yV=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function mV(r){return!Q(r)&&!ot(r)?_V(r):r}function _V(r){r=r||{};var t={},e=!0;return A(hr,function(a){e&&(e=r[a]==null)}),A(hr,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=hr[s],u=ht(i)&&!U(i)?i[l]:i,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):Q(u)?(o=u,f=[o]):(o==null?o=_c[a]:pV[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[a][l]=f}}),t}function dn(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ul(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function SV(r){return r===Ul(r)}function xV(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function oh(r,t,e,a){var n=ho(r),i=n[JD(e)](),o=n[jm(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[Jm(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Qm(e)](),c=(f-1)%12+1,v=n[t0(e)](),h=n[e0(e)](),d=n[r0(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=a instanceof Ot?a:Ug(a||KD)||hV(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,dn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,dn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,dn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,dn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,dn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,dn(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,dn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,dn(d,3)).replace(/{S}/g,d+"")}function bV(r,t,e,a,n){var i=null;if(Q(e))i=e;else if(ot(e)){var o={time:r.time,level:r.time.level},s=pe();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=ss(r.value,n);i=e[f][f][0]}}return oh(new Date(r.value),i,n,a)}function ss(r,t){var e=ho(r),a=e[jm(t)]()+1,n=e[Jm(t)](),i=e[Qm(t)](),o=e[t0(t)](),s=e[e0(t)](),l=e[r0(t)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&i===0,h=v&&n===1,d=h&&a===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Zg(r,t,e){switch(t){case"year":r[QD(e)](0);case"month":r[tL(e)](1);case"day":r[eL(e)](0);case"hour":r[rL(e)](0);case"minute":r[aL(e)](0);case"second":r[nL(e)](0)}return r}function JD(r){return r?"getUTCFullYear":"getFullYear"}function jm(r){return r?"getUTCMonth":"getMonth"}function Jm(r){return r?"getUTCDate":"getDate"}function Qm(r){return r?"getUTCHours":"getHours"}function t0(r){return r?"getUTCMinutes":"getMinutes"}function e0(r){return r?"getUTCSeconds":"getSeconds"}function r0(r){return r?"getUTCMilliseconds":"getMilliseconds"}function wV(r){return r?"setUTCFullYear":"setFullYear"}function QD(r){return r?"setUTCMonth":"setMonth"}function tL(r){return r?"setUTCDate":"setDate"}function eL(r){return r?"setUTCHours":"setHours"}function rL(r){return r?"setUTCMinutes":"setMinutes"}function aL(r){return r?"setUTCSeconds":"setSeconds"}function nL(r){return r?"setUTCMilliseconds":"setMilliseconds"}function iL(r){if(!zM(r))return Q(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function oL(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Eu=Gv;function Xg(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Nr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?ho(r):r;if(isNaN(+l)){if(s)return"-"}else return oh(l,a,e)}if(t==="ordinal")return ng(r)?n(r):Pt(r)&&i(r)?r+"":"-";var u=en(r);return i(u)?iL(u):ng(r)?n(r):typeof r=="boolean"?r+"":"-"}var mS=["a","b","c","d","e","f","g"],pd=function(r,t){return"{"+r+(t??"")+"}"};function sL(r,t,e){U(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function lo(r,t){return t=t||"transparent",Q(r)?r:ht(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function qc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Sc={},gd={},AV=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(Sc),this._normalMasterList=a(gd);function a(n,i){var o=[];return A(n,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){A(this._normalMasterList,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Sc[t]=e;return}gd[t]=e},r.get=function(t){return gd[t]||Sc[t]},r}();function MV(r){return!!Sc[r]}var qg={coord:1,coord2:2};function DV(r){lL.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var lL=rt();function LV(r){var t=r.getShallow("coord",!0),e=qg.coord;if(t==null){var a=lL.get(r.type);a&&a.getCoord2&&(e=qg.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var ma={none:0,dataCoordSys:1,boxCoordSys:2};function uL(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=ma.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=ma.dataCoordSys,i||(n=ma.none)):a==="box"&&(n=ma.boxCoordSys,!i&&!MV(e)&&(n=ma.none))}return{coordSysType:e,kind:n}}function Ou(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=uL(t),o=i.kind,s=i.coordSysType;if(n&&o!==ma.dataCoordSys&&(o=ma.dataCoordSys,s=e),o===ma.none||s!==e)return!1;var l=a(e,t);return l?(o===ma.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var fL=function(r,t){var e=t.getReferringComponents(r,ae).models[0];return e&&e.coordinateSystem};const Nu=AV;var xc=A,cL=["left","right","top","bottom","width","height"],Gi=[["width","left","right"],["height","top","bottom"]];function a0(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=i+p,h>a||l.newline?(i=0,h=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+e:o=d+e)})}var Ji=a0;xt(a0,"vertical");xt(a0,"horizontal");function vL(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function IV(r,t){var e=Ce(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===Il.point)i=e.refPoint,n=Qt(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=U(o)?o:[o,o];n=Qt(a,e.refContainer),i=e.boxCoordFrom===qg.coord2?e.refPoint:[J(s[0],n.width)+n.x,J(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function hL(r,t){var e=IV(r,t),a=e.viewRect,n=e.center,i=r.get("radius");U(i)||(i=[0,i]);var o=J(a.width,t.getWidth()),s=J(a.height,t.getHeight()),l=Math.min(o,s),u=J(i[0],l/2),f=J(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function Qt(r,t,e){e=Eu(e||0);var a=t.width,n=t.height,i=J(r.left,a),o=J(r.top,n),s=J(r.right,a),l=J(r.bottom,n),u=J(r.width,a),f=J(r.height,n),c=e[2]+e[0],v=e[1]+e[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-c),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var d=new dt((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}function dL(r,t,e){var a=r.getShallow("preserveAspect",!0);if(!a)return t;var n=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(n))<1e-9)return t;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=a==="cover";return n>e&&!l||n=p)return c;for(var g=0;g=0;l--)s=wt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Rs(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return vL(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Ot);qM(Vs,Ot);Yv(Vs);lV(Vs);uV(Vs,RV);function RV(r){var t=[];return A(Vs.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return ba(e).main}),r!=="dataset"&&bt(t,"dataset")<=0&&t.unshift("dataset"),t}const kt=Vs;var Fi={color:{},darkColor:{},size:{}},oe=Fi.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)"};$(oe,{primary:oe.neutral80,secondary:oe.neutral70,tertiary:oe.neutral60,quaternary:oe.neutral50,disabled:oe.neutral20,border:oe.neutral30,borderTint:oe.neutral20,borderShade:oe.neutral40,background:oe.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:oe.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:oe.neutral70,axisLineTint:oe.neutral40,axisTick:oe.neutral70,axisTickMinor:oe.neutral60,axisLabel:oe.neutral70,axisSplitLine:oe.neutral15,axisMinorSplitLine:oe.neutral05});for(var yi in oe)if(oe.hasOwnProperty(yi)){var _S=oe[yi];yi==="theme"?Fi.darkColor.theme=oe.theme.slice():yi==="highlight"?Fi.darkColor.highlight="rgba(255,231,130,0.4)":yi.indexOf("accent")===0?Fi.darkColor[yi]=Bn(_S,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Fi.darkColor[yi]=Bn(_S,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Fi.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const G=Fi;var gL="";typeof navigator<"u"&&(gL=navigator.platform||"");var Eo="rgba(0, 0, 0, 0.2)",yL=G.color.theme[0],EV=Bn(yL,null,null,.9);const OV={darkMode:"auto",colorBy:"series",color:G.color.theme,gradientColor:[EV,yL],aria:{decal:{decals:[{color:Eo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Eo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Eo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Eo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Eo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Eo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gL.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 mL=rt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),xr="original",Ne="arrayRows",br="objectRows",aa="keyedColumns",Vn="typedArray",_L="unknown",jr="column",mo="row",Be={Must:1,Might:2,Not:3},SL=Dt();function NV(r){SL(r).datasetMap=rt()}function xL(r,t,e){var a={},n=i0(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=SL(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),A(r,function(p,g){var y=ht(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});A(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;h(a[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(f===g)h(a[y],0,m),h(i,0,m);else{var _=v.categoryWayDim;h(a[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(p,g,y){for(var m=0;mt)return r[a];return r[e-1]}function TL(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?e:FV(a,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function HV(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var df,Qs,xS,bS="\0_ec_inner",WV=1,CL=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Ot(i),this._locale=new Ot(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=CS(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,CS(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?xS(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=rt(),u=a&&a.replaceMergeMainTypeMap;NV(this),A(e,function(c,v){c!=null&&(kt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?st(c):wt(n[v],c,!0))}),u&&u.each(function(c,v){kt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),kt.topologicalTravel(s,kt.getAllClassMainTypes(),f,this);function f(c){var v=VV(this,c,Ut(e[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=$M(h,v,d);UN(p,c,kt),n[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;A(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",C=kt.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var M=$({componentIndex:b},S.keyInfo);x=new C(w,this,this,M),$(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[c]=g,i.set(c,y),o.set(c,m),c==="series"&&df(this)}this._seriesIndices||df(this)},t.prototype.getOption=function(){var e=st(this.option);return A(e,function(a,n){if(kt.hasClass(n)){for(var i=Ut(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!nu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[bS],e},t.prototype.setTheme=function(e){this._theme=new Ot(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function QV(r,t){return r.join(",")===t.join(",")}const t5=qV;var Wr=A,cu=ht,AS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yd(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=AS.length;e0?e[o-1].seriesModel:null)}),u5(e)}})}function u5(r){A(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var v=o.get(t.stackedDimension,c);if(isNaN(v))return n;var h,d;s?d=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=PN(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var lh=function(){function r(t){this.data=t.data||(t.sourceFormat===aa?{}:[]),this.sourceFormat=t.sourceFormat||_L,this.seriesLayoutBy=t.seriesLayoutBy||jr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;ap&&(p=_)}h[0]=d,h[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};RS=(t={},t[Ne+"_"+jr]={pure:!0,appendData:i},t[Ne+"_"+mo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[br]={pure:!0,appendData:i},t[aa]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[xr]={appendData:i},t[Vn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Ss(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function BS(r){var t,e;return ht(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Yl(r){return new y5(r)}var y5=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(c||h1&&a>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},_5=function(){function r(t,e){if(!Pt(e)){var a="";Vt(a)}this._opFn=BL[t],this._rvalFloat=en(e)}return r.prototype.evaluate=function(t){return Pt(t)?this._opFn(t,this._rvalFloat):this._opFn(en(t),this._rvalFloat)},r}(),zL=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=Pt(t)?t:en(t),n=Pt(e)?e:en(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=Q(t),l=Q(e);s&&(a=l?t:0),l&&(n=s?e:0)}return an?-this._resultLT:0},r}(),S5=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=en(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=en(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function x5(r,t){return r==="eq"||r==="ne"?new S5(r==="eq",t):et(BL,r)?new _5(r,t):null}var b5=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Gn(t,e)},r}();function w5(r,t){var e=new b5,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==jr&&Vt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";et(l,y)&&Vt(_),l[y]=m}});else for(var f=0;f65535?P5:k5}function No(){return[1/0,-1/0]}function R5(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function GS(r,t,e,a,n){var i=FL[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Y(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&at)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i=c&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[n[0]],_=h[n[1]],S=t[n[1]][0],b=t[n[1]][1],y=0;y=c&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y=c&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;yt[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,v,h=new(Oo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;df&&(f=c,v=S)}D>0&&Ds&&(p=s-f);for(var g=0;gd&&(d=m,h=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(h);cf-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=y),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();il&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,a,n,i){return Gn(e[i],this._dimensions[i])}Sd={arrayRows:t,objectRows:function(e,a,n,i){return Gn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Gn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),HL=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(gf(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=ur(s)?Vn:xr,i=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=nt(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=nt(c.sourceHeader,v.sourceHeader),p=nt(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[Jg(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[Jg(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&HS(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&HS(c),s.push(f),l.push(u._getVersionSign())}),a?o=L5(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[f5(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var mB=Pa(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function _B(r){return yB(r)?!!mB[r]:!0}function JM(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,c=La(t),v=0;ve:n+f+d>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}function k1(r,t,e,a,n,i){if(r.baseX=e,r.baseY=a,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;ht.set(R1,xs(e,o,n),Xi(a,s,i),o,s),ht.intersect(t,R1,null,E1);var l=E1.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=xs(l.x,l.width,n,!0),r.baseY=Xi(l.y,l.height,i,!0)}}var R1=new ht(0,0,0,0),E1={outIntersectRect:{},clamp:!0};function Nm(r){return r!=null?r+="":r=""}function SB(r){var t=Nm(r.text),e=r.font,a=Ia(La(e),t),n=Ru(e);return Og(r,a,n,null)}function Og(r,t,e,a){var n=new ht(xs(r.x||0,t,r.textAlign),Xi(r.y||0,e,r.textBaseline),t,e),i=a??(QM(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function QM(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var Ng="__zr_style_"+Math.round(Math.random()*10),qi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},jv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qi[Ng]=!0;var O1=["z","z2","invisible"],xB=["invisible"],bB=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=It(e),n=0;n1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(of[0]=nd(n)*e+r,of[1]=ad(n)*a+t,sf[0]=nd(i)*e+r,sf[1]=ad(i)*a+t,u(s,of,sf),f(l,of,sf),n=n%ui,n<0&&(n=n+ui),i=i%ui,i<0&&(i=i+ui),n>i&&!o?i+=ui:nn&&(lf[0]=nd(h)*e+r,lf[1]=ad(h)*a+t,u(s,lf,s),f(l,lf,l))}var Yt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fi=[],ci=[],sa=[],vn=[],la=[],ua=[],id=Math.min,od=Math.max,vi=Math.cos,hi=Math.sin,za=Math.abs,Bg=Math.PI,bn=Bg*2,sd=typeof Float32Array<"u",Qs=[];function ld(r){var t=Math.round(r/Bg*1e8)/1e8;return t%2*Bg}function Qv(r,t){var e=ld(r[0]);e<0&&(e+=bn);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=bn?n=e+bn:t&&e-n>=bn?n=e-bn:!t&&e>n?n=e+(bn-ld(e-n)):t&&e0&&(this._ux=za(a/Fc/t)||0,this._uy=za(a/Fc/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Yt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var a=za(t-this._xi),n=za(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Yt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(Yt.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(Yt.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),Qs[0]=n,Qs[1]=i,Qv(Qs,o),n=Qs[0],i=Qs[1];var s=i-n;return this.addData(Yt.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=vi(i)*a+t,this._yi=hi(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(Yt.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Yt.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&sd&&(this.data=new Float32Array(e));for(var a=0;a0&&o))for(var s=0;sf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){sa[0]=sa[1]=la[0]=la[1]=Number.MAX_VALUE,vn[0]=vn[1]=ua[0]=ua[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;oa||za(_)>n||v===e-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Yt.C:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++],x=t[v++],w=t[v++];p=EO(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case Yt.Q:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++];p=NO(i,o,S,b,g,y,10),i=g,o=y;break}case Yt.A:var T=t[v++],C=t[v++],M=t[v++],D=t[v++],I=t[v++],L=t[v++],k=L+I;v+=1,d&&(s=vi(I)*M+T,l=hi(I)*D+C),p=od(M,D)*id(bn,Math.abs(L)),i=vi(k)*M+T,o=hi(k)*D+C;break;case Yt.R:{s=i=t[v++],l=o=t[v++];var R=t[v++],P=t[v++];p=R*2+P*2;break}case Yt.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,c,v,h=e<1,d,p,g=0,y=0,m,_=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var x=0;x0&&(t.lineTo(S,b),_=0),w){case Yt.M:s=u=a[x++],l=f=a[x++],t.moveTo(u,f);break;case Yt.L:{c=a[x++],v=a[x++];var C=za(c-u),M=za(v-f);if(C>n||M>i){if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+c*I,f*(1-I)+v*I);break t}g+=D}t.lineTo(c,v),u=c,f=v,_=0}else{var L=C*C+M*M;L>_&&(S=c,b=v,_=L)}break}case Yt.C:{var k=a[x++],R=a[x++],P=a[x++],O=a[x++],E=a[x++],B=a[x++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;Hn(u,k,P,E,I,fi),Hn(f,R,O,B,I,ci),t.bezierCurveTo(fi[1],ci[1],fi[2],ci[2],fi[3],ci[3]);break t}g+=D}t.bezierCurveTo(k,R,P,O,E,B),u=E,f=B;break}case Yt.Q:{var k=a[x++],R=a[x++],P=a[x++],O=a[x++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;au(u,k,P,I,fi),au(f,R,O,I,ci),t.quadraticCurveTo(fi[1],ci[1],fi[2],ci[2]);break t}g+=D}t.quadraticCurveTo(k,R,P,O),u=P,f=O;break}case Yt.A:var V=a[x++],H=a[x++],W=a[x++],X=a[x++],K=a[x++],q=a[x++],it=a[x++],St=!a[x++],at=W>X?W:X,N=za(W-X)>.001,F=K+q,Z=!1;if(h){var D=d[y++];g+D>m&&(F=K+q*(m-g)/D,Z=!0),g+=D}if(N&&t.ellipse?t.ellipse(V,H,W,X,it,K,F,St):t.arc(V,H,at,K,F,St),Z)break t;T&&(s=vi(K)*W+V,l=hi(K)*X+H),u=vi(F)*W+V,f=hi(F)*X+H;break;case Yt.R:s=u=a[x],l=f=a[x+1],c=a[x++],v=a[x++];var j=a[x++],_t=a[x++];if(h){var D=d[y++];if(g+D>m){var pt=m-g;t.moveTo(c,v),t.lineTo(c+id(pt,j),v),pt-=j,pt>0&&t.lineTo(c+j,v+id(pt,_t)),pt-=_t,pt>0&&t.lineTo(c+od(j-pt,0),v+_t),pt-=j,pt>0&&t.lineTo(c,v+od(_t-pt,0));break t}g+=D}t.rect(c,v,j,_t);break;case Yt.Z:if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Yt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const Ea=MB;function Tn(r,t,e,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>a+s||or+s&&i>e+s||it+c&&f>a+c&&f>i+c&&f>s+c||fr+c&&u>e+c&&u>n+c&&u>o+c||ut+u&&l>a+u&&l>i+u||lr+u&&s>e+u&&s>n+u||se||f+un&&(n+=tl);var v=Math.atan2(l,s);return v<0&&(v+=tl),v>=a&&v<=n||v+tl>=a&&v+tl<=n}function $a(r,t,e,a,n,i){if(i>t&&i>a||in?s:0}var hn=Ea.CMD,di=Math.PI*2,IB=1e-4;function PB(r,t){return Math.abs(r-t)t&&u>a&&u>i&&u>s||u1&&kB(),h=De(t,a,i,s,Pr[0]),v>1&&(d=De(t,a,i,s,Pr[1]))),v===2?gt&&s>a&&s>i||s=0&&u<=1){for(var f=0,c=Ee(t,a,i,u),v=0;ve||s<-e)return 0;var l=Math.sqrt(e*e-s*s);tr[0]=-l,tr[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=di-1e-4){a=0,n=di;var f=i?1:-1;return o>=tr[0]+r&&o<=tr[1]+r?f:0}if(a>n){var c=a;a=n,n=c}a<0&&(a+=di,n+=di);for(var v=0,h=0;h<2;h++){var d=tr[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=di+p),(p>=a&&p<=n||p+di>=a&&p+di<=n)&&(p>Math.PI/2&&p1&&(e||(s+=$a(l,u,f,c,a,n))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case hn.M:f=i[d++],c=i[d++],l=f,u=c;break;case hn.L:if(e){if(Tn(l,u,i[d],i[d+1],t,a,n))return!0}else s+=$a(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case hn.C:if(e){if(DB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=RB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case hn.Q:if(e){if(tD(l,u,i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=EB(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case hn.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],x=i[d++];d+=1;var w=!!(1-i[d++]);v=Math.cos(b)*_+y,h=Math.sin(b)*S+m,g?(f=v,c=h):s+=$a(l,u,v,h,a,n);var T=(a-y)*S/_+y;if(e){if(LB(y,m,S,b,b+x,w,t,T,n))return!0}else s+=OB(y,m,S,b,b+x,w,T,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case hn.R:f=l=i[d++],c=u=i[d++];var C=i[d++],M=i[d++];if(v=f+C,h=c+M,e){if(Tn(f,c,v,c,t,a,n)||Tn(v,c,v,h,t,a,n)||Tn(v,h,f,h,t,a,n)||Tn(f,h,f,c,t,a,n))return!0}else s+=$a(v,c,v,h,a,n),s+=$a(f,h,f,c,a,n);break;case hn.Z:if(e){if(Tn(l,u,f,c,t,a,n))return!0}else s+=$a(l,u,f,c,a,n);l=f,u=c;break}}return!e&&!PB(u,c)&&(s+=$a(l,u,f,c,a,n)||0),s!==0}function NB(r,t,e){return eD(r,0,!1,t,e)}function BB(r,t,e,a){return eD(r,t,!0,e,a)}var Uc=ct({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qi),zB={style:ct({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},jv.style)},ud=Ra.concat(["invisible","culling","z","z2","zlevel","parent"]),VB=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Ig:a>.2?hN:Pg}else if(e)return Pg}return Ig},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(Q(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Vc(e,0)0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&rs)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect(),o=this.style;if(e=n[0],a=n[1],i.contain(e,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),BB(s,l/u,e,a)))return!0}if(this.hasFill())return NB(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=rs,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=a:$(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&rs)},t.prototype.createStyle=function(e){return $v(Uc,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=$({},this.shape))},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=$({},n.shape),$(u,a.shape)):(u=$({},i?this.shape:n.shape),$(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=$({},this.shape);for(var f={},c=It(u),v=0;vn&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),r.moveTo(e+s,a),r.lineTo(e+n-l,a),l!==0&&r.arc(e+n-l,a+l,l,-Math.PI/2,0),r.lineTo(e+n,a+i-u),u!==0&&r.arc(e+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(e+f,a+i),f!==0&&r.arc(e+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5)}var ls=Math.round;function th(r,t,e){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(ls(a*2)===ls(n*2)&&(r.x1=r.x2=Sr(a,s,!0)),ls(i*2)===ls(o*2)&&(r.y1=r.y2=Sr(i,s,!0))),r}}function nD(r,t,e){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Sr(a,s,!0),r.y=Sr(n,s,!0),r.width=Math.max(Sr(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Sr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Sr(r,t,e){if(!t)return r;var a=ls(r*2);return(a+ls(t))%2===0?a/2:(a+(e?1:-1))/2}var UB=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),YB={},iD=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new UB},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=nD(YB,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?$B(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Dt);iD.prototype.type="rect";const At=iD;var G1={fill:"#000"},F1=2,fa={},ZB={style:ct({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},jv.style)},oD=function(r){z(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=G1,a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,I=0;I=0&&(k=x[L],k.align==="right");)this._placeToken(k,e,T,y,I,"right",_),C-=k.width,I-=k.width,L--;for(D+=(f-(D-g)-(m-I)-C)/2;M<=L;)k=x[M],this._placeToken(k,e,T,y,D+k.width/2,"center",_),D+=k.width,M++;y+=T}},t.prototype._placeToken=function(e,a,n,i,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,c=i+n/2;f==="top"?c=i+e.height/2:f==="bottom"&&(c=i+n-e.height/2);var v=!e.isLineHolder&&fd(u);v&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,c-e.height/2,e.width,e.height);var h=!!u.backgroundColor,d=e.textPadding;d&&(o=Z1(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(lu),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,b=Y1("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),x=U1("stroke"in u?u.stroke:"stroke"in a?a.stroke:!h&&!l&&(!y.autoStroke||m)?(_=F1,S=!0,y.stroke):null),w=u.textShadowBlur>0||a.textShadowBlur>0;g.text=e.text,g.x=o,g.y=c,w&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Qa,g.opacity=xr(u.opacity,a.opacity,1),W1(g,u),x&&(g.lineWidth=xr(u.lineWidth,a.lineWidth,_),g.lineDash=nt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=x),b&&(g.fill=b),p.setBoundingRect(Og(g,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,a,n,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,c=l&&l.image,v=l&&!c,h=e.borderRadius,d=this,p,g;if(v||e.lineHeight||u&&f){p=this._getOrCreateChild(At),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=nt(e.fillOpacity,1)}else if(c){g=this._getOrCreateChild(We),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=nt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=xr(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return lD(e)&&(a=[e.fontStyle,e.fontWeight,sD(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&Br(a)||e.textFont||e.font},t}(Gr),XB={left:!0,right:1,center:1},qB={top:1,bottom:1,middle:1},H1=["fontStyle","fontWeight","fontSize","fontFamily"];function sD(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?ym+"px":r+"px"}function W1(r,t){for(var e=0;e=0,i=!1;if(r instanceof Dt){var o=uD(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Eo(s)||Eo(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=$({},a),u=$({},u),u.fill=s):!Eo(u.fill)&&Eo(s)?(i=!0,a=$({},a),u=$({},u),u.fill=bg(s)):!Eo(u.stroke)&&Eo(l)&&(i||(a=$({},a),u=$({},u)),u.stroke=bg(l)),a.style=u}}if(a&&a.z2==null){i||(a=$({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??Bs)}return a}function rz(r,t,e){if(e&&e.z2==null){e=$({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??jB)}return e}function az(r,t,e){var a=bt(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:tz(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=$({},e),o=$({opacity:a?n:i.opacity*.1},o),e.style=o),e}function cd(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return ez(this,r,t,e);if(r==="blur")return az(this,r,e);if(r==="select")return rz(this,r,e)}return e}function oo(r){r.stateProxy=cd;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=cd),e&&(e.stateProxy=cd)}function J1(r,t){!gD(r,t)&&!r.__highByOuter&&un(r,fD)}function Q1(r,t){!gD(r,t)&&!r.__highByOuter&&un(r,cD)}function rn(r,t){r.__highByOuter|=1<<(t||0),un(r,fD)}function an(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&un(r,cD)}function hD(r){un(r,Gm)}function Fm(r){un(r,vD)}function dD(r){un(r,JB)}function pD(r){un(r,QB)}function gD(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function yD(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Bm(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){vD(u)}),s&&e.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Gg(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function ji(r,t,e){Gi(r,!0),un(r,oo),Hg(r,t,e)}function uz(r){Gi(r,!1)}function Qt(r,t,e,a){a?uz(r):ji(r,t,e)}function Hg(r,t,e){var a=dt(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var eS=["emphasis","blur","select"],fz={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function we(r,t,e,a){e=e||"itemStyle";for(var n=0;n1&&(o*=vd(d),s*=vd(d));var p=(n===i?-1:1)*vd((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,y=p*-s*v/o,m=(r+e)/2+ff(c)*g-uf(c)*y,_=(t+a)/2+uf(c)*g+ff(c)*y,S=iS([1,0],[(v-g)/o,(h-y)/s]),b=[(v-g)/o,(h-y)/s],x=[(-1*v-g)/o,(-1*h-y)/s],w=iS(b,x);if($g(b,x)<=-1&&(w=el),$g(b,x)>=1&&(w=0),w<0){var T=Math.round(w/el*1e6)/1e6;w=el*2+T%2*el}f.addData(u,m,_,o,s,S,w,c,i)}var gz=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,yz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mz(r){var t=new Ea;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=Ea.CMD,l=r.match(gz);if(!l)return t;for(var u=0;uk*k+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(n/b-1),y1:C*(n/b-1)}}function Cz(r){var t;if(U(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Az(r,t){var e,a=Pl(t.r,0),n=Pl(t.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,v=!!t.clockwise,h=sS(u-l),d=h>hd&&h%hd;if(d>Ur&&(h=d),!(a>Ur))r.moveTo(f,c);else if(h>hd-Ur)r.moveTo(f+a*No(l),c+a*pi(l)),r.arc(f,c,a,l,u,!v),n>Ur&&(r.moveTo(f+n*No(u),c+n*pi(u)),r.arc(f,c,n,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,I=void 0,L=void 0,k=void 0,R=a*No(l),P=a*pi(l),O=n*No(u),E=n*pi(u),B=h>Ur;if(B){var V=t.cornerRadius;V&&(e=Cz(V),p=e[0],g=e[1],y=e[2],m=e[3]);var H=sS(a-n)/2;if(_=ca(H,y),S=ca(H,m),b=ca(H,p),x=ca(H,g),C=w=Pl(_,S),M=T=Pl(b,x),(w>Ur||T>Ur)&&(D=a*No(u),I=a*pi(u),L=n*No(l),k=n*pi(l),hUr){var N=ca(y,C),F=ca(m,C),Z=cf(L,k,R,P,a,N,v),j=cf(D,I,O,E,a,F,v);r.moveTo(f+Z.cx+Z.x0,c+Z.cy+Z.y0),C0&&r.arc(f+Z.cx,c+Z.cy,N,$e(Z.y0,Z.x0),$e(Z.y1,Z.x1),!v),r.arc(f,c,a,$e(Z.cy+Z.y1,Z.cx+Z.x1),$e(j.cy+j.y1,j.cx+j.x1),!v),F>0&&r.arc(f+j.cx,c+j.cy,F,$e(j.y1,j.x1),$e(j.y0,j.x0),!v))}else r.moveTo(f+R,c+P),r.arc(f,c,a,l,u,!v);if(!(n>Ur)||!B)r.lineTo(f+O,c+E);else if(M>Ur){var N=ca(p,M),F=ca(g,M),Z=cf(O,E,D,I,n,-F,v),j=cf(R,P,L,k,n,-N,v);r.lineTo(f+Z.cx+Z.x0,c+Z.cy+Z.y0),M0&&r.arc(f+Z.cx,c+Z.cy,F,$e(Z.y0,Z.x0),$e(Z.y1,Z.x1),!v),r.arc(f,c,n,$e(Z.cy+Z.y1,Z.cx+Z.x1),$e(j.cy+j.y1,j.cx+j.x1),v),N>0&&r.arc(f+j.cx,c+j.cy,N,$e(j.y1,j.x1),$e(j.y0,j.x0),!v))}else r.lineTo(f+O,c+E),r.arc(f,c,n,u,l,v)}r.closePath()}}}var Mz=function(){function r(){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 r}(),AD=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Mz},t.prototype.buildPath=function(e,a){Az(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Dt);AD.prototype.type="sector";const nr=AD;var Dz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),MD=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Dz},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.PI*2;e.moveTo(n+a.r,i),e.arc(n,i,a.r,0,o,!1),e.moveTo(n+a.r0,i),e.arc(n,i,a.r0,0,o,!0)},t}(Dt);MD.prototype.type="ring";const ah=MD;function Lz(r,t,e,a){var n=[],i=[],o=[],s=[],l,u,f,c;if(a){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=r.length;v=2){if(a){var i=Lz(n,a,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;syi[1]){if(i=!1,ke.negativeSize||a)return i;var l=vf(yi[0]-gi[1]),u=vf(gi[0]-yi[1]);dd(l,u)>df.len()&&(l=u||!ke.bidirectional)&&(ft.scale(hf,s,-u*n),ke.useDir&&ke.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(t,e,a){for(var n=this._axes[t],i=this._origin,o=e[0].dot(n)+i[t],s=o,l=o,u=1;u0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function Ot(r,t,e,a,n,i){Ym("update",r,t,e,a,n,i)}function Jt(r,t,e,a,n,i){Ym("enter",r,t,e,a,n,i)}function gs(r){if(!r.__zr)return!0;for(var t=0;txa(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function fS(r){return!r.isGroup}function Kz(r){return r.shape!=null}function Ou(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){fS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Kz(o)&&(s.shape=st(o.shape)),s}var i=a(r);t.traverse(function(o){if(fS(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Ot(o,l,e,dt(o).dataIndex)}}})}function FD(r,t){return Y(r,function(e){var a=e[0];a=ue(a,t.x),a=br(a,t.x+t.width);var n=e[1];return n=ue(n,t.y),n=br(n,t.y+t.height),[a,n]})}function jz(r,t){var e=ue(r.x,t.x),a=br(r.x+r.width,t.x+t.width),n=ue(r.y,t.y),i=br(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Nu(r,t,e){var a=$({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ct(n,e),new We(a)):cu(r.replace("path://",""),a,e,"center")}function kl(r,t,e,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=pd(h,d,f,c)/v;return!(g<0||g>1)}function pd(r,t,e,a){return r*a-e*t}function Jz(r){return r<=1e-6&&r>=-1e-6}function so(r,t,e,a,n){return t==null||(kt(t)?re[0]=re[1]=re[2]=re[3]=t:(re[0]=t[0],re[1]=t[1],re[2]=t[2],re[3]=t[3]),a&&(re[0]=ue(0,re[0]),re[1]=ue(0,re[1]),re[2]=ue(0,re[2]),re[3]=ue(0,re[3])),e&&(re[0]=-re[0],re[1]=-re[1],re[2]=-re[2],re[3]=-re[3]),cS(r,re,"x","width",3,1,n&&n[0]||0),cS(r,re,"y","height",0,2,n&&n[1]||0)),r}var re=[0,0,0,0];function cS(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=ue(0,br(o,l)),r[a]=0?-t[n]:t[i]>=0?l+t[i]:xa(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function fn(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=Q(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(It(l),function(f){et(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=dt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ct({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Yg(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Qn(r,t){if(r)if(U(r))for(var e=0;et&&(t=o),ot&&(e=t=0),{min:e,max:t}}function sh(r,t,e){$D(r,t,e,-1/0)}function $D(r,t,e,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l=0&&s.push(l)}),s}}function ti(r,t){return wt(wt({},r,!0),t,!0)}const cV={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:". "}}}},vV={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 jc="ZH",Km="EN",ys=Km,xc={},jm={},KD=Bt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ys).toUpperCase();return r.indexOf(jc)>-1?jc:ys}():ys;function jD(r,t){r=r.toUpperCase(),jm[r]=new Nt(t),xc[r]=t}function hV(r){if(Q(r)){var t=xc[r.toUpperCase()]||{};return r===jc||r===Km?st(t):wt(st(t),st(xc[ys]),!1)}else return wt(st(r),st(xc[ys]),!1)}function Xg(r){return jm[r]}function dV(){return jm[ys]}jD(Km,cV);jD(jc,vV);var qg=null;function pV(r){qg||(qg=r)}function pe(){return qg}var Jm=1e3,Qm=Jm*60,Zl=Qm*60,Nr=Zl*24,gS=Nr*365,gV={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})/},bc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},yV="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",gf="{yyyy}-{MM}-{dd}",yS={year:"{yyyy}",month:"{yyyy}-{MM}",day:gf,hour:gf+" "+bc.hour,minute:gf+" "+bc.minute,second:gf+" "+bc.second,millisecond:yV},pr=["year","month","day","hour","minute","second","millisecond"],mV=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _V(r){return!Q(r)&&!ot(r)?SV(r):r}function SV(r){r=r||{};var t={},e=!0;return A(pr,function(a){e&&(e=r[a]==null)}),A(pr,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=pr[s],u=vt(i)&&!U(i)?i[l]:i,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):Q(u)?(o=u,f=[o]):(o==null?o=bc[a]:gV[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[a][l]=f}}),t}function dn(r,t){return r+="","0000".substr(0,t-r.length)+r}function Xl(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function xV(r){return r===Xl(r)}function bV(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function uh(r,t,e,a){var n=po(r),i=n[JD(e)](),o=n[t0(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[e0(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[r0(e)](),c=(f-1)%12+1,v=n[a0(e)](),h=n[n0(e)](),d=n[i0(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=a instanceof Nt?a:Xg(a||KD)||dV(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,dn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,dn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,dn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,dn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,dn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,dn(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,dn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,dn(d,3)).replace(/{S}/g,d+"")}function wV(r,t,e,a,n){var i=null;if(Q(e))i=e;else if(ot(e)){var o={time:r.time,level:r.time.level},s=pe();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=fs(r.value,n);i=e[f][f][0]}}return uh(new Date(r.value),i,n,a)}function fs(r,t){var e=po(r),a=e[t0(t)]()+1,n=e[e0(t)](),i=e[r0(t)](),o=e[a0(t)](),s=e[n0(t)](),l=e[i0(t)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&i===0,h=v&&n===1,d=h&&a===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Kg(r,t,e){switch(t){case"year":r[QD(e)](0);case"month":r[tL(e)](1);case"day":r[eL(e)](0);case"hour":r[rL(e)](0);case"minute":r[aL(e)](0);case"second":r[nL(e)](0)}return r}function JD(r){return r?"getUTCFullYear":"getFullYear"}function t0(r){return r?"getUTCMonth":"getMonth"}function e0(r){return r?"getUTCDate":"getDate"}function r0(r){return r?"getUTCHours":"getHours"}function a0(r){return r?"getUTCMinutes":"getMinutes"}function n0(r){return r?"getUTCSeconds":"getSeconds"}function i0(r){return r?"getUTCMilliseconds":"getMilliseconds"}function TV(r){return r?"setUTCFullYear":"setFullYear"}function QD(r){return r?"setUTCMonth":"setMonth"}function tL(r){return r?"setUTCDate":"setDate"}function eL(r){return r?"setUTCHours":"setHours"}function rL(r){return r?"setUTCMinutes":"setMinutes"}function aL(r){return r?"setUTCSeconds":"setSeconds"}function nL(r){return r?"setUTCMilliseconds":"setMilliseconds"}function iL(r){if(!zM(r))return Q(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function oL(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Bu=Wv;function jg(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Br(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?po(r):r;if(isNaN(+l)){if(s)return"-"}else return uh(l,a,e)}if(t==="ordinal")return sg(r)?n(r):kt(r)&&i(r)?r+"":"-";var u=en(r);return i(u)?iL(u):sg(r)?n(r):typeof r=="boolean"?r+"":"-"}var mS=["a","b","c","d","e","f","g"],md=function(r,t){return"{"+r+(t??"")+"}"};function sL(r,t,e){U(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function uo(r,t){return t=t||"transparent",Q(r)?r:vt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Jc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var wc={},_d={},MV=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(wc),this._normalMasterList=a(_d);function a(n,i){var o=[];return A(n,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){A(this._normalMasterList,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){wc[t]=e;return}_d[t]=e},r.get=function(t){return _d[t]||wc[t]},r}();function DV(r){return!!wc[r]}var Jg={coord:1,coord2:2};function LV(r){lL.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var lL=rt();function IV(r){var t=r.getShallow("coord",!0),e=Jg.coord;if(t==null){var a=lL.get(r.type);a&&a.getCoord2&&(e=Jg.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var _a={none:0,dataCoordSys:1,boxCoordSys:2};function uL(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=_a.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=_a.dataCoordSys,i||(n=_a.none)):a==="box"&&(n=_a.boxCoordSys,!i&&!DV(e)&&(n=_a.none))}return{coordSysType:e,kind:n}}function zu(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=uL(t),o=i.kind,s=i.coordSysType;if(n&&o!==_a.dataCoordSys&&(o=_a.dataCoordSys,s=e),o===_a.none||s!==e)return!1;var l=a(e,t);return l?(o===_a.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var fL=function(r,t){var e=t.getReferringComponents(r,ne).models[0];return e&&e.coordinateSystem};const Vu=MV;var Tc=A,cL=["left","right","top","bottom","width","height"],Fi=[["width","left","right"],["height","top","bottom"]];function o0(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=i+p,h>a||l.newline?(i=0,h=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+e:o=d+e)})}var Qi=o0;xt(o0,"vertical");xt(o0,"horizontal");function vL(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function PV(r,t){var e=Ce(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===Rl.point)i=e.refPoint,n=te(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=U(o)?o:[o,o];n=te(a,e.refContainer),i=e.boxCoordFrom===Jg.coord2?e.refPoint:[J(s[0],n.width)+n.x,J(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function hL(r,t){var e=PV(r,t),a=e.viewRect,n=e.center,i=r.get("radius");U(i)||(i=[0,i]);var o=J(a.width,t.getWidth()),s=J(a.height,t.getHeight()),l=Math.min(o,s),u=J(i[0],l/2),f=J(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function te(r,t,e){e=Bu(e||0);var a=t.width,n=t.height,i=J(r.left,a),o=J(r.top,n),s=J(r.right,a),l=J(r.bottom,n),u=J(r.width,a),f=J(r.height,n),c=e[2]+e[0],v=e[1]+e[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-c),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var d=new ht((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}function dL(r,t,e){var a=r.getShallow("preserveAspect",!0);if(!a)return t;var n=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(n))<1e-9)return t;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=a==="cover";return n>e&&!l||n=p)return c;for(var g=0;g=0;l--)s=wt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Ns(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return vL(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Nt);qM(Hs,Nt);qv(Hs);uV(Hs);fV(Hs,EV);function EV(r){var t=[];return A(Hs.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return wa(e).main}),r!=="dataset"&&bt(t,"dataset")<=0&&t.unshift("dataset"),t}const Rt=Hs;var Hi={color:{},darkColor:{},size:{}},oe=Hi.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)"};$(oe,{primary:oe.neutral80,secondary:oe.neutral70,tertiary:oe.neutral60,quaternary:oe.neutral50,disabled:oe.neutral20,border:oe.neutral30,borderTint:oe.neutral20,borderShade:oe.neutral40,background:oe.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:oe.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:oe.neutral70,axisLineTint:oe.neutral40,axisTick:oe.neutral70,axisTickMinor:oe.neutral60,axisLabel:oe.neutral70,axisSplitLine:oe.neutral15,axisMinorSplitLine:oe.neutral05});for(var mi in oe)if(oe.hasOwnProperty(mi)){var _S=oe[mi];mi==="theme"?Hi.darkColor.theme=oe.theme.slice():mi==="highlight"?Hi.darkColor.highlight="rgba(255,231,130,0.4)":mi.indexOf("accent")===0?Hi.darkColor[mi]=Bn(_S,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Hi.darkColor[mi]=Bn(_S,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Hi.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const G=Hi;var gL="";typeof navigator<"u"&&(gL=navigator.platform||"");var Bo="rgba(0, 0, 0, 0.2)",yL=G.color.theme[0],OV=Bn(yL,null,null,.9);const NV={darkMode:"auto",colorBy:"series",color:G.color.theme,gradientColor:[OV,yL],aria:{decal:{decals:[{color:Bo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Bo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Bo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Bo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Bo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Bo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gL.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 mL=rt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),wr="original",Ne="arrayRows",Tr="objectRows",ia="keyedColumns",Vn="typedArray",_L="unknown",Qr="column",_o="row",Ve={Must:1,Might:2,Not:3},SL=Mt();function BV(r){SL(r).datasetMap=rt()}function xL(r,t,e){var a={},n=l0(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=SL(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),A(r,function(p,g){var y=vt(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});A(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;h(a[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(f===g)h(a[y],0,m),h(i,0,m);else{var _=v.categoryWayDim;h(a[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(p,g,y){for(var m=0;mt)return r[a];return r[e-1]}function TL(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?e:HV(a,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function WV(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var yf,rl,xS,bS="\0_ec_inner",$V=1,CL=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Nt(i),this._locale=new Nt(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=CS(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,CS(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?xS(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=rt(),u=a&&a.replaceMergeMainTypeMap;BV(this),A(e,function(c,v){c!=null&&(Rt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?st(c):wt(n[v],c,!0))}),u&&u.each(function(c,v){Rt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Rt.topologicalTravel(s,Rt.getAllClassMainTypes(),f,this);function f(c){var v=GV(this,c,Ut(e[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=$M(h,v,d);YN(p,c,Rt),n[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;A(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",C=Rt.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var M=$({componentIndex:b},S.keyInfo);x=new C(w,this,this,M),$(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[c]=g,i.set(c,y),o.set(c,m),c==="series"&&yf(this)}this._seriesIndices||yf(this)},t.prototype.getOption=function(){var e=st(this.option);return A(e,function(a,n){if(Rt.hasClass(n)){for(var i=Ut(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!su(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[bS],e},t.prototype.setTheme=function(e){this._theme=new Nt(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function t5(r,t){return r.join(",")===t.join(",")}const e5=KV;var $r=A,du=vt,AS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sd(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=AS.length;e0?e[o-1].seriesModel:null)}),f5(e)}})}function f5(r){A(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var v=o.get(t.stackedDimension,c);if(isNaN(v))return n;var h,d;s?d=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=kN(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var ch=function(){function r(t){this.data=t.data||(t.sourceFormat===ia?{}:[]),this.sourceFormat=t.sourceFormat||_L,this.seriesLayoutBy=t.seriesLayoutBy||Qr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;ap&&(p=_)}h[0]=d,h[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};RS=(t={},t[Ne+"_"+Qr]={pure:!0,appendData:i},t[Ne+"_"+_o]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Tr]={pure:!0,appendData:i},t[ia]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[wr]={appendData:i},t[Vn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return ws(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function BS(r){var t,e;return vt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function ql(r){return new m5(r)}var m5=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(c||h1&&a>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},S5=function(){function r(t,e){if(!kt(e)){var a="";Gt(a)}this._opFn=BL[t],this._rvalFloat=en(e)}return r.prototype.evaluate=function(t){return kt(t)?this._opFn(t,this._rvalFloat):this._opFn(en(t),this._rvalFloat)},r}(),zL=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=kt(t)?t:en(t),n=kt(e)?e:en(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=Q(t),l=Q(e);s&&(a=l?t:0),l&&(n=s?e:0)}return an?-this._resultLT:0},r}(),x5=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=en(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=en(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function b5(r,t){return r==="eq"||r==="ne"?new x5(r==="eq",t):et(BL,r)?new S5(r,t):null}var w5=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Gn(t,e)},r}();function T5(r,t){var e=new w5,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Qr&&Gt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";et(l,y)&&Gt(_),l[y]=m}});else for(var f=0;f65535?k5:R5}function Vo(){return[1/0,-1/0]}function E5(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function GS(r,t,e,a,n){var i=FL[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Y(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&at)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i=c&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[n[0]],_=h[n[1]],S=t[n[1]][0],b=t[n[1]][1],y=0;y=c&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y=c&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;yt[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,v,h=new(zo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;df&&(f=c,v=S)}D>0&&Ds&&(p=s-f);for(var g=0;gd&&(d=m,h=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(h);cf-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=y),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();il&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,a,n,i){return Gn(e[i],this._dimensions[i])}wd={arrayRows:t,objectRows:function(e,a,n,i){return Gn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Gn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),HL=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(_f(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=cr(s)?Vn:wr,i=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=nt(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=nt(c.sourceHeader,v.sourceHeader),p=nt(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[ey(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[ey(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&HS(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&HS(c),s.push(f),l.push(u._getVersionSign())}),a?o=I5(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[c5(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return A(r.blocks,function(n){var i=YL(n);i>=t&&(t=i+ +(a&&(!i||ty(n)&&!n.noHeader)))}),t}return 0}function B5(r,t,e,a){var n=t.noHeader,i=V5(YL(t)),o=[],s=t.blocks||[];Ze(!s||U(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(et(u,l)){var f=new zL(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,g){var y=t.valueFormatter,m=UL(p)(y?$($({},r),{valueFormatter:y}):r,p,g>0?i.html:0,a);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):ey(a,o.join(""),n?e:i.html);if(n)return c;var v=Xg(t.header,"ordinal",r.useUTC),h=$L(a,r.renderMode).nameStyle,d=WL(a);return r.renderMode==="richText"?ZL(r,v,h)+i.richText+c:ey(a,'
'+$e(v)+"
"+c,e)}function z5(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=U(S)?S:[S],Y(S,function(b,x){return Xg(b,U(h)?h[x]:h,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||G.color.secondary,n),v=i?"":Xg(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,y=$L(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":c)+(i?"":ZL(r,v,m))+(o?"":H5(r,d,p,g,_)):ey(a,(s?"":c)+(i?"":G5(v,!s,m))+(o?"":F5(d,p,g,_)),e)}}function WS(r,t,e,a,n,i){if(r){var o=UL(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function V5(r){return{html:O5[r],richText:N5[r]}}function ey(r,t,e){var a='
',n="margin: "+e+"px 0 0",i=WL(r);return'
'+t+a+"
"}function G5(r,t,e){var a=t?"margin-left:2px":"";return''+$e(r)+""}function F5(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=U(r)?r:[r],''+Y(r,function(o){return $e(o)}).join("  ")+""}function ZL(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function H5(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,i)}function XL(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return lo(a)}function qL(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var xd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=VM()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=CV({color:e,type:t,renderMode:a,markerId:n});return Q(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};U(e)?A(e,function(i){return $(a,i)}):$(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function KL(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=U(s),u=XL(t,e),f,c,v,h;if(o>1||l&&!o){var d=W5(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=f=Ss(n,e,i[0]),c=p.type}else h=f=l?s[0]:s;var g=Lm(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return ye("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[ye("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Nr(_),value:f,valueType:c,dataIndex:e})].concat(v||[])})}function W5(r,t,e,a,n){var i=t.getData(),o=Ia(r,function(c,v,h){var d=i.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(c){f(Ss(i,e,c),c)}):A(r,f);function f(c,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(ye("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var pn=Dt();function yf(r,t){return r.getName(t)||r.getId(t)}var bc="__universalTransitionEnabled",ch=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Yl({count:U5,reset:Y5}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=pn(this).sourceManager=new HL(this);i.prepareSource();var o=this.getInitialData(e,n);US(o,this),this.dataTask.context.data=o,pn(this).dataBeforeProcessed=o,$S(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=fu(this),i=n?yo(e):{},o=this.subType;kt.hasClass(o)&&(o+="Series"),wt(e,a.getTheme().get(this.subType)),wt(e,this.getDefaultOption()),ro(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Ea(e,i,n)},t.prototype.mergeOption=function(e,a){e=wt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=fu(this);n&&Ea(this.option,e,n);var i=pn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);US(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,pn(this).dataBeforeProcessed=o,$S(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ur(e))for(var a=["show"],n=0;n=0&&v<0)&&(c=m,v=y,h=0),y===v&&(f[h++]=p))}),f.length=h,f},t.prototype.formatTooltip=function(e,a,n){return KL({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Nt.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=o0.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[yf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[bc])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ht(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,a)}},t.registerClass=function(e){return kt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(kt);_e(ch,uh);_e(ch,o0);qM(ch,kt);function $S(r){var t=r.name;Lm(r)||(r.name=$5(r)||t)}function $5(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return A(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function U5(r){return r.model.getRawData().count()}function Y5(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Z5}function Z5(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function US(r,t){A(Ql(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,xt(X5,t))})}function X5(r,t){var e=ry(r);return e&&e.setOutputEnd((t||this).count()),t}function ry(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const te=ch;var c0=function(){function r(){this.group=new lt,this.uid=zs("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Pm(c0);Yv(c0);const re=c0;function Gs(){var r=Dt();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var jL=Dt(),q5=Gs(),v0=function(){function r(){this.group=new lt,this.uid=zs("viewChart"),this.renderTask=Yl({plan:K5,reset:j5}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&ZS(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&ZS(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){Qn(this.group,t)},r.markUpdateMethod=function(t,e){jL(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function YS(r,t,e){r&&su(r)&&(t==="emphasis"?rn:an)(r,e)}function ZS(r,t,e){var a=ao(r,t),n=t&&t.highlightKey!=null?cz(t.highlightKey):null;a!=null?A(Ut(a),function(i){YS(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){YS(i,e,n)})}Pm(v0);Yv(v0);function K5(r){return q5(r.model)}function j5(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&jL(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),J5[l]}var J5={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Xt=v0;var Kc="\0__throttleOriginMethod",XS="\0__throttleRate",qS="\0__throttleType";function h0(r,t,e){var a,n=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var h=[],d=0;d=0?c():o=setTimeout(c,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function Fs(r,t,e,a){var n=r[t];if(n){var i=n[Kc]||n,o=n[qS],s=n[XS];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=h0(i,e,a==="debounce"),n[Kc]=i,n[qS]=a,n[XS]=e}return n}}function vu(r,t){var e=r[t];e&&e[Kc]&&(e.clear&&e.clear(),r[t]=e[Kc])}var KS=Dt(),jS={itemStyle:no(qD,!0),lineStyle:no(XD,!0)},Q5={lineStyle:"stroke",itemStyle:"fill"};function JL(r,t){var e=r.visualStyleMapper||jS[t];return e||(console.warn("Unknown style type '"+t+"'."),jS.itemStyle)}function QL(r,t){var e=r.visualDrawType||Q5[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var tG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=JL(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=QL(r,a),u=o[l],f=ot(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ot(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ot(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=$({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},el=new Ot,eG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=JL(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){el.option=l[a];var u=n(el),f=o.ensureUniqueItemVisual(s,"style");$(f,u),el.option.decal&&(o.setItemVisual(s,"decal",el.option.decal),el.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},rG={performRawSeries:!0,overallReset:function(r){var t=rt();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),KS(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=KS(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=QL(e,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var v=i.ensureUniqueItemVisual(f,"style"),h=a.getName(u)||u+"",d=a.count();v[l]=e.getColorFromPalette(h,o,d)}})}})}},mf=Math.PI;function aG(r,t){t=t||{},vt(t,{text:"loading",textColor:G.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:G.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new lt,a=new Mt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new Rt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Mt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Hm({shape:{startAngle:-mf/2,endAngle:-mf/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:mf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:mf*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var nG=function(){function r(t,e,a,n){this._stageTaskMap=rt(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=rt();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";Ze(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;A(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else c&&c.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=rt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Yl({plan:uG,reset:fG,count:vG}));h.context={model:c,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,h)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Yl({reset:iG});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=rt(),u=t.seriesType,f=t.getTargetSeries,c=!0,v=!1,h="";Ze(!t.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(c=!1,A(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,Yl({reset:oG,onDirty:lG})));y.context={model:p,overallProgress:c},y.agent=o,y.__block=c,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return ot(t)&&(t={overallReset:t,seriesType:hG(t)}),t.uid=zs("stageHandler"),e&&(t.visualType=e),t},r}();function iG(r){r.overallReset(r.ecModel,r.api,r.payload)}function oG(r){return r.overallProgress&&sG}function sG(){this.agent.dirty(),this.getDownstream().dirty()}function lG(){this.agent&&this.agent.dirty()}function uG(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function fG(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ut(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,a){return t2(a)}):cG}var cG=t2(0);function t2(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ay=["symbol","symbolSize","symbolRotate","symbolOffset"],QS=ay.concat(["symbolKeepAspect"]),yG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o=0&&Wi(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function ny(r,t,e){for(var a=t.type==="radial"?RG(r,t,e):kG(r,t,e),n=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Pt(r)?[r]:U(r)?r:null}function p0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&OG(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Y(e,function(i){return i/n}),a/=n)}return[e,a]}var NG=new Ra(!0);function Qc(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function tx(r){return typeof r=="string"&&r!=="none"}function tv(r){var t=r.fill;return t!=null&&t!=="none"}function ex(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function rx(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function iy(r,t,e){var a=km(t.image,t.__image,e);if(Zv(a)){var n=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*sc),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function BG(r,t,e,a){var n,i=Qc(e),o=tv(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||NG,c=t.__dirty;if(!a){var v=e.fill,h=e.stroke,d=o&&!!v.colorStops,p=i&&!!h.colorStops,g=o&&!!v.image,y=i&&!!h.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(m=c?ny(r,v,x):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?ny(r,h,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?iy(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=c||!t.__canvasStrokePattern?iy(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(n=p0(t),T=n[0],C=n[1]);var M=!0;(u||c&Qo)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,a),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(e.strokeFirst?(i&&rx(r,e),o&&ex(r,e)):(o&&ex(r,e),i&&rx(r,e))),T&&r.setLineDash([])}function zG(r,t,e){var a=t.__image=km(e.image,t.__image,t,t.onload);if(!(!a||!Zv(a))){var n=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(a,u,f,e.sWidth,e.sHeight,n,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,c=o-u,v=s-f;r.drawImage(a,u,f,c,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function VG(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Qa,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=p0(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(Qc(e)&&r.strokeText(n,e.x,e.y),tv(e)&&r.fillText(n,e.x,e.y)):(tv(e)&&r.fillText(n,e.x,e.y),Qc(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var ax=["shadowBlur","shadowOffsetX","shadowOffsetY"],nx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function s2(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){sr(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Xi.opacity:o}(a||t.blend!==e.blend)&&(i||(sr(r,n),i=!0),r.globalCompositeOperation=t.blend||Xi.blend);for(var s=0;s0&&e.unfinished);e.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(e,a,n){if(!this[Se]){if(this._disposed){this.id;return}var i,o,s;if(ht(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Se]=!0,Go(this),!this._model||a){var l=new t5(this._api),u=this._theme,f=this._model=new AL;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},uy);var c={seriesTransition:s,optionChanged:!0};if(n)this[Pe]={silent:i,updateParams:c},this[Se]=!1,this.getZr().wakeUp();else{try{bi(this),Va.update.call(this,null,c)}catch(v){throw this[Pe]=null,this[Se]=!1,v}this._ssr||this._zr.flush(),this[Pe]=null,this[Se]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[Se]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Pe]&&(i==null&&(i=this[Pe].silent),o=this[Pe].updateParams,this[Pe]=null),this[Se]=!0,Go(this);try{this._updateTheme(e),n.setTheme(this._theme),bi(this),Va.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Se]=!1,s}this[Se]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype._updateTheme=function(e){Q(e)&&(e=C2[e]),e&&(e=st(e),e&&LL(e,!0),this._theme=e)},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||Nt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,a=e.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(_x[n]){var l=s,u=s,f=-s,c=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();A(Zl,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(st(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),v.push({dom:b,left:x.left,top:x.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=Jr.createCanvas(),y=b1(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return A(v,function(_){var S=_.left-l,b=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Mt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),A(v,function(_){var S=new Fe({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a,n){return bf(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return bf(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return bf(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=vs(n,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=vs(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?d0(s,l,a):Bu(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;A(hF,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Hi(l,function(p){var g=pt(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=$({},g.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)});var a=this._messageCenter;A(sy,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),_G(a,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 e=this.getDom();e&&YM(this.getDom(),m0,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Zl[a.id]},t.prototype.resize=function(e){if(!this[Se]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Pe]&&(i==null&&(i=this[Pe].silent),n=!0,this[Pe]=null),this[Se]=!0,Go(this);try{n&&bi(this),Va.update.call(this,{type:"resize",animation:$({duration:0},e&&e.animation)})}catch(o){throw this[Se]=!1,o}this[Se]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(ht(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!fy[e]){var n=fy[e](this._api,a),i=this._zr;this._loadingFX=n,i.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(e){var a=$({},e);return a.type=oy[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(ht(a)||(a={silent:!!a}),!!ev[e.type]&&this._model){if(this[Se]){this._pendingActions.push(e);return}var n=a.silent;Md.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Nt.browser.weChat&&this._throttledZrFlush(),zo.call(this,n),Vo.call(this,n)}},t.prototype.updateLabelLayout=function(){Yr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){bi=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),Cd(c,!0),Cd(c,!1),v.plan()},Cd=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_v.get("hoverLayerThreshold")&&!Nt.node&&!Nt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=so(c);v.eachRendered(function(d){return nh(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!hs(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(hs(y))return;if(y instanceof Lt&&vz(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}yx=function(c){return new(function(v){z(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){rn(d,p),Tr(c)},h.prototype.leaveEmphasis=function(d,p){an(d,p),Tr(c)},h.prototype.enterBlur=function(d){hD(d),Tr(c)},h.prototype.leaveBlur=function(d){zm(d),Tr(c)},h.prototype.enterSelect=function(d){dD(d),Tr(c)},h.prototype.leaveSelect=function(d){pD(d),Tr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getMainProcessVersion=function(){return c[Sf]},h}(ML))(c)},w2=function(c){function v(h,d){for(var p=0;p=0)){Sx.push(e);var i=a2.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function L2(r,t){fy[r]=t}function xF(r,t,e){var a=KG("registerMap");a&&a(r,t,e)}var bF=D5;So(g0,tG);So(vh,eG);So(vh,rG);So(g0,yG);So(vh,mG);So(y2,ZG);M2(LL);D2(eF,l5);L2("default",aG);Na({type:qi,event:qi,update:qi},fe);Na({type:gc,event:gc,update:gc},fe);Na({type:Wc,event:Nm,update:Wc,action:fe,refineEvent:x0,publishNonRefinedEvent:!0});Na({type:Ng,event:Nm,update:Ng,action:fe,refineEvent:x0,publishNonRefinedEvent:!0});Na({type:$c,event:Nm,update:$c,action:fe,refineEvent:x0,publishNonRefinedEvent:!0});function x0(r,t,e,a){return{eventContent:{selected:sz(e),isFromClick:t.isFromClick||!1}}}A2("default",{});A2("dark",pG);var xx=[],wF={registerPreprocessor:M2,registerProcessor:D2,registerPostInit:yF,registerPostUpdate:mF,registerUpdateLifecycle:_0,registerAction:Na,registerCoordinateSystem:_F,registerLayout:SF,registerVisual:So,registerTransform:bF,registerLoading:L2,registerMap:xF,registerImpl:qG,PRIORITY:fF,ComponentModel:kt,ComponentView:re,SeriesModel:te,ChartView:Xt,registerComponentModel:function(r){kt.registerClass(r)},registerComponentView:function(r){re.registerClass(r)},registerSeriesModel:function(r){te.registerClass(r)},registerChartView:function(r){Xt.registerClass(r)},registerCustomSeries:function(r,t){jG(r,t)},registerSubTypeDefaulter:function(r,t){kt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){TN(r,t)}};function Tt(r){if(U(r)){A(r,function(t){Tt(t)});return}bt(xx,r)>=0||(xx.push(r),ot(r)&&(r={install:r}),r.install(wF))}function al(r){return r==null?0:r.length||1}function bx(r){return r}var TF=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||bx,this._newKeyGetter=n||bx,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h1)for(var s=0;s30}var nl=ht,gn=Y,PF=typeof Int32Array>"u"?Array:Int32Array,kF="e\0\0",Tx=-1,RF=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],EF=["_approximateExtent"],Cx,Tf,il,ol,Id,sl,Pd,OF=function(){function r(t,e){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 a,n=!1;P2(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===xr;if(l&&!n.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),U(i)?i=i.slice():nl(i)&&(i=$({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,nl(e)?$(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){nl(t)?$(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?$(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;Og(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:gn(this.dimensions,this._getDimInfo,this),this.hostModel)),Id(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];ot(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(_m(arguments)))})},r.internalField=function(){Cx=function(t){var e=t._invertedIndicesMap;A(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new PF(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[e]=l}}}(),r}();const tr=OF;function zu(r,t){s0(r)||(r=l0(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=rt(),i=[],o=BF(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&E2(o),l=a===r.dimensionsDefine,u=l?R2(r):k2(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=rt(f),v=new GL(o),h=0;h0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function BF(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return A(t,function(i){var o;ht(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function zF(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var VF=function(){function r(t){this.coordSysDims=[],this.axisMap=rt(),this.categoryAxisMap=rt(),this.coordSysName=t}return r}();function GF(r){var t=r.get("coordinateSystem"),e=new VF(t),a=FF[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var FF={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",ae).models[0],i=r.getReferringComponents("yAxis",ae).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Fo(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Fo(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",ae).models[0];t.coordSysDims=["single"],e.set("single",n),Fo(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",ae).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Fo(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Fo(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Fo(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",ae).models[0];t.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",i),e.set("y",o),a.set("x",i),a.set("y",o)}};function Fo(r){return r.get("type")==="category"}function HF(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;WF(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,v;if(A(i,function(m,_){Q(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){c="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,p=0;A(i,function(m){m.coordDim===h&&p++});var g={name:c,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:c}}function WF(r){return!P2(r.schema)}function $n(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function O2(r,t){return $n(r,t)?r.getCalculationInfo("stackResultDimension"):t}function $F(r,t){var e=r.get("coordinateSystem"),a=Nu.get(e),n;return t&&t.coordSysDims&&(n=Y(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=av(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function UF(r,t,e){var a,n;return e&&A(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function cn(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=l0(r)):(n=a.getSource(),i=n.sourceFormat===xr);var o=GF(t),s=$F(t,o),l=e.useEncodeDefaulter,u=ot(l)?l:l?xt(xL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=zu(n,f),v=UF(c.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(c),d=HF(t,{schema:c,store:h}),p=new tr(c,t);p.setCalculationInfo(d);var g=v!=null&&YF(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:h,null,g),p}function YF(r){if(r.sourceFormat===xr){var t=ZF(r.data||[]);return!U(ks(t))}}function ZF(r){for(var t=0;tn&&(o=i.interval=n);var s=i.intervalPrecision=pu(o),l=i.niceTickExtent=[de(Math.ceil(r[0]/o)*o,s),de(Math.floor(r[1]/o)*o,s)];return qF(l,r),i}function kd(r){var t=Math.pow(10,Dm(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,de(e*t)}function pu(r){return xa(r)+2}function Ax(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function qF(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Ax(r,0,t),Ax(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function b0(r,t){return r>=t[0]&&r<=t[1]}var KF=function(){function r(){this.normalize=Mx,this.scale=Dx}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=tt(t.normalize,t),this.scale=tt(t.scale,t)):(this.normalize=Mx,this.scale=Dx)},r}();function Mx(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Dx(r,t){return r*(t[1]-t[0])+t[0]}function vy(r,t,e){var a=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/a,Math.log(e?t[1]:Math.max(0,t[1]))/a]}var N2=function(){function r(t){this._calculator=new KF,this._setting=t||{},this._extent=[1/0,-1/0];var e=pe();e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(t){var e=pe();e&&this._innerSetBreak(e.parseAxisBreakOption(t,tt(this.parse,this)))},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Yv(N2);const xo=N2;var jF=0,JF=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++jF,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&Y(a,QF);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!Q(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=rt(this.categories))},r}();function QF(r){return ht(r)&&r.value!=null?r.value:r+""}const gu=JF;var B2=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new gu({})),U(n)&&(n=new gu({categories:Y(n,function(i){return ht(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:Q(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return b0(e,this._extent)&&e>=0&&e=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(xo);xo.registerClass(B2);const yu=B2;var yn=de,z2=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return b0(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=pu(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=pe(),l=[];if(!a)return l;if(e.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;n[0]=0&&(c=yn(c+v*a,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var h=l.length?l[l.length-1].value:i[1];return n[1]>h&&(e.expandToNicedExtent?l.push({value:yn(h+a,o)}):l.push({value:n[1]})),s&&s.pruneTicksByBreak(e.pruneByBreak,l,this._brkCtx.breaks,function(d){return d.value},this._interval,this._extent),e.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;oi[0]&&d0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function F2(r){var t=r3(r),e=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),v=Math.abs(c[1]-c[0]);s=u?f/v*u:f}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=J(a.get("barWidth"),s),p=J(a.get("barMaxWidth"),s),g=J(a.get("barMinWidth")||(Y2(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap"),_=a.get("defaultBarGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,defaultBarGap:_,axisKey:T0(i),stackId:w0(a)})}),H2(e)}function H2(r){var t={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=a.barMaxWidth;c&&(l[u].maxWidth=c);var v=a.barMinWidth;v&&(l[u].minWidth=v);var h=a.barGap;h!=null&&(s.gap=h);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=It(i).length;s=Math.max(35-l*4,15)+"%"}var u=J(s,o),f=J(a.gap,1),c=a.remainedWidth,v=a.autoWidthCount,h=(c-u)/(v+(v-1)*f);h=Math.max(h,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,c-=S+f*S,v--}else{var S=h;m&&mS&&(S=_),S!==h&&(y.width=S,c-=S+f*S,v--)}}),h=(c-u)/(v+(v-1)*f),h=Math.max(h,0);var d=0,p;A(i,function(y,m){y.width||(y.width=h),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function a3(r,t,e){if(r&&t){var a=r[T0(t)];return a!=null&&e!=null?a[w0(e)]:a}}function W2(r,t){var e=G2(r,t),a=F2(e);A(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=w0(n),u=a[T0(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function $2(r){return{seriesType:r,plan:Gs(),reset:function(t){if(U2(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=$n(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=n3(n,i),d=Y2(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&wa(b*3),w=d&&l&&wa(b*3),T=d&&wa(b),C=a.master.getRect(),M=v?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var k=I.get(c?g:o,D),R=I.get(s,D),P=h,O=void 0;c&&(O=+k-I.get(o,D));var E=void 0,B=void 0,V=void 0,H=void 0;if(v){var W=a.dataToPoint([k,R]);if(c){var X=a.dataToPoint([O,R]);P=X[0]}E=P,B=W[1]+m,V=W[0]-P,H=y,Math.abs(V)0?e:1:e))}var i3=function(r,t,e,a){for(;e>>1;r[n][1]n&&(this._approxInterval=n);var o=Cf.length,s=Math.min(i3(Cf,this._approxInterval,0,o),o-1);this._interval=Cf[s][1],this._intervalPrecision=pu(this._interval),this._minLevelUnit=Cf[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Pt(e)?e:+ho(e)},t.prototype.contain=function(e){return b0(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t}(Un),Cf=[["second",qm],["minute",Km],["hour",$l],["quarter-day",$l*6],["half-day",$l*12],["day",Or*1.2],["half-week",Or*3.5],["week",Or*7],["month",Or*31],["quarter",Or*95],["half-year",gS/2],["year",gS]];function X2(r,t,e,a){return Zg(new Date(t),r,a).getTime()===Zg(new Date(e),r,a).getTime()}function o3(r,t){return r/=Or,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function s3(r){var t=30*Or;return r/=t,r>6?6:r>3?3:r>2?2:1}function l3(r){return r/=$l,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Lx(r,t){return r/=t?Km:qm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function u3(r){return BM(r,!0)}function f3(r,t,e){var a=Math.max(0,bt(hr,t)-1);return Zg(new Date(r),hr[a],e).getTime()}function c3(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var n=e.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function v3(r,t,e,a,n,i){var o=1e4,s=yV,l=0;function u(L,k,R,P,O,E,B){for(var V=c3(O,L),H=k,W=new Date(H);Ho));)if(W[O](W[P]()+L),H=W.getTime(),i){var X=i.calcNiceTickMultiple(H,V);X>0&&(W[O](W[P]()+X*L),H=W.getTime())}B.push({value:H,notAdd:!0})}function f(L,k,R){var P=[],O=!k.length;if(!X2(Ul(L),a[0],a[1],e)){O&&(k=[{value:f3(a[0],L,e)},{value:a[1]}]);for(var E=0;E=a[0]&&B<=a[1]&&u(H,B,V,W,X,j,P),L==="year"&&R.length>1&&E===0&&R.unshift({value:R[0].value-H})}}for(var E=0;E=a[0]&&S<=a[1]&&h++)}var b=n/t;if(h>b*1.5&&d>b/1.5||(c.push(m),h>b||r===s[p]))break}v=[]}}}for(var x=Ft(Y(c,function(L){return Ft(L,function(k){return k.value>=a[0]&&k.value<=a[1]&&!k.notAdd})}),function(L){return L.length>0}),w=[],T=x.length-1,p=0;p0;)i*=10;var s=[dy(d3(a[0]/i)*i),dy(h3(a[1]/i)*i)];this._interval=i,this._intervalPrecision=pu(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=Mf(e)/Mf(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=Mf(e)/Mf(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),Af(this.base,e)},t.prototype.setBreaksFromOption=function(e){var a=pe();if(a){var n=a.logarithmicParseBreaksFromOption(e,this.base,tt(this.parse,this)),i=n.parsedOriginal,o=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},t.type="log",t}(Un);function Df(r,t){return dy(r,xa(t))}xo.registerClass(K2);const p3=K2;var g3=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[m3[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=y3[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),y3={min:"_determinedMin",max:"_determinedMax"},m3={min:"_dataMin",max:"_dataMax"};function j2(r,t,e){var a=r.rawExtentInfo;return a||(a=new g3(r,t,e),r.rawExtentInfo=a,a)}function Lf(r,t){return t==null?null:Ue(t)?NaN:r.parse(t)}function J2(r,t){var e=r.type,a=j2(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=G2("bar",o),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=F2(s),f=_3(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function _3(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=a3(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;A(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,v=f/c-f;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function bs(r,t){var e=t,a=J2(r,e),n=a.extent,i=e.get("splitNumber");r instanceof p3&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(tI(e)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function hh(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new yu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new q2({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(xo.getClass(t)||Un)}}function S3(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Ws(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=mV(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if(Q(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(ot(t)){if(r.type==="category")return function(n,i){return t(nv(r,n),n.value-r.scale.getExtent()[0],null)};var a=pe();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(nv(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function nv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function C0(r){var t=r.get("interval");return t??"auto"}function Q2(r){return r.type==="category"&&C0(r.getLabelModel())===0}function iv(r,t){var e={};return A(r.mapDimensionsAll(t),function(a){e[O2(r,a)]=!0}),It(e)}function x3(r,t,e){t&&A(iv(t,e),function(a){var n=t.getApproximateExtent(a);n[0]r[1]&&(r[1]=n[1])})}function ws(r){return r==="middle"||r==="center"}function mu(r){return r.getShallow("show")}function tI(r){var t=r.get("breaks",!0);if(t!=null)return!pe()||!b3(r.axis)?void 0:t}function b3(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var Vu=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),w3=1e-8;function Ix(r,t){return Math.abs(r-t)n&&(a=o,n=l)}if(a)return C3(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Px(s.exterior,n,i,e):A(s.points,function(l){Px(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new dt(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function D3(r,t){return r=M3(r),Y(Ft(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new kx(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new kx(l[0],l.slice(1)))});break;case"LineString":i.push(new Rx([n.coordinates]));break;case"MultiLineString":i.push(new Rx(n.coordinates))}var s=new rI(a[t||"name"],i,a.cp);return s.properties=a,s})}var L3=Dt(),Xl=Dt(),ea={estimate:1,determine:2};function ov(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function nI(r,t){var e=Y(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function I3(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=Ws(r),n=r.scale.getExtent(),i=nI(r,e),o=Ft(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:Y(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?k3(r,t):E3(r)}function P3(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=nI(r,a);return{ticks:Ft(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?R3(r,t):{ticks:Y(r.scale.getTicks(e),function(o){return o.value})}}function k3(r,t){var e=r.getLabelModel(),a=iI(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function iI(r,t,e){var a=N3(r),n=C0(t),i=e.kind===ea.estimate;if(!i){var o=sI(a,n);if(o)return o}var s,l;ot(n)?s=fI(r,n):(l=n==="auto"?B3(r,e):n,s=uI(r,l));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return py(a,n,u),!0}):py(a,n,u),u}function R3(r,t){var e=O3(r),a=C0(t),n=sI(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),ot(a))i=fI(r,a,!0);else if(a==="auto"){var s=iI(r,r.getLabelModel(),ov(ea.determine));o=s.labelCategoryInterval,i=Y(s.labels,function(l){return l.tickValue})}else o=a,i=uI(r,o,!0);return py(e,a,{ticks:i,tickCategoryInterval:o})}function E3(r){var t=r.scale.getTicks(),e=Ws(r);return{labels:Y(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var O3=oI("axisTick"),N3=oI("axisLabel");function oI(r){return function(e){return Xl(e)[r]||(Xl(e)[r]={list:[]})}}function sI(r,t){for(var e=0;ef&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=r.dataToCoord(c+1)-r.dataToCoord(c),h=Math.abs(v*Math.cos(i)),d=Math.abs(v*Math.sin(i)),p=0,g=0;c<=s[1];c+=u){var y=0,m=0,_=Uv(n({value:c}),a.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(e===ea.estimate)return t.out.noPxChangeTryDetermine.push(tt(V3,null,r,x,l)),x;var w=lI(r,x,l);return w??x}function V3(r,t,e){return lI(r,t,e)==null}function lI(r,t,e){var a=L3(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=n[0],a.axisExtent1=n[1]}function G3(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function uI(r,t,e){var a=Ws(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Q2(r),v=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);h&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g,time:void 0,break:void 0})}return s}function fI(r,t,e){var a=r.scale,n=Ws(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Ex=[0,1],F3=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return OM(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Ox(a,n.count())),Gt(t,Ex,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Ox(a,n.count()));var i=Gt(t,a,Ex,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=P3(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=Y(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return H3(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=Y(a,function(i){return Y(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||ov(ea.determine),I3(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(t){return t=t||ov(ea.determine),z3(this,t)},r}();function Ox(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function H3(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;A(t,function(h){h.coord-=u/2,h.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var c=i[0]>i[1];v(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&v(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),v(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&v(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function v(h,d){return h=de(h),d=de(d),c?h>d:hn&&(n+=ll);var h=Math.atan2(s,o);if(h<0&&(h+=ll),h>=a&&h<=n||h+ll>=a&&h+ll<=n)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function sv(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,f=e-r,c=a-t,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function cI(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Zr=[];function Y3(r,t,e){var a=cI(t.x,t.y,t.width,t.height,r.x,r.y,Zr);return e.set(Zr[0],Zr[1]),a}function Z3(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,v=r.y,h=0;h0){t=t/180*Math.PI,Xr.fromArray(r[0]),qt.fromArray(r[1]),le.fromArray(r[2]),ct.sub(Ta,Xr,qt),ct.sub(_a,le,qt);var e=Ta.len(),a=_a.len();if(!(e<.001||a<.001)){Ta.scale(1/e),_a.scale(1/a);var n=Ta.dot(_a),i=Math.cos(t);if(i1&&ct.copy(Qe,le),Qe.toArray(r[1])}}}}function X3(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Xr.fromArray(r[0]),qt.fromArray(r[1]),le.fromArray(r[2]),ct.sub(Ta,qt,Xr),ct.sub(_a,le,qt);var a=Ta.len(),n=_a.len();if(!(a<.001||n<.001)){Ta.scale(1/a),_a.scale(1/n);var i=Ta.dot(t),o=Math.cos(e);if(i=l)ct.copy(Qe,le);else{Qe.scaleAndAdd(_a,s/Math.tan(Math.PI/2-f));var c=le.x!==qt.x?(Qe.x-qt.x)/(le.x-qt.x):(Qe.y-qt.y)/(le.y-qt.y);if(isNaN(c))return;c<0?ct.copy(Qe,qt):c>1&&ct.copy(Qe,le)}Qe.toArray(r[1])}}}}function Od(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function q3(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=An(a[0],a[1]),i=An(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=uc([],a[1],a[0],o/n),l=uc([],a[1],a[2],o/i),u=uc([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&n&&x(-c/i,0,i);var g=r[0],y=r[i-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_);function S(){m=g.rect[o]-e,_=a-y.rect[o]-y.rect[s]}function b(C,M,D){if(C<0){var I=Math.min(M,-C);if(I>0){x(I*D,0,i);var L=I+C;L<0&&w(-L*D,1)}else w(-C*D,1)}}function x(C,M,D){C!==0&&(f=!0);for(var I=M;I0)for(var L=0;L0;L--){var O=D[L-1]*P;x(-O,L,i)}}}function T(C){var M=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(i-1)),I=0;I0?x(D,0,I+1):x(-D,i-I-1,i),C-=D,C<=0)return}return f}function J3(r){for(var t=0;t=0&&a.attr(i.oldLayoutSelect),bt(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Et(a,u,e,l)}else if(a.attr(u),!Bs(a).valueAnimation){var c=nt(a.style.opacity,1);a.style.opacity=0,jt(a,{style:{opacity:c}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};If(h,u,Pf),If(h,a.states.select,Pf)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};If(d,u,Pf),If(d,a.states.emphasis,Pf)}ZD(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=eH(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Et(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,jt(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const aH=rH;var zd=Dt();function nH(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=zd(e).labelManager;n||(n=zd(e).labelManager=new aH),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=zd(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Vd=Math.sin,Gd=Math.cos,yI=Math.PI,Ti=Math.PI*2,iH=180/yI,oH=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){this._add("C",t,e,a,n,i,o)},r.prototype.quadraticCurveTo=function(t,e,a,n){this._add("Q",t,e,a,n)},r.prototype.arc=function(t,e,a,n,i,o){this.ellipse(t,e,a,a,0,n,i,o)},r.prototype.ellipse=function(t,e,a,n,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),v=Pn(c-Ti)||(f?u>=Ti:-u>=Ti),h=u>0?u%Ti:u%Ti+Ti,d=!1;v?d=!0:Pn(c)?d=!1:d=h>=yI==!!f;var p=t+a*Gd(o),g=e+n*Vd(o);this._start&&this._add("M",p,g);var y=Math.round(i*iH);if(v){var m=1/this._p,_=(f?1:-1)*(Ti-m);this._add("A",a,n,y,1,+f,t+a*Gd(o+_),e+n*Vd(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=t+a*Gd(s),b=e+n*Vd(s);this._add("A",a,n,y,+d,+f,S,b)}},r.prototype.rect=function(t,e,a,n){this._add("M",t,e),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,n,i,o,s,l,u){for(var f=[],c=this._p,v=1;v"}function pH(r){return""}function D0(r,t){t=t||{};var e=t.newline?` -`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return dH(o,s)+(o!=="style"?$e(l):l||"")+(i?""+e+Y(i,function(u){return a(u)}).join(e)+e:"")+pH(o)}return a(r)}function gH(r,t,e){e=e||{};var a=e.newline?` -`:"",n=" {"+a,i=a+"}",o=Y(It(r),function(l){return l+n+Y(It(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=Y(It(t),function(l){return"@keyframes "+l+n+Y(It(t[l]),function(u){return u+n+Y(It(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":[""].join(a)}function Sy(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Fx(r,t,e,a){return Le("svg","root",{width:r,height:t,xmlns:_I,"xmlns:xlink":SI,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var yH=0;function bI(){return yH++}var Hx={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"},Mi="transform-origin";function mH(r,t,e){var a=$({},r.shape);$(a,t),r.buildPath(e,a);var n=new mI;return n.reset(TM(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function _H(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[Mi]=e+"px "+a+"px")}var SH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function wI(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function xH(r,t,e){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=Sy(e.zrId);u.animation=!0,ph(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=It(f),h=v.length;if(h){o=v[h-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=wI(n,e);return i.replace(o,s)}}function Wx(r){return Q(r)?Hx[r]?"cubic-bezier("+Hx[r]+")":Tm(r)?r:"":""}function ph(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof rh){var s=xH(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var St=wI(w,e);return St+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+bI();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function bH(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};$x(a,t,e,!0)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=_g(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),$x(a,t,e,!0)}}function $x(r,t,e,a){var n=JSON.stringify(r),i=e.cssStyleCache[n];i||(i=e.zrId+"-cls-"+bI(),e.cssStyleCache[n]=i,e.cssNodes["."+i+(a?":hover":"")]=r),t.class=t.class?t.class+" "+i:i}var _u=Math.round;function TI(r){return r&&Q(r.src)}function CI(r){return r&&ot(r.toDataURL)}function L0(r,t,e,a){cH(function(n,i){var o=n==="fill"||n==="stroke";o&&wM(i)?MI(t,r,n,a):o&&Cm(i)?DI(e,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),LH(e,r,a)}function I0(r,t){var e=CN(t);e&&(e.each(function(a,n){a!=null&&(r[(Gx+n).toLowerCase()]=a+"")}),t.isSilent()&&(r[Gx+"silent"]="true"))}function Ux(r){return Pn(r[0]-1)&&Pn(r[1])&&Pn(r[2])&&Pn(r[3]-1)}function wH(r){return Pn(r[4])&&Pn(r[5])}function P0(r,t,e){if(t&&!(wH(t)&&Ux(t))){var a=e?10:1e4;r.transform=Ux(t)?"translate("+_u(t[4]*a)/a+" "+_u(t[5]*a)/a+")":$O(t)}}function Yx(r,t,e){for(var a=r.points,n=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ze(v,g),Ze(h,g)}else if(v==null||h==null){var y=function(M,D){if(M){var I=M.elm,L=v||D.width,k=h||D.height;M.tag==="pattern"&&(u?(k=1,L/=i.width):f&&(L=1,k/=i.height)),M.attrs.width=L,M.attrs.height=k,I&&(I.setAttribute("width",L),I.setAttribute("height",k))}},m=km(d,null,r,function(M){l||y(x,M),y(c,M)});m&&m.width&&m.height&&(v=v||m.width,h=h||m.height)}c=Le("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else n.svgElement&&(c=st(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=CM(n);b&&(o.patternTransform=b);var x=Le("pattern","",o,[c]),w=D0(x),T=a.patternCache,C=T[w];C||(C=a.zrId+"-p"+a.patternIdx++,T[w]=C,o.id=C,x=a.defs[C]=Le("pattern",C,o,[c])),t[e]=$v(C)}}function IH(r,t,e){var a=e.clipPathCache,n=e.defs,i=a[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=Le("clipPath",i,o,[AI(r,e)])}t["clip-path"]=$v(i)}function qx(r){return document.createTextNode(r)}function Ei(r,t,e){r.insertBefore(t,e)}function Kx(r,t){r.removeChild(t)}function jx(r,t){r.appendChild(t)}function LI(r){return r.parentNode}function II(r){return r.nextSibling}function Fd(r,t){r.textContent=t}var Jx=58,PH=120,kH=Le("","");function xy(r){return r===void 0}function ga(r){return r!==void 0}function RH(r,t,e){for(var a={},n=t;n<=e;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function kl(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function Su(r){var t,e=r.children,a=r.tag;if(ga(a)){var n=r.elm=xI(a);if(k0(kH,r),U(e))for(t=0;ti?(d=e[l+1]==null?null:e[l+1].elm,PI(r,d,e,n,l)):cv(r,t,a,i))}function ts(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(k0(r,t),xy(t.text)?ga(a)&&ga(n)?a!==n&&EH(e,a,n):ga(n)?(ga(r.text)&&Fd(e,""),PI(e,null,n,0,n.length-1)):ga(a)?cv(e,a,0,a.length-1):ga(r.text)&&Fd(e,""):r.text!==t.text&&(ga(a)&&cv(e,a,0,a.length-1),Fd(e,t.text)))}function OH(r,t){if(kl(r,t))ts(r,t);else{var e=r.elm,a=LI(e);Su(t),a!==null&&(Ei(a,t.elm,II(e)),cv(a,[r],0,0))}return t}var NH=0,BH=function(){function r(t,e,a){if(this.type="svg",this.refreshHover=Qx(),this.configLayer=Qx(),this.storage=e,this._opts=a=$({},a),this.root=t,this._id="zr"+NH++,this._oldVNode=Fx(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=xI("svg");k0(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",OH(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Xx(t,Sy(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=Sy(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=zH(a,n,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Le("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=Y(It(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(Le("defs","defs",{},u)),t.animation){var f=gH(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=Le("style","stl",{},[],f);o.push(c)}}return Fx(a,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},D0(this.renderToVNode({animation:nt(t.cssAnimation,!0),emphasis:nt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:nt(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var n=t.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y=s)}}for(var c=this.__startIndex;c15)break}}k.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=h.dpr,D=0;D0&&t>n[0]){for(l=0;lt);l++);s=a[n[l]]}if(n.splice(l+1,0,t),a[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var a=this._zlevelList,n=0;n0?kf:0),this._needsManuallyCompositing),f.__builtin__||ym("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),n.__dirty&gr&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(c,v){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?wt(a[t],e,!0):a[t]=e;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill=G.color.neutral00,u.style.lineWidth=2),a},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},t}(te);const qH=XH;function Ts(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Ss(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(t[i])}return a.join(" ")}var KH=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o,s){this.removeAll();var l=me(e,-1,-1,2,2,null,s);l.attr({z2:nt(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=jH,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){rn(this.childAt(0))},t.prototype.downplay=function(){an(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var v=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Et(h,d,s,a),Gr(h)}if(this._updateCommon(e,a,l,n,i),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,jt(h,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,v,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,v=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=Te(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=_o(e.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(a,"style"),w=x.fill;if(s instanceof Fe){var T=s.style;s.useStyle($({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle($({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Ie(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(R){return D?e.getName(R):Ts(e,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*k,L.scaleY=this._sizeY*k,this.setSymbolScale(1),Jt(this,v,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=pt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Wn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Wn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Hs(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t}(lt);function jH(r,t){this.parent.drift(r,t)}const Gu=KH;function Wd(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function rb(r){return r!=null&&!ht(r)&&(r={isIgnore:r}),r||{}}function ab(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Te(t),cursorStyle:t.get("cursor")}}var JH=function(){function r(t){this.group=new lt,this._SymbolCtor=t||Gu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=rb(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=ab(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||a.removeAll(),t.diff(i).add(function(c){var v=f(c);if(Wd(t,v,c,e)){var h=new o(t,c,l,u);h.setPosition(v),t.setItemGraphicEl(c,h),a.add(h)}}).update(function(c,v){var h=i.getItemGraphicEl(v),d=f(c);if(!Wd(t,d,c,e)){a.remove(h);return}var p=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)a.remove(h),h=new o(t,c,l,u),h.setPosition(d);else{h.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):Et(h,y,n)}a.add(h),t.setItemGraphicEl(c,h)}).remove(function(c){var v=i.getItemGraphicEl(c);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ab(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=rb(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=a[0]:a[1]<0&&(e=a[1]),e}function EI(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function t4(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function e4(r,t,e,a,n,i,o,s){for(var l=t4(r,t),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=RI(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=n||p<0)break;if(Qi(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),c=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],w=t[b*2+1];x===y&&w===m&&g=a||Qi(x,w))h=y,d=m;else{M=x-u,D=w-f;var k=y-u,R=x-y,P=m-f,O=w-m,E=void 0,B=void 0;if(s==="x"){E=Math.abs(k),B=Math.abs(R);var V=M>0?1:-1;h=y-V*E*o,d=m,I=y+V*B*o,L=m}else if(s==="y"){E=Math.abs(P),B=Math.abs(O);var H=D>0?1:-1;h=y,d=m-H*E*o,I=y,L=m+H*B*o}else E=Math.sqrt(k*k+P*P),B=Math.sqrt(R*R+O*O),C=B/(B+E),h=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=mn(I,_n(x,y)),L=mn(L,_n(w,m)),I=_n(I,mn(x,y)),L=_n(L,mn(w,m)),M=I-y,D=L-m,h=y-M*E/B,d=m-D*E/B,h=mn(h,_n(u,y)),d=mn(d,_n(f,m)),h=_n(h,mn(u,y)),d=_n(d,mn(f,m)),M=y-h,D=m-d,I=y+M*B/E,L=m+D*B/E}r.bezierCurveTo(c,v,h,d,y,m),c=I,v=L}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var OI=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),r4=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new OI},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Qi(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[e,S]:[S,e]}s=h,l=d;break;case o.C:h=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++],m=i[c++];var b=u?Ec(s,h,p,y,e,f):Ec(l,d,g,m,e,f);if(b>0)for(var x=0;x=0){var S=u?De(l,d,g,m,w):De(s,h,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Lt),a4=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(OI),NI=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new a4},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Qi(n[s*2-2],n[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function o4(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=Y(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=i4(u,n==="x"?e.getWidth():e.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,y=g-p;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var m=new Os(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function s4(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&l4(i,t))){var o=t.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function l4(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function u4(r,t){return isNaN(r)||isNaN(t)}function f4(r){for(var t=r.length/2;t>0&&u4(r[t*2-2],r[t*2-1]);t--);return t-1}function lb(r,t){return[r[t*2],r[t*2+1]]}function c4(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function VI(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}pt(d).seriesIndex=e.seriesIndex,Jt(d,P,O,E);var V=sb(e.get("smooth")),H=e.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:H,connectNulls:w}),p){var W=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(vt(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&(X=sb(W.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:X,smoothMonotone:H,connectNulls:w}),we(p,e,"areaStyle"),pt(p).seriesIndex=e.seriesIndex,Jt(p,P,O,E)}var j=this._changePolyState;s.eachItemGraphicEl(function(q){q&&(q.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,a){pt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=ao(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=e.get("zlevel")||0,h=e.get("z")||0;u=new Gu(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Xt.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=ao(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Xt.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Uc(this._polyline,e),a&&Uc(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new r4({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new NI({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");ot(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=ot(c)?c(null):c;e.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=h.x):(y=x.y+x.height,m=x.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=ot(c)?c(d):f*w+v,C=p.getSymbolPath(),M=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(VI(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Rt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=f4(l);f>=0&&(Ie(s,Te(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?kI(o,h):Ts(o,c)},enableTextSetter:!0},v4(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=n.getLayout("points"),v=n.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=c4(c,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!h){var I=lb(c,C[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(D=v.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=v.getRawValue(C[0]),k=v.getRawValue(C[1]);o&&(D=ZM(n,d,L,k,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,I=lb(c,R);o&&(D=v.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var P=Bs(u);typeof P.setLabelText=="function"&&P.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,v=e4(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=Sn(v.stackedOnCurrent,v.current,n,o,l),h=Sn(v.current,null,n,o,l),g=Sn(v.stackedOnNext,v.next,n,o,l),p=Sn(v.next,null,n,o,l)),ob(h,p)>3e3||f&&ob(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:p}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),Et(u,y,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Et(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var d=void 0;Q(i)?d=p4[i]:ot(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,g4))}}}}}function y4(r){r.registerChartView(d4),r.registerSeriesModel(qH),r.registerLayout(Wu("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,GI("line"))}var FI=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return cn(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(v,h){if(v.type==="category"&&a!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[h],y=a[h]==="x1"||a[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;bg){_=(x+m)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},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}(te);te.registerClass(FI);const vv=FI;var m4=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return cn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ti(vv.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:G.color.primary,borderWidth:2}},realtimeSort:!1}),t}(vv);const _4=m4;var S4=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),x4=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new S4},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,c=a.endAngle,v=a.clockwise,h=Math.PI*2,d=v?c-fMath.PI/2&&fs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){qa(i,e,pt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Xt),ub={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=Ud(t.x,r.x),s=Yd(t.x+t.width,n),l=Ud(t.y,r.y),u=Yd(t.y+t.height,i),f=sn?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=Yd(t.r,r.r),i=Ud(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},fb={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new Mt({shape:$({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?hv:rr,f=new u({shape:a,z2:1});f.name="item";var c=HI(n);if(f.calculateTextPosition=b4(c,{isRoundCap:u===hv}),i){var v=f.shape,h=n?"r":"endAngle",d={};v[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?Et:jt)(f,{shape:d},i)}return f}};function A4(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function cb(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Et:jt)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?Et:jt)(e,{shape:u},f,n)}function vb(r,t){for(var e=0;e0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function L4(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function HI(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function db(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=Ca(a.getModel("itemStyle"),f,!0);$(f,c),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Te(a);Ie(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Ts(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,w4(r,g==="outside"?h:g,HI(o),a.get(["label","rotate"]))}YD(p,d,i.getRawValue(e),function(m){return kI(t,m)});var y=a.getModel(["emphasis"]);Jt(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),we(r,a),L4(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function I4(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var P4=function(){function r(){}return r}(),pb=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new P4},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function k4(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function WI(r,t,e){if(Yn(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function R4(r,t,e){var a=r.type==="polar"?rr:Mt;return new a({shape:WI(t,e,r),silent:!0,z2:0})}const E4=C4;function O4(r){r.registerChartView(E4),r.registerSeriesModel(_4),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(W2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$2("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,GI("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var mb=Math.PI*2,Nf=Math.PI/180;function N4(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=hL(a,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,v=-a.get("startAngle")*Nf,h=a.get("endAngle"),d=a.get("padAngle")*Nf;h=h==="auto"?v-mb:-h*Nf;var p=a.get("minAngle")*Nf,g=p+d,y=0;n.each(i,function(O){!isNaN(O)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=S?1:-1,C=[v,h],M=T*d/2;Kv(C,!S),v=C[0],h=C[1];var D=$I(a);D.startAngle=v,D.endAngle=h,D.clockwise=S,D.cx=s,D.cy=l,D.r=u,D.r0=f;var I=Math.abs(h-v),L=I,k=0,R=v;if(n.setLayout({viewRect:c,r:u}),n.each(i,function(O,E){var B;if(isNaN(O)){n.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});return}b!=="area"?B=m===0&&x?_:O*_:B=I/y,BB?(H=R+T*B/2,W=H):(H=R+M,W=V-M),n.setItemLayout(E,{angle:B,startAngle:H,endAngle:W,clockwise:S,cx:s,cy:l,r0:f,r:b?Gt(O,w,[f,u]):u}),R=V}),Le?y:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*n,w=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;a.setStyle("width",h)}YI(i,a)}}}function YI(r,t){Sb.rect=r,pI(Sb,t,V4)}var V4={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Sb={};function Zd(r){return r.position==="center"}function G4(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*B4,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),P=J(I.get("edgeDistance"),u),O=I.get("bleedMargin");O==null&&(O=Math.min(u,v)>200?10:2);var E=D.getModel("labelLine"),B=E.get("length");B=J(B,u);var V=E.get("length2");if(V=J(V,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":W>0?"left":"right"}var ut=Math.PI,At=0,Ht=I.get("rotate");if(Pt(Ht))At=Ht*(ut/180);else if(L==="center")At=0;else if(Ht==="radial"||Ht===!0){var ne=W<0?-H+ut:-H;At=ne}else if(Ht==="tangential"&&L!=="outside"&&L!=="outer"){var ie=Math.atan2(W,X);ie<0&&(ie=ut*2+ie);var fr=X>0;fr&&(ie=ut+ie),At=ie-ut}if(i=!!At,C.x=j,C.y=q,C.rotation=At,C.setStyle({verticalAlign:"middle"}),at){C.setStyle({align:St});var ia=C.states.select;ia&&(ia.x+=C.x,ia.y+=C.y)}else{var wr=new dt(0,0,0,0);YI(wr,C),e.push({label:C,labelLine:M,position:L,len:B,len2:V,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new ct(W,X),linePoints:it,textAlign:St,labelDistance:k,labelAlignTo:R,edgeDistance:P,bleedMargin:O,rect:wr,unconstrainedWidth:wr.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:at})}}),!i&&r.get("avoidLabelOverlap")&&z4(e,a,n,l,u,v,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=i.r0}},t.type="pie",t}(Xt);const W4=H4;function Us(r,t,e){t=U(t)&&{coordDimensions:t}||$({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=zu(a,t).dimensions,i=new tr(n,r);return i.initData(a,e),i}var $4=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}();const Ys=$4;var U4=Dt(),ZI=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ys(tt(this.getData,this),tt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Us(this,{coordDimensions:["value"],encodeDefaulter:xt(n0,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=U4(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=IN(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){ro(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",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}(te);DV({fullType:ZI.type,getCoord2:function(r){return r.getShallow("center")}});const Y4=ZI;function Z4(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Pt(o)&&!isNaN(o)&&o<0)})}}}function X4(r){r.registerChartView(W4),r.registerSeriesModel(Y4),o2("pie",r.registerAction),r.registerLayout(xt(N4,"pie")),r.registerProcessor($s("pie")),r.registerProcessor(Z4("pie"))}var q4=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return cn(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},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:G.color.primary}},universalTransition:{divideShape:"clone"}},t}(te);const K4=q4;var XI=4,j4=function(){function r(){}return r}(),J4=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new j4},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var f=u*2,c=i[f]-s/2,v=i[f+1]-l/2;if(e>=c&&a>=v&&e<=c+s&&a<=v+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,v=0;v=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const tW=Q4;var eW=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Wu("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new tW:new Fu,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Xt);const rW=eW;var qI={left:0,right:0,top:0,bottom:0},dv=["25%","25%"],aW=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=yo(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&Ea(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Ea(this.option.outerBounds,e.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:qI,outerBoundsContain:"all",outerBoundsClampWidth:dv[0],outerBoundsClampHeight:dv[1],backgroundColor:G.color.transparent,borderWidth:1,borderColor:G.color.neutral30},t}(kt);const nW=aW;var wy=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ae).models[0]},t.type="cartesian2dAxis",t}(kt);_e(wy,Vu);var KI={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:!0,onZeroAxisIndex:null,lineStyle:{color:G.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:G.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:G.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[G.color.backgroundTint,G.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:G.color.neutral00,borderColor:G.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},iW=wt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},KI),R0=wt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:G.color.axisMinorSplitLine,width:1}}},KI),oW=wt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},R0),sW=vt({logBase:10},R0);const jI={category:iW,value:R0,time:oW,log:sW};var lW={value:1,category:1,time:1,log:1},Ty=null;function uW(r){Ty||(Ty=r)}function $u(){return Ty}function Cs(r,t,e,a){A(lW,function(n,i){var o=wt(wt({},jI[i],!0),a,!0),s=function(l){z(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=fu(this),h=v?yo(f):{},d=c.getTheme();wt(f,d.get(i+"Axis")),wt(f,this.getDefaultOption()),f.type=xb(f),v&&Ea(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=gu.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=$u();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",xb)}function xb(r){return r.type||(r.data?"category":"value")}var fW=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ft(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const cW=fW;var Cy=["x","y"];function bb(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var vW=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Cy,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!bb(e)||!bb(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-n[0]*f,h=o[1]-i[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=Qr([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new dt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ce(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a,n){if(n=n||[],this._invTransform)return ce(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new dt(i,o,s,l)},t}(cW),hW=function(r){z(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(na);const JI=hW;var gh="expandAxisBreak",QI="collapseAxisBreak",tP="toggleAxisBreak",E0="axisbreakchanged",dW={type:gh,event:E0,update:"update",refineEvent:O0},pW={type:QI,event:E0,update:"update",refineEvent:O0},gW={type:tP,event:E0,update:"update",refineEvent:O0};function O0(r,t,e,a){var n=[];return A(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function yW(r){r.registerAction(dW,t),r.registerAction(pW,t),r.registerAction(gW,t);function t(e,a){var n=[],i=vs(a,e);function o(s,l){A(i[s],function(u){var f=u.updateAxisBreaks(e);A(f.breaks,function(c){var v;n.push(vt((v={},v[l]=u.componentIndex,v),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var kn=Math.PI,mW=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],_W=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],As=Dt(),eP=Dt(),rP=function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,n=this.recordMap,i=n[e]||(n[e]=[]);return i[a]||(i[a]={ready:{}})},r}();function SW(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=N0(r.axisName)&&ws(r.nameLocation);A(a,function(d){var p=Oa(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?Qr(ul,g.transform):Hv(ul),p.transform&&Aa(ul,ul,p.transform),dt.copy(Bf,p.localRect),Bf.applyTransform(ul),s?s.union(Bf):dt.copy(s=new dt(0,0,0,0),Bf))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=n.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new dt(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var ul=Oe(),Bf=new dt(0,0,0,0),aP=function(r,t,e,a,n,i){if(ws(r.nameLocation)){var o=i.stOccupiedRect;o&&nP(j3({},o,i.transGroup.transform),a,n)}else iP(i.labelInfoList,i.dirVec,a,n)};function nP(r,t,e){var a=new ct;dh(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&gy(t,a)}function iP(r,t,e,a){for(var n=ct.dot(a,t)>=0,i=0,o=r.length;i0?"top":"bottom",i="center"):au(n-kn)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),xW=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],bW={axisLine:function(r,t,e,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(ce(f,f,u),ce(c,c,u));var h=$({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())$u().buildAxisBreakLine(a,n,i,d);else{var p=new be($({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));_s(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var g=a.get(["axisLine","symbol"]);if(g!=null){var y=a.get(["axisLine","symbolSize"]);Q(g)&&(g=[g,g]),(Q(y)||Pt(y))&&(y=[y,y]);var m=_o(a.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];A([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(g[x]!=="none"&&g[x]!=null){var w=me(g[x],-_/2,-S/2,_,S,h.stroke,!0),T=b.r+b.offset,C=v?c:f;w.attr({rotation:b.rotate,x:C[0]+T*Math.cos(r.rotation),y:C[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(r,t,e,a,n,i,o,s){var l=Tb(t,n,s);l&&wb(r,t,e,a,n,i,o,ea.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=Tb(t,n,s);l&&wb(r,t,e,a,n,i,o,ea.determine);var u=AW(r,n,i,a);CW(r,t.labelLayoutList,u),MW(r,n,i,a,r.tickDirection)},axisName:function(r,t,e,a,n,i,o,s){var l=e.ensureRecord(a);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(N0(u)){var f=r.nameLocation,c=r.nameDirection,v=a.getModel("nameTextStyle"),h=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,g=new ct(0,0),y=new ct(0,0);f==="start"?(g.x=d[0]-p*h,y.x=-p):f==="end"?(g.x=d[1]+p*h,y.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+c*h,y.y=c);var m=Oe();y.transform(jn(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*kn/180);var S,b;ws(f)?S=to.innerTextLayout(r.rotation,_??r.rotation,c):(S=wW(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=v.getFont(),w=a.get("nameTruncate",!0)||{},T=w.ellipsis,C=Ve(r.raw.nameTruncateMaxWidth,w.maxWidth,b),M=s.nameMarginLevel||0,D=new Rt({x:g.x,y:g.y,rotation:S.rotation,silent:to.isLabelSilent(a),style:Zt(v,{text:u,font:x,overflow:"truncate",width:C,ellipsis:T,fill:v.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(fn({el:D,componentModel:a,itemName:u}),D.__fullText=u,D.anid="name",a.get("triggerEvent")){var I=to.makeAxisEventDataBase(a);I.targetType="axisName",I.name=u,pt(D).eventData=I}i.add(D),D.updateTransform(),t.nameEl=D;var L=l.nameLayout=Oa({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:ws(f)?mW[M]:_W[M]});if(l.nameLocation=f,n.add(D),D.decomposeTransform(),r.shouldNameMoveOverlap&&L){var k=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,L,y,k)}}}};function wb(r,t,e,a,n,i,o,s){sP(t)||DW(r,t,n,s,a,o);var l=t.labelLayoutList;LW(r,a,l,i),kW(a,r.rotation,l);var u=r.optionHideOverlap;TW(a,l,u),u&&gI(Ft(l,function(f){return f&&!f.label.ignore})),SW(r,e,a,l)}function wW(r,t,e,a){var n=NM(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return au(n-kn/2)?(o=l?"bottom":"top",i="center"):au(n-kn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nkn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function TW(r,t,e){if(Q2(r.axis))return;function a(s,l,u){var f=Oa(t[l]),c=Oa(t[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){Rl(f.label);return}if(c.suggestIgnore){Rl(c.label);return}var v=.1;if(!e){var h=[0,0,0,0];f=yy({marginForce:h},f),c=yy({marginForce:h},c)}dh(f,c,null,{touchThreshold:v})&&Rl(s?c.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=t.length;a(n,0,1),a(i,o-1,o-2)}function CW(r,t,e){r.showMinorTicks||A(t,function(a){if(a&&a.label.ignore)for(var n=0;nu[0]&&isFinite(d)&&isFinite(u[0]);)h=kd(h),d=u[1]-h*o;else{var g=r.getTicks().length-1;g>o&&(h=kd(h));var y=h*o;p=Math.ceil(u[1]/h)*h,d=de(p-y),d<0&&u[0]>=0?(d=0,p=de(y)):p>0&&u[1]<=0&&(p=0,d=-de(y))}var m=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+h*m,p+h*_),a.setInterval.call(r,h),(m||_)&&a.setNiceExtent.call(r,d+h,p-h)}var Ab=[[3,1],[0,2]],NW=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Cy,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=It(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var v=+l[c],h=o[v],d=h.model,p=h.scale;cy(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(bs(p,d),cy(p)&&(s=h))}f.length&&(s||(s=f.pop(),bs(s.scale,s.model)),A(f,function(g){lP(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){Mb(a,"y",o,i)}),A(a.y,function(o){Mb(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=Ce(t,e),i=this._rect=Qt(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(My(o,i),!a){var u=VW(i,s,o,l,e),f=void 0;if(l)Dy?(Dy(this._axesList,i),My(o,i)):f=Ib(i.clone(),"axisLabel",null,i,o,u,n);else{var c=GW(t,i,n),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=Ib(v,h,d,i,o,u,n))}uP(i,o,ea.determine,null,f,n)}A(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}ht(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n0})==null;return oo(a,s,!0,!0,e),My(n,a),l;function u(v){A(n[yt[v]],function(h){if(mu(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g0&&!Ue(h)&&h>1e-4&&(v/=h),v}}function VW(r,t,e,a,n){var i=new rP(FW);return A(e,function(o){return A(o,function(s){if(mu(s.model)){var l=!a;s.axisBuilder=EW(r,t,s.model,n,i,l)}})}),i}function uP(r,t,e,a,n,i){var o=e===ea.determine;A(t,function(u){return A(u,function(f){mu(f.model)&&(OW(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[yt[1-u]]=r[ge[u]]<=i.refContainer[ge[u]]*.5?0:1-u===1?2:1}A(t,function(u,f){return A(u,function(c){mu(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function GW(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=Qt(r.get("outerBounds",!0)||qI,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||bt(["all","axisLabel"],i)<0?o="all":o=i;var s=[Fc(nt(r.get("outerBoundsClampWidth",!0),dv[0]),t.width),Fc(nt(r.get("outerBoundsClampHeight",!0),dv[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var FW=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";aP(r,t,e,a,n,i),ws(r.nameLocation)||A(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&iP(s.labelInfoList,s.dirVec,a,n)})};const HW=NW;function WW(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return $W(e,r,t),e.seriesInvolved&&YW(e,r),e}function $W(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=xu(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(A(s.getAxes(),xt(p,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&A(d.baseAxes,xt(p,h?"cross":!0,v)),h&&A(d.otherAxes,xt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Ly(_))){y==null&&(y=_.get("triggerTooltip")),_=g?UW(m,c,n,t,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=xu(m.model),T=y||b||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:Ly(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||T;var M=ZW(i,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[w]=C,D.mapper=i[M].mapper,C.linkGroup=D}}}})}function UW(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(v){l[v]=st(o.get(v))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&vt(u,c.textStyle)}}return r.model.getModel("axisPointer",new Ot(l,e,a))}function YW(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[xu(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function ZW(r,t){for(var e=t.model,a=t.dim,n=0;n=0||r===t}function XW(r){var t=B0(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=Ly(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0;return o&&s}var r$=Dt();function Rb(r,t,e,a){if(r instanceof JI){var n=r.scale.type;if(n!=="category"&&n!=="ordinal")return e}var i=r.model,o=i.get("jitter"),s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=r.scale.type==="ordinal"?r.getBandWidth():null;return o>0?s?pP(e,o,u,a):a$(r,t,e,a,o,l):e}function pP(r,t,e,a){if(e===null)return r+(Math.random()-.5)*t;var n=e-a*2,i=Math.min(Math.max(0,t),n);return r+(Math.random()-.5)*i}function a$(r,t,e,a,n,i){var o=r$(r);o.items||(o.items=[]);var s=o.items,l=Eb(s,t,e,a,n,i,1),u=Eb(s,t,e,a,n,i,-1),f=Math.abs(l-e)n/2||c&&v>c/2-a?pP(e,n,c,a):(s.push({fixedCoord:t,floatCoord:f,r:a}),f)}function Eb(r,t,e,a,n,i,o){for(var s=e,l=0;ln/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=vt({color:d.color},l));var g=wt(st(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:v},!1);if(Q(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else ot(f)&&(g.name=f(g.name,g));var m=new Ot(g,null,this.ecModel);return _e(m,Vu.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:G.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:wt({lineStyle:{color:G.color.neutral20}},fl.axisLine),axisLabel:zf(fl.axisLabel,!1),axisTick:zf(fl.axisTick,!1),splitLine:zf(fl.splitLine,!0),splitArea:zf(fl.splitArea,!0),indicator:[]},t}(kt);const d$=h$;var p$=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=Y(i,function(s){var l=s.model.get("showName")?s.name:"",u=new on(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=U(v)?v:[v],p=U(h)?h:[h],g=[],y=[];function m(R,P,O){var E=O%P.length;return R[E]=R[E]||[],E}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(g,d,x);g[w].push(new Jn({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,p,x);y[w].push(new th({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=Y(n,function(R,P){var O=R.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),Y(O,function(E){return a.coordToPoint(E.coord,P)})}),M=[],x=0;x<=T;x++){for(var D=[],I=0;I3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(i),v=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Bb(this._zr,"globalPan")||cl(e))){var a=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,a,n,i,o){e._checkPointer(i,o.originX,o.originY)&&(tn(i.event),i.__ecRoamConsumed=!0,zb(e,a,n,i,o))},t}(Fr);function cl(r){return r.__ecRoamConsumed}var M$=Dt();function yh(r){var t=M$(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function vl(r,t,e,a){for(var n=yh(r),i=n.roam,o=i[t]=i[t]||[],s=0;s=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(c=xP(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var h=n;n=new lt,n.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return!e.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Mt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(t,e,a,n,i,o){var s=t.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=Kd[s];if(f&&et(Kd,s)){l=f.call(this,t,e);var c=t.getAttribute("name");if(c){var v={name:c,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});e.add(l)}}var h=Hb[s];if(h&&et(Hb,s)){var d=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var a=new iu({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),P$(a,e);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a},r.internalField=function(){Kd={g:function(t,e){var a=new lt;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new Mt;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new Jn;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new be;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new Fm;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Ub(a));var i=new ar({shape:{points:n||[]},silent:!0});return Cr(e,i),cr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Ub(a));var i=new Xe({shape:{points:n||[]},silent:!0});return Cr(e,i),cr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new Fe;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new lt;return Cr(e,s),cr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new lt;return Cr(e,s),cr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",n=bD(a);return Cr(e,n),cr(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),Hb={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Os(t,e,a,n);return Wb(r,i),$b(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new OD(t,e,a);return Wb(r,n),$b(r,n),n}};function Wb(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function $b(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};SP(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000",s=i.stopOpacity||e.getAttribute("stop-opacity");if(s){var l=lr(o),u=l&&l[3];u&&(l[3]*=Nn(s),o=Ma(l,"rgba"))}t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function Cr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),vt(t.__inheritedStyle,r.__inheritedStyle))}function Ub(r){for(var t=_h(r),e=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=_h(o);switch(n=n||Oe(),s){case"translate":Pa(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":bm(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":jn(n,n,-parseFloat(l[0])*jd,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*jd);Aa(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*jd);Aa(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var Zb=/([^\s:;]+)\s*:\s*([^:;]+)/g;function SP(r,t,e){var a=r.getAttribute("style");if(a){Zb.lastIndex=0;for(var n;(n=Zb.exec(a))!=null;){var i=n[1],o=et(gv,i)?gv[i]:null;o&&(t[o]=n[2]);var s=et(yv,i)?yv[i]:null;s&&(e[s]=n[2])}}}function B$(r,t,e){for(var a=0;a0,m={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,g,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=rt(),a=rt(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(h,d){return d&&(h=d(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function c(h){for(var d=[],p=!u&&l&&l.project,g=0;g=0)&&(v=n);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Ie(t,Te(a),{labelFetcher:v,labelDataIndex:c,defaultText:e},h);var d=t.getTextContent();if(d&&(bP(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Jb(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):pt(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function Qb(r,t,e,a,n){r.data||fn({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function tw(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Jt(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&fz(t,n,e),o}function ew(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill=G.color.neutral00,n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:G.color.tertiary},itemStyle:{borderWidth:.5,borderColor:G.color.border,areaColor:G.color.background},emphasis:{label:{show:!0,color:G.color.primary},itemStyle:{areaColor:G.color.highlight}},select:{label:{show:!0,color:G.color.primary},itemStyle:{color:G.color.highlight}},nameProperty:"name"},t}(te);const iU=nU;function oU(r,t){var e={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,f=0;f1?(_.width=m,_.height=m/p):(_.height=m,_.width=m*p),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var S=r.getBoxLayoutParams();S.aspect=p,_=Qt(S,d),_=dL(r,_,p)}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function cU(r,t){A(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var vU=function(){function r(){this.dimensions=TP}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new iw(l+s,l,$({nameMap:o.get("nameMap"),api:e,ecModel:t},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=ow,u.resize(o,e)}),t.eachSeries(function(o){Ou({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",ae).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=Y(o,function(f){return f.get("nameMap")}),u=new iw(s,s,$({nameMap:mm(l),api:e,ecModel:t},n(o[0])));u.zoomLimit=Ve.apply(null,Y(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=ow,u.resize(o[0],e),A(o,function(f){f.coordinateSystem=u,cU(u,f)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=rt(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function xU(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){wU(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=TU(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function bU(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function sw(r){return arguments.length?r:MU}function El(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function wU(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function TU(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=Jd(s),i=Qd(i),s&&i;){n=Jd(n),o=Qd(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+c-i.hierNode.prelim-u+a(s,i);v>0&&(AU(CU(s,r,e),r,v),u+=v,l+=v),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!Jd(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=c-l),i&&!Qd(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function Jd(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Qd(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function CU(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function AU(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function MU(r,t){return r.parentNode===t.parentNode?1:2}var DU=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),LU=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new DU},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,v=J(a.forkPosition,1),h=[];h[f]=o[f],h[c]=o[c]+(l[c]-o[c])*v,e.moveTo(o[0],o[1]),e.lineTo(h[0],h[1]),e.moveTo(s[0],s[1]),h[f]=s[f],e.lineTo(h[0],h[1]),h[f]=l[f],e.lineTo(h[0],h[1]),e.lineTo(l[0],l[1]);for(var d=1;dm.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Ql(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(pt(e).focus=L),PU(n,o,f,e,d,h,p,a),e.__edge&&(e.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Pu||Uc(e.__edge,k)}})}function PU(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),v=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=a.__edge=new eh({shape:ky(f,c,v,n,n)})),Et(p,{shape:ky(f,c,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;me&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var a=e.getData().tree.root,n=r.targetNode;if(Q(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function PP(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function U0(r,t){var e=PP(r);return bt(e,t)>=0}function Sh(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var HU=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{},i=new Ot(n,this,this.ecModel),o=$0.createTree(a,this,s);function s(c){c.wrapMethod("getItemModel",function(v,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var v=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=v&&v.collapsed!=null?!v.collapsed:c.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ye("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Sh(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:G.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(te);const WU=HU;function $U(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)e.push(n[i])}}function UU(r,t){r.eachSeriesByType("tree",function(e){YU(e,t)})}function YU(r,t){var e=Ce(r,t).refContainer,a=Qt(r.getBoxLayoutParams(),e);r.layoutInfo=a;var n=r.get("layout"),i=0,o=0,s=null;n==="radial"?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,s=sw(function(S,b){return(S.parentNode===b.parentNode?1:2)/S.depth})):(i=a.width,o=a.height,s=sw());var l=r.getData().tree.root,u=l.children[0];if(u){SU(l),$U(u,xU,s),l.hierNode.modifier=-u.hierNode.prelim,pl(u,bU);var f=u,c=u,v=u;pl(u,function(S){var b=S.getLayout().x;bc.getLayout().x&&(c=S),S.depth>v.depth&&(v=S)});var h=f===c?1:s(f,c)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(n==="radial")p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),pl(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var b=El(y,m);S.setLayout({x:b.x,y:b.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=o/(c.getLayout().x+h+d),p=i/(v.depth-1||1),pl(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),pl(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function ZU(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");$(s,o)})})}function XU(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=mh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}function qU(r){r.registerChartView(kU),r.registerSeriesModel(WU),r.registerLayout(UU),r.registerVisual(ZU),XU(r)}var vw=["treemapZoomToNode","treemapRender","treemapMove"];function KU(r){for(var t=0;t1;)i=i.parentNode;var o=jg(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var jU=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};RP(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new Ot({itemStyle:o},this,a);i=e.levels=JU(i,a);var l=Y(i||[],function(c){return new Ot(c,s,a)},this),u=$0.createTree(n,this,f);function f(c){c.wrapMethod("getItemModel",function(v,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return v.parentModel=p||s,v})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return ye("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Sh(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},$(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=rt(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){kP(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:G.size.l,top:G.size.xxxl,right:G.size.l,bottom:G.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:G.size.m,emptyItemWidth:25,itemStyle:{color:G.color.backgroundShade,textStyle:{color:G.color.secondary}},emphasis:{itemStyle:{color:G.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:G.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:G.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(te);function RP(r){var t=0;A(r.children,function(a){RP(a);var n=a.value;U(n)&&(n=n[0]),t+=n});var e=r.value;U(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),U(r.value)?r.value[0]=e:r.value=e}function JU(r,t){var e=Ut(t.get("color")),a=Ut(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;A(r,function(s){var l=new Ot(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}const QU=jU;var t8=8,hw=8,tp=5,e8=function(){function r(t){this.group=new lt,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c=Ce(t,e).refContainer,v={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=Qt(v,c);this._prepare(a,h,u),this._renderContent(t,h,d,s,l,u,f,n),sh(o,v,c)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=xe(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+t8*2,e.emptyItemWidth);e.totalWidth+=s+hw,e.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(t,e,a,n,i,o,s,l){for(var u=0,f=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),v=e.totalWidth,h=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;v>a.width&&(v-=m-f,m=f,_=null);var S=new ar({shape:{points:r8(u,0,m,c,p===h.length-1,p===0)},style:vt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Rt({style:Zt(o,{text:_})}),textConfig:{position:"inside"},z2:Es*1e4,onclick:xt(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(s,{text:_}),S.ensureState("emphasis").style=d,Jt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),a8(S,t,y),u+=m+hw}},r.prototype.remove=function(){this.group.removeAll()},r}();function r8(r,t,e,a,n,i){var o=[[n?r:r-tp,t],[r+e,t],[r+e,t+a],[n?r:r-tp,t+a]];return!i&&o.splice(2,0,[r+e+tp,t+a/2]),!n&&o.push([r,t+a/2]),o}function a8(r,t,e){pt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Sh(e,t)}}const n8=e8;var i8=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;npw||Math.abs(e.dy)>pw)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var a=e.originX,n=e.originY,i=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new dt(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var c=f.zoom=f.zoom||1;if(c*=i,u){var v=u.min||0,h=u.max||1/0;c=Math.max(Math.min(h,c),v)}var d=c/f.zoom;f.zoom=c;var p=this.seriesModel.layoutInfo;a-=p.x,n-=p.y;var g=Oe();Pa(g,g,[-a,-n]),bm(g,g,[d,d]),Pa(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&qc(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new n8(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(U0(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=gl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},t.type="treemap",t}(Xt);function gl(){return{nodeGroup:[],background:[],content:[]}}function c8(r,t,e,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),v=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),M=x.get("borderRadius")||0,D=q("nodeGroup",Ry);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),mv(D).nodeWidth=h,mv(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=q("background",dw,u,l8);I&&V(D,I,b&&f.upperLabelHeight);var L=v.getModel("emphasis"),k=L.get("focus"),R=L.get("blurScope"),P=L.get("disabled"),O=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(b)su(D)&&Vi(D,!1),I&&(Vi(I,!P),c.setItemGraphicEl(o.dataIndex,I),Vg(I,O,R));else{var E=q("content",dw,u,u8);E&&H(D,E),I.disableMorphing=!0,I&&su(I)&&Vi(I,!1),Vi(D,!P),c.setItemGraphicEl(o.dataIndex,D);var B=v.getShallow("cursor");B&&E.attr("cursor",B),Vg(D,O,R)}return D;function V(at,N,F){var Z=pt(N);if(Z.dataIndex=o.dataIndex,Z.seriesIndex=r.seriesIndex,N.setShape({x:0,y:0,width:h,height:d,r:M}),g)W(N);else{N.invisible=!1;var K=o.getVisual("style"),mt=K.stroke,gt=mw(x);gt.fill=mt;var ut=Li(w);ut.fill=w.get("borderColor");var At=Li(T);At.fill=T.get("borderColor");var Ht=Li(C);if(Ht.fill=C.get("borderColor"),F){var ne=h-2*p;X(N,mt,K.opacity,{x:p,y:0,width:ne,height:S})}else N.removeTextContent();N.setStyle(gt),N.ensureState("emphasis").style=ut,N.ensureState("blur").style=At,N.ensureState("select").style=Ht,io(N)}at.add(N)}function H(at,N){var F=pt(N);F.dataIndex=o.dataIndex,F.seriesIndex=r.seriesIndex;var Z=Math.max(h-2*p,0),K=Math.max(d-2*p,0);if(N.culling=!0,N.setShape({x:p,y:p,width:Z,height:K,r:M}),g)W(N);else{N.invisible=!1;var mt=o.getVisual("style"),gt=mt.fill,ut=mw(x);ut.fill=gt,ut.decal=mt.decal;var At=Li(w),Ht=Li(T),ne=Li(C);X(N,gt,mt.opacity,null),N.setStyle(ut),N.ensureState("emphasis").style=At,N.ensureState("blur").style=Ht,N.ensureState("select").style=ne,io(N)}at.add(N)}function W(at){!at.invisible&&i.push(at)}function X(at,N,F,Z){var K=v.getModel(Z?yw:gw),mt=xe(v.get("name"),null),gt=K.getShallow("show");Ie(at,Te(v,Z?yw:gw),{defaultText:gt?mt:null,inheritColor:N,defaultOpacity:F,labelFetcher:r,labelDataIndex:o.dataIndex});var ut=at.getTextContent();if(ut){var At=ut.style,Ht=Gv(At.padding||0);Z&&(at.setTextConfig({layoutRect:Z}),ut.disableLabelLayout=!0),ut.beforeUpdate=function(){var ie=Math.max((Z?Z.width:at.shape.width)-Ht[1]-Ht[3],0),fr=Math.max((Z?Z.height:at.shape.height)-Ht[0]-Ht[2],0);(At.width!==ie||At.height!==fr)&&ut.setStyle({width:ie,height:fr})},At.truncateMinChar=2,At.lineOverflow="truncate",j(At,Z,f);var ne=ut.getState("emphasis");j(ne?ne.style:null,Z,f)}}function j(at,N,F){var Z=at?at.text:null;if(!N&&F.isLeafRoot&&Z!=null){var K=r.get("drillDownIcon",!0);at.text=K?K+" "+Z:Z}}function q(at,N,F,Z){var K=m!=null&&e[at][m],mt=n[at];return K?(e[at][m]=null,it(mt,K)):g||(K=new N,K instanceof Vr&&(K.z2=v8(F,Z)),St(mt,K)),t[at][y]=K}function it(at,N){var F=at[y]={};N instanceof Ry?(F.oldX=N.x,F.oldY=N.y):F.oldShape=$({},N.shape)}function St(at,N){var F=at[y]={},Z=o.parentNode,K=N instanceof lt;if(Z&&(!a||a.direction==="drillDown")){var mt=0,gt=0,ut=n.background[Z.getRawIndex()];!a&&ut&&ut.oldShape&&(mt=ut.oldShape.width,gt=ut.oldShape.height),K?(F.oldX=0,F.oldY=gt):F.oldShape={x:mt,y:gt,width:0,height:0}}F.fadein=!K}}function v8(r,t){return r*s8+t}const h8=f8;var wu=A,d8=ht,_v=-1,Y0=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=st(t);this.type=a,this.mappingMethod=e,this._normalizeData=y8[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(ep(n),p8(n)):e==="category"?n.categories?g8(n):ep(n,!0):(Ze(e!=="linear"||n.dataExtent),ep(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return tt(this._normalizeData,this)},r.listVisualTypes=function(){return It(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){ht(t)?A(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=U(t)?[]:ht(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&wu(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(U(t))t=t.slice();else if(d8(t)){var e=[];wu(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function ep(r,t){var e=r.visual,a=[];ht(e)?wu(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),EP(r,a)}function Gf(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Ey([0,1])}}function _w(r){var t=this.option.visual;return t[Math.round(Gt(r,[0,1],[0,t.length-1],!0))]||{}}function yl(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Ol(r){var t=this.option.visual;return t[this.option.loop&&r!==_v?r%t.length:r]}function Ii(){return this.option.visual[0]}function Ey(r){return{linear:function(t){return Gt(t,r,this.option.visual,!0)},category:Ol,piecewise:function(t,e){var a=Oy.call(this,e);return a==null&&(a=Gt(t,r,this.option.visual,!0)),a},fixed:Ii}}function Oy(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=Y0.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function EP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var a=lr(e);return a||[0,0,0,1]})),t}var y8={linear:function(r){return Gt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Y0.findPieceIndex(r,t,!0);if(e!=null)return Gt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??_v},fixed:fe};function Ff(r,t,e){return r?t<=e:t=e.length||p===e[p.depth]){var y=w8(n,l,p,g,d,a);NP(p,y,e,a)}})}}}function S8(r,t,e){var a=$({},t),n=e.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function Sw(r){var t=rp(r,"color");if(t){var e=rp(r,"colorAlpha"),a=rp(r,"colorSaturation");return a&&(t=Bn(t,null,null,a)),e&&(t=Oc(t,e)),t}}function x8(r,t){return t!=null?Bn(t,null,null,r):null}function rp(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function b8(r,t,e,a,n,i){if(!(!i||!i.length)){var o=ap(t,"color")||n.color!=null&&n.color!=="none"&&(ap(t,"colorAlpha")||ap(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var v=new Ge(c);return OP(v).drColorMappingBy=f,v}}}function ap(r,t){var e=r.get(t);return U(e)&&e.length?{name:t,range:e}:null}function w8(r,t,e,a,n,i){var o=$({},t);if(n){var s=n.type,l=s==="color"&&OP(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var Tu=Math.max,Sv=Math.min,xw=Ve,Z0=A,BP=["itemStyle","borderWidth"],T8=["itemStyle","gapWidth"],C8=["upperLabel","show"],A8=["upperLabel","height"];const M8={seriesType:"treemap",reset:function(r,t,e,a){var n=r.option,i=Ce(r,e).refContainer,o=Qt(r.getBoxLayoutParams(),i),s=n.size||[],l=J(xw(o.width,s[0]),i.width),u=J(xw(o.height,s[1]),i.height),f=a&&a.type,c=["treemapZoomToNode","treemapRootToNode"],v=bu(a,c,r),h=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),p=PP(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?R8(r,v,d,l,u):h?[h.width,h.height]:[l,u],y=n.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:n.squareRatio,sort:y,leafDepth:n.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),zP(d,m,!1,0),_=d.getLayout(),Z0(p,function(b,x){var w=(p[x+1]||d).getValue();b.setLayout($({dataExtent:[w,w],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(E8(o,h,v),!0),r.setLayoutInfo(o),VP(S,new dt(-o.x,-o.y,e.getWidth(),e.getHeight()),p,d,0)}};function zP(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(BP),u=s.get(T8)/2,f=GP(s),c=Math.max(l,f),v=l-u,h=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),n=Tu(n-2*v,0),i=Tu(i-v-h,0);var d=n*i,p=D8(r,s,d,t,e,a);if(p.length){var g={x:v,y:h,width:n,height:i},y=Sv(n,i),m=1/0,_=[];_.area=0;for(var S=0,b=p.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*ts[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function k8(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=t*t*e;return l?Tu(u*a/l,l/(u*n)):1/0}function bw(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(n||f>e[l[o]])&&(f=e[l[o]]);for(var c=0,v=r.length;cT1&&(u=T1),i=s}ua&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0].8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+C,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(lt);const j0=J8;var Q8=function(){function r(t){this.group=new lt,this._LineCtor=t||j0}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=Dw(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Dw(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!t6(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n0}function Dw(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Te(t)}}function Lw(r){return isNaN(r[0])||isNaN(r[1])}function lp(r){return r&&!Lw(r[0])&&!Lw(r[1])}const J0=Q8;var up=[],fp=[],cp=[],$o=Ee,vp=Yi,Iw=Math.abs;function Pw(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){up[0]=$o(a[0],n[0],i[0],f),up[1]=$o(a[1],n[1],i[1],f);var c=Iw(vp(up,t)-l);c=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function hp(r,t){var e=[],a=tu,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[Xa(u[0]),Xa(u[1])],u[2]&&u.__original.push(Xa(u[2])));var v=u.__original;if(u[2]!=null){if(je(n[0],v[0]),je(n[1],v[2]),je(n[2],v[1]),f&&f!=="none"){var h=Bl(s.node1),d=Pw(n,v[0],h*t);a(n[0][0],n[1][0],n[2][0],d,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],d,e),n[0][1]=e[3],n[1][1]=e[4]}if(c&&c!=="none"){var h=Bl(s.node2),d=Pw(n,v[1],h*t);a(n[0][0],n[1][0],n[2][0],d,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],d,e),n[1][1]=e[1],n[2][1]=e[2]}je(u[0],n[0]),je(u[1],n[2]),je(u[2],n[1])}else{if(je(i[0],v[0]),je(i[1],v[1]),Bi(o,i[1],i[0]),Ps(o,o),f&&f!=="none"){var h=Bl(s.node1);ig(i[0],i[0],o,h*t)}if(c&&c!=="none"){var h=Bl(s.node2);ig(i[1],i[1],o,-h*t)}je(u[0],i[0]),je(u[1],i[1])}})}var ZP=Dt();function e6(r){if(r)return ZP(r).bridge}function kw(r,t){r&&(ZP(r).bridge=t)}function Rw(r){return r.type==="view"}var r6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var n=new Fu,i=new J0,o=this.group,s=new lt;this._controller=new wo(a.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,s=!1;this._model=e,this._api=n,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(n);var u=this._symbolDraw,f=this._lineDraw;if(Rw(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(c):Et(this._mainGroup,c,e)}hp(e.getGraph(),Nl(e));var v=e.getData();u.updateData(v);var h=e.getEdgeData();f.updateData(h),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,p));var g=e.get("layout");v.graph.eachNode(function(S){var b=S.dataIndex,x=S.getGraphicEl(),w=S.getModel();if(x){x.off("drag").off("dragend");var T=w.get("draggable");T&&x.on("drag",function(M){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(b),v.setItemLayout(b,[x.x,x.y]);break;case"circular":v.setItemLayout(b,[x.x,x.y]),S.setLayout({fixed:!0},!0),K0(e,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(e);break;case"none":default:v.setItemLayout(b,[x.x,x.y]),q0(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),x.setDraggable(T,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(pt(x).focus=S.getAdjacentDataIndices())}}),v.graph.eachEdge(function(S){var b=S.getGraphicEl(),x=S.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(pt(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=v.getLayout("cx"),_=v.getLayout("cy");v.graph.eachNode(function(S){$P(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a,n){var i=this,o=!1;(function s(){e.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype._updateController=function(e,a,n){var i=this._controller,o=this._controllerHost,s=a.coordinateSystem;if(!Rw(s)){i.disable();return}i.enable(a.get("roam"),{api:n,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(l,u,f){return s.containPoint([u,f])},isInClip:function(l,u,f){return!e||e.contain(u,f)}}}),o.zoomLimit=a.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},t.prototype.updateViewOnPan=function(e,a,n){this._active&&(V0(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,a,n){this._active&&(G0(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),hp(e.getGraph(),Nl(e)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=Nl(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(hp(e.getGraph(),Nl(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,a=e.coordinateSystem;if(a.type==="view"){var n=e6(e);if(n)return{bridge:n,coordSys:a}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new lt,l=n.group.children(),u=i.group.children(),f=new lt,c=new lt;s.add(c),s.add(f);for(var v=0;v=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof Pi||(e=this._nodesMap[Uo(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(h.node1))}for(l=0;l=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r}(),XP=function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=rt(),e=rt();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i=0&&!t.hasKey(c)&&(t.set(c,!0),a.push(f.node1))}for(i=0;i=0&&!t.hasKey(p)&&(t.set(p,!0),n.push(d.node2))}return{edge:t.keys(),node:e.keys()}},r}();function qP(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}_e(Pi,qP("hostGraph","data"));_e(XP,qP("hostGraph","edgeData"));const i6=n6;function Q0(r,t,e,a,n){for(var i=new i6(a),o=0;o "+v)),u++)}var h=e.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=cn(r,e);else{var p=Nu.get(h),g=p?p.dimensions||[]:[];bt(g,"value")<0&&g.concat(["value"]);var y=zu(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new tr(y,e),d.initData(r)}var m=new tr(["value"],e);return m.initData(l,s),n&&n(d,m),LP({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var o6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Ys(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ro(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){F8(this);var s=Q0(i,n,this,!0,l);return A(s.edges,function(u){H8(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=Ot.prototype.getModel;function v(d,p){var g=c.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=v,d});function h(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ye("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=KL({series:this,dataIndex:e,multipleSeries:a});return c},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(n){return n.value!=null?n:$({value:0},n)}),a=new tr(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:G.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:G.color.primary}}},t}(te);const s6=o6;function l6(r){r.registerChartView(a6),r.registerSeriesModel(s6),r.registerProcessor(N8),r.registerVisual(B8),r.registerVisual(z8),r.registerLayout(W8),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,U8),r.registerLayout(Z8),r.registerCoordinateSystem("graphView",{dimensions:To.dimensions,create:q8}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},fe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},fe),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",query:t},function(n){var i=a.getViewOfSeriesModel(n);i&&(t.dx!=null&&t.dy!=null&&i.updateViewOnPan(n,a,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&i.updateViewOnZoom(n,a,t));var o=n.coordinateSystem,s=mh(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var u6=function(r){z(t,r);function t(e,a,n){var i=r.call(this)||this;pt(i).dataType="node",i.z2=2;var o=new Rt;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.graph.getNodeByIndex(a),l=e.hostModel,u=s.getModel(),f=u.getModel("emphasis"),c=e.getItemLayout(a),v=$(Ca(u.getModel("itemStyle"),c,!0),c),h=this;if(isNaN(v.startAngle)){h.setShape(v);return}i?h.setShape(v):Et(h,{shape:v},l,a);var d=$(Ca(u.getModel("itemStyle"),c,!0),c);o.setShape(d),o.useStyle(e.getItemVisual(a,"style")),we(o,u),this._updateLabel(l,u,s),e.setItemGraphicEl(a,h),we(h,u,"itemStyle");var p=f.get("focus");Jt(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this.getTextContent(),o=n.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=a.getModel("label");i.ignore=!f.get("show");var c=Te(a),v=n.getVisual("style");Ie(i,c,{labelFetcher:{getFormattedLabel:function(m,_,S,b,x,w){return e.getFormattedLabel(m,_,"node",b,_r(x,c.normal&&c.normal.get("formatter"),a.get("name")),w)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:"startArc"});var h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t}(rr);const Ew=u6;var f6=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this)||this;return pt(o).dataType="edge",o.updateData(e,a,n,i,!0),o}return t.prototype.buildPath=function(e,a){e.moveTo(a.s1[0],a.s1[1]);var n=.7,i=a.clockwise;e.arc(a.cx,a.cy,a.r,a.sStartAngle,a.sEndAngle,!i),e.bezierCurveTo((a.cx-a.s2[0])*n+a.s2[0],(a.cy-a.s2[1])*n+a.s2[1],(a.cx-a.t1[0])*n+a.t1[0],(a.cy-a.t1[1])*n+a.t1[1],a.t1[0],a.t1[1]),e.arc(a.cx,a.cy,a.r,a.tStartAngle,a.tEndAngle,!i),e.bezierCurveTo((a.cx-a.t2[0])*n+a.t2[0],(a.cy-a.t2[1])*n+a.t2[1],(a.cx-a.s1[0])*n+a.s1[0],(a.cy-a.s1[1])*n+a.s1[1],a.s1[0],a.s1[1]),e.closePath()},t.prototype.updateData=function(e,a,n,i,o){var s=e.hostModel,l=a.graph.getEdgeByIndex(n),u=l.getLayout(),f=l.node1.getModel(),c=a.getItemModel(l.dataIndex),v=c.getModel("lineStyle"),h=c.getModel("emphasis"),d=h.get("focus"),p=$(Ca(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),Ow(g,l,e,v)):(Gr(g),Ow(g,l,e,v),Et(g,{shape:p},s,n)),Jt(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),we(g,c,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g)},t}(Lt);function Ow(r,t,e,a){var n=t.node1,i=t.node2,o=r.style;r.setStyle(a.getLineStyle());var s=a.get("color");switch(s){case"source":o.fill=e.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=e.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=e.getItemVisual(n.dataIndex,"style").fill,u=e.getItemVisual(i.dataIndex,"style").fill;if(Q(l)&&Q(u)){var f=r.shape,c=(f.s1[0]+f.s2[0])/2,v=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new Os(c,v,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var c6=Math.PI/180,v6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group,l=-e.get("startAngle")*c6;if(i.diff(o).add(function(f){var c=i.getItemLayout(f);if(c){var v=new Ew(i,f,l);pt(v).dataIndex=f,s.add(v)}}).update(function(f,c){var v=o.getItemGraphicEl(c),h=i.getItemLayout(f);if(!h){v&&qa(v,e,c);return}v?v.updateData(i,f,l):v=new Ew(i,f,l),s.add(v)}).remove(function(f){var c=o.getItemGraphicEl(f);c&&qa(c,e,f)}).execute(),!o){var u=e.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=J(u[0],n.getWidth()),this.group.originY=J(u[1],n.getHeight()),jt(this.group,{scaleX:1,scaleY:1},e)}this._data=i,this.renderEdges(e,l)},t.prototype.renderEdges=function(e,a){var n=e.getData(),i=e.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new f6(n,i,l,a);pt(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,i,l,a),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&qa(u,e,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type="chord",t}(Xt);const h6=v6;var d6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new Ys(tt(this.getData,this),tt(this.getRawData,this))},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[];if(i&&n){var o=Q0(i,n,this,!0,s);return o.data}function s(l,u){var f=Ot.prototype.getModel;function c(h,d){var p=f.call(this,h,d);return p.resolveParentPath=v,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=c,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){var i=this.getDataParams(e,n);if(n==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(e),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ye("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return ye("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(a==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(e);if(n.name==null&&(n.name=i.getName(e)),n.value==null){var s=o.getLayout().value;n.value=s}}return n},t.type="series.chord",t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t}(te);const p6=d6;var dp=Math.PI/180;function g6(r,t){r.eachSeriesByType("chord",function(e){y6(e,t)})}function y6(r,t){var e=r.getData(),a=e.graph,n=r.getEdgeData(),i=n.count();if(i){var o=hL(r,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=Math.max((r.get("padAngle")||0)*dp,0),v=Math.max((r.get("minAngle")||0)*dp,0),h=-r.get("startAngle")*dp,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];Kv(y,!p);var m=y[0],_=y[1],S=_-m,b=e.getSum("value")===0&&n.getSum("value")===0,x=[],w=0;a.eachEdge(function(E){var B=b?1:E.getValue("value");b&&(B>0||v)&&(w+=2);var V=E.node1.dataIndex,H=E.node2.dataIndex;x[V]=(x[V]||0)+B,x[H]=(x[H]||0)+B});var T=0;if(a.eachNode(function(E){var B=E.getValue("value");isNaN(B)||(x[E.dataIndex]=Math.max(B,x[E.dataIndex]||0)),!b&&(x[E.dataIndex]>0||v)&&w++,T+=x[E.dataIndex]||0}),!(w===0||T===0)){c*w>=Math.abs(S)&&(c=Math.max(0,(Math.abs(S)-v*w)/w)),(c+v)*w>=Math.abs(S)&&(v=(Math.abs(S)-c*w)/w);var C=(S-c*w*g)/T,M=0,D=0,I=0;a.eachNode(function(E){var B=x[E.dataIndex]||0,V=C*(T?B:1)*g;Math.abs(V)D){var k=M/D;a.eachNode(function(E){var B=E.getLayout().angle;Math.abs(B)>=v?E.setLayout({angle:B*k,ratio:k},!0):E.setLayout({angle:v,ratio:v===0?1:B/v},!0)})}else a.eachNode(function(E){if(!L){var B=E.getLayout().angle,V=Math.min(B/I,1),H=V*M;B-Hv&&v>0){var V=L?1:Math.min(B/I,1),H=B-v,W=Math.min(H,Math.min(R,M*V));R-=W,E.setLayout({angle:B-W,ratio:(B-W)/B},!0)}else v>0&&E.setLayout({angle:v,ratio:B===0?1:v/B},!0)}});var P=m,O=[];a.eachNode(function(E){var B=Math.max(E.getLayout().angle,v);E.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:P,endAngle:P+B*g,clockwise:p},!0),O[E.dataIndex]=P,P+=(B+c)*g}),a.eachEdge(function(E){var B=b?1:E.getValue("value"),V=C*(T?B:1)*g,H=E.node1.dataIndex,W=O[H]||0,X=Math.abs((E.node1.getLayout().ratio||1)*V),j=W+X*g,q=[s+f*Math.cos(W),l+f*Math.sin(W)],it=[s+f*Math.cos(j),l+f*Math.sin(j)],St=E.node2.dataIndex,at=O[St]||0,N=Math.abs((E.node2.getLayout().ratio||1)*V),F=at+N*g,Z=[s+f*Math.cos(at),l+f*Math.sin(at)],K=[s+f*Math.cos(F),l+f*Math.sin(F)];E.setLayout({s1:q,s2:it,sStartAngle:W,sEndAngle:j,t1:Z,t2:K,tStartAngle:at,tEndAngle:F,cx:s,cy:l,r:f,value:B,clockwise:p}),O[H]=j,O[St]=F})}}}function m6(r){r.registerChartView(h6),r.registerSeriesModel(p6),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,g6),r.registerProcessor($s("chord"))}var _6=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),S6=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new _6},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,f)},t}(Lt);const x6=S6;function b6(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=J(e[0],t.getWidth()),s=J(e[1],t.getHeight()),l=J(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Wf(r,t){var e=r==null?"":r+"";return t&&(Q(t)?e=t.replace("{value}",e):ot(t)&&(e=t(r))),e}var w6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=b6(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),v=c.get("roundCap"),h=v?hv:rr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];Kv(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;d&&b=C&&(M===0?0:i[M-1][0])Math.PI/2&&(j+=Math.PI)):X==="tangential"?j=-T-Math.PI/2:Pt(X)&&(j=X*Math.PI/180),j===0?c.add(new Rt({style:Zt(_,{text:B,x:H,y:W,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:V}),silent:!0})):c.add(new Rt({style:Zt(_,{text:B,x:H,y:W,verticalAlign:"middle",align:"center"},{inheritColor:V}),silent:!0,originX:H,originY:W,rotation:j}))}if(m.get("show")&&P!==S){var O=m.get("distance");O=O?O+f:f;for(var q=0;q<=b;q++){k=Math.cos(T),R=Math.sin(T);var it=new be({shape:{x1:k*(d-O)+v,y1:R*(d-O)+h,x2:k*(d-w-O)+v,y2:R*(d-w-O)+h},silent:!0,style:I});I.stroke==="auto"&&it.setStyle({stroke:i((P+q/b)/S)}),c.add(it),T+=M}T-=M}else T+=C}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,f){var c=this.group,v=this._data,h=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),b=+e.get("max"),x=[S,b],w=[s,l];function T(M,D){var I=m.getItemModel(M),L=I.getModel("pointer"),k=J(L.get("width"),o.r),R=J(L.get("length"),o.r),P=e.get(["pointer","icon"]),O=L.get("offsetCenter"),E=J(O[0],o.r),B=J(O[1],o.r),V=L.get("keepAspect"),H;return P?H=me(P,E-k/2,B-R,k,R,null,V):H=new x6({shape:{angle:-Math.PI/2,width:k,r:R,x:E,y:B}}),H.rotation=-(D+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function C(M,D){var I=g.get("roundCap"),L=I?hv:rr,k=g.get("overlap"),R=k?g.get("width"):f/m.count(),P=k?o.r-R:o.r-(M+1)*R,O=k?o.r:o.r-M*R,E=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:P,r:O}});return k&&(E.z2=Gt(m.get(_,M),[S,b],[100,0],!0)),E}(y||p)&&(m.diff(v).add(function(M){var D=m.get(_,M);if(p){var I=T(M,s);jt(I,{rotation:-((isNaN(+D)?w[0]:Gt(D,x,w,!0))+Math.PI/2)},e),c.add(I),m.setItemGraphicEl(M,I)}if(y){var L=C(M,s),k=g.get("clip");jt(L,{shape:{endAngle:Gt(D,x,w,k)}},e),c.add(L),Og(e.seriesIndex,m.dataType,M,L),d[M]=L}}).update(function(M,D){var I=m.get(_,M);if(p){var L=v.getItemGraphicEl(D),k=L?L.rotation:s,R=T(M,k);R.rotation=k,Et(R,{rotation:-((isNaN(+I)?w[0]:Gt(I,x,w,!0))+Math.PI/2)},e),c.add(R),m.setItemGraphicEl(M,R)}if(y){var P=h[D],O=P?P.shape.endAngle:s,E=C(M,O),B=g.get("clip");Et(E,{shape:{endAngle:Gt(I,x,w,B)}},e),c.add(E),Og(e.seriesIndex,m.dataType,M,E),d[M]=E}}).execute(),m.each(function(M){var D=m.getItemModel(M),I=D.getModel("emphasis"),L=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(p){var P=m.getItemGraphicEl(M),O=m.getItemVisual(M,"style"),E=O.fill;if(P instanceof Fe){var B=P.style;P.useStyle($({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},O))}else P.useStyle(O),P.type!=="pointer"&&P.setColor(E);P.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),P.style.fill==="auto"&&P.setStyle("fill",i(Gt(m.get(_,M),x,[0,1],!0))),P.z2EmphasisLift=0,we(P,D),Jt(P,L,k,R)}if(y){var V=d[M];V.useStyle(m.getItemVisual(M,"style")),V.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),V.z2EmphasisLift=0,we(V,D),Jt(V,L,k,R)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=me(s,a.cx-o/2+J(l[0],a.r),a.cy-o/2+J(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),c=+e.get("max"),v=new lt,h=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Rt({silent:!0}),d[y]=new Rt({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new lt,b=i(Gt(_,[f,c],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+J(w[0],o.r),C=o.cy+J(w[1],o.r),M=h[y];M.attr({z2:g?0:2,style:Zt(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+J(I[0],o.r),k=o.cy+J(I[1],o.r),R=J(D.get("width"),o.r),P=J(D.get("height"),o.r),O=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,M=d[y],E=D.get("formatter");M.attr({z2:g?0:2,style:Zt(D,{x:L,y:k,text:Wf(_,E),width:isNaN(R)?null:R,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:O})}),YD(M,{normal:D},_,function(V){return Wf(V,E)}),p&&ZD(M,y,l,e,{getFormattedLabel:function(V,H,W,X,j,q){return Wf(q?q.interpolatedValue:_,E)}}),S.add(M)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(Xt);const T6=w6;var C6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return Us(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,G.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:G.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:G.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:G.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:G.color.neutral00,borderWidth:0,borderColor:G.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:G.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:G.color.transparent,borderWidth:0,borderColor:G.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:G.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(te);const A6=C6;function M6(r){r.registerChartView(T6),r.registerSeriesModel(A6)}var D6=["itemStyle","opacity"],L6=function(r){z(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new Xe,s=new Rt;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(D6);f=f??1,n||Gr(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,jt(i,{style:{opacity:f}},o,a)):Et(i,{style:{opacity:f},shape:{points:l.points}},o,a),we(i,s),this._updateLabel(e,a),Jt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),f=u.label,c=e.getItemVisual(a,"style"),v=c.fill;Ie(o,Te(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:c.opacity,defaultText:e.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?v:null;n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),n.textGuideLineConfig={anchor:g?new ct(g[0][0],g[0][1]):null},Et(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),A0(n,M0(l),{stroke:v})},t}(ar),I6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new L6(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);qa(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Xt);const P6=I6;var k6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ys(tt(this.getData,this),tt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return Us(this,{coordDimensions:["value"],encodeDefaulter:xt(n0,this)})},t.prototype._defaultLabelLine=function(e){ro(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",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:G.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:G.color.primary}}},t}(te);const R6=k6;function E6(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),n=[],i=t==="ascending",o=0,s=r.count();oQ6)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!gp(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function gp(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const rY=tY;var aY=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&wt(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=Ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(kt);const nY=aY;var iY=function(r){z(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(na);const oY=iY;function Zn(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Yo(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Yo(s,[0,o]),n=i=Yo(s,[n,i]),a=0}t[0]=Yo(t[0],e),t[1]=Yo(t[1],e);var l=yp(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=Yo(t[a],f);var c;return c=yp(t,a),n!=null&&(c.sign!==l.sign||c.spani&&(t[1-a]=t[a]+c.sign*i),t}function yp(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Yo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var mp=A,jP=Math.min,JP=Math.max,zw=Math.floor,sY=Math.ceil,Vw=de,lY=Math.PI,uY=function(){function r(t,e,a){this.type="parallel",this._axesMap=rt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;mp(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new oY(o,hh(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var n=a.getData();mp(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),bs(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){var a=Ce(t,e).refContainer;this._rect=Qt(t.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,f=$f(t.get("axisExpandWidth"),l),c=$f(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=$f(h[1]-h[0],l),h[1]=h[0]+d;else{d=$f(f*(c-1),l);var p=t.get("axisExpandCenter")||zw(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[zw(Vw(h[0]/f,1))+1,sY(Vw(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),mp(a,function(o,s){var l=(n.axisExpandable?cY:fY)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:lY/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],v=f[i],h=Oe();jn(h,h,v),Pa(h,h,c),this._axesLayout[o]={position:c,rotation:v,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?Zn(l,n,o,"all"):u="none";else{var h=n[1]-n[0],d=o[1]*s/h;n=[JP(0,d-h/2)],n[1]=jP(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function $f(r,t){return jP(JP(r,t[0]),t[1])}function fY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function cY(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)Br(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;imY}function ik(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function ok(r,t,e,a){var n=new lt;return n.add(new Mt({name:"main",style:a_(e),silent:!0,draggable:!0,cursor:"move",drift:xt(Ww,r,t,n,["n","s","w","e"]),ondragend:xt(fo,t,{isEnd:!0})})),A(a,function(i){n.add(new Mt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xt(Ww,r,t,n,i),ondragend:xt(fo,t,{isEnd:!0})}))}),n}function sk(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=Ms(n,_Y),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,f=e[0][1],c=e[1][1],v=f-i+n/2,h=c-i+n/2,d=f-o,p=c-s,g=d+n,y=p+n;Fa(r,t,"main",o,s,d,p),a.transformable&&(Fa(r,t,"w",l,u,i,y),Fa(r,t,"e",v,u,i,y),Fa(r,t,"n",l,u,g,i),Fa(r,t,"s",l,h,g,i),Fa(r,t,"nw",l,u,i,i),Fa(r,t,"ne",v,u,i,i),Fa(r,t,"sw",l,h,i,i),Fa(r,t,"se",v,h,i,i))}function Gy(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(a_(e)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Fy(r,i[0]):AY(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?xY[s]+"-resize":null})})}function Fa(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(DY(n_(r,t,[[a,n],[a+i,n+o]])))}function a_(r){return vt({strokeNoScale:!0},r.brushStyle)}function lk(r,t,e,a){var n=[Au(r,e),Au(t,a)],i=[Ms(r,e),Ms(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function CY(r){return ji(r.group)}function Fy(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=ah(e[t],CY(r));return a[n]}function AY(r,t){var e=[Fy(r,t[0]),Fy(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Ww(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=uk(t,n,i);A(a,function(u){var f=SY[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(lk(s[0][0],s[1][0],s[0][1],s[1][1])),t_(t,e),fo(t,{isEnd:!1})}function MY(r,t,e,a){var n=t.__brushOption.range,i=uk(r,e,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),t_(r,t),fo(r,{isEnd:!1})}function uk(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function n_(r,t,e){var a=nk(r,t);return a&&a!==uo?a.clipPath(e,r._transform):st(e)}function DY(r){var t=Au(r[0][0],r[1][0]),e=Au(r[0][1],r[1][1]),a=Ms(r[0][0],r[1][0]),n=Ms(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function LY(r,t,e){if(!(!r._brushType||PY(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=r_(r,t,e);if(!r._dragging)for(var o=0;oa.getWidth()||e<0||e>a.getHeight()}var bh={lineX:Yw(0),lineY:Yw(1),rect:{createCover:function(r,t){function e(a){return a}return ok({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=ik(r);return lk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){sk(r,t,e,a)},updateCommon:Gy,contain:Wy},polygon:{createCover:function(r,t){var e=new lt;return e.add(new Xe({name:"main",style:a_(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new ar({name:"main",draggable:!0,drift:xt(MY,r,t),ondragend:xt(fo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:n_(r,t,e)})},updateCommon:Gy,contain:Wy}};function Yw(r){return{createCover:function(t,e){return ok({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=ik(t),a=Au(e[0][r],e[1][r]),n=Ms(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=nk(t,e);if(o!==uo&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),sk(t,e,l,n)},updateCommon:Gy,contain:Wy}}const i_=wY;function ck(r){return r=o_(r),function(t){return FD(t,r)}}function vk(r,t){return r=o_(r),function(e){var a=t??e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function hk(r,t,e){var a=o_(r);return function(n,i){return a.contain(i[0],i[1])&&!gP(n,t,e)}}function o_(r){return dt.create(r)}var kY=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new i_(a.getZr())).on("brush",tt(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!RY(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new lt,this.group.add(this._axisGroup),!!e.get("show")){var s=OY(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,c=e.axis.dim,v=l.getAxisLayout(c),h=$({strokeContainThreshold:f},v),d=new on(e,n,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,e,s,f,n),ku(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=dt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:ck(c),isTargetByCursor:hk(c,s,i),getLinearBrushOtherExtent:vk(c,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(EY(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=Y(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(re);function RY(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function EY(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function OY(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const NY=kY;var BY={type:"axisAreaSelect",event:"axisAreaSelected"};function zY(r){r.registerAction(BY,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var VY={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function dk(r){r.registerComponentView(rY),r.registerComponentModel(nY),r.registerCoordinateSystem("parallel",pY),r.registerPreprocessor(K6),r.registerComponentModel(Gw),r.registerComponentView(NY),Cs(r,"parallel",Gw,VY),zY(r)}function GY(r){Tt(dk),r.registerChartView(H6),r.registerSeriesModel(Y6),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,q6)}var FY=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),HY=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new FY},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){rn(this)},t.prototype.downplay=function(){an(this)},t}(Lt),WY=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new lt,e._focusAdjacencyDisabled=!1,e}return t.prototype.init=function(e,a){this._controller=new wo(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=this,o=e.getGraph(),s=this._mainGroup,l=e.layoutInfo,u=l.width,f=l.height,c=e.getData(),v=e.getData("edge"),h=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,this._updateViewCoordSys(e,n),yP(e,n,s,this._controller,this._controllerHost,null),o.eachEdge(function(d){var p=new HY,g=pt(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),b=d.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),M=C.get("localX"),D=C.get("localY"),I=d.getLayout(),L,k,R,P,O,E,B,V;p.shape.extent=Math.max(1,I.dy),p.shape.orient=h,h==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,k=(w!=null?w*f:S.y)+S.dy,R=(M!=null?M*u:T.x)+I.ty,P=D!=null?D*f:T.y,O=L,E=k*(1-_)+P*_,B=R,V=k*_+P*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,k=(w!=null?w*f:S.y)+I.sy,R=M!=null?M*u:T.x,P=(D!=null?D*f:T.y)+I.ty,O=L*(1-_)+R*_,E=k,B=L*_+R*(1-_),V=P),p.setShape({x1:L,y1:k,x2:R,y2:P,cpx1:O,cpy1:E,cpx2:B,cpy2:V}),p.useStyle(m.getItemStyle()),Zw(p.style,h,d);var H=""+y.get("value"),W=Te(y,"edgeLabel");Ie(p,W,{labelFetcher:{getFormattedLabel:function(q,it,St,at,N,F){return e.getFormattedLabel(q,it,"edge",at,_r(N,W.normal&&W.normal.get("formatter"),H),F)}},labelDataIndex:d.dataIndex,defaultText:H}),p.setTextConfig({position:"inside"});var X=y.getModel("emphasis");we(p,y,"lineStyle",function(q){var it=q.getItemStyle();return Zw(it,h,d),it}),s.add(p),v.setItemGraphicEl(d.dataIndex,p);var j=X.get("focus");Jt(p,j==="adjacency"?d.getAdjacentDataIndices():j==="trajectory"?d.getTrajectoryDataIndices():j,X.get("blurScope"),X.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,b=new Mt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});Ie(b,Te(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),b.disableLabelAnimation=!0,b.setStyle("fill",d.getVisual("color")),b.setStyle("decal",d.getVisual("style").decal),we(b,g),s.add(b),c.setItemGraphicEl(d.dataIndex,b),pt(b).dataType="node";var x=_.get("focus");Jt(b,x==="adjacency"?d.getAdjacentDataIndices():x==="trajectory"?d.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(d,p){var g=c.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath($Y(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,a){var n=e.layoutInfo,i=n.width,o=n.height,s=e.coordinateSystem=new To(null,{api:a,ecModel:e.ecModel});s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(0,0,i,o),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},t.type="sankey",t}(Xt);function Zw(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),n=e.node2.getVisual("color");Q(a)&&Q(n)&&(r.fill=new Os(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function $Y(r,t,e){var a=new Mt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return jt(a,{shape:{width:r.width+20}},t,e),a}const UY=WY;var YY=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Ot(o[l],this,a));var u=Q0(i,n,this,!0,f);return u.data;function f(c,v){c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(h){return isNaN(h)||h==null}if(n==="edge"){var o=this.getDataParams(e,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ye("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),c=f.getLayout().value,v=this.getDataParams(e,n).data.name;return ye("nameValue",{name:v!=null?v+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},t.type="series.sankey",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:G.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:G.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(te);const ZY=YY;function XY(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=Ce(e,t).refContainer,o=Qt(e.getBoxLayoutParams(),i);e.layoutInfo=o;var s=o.width,l=o.height,u=e.getGraph(),f=u.nodes,c=u.edges;KY(f);var v=Ft(f,function(g){return g.getLayout().value===0}),h=v.length!==0?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");qY(f,c,a,n,s,l,h,d,p)})}function qY(r,t,e,a,n,i,o,s,l){jY(r,t,e,n,i,s,l),e7(r,t,i,n,a,o,s),f7(r,s)}function KY(r){A(r,function(t){var e=Fn(t.outEdges,xv),a=Fn(t.inEdges,xv),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function jY(r,t,e,a,n,i,o){for(var s=[],l=[],u=[],f=[],c=0,v=0;v=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:c},!0),i==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;mc-1?h:c-1;o&&o!=="left"&&JY(r,o,i,w);var T=i==="vertical"?(n-e)/w:(a-e)/w;t7(r,T,i)}function pk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function JY(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,n7(s,l,o),_p(s,n,e,a,o),u7(s,l,o),_p(s,n,e,a,o)}function r7(r,t){var e=[],a=t==="vertical"?"y":"x",n=Ig(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),A(n.keys,function(i){e.push(n.buckets.get(i))}),e}function a7(r,t,e,a,n,i){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(e-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+t;var d=n==="vertical"?a:e;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=c-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[v]+t-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function n7(r,t,e){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=Fn(n.outEdges,i7,e)/Fn(n.outEdges,xv);if(isNaN(i)){var o=n.outEdges.length;i=o?Fn(n.outEdges,o7,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-Xn(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Xn(n,e))*t;n.setLayout({y:l},!0)}}})})}function i7(r,t){return Xn(r.node2,t)*r.getValue()}function o7(r,t){return Xn(r.node2,t)}function s7(r,t){return Xn(r.node1,t)*r.getValue()}function l7(r,t){return Xn(r.node1,t)}function Xn(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function xv(r){return r.getValue()}function Fn(r,t,e){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),A(a,function(s){var l=new Ge({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function v7(r){r.registerChartView(UY),r.registerSeriesModel(ZY),r.registerLayout(XY),r.registerVisual(c7),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),r.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){var i=n.coordinateSystem,o=mh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}var gk=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],v=u[1-f],h=[n,i],d=h[f].get("type"),p=h[1-f].get("type"),g=t.data;if(g&&l){var y=[];A(g,function(S,b){var x;U(S)?(x=S.slice(),S.unshift(b)):U(S.value)?(x=$({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:av(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:av(p),dimsDef:m.slice()}];return Us(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:xt(xL,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),yk=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:G.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:G.color.shadow}},animationDuration:800},t}(te);_e(yk,gk,!0);const h7=yk;var d7=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),c=Xw(f,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(c);return}var v=i.getItemLayout(u);c?(Gr(c),mk(v,c,i,u)):c=Xw(v,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type="boxplot",t}(Xt),p7=function(){function r(){}return r}(),g7=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new p7},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();ip){var S=[y,_];a.push(S)}}}return{boxData:e,outliers:a}}var T7={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Ne){var a="";Vt(a)}var n=w7(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function C7(r){r.registerSeriesModel(h7),r.registerChartView(m7),r.registerLayout(_7),r.registerTransform(T7)}var A7=["itemStyle","borderColor"],M7=["itemStyle","borderColor0"],D7=["itemStyle","borderColorDoji"],L7=["itemStyle","color"],I7=["itemStyle","color0"];function s_(r,t){return t.get(r>0?L7:I7)}function l_(r,t){return t.get(r===0?D7:r>0?A7:M7)}var P7={seriesType:"candlestick",plan:Gs(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=s_(s,o),l.stroke=l_(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");$(u,l)}}}}}};const k7=P7;var R7=["color","borderColor"],E7=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){Qn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var c=a.getItemLayout(f);if(s&&qw(u,c))return;var v=Sp(c,f,!0);jt(v,{shape:{points:c.ends}},e,f),xp(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,c){var v=n.getItemGraphicEl(c);if(!a.hasValue(f)){i.remove(v);return}var h=a.getItemLayout(f);if(s&&qw(u,h)){i.remove(v);return}v?(Et(v,{shape:{points:h.ends}},e,f),Gr(v)):v=Sp(h),xp(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var c=n.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),Kw(e,this.group);var a=e.get("clip",!0)?Hu(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=n.getItemLayout(o),l=Sp(s);xp(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){Kw(a,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Xt),O7=function(){function r(){}return r}(),N7=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new O7},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Lt);function Sp(r,t,e){var a=r.ends;return new N7({shape:{points:e?B7(a,r):a},z2:100})}function qw(r,t){for(var e=!0,a=0;ab?D[i]:M[i],ends:k,brushRect:B(x,w,_)})}function O(H,W){var X=[];return X[n]=W,X[i]=H,isNaN(W)||isNaN(H)?[NaN,NaN]:t.dataToPoint(X)}function E(H,W,X){var j=W.slice(),q=W.slice();j[n]=yc(j[n]+a/2,1,!1),q[n]=yc(q[n]-a/2,1,!0),X?H.push(j,q):H.push(q,j)}function B(H,W,X){var j=O(H,X),q=O(W,X);return j[n]-=a/2,q[n]-=a/2,{x:j[0],y:j[1],width:a,height:q[1]-j[1]}}function V(H){return H[n]=yc(H[n],1),H}}function d(p,g){for(var y=wa(p.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var C=w.get(s,x),M=w.get(u,x),D=w.get(f,x),I=w.get(c,x),L=w.get(v,x);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=jw(w,x,M,D,f,T),S[n]=C,S[i]=I,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function jw(r,t,e,a,n,i){var o;return e>a?o=-1:e0?r.get(n,t-1)<=a?1:-1:1,o}function W7(r,t){var e=r.getBaseAxis(),a,n=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),i=J(nt(r.get("barMaxWidth"),n),n),o=J(nt(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?J(s,n):Math.max(Math.min(n/2,i),o)}const $7=H7;function U7(r){r.registerChartView(V7),r.registerSeriesModel(G7),r.registerPreprocessor(F7),r.registerVisual(k7),r.registerLayout($7)}function Jw(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var Y7=function(r){z(t,r);function t(e,a){var n=r.call(this)||this,i=new Gu(e,a),o=new lt;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;ot(c)?v=c(n):v=c,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,n,i,o){if(a>0){e.__t=0;var s=this,l=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return An(e.__p1,e.__cp1)+An(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Ee,f=pg;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var c=e.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=e.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(v,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),c=n[l],v=n[l+1];e.x=c[0]*(1-f)+f*v[0],e.y=c[1]*(1-f)+f*v[1];var h=e.__t<1?v[0]-c[0]:c[0]-v[0],d=e.__t<1?v[1]-c[1]:c[1]-v[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t}(Sk);const r9=e9;var a9=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),n9=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new a9},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){e.moveTo(n[o++],n[o++]);for(var l=1;l0){var h=(u+c)/2-(f-v)*i,d=(f+v)/2-(c-u)*i;e.quadraticCurveTo(h,d,c,v)}else e.lineTo(c,v)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var c=i[u++],v=i[u++],h=1;h0){var g=(c+d)/2-(v-p)*o,y=(v+p)/2-(d-c)*o;if(tD(c,v,g,y,d,p,s,e,a))return l}else if(Tn(c,v,d,p,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const o9=i9;var s9={seriesType:"lines",plan:Gs(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(e){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=e.get("clip",!0)&&Hu(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=bk.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new o9:new J0(o?i?r9:xk:i?Sk:j0),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t}(Xt);const u9=l9;var f9=typeof Uint32Array>"u"?Array:Uint32Array,c9=typeof Float64Array>"u"?Array:Float64Array;function Qw(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),mm([n,e[0],e[1]])}))}var v9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Qw(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Qw(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Ql(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Ql(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(te);const h9=v9;function Uf(r){return r instanceof Array||(r=[r,r]),r}var d9={seriesType:"lines",reset:function(r){var t=Uf(r.get("symbol")),e=Uf(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=Uf(s.getShallow("symbol",!0)),u=Uf(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};const p9=d9;function g9(r){r.registerChartView(u9),r.registerSeriesModel(h9),r.registerLayout(bk),r.registerVisual(p9)}var y9=256,m9=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Jr.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,v=c.getContext("2d"),h=t.length;c.width=e,c.height=a;for(var d=0;d0){var I=o(_)?l:u;_>0&&(_=_*M+T),b[x++]=I[D],b[x++]=I[D+1],b[x++]=I[D+2],b[x++]=I[D+3]*_*256}else x+=4}return v.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Jr.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=G.color.neutral99,n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();const _9=m9;function S9(r,t,e){var a=r[1]-r[0];t=Y(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=t[0]&&a<=t[1]}}function tT(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var b9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,n,0,e.getData().count()):tT(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(tT(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Qn(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=Yn(s,"cartesian2d"),u=Yn(s,"matrix"),f,c,v,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,c=p.getBandWidth()+.5,v=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),b=e.get(["itemStyle","borderRadius"]),x=Te(e),w=e.getModel("emphasis"),T=w.get("focus"),C=w.get("blurScope"),M=w.get("disabled"),D=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],I=n;Iv[1]||Ph[1])continue;var O=s.dataToPoint([R,P]);L=new Mt({shape:{x:O[0]-f/2,y:O[1]-c/2,width:f,height:c},style:k})}else if(u){var E=s.dataToLayout([y.get(D[0],I),y.get(D[1],I)]).rect;if(Ue(E.x))continue;L=new Mt({z2:1,shape:E,style:k})}else{if(isNaN(y.get(D[1],I)))continue;var B=s.dataToLayout([y.get(D[0],I)]),E=B.contentRect||B.rect;if(Ue(E.x)||Ue(E.y))continue;L=new Mt({z2:1,shape:E,style:k})}if(y.hasItemOption){var V=y.getItemModel(I),H=V.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=V.getModel(["blur","itemStyle"]).getItemStyle(),S=V.getModel(["select","itemStyle"]).getItemStyle(),b=V.get(["itemStyle","borderRadius"]),T=H.get("focus"),C=H.get("blurScope"),M=H.get("disabled"),x=Te(V)}L.shape.r=b;var W=e.getRawValue(I),X="-";W&&W[2]!=null&&(X=W[2]+""),Ie(L,x,{labelFetcher:e,labelDataIndex:I,defaultOpacity:k.opacity,defaultText:X}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,Jt(L,T,C,M),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),y.setItemGraphicEl(I,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new _9;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var v=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-v,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var M=e.dataToPoint([w,T]);return M[0]-=v,M[1]-=h,M.push(C),M}),S=n.getExtent(),b=n.type==="visualMap.continuous"?x9(S,n.option.range):S9(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Fe({style:{width:g,height:y,x:v,y:h,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(Xt);const w9=b9;var T9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return cn(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Nu.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:G.color.primary}}},t}(te);const C9=T9;function A9(r){r.registerChartView(w9),r.registerSeriesModel(C9)}var M9=["itemStyle","borderWidth"],eT=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Tp=new Jn,D9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:eT[+f],categoryDim:eT[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=aT(o,d),g=rT(o,d,p,v),y=nT(o,v,g);o.setItemGraphicEl(d,y),i.add(y),oT(y,v,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=aT(o,d),m=rT(o,d,y,v),_=Dk(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?O9(g,v,m):g=nT(o,v,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),oT(g,v,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&iT(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=e.get("clip",!0)?Hu(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){iT(i,pt(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(Xt);function rT(r,t,e,a){var n=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),v={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};L9(e,i,n,a,v),I9(r,t,n,i,o,v.boundingLength,v.pxSign,f,a,v),P9(e,v.symbolScale,u,a,v);var h=v.symbolSize,d=_o(e.get("symbolOffset"),h);return k9(e,h,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function L9(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(U(o)){var c=[Cp(s,o[0])-l,Cp(s,o[1])-l];c[1]=0?1:-1:f>0?1:-1}function Cp(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function I9(r,t,e,a,n,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,v=Math.abs(e[c.wh]),h=r.getItemVisual(t,"symbolSize"),d;U(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[c.index]=J(d[c.index],v),d[f.index]=J(d[f.index],a?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function P9(r,t,e,a,n){var i=r.get(M9)||0;i&&(Tp.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Tp.updateTransform(),i/=Tp.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function k9(r,t,e,a,n,i,o,s,l,u,f,c){var v=f.categoryDim,h=f.valueDim,d=c.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(a){var y=Math.abs(l),m=Ve(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=J(m,t[h.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=zM(a),T=w?a:sT((y+x)/b),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!w&&a!=="fixed"&&(T=u?sT((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var M=d*(g/2),D=c.pathPosition=[];D[v.index]=e[v.wh]/2,D[h.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var I=c.bundlePosition=[];I[v.index]=e[v.xy],I[h.index]=e[h.xy];var L=c.barRectShape=$({},e);L[h.wh]=d*Math.max(Math.abs(e[h.wh]),Math.abs(D[h.index]+M)),L[v.wh]=e[v.wh];var k=c.clipShape={};k[v.xy]=-e[v.xy],k[v.wh]=f.ecSize[v.wh],k[h.xy]=0,k[h.wh]=e[h.wh]}function wk(r){var t=r.symbolPatternSize,e=me(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Tk(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for(u_(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-p),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Ck(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?ps(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=wk(e),n.add(i),ps(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function Ak(r,t,e){var a=$({},t.barRectShape),n=r.__pictorialBarRect;n?ps(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new Mt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Mk(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=$({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)Et(n,{shape:i},s,l);else{i[o.wh]=0,n=new Mt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],po[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function aT(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=R9,e.isAnimationEnabled=E9,e}function R9(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function E9(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function nT(r,t,e,a){var n=new lt,i=new lt;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Tk(n,t,e):Ck(n,t,e),Ak(n,e,a),Mk(n,t,e,a),n.__pictorialShapeStr=Dk(r,e),n.__pictorialSymbolMeta=e,n}function O9(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;Et(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?Tk(r,t,e,!0):Ck(r,t,e,!0),Ak(r,e,!0),Mk(r,t,e,!0)}function iT(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];u_(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),A(i,function(o){Wn(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function Dk(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function u_(r,t,e){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function ps(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&po[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function oT(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),v=i.get("scale");u_(r,function(p){if(p instanceof Fe){var g=p.style;p.useStyle($({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Ie(d,Te(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:Ts(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),Jt(r,f,c,i.get("disabled"))}function sT(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const N9=D9;var B9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=ti(vv.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:G.color.primary}}}),t}(vv);const z9=B9;function V9(r){r.registerChartView(N9),r.registerSeriesModel(z9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(W2,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$2("pictorialBar"))}var G9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function v(g){return g.name}var h=new nn(this._layersSeries||[],l,v,v),d=[];h.add(tt(p,this,"add")).update(tt(p,this,"update")).remove(tt(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=c)}return{y0:n,max:i}}function Z9(r){r.registerChartView(H9),r.registerSeriesModel($9),r.registerLayout(U9),r.registerProcessor($s("themeRiver"))}var X9=2,q9=4,K9=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=X9,o.textConfig={inside:!0},pt(o).seriesIndex=a.seriesIndex;var s=new Rt({z2:q9,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;pt(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),c=$({},f);c.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var h=a.getVisual("decal");h&&(v.decal=xs(h,o));var d=Ca(l.getModel("itemStyle"),c,!0);$(c,d),A(er,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=Ca(S,c);b&&(_.shape=b)}),e?(s.setShape(c),s.shape.r=f.r0,jt(s,{shape:{r:f.r}},n,a.dataIndex)):(Et(s,{shape:c},n),Gr(s)),s.useStyle(v),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?Ql(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Jt(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,v=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)k&&!au(P-k)&&P0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,n):(o.virtualPiece=new uT(m,e,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";qc(u,f)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:$y,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Xt);const tZ=Q9;var eZ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};Lk(n);var i=this._levelModels=Y(e.levels||[],function(l){return new Ot(l,this,a)},this),o=$0.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),v=i[c.depth];return v&&(u.parentModel=v),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=Sh(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){kP(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(te);function Lk(r){var t=0;A(r.children,function(a){Lk(a);var n=a.value;U(n)&&(n=n[0]),t+=n});var e=r.value;U(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),U(r.value)?r.value[0]=e:r.value=e}const rZ=eZ;var cT=Math.PI/180;function aZ(r,t,e){t.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");U(i)||(i=[0,i]),U(n)||(n=[n,n]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=J(n[0],o),f=J(n[1],s),c=J(i[0],l/2),v=J(i[1],l/2),h=-a.get("startAngle")*cT,d=a.get("minAngle")*cT,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&Ik(g,m);var _=0;A(g.children,function(P){!isNaN(P.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(v-c)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,I=function(P,O){if(P){var E=O;if(P!==p){var B=P.getValue(),V=S===0&&M?b:B*b;V1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&Q(s)&&(s=mg(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");$(u,l)})})}function oZ(r){r.registerChartView(tZ),r.registerSeriesModel(rZ),r.registerLayout(xt(aZ,"sunburst")),r.registerProcessor(xt($s,"sunburst")),r.registerVisual(iZ),J9(r)}var vT={color:"fill",borderColor:"stroke"},sZ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ka=Dt(),lZ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return cn(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Ka(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(te);const uZ=lZ;function fZ(r,t){return t=t||[0,0],Y(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function cZ(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:tt(fZ,r)}}}function vZ(r,t){return t=t||[0,0],Y([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function hZ(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:tt(vZ,r)}}}function dZ(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function pZ(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:tt(dZ,r)}}}function gZ(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function yZ(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:tt(gZ,r)}}}function mZ(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function _Z(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,a){return r.dataToPoint(e,a)},layout:function(e,a){return r.dataToLayout(e,a)}}}}function Pk(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||et(r,"text")))}function kk(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},et(a,"text")&&(o.text=a.text),et(a,"rich")&&(o.rich=a.rich),et(a,"textFill")&&(o.fill=a.textFill),et(a,"textStroke")&&(o.stroke=a.textStroke),et(a,"fontFamily")&&(o.fontFamily=a.fontFamily),et(a,"fontSize")&&(o.fontSize=a.fontSize),et(a,"fontStyle")&&(o.fontStyle=a.fontStyle),et(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=et(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),et(a,"textPosition")&&(n.position=a.textPosition),et(a,"textOffset")&&(n.offset=a.textOffset),et(a,"textRotation")&&(n.rotation=a.textRotation),et(a,"textDistance")&&(n.distance=a.textDistance)}return hT(o,r),A(o.rich,function(l){hT(l,l)}),{textConfig:n,textContent:i}}function hT(r,t){t&&(t.font=t.textFont||t.font,et(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),et(t,"textAlign")&&(r.align=t.textAlign),et(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),et(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),et(t,"textWidth")&&(r.width=t.textWidth),et(t,"textHeight")&&(r.height=t.textHeight),et(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),et(t,"textPadding")&&(r.padding=t.textPadding),et(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),et(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),et(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),et(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),et(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),et(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),et(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function dT(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||G.color.neutral99;pT(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||G.color.neutral00,!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||G.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,A(t.rich,function(s){pT(s,s)}),a}function pT(r,t){t&&(et(t,"fill")&&(r.textFill=t.fill),et(t,"stroke")&&(r.textStroke=t.fill),et(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),et(t,"font")&&(r.font=t.font),et(t,"fontStyle")&&(r.fontStyle=t.fontStyle),et(t,"fontWeight")&&(r.fontWeight=t.fontWeight),et(t,"fontSize")&&(r.fontSize=t.fontSize),et(t,"fontFamily")&&(r.fontFamily=t.fontFamily),et(t,"align")&&(r.textAlign=t.align),et(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),et(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),et(t,"width")&&(r.textWidth=t.width),et(t,"height")&&(r.textHeight=t.height),et(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),et(t,"padding")&&(r.textPadding=t.padding),et(t,"borderColor")&&(r.textBorderColor=t.borderColor),et(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),et(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),et(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),et(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),et(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),et(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),et(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),et(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),et(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),et(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Rk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},gT=It(Rk);Ia(ka,function(r,t){return r[t]=1,r},{});ka.join(", ");var bv=["","style","shape","extra"],Ds=Dt();function f_(r,t,e,a,n){var i=r+"Animation",o=Ns(r,a,n)||{},s=Ds(t).userDuring;return o.duration>0&&(o.during=s?tt(TZ,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),$(o,e[i]),o}function Cc(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=Ds(r),u=t.style;l.userDuring=t.during;var f={},c={};if(AZ(r,t,c),r.type==="compound")for(var v=r.shape.paths,h=t.shape.paths,d=0;d0&&r.animateFrom(g,y)}else xZ(r,t,n||0,e,f);Ek(r,t),u?r.dirty():r.markRedraw()}function Ek(r,t){for(var e=Ds(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function bZ(r,t){et(t,"silent")&&(r.silent=t.silent),et(t,"ignore")&&(r.ignore=t.ignore),r instanceof Vr&&et(t,"invisible")&&(r.invisible=t.invisible),r instanceof Lt&&et(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var ha={},wZ={setTransform:function(r,t){return ha.el[r]=t,this},getTransform:function(r){return ha.el[r]},setShape:function(r,t){var e=ha.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=ha.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=ha.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=ha.el.style;if(t)return t[r]},setExtra:function(r,t){var e=ha.el.extra||(ha.el.extra={});return e[r]=t,this},getExtra:function(r){var t=ha.el.extra;if(t)return t[r]}};function TZ(){var r=this,t=r.el;if(t){var e=Ds(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}ha.el=t,a(wZ)}}function yT(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),eo(l))$(o,i);else for(var u=Ut(l),f=0;f=0){!o&&(o=a[r]={});for(var h=It(i),f=0;f=0)){var v=r.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=a.style={});for(var d=It(e),u=0;u=0?t.getStore().get(E,P):void 0}var B=t.get(O.name,P),V=O&&O.ordinalMeta;return V?V.categories[B]:B}function w(R,P){P==null&&(P=f);var O=t.getItemVisual(P,"style"),E=O&&O.fill,B=O&&O.opacity,V=_(P,Rn).getItemStyle();E!=null&&(V.fill=E),B!=null&&(V.opacity=B);var H={inheritColor:Q(E)?E:G.color.neutral99},W=S(P,Rn),X=Zt(W,null,H,!1,!0);X.text=W.getShallow("show")?nt(r.getFormattedLabel(P,Rn),Ts(t,P)):null;var j=Zc(W,H,!1);return M(R,V),V=dT(V,X,j),R&&C(V,R),V.legacy=!0,V}function T(R,P){P==null&&(P=f);var O=_(P,ja).getItemStyle(),E=S(P,ja),B=Zt(E,null,null,!0,!0);B.text=E.getShallow("show")?_r(r.getFormattedLabel(P,ja),r.getFormattedLabel(P,Rn),Ts(t,P)):null;var V=Zc(E,null,!0);return M(R,O),O=dT(O,B,V),R&&C(O,R),O.legacy=!0,O}function C(R,P){for(var O in P)et(P,O)&&(R[O]=P[O])}function M(R,P){R&&(R.textFill&&(P.textFill=R.textFill),R.textPosition&&(P.textPosition=R.textPosition))}function D(R,P){if(P==null&&(P=f),et(vT,R)){var O=t.getItemVisual(P,"style");return O?O[vT[R]]:null}if(et(sZ,R))return t.getItemVisual(P,R)}function I(R){if(o.type==="cartesian2d"){var P=o.getBaseAxis();return e3(vt({axis:P},R))}}function L(){return e.getCurrentSeriesIndices()}function k(R){return Ym(R,e)}}function zZ(r){var t={};return A(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Ip(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=p_(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&Jt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function p_(r,t,e,a,n,i){var o=-1,s=t;t&&zk(t,a,n)&&(o=bt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=h_(a),s&&RZ(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Ar.normal.cfg=Ar.normal.conOpt=Ar.emphasis.cfg=Ar.emphasis.conOpt=Ar.blur.cfg=Ar.blur.conOpt=Ar.select.cfg=Ar.select.conOpt=null,Ar.isLegacy=!1,GZ(u,e,a,n,l,Ar),VZ(u,e,a,n,l),d_(r,u,e,a,Ar,n,l),et(a,"info")&&(Ka(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function zk(r,t,e){var a=Ka(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&UZ(i)&&Vk(i)!==a.customPathData||n==="image"&&et(o,"image")&&o.image!==a.customImagePath}function VZ(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&zk(o,i,a)&&(o=null),o||(o=h_(i),r.setClipPath(o)),d_(null,o,t,i,null,a,n)}}function GZ(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){_T(e,null,i),_T(e,ja,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=h_(o),r.setTextContent(f)),d_(null,f,t,o,null,a,n);for(var c=o&&o.style,v=0;v=f;h--){var d=t.childAt(h);HZ(t,d,n)}}}function HZ(r,t,e){t&&wh(t,Ka(r).option,e)}function WZ(r){new nn(r.oldChildren,r.newChildren,ST,ST,r).add(xT).update(xT).remove($Z).execute()}function ST(r,t){var e=r&&r.name;return e??PZ+t}function xT(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;p_(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function $Z(r){var t=this.context,e=t.oldChildren[r];e&&wh(e,Ka(e).option,t.seriesModel)}function Vk(r){return r&&(r.pathData||r.d)}function UZ(r){return r&&(et(r,"pathData")||et(r,"d"))}function YZ(r){r.registerChartView(OZ),r.registerSeriesModel(uZ)}var Oi=Dt(),bT=st,Pp=tt,ZZ=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new lt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var v=xt(wT,e,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}CT(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=B0(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=Oi(t).pointerEl=new po[i.type](bT(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Oi(t).labelEl=new Rt(bT(e.label));t.add(i),TT(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Oi(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=Oi(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),TT(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Ru(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){tn(u.event)},onmousedown:Pp(this._onHandleDragMove,this,0,0),drift:Pp(this._onHandleDragMove,this),ondragend:Pp(this._onHandleDragEnd,this)}),a.add(n)),CT(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");U(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Fs(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){wT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,kp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(kp(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(kp(n)),Oi(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),vu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function wT(r,t,e,a){Gk(Oi(e).lastProp,a)||(Oi(e).lastProp=a,t?Et(e,a,r):(e.stopAnimation(),e.attr(a)))}function Gk(r,t){if(ht(r)&&ht(t)){var e=!0;return A(t,function(a,n){e=e&&Gk(r[n],a)}),!!e}else return r===t}function TT(r,t){r[t.get(["label","show"])?"show":"hide"]()}function kp(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function CT(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}const y_=ZZ;function m_(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function Fk(r,t,e,a,n){var i=e.get("value"),o=Hk(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Eu(s.get("padding")||0),u=s.getFont(),f=Uv(o,u),c=n.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=n.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),XZ(c,v,h,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function XZ(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Hk(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:nv(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Q(o)?i=o.replace("{value}",i):ot(o)&&(i=o(s))}return i}function __(r,t,e){var a=Oe();return jn(a,a,e.rotation),Pa(a,a,e.position),Kr([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function Wk(r,t,e,a,n,i){var o=on.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),Fk(t,a,n,i,{position:__(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function S_(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function $k(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function AT(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var qZ=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=MT(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=m_(i),h=KZ[u](s,c,f);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=pv(l.getRect(),n);Wk(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=pv(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=__(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=MT(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=a[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[f]}},t}(y_);function MT(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var KZ={line:function(r,t,e){var a=S_([t,e[0]],[t,e[1]],DT(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:$k([t-a/2,e[0]],[a,n],DT(r))}}};function DT(r){return r.dim==="x"?0:1}const jZ=qZ;var JZ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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:G.color.border,width:1,type:"dashed"},shadowStyle:{color:G.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:G.color.neutral00,padding:[5,7,5,7],backgroundColor:G.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:G.color.accent40,throttle:40}},t}(kt);const QZ=JZ;var Za=Dt(),tX=A;function Uk(r,t,e){if(!Nt.node){var a=t.getZr();Za(a).records||(Za(a).records={}),eX(a,t);var n=Za(a).records[r]||(Za(a).records[r]={});n.handler=e}}function eX(r,t){if(Za(r).initialized)return;Za(r).initialized=!0,e("click",xt(LT,"click")),e("mousemove",xt(LT,"mousemove")),e("globalout",aX);function e(a,n){r.on(a,function(i){var o=nX(t);tX(Za(r).records,function(s){s&&n(s,i,o.dispatchAction)}),rX(o.pendings,t)})}}function rX(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function aX(r,t,e){r.handler("leave",null,e)}function LT(r,t,e,a){t.handler(r,e,a)}function nX(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function Zy(r,t){if(!Nt.node){var e=t.getZr(),a=(Za(e).records||{})[r];a&&(Za(e).records[r]=null)}}var iX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Uk("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){Zy("axisPointer",a)},t.prototype.dispose=function(e,a){Zy("axisPointer",a)},t.type="axisPointer",t}(re);const oX=iX;function Yk(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=ao(i,r);if(o==null||o<0||U(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=i.mapDimension(v),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(Y(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var IT=Dt();function sX(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||tt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ac(n)&&(n=Yk({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ac(n),u=i.axesInfo,f=s.axesInfo,c=a==="leave"||Ac(n),v={},h={},d={list:[],map:{}},p={showPointer:xt(uX,h),showTooltip:xt(fX,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=dX(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&PT(S,T,p,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&A(_.axesInfo,function(S,b){var x=h[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,kT(S),kT(y)))),g[y.key]=w}})}),A(g,function(y,m){PT(f[m],y,p,!0,v)}),cX(h,f,v),vX(d,n,r,o),hX(f,o,e),v}}function PT(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=lX(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&$(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function lX(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,e);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(a,f[0],r,e.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,n=c,i.length=0),A(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function uX(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function fX(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=xu(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function cX(r,t,e){var a=e.axesInfo=[];A(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function vX(r,t,e,a){if(Ac(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function hX(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=IT(a)[n]||{},o=IT(a)[n]={};A(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&A(c.seriesDataIndices,function(v){var h=v.seriesIndex+" | "+v.dataIndex;o[h]=v})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function dX(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function kT(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Ac(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Uu(r){bo.registerAxisPointerClass("CartesianAxisPointer",jZ),r.registerComponentModel(QZ),r.registerComponentView(oX),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!U(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=WW(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},sX)}function pX(r){Tt(dP),Tt(Uu)}var gX=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var h=m_(i),d=mX[v](s,l,c,f);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=yX(a,n,i,l,p);Fk(e,n,i,o,g)},t}(y_);function yX(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var v=Oe();jn(v,v,s),Pa(v,v,[a.cx,a.cy]),u=Kr([o,-n],v);var h=t.getModel("axisLabel").get("rotate")||0,d=on.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var mX={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:S_(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:AT(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:AT(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const _X=gX;var SX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(kt);const xX=SX;var x_=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ae).models[0]},t.type="polarAxis",t}(kt);_e(x_,Vu);var bX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(x_),wX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(x_),b_=function(r){z(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(na);b_.prototype.dataToRadius=na.prototype.dataToCoord;b_.prototype.radiusToData=na.prototype.coordToData;const TX=b_;var CX=Dt(),w_=function(r){z(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=Uv(s==null?"":s+"",a.getFont(),"center","top"),c=Math.max(f.height,7),v=c/u;isNaN(v)&&(v=1/0);var h=Math.max(0,Math.floor(v)),d=CX(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(na);w_.prototype.dataToAngle=na.prototype.dataToCoord;w_.prototype.angleToData=na.prototype.coordToData;const AX=w_;var Zk=["radius","angle"],MX=function(){function r(t){this.dimensions=Zk,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new TX,this._angleAxis=new AX,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e,a){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],a)},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.pointToCoord(t);return a[0]=this._radiusAxis.radiusToData(n[0],e),a[1]=this._angleAxis.angleToData(n[1],e),a},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t,e){e=e||[];var a=t[0],n=t[1]/180*Math.PI;return e[0]=Math.cos(n)*a+this.cx,e[1]=-Math.sin(n)*a+this.cy,e},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,c=u*u+f*f,v=this.r,h=this.r0;return v!==h&&c-o<=v*v&&c+o>=h*h},x:this.cx-a[1],y:this.cy-a[1],width:a[1]*2,height:a[1]*2}},r.prototype.convertToPixel=function(t,e,a){var n=RT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=RT(e);return n===this?this.pointToData(a):null},r}();function RT(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const DX=MX;function LX(r,t,e){var a=t.get("center"),n=Ce(t,e).refContainer;r.cx=J(a[0],n.width)+n.x,r.cy=J(a[1],n.height)+n.y;var i=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:U(s)||(s=[0,s]);var l=[J(s[0],o),J(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function IX(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();A(iv(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(iv(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),bs(a.scale,a.model),bs(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function PX(r){return r.mainType==="angleAxis"}function ET(r,t){var e;if(r.type=t.get("type"),r.scale=hh(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),PX(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var kX={dimensions:Zk,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new DX(n+"");i.update=IX;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");ET(o,l),ET(s,u),LX(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",ae).models[0];a.coordinateSystem=n.coordinateSystem}}),e}};const RX=kX;var EX=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Yf(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Zf(r){var t=r.getRadiusAxis();return t.inverse?0:1}function OT(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var OX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords({breakTicks:"none"}),l=n.getMinorTicksCoords(),u=Y(n.getViewLabels(),function(f){f=st(f);var c=n.scale,v=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});OT(u),OT(s),A(EX,function(f){e.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&NX[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(bo),NX={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Zf(e),c=f?0:1,v,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?v=new po[h]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new th({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Zf(e)],u=Y(a,function(f){return new be({shape:Yf(e,[l,l+s],f.coord)})});r.add(Er(u,{style:vt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Zf(e)],f=[],c=0;cy?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];ht(b)&&b.textStyle&&(h=new Ot(b.textStyle,l,l.ecModel))}var x=new Rt({silent:on.isLabelSilent(t),style:Zt(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),fn({el:x,componentModel:t,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return x.isTruncated},value:c.rawLabel,tickIndex:v}}),f){var w=on.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,pt(x).eventData=w}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c=0?"p":"n",R=C;b&&(a[f][L]||(a[f][L]={p:C,n:C}),R=a[f][L][k]);var P=void 0,O=void 0,E=void 0,B=void 0;if(d.dim==="radius"){var V=d.dataToCoord(I)-C,H=l.dataToCoord(L);Math.abs(V)=B})}}})}function $X(r){var t={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=qk(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=c.stacks;t[l]=c;var h=Xk(a);v[h]||c.autoWidthCount++,v[h]=v[h]||{width:0,maxWidth:0};var d=J(a.get("barWidth"),f),p=J(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!v[h].width&&(d=Math.min(c.remainedWidth,d),v[h].width=d,c.remainedWidth-=d),p&&(v[h].maxWidth=p),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=J(a.categoryGap,o),l=J(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),A(i,function(p,g){var y=p.maxWidth;y&&y=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.getAxis();return a[0]=n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1])),a},r.prototype.dataToPoint=function(t,e,a){var n=this.getAxis(),i=this.getRect();a=a||[];var o=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(t,e,a){var n=NT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=NT(e);return n===this?this.pointToData(a):null},r}();function NT(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function rq(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new eq(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",ae).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var aq={create:rq,dimensions:jk};const nq=aq;var BT=["x","y"],iq=["width","height"],oq=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Ep(l,1-Cv(s)),f=l.dataToPoint(a)[0],c=i.get("type");if(c&&c!=="none"){var v=m_(i),h=sq[c](s,f,u);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=Xy(n);Wk(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Xy(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=__(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Cv(o),u=Ep(s,l),f=[e.x,e.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=Ep(s,1-l),v=(c[1]+c[0])/2,h=[v,v];return h[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(y_),sq={line:function(r,t,e){var a=S_([t,e[0]],[t,e[1]],Cv(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),n=e[1]-e[0];return{type:"Rect",shape:$k([t-a/2,e[0]],[a,n],Cv(r))}}};function Cv(r){return r.isHorizontal()?0:1}function Ep(r,t){var e=r.getRect();return[e[BT[t]],e[BT[t]]+e[iq[t]]]}const lq=oq;var uq=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(re);function fq(r){Tt(Uu),bo.registerAxisPointerClass("SingleAxisPointer",lq),r.registerComponentView(uq),r.registerComponentView(JX),r.registerComponentModel(Rp),Cs(r,"single",Rp,Rp.defaultOption),r.registerCoordinateSystem("single",nq)}var cq=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=yo(e);r.prototype.init.apply(this,arguments),zT(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),zT(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:G.color.axisLine,width:1,type:"solid"}},itemStyle:{color:G.color.neutral00,borderWidth:1,borderColor:G.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:G.size.s,color:G.color.secondary},monthLabel:{show:!0,position:"start",margin:G.size.s,align:"center",formatter:null,color:G.color.secondary},yearLabel:{show:!0,position:null,margin:G.size.xl,formatter:null,color:G.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(kt);function zT(r,t){var e=r.cellSize,a;U(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=Y([0,1],function(i){return PV(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Ea(r,t,{type:"box",ignoreSize:n})}const vq=cq;var hq=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new Mt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(c)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=a.start,v=0;c.time<=a.end.time;v++){d(c.formatedDate),v===0&&(c=s.getDateInfo(a.start.y+"-"+a.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=s.getDateInfo(h)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new Xe({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return Q(e)&&e?TV(e,a):ot(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,h={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],c],right:[u[v][0],c]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Rt({z2:30,style:Zt(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],f=e[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||Q(s))&&(s&&(a=Ug(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,h=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g=i.start.time&&n.times.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/Op)-Math.floor(e[0].time/Op)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+e[0].day+6)/7),c=a?-f+1:f-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&en.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){Ou({targetModel:i,coordSysType:"calendar",coordSysProvider:fL})}),a},r.dimensions=["time","value"],r}();function Np(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}const gq=pq;function yq(r){r.registerComponentModel(vq),r.registerComponentView(dq),r.registerCoordinateSystem("calendar",gq)}var Ua={level:1,leaf:2,nonLeaf:3},Ja={none:0,all:1,body:2,corner:3};function qy(r,t,e){var a=t[yt[e]].getCell(r);return!a&&Pt(r)&&r<0&&(a=t[yt[1-e]].getUnitLayoutInfo(e,Math.round(r))),a}function Jk(r){var t=r||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function Qk(r,t,e,a,n){VT(r[0],t,n,e,a,0),VT(r[1],t,n,e,a,1)}function VT(r,t,e,a,n,i){r[0]=1/0,r[1]=-1/0;var o=a[i],s=U(o)?o:[o],l=s.length,u=!!e;if(l>=1?(GT(r,t,s,u,n,i,0),l>1&>(r,t,s,u,n,i,l-1)):r[0]=r[1]=NaN,u){var f=-n[yt[1-i]].getLocatorCount(i),c=n[yt[i]].getLocatorCount(i)-1;e===Ja.body?f=ue(0,f):e===Ja.corner&&(c=Sr(-1,c)),c=t[0]&&r[0]<=t[1]}function WT(r,t){r.id.set(t[0][0],t[1][0]),r.span.set(t[0][1]-r.id.x+1,t[1][1]-r.id.y+1)}function Sq(r,t){r[0][0]=t[0][0],r[0][1]=t[0][1],r[1][0]=t[1][0],r[1][1]=t[1][1]}function $T(r,t,e,a){var n=qy(t[a][0],e,a),i=qy(t[a][1],e,a);r[yt[a]]=r[ge[a]]=NaN,n&&i&&(r[yt[a]]=n.xy,r[ge[a]]=i.xy+i.wh-n.xy)}function ml(r,t,e,a){return r[yt[t]]=e,r[yt[1-t]]=a,r}function xq(r){return r&&(r.type===Ua.leaf||r.type===Ua.nonLeaf)?r:null}function Av(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var UT=function(){function r(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=e,this._uniqueValueGen=bq(t);var a=e.get("data",!0);a!=null&&!U(a)&&(a=[]),a?this._initByDimModelData(a):this._initBySeriesData()}return r.prototype._initByDimModelData=function(t){var e=this,a=e._cells,n=e._levels,i=[],o=0;e._leavesCount=s(t,0,0),l();return;function s(u,f,c){var v=0;return u&&A(u,function(h,d){var p;Q(h)?p={value:h}:ht(h)?(p=h,h.value!=null&&!Q(h.value)&&(p={value:null})):p={value:null};var g={type:Ua.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:f,id:new ct,span:ml(new ct,e.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:e,rect:Av()};o++,(i[f]||(i[f]=[])).push(g),n[c]||(n[c]={type:Ua.level,xy:NaN,wh:NaN,option:null,id:new ct,dim:e});var y=s(p.children,f,c+1),m=Math.max(1,y);g.span[yt[e.dimIdx]]=m,v+=m,f+=m}),v}function l(){for(var u=[];a.length=1,_=e[yt[a]],S=i.getLocatorCount(a)-1,b=new zn;for(o.resetLayoutIterator(b,a);b.next();)x(b.item);for(i.resetLayoutIterator(b,a);b.next();)x(b.item);function x(w){Ue(w.wh)&&(w.wh=y),w.xy=_,w.id[yt[a]]===S&&!m&&(w.wh=e[yt[a]]+e[ge[a]]-w.xy),_+=w.wh}}function JT(r,t){for(var e=t[yt[r]].resetCellIterator();e.next();){var a=e.item;Mv(a.rect,r,a.id,a.span,t),Mv(a.rect,1-r,a.id,a.span,t),a.type===Ua.nonLeaf&&(a.xy=a.rect[yt[r]],a.wh=a.rect[ge[r]])}}function QT(r,t){r.travelExistingCells(function(e){var a=e.span;if(a){var n=e.spanRect,i=e.id;Mv(n,0,i,a,t),Mv(n,1,i,a,t)}})}function Mv(r,t,e,a,n){r[ge[t]]=0;var i=e[yt[t]],o=i<0?n[yt[1-t]]:n[yt[t]],s=o.getUnitLayoutInfo(t,e[yt[t]]);if(r[yt[t]]=s.xy,r[ge[t]]=s.wh,a[yt[t]]>1){var l=o.getUnitLayoutInfo(t,e[yt[t]]+a[yt[t]]-1);r[ge[t]]=l.xy+l.wh-s.xy}}function Bq(r,t,e){var a=Fc(r,e[ge[t]]);return jy(a,e[ge[t]])}function jy(r,t){return Math.max(Math.min(r,nt(t,1/0)),0)}function Vp(r){var t=r.matrixModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var ze={inBody:1,inCorner:2,outside:3},ca={x:null,y:null,point:[]};function tC(r,t,e,a,n){var i=e[yt[t]],o=e[yt[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),f=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,c=r.point[t]=a[t];if(!l&&!f){r[yt[t]]=ze.outside;return}if(n===Ja.body){l?(r[yt[t]]=ze.inBody,c=Sr(s.xy+s.wh,ue(l.xy,c)),r.point[t]=c):r[yt[t]]=ze.outside;return}else if(n===Ja.corner){f?(r[yt[t]]=ze.inCorner,c=Sr(f.xy+f.wh,ue(u.xy,c)),r.point[t]=c):r[yt[t]]=ze.outside;return}var v=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:v,d=s?s.xy+s.wh:v;if(cd){if(!n){r[yt[t]]=ze.outside;return}c=d}r.point[t]=c,r[yt[t]]=v<=c&&c<=d?ze.inBody:h<=c&&c<=v?ze.inCorner:ze.outside}function eC(r,t,e,a){var n=1-e;if(r[yt[e]]!==ze.outside)for(a[yt[e]].resetCellIterator(zp);zp.next();){var i=zp.item;if(aC(r.point[e],i.rect,e)&&aC(r.point[n],i.rect,n)){t[e]=i.ordinal,t[n]=i.id[yt[n]];return}}}function rC(r,t,e,a){if(r[yt[e]]!==ze.outside){var n=r[yt[e]]===ze.inCorner?a[yt[1-e]]:a[yt[e]];for(n.resetLayoutIterator(Jf,e);Jf.next();)if(zq(r.point[e],Jf.item)){t[e]=Jf.item.id[yt[e]];return}}}function zq(r,t){return t.xy<=r&&r<=t.xy+t.wh}function aC(r,t,e){return t[yt[e]]<=r&&r<=t[yt[e]]+t[ge[e]]}const Vq=Nq;function Gq(r){r.registerComponentModel(Mq),r.registerComponentView(Oq),r.registerCoordinateSystem("matrix",Vq)}function Fq(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function nC(r,t){var e;return A(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function Hq(r,t,e){var a=$({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(wt(n,a,!0),Ea(n,a,{ignoreSize:!0}),pL(e,n),Qf(e,n),Qf(e,n,"shape"),Qf(e,n,"style"),Qf(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var eR=["transition","enterFrom","leaveTo"],Wq=eR.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Qf(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?eR:Wq,n=0;n=0;f--){var c=n[f],v=xe(c.id,null),h=v!=null?o.get(v):null;if(h){var d=h.parent,y=Pr(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=sh(h,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!Pr(h).isNew&&S){for(var b=c.transition,x={},w=0;w=0)?x[T]=C:h[T]=C}Et(h,x,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Mc(n,Pr(n).option,a,e._lastGraphicModel)}),this._elMap=rt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(re);function Jy(r){var t=et(iC,r)?iC[r]:Yc(r),e=new t({});return Pr(e).type=r,e}function oC(r,t,e,a){var n=Jy(e);return t.add(n),a.set(r,n),Pr(n).id=r,Pr(n).isNew=!0,n}function Mc(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Mc(i,t,e,a)}),wh(r,t,a),e.removeKey(Pr(r).id))}function sC(r,t,e,a){r.isGroup||A([["cursor",Vr.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];et(t,i)?r[i]=nt(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(It(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=ot(i)?i:null}}),et(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Zq(r){return r=$({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(cL),function(t){delete r[t]}),r}function Xq(r,t,e){var a=pt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=pt(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function qq(r){r.registerComponentModel(Uq),r.registerComponentView(Yq),r.registerPreprocessor(function(t){var e=t.graphic;U(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var lC=["x","y","radius","angle","single"],Kq=["cartesian2d","polar","singleAxis"];function jq(r){var t=r.get("coordinateSystem");return bt(Kq,t)>=0}function En(r){return r+"Axis"}function Jq(r,t){var e=rt(),a=[],n=rt();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(v,h){var d=e.get(v);d&&d[h]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,v){(e.get(c)||e.set(c,[]))[v]=!0})}return a}function rR(r){var t=r.ecModel,e={infoList:[],infoMap:rt()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(En(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var Gp=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Qq=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=uC(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=uC(e);wt(this.option,e,!0),wt(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=rt(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return A(lC,function(n){var i=this.getReferringComponents(En(n),qN);if(i.specified){a=!0;var o=new Gp;A(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var c=u[0];if(c){var v=new Gp;if(v.add(c.componentIndex),e.set(f,v),i=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",ae).models[0];h&&A(u,function(d){c.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",ae).models[0]&&v.add(d.componentIndex)})}}}i&&A(lC,function(u){if(i){var f=n.findComponents({mainType:En(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var c=new Gp;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(En(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(En(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else es(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});es(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;es(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Gt(a[0]+o,a,[0,100],!0):i!=null&&(o=Gt(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=OM(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function oK(r,t,e){var a=[1/0,-1/0];es(e,function(o){x3(a,o.getData(),t)});var n=r.getAxisModel(),i=j2(n.axis.scale,n,a).calculate();return[i.min,i.max]}const sK=iK;var lK={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(En(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new sK(n,i,s,r),e.push(o.__dzAxisProxy))});var a=rt();return A(e,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};const uK=lK;function fK(r){r.registerAction("dataZoom",function(t,e){var a=Jq(e,t);A(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var cC=!1;function M_(r){cC||(cC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,uK),fK(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function cK(r){r.registerComponentModel(eK),r.registerComponentView(nK),M_(r)}var Rr=function(){function r(){}return r}(),aR={};function rs(r,t){aR[r]=t}function nR(r){return aR[r]}var vK=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;A(this.option.feature,function(a,n){var i=nR(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),wt(a,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:G.size.m,itemSize:15,itemGap:G.size.s,showTitle:!0,iconStyle:{borderColor:G.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:G.color.accent50}},tooltip:{show:!1,position:"bottom"}},t}(kt);const hK=vK;function iR(r,t){var e=Eu(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new Mt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var dK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),c=[];A(u,function(m,_){c.push(_)}),new nn(this._featureNames||[],c).add(v).update(v).remove(xt(v,null)).execute(),this._featureNames=c;function v(m,_){var S=c[m],b=c[_],x=u[S],w=new Ot(x,e,e.ecModel),T;if(i&&i.newTitle!=null&&i.featureName===S&&(x.title=i.newTitle),S&&!b){if(pK(S))T={onclick:w.option.onclick,featureName:S};else{var C=nR(S);if(!C)return;T=new C}f[S]=T}else if(T=f[b],!T)return;T.uid=zs("toolbox-feature"),T.model=w,T.ecModel=a,T.api=n;var M=T instanceof Rr;if(!S&&b){M&&T.dispose&&T.dispose(a,n);return}if(!w.get("show")||M&&T.unusable){M&&T.remove&&T.remove(a,n);return}h(w,T,S),w.setIconStatus=function(D,I){var L=this.option,k=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[D]=I,k[D]&&(I==="emphasis"?rn:an)(k[D])},T instanceof Rr&&T.render&&T.render(w,a,n,i)}function h(m,_,S){var b=m.getModel("iconStyle"),x=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Rr&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,M;Q(w)?(C={},C[S]=w):C=w,Q(T)?(M={},M[S]=T):M=T;var D=m.iconPaths={};A(C,function(I,L){var k=Ru(I,{},{x:-s/2,y:-s/2,width:s,height:s});k.setStyle(b.getItemStyle());var R=k.ensureState("emphasis");R.style=x.getItemStyle();var P=new Rt({style:{text:M[L],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:Ym({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},a)},ignore:!0});k.setTextContent(P),fn({el:k,componentModel:e,itemName:L,formatterParamsExtra:{title:M[L]}}),k.__title=M[L],k.on("mouseover",function(){var O=x.getItemStyle(),E=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:x.get("textFill")||O.fill||O.stroke||G.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),k.setTextConfig({position:x.get("textPosition")||E}),P.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",L])!=="emphasis"&&n.leaveEmphasis(this),P.hide()}),(m.get(["iconStatus",L])==="emphasis"?rn:an)(k),o.add(k),k.on("click",tt(_.onclick,_,a,n,L)),D[L]=k})}var d=Ce(e,n).refContainer,p=e.getBoxLayoutParams(),g=e.get("padding"),y=Qt(p,d,g);Ji(e.get("orient"),o,e.get("itemGap"),y.width,y.height),sh(o,p,d,g),o.add(iR(o.getBoundingRect(),e)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),b=S.textConfig||(S.textConfig={}),x=m.getTextContent(),w=x&&x.ensureState("emphasis");if(w&&!ot(w)&&_){var T=w.style||(w.style={}),C=Uv(_,Rt.makeFont(T)),M=m.x+o.x,D=m.y+o.y+s,I=!1;D+C.height>n.getHeight()&&(b.position="top",I=!0);var L=I?-5-C.height:s+10;M+C.width/2>n.getWidth()?(b.position=["100%",L],T.align="right"):M-C.width/2<0&&(b.position=[0,L],T.align="left")}})},t.prototype.updateView=function(e,a,n,i){A(this._features,function(o){o instanceof Rr&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){A(this._features,function(n){n instanceof Rr&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){A(this._features,function(n){n instanceof Rr&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(re);function pK(r){return r.indexOf("my")===0}const gK=dK;var yK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||G.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Nt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),h=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=n.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:G.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(Rr);const mK=yK;var vC="__ec_magicType_stack__",_K=[["line","bar"],["stack"]],SK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return A(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(hC[n]){var s={series:[]},l=function(c){var v=c.subType,h=c.id,d=hC[n](v,h,c,i);d&&(vt(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,ae).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(_K,function(c){bt(c,n)>=0&&A(c,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=wt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Rr),hC={line:function(r,t,e,a){if(r==="bar")return wt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return wt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===vC;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),wt({id:t,stack:n?"":vC},a.get(["option","stack"])||{},!0)}};Na({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const xK=SK;var Th=new Array(60).join("-"),Ls=" ";function bK(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function wK(r){var t=[];return A(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(Y(e.series,function(h){return h.name})),l=[n.model.getCategories()];A(e.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Ls)],f=0;f1||e>0&&!r.noHeader;return A(r.blocks,function(n){var i=YL(n);i>=t&&(t=i+ +(a&&(!i||ay(n)&&!n.noHeader)))}),t}return 0}function z5(r,t,e,a){var n=t.noHeader,i=G5(YL(t)),o=[],s=t.blocks||[];qe(!s||U(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(et(u,l)){var f=new zL(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,g){var y=t.valueFormatter,m=UL(p)(y?$($({},r),{valueFormatter:y}):r,p,g>0?i.html:0,a);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):ny(a,o.join(""),n?e:i.html);if(n)return c;var v=jg(t.header,"ordinal",r.useUTC),h=$L(a,r.renderMode).nameStyle,d=WL(a);return r.renderMode==="richText"?ZL(r,v,h)+i.richText+c:ny(a,'
'+Ye(v)+"
"+c,e)}function V5(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=U(S)?S:[S],Y(S,function(b,x){return jg(b,U(h)?h[x]:h,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||G.color.secondary,n),v=i?"":jg(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,y=$L(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":c)+(i?"":ZL(r,v,m))+(o?"":W5(r,d,p,g,_)):ny(a,(s?"":c)+(i?"":F5(v,!s,m))+(o?"":H5(d,p,g,_)),e)}}function WS(r,t,e,a,n,i){if(r){var o=UL(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function G5(r){return{html:N5[r],richText:B5[r]}}function ny(r,t,e){var a='
',n="margin: "+e+"px 0 0",i=WL(r);return'
'+t+a+"
"}function F5(r,t,e){var a=t?"margin-left:2px":"";return''+Ye(r)+""}function H5(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=U(r)?r:[r],''+Y(r,function(o){return Ye(o)}).join("  ")+""}function ZL(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function W5(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,i)}function XL(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return uo(a)}function qL(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Td=function(){function r(){this.richTextStyles={},this._nextStyleNameId=VM()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=AV({color:e,type:t,renderMode:a,markerId:n});return Q(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};U(e)?A(e,function(i){return $(a,i)}):$(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function KL(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=U(s),u=XL(t,e),f,c,v,h;if(o>1||l&&!o){var d=$5(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=f=ws(n,e,i[0]),c=p.type}else h=f=l?s[0]:s;var g=km(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return ye("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[ye("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Br(_),value:f,valueType:c,dataIndex:e})].concat(v||[])})}function $5(r,t,e,a,n){var i=t.getData(),o=Pa(r,function(c,v,h){var d=i.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(c){f(ws(i,e,c),c)}):A(r,f);function f(c,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(ye("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var pn=Mt();function Sf(r,t){return r.getName(t)||r.getId(t)}var Cc="__universalTransitionEnabled",dh=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=ql({count:Y5,reset:Z5}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=pn(this).sourceManager=new HL(this);i.prepareSource();var o=this.getInitialData(e,n);US(o,this),this.dataTask.context.data=o,pn(this).dataBeforeProcessed=o,$S(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=hu(this),i=n?mo(e):{},o=this.subType;Rt.hasClass(o)&&(o+="Series"),wt(e,a.getTheme().get(this.subType)),wt(e,this.getDefaultOption()),ao(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Oa(e,i,n)},t.prototype.mergeOption=function(e,a){e=wt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=hu(this);n&&Oa(this.option,e,n);var i=pn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);US(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,pn(this).dataBeforeProcessed=o,$S(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!cr(e))for(var a=["show"],n=0;n=0&&v<0)&&(c=m,v=y,h=0),y===v&&(f[h++]=p))}),f.length=h,f},t.prototype.formatTooltip=function(e,a,n){return KL({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Bt.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=u0.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Sf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Cc])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){vt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,a)}},t.registerClass=function(e){return Rt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Rt);_e(dh,vh);_e(dh,u0);qM(dh,Rt);function $S(r){var t=r.name;km(r)||(r.name=U5(r)||t)}function U5(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return A(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function Y5(r){return r.model.getRawData().count()}function Z5(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),X5}function X5(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function US(r,t){A(ru(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,xt(q5,t))})}function q5(r,t){var e=iy(r);return e&&e.setOutputEnd((t||this).count()),t}function iy(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const ee=dh;var d0=function(){function r(){this.group=new lt,this.uid=Fs("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Em(d0);qv(d0);const ae=d0;function Ws(){var r=Mt();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var jL=Mt(),K5=Ws(),p0=function(){function r(){this.group=new lt,this.uid=Fs("viewChart"),this.renderTask=ql({plan:j5,reset:J5}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&ZS(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&ZS(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){Qn(this.group,t)},r.markUpdateMethod=function(t,e){jL(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function YS(r,t,e){r&&fu(r)&&(t==="emphasis"?rn:an)(r,e)}function ZS(r,t,e){var a=no(r,t),n=t&&t.highlightKey!=null?vz(t.highlightKey):null;a!=null?A(Ut(a),function(i){YS(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){YS(i,e,n)})}Em(p0);qv(p0);function j5(r){return K5(r.model)}function J5(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&jL(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),Q5[l]}var Q5={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Xt=p0;var Qc="\0__throttleOriginMethod",XS="\0__throttleRate",qS="\0__throttleType";function g0(r,t,e){var a,n=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var h=[],d=0;d=0?c():o=setTimeout(c,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function $s(r,t,e,a){var n=r[t];if(n){var i=n[Qc]||n,o=n[qS],s=n[XS];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=g0(i,e,a==="debounce"),n[Qc]=i,n[qS]=a,n[XS]=e}return n}}function pu(r,t){var e=r[t];e&&e[Qc]&&(e.clear&&e.clear(),r[t]=e[Qc])}var KS=Mt(),jS={itemStyle:io(qD,!0),lineStyle:io(XD,!0)},tG={lineStyle:"stroke",itemStyle:"fill"};function JL(r,t){var e=r.visualStyleMapper||jS[t];return e||(console.warn("Unknown style type '"+t+"'."),jS.itemStyle)}function QL(r,t){var e=r.visualDrawType||tG[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var eG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=JL(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=QL(r,a),u=o[l],f=ot(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ot(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ot(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=$({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},nl=new Nt,rG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=JL(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){nl.option=l[a];var u=n(nl),f=o.ensureUniqueItemVisual(s,"style");$(f,u),nl.option.decal&&(o.setItemVisual(s,"decal",nl.option.decal),nl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},aG={performRawSeries:!0,overallReset:function(r){var t=rt();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),KS(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=KS(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=QL(e,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var v=i.ensureUniqueItemVisual(f,"style"),h=a.getName(u)||u+"",d=a.count();v[l]=e.getColorFromPalette(h,o,d)}})}})}},xf=Math.PI;function nG(r,t){t=t||{},ct(t,{text:"loading",textColor:G.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:G.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new lt,a=new At({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new Et({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new At({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Um({shape:{startAngle:-xf/2,endAngle:-xf/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:xf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:xf*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var iG=function(){function r(t,e,a,n){this._stageTaskMap=rt(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=rt();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";qe(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;A(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else c&&c.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=rt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||ql({plan:fG,reset:cG,count:hG}));h.context={model:c,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,h)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||ql({reset:oG});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=rt(),u=t.seriesType,f=t.getTargetSeries,c=!0,v=!1,h="";qe(!t.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(c=!1,A(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,ql({reset:sG,onDirty:uG})));y.context={model:p,overallProgress:c},y.agent=o,y.__block=c,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return ot(t)&&(t={overallReset:t,seriesType:dG(t)}),t.uid=Fs("stageHandler"),e&&(t.visualType=e),t},r}();function oG(r){r.overallReset(r.ecModel,r.api,r.payload)}function sG(r){return r.overallProgress&&lG}function lG(){this.agent.dirty(),this.getDownstream().dirty()}function uG(){this.agent&&this.agent.dirty()}function fG(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function cG(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ut(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,a){return t2(a)}):vG}var vG=t2(0);function t2(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),oy=["symbol","symbolSize","symbolRotate","symbolOffset"],QS=oy.concat(["symbolKeepAspect"]),mG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o=0&&$i(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function sy(r,t,e){for(var a=t.type==="radial"?EG(r,t,e):RG(r,t,e),n=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:kt(r)?[r]:U(r)?r:null}function m0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&NG(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Y(e,function(i){return i/n}),a/=n)}return[e,a]}var BG=new Ea(!0);function rv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function tx(r){return typeof r=="string"&&r!=="none"}function av(r){var t=r.fill;return t!=null&&t!=="none"}function ex(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function rx(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function ly(r,t,e){var a=Om(t.image,t.__image,e);if(Kv(a)){var n=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*fc),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function zG(r,t,e,a){var n,i=rv(e),o=av(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||BG,c=t.__dirty;if(!a){var v=e.fill,h=e.stroke,d=o&&!!v.colorStops,p=i&&!!h.colorStops,g=o&&!!v.image,y=i&&!!h.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(m=c?sy(r,v,x):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?sy(r,h,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?ly(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=c||!t.__canvasStrokePattern?ly(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(n=m0(t),T=n[0],C=n[1]);var M=!0;(u||c&rs)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,a),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(e.strokeFirst?(i&&rx(r,e),o&&ex(r,e)):(o&&ex(r,e),i&&rx(r,e))),T&&r.setLineDash([])}function VG(r,t,e){var a=t.__image=Om(e.image,t.__image,t,t.onload);if(!(!a||!Kv(a))){var n=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(a,u,f,e.sWidth,e.sHeight,n,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,c=o-u,v=s-f;r.drawImage(a,u,f,c,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function GG(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Qa,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=m0(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(rv(e)&&r.strokeText(n,e.x,e.y),av(e)&&r.fillText(n,e.x,e.y)):(av(e)&&r.fillText(n,e.x,e.y),rv(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var ax=["shadowBlur","shadowOffsetX","shadowOffsetY"],nx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function s2(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){ur(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?qi.opacity:o}(a||t.blend!==e.blend)&&(i||(ur(r,n),i=!0),r.globalCompositeOperation=t.blend||qi.blend);for(var s=0;s0&&e.unfinished);e.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(e,a,n){if(!this[Se]){if(this._disposed){this.id;return}var i,o,s;if(vt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Se]=!0,Wo(this),!this._model||a){var l=new e5(this._api),u=this._theme,f=this._model=new AL;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},vy);var c={seriesTransition:s,optionChanged:!0};if(n)this[Pe]={silent:i,updateParams:c},this[Se]=!1,this.getZr().wakeUp();else{try{wi(this),Ga.update.call(this,null,c)}catch(v){throw this[Pe]=null,this[Se]=!1,v}this._ssr||this._zr.flush(),this[Pe]=null,this[Se]=!1,Fo.call(this,i),Ho.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[Se]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Pe]&&(i==null&&(i=this[Pe].silent),o=this[Pe].updateParams,this[Pe]=null),this[Se]=!0,Wo(this);try{this._updateTheme(e),n.setTheme(this._theme),wi(this),Ga.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Se]=!1,s}this[Se]=!1,Fo.call(this,i),Ho.call(this,i)}}},t.prototype._updateTheme=function(e){Q(e)&&(e=C2[e]),e&&(e=st(e),e&&LL(e,!0),this._theme=e)},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||Bt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,a=e.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(_x[n]){var l=s,u=s,f=-s,c=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();A(Kl,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(st(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),v.push({dom:b,left:x.left,top:x.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=ta.createCanvas(),y=b1(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return A(v,function(_){var S=_.left-l,b=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new At({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),A(v,function(_){var S=new We({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a,n){return Cf(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return Cf(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return Cf(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=ps(n,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=ps(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?y0(s,l,a):Gu(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;A(dF,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Wi(l,function(p){var g=dt(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=$({},g.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)});var a=this._messageCenter;A(fy,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),SG(a,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 e=this.getDom();e&&YM(this.getDom(),x0,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Kl[a.id]},t.prototype.resize=function(e){if(!this[Se]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Pe]&&(i==null&&(i=this[Pe].silent),n=!0,this[Pe]=null),this[Se]=!0,Wo(this);try{n&&wi(this),Ga.update.call(this,{type:"resize",animation:$({duration:0},e&&e.animation)})}catch(o){throw this[Se]=!1,o}this[Se]=!1,Fo.call(this,i),Ho.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(vt(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!hy[e]){var n=hy[e](this._api,a),i=this._zr;this._loadingFX=n,i.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(e){var a=$({},e);return a.type=uy[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(vt(a)||(a={silent:!!a}),!!nv[e.type]&&this._model){if(this[Se]){this._pendingActions.push(e);return}var n=a.silent;Id.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Bt.browser.weChat&&this._throttledZrFlush(),Fo.call(this,n),Ho.call(this,n)}},t.prototype.updateLabelLayout=function(){Zr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){wi=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),Dd(c,!0),Dd(c,!1),v.plan()},Dd=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_v.get("hoverLayerThreshold")&&!Bt.node&&!Bt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=lo(c);v.eachRendered(function(d){return sh(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!gs(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(gs(y))return;if(y instanceof Dt&&hz(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}yx=function(c){return new(function(v){z(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){rn(d,p),Cr(c)},h.prototype.leaveEmphasis=function(d,p){an(d,p),Cr(c)},h.prototype.enterBlur=function(d){hD(d),Cr(c)},h.prototype.leaveBlur=function(d){Fm(d),Cr(c)},h.prototype.enterSelect=function(d){dD(d),Cr(c)},h.prototype.leaveSelect=function(d){pD(d),Cr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getMainProcessVersion=function(){return c[wf]},h}(ML))(c)},w2=function(c){function v(h,d){for(var p=0;p=0)){Sx.push(e);var i=a2.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function L2(r,t){hy[r]=t}function bF(r,t,e){var a=jG("registerMap");a&&a(r,t,e)}var wF=L5;xo(_0,eG);xo(ph,rG);xo(ph,aG);xo(_0,mG);xo(ph,_G);xo(y2,XG);M2(LL);D2(rF,u5);L2("default",nG);Ba({type:Ki,event:Ki,update:Ki},fe);Ba({type:_c,event:_c,update:_c},fe);Ba({type:Yc,event:Vm,update:Yc,action:fe,refineEvent:T0,publishNonRefinedEvent:!0});Ba({type:Vg,event:Vm,update:Vg,action:fe,refineEvent:T0,publishNonRefinedEvent:!0});Ba({type:Zc,event:Vm,update:Zc,action:fe,refineEvent:T0,publishNonRefinedEvent:!0});function T0(r,t,e,a){return{eventContent:{selected:lz(e),isFromClick:t.isFromClick||!1}}}A2("default",{});A2("dark",gG);var xx=[],TF={registerPreprocessor:M2,registerProcessor:D2,registerPostInit:mF,registerPostUpdate:_F,registerUpdateLifecycle:b0,registerAction:Ba,registerCoordinateSystem:SF,registerLayout:xF,registerVisual:xo,registerTransform:wF,registerLoading:L2,registerMap:bF,registerImpl:KG,PRIORITY:cF,ComponentModel:Rt,ComponentView:ae,SeriesModel:ee,ChartView:Xt,registerComponentModel:function(r){Rt.registerClass(r)},registerComponentView:function(r){ae.registerClass(r)},registerSeriesModel:function(r){ee.registerClass(r)},registerChartView:function(r){Xt.registerClass(r)},registerCustomSeries:function(r,t){JG(r,t)},registerSubTypeDefaulter:function(r,t){Rt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){CN(r,t)}};function Tt(r){if(U(r)){A(r,function(t){Tt(t)});return}bt(xx,r)>=0||(xx.push(r),ot(r)&&(r={install:r}),r.install(TF))}function ol(r){return r==null?0:r.length||1}function bx(r){return r}var CF=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||bx,this._newKeyGetter=n||bx,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h1)for(var s=0;s30}var sl=vt,gn=Y,kF=typeof Int32Array>"u"?Array:Int32Array,RF="e\0\0",Tx=-1,EF=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],OF=["_approximateExtent"],Cx,Mf,ll,ul,Rd,fl,Ed,NF=function(){function r(t,e){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 a,n=!1;P2(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===wr;if(l&&!n.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),U(i)?i=i.slice():sl(i)&&(i=$({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,sl(e)?$(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){sl(t)?$(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?$(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;zg(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:gn(this.dimensions,this._getDimInfo,this),this.hostModel)),Rd(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];ot(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(bm(arguments)))})},r.internalField=function(){Cx=function(t){var e=t._invertedIndicesMap;A(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new kF(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[e]=l}}}(),r}();const rr=NF;function Fu(r,t){f0(r)||(r=c0(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=rt(),i=[],o=zF(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&E2(o),l=a===r.dimensionsDefine,u=l?R2(r):k2(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=rt(f),v=new GL(o),h=0;h0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function zF(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return A(t,function(i){var o;vt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function VF(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var GF=function(){function r(t){this.coordSysDims=[],this.axisMap=rt(),this.categoryAxisMap=rt(),this.coordSysName=t}return r}();function FF(r){var t=r.get("coordinateSystem"),e=new GF(t),a=HF[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var HF={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",ne).models[0],i=r.getReferringComponents("yAxis",ne).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),$o(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),$o(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",ne).models[0];t.coordSysDims=["single"],e.set("single",n),$o(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",ne).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),$o(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),$o(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),$o(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",ne).models[0];t.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",i),e.set("y",o),a.set("x",i),a.set("y",o)}};function $o(r){return r.get("type")==="category"}function WF(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;$F(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,v;if(A(i,function(m,_){Q(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){c="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,p=0;A(i,function(m){m.coordDim===h&&p++});var g={name:c,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:c}}function $F(r){return!P2(r.schema)}function $n(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function O2(r,t){return $n(r,t)?r.getCalculationInfo("stackResultDimension"):t}function UF(r,t){var e=r.get("coordinateSystem"),a=Vu.get(e),n;return t&&t.coordSysDims&&(n=Y(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=ov(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function YF(r,t,e){var a,n;return e&&A(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function cn(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=c0(r)):(n=a.getSource(),i=n.sourceFormat===wr);var o=FF(t),s=UF(t,o),l=e.useEncodeDefaulter,u=ot(l)?l:l?xt(xL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=Fu(n,f),v=YF(c.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(c),d=WF(t,{schema:c,store:h}),p=new rr(c,t);p.setCalculationInfo(d);var g=v!=null&&ZF(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:h,null,g),p}function ZF(r){if(r.sourceFormat===wr){var t=XF(r.data||[]);return!U(Os(t))}}function XF(r){for(var t=0;tn&&(o=i.interval=n);var s=i.intervalPrecision=mu(o),l=i.niceTickExtent=[de(Math.ceil(r[0]/o)*o,s),de(Math.floor(r[1]/o)*o,s)];return KF(l,r),i}function Od(r){var t=Math.pow(10,Pm(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,de(e*t)}function mu(r){return ba(r)+2}function Ax(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function KF(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Ax(r,0,t),Ax(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function C0(r,t){return r>=t[0]&&r<=t[1]}var jF=function(){function r(){this.normalize=Mx,this.scale=Dx}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=tt(t.normalize,t),this.scale=tt(t.scale,t)):(this.normalize=Mx,this.scale=Dx)},r}();function Mx(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Dx(r,t){return r*(t[1]-t[0])+t[0]}function py(r,t,e){var a=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/a,Math.log(e?t[1]:Math.max(0,t[1]))/a]}var N2=function(){function r(t){this._calculator=new jF,this._setting=t||{},this._extent=[1/0,-1/0];var e=pe();e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(t){var e=pe();e&&this._innerSetBreak(e.parseAxisBreakOption(t,tt(this.parse,this)))},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();qv(N2);const bo=N2;var JF=0,QF=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++JF,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&Y(a,t3);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!Q(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=rt(this.categories))},r}();function t3(r){return vt(r)&&r.value!=null?r.value:r+""}const _u=QF;var B2=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new _u({})),U(n)&&(n=new _u({categories:Y(n,function(i){return vt(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:Q(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return C0(e,this._extent)&&e>=0&&e=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(bo);bo.registerClass(B2);const Su=B2;var yn=de,z2=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return C0(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=mu(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=pe(),l=[];if(!a)return l;if(e.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;n[0]=0&&(c=yn(c+v*a,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var h=l.length?l[l.length-1].value:i[1];return n[1]>h&&(e.expandToNicedExtent?l.push({value:yn(h+a,o)}):l.push({value:n[1]})),s&&s.pruneTicksByBreak(e.pruneByBreak,l,this._brkCtx.breaks,function(d){return d.value},this._interval,this._extent),e.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;oi[0]&&d0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function F2(r){var t=a3(r),e=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),v=Math.abs(c[1]-c[0]);s=u?f/v*u:f}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=J(a.get("barWidth"),s),p=J(a.get("barMaxWidth"),s),g=J(a.get("barMinWidth")||(Y2(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap"),_=a.get("defaultBarGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,defaultBarGap:_,axisKey:M0(i),stackId:A0(a)})}),H2(e)}function H2(r){var t={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=a.barMaxWidth;c&&(l[u].maxWidth=c);var v=a.barMinWidth;v&&(l[u].minWidth=v);var h=a.barGap;h!=null&&(s.gap=h);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=It(i).length;s=Math.max(35-l*4,15)+"%"}var u=J(s,o),f=J(a.gap,1),c=a.remainedWidth,v=a.autoWidthCount,h=(c-u)/(v+(v-1)*f);h=Math.max(h,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,c-=S+f*S,v--}else{var S=h;m&&mS&&(S=_),S!==h&&(y.width=S,c-=S+f*S,v--)}}),h=(c-u)/(v+(v-1)*f),h=Math.max(h,0);var d=0,p;A(i,function(y,m){y.width||(y.width=h),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function n3(r,t,e){if(r&&t){var a=r[M0(t)];return a!=null&&e!=null?a[A0(e)]:a}}function W2(r,t){var e=G2(r,t),a=F2(e);A(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=A0(n),u=a[M0(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function $2(r){return{seriesType:r,plan:Ws(),reset:function(t){if(U2(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=$n(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=i3(n,i),d=Y2(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Ta(b*3),w=d&&l&&Ta(b*3),T=d&&Ta(b),C=a.master.getRect(),M=v?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var k=I.get(c?g:o,D),R=I.get(s,D),P=h,O=void 0;c&&(O=+k-I.get(o,D));var E=void 0,B=void 0,V=void 0,H=void 0;if(v){var W=a.dataToPoint([k,R]);if(c){var X=a.dataToPoint([O,R]);P=X[0]}E=P,B=W[1]+m,V=W[0]-P,H=y,Math.abs(V)0?e:1:e))}var o3=function(r,t,e,a){for(;e>>1;r[n][1]n&&(this._approxInterval=n);var o=Df.length,s=Math.min(o3(Df,this._approxInterval,0,o),o-1);this._interval=Df[s][1],this._intervalPrecision=mu(this._interval),this._minLevelUnit=Df[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return kt(e)?e:+po(e)},t.prototype.contain=function(e){return C0(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t}(Un),Df=[["second",Jm],["minute",Qm],["hour",Zl],["quarter-day",Zl*6],["half-day",Zl*12],["day",Nr*1.2],["half-week",Nr*3.5],["week",Nr*7],["month",Nr*31],["quarter",Nr*95],["half-year",gS/2],["year",gS]];function X2(r,t,e,a){return Kg(new Date(t),r,a).getTime()===Kg(new Date(e),r,a).getTime()}function s3(r,t){return r/=Nr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function l3(r){var t=30*Nr;return r/=t,r>6?6:r>3?3:r>2?2:1}function u3(r){return r/=Zl,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Lx(r,t){return r/=t?Qm:Jm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function f3(r){return BM(r,!0)}function c3(r,t,e){var a=Math.max(0,bt(pr,t)-1);return Kg(new Date(r),pr[a],e).getTime()}function v3(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var n=e.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function h3(r,t,e,a,n,i){var o=1e4,s=mV,l=0;function u(L,k,R,P,O,E,B){for(var V=v3(O,L),H=k,W=new Date(H);Ho));)if(W[O](W[P]()+L),H=W.getTime(),i){var X=i.calcNiceTickMultiple(H,V);X>0&&(W[O](W[P]()+X*L),H=W.getTime())}B.push({value:H,notAdd:!0})}function f(L,k,R){var P=[],O=!k.length;if(!X2(Xl(L),a[0],a[1],e)){O&&(k=[{value:c3(a[0],L,e)},{value:a[1]}]);for(var E=0;E=a[0]&&B<=a[1]&&u(H,B,V,W,X,K,P),L==="year"&&R.length>1&&E===0&&R.unshift({value:R[0].value-H})}}for(var E=0;E=a[0]&&S<=a[1]&&h++)}var b=n/t;if(h>b*1.5&&d>b/1.5||(c.push(m),h>b||r===s[p]))break}v=[]}}}for(var x=Ht(Y(c,function(L){return Ht(L,function(k){return k.value>=a[0]&&k.value<=a[1]&&!k.notAdd})}),function(L){return L.length>0}),w=[],T=x.length-1,p=0;p0;)i*=10;var s=[yy(p3(a[0]/i)*i),yy(d3(a[1]/i)*i)];this._interval=i,this._intervalPrecision=mu(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=If(e)/If(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=If(e)/If(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),Lf(this.base,e)},t.prototype.setBreaksFromOption=function(e){var a=pe();if(a){var n=a.logarithmicParseBreaksFromOption(e,this.base,tt(this.parse,this)),i=n.parsedOriginal,o=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},t.type="log",t}(Un);function Pf(r,t){return yy(r,ba(t))}bo.registerClass(K2);const g3=K2;var y3=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[_3[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=m3[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),m3={min:"_determinedMin",max:"_determinedMax"},_3={min:"_dataMin",max:"_dataMax"};function j2(r,t,e){var a=r.rawExtentInfo;return a||(a=new y3(r,t,e),r.rawExtentInfo=a,a)}function kf(r,t){return t==null?null:Ze(t)?NaN:r.parse(t)}function J2(r,t){var e=r.type,a=j2(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=G2("bar",o),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=F2(s),f=S3(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function S3(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=n3(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;A(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,v=f/c-f;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function Cs(r,t){var e=t,a=J2(r,e),n=a.extent,i=e.get("splitNumber");r instanceof g3&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(tI(e)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function gh(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Su({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new q2({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(bo.getClass(t)||Un)}}function x3(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Ys(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=_V(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if(Q(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(ot(t)){if(r.type==="category")return function(n,i){return t(sv(r,n),n.value-r.scale.getExtent()[0],null)};var a=pe();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(sv(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function sv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function D0(r){var t=r.get("interval");return t??"auto"}function Q2(r){return r.type==="category"&&D0(r.getLabelModel())===0}function lv(r,t){var e={};return A(r.mapDimensionsAll(t),function(a){e[O2(r,a)]=!0}),It(e)}function b3(r,t,e){t&&A(lv(t,e),function(a){var n=t.getApproximateExtent(a);n[0]r[1]&&(r[1]=n[1])})}function As(r){return r==="middle"||r==="center"}function xu(r){return r.getShallow("show")}function tI(r){var t=r.get("breaks",!0);if(t!=null)return!pe()||!w3(r.axis)?void 0:t}function w3(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var Hu=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),T3=1e-8;function Ix(r,t){return Math.abs(r-t)n&&(a=o,n=l)}if(a)return A3(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Px(s.exterior,n,i,e):A(s.points,function(l){Px(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new ht(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function L3(r,t){return r=D3(r),Y(Ht(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new kx(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new kx(l[0],l.slice(1)))});break;case"LineString":i.push(new Rx([n.coordinates]));break;case"MultiLineString":i.push(new Rx(n.coordinates))}var s=new rI(a[t||"name"],i,a.cp);return s.properties=a,s})}var I3=Mt(),jl=Mt(),aa={estimate:1,determine:2};function uv(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function nI(r,t){var e=Y(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function P3(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=Ys(r),n=r.scale.getExtent(),i=nI(r,e),o=Ht(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:Y(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?R3(r,t):O3(r)}function k3(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=nI(r,a);return{ticks:Ht(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?E3(r,t):{ticks:Y(r.scale.getTicks(e),function(o){return o.value})}}function R3(r,t){var e=r.getLabelModel(),a=iI(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function iI(r,t,e){var a=B3(r),n=D0(t),i=e.kind===aa.estimate;if(!i){var o=sI(a,n);if(o)return o}var s,l;ot(n)?s=fI(r,n):(l=n==="auto"?z3(r,e):n,s=uI(r,l));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return my(a,n,u),!0}):my(a,n,u),u}function E3(r,t){var e=N3(r),a=D0(t),n=sI(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),ot(a))i=fI(r,a,!0);else if(a==="auto"){var s=iI(r,r.getLabelModel(),uv(aa.determine));o=s.labelCategoryInterval,i=Y(s.labels,function(l){return l.tickValue})}else o=a,i=uI(r,o,!0);return my(e,a,{ticks:i,tickCategoryInterval:o})}function O3(r){var t=r.scale.getTicks(),e=Ys(r);return{labels:Y(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var N3=oI("axisTick"),B3=oI("axisLabel");function oI(r){return function(e){return jl(e)[r]||(jl(e)[r]={list:[]})}}function sI(r,t){for(var e=0;ef&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=r.dataToCoord(c+1)-r.dataToCoord(c),h=Math.abs(v*Math.cos(i)),d=Math.abs(v*Math.sin(i)),p=0,g=0;c<=s[1];c+=u){var y=0,m=0,_=Xv(n({value:c}),a.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(e===aa.estimate)return t.out.noPxChangeTryDetermine.push(tt(G3,null,r,x,l)),x;var w=lI(r,x,l);return w??x}function G3(r,t,e){return lI(r,t,e)==null}function lI(r,t,e){var a=I3(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=n[0],a.axisExtent1=n[1]}function F3(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function uI(r,t,e){var a=Ys(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Q2(r),v=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);h&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g,time:void 0,break:void 0})}return s}function fI(r,t,e){var a=r.scale,n=Ys(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Ex=[0,1],H3=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return OM(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Ox(a,n.count())),Ft(t,Ex,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Ox(a,n.count()));var i=Ft(t,a,Ex,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=k3(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=Y(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return W3(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=Y(a,function(i){return Y(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||uv(aa.determine),P3(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(t){return t=t||uv(aa.determine),V3(this,t)},r}();function Ox(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function W3(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;A(t,function(h){h.coord-=u/2,h.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var c=i[0]>i[1];v(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&v(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),v(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&v(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function v(h,d){return h=de(h),d=de(d),c?h>d:hn&&(n+=cl);var h=Math.atan2(s,o);if(h<0&&(h+=cl),h>=a&&h<=n||h+cl>=a&&h+cl<=n)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function fv(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,f=e-r,c=a-t,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function cI(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var qr=[];function Z3(r,t,e){var a=cI(t.x,t.y,t.width,t.height,r.x,r.y,qr);return e.set(qr[0],qr[1]),a}function X3(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,v=r.y,h=0;h0){t=t/180*Math.PI,Kr.fromArray(r[0]),Kt.fromArray(r[1]),le.fromArray(r[2]),ft.sub(Ca,Kr,Kt),ft.sub(Sa,le,Kt);var e=Ca.len(),a=Sa.len();if(!(e<.001||a<.001)){Ca.scale(1/e),Sa.scale(1/a);var n=Ca.dot(Sa),i=Math.cos(t);if(i1&&ft.copy(er,le),er.toArray(r[1])}}}}function q3(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Kr.fromArray(r[0]),Kt.fromArray(r[1]),le.fromArray(r[2]),ft.sub(Ca,Kt,Kr),ft.sub(Sa,le,Kt);var a=Ca.len(),n=Sa.len();if(!(a<.001||n<.001)){Ca.scale(1/a),Sa.scale(1/n);var i=Ca.dot(t),o=Math.cos(e);if(i=l)ft.copy(er,le);else{er.scaleAndAdd(Sa,s/Math.tan(Math.PI/2-f));var c=le.x!==Kt.x?(er.x-Kt.x)/(le.x-Kt.x):(er.y-Kt.y)/(le.y-Kt.y);if(isNaN(c))return;c<0?ft.copy(er,Kt):c>1&&ft.copy(er,le)}er.toArray(r[1])}}}}function zd(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function K3(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=An(a[0],a[1]),i=An(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=vc([],a[1],a[0],o/n),l=vc([],a[1],a[2],o/i),u=vc([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&n&&x(-c/i,0,i);var g=r[0],y=r[i-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_);function S(){m=g.rect[o]-e,_=a-y.rect[o]-y.rect[s]}function b(C,M,D){if(C<0){var I=Math.min(M,-C);if(I>0){x(I*D,0,i);var L=I+C;L<0&&w(-L*D,1)}else w(-C*D,1)}}function x(C,M,D){C!==0&&(f=!0);for(var I=M;I0)for(var L=0;L0;L--){var O=D[L-1]*P;x(-O,L,i)}}}function T(C){var M=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(i-1)),I=0;I0?x(D,0,I+1):x(-D,i-I-1,i),C-=D,C<=0)return}return f}function Q3(r){for(var t=0;t=0&&a.attr(i.oldLayoutSelect),bt(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Ot(a,u,e,l)}else if(a.attr(u),!Gs(a).valueAnimation){var c=nt(a.style.opacity,1);a.style.opacity=0,Jt(a,{style:{opacity:c}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};Rf(h,u,Ef),Rf(h,a.states.select,Ef)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};Rf(d,u,Ef),Rf(d,a.states.emphasis,Ef)}ZD(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=rH(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Ot(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Jt(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const nH=aH;var Fd=Mt();function iH(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=Fd(e).labelManager;n||(n=Fd(e).labelManager=new nH),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=Fd(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Hd=Math.sin,Wd=Math.cos,yI=Math.PI,Ci=Math.PI*2,oH=180/yI,sH=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){this._add("C",t,e,a,n,i,o)},r.prototype.quadraticCurveTo=function(t,e,a,n){this._add("Q",t,e,a,n)},r.prototype.arc=function(t,e,a,n,i,o){this.ellipse(t,e,a,a,0,n,i,o)},r.prototype.ellipse=function(t,e,a,n,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),v=Pn(c-Ci)||(f?u>=Ci:-u>=Ci),h=u>0?u%Ci:u%Ci+Ci,d=!1;v?d=!0:Pn(c)?d=!1:d=h>=yI==!!f;var p=t+a*Wd(o),g=e+n*Hd(o);this._start&&this._add("M",p,g);var y=Math.round(i*oH);if(v){var m=1/this._p,_=(f?1:-1)*(Ci-m);this._add("A",a,n,y,1,+f,t+a*Wd(o+_),e+n*Hd(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=t+a*Wd(s),b=e+n*Hd(s);this._add("A",a,n,y,+d,+f,S,b)}},r.prototype.rect=function(t,e,a,n){this._add("M",t,e),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,n,i,o,s,l,u){for(var f=[],c=this._p,v=1;v"}function gH(r){return""}function P0(r,t){t=t||{};var e=t.newline?` +`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return pH(o,s)+(o!=="style"?Ye(l):l||"")+(i?""+e+Y(i,function(u){return a(u)}).join(e)+e:"")+gH(o)}return a(r)}function yH(r,t,e){e=e||{};var a=e.newline?` +`:"",n=" {"+a,i=a+"}",o=Y(It(r),function(l){return l+n+Y(It(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=Y(It(t),function(l){return"@keyframes "+l+n+Y(It(t[l]),function(u){return u+n+Y(It(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":[""].join(a)}function wy(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Fx(r,t,e,a){return Le("svg","root",{width:r,height:t,xmlns:_I,"xmlns:xlink":SI,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var mH=0;function bI(){return mH++}var Hx={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"},Di="transform-origin";function _H(r,t,e){var a=$({},r.shape);$(a,t),r.buildPath(e,a);var n=new mI;return n.reset(TM(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function SH(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[Di]=e+"px "+a+"px")}var xH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function wI(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function bH(r,t,e){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=wy(e.zrId);u.animation=!0,mh(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=It(f),h=v.length;if(h){o=v[h-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=wI(n,e);return i.replace(o,s)}}function Wx(r){return Q(r)?Hx[r]?"cubic-bezier("+Hx[r]+")":Mm(r)?r:"":""}function mh(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof ih){var s=bH(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var St=wI(w,e);return St+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+bI();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function wH(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};$x(a,t,e,!0)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=bg(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),$x(a,t,e,!0)}}function $x(r,t,e,a){var n=JSON.stringify(r),i=e.cssStyleCache[n];i||(i=e.zrId+"-cls-"+bI(),e.cssStyleCache[n]=i,e.cssNodes["."+i+(a?":hover":"")]=r),t.class=t.class?t.class+" "+i:i}var bu=Math.round;function TI(r){return r&&Q(r.src)}function CI(r){return r&&ot(r.toDataURL)}function k0(r,t,e,a){vH(function(n,i){var o=n==="fill"||n==="stroke";o&&wM(i)?MI(t,r,n,a):o&&Dm(i)?DI(e,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),IH(e,r,a)}function R0(r,t){var e=AN(t);e&&(e.each(function(a,n){a!=null&&(r[(Gx+n).toLowerCase()]=a+"")}),t.isSilent()&&(r[Gx+"silent"]="true"))}function Ux(r){return Pn(r[0]-1)&&Pn(r[1])&&Pn(r[2])&&Pn(r[3]-1)}function TH(r){return Pn(r[4])&&Pn(r[5])}function E0(r,t,e){if(t&&!(TH(t)&&Ux(t))){var a=e?10:1e4;r.transform=Ux(t)?"translate("+bu(t[4]*a)/a+" "+bu(t[5]*a)/a+")":UO(t)}}function Yx(r,t,e){for(var a=r.points,n=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";qe(v,g),qe(h,g)}else if(v==null||h==null){var y=function(M,D){if(M){var I=M.elm,L=v||D.width,k=h||D.height;M.tag==="pattern"&&(u?(k=1,L/=i.width):f&&(L=1,k/=i.height)),M.attrs.width=L,M.attrs.height=k,I&&(I.setAttribute("width",L),I.setAttribute("height",k))}},m=Om(d,null,r,function(M){l||y(x,M),y(c,M)});m&&m.width&&m.height&&(v=v||m.width,h=h||m.height)}c=Le("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else n.svgElement&&(c=st(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=CM(n);b&&(o.patternTransform=b);var x=Le("pattern","",o,[c]),w=P0(x),T=a.patternCache,C=T[w];C||(C=a.zrId+"-p"+a.patternIdx++,T[w]=C,o.id=C,x=a.defs[C]=Le("pattern",C,o,[c])),t[e]=Zv(C)}}function PH(r,t,e){var a=e.clipPathCache,n=e.defs,i=a[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=Le("clipPath",i,o,[AI(r,e)])}t["clip-path"]=Zv(i)}function qx(r){return document.createTextNode(r)}function Oi(r,t,e){r.insertBefore(t,e)}function Kx(r,t){r.removeChild(t)}function jx(r,t){r.appendChild(t)}function LI(r){return r.parentNode}function II(r){return r.nextSibling}function $d(r,t){r.textContent=t}var Jx=58,kH=120,RH=Le("","");function Ty(r){return r===void 0}function ya(r){return r!==void 0}function EH(r,t,e){for(var a={},n=t;n<=e;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function Ol(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function wu(r){var t,e=r.children,a=r.tag;if(ya(a)){var n=r.elm=xI(a);if(O0(RH,r),U(e))for(t=0;ti?(d=e[l+1]==null?null:e[l+1].elm,PI(r,d,e,n,l)):dv(r,t,a,i))}function as(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(O0(r,t),Ty(t.text)?ya(a)&&ya(n)?a!==n&&OH(e,a,n):ya(n)?(ya(r.text)&&$d(e,""),PI(e,null,n,0,n.length-1)):ya(a)?dv(e,a,0,a.length-1):ya(r.text)&&$d(e,""):r.text!==t.text&&(ya(a)&&dv(e,a,0,a.length-1),$d(e,t.text)))}function NH(r,t){if(Ol(r,t))as(r,t);else{var e=r.elm,a=LI(e);wu(t),a!==null&&(Oi(a,t.elm,II(e)),dv(a,[r],0,0))}return t}var BH=0,zH=function(){function r(t,e,a){if(this.type="svg",this.refreshHover=Qx(),this.configLayer=Qx(),this.storage=e,this._opts=a=$({},a),this.root=t,this._id="zr"+BH++,this._oldVNode=Fx(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=xI("svg");O0(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",NH(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Xx(t,wy(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=wy(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=VH(a,n,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Le("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=Y(It(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(Le("defs","defs",{},u)),t.animation){var f=yH(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=Le("style","stl",{},[],f);o.push(c)}}return Fx(a,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},P0(this.renderToVNode({animation:nt(t.cssAnimation,!0),emphasis:nt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:nt(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var n=t.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y=s)}}for(var c=this.__startIndex;c15)break}}k.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=h.dpr,D=0;D0&&t>n[0]){for(l=0;lt);l++);s=a[n[l]]}if(n.splice(l+1,0,t),a[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var a=this._zlevelList,n=0;n0?Of:0),this._needsManuallyCompositing),f.__builtin__||Sm("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),n.__dirty&mr&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(c,v){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?wt(a[t],e,!0):a[t]=e;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill=G.color.neutral00,u.style.lineWidth=2),a},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},t}(ee);const KH=qH;function Ms(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=ws(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(t[i])}return a.join(" ")}var jH=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o,s){this.removeAll();var l=me(e,-1,-1,2,2,null,s);l.attr({z2:nt(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=JH,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){rn(this.childAt(0))},t.prototype.downplay=function(){an(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var v=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Ot(h,d,s,a),Fr(h)}if(this._updateCommon(e,a,l,n,i),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Jt(h,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,v,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,v=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=Te(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=So(e.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(a,"style"),w=x.fill;if(s instanceof We){var T=s.style;s.useStyle($({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle($({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Ie(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(R){return D?e.getName(R):Ms(e,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*k,L.scaleY=this._sizeY*k,this.setSymbolScale(1),Qt(this,v,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=dt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Wn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Wn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Us(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t}(lt);function JH(r,t){this.parent.drift(r,t)}const Wu=jH;function Yd(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function rb(r){return r!=null&&!vt(r)&&(r={isIgnore:r}),r||{}}function ab(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Te(t),cursorStyle:t.get("cursor")}}var QH=function(){function r(t){this.group=new lt,this._SymbolCtor=t||Wu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=rb(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=ab(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||a.removeAll(),t.diff(i).add(function(c){var v=f(c);if(Yd(t,v,c,e)){var h=new o(t,c,l,u);h.setPosition(v),t.setItemGraphicEl(c,h),a.add(h)}}).update(function(c,v){var h=i.getItemGraphicEl(v),d=f(c);if(!Yd(t,d,c,e)){a.remove(h);return}var p=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)a.remove(h),h=new o(t,c,l,u),h.setPosition(d);else{h.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):Ot(h,y,n)}a.add(h),t.setItemGraphicEl(c,h)}).remove(function(c){var v=i.getItemGraphicEl(c);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ab(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=rb(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=a[0]:a[1]<0&&(e=a[1]),e}function EI(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function e4(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function r4(r,t,e,a,n,i,o,s){for(var l=e4(r,t),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=RI(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=n||p<0)break;if(to(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),c=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],w=t[b*2+1];x===y&&w===m&&g=a||to(x,w))h=y,d=m;else{M=x-u,D=w-f;var k=y-u,R=x-y,P=m-f,O=w-m,E=void 0,B=void 0;if(s==="x"){E=Math.abs(k),B=Math.abs(R);var V=M>0?1:-1;h=y-V*E*o,d=m,I=y+V*B*o,L=m}else if(s==="y"){E=Math.abs(P),B=Math.abs(O);var H=D>0?1:-1;h=y,d=m-H*E*o,I=y,L=m+H*B*o}else E=Math.sqrt(k*k+P*P),B=Math.sqrt(R*R+O*O),C=B/(B+E),h=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=mn(I,_n(x,y)),L=mn(L,_n(w,m)),I=_n(I,mn(x,y)),L=_n(L,mn(w,m)),M=I-y,D=L-m,h=y-M*E/B,d=m-D*E/B,h=mn(h,_n(u,y)),d=mn(d,_n(f,m)),h=_n(h,mn(u,y)),d=_n(d,mn(f,m)),M=y-h,D=m-d,I=y+M*B/E,L=m+D*B/E}r.bezierCurveTo(c,v,h,d,y,m),c=I,v=L}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var OI=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),a4=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new OI},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&to(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[e,S]:[S,e]}s=h,l=d;break;case o.C:h=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++],m=i[c++];var b=u?Bc(s,h,p,y,e,f):Bc(l,d,g,m,e,f);if(b>0)for(var x=0;x=0){var S=u?De(l,d,g,m,w):De(s,h,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Dt),n4=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(OI),NI=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new n4},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&to(n[s*2-2],n[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function s4(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=Y(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=o4(u,n==="x"?e.getWidth():e.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,y=g-p;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var m=new zs(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function l4(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&u4(i,t))){var o=t.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function u4(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function f4(r,t){return isNaN(r)||isNaN(t)}function c4(r){for(var t=r.length/2;t>0&&f4(r[t*2-2],r[t*2-1]);t--);return t-1}function lb(r,t){return[r[t*2],r[t*2+1]]}function v4(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function VI(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}dt(d).seriesIndex=e.seriesIndex,Qt(d,P,O,E);var V=sb(e.get("smooth")),H=e.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:H,connectNulls:w}),p){var W=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(ct(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&(X=sb(W.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:X,smoothMonotone:H,connectNulls:w}),we(p,e,"areaStyle"),dt(p).seriesIndex=e.seriesIndex,Qt(p,P,O,E)}var K=this._changePolyState;s.eachItemGraphicEl(function(q){q&&(q.onHoverStateChange=K)}),this._polyline.onHoverStateChange=K,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,a){dt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=no(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=e.get("zlevel")||0,h=e.get("z")||0;u=new Wu(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Xt.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=no(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Xt.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Xc(this._polyline,e),a&&Xc(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new a4({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new NI({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");ot(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=ot(c)?c(null):c;e.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=h.x):(y=x.y+x.height,m=x.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=ot(c)?c(d):f*w+v,C=p.getSymbolPath(),M=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(VI(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Et({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=c4(l);f>=0&&(Ie(s,Te(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?kI(o,h):Ms(o,c)},enableTextSetter:!0},h4(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=n.getLayout("points"),v=n.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=v4(c,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!h){var I=lb(c,C[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(D=v.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=v.getRawValue(C[0]),k=v.getRawValue(C[1]);o&&(D=ZM(n,d,L,k,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,I=lb(c,R);o&&(D=v.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var P=Gs(u);typeof P.setLabelText=="function"&&P.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,v=r4(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=Sn(v.stackedOnCurrent,v.current,n,o,l),h=Sn(v.current,null,n,o,l),g=Sn(v.stackedOnNext,v.next,n,o,l),p=Sn(v.next,null,n,o,l)),ob(h,p)>3e3||f&&ob(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:p}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),Ot(u,y,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Ot(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var d=void 0;Q(i)?d=g4[i]:ot(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,y4))}}}}}function m4(r){r.registerChartView(p4),r.registerSeriesModel(KH),r.registerLayout(Yu("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,GI("line"))}var FI=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return cn(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(v,h){if(v.type==="category"&&a!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[h],y=a[h]==="x1"||a[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;bg){_=(x+m)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},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}(ee);ee.registerClass(FI);const pv=FI;var _4=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return cn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ti(pv.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:G.color.primary,borderWidth:2}},realtimeSort:!1}),t}(pv);const S4=_4;var x4=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),b4=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new x4},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,c=a.endAngle,v=a.clockwise,h=Math.PI*2,d=v?c-fMath.PI/2&&fs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){qa(i,e,dt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Xt),ub={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=Xd(t.x,r.x),s=qd(t.x+t.width,n),l=Xd(t.y,r.y),u=qd(t.y+t.height,i),f=sn?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=qd(t.r,r.r),i=Xd(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},fb={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new At({shape:$({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?gv:nr,f=new u({shape:a,z2:1});f.name="item";var c=HI(n);if(f.calculateTextPosition=w4(c,{isRoundCap:u===gv}),i){var v=f.shape,h=n?"r":"endAngle",d={};v[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?Ot:Jt)(f,{shape:d},i)}return f}};function M4(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function cb(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Ot:Jt)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?Ot:Jt)(e,{shape:u},f,n)}function vb(r,t){for(var e=0;e0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function I4(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function HI(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function db(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=Aa(a.getModel("itemStyle"),f,!0);$(f,c),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Te(a);Ie(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Ms(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,T4(r,g==="outside"?h:g,HI(o),a.get(["label","rotate"]))}YD(p,d,i.getRawValue(e),function(m){return kI(t,m)});var y=a.getModel(["emphasis"]);Qt(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),we(r,a),I4(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function P4(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var k4=function(){function r(){}return r}(),pb=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new k4},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function R4(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function WI(r,t,e){if(Yn(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function E4(r,t,e){var a=r.type==="polar"?nr:At;return new a({shape:WI(t,e,r),silent:!0,z2:0})}const O4=A4;function N4(r){r.registerChartView(O4),r.registerSeriesModel(S4),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(W2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$2("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,GI("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var mb=Math.PI*2,Vf=Math.PI/180;function B4(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=hL(a,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,v=-a.get("startAngle")*Vf,h=a.get("endAngle"),d=a.get("padAngle")*Vf;h=h==="auto"?v-mb:-h*Vf;var p=a.get("minAngle")*Vf,g=p+d,y=0;n.each(i,function(O){!isNaN(O)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=S?1:-1,C=[v,h],M=T*d/2;Qv(C,!S),v=C[0],h=C[1];var D=$I(a);D.startAngle=v,D.endAngle=h,D.clockwise=S,D.cx=s,D.cy=l,D.r=u,D.r0=f;var I=Math.abs(h-v),L=I,k=0,R=v;if(n.setLayout({viewRect:c,r:u}),n.each(i,function(O,E){var B;if(isNaN(O)){n.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});return}b!=="area"?B=m===0&&x?_:O*_:B=I/y,BB?(H=R+T*B/2,W=H):(H=R+M,W=V-M),n.setItemLayout(E,{angle:B,startAngle:H,endAngle:W,clockwise:S,cx:s,cy:l,r0:f,r:b?Ft(O,w,[f,u]):u}),R=V}),Le?y:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*n,w=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;a.setStyle("width",h)}YI(i,a)}}}function YI(r,t){Sb.rect=r,pI(Sb,t,G4)}var G4={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Sb={};function Kd(r){return r.position==="center"}function F4(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*z4,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),P=J(I.get("edgeDistance"),u),O=I.get("bleedMargin");O==null&&(O=Math.min(u,v)>200?10:2);var E=D.getModel("labelLine"),B=E.get("length");B=J(B,u);var V=E.get("length2");if(V=J(V,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":W>0?"left":"right"}var mt=Math.PI,Pt=0,Lt=I.get("rotate");if(kt(Lt))Pt=Lt*(mt/180);else if(L==="center")Pt=0;else if(Lt==="radial"||Lt===!0){var qt=W<0?-H+mt:-H;Pt=qt}else if(Lt==="tangential"&&L!=="outside"&&L!=="outer"){var ie=Math.atan2(W,X);ie<0&&(ie=mt*2+ie);var Be=X>0;Be&&(ie=mt+ie),Pt=ie-mt}if(i=!!Pt,C.x=K,C.y=q,C.rotation=Pt,C.setStyle({verticalAlign:"middle"}),at){C.setStyle({align:St});var vr=C.states.select;vr&&(vr.x+=C.x,vr.y+=C.y)}else{var ze=new ht(0,0,0,0);YI(ze,C),e.push({label:C,labelLine:M,position:L,len:B,len2:V,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new ft(W,X),linePoints:it,textAlign:St,labelDistance:k,labelAlignTo:R,edgeDistance:P,bleedMargin:O,rect:ze,unconstrainedWidth:ze.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:at})}}),!i&&r.get("avoidLabelOverlap")&&V4(e,a,n,l,u,v,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=i.r0}},t.type="pie",t}(Xt);const $4=W4;function Xs(r,t,e){t=U(t)&&{coordDimensions:t}||$({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=Fu(a,t).dimensions,i=new rr(n,r);return i.initData(a,e),i}var U4=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}();const qs=U4;var Y4=Mt(),ZI=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new qs(tt(this.getData,this),tt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Xs(this,{coordDimensions:["value"],encodeDefaulter:xt(s0,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=Y4(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=PN(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){ao(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",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}(ee);LV({fullType:ZI.type,getCoord2:function(r){return r.getShallow("center")}});const Z4=ZI;function X4(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(kt(o)&&!isNaN(o)&&o<0)})}}}function q4(r){r.registerChartView($4),r.registerSeriesModel(Z4),o2("pie",r.registerAction),r.registerLayout(xt(B4,"pie")),r.registerProcessor(Zs("pie")),r.registerProcessor(X4("pie"))}var K4=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return cn(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},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:G.color.primary}},universalTransition:{divideShape:"clone"}},t}(ee);const j4=K4;var XI=4,J4=function(){function r(){}return r}(),Q4=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new J4},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var f=u*2,c=i[f]-s/2,v=i[f+1]-l/2;if(e>=c&&a>=v&&e<=c+s&&a<=v+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,v=0;v=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const eW=tW;var rW=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Yu("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new eW:new $u,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Xt);const aW=rW;var qI={left:0,right:0,top:0,bottom:0},yv=["25%","25%"],nW=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=mo(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&Oa(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Oa(this.option.outerBounds,e.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:qI,outerBoundsContain:"all",outerBoundsClampWidth:yv[0],outerBoundsClampHeight:yv[1],backgroundColor:G.color.transparent,borderWidth:1,borderColor:G.color.neutral30},t}(Rt);const iW=nW;var Ay=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ne).models[0]},t.type="cartesian2dAxis",t}(Rt);_e(Ay,Hu);var KI={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:!0,onZeroAxisIndex:null,lineStyle:{color:G.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:G.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:G.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[G.color.backgroundTint,G.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:G.color.neutral00,borderColor:G.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},oW=wt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},KI),N0=wt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:G.color.axisMinorSplitLine,width:1}}},KI),sW=wt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},N0),lW=ct({logBase:10},N0);const jI={category:oW,value:N0,time:sW,log:lW};var uW={value:1,category:1,time:1,log:1},My=null;function fW(r){My||(My=r)}function Zu(){return My}function Ds(r,t,e,a){A(uW,function(n,i){var o=wt(wt({},jI[i],!0),a,!0),s=function(l){z(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=hu(this),h=v?mo(f):{},d=c.getTheme();wt(f,d.get(i+"Axis")),wt(f,this.getDefaultOption()),f.type=xb(f),v&&Oa(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=_u.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Zu();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",xb)}function xb(r){return r.type||(r.data?"category":"value")}var cW=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ht(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const vW=cW;var Dy=["x","y"];function bb(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var hW=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Dy,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!bb(e)||!bb(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-n[0]*f,h=o[1]-i[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=ea([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new ht(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ce(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a,n){if(n=n||[],this._invTransform)return ce(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new ht(i,o,s,l)},t}(vW),dW=function(r){z(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(oa);const JI=dW;var _h="expandAxisBreak",QI="collapseAxisBreak",tP="toggleAxisBreak",B0="axisbreakchanged",pW={type:_h,event:B0,update:"update",refineEvent:z0},gW={type:QI,event:B0,update:"update",refineEvent:z0},yW={type:tP,event:B0,update:"update",refineEvent:z0};function z0(r,t,e,a){var n=[];return A(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function mW(r){r.registerAction(pW,t),r.registerAction(gW,t),r.registerAction(yW,t);function t(e,a){var n=[],i=ps(a,e);function o(s,l){A(i[s],function(u){var f=u.updateAxisBreaks(e);A(f.breaks,function(c){var v;n.push(ct((v={},v[l]=u.componentIndex,v),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var kn=Math.PI,_W=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],SW=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ls=Mt(),eP=Mt(),rP=function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,n=this.recordMap,i=n[e]||(n[e]=[]);return i[a]||(i[a]={ready:{}})},r}();function xW(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=V0(r.axisName)&&As(r.nameLocation);A(a,function(d){var p=Na(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?ea(vl,g.transform):Uv(vl),p.transform&&Ma(vl,vl,p.transform),ht.copy(Gf,p.localRect),Gf.applyTransform(vl),s?s.union(Gf):ht.copy(s=new ht(0,0,0,0),Gf))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=n.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new ht(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var vl=Oe(),Gf=new ht(0,0,0,0),aP=function(r,t,e,a,n,i){if(As(r.nameLocation)){var o=i.stOccupiedRect;o&&nP(J3({},o,i.transGroup.transform),a,n)}else iP(i.labelInfoList,i.dirVec,a,n)};function nP(r,t,e){var a=new ft;yh(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&_y(t,a)}function iP(r,t,e,a){for(var n=ft.dot(a,t)>=0,i=0,o=r.length;i0?"top":"bottom",i="center"):ou(n-kn)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),bW=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],wW={axisLine:function(r,t,e,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(ce(f,f,u),ce(c,c,u));var h=$({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())Zu().buildAxisBreakLine(a,n,i,d);else{var p=new be($({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));bs(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var g=a.get(["axisLine","symbol"]);if(g!=null){var y=a.get(["axisLine","symbolSize"]);Q(g)&&(g=[g,g]),(Q(y)||kt(y))&&(y=[y,y]);var m=So(a.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];A([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(g[x]!=="none"&&g[x]!=null){var w=me(g[x],-_/2,-S/2,_,S,h.stroke,!0),T=b.r+b.offset,C=v?c:f;w.attr({rotation:b.rotate,x:C[0]+T*Math.cos(r.rotation),y:C[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(r,t,e,a,n,i,o,s){var l=Tb(t,n,s);l&&wb(r,t,e,a,n,i,o,aa.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=Tb(t,n,s);l&&wb(r,t,e,a,n,i,o,aa.determine);var u=MW(r,n,i,a);AW(r,t.labelLayoutList,u),DW(r,n,i,a,r.tickDirection)},axisName:function(r,t,e,a,n,i,o,s){var l=e.ensureRecord(a);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(V0(u)){var f=r.nameLocation,c=r.nameDirection,v=a.getModel("nameTextStyle"),h=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,g=new ft(0,0),y=new ft(0,0);f==="start"?(g.x=d[0]-p*h,y.x=-p):f==="end"?(g.x=d[1]+p*h,y.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+c*h,y.y=c);var m=Oe();y.transform(jn(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*kn/180);var S,b;As(f)?S=eo.innerTextLayout(r.rotation,_??r.rotation,c):(S=TW(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=v.getFont(),w=a.get("nameTruncate",!0)||{},T=w.ellipsis,C=Fe(r.raw.nameTruncateMaxWidth,w.maxWidth,b),M=s.nameMarginLevel||0,D=new Et({x:g.x,y:g.y,rotation:S.rotation,silent:eo.isLabelSilent(a),style:Zt(v,{text:u,font:x,overflow:"truncate",width:C,ellipsis:T,fill:v.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(fn({el:D,componentModel:a,itemName:u}),D.__fullText=u,D.anid="name",a.get("triggerEvent")){var I=eo.makeAxisEventDataBase(a);I.targetType="axisName",I.name=u,dt(D).eventData=I}i.add(D),D.updateTransform(),t.nameEl=D;var L=l.nameLayout=Na({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:As(f)?_W[M]:SW[M]});if(l.nameLocation=f,n.add(D),D.decomposeTransform(),r.shouldNameMoveOverlap&&L){var k=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,L,y,k)}}}};function wb(r,t,e,a,n,i,o,s){sP(t)||LW(r,t,n,s,a,o);var l=t.labelLayoutList;IW(r,a,l,i),RW(a,r.rotation,l);var u=r.optionHideOverlap;CW(a,l,u),u&&gI(Ht(l,function(f){return f&&!f.label.ignore})),xW(r,e,a,l)}function TW(r,t,e,a){var n=NM(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return ou(n-kn/2)?(o=l?"bottom":"top",i="center"):ou(n-kn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nkn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function CW(r,t,e){if(Q2(r.axis))return;function a(s,l,u){var f=Na(t[l]),c=Na(t[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){Nl(f.label);return}if(c.suggestIgnore){Nl(c.label);return}var v=.1;if(!e){var h=[0,0,0,0];f=Sy({marginForce:h},f),c=Sy({marginForce:h},c)}yh(f,c,null,{touchThreshold:v})&&Nl(s?c.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=t.length;a(n,0,1),a(i,o-1,o-2)}function AW(r,t,e){r.showMinorTicks||A(t,function(a){if(a&&a.label.ignore)for(var n=0;nu[0]&&isFinite(d)&&isFinite(u[0]);)h=Od(h),d=u[1]-h*o;else{var g=r.getTicks().length-1;g>o&&(h=Od(h));var y=h*o;p=Math.ceil(u[1]/h)*h,d=de(p-y),d<0&&u[0]>=0?(d=0,p=de(y)):p>0&&u[1]<=0&&(p=0,d=-de(y))}var m=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+h*m,p+h*_),a.setInterval.call(r,h),(m||_)&&a.setNiceExtent.call(r,d+h,p-h)}var Ab=[[3,1],[0,2]],BW=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Dy,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=It(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var v=+l[c],h=o[v],d=h.model,p=h.scale;dy(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(Cs(p,d),dy(p)&&(s=h))}f.length&&(s||(s=f.pop(),Cs(s.scale,s.model)),A(f,function(g){lP(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){Mb(a,"y",o,i)}),A(a.y,function(o){Mb(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=Ce(t,e),i=this._rect=te(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Iy(o,i),!a){var u=GW(i,s,o,l,e),f=void 0;if(l)Py?(Py(this._axesList,i),Iy(o,i)):f=Ib(i.clone(),"axisLabel",null,i,o,u,n);else{var c=FW(t,i,n),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=Ib(v,h,d,i,o,u,n))}uP(i,o,aa.determine,null,f,n)}A(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}vt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n0})==null;return so(a,s,!0,!0,e),Iy(n,a),l;function u(v){A(n[gt[v]],function(h){if(xu(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g0&&!Ze(h)&&h>1e-4&&(v/=h),v}}function GW(r,t,e,a,n){var i=new rP(HW);return A(e,function(o){return A(o,function(s){if(xu(s.model)){var l=!a;s.axisBuilder=OW(r,t,s.model,n,i,l)}})}),i}function uP(r,t,e,a,n,i){var o=e===aa.determine;A(t,function(u){return A(u,function(f){xu(f.model)&&(NW(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[gt[1-u]]=r[ge[u]]<=i.refContainer[ge[u]]*.5?0:1-u===1?2:1}A(t,function(u,f){return A(u,function(c){xu(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function FW(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=te(r.get("outerBounds",!0)||qI,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||bt(["all","axisLabel"],i)<0?o="all":o=i;var s=[$c(nt(r.get("outerBoundsClampWidth",!0),yv[0]),t.width),$c(nt(r.get("outerBoundsClampHeight",!0),yv[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var HW=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";aP(r,t,e,a,n,i),As(r.nameLocation)||A(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&iP(s.labelInfoList,s.dirVec,a,n)})};const WW=BW;function $W(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return UW(e,r,t),e.seriesInvolved&&ZW(e,r),e}function UW(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Tu(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(A(s.getAxes(),xt(p,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&A(d.baseAxes,xt(p,h?"cross":!0,v)),h&&A(d.otherAxes,xt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!ky(_))){y==null&&(y=_.get("triggerTooltip")),_=g?YW(m,c,n,t,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=Tu(m.model),T=y||b||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:ky(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||T;var M=XW(i,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[w]=C,D.mapper=i[M].mapper,C.linkGroup=D}}}})}function YW(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(v){l[v]=st(o.get(v))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&ct(u,c.textStyle)}}return r.model.getModel("axisPointer",new Nt(l,e,a))}function ZW(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[Tu(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function XW(r,t){for(var e=t.model,a=t.dim,n=0;n=0||r===t}function qW(r){var t=G0(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=ky(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0;return o&&s}var a$=Mt();function Rb(r,t,e,a){if(r instanceof JI){var n=r.scale.type;if(n!=="category"&&n!=="ordinal")return e}var i=r.model,o=i.get("jitter"),s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=r.scale.type==="ordinal"?r.getBandWidth():null;return o>0?s?pP(e,o,u,a):n$(r,t,e,a,o,l):e}function pP(r,t,e,a){if(e===null)return r+(Math.random()-.5)*t;var n=e-a*2,i=Math.min(Math.max(0,t),n);return r+(Math.random()-.5)*i}function n$(r,t,e,a,n,i){var o=a$(r);o.items||(o.items=[]);var s=o.items,l=Eb(s,t,e,a,n,i,1),u=Eb(s,t,e,a,n,i,-1),f=Math.abs(l-e)n/2||c&&v>c/2-a?pP(e,n,c,a):(s.push({fixedCoord:t,floatCoord:f,r:a}),f)}function Eb(r,t,e,a,n,i,o){for(var s=e,l=0;ln/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=ct({color:d.color},l));var g=wt(st(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:v},!1);if(Q(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else ot(f)&&(g.name=f(g.name,g));var m=new Nt(g,null,this.ecModel);return _e(m,Hu.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:G.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:wt({lineStyle:{color:G.color.neutral20}},hl.axisLine),axisLabel:Ff(hl.axisLabel,!1),axisTick:Ff(hl.axisTick,!1),splitLine:Ff(hl.splitLine,!0),splitArea:Ff(hl.splitArea,!0),indicator:[]},t}(Rt);const p$=d$;var g$=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=Y(i,function(s){var l=s.model.get("showName")?s.name:"",u=new on(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=U(v)?v:[v],p=U(h)?h:[h],g=[],y=[];function m(R,P,O){var E=O%P.length;return R[E]=R[E]||[],E}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(g,d,x);g[w].push(new Jn({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,p,x);y[w].push(new ah({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=Y(n,function(R,P){var O=R.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),Y(O,function(E){return a.coordToPoint(E.coord,P)})}),M=[],x=0;x<=T;x++){for(var D=[],I=0;I3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(i),v=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Bb(this._zr,"globalPan")||dl(e))){var a=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,a,n,i,o){e._checkPointer(i,o.originX,o.originY)&&(tn(i.event),i.__ecRoamConsumed=!0,zb(e,a,n,i,o))},t}(Hr);function dl(r){return r.__ecRoamConsumed}var D$=Mt();function Sh(r){var t=D$(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function pl(r,t,e,a){for(var n=Sh(r),i=n.roam,o=i[t]=i[t]||[],s=0;s=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(c=xP(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var h=n;n=new lt,n.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return!e.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new At({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(t,e,a,n,i,o){var s=t.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=Qd[s];if(f&&et(Qd,s)){l=f.call(this,t,e);var c=t.getAttribute("name");if(c){var v={name:c,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});e.add(l)}}var h=Hb[s];if(h&&et(Hb,s)){var d=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var a=new lu({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ar(e,a),hr(t,a,this._defsUsePending,!1,!1),k$(a,e);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a},r.internalField=function(){Qd={g:function(t,e){var a=new lt;return Ar(e,a),hr(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new At;return Ar(e,a),hr(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new Jn;return Ar(e,a),hr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new be;return Ar(e,a),hr(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new $m;return Ar(e,a),hr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Ub(a));var i=new ir({shape:{points:n||[]},silent:!0});return Ar(e,i),hr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Ub(a));var i=new Ke({shape:{points:n||[]},silent:!0});return Ar(e,i),hr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new We;return Ar(e,a),hr(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new lt;return Ar(e,s),hr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new lt;return Ar(e,s),hr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",n=bD(a);return Ar(e,n),hr(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),Hb={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new zs(t,e,a,n);return Wb(r,i),$b(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new OD(t,e,a);return Wb(r,n),$b(r,n),n}};function Wb(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function $b(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};SP(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000",s=i.stopOpacity||e.getAttribute("stop-opacity");if(s){var l=fr(o),u=l&&l[3];u&&(l[3]*=Nn(s),o=Da(l,"rgba"))}t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function Ar(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),ct(t.__inheritedStyle,r.__inheritedStyle))}function Ub(r){for(var t=bh(r),e=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=bh(o);switch(n=n||Oe(),s){case"translate":ka(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Cm(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":jn(n,n,-parseFloat(l[0])*tp,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*tp);Ma(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*tp);Ma(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var Zb=/([^\s:;]+)\s*:\s*([^:;]+)/g;function SP(r,t,e){var a=r.getAttribute("style");if(a){Zb.lastIndex=0;for(var n;(n=Zb.exec(a))!=null;){var i=n[1],o=et(_v,i)?_v[i]:null;o&&(t[o]=n[2]);var s=et(Sv,i)?Sv[i]:null;s&&(e[s]=n[2])}}}function z$(r,t,e){for(var a=0;a0,m={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,g,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=rt(),a=rt(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(h,d){return d&&(h=d(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function c(h){for(var d=[],p=!u&&l&&l.project,g=0;g=0)&&(v=n);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Ie(t,Te(a),{labelFetcher:v,labelDataIndex:c,defaultText:e},h);var d=t.getTextContent();if(d&&(bP(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Jb(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):dt(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function Qb(r,t,e,a,n){r.data||fn({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function tw(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Qt(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&cz(t,n,e),o}function ew(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill=G.color.neutral00,n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:G.color.tertiary},itemStyle:{borderWidth:.5,borderColor:G.color.border,areaColor:G.color.background},emphasis:{label:{show:!0,color:G.color.primary},itemStyle:{areaColor:G.color.highlight}},select:{label:{show:!0,color:G.color.primary},itemStyle:{color:G.color.highlight}},nameProperty:"name"},t}(ee);const o8=i8;function s8(r,t){var e={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,f=0;f1?(_.width=m,_.height=m/p):(_.height=m,_.width=m*p),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var S=r.getBoxLayoutParams();S.aspect=p,_=te(S,d),_=dL(r,_,p)}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function v8(r,t){A(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var h8=function(){function r(){this.dimensions=TP}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new iw(l+s,l,$({nameMap:o.get("nameMap"),api:e,ecModel:t},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=ow,u.resize(o,e)}),t.eachSeries(function(o){zu({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",ne).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=Y(o,function(f){return f.get("nameMap")}),u=new iw(s,s,$({nameMap:xm(l),api:e,ecModel:t},n(o[0])));u.zoomLimit=Fe.apply(null,Y(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=ow,u.resize(o[0],e),A(o,function(f){f.coordinateSystem=u,v8(u,f)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=rt(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function b8(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){T8(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=C8(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function w8(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function sw(r){return arguments.length?r:D8}function Bl(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function T8(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function C8(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=ep(s),i=rp(i),s&&i;){n=ep(n),o=rp(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+c-i.hierNode.prelim-u+a(s,i);v>0&&(M8(A8(s,r,e),r,v),u+=v,l+=v),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!ep(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=c-l),i&&!rp(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function ep(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function rp(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function A8(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function M8(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function D8(r,t){return r.parentNode===t.parentNode?1:2}var L8=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),I8=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new L8},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,v=J(a.forkPosition,1),h=[];h[f]=o[f],h[c]=o[c]+(l[c]-o[c])*v,e.moveTo(o[0],o[1]),e.lineTo(h[0],h[1]),e.moveTo(s[0],s[1]),h[f]=s[f],e.lineTo(h[0],h[1]),h[f]=l[f],e.lineTo(h[0],h[1]),e.lineTo(l[0],l[1]);for(var d=1;dm.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?ru(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(dt(e).focus=L),k8(n,o,f,e,d,h,p,a),e.__edge&&(e.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Eu||Xc(e.__edge,k)}})}function k8(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),v=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=a.__edge=new nh({shape:Oy(f,c,v,n,n)})),Ot(p,{shape:Oy(f,c,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;me&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var a=e.getData().tree.root,n=r.targetNode;if(Q(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function PP(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function X0(r,t){var e=PP(r);return bt(e,t)>=0}function wh(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var W8=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{},i=new Nt(n,this,this.ecModel),o=Z0.createTree(a,this,s);function s(c){c.wrapMethod("getItemModel",function(v,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var v=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=v&&v.collapsed!=null?!v.collapsed:c.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ye("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=wh(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:G.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(ee);const $8=W8;function U8(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)e.push(n[i])}}function Y8(r,t){r.eachSeriesByType("tree",function(e){Z8(e,t)})}function Z8(r,t){var e=Ce(r,t).refContainer,a=te(r.getBoxLayoutParams(),e);r.layoutInfo=a;var n=r.get("layout"),i=0,o=0,s=null;n==="radial"?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,s=sw(function(S,b){return(S.parentNode===b.parentNode?1:2)/S.depth})):(i=a.width,o=a.height,s=sw());var l=r.getData().tree.root,u=l.children[0];if(u){x8(l),U8(u,b8,s),l.hierNode.modifier=-u.hierNode.prelim,ml(u,w8);var f=u,c=u,v=u;ml(u,function(S){var b=S.getLayout().x;bc.getLayout().x&&(c=S),S.depth>v.depth&&(v=S)});var h=f===c?1:s(f,c)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(n==="radial")p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),ml(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var b=Bl(y,m);S.setLayout({x:b.x,y:b.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=o/(c.getLayout().x+h+d),p=i/(v.depth-1||1),ml(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),ml(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function X8(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");$(s,o)})})}function q8(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=xh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}function K8(r){r.registerChartView(R8),r.registerSeriesModel($8),r.registerLayout(Y8),r.registerVisual(X8),q8(r)}var vw=["treemapZoomToNode","treemapRender","treemapMove"];function j8(r){for(var t=0;t1;)i=i.parentNode;var o=ty(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var J8=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};RP(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new Nt({itemStyle:o},this,a);i=e.levels=Q8(i,a);var l=Y(i||[],function(c){return new Nt(c,s,a)},this),u=Z0.createTree(n,this,f);function f(c){c.wrapMethod("getItemModel",function(v,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return v.parentModel=p||s,v})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return ye("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=wh(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},$(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=rt(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){kP(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:G.size.l,top:G.size.xxxl,right:G.size.l,bottom:G.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:G.size.m,emptyItemWidth:25,itemStyle:{color:G.color.backgroundShade,textStyle:{color:G.color.secondary}},emphasis:{itemStyle:{color:G.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:G.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:G.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(ee);function RP(r){var t=0;A(r.children,function(a){RP(a);var n=a.value;U(n)&&(n=n[0]),t+=n});var e=r.value;U(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),U(r.value)?r.value[0]=e:r.value=e}function Q8(r,t){var e=Ut(t.get("color")),a=Ut(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;A(r,function(s){var l=new Nt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}const tU=J8;var eU=8,hw=8,ap=5,rU=function(){function r(t){this.group=new lt,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c=Ce(t,e).refContainer,v={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=te(v,c);this._prepare(a,h,u),this._renderContent(t,h,d,s,l,u,f,n),fh(o,v,c)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=xe(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+eU*2,e.emptyItemWidth);e.totalWidth+=s+hw,e.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(t,e,a,n,i,o,s,l){for(var u=0,f=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),v=e.totalWidth,h=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;v>a.width&&(v-=m-f,m=f,_=null);var S=new ir({shape:{points:aU(u,0,m,c,p===h.length-1,p===0)},style:ct(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Et({style:Zt(o,{text:_})}),textConfig:{position:"inside"},z2:Bs*1e4,onclick:xt(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(s,{text:_}),S.ensureState("emphasis").style=d,Qt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),nU(S,t,y),u+=m+hw}},r.prototype.remove=function(){this.group.removeAll()},r}();function aU(r,t,e,a,n,i){var o=[[n?r:r-ap,t],[r+e,t],[r+e,t+a],[n?r:r-ap,t+a]];return!i&&o.splice(2,0,[r+e+ap,t+a/2]),!n&&o.push([r,t+a/2]),o}function nU(r,t,e){dt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&wh(e,t)}}const iU=rU;var oU=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;npw||Math.abs(e.dy)>pw)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var a=e.originX,n=e.originY,i=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new ht(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var c=f.zoom=f.zoom||1;if(c*=i,u){var v=u.min||0,h=u.max||1/0;c=Math.max(Math.min(h,c),v)}var d=c/f.zoom;f.zoom=c;var p=this.seriesModel.layoutInfo;a-=p.x,n-=p.y;var g=Oe();ka(g,g,[-a,-n]),Cm(g,g,[d,d]),ka(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Jc(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new iU(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(X0(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=_l(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},t.type="treemap",t}(Xt);function _l(){return{nodeGroup:[],background:[],content:[]}}function vU(r,t,e,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),v=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),M=x.get("borderRadius")||0,D=q("nodeGroup",Ny);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),xv(D).nodeWidth=h,xv(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=q("background",dw,u,uU);I&&V(D,I,b&&f.upperLabelHeight);var L=v.getModel("emphasis"),k=L.get("focus"),R=L.get("blurScope"),P=L.get("disabled"),O=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(b)fu(D)&&Gi(D,!1),I&&(Gi(I,!P),c.setItemGraphicEl(o.dataIndex,I),Hg(I,O,R));else{var E=q("content",dw,u,fU);E&&H(D,E),I.disableMorphing=!0,I&&fu(I)&&Gi(I,!1),Gi(D,!P),c.setItemGraphicEl(o.dataIndex,D);var B=v.getShallow("cursor");B&&E.attr("cursor",B),Hg(D,O,R)}return D;function V(at,N,F){var Z=dt(N);if(Z.dataIndex=o.dataIndex,Z.seriesIndex=r.seriesIndex,N.setShape({x:0,y:0,width:h,height:d,r:M}),g)W(N);else{N.invisible=!1;var j=o.getVisual("style"),_t=j.stroke,pt=mw(x);pt.fill=_t;var mt=Ii(w);mt.fill=w.get("borderColor");var Pt=Ii(T);Pt.fill=T.get("borderColor");var Lt=Ii(C);if(Lt.fill=C.get("borderColor"),F){var qt=h-2*p;X(N,_t,j.opacity,{x:p,y:0,width:qt,height:S})}else N.removeTextContent();N.setStyle(pt),N.ensureState("emphasis").style=mt,N.ensureState("blur").style=Pt,N.ensureState("select").style=Lt,oo(N)}at.add(N)}function H(at,N){var F=dt(N);F.dataIndex=o.dataIndex,F.seriesIndex=r.seriesIndex;var Z=Math.max(h-2*p,0),j=Math.max(d-2*p,0);if(N.culling=!0,N.setShape({x:p,y:p,width:Z,height:j,r:M}),g)W(N);else{N.invisible=!1;var _t=o.getVisual("style"),pt=_t.fill,mt=mw(x);mt.fill=pt,mt.decal=_t.decal;var Pt=Ii(w),Lt=Ii(T),qt=Ii(C);X(N,pt,_t.opacity,null),N.setStyle(mt),N.ensureState("emphasis").style=Pt,N.ensureState("blur").style=Lt,N.ensureState("select").style=qt,oo(N)}at.add(N)}function W(at){!at.invisible&&i.push(at)}function X(at,N,F,Z){var j=v.getModel(Z?yw:gw),_t=xe(v.get("name"),null),pt=j.getShallow("show");Ie(at,Te(v,Z?yw:gw),{defaultText:pt?_t:null,inheritColor:N,defaultOpacity:F,labelFetcher:r,labelDataIndex:o.dataIndex});var mt=at.getTextContent();if(mt){var Pt=mt.style,Lt=Wv(Pt.padding||0);Z&&(at.setTextConfig({layoutRect:Z}),mt.disableLabelLayout=!0),mt.beforeUpdate=function(){var ie=Math.max((Z?Z.width:at.shape.width)-Lt[1]-Lt[3],0),Be=Math.max((Z?Z.height:at.shape.height)-Lt[0]-Lt[2],0);(Pt.width!==ie||Pt.height!==Be)&&mt.setStyle({width:ie,height:Be})},Pt.truncateMinChar=2,Pt.lineOverflow="truncate",K(Pt,Z,f);var qt=mt.getState("emphasis");K(qt?qt.style:null,Z,f)}}function K(at,N,F){var Z=at?at.text:null;if(!N&&F.isLeafRoot&&Z!=null){var j=r.get("drillDownIcon",!0);at.text=j?j+" "+Z:Z}}function q(at,N,F,Z){var j=m!=null&&e[at][m],_t=n[at];return j?(e[at][m]=null,it(_t,j)):g||(j=new N,j instanceof Gr&&(j.z2=hU(F,Z)),St(_t,j)),t[at][y]=j}function it(at,N){var F=at[y]={};N instanceof Ny?(F.oldX=N.x,F.oldY=N.y):F.oldShape=$({},N.shape)}function St(at,N){var F=at[y]={},Z=o.parentNode,j=N instanceof lt;if(Z&&(!a||a.direction==="drillDown")){var _t=0,pt=0,mt=n.background[Z.getRawIndex()];!a&&mt&&mt.oldShape&&(_t=mt.oldShape.width,pt=mt.oldShape.height),j?(F.oldX=0,F.oldY=pt):F.oldShape={x:_t,y:pt,width:0,height:0}}F.fadein=!j}}function hU(r,t){return r*lU+t}const dU=cU;var Au=A,pU=vt,bv=-1,q0=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=st(t);this.type=a,this.mappingMethod=e,this._normalizeData=mU[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(np(n),gU(n)):e==="category"?n.categories?yU(n):np(n,!0):(qe(e!=="linear"||n.dataExtent),np(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return tt(this._normalizeData,this)},r.listVisualTypes=function(){return It(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){vt(t)?A(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=U(t)?[]:vt(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&Au(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(U(t))t=t.slice();else if(pU(t)){var e=[];Au(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function np(r,t){var e=r.visual,a=[];vt(e)?Au(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),EP(r,a)}function Wf(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:By([0,1])}}function _w(r){var t=this.option.visual;return t[Math.round(Ft(r,[0,1],[0,t.length-1],!0))]||{}}function Sl(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function zl(r){var t=this.option.visual;return t[this.option.loop&&r!==bv?r%t.length:r]}function Pi(){return this.option.visual[0]}function By(r){return{linear:function(t){return Ft(t,r,this.option.visual,!0)},category:zl,piecewise:function(t,e){var a=zy.call(this,e);return a==null&&(a=Ft(t,r,this.option.visual,!0)),a},fixed:Pi}}function zy(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=q0.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function EP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var a=fr(e);return a||[0,0,0,1]})),t}var mU={linear:function(r){return Ft(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=q0.findPieceIndex(r,t,!0);if(e!=null)return Ft(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??bv},fixed:fe};function $f(r,t,e){return r?t<=e:t=e.length||p===e[p.depth]){var y=TU(n,l,p,g,d,a);NP(p,y,e,a)}})}}}function xU(r,t,e){var a=$({},t),n=e.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function Sw(r){var t=ip(r,"color");if(t){var e=ip(r,"colorAlpha"),a=ip(r,"colorSaturation");return a&&(t=Bn(t,null,null,a)),e&&(t=zc(t,e)),t}}function bU(r,t){return t!=null?Bn(t,null,null,r):null}function ip(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function wU(r,t,e,a,n,i){if(!(!i||!i.length)){var o=op(t,"color")||n.color!=null&&n.color!=="none"&&(op(t,"colorAlpha")||op(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var v=new He(c);return OP(v).drColorMappingBy=f,v}}}function op(r,t){var e=r.get(t);return U(e)&&e.length?{name:t,range:e}:null}function TU(r,t,e,a,n,i){var o=$({},t);if(n){var s=n.type,l=s==="color"&&OP(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var Mu=Math.max,wv=Math.min,xw=Fe,K0=A,BP=["itemStyle","borderWidth"],CU=["itemStyle","gapWidth"],AU=["upperLabel","show"],MU=["upperLabel","height"];const DU={seriesType:"treemap",reset:function(r,t,e,a){var n=r.option,i=Ce(r,e).refContainer,o=te(r.getBoxLayoutParams(),i),s=n.size||[],l=J(xw(o.width,s[0]),i.width),u=J(xw(o.height,s[1]),i.height),f=a&&a.type,c=["treemapZoomToNode","treemapRootToNode"],v=Cu(a,c,r),h=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),p=PP(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?EU(r,v,d,l,u):h?[h.width,h.height]:[l,u],y=n.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:n.squareRatio,sort:y,leafDepth:n.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),zP(d,m,!1,0),_=d.getLayout(),K0(p,function(b,x){var w=(p[x+1]||d).getValue();b.setLayout($({dataExtent:[w,w],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(OU(o,h,v),!0),r.setLayoutInfo(o),VP(S,new ht(-o.x,-o.y,e.getWidth(),e.getHeight()),p,d,0)}};function zP(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(BP),u=s.get(CU)/2,f=GP(s),c=Math.max(l,f),v=l-u,h=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),n=Mu(n-2*v,0),i=Mu(i-v-h,0);var d=n*i,p=LU(r,s,d,t,e,a);if(p.length){var g={x:v,y:h,width:n,height:i},y=wv(n,i),m=1/0,_=[];_.area=0;for(var S=0,b=p.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*ts[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function RU(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=t*t*e;return l?Mu(u*a/l,l/(u*n)):1/0}function bw(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(n||f>e[l[o]])&&(f=e[l[o]]);for(var c=0,v=r.length;cT1&&(u=T1),i=s}ua&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0].8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+C,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(lt);const t_=QU;var t6=function(){function r(t){this.group=new lt,this._LineCtor=t||t_}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=Dw(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Dw(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!e6(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n0}function Dw(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Te(t)}}function Lw(r){return isNaN(r[0])||isNaN(r[1])}function cp(r){return r&&!Lw(r[0])&&!Lw(r[1])}const e_=t6;var vp=[],hp=[],dp=[],Zo=Ee,pp=Zi,Iw=Math.abs;function Pw(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){vp[0]=Zo(a[0],n[0],i[0],f),vp[1]=Zo(a[1],n[1],i[1],f);var c=Iw(pp(vp,t)-l);c=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function gp(r,t){var e=[],a=au,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[Xa(u[0]),Xa(u[1])],u[2]&&u.__original.push(Xa(u[2])));var v=u.__original;if(u[2]!=null){if(Qe(n[0],v[0]),Qe(n[1],v[2]),Qe(n[2],v[1]),f&&f!=="none"){var h=Gl(s.node1),d=Pw(n,v[0],h*t);a(n[0][0],n[1][0],n[2][0],d,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],d,e),n[0][1]=e[3],n[1][1]=e[4]}if(c&&c!=="none"){var h=Gl(s.node2),d=Pw(n,v[1],h*t);a(n[0][0],n[1][0],n[2][0],d,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],d,e),n[1][1]=e[1],n[2][1]=e[2]}Qe(u[0],n[0]),Qe(u[1],n[2]),Qe(u[2],n[1])}else{if(Qe(i[0],v[0]),Qe(i[1],v[1]),zi(o,i[1],i[0]),Es(o,o),f&&f!=="none"){var h=Gl(s.node1);lg(i[0],i[0],o,h*t)}if(c&&c!=="none"){var h=Gl(s.node2);lg(i[1],i[1],o,-h*t)}Qe(u[0],i[0]),Qe(u[1],i[1])}})}var ZP=Mt();function r6(r){if(r)return ZP(r).bridge}function kw(r,t){r&&(ZP(r).bridge=t)}function Rw(r){return r.type==="view"}var a6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var n=new $u,i=new e_,o=this.group,s=new lt;this._controller=new To(a.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,s=!1;this._model=e,this._api=n,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(n);var u=this._symbolDraw,f=this._lineDraw;if(Rw(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(c):Ot(this._mainGroup,c,e)}gp(e.getGraph(),Vl(e));var v=e.getData();u.updateData(v);var h=e.getEdgeData();f.updateData(h),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,p));var g=e.get("layout");v.graph.eachNode(function(S){var b=S.dataIndex,x=S.getGraphicEl(),w=S.getModel();if(x){x.off("drag").off("dragend");var T=w.get("draggable");T&&x.on("drag",function(M){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(b),v.setItemLayout(b,[x.x,x.y]);break;case"circular":v.setItemLayout(b,[x.x,x.y]),S.setLayout({fixed:!0},!0),Q0(e,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(e);break;case"none":default:v.setItemLayout(b,[x.x,x.y]),J0(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),x.setDraggable(T,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(dt(x).focus=S.getAdjacentDataIndices())}}),v.graph.eachEdge(function(S){var b=S.getGraphicEl(),x=S.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(dt(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=v.getLayout("cx"),_=v.getLayout("cy");v.graph.eachNode(function(S){$P(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a,n){var i=this,o=!1;(function s(){e.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype._updateController=function(e,a,n){var i=this._controller,o=this._controllerHost,s=a.coordinateSystem;if(!Rw(s)){i.disable();return}i.enable(a.get("roam"),{api:n,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(l,u,f){return s.containPoint([u,f])},isInClip:function(l,u,f){return!e||e.contain(u,f)}}}),o.zoomLimit=a.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},t.prototype.updateViewOnPan=function(e,a,n){this._active&&(H0(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,a,n){this._active&&(W0(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),gp(e.getGraph(),Vl(e)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=Vl(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(gp(e.getGraph(),Vl(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,a=e.coordinateSystem;if(a.type==="view"){var n=r6(e);if(n)return{bridge:n,coordSys:a}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new lt,l=n.group.children(),u=i.group.children(),f=new lt,c=new lt;s.add(c),s.add(f);for(var v=0;v=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof ki||(e=this._nodesMap[Xo(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(h.node1))}for(l=0;l=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r}(),XP=function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=rt(),e=rt();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i=0&&!t.hasKey(c)&&(t.set(c,!0),a.push(f.node1))}for(i=0;i=0&&!t.hasKey(p)&&(t.set(p,!0),n.push(d.node2))}return{edge:t.keys(),node:e.keys()}},r}();function qP(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}_e(ki,qP("hostGraph","data"));_e(XP,qP("hostGraph","edgeData"));const o6=i6;function r_(r,t,e,a,n){for(var i=new o6(a),o=0;o "+v)),u++)}var h=e.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=cn(r,e);else{var p=Vu.get(h),g=p?p.dimensions||[]:[];bt(g,"value")<0&&g.concat(["value"]);var y=Fu(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new rr(y,e),d.initData(r)}var m=new rr(["value"],e);return m.initData(l,s),n&&n(d,m),LP({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var s6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new qs(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ao(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){HU(this);var s=r_(i,n,this,!0,l);return A(s.edges,function(u){WU(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=Nt.prototype.getModel;function v(d,p){var g=c.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=v,d});function h(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ye("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=KL({series:this,dataIndex:e,multipleSeries:a});return c},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(n){return n.value!=null?n:$({value:0},n)}),a=new rr(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:G.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:G.color.primary}}},t}(ee);const l6=s6;function u6(r){r.registerChartView(n6),r.registerSeriesModel(l6),r.registerProcessor(BU),r.registerVisual(zU),r.registerVisual(VU),r.registerLayout($U),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,YU),r.registerLayout(XU),r.registerCoordinateSystem("graphView",{dimensions:Co.dimensions,create:KU}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},fe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},fe),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",query:t},function(n){var i=a.getViewOfSeriesModel(n);i&&(t.dx!=null&&t.dy!=null&&i.updateViewOnPan(n,a,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&i.updateViewOnZoom(n,a,t));var o=n.coordinateSystem,s=xh(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var f6=function(r){z(t,r);function t(e,a,n){var i=r.call(this)||this;dt(i).dataType="node",i.z2=2;var o=new Et;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.graph.getNodeByIndex(a),l=e.hostModel,u=s.getModel(),f=u.getModel("emphasis"),c=e.getItemLayout(a),v=$(Aa(u.getModel("itemStyle"),c,!0),c),h=this;if(isNaN(v.startAngle)){h.setShape(v);return}i?h.setShape(v):Ot(h,{shape:v},l,a);var d=$(Aa(u.getModel("itemStyle"),c,!0),c);o.setShape(d),o.useStyle(e.getItemVisual(a,"style")),we(o,u),this._updateLabel(l,u,s),e.setItemGraphicEl(a,h),we(h,u,"itemStyle");var p=f.get("focus");Qt(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this.getTextContent(),o=n.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=a.getModel("label");i.ignore=!f.get("show");var c=Te(a),v=n.getVisual("style");Ie(i,c,{labelFetcher:{getFormattedLabel:function(m,_,S,b,x,w){return e.getFormattedLabel(m,_,"node",b,xr(x,c.normal&&c.normal.get("formatter"),a.get("name")),w)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:"startArc"});var h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t}(nr);const Ew=f6;var c6=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this)||this;return dt(o).dataType="edge",o.updateData(e,a,n,i,!0),o}return t.prototype.buildPath=function(e,a){e.moveTo(a.s1[0],a.s1[1]);var n=.7,i=a.clockwise;e.arc(a.cx,a.cy,a.r,a.sStartAngle,a.sEndAngle,!i),e.bezierCurveTo((a.cx-a.s2[0])*n+a.s2[0],(a.cy-a.s2[1])*n+a.s2[1],(a.cx-a.t1[0])*n+a.t1[0],(a.cy-a.t1[1])*n+a.t1[1],a.t1[0],a.t1[1]),e.arc(a.cx,a.cy,a.r,a.tStartAngle,a.tEndAngle,!i),e.bezierCurveTo((a.cx-a.t2[0])*n+a.t2[0],(a.cy-a.t2[1])*n+a.t2[1],(a.cx-a.s1[0])*n+a.s1[0],(a.cy-a.s1[1])*n+a.s1[1],a.s1[0],a.s1[1]),e.closePath()},t.prototype.updateData=function(e,a,n,i,o){var s=e.hostModel,l=a.graph.getEdgeByIndex(n),u=l.getLayout(),f=l.node1.getModel(),c=a.getItemModel(l.dataIndex),v=c.getModel("lineStyle"),h=c.getModel("emphasis"),d=h.get("focus"),p=$(Aa(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),Ow(g,l,e,v)):(Fr(g),Ow(g,l,e,v),Ot(g,{shape:p},s,n)),Qt(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),we(g,c,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g)},t}(Dt);function Ow(r,t,e,a){var n=t.node1,i=t.node2,o=r.style;r.setStyle(a.getLineStyle());var s=a.get("color");switch(s){case"source":o.fill=e.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=e.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=e.getItemVisual(n.dataIndex,"style").fill,u=e.getItemVisual(i.dataIndex,"style").fill;if(Q(l)&&Q(u)){var f=r.shape,c=(f.s1[0]+f.s2[0])/2,v=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new zs(c,v,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var v6=Math.PI/180,h6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group,l=-e.get("startAngle")*v6;if(i.diff(o).add(function(f){var c=i.getItemLayout(f);if(c){var v=new Ew(i,f,l);dt(v).dataIndex=f,s.add(v)}}).update(function(f,c){var v=o.getItemGraphicEl(c),h=i.getItemLayout(f);if(!h){v&&qa(v,e,c);return}v?v.updateData(i,f,l):v=new Ew(i,f,l),s.add(v)}).remove(function(f){var c=o.getItemGraphicEl(f);c&&qa(c,e,f)}).execute(),!o){var u=e.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=J(u[0],n.getWidth()),this.group.originY=J(u[1],n.getHeight()),Jt(this.group,{scaleX:1,scaleY:1},e)}this._data=i,this.renderEdges(e,l)},t.prototype.renderEdges=function(e,a){var n=e.getData(),i=e.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new c6(n,i,l,a);dt(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,i,l,a),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&qa(u,e,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type="chord",t}(Xt);const d6=h6;var p6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new qs(tt(this.getData,this),tt(this.getRawData,this))},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[];if(i&&n){var o=r_(i,n,this,!0,s);return o.data}function s(l,u){var f=Nt.prototype.getModel;function c(h,d){var p=f.call(this,h,d);return p.resolveParentPath=v,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=c,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){var i=this.getDataParams(e,n);if(n==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(e),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ye("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return ye("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(a==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(e);if(n.name==null&&(n.name=i.getName(e)),n.value==null){var s=o.getLayout().value;n.value=s}}return n},t.type="series.chord",t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t}(ee);const g6=p6;var yp=Math.PI/180;function y6(r,t){r.eachSeriesByType("chord",function(e){m6(e,t)})}function m6(r,t){var e=r.getData(),a=e.graph,n=r.getEdgeData(),i=n.count();if(i){var o=hL(r,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=Math.max((r.get("padAngle")||0)*yp,0),v=Math.max((r.get("minAngle")||0)*yp,0),h=-r.get("startAngle")*yp,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];Qv(y,!p);var m=y[0],_=y[1],S=_-m,b=e.getSum("value")===0&&n.getSum("value")===0,x=[],w=0;a.eachEdge(function(E){var B=b?1:E.getValue("value");b&&(B>0||v)&&(w+=2);var V=E.node1.dataIndex,H=E.node2.dataIndex;x[V]=(x[V]||0)+B,x[H]=(x[H]||0)+B});var T=0;if(a.eachNode(function(E){var B=E.getValue("value");isNaN(B)||(x[E.dataIndex]=Math.max(B,x[E.dataIndex]||0)),!b&&(x[E.dataIndex]>0||v)&&w++,T+=x[E.dataIndex]||0}),!(w===0||T===0)){c*w>=Math.abs(S)&&(c=Math.max(0,(Math.abs(S)-v*w)/w)),(c+v)*w>=Math.abs(S)&&(v=(Math.abs(S)-c*w)/w);var C=(S-c*w*g)/T,M=0,D=0,I=0;a.eachNode(function(E){var B=x[E.dataIndex]||0,V=C*(T?B:1)*g;Math.abs(V)D){var k=M/D;a.eachNode(function(E){var B=E.getLayout().angle;Math.abs(B)>=v?E.setLayout({angle:B*k,ratio:k},!0):E.setLayout({angle:v,ratio:v===0?1:B/v},!0)})}else a.eachNode(function(E){if(!L){var B=E.getLayout().angle,V=Math.min(B/I,1),H=V*M;B-Hv&&v>0){var V=L?1:Math.min(B/I,1),H=B-v,W=Math.min(H,Math.min(R,M*V));R-=W,E.setLayout({angle:B-W,ratio:(B-W)/B},!0)}else v>0&&E.setLayout({angle:v,ratio:B===0?1:v/B},!0)}});var P=m,O=[];a.eachNode(function(E){var B=Math.max(E.getLayout().angle,v);E.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:P,endAngle:P+B*g,clockwise:p},!0),O[E.dataIndex]=P,P+=(B+c)*g}),a.eachEdge(function(E){var B=b?1:E.getValue("value"),V=C*(T?B:1)*g,H=E.node1.dataIndex,W=O[H]||0,X=Math.abs((E.node1.getLayout().ratio||1)*V),K=W+X*g,q=[s+f*Math.cos(W),l+f*Math.sin(W)],it=[s+f*Math.cos(K),l+f*Math.sin(K)],St=E.node2.dataIndex,at=O[St]||0,N=Math.abs((E.node2.getLayout().ratio||1)*V),F=at+N*g,Z=[s+f*Math.cos(at),l+f*Math.sin(at)],j=[s+f*Math.cos(F),l+f*Math.sin(F)];E.setLayout({s1:q,s2:it,sStartAngle:W,sEndAngle:K,t1:Z,t2:j,tStartAngle:at,tEndAngle:F,cx:s,cy:l,r:f,value:B,clockwise:p}),O[H]=K,O[St]=F})}}}function _6(r){r.registerChartView(d6),r.registerSeriesModel(g6),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,y6),r.registerProcessor(Zs("chord"))}var S6=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),x6=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new S6},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,f)},t}(Dt);const b6=x6;function w6(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=J(e[0],t.getWidth()),s=J(e[1],t.getHeight()),l=J(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Yf(r,t){var e=r==null?"":r+"";return t&&(Q(t)?e=t.replace("{value}",e):ot(t)&&(e=t(r))),e}var T6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=w6(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),v=c.get("roundCap"),h=v?gv:nr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];Qv(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;d&&b=C&&(M===0?0:i[M-1][0])Math.PI/2&&(K+=Math.PI)):X==="tangential"?K=-T-Math.PI/2:kt(X)&&(K=X*Math.PI/180),K===0?c.add(new Et({style:Zt(_,{text:B,x:H,y:W,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:V}),silent:!0})):c.add(new Et({style:Zt(_,{text:B,x:H,y:W,verticalAlign:"middle",align:"center"},{inheritColor:V}),silent:!0,originX:H,originY:W,rotation:K}))}if(m.get("show")&&P!==S){var O=m.get("distance");O=O?O+f:f;for(var q=0;q<=b;q++){k=Math.cos(T),R=Math.sin(T);var it=new be({shape:{x1:k*(d-O)+v,y1:R*(d-O)+h,x2:k*(d-w-O)+v,y2:R*(d-w-O)+h},silent:!0,style:I});I.stroke==="auto"&&it.setStyle({stroke:i((P+q/b)/S)}),c.add(it),T+=M}T-=M}else T+=C}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,f){var c=this.group,v=this._data,h=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),b=+e.get("max"),x=[S,b],w=[s,l];function T(M,D){var I=m.getItemModel(M),L=I.getModel("pointer"),k=J(L.get("width"),o.r),R=J(L.get("length"),o.r),P=e.get(["pointer","icon"]),O=L.get("offsetCenter"),E=J(O[0],o.r),B=J(O[1],o.r),V=L.get("keepAspect"),H;return P?H=me(P,E-k/2,B-R,k,R,null,V):H=new b6({shape:{angle:-Math.PI/2,width:k,r:R,x:E,y:B}}),H.rotation=-(D+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function C(M,D){var I=g.get("roundCap"),L=I?gv:nr,k=g.get("overlap"),R=k?g.get("width"):f/m.count(),P=k?o.r-R:o.r-(M+1)*R,O=k?o.r:o.r-M*R,E=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:P,r:O}});return k&&(E.z2=Ft(m.get(_,M),[S,b],[100,0],!0)),E}(y||p)&&(m.diff(v).add(function(M){var D=m.get(_,M);if(p){var I=T(M,s);Jt(I,{rotation:-((isNaN(+D)?w[0]:Ft(D,x,w,!0))+Math.PI/2)},e),c.add(I),m.setItemGraphicEl(M,I)}if(y){var L=C(M,s),k=g.get("clip");Jt(L,{shape:{endAngle:Ft(D,x,w,k)}},e),c.add(L),zg(e.seriesIndex,m.dataType,M,L),d[M]=L}}).update(function(M,D){var I=m.get(_,M);if(p){var L=v.getItemGraphicEl(D),k=L?L.rotation:s,R=T(M,k);R.rotation=k,Ot(R,{rotation:-((isNaN(+I)?w[0]:Ft(I,x,w,!0))+Math.PI/2)},e),c.add(R),m.setItemGraphicEl(M,R)}if(y){var P=h[D],O=P?P.shape.endAngle:s,E=C(M,O),B=g.get("clip");Ot(E,{shape:{endAngle:Ft(I,x,w,B)}},e),c.add(E),zg(e.seriesIndex,m.dataType,M,E),d[M]=E}}).execute(),m.each(function(M){var D=m.getItemModel(M),I=D.getModel("emphasis"),L=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(p){var P=m.getItemGraphicEl(M),O=m.getItemVisual(M,"style"),E=O.fill;if(P instanceof We){var B=P.style;P.useStyle($({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},O))}else P.useStyle(O),P.type!=="pointer"&&P.setColor(E);P.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),P.style.fill==="auto"&&P.setStyle("fill",i(Ft(m.get(_,M),x,[0,1],!0))),P.z2EmphasisLift=0,we(P,D),Qt(P,L,k,R)}if(y){var V=d[M];V.useStyle(m.getItemVisual(M,"style")),V.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),V.z2EmphasisLift=0,we(V,D),Qt(V,L,k,R)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=me(s,a.cx-o/2+J(l[0],a.r),a.cy-o/2+J(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),c=+e.get("max"),v=new lt,h=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Et({silent:!0}),d[y]=new Et({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new lt,b=i(Ft(_,[f,c],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+J(w[0],o.r),C=o.cy+J(w[1],o.r),M=h[y];M.attr({z2:g?0:2,style:Zt(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+J(I[0],o.r),k=o.cy+J(I[1],o.r),R=J(D.get("width"),o.r),P=J(D.get("height"),o.r),O=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,M=d[y],E=D.get("formatter");M.attr({z2:g?0:2,style:Zt(D,{x:L,y:k,text:Yf(_,E),width:isNaN(R)?null:R,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:O})}),YD(M,{normal:D},_,function(V){return Yf(V,E)}),p&&ZD(M,y,l,e,{getFormattedLabel:function(V,H,W,X,K,q){return Yf(q?q.interpolatedValue:_,E)}}),S.add(M)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(Xt);const C6=T6;var A6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return Xs(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,G.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:G.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:G.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:G.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:G.color.neutral00,borderWidth:0,borderColor:G.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:G.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:G.color.transparent,borderWidth:0,borderColor:G.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:G.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(ee);const M6=A6;function D6(r){r.registerChartView(C6),r.registerSeriesModel(M6)}var L6=["itemStyle","opacity"],I6=function(r){z(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new Ke,s=new Et;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(L6);f=f??1,n||Fr(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Jt(i,{style:{opacity:f}},o,a)):Ot(i,{style:{opacity:f},shape:{points:l.points}},o,a),we(i,s),this._updateLabel(e,a),Qt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),f=u.label,c=e.getItemVisual(a,"style"),v=c.fill;Ie(o,Te(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:c.opacity,defaultText:e.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?v:null;n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),n.textGuideLineConfig={anchor:g?new ft(g[0][0],g[0][1]):null},Ot(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),L0(n,I0(l),{stroke:v})},t}(ir),P6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new I6(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);qa(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Xt);const k6=P6;var R6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new qs(tt(this.getData,this),tt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return Xs(this,{coordDimensions:["value"],encodeDefaulter:xt(s0,this)})},t.prototype._defaultLabelLine=function(e){ao(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",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:G.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:G.color.primary}}},t}(ee);const E6=R6;function O6(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),n=[],i=t==="ascending",o=0,s=r.count();otY)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!_p(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function _p(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const aY=eY;var nY=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&wt(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=Ht(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Rt);const iY=nY;var oY=function(r){z(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(oa);const sY=oY;function Zn(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=qo(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=qo(s,[0,o]),n=i=qo(s,[n,i]),a=0}t[0]=qo(t[0],e),t[1]=qo(t[1],e);var l=Sp(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=qo(t[a],f);var c;return c=Sp(t,a),n!=null&&(c.sign!==l.sign||c.spani&&(t[1-a]=t[a]+c.sign*i),t}function Sp(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function qo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var xp=A,jP=Math.min,JP=Math.max,zw=Math.floor,lY=Math.ceil,Vw=de,uY=Math.PI,fY=function(){function r(t,e,a){this.type="parallel",this._axesMap=rt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;xp(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new sY(o,gh(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var n=a.getData();xp(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),Cs(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){var a=Ce(t,e).refContainer;this._rect=te(t.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,f=Zf(t.get("axisExpandWidth"),l),c=Zf(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=Zf(h[1]-h[0],l),h[1]=h[0]+d;else{d=Zf(f*(c-1),l);var p=t.get("axisExpandCenter")||zw(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[zw(Vw(h[0]/f,1))+1,lY(Vw(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),xp(a,function(o,s){var l=(n.axisExpandable?vY:cY)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:uY/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],v=f[i],h=Oe();jn(h,h,v),ka(h,h,c),this._axesLayout[o]={position:c,rotation:v,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?Zn(l,n,o,"all"):u="none";else{var h=n[1]-n[0],d=o[1]*s/h;n=[JP(0,d-h/2)],n[1]=jP(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function Zf(r,t){return jP(JP(r,t[0]),t[1])}function cY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function vY(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)zr(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;i_Y}function ik(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function ok(r,t,e,a){var n=new lt;return n.add(new At({name:"main",style:o_(e),silent:!0,draggable:!0,cursor:"move",drift:xt(Ww,r,t,n,["n","s","w","e"]),ondragend:xt(co,t,{isEnd:!0})})),A(a,function(i){n.add(new At({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xt(Ww,r,t,n,i),ondragend:xt(co,t,{isEnd:!0})}))}),n}function sk(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=Is(n,SY),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,f=e[0][1],c=e[1][1],v=f-i+n/2,h=c-i+n/2,d=f-o,p=c-s,g=d+n,y=p+n;Ha(r,t,"main",o,s,d,p),a.transformable&&(Ha(r,t,"w",l,u,i,y),Ha(r,t,"e",v,u,i,y),Ha(r,t,"n",l,u,g,i),Ha(r,t,"s",l,h,g,i),Ha(r,t,"nw",l,u,i,i),Ha(r,t,"ne",v,u,i,i),Ha(r,t,"sw",l,h,i,i),Ha(r,t,"se",v,h,i,i))}function Wy(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(o_(e)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?$y(r,i[0]):MY(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?bY[s]+"-resize":null})})}function Ha(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(LY(s_(r,t,[[a,n],[a+i,n+o]])))}function o_(r){return ct({strokeNoScale:!0},r.brushStyle)}function lk(r,t,e,a){var n=[Lu(r,e),Lu(t,a)],i=[Is(r,e),Is(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function AY(r){return Ji(r.group)}function $y(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=oh(e[t],AY(r));return a[n]}function MY(r,t){var e=[$y(r,t[0]),$y(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Ww(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=uk(t,n,i);A(a,function(u){var f=xY[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(lk(s[0][0],s[1][0],s[0][1],s[1][1])),a_(t,e),co(t,{isEnd:!1})}function DY(r,t,e,a){var n=t.__brushOption.range,i=uk(r,e,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),a_(r,t),co(r,{isEnd:!1})}function uk(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function s_(r,t,e){var a=nk(r,t);return a&&a!==fo?a.clipPath(e,r._transform):st(e)}function LY(r){var t=Lu(r[0][0],r[1][0]),e=Lu(r[0][1],r[1][1]),a=Is(r[0][0],r[1][0]),n=Is(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function IY(r,t,e){if(!(!r._brushType||kY(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=i_(r,t,e);if(!r._dragging)for(var o=0;oa.getWidth()||e<0||e>a.getHeight()}var Ch={lineX:Yw(0),lineY:Yw(1),rect:{createCover:function(r,t){function e(a){return a}return ok({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=ik(r);return lk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){sk(r,t,e,a)},updateCommon:Wy,contain:Yy},polygon:{createCover:function(r,t){var e=new lt;return e.add(new Ke({name:"main",style:o_(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new ir({name:"main",draggable:!0,drift:xt(DY,r,t),ondragend:xt(co,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:s_(r,t,e)})},updateCommon:Wy,contain:Yy}};function Yw(r){return{createCover:function(t,e){return ok({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=ik(t),a=Lu(e[0][r],e[1][r]),n=Is(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=nk(t,e);if(o!==fo&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),sk(t,e,l,n)},updateCommon:Wy,contain:Yy}}const l_=TY;function ck(r){return r=u_(r),function(t){return FD(t,r)}}function vk(r,t){return r=u_(r),function(e){var a=t??e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function hk(r,t,e){var a=u_(r);return function(n,i){return a.contain(i[0],i[1])&&!gP(n,t,e)}}function u_(r){return ht.create(r)}var RY=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new l_(a.getZr())).on("brush",tt(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!EY(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new lt,this.group.add(this._axisGroup),!!e.get("show")){var s=NY(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,c=e.axis.dim,v=l.getAxisLayout(c),h=$({strokeContainThreshold:f},v),d=new on(e,n,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,e,s,f,n),Ou(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=ht.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:ck(c),isTargetByCursor:hk(c,s,i),getLinearBrushOtherExtent:vk(c,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(OY(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=Y(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(ae);function EY(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function OY(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function NY(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const BY=RY;var zY={type:"axisAreaSelect",event:"axisAreaSelected"};function VY(r){r.registerAction(zY,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var GY={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function dk(r){r.registerComponentView(aY),r.registerComponentModel(iY),r.registerCoordinateSystem("parallel",gY),r.registerPreprocessor(j6),r.registerComponentModel(Gw),r.registerComponentView(BY),Ds(r,"parallel",Gw,GY),VY(r)}function FY(r){Tt(dk),r.registerChartView(W6),r.registerSeriesModel(Z6),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,K6)}var HY=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),WY=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new HY},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){rn(this)},t.prototype.downplay=function(){an(this)},t}(Dt),$Y=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new lt,e._focusAdjacencyDisabled=!1,e}return t.prototype.init=function(e,a){this._controller=new To(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=this,o=e.getGraph(),s=this._mainGroup,l=e.layoutInfo,u=l.width,f=l.height,c=e.getData(),v=e.getData("edge"),h=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,this._updateViewCoordSys(e,n),yP(e,n,s,this._controller,this._controllerHost,null),o.eachEdge(function(d){var p=new WY,g=dt(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),b=d.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),M=C.get("localX"),D=C.get("localY"),I=d.getLayout(),L,k,R,P,O,E,B,V;p.shape.extent=Math.max(1,I.dy),p.shape.orient=h,h==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,k=(w!=null?w*f:S.y)+S.dy,R=(M!=null?M*u:T.x)+I.ty,P=D!=null?D*f:T.y,O=L,E=k*(1-_)+P*_,B=R,V=k*_+P*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,k=(w!=null?w*f:S.y)+I.sy,R=M!=null?M*u:T.x,P=(D!=null?D*f:T.y)+I.ty,O=L*(1-_)+R*_,E=k,B=L*_+R*(1-_),V=P),p.setShape({x1:L,y1:k,x2:R,y2:P,cpx1:O,cpy1:E,cpx2:B,cpy2:V}),p.useStyle(m.getItemStyle()),Zw(p.style,h,d);var H=""+y.get("value"),W=Te(y,"edgeLabel");Ie(p,W,{labelFetcher:{getFormattedLabel:function(q,it,St,at,N,F){return e.getFormattedLabel(q,it,"edge",at,xr(N,W.normal&&W.normal.get("formatter"),H),F)}},labelDataIndex:d.dataIndex,defaultText:H}),p.setTextConfig({position:"inside"});var X=y.getModel("emphasis");we(p,y,"lineStyle",function(q){var it=q.getItemStyle();return Zw(it,h,d),it}),s.add(p),v.setItemGraphicEl(d.dataIndex,p);var K=X.get("focus");Qt(p,K==="adjacency"?d.getAdjacentDataIndices():K==="trajectory"?d.getTrajectoryDataIndices():K,X.get("blurScope"),X.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,b=new At({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});Ie(b,Te(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),b.disableLabelAnimation=!0,b.setStyle("fill",d.getVisual("color")),b.setStyle("decal",d.getVisual("style").decal),we(b,g),s.add(b),c.setItemGraphicEl(d.dataIndex,b),dt(b).dataType="node";var x=_.get("focus");Qt(b,x==="adjacency"?d.getAdjacentDataIndices():x==="trajectory"?d.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(d,p){var g=c.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(UY(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,a){var n=e.layoutInfo,i=n.width,o=n.height,s=e.coordinateSystem=new Co(null,{api:a,ecModel:e.ecModel});s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(0,0,i,o),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},t.type="sankey",t}(Xt);function Zw(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),n=e.node2.getVisual("color");Q(a)&&Q(n)&&(r.fill=new zs(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function UY(r,t,e){var a=new At({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Jt(a,{shape:{width:r.width+20}},t,e),a}const YY=$Y;var ZY=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Nt(o[l],this,a));var u=r_(i,n,this,!0,f);return u.data;function f(c,v){c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(h){return isNaN(h)||h==null}if(n==="edge"){var o=this.getDataParams(e,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ye("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),c=f.getLayout().value,v=this.getDataParams(e,n).data.name;return ye("nameValue",{name:v!=null?v+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},t.type="series.sankey",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:G.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:G.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(ee);const XY=ZY;function qY(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=Ce(e,t).refContainer,o=te(e.getBoxLayoutParams(),i);e.layoutInfo=o;var s=o.width,l=o.height,u=e.getGraph(),f=u.nodes,c=u.edges;jY(f);var v=Ht(f,function(g){return g.getLayout().value===0}),h=v.length!==0?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");KY(f,c,a,n,s,l,h,d,p)})}function KY(r,t,e,a,n,i,o,s,l){JY(r,t,e,n,i,s,l),r7(r,t,i,n,a,o,s),c7(r,s)}function jY(r){A(r,function(t){var e=Fn(t.outEdges,Tv),a=Fn(t.inEdges,Tv),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function JY(r,t,e,a,n,i,o){for(var s=[],l=[],u=[],f=[],c=0,v=0;v=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:c},!0),i==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;mc-1?h:c-1;o&&o!=="left"&&QY(r,o,i,w);var T=i==="vertical"?(n-e)/w:(a-e)/w;e7(r,T,i)}function pk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function QY(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,i7(s,l,o),bp(s,n,e,a,o),f7(s,l,o),bp(s,n,e,a,o)}function a7(r,t){var e=[],a=t==="vertical"?"y":"x",n=Rg(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),A(n.keys,function(i){e.push(n.buckets.get(i))}),e}function n7(r,t,e,a,n,i){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(e-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+t;var d=n==="vertical"?a:e;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=c-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[v]+t-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function i7(r,t,e){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=Fn(n.outEdges,o7,e)/Fn(n.outEdges,Tv);if(isNaN(i)){var o=n.outEdges.length;i=o?Fn(n.outEdges,s7,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-Xn(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Xn(n,e))*t;n.setLayout({y:l},!0)}}})})}function o7(r,t){return Xn(r.node2,t)*r.getValue()}function s7(r,t){return Xn(r.node2,t)}function l7(r,t){return Xn(r.node1,t)*r.getValue()}function u7(r,t){return Xn(r.node1,t)}function Xn(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Tv(r){return r.getValue()}function Fn(r,t,e){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),A(a,function(s){var l=new He({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function h7(r){r.registerChartView(YY),r.registerSeriesModel(XY),r.registerLayout(qY),r.registerVisual(v7),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),r.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){var i=n.coordinateSystem,o=xh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}var gk=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],v=u[1-f],h=[n,i],d=h[f].get("type"),p=h[1-f].get("type"),g=t.data;if(g&&l){var y=[];A(g,function(S,b){var x;U(S)?(x=S.slice(),S.unshift(b)):U(S.value)?(x=$({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:ov(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:ov(p),dimsDef:m.slice()}];return Xs(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:xt(xL,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),yk=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:G.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:G.color.shadow}},animationDuration:800},t}(ee);_e(yk,gk,!0);const d7=yk;var p7=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),c=Xw(f,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(c);return}var v=i.getItemLayout(u);c?(Fr(c),mk(v,c,i,u)):c=Xw(v,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type="boxplot",t}(Xt),g7=function(){function r(){}return r}(),y7=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new g7},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();ip){var S=[y,_];a.push(S)}}}return{boxData:e,outliers:a}}var C7={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Ne){var a="";Gt(a)}var n=T7(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function A7(r){r.registerSeriesModel(d7),r.registerChartView(_7),r.registerLayout(S7),r.registerTransform(C7)}var M7=["itemStyle","borderColor"],D7=["itemStyle","borderColor0"],L7=["itemStyle","borderColorDoji"],I7=["itemStyle","color"],P7=["itemStyle","color0"];function f_(r,t){return t.get(r>0?I7:P7)}function c_(r,t){return t.get(r===0?L7:r>0?M7:D7)}var k7={seriesType:"candlestick",plan:Ws(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=f_(s,o),l.stroke=c_(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");$(u,l)}}}}}};const R7=k7;var E7=["color","borderColor"],O7=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){Qn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var c=a.getItemLayout(f);if(s&&qw(u,c))return;var v=wp(c,f,!0);Jt(v,{shape:{points:c.ends}},e,f),Tp(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,c){var v=n.getItemGraphicEl(c);if(!a.hasValue(f)){i.remove(v);return}var h=a.getItemLayout(f);if(s&&qw(u,h)){i.remove(v);return}v?(Ot(v,{shape:{points:h.ends}},e,f),Fr(v)):v=wp(h),Tp(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var c=n.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),Kw(e,this.group);var a=e.get("clip",!0)?Uu(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=n.getItemLayout(o),l=wp(s);Tp(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){Kw(a,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Xt),N7=function(){function r(){}return r}(),B7=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new N7},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Dt);function wp(r,t,e){var a=r.ends;return new B7({shape:{points:e?z7(a,r):a},z2:100})}function qw(r,t){for(var e=!0,a=0;ab?D[i]:M[i],ends:k,brushRect:B(x,w,_)})}function O(H,W){var X=[];return X[n]=W,X[i]=H,isNaN(W)||isNaN(H)?[NaN,NaN]:t.dataToPoint(X)}function E(H,W,X){var K=W.slice(),q=W.slice();K[n]=Sc(K[n]+a/2,1,!1),q[n]=Sc(q[n]-a/2,1,!0),X?H.push(K,q):H.push(q,K)}function B(H,W,X){var K=O(H,X),q=O(W,X);return K[n]-=a/2,q[n]-=a/2,{x:K[0],y:K[1],width:a,height:q[1]-K[1]}}function V(H){return H[n]=Sc(H[n],1),H}}function d(p,g){for(var y=Ta(p.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var C=w.get(s,x),M=w.get(u,x),D=w.get(f,x),I=w.get(c,x),L=w.get(v,x);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=jw(w,x,M,D,f,T),S[n]=C,S[i]=I,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function jw(r,t,e,a,n,i){var o;return e>a?o=-1:e0?r.get(n,t-1)<=a?1:-1:1,o}function $7(r,t){var e=r.getBaseAxis(),a,n=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),i=J(nt(r.get("barMaxWidth"),n),n),o=J(nt(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?J(s,n):Math.max(Math.min(n/2,i),o)}const U7=W7;function Y7(r){r.registerChartView(G7),r.registerSeriesModel(F7),r.registerPreprocessor(H7),r.registerVisual(R7),r.registerLayout(U7)}function Jw(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var Z7=function(r){z(t,r);function t(e,a){var n=r.call(this)||this,i=new Wu(e,a),o=new lt;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;ot(c)?v=c(n):v=c,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,n,i,o){if(a>0){e.__t=0;var s=this,l=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return An(e.__p1,e.__cp1)+An(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Ee,f=mg;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var c=e.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=e.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(v,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),c=n[l],v=n[l+1];e.x=c[0]*(1-f)+f*v[0],e.y=c[1]*(1-f)+f*v[1];var h=e.__t<1?v[0]-c[0]:c[0]-v[0],d=e.__t<1?v[1]-c[1]:c[1]-v[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t}(Sk);const a9=r9;var n9=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),i9=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new n9},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){e.moveTo(n[o++],n[o++]);for(var l=1;l0){var h=(u+c)/2-(f-v)*i,d=(f+v)/2-(c-u)*i;e.quadraticCurveTo(h,d,c,v)}else e.lineTo(c,v)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var c=i[u++],v=i[u++],h=1;h0){var g=(c+d)/2-(v-p)*o,y=(v+p)/2-(d-c)*o;if(tD(c,v,g,y,d,p,s,e,a))return l}else if(Tn(c,v,d,p,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const s9=o9;var l9={seriesType:"lines",plan:Ws(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(e){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=e.get("clip",!0)&&Uu(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=bk.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new s9:new e_(o?i?a9:xk:i?Sk:t_),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t}(Xt);const f9=u9;var c9=typeof Uint32Array>"u"?Array:Uint32Array,v9=typeof Float64Array>"u"?Array:Float64Array;function Qw(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),xm([n,e[0],e[1]])}))}var h9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Qw(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Qw(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=ru(this._flatCoords,a.flatCoords),this._flatCoordsOffset=ru(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(ee);const d9=h9;function Xf(r){return r instanceof Array||(r=[r,r]),r}var p9={seriesType:"lines",reset:function(r){var t=Xf(r.get("symbol")),e=Xf(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=Xf(s.getShallow("symbol",!0)),u=Xf(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};const g9=p9;function y9(r){r.registerChartView(f9),r.registerSeriesModel(d9),r.registerLayout(bk),r.registerVisual(g9)}var m9=256,_9=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ta.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,v=c.getContext("2d"),h=t.length;c.width=e,c.height=a;for(var d=0;d0){var I=o(_)?l:u;_>0&&(_=_*M+T),b[x++]=I[D],b[x++]=I[D+1],b[x++]=I[D+2],b[x++]=I[D+3]*_*256}else x+=4}return v.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ta.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=G.color.neutral99,n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();const S9=_9;function x9(r,t,e){var a=r[1]-r[0];t=Y(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=t[0]&&a<=t[1]}}function tT(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var w9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,n,0,e.getData().count()):tT(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(tT(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Qn(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=Yn(s,"cartesian2d"),u=Yn(s,"matrix"),f,c,v,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,c=p.getBandWidth()+.5,v=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),b=e.get(["itemStyle","borderRadius"]),x=Te(e),w=e.getModel("emphasis"),T=w.get("focus"),C=w.get("blurScope"),M=w.get("disabled"),D=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],I=n;Iv[1]||Ph[1])continue;var O=s.dataToPoint([R,P]);L=new At({shape:{x:O[0]-f/2,y:O[1]-c/2,width:f,height:c},style:k})}else if(u){var E=s.dataToLayout([y.get(D[0],I),y.get(D[1],I)]).rect;if(Ze(E.x))continue;L=new At({z2:1,shape:E,style:k})}else{if(isNaN(y.get(D[1],I)))continue;var B=s.dataToLayout([y.get(D[0],I)]),E=B.contentRect||B.rect;if(Ze(E.x)||Ze(E.y))continue;L=new At({z2:1,shape:E,style:k})}if(y.hasItemOption){var V=y.getItemModel(I),H=V.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=V.getModel(["blur","itemStyle"]).getItemStyle(),S=V.getModel(["select","itemStyle"]).getItemStyle(),b=V.get(["itemStyle","borderRadius"]),T=H.get("focus"),C=H.get("blurScope"),M=H.get("disabled"),x=Te(V)}L.shape.r=b;var W=e.getRawValue(I),X="-";W&&W[2]!=null&&(X=W[2]+""),Ie(L,x,{labelFetcher:e,labelDataIndex:I,defaultOpacity:k.opacity,defaultText:X}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,Qt(L,T,C,M),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),y.setItemGraphicEl(I,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new S9;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var v=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-v,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var M=e.dataToPoint([w,T]);return M[0]-=v,M[1]-=h,M.push(C),M}),S=n.getExtent(),b=n.type==="visualMap.continuous"?b9(S,n.option.range):x9(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new We({style:{width:g,height:y,x:v,y:h,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(Xt);const T9=w9;var C9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return cn(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Vu.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:G.color.primary}}},t}(ee);const A9=C9;function M9(r){r.registerChartView(T9),r.registerSeriesModel(A9)}var D9=["itemStyle","borderWidth"],eT=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Mp=new Jn,L9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:eT[+f],categoryDim:eT[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=aT(o,d),g=rT(o,d,p,v),y=nT(o,v,g);o.setItemGraphicEl(d,y),i.add(y),oT(y,v,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=aT(o,d),m=rT(o,d,y,v),_=Dk(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?N9(g,v,m):g=nT(o,v,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),oT(g,v,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&iT(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=e.get("clip",!0)?Uu(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){iT(i,dt(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(Xt);function rT(r,t,e,a){var n=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),v={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};I9(e,i,n,a,v),P9(r,t,n,i,o,v.boundingLength,v.pxSign,f,a,v),k9(e,v.symbolScale,u,a,v);var h=v.symbolSize,d=So(e.get("symbolOffset"),h);return R9(e,h,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function I9(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(U(o)){var c=[Dp(s,o[0])-l,Dp(s,o[1])-l];c[1]=0?1:-1:f>0?1:-1}function Dp(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function P9(r,t,e,a,n,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,v=Math.abs(e[c.wh]),h=r.getItemVisual(t,"symbolSize"),d;U(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[c.index]=J(d[c.index],v),d[f.index]=J(d[f.index],a?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function k9(r,t,e,a,n){var i=r.get(D9)||0;i&&(Mp.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Mp.updateTransform(),i/=Mp.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function R9(r,t,e,a,n,i,o,s,l,u,f,c){var v=f.categoryDim,h=f.valueDim,d=c.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(a){var y=Math.abs(l),m=Fe(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=J(m,t[h.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=zM(a),T=w?a:sT((y+x)/b),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!w&&a!=="fixed"&&(T=u?sT((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var M=d*(g/2),D=c.pathPosition=[];D[v.index]=e[v.wh]/2,D[h.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var I=c.bundlePosition=[];I[v.index]=e[v.xy],I[h.index]=e[h.xy];var L=c.barRectShape=$({},e);L[h.wh]=d*Math.max(Math.abs(e[h.wh]),Math.abs(D[h.index]+M)),L[v.wh]=e[v.wh];var k=c.clipShape={};k[v.xy]=-e[v.xy],k[v.wh]=f.ecSize[v.wh],k[h.xy]=0,k[h.wh]=e[h.wh]}function wk(r){var t=r.symbolPatternSize,e=me(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Tk(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for(v_(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-p),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Ck(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?ms(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=wk(e),n.add(i),ms(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function Ak(r,t,e){var a=$({},t.barRectShape),n=r.__pictorialBarRect;n?ms(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new At({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Mk(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=$({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)Ot(n,{shape:i},s,l);else{i[o.wh]=0,n=new At({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],go[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function aT(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=E9,e.isAnimationEnabled=O9,e}function E9(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function O9(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function nT(r,t,e,a){var n=new lt,i=new lt;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Tk(n,t,e):Ck(n,t,e),Ak(n,e,a),Mk(n,t,e,a),n.__pictorialShapeStr=Dk(r,e),n.__pictorialSymbolMeta=e,n}function N9(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;Ot(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?Tk(r,t,e,!0):Ck(r,t,e,!0),Ak(r,e,!0),Mk(r,t,e,!0)}function iT(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];v_(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),A(i,function(o){Wn(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function Dk(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function v_(r,t,e){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function ms(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&go[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function oT(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),v=i.get("scale");v_(r,function(p){if(p instanceof We){var g=p.style;p.useStyle($({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Ie(d,Te(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:Ms(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),Qt(r,f,c,i.get("disabled"))}function sT(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const B9=L9;var z9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=ti(pv.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:G.color.primary}}}),t}(pv);const V9=z9;function G9(r){r.registerChartView(B9),r.registerSeriesModel(V9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(W2,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$2("pictorialBar"))}var F9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function v(g){return g.name}var h=new nn(this._layersSeries||[],l,v,v),d=[];h.add(tt(p,this,"add")).update(tt(p,this,"update")).remove(tt(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=c)}return{y0:n,max:i}}function X9(r){r.registerChartView(W9),r.registerSeriesModel(U9),r.registerLayout(Y9),r.registerProcessor(Zs("themeRiver"))}var q9=2,K9=4,j9=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=q9,o.textConfig={inside:!0},dt(o).seriesIndex=a.seriesIndex;var s=new Et({z2:K9,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;dt(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),c=$({},f);c.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var h=a.getVisual("decal");h&&(v.decal=Ts(h,o));var d=Aa(l.getModel("itemStyle"),c,!0);$(c,d),A(ar,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=Aa(S,c);b&&(_.shape=b)}),e?(s.setShape(c),s.shape.r=f.r0,Jt(s,{shape:{r:f.r}},n,a.dataIndex)):(Ot(s,{shape:c},n),Fr(s)),s.useStyle(v),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?ru(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Qt(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,v=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)k&&!ou(P-k)&&P0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,n):(o.virtualPiece=new uT(m,e,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Jc(u,f)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Zy,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Xt);const eZ=tZ;var rZ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};Lk(n);var i=this._levelModels=Y(e.levels||[],function(l){return new Nt(l,this,a)},this),o=Z0.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),v=i[c.depth];return v&&(u.parentModel=v),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=wh(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){kP(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(ee);function Lk(r){var t=0;A(r.children,function(a){Lk(a);var n=a.value;U(n)&&(n=n[0]),t+=n});var e=r.value;U(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),U(r.value)?r.value[0]=e:r.value=e}const aZ=rZ;var cT=Math.PI/180;function nZ(r,t,e){t.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");U(i)||(i=[0,i]),U(n)||(n=[n,n]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=J(n[0],o),f=J(n[1],s),c=J(i[0],l/2),v=J(i[1],l/2),h=-a.get("startAngle")*cT,d=a.get("minAngle")*cT,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&Ik(g,m);var _=0;A(g.children,function(P){!isNaN(P.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(v-c)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,I=function(P,O){if(P){var E=O;if(P!==p){var B=P.getValue(),V=S===0&&M?b:B*b;V1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&Q(s)&&(s=xg(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");$(u,l)})})}function sZ(r){r.registerChartView(eZ),r.registerSeriesModel(aZ),r.registerLayout(xt(nZ,"sunburst")),r.registerProcessor(xt(Zs,"sunburst")),r.registerVisual(oZ),Q9(r)}var vT={color:"fill",borderColor:"stroke"},lZ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ka=Mt(),uZ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return cn(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Ka(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(ee);const fZ=uZ;function cZ(r,t){return t=t||[0,0],Y(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function vZ(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:tt(cZ,r)}}}function hZ(r,t){return t=t||[0,0],Y([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function dZ(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:tt(hZ,r)}}}function pZ(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function gZ(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:tt(pZ,r)}}}function yZ(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function mZ(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:tt(yZ,r)}}}function _Z(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function SZ(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,a){return r.dataToPoint(e,a)},layout:function(e,a){return r.dataToLayout(e,a)}}}}function Pk(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||et(r,"text")))}function kk(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},et(a,"text")&&(o.text=a.text),et(a,"rich")&&(o.rich=a.rich),et(a,"textFill")&&(o.fill=a.textFill),et(a,"textStroke")&&(o.stroke=a.textStroke),et(a,"fontFamily")&&(o.fontFamily=a.fontFamily),et(a,"fontSize")&&(o.fontSize=a.fontSize),et(a,"fontStyle")&&(o.fontStyle=a.fontStyle),et(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=et(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),et(a,"textPosition")&&(n.position=a.textPosition),et(a,"textOffset")&&(n.offset=a.textOffset),et(a,"textRotation")&&(n.rotation=a.textRotation),et(a,"textDistance")&&(n.distance=a.textDistance)}return hT(o,r),A(o.rich,function(l){hT(l,l)}),{textConfig:n,textContent:i}}function hT(r,t){t&&(t.font=t.textFont||t.font,et(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),et(t,"textAlign")&&(r.align=t.textAlign),et(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),et(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),et(t,"textWidth")&&(r.width=t.textWidth),et(t,"textHeight")&&(r.height=t.textHeight),et(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),et(t,"textPadding")&&(r.padding=t.textPadding),et(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),et(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),et(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),et(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),et(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),et(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),et(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function dT(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||G.color.neutral99;pT(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||G.color.neutral00,!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||G.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,A(t.rich,function(s){pT(s,s)}),a}function pT(r,t){t&&(et(t,"fill")&&(r.textFill=t.fill),et(t,"stroke")&&(r.textStroke=t.fill),et(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),et(t,"font")&&(r.font=t.font),et(t,"fontStyle")&&(r.fontStyle=t.fontStyle),et(t,"fontWeight")&&(r.fontWeight=t.fontWeight),et(t,"fontSize")&&(r.fontSize=t.fontSize),et(t,"fontFamily")&&(r.fontFamily=t.fontFamily),et(t,"align")&&(r.textAlign=t.align),et(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),et(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),et(t,"width")&&(r.textWidth=t.width),et(t,"height")&&(r.textHeight=t.height),et(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),et(t,"padding")&&(r.textPadding=t.padding),et(t,"borderColor")&&(r.textBorderColor=t.borderColor),et(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),et(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),et(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),et(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),et(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),et(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),et(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),et(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),et(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),et(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Rk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},gT=It(Rk);Pa(Ra,function(r,t){return r[t]=1,r},{});Ra.join(", ");var Cv=["","style","shape","extra"],Ps=Mt();function h_(r,t,e,a,n){var i=r+"Animation",o=Vs(r,a,n)||{},s=Ps(t).userDuring;return o.duration>0&&(o.during=s?tt(CZ,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),$(o,e[i]),o}function Dc(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=Ps(r),u=t.style;l.userDuring=t.during;var f={},c={};if(MZ(r,t,c),r.type==="compound")for(var v=r.shape.paths,h=t.shape.paths,d=0;d0&&r.animateFrom(g,y)}else bZ(r,t,n||0,e,f);Ek(r,t),u?r.dirty():r.markRedraw()}function Ek(r,t){for(var e=Ps(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function wZ(r,t){et(t,"silent")&&(r.silent=t.silent),et(t,"ignore")&&(r.ignore=t.ignore),r instanceof Gr&&et(t,"invisible")&&(r.invisible=t.invisible),r instanceof Dt&&et(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var da={},TZ={setTransform:function(r,t){return da.el[r]=t,this},getTransform:function(r){return da.el[r]},setShape:function(r,t){var e=da.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=da.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=da.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=da.el.style;if(t)return t[r]},setExtra:function(r,t){var e=da.el.extra||(da.el.extra={});return e[r]=t,this},getExtra:function(r){var t=da.el.extra;if(t)return t[r]}};function CZ(){var r=this,t=r.el;if(t){var e=Ps(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}da.el=t,a(TZ)}}function yT(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),ro(l))$(o,i);else for(var u=Ut(l),f=0;f=0){!o&&(o=a[r]={});for(var h=It(i),f=0;f=0)){var v=r.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=a.style={});for(var d=It(e),u=0;u=0?t.getStore().get(E,P):void 0}var B=t.get(O.name,P),V=O&&O.ordinalMeta;return V?V.categories[B]:B}function w(R,P){P==null&&(P=f);var O=t.getItemVisual(P,"style"),E=O&&O.fill,B=O&&O.opacity,V=_(P,Rn).getItemStyle();E!=null&&(V.fill=E),B!=null&&(V.opacity=B);var H={inheritColor:Q(E)?E:G.color.neutral99},W=S(P,Rn),X=Zt(W,null,H,!1,!0);X.text=W.getShallow("show")?nt(r.getFormattedLabel(P,Rn),Ms(t,P)):null;var K=Kc(W,H,!1);return M(R,V),V=dT(V,X,K),R&&C(V,R),V.legacy=!0,V}function T(R,P){P==null&&(P=f);var O=_(P,ja).getItemStyle(),E=S(P,ja),B=Zt(E,null,null,!0,!0);B.text=E.getShallow("show")?xr(r.getFormattedLabel(P,ja),r.getFormattedLabel(P,Rn),Ms(t,P)):null;var V=Kc(E,null,!0);return M(R,O),O=dT(O,B,V),R&&C(O,R),O.legacy=!0,O}function C(R,P){for(var O in P)et(P,O)&&(R[O]=P[O])}function M(R,P){R&&(R.textFill&&(P.textFill=R.textFill),R.textPosition&&(P.textPosition=R.textPosition))}function D(R,P){if(P==null&&(P=f),et(vT,R)){var O=t.getItemVisual(P,"style");return O?O[vT[R]]:null}if(et(lZ,R))return t.getItemVisual(P,R)}function I(R){if(o.type==="cartesian2d"){var P=o.getBaseAxis();return r3(ct({axis:P},R))}}function L(){return e.getCurrentSeriesIndices()}function k(R){return qm(R,e)}}function VZ(r){var t={};return A(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Rp(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=m_(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&Qt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function m_(r,t,e,a,n,i){var o=-1,s=t;t&&zk(t,a,n)&&(o=bt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=g_(a),s&&EZ(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Mr.normal.cfg=Mr.normal.conOpt=Mr.emphasis.cfg=Mr.emphasis.conOpt=Mr.blur.cfg=Mr.blur.conOpt=Mr.select.cfg=Mr.select.conOpt=null,Mr.isLegacy=!1,FZ(u,e,a,n,l,Mr),GZ(u,e,a,n,l),y_(r,u,e,a,Mr,n,l),et(a,"info")&&(Ka(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function zk(r,t,e){var a=Ka(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&YZ(i)&&Vk(i)!==a.customPathData||n==="image"&&et(o,"image")&&o.image!==a.customImagePath}function GZ(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&zk(o,i,a)&&(o=null),o||(o=g_(i),r.setClipPath(o)),y_(null,o,t,i,null,a,n)}}function FZ(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){_T(e,null,i),_T(e,ja,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=g_(o),r.setTextContent(f)),y_(null,f,t,o,null,a,n);for(var c=o&&o.style,v=0;v=f;h--){var d=t.childAt(h);WZ(t,d,n)}}}function WZ(r,t,e){t&&Ah(t,Ka(r).option,e)}function $Z(r){new nn(r.oldChildren,r.newChildren,ST,ST,r).add(xT).update(xT).remove(UZ).execute()}function ST(r,t){var e=r&&r.name;return e??kZ+t}function xT(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;m_(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function UZ(r){var t=this.context,e=t.oldChildren[r];e&&Ah(e,Ka(e).option,t.seriesModel)}function Vk(r){return r&&(r.pathData||r.d)}function YZ(r){return r&&(et(r,"pathData")||et(r,"d"))}function ZZ(r){r.registerChartView(NZ),r.registerSeriesModel(fZ)}var Ni=Mt(),bT=st,Ep=tt,XZ=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new lt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var v=xt(wT,e,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}CT(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=G0(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=Ni(t).pointerEl=new go[i.type](bT(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Ni(t).labelEl=new Et(bT(e.label));t.add(i),TT(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Ni(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=Ni(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),TT(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Nu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){tn(u.event)},onmousedown:Ep(this._onHandleDragMove,this,0,0),drift:Ep(this._onHandleDragMove,this),ondragend:Ep(this._onHandleDragEnd,this)}),a.add(n)),CT(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");U(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,$s(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){wT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Op(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Op(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Op(n)),Ni(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),pu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function wT(r,t,e,a){Gk(Ni(e).lastProp,a)||(Ni(e).lastProp=a,t?Ot(e,a,r):(e.stopAnimation(),e.attr(a)))}function Gk(r,t){if(vt(r)&&vt(t)){var e=!0;return A(t,function(a,n){e=e&&Gk(r[n],a)}),!!e}else return r===t}function TT(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Op(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function CT(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}const S_=XZ;function x_(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function Fk(r,t,e,a,n){var i=e.get("value"),o=Hk(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Bu(s.get("padding")||0),u=s.getFont(),f=Xv(o,u),c=n.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=n.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),qZ(c,v,h,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function qZ(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Hk(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:sv(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Q(o)?i=o.replace("{value}",i):ot(o)&&(i=o(s))}return i}function b_(r,t,e){var a=Oe();return jn(a,a,e.rotation),ka(a,a,e.position),Jr([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function Wk(r,t,e,a,n,i){var o=on.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),Fk(t,a,n,i,{position:b_(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function w_(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function $k(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function AT(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var KZ=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=MT(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=x_(i),h=jZ[u](s,c,f);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=mv(l.getRect(),n);Wk(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=mv(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=b_(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=MT(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=a[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[f]}},t}(S_);function MT(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var jZ={line:function(r,t,e){var a=w_([t,e[0]],[t,e[1]],DT(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:$k([t-a/2,e[0]],[a,n],DT(r))}}};function DT(r){return r.dim==="x"?0:1}const JZ=KZ;var QZ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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:G.color.border,width:1,type:"dashed"},shadowStyle:{color:G.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:G.color.neutral00,padding:[5,7,5,7],backgroundColor:G.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:G.color.accent40,throttle:40}},t}(Rt);const tX=QZ;var Za=Mt(),eX=A;function Uk(r,t,e){if(!Bt.node){var a=t.getZr();Za(a).records||(Za(a).records={}),rX(a,t);var n=Za(a).records[r]||(Za(a).records[r]={});n.handler=e}}function rX(r,t){if(Za(r).initialized)return;Za(r).initialized=!0,e("click",xt(LT,"click")),e("mousemove",xt(LT,"mousemove")),e("globalout",nX);function e(a,n){r.on(a,function(i){var o=iX(t);eX(Za(r).records,function(s){s&&n(s,i,o.dispatchAction)}),aX(o.pendings,t)})}}function aX(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function nX(r,t,e){r.handler("leave",null,e)}function LT(r,t,e,a){t.handler(r,e,a)}function iX(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function Ky(r,t){if(!Bt.node){var e=t.getZr(),a=(Za(e).records||{})[r];a&&(Za(e).records[r]=null)}}var oX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Uk("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){Ky("axisPointer",a)},t.prototype.dispose=function(e,a){Ky("axisPointer",a)},t.type="axisPointer",t}(ae);const sX=oX;function Yk(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=no(i,r);if(o==null||o<0||U(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=i.mapDimension(v),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(Y(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var IT=Mt();function lX(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||tt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Lc(n)&&(n=Yk({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Lc(n),u=i.axesInfo,f=s.axesInfo,c=a==="leave"||Lc(n),v={},h={},d={list:[],map:{}},p={showPointer:xt(fX,h),showTooltip:xt(cX,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=pX(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&PT(S,T,p,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&A(_.axesInfo,function(S,b){var x=h[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,kT(S),kT(y)))),g[y.key]=w}})}),A(g,function(y,m){PT(f[m],y,p,!0,v)}),vX(h,f,v),hX(d,n,r,o),dX(f,o,e),v}}function PT(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=uX(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&$(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function uX(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,e);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(a,f[0],r,e.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,n=c,i.length=0),A(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function fX(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function cX(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=Tu(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function vX(r,t,e){var a=e.axesInfo=[];A(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function hX(r,t,e,a){if(Lc(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function dX(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=IT(a)[n]||{},o=IT(a)[n]={};A(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&A(c.seriesDataIndices,function(v){var h=v.seriesIndex+" | "+v.dataIndex;o[h]=v})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function pX(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function kT(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Lc(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Xu(r){wo.registerAxisPointerClass("CartesianAxisPointer",JZ),r.registerComponentModel(tX),r.registerComponentView(sX),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!U(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=$W(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},lX)}function gX(r){Tt(dP),Tt(Xu)}var yX=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var h=x_(i),d=_X[v](s,l,c,f);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=mX(a,n,i,l,p);Fk(e,n,i,o,g)},t}(S_);function mX(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var v=Oe();jn(v,v,s),ka(v,v,[a.cx,a.cy]),u=Jr([o,-n],v);var h=t.getModel("axisLabel").get("rotate")||0,d=on.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var _X={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:w_(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:AT(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:AT(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const SX=yX;var xX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Rt);const bX=xX;var T_=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ne).models[0]},t.type="polarAxis",t}(Rt);_e(T_,Hu);var wX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(T_),TX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(T_),C_=function(r){z(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(oa);C_.prototype.dataToRadius=oa.prototype.dataToCoord;C_.prototype.radiusToData=oa.prototype.coordToData;const CX=C_;var AX=Mt(),A_=function(r){z(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=Xv(s==null?"":s+"",a.getFont(),"center","top"),c=Math.max(f.height,7),v=c/u;isNaN(v)&&(v=1/0);var h=Math.max(0,Math.floor(v)),d=AX(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(oa);A_.prototype.dataToAngle=oa.prototype.dataToCoord;A_.prototype.angleToData=oa.prototype.coordToData;const MX=A_;var Zk=["radius","angle"],DX=function(){function r(t){this.dimensions=Zk,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new CX,this._angleAxis=new MX,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e,a){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],a)},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.pointToCoord(t);return a[0]=this._radiusAxis.radiusToData(n[0],e),a[1]=this._angleAxis.angleToData(n[1],e),a},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t,e){e=e||[];var a=t[0],n=t[1]/180*Math.PI;return e[0]=Math.cos(n)*a+this.cx,e[1]=-Math.sin(n)*a+this.cy,e},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,c=u*u+f*f,v=this.r,h=this.r0;return v!==h&&c-o<=v*v&&c+o>=h*h},x:this.cx-a[1],y:this.cy-a[1],width:a[1]*2,height:a[1]*2}},r.prototype.convertToPixel=function(t,e,a){var n=RT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=RT(e);return n===this?this.pointToData(a):null},r}();function RT(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const LX=DX;function IX(r,t,e){var a=t.get("center"),n=Ce(t,e).refContainer;r.cx=J(a[0],n.width)+n.x,r.cy=J(a[1],n.height)+n.y;var i=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:U(s)||(s=[0,s]);var l=[J(s[0],o),J(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function PX(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();A(lv(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(lv(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Cs(a.scale,a.model),Cs(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function kX(r){return r.mainType==="angleAxis"}function ET(r,t){var e;if(r.type=t.get("type"),r.scale=gh(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),kX(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var RX={dimensions:Zk,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new LX(n+"");i.update=PX;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");ET(o,l),ET(s,u),IX(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",ne).models[0];a.coordinateSystem=n.coordinateSystem}}),e}};const EX=RX;var OX=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function qf(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Kf(r){var t=r.getRadiusAxis();return t.inverse?0:1}function OT(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var NX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords({breakTicks:"none"}),l=n.getMinorTicksCoords(),u=Y(n.getViewLabels(),function(f){f=st(f);var c=n.scale,v=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});OT(u),OT(s),A(OX,function(f){e.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&BX[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(wo),BX={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Kf(e),c=f?0:1,v,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?v=new go[h]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new ah({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Kf(e)],u=Y(a,function(f){return new be({shape:qf(e,[l,l+s],f.coord)})});r.add(Or(u,{style:ct(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Kf(e)],f=[],c=0;cy?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];vt(b)&&b.textStyle&&(h=new Nt(b.textStyle,l,l.ecModel))}var x=new Et({silent:on.isLabelSilent(t),style:Zt(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),fn({el:x,componentModel:t,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return x.isTruncated},value:c.rawLabel,tickIndex:v}}),f){var w=on.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,dt(x).eventData=w}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c=0?"p":"n",R=C;b&&(a[f][L]||(a[f][L]={p:C,n:C}),R=a[f][L][k]);var P=void 0,O=void 0,E=void 0,B=void 0;if(d.dim==="radius"){var V=d.dataToCoord(I)-C,H=l.dataToCoord(L);Math.abs(V)=B})}}})}function UX(r){var t={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=qk(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=c.stacks;t[l]=c;var h=Xk(a);v[h]||c.autoWidthCount++,v[h]=v[h]||{width:0,maxWidth:0};var d=J(a.get("barWidth"),f),p=J(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!v[h].width&&(d=Math.min(c.remainedWidth,d),v[h].width=d,c.remainedWidth-=d),p&&(v[h].maxWidth=p),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=J(a.categoryGap,o),l=J(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),A(i,function(p,g){var y=p.maxWidth;y&&y=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.getAxis();return a[0]=n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1])),a},r.prototype.dataToPoint=function(t,e,a){var n=this.getAxis(),i=this.getRect();a=a||[];var o=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(t,e,a){var n=NT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=NT(e);return n===this?this.pointToData(a):null},r}();function NT(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function aq(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new rq(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",ne).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var nq={create:aq,dimensions:jk};const iq=nq;var BT=["x","y"],oq=["width","height"],sq=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Bp(l,1-Dv(s)),f=l.dataToPoint(a)[0],c=i.get("type");if(c&&c!=="none"){var v=x_(i),h=lq[c](s,f,u);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=jy(n);Wk(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=jy(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=b_(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Dv(o),u=Bp(s,l),f=[e.x,e.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=Bp(s,1-l),v=(c[1]+c[0])/2,h=[v,v];return h[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(S_),lq={line:function(r,t,e){var a=w_([t,e[0]],[t,e[1]],Dv(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),n=e[1]-e[0];return{type:"Rect",shape:$k([t-a/2,e[0]],[a,n],Dv(r))}}};function Dv(r){return r.isHorizontal()?0:1}function Bp(r,t){var e=r.getRect();return[e[BT[t]],e[BT[t]]+e[oq[t]]]}const uq=sq;var fq=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(ae);function cq(r){Tt(Xu),wo.registerAxisPointerClass("SingleAxisPointer",uq),r.registerComponentView(fq),r.registerComponentView(QX),r.registerComponentModel(Np),Ds(r,"single",Np,Np.defaultOption),r.registerCoordinateSystem("single",iq)}var vq=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=mo(e);r.prototype.init.apply(this,arguments),zT(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),zT(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:G.color.axisLine,width:1,type:"solid"}},itemStyle:{color:G.color.neutral00,borderWidth:1,borderColor:G.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:G.size.s,color:G.color.secondary},monthLabel:{show:!0,position:"start",margin:G.size.s,align:"center",formatter:null,color:G.color.secondary},yearLabel:{show:!0,position:null,margin:G.size.xl,formatter:null,color:G.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Rt);function zT(r,t){var e=r.cellSize,a;U(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=Y([0,1],function(i){return kV(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Oa(r,t,{type:"box",ignoreSize:n})}const hq=vq;var dq=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new At({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(c)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=a.start,v=0;c.time<=a.end.time;v++){d(c.formatedDate),v===0&&(c=s.getDateInfo(a.start.y+"-"+a.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=s.getDateInfo(h)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new Ke({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return Q(e)&&e?CV(e,a):ot(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,h={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],c],right:[u[v][0],c]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Et({z2:30,style:Zt(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],f=e[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||Q(s))&&(s&&(a=Xg(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,h=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g=i.start.time&&n.times.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/zp)-Math.floor(e[0].time/zp)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+e[0].day+6)/7),c=a?-f+1:f-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&en.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){zu({targetModel:i,coordSysType:"calendar",coordSysProvider:fL})}),a},r.dimensions=["time","value"],r}();function Vp(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}const yq=gq;function mq(r){r.registerComponentModel(hq),r.registerComponentView(pq),r.registerCoordinateSystem("calendar",yq)}var Ua={level:1,leaf:2,nonLeaf:3},Ja={none:0,all:1,body:2,corner:3};function Jy(r,t,e){var a=t[gt[e]].getCell(r);return!a&&kt(r)&&r<0&&(a=t[gt[1-e]].getUnitLayoutInfo(e,Math.round(r))),a}function Jk(r){var t=r||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function Qk(r,t,e,a,n){VT(r[0],t,n,e,a,0),VT(r[1],t,n,e,a,1)}function VT(r,t,e,a,n,i){r[0]=1/0,r[1]=-1/0;var o=a[i],s=U(o)?o:[o],l=s.length,u=!!e;if(l>=1?(GT(r,t,s,u,n,i,0),l>1&>(r,t,s,u,n,i,l-1)):r[0]=r[1]=NaN,u){var f=-n[gt[1-i]].getLocatorCount(i),c=n[gt[i]].getLocatorCount(i)-1;e===Ja.body?f=ue(0,f):e===Ja.corner&&(c=br(-1,c)),c=t[0]&&r[0]<=t[1]}function WT(r,t){r.id.set(t[0][0],t[1][0]),r.span.set(t[0][1]-r.id.x+1,t[1][1]-r.id.y+1)}function xq(r,t){r[0][0]=t[0][0],r[0][1]=t[0][1],r[1][0]=t[1][0],r[1][1]=t[1][1]}function $T(r,t,e,a){var n=Jy(t[a][0],e,a),i=Jy(t[a][1],e,a);r[gt[a]]=r[ge[a]]=NaN,n&&i&&(r[gt[a]]=n.xy,r[ge[a]]=i.xy+i.wh-n.xy)}function xl(r,t,e,a){return r[gt[t]]=e,r[gt[1-t]]=a,r}function bq(r){return r&&(r.type===Ua.leaf||r.type===Ua.nonLeaf)?r:null}function Lv(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var UT=function(){function r(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=e,this._uniqueValueGen=wq(t);var a=e.get("data",!0);a!=null&&!U(a)&&(a=[]),a?this._initByDimModelData(a):this._initBySeriesData()}return r.prototype._initByDimModelData=function(t){var e=this,a=e._cells,n=e._levels,i=[],o=0;e._leavesCount=s(t,0,0),l();return;function s(u,f,c){var v=0;return u&&A(u,function(h,d){var p;Q(h)?p={value:h}:vt(h)?(p=h,h.value!=null&&!Q(h.value)&&(p={value:null})):p={value:null};var g={type:Ua.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:f,id:new ft,span:xl(new ft,e.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:e,rect:Lv()};o++,(i[f]||(i[f]=[])).push(g),n[c]||(n[c]={type:Ua.level,xy:NaN,wh:NaN,option:null,id:new ft,dim:e});var y=s(p.children,f,c+1),m=Math.max(1,y);g.span[gt[e.dimIdx]]=m,v+=m,f+=m}),v}function l(){for(var u=[];a.length=1,_=e[gt[a]],S=i.getLocatorCount(a)-1,b=new zn;for(o.resetLayoutIterator(b,a);b.next();)x(b.item);for(i.resetLayoutIterator(b,a);b.next();)x(b.item);function x(w){Ze(w.wh)&&(w.wh=y),w.xy=_,w.id[gt[a]]===S&&!m&&(w.wh=e[gt[a]]+e[ge[a]]-w.xy),_+=w.wh}}function JT(r,t){for(var e=t[gt[r]].resetCellIterator();e.next();){var a=e.item;Iv(a.rect,r,a.id,a.span,t),Iv(a.rect,1-r,a.id,a.span,t),a.type===Ua.nonLeaf&&(a.xy=a.rect[gt[r]],a.wh=a.rect[ge[r]])}}function QT(r,t){r.travelExistingCells(function(e){var a=e.span;if(a){var n=e.spanRect,i=e.id;Iv(n,0,i,a,t),Iv(n,1,i,a,t)}})}function Iv(r,t,e,a,n){r[ge[t]]=0;var i=e[gt[t]],o=i<0?n[gt[1-t]]:n[gt[t]],s=o.getUnitLayoutInfo(t,e[gt[t]]);if(r[gt[t]]=s.xy,r[ge[t]]=s.wh,a[gt[t]]>1){var l=o.getUnitLayoutInfo(t,e[gt[t]]+a[gt[t]]-1);r[ge[t]]=l.xy+l.wh-s.xy}}function zq(r,t,e){var a=$c(r,e[ge[t]]);return tm(a,e[ge[t]])}function tm(r,t){return Math.max(Math.min(r,nt(t,1/0)),0)}function Hp(r){var t=r.matrixModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var Ge={inBody:1,inCorner:2,outside:3},va={x:null,y:null,point:[]};function tC(r,t,e,a,n){var i=e[gt[t]],o=e[gt[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),f=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,c=r.point[t]=a[t];if(!l&&!f){r[gt[t]]=Ge.outside;return}if(n===Ja.body){l?(r[gt[t]]=Ge.inBody,c=br(s.xy+s.wh,ue(l.xy,c)),r.point[t]=c):r[gt[t]]=Ge.outside;return}else if(n===Ja.corner){f?(r[gt[t]]=Ge.inCorner,c=br(f.xy+f.wh,ue(u.xy,c)),r.point[t]=c):r[gt[t]]=Ge.outside;return}var v=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:v,d=s?s.xy+s.wh:v;if(cd){if(!n){r[gt[t]]=Ge.outside;return}c=d}r.point[t]=c,r[gt[t]]=v<=c&&c<=d?Ge.inBody:h<=c&&c<=v?Ge.inCorner:Ge.outside}function eC(r,t,e,a){var n=1-e;if(r[gt[e]]!==Ge.outside)for(a[gt[e]].resetCellIterator(Fp);Fp.next();){var i=Fp.item;if(aC(r.point[e],i.rect,e)&&aC(r.point[n],i.rect,n)){t[e]=i.ordinal,t[n]=i.id[gt[n]];return}}}function rC(r,t,e,a){if(r[gt[e]]!==Ge.outside){var n=r[gt[e]]===Ge.inCorner?a[gt[1-e]]:a[gt[e]];for(n.resetLayoutIterator(ec,e);ec.next();)if(Vq(r.point[e],ec.item)){t[e]=ec.item.id[gt[e]];return}}}function Vq(r,t){return t.xy<=r&&r<=t.xy+t.wh}function aC(r,t,e){return t[gt[e]]<=r&&r<=t[gt[e]]+t[ge[e]]}const Gq=Bq;function Fq(r){r.registerComponentModel(Dq),r.registerComponentView(Nq),r.registerCoordinateSystem("matrix",Gq)}function Hq(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function nC(r,t){var e;return A(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function Wq(r,t,e){var a=$({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(wt(n,a,!0),Oa(n,a,{ignoreSize:!0}),pL(e,n),rc(e,n),rc(e,n,"shape"),rc(e,n,"style"),rc(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var eR=["transition","enterFrom","leaveTo"],$q=eR.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function rc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?eR:$q,n=0;n=0;f--){var c=n[f],v=xe(c.id,null),h=v!=null?o.get(v):null;if(h){var d=h.parent,y=kr(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=fh(h,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!kr(h).isNew&&S){for(var b=c.transition,x={},w=0;w=0)?x[T]=C:h[T]=C}Ot(h,x,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Ic(n,kr(n).option,a,e._lastGraphicModel)}),this._elMap=rt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ae);function em(r){var t=et(iC,r)?iC[r]:qc(r),e=new t({});return kr(e).type=r,e}function oC(r,t,e,a){var n=em(e);return t.add(n),a.set(r,n),kr(n).id=r,kr(n).isNew=!0,n}function Ic(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Ic(i,t,e,a)}),Ah(r,t,a),e.removeKey(kr(r).id))}function sC(r,t,e,a){r.isGroup||A([["cursor",Gr.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];et(t,i)?r[i]=nt(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(It(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=ot(i)?i:null}}),et(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Xq(r){return r=$({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(cL),function(t){delete r[t]}),r}function qq(r,t,e){var a=dt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=dt(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function Kq(r){r.registerComponentModel(Yq),r.registerComponentView(Zq),r.registerPreprocessor(function(t){var e=t.graphic;U(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var lC=["x","y","radius","angle","single"],jq=["cartesian2d","polar","singleAxis"];function Jq(r){var t=r.get("coordinateSystem");return bt(jq,t)>=0}function En(r){return r+"Axis"}function Qq(r,t){var e=rt(),a=[],n=rt();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(v,h){var d=e.get(v);d&&d[h]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,v){(e.get(c)||e.set(c,[]))[v]=!0})}return a}function rR(r){var t=r.ecModel,e={infoList:[],infoMap:rt()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(En(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var Wp=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),tK=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=uC(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=uC(e);wt(this.option,e,!0),wt(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=rt(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return A(lC,function(n){var i=this.getReferringComponents(En(n),KN);if(i.specified){a=!0;var o=new Wp;A(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var c=u[0];if(c){var v=new Wp;if(v.add(c.componentIndex),e.set(f,v),i=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",ne).models[0];h&&A(u,function(d){c.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",ne).models[0]&&v.add(d.componentIndex)})}}}i&&A(lC,function(u){if(i){var f=n.findComponents({mainType:En(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var c=new Wp;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(En(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(En(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else ns(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});ns(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;ns(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ft(a[0]+o,a,[0,100],!0):i!=null&&(o=Ft(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=OM(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function sK(r,t,e){var a=[1/0,-1/0];ns(e,function(o){b3(a,o.getData(),t)});var n=r.getAxisModel(),i=j2(n.axis.scale,n,a).calculate();return[i.min,i.max]}const lK=oK;var uK={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(En(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new lK(n,i,s,r),e.push(o.__dzAxisProxy))});var a=rt();return A(e,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};const fK=uK;function cK(r){r.registerAction("dataZoom",function(t,e){var a=Qq(e,t);A(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var cC=!1;function I_(r){cC||(cC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,fK),cK(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function vK(r){r.registerComponentModel(rK),r.registerComponentView(iK),I_(r)}var Er=function(){function r(){}return r}(),aR={};function is(r,t){aR[r]=t}function nR(r){return aR[r]}var hK=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;A(this.option.feature,function(a,n){var i=nR(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),wt(a,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:G.size.m,itemSize:15,itemGap:G.size.s,showTitle:!0,iconStyle:{borderColor:G.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:G.color.accent50}},tooltip:{show:!1,position:"bottom"}},t}(Rt);const dK=hK;function iR(r,t){var e=Bu(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new At({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var pK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),c=[];A(u,function(m,_){c.push(_)}),new nn(this._featureNames||[],c).add(v).update(v).remove(xt(v,null)).execute(),this._featureNames=c;function v(m,_){var S=c[m],b=c[_],x=u[S],w=new Nt(x,e,e.ecModel),T;if(i&&i.newTitle!=null&&i.featureName===S&&(x.title=i.newTitle),S&&!b){if(gK(S))T={onclick:w.option.onclick,featureName:S};else{var C=nR(S);if(!C)return;T=new C}f[S]=T}else if(T=f[b],!T)return;T.uid=Fs("toolbox-feature"),T.model=w,T.ecModel=a,T.api=n;var M=T instanceof Er;if(!S&&b){M&&T.dispose&&T.dispose(a,n);return}if(!w.get("show")||M&&T.unusable){M&&T.remove&&T.remove(a,n);return}h(w,T,S),w.setIconStatus=function(D,I){var L=this.option,k=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[D]=I,k[D]&&(I==="emphasis"?rn:an)(k[D])},T instanceof Er&&T.render&&T.render(w,a,n,i)}function h(m,_,S){var b=m.getModel("iconStyle"),x=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Er&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,M;Q(w)?(C={},C[S]=w):C=w,Q(T)?(M={},M[S]=T):M=T;var D=m.iconPaths={};A(C,function(I,L){var k=Nu(I,{},{x:-s/2,y:-s/2,width:s,height:s});k.setStyle(b.getItemStyle());var R=k.ensureState("emphasis");R.style=x.getItemStyle();var P=new Et({style:{text:M[L],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:qm({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},a)},ignore:!0});k.setTextContent(P),fn({el:k,componentModel:e,itemName:L,formatterParamsExtra:{title:M[L]}}),k.__title=M[L],k.on("mouseover",function(){var O=x.getItemStyle(),E=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:x.get("textFill")||O.fill||O.stroke||G.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),k.setTextConfig({position:x.get("textPosition")||E}),P.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",L])!=="emphasis"&&n.leaveEmphasis(this),P.hide()}),(m.get(["iconStatus",L])==="emphasis"?rn:an)(k),o.add(k),k.on("click",tt(_.onclick,_,a,n,L)),D[L]=k})}var d=Ce(e,n).refContainer,p=e.getBoxLayoutParams(),g=e.get("padding"),y=te(p,d,g);Qi(e.get("orient"),o,e.get("itemGap"),y.width,y.height),fh(o,p,d,g),o.add(iR(o.getBoundingRect(),e)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),b=S.textConfig||(S.textConfig={}),x=m.getTextContent(),w=x&&x.ensureState("emphasis");if(w&&!ot(w)&&_){var T=w.style||(w.style={}),C=Xv(_,Et.makeFont(T)),M=m.x+o.x,D=m.y+o.y+s,I=!1;D+C.height>n.getHeight()&&(b.position="top",I=!0);var L=I?-5-C.height:s+10;M+C.width/2>n.getWidth()?(b.position=["100%",L],T.align="right"):M-C.width/2<0&&(b.position=[0,L],T.align="left")}})},t.prototype.updateView=function(e,a,n,i){A(this._features,function(o){o instanceof Er&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){A(this._features,function(n){n instanceof Er&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){A(this._features,function(n){n instanceof Er&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(ae);function gK(r){return r.indexOf("my")===0}const yK=pK;var mK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||G.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Bt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),h=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=n.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:G.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(Er);const _K=mK;var vC="__ec_magicType_stack__",SK=[["line","bar"],["stack"]],xK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return A(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(hC[n]){var s={series:[]},l=function(c){var v=c.subType,h=c.id,d=hC[n](v,h,c,i);d&&(ct(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,ne).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(SK,function(c){bt(c,n)>=0&&A(c,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=wt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Er),hC={line:function(r,t,e,a){if(r==="bar")return wt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return wt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===vC;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),wt({id:t,stack:n?"":vC},a.get(["option","stack"])||{},!0)}};Ba({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const bK=xK;var Mh=new Array(60).join("-"),ks=" ";function wK(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function TK(r){var t=[];return A(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(Y(e.series,function(h){return h.name})),l=[n.model.getCategories()];A(e.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(ks)],f=0;f=0)return!0}var Qy=new RegExp("["+Ls+"]+","g");function MK(r){for(var t=r.split(/\n+/g),e=Dv(t.shift()).split(Qy),a=[],n=Y(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function EK(r){var t=D_(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return oR(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function OK(r){sR(r).snapshots=null}function NK(r){return D_(r).length}function D_(r){var t=sR(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var BK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){OK(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t}(Rr);Na({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const zK=BK;var VK=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],GK=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=dC(e,t);A(FK,function(o,s){(!a||!a.include||bt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Fp[a.brushType](0,i,n);a.__rangeOffset={offset:mC[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){A(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&A(i.coordSyses,function(o){var s=Fp[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Fp[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?mC[a.brushType](i.values,o.offset,HK(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:ck(n),isTargetByCursor:hk(n,t,a.coordSysModel),getLinearBrushOtherExtent:vk(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&bt(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=dC(e,t),i=0;ir[1]&&r.reverse(),r}function dC(r,t){return vs(r,t,{includeMainTypes:VK})}var FK={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=rt(),o={},s={};!e&&!a&&!n||(A(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(c,v){(bt(e,c.getAxis("x").model)>=0||bt(a,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:gC.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:gC.geo})})}},pC=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],gC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(ji(r)),t}},Fp={lineX:xt(yC,0),lineY:xt(yC,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[tm([n[0],i[0]]),tm([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function yC(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=tm(Y([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var mC={lineX:xt(_C,0),lineY:xt(_C,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return Y(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function _C(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function HK(r,t){var e=SC(r),a=SC(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function SC(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const L_=GK;var em=A,WK=$N("toolbox-dataZoom_"),$K=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new i_(n.getZr()),this._brushController.on("brush",tt(this._onBrush,this)).mount()),ZK(e,a,this,i,n),YK(e,a)},t.prototype.onclick=function(e,a,n){UK[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new L_(I_(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,c){if(c.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[v],c,f)}}),RK(i,n),this._dispatchZoomAction(n);function s(u,f,c){var v=f.getAxis(u),h=v.model,d=l(u,h,i),p=d.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Zn(0,c.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var v;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(v=h)}),v}},t.prototype._dispatchZoomAction=function(e){var a=[];em(e,function(n,i){a.push(st(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:G.color.backgroundTint}};return a},t}(Rr),UK={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(EK(this.ecModel))}};function I_(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function YK(r,t){r.setIconStatus("back",NK(t)>1?"emphasis":"normal")}function ZK(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new L_(I_(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}zV("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=I_(a),o=vs(r,i);em(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),em(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:WK+u+c};v[f]=c,n.push(v)}return n});const XK=$K;function qK(r){r.registerComponentModel(hK),r.registerComponentView(gK),rs("saveAsImage",mK),rs("magicType",xK),rs("dataView",kK),rs("dataZoom",XK),rs("restore",zK),Tt(cK)}var KK=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:G.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:G.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:G.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:G.color.tertiary,fontSize:14}},t}(kt);const jK=KK;function lR(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function uR(r){if(Nt.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'
'}function nj(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return e&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+a,i+=(i.length?",":"")+(Nt.transformSupported?""+P_+n:",left"+n+",top"+n)),tj+":"+i}function xC(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Nt.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Nt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+P_+":"+o+";":[["top",0],["left",0],[fR,o]]}function ij(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=nt(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function oj(r,t,e,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),v=qL(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),t&&i>0&&n.push(nj(i,e,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(d){var p="border-"+d,g=oL(p),y=r.get(g);y!=null&&n.push(p+":"+y+(d==="color"?"":"px"))}),n.push(ij(c)),v!=null&&n.push("padding:"+Eu(v).join("px ")+"px"),n.join(";")+";"}function bC(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&iO(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var sj=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Nt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(Q(i)?document.querySelector(i):gs(i)?i:ot(i)&&i(t.getDom()));bC(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Dr(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=QK(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=ej+oj(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+xC(i[0],i[1],!0)+("border-color:"+lo(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Q(i)&&a.get("trigger")==="item"&&!lR(a)&&(s=aj(a,n,i)),Q(t))o.innerHTML=t+s;else if(t){o.innerHTML="",U(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||Nt.node||!n.getDom())){var o=CC(i,n);this._ticket="";var s=i.dataByCoordSys,l=gj(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=cj;f.x=i.x,f.y=i.y,f.update(),pt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var c=Yk(i,a),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(CC(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),c=Sl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=pt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Hi(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(pt(f).dataIndex!=null?l=f:pt(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=tt(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Sl([a.tooltipOption],i),l=this._renderMode,u=[],f=ye("section",{blocks:[],noHeader:!0}),c=[],v=new xd;A(e,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Hk(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=ye("section",{header:x,noHeader:!Nr(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=nv(S.axis,{value:b}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",lo(D.color),l);var I=BS(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var k=Sl([C],i).get("valueFormatter");w.blocks.push(k?$({valueFormatter:k},L):L)}I.text&&c.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),c.reverse();var h=a.position,d=s.get("order"),p=WS(f,v,l,d,n.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` +`),meta:t.meta}}function Pv(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function MK(r){var t=r.slice(0,r.indexOf(` +`));if(t.indexOf(ks)>=0)return!0}var rm=new RegExp("["+ks+"]+","g");function DK(r){for(var t=r.split(/\n+/g),e=Pv(t.shift()).split(rm),a=[],n=Y(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function OK(r){var t=P_(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return oR(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function NK(r){sR(r).snapshots=null}function BK(r){return P_(r).length}function P_(r){var t=sR(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var zK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){NK(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t}(Er);Ba({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const VK=zK;var GK=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],FK=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=dC(e,t);A(HK,function(o,s){(!a||!a.include||bt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=$p[a.brushType](0,i,n);a.__rangeOffset={offset:mC[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){A(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&A(i.coordSyses,function(o){var s=$p[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=$p[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?mC[a.brushType](i.values,o.offset,WK(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:ck(n),isTargetByCursor:hk(n,t,a.coordSysModel),getLinearBrushOtherExtent:vk(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&bt(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=dC(e,t),i=0;ir[1]&&r.reverse(),r}function dC(r,t){return ps(r,t,{includeMainTypes:GK})}var HK={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=rt(),o={},s={};!e&&!a&&!n||(A(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(c,v){(bt(e,c.getAxis("x").model)>=0||bt(a,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:gC.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:gC.geo})})}},pC=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],gC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ji(r)),t}},$p={lineX:xt(yC,0),lineY:xt(yC,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[am([n[0],i[0]]),am([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function yC(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=am(Y([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var mC={lineX:xt(_C,0),lineY:xt(_C,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return Y(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function _C(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function WK(r,t){var e=SC(r),a=SC(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function SC(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const k_=FK;var nm=A,$K=UN("toolbox-dataZoom_"),UK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new l_(n.getZr()),this._brushController.on("brush",tt(this._onBrush,this)).mount()),XK(e,a,this,i,n),ZK(e,a)},t.prototype.onclick=function(e,a,n){YK[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new k_(R_(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,c){if(c.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[v],c,f)}}),EK(i,n),this._dispatchZoomAction(n);function s(u,f,c){var v=f.getAxis(u),h=v.model,d=l(u,h,i),p=d.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Zn(0,c.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var v;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(v=h)}),v}},t.prototype._dispatchZoomAction=function(e){var a=[];nm(e,function(n,i){a.push(st(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:G.color.backgroundTint}};return a},t}(Er),YK={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(OK(this.ecModel))}};function R_(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function ZK(r,t){r.setIconStatus("back",BK(t)>1?"emphasis":"normal")}function XK(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new k_(R_(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}VV("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=R_(a),o=ps(r,i);nm(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),nm(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:$K+u+c};v[f]=c,n.push(v)}return n});const qK=UK;function KK(r){r.registerComponentModel(dK),r.registerComponentView(yK),is("saveAsImage",_K),is("magicType",bK),is("dataView",RK),is("dataZoom",qK),is("restore",VK),Tt(vK)}var jK=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:G.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:G.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:G.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:G.color.tertiary,fontSize:14}},t}(Rt);const JK=jK;function lR(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function uR(r){if(Bt.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'
'}function ij(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return e&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+a,i+=(i.length?",":"")+(Bt.transformSupported?""+E_+n:",left"+n+",top"+n)),ej+":"+i}function xC(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Bt.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Bt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+E_+":"+o+";":[["top",0],["left",0],[fR,o]]}function oj(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=nt(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function sj(r,t,e,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),v=qL(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),t&&i>0&&n.push(ij(i,e,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(d){var p="border-"+d,g=oL(p),y=r.get(g);y!=null&&n.push(p+":"+y+(d==="color"?"":"px"))}),n.push(oj(c)),v!=null&&n.push("padding:"+Bu(v).join("px ")+"px"),n.join(";")+";"}function bC(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&oO(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var lj=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Bt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(Q(i)?document.querySelector(i):_s(i)?i:ot(i)&&i(t.getDom()));bC(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Lr(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=tj(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=rj+sj(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+xC(i[0],i[1],!0)+("border-color:"+uo(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Q(i)&&a.get("trigger")==="item"&&!lR(a)&&(s=nj(a,n,i)),Q(t))o.innerHTML=t+s;else if(t){o.innerHTML="",U(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||Bt.node||!n.getDom())){var o=CC(i,n);this._ticket="";var s=i.dataByCoordSys,l=yj(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=vj;f.x=i.x,f.y=i.y,f.update(),dt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var c=Yk(i,a),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(CC(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),c=wl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=dt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Wi(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(dt(f).dataIndex!=null?l=f:dt(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=tt(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=wl([a.tooltipOption],i),l=this._renderMode,u=[],f=ye("section",{blocks:[],noHeader:!0}),c=[],v=new Td;A(e,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Hk(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=ye("section",{header:x,noHeader:!Br(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=sv(S.axis,{value:b}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",uo(D.color),l);var I=BS(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var k=wl([C],i).get("valueFormatter");w.blocks.push(k?$({valueFormatter:k},L):L)}I.text&&c.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),c.reverse();var h=a.position,d=s.get("order"),p=WS(f,v,l,d,n.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` -`:"
",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=pt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=e.positionDefault,p=Sl([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new xd;y.marker=m.makeTooltipMarker("item",lo(y.color),h);var _=BS(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?WS(b?$({valueFormatter:b},x):x,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=pt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Q(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=st(l),l.content=$e(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=e.positionDefault,d=Sl(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new xd;this._showOrMove(d,function(){var m=st(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,a,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var h=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(v)if(Q(v)){var g=e.ecModel.get("useUTC"),y=U(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=oh(y.axisValue,h,g)),h=sL(h,n,!0)}else if(ot(v)){var _=tt(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,n,u))},this);this._ticket=i,h=v(n,i,_)}else h=v;c.setContent(h,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||U(a))return{color:i||o};if(!U(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||e.get("position");var c=o.getSize(),v=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ot(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),U(a))n=J(a[0],u),i=J(a[1],f);else if(ht(a)){var p=a;p.width=c[0],p.height=c[1];var g=Qt(p,{width:u,height:f});n=g.x,i=g.y,v=null,h=null}else if(Q(a)&&l){var y=pj(a,d,c,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=hj(n,i,o,u,f,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=AC(v)?c[0]/2:v==="right"?c[0]:0),h&&(i-=AC(h)?c[1]/2:h==="bottom"?c[1]:0),lR(e)){var y=dj(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&A(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){Nt.node||!a.getDom()||(vu(this,"_updatePosition"),this._tooltipContent.dispose(),Zy("itemTooltip",a))},t.type="tooltip",t}(re);function Sl(r,t,e){var a=t.ecModel,n;e?(n=new Ot(e,a,a),n=new Ot(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ot&&(o=o.get("tooltip",!0)),Q(o)&&(o={formatter:o}),o&&(n=new Ot(o,n,a)))}return n}function CC(r,t){return r.dispatchAction||tt(t.dispatchAction,t)}function hj(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function dj(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function pj(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function AC(r){return r==="center"||r==="middle"}function gj(r,t,e){var a=Im(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Rs(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=pt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const yj=vj;function mj(r){Tt(Uu),r.registerComponentModel(jK),r.registerComponentView(yj),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},fe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},fe)}var _j=["rect","polygon","keep","clear"];function Sj(r,t){var e=Ut(r?r.brush:[]);if(e.length){var a=[];A(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;U(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),xj(s),t&&!s.length&&s.push.apply(s,_j)}}function xj(r){var t={};A(r,function(e){t[e]=1}),r.length=0,A(t,function(e,a){r.push(a)})}var MC=A;function DC(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function rm(r,t,e){var a={};return MC(t,function(i){var o=a[i]=n();MC(r[i],function(s,l){if(Ge.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Ge(u),l==="opacity"&&(u=st(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ge(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function vR(r,t,e){var a;A(e,function(n){t.hasOwnProperty(n)&&DC(t[n])&&(a=!0)}),a&&A(e,function(n){t.hasOwnProperty(n)&&DC(t[n])?r[n]=st(t[n]):delete r[n]})}function bj(r,t,e,a,n,i){var o={};A(r,function(c){var v=Ge.prepareVisualTypes(t[c]);o[c]=v});var s;function l(c){return d0(e,s,c)}function u(c,v){i2(e,s,c,v)}i==null?e.each(f):e.each([i],f);function f(c,v){s=i==null?c:v;var h=e.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=a.call(n,c),p=t[d],g=o[d],y=0,m=g.length;yt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&RC(t)}};function RC(r){return new dt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Ij=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new i_(a.getZr())).on("brush",tt(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){hR(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:st(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:st(n),$from:a})},t.type="brush",t}(re);const Pj=Ij;var kj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&vR(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(a){return EC(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=EC(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:G.color.backgroundTint,borderColor:G.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:G.color.disabled},t}(kt);function EC(r,t){return wt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ot(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const Rj=kj;var Ej=["rect","polygon","lineX","lineY","keep","clear"],Oj=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return A(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:Ej.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t}(Rr);const Nj=Oj;function Bj(r){r.registerComponentView(Pj),r.registerComponentModel(Rj),r.registerPreprocessor(Sj),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Cj),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},fe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},fe),rs("brush",Nj)}var zj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:G.size.m,backgroundColor:G.color.transparent,borderColor:G.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:G.color.primary},subtextStyle:{fontSize:12,color:G.color.quaternary}},t}(kt),Vj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=nt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Rt({style:Zt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=e.get("subtext"),h=new Rt({style:Zt(s,{text:v,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){qc(d,"_"+e.get("target"))}),p&&h.on("click",function(){qc(p,"_"+e.get("subtarget"))}),pt(f).eventData=pt(h).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),v&&i.add(h);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Ce(e,n),S=Qt(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),y=i.getBoundingRect();var x=S.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var T=new Mt({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(re);function Gj(r){r.registerComponentModel(zj),r.registerComponentView(Vj)}var Fj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,f){var c=xe(ks(u),""),v;ht(u)?(v=st(u),v.value=f):v=f,o.push(v),i.push(c)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new tr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:G.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:G.color.secondary},data:[]},t}(kt);const OC=Fj;var dR=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=ti(OC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:G.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:G.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:G.color.tertiary},itemStyle:{color:G.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:G.color.accent50,borderColor:G.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:G.color.accent50,borderColor:G.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:G.color.accent60},itemStyle:{color:G.color.accent60,borderColor:G.color.accent60},controlStyle:{color:G.color.accent70,borderColor:G.color.accent70}},progress:{lineStyle:{color:G.color.accent30},itemStyle:{color:G.color.accent40}},data:[]}),t}(OC);_e(dR,uh.prototype);const Hj=dR;var Wj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(re);const $j=Wj;var Uj=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(na);const Yj=Uj;var Wp=Math.PI,NC=Dt(),Zj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ye("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=qj(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Wp/2},c=i==="vertical"?o.height:o.width,v=e.getModel("controlStyle"),h=v.get("show",!0),d=h?v.get("itemSize"):0,p=h?v.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Wp/180;var m,_,S,b=v.get("position",!0),x=h&&v.get("showPlayBtn",!0),w=h&&v.get("showPrevBtn",!0),T=h&&v.get("showNextBtn",!0),C=0,M=c;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-d,0],M-=g)):(x&&(m=[M-d,0],M-=g),w&&(_=[0,0],C+=g),T&&(S=[M-d,0],M-=g));var D=[C,M];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Oe(),l=o.x,u=o.y+o.height;Pa(s,s,[-l,-u]),jn(s,s,-Wp/2),Pa(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(n.getBoundingRect()),v=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=e.labelPosOpt;if(p==null||Q(p)){var g=p==="+"?0:1;_(h,c,f,1,g),_(d,v,f,1,1-g)}else{var g=p>=0?0:1;_(h,c,f,1,g),d[1]=h[1]+p}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=Xj(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Yj("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new lt;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new be({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:$({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new be({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:vt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),c=s.getItemModel(u.value),v=c.getModel("itemStyle"),h=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:tt(o._changeTimeline,o,u.value)},g=BC(c,v,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),Ki(g);var y=pt(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var c=f.tickValue,v=l.getItemModel(c),h=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Rt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:tt(o._changeTimeline,o,c),silent:!1,style:Zt(h,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Zt(d),y.ensureState("progress").style=Zt(p),a.add(y),Ki(y),NC(y).dataIndex=c,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);v(e.nextBtnPosition,"next",tt(this._changeTimeline,this,c?"-":"+")),v(e.prevBtnPosition,"prev",tt(this._changeTimeline,this,c?"+":"-")),v(e.playPosition,f?"stop":"play",tt(this._handlePlayClick,this,!f),!0);function v(h,d,p,g){if(h){var y=ta(nt(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=Kj(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),Ki(_)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=tt(u._handlePointerDrag,u),c.ondragend=tt(u._handlePointerDragend,u),zC(c,u._progressLine,s,n,i,!0)},onUpdate:function(c){zC(c,u._progressLine,s,n,i)}};this._currentPointer=BC(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=Br(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var ac={min:xt(rc,"min"),max:xt(rc,"max"),average:xt(rc,"average"),median:xt(rc,"median")};function Du(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!nJ(t)&&!U(t.coord)&&U(n)){var i=gR(t,e,a,r);if(t=st(t),t.type&&ac[t.type]&&i.baseAxis&&i.valueAxis){var o=bt(n,i.baseAxis.dim),s=bt(n,i.valueAxis.dim),l=ac[t.type](e,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!U(n)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&ac[t.type]){var f=a.getOtherAxis(u);f&&(t.value=Lv(e,e.mapDimension(f.dim),t.type))}}else for(var c=t.coord,v=0;v<2;v++)ac[c[v]]&&(c[v]=Lv(e,e.mapDimension(n[v]),c[v]));return t}}function gR(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(iJ(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function iJ(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Lu(r,t){return r&&r.containData&&t.coord&&!nm(t)?r.containData(t.coord):!0}function oJ(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!nm(t)&&!nm(e)?r.containZone(t.coord,e.coord):!0}function yR(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Gn(o,t[i])}:function(e,a,n,i){return Gn(e.value,t[i])}}function Lv(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var $p=Dt(),sJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=rt()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){$p(s).keep=!1}),a.eachSeries(function(s){var l=ln.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!$p(s).keep&&i.group.remove(s.group)}),lJ(a,o,this.type)},t.prototype.markKeep=function(e){$p(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;A(e,function(i){var o=ln.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?hD(l):zm(l))})}})},t.type="marker",t}(re);function lJ(r,t,e){r.eachSeries(function(a){var n=ln.getMarkerModelFromSeries(a,e),i=t.get(a.id);if(n&&i&&i.group){var o=so(n),s=o.z,l=o.zlevel;nh(i.group,s,l)}})}const R_=sJ;function GC(r,t,e){var a=t.coordinateSystem,n=e.getWidth(),i=e.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:n,c=u?o?o.height:0:i,v=u&&o?o.x:0,h=u&&o?o.y:0,d,p=J(l.get("x"),f)+v,g=J(l.get("y"),c)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(t.getMarkerPosition)d=t.getMarkerPosition(r.getValues(r.dimensions,s));else if(a){var y=r.get(a.dimensions[0],s),m=r.get(a.dimensions[1],s);d=a.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var uJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markPoint");o&&(GC(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Fu),c=fJ(o,e,a);a.setData(c),GC(a.getData(),e,i),c.each(function(v){var h=c.getItemModel(v),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(ot(d)||ot(p)||ot(g)||ot(y)){var _=a.getRawValue(v),S=a.getDataParams(v);ot(d)&&(d=d(_,S)),ot(p)&&(p=p(_,S)),ot(g)&&(g=g(_,S)),ot(y)&&(y=y(_,S))}var b=h.getModel("itemStyle").getItemStyle(),x=h.get("z2"),w=Bu(l,"color");b.fill||(b.fill=w),c.setItemVisual(v,{z2:nt(x,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(v){v.traverse(function(h){pt(h).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(R_);function fJ(r,t,e){var a;r?a=Y(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return $($({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new tr(a,e),i=Y(e.get("data"),xt(Du,t));r&&(i=Ft(i,xt(Lu,r)));var o=yR(!!r,a);return n.initData(i,null,o),n}const cJ=uJ;function vJ(r){r.registerComponentModel(aJ),r.registerComponentView(cJ),r.registerPreprocessor(function(t){k_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var hJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,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}(ln);const dJ=hJ;var nc=Dt(),pJ=function(r,t,e,a){var n=r.getData(),i;if(U(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=Ve(a.yAxis,a.xAxis);else{var u=gR(a,n,t,r);s=u.valueAxis;var f=O2(n,u.valueDataDim);l=Lv(n,f,o)}var c=s.dim==="x"?0:1,v=1-c,h=st(a),d={coord:[]};h.type=null,h.coord=[],h.coord[v]=-1/0,d.coord[v]=1/0;var p=e.get("precision");p>=0&&Pt(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[c]=d.coord[c]=l,i=[h,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Du(r,i[0]),Du(r,i[1]),$({},i[2])];return g[2].type=g[2].type||null,wt(g[2],g[0]),wt(g[2],g[1]),g};function Iv(r){return!isNaN(r)&&!isFinite(r)}function FC(r,t,e,a){var n=1-r,i=a.dimensions[r];return Iv(t[n])&&Iv(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function gJ(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(FC(1,e,a,r)||FC(0,e,a,r)))return!0}return Lu(r,t[0])&&Lu(r,t[1])}function Up(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=J(o.get("x"),n.getWidth()),u=J(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,c=r.get(f[0],t),v=r.get(f[1],t);s=i.dataToPoint([c,v])}if(Yn(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Iv(r.get(f[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):Iv(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var yJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=nc(o).from,u=nc(o).to;l.each(function(f){Up(l,f,!0,i,n),Up(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new J0);this.group.add(f.group);var c=mJ(o,e,a),v=c.from,h=c.to,d=c.line;nc(a).from=v,nc(a).to=h,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");U(p)||(p=[p,p]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(m)||(m=[m,m]),c.from.each(function(S){_(v,S,!0),_(h,S,!1)}),d.each(function(S){var b=d.getItemModel(S),x=b.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),h.getItemLayout(S)]);var w=b.get("z2");x.stroke==null&&(x.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:nt(w,0),fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:x})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){pt(S).dataModel=a,S.traverse(function(b){pt(b).dataModel=a})});function _(S,b,x){var w=S.getItemModel(b);Up(S,b,x,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Bu(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:nt(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:nt(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:nt(w.get("symbolSize"),g[x?0:1]),symbol:nt(w.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(R_);function mJ(r,t,e){var a;r?a=Y(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return $($({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new tr(a,e),i=new tr(a,e),o=new tr([],e),s=Y(e.get("data"),xt(pJ,t,r,e));r&&(s=Ft(s,xt(gJ,r)));var l=yR(!!r,a);return n.initData(Y(s,function(u){return u[0]}),null,l),i.initData(Y(s,function(u){return u[1]}),null,l),o.initData(Y(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}const _J=yJ;function SJ(r){r.registerComponentModel(dJ),r.registerComponentView(_J),r.registerPreprocessor(function(t){k_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var xJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ln);const bJ=xJ;var ic=Dt(),wJ=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Du(r,n),s=Du(r,i),l=o.coord,u=s.coord;l[0]=Ve(l[0],-1/0),l[1]=Ve(l[1],-1/0),u[0]=Ve(u[0],1/0),u[1]=Ve(u[1],1/0);var f=mm([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Pv(r){return!isNaN(r)&&!isFinite(r)}function HC(r,t,e,a){var n=1-r;return Pv(t[n])&&Pv(e[n])}function TJ(r,t){var e=t.coord[0],a=t.coord[1],n={coord:e,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return Yn(r,"cartesian2d")?e&&a&&(HC(1,e,a)||HC(0,e,a))?!0:oJ(r,n,i):Lu(r,n)||Lu(r,i)}function WC(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=J(o.get(e[0]),n.getWidth()),u=J(o.get(e[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],t),c=r.getValues(["x1","y1"],t),v=i.clampData(f),h=i.clampData(c),d=[];e[0]==="x0"?d[0]=v[0]>h[0]?c[0]:f[0]:d[0]=v[0]>h[0]?f[0]:c[0],e[1]==="y0"?d[1]=v[1]>h[1]?c[1]:f[1]:d[1]=v[1]>h[1]?f[1]:c[1],s=a.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Yn(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);Pv(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):Pv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var $C=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],CJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Y($C,function(c){return WC(s,l,c,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new lt});this.group.add(f.group),this.markKeep(f);var c=AJ(o,e,a);a.setData(c),c.each(function(v){var h=Y($C,function(M){return WC(c,v,M,e,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",v)),d.parse(c.get("x1",v))],_=[p.parse(c.get("y0",v)),p.parse(c.get("y1",v))];Br(m),Br(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),b=!S;c.setItemLayout(v,{points:h,allClipped:b});var x=c.getItemModel(v),w=x.getModel("itemStyle").getItemStyle(),T=x.get("z2"),C=Bu(l,"color");w.fill||(w.fill=C,Q(w.fill)&&(w.fill=Oc(w.fill,.4))),w.stroke||(w.stroke=C),c.setItemVisual(v,"style",w),c.setItemVisual(v,"z2",nt(T,0))}),c.diff(ic(f).data).add(function(v){var h=c.getItemLayout(v),d=c.getItemVisual(v,"z2");if(!h.allClipped){var p=new ar({z2:nt(d,0),shape:{points:h.points}});c.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,h){var d=ic(f).data.getItemGraphicEl(h),p=c.getItemLayout(v),g=c.getItemVisual(v,"z2");p.allClipped?d&&f.group.remove(d):(d?Et(d,{z2:nt(g,0),shape:{points:p.points}},a,v):d=new ar({shape:{points:p.points}}),c.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var h=ic(f).data.getItemGraphicEl(v);f.group.remove(h)}).execute(),c.eachItemGraphicEl(function(v,h){var d=c.getItemModel(h),p=c.getItemVisual(h,"style");v.useStyle(c.getItemVisual(h,"style")),Ie(v,Te(d),{labelFetcher:a,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:Q(p.fill)?Oc(p.fill,1):G.color.neutral99}),we(v,d),Jt(v,null,null,d.get(["emphasis","disabled"])),pt(v).dataModel=a}),ic(f).data=c,f.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(R_);function AJ(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=Y(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return $($({},c),{name:u,ordinalMeta:null})});n=Y(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new tr(n,e)}else n=[{name:"value",type:"float"}],a=new tr(n,e);var s=Y(e.get("data"),xt(wJ,t,r,e));r&&(s=Ft(s,xt(TJ,r)));var l=r?function(u,f,c,v){var h=u.coord[Math.floor(v/2)][v%2];return Gn(h,n[v])}:function(u,f,c,v){return Gn(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}const MJ=CJ;function DJ(r){r.registerComponentModel(bJ),r.registerComponentView(MJ),r.registerPreprocessor(function(t){k_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var LJ=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},IJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),U(a)&&A(a,function(i,o){Q(i)&&(i={type:i}),a[o]=wt(i,LJ(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=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:G.size.m,align:"auto",backgroundColor:G.color.transparent,borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:G.color.disabled,inactiveBorderColor:G.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:G.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:G.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:G.color.tertiary,borderWidth:1,borderColor:G.color.border},emphasis:{selectorLabel:{show:!0,color:G.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(kt);const im=IJ;var qo=xt,om=A,oc=lt,PJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new oc),this.group.add(this._selectorGroup=new oc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var f=Ce(e,n).refContainer,c=e.getBoxLayoutParams(),v=e.get("padding"),h=Qt(c,f,v),d=this.layoutInner(e,o,h,i,l,u),p=Qt(vt({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=iR(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),f=rt(),c=a.get("selectedMode"),v=a.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),om(a.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===` -`)){var m=new oc;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,y,p,d,a,e,b,w,x,c,i);T.on("click",qo(UC,y,null,i,h)).on("mouseover",qo(sm,_.name,null,i,h)).on("mouseout",qo(lm,_.name,null,i,h)),n.ssr&&T.eachChild(function(C){var M=pt(C);M.seriesIndex=_.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),v&&T.eachChild(function(C){g.packEventData(C,a,_,p,y)}),f.set(y,!0)}else n.eachRawSeries(function(C){var M=this;if(!f.get(y)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(y))return;var I=D.indexOfName(y),L=D.getItemVisual(I,"style"),k=D.getItemVisual(I,"legendIcon"),R=lr(L.fill);R&&R[3]===0&&(R[3]=.2,L=$($({},L),{fill:Ma(R,"rgba")}));var P=this._createItem(C,y,p,d,a,e,{},L,k,c,i);P.on("click",qo(UC,null,y,i,h)).on("mouseover",qo(sm,null,y,i,h)).on("mouseout",qo(lm,null,y,i,h)),n.ssr&&P.eachChild(function(O){var E=pt(O);E.seriesIndex=C.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),v&&P.eachChild(function(O){M.packEventData(O,a,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype.packEventData=function(e,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};pt(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();om(e,function(u){var f=u.type,c=new Rt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(c);var v=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);Ie(c,{normal:v,emphasis:h},{defaultText:u.title}),Ki(c)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,f,c,v){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=kJ(f,i,l,u,h,g,v),b=new oc,x=i.getModel("textStyle");if(ot(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(RJ({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=a;Q(M)&&M?D=M.replace("{name}",a??""):ot(M)&&(D=M(a));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new Rt({style:Zt(x,{text:D,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new Mt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&fn({el:L,componentModel:o,itemName:a,itemTooltipOption:k.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!c,this.getContentGroup().add(b),Ki(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ji(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ji("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(re);function kJ(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),om(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?a.decal:xs(c,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function RJ(r){var t=r.icon||"roundRect",e=me(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=G.color.neutral00,e.style.lineWidth=2),e}function UC(r,t,e,a){lm(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),sm(r,t,e,a)}function mR(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;an[o],g=[-h.x,-h.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=nt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new Mt({shape:x})),c.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Et(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=a[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Yp[o],l=Zp[o],u=this._findTargetItemIndex(a),f=n.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t}(_R);const VJ=zJ;function GJ(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function FJ(r){Tt(SR),r.registerComponentModel(BJ),r.registerComponentView(VJ),GJ(r)}function HJ(r){Tt(SR),Tt(FJ)}var WJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=ti(Mu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Mu);const $J=WJ;var E_=Dt();function UJ(r,t,e){E_(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function YJ(r,t){for(var e=E_(r).coordSysRecordMap,a=e.keys(),n=0;ni[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function jJ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=E_(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=rt());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=rR(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,ZJ(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=rt());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){xR(n,i);return}var f=KJ(l,i,e);o.enable(f.controlType,f.opt),Fs(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var JJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),UJ(n,e,{pan:tt(Xp.pan,this),zoom:tt(Xp.zoom,this),scrollMove:tt(Xp.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){YJ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(A_),Xp={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=qp[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Zn(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:qC(function(r,t,e,a,n,i){var o=qp[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:qC(function(r,t,e,a,n,i){var o=qp[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function qC(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if(Zn(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var qp={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const QJ=JJ;function bR(r){M_(r),r.registerComponentModel($J),r.registerComponentView(QJ),jJ(r)}var tQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ti(Mu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:G.color.accent10,borderRadius:0,backgroundColor:G.color.transparent,dataBackground:{lineStyle:{color:G.color.accent30,width:.5},areaStyle:{color:G.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:G.color.accent40,width:.5},areaStyle:{color:G.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:G.color.neutral00,borderColor:G.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:G.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:G.color.tertiary},brushSelect:!0,brushStyle:{color:G.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:G.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Mu);const eQ=tQ;var wl=Mt,rQ=1,Kp=30,aQ=7,Tl="horizontal",KC="vertical",nQ=5,iQ=["line","bar","candlestick","scatter"],oQ={easing:"cubicOut",duration:100,delay:0},sQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=tt(this._onBrush,this),this._onBrushEnd=tt(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),Fs(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){vu(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new lt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?aQ:0,o=Ce(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Tl?{right:o.width-s.x-s.width,top:o.height-Kp-l-i,width:s.width,height:Kp}:{right:l,top:s.y,width:Kp,height:s.height},f=yo(e.option);A(["right","top","width","height"],function(v){f[v]==="ph"&&(f[v]=u[v])});var c=Qt(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===KC&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Tl&&!o?{scaleY:l?1:-1,scaleX:1}:n===Tl&&o?{scaleY:l?1:-1,scaleX:-1}:n===KC&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new wl({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new wl({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:tt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var c=o.getDataExtent(e.thisDim),v=o.getDataExtent(l),h=(v[1]-v[0])*.3;v=[v[0]-h,v[1]+h];var d=[0,a[1]],p=[0,a[0]],g=[[a[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=a[0]/(c[1]-c[0]),S=e.thisAxis.type==="time",b=-m,x=Math.round(o.count()/a[0]),w;o.each([e.thisDim,l],function(I,L,k){if(x>0&&k%x){S||(b+=m);return}b=S?(+I-c[0])*_:b+m;var R=L==null||isNaN(L)||L==="",P=R?0:Gt(L,v,d,!0);R&&!w&&k?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([b,0]),y.push([b,0])),R||(g.push([b,P]),y.push([b,P])),w=R}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var T=this.dataZoomModel;function C(I){var L=T.getModel(I?"selectedDataBackground":"dataBackground"),k=new lt,R=new ar({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Xe({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return k.add(R),k.add(P),k}for(var M=0;M<3;M++){var D=C(M===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&bt(iQ,u.get("type"))<0)){var f=i.getComponent(En(o),s).axis,c=lQ(o),v,h=u.coordinateSystem;c!=null&&h.getOtherAxis&&(v=h.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:v}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),v=a.filler=new wl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new wl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:rQ,fill:G.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!Jc[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=me(S,-1,0,2,2,null,!0);b.attr({cursor:uQ(this._orient),draggable:!0,drift:tt(this._onDragMove,this,_),ondragend:tt(this._onDragEnd,this),onmouseover:tt(this._showDataInfo,this,!0),onmouseout:tt(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=J(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ki(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var C=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;e.add(i[_]=new Rt({silent:!0,invisible:!D,style:Zt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=v;if(c){var d=J(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new Mt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=me(l.get("moveHandleIcon"),-g/2,-g/2,g,g,G.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=a.moveZone=new Mt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"default",drift:tt(this._onDragMove,this,"all"),ondragstart:tt(this._showDataInfo,this,!0),ondragend:tt(this._onDragEnd,this),onmouseover:tt(this._showDataInfo,this,!0),onmouseout:tt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Gt(e[0],[0,100],a,!0),Gt(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Zn(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?Gt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Gt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Br([Gt(i[0],o,l,!0),Gt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=Br(n.slice()),o=this._size;A([0,1],function(h){var d=a.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[h]+(h?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new ct(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Zn(0,l,o,0,u.minSpan!=null?Gt(u.minSpan,s,o,!0):null,u.maxSpan!=null?Gt(u.maxSpan,s,o,!0):null),this._range=Br([Gt(l[0],o,s,!0),Gt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(tn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new wl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?oQ:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=rR(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(A_);function lQ(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function uQ(r){return r==="vertical"?"ns-resize":"ew-resize"}const fQ=sQ;function wR(r){r.registerComponentModel(eQ),r.registerComponentView(fQ),M_(r)}function cQ(r){Tt(bR),Tt(wR)}var vQ={get:function(r,t,e){var a=st((hQ[r]||{})[t]);return e&&U(a)?a[a.length-1]:a}},hQ={color:{active:["#006edd","#e0ffff"],inactive:[G.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const TR=vQ;var jC=Ge.mapVisual,dQ=Ge.eachVisual,pQ=U,JC=A,gQ=Br,yQ=Gt,mQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&vR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=tt(e,this),this.controllerVisuals=rm(this.option.controller,a,e),this.targetVisuals=rm(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,a=this.option.seriesIndex;a==null&&e==null&&(a="all");var n=Rs(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return Y(n,function(i){return i.componentIndex})},t.prototype.eachTargetSeries=function(e,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],U(e)&&(e=e.slice(),u=!0);var f=a?e:u?[c(e[0]),c(e[1])]:c(e);if(Q(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ot(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+f[1]:e[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=gQ([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});wt(i,n),wt(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){pQ(a.color)&&!c.inRange&&(c.inRange={color:a.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,v,h){var d=c[v],p=c[h];d&&!p&&(p=c[h]={},JC(d,function(g,y){if(Ge.isValidType(y)){var m=TR.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var v=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";JC(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&st(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&st(h)||(s?m[0]:[m[0],m[0]])),_.symbol=jC(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;dQ(S,function(x){x>b&&(b=x)}),_.symbolSize=jC(S,function(x){return yQ(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:G.color.transparent,borderColor:G.color.borderTint,contentColor:G.color.theme[0],inactiveColor:G.color.disabled,borderWidth:0,padding:G.size.m,textGap:10,precision:0,textStyle:{color:G.color.secondary}},t}(kt);const kv=mQ;var QC=[20,140],_Q=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=QC[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=QC[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):U(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Br((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=tA(this,"outOfRange",this.getExtent()),n=tA(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:e(h,d)})}for(var s=0,l=0,u=n.length,f=a.length;le[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new lt(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);bQ([0,1],function(c){var v=o[c];v.setStyle("fill",a.handlesColor[c]),v.y=e[c];var h=da(e[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");v.scaleX=v.scaleY=d/l[0],v.x=l[0]-d/2;var p=Kr(n.handleLabelPoints[c],ji(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var v={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",v),d=this.getControllerVisual(e,"symbolSize"),p=da(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=Kr(f.indicatorLabelPoint,ji(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,C),_.animateTo(T,C)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;Do[1]&&(c[1]=1/0),a&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,h=[];(a||nA(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=ZN(v,h);this._dispatchHighDown("downplay",Dc(d[0],n)),this._dispatchHighDown("highlight",Dc(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Hi(e.target,function(l){var u=pt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function PQ(r,t,e,a){for(var n=t.targetVisuals[a],i=Ge.prepareVisualTypes(n),o={color:Bu(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(DQ,LQ),A(IQ,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(kQ))}function DR(r){r.registerComponentModel(SQ),r.registerComponentView(MQ),MR(r)}var RQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],EQ[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=st(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Y(this._pieceList,function(l){return l=st(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=Ge.listVisualTypes(),i=this.isCategory();A(e.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&A(this.stateList,function(f){(e[f]||(e[f]={}))[l]=TR.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=st(e)},t.prototype.getValueState=function(e){var a=Ge.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ge.findPieceIndex(l,n);f===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,c){var v=i.getRepresentValue({interval:f});c||(c=i.getValueState(v));var h=e(v,c);f[0]===-1/0?n[0]=h:f[1]===1/0?n[1]=h:a.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return A(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=ti(kv.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(kv),EQ={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function lA(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const OQ=RQ;var NQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=Ve(a.get("showLabel",!0),!u),c=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],s,f,o),A(l.viewPieceList,function(v){var h=v.piece,d=new lt;d.onclick=tt(this._onItemClick,this,h),this._enableHoverLink(d,v.indexInModelPieceList);var p=a.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Rt({style:Zt(i,{x:y==="right"?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:nt(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:c}))}e.add(d)},this),u&&this._renderEndsText(e,u[1],s,f,o),Ji(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Dc(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return AR(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new lt,l=this.visualMapModel.textStyleModel;s.add(new Rt({style:Zt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=Y(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=me(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=st(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(CR);const BQ=NQ;function LR(r){r.registerComponentModel(OQ),r.registerComponentView(BQ),MR(r)}function zQ(r){Tt(DR),Tt(LR)}var VQ=function(){function r(t){this._thumbnailModel=t}return r.prototype.reset=function(t){this._renderVersion=t.getMainProcessVersion()},r.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:WD(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(t,e){var a=e.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},r}(),GQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.optionUpdated=function(e,a){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new VQ(this);if(this._target=null,this.ecModel.eachSeries(function(n){kw(n,null)}),this.shouldShow()){var a=this.getTarget();kw(a.baseMapProvider,e)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!=="graph"&&(e=null):e=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:e},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:G.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:G.color.neutral30,borderColor:G.color.neutral40,opacity:.3},z:10},t}(kt),FQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this._api=n,this._model=e,this._coordSys||(this._coordSys=new To),!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var o=e.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=a.get("backgroundColor")||G.color.neutral00);var l=Ce(e,n).refContainer,u=Qt(vL(e,!0),l),f=s.lineWidth||0,c=this._contentRect=oo(u.clone(),f/2,!0,!0),v=new lt;i.add(v),v.setClipPath(new Mt({shape:c.plain()}));var h=this._targetGroup=new lt;v.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Mt({style:s,shape:d,silent:!1,cursor:"grab"}));var p=e.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);v.add(this._windowRect=new Mt({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),fA(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),fA(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!e){var o=e.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(s.x,s.y,s.width,s.height);var l=Qt({left:"center",top:"center",aspect:s.width/s.height},i);n.setViewRect(l.x,l.y,l.width,l.height),o.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var a=this._bridgeRendered;a&&a.renderVersion===e.renderVersion&&(a.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=Qr([],e.targetTrans),n=Aa([],this._coordSys.transform,a);this._transThisToTarget=Qr([],n);var i=e.viewportRect;i?i=i.clone():i=new dt(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(vt({r:s},i))}},t.prototype._resetRoamController=function(e){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new wo(n.getZr())),!e||!this._isEnabled()){i.disable();return}i.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return a._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",tt(this._onPan,this)).on("zoom",tt(this._onZoom,this))},t.prototype._onPan=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ce([],[e.oldX,e.oldY],a),i=ce([],[e.oldX-e.dx,e.oldY-e.dy],a);this._api.dispatchAction(uA(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},t.prototype._onZoom=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ce([],[e.originX,e.originY],a);this._api.dispatchAction(uA(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;if(!e||!e.shouldShow())return!1;var a=e.getTarget().baseMapProvider;return!!a},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(re);function uA(r,t){var e=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:e};return a[r.mainType+"Id"]=r.id,$(a,t),a}function fA(r,t){var e=so(r);nh(t.group,e.z,e.zlevel)}function HQ(r){r.registerComponentModel(GQ),r.registerComponentView(FQ)}var WQ={label:{enabled:!0},decal:{show:!1}},cA=Dt(),$Q={};function UQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=st(WQ);wt(a.label,r.getLocaleModel().get("aria"),!1),wt(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=rt();r.eachSeries(function(v){if(!v.isColorBySeries()){var h=c.get(v.type);h||(h={},c.set(v.type,h)),cA(v).scope=h}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(ot(v.enableAriaDecal)){v.enableAriaDecal();return}var h=v.getData();if(v.isColorBySeries()){var m=jg(v.ecModel,v.name,$Q,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,m))}else{var d=v.getRawData(),p={},g=cA(v).scope;h.each(function(b){var x=h.getRawIndex(b);p[x]=b});var y=d.count();d.each(function(b){var x=p[b],w=d.getName(b)||b+"",T=jg(v.ecModel,w,g,y),C=h.getItemVisual(x,"decal");h.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?$($({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=vt(c.option,f),!!c.get("enabled")){if(u.setAttribute("role","img"),c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var v=r.getSeriesCount(),h=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(v,d),g;if(!(v<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],S=v>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,C){if(C1?c.get(["series","multiple",I]):c.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var k=c.get(["data","partialData"]);M+=o(k,{displayCnt:h})}else M+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),P=c.get(["data","separator","end"]),O=c.get(["data","excludeDimensionId"]),E=[],B=0;B":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},XQ=function(){function r(t){var e=this._condVal=Q(t)?new RegExp(t):qE(t)?t:null;if(e==null){var a="";Vt(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return Q(e)?this._condVal.test(t):Pt(e)?this._condVal.test(t+""):!1},r}(),qQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),KQ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&a.push(n),n=[L,k]}function f(L,k,R,P){us(L,R)&&us(k,P)||n.push(L,k,R,P,R,P)}function c(L,k,R,P,O,E){var B=Math.abs(k-L),V=Math.tan(B/4)*4/3,H=kT:D2&&a.push(n),a}function fm(r,t,e,a,n,i,o,s,l,u){if(us(r,e)&&us(t,a)&&us(n,o)&&us(i,s)){l.push(o,s);return}var f=2/u,c=f*f,v=o-r,h=s-t,d=Math.sqrt(v*v+h*h);v/=d,h/=d;var p=e-r,g=a-t,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var C=[],M=[];Hn(r,e,n,o,.5,C),Hn(t,a,i,s,.5,M),fm(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),fm(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function ftt(r,t){var e=um(r),a=[];t=t||1;for(var n=0;n0)for(var u=0;uMath.abs(u),c=PR([l,u],f?0:1,t),v=(f?s:u)/c.length,h=0;hn,o=PR([a,n],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,v=0;v1?null:new ct(p*l+r,p*u+t)}function htt(r,t,e){var a=new ct;ct.sub(a,e,t),a.normalize();var n=new ct;ct.sub(n,r,t);var i=n.dot(a);return i}function jo(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function dtt(r,t,e){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),dtt(t,u,f)}function Rv(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);Rv(r,i[0],n,a),Rv(r,i[1],e-n,a)}return a}function ptt(r,t){for(var e=[],a=0;a0)for(var b=a/e,x=-a/2;x<=a/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function Nv(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=Y(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(c,e),a=Math.max(f,a),n=Math.max(c,n),[f,c]}),o=Y(i,function(s,l){return{cp:s,z:Ttt(s[0],s[1],t,e,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function ER(r){return mtt(r.path,r.count)}function cm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Ctt(r,t,e){var a=[];function n(b){for(var x=0;x=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var Mtt={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;SA(r)&&(u=r,f=t),SA(t)&&(u=t,f=r);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(Ev(T))c({many:[T],one:C},!0,_,S,!0);else{var M=s?vt({delay:s(_,S)},l):l;N_(T,C,M),i(T,C,T,C,M)}}else for(var D=vt({dividePath:Mtt[e],individualDelay:s&&function(O,E,B,V){return s(O+_,S)}},l),I=m?Ctt(x,w,D):Att(w,x,D),L=I.fromIndividuals,k=I.toIndividuals,R=L.length,P=0;Pt.length,h=u?xA(f,u):xA(v?t:r,[v?r:t]),d=0,p=0;pOR))for(var i=a.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Lt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function AA(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function MA(r){return U(r)?r.sort().join(","):r}function Cn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Ett(r,t){var e=rt(),a=rt(),n=rt();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=AA(i),f=MA(u);a.set(f,{dataGroupId:s,data:l}),U(u)&&A(u,function(c){n.set(c,{key:f,dataGroupId:s,data:l})})}),A(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=AA(i),u=MA(l),f=a.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Cn(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Cn(s),data:s}]});else if(U(l)){var c=[];A(l,function(d){var p=a.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Cn(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Cn(s)}]})}else{var v=n.get(l);if(v){var h=e.get(v.key);h||(h={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Cn(v.data)}],newSeries:[]},e.set(v.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Cn(s)})}}}}),e}function DA(r,t){for(var e=0;e=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Cn(t.oldData[s]),groupIdDim:o.dimension})}),A(Ut(r.to),function(o){var s=DA(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Cn(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&NR(n,i,a)}function Ntt(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){A(Ut(a.seriesTransition),function(n){A(Ut(n.to),function(i){for(var o=a.updatedSeries,s=0;so.vmin?e+=o.vmin-a+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:e+=t-a,a=o.vmax,n=!1;break}e+=o.vmin-a+o.gapReal,a=o.vmax}return n&&(e+=t-a),e},r.prototype.unelapse=function(t){for(var e=LA,a=IA,n=!0,i=0,o=0;ol?i=s.vmin+(t-l)/(u-l)*(s.vmax-s.vmin):i=a+t-e,a=s.vmax,n=!1;break}e=u,a=s.vmax}return n&&(i=a+t-e),i},r}();function ztt(){return new Btt}var LA=0,IA=0;function Vtt(r,t){var e=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(e+=l.val);var u=B_(s,t);if(u){var f=u.vmin!==s.vmin,c=u.vmax!==s.vmax,v=u.vmax-u.vmin;if(!(f&&c))if(f||c){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=v,i[h][l.type].inExtFrac=v/(s.vmax-s.vmin),i[h][l.type].val=l.val}else a[l.type].span+=v,a[l.type].val+=l.val}});var o=e*(0+(t[1]-t[0])+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=e!==0?Math.max(o,0)*l.val/e:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function Gtt(r,t,e,a,n,i){r!=="no"&&A(e,function(o){var s=B_(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],f=a(u),c=n*3/4;f>s.vmin-c&&ft[0]&&e=0&&o<1-1e-5}A(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:st(o),vmin:t(o.start),vmax:t(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(Q(o.gap)){var u=Nr(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;n(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var c=t(o.gap);(!isFinite(c)||c<0)&&(c=0),s.gapParsed.type="tpAbs",s.gapParsed.val=c}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),e&&e.noNegative&&A(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var v=s.vmax;s.vmax=s.vmin,s.vmin=v}a.push(s)}}),a.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return A(a,function(o,s){i>o.vmin&&(a[s]=null),i=o.vmax}),{breaks:a.filter(function(o){return!!o})}}function z_(r,t){return hm(t)===hm(r)}function hm(r){return r.start+"_\0_"+r.end}function Htt(r,t,e){var a=[];A(r,function(i,o){var s=t(i);s&&s.type==="vmin"&&a.push([o])}),A(r,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=co(a,function(u){return z_(t(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return A(a,function(i){i.length===2&&n.push(e?i:[r[i[0]],r[i[1]]])}),n}function Wtt(r,t,e,a){var n,i;if(r.break){var o=r.break.parsedBreak,s=co(e,function(c){return z_(c.breakOption,r.break.parsedBreak.breakOption)}),l=a(Math.pow(t,o.vmin),s.vmin),u=a(Math.pow(t,o.vmax),s.vmax),f={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?de(Math.pow(t,o.vmin+o.gapParsed.val))-l:o.gapParsed.val};n={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:l,vmax:u,gapParsed:f,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:n}}function $tt(r,t,e){var a={noNegative:!0},n=vm(r,e,a),i=vm(r,e,a),o=Math.log(t);return i.breaks=Y(i.breaks,function(s){var l=Math.log(s.vmin)/o,u=Math.log(s.vmax)/o,f={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:f,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:n,parsedLogged:i}}var Utt={vmin:"start",vmax:"end"};function Ytt(r,t){return t&&(r=r||{},r.break={type:Utt[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function Ztt(){dV({createScaleBreakContext:ztt,pruneTicksByBreak:Gtt,addBreaksToTicks:Ftt,parseAxisBreakOption:vm,identifyAxisBreak:z_,serializeAxisBreakIdentifier:hm,retrieveAxisBreakPairs:Htt,getTicksLogTransformBreak:Wtt,logarithmicParseBreaksFromOption:$tt,makeAxisLabelFormatterParamBreak:Ytt})}var PA=Dt();function Xtt(r,t){var e=co(r,function(a){return pe().identifyAxisBreak(a.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function qtt(r){A(r,function(t){return t.shouldRemove=!0})}function Ktt(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function jtt(r,t,e,a,n){var i=e.axis;if(i.scale.isBlank()||!pe())return;var o=pe().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=e.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var c=s.get("expandOnClick"),v=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new lt({ignoreModelZ:!0}),S=i.isHorizontal(),b=PA(t).visualList||(PA(t).visualList=[]);qtt(b);for(var x=function(C){var M=o[C][0].break.parsedBreak,D=[];D[0]=i.toGlobalCoord(i.dataToCoord(M.vmin,!0)),D[1]=i.toGlobalCoord(i.dataToCoord(M.vmax,!0)),D[1]=E;it&&(X=E);var St=[],at=[];St[P]=D,at[P]=I,!q&&!it&&(St[P]+=W?-l:l,at[P]-=W?l:-l),St[O]=X,at[O]=X,V.push(St),H.push(at);var N=void 0;if(jm[1]&&m.reverse(),{coordPair:m,brkId:pe().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,c=0;c=0?l[0].width:l[1].width),v=(c+f.x)/2-u.x,h=Math.min(v,v-f.x),d=Math.max(v,v-f.x),p=d<0?d:h>0?h:0;s=(v-p)/f.x}var g=new ct,y=new ct;ct.scale(g,a,-s),ct.scale(y,a,1-s),gy(e[0],g),gy(e[1],y)}function tet(r,t){var e={breaks:[]};return A(t.breaks,function(a){if(a){var n=co(r.get("breaks",!0),function(s){return pe().identifyAxisBreak(s,a)});if(n){var i=t.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===gh?!0:i===QI?!1:i===tP?!n.isExpanded:n.isExpanded,e.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),e}function eet(){uW({adjustBreakLabelPair:Qtt,buildAxisBreakLine:Jtt,rectCoordBuildBreakAxis:jtt,updateModelAxisBreak:tet})}function ret(r){yW(r),Ztt(),eet()}function aet(){zW(net)}function net(r,t){A(r,function(e){if(!e.model.get(["axisLabel","inside"])){var a=iet(e);if(a){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);t[n]-=a[n]+i,e.position==="top"?t.y+=a.height+i:e.position==="left"&&(t.x+=a.width+i)}}})}function iet(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var a,n,i=e.getExtent();e instanceof yu?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Ws(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f($A("data-v-1071c65c"),r=r(),UA(),r),set={key:0,class:"loading-container"},uet={class:"loading-text"},fet={key:1,class:"error-container"},cet={key:2,class:"graph-container"},vet={class:"control-panel"},het={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap"}},det=oet(()=>Ct("div",{style:{flex:"1 1 auto"}},null,-1)),pet=Kn({__name:"TagRelationGraph",props:{folders:{},lang:{}},emits:["searchTag","openCluster"],setup(r,{emit:t}){const e=r,a=$t(!1),n=$t(""),i=$t(null),o=$t(null),s=$t(),l=$t();let u=null,f=null,c=null,v=null,h={};const d=$t("__all__"),p=$t(""),g=$t(3),y=$t(""),m=$t(!1),_=async()=>{try{if(document.fullscreenElement){await document.exitFullscreen();return}const P=l.value;if(!P||!P.requestFullscreen){$a.warning(Wt("tagGraphFullscreenUnsupported"));return}await P.requestFullscreen()}catch(P){$a.error((P==null?void 0:P.message)||Wt("tagGraphFullscreenFailed"))}},S=zt(()=>{var B;const O=(((B=i.value)==null?void 0:B.layers)??[]).map(V=>String(V.name??"")).filter(Boolean),E=Array.from(new Set(O));return[{label:Wt("tagGraphAllLayers"),value:"__all__"},...E.map(V=>({label:V,value:V}))]}),b=zt(()=>{var O;return(((O=o.value)==null?void 0:O.layers)??[]).reduce((E,B)=>{var V;return E+(((V=B==null?void 0:B.nodes)==null?void 0:V.length)??0)},0)}),x=zt(()=>{var P,O;return((O=(P=o.value)==null?void 0:P.links)==null?void 0:O.length)??0}),w=["#4A90E2","#7B68EE","#50C878","#FF6B6B"],T=P=>w[P%w.length],C=async()=>{var P,O;if(!e.folders||e.folders.length===0){n.value="No folders selected";return}a.value=!0,n.value="";try{const E={folder_paths:e.folders,lang:e.lang||"en"};i.value=await XR(E),o.value=i.value}catch(E){n.value=((O=(P=E.response)==null?void 0:P.data)==null?void 0:O.detail)||E.message||"Failed to load graph",$a.error(n.value)}finally{a.value=!1}},M=()=>{s.value&&Ch(()=>{R()})},D=()=>{const P=i.value;if(!P)return;const O=(p.value||"").trim().toLowerCase(),E=d.value,B=Math.max(1,Math.min(20,Number(g.value||1)));if(!y.value&&!O&&(E==="__all__"||!E)){o.value=P,M();return}const V=new Map;for(const N of P.layers){const F=String((N==null?void 0:N.name)??""),Z=Number((N==null?void 0:N.level)??0);for(const K of(N==null?void 0:N.nodes)??[]){const mt=String((K==null?void 0:K.id)??"");mt&&V.set(mt,{id:mt,label:String((K==null?void 0:K.label)??""),layerName:F,layerLevel:Z,metadata:K==null?void 0:K.metadata})}}const H=new Set;if(y.value)V.has(y.value)&&H.add(y.value);else for(const[N,F]of V)E&&E!=="__all__"&&F.layerName!==E||O&&!`${F.label} ${N}`.toLowerCase().includes(O)||H.add(N);const W=P.links,X=new Map,j=(N,F)=>{!N||!F||(X.has(N)||X.set(N,new Set),X.get(N).add(F))};for(const N of W){const F=String((N==null?void 0:N.source)??""),Z=String((N==null?void 0:N.target)??"");!F||!Z||(j(F,Z),j(Z,F))}const q=new Set,it=[];for(const N of H)q.add(N),it.push({id:N,d:0});for(;it.length;){const N=it.shift();if(N.d>=B)continue;const F=X.get(N.id);if(F)for(const Z of F)q.has(Z)||(q.add(Z),it.push({id:Z,d:N.d+1}))}const St=[];for(const N of P.layers){const F=((N==null?void 0:N.nodes)??[]).filter(Z=>q.has(String((Z==null?void 0:Z.id)??"")));F.length&&St.push({...N,nodes:F})}const at=W.filter(N=>q.has(String((N==null?void 0:N.source)??""))&&q.has(String((N==null?void 0:N.target)??"")));o.value={layers:St,links:at,stats:{...P.stats,total_links:at.length}},M()},I=()=>{y.value="",D()},L=(P,O,E,B)=>{d.value=O||"__all__",p.value=E||"",y.value=P;const V=B==="cluster"?3:B==="tag"?2:B==="abstract"?1:2;g.value=Math.max(Number(g.value||1),V),D()},k=()=>{d.value="__all__",p.value="",g.value=3,y.value="",i.value&&(o.value=i.value),M()},R=()=>{if(!o.value||!s.value)return;u&&u.dispose(),u=pF(s.value);const O=[...o.value.layers].reverse(),E=[],B=1500/(O.length+1),V=200;h={},O.forEach((q,it)=>{const St=B*(it+1),N=800/(q.nodes.length+1);q.nodes.forEach((F,Z)=>{const K=N*(Z+1),gt=F.id.split("").reduce((fr,wr)=>fr+wr.charCodeAt(0),0)%V-V/2,ut=St+gt,At=20,Ht=60,ne=Math.sqrt(F.size)/5,ie=Math.max(At,Math.min(Ht,At+ne));E.push({id:F.id,name:F.label,x:ut,y:K,fixed:!0,symbolSize:ie,value:F.size,category:q.level,itemStyle:{color:T(q.level)},label:{show:!0,fontSize:11,color:"#fff",formatter:fr=>{const ia=fr.name;return ia.length>10?ia.substring(0,10)+"...":ia}},metadata:F.metadata,layerName:q.name}),h[F.id]=E.length-1})});const H=o.value.links.map(q=>({source:q.source,target:q.target,value:q.weight,lineStyle:{width:Math.max(.5,Math.min(2,q.weight/100)),opacity:.3,curveness:.1}})),W=O.map(q=>({name:q.name})),X={tooltip:{renderMode:"html",appendToBody:!1,className:"iib-tg-tooltip",backgroundColor:"rgba(15, 23, 42, 0.92)",borderColor:"rgba(255,255,255,0.14)",borderWidth:1,padding:[10,12],textStyle:{color:"#fff"},extraCssText:"border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); z-index: 9999;",triggerOn:"none",enterable:!0,formatter:q=>{if(q.dataType==="node"){const it=q.data,St=String(it.id||""),at=it.metadata||{},N=Number(at.image_count??it.value??0),F=at.cluster_count!=null?Number(at.cluster_count):null,Z=at.level!=null?Number(at.level):null,K=String(at.type||""),mt=[];!Number.isNaN(N)&&N>0&&mt.push(`🖼️ ${N}`),F!=null&&!Number.isNaN(F)&&mt.push(`🧩 ${F}`),Z!=null&&!Number.isNaN(Z)&&mt.push(`🏷️ L${Z}`);const gt=K==="tag",ut=K==="tag"||K==="abstract"||K==="cluster",At=K==="cluster",Ht=[gt?``:"",ut?``:"",At?``:"",``].filter(Boolean).join("");return` +`:"
",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=dt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=e.positionDefault,p=wl([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new Td;y.marker=m.makeTooltipMarker("item",uo(y.color),h);var _=BS(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?WS(b?$({valueFormatter:b},x):x,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=dt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Q(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=st(l),l.content=Ye(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=e.positionDefault,d=wl(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new Td;this._showOrMove(d,function(){var m=st(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,a,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var h=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(v)if(Q(v)){var g=e.ecModel.get("useUTC"),y=U(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=uh(y.axisValue,h,g)),h=sL(h,n,!0)}else if(ot(v)){var _=tt(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,n,u))},this);this._ticket=i,h=v(n,i,_)}else h=v;c.setContent(h,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||U(a))return{color:i||o};if(!U(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||e.get("position");var c=o.getSize(),v=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ot(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),U(a))n=J(a[0],u),i=J(a[1],f);else if(vt(a)){var p=a;p.width=c[0],p.height=c[1];var g=te(p,{width:u,height:f});n=g.x,i=g.y,v=null,h=null}else if(Q(a)&&l){var y=gj(a,d,c,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=dj(n,i,o,u,f,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=AC(v)?c[0]/2:v==="right"?c[0]:0),h&&(i-=AC(h)?c[1]/2:h==="bottom"?c[1]:0),lR(e)){var y=pj(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&A(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){Bt.node||!a.getDom()||(pu(this,"_updatePosition"),this._tooltipContent.dispose(),Ky("itemTooltip",a))},t.type="tooltip",t}(ae);function wl(r,t,e){var a=t.ecModel,n;e?(n=new Nt(e,a,a),n=new Nt(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Nt&&(o=o.get("tooltip",!0)),Q(o)&&(o={formatter:o}),o&&(n=new Nt(o,n,a)))}return n}function CC(r,t){return r.dispatchAction||tt(t.dispatchAction,t)}function dj(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function pj(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function gj(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function AC(r){return r==="center"||r==="middle"}function yj(r,t,e){var a=Rm(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Ns(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=dt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const mj=hj;function _j(r){Tt(Xu),r.registerComponentModel(JK),r.registerComponentView(mj),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},fe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},fe)}var Sj=["rect","polygon","keep","clear"];function xj(r,t){var e=Ut(r?r.brush:[]);if(e.length){var a=[];A(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;U(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),bj(s),t&&!s.length&&s.push.apply(s,Sj)}}function bj(r){var t={};A(r,function(e){t[e]=1}),r.length=0,A(t,function(e,a){r.push(a)})}var MC=A;function DC(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function im(r,t,e){var a={};return MC(t,function(i){var o=a[i]=n();MC(r[i],function(s,l){if(He.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new He(u),l==="opacity"&&(u=st(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new He(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function vR(r,t,e){var a;A(e,function(n){t.hasOwnProperty(n)&&DC(t[n])&&(a=!0)}),a&&A(e,function(n){t.hasOwnProperty(n)&&DC(t[n])?r[n]=st(t[n]):delete r[n]})}function wj(r,t,e,a,n,i){var o={};A(r,function(c){var v=He.prepareVisualTypes(t[c]);o[c]=v});var s;function l(c){return y0(e,s,c)}function u(c,v){i2(e,s,c,v)}i==null?e.each(f):e.each([i],f);function f(c,v){s=i==null?c:v;var h=e.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=a.call(n,c),p=t[d],g=o[d],y=0,m=g.length;yt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&RC(t)}};function RC(r){return new ht(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Pj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new l_(a.getZr())).on("brush",tt(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){hR(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:st(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:st(n),$from:a})},t.type="brush",t}(ae);const kj=Pj;var Rj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&vR(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(a){return EC(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=EC(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:G.color.backgroundTint,borderColor:G.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:G.color.disabled},t}(Rt);function EC(r,t){return wt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Nt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const Ej=Rj;var Oj=["rect","polygon","lineX","lineY","keep","clear"],Nj=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return A(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:Oj.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t}(Er);const Bj=Nj;function zj(r){r.registerComponentView(kj),r.registerComponentModel(Ej),r.registerPreprocessor(xj),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Aj),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},fe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},fe),is("brush",Bj)}var Vj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:G.size.m,backgroundColor:G.color.transparent,borderColor:G.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:G.color.primary},subtextStyle:{fontSize:12,color:G.color.quaternary}},t}(Rt),Gj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=nt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Et({style:Zt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=e.get("subtext"),h=new Et({style:Zt(s,{text:v,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){Jc(d,"_"+e.get("target"))}),p&&h.on("click",function(){Jc(p,"_"+e.get("subtarget"))}),dt(f).eventData=dt(h).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),v&&i.add(h);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Ce(e,n),S=te(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),y=i.getBoundingRect();var x=S.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var T=new At({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(ae);function Fj(r){r.registerComponentModel(Vj),r.registerComponentView(Gj)}var Hj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,f){var c=xe(Os(u),""),v;vt(u)?(v=st(u),v.value=f):v=f,o.push(v),i.push(c)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new rr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:G.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:G.color.secondary},data:[]},t}(Rt);const OC=Hj;var dR=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=ti(OC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:G.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:G.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:G.color.tertiary},itemStyle:{color:G.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:G.color.accent50,borderColor:G.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:G.color.accent50,borderColor:G.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:G.color.accent60},itemStyle:{color:G.color.accent60,borderColor:G.color.accent60},controlStyle:{color:G.color.accent70,borderColor:G.color.accent70}},progress:{lineStyle:{color:G.color.accent30},itemStyle:{color:G.color.accent40}},data:[]}),t}(OC);_e(dR,vh.prototype);const Wj=dR;var $j=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(ae);const Uj=$j;var Yj=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(oa);const Zj=Yj;var Yp=Math.PI,NC=Mt(),Xj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ye("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=Kj(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Yp/2},c=i==="vertical"?o.height:o.width,v=e.getModel("controlStyle"),h=v.get("show",!0),d=h?v.get("itemSize"):0,p=h?v.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Yp/180;var m,_,S,b=v.get("position",!0),x=h&&v.get("showPlayBtn",!0),w=h&&v.get("showPrevBtn",!0),T=h&&v.get("showNextBtn",!0),C=0,M=c;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-d,0],M-=g)):(x&&(m=[M-d,0],M-=g),w&&(_=[0,0],C+=g),T&&(S=[M-d,0],M-=g));var D=[C,M];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Oe(),l=o.x,u=o.y+o.height;ka(s,s,[-l,-u]),jn(s,s,-Yp/2),ka(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(n.getBoundingRect()),v=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=e.labelPosOpt;if(p==null||Q(p)){var g=p==="+"?0:1;_(h,c,f,1,g),_(d,v,f,1,1-g)}else{var g=p>=0?0:1;_(h,c,f,1,g),d[1]=h[1]+p}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=qj(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Zj("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new lt;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new be({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:$({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new be({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ct({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),c=s.getItemModel(u.value),v=c.getModel("itemStyle"),h=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:tt(o._changeTimeline,o,u.value)},g=BC(c,v,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),ji(g);var y=dt(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var c=f.tickValue,v=l.getItemModel(c),h=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Et({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:tt(o._changeTimeline,o,c),silent:!1,style:Zt(h,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Zt(d),y.ensureState("progress").style=Zt(p),a.add(y),ji(y),NC(y).dataIndex=c,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);v(e.nextBtnPosition,"next",tt(this._changeTimeline,this,c?"-":"+")),v(e.prevBtnPosition,"prev",tt(this._changeTimeline,this,c?"+":"-")),v(e.playPosition,f?"stop":"play",tt(this._handlePlayClick,this,!f),!0);function v(h,d,p,g){if(h){var y=ra(nt(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=jj(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),ji(_)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=tt(u._handlePointerDrag,u),c.ondragend=tt(u._handlePointerDragend,u),zC(c,u._progressLine,s,n,i,!0)},onUpdate:function(c){zC(c,u._progressLine,s,n,i)}};this._currentPointer=BC(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=zr(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var oc={min:xt(ic,"min"),max:xt(ic,"max"),average:xt(ic,"average"),median:xt(ic,"median")};function Pu(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!iJ(t)&&!U(t.coord)&&U(n)){var i=gR(t,e,a,r);if(t=st(t),t.type&&oc[t.type]&&i.baseAxis&&i.valueAxis){var o=bt(n,i.baseAxis.dim),s=bt(n,i.valueAxis.dim),l=oc[t.type](e,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!U(n)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&oc[t.type]){var f=a.getOtherAxis(u);f&&(t.value=kv(e,e.mapDimension(f.dim),t.type))}}else for(var c=t.coord,v=0;v<2;v++)oc[c[v]]&&(c[v]=kv(e,e.mapDimension(n[v]),c[v]));return t}}function gR(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(oJ(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function oJ(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function ku(r,t){return r&&r.containData&&t.coord&&!sm(t)?r.containData(t.coord):!0}function sJ(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!sm(t)&&!sm(e)?r.containZone(t.coord,e.coord):!0}function yR(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Gn(o,t[i])}:function(e,a,n,i){return Gn(e.value,t[i])}}function kv(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Zp=Mt(),lJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=rt()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Zp(s).keep=!1}),a.eachSeries(function(s){var l=ln.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Zp(s).keep&&i.group.remove(s.group)}),uJ(a,o,this.type)},t.prototype.markKeep=function(e){Zp(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;A(e,function(i){var o=ln.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?hD(l):Fm(l))})}})},t.type="marker",t}(ae);function uJ(r,t,e){r.eachSeries(function(a){var n=ln.getMarkerModelFromSeries(a,e),i=t.get(a.id);if(n&&i&&i.group){var o=lo(n),s=o.z,l=o.zlevel;sh(i.group,s,l)}})}const N_=lJ;function GC(r,t,e){var a=t.coordinateSystem,n=e.getWidth(),i=e.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:n,c=u?o?o.height:0:i,v=u&&o?o.x:0,h=u&&o?o.y:0,d,p=J(l.get("x"),f)+v,g=J(l.get("y"),c)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(t.getMarkerPosition)d=t.getMarkerPosition(r.getValues(r.dimensions,s));else if(a){var y=r.get(a.dimensions[0],s),m=r.get(a.dimensions[1],s);d=a.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var fJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markPoint");o&&(GC(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new $u),c=cJ(o,e,a);a.setData(c),GC(a.getData(),e,i),c.each(function(v){var h=c.getItemModel(v),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(ot(d)||ot(p)||ot(g)||ot(y)){var _=a.getRawValue(v),S=a.getDataParams(v);ot(d)&&(d=d(_,S)),ot(p)&&(p=p(_,S)),ot(g)&&(g=g(_,S)),ot(y)&&(y=y(_,S))}var b=h.getModel("itemStyle").getItemStyle(),x=h.get("z2"),w=Gu(l,"color");b.fill||(b.fill=w),c.setItemVisual(v,{z2:nt(x,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(v){v.traverse(function(h){dt(h).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(N_);function cJ(r,t,e){var a;r?a=Y(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return $($({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new rr(a,e),i=Y(e.get("data"),xt(Pu,t));r&&(i=Ht(i,xt(ku,r)));var o=yR(!!r,a);return n.initData(i,null,o),n}const vJ=fJ;function hJ(r){r.registerComponentModel(nJ),r.registerComponentView(vJ),r.registerPreprocessor(function(t){O_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var dJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,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}(ln);const pJ=dJ;var sc=Mt(),gJ=function(r,t,e,a){var n=r.getData(),i;if(U(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=Fe(a.yAxis,a.xAxis);else{var u=gR(a,n,t,r);s=u.valueAxis;var f=O2(n,u.valueDataDim);l=kv(n,f,o)}var c=s.dim==="x"?0:1,v=1-c,h=st(a),d={coord:[]};h.type=null,h.coord=[],h.coord[v]=-1/0,d.coord[v]=1/0;var p=e.get("precision");p>=0&&kt(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[c]=d.coord[c]=l,i=[h,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Pu(r,i[0]),Pu(r,i[1]),$({},i[2])];return g[2].type=g[2].type||null,wt(g[2],g[0]),wt(g[2],g[1]),g};function Rv(r){return!isNaN(r)&&!isFinite(r)}function FC(r,t,e,a){var n=1-r,i=a.dimensions[r];return Rv(t[n])&&Rv(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function yJ(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(FC(1,e,a,r)||FC(0,e,a,r)))return!0}return ku(r,t[0])&&ku(r,t[1])}function Xp(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=J(o.get("x"),n.getWidth()),u=J(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,c=r.get(f[0],t),v=r.get(f[1],t);s=i.dataToPoint([c,v])}if(Yn(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Rv(r.get(f[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):Rv(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var mJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=sc(o).from,u=sc(o).to;l.each(function(f){Xp(l,f,!0,i,n),Xp(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new e_);this.group.add(f.group);var c=_J(o,e,a),v=c.from,h=c.to,d=c.line;sc(a).from=v,sc(a).to=h,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");U(p)||(p=[p,p]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(m)||(m=[m,m]),c.from.each(function(S){_(v,S,!0),_(h,S,!1)}),d.each(function(S){var b=d.getItemModel(S),x=b.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),h.getItemLayout(S)]);var w=b.get("z2");x.stroke==null&&(x.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:nt(w,0),fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:x})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){dt(S).dataModel=a,S.traverse(function(b){dt(b).dataModel=a})});function _(S,b,x){var w=S.getItemModel(b);Xp(S,b,x,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Gu(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:nt(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:nt(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:nt(w.get("symbolSize"),g[x?0:1]),symbol:nt(w.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(N_);function _J(r,t,e){var a;r?a=Y(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return $($({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new rr(a,e),i=new rr(a,e),o=new rr([],e),s=Y(e.get("data"),xt(gJ,t,r,e));r&&(s=Ht(s,xt(yJ,r)));var l=yR(!!r,a);return n.initData(Y(s,function(u){return u[0]}),null,l),i.initData(Y(s,function(u){return u[1]}),null,l),o.initData(Y(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}const SJ=mJ;function xJ(r){r.registerComponentModel(pJ),r.registerComponentView(SJ),r.registerPreprocessor(function(t){O_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var bJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ln);const wJ=bJ;var lc=Mt(),TJ=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Pu(r,n),s=Pu(r,i),l=o.coord,u=s.coord;l[0]=Fe(l[0],-1/0),l[1]=Fe(l[1],-1/0),u[0]=Fe(u[0],1/0),u[1]=Fe(u[1],1/0);var f=xm([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Ev(r){return!isNaN(r)&&!isFinite(r)}function HC(r,t,e,a){var n=1-r;return Ev(t[n])&&Ev(e[n])}function CJ(r,t){var e=t.coord[0],a=t.coord[1],n={coord:e,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return Yn(r,"cartesian2d")?e&&a&&(HC(1,e,a)||HC(0,e,a))?!0:sJ(r,n,i):ku(r,n)||ku(r,i)}function WC(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=J(o.get(e[0]),n.getWidth()),u=J(o.get(e[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],t),c=r.getValues(["x1","y1"],t),v=i.clampData(f),h=i.clampData(c),d=[];e[0]==="x0"?d[0]=v[0]>h[0]?c[0]:f[0]:d[0]=v[0]>h[0]?f[0]:c[0],e[1]==="y0"?d[1]=v[1]>h[1]?c[1]:f[1]:d[1]=v[1]>h[1]?f[1]:c[1],s=a.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Yn(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);Ev(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):Ev(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var $C=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],AJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Y($C,function(c){return WC(s,l,c,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new lt});this.group.add(f.group),this.markKeep(f);var c=MJ(o,e,a);a.setData(c),c.each(function(v){var h=Y($C,function(M){return WC(c,v,M,e,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",v)),d.parse(c.get("x1",v))],_=[p.parse(c.get("y0",v)),p.parse(c.get("y1",v))];zr(m),zr(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),b=!S;c.setItemLayout(v,{points:h,allClipped:b});var x=c.getItemModel(v),w=x.getModel("itemStyle").getItemStyle(),T=x.get("z2"),C=Gu(l,"color");w.fill||(w.fill=C,Q(w.fill)&&(w.fill=zc(w.fill,.4))),w.stroke||(w.stroke=C),c.setItemVisual(v,"style",w),c.setItemVisual(v,"z2",nt(T,0))}),c.diff(lc(f).data).add(function(v){var h=c.getItemLayout(v),d=c.getItemVisual(v,"z2");if(!h.allClipped){var p=new ir({z2:nt(d,0),shape:{points:h.points}});c.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,h){var d=lc(f).data.getItemGraphicEl(h),p=c.getItemLayout(v),g=c.getItemVisual(v,"z2");p.allClipped?d&&f.group.remove(d):(d?Ot(d,{z2:nt(g,0),shape:{points:p.points}},a,v):d=new ir({shape:{points:p.points}}),c.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var h=lc(f).data.getItemGraphicEl(v);f.group.remove(h)}).execute(),c.eachItemGraphicEl(function(v,h){var d=c.getItemModel(h),p=c.getItemVisual(h,"style");v.useStyle(c.getItemVisual(h,"style")),Ie(v,Te(d),{labelFetcher:a,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:Q(p.fill)?zc(p.fill,1):G.color.neutral99}),we(v,d),Qt(v,null,null,d.get(["emphasis","disabled"])),dt(v).dataModel=a}),lc(f).data=c,f.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(N_);function MJ(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=Y(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return $($({},c),{name:u,ordinalMeta:null})});n=Y(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new rr(n,e)}else n=[{name:"value",type:"float"}],a=new rr(n,e);var s=Y(e.get("data"),xt(TJ,t,r,e));r&&(s=Ht(s,xt(CJ,r)));var l=r?function(u,f,c,v){var h=u.coord[Math.floor(v/2)][v%2];return Gn(h,n[v])}:function(u,f,c,v){return Gn(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}const DJ=AJ;function LJ(r){r.registerComponentModel(wJ),r.registerComponentView(DJ),r.registerPreprocessor(function(t){O_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var IJ=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},PJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),U(a)&&A(a,function(i,o){Q(i)&&(i={type:i}),a[o]=wt(i,IJ(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=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:G.size.m,align:"auto",backgroundColor:G.color.transparent,borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:G.color.disabled,inactiveBorderColor:G.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:G.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:G.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:G.color.tertiary,borderWidth:1,borderColor:G.color.border},emphasis:{selectorLabel:{show:!0,color:G.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Rt);const lm=PJ;var Jo=xt,um=A,uc=lt,kJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new uc),this.group.add(this._selectorGroup=new uc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var f=Ce(e,n).refContainer,c=e.getBoxLayoutParams(),v=e.get("padding"),h=te(c,f,v),d=this.layoutInner(e,o,h,i,l,u),p=te(ct({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=iR(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),f=rt(),c=a.get("selectedMode"),v=a.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),um(a.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===` +`)){var m=new uc;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,y,p,d,a,e,b,w,x,c,i);T.on("click",Jo(UC,y,null,i,h)).on("mouseover",Jo(fm,_.name,null,i,h)).on("mouseout",Jo(cm,_.name,null,i,h)),n.ssr&&T.eachChild(function(C){var M=dt(C);M.seriesIndex=_.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),v&&T.eachChild(function(C){g.packEventData(C,a,_,p,y)}),f.set(y,!0)}else n.eachRawSeries(function(C){var M=this;if(!f.get(y)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(y))return;var I=D.indexOfName(y),L=D.getItemVisual(I,"style"),k=D.getItemVisual(I,"legendIcon"),R=fr(L.fill);R&&R[3]===0&&(R[3]=.2,L=$($({},L),{fill:Da(R,"rgba")}));var P=this._createItem(C,y,p,d,a,e,{},L,k,c,i);P.on("click",Jo(UC,null,y,i,h)).on("mouseover",Jo(fm,null,y,i,h)).on("mouseout",Jo(cm,null,y,i,h)),n.ssr&&P.eachChild(function(O){var E=dt(O);E.seriesIndex=C.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),v&&P.eachChild(function(O){M.packEventData(O,a,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype.packEventData=function(e,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};dt(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();um(e,function(u){var f=u.type,c=new Et({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(c);var v=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);Ie(c,{normal:v,emphasis:h},{defaultText:u.title}),ji(c)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,f,c,v){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=RJ(f,i,l,u,h,g,v),b=new uc,x=i.getModel("textStyle");if(ot(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(EJ({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=a;Q(M)&&M?D=M.replace("{name}",a??""):ot(M)&&(D=M(a));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new Et({style:Zt(x,{text:D,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new At({shape:b.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&fn({el:L,componentModel:o,itemName:a,itemTooltipOption:k.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!c,this.getContentGroup().add(b),ji(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Qi(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Qi("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ae);function RJ(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),um(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?a.decal:Ts(c,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function EJ(r){var t=r.icon||"roundRect",e=me(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=G.color.neutral00,e.style.lineWidth=2),e}function UC(r,t,e,a){cm(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),fm(r,t,e,a)}function mR(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;an[o],g=[-h.x,-h.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=nt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new At({shape:x})),c.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Ot(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=a[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=qp[o],l=Kp[o],u=this._findTargetItemIndex(a),f=n.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t}(_R);const GJ=VJ;function FJ(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function HJ(r){Tt(SR),r.registerComponentModel(zJ),r.registerComponentView(GJ),FJ(r)}function WJ(r){Tt(SR),Tt(HJ)}var $J=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=ti(Iu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Iu);const UJ=$J;var B_=Mt();function YJ(r,t,e){B_(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function ZJ(r,t){for(var e=B_(r).coordSysRecordMap,a=e.keys(),n=0;ni[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function JJ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=B_(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=rt());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=rR(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,XJ(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=rt());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){xR(n,i);return}var f=jJ(l,i,e);o.enable(f.controlType,f.opt),$s(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var QJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),YJ(n,e,{pan:tt(jp.pan,this),zoom:tt(jp.zoom,this),scrollMove:tt(jp.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ZJ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(L_),jp={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=Jp[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Zn(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:qC(function(r,t,e,a,n,i){var o=Jp[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:qC(function(r,t,e,a,n,i){var o=Jp[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function qC(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if(Zn(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Jp={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const tQ=QJ;function bR(r){I_(r),r.registerComponentModel(UJ),r.registerComponentView(tQ),JJ(r)}var eQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ti(Iu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:G.color.accent10,borderRadius:0,backgroundColor:G.color.transparent,dataBackground:{lineStyle:{color:G.color.accent30,width:.5},areaStyle:{color:G.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:G.color.accent40,width:.5},areaStyle:{color:G.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:G.color.neutral00,borderColor:G.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:G.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:G.color.tertiary},brushSelect:!0,brushStyle:{color:G.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:G.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Iu);const rQ=eQ;var Al=At,aQ=1,Qp=30,nQ=7,Ml="horizontal",KC="vertical",iQ=5,oQ=["line","bar","candlestick","scatter"],sQ={easing:"cubicOut",duration:100,delay:0},lQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=tt(this._onBrush,this),this._onBrushEnd=tt(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),$s(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){pu(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new lt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?nQ:0,o=Ce(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Ml?{right:o.width-s.x-s.width,top:o.height-Qp-l-i,width:s.width,height:Qp}:{right:l,top:s.y,width:Qp,height:s.height},f=mo(e.option);A(["right","top","width","height"],function(v){f[v]==="ph"&&(f[v]=u[v])});var c=te(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===KC&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Ml&&!o?{scaleY:l?1:-1,scaleX:1}:n===Ml&&o?{scaleY:l?1:-1,scaleX:-1}:n===KC&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new Al({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Al({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:tt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var c=o.getDataExtent(e.thisDim),v=o.getDataExtent(l),h=(v[1]-v[0])*.3;v=[v[0]-h,v[1]+h];var d=[0,a[1]],p=[0,a[0]],g=[[a[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=a[0]/(c[1]-c[0]),S=e.thisAxis.type==="time",b=-m,x=Math.round(o.count()/a[0]),w;o.each([e.thisDim,l],function(I,L,k){if(x>0&&k%x){S||(b+=m);return}b=S?(+I-c[0])*_:b+m;var R=L==null||isNaN(L)||L==="",P=R?0:Ft(L,v,d,!0);R&&!w&&k?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([b,0]),y.push([b,0])),R||(g.push([b,P]),y.push([b,P])),w=R}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var T=this.dataZoomModel;function C(I){var L=T.getModel(I?"selectedDataBackground":"dataBackground"),k=new lt,R=new ir({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Ke({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return k.add(R),k.add(P),k}for(var M=0;M<3;M++){var D=C(M===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&bt(oQ,u.get("type"))<0)){var f=i.getComponent(En(o),s).axis,c=uQ(o),v,h=u.coordinateSystem;c!=null&&h.getOtherAxis&&(v=h.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:v}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),v=a.filler=new Al({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Al({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:aQ,fill:G.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!ev[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=me(S,-1,0,2,2,null,!0);b.attr({cursor:fQ(this._orient),draggable:!0,drift:tt(this._onDragMove,this,_),ondragend:tt(this._onDragEnd,this),onmouseover:tt(this._showDataInfo,this,!0),onmouseout:tt(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=J(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ji(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var C=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;e.add(i[_]=new Et({silent:!0,invisible:!D,style:Zt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=v;if(c){var d=J(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new At({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=me(l.get("moveHandleIcon"),-g/2,-g/2,g,g,G.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=a.moveZone=new At({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"default",drift:tt(this._onDragMove,this,"all"),ondragstart:tt(this._showDataInfo,this,!0),ondragend:tt(this._onDragEnd,this),onmouseover:tt(this._showDataInfo,this,!0),onmouseout:tt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Ft(e[0],[0,100],a,!0),Ft(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Zn(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?Ft(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ft(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=zr([Ft(i[0],o,l,!0),Ft(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=zr(n.slice()),o=this._size;A([0,1],function(h){var d=a.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[h]+(h?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new ft(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Zn(0,l,o,0,u.minSpan!=null?Ft(u.minSpan,s,o,!0):null,u.maxSpan!=null?Ft(u.maxSpan,s,o,!0):null),this._range=zr([Ft(l[0],o,s,!0),Ft(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(tn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Al({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?sQ:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=rR(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(L_);function uQ(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function fQ(r){return r==="vertical"?"ns-resize":"ew-resize"}const cQ=lQ;function wR(r){r.registerComponentModel(rQ),r.registerComponentView(cQ),I_(r)}function vQ(r){Tt(bR),Tt(wR)}var hQ={get:function(r,t,e){var a=st((dQ[r]||{})[t]);return e&&U(a)?a[a.length-1]:a}},dQ={color:{active:["#006edd","#e0ffff"],inactive:[G.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const TR=hQ;var jC=He.mapVisual,pQ=He.eachVisual,gQ=U,JC=A,yQ=zr,mQ=Ft,_Q=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&vR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=tt(e,this),this.controllerVisuals=im(this.option.controller,a,e),this.targetVisuals=im(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,a=this.option.seriesIndex;a==null&&e==null&&(a="all");var n=Ns(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return Y(n,function(i){return i.componentIndex})},t.prototype.eachTargetSeries=function(e,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],U(e)&&(e=e.slice(),u=!0);var f=a?e:u?[c(e[0]),c(e[1])]:c(e);if(Q(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ot(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+f[1]:e[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=yQ([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});wt(i,n),wt(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){gQ(a.color)&&!c.inRange&&(c.inRange={color:a.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,v,h){var d=c[v],p=c[h];d&&!p&&(p=c[h]={},JC(d,function(g,y){if(He.isValidType(y)){var m=TR.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var v=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";JC(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&st(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&st(h)||(s?m[0]:[m[0],m[0]])),_.symbol=jC(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;pQ(S,function(x){x>b&&(b=x)}),_.symbolSize=jC(S,function(x){return mQ(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:G.color.transparent,borderColor:G.color.borderTint,contentColor:G.color.theme[0],inactiveColor:G.color.disabled,borderWidth:0,padding:G.size.m,textGap:10,precision:0,textStyle:{color:G.color.secondary}},t}(Rt);const Ov=_Q;var QC=[20,140],SQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=QC[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=QC[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):U(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=zr((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=tA(this,"outOfRange",this.getExtent()),n=tA(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:e(h,d)})}for(var s=0,l=0,u=n.length,f=a.length;le[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new lt(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);wQ([0,1],function(c){var v=o[c];v.setStyle("fill",a.handlesColor[c]),v.y=e[c];var h=pa(e[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");v.scaleX=v.scaleY=d/l[0],v.x=l[0]-d/2;var p=Jr(n.handleLabelPoints[c],Ji(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var v={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",v),d=this.getControllerVisual(e,"symbolSize"),p=pa(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=Jr(f.indicatorLabelPoint,Ji(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,C),_.animateTo(T,C)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;Do[1]&&(c[1]=1/0),a&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,h=[];(a||nA(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=XN(v,h);this._dispatchHighDown("downplay",Pc(d[0],n)),this._dispatchHighDown("highlight",Pc(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Wi(e.target,function(l){var u=dt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function kQ(r,t,e,a){for(var n=t.targetVisuals[a],i=He.prepareVisualTypes(n),o={color:Gu(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(LQ,IQ),A(PQ,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(RQ))}function DR(r){r.registerComponentModel(xQ),r.registerComponentView(DQ),MR(r)}var EQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],OQ[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=st(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Y(this._pieceList,function(l){return l=st(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=He.listVisualTypes(),i=this.isCategory();A(e.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&A(this.stateList,function(f){(e[f]||(e[f]={}))[l]=TR.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=st(e)},t.prototype.getValueState=function(e){var a=He.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=He.findPieceIndex(l,n);f===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,c){var v=i.getRepresentValue({interval:f});c||(c=i.getValueState(v));var h=e(v,c);f[0]===-1/0?n[0]=h:f[1]===1/0?n[1]=h:a.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return A(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=ti(Ov.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Ov),OQ={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function lA(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const NQ=EQ;var BQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=Fe(a.get("showLabel",!0),!u),c=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],s,f,o),A(l.viewPieceList,function(v){var h=v.piece,d=new lt;d.onclick=tt(this._onItemClick,this,h),this._enableHoverLink(d,v.indexInModelPieceList);var p=a.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Et({style:Zt(i,{x:y==="right"?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:nt(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:c}))}e.add(d)},this),u&&this._renderEndsText(e,u[1],s,f,o),Qi(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Pc(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return AR(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new lt,l=this.visualMapModel.textStyleModel;s.add(new Et({style:Zt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=Y(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=me(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=st(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(CR);const zQ=BQ;function LR(r){r.registerComponentModel(NQ),r.registerComponentView(zQ),MR(r)}function VQ(r){Tt(DR),Tt(LR)}var GQ=function(){function r(t){this._thumbnailModel=t}return r.prototype.reset=function(t){this._renderVersion=t.getMainProcessVersion()},r.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:WD(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(t,e){var a=e.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},r}(),FQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.optionUpdated=function(e,a){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new GQ(this);if(this._target=null,this.ecModel.eachSeries(function(n){kw(n,null)}),this.shouldShow()){var a=this.getTarget();kw(a.baseMapProvider,e)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!=="graph"&&(e=null):e=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:e},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:G.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:G.color.neutral30,borderColor:G.color.neutral40,opacity:.3},z:10},t}(Rt),HQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this._api=n,this._model=e,this._coordSys||(this._coordSys=new Co),!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var o=e.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=a.get("backgroundColor")||G.color.neutral00);var l=Ce(e,n).refContainer,u=te(vL(e,!0),l),f=s.lineWidth||0,c=this._contentRect=so(u.clone(),f/2,!0,!0),v=new lt;i.add(v),v.setClipPath(new At({shape:c.plain()}));var h=this._targetGroup=new lt;v.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new At({style:s,shape:d,silent:!1,cursor:"grab"}));var p=e.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);v.add(this._windowRect=new At({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),fA(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),fA(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!e){var o=e.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(s.x,s.y,s.width,s.height);var l=te({left:"center",top:"center",aspect:s.width/s.height},i);n.setViewRect(l.x,l.y,l.width,l.height),o.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var a=this._bridgeRendered;a&&a.renderVersion===e.renderVersion&&(a.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=ea([],e.targetTrans),n=Ma([],this._coordSys.transform,a);this._transThisToTarget=ea([],n);var i=e.viewportRect;i?i=i.clone():i=new ht(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(ct({r:s},i))}},t.prototype._resetRoamController=function(e){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new To(n.getZr())),!e||!this._isEnabled()){i.disable();return}i.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return a._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",tt(this._onPan,this)).on("zoom",tt(this._onZoom,this))},t.prototype._onPan=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ce([],[e.oldX,e.oldY],a),i=ce([],[e.oldX-e.dx,e.oldY-e.dy],a);this._api.dispatchAction(uA(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},t.prototype._onZoom=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ce([],[e.originX,e.originY],a);this._api.dispatchAction(uA(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;if(!e||!e.shouldShow())return!1;var a=e.getTarget().baseMapProvider;return!!a},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(ae);function uA(r,t){var e=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:e};return a[r.mainType+"Id"]=r.id,$(a,t),a}function fA(r,t){var e=lo(r);sh(t.group,e.z,e.zlevel)}function WQ(r){r.registerComponentModel(FQ),r.registerComponentView(HQ)}var $Q={label:{enabled:!0},decal:{show:!1}},cA=Mt(),UQ={};function YQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=st($Q);wt(a.label,r.getLocaleModel().get("aria"),!1),wt(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=rt();r.eachSeries(function(v){if(!v.isColorBySeries()){var h=c.get(v.type);h||(h={},c.set(v.type,h)),cA(v).scope=h}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(ot(v.enableAriaDecal)){v.enableAriaDecal();return}var h=v.getData();if(v.isColorBySeries()){var m=ty(v.ecModel,v.name,UQ,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,m))}else{var d=v.getRawData(),p={},g=cA(v).scope;h.each(function(b){var x=h.getRawIndex(b);p[x]=b});var y=d.count();d.each(function(b){var x=p[b],w=d.getName(b)||b+"",T=ty(v.ecModel,w,g,y),C=h.getItemVisual(x,"decal");h.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?$($({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=ct(c.option,f),!!c.get("enabled")){if(u.setAttribute("role","img"),c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var v=r.getSeriesCount(),h=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(v,d),g;if(!(v<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],S=v>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,C){if(C1?c.get(["series","multiple",I]):c.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var k=c.get(["data","partialData"]);M+=o(k,{displayCnt:h})}else M+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),P=c.get(["data","separator","end"]),O=c.get(["data","excludeDimensionId"]),E=[],B=0;B":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},qQ=function(){function r(t){var e=this._condVal=Q(t)?new RegExp(t):KE(t)?t:null;if(e==null){var a="";Gt(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return Q(e)?this._condVal.test(t):kt(e)?this._condVal.test(t+""):!1},r}(),KQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),jQ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&a.push(n),n=[L,k]}function f(L,k,R,P){vs(L,R)&&vs(k,P)||n.push(L,k,R,P,R,P)}function c(L,k,R,P,O,E){var B=Math.abs(k-L),V=Math.tan(B/4)*4/3,H=kT:D2&&a.push(n),a}function hm(r,t,e,a,n,i,o,s,l,u){if(vs(r,e)&&vs(t,a)&&vs(n,o)&&vs(i,s)){l.push(o,s);return}var f=2/u,c=f*f,v=o-r,h=s-t,d=Math.sqrt(v*v+h*h);v/=d,h/=d;var p=e-r,g=a-t,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var C=[],M=[];Hn(r,e,n,o,.5,C),Hn(t,a,i,s,.5,M),hm(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),hm(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function ctt(r,t){var e=vm(r),a=[];t=t||1;for(var n=0;n0)for(var u=0;uMath.abs(u),c=PR([l,u],f?0:1,t),v=(f?s:u)/c.length,h=0;hn,o=PR([a,n],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,v=0;v1?null:new ft(p*l+r,p*u+t)}function dtt(r,t,e){var a=new ft;ft.sub(a,e,t),a.normalize();var n=new ft;ft.sub(n,r,t);var i=n.dot(a);return i}function ts(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function ptt(r,t,e){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),ptt(t,u,f)}function Nv(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);Nv(r,i[0],n,a),Nv(r,i[1],e-n,a)}return a}function gtt(r,t){for(var e=[],a=0;a0)for(var b=a/e,x=-a/2;x<=a/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function Vv(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=Y(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(c,e),a=Math.max(f,a),n=Math.max(c,n),[f,c]}),o=Y(i,function(s,l){return{cp:s,z:Ctt(s[0],s[1],t,e,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function ER(r){return _tt(r.path,r.count)}function dm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Att(r,t,e){var a=[];function n(b){for(var x=0;x=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var Dtt={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;SA(r)&&(u=r,f=t),SA(t)&&(u=t,f=r);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(Bv(T))c({many:[T],one:C},!0,_,S,!0);else{var M=s?ct({delay:s(_,S)},l):l;V_(T,C,M),i(T,C,T,C,M)}}else for(var D=ct({dividePath:Dtt[e],individualDelay:s&&function(O,E,B,V){return s(O+_,S)}},l),I=m?Att(x,w,D):Mtt(w,x,D),L=I.fromIndividuals,k=I.toIndividuals,R=L.length,P=0;Pt.length,h=u?xA(f,u):xA(v?t:r,[v?r:t]),d=0,p=0;pOR))for(var i=a.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Dt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function AA(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function MA(r){return U(r)?r.sort().join(","):r}function Cn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Ott(r,t){var e=rt(),a=rt(),n=rt();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=AA(i),f=MA(u);a.set(f,{dataGroupId:s,data:l}),U(u)&&A(u,function(c){n.set(c,{key:f,dataGroupId:s,data:l})})}),A(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=AA(i),u=MA(l),f=a.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Cn(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Cn(s),data:s}]});else if(U(l)){var c=[];A(l,function(d){var p=a.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Cn(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Cn(s)}]})}else{var v=n.get(l);if(v){var h=e.get(v.key);h||(h={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Cn(v.data)}],newSeries:[]},e.set(v.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Cn(s)})}}}}),e}function DA(r,t){for(var e=0;e=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Cn(t.oldData[s]),groupIdDim:o.dimension})}),A(Ut(r.to),function(o){var s=DA(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Cn(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&NR(n,i,a)}function Btt(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){A(Ut(a.seriesTransition),function(n){A(Ut(n.to),function(i){for(var o=a.updatedSeries,s=0;so.vmin?e+=o.vmin-a+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:e+=t-a,a=o.vmax,n=!1;break}e+=o.vmin-a+o.gapReal,a=o.vmax}return n&&(e+=t-a),e},r.prototype.unelapse=function(t){for(var e=LA,a=IA,n=!0,i=0,o=0;ol?i=s.vmin+(t-l)/(u-l)*(s.vmax-s.vmin):i=a+t-e,a=s.vmax,n=!1;break}e=u,a=s.vmax}return n&&(i=a+t-e),i},r}();function Vtt(){return new ztt}var LA=0,IA=0;function Gtt(r,t){var e=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(e+=l.val);var u=G_(s,t);if(u){var f=u.vmin!==s.vmin,c=u.vmax!==s.vmax,v=u.vmax-u.vmin;if(!(f&&c))if(f||c){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=v,i[h][l.type].inExtFrac=v/(s.vmax-s.vmin),i[h][l.type].val=l.val}else a[l.type].span+=v,a[l.type].val+=l.val}});var o=e*(0+(t[1]-t[0])+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=e!==0?Math.max(o,0)*l.val/e:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function Ftt(r,t,e,a,n,i){r!=="no"&&A(e,function(o){var s=G_(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],f=a(u),c=n*3/4;f>s.vmin-c&&ft[0]&&e=0&&o<1-1e-5}A(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:st(o),vmin:t(o.start),vmax:t(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(Q(o.gap)){var u=Br(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;n(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var c=t(o.gap);(!isFinite(c)||c<0)&&(c=0),s.gapParsed.type="tpAbs",s.gapParsed.val=c}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),e&&e.noNegative&&A(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var v=s.vmax;s.vmax=s.vmin,s.vmin=v}a.push(s)}}),a.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return A(a,function(o,s){i>o.vmin&&(a[s]=null),i=o.vmax}),{breaks:a.filter(function(o){return!!o})}}function F_(r,t){return gm(t)===gm(r)}function gm(r){return r.start+"_\0_"+r.end}function Wtt(r,t,e){var a=[];A(r,function(i,o){var s=t(i);s&&s.type==="vmin"&&a.push([o])}),A(r,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=vo(a,function(u){return F_(t(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return A(a,function(i){i.length===2&&n.push(e?i:[r[i[0]],r[i[1]]])}),n}function $tt(r,t,e,a){var n,i;if(r.break){var o=r.break.parsedBreak,s=vo(e,function(c){return F_(c.breakOption,r.break.parsedBreak.breakOption)}),l=a(Math.pow(t,o.vmin),s.vmin),u=a(Math.pow(t,o.vmax),s.vmax),f={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?de(Math.pow(t,o.vmin+o.gapParsed.val))-l:o.gapParsed.val};n={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:l,vmax:u,gapParsed:f,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:n}}function Utt(r,t,e){var a={noNegative:!0},n=pm(r,e,a),i=pm(r,e,a),o=Math.log(t);return i.breaks=Y(i.breaks,function(s){var l=Math.log(s.vmin)/o,u=Math.log(s.vmax)/o,f={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:f,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:n,parsedLogged:i}}var Ytt={vmin:"start",vmax:"end"};function Ztt(r,t){return t&&(r=r||{},r.break={type:Ytt[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function Xtt(){pV({createScaleBreakContext:Vtt,pruneTicksByBreak:Ftt,addBreaksToTicks:Htt,parseAxisBreakOption:pm,identifyAxisBreak:F_,serializeAxisBreakIdentifier:gm,retrieveAxisBreakPairs:Wtt,getTicksLogTransformBreak:$tt,logarithmicParseBreaksFromOption:Utt,makeAxisLabelFormatterParamBreak:Ztt})}var PA=Mt();function qtt(r,t){var e=vo(r,function(a){return pe().identifyAxisBreak(a.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function Ktt(r){A(r,function(t){return t.shouldRemove=!0})}function jtt(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function Jtt(r,t,e,a,n){var i=e.axis;if(i.scale.isBlank()||!pe())return;var o=pe().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=e.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var c=s.get("expandOnClick"),v=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new lt({ignoreModelZ:!0}),S=i.isHorizontal(),b=PA(t).visualList||(PA(t).visualList=[]);Ktt(b);for(var x=function(C){var M=o[C][0].break.parsedBreak,D=[];D[0]=i.toGlobalCoord(i.dataToCoord(M.vmin,!0)),D[1]=i.toGlobalCoord(i.dataToCoord(M.vmax,!0)),D[1]=E;it&&(X=E);var St=[],at=[];St[P]=D,at[P]=I,!q&&!it&&(St[P]+=W?-l:l,at[P]-=W?l:-l),St[O]=X,at[O]=X,V.push(St),H.push(at);var N=void 0;if(Km[1]&&m.reverse(),{coordPair:m,brkId:pe().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,c=0;c=0?l[0].width:l[1].width),v=(c+f.x)/2-u.x,h=Math.min(v,v-f.x),d=Math.max(v,v-f.x),p=d<0?d:h>0?h:0;s=(v-p)/f.x}var g=new ft,y=new ft;ft.scale(g,a,-s),ft.scale(y,a,1-s),_y(e[0],g),_y(e[1],y)}function eet(r,t){var e={breaks:[]};return A(t.breaks,function(a){if(a){var n=vo(r.get("breaks",!0),function(s){return pe().identifyAxisBreak(s,a)});if(n){var i=t.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===_h?!0:i===QI?!1:i===tP?!n.isExpanded:n.isExpanded,e.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),e}function ret(){fW({adjustBreakLabelPair:tet,buildAxisBreakLine:Qtt,rectCoordBuildBreakAxis:Jtt,updateModelAxisBreak:eet})}function aet(r){mW(r),Xtt(),ret()}function net(){VW(iet)}function iet(r,t){A(r,function(e){if(!e.model.get(["axisLabel","inside"])){var a=oet(e);if(a){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);t[n]-=a[n]+i,e.position==="top"?t.y+=a.height+i:e.position==="left"&&(t.x+=a.width+i)}}})}function oet(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var a,n,i=e.getExtent();e instanceof Su?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Ys(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f($A("data-v-4ad8ae8c"),r=r(),UA(),r),uet={key:0,class:"loading-container"},fet={class:"loading-text"},cet={key:1,class:"error-container"},vet={key:2,class:"graph-container"},het={class:"control-panel"},det={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap"}},pet=set(()=>Ct("div",{style:{flex:"1 1 auto"}},null,-1)),get=Kn({__name:"TagRelationGraph",props:{folders:{},lang:{}},emits:["searchTag","openCluster"],setup(r,{emit:t}){const e=r,a=$t(!1),n=$t(""),i=$t(null),o=$t(null),s=$t(),l=$t();let u=null,f=null,c=null,v=null,h={};const d=$t("__all__"),p=$t(""),g=$t(3),y=$t(""),m=$t(!1),_=async()=>{try{if(document.fullscreenElement){await document.exitFullscreen();return}const P=l.value;if(!P||!P.requestFullscreen){Xr.warning(Wt("tagGraphFullscreenUnsupported"));return}await P.requestFullscreen()}catch(P){Xr.error((P==null?void 0:P.message)||Wt("tagGraphFullscreenFailed"))}},S=Vt(()=>{var B;const O=(((B=i.value)==null?void 0:B.layers)??[]).map(V=>String(V.name??"")).filter(Boolean),E=Array.from(new Set(O));return[{label:Wt("tagGraphAllLayers"),value:"__all__"},...E.map(V=>({label:V,value:V}))]}),b=Vt(()=>{var O;return(((O=o.value)==null?void 0:O.layers)??[]).reduce((E,B)=>{var V;return E+(((V=B==null?void 0:B.nodes)==null?void 0:V.length)??0)},0)}),x=Vt(()=>{var P,O;return((O=(P=o.value)==null?void 0:P.links)==null?void 0:O.length)??0}),w=["#4A90E2","#7B68EE","#50C878","#FF6B6B"],T=P=>w[P%w.length],C=async()=>{var P,O;if(!e.folders||e.folders.length===0){n.value="No folders selected";return}a.value=!0,n.value="";try{const E={folder_paths:e.folders,lang:e.lang||"en"};i.value=await XR(E),o.value=i.value}catch(E){const B=(O=(P=E.response)==null?void 0:P.data)==null?void 0:O.detail;n.value=typeof B=="string"?B:B?JSON.stringify(B):E.message||"Failed to load graph",Xr.error(n.value)}finally{a.value=!1}},M=()=>{s.value&&Dh(()=>{R()})},D=()=>{const P=i.value;if(!P)return;const O=(p.value||"").trim().toLowerCase(),E=d.value,B=Math.max(1,Math.min(20,Number(g.value||1)));if(!y.value&&!O&&(E==="__all__"||!E)){o.value=P,M();return}const V=new Map;for(const N of P.layers){const F=String((N==null?void 0:N.name)??""),Z=Number((N==null?void 0:N.level)??0);for(const j of(N==null?void 0:N.nodes)??[]){const _t=String((j==null?void 0:j.id)??"");_t&&V.set(_t,{id:_t,label:String((j==null?void 0:j.label)??""),layerName:F,layerLevel:Z,metadata:j==null?void 0:j.metadata})}}const H=new Set;if(y.value)V.has(y.value)&&H.add(y.value);else for(const[N,F]of V)E&&E!=="__all__"&&F.layerName!==E||O&&!`${F.label} ${N}`.toLowerCase().includes(O)||H.add(N);const W=P.links,X=new Map,K=(N,F)=>{!N||!F||(X.has(N)||X.set(N,new Set),X.get(N).add(F))};for(const N of W){const F=String((N==null?void 0:N.source)??""),Z=String((N==null?void 0:N.target)??"");!F||!Z||(K(F,Z),K(Z,F))}const q=new Set,it=[];for(const N of H)q.add(N),it.push({id:N,d:0});for(;it.length;){const N=it.shift();if(N.d>=B)continue;const F=X.get(N.id);if(F)for(const Z of F)q.has(Z)||(q.add(Z),it.push({id:Z,d:N.d+1}))}const St=[];for(const N of P.layers){const F=((N==null?void 0:N.nodes)??[]).filter(Z=>q.has(String((Z==null?void 0:Z.id)??"")));F.length&&St.push({...N,nodes:F})}const at=W.filter(N=>q.has(String((N==null?void 0:N.source)??""))&&q.has(String((N==null?void 0:N.target)??"")));o.value={layers:St,links:at,stats:{...P.stats,total_links:at.length}},M()},I=()=>{y.value="",D()},L=(P,O,E,B)=>{d.value=O||"__all__",p.value=E||"",y.value=P;const V=B==="cluster"?3:B==="tag"?2:B==="abstract"?1:2;g.value=Math.max(Number(g.value||1),V),D()},k=()=>{d.value="__all__",p.value="",g.value=3,y.value="",i.value&&(o.value=i.value),M()},R=()=>{if(!o.value||!s.value)return;u&&u.dispose(),u=gF(s.value);const O=[...o.value.layers].reverse(),E=[],B=1500/(O.length+1),V=200;h={},O.forEach((q,it)=>{const St=B*(it+1),N=800/(q.nodes.length+1);q.nodes.forEach((F,Z)=>{const j=N*(Z+1),pt=F.id.split("").reduce((Be,ze)=>Be+ze.charCodeAt(0),0)%V-V/2,mt=St+pt,Pt=20,Lt=60,qt=Math.sqrt(F.size)/5,ie=Math.max(Pt,Math.min(Lt,Pt+qt));E.push({id:F.id,name:F.label,x:mt,y:j,fixed:!0,symbolSize:ie,value:F.size,category:q.level,itemStyle:{color:T(q.level)},label:{show:!0,fontSize:11,color:"#fff",formatter:Be=>{const vr=Be.name;return vr.length>10?vr.substring(0,10)+"...":vr}},metadata:F.metadata,layerName:q.name}),h[F.id]=E.length-1})});const H=o.value.links.map(q=>({source:q.source,target:q.target,value:q.weight,lineStyle:{width:Math.max(.5,Math.min(2,q.weight/100)),opacity:.3,curveness:.1}})),W=O.map(q=>({name:q.name})),X={tooltip:{renderMode:"html",appendToBody:!1,className:"iib-tg-tooltip",backgroundColor:"rgba(15, 23, 42, 0.92)",borderColor:"rgba(255,255,255,0.14)",borderWidth:1,padding:[10,12],textStyle:{color:"#fff"},extraCssText:"border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); z-index: 9999;",triggerOn:"none",enterable:!0,formatter:q=>{if(q.dataType==="node"){const it=q.data,St=String(it.id||""),at=it.metadata||{},N=Number(at.image_count??it.value??0),F=at.cluster_count!=null?Number(at.cluster_count):null,Z=at.level!=null?Number(at.level):null,j=String(at.type||""),_t=[];!Number.isNaN(N)&&N>0&&_t.push(`🖼️ ${N}`),F!=null&&!Number.isNaN(F)&&_t.push(`🧩 ${F}`),Z!=null&&!Number.isNaN(Z)&&_t.push(`🏷️ L${Z}`);const pt=j==="tag",mt=j==="tag"||j==="abstract"||j==="cluster",Pt=j==="cluster",Lt=[pt?``:"",mt?``:"",Pt?``:"",``].filter(Boolean).join("");return`
${q.name}
- ${mt.map(ne=>`${ne}`).join("")} + ${_t.map(qt=>`${qt}`).join("")}
- ${Ht} + ${Lt}
- `}return""}},legend:[{data:W.map(q=>q.name),orient:"vertical",right:10,bottom:10,textStyle:{color:"#fff"}}],series:[{type:"graph",layout:"none",data:E,links:H,categories:W,roam:!0,scaleLimit:{min:.2,max:5},draggable:!1,blur:{itemStyle:{opacity:.15},lineStyle:{opacity:.08},label:{opacity:.25}},label:{show:!0,position:"inside"},lineStyle:{color:"source",curveness:.1},emphasis:{focus:"adjacency",lineStyle:{width:3}},zoom:1}]};u.setOption(X);const j=()=>{u&&u.dispatchAction({type:"hideTip"})};u.on("click",q=>{var it,St,at;if(q.dataType==="node"){const N=q.data;if(((it=N.metadata)==null?void 0:it.type)==="tag"){const F=h[String(N.id||"")];F!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:F}))}else if(((St=N.metadata)==null?void 0:St.type)==="cluster"){const F=h[String(N.id||"")];F!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:F}))}else if(((at=N.metadata)==null?void 0:at.type)==="abstract"){const F=h[String(N.id||"")];F!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:F}))}else $a.info(`Abstract category: ${q.name}`)}}),u.getZr().on("click",q=>{q!=null&&q.target||j()}),c&&(document.removeEventListener("click",c,!0),c=null),c=q=>{var F,Z,K;const it=q.target;if(!it)return;const St=(F=it.closest)==null?void 0:F.call(it,"button[data-action]");if(St){const mt=St.getAttribute("data-action")||"",gt=St.getAttribute("data-nodeid")||"",ut=h[gt];if(mt==="search"&&ut!=null){const At=E[ut]&&E[ut].name||"";At&&(t("searchTag",At),$a.info(`${Wt("search")}: ${At}`)),j()}else if(mt==="filter"&&ut!=null){const At=E[ut]&&E[ut].layerName||"__all__",Ht=E[ut]&&E[ut].name||"",ne=String(E[ut]&&E[ut].id||gt),ie=String(E[ut]&&E[ut].metadata&&E[ut].metadata.type||"");d.value=At||"__all__",p.value=Ht,L(ne,String(At||"__all__"),String(Ht||""),ie),j()}else if(mt==="openCluster"&&ut!=null){const At=E[ut]&&E[ut].metadata||{},Ht=At.paths||[],ne=E[ut]&&E[ut].name||"",ie=Number(At.image_count||Ht.length||0);Ht&&Ht.length?t("openCluster",{title:ne,paths:Ht,size:ie}):$a.warning("No images found in this cluster"),j()}else mt==="close"&&j();q.preventDefault(),q.stopPropagation();return}if((Z=it.closest)==null?void 0:Z.call(it,".iib-tg-tip"))return;(((K=s.value)==null?void 0:K.contains(it))??!1)||j()},document.addEventListener("click",c,!0)};return fs(()=>e.folders,()=>{C()},{immediate:!0}),fs([o,s],()=>{o.value&&s.value&&Ch(()=>{R()})}),zA(()=>{f=()=>{u&&u.resize()},window.addEventListener("resize",f),v=()=>{m.value=!!document.fullscreenElement,Ch(()=>{u==null||u.resize()})},document.addEventListener("fullscreenchange",v)}),UR(()=>{f&&(window.removeEventListener("resize",f),f=null),v&&(document.removeEventListener("fullscreenchange",v),v=null),c&&(document.removeEventListener("click",c,!0),c=null),u&&u.dispose()}),(P,O)=>{const E=ZA,B=GA,V=qA,H=RE,W=FA,X=HA,j=XA,q=WA;return Kt(),Re("div",{ref_key:"fullscreenRef",ref:l,class:"tag-hierarchy-graph"},[a.value?(Kt(),Re("div",set,[_t(E,{size:"large"}),Ct("div",uet,Bt(Ae(Wt)("tagGraphGenerating")),1)])):n.value?(Kt(),Re("div",fet,[_t(B,{type:"error",message:n.value,"show-icon":""},null,8,["message"])])):i.value?(Kt(),Re("div",cet,[Ct("div",vet,[Ct("div",het,[_t(H,null,{default:se(()=>[_t(V,null,{default:se(()=>{var it,St;return[Ke(Bt(Ae(Wt)("tagGraphStatLayers"))+": "+Bt(((St=(it=o.value)==null?void 0:it.layers)==null?void 0:St.length)??0),1)]}),_:1}),_t(V,null,{default:se(()=>[Ke(Bt(Ae(Wt)("tagGraphStatNodes"))+": "+Bt(b.value),1)]),_:1}),_t(V,null,{default:se(()=>[Ke(Bt(Ae(Wt)("tagGraphStatLinks"))+": "+Bt(x.value),1)]),_:1})]),_:1}),det,_t(H,{size:8},{default:se(()=>[_t(W,{value:d.value,"onUpdate:value":O[0]||(O[0]=it=>d.value=it),options:S.value,style:{width:"140px"},getPopupContainer:it=>it.parentElement||it},null,8,["value","options","getPopupContainer"]),_t(X,{value:p.value,"onUpdate:value":O[1]||(O[1]=it=>p.value=it),style:{width:"200px"},"allow-clear":"",placeholder:Ae(Wt)("tagGraphFilterPlaceholder"),onKeydown:VA(I,["enter"])},null,8,["value","placeholder","onKeydown"]),_t(j,{value:g.value,"onUpdate:value":O[2]||(O[2]=it=>g.value=it),size:"small",min:1,max:20,step:1,style:{width:"92px"},title:Ae(Wt)("tagGraphFilterHopsTitle")},null,8,["value","title"]),_t(q,{size:"small",onClick:I},{default:se(()=>[Ke(Bt(Ae(Wt)("tagGraphFilterApply")),1)]),_:1}),_t(q,{size:"small",onClick:k},{default:se(()=>[Ke(Bt(Ae(Wt)("tagGraphFilterReset")),1)]),_:1}),_t(q,{size:"small",title:m.value?Ae(Wt)("exitFullscreen"):Ae(Wt)("fullscreen"),onClick:_},{default:se(()=>[m.value?(Kt(),pa(Ae(YR),{key:0})):(Kt(),pa(Ae(ZR),{key:1}))]),_:1},8,["title"])]),_:1})])]),Ct("div",{ref_key:"chartRef",ref:s,class:"chart-container"},null,512)])):vr("",!0)],512)}}});const get=YA(pet,[["__scopeId","data-v-1071c65c"]]),Hr=r=>($A("data-v-174295e7"),r=r(),UA(),r),yet={class:"topic-search"},met={class:"toolbar"},_et={class:"left"},xet={class:"title"},bet=Hr(()=>Ct("span",{class:"icon"},"🧠",-1)),wet={class:"right"},Tet={key:0,style:{opacity:"0.75"}},Cet={class:"label"},Aet={class:"label"},Met={style:{display:"grid",gap:"6px"}},Det=Hr(()=>Ct("span",{style:{"margin-right":"6px"}},"🔑",-1)),Let={key:0},Iet=Hr(()=>Ct("span",{style:{"margin-right":"6px"}},"🧩",-1)),Pet=Hr(()=>Ct("span",{style:{"margin-right":"6px"}},"🐍",-1)),ket={style:{opacity:"0.85"}},Ret=Hr(()=>Ct("span",{style:{"margin-right":"6px"}},"💻",-1)),Eet={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap"}},Oet={style:{opacity:"0.85"}},Net={key:3,style:{margin:"10px 0 0 0"}},Bet={style:{"margin-top":"10px",display:"flex","align-items":"center",gap:"8px"}},zet=Hr(()=>Ct("span",{style:{"font-size":"13px",color:"#666"}},"View:",-1)),Vet={key:4},Get={key:0,style:{"margin-top":"10px"}},Fet={key:1,class:"grid"},Het=["onClick"],Wet={class:"card-top"},$et={class:"card-title line-clamp-1"},Uet={class:"card-count"},Yet={class:"card-desc line-clamp-2"},Zet={key:2,class:"empty"},Xet={class:"guide"},qet={class:"guide-row"},Ket=Hr(()=>Ct("span",{class:"guide-icon"},"🗂️",-1)),jet={class:"guide-text"},Jet={class:"guide-row"},Qet=Hr(()=>Ct("span",{class:"guide-icon"},"🧠",-1)),trt={class:"guide-text"},ert={class:"guide-row"},rrt=Hr(()=>Ct("span",{class:"guide-icon"},"🔎",-1)),art={class:"guide-text"},nrt={class:"guide-row"},irt=Hr(()=>Ct("span",{class:"guide-icon"},"✨",-1)),ort={class:"guide-text"},srt={class:"guide-row"},lrt=Hr(()=>Ct("span",{class:"guide-icon"},"🚀",-1)),urt={class:"guide-text"},frt={class:"guide-hint"},crt=Hr(()=>Ct("span",{class:"guide-icon"},"💡",-1)),vrt={key:0,class:"guide-text"},hrt={key:1,class:"guide-text"},drt={key:5,style:{height:"calc(100vh - 300px)","min-height":"600px"}},prt="iib_topic_search_hide_requirements_v1",eg="topic_search_scope",grt=Kn({__name:"TopicSearch",props:{tabIdx:{},paneIdx:{}},setup(r){const t=r,e=qR(),a=$t(!1),n=$t(.9),i=$t(2),o=$t(null),s=$t(null),l=$t(!1),u=KR(prt,!0),f=()=>{u.value=!1},c=$t(null),v=$t("");let h=null;const d=zt(()=>{var F;const N=(F=c.value)==null?void 0:F.status;return N==="queued"||N==="running"}),p=zt(()=>{var F;const N=String(((F=c.value)==null?void 0:F.stage)||"");return!N||N==="queued"||N==="init"?Wt("topicSearchJobQueued"):N==="embedding"?Wt("topicSearchJobStageEmbedding"):N==="clustering"?Wt("topicSearchJobStageClustering"):N==="titling"?Wt("topicSearchJobStageTitling"):N==="done"?Wt("topicSearchJobStageDone"):N==="error"?Wt("topicSearchJobStageError"):`${Wt("topicSearchJobStage")}: ${N}`}),g=zt(()=>{var mt;const N=(mt=c.value)==null?void 0:mt.progress;if(!N)return 0;const F=Number(N.to_embed??0),Z=Number(N.embedded_done??0);if(F<=0)return 0;const K=Math.floor(Z/F*100);return Math.max(0,Math.min(100,K))}),y=zt(()=>{var F,Z,K,mt;const N=(F=c.value)==null?void 0:F.progress;if(!N)return"";if(((Z=c.value)==null?void 0:Z.stage)==="embedding"){const gt=Number(N.embedded_done??0),ut=Number(N.to_embed??0),At=Number(N.scanned??0),Ht=String(N.folder??"");return Wt("topicSearchJobEmbeddingDesc",[gt,ut,At,Ht])}if(((K=c.value)==null?void 0:K.stage)==="clustering"){const gt=Number(N.items_done??0),ut=Number(N.items_total??0);return Wt("topicSearchJobClusteringDesc",[gt,ut])}if(((mt=c.value)==null?void 0:mt.stage)==="titling"){const gt=Number(N.clusters_done??0),ut=Number(N.clusters_total??0);return Wt("topicSearchJobTitlingDesc",[gt,ut])}return""}),m=$t(""),_=$t(!1),S=$t(null),b=$t("clusters"),x=$t(!1),w=$t([]),T=$t(!1),C=$t(!1);let M=null,D="";const I=zt(()=>(e.quickMovePaths??[]).filter(F=>{const Z=String((F==null?void 0:F.key)??"");return((F==null?void 0:F.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(Z)}).map(F=>String((F==null?void 0:F.dir)??"")).filter(Boolean));fs(I,N=>{N!=null&&N.length&&(w.value=(w.value??[]).filter(F=>!N.includes(F)))},{immediate:!0});const L=zt(()=>(e.quickMovePaths??[]).filter(F=>{const Z=String((F==null?void 0:F.key)??"");return!(((F==null?void 0:F.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(Z))}).map(F=>({value:F.dir,label:F.zh||F.dir}))),k=zt(()=>(w.value??[]).filter(Boolean).length),R=zt(()=>(w.value??[]).filter(Boolean)),P=zt(()=>{var N;return((N=o.value)==null?void 0:N.clusters)??[]}),O=async()=>{var Z,K,mt;if(T.value)return;try{const gt=await tE();e.conf=gt}catch{}const N=((Z=e.conf)==null?void 0:Z.app_fe_setting)||{},F=(K=N==null?void 0:N[eg])==null?void 0:K.folder_paths;Array.isArray(F)&&F.length&&!((mt=w.value)!=null&&mt.length)&&(w.value=F.map(gt=>String(gt)).filter(Boolean)),T.value=!0},E=async()=>{var F,Z;if((F=e.conf)!=null&&F.is_readonly||!T.value)return;const N={folder_paths:R.value,updated_at:Date.now()};await eE(eg,N),(Z=e.conf)!=null&&Z.app_fe_setting&&(e.conf.app_fe_setting[eg]=N)},B=()=>{var F;if((F=e.conf)!=null&&F.is_readonly||!T.value)return;const N=JSON.stringify(R.value);N!==D&&(M&&clearTimeout(M),M=setTimeout(async()=>{C.value=!0;try{await E(),D=N}finally{C.value=!1}},500))},V=()=>{h&&(clearInterval(h),h=null)},H=async()=>{const N=v.value;if(!N)return;const F=await sE(N);c.value=F,F.status==="done"?(V(),a.value=!1,F.result&&(o.value=F.result),s.value=null):F.status==="error"&&(V(),a.value=!1,$a.error(F.error||Wt("topicSearchJobFailed")))},W=async()=>{if(k.value)try{const N=await rE({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:R.value});s.value=N,N.cache_hit&&N.result&&(o.value=N.result)}catch{}},X=async()=>{var N;if(!((N=e.conf)!=null&&N.is_readonly)){if(!k.value){$a.warning(Wt("topicSearchNeedScope")),x.value=!0;return}V(),a.value=!0,c.value=null,v.value="";try{await aE();const F=await nE({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:R.value});v.value=F.job_id,await H(),h=setInterval(()=>{H()},800)}catch(F){throw a.value=!1,F}}},j=async()=>{const N=(m.value||"").trim();if(N&&!_.value){if(!k.value){$a.warning(Wt("topicSearchNeedScope")),x.value=!0;return}_.value=!0;try{S.value=await iE({query:N,top_k:80,ensure_embed:!l.value,folder_paths:R.value}),l.value||(l.value=!0),q()}finally{_.value=!1}}},q=()=>{var mt;const N=(((mt=S.value)==null?void 0:mt.results)??[]).map(gt=>gt.path).filter(Boolean);if(!N.length)return;const F=`Query: ${m.value.trim()}(${N.length})`,Z={type:"topic-search-matched-image-grid",name:F,key:Date.now()+Ao(),id:Ao(),title:F,paths:N},K=e.tabList[t.tabIdx];K.panes.push(Z),K.key=Z.key},it=N=>{const F={type:"topic-search-matched-image-grid",name:`${N.title}(${N.size})`,key:Date.now()+Ao(),id:Ao(),title:N.title,paths:N.paths},Z=e.tabList[t.tabIdx];Z.panes.push(F),Z.key=F.key},St=N=>{const F={type:"topic-search-matched-image-grid",name:`${N.title}(${N.size})`,key:Date.now()+Ao(),id:Ao(),title:N.title,paths:N.paths},Z=e.tabList[t.tabIdx];Z.panes.push(F),Z.key=F.key},at=N=>{m.value=N,j()};return zA(()=>{(async()=>(await O(),k.value&&await W()))()}),jR(()=>{V()}),fs(R,()=>{l.value=!1},{deep:!0}),fs(()=>R.value,()=>{B()},{deep:!0}),(N,F)=>{var wr,ia,V_,G_,F_,H_;const Z=qA,K=WA,mt=HA,gt=XA,ut=GA,At=DE,Ht=uE,ne=ZA,ie=FA,fr=oE;return Kt(),Re("div",yet,[Ct("div",met,[Ct("div",_et,[Ct("div",xet,[bet,Ct("span",null,Bt(N.$t("topicSearchTitleExperimental")),1)]),o.value?(Kt(),pa(Z,{key:0,color:"blue"},{default:se(()=>[Ke("共 "+Bt(o.value.count)+" 张",1)]),_:1})):vr("",!0),o.value?(Kt(),pa(Z,{key:1,color:"geekblue"},{default:se(()=>[Ke("主题 "+Bt(o.value.clusters.length),1)]),_:1})):vr("",!0),o.value?(Kt(),pa(Z,{key:2,color:"default"},{default:se(()=>[Ke("噪声 "+Bt(o.value.noise.length),1)]),_:1})):vr("",!0)]),Ct("div",wet,[_t(K,{onClick:F[0]||(F[0]=ve=>x.value=!0)},{default:se(()=>[Ke(Bt(N.$t("topicSearchScope"))+" ",1),k.value?(Kt(),Re("span",Tet,"("+Bt(k.value)+")",1)):vr("",!0)]),_:1}),_t(mt,{value:m.value,"onUpdate:value":F[1]||(F[1]=ve=>m.value=ve),style:{width:"min(420px, 72vw)"},placeholder:N.$t("topicSearchQueryPlaceholder"),disabled:_.value,onKeydown:VA(j,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),_t(K,{loading:_.value,onClick:j},{default:se(()=>[Ke(Bt(N.$t("search")),1)]),_:1},8,["loading"]),(ia=(wr=S.value)==null?void 0:wr.results)!=null&&ia.length?(Kt(),pa(K,{key:0,onClick:q},{default:se(()=>[Ke(Bt(N.$t("topicSearchOpenResults")),1)]),_:1})):vr("",!0),Ct("span",Cet,Bt(N.$t("topicSearchThreshold")),1),_t(gt,{value:n.value,"onUpdate:value":F[2]||(F[2]=ve=>n.value=ve),min:.5,max:.99,step:.01},null,8,["value"]),Ct("span",Aet,Bt(N.$t("topicSearchMinClusterSize")),1),_t(gt,{value:i.value,"onUpdate:value":F[3]||(F[3]=ve=>i.value=ve),min:1,max:50,step:1},null,8,["value"]),_t(K,{type:"primary",ghost:"",loading:a.value,disabled:(V_=Ae(e).conf)==null?void 0:V_.is_readonly,onClick:X},{default:se(()=>[Ke(Bt(N.$t("refresh")),1)]),_:1},8,["loading","disabled"])])]),(G_=Ae(e).conf)!=null&&G_.is_readonly?(Kt(),pa(ut,{key:0,type:"warning",message:N.$t("readonlyModeSettingPageDesc"),style:{margin:"12px 0"},"show-icon":""},null,8,["message"])):vr("",!0),Ae(u)?(Kt(),pa(ut,{key:1,type:"info","show-icon":"",closable:"",style:{margin:"10px 0 0 0"},message:N.$t("topicSearchRequirementsTitle"),onClose:f},{description:se(()=>[Ct("div",Met,[Ct("div",null,[Det,Ct("span",null,Bt(N.$t("topicSearchRequirementsOpenai")),1)]),Ae(JR)?(Kt(),Re("div",Let,[Iet,Ct("span",null,Bt(N.$t("topicSearchRequirementsDepsDesktop")),1)])):(Kt(),Re(Lc,{key:1},[Ct("div",null,[Pet,Ct("span",null,Bt(N.$t("topicSearchRequirementsDepsPython")),1)]),Ct("div",ket,[Ret,Ct("span",null,Bt(N.$t("topicSearchRequirementsInstallCmd")),1)])],64))])]),_:1},8,["message"])):vr("",!0),(F_=s.value)!=null&&F_.cache_hit&&((H_=s.value)!=null&&H_.stale)?(Kt(),pa(ut,{key:2,type:"warning","show-icon":"",style:{margin:"10px 0 0 0"},message:N.$t("topicSearchCacheStale")},{description:se(()=>{var ve;return[Ct("div",Eet,[Ct("span",Oet,Bt(N.$t("topicSearchCacheStaleDesc")),1),_t(K,{size:"small",loading:a.value||d.value,disabled:(ve=Ae(e).conf)==null?void 0:ve.is_readonly,onClick:X},{default:se(()=>[Ke(Bt(N.$t("topicSearchCacheUpdate")),1)]),_:1},8,["loading","disabled"])])]}),_:1},8,["message"])):vr("",!0),d.value?(Kt(),Re("div",Net,[_t(ut,{type:"info","show-icon":"",message:p.value,description:y.value},null,8,["message","description"]),_t(At,{percent:g.value,size:"small",style:{"margin-top":"8px"}},null,8,["percent"])])):vr("",!0),Ct("div",Bet,[zet,_t(Ht,{checked:b.value,"onUpdate:checked":F[4]||(F[4]=ve=>b.value=ve),"checked-value":"graph","un-checked-value":"clusters","checked-children":"Tag Graph","un-checked-children":"Clusters"},null,8,["checked"])]),b.value==="clusters"?(Kt(),Re("div",Vet,[_t(ne,{spinning:a.value},{default:se(()=>{var ve;return[S.value?(Kt(),Re("div",Get,[_t(ut,{type:"info",message:N.$t("topicSearchRecallMsg",[S.value.results.length,S.value.count,S.value.top_k]),"show-icon":""},null,8,["message"])])):vr("",!0),P.value.length?(Kt(),Re("div",Fet,[(Kt(!0),Re(Lc,null,QR(P.value,Co=>(Kt(),Re("div",{class:"card",key:Co.id,onClick:yrt=>it(Co)},[Ct("div",Wet,[Ct("div",$et,Bt(Co.title),1),Ct("div",Uet,Bt(Co.size),1)]),Ct("div",Yet,Bt(Co.sample_prompt),1)],8,Het))),128))])):(Kt(),Re("div",Zet,[_t(ut,{type:"info","show-icon":"",message:N.$t("topicSearchGuideTitle"),style:{"margin-bottom":"10px"}},null,8,["message"]),Ct("div",Xet,[Ct("div",qet,[Ket,Ct("span",jet,Bt(N.$t("topicSearchGuideStep1")),1),_t(K,{size:"small",onClick:F[5]||(F[5]=Co=>x.value=!0)},{default:se(()=>[Ke(Bt(N.$t("topicSearchScope")),1)]),_:1})]),Ct("div",Jet,[Qet,Ct("span",trt,Bt(N.$t("topicSearchGuideStep2")),1),_t(K,{size:"small",loading:a.value,disabled:(ve=Ae(e).conf)==null?void 0:ve.is_readonly,onClick:X},{default:se(()=>[Ke(Bt(N.$t("refresh")),1)]),_:1},8,["loading","disabled"])]),Ct("div",ert,[rrt,Ct("span",art,Bt(N.$t("topicSearchGuideStep3")),1)]),Ct("div",nrt,[irt,Ct("span",ort,Bt(N.$t("topicSearchGuideAdvantage1")),1)]),Ct("div",srt,[lrt,Ct("span",urt,Bt(N.$t("topicSearchGuideAdvantage2")),1)]),Ct("div",frt,[crt,k.value?(Kt(),Re("span",hrt,Bt(N.$t("topicSearchGuideEmptyReasonNoTopics")),1)):(Kt(),Re("span",vrt,Bt(N.$t("topicSearchGuideEmptyReasonNoScope")),1))])])]))]}),_:1},8,["spinning"])])):b.value==="graph"?(Kt(),Re("div",drt,[_t(get,{folders:R.value,lang:Ae(e).lang,onSearchTag:at,onOpenCluster:St},null,8,["folders","lang"])])):vr("",!0),_t(fr,{visible:x.value,"onUpdate:visible":F[7]||(F[7]=ve=>x.value=ve),title:N.$t("topicSearchScopeModalTitle"),"mask-closable":!0,onOk:F[8]||(F[8]=()=>{x.value=!1,E()})},{default:se(()=>[_t(ut,{type:"info","show-icon":"",message:N.$t("topicSearchScopeTip"),style:{"margin-bottom":"10px"}},null,8,["message"]),C.value?(Kt(),pa(ut,{key:0,type:"info","show-icon":"",message:N.$t("topicSearchSavingToBackend"),style:{"margin-bottom":"10px"}},null,8,["message"])):vr("",!0),_t(ie,{value:w.value,"onUpdate:value":F[6]||(F[6]=ve=>w.value=ve),mode:"multiple",style:{width:"100%"},options:L.value,placeholder:N.$t("topicSearchScopePlaceholder"),"max-tag-count":3,getPopupContainer:ve=>ve.parentElement||ve,"allow-clear":""},null,8,["value","options","placeholder","getPopupContainer"])]),_:1},8,["visible","title"])])}}});const Crt=YA(grt,[["__scopeId","data-v-174295e7"]]);export{Crt as default}; + `}return""}},legend:[{data:W.map(q=>q.name),orient:"vertical",right:10,bottom:10,textStyle:{color:"#fff"}}],series:[{type:"graph",layout:"none",data:E,links:H,categories:W,roam:!0,scaleLimit:{min:.2,max:5},draggable:!1,blur:{itemStyle:{opacity:.15},lineStyle:{opacity:.08},label:{opacity:.25}},label:{show:!0,position:"inside"},lineStyle:{color:"source",curveness:.1},emphasis:{focus:"adjacency",lineStyle:{width:3}},zoom:1}]};u.setOption(X);const K=()=>{u&&u.dispatchAction({type:"hideTip"})};u.on("click",q=>{var it,St,at;if(q.dataType==="node"){const N=q.data;if(((it=N.metadata)==null?void 0:it.type)==="tag"){const F=h[String(N.id||"")];F!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:F}))}else if(((St=N.metadata)==null?void 0:St.type)==="cluster"){const F=h[String(N.id||"")];F!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:F}))}else if(((at=N.metadata)==null?void 0:at.type)==="abstract"){const F=h[String(N.id||"")];F!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:F}))}else Xr.info(`Abstract category: ${q.name}`)}}),u.getZr().on("click",q=>{q!=null&&q.target||K()}),c&&(document.removeEventListener("click",c,!0),c=null),c=q=>{var F,Z,j,_t,pt;const it=q.target;if(!it)return;const St=(F=it.closest)==null?void 0:F.call(it,"button[data-action]");if(St){const mt=St.getAttribute("data-action")||"",Pt=St.getAttribute("data-nodeid")||"",Lt=h[Pt];if(mt==="search"&&Lt!=null){const qt=E[Lt]&&E[Lt].name||"";qt&&(t("searchTag",qt),Xr.info(`${Wt("search")}: ${qt}`)),K()}else if(mt==="filter"&&Lt!=null){const qt=E[Lt]&&E[Lt].layerName||"__all__",ie=E[Lt]&&E[Lt].name||"",Be=String(E[Lt]&&E[Lt].id||Pt),ze=String(E[Lt]&&E[Lt].metadata&&E[Lt].metadata.type||"");d.value=qt||"__all__",p.value=ie,L(Be,String(qt||"__all__"),String(ie||""),ze),K()}else if(mt==="openCluster"&&Lt!=null){const qt=E[Lt]&&E[Lt].metadata||{},ie=E[Lt]&&E[Lt].name||"",Be=Number(qt.image_count||0),ze=String(((j=(Z=o.value)==null?void 0:Z.stats)==null?void 0:j.topic_cluster_cache_key)||""),vr=String(qt.cluster_id||"");if(!ze||!vr){Xr.warning("Cluster data is incomplete, please re-generate clustering result"),K();return}(async()=>{const Ao=Xr.loading("Loading cluster images...",0);try{const ei=await qR({topic_cluster_cache_key:ze,cluster_id:vr}),Mo=Array.isArray(ei==null?void 0:ei.paths)?ei.paths:[];Mo.length?t("openCluster",{title:ie,paths:Mo,size:Be||Mo.length}):Xr.warning("No images found in this cluster"),K()}finally{Ao==null||Ao()}})()}else mt==="close"&&K();q.preventDefault(),q.stopPropagation();return}if((_t=it.closest)==null?void 0:_t.call(it,".iib-tg-tip"))return;(((pt=s.value)==null?void 0:pt.contains(it))??!1)||K()},document.addEventListener("click",c,!0)};return hs(()=>e.folders,()=>{C()},{immediate:!0}),hs([o,s],()=>{o.value&&s.value&&Dh(()=>{R()})}),zA(()=>{f=()=>{u&&u.resize()},window.addEventListener("resize",f),v=()=>{m.value=!!document.fullscreenElement,Dh(()=>{u==null||u.resize()})},document.addEventListener("fullscreenchange",v)}),UR(()=>{f&&(window.removeEventListener("resize",f),f=null),v&&(document.removeEventListener("fullscreenchange",v),v=null),c&&(document.removeEventListener("click",c,!0),c=null),u&&u.dispose()}),(P,O)=>{const E=ZA,B=GA,V=qA,H=EE,W=FA,X=HA,K=XA,q=WA;return jt(),Re("div",{ref_key:"fullscreenRef",ref:l,class:"tag-hierarchy-graph"},[a.value?(jt(),Re("div",uet,[yt(E,{size:"large"}),Ct("div",fet,zt(Ae(Wt)("tagGraphGenerating")),1)])):n.value?(jt(),Re("div",cet,[yt(B,{type:"error",message:n.value,"show-icon":""},null,8,["message"])])):i.value?(jt(),Re("div",vet,[Ct("div",het,[Ct("div",det,[yt(H,null,{default:se(()=>[yt(V,null,{default:se(()=>{var it,St;return[Je(zt(Ae(Wt)("tagGraphStatLayers"))+": "+zt(((St=(it=o.value)==null?void 0:it.layers)==null?void 0:St.length)??0),1)]}),_:1}),yt(V,null,{default:se(()=>[Je(zt(Ae(Wt)("tagGraphStatNodes"))+": "+zt(b.value),1)]),_:1}),yt(V,null,{default:se(()=>[Je(zt(Ae(Wt)("tagGraphStatLinks"))+": "+zt(x.value),1)]),_:1})]),_:1}),pet,yt(H,{size:8},{default:se(()=>[yt(W,{value:d.value,"onUpdate:value":O[0]||(O[0]=it=>d.value=it),options:S.value,style:{width:"140px"},getPopupContainer:it=>it.parentElement||it},null,8,["value","options","getPopupContainer"]),yt(X,{value:p.value,"onUpdate:value":O[1]||(O[1]=it=>p.value=it),style:{width:"200px"},"allow-clear":"",placeholder:Ae(Wt)("tagGraphFilterPlaceholder"),onKeydown:VA(I,["enter"])},null,8,["value","placeholder","onKeydown"]),yt(K,{value:g.value,"onUpdate:value":O[2]||(O[2]=it=>g.value=it),size:"small",min:1,max:20,step:1,style:{width:"92px"},title:Ae(Wt)("tagGraphFilterHopsTitle")},null,8,["value","title"]),yt(q,{size:"small",onClick:I},{default:se(()=>[Je(zt(Ae(Wt)("tagGraphFilterApply")),1)]),_:1}),yt(q,{size:"small",onClick:k},{default:se(()=>[Je(zt(Ae(Wt)("tagGraphFilterReset")),1)]),_:1}),yt(q,{size:"small",title:m.value?Ae(Wt)("exitFullscreen"):Ae(Wt)("fullscreen"),onClick:_},{default:se(()=>[m.value?(jt(),ga(Ae(YR),{key:0})):(jt(),ga(Ae(ZR),{key:1}))]),_:1},8,["title"])]),_:1})])]),Ct("div",{ref_key:"chartRef",ref:s,class:"chart-container"},null,512)])):dr("",!0)],512)}}});const yet=YA(get,[["__scopeId","data-v-4ad8ae8c"]]),Wr=r=>($A("data-v-174295e7"),r=r(),UA(),r),met={class:"topic-search"},_et={class:"toolbar"},xet={class:"left"},bet={class:"title"},wet=Wr(()=>Ct("span",{class:"icon"},"🧠",-1)),Tet={class:"right"},Cet={key:0,style:{opacity:"0.75"}},Aet={class:"label"},Met={class:"label"},Det={style:{display:"grid",gap:"6px"}},Let=Wr(()=>Ct("span",{style:{"margin-right":"6px"}},"🔑",-1)),Iet={key:0},Pet=Wr(()=>Ct("span",{style:{"margin-right":"6px"}},"🧩",-1)),ket=Wr(()=>Ct("span",{style:{"margin-right":"6px"}},"🐍",-1)),Ret={style:{opacity:"0.85"}},Eet=Wr(()=>Ct("span",{style:{"margin-right":"6px"}},"💻",-1)),Oet={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap"}},Net={style:{opacity:"0.85"}},Bet={key:3,style:{margin:"10px 0 0 0"}},zet={style:{"margin-top":"10px",display:"flex","align-items":"center",gap:"8px"}},Vet=Wr(()=>Ct("span",{style:{"font-size":"13px",color:"#666"}},"View:",-1)),Get={key:4},Fet={key:0,style:{"margin-top":"10px"}},Het={key:1,class:"grid"},Wet=["onClick"],$et={class:"card-top"},Uet={class:"card-title line-clamp-1"},Yet={class:"card-count"},Zet={class:"card-desc line-clamp-2"},Xet={key:2,class:"empty"},qet={class:"guide"},Ket={class:"guide-row"},jet=Wr(()=>Ct("span",{class:"guide-icon"},"🗂️",-1)),Jet={class:"guide-text"},Qet={class:"guide-row"},trt=Wr(()=>Ct("span",{class:"guide-icon"},"🧠",-1)),ert={class:"guide-text"},rrt={class:"guide-row"},art=Wr(()=>Ct("span",{class:"guide-icon"},"🔎",-1)),nrt={class:"guide-text"},irt={class:"guide-row"},ort=Wr(()=>Ct("span",{class:"guide-icon"},"✨",-1)),srt={class:"guide-text"},lrt={class:"guide-row"},urt=Wr(()=>Ct("span",{class:"guide-icon"},"🚀",-1)),frt={class:"guide-text"},crt={class:"guide-hint"},vrt=Wr(()=>Ct("span",{class:"guide-icon"},"💡",-1)),hrt={key:0,class:"guide-text"},drt={key:1,class:"guide-text"},prt={key:5,style:{height:"calc(100vh - 300px)","min-height":"600px"}},grt="iib_topic_search_hide_requirements_v1",ng="topic_search_scope",yrt=Kn({__name:"TopicSearch",props:{tabIdx:{},paneIdx:{}},setup(r){const t=r,e=KR(),a=$t(!1),n=$t(.9),i=$t(2),o=$t(null),s=$t(null),l=$t(!1),u=jR(grt,!0),f=()=>{u.value=!1},c=$t(null),v=$t("");let h=null;const d=Vt(()=>{var F;const N=(F=c.value)==null?void 0:F.status;return N==="queued"||N==="running"}),p=Vt(()=>{var F;const N=String(((F=c.value)==null?void 0:F.stage)||"");return!N||N==="queued"||N==="init"?Wt("topicSearchJobQueued"):N==="embedding"?Wt("topicSearchJobStageEmbedding"):N==="clustering"?Wt("topicSearchJobStageClustering"):N==="titling"?Wt("topicSearchJobStageTitling"):N==="done"?Wt("topicSearchJobStageDone"):N==="error"?Wt("topicSearchJobStageError"):`${Wt("topicSearchJobStage")}: ${N}`}),g=Vt(()=>{var _t;const N=(_t=c.value)==null?void 0:_t.progress;if(!N)return 0;const F=Number(N.to_embed??0),Z=Number(N.embedded_done??0);if(F<=0)return 0;const j=Math.floor(Z/F*100);return Math.max(0,Math.min(100,j))}),y=Vt(()=>{var F,Z,j,_t;const N=(F=c.value)==null?void 0:F.progress;if(!N)return"";if(((Z=c.value)==null?void 0:Z.stage)==="embedding"){const pt=Number(N.embedded_done??0),mt=Number(N.to_embed??0),Pt=Number(N.scanned??0),Lt=String(N.folder??"");return Wt("topicSearchJobEmbeddingDesc",[pt,mt,Pt,Lt])}if(((j=c.value)==null?void 0:j.stage)==="clustering"){const pt=Number(N.items_done??0),mt=Number(N.items_total??0);return Wt("topicSearchJobClusteringDesc",[pt,mt])}if(((_t=c.value)==null?void 0:_t.stage)==="titling"){const pt=Number(N.clusters_done??0),mt=Number(N.clusters_total??0);return Wt("topicSearchJobTitlingDesc",[pt,mt])}return""}),m=$t(""),_=$t(!1),S=$t(null),b=$t("clusters"),x=$t(!1),w=$t([]),T=$t(!1),C=$t(!1);let M=null,D="";const I=Vt(()=>(e.quickMovePaths??[]).filter(F=>{const Z=String((F==null?void 0:F.key)??"");return((F==null?void 0:F.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(Z)}).map(F=>String((F==null?void 0:F.dir)??"")).filter(Boolean));hs(I,N=>{N!=null&&N.length&&(w.value=(w.value??[]).filter(F=>!N.includes(F)))},{immediate:!0});const L=Vt(()=>(e.quickMovePaths??[]).filter(F=>{const Z=String((F==null?void 0:F.key)??"");return!(((F==null?void 0:F.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(Z))}).map(F=>({value:F.dir,label:F.zh||F.dir}))),k=Vt(()=>(w.value??[]).filter(Boolean).length),R=Vt(()=>(w.value??[]).filter(Boolean)),P=Vt(()=>{var N;return((N=o.value)==null?void 0:N.clusters)??[]}),O=async()=>{var Z,j,_t;if(T.value)return;try{const pt=await eE();e.conf=pt}catch{}const N=((Z=e.conf)==null?void 0:Z.app_fe_setting)||{},F=(j=N==null?void 0:N[ng])==null?void 0:j.folder_paths;Array.isArray(F)&&F.length&&!((_t=w.value)!=null&&_t.length)&&(w.value=F.map(pt=>String(pt)).filter(Boolean)),T.value=!0},E=async()=>{var F,Z;if((F=e.conf)!=null&&F.is_readonly||!T.value)return;const N={folder_paths:R.value,updated_at:Date.now()};await rE(ng,N),(Z=e.conf)!=null&&Z.app_fe_setting&&(e.conf.app_fe_setting[ng]=N)},B=()=>{var F;if((F=e.conf)!=null&&F.is_readonly||!T.value)return;const N=JSON.stringify(R.value);N!==D&&(M&&clearTimeout(M),M=setTimeout(async()=>{C.value=!0;try{await E(),D=N}finally{C.value=!1}},500))},V=()=>{h&&(clearInterval(h),h=null)},H=async()=>{const N=v.value;if(!N)return;const F=await lE(N);c.value=F,F.status==="done"?(V(),a.value=!1,F.result&&(o.value=F.result),s.value=null):F.status==="error"&&(V(),a.value=!1,Xr.error(F.error||Wt("topicSearchJobFailed")))},W=async()=>{if(k.value)try{const N=await aE({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:R.value});s.value=N,N.cache_hit&&N.result&&(o.value=N.result)}catch{}},X=async()=>{var N;if(!((N=e.conf)!=null&&N.is_readonly)){if(!k.value){Xr.warning(Wt("topicSearchNeedScope")),x.value=!0;return}V(),a.value=!0,c.value=null,v.value="";try{await nE();const F=await iE({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:R.value});v.value=F.job_id,await H(),h=setInterval(()=>{H()},800)}catch(F){throw a.value=!1,F}}},K=async()=>{const N=(m.value||"").trim();if(N&&!_.value){if(!k.value){Xr.warning(Wt("topicSearchNeedScope")),x.value=!0;return}_.value=!0;try{S.value=await oE({query:N,top_k:80,ensure_embed:!l.value,folder_paths:R.value}),l.value||(l.value=!0),q()}finally{_.value=!1}}},q=()=>{var _t;const N=(((_t=S.value)==null?void 0:_t.results)??[]).map(pt=>pt.path).filter(Boolean);if(!N.length)return;const F=`Query: ${m.value.trim()}(${N.length})`,Z={type:"topic-search-matched-image-grid",name:F,key:Date.now()+Lo(),id:Lo(),title:F,paths:N},j=e.tabList[t.tabIdx];j.panes.push(Z),j.key=Z.key},it=N=>{const F={type:"topic-search-matched-image-grid",name:`${N.title}(${N.size})`,key:Date.now()+Lo(),id:Lo(),title:N.title,paths:N.paths},Z=e.tabList[t.tabIdx];Z.panes.push(F),Z.key=F.key},St=N=>{const F={type:"topic-search-matched-image-grid",name:`${N.title}(${N.size})`,key:Date.now()+Lo(),id:Lo(),title:N.title,paths:N.paths},Z=e.tabList[t.tabIdx];Z.panes.push(F),Z.key=F.key},at=N=>{m.value=N,K()};return zA(()=>{(async()=>(await O(),k.value&&await W()))()}),JR(()=>{V()}),hs(R,()=>{l.value=!1},{deep:!0}),hs(()=>R.value,()=>{B()},{deep:!0}),(N,F)=>{var ze,vr,Ao,ei,Mo,H_;const Z=qA,j=WA,_t=HA,pt=XA,mt=GA,Pt=LE,Lt=fE,qt=ZA,ie=FA,Be=sE;return jt(),Re("div",met,[Ct("div",_et,[Ct("div",xet,[Ct("div",bet,[wet,Ct("span",null,zt(N.$t("topicSearchTitleExperimental")),1)]),o.value?(jt(),ga(Z,{key:0,color:"blue"},{default:se(()=>[Je("共 "+zt(o.value.count)+" 张",1)]),_:1})):dr("",!0),o.value?(jt(),ga(Z,{key:1,color:"geekblue"},{default:se(()=>[Je("主题 "+zt(o.value.clusters.length),1)]),_:1})):dr("",!0),o.value?(jt(),ga(Z,{key:2,color:"default"},{default:se(()=>[Je("噪声 "+zt(o.value.noise.length),1)]),_:1})):dr("",!0)]),Ct("div",Tet,[yt(j,{onClick:F[0]||(F[0]=ve=>x.value=!0)},{default:se(()=>[Je(zt(N.$t("topicSearchScope"))+" ",1),k.value?(jt(),Re("span",Cet,"("+zt(k.value)+")",1)):dr("",!0)]),_:1}),yt(_t,{value:m.value,"onUpdate:value":F[1]||(F[1]=ve=>m.value=ve),style:{width:"min(420px, 72vw)"},placeholder:N.$t("topicSearchQueryPlaceholder"),disabled:_.value,onKeydown:VA(K,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),yt(j,{loading:_.value,onClick:K},{default:se(()=>[Je(zt(N.$t("search")),1)]),_:1},8,["loading"]),(vr=(ze=S.value)==null?void 0:ze.results)!=null&&vr.length?(jt(),ga(j,{key:0,onClick:q},{default:se(()=>[Je(zt(N.$t("topicSearchOpenResults")),1)]),_:1})):dr("",!0),Ct("span",Aet,zt(N.$t("topicSearchThreshold")),1),yt(pt,{value:n.value,"onUpdate:value":F[2]||(F[2]=ve=>n.value=ve),min:.5,max:.99,step:.01},null,8,["value"]),Ct("span",Met,zt(N.$t("topicSearchMinClusterSize")),1),yt(pt,{value:i.value,"onUpdate:value":F[3]||(F[3]=ve=>i.value=ve),min:1,max:50,step:1},null,8,["value"]),yt(j,{type:"primary",ghost:"",loading:a.value,disabled:(Ao=Ae(e).conf)==null?void 0:Ao.is_readonly,onClick:X},{default:se(()=>[Je(zt(N.$t("refresh")),1)]),_:1},8,["loading","disabled"])])]),(ei=Ae(e).conf)!=null&&ei.is_readonly?(jt(),ga(mt,{key:0,type:"warning",message:N.$t("readonlyModeSettingPageDesc"),style:{margin:"12px 0"},"show-icon":""},null,8,["message"])):dr("",!0),Ae(u)?(jt(),ga(mt,{key:1,type:"info","show-icon":"",closable:"",style:{margin:"10px 0 0 0"},message:N.$t("topicSearchRequirementsTitle"),onClose:f},{description:se(()=>[Ct("div",Det,[Ct("div",null,[Let,Ct("span",null,zt(N.$t("topicSearchRequirementsOpenai")),1)]),Ae(QR)?(jt(),Re("div",Iet,[Pet,Ct("span",null,zt(N.$t("topicSearchRequirementsDepsDesktop")),1)])):(jt(),Re(kc,{key:1},[Ct("div",null,[ket,Ct("span",null,zt(N.$t("topicSearchRequirementsDepsPython")),1)]),Ct("div",Ret,[Eet,Ct("span",null,zt(N.$t("topicSearchRequirementsInstallCmd")),1)])],64))])]),_:1},8,["message"])):dr("",!0),(Mo=s.value)!=null&&Mo.cache_hit&&((H_=s.value)!=null&&H_.stale)?(jt(),ga(mt,{key:2,type:"warning","show-icon":"",style:{margin:"10px 0 0 0"},message:N.$t("topicSearchCacheStale")},{description:se(()=>{var ve;return[Ct("div",Oet,[Ct("span",Net,zt(N.$t("topicSearchCacheStaleDesc")),1),yt(j,{size:"small",loading:a.value||d.value,disabled:(ve=Ae(e).conf)==null?void 0:ve.is_readonly,onClick:X},{default:se(()=>[Je(zt(N.$t("topicSearchCacheUpdate")),1)]),_:1},8,["loading","disabled"])])]}),_:1},8,["message"])):dr("",!0),d.value?(jt(),Re("div",Bet,[yt(mt,{type:"info","show-icon":"",message:p.value,description:y.value},null,8,["message","description"]),yt(Pt,{percent:g.value,size:"small",style:{"margin-top":"8px"}},null,8,["percent"])])):dr("",!0),Ct("div",zet,[Vet,yt(Lt,{checked:b.value,"onUpdate:checked":F[4]||(F[4]=ve=>b.value=ve),"checked-value":"graph","un-checked-value":"clusters","checked-children":"Tag Graph","un-checked-children":"Clusters"},null,8,["checked"])]),b.value==="clusters"?(jt(),Re("div",Get,[yt(qt,{spinning:a.value},{default:se(()=>{var ve;return[S.value?(jt(),Re("div",Fet,[yt(mt,{type:"info",message:N.$t("topicSearchRecallMsg",[S.value.results.length,S.value.count,S.value.top_k]),"show-icon":""},null,8,["message"])])):dr("",!0),P.value.length?(jt(),Re("div",Het,[(jt(!0),Re(kc,null,tE(P.value,Do=>(jt(),Re("div",{class:"card",key:Do.id,onClick:mrt=>it(Do)},[Ct("div",$et,[Ct("div",Uet,zt(Do.title),1),Ct("div",Yet,zt(Do.size),1)]),Ct("div",Zet,zt(Do.sample_prompt),1)],8,Wet))),128))])):(jt(),Re("div",Xet,[yt(mt,{type:"info","show-icon":"",message:N.$t("topicSearchGuideTitle"),style:{"margin-bottom":"10px"}},null,8,["message"]),Ct("div",qet,[Ct("div",Ket,[jet,Ct("span",Jet,zt(N.$t("topicSearchGuideStep1")),1),yt(j,{size:"small",onClick:F[5]||(F[5]=Do=>x.value=!0)},{default:se(()=>[Je(zt(N.$t("topicSearchScope")),1)]),_:1})]),Ct("div",Qet,[trt,Ct("span",ert,zt(N.$t("topicSearchGuideStep2")),1),yt(j,{size:"small",loading:a.value,disabled:(ve=Ae(e).conf)==null?void 0:ve.is_readonly,onClick:X},{default:se(()=>[Je(zt(N.$t("refresh")),1)]),_:1},8,["loading","disabled"])]),Ct("div",rrt,[art,Ct("span",nrt,zt(N.$t("topicSearchGuideStep3")),1)]),Ct("div",irt,[ort,Ct("span",srt,zt(N.$t("topicSearchGuideAdvantage1")),1)]),Ct("div",lrt,[urt,Ct("span",frt,zt(N.$t("topicSearchGuideAdvantage2")),1)]),Ct("div",crt,[vrt,k.value?(jt(),Re("span",drt,zt(N.$t("topicSearchGuideEmptyReasonNoTopics")),1)):(jt(),Re("span",hrt,zt(N.$t("topicSearchGuideEmptyReasonNoScope")),1))])])]))]}),_:1},8,["spinning"])])):b.value==="graph"?(jt(),Re("div",prt,[yt(yet,{folders:R.value,lang:Ae(e).lang,onSearchTag:at,onOpenCluster:St},null,8,["folders","lang"])])):dr("",!0),yt(Be,{visible:x.value,"onUpdate:visible":F[7]||(F[7]=ve=>x.value=ve),title:N.$t("topicSearchScopeModalTitle"),"mask-closable":!0,onOk:F[8]||(F[8]=()=>{x.value=!1,E()})},{default:se(()=>[yt(mt,{type:"info","show-icon":"",message:N.$t("topicSearchScopeTip"),style:{"margin-bottom":"10px"}},null,8,["message"]),C.value?(jt(),ga(mt,{key:0,type:"info","show-icon":"",message:N.$t("topicSearchSavingToBackend"),style:{"margin-bottom":"10px"}},null,8,["message"])):dr("",!0),yt(ie,{value:w.value,"onUpdate:value":F[6]||(F[6]=ve=>w.value=ve),mode:"multiple",style:{width:"100%"},options:L.value,placeholder:N.$t("topicSearchScopePlaceholder"),"max-tag-count":3,getPopupContainer:ve=>ve.parentElement||ve,"allow-clear":""},null,8,["value","options","placeholder","getPopupContainer"])]),_:1},8,["visible","title"])])}}});const Art=YA(yrt,[["__scopeId","data-v-174295e7"]]);export{Art as default}; diff --git a/vue/dist/assets/_isIterateeCall-7008db8e.js b/vue/dist/assets/_isIterateeCall-e2252db1.js similarity index 68% rename from vue/dist/assets/_isIterateeCall-7008db8e.js rename to vue/dist/assets/_isIterateeCall-e2252db1.js index 9f46d04..e1dd89e 100644 --- a/vue/dist/assets/_isIterateeCall-7008db8e.js +++ b/vue/dist/assets/_isIterateeCall-e2252db1.js @@ -1 +1 @@ -import{bV as i,b1 as t,e6 as f,bM as n}from"./index-0205daf8.js";function u(e,s,r){if(!i(r))return!1;var a=typeof s;return(a=="number"?t(r)&&f(s,r.length):a=="string"&&s in r)?n(r[s],e):!1}export{u as i}; +import{bV as i,b1 as t,e7 as f,bM as n}from"./index-157194fb.js";function u(e,s,r){if(!i(r))return!1;var a=typeof s;return(a=="number"?t(r)&&f(s,r.length):a=="string"&&s in r)?n(r[s],e):!1}export{u as i}; diff --git a/vue/dist/assets/batchDownload-0bd1b629.js b/vue/dist/assets/batchDownload-88ec1277.js similarity index 65% rename from vue/dist/assets/batchDownload-0bd1b629.js rename to vue/dist/assets/batchDownload-88ec1277.js index 35347a7..fe6c881 100644 --- a/vue/dist/assets/batchDownload-0bd1b629.js +++ b/vue/dist/assets/batchDownload-88ec1277.js @@ -1 +1 @@ -import{d as F,a1 as B,cR as S,cc as $,U as _,V as w,W as f,c as l,a3 as d,X as p,Y as c,a4 as s,a2 as R,af as A,cS as T,cT as y,z as V,B as x,ak as E,a0 as U}from"./index-0205daf8.js";import{_ as N}from"./index-728b29ca.js";import{u as L,a as H,f as O,F as W,d as j}from"./FileItem-cc53e03a.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";/* empty css */import"./index-6a8edab1.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./index-e9cc5bd5.js";const q={class:"actions-panel actions"},G={class:"item"},P={key:0,class:"file-list"},Q={class:"hint"},X=F({__name:"batchDownload",props:{tabIdx:{},paneIdx:{},id:{}},setup(Y){const{stackViewEl:D}=L().toRefs(),{itemSize:h,gridItems:b,cellWidth:g}=H(),i=B(),m=O(),{selectdFiles:a}=S(m),r=$(),v=async e=>{const t=T(e);t&&m.addFiles(t.nodes)},C=async()=>{r.pushAction(async()=>{const e=await y.value.post("/zip",{paths:a.value.map(u=>u.fullpath),compress:i.batchDownloadCompress,pack_only:!1},{responseType:"blob"}),t=window.URL.createObjectURL(new Blob([e.data])),o=document.createElement("a");o.href=t,o.setAttribute("download",`iib_${new Date().toLocaleString()}.zip`),document.body.appendChild(o),o.click()})},I=async()=>{r.pushAction(async()=>{await y.value.post("/zip",{paths:a.value.map(e=>e.fullpath),compress:i.batchDownloadCompress,pack_only:!0},{responseType:"blob"}),V.success(x("success"))})},z=e=>{a.value.splice(e,1)};return(e,t)=>{const o=E,u=N;return _(),w("div",{class:"container",ref_key:"stackViewEl",ref:D,onDrop:v},[f("div",q,[l(o,{onClick:t[0]||(t[0]=n=>s(m).selectdFiles=[])},{default:d(()=>[p(c(e.$t("clear")),1)]),_:1}),f("div",G,[p(c(e.$t("compressFile"))+": ",1),l(u,{checked:s(i).batchDownloadCompress,"onUpdate:checked":t[1]||(t[1]=n=>s(i).batchDownloadCompress=n)},null,8,["checked"])]),l(o,{onClick:I,type:"primary",loading:!s(r).isIdle},{default:d(()=>[p(c(e.$t("packOnlyNotDownload")),1)]),_:1},8,["loading"]),l(o,{onClick:C,type:"primary",loading:!s(r).isIdle},{default:d(()=>[p(c(e.$t("zipDownload")),1)]),_:1},8,["loading"])]),s(a).length?(_(),R(s(j),{key:1,ref:"scroller",class:"file-list",items:s(a).slice(),"item-size":s(h).first,"key-field":"fullpath","item-secondary-size":s(h).second,gridItems:s(b)},{default:d(({item:n,index:k})=>[l(W,{idx:k,file:n,"cell-width":s(g),"enable-close-icon":"",onCloseIconClick:J=>z(k),"full-screen-preview-image-url":s(A)(n),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","onCloseIconClick","full-screen-preview-image-url"])]),_:1},8,["items","item-size","item-secondary-size","gridItems"])):(_(),w("div",P,[f("p",Q,c(e.$t("batchDownloaDDragAndDropHint")),1)]))],544)}}});const le=U(X,[["__scopeId","data-v-3d7e6f2d"]]);export{le as default}; +import{d as F,a1 as B,cS as S,cc as $,U as _,V as w,W as f,c as l,a3 as d,X as p,Y as c,a4 as s,a2 as A,af as R,cT as T,cU as y,z as U,B as V,ak as x,a0 as E}from"./index-157194fb.js";import{_ as N}from"./index-89286149.js";import{u as L,a as H,f as O,F as W,d as j}from"./FileItem-6ddd7179.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js";/* empty css */import"./index-8e3285c7.js";import"./_isIterateeCall-e2252db1.js";import"./index-8929347d.js";import"./index-11d9431b.js";const q={class:"actions-panel actions"},G={class:"item"},P={key:0,class:"file-list"},Q={class:"hint"},X=F({__name:"batchDownload",props:{tabIdx:{},paneIdx:{},id:{}},setup(Y){const{stackViewEl:D}=L().toRefs(),{itemSize:h,gridItems:b,cellWidth:g}=H(),i=B(),m=O(),{selectdFiles:a}=S(m),r=$(),v=async e=>{const t=T(e);t&&m.addFiles(t.nodes)},C=async()=>{r.pushAction(async()=>{const e=await y.value.post("/zip",{paths:a.value.map(u=>u.fullpath),compress:i.batchDownloadCompress,pack_only:!1},{responseType:"blob"}),t=window.URL.createObjectURL(new Blob([e.data])),o=document.createElement("a");o.href=t,o.setAttribute("download",`iib_${new Date().toLocaleString()}.zip`),document.body.appendChild(o),o.click()})},I=async()=>{r.pushAction(async()=>{await y.value.post("/zip",{paths:a.value.map(e=>e.fullpath),compress:i.batchDownloadCompress,pack_only:!0},{responseType:"blob"}),U.success(V("success"))})},z=e=>{a.value.splice(e,1)};return(e,t)=>{const o=x,u=N;return _(),w("div",{class:"container",ref_key:"stackViewEl",ref:D,onDrop:v},[f("div",q,[l(o,{onClick:t[0]||(t[0]=n=>s(m).selectdFiles=[])},{default:d(()=>[p(c(e.$t("clear")),1)]),_:1}),f("div",G,[p(c(e.$t("compressFile"))+": ",1),l(u,{checked:s(i).batchDownloadCompress,"onUpdate:checked":t[1]||(t[1]=n=>s(i).batchDownloadCompress=n)},null,8,["checked"])]),l(o,{onClick:I,type:"primary",loading:!s(r).isIdle},{default:d(()=>[p(c(e.$t("packOnlyNotDownload")),1)]),_:1},8,["loading"]),l(o,{onClick:C,type:"primary",loading:!s(r).isIdle},{default:d(()=>[p(c(e.$t("zipDownload")),1)]),_:1},8,["loading"])]),s(a).length?(_(),A(s(j),{key:1,ref:"scroller",class:"file-list",items:s(a).slice(),"item-size":s(h).first,"key-field":"fullpath","item-secondary-size":s(h).second,gridItems:s(b)},{default:d(({item:n,index:k})=>[l(W,{idx:k,file:n,"cell-width":s(g),"enable-close-icon":"",onCloseIconClick:J=>z(k),"full-screen-preview-image-url":s(R)(n),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","onCloseIconClick","full-screen-preview-image-url"])]),_:1},8,["items","item-size","item-secondary-size","gridItems"])):(_(),w("div",P,[f("p",Q,c(e.$t("batchDownloaDDragAndDropHint")),1)]))],544)}}});const le=E(X,[["__scopeId","data-v-3d7e6f2d"]]);export{le as default}; diff --git a/vue/dist/assets/emptyStartup-94fd8d18.js b/vue/dist/assets/emptyStartup-4685419f.js similarity index 99% rename from vue/dist/assets/emptyStartup-94fd8d18.js rename to vue/dist/assets/emptyStartup-4685419f.js index ebd0065..baee629 100644 --- a/vue/dist/assets/emptyStartup-94fd8d18.js +++ b/vue/dist/assets/emptyStartup-4685419f.js @@ -1,3 +1,3 @@ -import{d as Q,G as x,am as Xr,r as q,m as ze,I as Yr,a as P,c as g,an as ue,u as de,_ as Be,ao as et,ap as Pr,P as X,aq as rt,h as D,g as tt,f as st,b as ot,ar as nt,as as at,at as it,au as ct,j as Gr,av as Or,aw as lt,ax as ut,ay as pt,az as dt,A as _e,a1 as Sr,T as be,B as A,q as $,a9 as Le,ak as xe,aj as Ar,z as le,aA as gt,aB as mt,aC as ve,aD as ht,aE as Tt,aF as Et,U as y,a2 as Te,a3 as S,X as I,Y as f,aG as ft,al as bt,M as vt,aH as _t,t as wt,aI as yt,aJ as kt,aK as Pt,o as Gt,aL as Ot,V as O,W as u,a4 as h,ag as Ye,$ as j,a5 as M,a6 as St,aM as er,Z as J,a8 as oe,R as Ce,O as At,y as rr,aN as Rt,aO as Ct,aP as Ft,aQ as Ut,a0 as Dt}from"./index-0205daf8.js";import{_ as Lt}from"./index-728b29ca.js";/* empty css */import{V as xt}from"./Checkbox-951f37ba.js";import{D as It}from"./index-e9cc5bd5.js";function tr(r){var e=r.prefixCls,t=r.value,s=r.current,o=r.offset,a=o===void 0?0:o,n;return a&&(n={position:"absolute",top:"".concat(a,"00%"),left:0}),g("p",{style:n,class:ue("".concat(e,"-only-unit"),{current:s})},[t])}function $t(r,e,t){for(var s=r,o=0;(s+10)%10!==e;)s+=t,o+=t;return o}const jt=Q({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup:function(e){var t=x(function(){return Number(e.value)}),s=x(function(){return Math.abs(e.count)}),o=Xr({prevValue:t.value,prevCount:s.value}),a=function(){o.prevValue=t.value,o.prevCount=s.value},n=q();return ze(t,function(){clearTimeout(n.value),n.value=setTimeout(function(){a()},1e3)},{flush:"post"}),Yr(function(){clearTimeout(n.value)}),function(){var i,l={},m=t.value;if(o.prevValue===m||Number.isNaN(m)||Number.isNaN(o.prevValue))i=[tr(P(P({},e),{},{current:!0}))],l={transition:"none"};else{i=[];for(var T=m+10,p=[],b=m;b<=T;b+=1)p.push(b);var k=p.findIndex(function(C){return C%10===o.prevValue});i=p.map(function(C,v){var F=C%10;return tr(P(P({},e),{},{value:F,offset:v-k,current:v===k}))});var R=o.prevCounte.overflowCount?"".concat(e.overflowCount,"+"):e.count}),m=x(function(){return e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0}),T=x(function(){return l.value==="0"||l.value===0}),p=x(function(){return e.dot&&!T.value}),b=x(function(){return p.value?"":l.value}),k=x(function(){var w=b.value===null||b.value===void 0||b.value==="";return(w||T.value&&!e.showZero)&&!p.value}),R=q(e.count),C=q(b.value),v=q(p.value);ze([function(){return e.count},b,p],function(){k.value||(R.value=e.count,C.value=b.value,v.value=p.value)},{immediate:!0});var F=x(function(){var w;return w={},D(w,"".concat(n.value,"-status-dot"),m.value),D(w,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(w,"".concat(n.value,"-status-").concat(e.color),Ee(e.color)),w}),V=x(function(){return e.color&&!Ee(e.color)?{background:e.color}:{}}),z=x(function(){var w;return w={},D(w,"".concat(n.value,"-dot"),v.value),D(w,"".concat(n.value,"-count"),!v.value),D(w,"".concat(n.value,"-count-sm"),e.size==="small"),D(w,"".concat(n.value,"-multiple-words"),!v.value&&C.value&&C.value.toString().length>1),D(w,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(w,"".concat(n.value,"-status-").concat(e.color),Ee(e.color)),w});return function(){var w,c,E,G=e.offset,_=e.title,L=e.color,Z=o.style,Y=tt(s,e,"text"),H=n.value,N=R.value,W=st((w=s.default)===null||w===void 0?void 0:w.call(s));W=W.length?W:null;var K=!!(!k.value||s.count),ee=function(){if(!G)return P({},Z);var Ge={marginTop:Mt(G[1])?"".concat(G[1],"px"):G[1]};return i.value==="rtl"?Ge.left="".concat(parseInt(G[0],10),"px"):Ge.right="".concat(-parseInt(G[0],10),"px"),P(P({},Ge),Z)}(),we=_??(typeof N=="string"||typeof N=="number"?N:void 0),ye=K||!Y?null:g("span",{class:"".concat(H,"-status-text")},[Y]),ke=ot(N)==="object"||N===void 0&&s.count?Pr(N??((c=s.count)===null||c===void 0?void 0:c.call(s)),{style:ee},!1):null,d=ue(H,(E={},D(E,"".concat(H,"-status"),m.value),D(E,"".concat(H,"-not-a-wrapper"),!W),D(E,"".concat(H,"-rtl"),i.value==="rtl"),E),o.class);if(!W&&m.value){var U=ee.color;return g("span",P(P({},o),{},{class:d,style:ee}),[g("span",{class:F.value,style:V.value},null),g("span",{style:{color:U},class:"".concat(H,"-status-text")},[Y])])}var se=nt(W?"".concat(H,"-zoom"):"",{appear:!1}),Pe=P(P({},ee),e.numberStyle);return L&&!Ee(L)&&(Pe=Pe||{},Pe.background=L),g("span",P(P({},o),{},{class:d}),[W,g(at,se,{default:function(){return[it(g(zt,{prefixCls:e.scrollNumberPrefixCls,show:K,class:z.value,count:C.value,title:we,style:Pe,key:"scrollNumber"},{default:function(){return[ke]}}),[[ct,K]])]}}),ye])}}});Oe.install=function(r){return r.component(Oe.name,Oe),r.component(Ie.name,Ie),r};var Kt=["prefixCls","id"],Rr=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:X.any,name:String,id:String,autofocus:{type:Boolean,default:void 0},onChange:Function,onFocus:Function,onBlur:Function,onClick:Function,"onUpdate:checked":Function,"onUpdate:value":Function}};const B=Q({compatConfig:{MODE:3},name:"ARadio",props:Rr(),setup:function(e,t){var s=t.emit,o=t.expose,a=t.slots,n=Gr(),i=q(),l=Or("radioGroupContext",void 0),m=de("radio",e),T=m.prefixCls,p=m.direction,b=function(){i.value.focus()},k=function(){i.value.blur()};o({focus:b,blur:k});var R=function(F){var V=F.target.checked;s("update:checked",V),s("update:value",V),s("change",F),n.onFieldChange()},C=function(F){s("change",F),l&&l.onRadioChange&&l.onRadioChange(F)};return function(){var v,F=l;e.prefixCls;var V=e.id,z=V===void 0?n.id.value:V,w=Be(e,Kt),c=P({prefixCls:T.value,id:z},lt(w,["onUpdate:checked","onUpdate:value"]));F?(c.name=F.props.name,c.onChange=C,c.checked=e.value===F.stateValue.value,c.disabled=e.disabled||F.props.disabled):c.onChange=R;var E=ue((v={},D(v,"".concat(T.value,"-wrapper"),!0),D(v,"".concat(T.value,"-wrapper-checked"),c.checked),D(v,"".concat(T.value,"-wrapper-disabled"),c.disabled),D(v,"".concat(T.value,"-wrapper-rtl"),p.value==="rtl"),v));return g("label",{class:E},[g(xt,P(P({},c),{},{type:"radio",ref:i}),null),a.default&&g("span",null,[a.default()])])}}});var Jt=pt("large","default","small"),Qt=function(){return{prefixCls:String,value:X.any,size:X.oneOf(Jt),options:{type:Array},disabled:{type:Boolean,default:void 0},name:String,buttonStyle:{type:String,default:"outline"},id:String,optionType:{type:String,default:"default"},onChange:Function,"onUpdate:value":Function}};const He=Q({compatConfig:{MODE:3},name:"ARadioGroup",props:Qt(),setup:function(e,t){var s=t.slots,o=t.emit,a=Gr(),n=de("radio",e),i=n.prefixCls,l=n.direction,m=n.size,T=q(e.value),p=q(!1);ze(function(){return e.value},function(k){T.value=k,p.value=!1});var b=function(R){var C=T.value,v=R.target.value;"value"in e||(T.value=v),!p.value&&v!==C&&(p.value=!0,o("update:value",v),o("change",R),a.onFieldChange()),dt(function(){p.value=!1})};return ut("radioGroupContext",{onRadioChange:b,stateValue:T,props:e}),function(){var k,R=e.options,C=e.optionType,v=e.buttonStyle,F=e.id,V=F===void 0?a.id.value:F,z="".concat(i.value,"-group"),w=ue(z,"".concat(z,"-").concat(v),(k={},D(k,"".concat(z,"-").concat(m.value),m.value),D(k,"".concat(z,"-rtl"),l.value==="rtl"),k)),c=null;if(R&&R.length>0){var E=C==="button"?"".concat(i.value,"-button"):i.value;c=R.map(function(_){if(typeof _=="string"||typeof _=="number")return g(B,{key:_,prefixCls:E,disabled:e.disabled,value:_,checked:T.value===_},{default:function(){return[_]}});var L=_.value,Z=_.disabled,Y=_.label;return g(B,{key:"radio-group-value-options-".concat(L),prefixCls:E,disabled:Z||e.disabled,value:L,checked:T.value===L},{default:function(){return[Y]}})})}else{var G;c=(G=s.default)===null||G===void 0?void 0:G.call(s)}return g("div",{class:w,id:V},[c])}}}),fe=Q({compatConfig:{MODE:3},name:"ARadioButton",props:Rr(),setup:function(e,t){var s=t.slots,o=de("radio-button",e),a=o.prefixCls,n=Or("radioGroupContext",void 0);return function(){var i,l=P(P({},e),{},{prefixCls:a.value});return n&&(l.onChange=n.onRadioChange,l.checked=l.value===n.stateValue.value,l.disabled=l.disabled||n.props.disabled),g(B,l,{default:function(){return[(i=s.default)===null||i===void 0?void 0:i.call(s)]}})}}});B.Group=He;B.Button=fe;B.install=function(r){return r.component(B.name,B),r.component(B.Group.name,B.Group),r.component(B.Button.name,B.Button),r};var Zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const Xt=Zt;function sr(r){for(var e=1;e{const t=Sr(),s=q(e??""),o=q(r),a=async()=>{const n=await Et({directory:!0,defaultPath:e});if(typeof n=="string")s.value=n;else return};s.value=await new Promise(n=>{be.confirm({title:A("inputTargetFolderPath"),width:"800px",content:()=>{var i;return $("div",[(i=t.conf)!=null&&i.enable_access_control?$("a",{style:{"word-break":"break-all","margin-bottom":"4px",display:"block"},target:"_blank",href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/518"},"Please open this link first (Access Control mode only)"):"",Le?$(xe,{onClick:a,style:{margin:"4px 0"}},A("selectFolder")):"",$(Ar,{value:s.value,"onUpdate:value":l=>s.value=l}),$("div",[$("span",A("type")+": "),$(He,{value:o.value,"onUpdate:value":l=>o.value=l,buttonStyle:"solid",style:{margin:"16px 0 32px"}},[$(fe,{value:"walk"},"Walk"),$(fe,{value:"scanned"},"Normal"),$(fe,{value:"scanned-fixed"},"Fixed")])]),$("p","Walk: "+A("walkModeDoc")),$("p","Normal: "+A("normalModelDoc")),$("p","Fixed: "+A("fixedModeDoc"))])},async onOk(){if(!s.value)throw le.error(A("pathIsEmpty")),new Error("pathIsEmpty");(await gt([s.value]))[s.value]?n(s.value):le.error(A("pathDoesNotExist"))}})}),be.confirm({content:A("confirmToAddToExtraPath"),async onOk(){await mt({types:[o.value],path:s.value}),le.success(A("addCompleted")),ve.emit("searchIndexExpired"),ve.emit("updateGlobalSetting")}})},ur=(r,e)=>{be.confirm({content:A("confirmDelete"),closable:!0,async onOk(){await ht({types:[e],path:r}),le.success(A("removeCompleted")),ve.emit("searchIndexExpired"),ve.emit("updateGlobalSetting")}})},pr=r=>{const e=q("");be.confirm({title:A("inputAlias"),content:()=>$("div",[$("div",{style:{"word-break":"break-all","margin-bottom":"4px"}},"Path: "+r),$(Ar,{value:e.value,"onUpdate:value":t=>e.value=t})]),async onOk(){await Tt({alias:e.value,path:r}),le.success(A("addAliasCompleted")),ve.emit("updateGlobalSetting")}})},dr=Q({__name:"actionContextMenu",emits:["openOnTheRight","openInNewTab"],setup(r,{emit:e}){const t=s=>{switch(s.key.toString()){case"openOnTheRight":e("openOnTheRight");break;case"openInNewTab":e("openInNewTab");break}};return(s,o)=>{const a=bt,n=vt,i=It;return y(),Te(i,{trigger:["contextmenu"]},{overlay:S(()=>[g(n,{onClick:t},{default:S(()=>[g(a,{key:"openOnTheRight"},{default:S(()=>[I(f(s.$t("openOnTheRight")),1)]),_:1}),g(a,{key:"openInNewTab"},{default:S(()=>[I(f(s.$t("openInNewTab")),1)]),_:1})]),_:1})]),default:S(()=>[ft(s.$slots,"default")]),_:3})}}});function Ae(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var Re={exports:{}},hs=Cr;function Cr(r,e,t,s){if(typeof t!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce(function(o,a){return Cr.bind(null,r,a,o,s)},t)():Promise.resolve().then(function(){return r.registry[e]?r.registry[e].reduce(function(o,a){return a.hook.bind(null,o,s)},t)():t(s)})}var Ts=Es;function Es(r,e,t,s){var o=s;r.registry[t]||(r.registry[t]=[]),e==="before"&&(s=function(a,n){return Promise.resolve().then(o.bind(null,n)).then(a.bind(null,n))}),e==="after"&&(s=function(a,n){var i;return Promise.resolve().then(a.bind(null,n)).then(function(l){return i=l,o(i,n)}).then(function(){return i})}),e==="error"&&(s=function(a,n){return Promise.resolve().then(a.bind(null,n)).catch(function(i){return o(i,n)})}),r.registry[t].push({hook:s,orig:o})}var fs=bs;function bs(r,e,t){if(r.registry[e]){var s=r.registry[e].map(function(o){return o.orig}).indexOf(t);s!==-1&&r.registry[e].splice(s,1)}}var Fr=hs,vs=Ts,_s=fs,gr=Function.bind,mr=gr.bind(gr);function Ur(r,e,t){var s=mr(_s,null).apply(null,t?[e,t]:[e]);r.api={remove:s},r.remove=s,["before","error","after","wrap"].forEach(function(o){var a=t?[e,o,t]:[e,o];r[o]=r.api[o]=mr(vs,null).apply(null,a)})}function ws(){var r="h",e={registry:{}},t=Fr.bind(null,e,r);return Ur(t,e,r),t}function Dr(){var r={registry:{}},e=Fr.bind(null,r);return Ur(e,r),e}var hr=!1;function ge(){return hr||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),hr=!0),Dr()}ge.Singular=ws.bind();ge.Collection=Dr.bind();Re.exports=ge;Re.exports.Hook=ge;Re.exports.Singular=ge.Singular;var ys=Re.exports.Collection=ge.Collection,ks="9.0.5",Ps=`octokit-endpoint.js/${ks} ${Ae()}`,Gs={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ps},mediaType:{format:""}};function Os(r){return r?Object.keys(r).reduce((e,t)=>(e[t.toLowerCase()]=r[t],e),{}):{}}function Ss(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Lr(r,e){const t=Object.assign({},r);return Object.keys(e).forEach(s=>{Ss(e[s])?s in r?t[s]=Lr(r[s],e[s]):Object.assign(t,{[s]:e[s]}):Object.assign(t,{[s]:e[s]})}),t}function Tr(r){for(const e in r)r[e]===void 0&&delete r[e];return r}function $e(r,e,t){var o;if(typeof e=="string"){let[a,n]=e.split(" ");t=Object.assign(n?{method:a,url:n}:{url:a},t)}else t=Object.assign({},e);t.headers=Os(t.headers),Tr(t),Tr(t.headers);const s=Lr(r||{},t);return t.url==="/graphql"&&(r&&((o=r.mediaType.previews)!=null&&o.length)&&(s.mediaType.previews=r.mediaType.previews.filter(a=>!s.mediaType.previews.includes(a)).concat(s.mediaType.previews)),s.mediaType.previews=(s.mediaType.previews||[]).map(a=>a.replace(/-preview/,""))),s}function As(r,e){const t=/\?/.test(r)?"&":"?",s=Object.keys(e);return s.length===0?r:r+t+s.map(o=>o==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${o}=${encodeURIComponent(e[o])}`).join("&")}var Rs=/\{[^}]+\}/g;function Cs(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function Fs(r){const e=r.match(Rs);return e?e.map(Cs).reduce((t,s)=>t.concat(s),[]):[]}function Er(r,e){const t={__proto__:null};for(const s of Object.keys(r))e.indexOf(s)===-1&&(t[s]=r[s]);return t}function xr(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function ce(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function me(r,e,t){return e=r==="+"||r==="#"?xr(e):ce(e),t?ce(t)+"="+e:e}function ne(r){return r!=null}function Ue(r){return r===";"||r==="&"||r==="?"}function Us(r,e,t,s){var o=r[t],a=[];if(ne(o)&&o!=="")if(typeof o=="string"||typeof o=="number"||typeof o=="boolean")o=o.toString(),s&&s!=="*"&&(o=o.substring(0,parseInt(s,10))),a.push(me(e,o,Ue(e)?t:""));else if(s==="*")Array.isArray(o)?o.filter(ne).forEach(function(n){a.push(me(e,n,Ue(e)?t:""))}):Object.keys(o).forEach(function(n){ne(o[n])&&a.push(me(e,o[n],n))});else{const n=[];Array.isArray(o)?o.filter(ne).forEach(function(i){n.push(me(e,i))}):Object.keys(o).forEach(function(i){ne(o[i])&&(n.push(ce(i)),n.push(me(e,o[i].toString())))}),Ue(e)?a.push(ce(t)+"="+n.join(",")):n.length!==0&&a.push(n.join(","))}else e===";"?ne(o)&&a.push(ce(t)):o===""&&(e==="&"||e==="?")?a.push(ce(t)+"="):o===""&&a.push("");return a}function Ds(r){return{expand:Ls.bind(null,r)}}function Ls(r,e){var t=["+","#",".","/",";","?","&"];return r=r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(s,o,a){if(o){let i="";const l=[];if(t.indexOf(o.charAt(0))!==-1&&(i=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach(function(m){var T=/([^:\*]*)(?::(\d+)|(\*))?/.exec(m);l.push(Us(e,i,T[1],T[2]||T[3]))}),i&&i!=="+"){var n=",";return i==="?"?n="&":i!=="#"&&(n=i),(l.length!==0?i:"")+l.join(n)}else return l.join(",")}else return xr(a)}),r==="/"?r:r.replace(/\/$/,"")}function Ir(r){var T;let e=r.method.toUpperCase(),t=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),s=Object.assign({},r.headers),o,a=Er(r,["method","baseUrl","url","headers","request","mediaType"]);const n=Fs(t);t=Ds(t).expand(a),/^http/.test(t)||(t=r.baseUrl+t);const i=Object.keys(r).filter(p=>n.includes(p)).concat("baseUrl"),l=Er(a,i);if(!/application\/octet-stream/i.test(s.accept)&&(r.mediaType.format&&(s.accept=s.accept.split(/,/).map(p=>p.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`)).join(",")),t.endsWith("/graphql")&&(T=r.mediaType.previews)!=null&&T.length)){const p=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=p.concat(r.mediaType.previews).map(b=>{const k=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${b}-preview${k}`}).join(",")}return["GET","HEAD"].includes(e)?t=As(t,l):"data"in l?o=l.data:Object.keys(l).length&&(o=l),!s["content-type"]&&typeof o<"u"&&(s["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof o>"u"&&(o=""),Object.assign({method:e,url:t,headers:s},typeof o<"u"?{body:o}:null,r.request?{request:r.request}:null)}function xs(r,e,t){return Ir($e(r,e,t))}function $r(r,e){const t=$e(r,e),s=xs.bind(null,t);return Object.assign(s,{DEFAULTS:t,defaults:$r.bind(null,t),merge:$e.bind(null,t),parse:Ir})}var Is=$r(null,Gs);class fr extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Qe={exports:{}},$s=jr;function jr(r,e){if(r&&e)return jr(r)(e);if(typeof r!="function")throw new TypeError("need wrapper function");return Object.keys(r).forEach(function(s){t[s]=r[s]}),t;function t(){for(var s=new Array(arguments.length),o=0;oconsole.warn(r)),Vs=zr(r=>console.warn(r)),he=class extends Error{constructor(r,e,t){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=e;let s;"headers"in t&&typeof t.headers<"u"&&(s=t.headers),"response"in t&&(this.response=t.response,s=t.response.headers);const o=Object.assign({},t.request);t.request.headers.authorization&&(o.headers=Object.assign({},t.request.headers,{authorization:t.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=o,Object.defineProperty(this,"code",{get(){return qs(new fr("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),e}}),Object.defineProperty(this,"headers",{get(){return Vs(new fr("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),s||{}}})}},zs="8.4.0";function Bs(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Hs(r){return r.arrayBuffer()}function br(r){var i,l,m,T;const e=r.request&&r.request.log?r.request.log:console,t=((i=r.request)==null?void 0:i.parseSuccessResponseBody)!==!1;(Bs(r.body)||Array.isArray(r.body))&&(r.body=JSON.stringify(r.body));let s={},o,a,{fetch:n}=globalThis;if((l=r.request)!=null&&l.fetch&&(n=r.request.fetch),!n)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return n(r.url,{method:r.method,body:r.body,redirect:(m=r.request)==null?void 0:m.redirect,headers:r.headers,signal:(T=r.request)==null?void 0:T.signal,...r.body&&{duplex:"half"}}).then(async p=>{a=p.url,o=p.status;for(const b of p.headers)s[b[0]]=b[1];if("deprecation"in s){const b=s.link&&s.link.match(/<([^>]+)>; rel="deprecation"/),k=b&&b.pop();e.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${s.sunset}${k?`. See ${k}`:""}`)}if(!(o===204||o===205)){if(r.method==="HEAD"){if(o<400)return;throw new he(p.statusText,o,{response:{url:a,status:o,headers:s,data:void 0},request:r})}if(o===304)throw new he("Not modified",o,{response:{url:a,status:o,headers:s,data:await De(p)},request:r});if(o>=400){const b=await De(p);throw new he(Ns(b),o,{response:{url:a,status:o,headers:s,data:b},request:r})}return t?await De(p):p.body}}).then(p=>({status:o,url:a,headers:s,data:p})).catch(p=>{if(p instanceof he)throw p;if(p.name==="AbortError")throw p;let b=p.message;throw p.name==="TypeError"&&"cause"in p&&(p.cause instanceof Error?b=p.cause.message:typeof p.cause=="string"&&(b=p.cause)),new he(b,500,{request:r})})}async function De(r){const e=r.headers.get("content-type");return/application\/json/.test(e)?r.json().catch(()=>r.text()).catch(()=>""):!e||/^text\/|charset=utf-8$/.test(e)?r.text():Hs(r)}function Ns(r){if(typeof r=="string")return r;let e;return"documentation_url"in r?e=` - ${r.documentation_url}`:e="","message"in r?Array.isArray(r.errors)?`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}${e}`:`${r.message}${e}`:`Unknown error: ${JSON.stringify(r)}`}function je(r,e){const t=r.defaults(e);return Object.assign(function(o,a){const n=t.merge(o,a);if(!n.request||!n.request.hook)return br(t.parse(n));const i=(l,m)=>br(t.parse(t.merge(l,m)));return Object.assign(i,{endpoint:t,defaults:je.bind(null,t)}),n.request.hook(i,n)},{endpoint:t,defaults:je.bind(null,t)})}var qe=je(Is,{headers:{"user-agent":`octokit-request.js/${zs} ${Ae()}`}}),Ms="7.1.0";function Ws(r){return`Request failed due to following response errors: +import{d as Q,G as x,am as Xr,r as q,m as ze,I as Yr,a as P,c as g,an as ue,u as de,_ as Be,ao as et,ap as Pr,P as X,aq as rt,h as D,g as tt,f as st,b as ot,ar as nt,as as at,at as it,au as ct,j as Gr,av as Or,aw as lt,ax as ut,ay as pt,az as dt,A as _e,a1 as Sr,T as be,B as A,q as $,a9 as Le,ak as xe,aj as Ar,z as le,aA as gt,aB as mt,aC as ve,aD as ht,aE as Tt,aF as Et,U as y,a2 as Te,a3 as S,X as I,Y as f,aG as ft,al as bt,M as vt,aH as _t,t as wt,aI as yt,aJ as kt,aK as Pt,o as Gt,aL as Ot,V as O,W as u,a4 as h,ag as Ye,$ as j,a5 as M,a6 as St,aM as er,Z as J,a8 as oe,R as Ce,O as At,y as rr,aN as Rt,aO as Ct,aP as Ft,aQ as Ut,a0 as Dt}from"./index-157194fb.js";import{_ as Lt}from"./index-89286149.js";/* empty css */import{V as xt}from"./Checkbox-431074e2.js";import{D as It}from"./index-11d9431b.js";function tr(r){var e=r.prefixCls,t=r.value,s=r.current,o=r.offset,a=o===void 0?0:o,n;return a&&(n={position:"absolute",top:"".concat(a,"00%"),left:0}),g("p",{style:n,class:ue("".concat(e,"-only-unit"),{current:s})},[t])}function $t(r,e,t){for(var s=r,o=0;(s+10)%10!==e;)s+=t,o+=t;return o}const jt=Q({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup:function(e){var t=x(function(){return Number(e.value)}),s=x(function(){return Math.abs(e.count)}),o=Xr({prevValue:t.value,prevCount:s.value}),a=function(){o.prevValue=t.value,o.prevCount=s.value},n=q();return ze(t,function(){clearTimeout(n.value),n.value=setTimeout(function(){a()},1e3)},{flush:"post"}),Yr(function(){clearTimeout(n.value)}),function(){var i,l={},m=t.value;if(o.prevValue===m||Number.isNaN(m)||Number.isNaN(o.prevValue))i=[tr(P(P({},e),{},{current:!0}))],l={transition:"none"};else{i=[];for(var T=m+10,p=[],b=m;b<=T;b+=1)p.push(b);var k=p.findIndex(function(C){return C%10===o.prevValue});i=p.map(function(C,v){var F=C%10;return tr(P(P({},e),{},{value:F,offset:v-k,current:v===k}))});var R=o.prevCounte.overflowCount?"".concat(e.overflowCount,"+"):e.count}),m=x(function(){return e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0}),T=x(function(){return l.value==="0"||l.value===0}),p=x(function(){return e.dot&&!T.value}),b=x(function(){return p.value?"":l.value}),k=x(function(){var w=b.value===null||b.value===void 0||b.value==="";return(w||T.value&&!e.showZero)&&!p.value}),R=q(e.count),C=q(b.value),v=q(p.value);ze([function(){return e.count},b,p],function(){k.value||(R.value=e.count,C.value=b.value,v.value=p.value)},{immediate:!0});var F=x(function(){var w;return w={},D(w,"".concat(n.value,"-status-dot"),m.value),D(w,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(w,"".concat(n.value,"-status-").concat(e.color),Ee(e.color)),w}),V=x(function(){return e.color&&!Ee(e.color)?{background:e.color}:{}}),z=x(function(){var w;return w={},D(w,"".concat(n.value,"-dot"),v.value),D(w,"".concat(n.value,"-count"),!v.value),D(w,"".concat(n.value,"-count-sm"),e.size==="small"),D(w,"".concat(n.value,"-multiple-words"),!v.value&&C.value&&C.value.toString().length>1),D(w,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(w,"".concat(n.value,"-status-").concat(e.color),Ee(e.color)),w});return function(){var w,c,E,G=e.offset,_=e.title,L=e.color,Z=o.style,Y=tt(s,e,"text"),H=n.value,N=R.value,W=st((w=s.default)===null||w===void 0?void 0:w.call(s));W=W.length?W:null;var K=!!(!k.value||s.count),ee=function(){if(!G)return P({},Z);var Ge={marginTop:Mt(G[1])?"".concat(G[1],"px"):G[1]};return i.value==="rtl"?Ge.left="".concat(parseInt(G[0],10),"px"):Ge.right="".concat(-parseInt(G[0],10),"px"),P(P({},Ge),Z)}(),we=_??(typeof N=="string"||typeof N=="number"?N:void 0),ye=K||!Y?null:g("span",{class:"".concat(H,"-status-text")},[Y]),ke=ot(N)==="object"||N===void 0&&s.count?Pr(N??((c=s.count)===null||c===void 0?void 0:c.call(s)),{style:ee},!1):null,d=ue(H,(E={},D(E,"".concat(H,"-status"),m.value),D(E,"".concat(H,"-not-a-wrapper"),!W),D(E,"".concat(H,"-rtl"),i.value==="rtl"),E),o.class);if(!W&&m.value){var U=ee.color;return g("span",P(P({},o),{},{class:d,style:ee}),[g("span",{class:F.value,style:V.value},null),g("span",{style:{color:U},class:"".concat(H,"-status-text")},[Y])])}var se=nt(W?"".concat(H,"-zoom"):"",{appear:!1}),Pe=P(P({},ee),e.numberStyle);return L&&!Ee(L)&&(Pe=Pe||{},Pe.background=L),g("span",P(P({},o),{},{class:d}),[W,g(at,se,{default:function(){return[it(g(zt,{prefixCls:e.scrollNumberPrefixCls,show:K,class:z.value,count:C.value,title:we,style:Pe,key:"scrollNumber"},{default:function(){return[ke]}}),[[ct,K]])]}}),ye])}}});Oe.install=function(r){return r.component(Oe.name,Oe),r.component(Ie.name,Ie),r};var Kt=["prefixCls","id"],Rr=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:X.any,name:String,id:String,autofocus:{type:Boolean,default:void 0},onChange:Function,onFocus:Function,onBlur:Function,onClick:Function,"onUpdate:checked":Function,"onUpdate:value":Function}};const B=Q({compatConfig:{MODE:3},name:"ARadio",props:Rr(),setup:function(e,t){var s=t.emit,o=t.expose,a=t.slots,n=Gr(),i=q(),l=Or("radioGroupContext",void 0),m=de("radio",e),T=m.prefixCls,p=m.direction,b=function(){i.value.focus()},k=function(){i.value.blur()};o({focus:b,blur:k});var R=function(F){var V=F.target.checked;s("update:checked",V),s("update:value",V),s("change",F),n.onFieldChange()},C=function(F){s("change",F),l&&l.onRadioChange&&l.onRadioChange(F)};return function(){var v,F=l;e.prefixCls;var V=e.id,z=V===void 0?n.id.value:V,w=Be(e,Kt),c=P({prefixCls:T.value,id:z},lt(w,["onUpdate:checked","onUpdate:value"]));F?(c.name=F.props.name,c.onChange=C,c.checked=e.value===F.stateValue.value,c.disabled=e.disabled||F.props.disabled):c.onChange=R;var E=ue((v={},D(v,"".concat(T.value,"-wrapper"),!0),D(v,"".concat(T.value,"-wrapper-checked"),c.checked),D(v,"".concat(T.value,"-wrapper-disabled"),c.disabled),D(v,"".concat(T.value,"-wrapper-rtl"),p.value==="rtl"),v));return g("label",{class:E},[g(xt,P(P({},c),{},{type:"radio",ref:i}),null),a.default&&g("span",null,[a.default()])])}}});var Jt=pt("large","default","small"),Qt=function(){return{prefixCls:String,value:X.any,size:X.oneOf(Jt),options:{type:Array},disabled:{type:Boolean,default:void 0},name:String,buttonStyle:{type:String,default:"outline"},id:String,optionType:{type:String,default:"default"},onChange:Function,"onUpdate:value":Function}};const He=Q({compatConfig:{MODE:3},name:"ARadioGroup",props:Qt(),setup:function(e,t){var s=t.slots,o=t.emit,a=Gr(),n=de("radio",e),i=n.prefixCls,l=n.direction,m=n.size,T=q(e.value),p=q(!1);ze(function(){return e.value},function(k){T.value=k,p.value=!1});var b=function(R){var C=T.value,v=R.target.value;"value"in e||(T.value=v),!p.value&&v!==C&&(p.value=!0,o("update:value",v),o("change",R),a.onFieldChange()),dt(function(){p.value=!1})};return ut("radioGroupContext",{onRadioChange:b,stateValue:T,props:e}),function(){var k,R=e.options,C=e.optionType,v=e.buttonStyle,F=e.id,V=F===void 0?a.id.value:F,z="".concat(i.value,"-group"),w=ue(z,"".concat(z,"-").concat(v),(k={},D(k,"".concat(z,"-").concat(m.value),m.value),D(k,"".concat(z,"-rtl"),l.value==="rtl"),k)),c=null;if(R&&R.length>0){var E=C==="button"?"".concat(i.value,"-button"):i.value;c=R.map(function(_){if(typeof _=="string"||typeof _=="number")return g(B,{key:_,prefixCls:E,disabled:e.disabled,value:_,checked:T.value===_},{default:function(){return[_]}});var L=_.value,Z=_.disabled,Y=_.label;return g(B,{key:"radio-group-value-options-".concat(L),prefixCls:E,disabled:Z||e.disabled,value:L,checked:T.value===L},{default:function(){return[Y]}})})}else{var G;c=(G=s.default)===null||G===void 0?void 0:G.call(s)}return g("div",{class:w,id:V},[c])}}}),fe=Q({compatConfig:{MODE:3},name:"ARadioButton",props:Rr(),setup:function(e,t){var s=t.slots,o=de("radio-button",e),a=o.prefixCls,n=Or("radioGroupContext",void 0);return function(){var i,l=P(P({},e),{},{prefixCls:a.value});return n&&(l.onChange=n.onRadioChange,l.checked=l.value===n.stateValue.value,l.disabled=l.disabled||n.props.disabled),g(B,l,{default:function(){return[(i=s.default)===null||i===void 0?void 0:i.call(s)]}})}}});B.Group=He;B.Button=fe;B.install=function(r){return r.component(B.name,B),r.component(B.Group.name,B.Group),r.component(B.Button.name,B.Button),r};var Zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const Xt=Zt;function sr(r){for(var e=1;e{const t=Sr(),s=q(e??""),o=q(r),a=async()=>{const n=await Et({directory:!0,defaultPath:e});if(typeof n=="string")s.value=n;else return};s.value=await new Promise(n=>{be.confirm({title:A("inputTargetFolderPath"),width:"800px",content:()=>{var i;return $("div",[(i=t.conf)!=null&&i.enable_access_control?$("a",{style:{"word-break":"break-all","margin-bottom":"4px",display:"block"},target:"_blank",href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/518"},"Please open this link first (Access Control mode only)"):"",Le?$(xe,{onClick:a,style:{margin:"4px 0"}},A("selectFolder")):"",$(Ar,{value:s.value,"onUpdate:value":l=>s.value=l}),$("div",[$("span",A("type")+": "),$(He,{value:o.value,"onUpdate:value":l=>o.value=l,buttonStyle:"solid",style:{margin:"16px 0 32px"}},[$(fe,{value:"walk"},"Walk"),$(fe,{value:"scanned"},"Normal"),$(fe,{value:"scanned-fixed"},"Fixed")])]),$("p","Walk: "+A("walkModeDoc")),$("p","Normal: "+A("normalModelDoc")),$("p","Fixed: "+A("fixedModeDoc"))])},async onOk(){if(!s.value)throw le.error(A("pathIsEmpty")),new Error("pathIsEmpty");(await gt([s.value]))[s.value]?n(s.value):le.error(A("pathDoesNotExist"))}})}),be.confirm({content:A("confirmToAddToExtraPath"),async onOk(){await mt({types:[o.value],path:s.value}),le.success(A("addCompleted")),ve.emit("searchIndexExpired"),ve.emit("updateGlobalSetting")}})},ur=(r,e)=>{be.confirm({content:A("confirmDelete"),closable:!0,async onOk(){await ht({types:[e],path:r}),le.success(A("removeCompleted")),ve.emit("searchIndexExpired"),ve.emit("updateGlobalSetting")}})},pr=r=>{const e=q("");be.confirm({title:A("inputAlias"),content:()=>$("div",[$("div",{style:{"word-break":"break-all","margin-bottom":"4px"}},"Path: "+r),$(Ar,{value:e.value,"onUpdate:value":t=>e.value=t})]),async onOk(){await Tt({alias:e.value,path:r}),le.success(A("addAliasCompleted")),ve.emit("updateGlobalSetting")}})},dr=Q({__name:"actionContextMenu",emits:["openOnTheRight","openInNewTab"],setup(r,{emit:e}){const t=s=>{switch(s.key.toString()){case"openOnTheRight":e("openOnTheRight");break;case"openInNewTab":e("openInNewTab");break}};return(s,o)=>{const a=bt,n=vt,i=It;return y(),Te(i,{trigger:["contextmenu"]},{overlay:S(()=>[g(n,{onClick:t},{default:S(()=>[g(a,{key:"openOnTheRight"},{default:S(()=>[I(f(s.$t("openOnTheRight")),1)]),_:1}),g(a,{key:"openInNewTab"},{default:S(()=>[I(f(s.$t("openInNewTab")),1)]),_:1})]),_:1})]),default:S(()=>[ft(s.$slots,"default")]),_:3})}}});function Ae(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var Re={exports:{}},hs=Cr;function Cr(r,e,t,s){if(typeof t!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce(function(o,a){return Cr.bind(null,r,a,o,s)},t)():Promise.resolve().then(function(){return r.registry[e]?r.registry[e].reduce(function(o,a){return a.hook.bind(null,o,s)},t)():t(s)})}var Ts=Es;function Es(r,e,t,s){var o=s;r.registry[t]||(r.registry[t]=[]),e==="before"&&(s=function(a,n){return Promise.resolve().then(o.bind(null,n)).then(a.bind(null,n))}),e==="after"&&(s=function(a,n){var i;return Promise.resolve().then(a.bind(null,n)).then(function(l){return i=l,o(i,n)}).then(function(){return i})}),e==="error"&&(s=function(a,n){return Promise.resolve().then(a.bind(null,n)).catch(function(i){return o(i,n)})}),r.registry[t].push({hook:s,orig:o})}var fs=bs;function bs(r,e,t){if(r.registry[e]){var s=r.registry[e].map(function(o){return o.orig}).indexOf(t);s!==-1&&r.registry[e].splice(s,1)}}var Fr=hs,vs=Ts,_s=fs,gr=Function.bind,mr=gr.bind(gr);function Ur(r,e,t){var s=mr(_s,null).apply(null,t?[e,t]:[e]);r.api={remove:s},r.remove=s,["before","error","after","wrap"].forEach(function(o){var a=t?[e,o,t]:[e,o];r[o]=r.api[o]=mr(vs,null).apply(null,a)})}function ws(){var r="h",e={registry:{}},t=Fr.bind(null,e,r);return Ur(t,e,r),t}function Dr(){var r={registry:{}},e=Fr.bind(null,r);return Ur(e,r),e}var hr=!1;function ge(){return hr||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),hr=!0),Dr()}ge.Singular=ws.bind();ge.Collection=Dr.bind();Re.exports=ge;Re.exports.Hook=ge;Re.exports.Singular=ge.Singular;var ys=Re.exports.Collection=ge.Collection,ks="9.0.5",Ps=`octokit-endpoint.js/${ks} ${Ae()}`,Gs={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ps},mediaType:{format:""}};function Os(r){return r?Object.keys(r).reduce((e,t)=>(e[t.toLowerCase()]=r[t],e),{}):{}}function Ss(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Lr(r,e){const t=Object.assign({},r);return Object.keys(e).forEach(s=>{Ss(e[s])?s in r?t[s]=Lr(r[s],e[s]):Object.assign(t,{[s]:e[s]}):Object.assign(t,{[s]:e[s]})}),t}function Tr(r){for(const e in r)r[e]===void 0&&delete r[e];return r}function $e(r,e,t){var o;if(typeof e=="string"){let[a,n]=e.split(" ");t=Object.assign(n?{method:a,url:n}:{url:a},t)}else t=Object.assign({},e);t.headers=Os(t.headers),Tr(t),Tr(t.headers);const s=Lr(r||{},t);return t.url==="/graphql"&&(r&&((o=r.mediaType.previews)!=null&&o.length)&&(s.mediaType.previews=r.mediaType.previews.filter(a=>!s.mediaType.previews.includes(a)).concat(s.mediaType.previews)),s.mediaType.previews=(s.mediaType.previews||[]).map(a=>a.replace(/-preview/,""))),s}function As(r,e){const t=/\?/.test(r)?"&":"?",s=Object.keys(e);return s.length===0?r:r+t+s.map(o=>o==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${o}=${encodeURIComponent(e[o])}`).join("&")}var Rs=/\{[^}]+\}/g;function Cs(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function Fs(r){const e=r.match(Rs);return e?e.map(Cs).reduce((t,s)=>t.concat(s),[]):[]}function Er(r,e){const t={__proto__:null};for(const s of Object.keys(r))e.indexOf(s)===-1&&(t[s]=r[s]);return t}function xr(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function ce(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function me(r,e,t){return e=r==="+"||r==="#"?xr(e):ce(e),t?ce(t)+"="+e:e}function ne(r){return r!=null}function Ue(r){return r===";"||r==="&"||r==="?"}function Us(r,e,t,s){var o=r[t],a=[];if(ne(o)&&o!=="")if(typeof o=="string"||typeof o=="number"||typeof o=="boolean")o=o.toString(),s&&s!=="*"&&(o=o.substring(0,parseInt(s,10))),a.push(me(e,o,Ue(e)?t:""));else if(s==="*")Array.isArray(o)?o.filter(ne).forEach(function(n){a.push(me(e,n,Ue(e)?t:""))}):Object.keys(o).forEach(function(n){ne(o[n])&&a.push(me(e,o[n],n))});else{const n=[];Array.isArray(o)?o.filter(ne).forEach(function(i){n.push(me(e,i))}):Object.keys(o).forEach(function(i){ne(o[i])&&(n.push(ce(i)),n.push(me(e,o[i].toString())))}),Ue(e)?a.push(ce(t)+"="+n.join(",")):n.length!==0&&a.push(n.join(","))}else e===";"?ne(o)&&a.push(ce(t)):o===""&&(e==="&"||e==="?")?a.push(ce(t)+"="):o===""&&a.push("");return a}function Ds(r){return{expand:Ls.bind(null,r)}}function Ls(r,e){var t=["+","#",".","/",";","?","&"];return r=r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(s,o,a){if(o){let i="";const l=[];if(t.indexOf(o.charAt(0))!==-1&&(i=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach(function(m){var T=/([^:\*]*)(?::(\d+)|(\*))?/.exec(m);l.push(Us(e,i,T[1],T[2]||T[3]))}),i&&i!=="+"){var n=",";return i==="?"?n="&":i!=="#"&&(n=i),(l.length!==0?i:"")+l.join(n)}else return l.join(",")}else return xr(a)}),r==="/"?r:r.replace(/\/$/,"")}function Ir(r){var T;let e=r.method.toUpperCase(),t=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),s=Object.assign({},r.headers),o,a=Er(r,["method","baseUrl","url","headers","request","mediaType"]);const n=Fs(t);t=Ds(t).expand(a),/^http/.test(t)||(t=r.baseUrl+t);const i=Object.keys(r).filter(p=>n.includes(p)).concat("baseUrl"),l=Er(a,i);if(!/application\/octet-stream/i.test(s.accept)&&(r.mediaType.format&&(s.accept=s.accept.split(/,/).map(p=>p.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`)).join(",")),t.endsWith("/graphql")&&(T=r.mediaType.previews)!=null&&T.length)){const p=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=p.concat(r.mediaType.previews).map(b=>{const k=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${b}-preview${k}`}).join(",")}return["GET","HEAD"].includes(e)?t=As(t,l):"data"in l?o=l.data:Object.keys(l).length&&(o=l),!s["content-type"]&&typeof o<"u"&&(s["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof o>"u"&&(o=""),Object.assign({method:e,url:t,headers:s},typeof o<"u"?{body:o}:null,r.request?{request:r.request}:null)}function xs(r,e,t){return Ir($e(r,e,t))}function $r(r,e){const t=$e(r,e),s=xs.bind(null,t);return Object.assign(s,{DEFAULTS:t,defaults:$r.bind(null,t),merge:$e.bind(null,t),parse:Ir})}var Is=$r(null,Gs);class fr extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Qe={exports:{}},$s=jr;function jr(r,e){if(r&&e)return jr(r)(e);if(typeof r!="function")throw new TypeError("need wrapper function");return Object.keys(r).forEach(function(s){t[s]=r[s]}),t;function t(){for(var s=new Array(arguments.length),o=0;oconsole.warn(r)),Vs=zr(r=>console.warn(r)),he=class extends Error{constructor(r,e,t){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=e;let s;"headers"in t&&typeof t.headers<"u"&&(s=t.headers),"response"in t&&(this.response=t.response,s=t.response.headers);const o=Object.assign({},t.request);t.request.headers.authorization&&(o.headers=Object.assign({},t.request.headers,{authorization:t.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=o,Object.defineProperty(this,"code",{get(){return qs(new fr("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),e}}),Object.defineProperty(this,"headers",{get(){return Vs(new fr("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),s||{}}})}},zs="8.4.0";function Bs(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Hs(r){return r.arrayBuffer()}function br(r){var i,l,m,T;const e=r.request&&r.request.log?r.request.log:console,t=((i=r.request)==null?void 0:i.parseSuccessResponseBody)!==!1;(Bs(r.body)||Array.isArray(r.body))&&(r.body=JSON.stringify(r.body));let s={},o,a,{fetch:n}=globalThis;if((l=r.request)!=null&&l.fetch&&(n=r.request.fetch),!n)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return n(r.url,{method:r.method,body:r.body,redirect:(m=r.request)==null?void 0:m.redirect,headers:r.headers,signal:(T=r.request)==null?void 0:T.signal,...r.body&&{duplex:"half"}}).then(async p=>{a=p.url,o=p.status;for(const b of p.headers)s[b[0]]=b[1];if("deprecation"in s){const b=s.link&&s.link.match(/<([^>]+)>; rel="deprecation"/),k=b&&b.pop();e.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${s.sunset}${k?`. See ${k}`:""}`)}if(!(o===204||o===205)){if(r.method==="HEAD"){if(o<400)return;throw new he(p.statusText,o,{response:{url:a,status:o,headers:s,data:void 0},request:r})}if(o===304)throw new he("Not modified",o,{response:{url:a,status:o,headers:s,data:await De(p)},request:r});if(o>=400){const b=await De(p);throw new he(Ns(b),o,{response:{url:a,status:o,headers:s,data:b},request:r})}return t?await De(p):p.body}}).then(p=>({status:o,url:a,headers:s,data:p})).catch(p=>{if(p instanceof he)throw p;if(p.name==="AbortError")throw p;let b=p.message;throw p.name==="TypeError"&&"cause"in p&&(p.cause instanceof Error?b=p.cause.message:typeof p.cause=="string"&&(b=p.cause)),new he(b,500,{request:r})})}async function De(r){const e=r.headers.get("content-type");return/application\/json/.test(e)?r.json().catch(()=>r.text()).catch(()=>""):!e||/^text\/|charset=utf-8$/.test(e)?r.text():Hs(r)}function Ns(r){if(typeof r=="string")return r;let e;return"documentation_url"in r?e=` - ${r.documentation_url}`:e="","message"in r?Array.isArray(r.errors)?`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}${e}`:`${r.message}${e}`:`Unknown error: ${JSON.stringify(r)}`}function je(r,e){const t=r.defaults(e);return Object.assign(function(o,a){const n=t.merge(o,a);if(!n.request||!n.request.hook)return br(t.parse(n));const i=(l,m)=>br(t.parse(t.merge(l,m)));return Object.assign(i,{endpoint:t,defaults:je.bind(null,t)}),n.request.hook(i,n)},{endpoint:t,defaults:je.bind(null,t)})}var qe=je(Is,{headers:{"user-agent":`octokit-request.js/${zs} ${Ae()}`}}),Ms="7.1.0";function Ws(r){return`Request failed due to following response errors: `+r.errors.map(e=>` - ${e.message}`).join(` `)}var Ks=class extends Error{constructor(r,e,t){super(Ws(t)),this.request=r,this.headers=e,this.response=t,this.name="GraphqlResponseError",this.errors=t.errors,this.data=t.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Js=["method","baseUrl","url","headers","request","query","mediaType"],Qs=["query","method","url"],vr=/\/api\/v3\/?$/;function Zs(r,e,t){if(t){if(typeof e=="string"&&"query"in t)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const n in t)if(Qs.includes(n))return Promise.reject(new Error(`[@octokit/graphql] "${n}" cannot be used as variable name`))}const s=typeof e=="string"?Object.assign({query:e},t):e,o=Object.keys(s).reduce((n,i)=>Js.includes(i)?(n[i]=s[i],n):(n.variables||(n.variables={}),n.variables[i]=s[i],n),{}),a=s.baseUrl||r.endpoint.DEFAULTS.baseUrl;return vr.test(a)&&(o.url=a.replace(vr,"/api/graphql")),r(o).then(n=>{if(n.data.errors){const i={};for(const l of Object.keys(n.headers))i[l]=n.headers[l];throw new Ks(o,i,n.data)}return n.data.data})}function Ze(r,e){const t=r.defaults(e);return Object.assign((o,a)=>Zs(t,o,a),{defaults:Ze.bind(null,t),endpoint:t.endpoint})}Ze(qe,{headers:{"user-agent":`octokit-graphql.js/${Ms} ${Ae()}`},method:"POST",url:"/graphql"});function Xs(r){return Ze(r,{method:"POST",url:"/graphql"})}var Ys=/^v1\./,eo=/^ghs_/,ro=/^ghu_/;async function to(r){const e=r.split(/\./).length===3,t=Ys.test(r)||eo.test(r),s=ro.test(r);return{type:"token",token:r,tokenType:e?"app":t?"installation":s?"user-to-server":"oauth"}}function so(r){return r.split(/\./).length===3?`bearer ${r}`:`token ${r}`}async function oo(r,e,t,s){const o=e.endpoint.merge(t,s);return o.headers.authorization=so(r),e(o)}var no=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(to.bind(null,e),{hook:oo.bind(null,e)})},Br="5.2.0",_r=()=>{},ao=console.warn.bind(console),io=console.error.bind(console),wr=`octokit-core.js/${Br} ${Ae()}`,pe,co=(pe=class{static defaults(e){return class extends this{constructor(...s){const o=s[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugin(...e){var o;const t=this.plugins;return o=class extends this{},(()=>{o.plugins=t.concat(e.filter(n=>!t.includes(n)))})(),o}constructor(e={}){const t=new ys,s={baseUrl:qe.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${wr}`:wr,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=qe.defaults(s),this.graphql=Xs(this.request).defaults(s),this.log=Object.assign({debug:_r,info:_r,warn:ao,error:io},e.log),this.hook=t,e.authStrategy){const{authStrategy:a,...n}=e,i=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{const a=no(e.auth);t.wrap("request",a.hook),this.auth=a}const o=this.constructor;for(let a=0;a{pe.VERSION=Br})(),(()=>{pe.plugins=[]})(),pe),lo="4.0.1";function Hr(r){r.hook.wrap("request",(e,t)=>{r.log.debug("request",t);const s=Date.now(),o=r.request.endpoint.parse(t),a=o.url.replace(t.baseUrl,"");return e(t).then(n=>(r.log.info(`${o.method} ${a} - ${n.status} in ${Date.now()-s}ms`),n)).catch(n=>{throw r.log.info(`${o.method} ${a} - ${n.status} in ${Date.now()-s}ms`),n})})}Hr.VERSION=lo;var uo="11.3.1";function po(r){if(!r.data)return{...r,data:[]};if(!("total_count"in r.data&&!("url"in r.data)))return r;const t=r.data.incomplete_results,s=r.data.repository_selection,o=r.data.total_count;delete r.data.incomplete_results,delete r.data.repository_selection,delete r.data.total_count;const a=Object.keys(r.data)[0],n=r.data[a];return r.data=n,typeof t<"u"&&(r.data.incomplete_results=t),typeof s<"u"&&(r.data.repository_selection=s),r.data.total_count=o,r}function Xe(r,e,t){const s=typeof e=="function"?e.endpoint(t):r.request.endpoint(e,t),o=typeof e=="function"?e:r.request,a=s.method,n=s.headers;let i=s.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!i)return{done:!0};try{const l=await o({method:a,url:i,headers:n}),m=po(l);return i=((m.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:m}}catch(l){if(l.status!==409)throw l;return i="",{value:{status:200,headers:{},data:[]}}}}})}}function Nr(r,e,t,s){return typeof t=="function"&&(s=t,t=void 0),Mr(r,[],Xe(r,e,t)[Symbol.asyncIterator](),s)}function Mr(r,e,t,s){return t.next().then(o=>{if(o.done)return e;let a=!1;function n(){a=!0}return e=e.concat(s?s(o.value,n):o.value.data),a?e:Mr(r,e,t,s)})}Object.assign(Nr,{iterator:Xe});function Wr(r){return{paginate:Object.assign(Nr.bind(null,r),{iterator:Xe.bind(null,r)})}}Wr.VERSION=uo;var go="13.2.2",mo={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},ho=mo,re=new Map;for(const[r,e]of Object.entries(ho))for(const[t,s]of Object.entries(e)){const[o,a,n]=s,[i,l]=o.split(/ /),m=Object.assign({method:i,url:l},a);re.has(r)||re.set(r,new Map),re.get(r).set(t,{scope:r,methodName:t,endpointDefaults:m,decorations:n})}var To={has({scope:r},e){return re.get(r).has(e)},getOwnPropertyDescriptor(r,e){return{value:this.get(r,e),configurable:!0,writable:!0,enumerable:!0}},defineProperty(r,e,t){return Object.defineProperty(r.cache,e,t),!0},deleteProperty(r,e){return delete r.cache[e],!0},ownKeys({scope:r}){return[...re.get(r).keys()]},set(r,e,t){return r.cache[e]=t},get({octokit:r,scope:e,cache:t},s){if(t[s])return t[s];const o=re.get(e).get(s);if(!o)return;const{endpointDefaults:a,decorations:n}=o;return n?t[s]=fo(r,e,s,a,n):t[s]=r.request.defaults(a),t[s]}};function Eo(r){const e={};for(const t of re.keys())e[t]=new Proxy({octokit:r,scope:t,cache:{}},To);return e}function fo(r,e,t,s,o){const a=r.request.defaults(s);function n(...i){let l=a.endpoint.merge(...i);if(o.mapToData)return l=Object.assign({},l,{data:l[o.mapToData],[o.mapToData]:void 0}),a(l);if(o.renamed){const[m,T]=o.renamed;r.log.warn(`octokit.${e}.${t}() has been renamed to octokit.${m}.${T}()`)}if(o.deprecated&&r.log.warn(o.deprecated),o.renamedParameters){const m=a.endpoint.merge(...i);for(const[T,p]of Object.entries(o.renamedParameters))T in m&&(r.log.warn(`"${T}" parameter is deprecated for "octokit.${e}.${t}()". Use "${p}" instead`),p in m||(m[p]=m[T]),delete m[T]);return a(m)}return a(...i)}return Object.assign(n,a)}function Kr(r){const e=Eo(r);return{...e,rest:e}}Kr.VERSION=go;var bo="20.1.1",vo=co.plugin(Hr,Kr,Wr).defaults({userAgent:`octokit-rest.js/${bo}`});const _o={beforeDevCommand:"yarn dev",beforeBuildCommand:"yarn build",devPath:"http://localhost:5173",distDir:"../dist",withGlobalTauri:!1},wo={allowlist:{all:!0,fs:{all:!0,scope:["**"]},shell:{all:!0,open:!0,sidecar:!0,scope:[{name:"iib_api_server",sidecar:!0}]}},bundle:{active:!0,targets:"all",identifier:"com.zanllp.iib",icon:["icons/32x32.png","icons/128x128.png","icons/128x128@2x.png","icons/icon.icns","icons/icon.ico"],externalBin:["iib_api_server"]},security:{csp:null},windows:[{fullscreen:!1,resizable:!0,fileDropEnabled:!1,title:"Infinite Image Browsing",width:800,height:600,maximized:!0}]},yo={build:_o,package:{productName:"Infinite Image Browsing",version:"1.5.1"},tauri:wo},Jr=new vo,ko="v"+yo.package.version,ae=q(),Ve=q(""),Qr=q(""),Zr=q(""),ie=x(()=>({tag:Zr.value||ko,hash:Qr.value})),Po=x(()=>Ve.value?Ve.value!==ie.value.tag:!1);async function Go(r,e){try{return(await Jr.repos.listCommits({owner:r,repo:e,per_page:1})).data[0]}catch(t){console.error("Error fetching the latest commit:",t)}}async function Oo(r,e){try{return(await Jr.repos.getLatestRelease({owner:r,repo:e})).data}catch(t){console.error("Error fetching the latest release:",t)}}const yr="zanllp",kr="sd-webui-infinite-image-browsing";wt(500+500*Math.random()).then(async()=>{yt().then(e=>{Zr.value=e.tag??"",Qr.value=e.hash??""}),ae.value=await Go(yr,kr);const r=await Oo(yr,kr);Ve.value=(r==null?void 0:r.tag_name)??""});const te=r=>(Ft("data-v-418a804e"),r=r(),Ut(),r),So={class:"container"},Ao={class:"header"},Ro={class:"header-left"},Co={class:"magic-switch-compact"},Fo={class:"switch-tooltip"},Uo={class:"tooltip-title"},Do={class:"tooltip-status"},Lo={class:"tooltip-desc"},xo={class:"switch-bg"},Io=te(()=>u("div",{class:"switch-track"},null,-1)),$o={class:"switch-icon"},jo=te(()=>u("div",{class:"switch-glow"},null,-1)),qo={class:"switch-label"},Vo={key:0,style:{"margin-left":"16px","font-size":"1.5em"}},zo=te(()=>u("div",{"flex-placeholder":""},null,-1)),Bo=te(()=>u("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing",target:"_blank",class:"quick-action"},"Github",-1)),Ho={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.env.example",target:"_blank",class:"quick-action"},No=te(()=>u("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/releases",target:"_blank",class:"quick-action"},"Releases",-1)),Mo={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/wiki/Change-log",target:"_blank",class:"quick-action"},Wo={key:1,class:"quick-action"},Ko={style:{display:"grid",gap:"10px"}},Jo={style:{display:"flex",gap:"10px","align-items":"flex-start"}},Qo={style:{flex:"1","min-width":"0"}},Zo={style:{"font-weight":"600"}},Xo={style:{"margin-top":"6px",display:"flex",gap:"10px","flex-wrap":"wrap"}},Yo={style:{display:"flex",gap:"10px","align-items":"flex-start"}},en={style:{flex:"1","min-width":"0"}},rn={style:{"font-weight":"600"}},tn={style:{"margin-top":"6px"}},sn={style:{display:"flex",gap:"10px","align-items":"flex-start"}},on={style:{flex:"1","min-width":"0"}},nn={style:{"font-weight":"600"}},an={class:"access-mode-message"},cn=te(()=>u("div",{"flex-placeholder":""},null,-1)),ln={class:"content"},un={class:"feature-item"},pn={class:"text line-clamp-1"},dn={style:{margin:"0 6px"}},gn=te(()=>u("span",{style:{"margin-right":"8px"}},"🎲",-1)),mn=["onClick"],hn={class:"text line-clamp-2"},Tn={key:0,class:"feature-item"},En={class:"text line-clamp-1"},fn=["onClick"],bn={class:"text line-clamp-2"},vn={key:0,class:"fixed"},_n={class:"feature-item"},wn=["onClick"],yn={class:"text line-clamp-1"},kn={class:"text line-clamp-1"},Pn={class:"text line-clamp-1"},Gn={class:"text line-clamp-1"},On=["onClick"],Sn={class:"text line-clamp-1"},An={key:1,class:"feature-item recent"},Rn={class:"title"},Cn=["onClick"],Fn={class:"text line-clamp-1"},Un={key:0},Dn={key:1},Ln={key:2},xn={key:3},In="https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90",$n="https://github.com/zanllp/sd-webui-infinite-image-browsing/issues?q=",jn="https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/new",qn="mailto:qc@zanllp.cn",Vn=Q({__name:"emptyStartup",props:{tabIdx:{},paneIdx:{},popAddPathModal:{}},setup(r){const e=r,t=Sr(),s=kt(),o=Pt();Gt(()=>{e.popAddPathModal&&Fe(e.popAddPathModal.type,e.popAddPathModal.path)});const a=Ot(),n=q(!1),i={local:A("local"),"tag-search":A("imgSearch"),"fuzzy-search":A("fuzzy-search"),"topic-search":A("topicSearchExperimental"),"batch-download":A("batchDownload")+" / "+A("archive"),"workspace-snapshot":A("WorkspaceSnapshot"),"random-image":A("randomImage"),"global-setting":A("globalSettings")},l=(c,E,G)=>{let _;switch(c){case"grid-view":case"tag-search-matched-image-grid":case"topic-search-matched-image-grid":case"img-sli":return;case"global-setting":case"tag-search":case"batch-download":case"workspace-snapshot":case"fuzzy-search":case"topic-search":case"random-image":case"empty":_={type:c,name:i[c],key:Date.now()+Ce()};break;case"local":_={type:c,name:i[c],key:Date.now()+Ce(),path:E,mode:G==="scanned-fixed"||G==="walk"?G:"scanned"}}return _},m=(c,E,G)=>{const _=l(c,E,G);if(!_)return;const L=t.tabList[e.tabIdx];L.panes.splice(e.paneIdx,1,_),L.key=_.key},T=(c,E,G)=>{const _=l(c,E,G);if(!_)return;t.tabList[e.tabIdx].panes.push(_)},p=(c,E,G)=>{const _=l(c,E,G);if(!_)return;let L=t.tabList[e.tabIdx+1];L||(L={panes:[],key:"",id:Ce()},t.tabList[e.tabIdx+1]=L),L.panes.push(_),L.key=_.key},b=x(()=>{var c;return(c=t.tabListHistoryRecord)==null?void 0:c[1]}),k=x(()=>t.quickMovePaths.filter(({key:c,types:E})=>c==="outdir_txt2img_samples"||c==="outdir_img2img_samples"||c==="outdir_txt2img_grids"||c==="outdir_img2img_grids"||E.includes("walk"))),R=window.parent!==window,C=()=>window.parent.open("/infinite_image_browsing"+(window.parent.location.href.includes("theme=dark")?"?__theme=dark":"")),v=()=>{At(b.value),t.tabList=rr(b.value.tabs)},F=c=>{t.tabList=rr(c.tabs)},V=x(()=>{var c;return Le?"desktop application":((c=t.conf)==null?void 0:c.launch_mode)==="sd"?"sd-webui extension":"standalone"}),z=c=>!c||c==="scanned"?"":c==="walk"?"Walk: ":"Fixed: ",w=x(()=>{var E,G;const c=[];return(E=t.conf)!=null&&E.enable_access_control&&c.push("accessLimited"),(G=t.conf)!=null&&G.is_readonly&&c.push("readonly"),c.map(_=>A(_)).join(" + ")});return(c,E)=>{var ee,we,ye,ke;const G=Rt,_=Oe,L=Lt,Z=fe,Y=He,H=be,N=Ct,W=xe,K=xe;return y(),O("div",So,[u("div",Ao,[u("div",Ro,[u("h1",null,f(c.$t("welcome")),1),u("div",Co,[g(G,null,{title:S(()=>[u("div",Fo,[u("div",Uo,f(c.$t("magicSwitchTiktokView")),1),u("div",Do,f(h(t).magicSwitchTiktokView?c.$t("magicSwitchEnabled"):c.$t("magicSwitchDisabled")),1),u("div",Lo,f(c.$t("magicSwitchDetailDesc")),1)])]),default:S(()=>[u("div",{class:Ye(["ultra-cool-switch",{active:h(t).magicSwitchTiktokView}]),onClick:E[0]||(E[0]=d=>h(t).magicSwitchTiktokView=!h(t).magicSwitchTiktokView)},[u("div",xo,[Io,u("div",{class:Ye(["switch-thumb",{active:h(t).magicSwitchTiktokView}])},[u("span",$o,f(h(t).magicSwitchTiktokView?"🎬":"📁"),1)],2),jo]),u("span",qo,f(c.$t("tiktokView")),1)],2)]),_:1})])]),(ee=h(t).conf)!=null&&ee.enable_access_control&&h(t).dontShowAgain?(y(),O("div",Vo,[g(h(ar),{title:"Access Control mode",style:{"vertical-align":"text-bottom"}})])):j("",!0),zo,Bo,u("a",Ho,f(c.$t("privacyAndSecurity")),1),g(_,{count:h(Po)?"new":null,offset:[2,0],color:"geekblue"},{default:S(()=>[No]),_:1},8,["count"]),u("a",Mo,f(c.$t("changlog")),1),u("a",{href:"#",class:"quick-action",onClick:E[1]||(E[1]=M(d=>n.value=!0,["prevent"]))},f(c.$t("helpFeedback")),1),h(Le)?j("",!0):(y(),O("div",Wo,[I(f(c.$t("sync"))+" ",1),g(G,{title:c.$t("syncDesc")},{default:S(()=>[g(h(lr))]),_:1},8,["title"]),I(" : "),g(L,{checked:h(a),"onUpdate:checked":E[2]||(E[2]=d=>St(a)?a.value=d:null)},null,8,["checked"])])),g(Y,{value:h(t).darkModeControl,"onUpdate:value":E[3]||(E[3]=d=>h(t).darkModeControl=d),"button-style":"solid"},{default:S(()=>[g(Z,{value:"light"},{default:S(()=>[I("Light")]),_:1}),g(Z,{value:"auto"},{default:S(()=>[I("Auto")]),_:1}),g(Z,{value:"dark"},{default:S(()=>[I("Dark")]),_:1})]),_:1},8,["value"])]),g(H,{visible:n.value,"onUpdate:visible":E[4]||(E[4]=d=>n.value=d),title:c.$t("helpFeedback"),footer:null,"mask-closable":!0,width:"520px"},{default:S(()=>[u("div",Ko,[u("div",Jo,[g(h(lr),{style:{"margin-top":"2px",opacity:"0.85"}}),u("div",Qo,[u("div",Zo,f(c.$t("helpFeedbackWay1")),1),u("div",Xo,[u("a",{href:In,target:"_blank",rel:"noopener noreferrer"},f(c.$t("faq")),1),u("a",{href:$n,target:"_blank",rel:"noopener noreferrer"},f(c.$t("helpFeedbackSearchIssues")),1)])])]),u("div",Yo,[g(h(os),{style:{"margin-top":"2px",opacity:"0.85"}}),u("div",en,[u("div",rn,f(c.$t("helpFeedbackWay2")),1),u("div",tn,[u("a",{href:jn,target:"_blank",rel:"noopener noreferrer"},f(c.$t("helpFeedbackNewIssue")),1)])])]),u("div",sn,[g(h(ps),{style:{"margin-top":"2px",opacity:"0.85"}}),u("div",on,[u("div",nn,f(c.$t("helpFeedbackWay3")),1),u("div",{style:{"margin-top":"6px"}},[u("a",{href:qn},"qc@zanllp.cn")])])])])]),_:1},8,["visible","title"]),(we=h(t).conf)!=null&&we.enable_access_control&&!h(t).dontShowAgain?(y(),Te(N,{key:0,"show-icon":""},{message:S(()=>[u("div",an,[u("div",null,f(c.$t("accessControlModeTips")),1),cn,u("a",{onClick:E[5]||(E[5]=M(d=>h(t).dontShowAgain=!0,["prevent"]))},f(c.$t("dontShowAgain")),1)])]),icon:S(()=>[g(h(ar))]),_:1})):j("",!0),u("div",ln,[u("div",un,[u("h2",null,f(c.$t("walkMode")),1),u("ul",null,[u("li",{onClick:E[6]||(E[6]=d=>h(Fe)("walk")),class:"item"},[u("span",pn,[g(h(er)),I(" "+f(c.$t("add")),1)])]),h(t).showRandomImageInStartup?(y(),Te(W,{key:0,onClick:E[7]||(E[7]=d=>m("random-image")),type:"primary",style:{"border-radius":"100vw","margin-bottom":"8px"},ghost:""},{default:S(()=>[u("span",dn,[gn,I(f(c.$t("tryMyLuck")),1)])]),_:1})):j("",!0),(y(!0),O(J,null,oe(k.value,d=>(y(),Te(dr,{key:d.key,onOpenInNewTab:U=>T("local",d.dir,"walk"),onOpenOnTheRight:U=>p("local",d.dir,"walk")},{default:S(()=>[u("li",{class:"item rem",onClick:M(U=>m("local",d.dir,"walk"),["prevent"])},[u("span",hn,f(d.zh),1),d.can_delete?(y(),O(J,{key:0},[g(K,{type:"link",onClick:M(U=>h(pr)(d.dir),["stop"])},{default:S(()=>[I(f(c.$t("alias")),1)]),_:2},1032,["onClick"]),g(K,{type:"link",onClick:M(U=>h(ur)(d.dir,"walk"),["stop"])},{default:S(()=>[I(f(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):j("",!0)],8,mn)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))])]),h(t).quickMovePaths.length?(y(),O("div",Tn,[u("h2",null,f(c.$t("launchFromNormalAndFixed")),1),u("ul",null,[u("li",{onClick:E[8]||(E[8]=d=>h(Fe)("scanned-fixed")),class:"item"},[u("span",En,[g(h(er)),I(" "+f(c.$t("add")),1)])]),(y(!0),O(J,null,oe(h(t).quickMovePaths.filter(({types:d})=>d.includes("cli_access_only")||d.includes("preset")||d.includes("scanned")||d.includes("scanned-fixed")),d=>(y(),O(J,{key:d.key},[(y(!0),O(J,null,oe(d.types.filter(U=>U!=="walk"),U=>(y(),Te(dr,{key:U,onOpenInNewTab:se=>T("local",d.dir,U),onOpenOnTheRight:se=>p("local",d.dir,U)},{default:S(()=>[u("li",{class:"item rem",onClick:M(se=>m("local",d.dir,U),["prevent"])},[u("span",bn,[U=="scanned-fixed"?(y(),O("span",vn,"Fixed")):j("",!0),I(f(d.zh),1)]),d.can_delete&&(U==="scanned-fixed"||U==="scanned")?(y(),O(J,{key:0},[g(K,{type:"link",onClick:M(se=>h(pr)(d.dir),["stop"])},{default:S(()=>[I(f(c.$t("alias")),1)]),_:2},1032,["onClick"]),g(K,{type:"link",onClick:M(se=>h(ur)(d.dir,U),["stop"])},{default:S(()=>[I(f(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):j("",!0)],8,fn)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))],64))),128))])])):j("",!0),u("div",_n,[u("h2",null,f(c.$t("launch")),1),u("ul",null,[(y(!0),O(J,null,oe(Object.keys(i),d=>(y(),O("li",{key:d,class:"item",onClick:M(U=>m(d),["prevent"])},[u("span",yn,f(i[d]),1)],8,wn))),128)),u("li",{class:"item",onClick:E[9]||(E[9]=d=>h(s).opened=!0)},[u("span",kn,f(c.$t("imgCompare")),1)]),R?(y(),O("li",{key:0,class:"item",onClick:C},[u("span",Pn,f(c.$t("openThisAppInNewWindow")),1)])):j("",!0),(ye=b.value)!=null&&ye.tabs.length?(y(),O("li",{key:1,class:"item",onClick:v},[u("span",Gn,f(c.$t("restoreLastWorkspaceState")),1)])):j("",!0),(y(!0),O(J,null,oe(h(o).snapshots,d=>(y(),O("li",{class:"item",key:d.id,onClick:U=>F(d)},[u("span",Sn,f(c.$t("restoreWorkspaceSnapshot",[d.name])),1)],8,On))),128))])]),h(t).recent.length?(y(),O("div",An,[u("div",Rn,[u("h2",null,f(c.$t("recent")),1),g(K,{onClick:E[10]||(E[10]=d=>h(t).recent=[]),type:"link"},{default:S(()=>[I(f(c.$t("clear")),1)]),_:1})]),u("ul",null,[(y(!0),O(J,null,oe(h(t).recent,d=>(y(),O("li",{key:d.key,class:"item",onClick:M(U=>m("local",d.path,d.mode),["prevent"])},[g(h(es),{class:"icon"}),u("span",Fn,f(z(d.mode))+f(h(t).getShortPath(d.path)),1)],8,Cn))),128))])])):j("",!0)]),u("div",{class:"ver-info",onDblclick:E[11]||(E[11]=d=>h(le).info("Ciallo~(∠・ω< )⌒☆"))},[w.value?(y(),O("div",Un," Mode: "+f(w.value),1)):j("",!0),u("div",null," Version: "+f(h(ie).tag)+" ("+f(V.value)+") ",1),h(ie).hash?(y(),O("div",Dn," Hash: "+f(h(ie).hash),1)):j("",!0),h(ae)&&h(ie).hash&&h(ae).sha!==h(ie).hash?(y(),O("div",Ln," Not the latest commit ")):j("",!0),h(ae)?(y(),O("div",xn," Latest Commit: "+f(h(ae).sha)+" (Updated at "+f((ke=h(ae).commit.author)==null?void 0:ke.date)+") ",1)):j("",!0)],32)])}}});const Kn=Dt(Vn,[["__scopeId","data-v-418a804e"]]);export{Kn as default}; diff --git a/vue/dist/assets/globalSetting-c284fbc0.js b/vue/dist/assets/globalSetting-ed72e088.js similarity index 96% rename from vue/dist/assets/globalSetting-c284fbc0.js rename to vue/dist/assets/globalSetting-ed72e088.js index 4e1ece1..b446f8d 100644 --- a/vue/dist/assets/globalSetting-c284fbc0.js +++ b/vue/dist/assets/globalSetting-ed72e088.js @@ -1 +1 @@ -import{c as t,A as ce,d as E,a1 as G,r as K,m as pe,n as ee,U as _,V as S,a3 as s,a4 as e,B as o,a2 as M,$ as U,W as g,Z as O,G as P,o as me,Y as p,aM as q,X as C,a8 as D,ac as W,aR as ge,z as B,ak as L,ah as he,aj as te,a0 as ae,aK as _e,aS as fe,J as ve,K as be,aT as ke,aU as ye,ad as we,a6 as Ce,ag as Se,a5 as X,a9 as Te,aV as $e,aW as Ie,aX as xe,aY as Re,aO as Ue}from"./index-0205daf8.js";import{_ as z,a as le,F as Me}from"./numInput-a524d3bc.js";import"./index-b9ffc995.js";/* empty css *//* empty css */import{_ as oe}from"./index-728b29ca.js";import"./index-859cb083.js";import{g as Oe,C as Y,_ as Pe}from"./shortcut-eca2d427.js";import"./isArrayLikeObject-55a21cf1.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";import"./index-6a8edab1.js";import"./Checkbox-951f37ba.js";var Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Ve=Fe;function J(y){for(var a=1;a{const k=new Image;k.onload=()=>{const m=document.createElement("canvas");m.width=k.width*h,m.height=k.height*h,m.getContext("2d").drawImage(k,0,0,m.width,m.height),b(m.toDataURL())},k.src=w})}const u=G(),f=K("");return pe(()=>[u.enableThumbnail,u.gridThumbnailResolution],ee(async()=>{u.enableThumbnail&&(f.value=await a(Q,u.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),(w,h)=>{const b=le,k=oe;return _(),S(O,null,[t(b,{label:e(o)("defaultGridCellWidth")},{default:s(()=>[t(z,{min:64,max:1024,step:16,modelValue:e(u).defaultGridCellWidth,"onUpdate:modelValue":h[0]||(h[0]=m=>e(u).defaultGridCellWidth=m)},null,8,["modelValue"])]),_:1},8,["label"]),t(b,{label:e(o)("useThumbnailPreview")},{default:s(()=>[t(k,{checked:e(u).enableThumbnail,"onUpdate:checked":h[1]||(h[1]=m=>e(u).enableThumbnail=m)},null,8,["checked"])]),_:1},8,["label"]),e(u).enableThumbnail?(_(),M(b,{key:0,label:e(o)("thumbnailResolution")},{default:s(()=>[t(z,{modelValue:e(u).gridThumbnailResolution,"onUpdate:modelValue":h[2]||(h[2]=m=>e(u).gridThumbnailResolution=m),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):U("",!0),t(b,{label:e(o)("livePreview")},{default:s(()=>[g("div",null,[g("img",{width:e(u).defaultGridCellWidth,height:e(u).defaultGridCellWidth,src:e(u).enableThumbnail?f.value:e(Q)},null,8,We)])]),_:1},8,["label"]),t(b,{label:e(o)("defaultShowChangeIndicators")},{default:s(()=>[t(k,{checked:e(u).defaultChangeIndchecked,"onUpdate:checked":h[3]||(h[3]=m=>e(u).defaultChangeIndchecked=m)},null,8,["checked"])]),_:1},8,["label"]),e(u).defaultChangeIndchecked?(_(),M(b,{key:1,label:e(o)("defaultSeedAsChange")},{default:s(()=>[t(k,{checked:e(u).defaultSeedChangeChecked,"onUpdate:checked":h[4]||(h[4]=m=>e(u).defaultSeedChangeChecked=m)},null,8,["checked"])]),_:1},8,["label"])):U("",!0),t(b,{label:e(o)("previewMaskBackgroundOpacity")},{default:s(()=>[t(z,{min:0,max:1,step:.05,modelValue:e(u).previewBgOpacity,"onUpdate:modelValue":h[5]||(h[5]=m=>e(u).previewBgOpacity=m)},null,8,["modelValue"])]),_:1},8,["label"])],64)}}}),De={class:"auto-tag-settings"},Ne={class:"header"},Be={class:"description"},Le={class:"actions"},Ee={class:"rules-list"},Ge={class:"rule-header"},Ke={class:"filters-list"},je={key:0,class:"empty-tip"},He=E({__name:"AutoTagSettings",setup(y){const a=K([]),u=G(),f=P(()=>{var r,T;return((T=(r=u.conf)==null?void 0:r.all_custom_tags)==null?void 0:T.filter(v=>v.type==="custom"))||[]}),w={value:r=>r.name,text:r=>r.display_name?`${r.display_name} : ${r.name}`:r.name};me(()=>{var T,v;const r=(v=(T=u.conf)==null?void 0:T.app_fe_setting)==null?void 0:v.auto_tag_rules;r&&(a.value=r)});const h=()=>{a.value.push({tag:"",filters:[]})},b=r=>{a.value.splice(r,1)},k=r=>{r.filters.push({field:"pos_prompt",operator:"contains",value:""})},m=(r,T)=>{r.filters.splice(T,1)},F=async()=>{try{await ge("auto_tag_rules",a.value),B.success(o("autoTag.saveSuccess")),u.conf&&u.conf.app_fe_setting&&(u.conf.app_fe_setting.auto_tag_rules=a.value)}catch(r){B.error(o("autoTag.saveFail")+": "+r)}},N=P(()=>[{label:o("autoTag.fields.posPrompt"),value:"pos_prompt"},{label:o("autoTag.fields.negPrompt"),value:"neg_prompt"},{label:o("autoTag.fields.model"),value:"Model"},{label:o("autoTag.fields.sampler"),value:"Sampler"},{label:o("autoTag.fields.size"),value:"Size"},{label:o("autoTag.fields.cfgScale"),value:"CFG scale"},{label:o("autoTag.fields.steps"),value:"Steps"},{label:o("autoTag.fields.seed"),value:"Seed"}]),V=P(()=>[{label:o("autoTag.operators.contains"),value:"contains"},{label:o("autoTag.operators.equals"),value:"equals"},{label:o("autoTag.operators.regex"),value:"regex"}]);return(r,T)=>{const v=L,n=he,l=te;return _(),S("div",De,[g("div",Ne,[g("div",Be,p(e(o)("autoTag.description")),1),g("div",Le,[t(v,{type:"primary",onClick:h},{icon:s(()=>[t(e(q))]),default:s(()=>[C(" "+p(e(o)("autoTag.addRule")),1)]),_:1}),t(v,{type:"primary",onClick:F,style:{"margin-left":"16px"}},{default:s(()=>[C(p(e(o)("autoTag.saveConfig")),1)]),_:1})])]),g("div",Ee,[(_(!0),S(O,null,D(a.value,(c,I)=>(_(),S("div",{key:I,class:"rule-card"},[g("div",Ge,[t(e(W),{conv:w,style:{width:"240px"},options:f.value,value:c.tag,"onUpdate:value":d=>c.tag=d,disabled:!f.value.length,placeholder:e(o)("autoTag.inputTagName")},null,8,["options","value","onUpdate:value","disabled","placeholder"]),t(v,{type:"text",danger:"",onClick:d=>b(I)},{icon:s(()=>[t(e(Z))]),_:2},1032,["onClick"])]),g("div",Ke,[(_(!0),S(O,null,D(c.filters,(d,$)=>(_(),S("div",{key:$,class:"filter-row"},[t(n,{value:d.field,"onUpdate:value":x=>d.field=x,style:{width:"240px"},options:N.value},null,8,["value","onUpdate:value","options"]),t(n,{value:d.operator,"onUpdate:value":x=>d.operator=x,style:{width:"160px"},options:V.value},null,8,["value","onUpdate:value","options"]),t(l,{value:d.value,"onUpdate:value":x=>d.value=x,placeholder:e(o)("autoTag.value"),style:{flex:"1"}},null,8,["value","onUpdate:value","placeholder"]),t(v,{type:"text",danger:"",onClick:x=>m(c,$)},{icon:s(()=>[t(e(Z))]),_:2},1032,["onClick"])]))),128)),t(v,{type:"dashed",block:"",onClick:d=>k(c),style:{"margin-top":"8px"}},{icon:s(()=>[t(e(q))]),default:s(()=>[C(" "+p(e(o)("autoTag.addFilter")),1)]),_:2},1032,["onClick"])])]))),128))]),a.value.length===0?(_(),S("div",je,p(e(o)("autoTag.noRules")),1)):U("",!0)])}}});const qe=ae(He,[["__scopeId","data-v-5bd94ce6"]]),Xe={class:"panel"},Ye={class:"lang-select-wrap"},Je={style:{"margin-top":"64px"}},Ze={style:{"margin-top":"64px"}},Qe={style:{"margin-left":"8px",color:"#666"}},et={style:{"margin-top":"0"}},tt={style:{"padding-left":"8px",color:"#666"}},at={class:"col"},lt=E({__name:"globalSetting",setup(y){const a=G(),u=_e(),f=K(!1),w=async()=>{window.location.reload()},h=[{value:"en",text:"English"},{value:"zhHans",text:"简体中文"},{value:"zhHant",text:"繁體中文"},{value:"de",text:"Deutsch"}],b=ee(n=>{const l=a.shortcut[n];["ctrl","shift"].includes(l.toLowerCase())&&(a.shortcut[n]="")},700),k=fe(()=>{B.warn(o("notAllowSingleCtrlOrShiftAsShortcut"))},3e3),m=(n,l)=>{const c=Oe(n);["ctrl","shift"].includes(c.toLowerCase())&&(k(),b(l)),c&&(a.shortcut[l]=c)},F=async()=>{await $e("shutdown_api_server_command"),await Ie.removeFile(xe),await Re()},N=P(()=>[{value:"empty",text:o("emptyStartPage")},{value:"last-workspace-state",text:o("restoreLastWorkspaceState")},...u.snapshots.map(l=>({value:`workspace_snapshot_${l.id}`,text:o("restoreWorkspaceSnapshot",[l.name])}))]),V=P(()=>{const n=a.shortcut,l={};return Object.values(n).forEach(c=>{var I;l[I=c+""]??(l[I]=0),l[c+""]++}),l}),r=P(()=>{var l;const n=[{key:"download",label:o("download")},{key:"delete",label:o("deleteSelected")}];return(l=a.conf)==null||l.all_custom_tags.forEach(c=>{n.push({key:`toggle_tag_${c.name}`,label:o("toggleTagSelection",{tag:c.name})})}),a.quickMovePaths.forEach(c=>{n.push({key:`copy_to_${c.dir}`,label:o("copyTo")+" "+c.zh})}),a.quickMovePaths.forEach(c=>{n.push({key:`move_to_${c.dir}`,label:o("moveTo")+" "+c.zh})}),n}),T=n=>n&&n in V.value&&V.value[n]>1,v=ve(be+"disable_maximize",!1);return(n,l)=>{var H;const c=Ue,I=L,d=le,$=oe,x=L,ne=z,A=Y,se=Pe,ue=Y,ie=te,de=Me;return _(),S("div",Xe,[(H=e(a).conf)!=null&&H.is_readonly?(_(),M(c,{key:0,message:n.$t("readonlyModeSettingPageDesc"),type:"warning"},null,8,["message"])):U("",!0),U("",!0),t(de,null,{default:s(()=>[t(d,{label:n.$t("lang")},{default:s(()=>[g("div",Ye,[t(e(W),{options:h,value:e(a).lang,"onUpdate:value":l[0]||(l[0]=i=>e(a).lang=i),onChange:l[1]||(l[1]=i=>f.value=!0)},null,8,["value"])]),f.value?(_(),M(I,{key:0,type:"primary",onClick:w,ghost:""},{default:s(()=>[C(p(e(o)("langChangeReload")),1)]),_:1})):U("",!0)]),_:1},8,["label"]),g("h2",Je,p(e(o)("ImageBrowsingSettings")),1),t(ze),g("h2",Ze,p(e(o)("autoTag.name")),1),t(qe),g("h2",null,"TikTok "+p(e(o)("view")),1),t(d,{label:n.$t("showTiktokNavigator")},{default:s(()=>[t($,{checked:e(a).showTiktokNavigator,"onUpdate:checked":l[2]||(l[2]=i=>e(a).showTiktokNavigator=i)},null,8,["checked"]),g("span",Qe,p(e(o)("showTiktokNavigatorDesc")),1)]),_:1},8,["label"]),g("h2",null,p(e(o)("imgSearch")),1),t(d,{label:n.$t("rebuildImageIndex")},{default:s(()=>[t(x,{onClick:e(ke)},{default:s(()=>[C(p(n.$t("start")),1)]),_:1},8,["onClick"])]),_:1},8,["label"]),g("h2",null,p(e(o)("autoRefresh")),1),t(d,{label:n.$t("autoRefreshWalkMode")},{default:s(()=>[t($,{checked:e(a).autoRefreshWalkMode,"onUpdate:checked":l[3]||(l[3]=i=>e(a).autoRefreshWalkMode=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("autoRefreshNormalFixedMode")},{default:s(()=>[t($,{checked:e(a).autoRefreshNormalFixedMode,"onUpdate:checked":l[4]||(l[4]=i=>e(a).autoRefreshNormalFixedMode=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:e(o)("autoRefreshWalkModePosLimit")},{default:s(()=>[t(ne,{min:0,max:1024,step:16,modelValue:e(a).autoRefreshWalkModePosLimit,"onUpdate:modelValue":l[5]||(l[5]=i=>e(a).autoRefreshWalkModePosLimit=i)},null,8,["modelValue"])]),_:1},8,["label"]),g("h2",et,p(e(o)("other")),1),t(d,{label:n.$t("fileTypeFilter")},{default:s(()=>[t(se,{value:e(a).fileTypeFilter,"onUpdate:value":l[6]||(l[6]=i=>e(a).fileTypeFilter=i)},{default:s(()=>[t(A,{value:"all"},{default:s(()=>[C(p(n.$t("allFiles")),1)]),_:1}),t(A,{value:"image"},{default:s(()=>[C(p(n.$t("image")),1)]),_:1}),t(A,{value:"video"},{default:s(()=>[C(p(n.$t("video")),1)]),_:1}),t(A,{value:"audio"},{default:s(()=>[C(p(n.$t("audio")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"]),t(d,{label:n.$t("showCommaInGenInfoPanel")},{default:s(()=>[t($,{checked:e(a).showCommaInInfoPanel,"onUpdate:checked":l[7]||(l[7]=i=>e(a).showCommaInInfoPanel=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("showRandomImageInStartup")},{default:s(()=>[t($,{checked:e(a).showRandomImageInStartup,"onUpdate:checked":l[8]||(l[8]=i=>e(a).showRandomImageInStartup=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("defaultSortingMethod")},{default:s(()=>[t(e(W),{value:e(a).defaultSortingMethod,"onUpdate:value":l[9]||(l[9]=i=>e(a).defaultSortingMethod=i),conv:e(ye),options:e(we)},null,8,["value","conv","options"])]),_:1},8,["label"]),t(d,{label:n.$t("longPressOpenContextMenu")},{default:s(()=>[t($,{checked:e(a).longPressOpenContextMenu,"onUpdate:checked":l[10]||(l[10]=i=>e(a).longPressOpenContextMenu=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("openOnAppStart")},{default:s(()=>[t(e(W),{value:e(a).defaultInitinalPage,"onUpdate:value":l[11]||(l[11]=i=>e(a).defaultInitinalPage=i),options:N.value},null,8,["value","options"])]),_:1},8,["label"]),(_(!0),S(O,null,D(e(a).ignoredConfirmActions,(i,R)=>(_(),M(d,{label:n.$t(R+"SkipConfirm"),key:R},{default:s(()=>[t(ue,{checked:e(a).ignoredConfirmActions[R],"onUpdate:checked":re=>e(a).ignoredConfirmActions[R]=re},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"]))),128)),t(d,{label:n.$t("disableMaximize")},{default:s(()=>[t($,{checked:e(v),"onUpdate:checked":l[12]||(l[12]=i=>Ce(v)?v.value=i:null)},null,8,["checked"]),g("sub",tt,p(n.$t("takeEffectAfterReloadPage")),1)]),_:1},8,["label"]),g("h2",null,p(e(o)("shortcutKey")),1),(_(!0),S(O,null,D(r.value,i=>(_(),M(d,{label:i.label,key:i.key},{default:s(()=>[g("div",{class:Se(["col",{conflict:T(e(a).shortcut[i.key]+"")}]),onKeydown:l[13]||(l[13]=X(()=>{},["stop","prevent"]))},[t(ie,{value:e(a).shortcut[i.key],onKeydown:X(R=>m(R,i.key),["stop","prevent"]),placeholder:n.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),t(I,{onClick:R=>e(a).shortcut[i.key]="",class:"clear-btn"},{default:s(()=>[C(p(n.$t("clear")),1)]),_:2},1032,["onClick"])],34)]),_:2},1032,["label"]))),128)),e(Te)?(_(),S(O,{key:0},[g("h2",null,p(e(o)("clientSpecificSettings")),1),t(d,null,{default:s(()=>[g("div",at,[t(I,{onClick:F,class:"clear-btn"},{default:s(()=>[C(p(n.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):U("",!0)]),_:1})])}}});const _t=ae(lt,[["__scopeId","data-v-2522743a"]]);export{_t as default}; +import{c as t,A as ce,d as E,a1 as G,r as K,m as pe,n as ee,U as _,V as S,a3 as s,a4 as e,B as o,a2 as M,$ as U,W as g,Z as O,G as P,o as me,Y as p,aM as q,X as C,a8 as D,ac as W,aR as ge,z as B,ak as L,ah as he,aj as te,a0 as ae,aK as _e,aS as fe,J as ve,K as be,aT as ke,aU as ye,ad as we,a6 as Ce,ag as Se,a5 as X,a9 as Te,aV as $e,aW as Ie,aX as xe,aY as Re,aO as Ue}from"./index-157194fb.js";import{_ as z,a as le,F as Me}from"./numInput-8bb1e710.js";import"./index-b39f3e91.js";/* empty css *//* empty css */import{_ as oe}from"./index-89286149.js";import"./index-1c4f06bb.js";import{g as Oe,C as Y,_ as Pe}from"./shortcut-f1e6388a.js";import"./isArrayLikeObject-ca08191a.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js";import"./index-8e3285c7.js";import"./Checkbox-431074e2.js";var Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Ve=Fe;function J(y){for(var a=1;a{const k=new Image;k.onload=()=>{const m=document.createElement("canvas");m.width=k.width*h,m.height=k.height*h,m.getContext("2d").drawImage(k,0,0,m.width,m.height),b(m.toDataURL())},k.src=w})}const u=G(),f=K("");return pe(()=>[u.enableThumbnail,u.gridThumbnailResolution],ee(async()=>{u.enableThumbnail&&(f.value=await a(Q,u.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),(w,h)=>{const b=le,k=oe;return _(),S(O,null,[t(b,{label:e(o)("defaultGridCellWidth")},{default:s(()=>[t(z,{min:64,max:1024,step:16,modelValue:e(u).defaultGridCellWidth,"onUpdate:modelValue":h[0]||(h[0]=m=>e(u).defaultGridCellWidth=m)},null,8,["modelValue"])]),_:1},8,["label"]),t(b,{label:e(o)("useThumbnailPreview")},{default:s(()=>[t(k,{checked:e(u).enableThumbnail,"onUpdate:checked":h[1]||(h[1]=m=>e(u).enableThumbnail=m)},null,8,["checked"])]),_:1},8,["label"]),e(u).enableThumbnail?(_(),M(b,{key:0,label:e(o)("thumbnailResolution")},{default:s(()=>[t(z,{modelValue:e(u).gridThumbnailResolution,"onUpdate:modelValue":h[2]||(h[2]=m=>e(u).gridThumbnailResolution=m),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):U("",!0),t(b,{label:e(o)("livePreview")},{default:s(()=>[g("div",null,[g("img",{width:e(u).defaultGridCellWidth,height:e(u).defaultGridCellWidth,src:e(u).enableThumbnail?f.value:e(Q)},null,8,We)])]),_:1},8,["label"]),t(b,{label:e(o)("defaultShowChangeIndicators")},{default:s(()=>[t(k,{checked:e(u).defaultChangeIndchecked,"onUpdate:checked":h[3]||(h[3]=m=>e(u).defaultChangeIndchecked=m)},null,8,["checked"])]),_:1},8,["label"]),e(u).defaultChangeIndchecked?(_(),M(b,{key:1,label:e(o)("defaultSeedAsChange")},{default:s(()=>[t(k,{checked:e(u).defaultSeedChangeChecked,"onUpdate:checked":h[4]||(h[4]=m=>e(u).defaultSeedChangeChecked=m)},null,8,["checked"])]),_:1},8,["label"])):U("",!0),t(b,{label:e(o)("previewMaskBackgroundOpacity")},{default:s(()=>[t(z,{min:0,max:1,step:.05,modelValue:e(u).previewBgOpacity,"onUpdate:modelValue":h[5]||(h[5]=m=>e(u).previewBgOpacity=m)},null,8,["modelValue"])]),_:1},8,["label"])],64)}}}),De={class:"auto-tag-settings"},Ne={class:"header"},Be={class:"description"},Le={class:"actions"},Ee={class:"rules-list"},Ge={class:"rule-header"},Ke={class:"filters-list"},je={key:0,class:"empty-tip"},He=E({__name:"AutoTagSettings",setup(y){const a=K([]),u=G(),f=P(()=>{var r,T;return((T=(r=u.conf)==null?void 0:r.all_custom_tags)==null?void 0:T.filter(v=>v.type==="custom"))||[]}),w={value:r=>r.name,text:r=>r.display_name?`${r.display_name} : ${r.name}`:r.name};me(()=>{var T,v;const r=(v=(T=u.conf)==null?void 0:T.app_fe_setting)==null?void 0:v.auto_tag_rules;r&&(a.value=r)});const h=()=>{a.value.push({tag:"",filters:[]})},b=r=>{a.value.splice(r,1)},k=r=>{r.filters.push({field:"pos_prompt",operator:"contains",value:""})},m=(r,T)=>{r.filters.splice(T,1)},F=async()=>{try{await ge("auto_tag_rules",a.value),B.success(o("autoTag.saveSuccess")),u.conf&&u.conf.app_fe_setting&&(u.conf.app_fe_setting.auto_tag_rules=a.value)}catch(r){B.error(o("autoTag.saveFail")+": "+r)}},N=P(()=>[{label:o("autoTag.fields.posPrompt"),value:"pos_prompt"},{label:o("autoTag.fields.negPrompt"),value:"neg_prompt"},{label:o("autoTag.fields.model"),value:"Model"},{label:o("autoTag.fields.sampler"),value:"Sampler"},{label:o("autoTag.fields.size"),value:"Size"},{label:o("autoTag.fields.cfgScale"),value:"CFG scale"},{label:o("autoTag.fields.steps"),value:"Steps"},{label:o("autoTag.fields.seed"),value:"Seed"}]),V=P(()=>[{label:o("autoTag.operators.contains"),value:"contains"},{label:o("autoTag.operators.equals"),value:"equals"},{label:o("autoTag.operators.regex"),value:"regex"}]);return(r,T)=>{const v=L,n=he,l=te;return _(),S("div",De,[g("div",Ne,[g("div",Be,p(e(o)("autoTag.description")),1),g("div",Le,[t(v,{type:"primary",onClick:h},{icon:s(()=>[t(e(q))]),default:s(()=>[C(" "+p(e(o)("autoTag.addRule")),1)]),_:1}),t(v,{type:"primary",onClick:F,style:{"margin-left":"16px"}},{default:s(()=>[C(p(e(o)("autoTag.saveConfig")),1)]),_:1})])]),g("div",Ee,[(_(!0),S(O,null,D(a.value,(c,I)=>(_(),S("div",{key:I,class:"rule-card"},[g("div",Ge,[t(e(W),{conv:w,style:{width:"240px"},options:f.value,value:c.tag,"onUpdate:value":d=>c.tag=d,disabled:!f.value.length,placeholder:e(o)("autoTag.inputTagName")},null,8,["options","value","onUpdate:value","disabled","placeholder"]),t(v,{type:"text",danger:"",onClick:d=>b(I)},{icon:s(()=>[t(e(Z))]),_:2},1032,["onClick"])]),g("div",Ke,[(_(!0),S(O,null,D(c.filters,(d,$)=>(_(),S("div",{key:$,class:"filter-row"},[t(n,{value:d.field,"onUpdate:value":x=>d.field=x,style:{width:"240px"},options:N.value},null,8,["value","onUpdate:value","options"]),t(n,{value:d.operator,"onUpdate:value":x=>d.operator=x,style:{width:"160px"},options:V.value},null,8,["value","onUpdate:value","options"]),t(l,{value:d.value,"onUpdate:value":x=>d.value=x,placeholder:e(o)("autoTag.value"),style:{flex:"1"}},null,8,["value","onUpdate:value","placeholder"]),t(v,{type:"text",danger:"",onClick:x=>m(c,$)},{icon:s(()=>[t(e(Z))]),_:2},1032,["onClick"])]))),128)),t(v,{type:"dashed",block:"",onClick:d=>k(c),style:{"margin-top":"8px"}},{icon:s(()=>[t(e(q))]),default:s(()=>[C(" "+p(e(o)("autoTag.addFilter")),1)]),_:2},1032,["onClick"])])]))),128))]),a.value.length===0?(_(),S("div",je,p(e(o)("autoTag.noRules")),1)):U("",!0)])}}});const qe=ae(He,[["__scopeId","data-v-5bd94ce6"]]),Xe={class:"panel"},Ye={class:"lang-select-wrap"},Je={style:{"margin-top":"64px"}},Ze={style:{"margin-top":"64px"}},Qe={style:{"margin-left":"8px",color:"#666"}},et={style:{"margin-top":"0"}},tt={style:{"padding-left":"8px",color:"#666"}},at={class:"col"},lt=E({__name:"globalSetting",setup(y){const a=G(),u=_e(),f=K(!1),w=async()=>{window.location.reload()},h=[{value:"en",text:"English"},{value:"zhHans",text:"简体中文"},{value:"zhHant",text:"繁體中文"},{value:"de",text:"Deutsch"}],b=ee(n=>{const l=a.shortcut[n];["ctrl","shift"].includes(l.toLowerCase())&&(a.shortcut[n]="")},700),k=fe(()=>{B.warn(o("notAllowSingleCtrlOrShiftAsShortcut"))},3e3),m=(n,l)=>{const c=Oe(n);["ctrl","shift"].includes(c.toLowerCase())&&(k(),b(l)),c&&(a.shortcut[l]=c)},F=async()=>{await $e("shutdown_api_server_command"),await Ie.removeFile(xe),await Re()},N=P(()=>[{value:"empty",text:o("emptyStartPage")},{value:"last-workspace-state",text:o("restoreLastWorkspaceState")},...u.snapshots.map(l=>({value:`workspace_snapshot_${l.id}`,text:o("restoreWorkspaceSnapshot",[l.name])}))]),V=P(()=>{const n=a.shortcut,l={};return Object.values(n).forEach(c=>{var I;l[I=c+""]??(l[I]=0),l[c+""]++}),l}),r=P(()=>{var l;const n=[{key:"download",label:o("download")},{key:"delete",label:o("deleteSelected")}];return(l=a.conf)==null||l.all_custom_tags.forEach(c=>{n.push({key:`toggle_tag_${c.name}`,label:o("toggleTagSelection",{tag:c.name})})}),a.quickMovePaths.forEach(c=>{n.push({key:`copy_to_${c.dir}`,label:o("copyTo")+" "+c.zh})}),a.quickMovePaths.forEach(c=>{n.push({key:`move_to_${c.dir}`,label:o("moveTo")+" "+c.zh})}),n}),T=n=>n&&n in V.value&&V.value[n]>1,v=ve(be+"disable_maximize",!1);return(n,l)=>{var H;const c=Ue,I=L,d=le,$=oe,x=L,ne=z,A=Y,se=Pe,ue=Y,ie=te,de=Me;return _(),S("div",Xe,[(H=e(a).conf)!=null&&H.is_readonly?(_(),M(c,{key:0,message:n.$t("readonlyModeSettingPageDesc"),type:"warning"},null,8,["message"])):U("",!0),U("",!0),t(de,null,{default:s(()=>[t(d,{label:n.$t("lang")},{default:s(()=>[g("div",Ye,[t(e(W),{options:h,value:e(a).lang,"onUpdate:value":l[0]||(l[0]=i=>e(a).lang=i),onChange:l[1]||(l[1]=i=>f.value=!0)},null,8,["value"])]),f.value?(_(),M(I,{key:0,type:"primary",onClick:w,ghost:""},{default:s(()=>[C(p(e(o)("langChangeReload")),1)]),_:1})):U("",!0)]),_:1},8,["label"]),g("h2",Je,p(e(o)("ImageBrowsingSettings")),1),t(ze),g("h2",Ze,p(e(o)("autoTag.name")),1),t(qe),g("h2",null,"TikTok "+p(e(o)("view")),1),t(d,{label:n.$t("showTiktokNavigator")},{default:s(()=>[t($,{checked:e(a).showTiktokNavigator,"onUpdate:checked":l[2]||(l[2]=i=>e(a).showTiktokNavigator=i)},null,8,["checked"]),g("span",Qe,p(e(o)("showTiktokNavigatorDesc")),1)]),_:1},8,["label"]),g("h2",null,p(e(o)("imgSearch")),1),t(d,{label:n.$t("rebuildImageIndex")},{default:s(()=>[t(x,{onClick:e(ke)},{default:s(()=>[C(p(n.$t("start")),1)]),_:1},8,["onClick"])]),_:1},8,["label"]),g("h2",null,p(e(o)("autoRefresh")),1),t(d,{label:n.$t("autoRefreshWalkMode")},{default:s(()=>[t($,{checked:e(a).autoRefreshWalkMode,"onUpdate:checked":l[3]||(l[3]=i=>e(a).autoRefreshWalkMode=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("autoRefreshNormalFixedMode")},{default:s(()=>[t($,{checked:e(a).autoRefreshNormalFixedMode,"onUpdate:checked":l[4]||(l[4]=i=>e(a).autoRefreshNormalFixedMode=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:e(o)("autoRefreshWalkModePosLimit")},{default:s(()=>[t(ne,{min:0,max:1024,step:16,modelValue:e(a).autoRefreshWalkModePosLimit,"onUpdate:modelValue":l[5]||(l[5]=i=>e(a).autoRefreshWalkModePosLimit=i)},null,8,["modelValue"])]),_:1},8,["label"]),g("h2",et,p(e(o)("other")),1),t(d,{label:n.$t("fileTypeFilter")},{default:s(()=>[t(se,{value:e(a).fileTypeFilter,"onUpdate:value":l[6]||(l[6]=i=>e(a).fileTypeFilter=i)},{default:s(()=>[t(A,{value:"all"},{default:s(()=>[C(p(n.$t("allFiles")),1)]),_:1}),t(A,{value:"image"},{default:s(()=>[C(p(n.$t("image")),1)]),_:1}),t(A,{value:"video"},{default:s(()=>[C(p(n.$t("video")),1)]),_:1}),t(A,{value:"audio"},{default:s(()=>[C(p(n.$t("audio")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"]),t(d,{label:n.$t("showCommaInGenInfoPanel")},{default:s(()=>[t($,{checked:e(a).showCommaInInfoPanel,"onUpdate:checked":l[7]||(l[7]=i=>e(a).showCommaInInfoPanel=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("showRandomImageInStartup")},{default:s(()=>[t($,{checked:e(a).showRandomImageInStartup,"onUpdate:checked":l[8]||(l[8]=i=>e(a).showRandomImageInStartup=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("defaultSortingMethod")},{default:s(()=>[t(e(W),{value:e(a).defaultSortingMethod,"onUpdate:value":l[9]||(l[9]=i=>e(a).defaultSortingMethod=i),conv:e(ye),options:e(we)},null,8,["value","conv","options"])]),_:1},8,["label"]),t(d,{label:n.$t("longPressOpenContextMenu")},{default:s(()=>[t($,{checked:e(a).longPressOpenContextMenu,"onUpdate:checked":l[10]||(l[10]=i=>e(a).longPressOpenContextMenu=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("openOnAppStart")},{default:s(()=>[t(e(W),{value:e(a).defaultInitinalPage,"onUpdate:value":l[11]||(l[11]=i=>e(a).defaultInitinalPage=i),options:N.value},null,8,["value","options"])]),_:1},8,["label"]),(_(!0),S(O,null,D(e(a).ignoredConfirmActions,(i,R)=>(_(),M(d,{label:n.$t(R+"SkipConfirm"),key:R},{default:s(()=>[t(ue,{checked:e(a).ignoredConfirmActions[R],"onUpdate:checked":re=>e(a).ignoredConfirmActions[R]=re},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"]))),128)),t(d,{label:n.$t("disableMaximize")},{default:s(()=>[t($,{checked:e(v),"onUpdate:checked":l[12]||(l[12]=i=>Ce(v)?v.value=i:null)},null,8,["checked"]),g("sub",tt,p(n.$t("takeEffectAfterReloadPage")),1)]),_:1},8,["label"]),g("h2",null,p(e(o)("shortcutKey")),1),(_(!0),S(O,null,D(r.value,i=>(_(),M(d,{label:i.label,key:i.key},{default:s(()=>[g("div",{class:Se(["col",{conflict:T(e(a).shortcut[i.key]+"")}]),onKeydown:l[13]||(l[13]=X(()=>{},["stop","prevent"]))},[t(ie,{value:e(a).shortcut[i.key],onKeydown:X(R=>m(R,i.key),["stop","prevent"]),placeholder:n.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),t(I,{onClick:R=>e(a).shortcut[i.key]="",class:"clear-btn"},{default:s(()=>[C(p(n.$t("clear")),1)]),_:2},1032,["onClick"])],34)]),_:2},1032,["label"]))),128)),e(Te)?(_(),S(O,{key:0},[g("h2",null,p(e(o)("clientSpecificSettings")),1),t(d,null,{default:s(()=>[g("div",at,[t(I,{onClick:F,class:"clear-btn"},{default:s(()=>[C(p(n.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):U("",!0)]),_:1})])}}});const _t=ae(lt,[["__scopeId","data-v-2522743a"]]);export{_t as default}; diff --git a/vue/dist/assets/gridView-f8ee15ac.js b/vue/dist/assets/gridView-4048615e.js similarity index 66% rename from vue/dist/assets/gridView-f8ee15ac.js rename to vue/dist/assets/gridView-4048615e.js index 866c6e8..d8f7549 100644 --- a/vue/dist/assets/gridView-f8ee15ac.js +++ b/vue/dist/assets/gridView-4048615e.js @@ -1 +1 @@ -import{u as w,a as y,F as b,d as k}from"./FileItem-cc53e03a.js";import{d as x,a1 as h,c9 as F,r as D,bh as I,bl as C,U as V,V as E,c as n,a3 as S,a4 as e,af as z,cS as B,cU as R,a0 as U}from"./index-0205daf8.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";/* empty css */import"./index-6a8edab1.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./index-e9cc5bd5.js";const A=x({__name:"gridView",props:{tabIdx:{},paneIdx:{},id:{},removable:{type:Boolean},allowDragAndDrop:{type:Boolean},files:{},paneKey:{}},setup(p){const o=p,m=h(),{stackViewEl:d}=w().toRefs(),{itemSize:i,gridItems:u,cellWidth:f}=y(),g=F(),a=D(o.files??[]),_=async s=>{const l=B(s);o.allowDragAndDrop&&l&&(a.value=R([...a.value,...l.nodes]))},v=s=>{a.value.splice(s,1)};return I(()=>{m.pageFuncExportMap.set(o.paneKey,{getFiles:()=>C(a.value),setFiles:s=>a.value=s})}),(s,l)=>(V(),E("div",{class:"container",ref_key:"stackViewEl",ref:d,onDrop:_},[n(e(k),{ref:"scroller",class:"file-list",items:a.value.slice(),"item-size":e(i).first,"key-field":"fullpath","item-secondary-size":e(i).second,gridItems:e(u)},{default:S(({item:t,index:r})=>{var c;return[n(b,{idx:r,file:t,"cell-width":e(f),"enable-close-icon":o.removable,onCloseIconClick:K=>v(r),"full-screen-preview-image-url":e(z)(t),"extra-tags":(c=t==null?void 0:t.tags)==null?void 0:c.map(e(g).tagConvert),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","enable-close-icon","onCloseIconClick","full-screen-preview-image-url","extra-tags"])]}),_:1},8,["items","item-size","item-secondary-size","gridItems"])],544))}});const j=U(A,[["__scopeId","data-v-0c31f6b2"]]);export{j as default}; +import{u as w,a as y,F as b,d as k}from"./FileItem-6ddd7179.js";import{d as x,a1 as h,c9 as F,r as D,bh as I,bl as C,U as V,V as E,c as n,a3 as z,a4 as e,af as S,cT as B,cV as R,a0 as T}from"./index-157194fb.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js";/* empty css */import"./index-8e3285c7.js";import"./_isIterateeCall-e2252db1.js";import"./index-8929347d.js";import"./index-11d9431b.js";const A=x({__name:"gridView",props:{tabIdx:{},paneIdx:{},id:{},removable:{type:Boolean},allowDragAndDrop:{type:Boolean},files:{},paneKey:{}},setup(p){const o=p,m=h(),{stackViewEl:d}=w().toRefs(),{itemSize:i,gridItems:u,cellWidth:f}=y(),g=F(),a=D(o.files??[]),_=async s=>{const l=B(s);o.allowDragAndDrop&&l&&(a.value=R([...a.value,...l.nodes]))},v=s=>{a.value.splice(s,1)};return I(()=>{m.pageFuncExportMap.set(o.paneKey,{getFiles:()=>C(a.value),setFiles:s=>a.value=s})}),(s,l)=>(V(),E("div",{class:"container",ref_key:"stackViewEl",ref:d,onDrop:_},[n(e(k),{ref:"scroller",class:"file-list",items:a.value.slice(),"item-size":e(i).first,"key-field":"fullpath","item-secondary-size":e(i).second,gridItems:e(u)},{default:z(({item:t,index:r})=>{var c;return[n(b,{idx:r,file:t,"cell-width":e(f),"enable-close-icon":o.removable,onCloseIconClick:K=>v(r),"full-screen-preview-image-url":e(S)(t),"extra-tags":(c=t==null?void 0:t.tags)==null?void 0:c.map(e(g).tagConvert),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","enable-close-icon","onCloseIconClick","full-screen-preview-image-url","extra-tags"])]}),_:1},8,["items","item-size","item-secondary-size","gridItems"])],544))}});const j=T(A,[["__scopeId","data-v-0c31f6b2"]]);export{j as default}; diff --git a/vue/dist/assets/hook-4ff6f457.js b/vue/dist/assets/hook-47732221.js similarity index 90% rename from vue/dist/assets/hook-4ff6f457.js rename to vue/dist/assets/hook-47732221.js index 65862b9..c418474 100644 --- a/vue/dist/assets/hook-4ff6f457.js +++ b/vue/dist/assets/hook-47732221.js @@ -1 +1 @@ -import{am as F,r as g,l as P,k as A,O as b,G as R,cc as q,cn as O,cs as z}from"./index-0205daf8.js";import{u as L,a as Q,b as j,e as H}from"./FileItem-cc53e03a.js";import{a as T,b as U,c as W}from"./MultiSelectKeep-74181f4c.js";import{u as B}from"./useGenInfoDiff-13d2ea38.js";let K=0;const V=()=>++K,X=(n,i,{dataUpdateStrategy:l="replace"}={})=>{const o=F([""]),c=g(!1),t=g(),a=g(!1);let f=g(-1);const v=new Set,w=e=>{var s;l==="replace"?t.value=e:l==="merge"&&(b((Array.isArray(t.value)||typeof t.value>"u")&&Array.isArray(e),"数据更新策略为合并时仅可用于值为数组的情况"),t.value=[...(s=t==null?void 0:t.value)!==null&&s!==void 0?s:[],...e])},d=e=>A(void 0,void 0,void 0,function*(){if(a.value||c.value&&typeof e>"u")return!1;a.value=!0;const s=V();f.value=s;try{let r;if(typeof e=="number"){if(r=o[e],typeof r!="string")return!1}else r=o[o.length-1];const h=yield n(r);if(v.has(s))return v.delete(s),!1;w(i(h));const u=h.cursor;if((e===o.length-1||typeof e!="number")&&(c.value=!u.has_next,u.has_next)){const m=u.next_cursor||u.next;b(typeof m=="string"),o.push(m)}}finally{f.value===s&&(a.value=!1)}return!0}),p=()=>{v.add(f.value),a.value=!1},x=(e=!1)=>A(void 0,void 0,void 0,function*(){const{refetch:s,force:r}=typeof e=="object"?e:{refetch:e};r&&p(),b(!a.value),o.splice(0,o.length,""),a.value=!1,t.value=void 0,c.value=!1,s&&(yield d())}),I=()=>({next:()=>A(void 0,void 0,void 0,function*(){if(a.value)throw new Error("不允许同时迭代");return{done:!(yield d()),value:t.value}})});return P({abort:p,load:c,next:d,res:t,loading:a,cursorStack:o,reset:x,[Symbol.asyncIterator]:I,iter:{[Symbol.asyncIterator]:I}})},se=n=>F(X(n,i=>i.files,{dataUpdateStrategy:"merge"})),ne=n=>{const i=F(new Set),l=R(()=>(n.res??[]).filter(y=>!i.has(y.fullpath))),o=q(),{stackViewEl:c,multiSelectedIdxs:t,stack:a,scroller:f,props:v}=L({images:l}).toRefs(),{itemSize:w,gridItems:d,cellWidth:p,onScroll:x}=Q({fetchNext:()=>n.next()}),{showMenuIdx:I}=j(),{onFileDragStart:e,onFileDragEnd:s}=T(),{showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:m,onFileItemClick:C}=U({openNext:O}),{previewIdx:_,previewing:E,onPreviewVisibleChange:M,previewImgMove:D,canPreview:G}=W({loadNext:()=>n.next()}),J=async(y,S,N)=>{a.value=[{curr:"",files:l.value}],await m(y,S,N)};H("removeFiles",async({paths:y})=>{y.forEach(S=>i.add(S))});const k=()=>{z(l.value)};return{images:l,scroller:f,queue:o,iter:n,onContextMenuClickU:J,stackViewEl:c,previewIdx:_,previewing:E,onPreviewVisibleChange:M,previewImgMove:D,canPreview:G,itemSize:w,gridItems:d,showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:m,onFileItemClick:C,showMenuIdx:I,multiSelectedIdxs:t,onFileDragStart:e,onFileDragEnd:s,cellWidth:p,onScroll:x,saveLoadedFileAsJson:k,saveAllFileAsJson:async()=>{for(;!n.load;)await n.next();k()},props:v,...B()}};export{se as c,ne as u}; +import{am as F,r as g,l as P,k as A,O as b,G as R,cc as q,cn as O,cs as z}from"./index-157194fb.js";import{u as L,a as Q,b as j,e as H}from"./FileItem-6ddd7179.js";import{a as T,b as U,c as W}from"./MultiSelectKeep-f7eadb70.js";import{u as B}from"./useGenInfoDiff-4c9e8f19.js";let K=0;const V=()=>++K,X=(n,i,{dataUpdateStrategy:l="replace"}={})=>{const o=F([""]),c=g(!1),t=g(),a=g(!1);let f=g(-1);const v=new Set,w=e=>{var s;l==="replace"?t.value=e:l==="merge"&&(b((Array.isArray(t.value)||typeof t.value>"u")&&Array.isArray(e),"数据更新策略为合并时仅可用于值为数组的情况"),t.value=[...(s=t==null?void 0:t.value)!==null&&s!==void 0?s:[],...e])},d=e=>A(void 0,void 0,void 0,function*(){if(a.value||c.value&&typeof e>"u")return!1;a.value=!0;const s=V();f.value=s;try{let r;if(typeof e=="number"){if(r=o[e],typeof r!="string")return!1}else r=o[o.length-1];const h=yield n(r);if(v.has(s))return v.delete(s),!1;w(i(h));const u=h.cursor;if((e===o.length-1||typeof e!="number")&&(c.value=!u.has_next,u.has_next)){const m=u.next_cursor||u.next;b(typeof m=="string"),o.push(m)}}finally{f.value===s&&(a.value=!1)}return!0}),p=()=>{v.add(f.value),a.value=!1},x=(e=!1)=>A(void 0,void 0,void 0,function*(){const{refetch:s,force:r}=typeof e=="object"?e:{refetch:e};r&&p(),b(!a.value),o.splice(0,o.length,""),a.value=!1,t.value=void 0,c.value=!1,s&&(yield d())}),I=()=>({next:()=>A(void 0,void 0,void 0,function*(){if(a.value)throw new Error("不允许同时迭代");return{done:!(yield d()),value:t.value}})});return P({abort:p,load:c,next:d,res:t,loading:a,cursorStack:o,reset:x,[Symbol.asyncIterator]:I,iter:{[Symbol.asyncIterator]:I}})},se=n=>F(X(n,i=>i.files,{dataUpdateStrategy:"merge"})),ne=n=>{const i=F(new Set),l=R(()=>(n.res??[]).filter(y=>!i.has(y.fullpath))),o=q(),{stackViewEl:c,multiSelectedIdxs:t,stack:a,scroller:f,props:v}=L({images:l}).toRefs(),{itemSize:w,gridItems:d,cellWidth:p,onScroll:x}=Q({fetchNext:()=>n.next()}),{showMenuIdx:I}=j(),{onFileDragStart:e,onFileDragEnd:s}=T(),{showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:m,onFileItemClick:C}=U({openNext:O}),{previewIdx:_,previewing:E,onPreviewVisibleChange:M,previewImgMove:D,canPreview:G}=W({loadNext:()=>n.next()}),J=async(y,S,N)=>{a.value=[{curr:"",files:l.value}],await m(y,S,N)};H("removeFiles",async({paths:y})=>{y.forEach(S=>i.add(S))});const k=()=>{z(l.value)};return{images:l,scroller:f,queue:o,iter:n,onContextMenuClickU:J,stackViewEl:c,previewIdx:_,previewing:E,onPreviewVisibleChange:M,previewImgMove:D,canPreview:G,itemSize:w,gridItems:d,showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:m,onFileItemClick:C,showMenuIdx:I,multiSelectedIdxs:t,onFileDragStart:e,onFileDragEnd:s,cellWidth:p,onScroll:x,saveLoadedFileAsJson:k,saveAllFileAsJson:async()=>{for(;!n.load;)await n.next();k()},props:v,...B()}};export{se as c,ne as u}; diff --git a/vue/dist/assets/index-e9cc5bd5.js b/vue/dist/assets/index-11d9431b.js similarity index 87% rename from vue/dist/assets/index-e9cc5bd5.js rename to vue/dist/assets/index-11d9431b.js index 79017e1..7d6794d 100644 --- a/vue/dist/assets/index-e9cc5bd5.js +++ b/vue/dist/assets/index-11d9431b.js @@ -1 +1 @@ -import{P as U,dV as re,a as u,d as F,bC as W,u as G,c as y,dm as le,_ as ie,ak as A,an as E,G as L,bK as k,ap as H,bA as se,h as M,dW as de,b as ue,aw as pe,dX as ve,b0 as R,bJ as ce}from"./index-0205daf8.js";var z=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:U.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},T=re(),ye=function(){return u(u({},z()),{},{type:T.type,size:String,htmlType:T.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:U.any,title:String,loading:T.loading,onClick:{type:Function}})},fe=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],me=A.Group;const ge=F({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:W(ye(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(n,f){var a=f.slots,B=f.attrs,P=f.emit,g=function(p){P("update:visible",p),P("visibleChange",p)},i=G("dropdown-button",n),D=i.prefixCls,w=i.direction,O=i.getPopupContainer;return function(){var b,p,e=u(u({},n),B),N=e.type,t=N===void 0?"default":N,o=e.disabled,r=e.loading,m=e.htmlType,s=e.class,d=s===void 0?"":s,l=e.overlay,C=l===void 0?(b=a.overlay)===null||b===void 0?void 0:b.call(a):l,_=e.trigger,v=e.align,c=e.visible;e.onVisibleChange;var h=e.placement,x=h===void 0?w.value==="rtl"?"bottomLeft":"bottomRight":h,S=e.href,K=e.title,V=e.icon,X=V===void 0?((p=a.icon)===null||p===void 0?void 0:p.call(a))||y(le,null,null):V,Y=e.mouseEnterDelay,q=e.mouseLeaveDelay,Q=e.overlayClassName,Z=e.overlayStyle,ee=e.destroyPopupOnHide,te=e.onClick;e["onUpdate:visible"];var oe=ie(e,fe),ae={align:v,disabled:o,trigger:o?[]:_,placement:x,getPopupContainer:O.value,onVisibleChange:g,mouseEnterDelay:Y,mouseLeaveDelay:q,visible:c,overlayClassName:Q,overlayStyle:Z,destroyPopupOnHide:ee},j=y(A,{type:t,disabled:o,loading:r,onClick:te,htmlType:m,href:S,title:K},{default:a.default}),I=y(A,{type:t,icon:X},null);return y(me,u(u({},oe),{},{class:E(D.value,d)}),{default:function(){return[a.leftButton?a.leftButton({button:j}):j,y(be,ae,{default:function(){return[a.rightButton?a.rightButton({button:I}):I]},overlay:function(){return C}})]}})}}});var J=F({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:W(z(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(n,f){var a=f.slots,B=f.attrs,P=f.emit,g=G("dropdown",n),i=g.prefixCls,D=g.rootPrefixCls,w=g.direction,O=g.getPopupContainer,b=L(function(){var t=n.placement,o=t===void 0?"":t,r=n.transitionName;return r!==void 0?r:o.indexOf("top")>=0?"".concat(D.value,"-slide-down"):"".concat(D.value,"-slide-up")}),p=function(){var o,r,m,s=n.overlay||((o=a.overlay)===null||o===void 0?void 0:o.call(a)),d=Array.isArray(s)?s[0]:s;if(!d)return null;var l=d.props||{};k(!l.mode||l.mode==="vertical","Dropdown",'mode="'.concat(l.mode,`" is not supported for Dropdown's Menu.`));var C=l.selectable,_=C===void 0?!1:C,v=l.expandIcon,c=v===void 0?(r=d.children)===null||r===void 0||(m=r.expandIcon)===null||m===void 0?void 0:m.call(r):v,h=typeof c<"u"&&R(c)?c:y("span",{class:"".concat(i.value,"-menu-submenu-arrow")},[y(ce,{class:"".concat(i.value,"-menu-submenu-arrow-icon")},null)]),x=R(d)?H(d,{mode:"vertical",selectable:_,expandIcon:function(){return h}}):d;return x},e=L(function(){var t=n.placement;if(!t)return w.value==="rtl"?"bottomRight":"bottomLeft";if(t.includes("Center")){var o=t.slice(0,t.indexOf("Center"));return k(!t.includes("Center"),"Dropdown","You are using '".concat(t,"' placement in Dropdown, which is deprecated. Try to use '").concat(o,"' instead.")),o}return t}),N=function(o){P("update:visible",o),P("visibleChange",o)};return function(){var t,o,r=n.arrow,m=n.trigger,s=n.disabled,d=n.overlayClassName,l=(t=a.default)===null||t===void 0?void 0:t.call(a)[0],C=H(l,se({class:E(l==null||(o=l.props)===null||o===void 0?void 0:o.class,M({},"".concat(i.value,"-rtl"),w.value==="rtl"),"".concat(i.value,"-trigger"))},s?{disabled:s}:{})),_=E(d,M({},"".concat(i.value,"-rtl"),w.value==="rtl")),v=s?[]:m,c;v&&v.indexOf("contextmenu")!==-1&&(c=!0);var h=de({arrowPointAtCenter:ue(r)==="object"&&r.pointAtCenter,autoAdjustOverflow:!0}),x=pe(u(u(u({},n),B),{},{builtinPlacements:h,overlayClassName:_,arrow:r,alignPoint:c,prefixCls:i.value,getPopupContainer:O.value,transitionName:b.value,trigger:v,onVisibleChange:N,placement:e.value}),["overlay","onUpdate:visible"]);return y(ve,x,{default:function(){return[C]},overlay:p})}}});J.Button=ge;const be=J;export{be as D,ge as a}; +import{P as U,dW as re,a as u,d as F,bC as W,u as G,c as y,dn as le,_ as ie,ak as A,an as E,G as L,bK as k,ap as H,bA as se,h as M,dX as de,b as ue,aw as pe,dY as ve,b0 as R,bJ as ce}from"./index-157194fb.js";var z=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:U.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},T=re(),ye=function(){return u(u({},z()),{},{type:T.type,size:String,htmlType:T.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:U.any,title:String,loading:T.loading,onClick:{type:Function}})},fe=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],me=A.Group;const ge=F({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:W(ye(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(n,f){var a=f.slots,B=f.attrs,P=f.emit,g=function(p){P("update:visible",p),P("visibleChange",p)},i=G("dropdown-button",n),D=i.prefixCls,w=i.direction,O=i.getPopupContainer;return function(){var b,p,e=u(u({},n),B),N=e.type,t=N===void 0?"default":N,o=e.disabled,r=e.loading,m=e.htmlType,s=e.class,d=s===void 0?"":s,l=e.overlay,C=l===void 0?(b=a.overlay)===null||b===void 0?void 0:b.call(a):l,_=e.trigger,v=e.align,c=e.visible;e.onVisibleChange;var h=e.placement,x=h===void 0?w.value==="rtl"?"bottomLeft":"bottomRight":h,S=e.href,J=e.title,V=e.icon,K=V===void 0?((p=a.icon)===null||p===void 0?void 0:p.call(a))||y(le,null,null):V,X=e.mouseEnterDelay,q=e.mouseLeaveDelay,Q=e.overlayClassName,Z=e.overlayStyle,ee=e.destroyPopupOnHide,te=e.onClick;e["onUpdate:visible"];var oe=ie(e,fe),ae={align:v,disabled:o,trigger:o?[]:_,placement:x,getPopupContainer:O.value,onVisibleChange:g,mouseEnterDelay:X,mouseLeaveDelay:q,visible:c,overlayClassName:Q,overlayStyle:Z,destroyPopupOnHide:ee},j=y(A,{type:t,disabled:o,loading:r,onClick:te,htmlType:m,href:S,title:J},{default:a.default}),I=y(A,{type:t,icon:K},null);return y(me,u(u({},oe),{},{class:E(D.value,d)}),{default:function(){return[a.leftButton?a.leftButton({button:j}):j,y(be,ae,{default:function(){return[a.rightButton?a.rightButton({button:I}):I]},overlay:function(){return C}})]}})}}});var Y=F({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:W(z(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(n,f){var a=f.slots,B=f.attrs,P=f.emit,g=G("dropdown",n),i=g.prefixCls,D=g.rootPrefixCls,w=g.direction,O=g.getPopupContainer,b=L(function(){var t=n.placement,o=t===void 0?"":t,r=n.transitionName;return r!==void 0?r:o.indexOf("top")>=0?"".concat(D.value,"-slide-down"):"".concat(D.value,"-slide-up")}),p=function(){var o,r,m,s=n.overlay||((o=a.overlay)===null||o===void 0?void 0:o.call(a)),d=Array.isArray(s)?s[0]:s;if(!d)return null;var l=d.props||{};k(!l.mode||l.mode==="vertical","Dropdown",'mode="'.concat(l.mode,`" is not supported for Dropdown's Menu.`));var C=l.selectable,_=C===void 0?!1:C,v=l.expandIcon,c=v===void 0?(r=d.children)===null||r===void 0||(m=r.expandIcon)===null||m===void 0?void 0:m.call(r):v,h=typeof c<"u"&&R(c)?c:y("span",{class:"".concat(i.value,"-menu-submenu-arrow")},[y(ce,{class:"".concat(i.value,"-menu-submenu-arrow-icon")},null)]),x=R(d)?H(d,{mode:"vertical",selectable:_,expandIcon:function(){return h}}):d;return x},e=L(function(){var t=n.placement;if(!t)return w.value==="rtl"?"bottomRight":"bottomLeft";if(t.includes("Center")){var o=t.slice(0,t.indexOf("Center"));return k(!t.includes("Center"),"Dropdown","You are using '".concat(t,"' placement in Dropdown, which is deprecated. Try to use '").concat(o,"' instead.")),o}return t}),N=function(o){P("update:visible",o),P("visibleChange",o)};return function(){var t,o,r=n.arrow,m=n.trigger,s=n.disabled,d=n.overlayClassName,l=(t=a.default)===null||t===void 0?void 0:t.call(a)[0],C=H(l,se({class:E(l==null||(o=l.props)===null||o===void 0?void 0:o.class,M({},"".concat(i.value,"-rtl"),w.value==="rtl"),"".concat(i.value,"-trigger"))},s?{disabled:s}:{})),_=E(d,M({},"".concat(i.value,"-rtl"),w.value==="rtl")),v=s?[]:m,c;v&&v.indexOf("contextmenu")!==-1&&(c=!0);var h=de({arrowPointAtCenter:ue(r)==="object"&&r.pointAtCenter,autoAdjustOverflow:!0}),x=pe(u(u(u({},n),B),{},{builtinPlacements:h,overlayClassName:_,arrow:r,alignPoint:c,prefixCls:i.value,getPopupContainer:O.value,transitionName:b.value,trigger:v,onVisibleChange:N,placement:e.value}),["overlay","onUpdate:visible"]);return y(ve,x,{default:function(){return[C]},overlay:p})}}});Y.Button=ge;const be=Y;export{be as D,ge as a}; diff --git a/vue/dist/assets/index-0205daf8.js b/vue/dist/assets/index-157194fb.js similarity index 96% rename from vue/dist/assets/index-0205daf8.js rename to vue/dist/assets/index-157194fb.js index 54d2674..266c0d5 100644 --- a/vue/dist/assets/index-0205daf8.js +++ b/vue/dist/assets/index-157194fb.js @@ -68,7 +68,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `.concat(l.join(` `),` } - `),"".concat(Mk,"-dynamic-theme")):Un(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var qw=Symbol("GlobalFormContextKey"),Rk=function(e){wt(qw,e)},BG=function(){return ot(qw,{validateMessages:V(function(){})})},$k=function(){return{getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:{type:Object,default:void 0},input:{type:Object},autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:{type:Object,default:void 0},pageHeader:{type:Object},componentSize:{type:String},direction:{type:String},space:{type:Object},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:{type:Object,default:void 0},notUpdateGlobalConfig:Boolean}},Dk="ant";function gi(){return bn.prefixCls||Dk}var bf=ct({}),Yw=ct({}),bn=ct({});yt(function(){Ut(bn,bf,Yw),bn.prefixCls=gi(),bn.getPrefixCls=function(t,e){return e||(t?"".concat(bn.prefixCls,"-").concat(t):bn.prefixCls)},bn.getRootPrefixCls=function(t,e){return t||(bn.prefixCls?bn.prefixCls:e&&e.includes("-")?e.replace(/^(.*)-[^-]*$/,"$1"):gi())}});var cc,Lk=function(e){cc&&cc(),cc=yt(function(){Ut(Yw,ct(e)),Ut(bn,ct(e))}),e.theme&&Nk(gi(),e.theme)},Fk=function(){return{getPrefixCls:function(n,r){return r||(n?"".concat(gi(),"-").concat(n):gi())},getRootPrefixCls:function(n,r){return n||(bn.prefixCls?bn.prefixCls:r&&r.includes("-")?r.replace(/^(.*)-[^-]*$/,"$1"):gi())}}},mi=he({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:$k(),setup:function(e,n){var r=n.slots,a=function(d,v){var h=e.prefixCls,f=h===void 0?"ant":h;return v||(d?"".concat(f,"-").concat(d):f)},i=function(d){var v=e.renderEmpty||r.renderEmpty||yw;return v(d)},o=function(d,v){var h=e.prefixCls;if(v)return v;var f=h||a("");return d?"".concat(f,"-").concat(d):f},s=ct(M(M({},e),{},{getPrefixCls:o,renderEmpty:i}));Object.keys(e).forEach(function(c){pe(function(){return e[c]},function(){s[c]=e[c]})}),e.notUpdateGlobalConfig||(Ut(bf,s),pe(s,function(){Ut(bf,s)}));var l=V(function(){var c={};if(e.locale){var d,v;c=((d=e.locale.Form)===null||d===void 0?void 0:d.defaultValidateMessages)||((v=Bo.Form)===null||v===void 0?void 0:v.defaultValidateMessages)||{}}return e.form&&e.form.validateMessages&&(c=M(M({},c),e.form.validateMessages)),c});Rk({validateMessages:l}),wt("configProvider",s);var u=function(d){var v;return S(BA,{locale:e.locale||d,ANT_MARK__:uf},{default:function(){return[(v=r.default)===null||v===void 0?void 0:v.call(r)]}})};return yt(function(){e.direction&&(Jt.config({rtl:e.direction==="rtl"}),Pk.config({rtl:e.direction==="rtl"}))}),function(){return S(aw,{children:function(d,v,h){return u(h)}},null)}}}),Bk=ct({getPrefixCls:function(e,n){return n||(e?"ant-".concat(e):"ant")},renderEmpty:yw,direction:"ltr"});mi.config=Lk;mi.install=function(t){t.component(mi.name,mi)};const lt=function(t,e){var n=ot("configProvider",Bk),r=V(function(){return n.getPrefixCls(t,e.prefixCls)}),a=V(function(){var y;return(y=e.direction)!==null&&y!==void 0?y:n.direction}),i=V(function(){return n.getPrefixCls()}),o=V(function(){return n.autoInsertSpaceInButton}),s=V(function(){return n.renderEmpty}),l=V(function(){return n.space}),u=V(function(){return n.pageHeader}),c=V(function(){return n.form}),d=V(function(){return e.getTargetContainer||n.getTargetContainer}),v=V(function(){return e.getPopupContainer||n.getPopupContainer}),h=V(function(){var y;return(y=e.dropdownMatchSelectWidth)!==null&&y!==void 0?y:n.dropdownMatchSelectWidth}),f=V(function(){return(e.virtual===void 0?n.virtual!==!1:e.virtual!==!1)&&h.value!==!1}),p=V(function(){return e.size||n.componentSize}),m=V(function(){var y;return e.autocomplete||((y=n.input)===null||y===void 0?void 0:y.autocomplete)}),g=V(function(){return n.csp});return{configProvider:n,prefixCls:r,direction:a,size:p,getTargetContainer:d,getPopupContainer:v,space:l,pageHeader:u,form:c,autoInsertSpaceInButton:o,renderEmpty:s,virtual:f,dropdownMatchSelectWidth:h,rootPrefixCls:i,getPrefixCls:n.getPrefixCls,autocomplete:m,csp:g}};function Lt(t,e){for(var n=Ut({},t),r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=e.fieldNames,r=e.childrenAsData,a=[],i=Jw(n,!1),o=i.label,s=i.value,l=i.options;function u(c,d){c.forEach(function(v){var h=v[o];if(d||!(l in v)){var f=v[s];a.push({key:Cg(v,a.length),groupOption:d,data:v,label:h,value:f})}else{var p=h;p===void 0&&r&&(p=v.label),a.push({key:Cg(v,a.length),group:!0,data:v,label:p}),u(v[l],!0)}})}return u(t,!1),a}function wf(t){var e=M({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return e}}),e}function Wk(t,e){if(!e||!e.length)return null;var n=!1;function r(i,o){var s=zk(o),l=s[0],u=s.slice(1);if(!l)return[i];var c=i.split(l);return n=n||c.length>1,c.reduce(function(d,v){return[].concat(nt(d),nt(r(v,u)))},[]).filter(function(d){return d})}var a=r(t,e);return n?a:null}function Oa(t,e){return t?t.contains(e):!1}var Xw=["moz","ms","webkit"];function Hk(){var t=0;return function(e){var n=new Date().getTime(),r=Math.max(0,16-(n-t)),a=window.setTimeout(function(){e(n+r)},r);return t=n+r,a}}function Vk(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var t=Xw.filter(function(e){return"".concat(e,"RequestAnimationFrame")in window})[0];return t?window["".concat(t,"RequestAnimationFrame")]:Hk()}function Uk(t){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(t);var e=Xw.filter(function(n){return"".concat(n,"CancelAnimationFrame")in window||"".concat(n,"CancelRequestAnimationFrame")in window})[0];return e?(window["".concat(e,"CancelAnimationFrame")]||window["".concat(e,"CancelRequestAnimationFrame")]).call(this,t):clearTimeout(t)}var Sg=Vk(),Kk=function(e){return Uk(e.id)},Gk=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Date.now();function a(){Date.now()-r>=n?e.call():i.id=Sg(a)}var i={id:Sg(a)};return i},cv={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},qk=M(M({},cv),{},{mobile:{type:Object}}),Yk=M(M({},cv),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Zw(t){var e=t.prefixCls,n=t.animation,r=t.transitionName;return n?{name:"".concat(e,"-").concat(n)}:r?{name:r}:{}}function Qw(t){var e=t.prefixCls,n=t.visible,r=t.zIndex,a=t.mask,i=t.maskAnimation,o=t.maskTransitionName;if(!a)return null;var s={};return(o||i)&&(s=Zw({prefixCls:e,transitionName:o,animation:i})),S(Yn,M({appear:!0},s),{default:function(){return[dn(S("div",{style:{zIndex:r},class:"".concat(e,"-mask")},null),[[HE("if"),n]])]}})}Qw.displayName="Mask";const Jk=he({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:qk,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,n){var r=n.expose,a=n.slots,i=z();return r({forceAlign:function(){},getElement:function(){return i.value}}),function(){var o,s=e.zIndex,l=e.visible,u=e.prefixCls,c=e.mobile,d=c===void 0?{}:c,v=d.popupClassName,h=d.popupStyle,f=d.popupMotion,p=f===void 0?{}:f,m=d.popupRender,g=M({zIndex:s},h),y=kn((o=a.default)===null||o===void 0?void 0:o.call(a));y.length>1&&(y=S("div",{class:"".concat(u,"-content")},[y])),m&&(y=m(y));var b=Ce(u,v);return S(Yn,M({ref:i},p),{default:function(){return[l?S("div",{class:b,style:g},[y]):null]}})}}});var xg=["measure","align",null,"motion"];const Xk=function(t,e){var n=z(null),r=z(),a=z(!1);function i(l){a.value||(n.value=l)}function o(){Ue.cancel(r.value)}function s(l){o(),r.value=Ue(function(){var u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}i(u),l==null||l()})}return pe(t,function(){i("measure")},{immediate:!0,flush:"post"}),Ve(function(){pe(n,function(){switch(n.value){case"measure":e();break}n.value&&(r.value=Ue(tk(hg.mark(function l(){var u,c;return hg.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:u=xg.indexOf(n.value),c=xg[u+1],c&&u!==-1&&i(c);case 3:case"end":return v.stop()}},l)}))))},{immediate:!0,flush:"post"})}),st(function(){a.value=!0,o()}),[n,s]},Zk=function(t){var e=z({width:0,height:0});function n(a){e.value={width:a.offsetWidth,height:a.offsetHeight}}var r=V(function(){var a={};if(t.value){var i=e.value,o=i.width,s=i.height;t.value.indexOf("height")!==-1&&s?a.height="".concat(s,"px"):t.value.indexOf("minHeight")!==-1&&s&&(a.minHeight="".concat(s,"px")),t.value.indexOf("width")!==-1&&o?a.width="".concat(o,"px"):t.value.indexOf("minWidth")!==-1&&o&&(a.minWidth="".concat(o,"px"))}return a});return[r,n]};function Tg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Eg(t){for(var e=1;e=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function _M(t,e,n,r){var a=je.clone(t),i={width:e.width,height:e.height};return r.adjustX&&a.left=n.left&&a.left+i.width>n.right&&(i.width-=a.left+i.width-n.right),r.adjustX&&a.left+i.width>n.right&&(a.left=Math.max(n.right-i.width,n.left)),r.adjustY&&a.top=n.top&&a.top+i.height>n.bottom&&(i.height-=a.top+i.height-n.bottom),r.adjustY&&a.top+i.height>n.bottom&&(a.top=Math.max(n.bottom-i.height,n.top)),je.mix(a,i)}function pv(t){var e,n,r;if(!je.isWindow(t)&&t.nodeType!==9)e=je.offset(t),n=je.outerWidth(t),r=je.outerHeight(t);else{var a=je.getWindow(t);e={left:je.getWindowScrollLeft(a),top:je.getWindowScrollTop(a)},n=je.viewportWidth(a),r=je.viewportHeight(a)}return e.width=n,e.height=r,e}function Rg(t,e){var n=e.charAt(0),r=e.charAt(1),a=t.width,i=t.height,o=t.left,s=t.top;return n==="c"?s+=i/2:n==="b"&&(s+=i),r==="c"?o+=a/2:r==="r"&&(o+=a),{left:o,top:s}}function $s(t,e,n,r,a){var i=Rg(e,n[1]),o=Rg(t,n[0]),s=[o.left-i.left,o.top-i.top];return{left:Math.round(t.left-s[0]+r[0]-a[0]),top:Math.round(t.top-s[1]+r[1]-a[1])}}function $g(t,e,n){return t.leftn.right}function Dg(t,e,n){return t.topn.bottom}function CM(t,e,n){return t.left>n.right||t.left+e.widthn.bottom||t.top+e.height=n.right||r.top>=n.bottom}function hv(t,e,n){var r=n.target||e,a=pv(r),i=!xM(r,n.overflow&&n.overflow.alwaysByViewport);return s_(t,a,n,i)}hv.__getOffsetParent=xf;hv.__getVisibleRectForElement=vv;function TM(t,e,n){var r,a,i=je.getDocument(t),o=i.defaultView||i.parentWindow,s=je.getWindowScrollLeft(o),l=je.getWindowScrollTop(o),u=je.viewportWidth(o),c=je.viewportHeight(o);"pageX"in e?r=e.pageX:r=s+e.clientX,"pageY"in e?a=e.pageY:a=l+e.clientY;var d={left:r,top:a,width:0,height:0},v=r>=0&&r<=s+u&&a>=0&&a<=l+c,h=[n.points[0],"cc"];return s_(t,d,Eg(Eg({},n),{},{points:h}),v)}function Et(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=t;if(Array.isArray(t)&&(a=Fi(t)[0]),!a)return null;var i=rr(a,e,r);return i.props=n?M(M({},i.props),e):i.props,pu(Qe(i.props.class)!=="object","class must be string"),i}const EM=function(t){if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){var n=t.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function OM(t,e){return t===e?!0:!t||!e?!1:"pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e?t.clientX===e.clientX&&t.clientY===e.clientY:!1}function PM(t,e){t!==document.activeElement&&Oa(e,t)&&typeof t.focus=="function"&&t.focus()}function Bg(t,e){var n=null,r=null;function a(o){var s=ke(o,1),l=s[0].target;if(document.documentElement.contains(l)){var u=l.getBoundingClientRect(),c=u.width,d=u.height,v=Math.floor(c),h=Math.floor(d);(n!==v||r!==h)&&Promise.resolve().then(function(){e({width:v,height:h})}),n=v,r=h}}var i=new j1(a);return t&&i.observe(t),function(){i.disconnect()}}const AM=function(t,e){var n=!1,r=null;function a(){clearTimeout(r)}function i(o){if(!n||o===!0){if(t()===!1)return;n=!0,a(),r=setTimeout(function(){n=!1},e.value)}else a(),r=setTimeout(function(){n=!1,i()},e.value)}return[i,function(){n=!1,a()}]};function IM(){this.__data__=[],this.size=0}function gv(t,e){return t===e||t!==t&&e!==e}function yu(t,e){for(var n=t.length;n--;)if(gv(t[n][0],e))return n;return-1}var kM=Array.prototype,MM=kM.splice;function NM(t){var e=this.__data__,n=yu(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():MM.call(e,n,1),--this.size,!0}function RM(t){var e=this.__data__,n=yu(e,t);return n<0?void 0:e[n][1]}function $M(t){return yu(this.__data__,t)>-1}function DM(t,e){var n=this.__data__,r=yu(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Wr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++es))return!1;var u=i.get(t),c=i.get(e);if(u&&c)return u==e&&c==t;var d=-1,v=!0,h=n&I2?new Go:void 0;for(i.set(t,e),i.set(e,t);++d-1&&t%1==0&&t-1&&t%1==0&&t<=uN}var cN="[object Arguments]",fN="[object Array]",dN="[object Boolean]",vN="[object Date]",pN="[object Error]",hN="[object Function]",gN="[object Map]",mN="[object Number]",yN="[object Object]",bN="[object RegExp]",wN="[object Set]",_N="[object String]",CN="[object WeakMap]",SN="[object ArrayBuffer]",xN="[object DataView]",TN="[object Float32Array]",EN="[object Float64Array]",ON="[object Int8Array]",PN="[object Int16Array]",AN="[object Int32Array]",IN="[object Uint8Array]",kN="[object Uint8ClampedArray]",MN="[object Uint16Array]",NN="[object Uint32Array]",pt={};pt[TN]=pt[EN]=pt[ON]=pt[PN]=pt[AN]=pt[IN]=pt[kN]=pt[MN]=pt[NN]=!0;pt[cN]=pt[fN]=pt[SN]=pt[dN]=pt[xN]=pt[vN]=pt[pN]=pt[hN]=pt[gN]=pt[mN]=pt[yN]=pt[bN]=pt[wN]=pt[_N]=pt[CN]=!1;function RN(t){return wr(t)&&Cv(t.length)&&!!pt[fa(t)]}function Sv(t){return function(e){return t(e)}}var h_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,So=h_&&typeof module=="object"&&module&&!module.nodeType&&module,$N=So&&So.exports===h_,mc=$N&&U1.process,DN=function(){try{var t=So&&So.require&&So.require("util").types;return t||mc&&mc.binding&&mc.binding("util")}catch{}}();const Pi=DN;var Kg=Pi&&Pi.isTypedArray,LN=Kg?Sv(Kg):RN;const g_=LN;var FN=Object.prototype,BN=FN.hasOwnProperty;function m_(t,e){var n=ir(t),r=!n&&wv(t),a=!n&&!r&&Ml(t),i=!n&&!r&&!a&&g_(t),o=n||r||a||i,s=o?Z2(t.length,String):[],l=s.length;for(var u in t)(e||BN.call(t,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_v(u,l)))&&s.push(u);return s}var zN=Object.prototype;function xv(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||zN;return t===n}var jN=G1(Object.keys,Object);const WN=jN;var HN=Object.prototype,VN=HN.hasOwnProperty;function UN(t){if(!xv(t))return WN(t);var e=[];for(var n in Object(t))VN.call(t,n)&&n!="constructor"&&e.push(n);return e}function y_(t){return t!=null&&Cv(t.length)&&!l_(t)}function wu(t){return y_(t)?m_(t):UN(t)}function Tf(t){return f_(t,wu,bv)}var KN=1,GN=Object.prototype,qN=GN.hasOwnProperty;function YN(t,e,n,r,a,i){var o=n&KN,s=Tf(t),l=s.length,u=Tf(e),c=u.length;if(l!=c&&!o)return!1;for(var d=l;d--;){var v=s[d];if(!(o?v in e:qN.call(e,v)))return!1}var h=i.get(t),f=i.get(e);if(h&&f)return h==e&&f==t;var p=!0;i.set(t,e),i.set(e,t);for(var m=o;++d1&&(X=S("div",{class:"".concat(j,"-content")},[X]));var Y=Ce(j,a.class,l.value),ne=f.value||!e.visible,le=ne?cs(I.value.name,I.value):{};return S(Yn,M(M({ref:s},le),{},{onBeforeEnter:T}),{default:function(){return!D||e.visible?dn(S(fR,{target:_(),key:"popup",ref:o,monitorWindowResize:!0,disabled:N.value,align:L,onAlign:E},{default:function(){return S("div",M(M({class:Y,onMouseenter:P,onMouseleave:O,onMousedown:An(G,["capture"])},te({},ln?"onTouchstartPassive":"onTouchstart",An($,["capture"]))),{},{style:Z}),[X])}}),[[$r,f.value]]):null}})}}}),vR=he({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Yk,setup:function(e,n){var r=n.attrs,a=n.slots,i=n.expose,o=z(!1),s=z(!1),l=z();return pe([function(){return e.visible},function(){return e.mobile}],function(){o.value=e.visible,e.visible&&e.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),i({forceAlign:function(){var c;(c=l.value)===null||c===void 0||c.forceAlign()},getElement:function(){var c;return(c=l.value)===null||c===void 0?void 0:c.getElement()}}),function(){var u=M(M(M({},e),r),{},{visible:o.value}),c=s.value?S(Jk,M(M({},u),{},{mobile:e.mobile,ref:l}),{default:a.default}):S(dR,M(M({},u),{},{ref:l}),{default:a.default});return S("div",null,[S(Qw,u,null),c])}}});function pR(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function rm(t,e,n){var r=t[e]||{};return M(M({},r),n)}function hR(t,e,n,r){for(var a=n.points,i=Object.keys(t),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var a=this.getDerivedStateFromProps(oA(this),M(M({},this.$data),r));if(a===null)return;r=M(M({},r),a||{})}Ut(this.$data,r),this._.isMounted&&this.$forceUpdate(),Ke(function(){n&&n()})},__emit:function(){var e=[].slice.call(arguments,0),n=e[0];n="on".concat(n[0].toUpperCase()).concat(n.substring(1));var r=this.$props[n]||this.$attrs[n];if(e.length&&r)if(Array.isArray(r))for(var a=0,i=r.length;a1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};wt(w_,{inTriggerContext:n.inTriggerContext,shouldRender:V(function(){var r=e||{},a=r.sPopupVisible,i=r.popupRef,o=r.forceRender,s=r.autoDestroy,l=!1;return(a||i||o)&&(l=!0),!a&&s&&(l=!1),l})})},yR=function(){Tv({},{inTriggerContext:!1});var e=ot(w_,{shouldRender:V(function(){return!1}),inTriggerContext:!1});return{shouldRender:V(function(){return e.shouldRender.value||e.inTriggerContext===!1})}};const Af=he({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:ee.func.isRequired,didUpdate:Function},setup:function(e,n){var r=n.slots,a=!0,i,o=yR(),s=o.shouldRender;Rd(function(){a=!1,s.value&&(i=e.getContainer())});var l=pe(s,function(){s.value&&!i&&(i=e.getContainer()),i&&l()});return ca(function(){Ke(function(){if(s.value){var u;(u=e.didUpdate)===null||u===void 0||u.call(e,e)}})}),st(function(){i&&i.parentNode&&i.parentNode.removeChild(i)}),function(){if(!s.value)return null;if(a){var u;return(u=r.default)===null||u===void 0?void 0:u.call(r)}return i?S(uu,{to:i},r):null}}});function am(){}function bR(){return""}function wR(t){return t?t.ownerDocument:window.document}var _R=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const Cu=he({compatConfig:{MODE:3},name:"Trigger",mixins:[b_],inheritAttrs:!1,props:{action:ee.oneOfType([ee.string,ee.arrayOf(ee.string)]).def([]),showAction:ee.any.def([]),hideAction:ee.any.def([]),getPopupClassNameFromAlign:ee.any.def(bR),onPopupVisibleChange:Function,afterPopupVisibleChange:ee.func.def(am),popup:ee.any,popupStyle:{type:Object,default:void 0},prefixCls:ee.string.def("rc-trigger-popup"),popupClassName:ee.string.def(""),popupPlacement:String,builtinPlacements:ee.object,popupTransitionName:String,popupAnimation:ee.any,mouseEnterDelay:ee.number.def(0),mouseLeaveDelay:ee.number.def(.1),zIndex:Number,focusDelay:ee.number.def(0),blurDelay:ee.number.def(.15),getPopupContainer:Function,getDocument:ee.func.def(wR),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:ee.object.def(function(){return{}}),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function,tryPopPortal:Boolean},setup:function(e){var n=V(function(){var l=e.popupPlacement,u=e.popupAlign,c=e.builtinPlacements;return l&&c?rm(c,l,u):u}),r=mR(e.tryPopPortal),a=r.setPortal,i=r.popPortal,o=z(null),s=function(u){o.value=u};return{popPortal:i,setPortal:a,vcTriggerContext:ot("vcTriggerContext",{}),popupRef:o,setPopupRef:s,triggerRef:z(null),align:n,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data:function(){var e=this,n,r=this.$props,a;return this.popupVisible!==void 0?a=!!r.popupVisible:a=!!r.defaultPopupVisible,_R.forEach(function(i){e["fire".concat(i)]=function(o){e.fireEvents(i,o)}}),(n=this.setPortal)===null||n===void 0||n.call(this,S(Af,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent})),{prevPopupVisible:a,sPopupVisible:a,point:null}},watch:{popupVisible:function(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created:function(){wt("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),Tv(this)},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},updated:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},beforeUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ue.cancel(this.attachId)},methods:{updatedCal:function(){var e=this.$props,n=this.$data;if(n.sPopupVisible){var r;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(r=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=jn(r,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(r=r||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=jn(r,"touchstart",this.onDocumentClick,ln?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(r=r||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=jn(r,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=jn(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(e){var n=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,n,n?null:e)},onMouseMove:function(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave:function(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(e){var n;e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&Oa((n=this.popupRef)===null||n===void 0?void 0:n.getElement(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart:function(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur:function(e){Oa(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();var r=!this.$data.sPopupVisible;(this.isClickToHide()&&!r||r&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown:function(){var e=this,n=this.vcTriggerContext,r=n===void 0?{}:n;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),r.onPopupMouseDown&&r.onPopupMouseDown.apply(r,arguments)},onDocumentClick:function(e){if(!(this.$props.mask&&!this.$props.maskClosable)){var n=e.target,r=this.getRootDomNode(),a=this.getPopupDomNode();(!Oa(r,n)||this.isContextMenuOnly())&&!Oa(a,n)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)}},getPopupDomNode:function(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode:function(){var e=this.$props.getTriggerDOMNode;if(e){var n=Ia(this.triggerRef);return Ia(e(n))}try{var r=Ia(this.triggerRef);if(r)return r}catch{}return Ia(this)},handleGetPopupClassFromAlign:function(e){var n=[],r=this.$props,a=r.popupPlacement,i=r.builtinPlacements,o=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return a&&i&&n.push(hR(i,o,e,s)),l&&n.push(l(e)),n.join(" ")},getPopupAlign:function(){var e=this.$props,n=e.popupPlacement,r=e.popupAlign,a=e.builtinPlacements;return n&&a?rm(a,n,r):r},getComponent:function(){var e=this,n={};this.isMouseEnterToShow()&&(n.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(n.onMouseleave=this.onPopupMouseleave),n.onMousedown=this.onPopupMouseDown,n[ln?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var r=this.handleGetPopupClassFromAlign,a=this.getRootDomNode,i=this.getContainer,o=this.$attrs,s=this.$props,l=s.prefixCls,u=s.destroyPopupOnHide,c=s.popupClassName,d=s.popupAnimation,v=s.popupTransitionName,h=s.popupStyle,f=s.mask,p=s.maskAnimation,m=s.maskTransitionName,g=s.zIndex,y=s.stretch,b=s.alignPoint,w=s.mobile,_=s.forceRender,C=this.$data,E=C.sPopupVisible,I=C.point,T=M(M({prefixCls:l,destroyPopupOnHide:u,visible:E,point:b?I:null,align:this.align,animation:d,getClassNameFromAlign:r,stretch:y,getRootDomNode:a,mask:f,zIndex:g,transitionName:v,maskAnimation:p,maskTransitionName:m,getContainer:i,class:c,style:h,onAlign:o.onPopupAlign||am},n),{},{ref:this.setPopupRef,mobile:w,forceRender:_});return S(vR,T,{default:this.$slots.popup||function(){return J1(e,"popup")}})},attachParent:function(e){var n=this;Ue.cancel(this.attachId);var r=this.$props,a=r.getPopupContainer,i=r.getDocument,o=this.getRootDomNode(),s;a?(o||a.length===0)&&(s=a(o)):s=i(this.getRootDomNode()).body,s?s.appendChild(e):this.attachId=Ue(function(){n.attachParent(e)})},getContainer:function(){var e=this.$props,n=e.getDocument,r=n(this.getRootDomNode()).createElement("div");return r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.width="100%",this.attachParent(r),r},setPopupVisible:function(e,n){var r=this.alignPoint,a=this.sPopupVisible,i=this.onPopupVisibleChange;this.clearDelayTimer(),a!==e&&(oi(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:a}),i&&i(e)),r&&n&&e&&this.setPoint(n)},setPoint:function(e){var n=this.$props.alignPoint;!n||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(e,n,r){var a=this,i=n*1e3;if(this.clearDelayTimer(),i){var o=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=Gk(function(){a.setPopupVisible(e,o),a.clearDelayTimer()},i)}else this.setPopupVisible(e,r)},clearDelayTimer:function(){this.delayTimer&&(Kk(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains:function(e){var n=function(){},r=Fh(this);return this.childOriginEvents[e]&&r[e]?this["fire".concat(e)]:(n=this.childOriginEvents[e]||r[e]||n,n)},isClickToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("click")!==-1||r.indexOf("click")!==-1},isContextMenuOnly:function(){var e=this.$props.action;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("contextmenu")!==-1||r.indexOf("contextmenu")!==-1},isClickToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("click")!==-1||r.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("hover")!==-1||r.indexOf("mouseenter")!==-1},isMouseLeaveToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("hover")!==-1||r.indexOf("mouseleave")!==-1},isFocusToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("focus")!==-1||r.indexOf("focus")!==-1},isBlurToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("focus")!==-1||r.indexOf("blur")!==-1},forcePopupAlign:function(){if(this.$data.sPopupVisible){var e;(e=this.popupRef)===null||e===void 0||e.forceAlign()}},fireEvents:function(e,n){this.childOriginEvents[e]&&this.childOriginEvents[e](n);var r=this.$props[e]||this.$attrs[e];r&&r(n)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,n=this.$attrs,r=Fi(iA(this)),a=this.$props.alignPoint,i=r[0];this.childOriginEvents=Fh(i);var o={key:"trigger"};this.isContextmenuToShow()?o.onContextmenu=this.onContextmenu:o.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(o.onClick=this.onClick,o.onMousedown=this.onMousedown,o[ln?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(o.onClick=this.createTwoChains("onClick"),o.onMousedown=this.createTwoChains("onMousedown"),o[ln?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(o.onMouseenter=this.onMouseenter,a&&(o.onMousemove=this.onMouseMove)):o.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?o.onMouseleave=this.onMouseleave:o.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(o.onFocus=this.onFocus,o.onBlur=this.onBlur):(o.onFocus=this.createTwoChains("onFocus"),o.onBlur=function(c){c&&(!c.relatedTarget||!Oa(c.target,c.relatedTarget))&&e.createTwoChains("onBlur")(c)});var s=Ce(i&&i.props&&i.props.class,n.class);s&&(o.class=s);var l=Et(i,M(M({},o),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return l;var u=S(Af,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return S(Re,null,[u,l])}});var CR=["empty"],SR=function(e){var n=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}}}},xR=he({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:ee.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:ee.oneOfType([Number,Boolean]).def(!0),popupElement:ee.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function},setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=V(function(){var l=e.dropdownMatchSelectWidth;return SR(l)}),s=z();return i({getPopupElement:function(){return s.value}}),function(){var l=M(M({},e),a),u=l.empty,c=u===void 0?!1:u,d=bt(l,CR),v=d.visible,h=d.dropdownAlign,f=d.prefixCls,p=d.popupElement,m=d.dropdownClassName,g=d.dropdownStyle,y=d.direction,b=y===void 0?"ltr":y,w=d.placement,_=d.dropdownMatchSelectWidth,C=d.containerWidth,E=d.dropdownRender,I=d.animation,T=d.transitionName,N=d.getPopupContainer,R=d.getTriggerDOMNode,F=d.onPopupVisibleChange,L=d.onPopupMouseEnter,j="".concat(f,"-dropdown"),D=p;E&&(D=E({menuNode:p,props:e}));var P=I?"".concat(j,"-").concat(I):T,O=M({minWidth:"".concat(C,"px")},g);return typeof _=="number"?O.width="".concat(_,"px"):_&&(O.width="".concat(C,"px")),S(Cu,M(M({},e),{},{showAction:F?["click"]:[],hideAction:F?["click"]:[],popupPlacement:w||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:o.value,prefixCls:j,popupTransitionName:P,popupAlign:h,popupVisible:v,getPopupContainer:N,popupClassName:Ce(m,te({},"".concat(j,"-empty"),c)),popupStyle:O,getTriggerDOMNode:R,onPopupVisibleChange:F}),{default:r.default,popup:function(){return S("div",{ref:s,onMouseenter:L},[D])}})}}});const TR=xR;var Ne={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var n=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||n>=Ne.F1&&n<=Ne.F12)return!1;switch(n){case Ne.ALT:case Ne.CAPS_LOCK:case Ne.CONTEXT_MENU:case Ne.CTRL:case Ne.DOWN:case Ne.END:case Ne.ESC:case Ne.HOME:case Ne.INSERT:case Ne.LEFT:case Ne.MAC_FF_META:case Ne.META:case Ne.NUMLOCK:case Ne.NUM_CENTER:case Ne.PAGE_DOWN:case Ne.PAGE_UP:case Ne.PAUSE:case Ne.PRINT_SCREEN:case Ne.RIGHT:case Ne.SHIFT:case Ne.UP:case Ne.WIN_KEY:case Ne.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ne.ZERO&&e<=Ne.NINE||e>=Ne.NUM_ZERO&&e<=Ne.NUM_MULTIPLY||e>=Ne.A&&e<=Ne.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case Ne.SPACE:case Ne.QUESTION_MARK:case Ne.NUM_PLUS:case Ne.NUM_MINUS:case Ne.NUM_PERIOD:case Ne.NUM_DIVISION:case Ne.SEMICOLON:case Ne.DASH:case Ne.EQUALS:case Ne.COMMA:case Ne.PERIOD:case Ne.SLASH:case Ne.APOSTROPHE:case Ne.SINGLE_QUOTE:case Ne.OPEN_SQUARE_BRACKET:case Ne.BACKSLASH:case Ne.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Ae=Ne;var Su=function(e,n){var r,a=n.slots,i=e.class,o=e.customizeIcon,s=e.customizeIconProps,l=e.onMousedown,u=e.onClick,c;return typeof o=="function"?c=o(s):c=o,S("span",{class:i,onMousedown:function(v){v.preventDefault(),l&&l(v)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},[c!==void 0?c:S("span",{class:i.split(/\s+/).map(function(d){return"".concat(d,"-icon")})},[(r=a.default)===null||r===void 0?void 0:r.call(a)])])};Su.inheritAttrs=!1;Su.displayName="TransBtn";Su.props={class:String,customizeIcon:ee.any,customizeIconProps:ee.any,onMousedown:Function,onClick:Function};const Nl=Su;function ER(t){t.target.composing=!0}function im(t){t.target.composing&&(t.target.composing=!1,OR(t.target,"input"))}function OR(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function yc(t,e,n,r){t.addEventListener(e,n,r)}var PR={created:function(e,n){(!n.modifiers||!n.modifiers.lazy)&&(yc(e,"compositionstart",ER),yc(e,"compositionend",im),yc(e,"change",im))}};const vs=PR;var AR={inputRef:ee.any,prefixCls:String,id:String,inputElement:ee.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:ee.oneOfType([ee.number,ee.string]),attrs:ee.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},IR=he({compatConfig:{MODE:3},name:"Input",inheritAttrs:!1,props:AR,setup:function(e){var n=null,r=ot("VCSelectContainerEvent");return function(){var a,i,o=e.prefixCls,s=e.id,l=e.inputElement,u=e.disabled,c=e.tabindex,d=e.autofocus,v=e.autocomplete,h=e.editable,f=e.activeDescendantId,p=e.value,m=e.onKeydown,g=e.onMousedown,y=e.onChange,b=e.onPaste,w=e.onCompositionstart,_=e.onCompositionend,C=e.onFocus,E=e.onBlur,I=e.open,T=e.inputRef,N=e.attrs,R=l||dn(S("input",null,null),[[vs]]),F=R.props||{},L=F.onKeydown,j=F.onInput,D=F.onFocus,P=F.onBlur,O=F.onMousedown,k=F.onCompositionstart,$=F.onCompositionend,G=F.style;return R=Et(R,Ut(M(M(M({type:"search"},F),{},{id:s,ref:T,disabled:u,tabindex:c,autocomplete:v||"off",autofocus:d,class:Ce("".concat(o,"-selection-search-input"),(a=R)===null||a===void 0||(i=a.props)===null||i===void 0?void 0:i.class),role:"combobox","aria-expanded":I,"aria-haspopup":"listbox","aria-owns":"".concat(s,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(s,"_list"),"aria-activedescendant":f},N),{},{value:h?p:"",readonly:!h,unselectable:h?null:"on",style:M(M({},G),{},{opacity:h?null:0}),onKeydown:function(Z){m(Z),L&&L(Z)},onMousedown:function(Z){g(Z),O&&O(Z)},onInput:function(Z){y(Z),j&&j(Z)},onCompositionstart:function(Z){w(Z),k&&k(Z)},onCompositionend:function(Z){_(Z),$&&$(Z)},onPaste:b,onFocus:function(){clearTimeout(n),D&&D(arguments.length<=0?void 0:arguments[0]),C&&C(arguments.length<=0?void 0:arguments[0]),r==null||r.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var Z=arguments.length,X=new Array(Z),Y=0;Y1&&arguments[1]!==void 0?arguments[1]:{},n=e.fieldNames,r=e.childrenAsData,a=[],i=Jw(n,!1),o=i.label,s=i.value,l=i.options;function u(c,d){c.forEach(function(v){var h=v[o];if(d||!(l in v)){var f=v[s];a.push({key:Cg(v,a.length),groupOption:d,data:v,label:h,value:f})}else{var p=h;p===void 0&&r&&(p=v.label),a.push({key:Cg(v,a.length),group:!0,data:v,label:p}),u(v[l],!0)}})}return u(t,!1),a}function wf(t){var e=M({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return e}}),e}function Wk(t,e){if(!e||!e.length)return null;var n=!1;function r(i,o){var s=zk(o),l=s[0],u=s.slice(1);if(!l)return[i];var c=i.split(l);return n=n||c.length>1,c.reduce(function(d,v){return[].concat(nt(d),nt(r(v,u)))},[]).filter(function(d){return d})}var a=r(t,e);return n?a:null}function Oa(t,e){return t?t.contains(e):!1}var Xw=["moz","ms","webkit"];function Hk(){var t=0;return function(e){var n=new Date().getTime(),r=Math.max(0,16-(n-t)),a=window.setTimeout(function(){e(n+r)},r);return t=n+r,a}}function Vk(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var t=Xw.filter(function(e){return"".concat(e,"RequestAnimationFrame")in window})[0];return t?window["".concat(t,"RequestAnimationFrame")]:Hk()}function Uk(t){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(t);var e=Xw.filter(function(n){return"".concat(n,"CancelAnimationFrame")in window||"".concat(n,"CancelRequestAnimationFrame")in window})[0];return e?(window["".concat(e,"CancelAnimationFrame")]||window["".concat(e,"CancelRequestAnimationFrame")]).call(this,t):clearTimeout(t)}var Sg=Vk(),Kk=function(e){return Uk(e.id)},Gk=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Date.now();function a(){Date.now()-r>=n?e.call():i.id=Sg(a)}var i={id:Sg(a)};return i},cv={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},qk=M(M({},cv),{},{mobile:{type:Object}}),Yk=M(M({},cv),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Zw(t){var e=t.prefixCls,n=t.animation,r=t.transitionName;return n?{name:"".concat(e,"-").concat(n)}:r?{name:r}:{}}function Qw(t){var e=t.prefixCls,n=t.visible,r=t.zIndex,a=t.mask,i=t.maskAnimation,o=t.maskTransitionName;if(!a)return null;var s={};return(o||i)&&(s=Zw({prefixCls:e,transitionName:o,animation:i})),S(Yn,M({appear:!0},s),{default:function(){return[dn(S("div",{style:{zIndex:r},class:"".concat(e,"-mask")},null),[[HE("if"),n]])]}})}Qw.displayName="Mask";const Jk=he({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:qk,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,n){var r=n.expose,a=n.slots,i=z();return r({forceAlign:function(){},getElement:function(){return i.value}}),function(){var o,s=e.zIndex,l=e.visible,u=e.prefixCls,c=e.mobile,d=c===void 0?{}:c,v=d.popupClassName,h=d.popupStyle,f=d.popupMotion,p=f===void 0?{}:f,m=d.popupRender,g=M({zIndex:s},h),y=kn((o=a.default)===null||o===void 0?void 0:o.call(a));y.length>1&&(y=S("div",{class:"".concat(u,"-content")},[y])),m&&(y=m(y));var b=Ce(u,v);return S(Yn,M({ref:i},p),{default:function(){return[l?S("div",{class:b,style:g},[y]):null]}})}}});var xg=["measure","align",null,"motion"];const Xk=function(t,e){var n=z(null),r=z(),a=z(!1);function i(l){a.value||(n.value=l)}function o(){Ue.cancel(r.value)}function s(l){o(),r.value=Ue(function(){var u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}i(u),l==null||l()})}return pe(t,function(){i("measure")},{immediate:!0,flush:"post"}),Ve(function(){pe(n,function(){switch(n.value){case"measure":e();break}n.value&&(r.value=Ue(tk(hg.mark(function l(){var u,c;return hg.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:u=xg.indexOf(n.value),c=xg[u+1],c&&u!==-1&&i(c);case 3:case"end":return v.stop()}},l)}))))},{immediate:!0,flush:"post"})}),st(function(){a.value=!0,o()}),[n,s]},Zk=function(t){var e=z({width:0,height:0});function n(a){e.value={width:a.offsetWidth,height:a.offsetHeight}}var r=V(function(){var a={};if(t.value){var i=e.value,o=i.width,s=i.height;t.value.indexOf("height")!==-1&&s?a.height="".concat(s,"px"):t.value.indexOf("minHeight")!==-1&&s&&(a.minHeight="".concat(s,"px")),t.value.indexOf("width")!==-1&&o?a.width="".concat(o,"px"):t.value.indexOf("minWidth")!==-1&&o&&(a.minWidth="".concat(o,"px"))}return a});return[r,n]};function Tg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Eg(t){for(var e=1;e=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function _M(t,e,n,r){var a=We.clone(t),i={width:e.width,height:e.height};return r.adjustX&&a.left=n.left&&a.left+i.width>n.right&&(i.width-=a.left+i.width-n.right),r.adjustX&&a.left+i.width>n.right&&(a.left=Math.max(n.right-i.width,n.left)),r.adjustY&&a.top=n.top&&a.top+i.height>n.bottom&&(i.height-=a.top+i.height-n.bottom),r.adjustY&&a.top+i.height>n.bottom&&(a.top=Math.max(n.bottom-i.height,n.top)),We.mix(a,i)}function pv(t){var e,n,r;if(!We.isWindow(t)&&t.nodeType!==9)e=We.offset(t),n=We.outerWidth(t),r=We.outerHeight(t);else{var a=We.getWindow(t);e={left:We.getWindowScrollLeft(a),top:We.getWindowScrollTop(a)},n=We.viewportWidth(a),r=We.viewportHeight(a)}return e.width=n,e.height=r,e}function Rg(t,e){var n=e.charAt(0),r=e.charAt(1),a=t.width,i=t.height,o=t.left,s=t.top;return n==="c"?s+=i/2:n==="b"&&(s+=i),r==="c"?o+=a/2:r==="r"&&(o+=a),{left:o,top:s}}function $s(t,e,n,r,a){var i=Rg(e,n[1]),o=Rg(t,n[0]),s=[o.left-i.left,o.top-i.top];return{left:Math.round(t.left-s[0]+r[0]-a[0]),top:Math.round(t.top-s[1]+r[1]-a[1])}}function $g(t,e,n){return t.leftn.right}function Dg(t,e,n){return t.topn.bottom}function CM(t,e,n){return t.left>n.right||t.left+e.widthn.bottom||t.top+e.height=n.right||r.top>=n.bottom}function hv(t,e,n){var r=n.target||e,a=pv(r),i=!xM(r,n.overflow&&n.overflow.alwaysByViewport);return s_(t,a,n,i)}hv.__getOffsetParent=xf;hv.__getVisibleRectForElement=vv;function TM(t,e,n){var r,a,i=We.getDocument(t),o=i.defaultView||i.parentWindow,s=We.getWindowScrollLeft(o),l=We.getWindowScrollTop(o),u=We.viewportWidth(o),c=We.viewportHeight(o);"pageX"in e?r=e.pageX:r=s+e.clientX,"pageY"in e?a=e.pageY:a=l+e.clientY;var d={left:r,top:a,width:0,height:0},v=r>=0&&r<=s+u&&a>=0&&a<=l+c,h=[n.points[0],"cc"];return s_(t,d,Eg(Eg({},n),{},{points:h}),v)}function Et(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=t;if(Array.isArray(t)&&(a=Fi(t)[0]),!a)return null;var i=rr(a,e,r);return i.props=n?M(M({},i.props),e):i.props,pu(Qe(i.props.class)!=="object","class must be string"),i}const EM=function(t){if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){var n=t.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function OM(t,e){return t===e?!0:!t||!e?!1:"pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e?t.clientX===e.clientX&&t.clientY===e.clientY:!1}function PM(t,e){t!==document.activeElement&&Oa(e,t)&&typeof t.focus=="function"&&t.focus()}function Bg(t,e){var n=null,r=null;function a(o){var s=ke(o,1),l=s[0].target;if(document.documentElement.contains(l)){var u=l.getBoundingClientRect(),c=u.width,d=u.height,v=Math.floor(c),h=Math.floor(d);(n!==v||r!==h)&&Promise.resolve().then(function(){e({width:v,height:h})}),n=v,r=h}}var i=new j1(a);return t&&i.observe(t),function(){i.disconnect()}}const AM=function(t,e){var n=!1,r=null;function a(){clearTimeout(r)}function i(o){if(!n||o===!0){if(t()===!1)return;n=!0,a(),r=setTimeout(function(){n=!1},e.value)}else a(),r=setTimeout(function(){n=!1,i()},e.value)}return[i,function(){n=!1,a()}]};function IM(){this.__data__=[],this.size=0}function gv(t,e){return t===e||t!==t&&e!==e}function yu(t,e){for(var n=t.length;n--;)if(gv(t[n][0],e))return n;return-1}var kM=Array.prototype,MM=kM.splice;function NM(t){var e=this.__data__,n=yu(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():MM.call(e,n,1),--this.size,!0}function RM(t){var e=this.__data__,n=yu(e,t);return n<0?void 0:e[n][1]}function $M(t){return yu(this.__data__,t)>-1}function DM(t,e){var n=this.__data__,r=yu(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Wr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++es))return!1;var u=i.get(t),c=i.get(e);if(u&&c)return u==e&&c==t;var d=-1,v=!0,h=n&I2?new Go:void 0;for(i.set(t,e),i.set(e,t);++d-1&&t%1==0&&t-1&&t%1==0&&t<=uN}var cN="[object Arguments]",fN="[object Array]",dN="[object Boolean]",vN="[object Date]",pN="[object Error]",hN="[object Function]",gN="[object Map]",mN="[object Number]",yN="[object Object]",bN="[object RegExp]",wN="[object Set]",_N="[object String]",CN="[object WeakMap]",SN="[object ArrayBuffer]",xN="[object DataView]",TN="[object Float32Array]",EN="[object Float64Array]",ON="[object Int8Array]",PN="[object Int16Array]",AN="[object Int32Array]",IN="[object Uint8Array]",kN="[object Uint8ClampedArray]",MN="[object Uint16Array]",NN="[object Uint32Array]",pt={};pt[TN]=pt[EN]=pt[ON]=pt[PN]=pt[AN]=pt[IN]=pt[kN]=pt[MN]=pt[NN]=!0;pt[cN]=pt[fN]=pt[SN]=pt[dN]=pt[xN]=pt[vN]=pt[pN]=pt[hN]=pt[gN]=pt[mN]=pt[yN]=pt[bN]=pt[wN]=pt[_N]=pt[CN]=!1;function RN(t){return wr(t)&&Cv(t.length)&&!!pt[fa(t)]}function Sv(t){return function(e){return t(e)}}var h_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,So=h_&&typeof module=="object"&&module&&!module.nodeType&&module,$N=So&&So.exports===h_,mc=$N&&U1.process,DN=function(){try{var t=So&&So.require&&So.require("util").types;return t||mc&&mc.binding&&mc.binding("util")}catch{}}();const Pi=DN;var Kg=Pi&&Pi.isTypedArray,LN=Kg?Sv(Kg):RN;const g_=LN;var FN=Object.prototype,BN=FN.hasOwnProperty;function m_(t,e){var n=ir(t),r=!n&&wv(t),a=!n&&!r&&Ml(t),i=!n&&!r&&!a&&g_(t),o=n||r||a||i,s=o?Z2(t.length,String):[],l=s.length;for(var u in t)(e||BN.call(t,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_v(u,l)))&&s.push(u);return s}var zN=Object.prototype;function xv(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||zN;return t===n}var jN=G1(Object.keys,Object);const WN=jN;var HN=Object.prototype,VN=HN.hasOwnProperty;function UN(t){if(!xv(t))return WN(t);var e=[];for(var n in Object(t))VN.call(t,n)&&n!="constructor"&&e.push(n);return e}function y_(t){return t!=null&&Cv(t.length)&&!l_(t)}function wu(t){return y_(t)?m_(t):UN(t)}function Tf(t){return f_(t,wu,bv)}var KN=1,GN=Object.prototype,qN=GN.hasOwnProperty;function YN(t,e,n,r,a,i){var o=n&KN,s=Tf(t),l=s.length,u=Tf(e),c=u.length;if(l!=c&&!o)return!1;for(var d=l;d--;){var v=s[d];if(!(o?v in e:qN.call(e,v)))return!1}var h=i.get(t),f=i.get(e);if(h&&f)return h==e&&f==t;var p=!0;i.set(t,e),i.set(e,t);for(var m=o;++d1&&(X=S("div",{class:"".concat(j,"-content")},[X]));var Y=Ce(j,a.class,l.value),ne=f.value||!e.visible,le=ne?cs(I.value.name,I.value):{};return S(Yn,M(M({ref:s},le),{},{onBeforeEnter:T}),{default:function(){return!D||e.visible?dn(S(fR,{target:_(),key:"popup",ref:o,monitorWindowResize:!0,disabled:N.value,align:L,onAlign:E},{default:function(){return S("div",M(M({class:Y,onMouseenter:P,onMouseleave:O,onMousedown:An(G,["capture"])},te({},ln?"onTouchstartPassive":"onTouchstart",An($,["capture"]))),{},{style:Z}),[X])}}),[[$r,f.value]]):null}})}}}),vR=he({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Yk,setup:function(e,n){var r=n.attrs,a=n.slots,i=n.expose,o=z(!1),s=z(!1),l=z();return pe([function(){return e.visible},function(){return e.mobile}],function(){o.value=e.visible,e.visible&&e.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),i({forceAlign:function(){var c;(c=l.value)===null||c===void 0||c.forceAlign()},getElement:function(){var c;return(c=l.value)===null||c===void 0?void 0:c.getElement()}}),function(){var u=M(M(M({},e),r),{},{visible:o.value}),c=s.value?S(Jk,M(M({},u),{},{mobile:e.mobile,ref:l}),{default:a.default}):S(dR,M(M({},u),{},{ref:l}),{default:a.default});return S("div",null,[S(Qw,u,null),c])}}});function pR(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function rm(t,e,n){var r=t[e]||{};return M(M({},r),n)}function hR(t,e,n,r){for(var a=n.points,i=Object.keys(t),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var a=this.getDerivedStateFromProps(oA(this),M(M({},this.$data),r));if(a===null)return;r=M(M({},r),a||{})}Ut(this.$data,r),this._.isMounted&&this.$forceUpdate(),Ke(function(){n&&n()})},__emit:function(){var e=[].slice.call(arguments,0),n=e[0];n="on".concat(n[0].toUpperCase()).concat(n.substring(1));var r=this.$props[n]||this.$attrs[n];if(e.length&&r)if(Array.isArray(r))for(var a=0,i=r.length;a1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};wt(w_,{inTriggerContext:n.inTriggerContext,shouldRender:V(function(){var r=e||{},a=r.sPopupVisible,i=r.popupRef,o=r.forceRender,s=r.autoDestroy,l=!1;return(a||i||o)&&(l=!0),!a&&s&&(l=!1),l})})},yR=function(){Tv({},{inTriggerContext:!1});var e=ot(w_,{shouldRender:V(function(){return!1}),inTriggerContext:!1});return{shouldRender:V(function(){return e.shouldRender.value||e.inTriggerContext===!1})}};const Af=he({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:ee.func.isRequired,didUpdate:Function},setup:function(e,n){var r=n.slots,a=!0,i,o=yR(),s=o.shouldRender;Rd(function(){a=!1,s.value&&(i=e.getContainer())});var l=pe(s,function(){s.value&&!i&&(i=e.getContainer()),i&&l()});return ca(function(){Ke(function(){if(s.value){var u;(u=e.didUpdate)===null||u===void 0||u.call(e,e)}})}),st(function(){i&&i.parentNode&&i.parentNode.removeChild(i)}),function(){if(!s.value)return null;if(a){var u;return(u=r.default)===null||u===void 0?void 0:u.call(r)}return i?S(uu,{to:i},r):null}}});function am(){}function bR(){return""}function wR(t){return t?t.ownerDocument:window.document}var _R=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const Cu=he({compatConfig:{MODE:3},name:"Trigger",mixins:[b_],inheritAttrs:!1,props:{action:ee.oneOfType([ee.string,ee.arrayOf(ee.string)]).def([]),showAction:ee.any.def([]),hideAction:ee.any.def([]),getPopupClassNameFromAlign:ee.any.def(bR),onPopupVisibleChange:Function,afterPopupVisibleChange:ee.func.def(am),popup:ee.any,popupStyle:{type:Object,default:void 0},prefixCls:ee.string.def("rc-trigger-popup"),popupClassName:ee.string.def(""),popupPlacement:String,builtinPlacements:ee.object,popupTransitionName:String,popupAnimation:ee.any,mouseEnterDelay:ee.number.def(0),mouseLeaveDelay:ee.number.def(.1),zIndex:Number,focusDelay:ee.number.def(0),blurDelay:ee.number.def(.15),getPopupContainer:Function,getDocument:ee.func.def(wR),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:ee.object.def(function(){return{}}),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function,tryPopPortal:Boolean},setup:function(e){var n=V(function(){var l=e.popupPlacement,u=e.popupAlign,c=e.builtinPlacements;return l&&c?rm(c,l,u):u}),r=mR(e.tryPopPortal),a=r.setPortal,i=r.popPortal,o=z(null),s=function(u){o.value=u};return{popPortal:i,setPortal:a,vcTriggerContext:ot("vcTriggerContext",{}),popupRef:o,setPopupRef:s,triggerRef:z(null),align:n,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data:function(){var e=this,n,r=this.$props,a;return this.popupVisible!==void 0?a=!!r.popupVisible:a=!!r.defaultPopupVisible,_R.forEach(function(i){e["fire".concat(i)]=function(o){e.fireEvents(i,o)}}),(n=this.setPortal)===null||n===void 0||n.call(this,S(Af,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent})),{prevPopupVisible:a,sPopupVisible:a,point:null}},watch:{popupVisible:function(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created:function(){wt("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),Tv(this)},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},updated:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},beforeUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ue.cancel(this.attachId)},methods:{updatedCal:function(){var e=this.$props,n=this.$data;if(n.sPopupVisible){var r;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(r=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=jn(r,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(r=r||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=jn(r,"touchstart",this.onDocumentClick,ln?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(r=r||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=jn(r,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=jn(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(e){var n=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,n,n?null:e)},onMouseMove:function(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave:function(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(e){var n;e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&Oa((n=this.popupRef)===null||n===void 0?void 0:n.getElement(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart:function(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur:function(e){Oa(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();var r=!this.$data.sPopupVisible;(this.isClickToHide()&&!r||r&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown:function(){var e=this,n=this.vcTriggerContext,r=n===void 0?{}:n;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),r.onPopupMouseDown&&r.onPopupMouseDown.apply(r,arguments)},onDocumentClick:function(e){if(!(this.$props.mask&&!this.$props.maskClosable)){var n=e.target,r=this.getRootDomNode(),a=this.getPopupDomNode();(!Oa(r,n)||this.isContextMenuOnly())&&!Oa(a,n)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)}},getPopupDomNode:function(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode:function(){var e=this.$props.getTriggerDOMNode;if(e){var n=Ia(this.triggerRef);return Ia(e(n))}try{var r=Ia(this.triggerRef);if(r)return r}catch{}return Ia(this)},handleGetPopupClassFromAlign:function(e){var n=[],r=this.$props,a=r.popupPlacement,i=r.builtinPlacements,o=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return a&&i&&n.push(hR(i,o,e,s)),l&&n.push(l(e)),n.join(" ")},getPopupAlign:function(){var e=this.$props,n=e.popupPlacement,r=e.popupAlign,a=e.builtinPlacements;return n&&a?rm(a,n,r):r},getComponent:function(){var e=this,n={};this.isMouseEnterToShow()&&(n.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(n.onMouseleave=this.onPopupMouseleave),n.onMousedown=this.onPopupMouseDown,n[ln?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var r=this.handleGetPopupClassFromAlign,a=this.getRootDomNode,i=this.getContainer,o=this.$attrs,s=this.$props,l=s.prefixCls,u=s.destroyPopupOnHide,c=s.popupClassName,d=s.popupAnimation,v=s.popupTransitionName,h=s.popupStyle,f=s.mask,p=s.maskAnimation,m=s.maskTransitionName,g=s.zIndex,y=s.stretch,b=s.alignPoint,w=s.mobile,_=s.forceRender,C=this.$data,E=C.sPopupVisible,I=C.point,T=M(M({prefixCls:l,destroyPopupOnHide:u,visible:E,point:b?I:null,align:this.align,animation:d,getClassNameFromAlign:r,stretch:y,getRootDomNode:a,mask:f,zIndex:g,transitionName:v,maskAnimation:p,maskTransitionName:m,getContainer:i,class:c,style:h,onAlign:o.onPopupAlign||am},n),{},{ref:this.setPopupRef,mobile:w,forceRender:_});return S(vR,T,{default:this.$slots.popup||function(){return J1(e,"popup")}})},attachParent:function(e){var n=this;Ue.cancel(this.attachId);var r=this.$props,a=r.getPopupContainer,i=r.getDocument,o=this.getRootDomNode(),s;a?(o||a.length===0)&&(s=a(o)):s=i(this.getRootDomNode()).body,s?s.appendChild(e):this.attachId=Ue(function(){n.attachParent(e)})},getContainer:function(){var e=this.$props,n=e.getDocument,r=n(this.getRootDomNode()).createElement("div");return r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.width="100%",this.attachParent(r),r},setPopupVisible:function(e,n){var r=this.alignPoint,a=this.sPopupVisible,i=this.onPopupVisibleChange;this.clearDelayTimer(),a!==e&&(oi(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:a}),i&&i(e)),r&&n&&e&&this.setPoint(n)},setPoint:function(e){var n=this.$props.alignPoint;!n||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(e,n,r){var a=this,i=n*1e3;if(this.clearDelayTimer(),i){var o=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=Gk(function(){a.setPopupVisible(e,o),a.clearDelayTimer()},i)}else this.setPopupVisible(e,r)},clearDelayTimer:function(){this.delayTimer&&(Kk(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains:function(e){var n=function(){},r=Fh(this);return this.childOriginEvents[e]&&r[e]?this["fire".concat(e)]:(n=this.childOriginEvents[e]||r[e]||n,n)},isClickToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("click")!==-1||r.indexOf("click")!==-1},isContextMenuOnly:function(){var e=this.$props.action;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("contextmenu")!==-1||r.indexOf("contextmenu")!==-1},isClickToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("click")!==-1||r.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("hover")!==-1||r.indexOf("mouseenter")!==-1},isMouseLeaveToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("hover")!==-1||r.indexOf("mouseleave")!==-1},isFocusToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("focus")!==-1||r.indexOf("focus")!==-1},isBlurToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("focus")!==-1||r.indexOf("blur")!==-1},forcePopupAlign:function(){if(this.$data.sPopupVisible){var e;(e=this.popupRef)===null||e===void 0||e.forceAlign()}},fireEvents:function(e,n){this.childOriginEvents[e]&&this.childOriginEvents[e](n);var r=this.$props[e]||this.$attrs[e];r&&r(n)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,n=this.$attrs,r=Fi(iA(this)),a=this.$props.alignPoint,i=r[0];this.childOriginEvents=Fh(i);var o={key:"trigger"};this.isContextmenuToShow()?o.onContextmenu=this.onContextmenu:o.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(o.onClick=this.onClick,o.onMousedown=this.onMousedown,o[ln?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(o.onClick=this.createTwoChains("onClick"),o.onMousedown=this.createTwoChains("onMousedown"),o[ln?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(o.onMouseenter=this.onMouseenter,a&&(o.onMousemove=this.onMouseMove)):o.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?o.onMouseleave=this.onMouseleave:o.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(o.onFocus=this.onFocus,o.onBlur=this.onBlur):(o.onFocus=this.createTwoChains("onFocus"),o.onBlur=function(c){c&&(!c.relatedTarget||!Oa(c.target,c.relatedTarget))&&e.createTwoChains("onBlur")(c)});var s=Ce(i&&i.props&&i.props.class,n.class);s&&(o.class=s);var l=Et(i,M(M({},o),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return l;var u=S(Af,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return S(Re,null,[u,l])}});var CR=["empty"],SR=function(e){var n=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}}}},xR=he({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:ee.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:ee.oneOfType([Number,Boolean]).def(!0),popupElement:ee.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function},setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=V(function(){var l=e.dropdownMatchSelectWidth;return SR(l)}),s=z();return i({getPopupElement:function(){return s.value}}),function(){var l=M(M({},e),a),u=l.empty,c=u===void 0?!1:u,d=bt(l,CR),v=d.visible,h=d.dropdownAlign,f=d.prefixCls,p=d.popupElement,m=d.dropdownClassName,g=d.dropdownStyle,y=d.direction,b=y===void 0?"ltr":y,w=d.placement,_=d.dropdownMatchSelectWidth,C=d.containerWidth,E=d.dropdownRender,I=d.animation,T=d.transitionName,N=d.getPopupContainer,R=d.getTriggerDOMNode,F=d.onPopupVisibleChange,L=d.onPopupMouseEnter,j="".concat(f,"-dropdown"),D=p;E&&(D=E({menuNode:p,props:e}));var P=I?"".concat(j,"-").concat(I):T,O=M({minWidth:"".concat(C,"px")},g);return typeof _=="number"?O.width="".concat(_,"px"):_&&(O.width="".concat(C,"px")),S(Cu,M(M({},e),{},{showAction:F?["click"]:[],hideAction:F?["click"]:[],popupPlacement:w||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:o.value,prefixCls:j,popupTransitionName:P,popupAlign:h,popupVisible:v,getPopupContainer:N,popupClassName:Ce(m,te({},"".concat(j,"-empty"),c)),popupStyle:O,getTriggerDOMNode:R,onPopupVisibleChange:F}),{default:r.default,popup:function(){return S("div",{ref:s,onMouseenter:L},[D])}})}}});const TR=xR;var Ne={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var n=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||n>=Ne.F1&&n<=Ne.F12)return!1;switch(n){case Ne.ALT:case Ne.CAPS_LOCK:case Ne.CONTEXT_MENU:case Ne.CTRL:case Ne.DOWN:case Ne.END:case Ne.ESC:case Ne.HOME:case Ne.INSERT:case Ne.LEFT:case Ne.MAC_FF_META:case Ne.META:case Ne.NUMLOCK:case Ne.NUM_CENTER:case Ne.PAGE_DOWN:case Ne.PAGE_UP:case Ne.PAUSE:case Ne.PRINT_SCREEN:case Ne.RIGHT:case Ne.SHIFT:case Ne.UP:case Ne.WIN_KEY:case Ne.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ne.ZERO&&e<=Ne.NINE||e>=Ne.NUM_ZERO&&e<=Ne.NUM_MULTIPLY||e>=Ne.A&&e<=Ne.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case Ne.SPACE:case Ne.QUESTION_MARK:case Ne.NUM_PLUS:case Ne.NUM_MINUS:case Ne.NUM_PERIOD:case Ne.NUM_DIVISION:case Ne.SEMICOLON:case Ne.DASH:case Ne.EQUALS:case Ne.COMMA:case Ne.PERIOD:case Ne.SLASH:case Ne.APOSTROPHE:case Ne.SINGLE_QUOTE:case Ne.OPEN_SQUARE_BRACKET:case Ne.BACKSLASH:case Ne.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Ae=Ne;var Su=function(e,n){var r,a=n.slots,i=e.class,o=e.customizeIcon,s=e.customizeIconProps,l=e.onMousedown,u=e.onClick,c;return typeof o=="function"?c=o(s):c=o,S("span",{class:i,onMousedown:function(v){v.preventDefault(),l&&l(v)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},[c!==void 0?c:S("span",{class:i.split(/\s+/).map(function(d){return"".concat(d,"-icon")})},[(r=a.default)===null||r===void 0?void 0:r.call(a)])])};Su.inheritAttrs=!1;Su.displayName="TransBtn";Su.props={class:String,customizeIcon:ee.any,customizeIconProps:ee.any,onMousedown:Function,onClick:Function};const Nl=Su;function ER(t){t.target.composing=!0}function im(t){t.target.composing&&(t.target.composing=!1,OR(t.target,"input"))}function OR(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function yc(t,e,n,r){t.addEventListener(e,n,r)}var PR={created:function(e,n){(!n.modifiers||!n.modifiers.lazy)&&(yc(e,"compositionstart",ER),yc(e,"compositionend",im),yc(e,"change",im))}};const vs=PR;var AR={inputRef:ee.any,prefixCls:String,id:String,inputElement:ee.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:ee.oneOfType([ee.number,ee.string]),attrs:ee.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},IR=he({compatConfig:{MODE:3},name:"Input",inheritAttrs:!1,props:AR,setup:function(e){var n=null,r=ot("VCSelectContainerEvent");return function(){var a,i,o=e.prefixCls,s=e.id,l=e.inputElement,u=e.disabled,c=e.tabindex,d=e.autofocus,v=e.autocomplete,h=e.editable,f=e.activeDescendantId,p=e.value,m=e.onKeydown,g=e.onMousedown,y=e.onChange,b=e.onPaste,w=e.onCompositionstart,_=e.onCompositionend,C=e.onFocus,E=e.onBlur,I=e.open,T=e.inputRef,N=e.attrs,R=l||dn(S("input",null,null),[[vs]]),F=R.props||{},L=F.onKeydown,j=F.onInput,D=F.onFocus,P=F.onBlur,O=F.onMousedown,k=F.onCompositionstart,$=F.onCompositionend,G=F.style;return R=Et(R,Ut(M(M(M({type:"search"},F),{},{id:s,ref:T,disabled:u,tabindex:c,autocomplete:v||"off",autofocus:d,class:Ce("".concat(o,"-selection-search-input"),(a=R)===null||a===void 0||(i=a.props)===null||i===void 0?void 0:i.class),role:"combobox","aria-expanded":I,"aria-haspopup":"listbox","aria-owns":"".concat(s,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(s,"_list"),"aria-activedescendant":f},N),{},{value:h?p:"",readonly:!h,unselectable:h?null:"on",style:M(M({},G),{},{opacity:h?null:0}),onKeydown:function(Z){m(Z),L&&L(Z)},onMousedown:function(Z){g(Z),O&&O(Z)},onInput:function(Z){y(Z),j&&j(Z)},onCompositionstart:function(Z){w(Z),k&&k(Z)},onCompositionend:function(Z){_(Z),$&&$(Z)},onPaste:b,onFocus:function(){clearTimeout(n),D&&D(arguments.length<=0?void 0:arguments[0]),C&&C(arguments.length<=0?void 0:arguments[0]),r==null||r.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var Z=arguments.length,X=new Array(Z),Y=0;Y=0;ie-=1){var re=U[ie];if(!re.disabled){U.splice(ie,1),se=re;break}}se&&e.onDisplayValuesChange(U,{type:"remove",values:[se]})}for(var Q=arguments.length,H=new Array(Q>1?Q-1:0),q=1;q1?A-1:0),K=1;K1?ie-1:0),Q=1;Qn}},render:function(){var e=this.state,n=e.dragging,r=e.visible,a=this.$props.prefixCls,i=this.getSpinHeight()+"px",o=this.getTop()+"px",s=this.showScroll(),l=s&&r;return S("div",{ref:this.scrollbarRef,class:Ce("".concat(a,"-scrollbar"),te({},"".concat(a,"-scrollbar-show"),s)),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[S("div",{ref:this.thumbRef,class:Ce("".concat(a,"-scrollbar-thumb"),te({},"".concat(a,"-scrollbar-thumb-moving"),n)),style:{width:"100%",height:i,top:o,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function d$(t,e,n,r){var a=new Map,i=new Map,o=z(Symbol("update"));pe(t,function(){o.value=Symbol("update")});var s=void 0;function l(){Ue.cancel(s)}function u(){l(),s=Ue(function(){a.forEach(function(d,v){if(d&&d.offsetParent){var h=d.offsetHeight;i.get(v)!==h&&(o.value=Symbol("update"),i.set(v,d.offsetHeight))}})})}function c(d,v){var h=e(d),f=a.get(h);v?(a.set(h,v.$el||v),u()):a.delete(h),!f!=!v&&(v?n==null||n(d):r==null||r(d))}return vn(function(){l()}),[c,u,i,o]}function v$(t,e,n,r,a,i,o,s){var l;return function(u){if(u==null){s();return}Ue.cancel(l);var c=e.value,d=r.itemHeight;if(typeof u=="number")o(u);else if(u&&Qe(u)==="object"){var v,h=u.align;"index"in u?v=u.index:v=c.findIndex(function(g){return a(g)===u.key});var f=u.offset,p=f===void 0?0:f,m=function g(y,b){if(!(y<0||!t.value)){var w=t.value.clientHeight,_=!1,C=b;if(w){for(var E=b||h,I=0,T=0,N=0,R=Math.min(c.length,v),F=0;F<=R;F+=1){var L=a(c[F]);T=I;var j=n.get(L);N=T+(j===void 0?d:j),I=N,F===v&&j===void 0&&(_=!0)}var D=t.value.scrollTop,P=null;switch(E){case"top":P=T-p;break;case"bottom":P=N-w+p;break;default:{var O=D+w;TO&&(C="bottom")}}P!==null&&P!==D&&o(P)}l=Ue(function(){_&&i(),g(y-1,C)},2)}};m(5)}}}var p$=(typeof navigator>"u"?"undefined":Qe(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const h$=p$,M_=function(t,e){var n=!1,r=null;function a(){clearTimeout(r),n=!0,r=setTimeout(function(){n=!1},50)}return function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=i<0&&t.value||i>0&&e.value;return o&&s?(clearTimeout(r),n=!1):(!s||n)&&a(),!n&&s}};function g$(t,e,n,r){var a=0,i=null,o=null,s=!1,l=M_(e,n);function u(d){if(t.value){Ue.cancel(i);var v=d.deltaY;a+=v,o=v,!l(v)&&(h$||d.preventDefault(),i=Ue(function(){var h=s?10:1;r(a*h),a=0}))}}function c(d){t.value&&(s=d.detail===o)}return[u,c]}var m$=14/15;function y$(t,e,n){var r=!1,a=0,i=null,o=null,s=function(){i&&(i.removeEventListener("touchmove",l),i.removeEventListener("touchend",u))},l=function(h){if(r){var f=Math.ceil(h.touches[0].pageY),p=a-f;a=f,n(p)&&h.preventDefault(),clearInterval(o),o=setInterval(function(){p*=m$,(!n(p,!0)||Math.abs(p)<=.1)&&clearInterval(o)},16)}},u=function(){r=!1,s()},c=function(h){s(),h.touches.length===1&&!r&&(r=!0,a=Math.ceil(h.touches[0].pageY),i=h.target,i.addEventListener("touchmove",l,{passive:!1}),i.addEventListener("touchend",u))},d=function(){};Ve(function(){document.addEventListener("touchmove",d,{passive:!1}),pe(t,function(v){e.value.removeEventListener("touchstart",c),s(),clearInterval(o),v&&e.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),st(function(){document.removeEventListener("touchmove",d)})}var b$=["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"],w$=[],_$={overflowY:"auto",overflowAnchor:"none"};function C$(t,e,n,r,a,i){var o=i.getKey;return t.slice(e,n+1).map(function(s,l){var u=e+l,c=a(s,u,{}),d=o(s);return S(u$,{key:d,setRef:function(h){return r(s,h)}},{default:function(){return[c]}})})}var S$=he({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:ee.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup:function(e,n){var r=n.expose,a=V(function(){var X=e.height,Y=e.itemHeight,ne=e.virtual;return!!(ne!==!1&&X&&Y)}),i=V(function(){var X=e.height,Y=e.itemHeight,ne=e.data;return a.value&&ne&&Y*ne.length>X}),o=ct({scrollTop:0,scrollMoving:!1}),s=V(function(){return e.data||w$}),l=Qn([]);pe(s,function(){l.value=De(s.value).slice()},{immediate:!0});var u=Qn(function(X){});pe(function(){return e.itemKey},function(X){typeof X=="function"?u.value=X:u.value=function(Y){return Y==null?void 0:Y[X]}},{immediate:!0});var c=z(),d=z(),v=z(),h=function(Y){return u.value(Y)},f={getKey:h};function p(X){var Y;typeof X=="function"?Y=X(o.scrollTop):Y=X;var ne=T(Y);c.value&&(c.value.scrollTop=ne),o.scrollTop=ne}var m=d$(l,h,null,null),g=ke(m,4),y=g[0],b=g[1],w=g[2],_=g[3],C=ct({scrollHeight:void 0,start:0,end:0,offset:void 0}),E=z(0);Ve(function(){Ke(function(){var X;E.value=((X=d.value)===null||X===void 0?void 0:X.offsetHeight)||0})}),ca(function(){Ke(function(){var X;E.value=((X=d.value)===null||X===void 0?void 0:X.offsetHeight)||0})}),pe([a,l],function(){a.value||Ut(C,{scrollHeight:void 0,start:0,end:l.value.length-1,offset:void 0})},{immediate:!0}),pe([a,l,E,i],function(){a.value&&!i.value&&Ut(C,{scrollHeight:E.value,start:0,end:l.value.length-1,offset:void 0}),c.value&&(o.scrollTop=c.value.scrollTop)},{immediate:!0}),pe([i,a,function(){return o.scrollTop},l,_,function(){return e.height},E],function(){if(!(!a.value||!i.value)){for(var X=0,Y,ne,le,ge=l.value.length,_e=l.value,me=o.scrollTop,ye=e.itemHeight,Se=e.height,B=me+Se,x=0;x=me&&(Y=x,ne=X),le===void 0&&U>B&&(le=x),X=U}Y===void 0&&(Y=0,ne=0,le=Math.ceil(Se/ye)),le===void 0&&(le=ge-1),le=Math.min(le+1,ge),Ut(C,{scrollHeight:X,start:Y,end:le,offset:ne})}},{immediate:!0});var I=V(function(){return C.scrollHeight-e.height});function T(X){var Y=X;return Number.isNaN(I.value)||(Y=Math.min(Y,I.value)),Y=Math.max(Y,0),Y}var N=V(function(){return o.scrollTop<=0}),R=V(function(){return o.scrollTop>=I.value}),F=M_(N,R);function L(X){var Y=X;p(Y)}function j(X){var Y,ne=X.currentTarget.scrollTop;ne!==o.scrollTop&&p(ne),(Y=e.onScroll)===null||Y===void 0||Y.call(e,X)}var D=g$(a,N,R,function(X){p(function(Y){var ne=Y+X;return ne})}),P=ke(D,2),O=P[0],k=P[1];y$(a,c,function(X,Y){return F(X,Y)?!1:(O({preventDefault:function(){},deltaY:X}),!0)});function $(X){a.value&&X.preventDefault()}var G=function(){c.value&&(c.value.removeEventListener("wheel",O,ln?{passive:!1}:!1),c.value.removeEventListener("DOMMouseScroll",k),c.value.removeEventListener("MozMousePixelScroll",$))};yt(function(){Ke(function(){c.value&&(G(),c.value.addEventListener("wheel",O,ln?{passive:!1}:!1),c.value.addEventListener("DOMMouseScroll",k),c.value.addEventListener("MozMousePixelScroll",$))})}),st(function(){G()});var J=v$(c,l,w,e,h,b,p,function(){var X;(X=v.value)===null||X===void 0||X.delayHidden()});r({scrollTo:J});var Z=V(function(){var X=null;return e.height&&(X=M(te({},e.fullHeight?"height":"maxHeight",e.height+"px"),_$),a.value&&(X.overflowY="hidden",o.scrollMoving&&(X.pointerEvents="none"))),X});return pe([function(){return C.start},function(){return C.end},l],function(){if(e.onVisibleChange){var X=l.value.slice(C.start,C.end+1);e.onVisibleChange(X,l.value)}},{flush:"post"}),{state:o,mergedData:l,componentStyle:Z,onFallbackScroll:j,onScrollBar:L,componentRef:c,useVirtual:a,calRes:C,collectHeight:b,setInstance:y,sharedConfig:f,scrollBarRef:v,fillerInnerRef:d}},render:function(){var e=this,n=M(M({},this.$props),this.$attrs),r=n.prefixCls,a=r===void 0?"rc-virtual-list":r,i=n.height;n.itemHeight,n.fullHeight,n.data,n.itemKey,n.virtual;var o=n.component,s=o===void 0?"div":o;n.onScroll;var l=n.children,u=l===void 0?this.$slots.default:l,c=n.style,d=n.class,v=bt(n,b$),h=Ce(a,d),f=this.state.scrollTop,p=this.calRes,m=p.scrollHeight,g=p.offset,y=p.start,b=p.end,w=this.componentStyle,_=this.onFallbackScroll,C=this.onScrollBar,E=this.useVirtual,I=this.collectHeight,T=this.sharedConfig,N=this.setInstance,R=this.mergedData;return S("div",M({style:M(M({},c),{},{position:"relative"}),class:h},v),[S(s,{class:"".concat(a,"-holder"),style:w,ref:"componentRef",onScroll:_},{default:function(){return[S(l$,{prefixCls:a,height:m,offset:g,onInnerResize:I,ref:"fillerInnerRef"},{default:function(){return C$(R,y,b,N,u,T)}})]}}),E&&S(f$,{ref:"scrollBarRef",prefixCls:a,scrollTop:f,height:i,scrollHeight:m,count:R.length,onScroll:C,onStartMove:function(){e.state.scrollMoving=!0},onStopMove:function(){e.state.scrollMoving=!1}},null)])}});const x$=S$;function T$(t,e,n){var r=z(t());return pe(e,function(a,i){n?n(a,i)&&(r.value=t()):r.value=t()}),r}function E$(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var N_=Symbol("SelectContextKey");function O$(t){return wt(N_,t)}function P$(){return ot(N_,{})}var A$=["disabled","title","children","style","class","className"];function cm(t){return typeof t=="string"||typeof t=="number"}var I$=he({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,slots:["option"],setup:function(e,n){var r=n.expose,a=n.slots,i=n$(),o=P$(),s=V(function(){return"".concat(i.prefixCls,"-item")}),l=T$(function(){return o.flattenOptions},[function(){return i.open},function(){return o.flattenOptions}],function(C){return C[0]}),u=Yo(),c=function(E){E.preventDefault()},d=function(E){u.current&&u.current.scrollTo(typeof E=="number"?{index:E}:E)},v=function(E){for(var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,T=l.value.length,N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;h.activeIndex=E;var T={source:I?"keyboard":"mouse"},N=l.value[E];if(!N){o.onActiveValue(null,-1,T);return}o.onActiveValue(N.value,E,T)};pe([function(){return l.value.length},function(){return i.searchValue}],function(){f(o.defaultActiveFirstOption!==!1?v(0):-1)},{immediate:!0});var p=function(E){return o.rawValues.has(E)&&i.mode!=="combobox"};pe([function(){return i.open},function(){return i.searchValue}],function(){if(!i.multiple&&i.open&&o.rawValues.size===1){var C=Array.from(o.rawValues)[0],E=De(l.value).findIndex(function(I){var T=I.data;return T[o.fieldNames.value]===C});E!==-1&&(f(E),Ke(function(){d(E)}))}i.open&&Ke(function(){var I;(I=u.current)===null||I===void 0||I.scrollTo(void 0)})},{immediate:!0,flush:"post"});var m=function(E){E!==void 0&&o.onSelect(E,{selected:!o.rawValues.has(E)}),i.multiple||i.toggleOpen(!1)},g=function(E){return typeof E.label=="function"?E.label():E.label};function y(C){var E=l.value[C];if(!E)return null;var I=E.data||{},T=I.value,N=E.group,R=xu(I,!0),F=g(E);return E?S("div",M(M({"aria-label":typeof F=="string"&&!N?F:null},R),{},{key:C,role:N?"presentation":"option",id:"".concat(i.id,"_list_").concat(C),"aria-selected":p(T)}),[T]):null}var b=function(E){var I=E.which,T=E.ctrlKey;switch(I){case Ae.N:case Ae.P:case Ae.UP:case Ae.DOWN:{var N=0;if(I===Ae.UP?N=-1:I===Ae.DOWN?N=1:E$()&&T&&(I===Ae.N?N=1:I===Ae.P&&(N=-1)),N!==0){var R=v(h.activeIndex+N,N);d(R),f(R,!0)}break}case Ae.ENTER:{var F=l.value[h.activeIndex];F&&!F.data.disabled?m(F.value):m(void 0),i.open&&E.preventDefault();break}case Ae.ESC:i.toggleOpen(!1),i.open&&E.stopPropagation()}},w=function(){},_=function(E){d(E)};return r({onKeydown:b,onKeyup:w,scrollTo:_}),function(){var C=i.id,E=i.notFoundContent,I=i.onPopupScroll,T=o.menuItemSelectedIcon,N=o.fieldNames,R=o.virtual,F=o.listHeight,L=o.listItemHeight,j=a.option,D=h.activeIndex,P=Object.keys(N).map(function(O){return N[O]});return l.value.length===0?S("div",{role:"listbox",id:"".concat(C,"_list"),class:"".concat(s.value,"-empty"),onMousedown:c},[E]):S(Re,null,[S("div",{role:"listbox",id:"".concat(C,"_list"),style:{height:0,width:0,overflow:"hidden"}},[y(D-1),y(D),y(D+1)]),S(x$,{itemKey:"key",ref:u,data:l.value,height:F,itemHeight:L,fullHeight:!1,onMousedown:c,onScroll:I,virtual:R},{default:function(k,$){var G,J=k.group,Z=k.groupOption,X=k.data,Y=k.value,ne=X.key,le=typeof k.label=="function"?k.label():k.label;if(J){var ge,_e=(ge=X.title)!==null&&ge!==void 0?ge:cm(le)&≤return S("div",{class:Ce(s.value,"".concat(s.value,"-group")),title:_e},[j?j(X):le!==void 0?le:ne])}var me=X.disabled,ye=X.title;X.children;var Se=X.style,B=X.class,x=X.className,A=bt(X,A$),W=Lt(A,P),K=p(Y),U="".concat(s.value,"-option"),se=Ce(s.value,U,B,x,(G={},te(G,"".concat(U,"-grouped"),Z),te(G,"".concat(U,"-active"),D===$&&!me),te(G,"".concat(U,"-disabled"),me),te(G,"".concat(U,"-selected"),K),G)),ie=g(k),re=!T||typeof T=="function"||K,Q=typeof ie=="number"?ie:ie||Y,H=cm(Q)?Q.toString():void 0;return ye!==void 0&&(H=ye),S("div",M(M({},W),{},{"aria-selected":K,class:se,title:H,onMousemove:function(ue){A.onMousemove&&A.onMousemove(ue),!(D===$||me)&&f($)},onClick:function(ue){me||m(Y),A.onClick&&A.onClick(ue)},style:Se}),[S("div",{class:"".concat(U,"-content")},[j?j(X):Q]),ar(T)||K,re&&S(Nl,{class:"".concat(s.value,"-option-state"),customizeIcon:T,customizeIconProps:{isSelected:K}},{default:function(){return[K?"✓":null]}})])}})])}}});const k$=I$;var M$=["value","disabled"];function N$(t){var e=t.key,n=t.children,r=t.props,a=r.value,i=r.disabled,o=bt(r,M$),s=n==null?void 0:n.default;return M({key:e,value:a!==void 0?a:e,children:s,disabled:i||i===""},o)}function R_(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=kn(t).map(function(r,a){var i;if(!ar(r)||!r.type)return null;var o=r.type.isSelectOptGroup,s=r.key,l=r.children,u=r.props;if(e||!o)return N$(r);var c=l&&l.default?l.default():void 0,d=(u==null?void 0:u.label)||((i=l.label)===null||i===void 0?void 0:i.call(l))||s;return M(M({key:"__RC_SELECT_GRP__".concat(s===null?a:String(s),"__")},u),{},{label:d,options:R_(c||[])})}).filter(function(r){return r});return n}function R$(t,e,n){var r=Qn(),a=Qn(),i=Qn(),o=Qn([]);return pe([t,e],function(){t.value?o.value=De(t.value).slice():o.value=R_(e.value)},{immediate:!0,deep:!0}),yt(function(){var s=o.value,l=new Map,u=new Map,c=n.value;function d(v){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=0;f0&&arguments[0]!==void 0?arguments[0]:z(""),e="rc_select_".concat(D$());return t.value||e}function $_(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}function bc(t,e){return $_(t).join("").toUpperCase().includes(e)}const F$=function(t,e,n,r,a){return V(function(){var i=n.value,o=a==null?void 0:a.value,s=r==null?void 0:r.value;if(!i||s===!1)return t.value;var l=e.value,u=l.options,c=l.label,d=l.value,v=[],h=typeof s=="function",f=i.toUpperCase(),p=h?s:function(g,y){return o?bc(y[o],f):y[u]?bc(y[c!=="children"?c:"label"],f):bc(y[d],f)},m=h?function(g){return wf(g)}:function(g){return g};return t.value.forEach(function(g){if(g[u]){var y=p(i,m(g));if(y)v.push(g);else{var b=g[u].filter(function(w){return p(i,m(w))});b.length&&v.push(M(M({},g),{},te({},u,b)))}return}p(i,m(g))&&v.push(g)}),v})},B$=function(t,e){var n=Qn({values:new Map,options:new Map}),r=V(function(){var i=n.value,o=i.values,s=i.options,l=t.value.map(function(d){if(d.label===void 0){var v;return M(M({},d),{},{label:(v=o.get(d.value))===null||v===void 0?void 0:v.label})}return d}),u=new Map,c=new Map;return l.forEach(function(d){u.set(d.value,d),c.set(d.value,e.value.get(d.value)||s.get(d.value))}),n.value.values=u,n.value.options=c,l}),a=function(o){return e.value.get(o)||n.value.options.get(o)};return[r,a]};function Ai(t,e){var n=e||{},r=n.defaultValue,a=n.value,i=a===void 0?z():a,o=typeof t=="function"?t():t;i.value!==void 0&&(o=be(i)),r!==void 0&&(o=typeof r=="function"?r():r);var s=z(o),l=z(o);yt(function(){var c=i.value!==void 0?i.value:s.value;e.postState&&(c=e.postState(c)),l.value=c});function u(c){var d=l.value;s.value=c,De(l.value)!==c&&e.onChange&&e.onChange(c,d)}return pe(i,function(){s.value=i.value}),[l,u]}function Ht(t){var e=typeof t=="function"?t():t,n=z(e);function r(a){n.value=a}return[n,r]}var z$=["inputValue"];function D_(){return M(M({},A_()),{},{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:ee.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:ee.any,defaultValue:ee.any,onChange:Function,children:Array})}function j$(t){return!t||Qe(t)!=="object"}const W$=he({compatConfig:{MODE:3},name:"Select",inheritAttrs:!1,props:pn(D_(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup:function(e,n){var r=n.expose,a=n.attrs,i=n.slots,o=L$(sn(e,"id")),s=V(function(){return I_(e.mode)}),l=V(function(){return!!(!e.options&&e.children)}),u=V(function(){return e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption}),c=V(function(){return Jw(e.fieldNames,l.value)}),d=Ai("",{value:V(function(){return e.searchValue!==void 0?e.searchValue:e.inputValue}),postState:function(Q){return Q||""}}),v=ke(d,2),h=v[0],f=v[1],p=R$(sn(e,"options"),sn(e,"children"),c),m=p.valueOptions,g=p.labelOptions,y=p.options,b=function(Q){var H=$_(Q);return H.map(function(q){var ue,ae,fe,we;if(j$(q))ue=q;else{var xe;fe=q.key,ae=q.label,ue=(xe=q.value)!==null&&xe!==void 0?xe:fe}var Pe=m.value.get(ue);if(Pe){var oe;ae===void 0&&(ae=Pe==null?void 0:Pe[e.optionLabelProp||c.value.label]),fe===void 0&&(fe=(oe=Pe==null?void 0:Pe.key)!==null&&oe!==void 0?oe:ue),we=Pe==null?void 0:Pe.disabled}return{label:ae,value:ue,key:fe,disabled:we,option:Pe}})},w=Ai(e.defaultValue,{value:sn(e,"value")}),_=ke(w,2),C=_[0],E=_[1],I=V(function(){var re,Q=b(C.value);return e.mode==="combobox"&&!((re=Q[0])!==null&&re!==void 0&&re.value)?[]:Q}),T=B$(I,m),N=ke(T,2),R=N[0],F=N[1],L=V(function(){if(!e.mode&&R.value.length===1){var re=R.value[0];if(re.value===null&&(re.label===null||re.label===void 0))return[]}return R.value.map(function(Q){var H;return M(M({},Q),{},{label:(H=typeof Q.label=="function"?Q.label():Q.label)!==null&&H!==void 0?H:Q.value})})}),j=V(function(){return new Set(R.value.map(function(re){return re.value}))});yt(function(){if(e.mode==="combobox"){var re,Q=(re=R.value[0])===null||re===void 0?void 0:re.value;Q!=null&&f(String(Q))}},{flush:"post"});var D=function(Q,H){var q,ue=H??Q;return q={},te(q,c.value.value,Q),te(q,c.value.label,ue),q},P=Qn();yt(function(){if(e.mode!=="tags"){P.value=y.value;return}var re=y.value.slice(),Q=function(q){return m.value.has(q)};nt(R.value).sort(function(H,q){return H.value2&&arguments[2]!==void 0?arguments[2]:{},ue=q.source,ae=ue===void 0?"keyboard":ue;me(H),e.backfill&&e.mode==="combobox"&&Q!==null&&ae==="keyboard"&&ne(String(Q))},B=function(Q,H){var q=function(){var Ie,Le=F(Q),Ye=Le==null?void 0:Le[c.value.label];return[e.labelInValue?{label:typeof Ye=="function"?Ye():Ye,originLabel:Ye,value:Q,key:(Ie=Le==null?void 0:Le.key)!==null&&Ie!==void 0?Ie:Q}:Q,wf(Le)]};if(H&&e.onSelect){var ue=q(),ae=ke(ue,2),fe=ae[0],we=ae[1];e.onSelect(fe,we)}else if(!H&&e.onDeselect){var xe=q(),Pe=ke(xe,2),oe=Pe[0],ve=Pe[1];e.onDeselect(oe,ve)}},x=function(Q,H){var q,ue=s.value?H.selected:!0;ue?q=s.value?[].concat(nt(R.value),[Q]):[Q]:q=R.value.filter(function(ae){return ae.value!==Q}),J(q),B(Q,ue),e.mode==="combobox"?ne(""):(!s.value||e.autoClearSearchValue)&&(f(""),ne(""))},A=function(Q,H){J(Q),(H.type==="remove"||H.type==="clear")&&H.values.forEach(function(q){B(q.value,!1)})},W=function(Q,H){if(f(Q),ne(null),H.source==="submit"){var q=(Q||"").trim();if(q){var ue=Array.from(new Set([].concat(nt(j.value),[q])));J(ue),B(q,!0),f("")}return}if(H.source!=="blur"){var ae;e.mode==="combobox"&&J(Q),(ae=e.onSearch)===null||ae===void 0||ae.call(e,Q)}},K=function(Q){var H=Q;e.mode!=="tags"&&(H=Q.map(function(ue){var ae=g.value.get(ue);return ae==null?void 0:ae.value}).filter(function(ue){return ue!==void 0}));var q=Array.from(new Set([].concat(nt(j.value),nt(H))));J(q),q.forEach(function(ue){B(ue,!0)})},U=V(function(){return e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1});O$(P_(M(M({},p),{},{flattenOptions:G,onActiveValue:Se,defaultActiveFirstOption:ye,onSelect:x,menuItemSelectedIcon:sn(e,"menuItemSelectedIcon"),rawValues:j,fieldNames:c,virtual:U,listHeight:sn(e,"listHeight"),listItemHeight:sn(e,"listItemHeight"),childrenAsData:l})));var se=z();r({focus:function(){var Q;(Q=se.value)===null||Q===void 0||Q.focus()},blur:function(){var Q;(Q=se.value)===null||Q===void 0||Q.blur()},scrollTo:function(Q){var H;(H=se.value)===null||H===void 0||H.scrollTo(Q)}});var ie=V(function(){return Lt(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])});return function(){return S(s$,M(M(M({},ie.value),a),{},{id:o,prefixCls:e.prefixCls,ref:se,omitDomProps:z$,mode:e.mode,displayValues:L.value,onDisplayValuesChange:A,searchValue:h.value,onSearch:W,onSearchSplit:K,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:k$,emptyOptions:!G.value.length,activeValue:Y.value,activeDescendantId:"".concat(o,"_list_").concat(_e.value)}),i)}}});var Pv=function(){return null};Pv.isSelectOption=!0;Pv.displayName="ASelectOption";const H$=Pv;var Av=function(){return null};Av.isSelectOptGroup=!0;Av.displayName="ASelectOptGroup";const V$=Av;var U$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const K$=U$;function dm(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},n=t.loading,r=t.multiple,a=t.prefixCls,i=t.suffixIcon||e.suffixIcon&&e.suffixIcon(),o=t.clearIcon||e.clearIcon&&e.clearIcon(),s=t.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),l=t.removeIcon||e.removeIcon&&e.removeIcon(),u=o;o||(u=S(hu,null,null));var c=null;if(i!==void 0)c=i;else if(n)c=S(Pl,{spin:!0},null);else{var d="".concat(a,"-suffix");c=function(p){var m=p.open,g=p.showSearch;return m&&g?S(F_,{class:d},null):S(L_,{class:d},null)}}var v=null;s!==void 0?v=s:r?v=S(X$,null,null):v=null;var h=null;return l!==void 0?h=l:h=S(zr,null,null),{clearIcon:u,suffixIcon:c,itemIcon:v,removeIcon:h}}var Rl=Symbol("ContextProps"),$l=Symbol("InternalContextProps"),zG=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V(function(){return!0}),r=z(new Map),a=function(s,l){r.value.set(s,l),r.value=new Map(r.value)},i=function(s){r.value.delete(s),r.value=new Map(r.value)};pe([n,r],function(){}),wt(Rl,e),wt($l,{addFormItemField:a,removeFormItemField:i})},kf={id:V(function(){}),onFieldBlur:function(){},onFieldChange:function(){},clearValidate:function(){}},Mf={addFormItemField:function(){},removeFormItemField:function(){}},Nv=function(){var e=ot($l,Mf),n=Symbol("FormItemFieldKey"),r=Pt();return e.addFormItemField(n,r.type),st(function(){e.removeFormItemField(n)}),wt($l,Mf),wt(Rl,kf),ot(Rl,kf)};const jG=he({compatConfig:{MODE:3},name:"AFormItemRest",setup:function(e,n){var r=n.slots;return wt($l,Mf),wt(Rl,kf),function(){var a;return(a=r.default)===null||a===void 0?void 0:a.call(r)}}});var B_=function(){return M(M({},Lt(D_(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{},{value:{type:[Array,Object,String,Number]},defaultValue:{type:[Array,Object,String,Number]},notFoundContent:ee.any,suffixIcon:ee.any,itemIcon:ee.any,size:String,mode:String,bordered:{type:Boolean,default:!0},transitionName:String,choiceTransitionName:{type:String,default:""},"onUpdate:value":Function})},hm="SECRET_COMBOBOX_MODE_DO_NOT_USE",fr=he({compatConfig:{MODE:3},name:"ASelect",Option:H$,OptGroup:V$,inheritAttrs:!1,props:pn(B_(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:hm,slots:["notFoundContent","suffixIcon","itemIcon","removeIcon","clearIcon","dropdownRender","option","placeholder","tagRender","maxTagPlaceholder","optionLabel"],setup:function(e,n){var r=n.attrs,a=n.emit,i=n.slots,o=n.expose,s=z(),l=Nv(),u=function(){var N;(N=s.value)===null||N===void 0||N.focus()},c=function(){var N;(N=s.value)===null||N===void 0||N.blur()},d=function(N){var R;(R=s.value)===null||R===void 0||R.scrollTo(N)},v=V(function(){var T=e.mode;if(T!=="combobox")return T===hm?"combobox":T}),h=lt("select",e),f=h.prefixCls,p=h.direction,m=h.configProvider,g=h.size,y=h.getPrefixCls,b=V(function(){return y()}),w=V(function(){return Da(b.value,"slide-up",e.transitionName)}),_=V(function(){var T;return Ce((T={},te(T,"".concat(f.value,"-lg"),g.value==="large"),te(T,"".concat(f.value,"-sm"),g.value==="small"),te(T,"".concat(f.value,"-rtl"),p.value==="rtl"),te(T,"".concat(f.value,"-borderless"),!e.bordered),T))}),C=function(){for(var N=arguments.length,R=new Array(N),F=0;F=1},subscribe:function(e){return ya.size||this.register(),wc+=1,ya.set(wc,e),e(zs),wc},unsubscribe:function(e){ya.delete(e),ya.size||this.unregister()},unregister:function(){var e=this;Object.keys(Bs).forEach(function(n){var r=Bs[n],a=e.matchHandlers[r];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),ya.clear()},register:function(){var e=this;Object.keys(Bs).forEach(function(n){var r=Bs[n],a=function(s){var l=s.matches;e.dispatch(M(M({},zs),{},te({},n,l)))},i=window.matchMedia(r);i.addListener(a),e.matchHandlers[r]={mql:i,listener:a},a(i)})}};const gm=lD;function uD(){var t=z({}),e=null;return Ve(function(){e=gm.subscribe(function(n){t.value=n})}),vn(function(){gm.unsubscribe(e)}),t}var Ln={adjustX:1,adjustY:1},Fn=[0,0],z_={left:{points:["cr","cl"],overflow:Ln,offset:[-4,0],targetOffset:Fn},right:{points:["cl","cr"],overflow:Ln,offset:[4,0],targetOffset:Fn},top:{points:["bc","tc"],overflow:Ln,offset:[0,-4],targetOffset:Fn},bottom:{points:["tc","bc"],overflow:Ln,offset:[0,4],targetOffset:Fn},topLeft:{points:["bl","tl"],overflow:Ln,offset:[0,-4],targetOffset:Fn},leftTop:{points:["tr","tl"],overflow:Ln,offset:[-4,0],targetOffset:Fn},topRight:{points:["br","tr"],overflow:Ln,offset:[0,-4],targetOffset:Fn},rightTop:{points:["tl","tr"],overflow:Ln,offset:[4,0],targetOffset:Fn},bottomRight:{points:["tr","br"],overflow:Ln,offset:[0,4],targetOffset:Fn},rightBottom:{points:["bl","br"],overflow:Ln,offset:[4,0],targetOffset:Fn},bottomLeft:{points:["tl","bl"],overflow:Ln,offset:[0,4],targetOffset:Fn},leftBottom:{points:["br","bl"],overflow:Ln,offset:[-4,0],targetOffset:Fn}},cD={prefixCls:String,id:String,overlayInnerStyle:ee.any};const fD=he({compatConfig:{MODE:3},name:"Content",props:cD,slots:["overlay"],setup:function(e,n){var r=n.slots;return function(){var a;return S("div",{class:"".concat(e.prefixCls,"-inner"),id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(a=r.overlay)===null||a===void 0?void 0:a.call(r)])}}});var dD=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"];function mm(){}const vD=he({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:ee.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:ee.string.def("right"),transitionName:String,animation:ee.any,afterVisibleChange:ee.func.def(function(){}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:ee.string.def("rc-tooltip"),mouseEnterDelay:ee.number.def(.1),mouseLeaveDelay:ee.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:ee.object.def(function(){return{}}),arrowContent:ee.any.def(null),tipId:String,builtinPlacements:ee.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},slots:["arrowContent","overlay"],setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=z(),s=function(){var v=e.prefixCls,h=e.tipId,f=e.overlayInnerStyle;return[S("div",{class:"".concat(v,"-arrow"),key:"arrow"},[Wn(r,e,"arrowContent")]),S(fD,{key:"content",prefixCls:v,id:h,overlayInnerStyle:f},{overlay:r.overlay})]},l=function(){return o.value.getPopupDomNode()};i({getPopupDomNode:l,triggerDOM:o,forcePopupAlign:function(){var v;return(v=o.value)===null||v===void 0?void 0:v.forcePopupAlign()}});var u=z(!1),c=z(!1);return yt(function(){var d=e.destroyTooltipOnHide;if(typeof d=="boolean")u.value=d;else if(d&&Qe(d)==="object"){var v=d.keepParent;u.value=v===!0,c.value=v===!1}}),function(){var d=e.overlayClassName,v=e.trigger,h=e.mouseEnterDelay,f=e.mouseLeaveDelay,p=e.overlayStyle,m=e.prefixCls,g=e.afterVisibleChange,y=e.transitionName,b=e.animation,w=e.placement,_=e.align;e.destroyTooltipOnHide;var C=e.defaultVisible,E=bt(e,dD),I=M({},E);e.visible!==void 0&&(I.popupVisible=e.visible);var T=M(M(M({popupClassName:d,prefixCls:m,action:v,builtinPlacements:z_,popupPlacement:w,popupAlign:_,afterPopupVisibleChange:g,popupTransitionName:y,popupAnimation:b,defaultPopupVisible:C,destroyPopupOnHide:u.value,autoDestroy:c.value,mouseLeaveDelay:f,popupStyle:p,mouseEnterDelay:h},I),a),{},{onPopupVisibleChange:e.onVisibleChange||mm,onPopupAlign:e.onPopupAlign||mm,ref:o,popup:s()});return S(Cu,T,{default:r.default})}}});var VG=Ha("success","processing","error","default","warning"),pD=Ha("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");const hD=function(){return{trigger:[String,Array],visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:{type:Object,default:void 0},overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:{type:Object,default:void 0},builtinPlacements:{type:Object,default:void 0},children:Array,onVisibleChange:Function,"onUpdate:visible":Function}};var gD={adjustX:1,adjustY:1},ym={adjustX:0,adjustY:0},mD=[0,0];function bm(t){return typeof t=="boolean"?t?gD:ym:M(M({},ym),t)}function yD(t){var e=t.arrowWidth,n=e===void 0?4:e,r=t.horizontalArrowShift,a=r===void 0?16:r,i=t.verticalArrowShift,o=i===void 0?8:i,s=t.autoAdjustOverflow,l=t.arrowPointAtCenter,u={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,o+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,o+n]}};return Object.keys(u).forEach(function(c){u[c]=l?M(M({},u[c]),{},{overflow:bm(s),targetOffset:mD}):M(M({},z_[c]),{},{overflow:bm(s)}),u[c].ignoreShake=!0}),u}function Nf(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=0,n=t.length;e=0||T.indexOf("Bottom")>=0?R.top="".concat(N.height-E.offset[1],"px"):(T.indexOf("Top")>=0||T.indexOf("bottom")>=0)&&(R.top="".concat(-E.offset[1],"px")),T.indexOf("left")>=0||T.indexOf("Right")>=0?R.left="".concat(N.width-E.offset[0],"px"):(T.indexOf("right")>=0||T.indexOf("Left")>=0)&&(R.left="".concat(-E.offset[0],"px")),C.style.transformOrigin="".concat(R.left," ").concat(R.top)}};return function(){var _,C,E,I=e.openClassName,T=e.color,N=e.overlayClassName,R=(_=Fi((C=r.default)===null||C===void 0?void 0:C.call(r)))!==null&&_!==void 0?_:null;R=R.length===1?R[0]:R;var F=c.value;if(e.visible===void 0&&h()&&(F=!1),!R)return null;var L=y(ar(R)?R:S("span",null,[R])),j=Ce((E={},te(E,I||"".concat(l.value,"-open"),!0),te(E,L.props&&L.props.class,L.props&&L.props.class),E)),D=Ce(N,te({},"".concat(l.value,"-").concat(T),T&&wm.test(T))),P,O;T&&!wm.test(T)&&(P={backgroundColor:T},O={backgroundColor:T});var k=M(M(M({},i),e),{},{prefixCls:l.value,getPopupContainer:u.value,builtinPlacements:m.value,visible:F,ref:d,overlayClassName:D,overlayInnerStyle:P,onVisibleChange:f,onPopupAlign:w});return S(vD,k,{default:function(){return[c.value?Et(L,{class:j}):L]},arrowContent:function(){return S("span",{class:"".concat(l.value,"-arrow-content"),style:O},null)},overlay:b})}}}),CD=Bi(_D);var Qa={adjustX:1,adjustY:1},ei=[0,0],SD={topLeft:{points:["bl","tl"],overflow:Qa,offset:[0,-4],targetOffset:ei},topCenter:{points:["bc","tc"],overflow:Qa,offset:[0,-4],targetOffset:ei},topRight:{points:["br","tr"],overflow:Qa,offset:[0,-4],targetOffset:ei},bottomLeft:{points:["tl","bl"],overflow:Qa,offset:[0,4],targetOffset:ei},bottomCenter:{points:["tc","bc"],overflow:Qa,offset:[0,4],targetOffset:ei},bottomRight:{points:["tr","br"],overflow:Qa,offset:[0,4],targetOffset:ei}};const xD=SD;var TD=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const ED=he({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:ee.string.def("rc-dropdown"),transitionName:String,overlayClassName:ee.string.def(""),openClassName:String,animation:ee.any,align:ee.object,overlayStyle:{type:Object,default:void 0},placement:ee.string.def("bottomLeft"),overlay:ee.any,trigger:ee.oneOfType([ee.string,ee.arrayOf(ee.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:ee.array,hideAction:ee.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:ee.number.def(.15),mouseLeaveDelay:ee.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,n){var r=n.slots,a=n.emit,i=n.expose,o=z(!!e.visible);pe(function(){return e.visible},function(f){f!==void 0&&(o.value=f)});var s=z();i({triggerRef:s});var l=function(p){e.visible===void 0&&(o.value=!1),a("overlayClick",p)},u=function(p){e.visible===void 0&&(o.value=p),a("visibleChange",p)},c=function(){var p,m=(p=r.overlay)===null||p===void 0?void 0:p.call(r),g={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:l,getPopupContainer:function(){return s.value.getPopupDomNode()}};return S(Re,null,[e.arrow&&S("div",{class:"".concat(e.prefixCls,"-arrow")},null),Et(m,g,!1)])},d=V(function(){var f=e.minOverlayWidthMatchTrigger,p=f===void 0?!e.alignPoint:f;return p}),v=function(){var p,m=(p=r.default)===null||p===void 0?void 0:p.call(r);return o.value&&m?Et(m[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):m},h=V(function(){return!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction});return function(){var f=e.prefixCls,p=e.arrow,m=e.showAction,g=e.overlayStyle,y=e.trigger,b=e.placement,w=e.align,_=e.getPopupContainer,C=e.transitionName,E=e.animation,I=e.overlayClassName,T=bt(e,TD);return S(Cu,M(M({},T),{},{prefixCls:f,ref:s,popupClassName:Ce(I,te({},"".concat(f,"-show-arrow"),p)),popupStyle:g,builtinPlacements:xD,action:y,showAction:m,hideAction:h.value||[],popupPlacement:b,popupAlign:w,popupTransitionName:C,popupAnimation:E,popupVisible:o.value,stretch:d.value?"minWidth":"",onPopupVisibleChange:u,getPopupContainer:_}),{popup:c,default:v})}}});var _c={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},Cc={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},li=[],ui=[];function OD(){var t=document.createElement("div"),e=t.style;"AnimationEvent"in window||(delete _c.animationstart.animation,delete Cc.animationend.animation),"TransitionEvent"in window||(delete _c.transitionstart.transition,delete Cc.transitionend.transition);function n(r,a){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];for(var s in o)if(s in e){a.push(o[s]);break}}}n(_c,li),n(Cc,ui)}typeof window<"u"&&typeof document<"u"&&OD();function _m(t,e,n){t.addEventListener(e,n,!1)}function Cm(t,e,n){t.removeEventListener(e,n,!1)}var PD={startEvents:li,addStartEventListener:function(e,n){if(li.length===0){setTimeout(n,0);return}li.forEach(function(r){_m(e,r,n)})},removeStartEventListener:function(e,n){li.length!==0&&li.forEach(function(r){Cm(e,r,n)})},endEvents:ui,addEndEventListener:function(e,n){if(ui.length===0){setTimeout(n,0);return}ui.forEach(function(r){_m(e,r,n)})},removeEndEventListener:function(e,n){ui.length!==0&&ui.forEach(function(r){Cm(e,r,n)})}};const js=PD;var Kr;function Sm(t){return!t||t.offsetParent===null}function AD(t){var e=(t||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return e&&e[1]&&e[2]&&e[3]?!(e[1]===e[2]&&e[2]===e[3]):!0}const ID=he({compatConfig:{MODE:3},name:"Wave",props:{insertExtraNode:Boolean,disabled:Boolean},setup:function(e,n){var r=n.slots,a=n.expose,i=Pt(),o=lt("",e),s=o.csp,l=o.prefixCls;a({csp:s});var u=null,c=null,d=null,v=!1,h=null,f=!1,p=function(C){if(!f){var E=Ia(i);!C||C.target!==E||v||b(E)}},m=function(C){!C||C.animationName!=="fadeEffect"||b(C.target)},g=function(){var C=e.insertExtraNode;return C?"".concat(l.value,"-click-animating"):"".concat(l.value,"-click-animating-without-extra-node")},y=function(C,E){var I=e.insertExtraNode,T=e.disabled;if(!(T||!C||Sm(C)||C.className.indexOf("-leave")>=0)){h=document.createElement("div"),h.className="".concat(l.value,"-click-animating-node");var N=g();if(C.removeAttribute(N),C.setAttribute(N,"true"),Kr=Kr||document.createElement("style"),E&&E!=="#ffffff"&&E!=="rgb(255, 255, 255)"&&AD(E)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(E)&&E!=="transparent"){var R;(R=s.value)!==null&&R!==void 0&&R.nonce&&(Kr.nonce=s.value.nonce),h.style.borderColor=E,Kr.innerHTML=` [`.concat(l.value,"-click-animating-without-extra-node='true']::after, .").concat(l.value,`-click-animating-node { --antd-wave-shadow-color: `).concat(E,`; - }`),document.body.contains(Kr)||document.body.appendChild(Kr)}I&&C.appendChild(h),js.addStartEventListener(C,p),js.addEndEventListener(C,m)}},b=function(C){if(!(!C||C===h||!(C instanceof Element))){var E=e.insertExtraNode,I=g();C.setAttribute(I,"false"),Kr&&(Kr.innerHTML=""),E&&h&&C.contains(h)&&C.removeChild(h),js.removeStartEventListener(C,p),js.removeEndEventListener(C,m)}},w=function(C){if(!(!C||!C.getAttribute||C.getAttribute("disabled")||C.className.indexOf("disabled")>=0)){var E=function(T){if(!(T.target.tagName==="INPUT"||Sm(T.target))){b(C);var N=getComputedStyle(C).getPropertyValue("border-top-color")||getComputedStyle(C).getPropertyValue("border-color")||getComputedStyle(C).getPropertyValue("background-color");c=setTimeout(function(){return y(C,N)},0),Ue.cancel(d),v=!0,d=Ue(function(){v=!1},10)}};return C.addEventListener("click",E,!0),{cancel:function(){C.removeEventListener("click",E,!0)}}}};return Ve(function(){Ke(function(){var _=Ia(i);_.nodeType===1&&(u=w(_))})}),st(function(){u&&u.cancel(),clearTimeout(c),f=!0}),function(){var _;return(_=r.default)===null||_===void 0?void 0:_.call(r)[0]}}});function j_(t){return t==="danger"?{danger:!0}:{type:t}}var kD=function(){return{prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:function(){return!1}},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:ee.any,href:String,target:String,title:String,onClick:{type:Function},onMousedown:{type:Function}}};const MD=kD;var xm=function(e){e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Tm=function(e){Ke(function(){e&&(e.style.width="".concat(e.scrollWidth,"px"),e.style.opacity="1",e.style.transform="scale(1)")})},Em=function(e){e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)};const ND=he({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:function(e){return function(){var n=e.existIcon,r=e.prefixCls,a=e.loading;if(n)return S("span",{class:"".concat(r,"-loading-icon")},[S(Pl,null,null)]);var i=!!a;return S(Yn,{name:"".concat(r,"-loading-icon-motion"),onBeforeEnter:xm,onEnter:Tm,onAfterEnter:Em,onBeforeLeave:Tm,onLeave:function(s){setTimeout(function(){xm(s)})},onAfterLeave:Em},{default:function(){return[i?S("span",{class:"".concat(r,"-loading-icon")},[S(Pl,null,null)]):null]}})}}});var Om=/^[\u4e00-\u9fa5]{2}$/,Pm=Om.test.bind(Om);function Ws(t){return t==="text"||t==="link"}const Xt=he({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:pn(MD(),{type:"default"}),slots:["icon"],setup:function(e,n){var r=n.slots,a=n.attrs,i=n.emit,o=n.expose,s=lt("btn",e),l=s.prefixCls,u=s.autoInsertSpaceInButton,c=s.direction,d=s.size,v=z(null),h=z(void 0),f=!1,p=z(!1),m=z(!1),g=V(function(){return u.value!==!1}),y=V(function(){return Qe(e.loading)==="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading});pe(y,function(T){clearTimeout(h.value),typeof y.value=="number"?h.value=setTimeout(function(){p.value=T},y.value):p.value=T},{immediate:!0});var b=V(function(){var T,N=e.type,R=e.shape,F=R===void 0?"default":R,L=e.ghost,j=e.block,D=e.danger,P=l.value,O={large:"lg",small:"sm",middle:void 0},k=d.value,$=k&&O[k]||"";return T={},te(T,"".concat(P),!0),te(T,"".concat(P,"-").concat(N),N),te(T,"".concat(P,"-").concat(F),F!=="default"&&F),te(T,"".concat(P,"-").concat($),$),te(T,"".concat(P,"-loading"),p.value),te(T,"".concat(P,"-background-ghost"),L&&!Ws(N)),te(T,"".concat(P,"-two-chinese-chars"),m.value&&g.value),te(T,"".concat(P,"-block"),j),te(T,"".concat(P,"-dangerous"),!!D),te(T,"".concat(P,"-rtl"),c.value==="rtl"),T}),w=function(){var N=v.value;if(!(!N||u.value===!1)){var R=N.textContent;f&&Pm(R)?m.value||(m.value=!0):m.value&&(m.value=!1)}},_=function(N){if(p.value||e.disabled){N.preventDefault();return}i("click",N)},C=function(N,R){var F=R?" ":"";if(N.type===Wa){var L=N.children.trim();return Pm(L)&&(L=L.split("").join(F)),S("span",null,[L])}return N};yt(function(){Un(!(e.ghost&&Ws(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),Ve(w),ca(w),st(function(){h.value&&clearTimeout(h.value)});var E=function(){var N;(N=v.value)===null||N===void 0||N.focus()},I=function(){var N;(N=v.value)===null||N===void 0||N.blur()};return o({focus:E,blur:I}),function(){var T,N,R=e.icon,F=R===void 0?(T=r.icon)===null||T===void 0?void 0:T.call(r):R,L=kn((N=r.default)===null||N===void 0?void 0:N.call(r));f=L.length===1&&!F&&!Ws(e.type);var j=e.type,D=e.htmlType,P=e.disabled,O=e.href,k=e.title,$=e.target,G=e.onMousedown,J=p.value?"loading":F,Z=M(M({},a),{},{title:k,disabled:P,class:[b.value,a.class,te({},"".concat(l.value,"-icon-only"),L.length===0&&!!J)],onClick:_,onMousedown:G});P||delete Z.disabled;var X=F&&!p.value?F:S(ND,{existIcon:!!F,prefixCls:l.value,loading:!!p.value},null),Y=L.map(function(le){return C(le,f&&g.value)});if(O!==void 0)return S("a",M(M({},Z),{},{href:O,target:$,ref:v}),[X,Y]);var ne=S("button",M(M({},Z),{},{ref:v,type:D}),[X,Y]);return Ws(j)?ne:S(ID,{ref:"wave",disabled:!!p.value},{default:function(){return[ne]}})}}});function Am(t,e){for(var n=0;n-1}function XD(t,e,n){for(var r=-1,a=t==null?0:t.length;++r=tL){var u=e?null:eL(t);if(u)return mv(u);o=!1,a=u_,l=new Go}else l=e?[]:s;e:for(;++r"u"?Se=T&&ye?me:"":_e===!1&&(Se="");var B={title:Se};!w.value&&!b.value&&(B.title=null,B.visible=!1);var x={};e.role==="option"&&(x["aria-selected"]=j.value);var A=Wn(r,e,"icon");return S(CD,M(M({},B),{},{placement:y.value?"left":"right",overlayClassName:"".concat(f.value,"-inline-collapsed-tooltip")}),{default:function(){return[S(wi.Item,M(M(M({component:"li"},i),{},{id:e.id,style:M(M({},i.style||{}),X.value),class:[D.value,(ge={},te(ge,"".concat(i.class),!!i.class),te(ge,"".concat(f.value,"-item-only-child"),(A?ye+1:ye)===1),ge)],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":l,"aria-disabled":e.disabled},x),{},{onMouseenter:k,onMouseleave:$,onClick:O,onKeydown:G,onFocus:J,title:typeof _e=="string"?_e:void 0}),{default:function(){return[Et(A,{class:"".concat(f.value,"-item-icon")},!1),Z(A,me)]}})]}})}}});var ta={adjustX:1,adjustY:1},sL={topLeft:{points:["bl","tl"],overflow:ta,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ta,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ta,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ta,offset:[4,0]}},lL={topLeft:{points:["bl","tl"],overflow:ta,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ta,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ta,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ta,offset:[4,0]}},uL={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};const Nm=he({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:["popup"],emits:["visibleChange"],setup:function(e,n){var r=n.slots,a=n.emit,i=z(!1),o=da(),s=o.getPopupContainer,l=o.rtl,u=o.subMenuOpenDelay,c=o.subMenuCloseDelay,d=o.builtinPlacements,v=o.triggerSubMenuAction,h=o.isRootMenu,f=o.forceSubMenuRender,p=o.motion,m=o.defaultMotions,g=Y_(),y=V(function(){return l.value?M(M({},lL),d.value):M(M({},sL),d.value)}),b=V(function(){return uL[e.mode]}),w=z();pe(function(){return e.visible},function(E){Ue.cancel(w.value),w.value=Ue(function(){i.value=E})},{immediate:!0}),st(function(){Ue.cancel(w.value)});var _=function(I){a("visibleChange",I)},C=V(function(){var E,I,T=p.value||((E=m.value)===null||E===void 0?void 0:E[e.mode])||((I=m.value)===null||I===void 0?void 0:I.other),N=typeof T=="function"?T():T;return N?cs(N.name,{css:!0}):void 0});return function(){var E=e.prefixCls,I=e.popupClassName,T=e.mode,N=e.popupOffset,R=e.disabled;return S(Cu,{prefixCls:E,popupClassName:Ce("".concat(E,"-popup"),te({},"".concat(E,"-rtl"),l.value),I),stretch:T==="horizontal"?"minWidth":null,getPopupContainer:h.value?s.value:function(F){return F.parentNode},builtinPlacements:y.value,popupPlacement:b.value,popupVisible:i.value,popupAlign:N&&{offset:N},action:R?[]:[v.value],mouseEnterDelay:u.value,mouseLeaveDelay:c.value,onPopupVisibleChange:_,forceRender:g||f.value,popupAnimation:C.value},{popup:r.popup,default:r.default})}}});var rC=function(e,n){var r,a=n.slots,i=n.attrs,o=da(),s=o.prefixCls,l=o.mode;return S("ul",M(M({},i),{},{class:Ce(s.value,"".concat(s.value,"-sub"),"".concat(s.value,"-").concat(l.value==="inline"?"inline":"vertical")),"data-menu-list":!0}),[(r=a.default)===null||r===void 0?void 0:r.call(a)])};rC.displayName="SubMenuList";const aC=rC,cL=he({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(e,n){var r=n.slots,a=V(function(){return"inline"}),i=da(),o=i.motion,s=i.mode,l=i.defaultMotions,u=V(function(){return s.value===a.value}),c=z(!u.value),d=V(function(){return u.value?e.open:!1});pe(s,function(){u.value&&(c.value=!1)},{flush:"post"});var v=V(function(){var h,f,p=o.value||((h=l.value)===null||h===void 0?void 0:h[a.value])||((f=l.value)===null||f===void 0?void 0:f.other),m=typeof p=="function"?p():p;return M(M({},m),{},{appear:e.keyPath.length<=1})});return function(){var h;return c.value?null:S(Ll,{mode:a.value},{default:function(){return[S(Yn,v.value,{default:function(){return[dn(S(aC,{id:e.id},{default:function(){return[(h=r.default)===null||h===void 0?void 0:h.call(r)]}}),[[$r,d.value]])]}})]}})}}});var Rm=0,fL=function(){return{icon:ee.any,title:ee.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}};const Xo=he({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:fL(),slots:["icon","title","expandIcon"],setup:function(e,n){var r,a,i=n.slots,o=n.attrs,s=n.emit;X_(!1);var l=Lv(),u=Pt(),c=Qe(u.vnode.key)==="symbol"?String(u.vnode.key):u.vnode.key;Un(Qe(u.vnode.key)!=="symbol","SubMenu",'SubMenu `:key="'.concat(String(c),'"` not support Symbol type'));var d=lf(c)?c:"sub_menu_".concat(++Rm,"_$$_not_set_key"),v=(r=e.eventKey)!==null&&r!==void 0?r:lf(c)?"sub_menu_".concat(++Rm,"_$$_").concat(c):d,h=Dv(),f=h.parentEventKeys,p=h.parentInfo,m=h.parentKeys,g=V(function(){return[].concat(nt(m.value),[d])}),y=z([]),b={eventKey:v,key:d,parentEventKeys:f,childrenEventKeys:y,parentKeys:m};(a=p.childrenEventKeys)===null||a===void 0||a.value.push(v),st(function(){if(p.childrenEventKeys){var H;p.childrenEventKeys.value=(H=p.childrenEventKeys)===null||H===void 0?void 0:H.value.filter(function(q){return q!=v})}}),aL(v,d,b);var w=da(),_=w.prefixCls,C=w.activeKeys,E=w.disabled,I=w.changeActiveKeys,T=w.mode,N=w.inlineCollapsed,R=w.antdMenuTheme,F=w.openKeys,L=w.overflowDisabled,j=w.onOpenChange,D=w.registerMenuInfo,P=w.unRegisterMenuInfo,O=w.selectedSubMenuKeys,k=w.expandIcon,$=c!=null,G=!l&&(Y_()||!$);HD(G),(l&&$||!l&&!$||G)&&(D(v,b),st(function(){P(v)}));var J=V(function(){return"".concat(_.value,"-submenu")}),Z=V(function(){return E.value||e.disabled}),X=z(),Y=z(),ne=V(function(){return F.value.includes(d)}),le=V(function(){return!L.value&&ne.value}),ge=V(function(){return O.value.includes(d)}),_e=z(!1);pe(C,function(){_e.value=!!C.value.find(function(H){return H===d})},{immediate:!0});var me=function(q){Z.value||(s("titleClick",q,d),T.value==="inline"&&j(d,!ne.value))},ye=function(q){Z.value||(I(g.value),s("mouseenter",q))},Se=function(q){Z.value||(I([]),s("mouseleave",q))},B=nC(V(function(){return g.value.length})),x=function(q){T.value!=="inline"&&j(d,q)},A=function(){I(g.value)},W=v&&"".concat(v,"-popup"),K=V(function(){return Ce(_.value,"".concat(_.value,"-").concat(R.value),e.popupClassName)}),U=function(q,ue){if(!ue)return N.value&&!m.value.length&&q&&typeof q=="string"?S("div",{class:"".concat(_.value,"-inline-collapsed-noicon")},[q.charAt(0)]):S("span",{class:"".concat(_.value,"-title-content")},[q]);var ae=ar(q)&&q.type==="span";return S(Re,null,[Et(ue,{class:"".concat(_.value,"-item-icon")},!1),ae?q:S("span",{class:"".concat(_.value,"-title-content")},[q])])},se=V(function(){return T.value!=="inline"&&g.value.length>1?"vertical":T.value}),ie=V(function(){return T.value==="horizontal"?"vertical":T.value}),re=V(function(){return se.value==="horizontal"?"vertical":se.value}),Q=function(){var q=J.value,ue=Wn(i,e,"icon"),ae=e.expandIcon||i.expandIcon||k.value,fe=U(Wn(i,e,"title"),ue);return S("div",{style:B.value,class:"".concat(q,"-title"),tabindex:Z.value?null:-1,ref:X,title:typeof fe=="string"?fe:null,"data-menu-id":d,"aria-expanded":le.value,"aria-haspopup":!0,"aria-controls":W,"aria-disabled":Z.value,onClick:me,onFocus:A},[fe,T.value!=="horizontal"&&ae?ae(M(M({},e),{},{isOpen:le.value})):S("i",{class:"".concat(q,"-arrow")},null)])};return function(){var H;if(l){var q;return $?(q=i.default)===null||q===void 0?void 0:q.call(i):null}var ue=J.value,ae=function(){return null};return!L.value&&T.value!=="inline"?ae=function(){return S(Nm,{mode:se.value,prefixCls:ue,visible:!e.internalPopupClose&&le.value,popupClassName:K.value,popupOffset:e.popupOffset,disabled:Z.value,onVisibleChange:x},{default:function(){return[Q()]},popup:function(){return S(Ll,{mode:re.value,isRootMenu:!1},{default:function(){return[S(aC,{id:W,ref:Y},{default:i.default})]}})}})}:ae=function(){return S(Nm,null,{default:Q})},S(Ll,{mode:ie.value},{default:function(){return[S(wi.Item,M(M({component:"li"},o),{},{role:"none",class:Ce(ue,"".concat(ue,"-").concat(T.value),o.class,(H={},te(H,"".concat(ue,"-open"),le.value),te(H,"".concat(ue,"-active"),_e.value),te(H,"".concat(ue,"-selected"),ge.value),te(H,"".concat(ue,"-disabled"),Z.value),H)),onMouseenter:ye,onMouseleave:Se,"data-submenu-id":d}),{default:function(){return S(Re,null,[ae(),!L.value&&S(cL,{id:W,open:le.value,keyPath:g.value},{default:i.default})])}})]}})}}});function iC(t,e){if(t.classList)return t.classList.contains(e);var n=t.className;return" ".concat(n," ").indexOf(" ".concat(e," "))>-1}function $m(t,e){t.classList?t.classList.add(e):iC(t,e)||(t.className="".concat(t.className," ").concat(e))}function Dm(t,e){if(t.classList)t.classList.remove(e);else if(iC(t,e)){var n=t.className;t.className=" ".concat(n," ").replace(" ".concat(e," ")," ")}}var dL=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:n,css:!0,onBeforeEnter:function(a){a.style.height="0px",a.style.opacity="0",$m(a,e)},onEnter:function(a){Ke(function(){a.style.height="".concat(a.scrollHeight,"px"),a.style.opacity="1"})},onAfterEnter:function(a){a&&(Dm(a,e),a.style.height=null,a.style.opacity=null)},onBeforeLeave:function(a){$m(a,e),a.style.height="".concat(a.offsetHeight,"px"),a.style.opacity=null},onLeave:function(a){setTimeout(function(){a.style.height="0px",a.style.opacity="0"})},onAfterLeave:function(a){a&&(Dm(a,e),a.style&&(a.style.height=null,a.style.opacity=null))}}};const vL=dL;var pL=function(){return{id:String,prefixCls:String,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},motion:Object,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:.1},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}},Lm=[];const ia=he({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:pL(),slots:["expandIcon","overflowedIndicator"],setup:function(e,n){var r=n.slots,a=n.emit,i=n.attrs,o=lt("menu",e),s=o.prefixCls,l=o.direction,u=o.getPrefixCls,c=z({}),d=ot(nL,z(void 0)),v=V(function(){return d.value!==void 0?d.value:e.inlineCollapsed}),h=z(!1);Ve(function(){h.value=!0}),yt(function(){Un(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Un(!(d.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});var f=z([]),p=z([]),m=z({});pe(c,function(){for(var Y={},ne=0,le=Object.values(c.value);ne0&&arguments[0]!==void 0?arguments[0]:b.value;no(b.value,Y)||(b.value=Y.slice())},{immediate:!0,deep:!0});var w,_=function(ne){clearTimeout(w),w=setTimeout(function(){e.activeKey===void 0&&(f.value=ne),a("update:activeKey",ne[ne.length-1])})},C=V(function(){return!!e.disabled}),E=V(function(){return l.value==="rtl"}),I=z("vertical"),T=z(!1);yt(function(){(e.mode==="inline"||e.mode==="vertical")&&v.value?(I.value="vertical",T.value=v.value):(I.value=e.mode,T.value=!1)});var N=V(function(){return I.value==="inline"}),R=function(ne){b.value=ne,a("update:openKeys",ne),a("openChange",ne)},F=z(b.value),L=z(!1);pe(b,function(){N.value&&(F.value=b.value)},{immediate:!0}),pe(N,function(){if(!L.value){L.value=!0;return}N.value?b.value=F.value:R(Lm)},{immediate:!0});var j=V(function(){var Y;return Y={},te(Y,"".concat(s.value),!0),te(Y,"".concat(s.value,"-root"),!0),te(Y,"".concat(s.value,"-").concat(I.value),!0),te(Y,"".concat(s.value,"-inline-collapsed"),T.value),te(Y,"".concat(s.value,"-rtl"),E.value),te(Y,"".concat(s.value,"-").concat(e.theme),!0),Y}),D=V(function(){return u()}),P=V(function(){return{horizontal:{name:"".concat(D.value,"-slide-up")},inline:vL,other:{name:"".concat(D.value,"-zoom-big")}}});X_(!0);var O=function Y(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=[],ge=c.value;return ne.forEach(function(_e){var me=ge[_e],ye=me.key,Se=me.childrenEventKeys;le.push.apply(le,[ye].concat(nt(Y(be(Se)))))}),le},k=function(ne){a("click",ne),y(ne)},$=function(ne,le){var ge,_e=((ge=m.value[ne])===null||ge===void 0?void 0:ge.childrenEventKeys)||[],me=b.value.filter(function(Se){return Se!==ne});if(le)me.push(ne);else if(I.value!=="inline"){var ye=O(be(_e));me=Sc(me.filter(function(Se){return!ye.includes(Se)}))}no(b,me)||R(me)},G=function(ne,le){c.value=M(M({},c.value),{},te({},ne,le))},J=function(ne){delete c.value[ne],c.value=M({},c.value)},Z=z(0),X=V(function(){return e.expandIcon||r.expandIcon?function(Y){var ne=e.expandIcon||r.expandIcon;return ne=typeof ne=="function"?ne(Y):ne,Et(ne,{class:"".concat(s.value,"-submenu-expand-icon")},!1)}:null});return UD({store:c,prefixCls:s,activeKeys:f,openKeys:b,selectedKeys:p,changeActiveKeys:_,disabled:C,rtl:E,mode:I,inlineIndent:V(function(){return e.inlineIndent}),subMenuCloseDelay:V(function(){return e.subMenuCloseDelay}),subMenuOpenDelay:V(function(){return e.subMenuOpenDelay}),builtinPlacements:V(function(){return e.builtinPlacements}),triggerSubMenuAction:V(function(){return e.triggerSubMenuAction}),getPopupContainer:V(function(){return e.getPopupContainer}),inlineCollapsed:T,antdMenuTheme:V(function(){return e.theme}),siderCollapsed:d,defaultMotions:V(function(){return h.value?P.value:null}),motion:V(function(){return h.value?e.motion:null}),overflowDisabled:z(void 0),onOpenChange:$,onItemClick:k,registerMenuInfo:G,unRegisterMenuInfo:J,selectedSubMenuKeys:g,isRootMenu:z(!0),expandIcon:X,forceSubMenuRender:V(function(){return e.forceSubMenuRender})}),function(){var Y,ne,le=kn((Y=r.default)===null||Y===void 0?void 0:Y.call(r)),ge=Z.value>=le.length-1||I.value!=="horizontal"||e.disabledOverflow,_e=I.value!=="horizontal"||e.disabledOverflow?le:le.map(function(ye,Se){return S(Ll,{key:ye.key,overflowDisabled:Se>Z.value},{default:function(){return ye}})}),me=((ne=r.overflowedIndicator)===null||ne===void 0?void 0:ne.call(r))||S(V_,null,null);return S(wi,M(M({},i),{},{onMousedown:e.onMousedown,prefixCls:"".concat(s.value,"-overflow"),component:"ul",itemComponent:Jo,class:[j.value,i.class],role:"menu",id:e.id,data:_e,renderRawItem:function(Se){return Se},renderRawRest:function(Se){var B=Se.length,x=B?le.slice(-B):null;return S(Re,null,[S(Xo,{eventKey:Hs,key:Hs,title:me,disabled:ge,internalPopupClose:B===0},{default:function(){return x}}),S(Mm,null,{default:function(){return[S(Xo,{eventKey:Hs,key:Hs,title:me,disabled:ge,internalPopupClose:B===0},{default:function(){return x}})]}})])},maxCount:I.value!=="horizontal"||e.disabledOverflow?wi.INVALIDATE:wi.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Se){Z.value=Se}}),{default:function(){return[S(uu,{to:"body"},{default:function(){return[S("div",{style:{display:"none"},"aria-hidden":!0},[S(Mm,null,{default:function(){return[_e]}})])]}})]}})}}});var hL=function(){return{title:ee.any}};const $f=he({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:hL(),slots:["title"],setup:function(e,n){var r=n.slots,a=n.attrs,i=da(),o=i.prefixCls,s=V(function(){return"".concat(o.value,"-item-group")}),l=Lv();return function(){var u,c;return l?(u=r.default)===null||u===void 0?void 0:u.call(r):S("li",M(M({},a),{},{onClick:function(v){return v.stopPropagation()},class:s.value}),[S("div",{title:typeof e.title=="string"?e.title:void 0,class:"".concat(s.value,"-title")},[Wn(r,e,"title")]),S("ul",{class:"".concat(s.value,"-list")},[(c=r.default)===null||c===void 0?void 0:c.call(r)])])}}});var gL=function(){return{prefixCls:String,dashed:Boolean}};const Df=he({compatConfig:{MODE:3},name:"AMenuDivider",props:gL(),setup:function(e){var n=lt("menu",e),r=n.prefixCls,a=V(function(){var i;return i={},te(i,"".concat(r.value,"-item-divider"),!0),te(i,"".concat(r.value,"-item-divider-dashed"),!!e.dashed),i});return function(){return S("li",{class:a.value},null)}}});ia.install=function(t){return t.component(ia.name,ia),t.component(Jo.name,Jo),t.component(Xo.name,Xo),t.component(Df.name,Df),t.component($f.name,$f),t};ia.Item=Jo;ia.Divider=Df;ia.SubMenu=Xo;ia.ItemGroup=$f;var mL={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(nk,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",d="month",v="quarter",h="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var j=["th","st","nd","rd"],D=L%100;return"["+L+(j[(D-20)%10]||j[D]||j[0])+"]"}},b=function(L,j,D){var P=String(L);return!P||P.length>=j?L:""+Array(j+1-P.length).join(D)+L},w={s:b,z:function(L){var j=-L.utcOffset(),D=Math.abs(j),P=Math.floor(D/60),O=D%60;return(j<=0?"+":"-")+b(P,2,"0")+":"+b(O,2,"0")},m:function L(j,D){if(j.date()1)return L($[0])}else{var G=j.name;C[G]=j,O=G}return!P&&O&&(_=O),O||!P&&_},T=function(L,j){if(E(L))return L.clone();var D=typeof j=="object"?j:{};return D.date=L,D.args=arguments,new R(D)},N=w;N.l=I,N.i=E,N.w=function(L,j){return T(L,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var R=function(){function L(D){this.$L=I(D.locale,null,!0),this.parse(D)}var j=L.prototype;return j.parse=function(D){this.$d=function(P){var O=P.date,k=P.utc;if(O===null)return new Date(NaN);if(N.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var $=O.match(m);if($){var G=$[2]-1||0,J=($[7]||"0").substring(0,3);return k?new Date(Date.UTC($[1],G,$[3]||1,$[4]||0,$[5]||0,$[6]||0,J)):new Date($[1],G,$[3]||1,$[4]||0,$[5]||0,$[6]||0,J)}}return new Date(O)}(D),this.$x=D.x||{},this.init()},j.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},j.$utils=function(){return N},j.isValid=function(){return this.$d.toString()!==p},j.isSame=function(D,P){var O=T(D);return this.startOf(P)<=O&&O<=this.endOf(P)},j.isAfter=function(D,P){return T(D)k?(P=j,C.value="x"):(P=D,C.value="y"),e(-P,-P)&&L.preventDefault()}var I=z({onTouchStart:b,onTouchMove:w,onTouchEnd:_,onWheel:E});function T(L){I.value.onTouchStart(L)}function N(L){I.value.onTouchMove(L)}function R(L){I.value.onTouchEnd(L)}function F(L){I.value.onWheel(L)}Ve(function(){var L,j;document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),(L=t.value)===null||L===void 0||L.addEventListener("touchstart",T,{passive:!1}),(j=t.value)===null||j===void 0||j.addEventListener("wheel",F,{passive:!1})}),st(function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",R)})}function Um(t,e){var n=z(t);function r(a){var i=typeof a=="function"?a(n.value):a;i!==n.value&&e(i,n.value),n.value=i}return[n,r]}var WL=function(){var e=z(new Map),n=function(a){return function(i){e.value.set(a,i)}};return c1(function(){e.value=new Map}),[n,e]};const HL=WL;var VL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UL=/^\w*$/;function Fv(t,e){if(ir(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Ou(t)?!0:UL.test(t)||!VL.test(t)||e!=null&&t in Object(e)}var KL="Expected a function";function Bv(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(KL);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=t.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Bv.Cache||Hr),n}Bv.Cache=Hr;var GL=500;function qL(t){var e=Bv(t,function(r){return n.size===GL&&n.clear(),r}),n=e.cache;return e}var YL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,JL=/\\(\\)?/g,XL=qL(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(YL,function(n,r,a,i){e.push(a?i.replace(JL,"$1"):r||n)}),e});const ZL=XL;function Pu(t,e){return ir(t)?t:Fv(t,e)?[t]:ZL(sC(t))}var QL=1/0;function ps(t){if(typeof t=="string"||Ou(t))return t;var e=t+"";return e=="0"&&1/t==-QL?"-0":e}function zv(t,e){e=Pu(e,t);for(var n=0,r=e.length;t!=null&&n0&&n(s)?e>1?vC(s,e-1,n,r,a):yv(a,s):r||(a[a.length]=s)}return a}function u4(t){var e=t==null?0:t.length;return e?vC(t,1):[]}function c4(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Gm=Math.max;function f4(t,e,n){return e=Gm(e===void 0?t.length-1:e,0),function(){for(var r=arguments,a=-1,i=Gm(r.length-e,0),o=Array(i);++a0){if(++e>=h4)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var b4=y4(p4);const w4=b4;function _4(t){return w4(f4(t,void 0,u4),t+"")}var C4=_4(function(t,e){return t==null?{}:s4(t,e)});const hC=C4;var qm={width:0,height:0,left:0,top:0,right:0},S4=function(){return{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:{type:Object,default:void 0},editable:{type:Object},moreIcon:ee.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:{type:Object,default:void 0},onTabClick:{type:Function},onTabScroll:{type:Function}}};const Ym=he({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:S4(),slots:["moreIcon","leftExtra","rightExtra","tabBarExtraContent"],emits:["tabClick","tabScroll"],setup:function(e,n){var r=n.attrs,a=n.slots,i=cC(),o=i.tabs,s=i.prefixCls,l=z(),u=z(),c=z(),d=z(),v=HL(),h=ke(v,2),f=h[0],p=h[1],m=V(function(){return e.tabPosition==="top"||e.tabPosition==="bottom"}),g=Um(0,function(Ze,it){m.value&&e.onTabScroll&&e.onTabScroll({direction:Ze>it?"left":"right"})}),y=ke(g,2),b=y[0],w=y[1],_=Um(0,function(Ze,it){!m.value&&e.onTabScroll&&e.onTabScroll({direction:Ze>it?"top":"bottom"})}),C=ke(_,2),E=C[0],I=C[1],T=Ht(0),N=ke(T,2),R=N[0],F=N[1],L=Ht(0),j=ke(L,2),D=j[0],P=j[1],O=Ht(null),k=ke(O,2),$=k[0],G=k[1],J=Ht(null),Z=ke(J,2),X=Z[0],Y=Z[1],ne=Ht(0),le=ke(ne,2),ge=le[0],_e=le[1],me=Ht(0),ye=ke(me,2),Se=ye[0],B=ye[1],x=RL(new Map),A=ke(x,2),W=A[0],K=A[1],U=DL(o,W),se=V(function(){return"".concat(s.value,"-nav-operations-hidden")}),ie=z(0),re=z(0);yt(function(){m.value?e.rtl?(ie.value=0,re.value=Math.max(0,R.value-$.value)):(ie.value=Math.min(0,$.value-R.value),re.value=0):(ie.value=Math.min(0,X.value-D.value),re.value=0)});var Q=function(it){return itre.value?re.value:it},H=z(),q=Ht(),ue=ke(q,2),ae=ue[0],fe=ue[1],we=function(){fe(Date.now())},xe=function(){clearTimeout(H.value)},Pe=function(it,Je){it(function(Ct){var at=Q(Ct+Je);return at})};jL(l,function(Ze,it){if(m.value){if($.value>=R.value)return!1;Pe(w,Ze)}else{if(X.value>=D.value)return!1;Pe(I,it)}return xe(),we(),!0}),pe(ae,function(){xe(),ae.value&&(H.value=setTimeout(function(){fe(0)},100))});var oe=function(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey,Je=U.value.get(it)||{width:0,height:0,left:0,right:0,top:0};if(m.value){var Ct=b.value;e.rtl?Je.rightb.value+$.value&&(Ct=Je.right+Je.width-$.value):Je.left<-b.value?Ct=-Je.left:Je.left+Je.width>-b.value+$.value&&(Ct=-(Je.left+Je.width-$.value)),I(0),w(Q(Ct))}else{var at=E.value;Je.top<-E.value?at=-Je.top:Je.top+Je.height>-E.value+X.value&&(at=-(Je.top+Je.height-X.value)),w(0),I(Q(at))}},ve=z(0),Xe=z(0);yt(function(){var Ze,it,Je,Ct,at,zt,Gt,sr=U.value;["top","bottom"].includes(e.tabPosition)?(it="width",at=$.value,zt=R.value,Gt=ge.value,Je=e.rtl?"right":"left",Ct=Math.abs(b.value)):(it="height",at=X.value,zt=R.value,Gt=Se.value,Je="top",Ct=-E.value);var rn=at;zt+Gt>at&&ztCt+rn){jt=Sn-1;break}}for(var At=0,Wt=Tr-1;Wt>=0;Wt-=1){var $n=sr.get(Rn[Wt].key)||qm;if($n[Je]0,At=b.value+$.value=e||E<0||d&&I>=i}function g(){var C=xc();if(m(C))return y(C);s=setTimeout(g,p(C))}function y(C){return s=void 0,v&&r?h(C):(r=a=void 0,o)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function w(){return s===void 0?o:y(xc())}function _(){var C=xc(),E=m(C);if(r=arguments,a=this,l=C,E){if(s===void 0)return f(l);if(d)return clearTimeout(s),s=setTimeout(g,e),h(l)}return s===void 0&&(s=setTimeout(g,e)),o}return _.cancel=b,_.flush=w,_}var D4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const L4=D4;function Zm(t){for(var e=1;e"u")return 0;if(t||Tc===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var a=e.offsetWidth;n.style.overflow="scroll";var i=e.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),Tc=a-i}return Tc}var EC=function(){return{prefixCls:String,width:ee.oneOfType([ee.string,ee.number]),height:ee.oneOfType([ee.string,ee.number]),style:{type:Object,default:void 0},class:String,placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:{type:Object,default:void 0},autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0}}},EF=function(){return M(M({},EC()),{},{forceRender:{type:Boolean,default:void 0},getContainer:ee.oneOfType([ee.string,ee.func,ee.object,ee.looseBool])})},OF=function(){return M(M({},EC()),{},{getContainer:Function,getOpenCount:Function,scrollLocker:ee.any,switchScrollingEffect:Function})};function PF(t){return Array.isArray(t)?t:[t]}var OC={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},AF=Object.keys(OC).filter(function(t){if(typeof document>"u")return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],sy=OC[AF];function ly(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on".concat(e),n)}function uy(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r):t.attachEvent&&t.detachEvent("on".concat(e),n)}function IF(t,e){var n=typeof t=="function"?t(e):t;return Array.isArray(n)?n.length===2?n:[n[0],n[1]]:[n]}var cy=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Ec=!(typeof window<"u"&&window.document&&window.document.createElement),kF=function t(e,n,r,a){if(!n||n===document||n instanceof Document)return!1;if(n===e.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(a))===Math.abs(a),o=Math.max(Math.abs(r),Math.abs(a))===Math.abs(r),s=n.scrollHeight-n.clientHeight,l=n.scrollWidth-n.clientWidth,u=document.defaultView.getComputedStyle(n),c=u.overflowY==="auto"||u.overflowY==="scroll",d=u.overflowX==="auto"||u.overflowX==="scroll",v=s&&c,h=l&&d;return i&&(!v||v&&(n.scrollTop>=s&&a<0||n.scrollTop<=0&&a>0))||o&&(!h||h&&(n.scrollLeft>=l&&r<0||n.scrollLeft<=0&&r>0))?t(e,n.parentNode,r,a):!1},MF=["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class"],ro={},NF=he({compatConfig:{MODE:3},inheritAttrs:!1,props:OF(),emits:["close","handleClick","change"],setup:function(e,n){var r=n.emit,a=n.slots,i=ct({startPos:{x:null,y:null}}),o,s=z(),l=z(),u=z(),c=z(),d=z(),v=[],h="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),f=!Ec&&ln?{passive:!1}:!1;Ve(function(){Ke(function(){var O=e.open,k=e.getContainer,$=e.showMask,G=e.autofocus,J=k==null?void 0:k();if(j(e),O&&(J&&J.parentNode===document.body&&(ro[h]=O),E(),Ke(function(){G&&p()}),$)){var Z;(Z=e.scrollLocker)===null||Z===void 0||Z.lock()}})}),pe(function(){return e.level},function(){j(e)},{flush:"post"}),pe(function(){return e.open},function(){var O=e.open,k=e.getContainer,$=e.scrollLocker,G=e.showMask,J=e.autofocus,Z=k==null?void 0:k();Z&&Z.parentNode===document.body&&(ro[h]=!!O),E(),O?(J&&p(),G&&($==null||$.lock())):$==null||$.unLock()},{flush:"post"}),vn(function(){var O,k=e.open;delete ro[h],k&&(I(!1),document.body.style.touchAction=""),(O=e.scrollLocker)===null||O===void 0||O.unLock()}),pe(function(){return e.placement},function(O){O&&(d.value=null)});var p=function(){var k,$;(k=l.value)===null||k===void 0||($=k.focus)===null||$===void 0||$.call(k)},m=function(k){k.touches.length>1||(i.startPos={x:k.touches[0].clientX,y:k.touches[0].clientY})},g=function(k){if(!(k.changedTouches.length>1)){var $=k.currentTarget,G=k.changedTouches[0].clientX-i.startPos.x,J=k.changedTouches[0].clientY-i.startPos.y;($===u.value||$===c.value||$===d.value&&kF($,k.target,G,J))&&k.cancelable&&k.preventDefault()}},y=function O(k){var $=k.target;uy($,sy,O),$.style.transition=""},b=function(k){r("close",k)},w=function(k){k.keyCode===Ae.ESC&&(k.stopPropagation(),b(k))},_=function(k){var $=e.open,G=e.afterVisibleChange;k.target===s.value&&k.propertyName.match(/transform$/)&&(l.value.style.transition="",!$&&L()&&(document.body.style.overflowX="",u.value&&(u.value.style.left="",u.value.style.width="")),G&&G(!!$))},C=V(function(){var O=e.placement,k=O==="left"||O==="right",$="translate".concat(k?"X":"Y");return{isHorizontal:k,placementName:$}}),E=function(){var k=e.open,$=e.width,G=e.height,J=C.value,Z=J.isHorizontal,X=J.placementName,Y=d.value?d.value.getBoundingClientRect()[Z?"width":"height"]:0,ne=(Z?$:G)||Y;T(k,X,ne)},I=function(k,$,G,J){var Z=e.placement,X=e.levelMove,Y=e.duration,ne=e.ease,le=e.showMask;v.forEach(function(ge){ge.style.transition="transform ".concat(Y," ").concat(ne),ly(ge,sy,y);var _e=k?G:0;if(X){var me=IF(X,{target:ge,open:k});_e=k?me[0]:me[1]||0}var ye=typeof _e=="number"?"".concat(_e,"px"):_e,Se=Z==="left"||Z==="top"?ye:"-".concat(ye);Se=le&&Z==="right"&&J?"calc(".concat(Se," + ").concat(J,"px)"):Se,ge.style.transform=_e?"".concat($,"(").concat(Se,")"):""})},T=function(k,$,G){if(!Ec){var J=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Kv(!0):0;I(k,$,G,J),N(J)}r("change",k)},N=function(k){var $=e.getContainer,G=e.showMask,J=e.open,Z=$==null?void 0:$();if(Z&&Z.parentNode===document.body&&G){var X=["touchstart"],Y=[document.body,u.value,c.value,d.value];J&&document.body.style.overflow!=="hidden"?(k&&R(k),document.body.style.touchAction="none",Y.forEach(function(ne,le){ne&&ly(ne,X[le]||"touchmove",le?g:m,f)})):L()&&(document.body.style.touchAction="",k&&F(k),Y.forEach(function(ne,le){ne&&uy(ne,X[le]||"touchmove",le?g:m,f)}))}},R=function(k){var $=e.placement,G=e.duration,J=e.ease,Z="width ".concat(G," ").concat(J),X="transform ".concat(G," ").concat(J);switch(l.value.style.transition="none",$){case"right":l.value.style.transform="translateX(-".concat(k,"px)");break;case"top":case"bottom":l.value.style.width="calc(100% - ".concat(k,"px)"),l.value.style.transform="translateZ(0)";break}clearTimeout(o),o=setTimeout(function(){l.value&&(l.value.style.transition="".concat(X,",").concat(Z),l.value.style.width="",l.value.style.transform="")})},F=function(k){var $=e.placement,G=e.duration,J=e.ease;l.value.style.transition="none";var Z,X="width ".concat(G," ").concat(J),Y="transform ".concat(G," ").concat(J);switch($){case"left":{l.value.style.width="100%",X="width 0s ".concat(J," ").concat(G);break}case"right":{l.value.style.transform="translateX(".concat(k,"px)"),l.value.style.width="100%",X="width 0s ".concat(J," ").concat(G),u.value&&(u.value.style.left="-".concat(k,"px"),u.value.style.width="calc(100% + ".concat(k,"px)"));break}case"top":case"bottom":{l.value.style.width="calc(100% + ".concat(k,"px)"),l.value.style.height="100%",l.value.style.transform="translateZ(0)",Z="height 0s ".concat(J," ").concat(G);break}}clearTimeout(o),o=setTimeout(function(){l.value&&(l.value.style.transition="".concat(Y,",").concat(Z?"".concat(Z,","):"").concat(X),l.value.style.transform="",l.value.style.width="",l.value.style.height="")})},L=function(){return!Object.keys(ro).some(function(k){return ro[k]})},j=function(k){var $=k.level,G=k.getContainer;if(!Ec){var J=G==null?void 0:G(),Z=J?J.parentNode:null;if(v=[],$==="all"){var X=Z?Array.prototype.slice.call(Z.children):[];X.forEach(function(Y){Y.nodeName!=="SCRIPT"&&Y.nodeName!=="STYLE"&&Y.nodeName!=="LINK"&&Y!==J&&v.push(Y)})}else $&&PF($).forEach(function(Y){document.querySelectorAll(Y).forEach(function(ne){v.push(ne)})})}},D=function(k){r("handleClick",k)},P=z(!1);return pe(l,function(){Ke(function(){P.value=!0})}),function(){var O,k,$,G=e.width,J=e.height,Z=e.open,X=e.prefixCls,Y=e.placement;e.level,e.levelMove,e.ease,e.duration,e.getContainer,e.onChange,e.afterVisibleChange;var ne=e.showMask,le=e.maskClosable,ge=e.maskStyle,_e=e.keyboard;e.getOpenCount,e.scrollLocker;var me=e.contentWrapperStyle,ye=e.style,Se=e.class,B=bt(e,MF),x=Z&&P.value,A=Ce(X,(O={},te(O,"".concat(X,"-").concat(Y),!0),te(O,"".concat(X,"-open"),x),te(O,Se,!!Se),te(O,"no-mask",!ne),O)),W=C.value.placementName,K=Y==="left"||Y==="top"?"-100%":"100%",U=x?"":"".concat(W,"(").concat(K,")");return S("div",M(M({},Lt(B,["switchScrollingEffect","autofocus"])),{},{tabindex:-1,class:A,style:ye,ref:l,onKeydown:x&&_e?w:void 0,onTransitionend:_}),[ne&&S("div",{class:"".concat(X,"-mask"),onClick:le?b:void 0,style:ge,ref:u},null),S("div",{class:"".concat(X,"-content-wrapper"),style:M({transform:U,msTransform:U,width:cy(G)?"".concat(G,"px"):G,height:cy(J)?"".concat(J,"px"):J},me),ref:s},[S("div",{class:"".concat(X,"-content"),ref:d},[(k=a.default)===null||k===void 0?void 0:k.call(a)]),a.handler?S("div",{onClick:D,ref:c},[($=a.handler)===null||$===void 0?void 0:$.call(a)]):null])])}}});const fy=NF;function Ii(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.element,r=n===void 0?document.body:n,a={},i=Object.keys(t);return i.forEach(function(o){a[o]=r.style[o]}),i.forEach(function(o){r.style[o]=t[o]}),a}function RF(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Oc={};const dy=function(t){if(!(!RF()&&!t)){var e="ant-scrolling-effect",n=new RegExp("".concat(e),"g"),r=document.body.className;if(t){if(!n.test(r))return;Ii(Oc),Oc={},document.body.className=r.replace(n,"").trim();return}var a=Kv();if(a&&(Oc=Ii({position:"relative",width:"calc(100% - ".concat(a,"px)")}),!n.test(r))){var i="".concat(r," ").concat(e);document.body.className=i.trim()}}};var Bn=[],PC="ant-scrolling-effect",Pc=new RegExp("".concat(PC),"g"),$F=0,Ac=new Map,DF=W_(function t(e){var n=this;H_(this,t),te(this,"getContainer",function(){var r;return(r=n.options)===null||r===void 0?void 0:r.container}),te(this,"reLock",function(r){var a=Bn.find(function(i){var o=i.target;return o===n.lockTarget});a&&n.unLock(),n.options=r,a&&(a.options=r,n.lock())}),te(this,"lock",function(){var r;if(!Bn.some(function(l){var u=l.target;return u===n.lockTarget})){if(Bn.some(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=n.options)===null||u===void 0?void 0:u.container)})){Bn=[].concat(nt(Bn),[{target:n.lockTarget,options:n.options}]);return}var a=0,i=((r=n.options)===null||r===void 0?void 0:r.container)||document.body;(i===document.body&&window.innerWidth-document.documentElement.clientWidth>0||i.scrollHeight>i.clientHeight)&&(a=Kv());var o=i.className;if(Bn.filter(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=n.options)===null||u===void 0?void 0:u.container)}).length===0&&Ac.set(i,Ii({width:a!==0?"calc(100% - ".concat(a,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:i})),!Pc.test(o)){var s="".concat(o," ").concat(PC);i.className=s.trim()}Bn=[].concat(nt(Bn),[{target:n.lockTarget,options:n.options}])}}),te(this,"unLock",function(){var r,a=Bn.find(function(s){var l=s.target;return l===n.lockTarget});if(Bn=Bn.filter(function(s){var l=s.target;return l!==n.lockTarget}),!(!a||Bn.some(function(s){var l,u=s.options;return(u==null?void 0:u.container)===((l=a.options)===null||l===void 0?void 0:l.container)}))){var i=((r=n.options)===null||r===void 0?void 0:r.container)||document.body,o=i.className;Pc.test(o)&&(Ii(Ac.get(i),{element:i}),Ac.delete(i),i.className=i.className.replace(Pc,"").trim())}}),this.lockTarget=$F++,this.options=e}),Or=0,ho=fs(),Us={},ti=function(e){if(!ho)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(Qe(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body};const AC=he({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:ee.any,visible:{type:Boolean,default:void 0}},setup:function(e,n){var r=n.slots,a=z(),i=z(),o=z(),s=new DF({container:ti(e.getContainer)}),l=function(){var p,m;(p=a.value)===null||p===void 0||(m=p.parentNode)===null||m===void 0||m.removeChild(a.value)},u=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(p||a.value&&!a.value.parentNode){var m=ti(e.getContainer);return m?(m.appendChild(a.value),!0):!1}return!0},c=function(){return ho?(a.value||(a.value=document.createElement("div"),u(!0)),d(),a.value):null},d=function(){var p=e.wrapperClassName;a.value&&p&&p!==a.value.className&&(a.value.className=p)};ca(function(){d(),u()});var v=function(){Or===1&&!Object.keys(Us).length?(dy(),Us=Ii({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):Or||(Ii(Us),Us={},dy(!0))},h=Pt();return Ve(function(){var f=!1;pe([function(){return e.visible},function(){return e.getContainer}],function(p,m){var g=ke(p,2),y=g[0],b=g[1],w=ke(m,2),_=w[0],C=w[1];if(ho&&ti(e.getContainer)===document.body&&(y&&!_?Or+=1:f&&(Or-=1)),f){var E=typeof b=="function"&&typeof C=="function";(E?b.toString()!==C.toString():b!==C)&&l(),y&&y!==_&&ho&&ti(b)!==s.getContainer()&&s.reLock({container:ti(b)})}f=!0},{immediate:!0,flush:"post"}),Ke(function(){u()||(o.value=Ue(function(){h.update()}))})}),st(function(){var f=e.visible,p=e.getContainer;ho&&ti(p)===document.body&&(Or=f&&Or?Or-1:Or),l(),Ue.cancel(o.value)}),function(){var f=e.forceRender,p=e.visible,m=null,g={getOpenCount:function(){return Or},getContainer:c,switchScrollingEffect:v,scrollLocker:s};return(f||p||i.value)&&(m=S(Af,{getContainer:c,ref:i},{default:function(){var b;return(b=r.default)===null||b===void 0?void 0:b.call(r,g)}})),m}}});var LF=["afterVisibleChange","getContainer","wrapperClassName","forceRender"],FF=["visible","afterClose"],BF=he({compatConfig:{MODE:3},inheritAttrs:!1,props:pn(EF(),{prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",afterVisibleChange:function(){},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],slots:["handler"],setup:function(e,n){var r=n.emit,a=n.slots,i=z(null),o=function(u){r("handleClick",u)},s=function(u){r("close",u)};return function(){e.afterVisibleChange;var l=e.getContainer,u=e.wrapperClassName,c=e.forceRender,d=bt(e,LF),v=null;if(!l)return S("div",{class:u,ref:i},[S(fy,M(M({},d),{},{open:e.open,getContainer:function(){return i.value},onClose:s,onHandleClick:o}),a)]);var h=!!a.handler||c;return(h||e.open||i.value)&&(v=S(AC,{visible:e.open,forceRender:h,getContainer:l,wrapperClassName:u},{default:function(p){var m=p.visible,g=p.afterClose,y=bt(p,FF);return S(fy,M(M(M({ref:i},d),y),{},{open:m!==void 0?m:e.open,afterVisibleChange:g!==void 0?g:e.afterVisibleChange,onClose:s,onHandleClick:o}),a)}})),v}}});const zF=BF;var jF=["width","height","visible","placement","mask","wrapClassName","class"],WF=Ha("top","right","bottom","left");Ha("default","large");var vy={distance:180},HF=function(){return{autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:ee.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:ee.any,maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},wrapStyle:{type:Object,default:void 0},style:{type:Object,default:void 0},class:ee.any,wrapClassName:String,size:{type:String},drawerStyle:{type:Object,default:void 0},headerStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},contentWrapperStyle:{type:Object,default:void 0},title:ee.any,visible:{type:Boolean,default:void 0},width:ee.oneOfType([ee.string,ee.number]),height:ee.oneOfType([ee.string,ee.number]),zIndex:Number,prefixCls:String,push:ee.oneOfType([ee.looseBool,{type:Object}]),placement:ee.oneOf(WF),keyboard:{type:Boolean,default:void 0},extra:ee.any,footer:ee.any,footerStyle:{type:Object,default:void 0},level:ee.any,levelMove:{type:[Number,Array,Function]},handle:ee.any,afterVisibleChange:Function,onAfterVisibleChange:Function,"onUpdate:visible":Function,onClose:Function}},VF=he({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:pn(HF(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:vy}),slots:["closeIcon","title","extra","footer","handle"],setup:function(e,n){var r=n.emit,a=n.slots,i=n.attrs,o=z(!1),s=z(!1),l=z(null),u=ot("parentDrawerOpts",null),c=lt("drawer",e),d=c.prefixCls;Un(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Un(e.wrapStyle===void 0,"Drawer","`wrapStyle` prop is deprecated, please use `style` instead"),Un(e.wrapClassName===void 0,"Drawer","`wrapClassName` prop is deprecated, please use `class` instead");var v=function(){o.value=!0},h=function(){o.value=!1,Ke(function(){f()})};wt("parentDrawerOpts",{setPush:v,setPull:h}),Ve(function(){var N=e.visible;N&&u&&u.setPush()}),vn(function(){u&&u.setPull()}),pe(function(){return e.visible},function(N){u&&(N?u.setPush():u.setPull())},{flush:"post"});var f=function(){var R,F;(R=l.value)===null||R===void 0||(F=R.domFocus)===null||F===void 0||F.call(R)},p=function(R){r("update:visible",!1),r("close",R)},m=function(R){var F;(F=e.afterVisibleChange)===null||F===void 0||F.call(e,R),r("afterVisibleChange",R)},g=V(function(){return e.destroyOnClose&&!e.visible}),y=function(){var R=g.value;R&&(e.visible||(s.value=!0))},b=V(function(){var N=e.push,R=e.placement,F;return typeof N=="boolean"?F=N?vy.distance:0:F=N.distance,F=parseFloat(String(F||0)),R==="left"||R==="right"?"translateX(".concat(R==="left"?F:-F,"px)"):R==="top"||R==="bottom"?"translateY(".concat(R==="top"?F:-F,"px)"):null}),w=V(function(){var N=e.visible,R=e.mask,F=e.placement,L=e.size,j=L===void 0?"default":L,D=e.width,P=e.height;if(!N&&!R)return{};var O={};if(F==="left"||F==="right"){var k=j==="large"?736:378;O.width=typeof D>"u"?k:D,O.width=typeof O.width=="string"?O.width:"".concat(O.width,"px")}else{var $=j==="large"?736:378;O.height=typeof P>"u"?$:P,O.height=typeof O.height=="string"?O.height:"".concat(O.height,"px")}return O}),_=V(function(){var N=e.zIndex,R=e.wrapStyle,F=e.mask,L=e.style,j=F?{}:w.value;return M(M(M({zIndex:N,transform:o.value?b.value:void 0},j),R),L)}),C=function(R){var F=e.closable,L=e.headerStyle,j=Wn(a,e,"extra"),D=Wn(a,e,"title");return!D&&!F?null:S("div",{class:Ce("".concat(R,"-header"),te({},"".concat(R,"-header-close-only"),F&&!D&&!j)),style:L},[S("div",{class:"".concat(R,"-header-title")},[E(R),D&&S("div",{class:"".concat(R,"-title")},[D])]),j&&S("div",{class:"".concat(R,"-extra")},[j])])},E=function(R){var F,L=e.closable,j=a.closeIcon?(F=a.closeIcon)===null||F===void 0?void 0:F.call(a):e.closeIcon;return L&&S("button",{key:"closer",onClick:p,"aria-label":"Close",class:"".concat(R,"-close")},[j===void 0?S(zr,null,null):j])},I=function(R){var F;if(s.value&&!e.visible)return null;s.value=!1;var L=e.bodyStyle,j=e.drawerStyle,D={},P=g.value;return P&&(D.opacity=0,D.transition="opacity .3s"),S("div",{class:"".concat(R,"-wrapper-body"),style:M(M({},D),j),onTransitionend:y},[C(R),S("div",{key:"body",class:"".concat(R,"-body"),style:L},[(F=a.default)===null||F===void 0?void 0:F.call(a)]),T(R)])},T=function(R){var F=Wn(a,e,"footer");if(!F)return null;var L="".concat(R,"-footer");return S("div",{class:L,style:e.footerStyle},[F])};return function(){var N;e.width,e.height;var R=e.visible,F=e.placement,L=e.mask,j=e.wrapClassName,D=e.class,P=bt(e,jF),O=L?w.value:{},k=L?"":"no-mask",$=M(M(M(M({},i),Lt(P,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","wrapStyle","onAfterVisibleChange","onClose","onUpdate:visible"])),O),{},{onClose:p,afterVisibleChange:m,handler:!1,prefixCls:d.value,open:R,showMask:L,placement:F,class:Ce((N={},te(N,D,D),te(N,j,!!j),te(N,k,!!k),N)),style:_.value,ref:l});return S(zF,$,{handler:e.handle?function(){return e.handle}:a.handle,default:function(){return I(d.value)}})}}});const UF=Bi(VF);var IC=function(){return{id:String,prefixCls:String,inputPrefixCls:String,defaultValue:ee.oneOfType([ee.string,ee.number]),value:{type:[String,Number,Symbol],default:void 0},placeholder:{type:[String,Number]},autocomplete:String,type:{type:String,default:"text"},name:String,size:{type:String},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},addonBefore:ee.any,addonAfter:ee.any,prefix:ee.any,suffix:ee.any,autofocus:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,valueModifiers:Object,hidden:Boolean}};const Gv=IC;var kC=function(){return M(M({},Lt(IC(),["prefix","addonBefore","addonAfter","suffix"])),{},{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object})};function MC(t,e,n,r,a){var i;return Ce(t,(i={},te(i,"".concat(t,"-sm"),n==="small"),te(i,"".concat(t,"-lg"),n==="large"),te(i,"".concat(t,"-disabled"),r),te(i,"".concat(t,"-rtl"),a==="rtl"),te(i,"".concat(t,"-borderless"),!e),i))}var To=function(e){return e!=null&&(Array.isArray(e)?Fi(e).length:!0)};function KF(t){return To(t.prefix)||To(t.suffix)||To(t.allowClear)}function Ic(t){return To(t.addonBefore)||To(t.addonAfter)}var GF=["text","input"];const NC=he({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:ee.oneOf(Ha("text","input")),value:ee.any,defaultValue:ee.any,allowClear:{type:Boolean,default:void 0},element:ee.any,handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:ee.any,prefix:ee.any,addonBefore:ee.any,addonAfter:ee.any,readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean},setup:function(e,n){var r=n.slots,a=n.attrs,i=z(),o=function(h){var f;if((f=i.value)!==null&&f!==void 0&&f.contains(h.target)){var p=e.triggerFocus;p==null||p()}},s=function(h){var f,p=e.allowClear,m=e.value,g=e.disabled,y=e.readonly,b=e.handleReset,w=e.suffix,_=w===void 0?r.suffix:w;if(!p)return null;var C=!g&&!y&&m,E="".concat(h,"-clear-icon");return S(hu,{onClick:b,onMousedown:function(T){return T.preventDefault()},class:Ce((f={},te(f,"".concat(E,"-hidden"),!C),te(f,"".concat(E,"-has-suffix"),!!_),f),E),role:"button"},null)},l=function(h){var f,p=e.suffix,m=p===void 0?(f=r.suffix)===null||f===void 0?void 0:f.call(r):p,g=e.allowClear;return m||g?S("span",{class:"".concat(h,"-suffix")},[s(h),m]):null},u=function(h,f){var p,m,g,y=e.focused,b=e.value,w=e.prefix,_=w===void 0?(p=r.prefix)===null||p===void 0?void 0:p.call(r):w,C=e.size,E=e.suffix,I=E===void 0?(m=r.suffix)===null||m===void 0?void 0:m.call(r):E,T=e.disabled,N=e.allowClear,R=e.direction,F=e.readonly,L=e.bordered,j=e.hidden,D=e.addonAfter,P=D===void 0?r.addonAfter:D,O=e.addonBefore,k=O===void 0?r.addonBefore:O,$=l(h);if(!KF({prefix:_,suffix:I,allowClear:N}))return Et(f,{value:b});var G=_?S("span",{class:"".concat(h,"-prefix")},[_]):null,J=Ce("".concat(h,"-affix-wrapper"),(g={},te(g,"".concat(h,"-affix-wrapper-focused"),y),te(g,"".concat(h,"-affix-wrapper-disabled"),T),te(g,"".concat(h,"-affix-wrapper-sm"),C==="small"),te(g,"".concat(h,"-affix-wrapper-lg"),C==="large"),te(g,"".concat(h,"-affix-wrapper-input-with-clear-btn"),I&&N&&b),te(g,"".concat(h,"-affix-wrapper-rtl"),R==="rtl"),te(g,"".concat(h,"-affix-wrapper-readonly"),F),te(g,"".concat(h,"-affix-wrapper-borderless"),!L),te(g,"".concat(a.class),!Ic({addonAfter:P,addonBefore:k})&&a.class),g));return S("span",{ref:i,class:J,style:a.style,onMouseup:o,hidden:j},[G,Et(f,{style:null,value:b,class:MC(h,L,C,T)}),$])},c=function(h,f){var p,m,g,y=e.addonBefore,b=y===void 0?(p=r.addonBefore)===null||p===void 0?void 0:p.call(r):y,w=e.addonAfter,_=w===void 0?(m=r.addonAfter)===null||m===void 0?void 0:m.call(r):w,C=e.size,E=e.direction,I=e.hidden,T=e.disabled;if(!Ic({addonBefore:b,addonAfter:_}))return f;var N="".concat(h,"-group"),R="".concat(N,"-addon"),F=Ce(R,te({},"".concat(R,"-disabled"),T)),L=b?S("span",{class:F},[b]):null,j=_?S("span",{class:F},[_]):null,D=Ce("".concat(h,"-wrapper"),N,te({},"".concat(N,"-rtl"),E==="rtl")),P=Ce("".concat(h,"-group-wrapper"),(g={},te(g,"".concat(h,"-group-wrapper-sm"),C==="small"),te(g,"".concat(h,"-group-wrapper-lg"),C==="large"),te(g,"".concat(h,"-group-wrapper-rtl"),E==="rtl"),g),a.class);return S("span",{class:P,style:a.style,hidden:I},[S("span",{class:D},[L,Et(f,{style:null}),j])])},d=function(h,f){var p,m=e.value,g=e.allowClear,y=e.direction,b=e.bordered,w=e.hidden,_=e.addonAfter,C=_===void 0?r.addonAfter:_,E=e.addonBefore,I=E===void 0?r.addonBefore:E;if(!g)return Et(f,{value:m});var T=Ce("".concat(h,"-affix-wrapper"),"".concat(h,"-affix-wrapper-textarea-with-clear-btn"),(p={},te(p,"".concat(h,"-affix-wrapper-rtl"),y==="rtl"),te(p,"".concat(h,"-affix-wrapper-borderless"),!b),te(p,"".concat(a.class),!Ic({addonAfter:C,addonBefore:I})&&a.class),p));return S("span",{class:T,style:a.style,hidden:w},[Et(f,{style:null,value:m}),s(h)])};return function(){var v,h=e.prefixCls,f=e.inputType,p=e.element,m=p===void 0?(v=r.element)===null||v===void 0?void 0:v.call(r):p;return f===GF[0]?d(h,m):c(h,u(h,m))}}});function Ff(t){return typeof t>"u"||t===null?"":String(t)}function Eo(t,e,n,r){if(n){var a=e;if(e.type==="click"){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0});var i=t.cloneNode(!0);a.target=i,a.currentTarget=i,i.value="",n(a);return}if(r!==void 0){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0}),a.target=t,a.currentTarget=t,t.value=r,n(a);return}n(a)}}function RC(t,e){if(t){t.focus(e);var n=e||{},r=n.cursor;if(r){var a=t.value.length;switch(r){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(a,a);break;default:t.setSelectionRange(0,a)}}}}const kt=he({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:Gv(),setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=n.emit,s=z(),l=z(),u,c=Nv(),d=lt("input",e),v=d.direction,h=d.prefixCls,f=d.size,p=d.autocomplete,m=z(e.value===void 0?e.defaultValue:e.value),g=z(!1);pe(function(){return e.value},function(){m.value=e.value}),pe(function(){return e.disabled},function(){e.value!==void 0&&(m.value=e.value),e.disabled&&(g.value=!1)});var y=function(){u=setTimeout(function(){var k;((k=s.value)===null||k===void 0?void 0:k.getAttribute("type"))==="password"&&s.value.hasAttribute("value")&&s.value.removeAttribute("value")})},b=function(k){RC(s.value,k)},w=function(){var k;(k=s.value)===null||k===void 0||k.blur()},_=function(k,$,G){var J;(J=s.value)===null||J===void 0||J.setSelectionRange(k,$,G)},C=function(){var k;(k=s.value)===null||k===void 0||k.select()};i({focus:b,blur:w,input:s,stateValue:m,setSelectionRange:_,select:C});var E=function(k){var $=e.onFocus;g.value=!0,$==null||$(k),Ke(function(){y()})},I=function(k){var $=e.onBlur;g.value=!1,$==null||$(k),c.onFieldBlur(),Ke(function(){y()})},T=function(k){o("update:value",k.target.value),o("change",k),o("input",k),c.onFieldChange()},N=Pt(),R=function(k,$){m.value!==k&&(e.value===void 0?m.value=k:Ke(function(){s.value.value!==m.value&&N.update()}),Ke(function(){$&&$()}))},F=function(k){Eo(s.value,k,T),R("",function(){b()})},L=function(k){var $=k.target,G=$.value,J=$.composing;if(!((k.isComposing||J)&&e.lazy||m.value===G)){var Z=k.target.value;Eo(s.value,k,T),R(Z,function(){y()})}},j=function(k){k.keyCode===13&&o("pressEnter",k),o("keydown",k)};Ve(function(){y()}),st(function(){clearTimeout(u)});var D=function(){var k,$=e.addonBefore,G=$===void 0?r.addonBefore:$,J=e.addonAfter,Z=J===void 0?r.addonAfter:J,X=e.disabled,Y=e.bordered,ne=Y===void 0?!0:Y,le=e.valueModifiers,ge=le===void 0?{}:le,_e=e.htmlSize,me=Lt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers"]),ye=M(M(M({},me),a),{},{autocomplete:p.value,onChange:L,onInput:L,onFocus:E,onBlur:I,onKeydown:j,class:Ce(MC(h.value,ne,f.value,X,v.value),te({},a.class,a.class&&!G&&!Z)),ref:s,key:"ant-input",size:_e,id:(k=me.id)!==null&&k!==void 0?k:c.id.value});ge.lazy&&delete ye.onInput,ye.autofocus||delete ye.autofocus;var Se=S("input",Lt(ye,["size"]),null);return dn(Se,[[vs]])},P=function(){var k,$=m.value,G=e.maxlength,J=e.suffix,Z=J===void 0?(k=r.suffix)===null||k===void 0?void 0:k.call(r):J,X=e.showCount,Y=Number(G)>0;if(Z||X){var ne=nt(Ff($)).length,le=null;return Qe(X)==="object"?le=X.formatter({count:ne,maxlength:G}):le="".concat(ne).concat(Y?" / ".concat(G):""),S(Re,null,[!!X&&S("span",{class:Ce("".concat(h.value,"-show-count-suffix"),te({},"".concat(h.value,"-show-count-has-suffix"),!!Z))},[le]),Z])}return null};return function(){var O=M(M(M({},a),e),{},{prefixCls:h.value,inputType:"input",value:Ff(m.value),handleReset:F,focused:g.value&&!e.disabled});return S(NC,M(M({},Lt(O,["element","valueModifiers","suffix","showCount"])),{},{ref:l}),M(M({},r),{},{element:D,suffix:P}))}}}),qF=he({compatConfig:{MODE:3},name:"AInputGroup",props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0},onMouseenter:{type:Function},onMouseleave:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup:function(e,n){var r=n.slots,a=lt("input-group",e),i=a.prefixCls,o=a.direction,s=V(function(){var l,u=i.value;return l={},te(l,"".concat(u),!0),te(l,"".concat(u,"-lg"),e.size==="large"),te(l,"".concat(u,"-sm"),e.size==="small"),te(l,"".concat(u,"-compact"),e.compact),te(l,"".concat(u,"-rtl"),o.value==="rtl"),l});return function(){var l;return S("span",{class:s.value,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onFocus:e.onFocus,onBlur:e.onBlur},[(l=r.default)===null||l===void 0?void 0:l.call(r)])}}});var kc=/iPhone/i,py=/iPod/i,hy=/iPad/i,Mc=/\bAndroid(?:.+)Mobile\b/i,gy=/Android/i,ni=/\bAndroid(?:.+)SD4930UR\b/i,Ks=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Pr=/Windows Phone/i,my=/\bWindows(?:.+)ARM\b/i,yy=/BlackBerry/i,by=/BB10/i,wy=/Opera Mini/i,_y=/\b(CriOS|Chrome)(?:.+)Mobile/i,Cy=/Mobile(?:.+)Firefox\b/i;function ze(t,e){return t.test(e)}function Sy(t){var e=t||(typeof navigator<"u"?navigator.userAgent:""),n=e.split("[FBAN");if(typeof n[1]<"u"){var r=n,a=ke(r,1);e=a[0]}if(n=e.split("Twitter"),typeof n[1]<"u"){var i=n,o=ke(i,1);e=o[0]}var s={apple:{phone:ze(kc,e)&&!ze(Pr,e),ipod:ze(py,e),tablet:!ze(kc,e)&&ze(hy,e)&&!ze(Pr,e),device:(ze(kc,e)||ze(py,e)||ze(hy,e))&&!ze(Pr,e)},amazon:{phone:ze(ni,e),tablet:!ze(ni,e)&&ze(Ks,e),device:ze(ni,e)||ze(Ks,e)},android:{phone:!ze(Pr,e)&&ze(ni,e)||!ze(Pr,e)&&ze(Mc,e),tablet:!ze(Pr,e)&&!ze(ni,e)&&!ze(Mc,e)&&(ze(Ks,e)||ze(gy,e)),device:!ze(Pr,e)&&(ze(ni,e)||ze(Ks,e)||ze(Mc,e)||ze(gy,e))||ze(/\bokhttp\b/i,e)},windows:{phone:ze(Pr,e),tablet:ze(my,e),device:ze(Pr,e)||ze(my,e)},other:{blackberry:ze(yy,e),blackberry10:ze(by,e),opera:ze(wy,e),firefox:ze(Cy,e),chrome:ze(_y,e),device:ze(yy,e)||ze(by,e)||ze(wy,e)||ze(Cy,e)||ze(_y,e)},any:null,phone:null,tablet:null};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}var YF=M(M({},Sy()),{},{isMobile:Sy});const JF=YF;var XF=["disabled","loading","addonAfter","suffix"];const ZF=he({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:M(M({},Gv()),{},{inputPrefixCls:String,enterButton:ee.any,onSearch:{type:Function}}),setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=n.emit,s=z(),l=function(){var w;(w=s.value)===null||w===void 0||w.focus()},u=function(){var w;(w=s.value)===null||w===void 0||w.blur()};i({focus:l,blur:u});var c=function(w){o("update:value",w.target.value),w&&w.target&&w.type==="click"&&o("search",w.target.value,w),o("change",w)},d=function(w){var _;document.activeElement===((_=s.value)===null||_===void 0?void 0:_.input)&&w.preventDefault()},v=function(w){var _;o("search",(_=s.value)===null||_===void 0?void 0:_.stateValue,w),JF.tablet||s.value.focus()},h=lt("input-search",e),f=h.prefixCls,p=h.getPrefixCls,m=h.direction,g=h.size,y=V(function(){return p("input",e.inputPrefixCls)});return function(){var b,w,_,C,E,I=e.disabled,T=e.loading,N=e.addonAfter,R=N===void 0?(b=r.addonAfter)===null||b===void 0?void 0:b.call(r):N,F=e.suffix,L=F===void 0?(w=r.suffix)===null||w===void 0?void 0:w.call(r):F,j=bt(e,XF),D=e.enterButton,P=D===void 0?(_=(C=r.enterButton)===null||C===void 0?void 0:C.call(r))!==null&&_!==void 0?_:!1:D;P=P||P==="";var O=typeof P=="boolean"?S(F_,null,null):null,k="".concat(f.value,"-button"),$=Array.isArray(P)?P[0]:P,G,J=$.type&&tA($.type)&&$.type.__ANT_BUTTON;if(J||$.tagName==="button")G=Et($,M({onMousedown:d,onClick:v,key:"enterButton"},J?{class:k,size:g.value}:{}),!1);else{var Z=O&&!P;G=S(Xt,{class:k,type:P?"primary":void 0,size:g.value,disabled:I,key:"enterButton",onMousedown:d,onClick:v,loading:T,icon:Z?O:null},{default:function(){return[Z?null:O||P]}})}R&&(G=[G,R]);var X=Ce(f.value,(E={},te(E,"".concat(f.value,"-rtl"),m.value==="rtl"),te(E,"".concat(f.value,"-").concat(g.value),!!g.value),te(E,"".concat(f.value,"-with-button"),!!P),E),a.class);return S(kt,M(M(M({ref:s},Lt(j,["onUpdate:value","onSearch","enterButton"])),a),{},{onPressEnter:v,size:g.value,prefixCls:y.value,addonAfter:G,suffix:L,onChange:c,class:X,disabled:I}),r)}}});var QF=` + }`),document.body.contains(Kr)||document.body.appendChild(Kr)}I&&C.appendChild(h),js.addStartEventListener(C,p),js.addEndEventListener(C,m)}},b=function(C){if(!(!C||C===h||!(C instanceof Element))){var E=e.insertExtraNode,I=g();C.setAttribute(I,"false"),Kr&&(Kr.innerHTML=""),E&&h&&C.contains(h)&&C.removeChild(h),js.removeStartEventListener(C,p),js.removeEndEventListener(C,m)}},w=function(C){if(!(!C||!C.getAttribute||C.getAttribute("disabled")||C.className.indexOf("disabled")>=0)){var E=function(T){if(!(T.target.tagName==="INPUT"||Sm(T.target))){b(C);var N=getComputedStyle(C).getPropertyValue("border-top-color")||getComputedStyle(C).getPropertyValue("border-color")||getComputedStyle(C).getPropertyValue("background-color");c=setTimeout(function(){return y(C,N)},0),Ue.cancel(d),v=!0,d=Ue(function(){v=!1},10)}};return C.addEventListener("click",E,!0),{cancel:function(){C.removeEventListener("click",E,!0)}}}};return Ve(function(){Ke(function(){var _=Ia(i);_.nodeType===1&&(u=w(_))})}),st(function(){u&&u.cancel(),clearTimeout(c),f=!0}),function(){var _;return(_=r.default)===null||_===void 0?void 0:_.call(r)[0]}}});function j_(t){return t==="danger"?{danger:!0}:{type:t}}var kD=function(){return{prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:function(){return!1}},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:ee.any,href:String,target:String,title:String,onClick:{type:Function},onMousedown:{type:Function}}};const MD=kD;var xm=function(e){e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Tm=function(e){Ke(function(){e&&(e.style.width="".concat(e.scrollWidth,"px"),e.style.opacity="1",e.style.transform="scale(1)")})},Em=function(e){e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)};const ND=he({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:function(e){return function(){var n=e.existIcon,r=e.prefixCls,a=e.loading;if(n)return S("span",{class:"".concat(r,"-loading-icon")},[S(Pl,null,null)]);var i=!!a;return S(Yn,{name:"".concat(r,"-loading-icon-motion"),onBeforeEnter:xm,onEnter:Tm,onAfterEnter:Em,onBeforeLeave:Tm,onLeave:function(s){setTimeout(function(){xm(s)})},onAfterLeave:Em},{default:function(){return[i?S("span",{class:"".concat(r,"-loading-icon")},[S(Pl,null,null)]):null]}})}}});var Om=/^[\u4e00-\u9fa5]{2}$/,Pm=Om.test.bind(Om);function Ws(t){return t==="text"||t==="link"}const Xt=he({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:pn(MD(),{type:"default"}),slots:["icon"],setup:function(e,n){var r=n.slots,a=n.attrs,i=n.emit,o=n.expose,s=lt("btn",e),l=s.prefixCls,u=s.autoInsertSpaceInButton,c=s.direction,d=s.size,v=z(null),h=z(void 0),f=!1,p=z(!1),m=z(!1),g=V(function(){return u.value!==!1}),y=V(function(){return Qe(e.loading)==="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading});pe(y,function(T){clearTimeout(h.value),typeof y.value=="number"?h.value=setTimeout(function(){p.value=T},y.value):p.value=T},{immediate:!0});var b=V(function(){var T,N=e.type,R=e.shape,F=R===void 0?"default":R,L=e.ghost,j=e.block,D=e.danger,P=l.value,O={large:"lg",small:"sm",middle:void 0},k=d.value,$=k&&O[k]||"";return T={},te(T,"".concat(P),!0),te(T,"".concat(P,"-").concat(N),N),te(T,"".concat(P,"-").concat(F),F!=="default"&&F),te(T,"".concat(P,"-").concat($),$),te(T,"".concat(P,"-loading"),p.value),te(T,"".concat(P,"-background-ghost"),L&&!Ws(N)),te(T,"".concat(P,"-two-chinese-chars"),m.value&&g.value),te(T,"".concat(P,"-block"),j),te(T,"".concat(P,"-dangerous"),!!D),te(T,"".concat(P,"-rtl"),c.value==="rtl"),T}),w=function(){var N=v.value;if(!(!N||u.value===!1)){var R=N.textContent;f&&Pm(R)?m.value||(m.value=!0):m.value&&(m.value=!1)}},_=function(N){if(p.value||e.disabled){N.preventDefault();return}i("click",N)},C=function(N,R){var F=R?" ":"";if(N.type===Wa){var L=N.children.trim();return Pm(L)&&(L=L.split("").join(F)),S("span",null,[L])}return N};yt(function(){Un(!(e.ghost&&Ws(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),Ve(w),ca(w),st(function(){h.value&&clearTimeout(h.value)});var E=function(){var N;(N=v.value)===null||N===void 0||N.focus()},I=function(){var N;(N=v.value)===null||N===void 0||N.blur()};return o({focus:E,blur:I}),function(){var T,N,R=e.icon,F=R===void 0?(T=r.icon)===null||T===void 0?void 0:T.call(r):R,L=kn((N=r.default)===null||N===void 0?void 0:N.call(r));f=L.length===1&&!F&&!Ws(e.type);var j=e.type,D=e.htmlType,P=e.disabled,O=e.href,k=e.title,$=e.target,G=e.onMousedown,J=p.value?"loading":F,Z=M(M({},a),{},{title:k,disabled:P,class:[b.value,a.class,te({},"".concat(l.value,"-icon-only"),L.length===0&&!!J)],onClick:_,onMousedown:G});P||delete Z.disabled;var X=F&&!p.value?F:S(ND,{existIcon:!!F,prefixCls:l.value,loading:!!p.value},null),Y=L.map(function(le){return C(le,f&&g.value)});if(O!==void 0)return S("a",M(M({},Z),{},{href:O,target:$,ref:v}),[X,Y]);var ne=S("button",M(M({},Z),{},{ref:v,type:D}),[X,Y]);return Ws(j)?ne:S(ID,{ref:"wave",disabled:!!p.value},{default:function(){return[ne]}})}}});function Am(t,e){for(var n=0;n-1}function XD(t,e,n){for(var r=-1,a=t==null?0:t.length;++r=tL){var u=e?null:eL(t);if(u)return mv(u);o=!1,a=u_,l=new Go}else l=e?[]:s;e:for(;++r"u"?Se=T&&ye?me:"":_e===!1&&(Se="");var B={title:Se};!w.value&&!b.value&&(B.title=null,B.visible=!1);var x={};e.role==="option"&&(x["aria-selected"]=j.value);var A=Wn(r,e,"icon");return S(CD,M(M({},B),{},{placement:y.value?"left":"right",overlayClassName:"".concat(f.value,"-inline-collapsed-tooltip")}),{default:function(){return[S(wi.Item,M(M(M({component:"li"},i),{},{id:e.id,style:M(M({},i.style||{}),X.value),class:[D.value,(ge={},te(ge,"".concat(i.class),!!i.class),te(ge,"".concat(f.value,"-item-only-child"),(A?ye+1:ye)===1),ge)],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":l,"aria-disabled":e.disabled},x),{},{onMouseenter:k,onMouseleave:$,onClick:O,onKeydown:G,onFocus:J,title:typeof _e=="string"?_e:void 0}),{default:function(){return[Et(A,{class:"".concat(f.value,"-item-icon")},!1),Z(A,me)]}})]}})}}});var ta={adjustX:1,adjustY:1},sL={topLeft:{points:["bl","tl"],overflow:ta,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ta,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ta,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ta,offset:[4,0]}},lL={topLeft:{points:["bl","tl"],overflow:ta,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ta,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ta,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ta,offset:[4,0]}},uL={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};const Nm=he({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:["popup"],emits:["visibleChange"],setup:function(e,n){var r=n.slots,a=n.emit,i=z(!1),o=da(),s=o.getPopupContainer,l=o.rtl,u=o.subMenuOpenDelay,c=o.subMenuCloseDelay,d=o.builtinPlacements,v=o.triggerSubMenuAction,h=o.isRootMenu,f=o.forceSubMenuRender,p=o.motion,m=o.defaultMotions,g=Y_(),y=V(function(){return l.value?M(M({},lL),d.value):M(M({},sL),d.value)}),b=V(function(){return uL[e.mode]}),w=z();pe(function(){return e.visible},function(E){Ue.cancel(w.value),w.value=Ue(function(){i.value=E})},{immediate:!0}),st(function(){Ue.cancel(w.value)});var _=function(I){a("visibleChange",I)},C=V(function(){var E,I,T=p.value||((E=m.value)===null||E===void 0?void 0:E[e.mode])||((I=m.value)===null||I===void 0?void 0:I.other),N=typeof T=="function"?T():T;return N?cs(N.name,{css:!0}):void 0});return function(){var E=e.prefixCls,I=e.popupClassName,T=e.mode,N=e.popupOffset,R=e.disabled;return S(Cu,{prefixCls:E,popupClassName:Ce("".concat(E,"-popup"),te({},"".concat(E,"-rtl"),l.value),I),stretch:T==="horizontal"?"minWidth":null,getPopupContainer:h.value?s.value:function(F){return F.parentNode},builtinPlacements:y.value,popupPlacement:b.value,popupVisible:i.value,popupAlign:N&&{offset:N},action:R?[]:[v.value],mouseEnterDelay:u.value,mouseLeaveDelay:c.value,onPopupVisibleChange:_,forceRender:g||f.value,popupAnimation:C.value},{popup:r.popup,default:r.default})}}});var rC=function(e,n){var r,a=n.slots,i=n.attrs,o=da(),s=o.prefixCls,l=o.mode;return S("ul",M(M({},i),{},{class:Ce(s.value,"".concat(s.value,"-sub"),"".concat(s.value,"-").concat(l.value==="inline"?"inline":"vertical")),"data-menu-list":!0}),[(r=a.default)===null||r===void 0?void 0:r.call(a)])};rC.displayName="SubMenuList";const aC=rC,cL=he({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(e,n){var r=n.slots,a=V(function(){return"inline"}),i=da(),o=i.motion,s=i.mode,l=i.defaultMotions,u=V(function(){return s.value===a.value}),c=z(!u.value),d=V(function(){return u.value?e.open:!1});pe(s,function(){u.value&&(c.value=!1)},{flush:"post"});var v=V(function(){var h,f,p=o.value||((h=l.value)===null||h===void 0?void 0:h[a.value])||((f=l.value)===null||f===void 0?void 0:f.other),m=typeof p=="function"?p():p;return M(M({},m),{},{appear:e.keyPath.length<=1})});return function(){var h;return c.value?null:S(Ll,{mode:a.value},{default:function(){return[S(Yn,v.value,{default:function(){return[dn(S(aC,{id:e.id},{default:function(){return[(h=r.default)===null||h===void 0?void 0:h.call(r)]}}),[[$r,d.value]])]}})]}})}}});var Rm=0,fL=function(){return{icon:ee.any,title:ee.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}};const Xo=he({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:fL(),slots:["icon","title","expandIcon"],setup:function(e,n){var r,a,i=n.slots,o=n.attrs,s=n.emit;X_(!1);var l=Lv(),u=Pt(),c=Qe(u.vnode.key)==="symbol"?String(u.vnode.key):u.vnode.key;Un(Qe(u.vnode.key)!=="symbol","SubMenu",'SubMenu `:key="'.concat(String(c),'"` not support Symbol type'));var d=lf(c)?c:"sub_menu_".concat(++Rm,"_$$_not_set_key"),v=(r=e.eventKey)!==null&&r!==void 0?r:lf(c)?"sub_menu_".concat(++Rm,"_$$_").concat(c):d,h=Dv(),f=h.parentEventKeys,p=h.parentInfo,m=h.parentKeys,g=V(function(){return[].concat(nt(m.value),[d])}),y=z([]),b={eventKey:v,key:d,parentEventKeys:f,childrenEventKeys:y,parentKeys:m};(a=p.childrenEventKeys)===null||a===void 0||a.value.push(v),st(function(){if(p.childrenEventKeys){var H;p.childrenEventKeys.value=(H=p.childrenEventKeys)===null||H===void 0?void 0:H.value.filter(function(q){return q!=v})}}),aL(v,d,b);var w=da(),_=w.prefixCls,C=w.activeKeys,E=w.disabled,I=w.changeActiveKeys,T=w.mode,N=w.inlineCollapsed,R=w.antdMenuTheme,F=w.openKeys,L=w.overflowDisabled,j=w.onOpenChange,D=w.registerMenuInfo,P=w.unRegisterMenuInfo,O=w.selectedSubMenuKeys,k=w.expandIcon,$=c!=null,G=!l&&(Y_()||!$);HD(G),(l&&$||!l&&!$||G)&&(D(v,b),st(function(){P(v)}));var J=V(function(){return"".concat(_.value,"-submenu")}),Z=V(function(){return E.value||e.disabled}),X=z(),Y=z(),ne=V(function(){return F.value.includes(d)}),le=V(function(){return!L.value&&ne.value}),ge=V(function(){return O.value.includes(d)}),_e=z(!1);pe(C,function(){_e.value=!!C.value.find(function(H){return H===d})},{immediate:!0});var me=function(q){Z.value||(s("titleClick",q,d),T.value==="inline"&&j(d,!ne.value))},ye=function(q){Z.value||(I(g.value),s("mouseenter",q))},Se=function(q){Z.value||(I([]),s("mouseleave",q))},B=nC(V(function(){return g.value.length})),x=function(q){T.value!=="inline"&&j(d,q)},A=function(){I(g.value)},W=v&&"".concat(v,"-popup"),K=V(function(){return Ce(_.value,"".concat(_.value,"-").concat(R.value),e.popupClassName)}),U=function(q,ue){if(!ue)return N.value&&!m.value.length&&q&&typeof q=="string"?S("div",{class:"".concat(_.value,"-inline-collapsed-noicon")},[q.charAt(0)]):S("span",{class:"".concat(_.value,"-title-content")},[q]);var ae=ar(q)&&q.type==="span";return S(Re,null,[Et(ue,{class:"".concat(_.value,"-item-icon")},!1),ae?q:S("span",{class:"".concat(_.value,"-title-content")},[q])])},se=V(function(){return T.value!=="inline"&&g.value.length>1?"vertical":T.value}),ie=V(function(){return T.value==="horizontal"?"vertical":T.value}),re=V(function(){return se.value==="horizontal"?"vertical":se.value}),Q=function(){var q=J.value,ue=Wn(i,e,"icon"),ae=e.expandIcon||i.expandIcon||k.value,fe=U(Wn(i,e,"title"),ue);return S("div",{style:B.value,class:"".concat(q,"-title"),tabindex:Z.value?null:-1,ref:X,title:typeof fe=="string"?fe:null,"data-menu-id":d,"aria-expanded":le.value,"aria-haspopup":!0,"aria-controls":W,"aria-disabled":Z.value,onClick:me,onFocus:A},[fe,T.value!=="horizontal"&&ae?ae(M(M({},e),{},{isOpen:le.value})):S("i",{class:"".concat(q,"-arrow")},null)])};return function(){var H;if(l){var q;return $?(q=i.default)===null||q===void 0?void 0:q.call(i):null}var ue=J.value,ae=function(){return null};return!L.value&&T.value!=="inline"?ae=function(){return S(Nm,{mode:se.value,prefixCls:ue,visible:!e.internalPopupClose&&le.value,popupClassName:K.value,popupOffset:e.popupOffset,disabled:Z.value,onVisibleChange:x},{default:function(){return[Q()]},popup:function(){return S(Ll,{mode:re.value,isRootMenu:!1},{default:function(){return[S(aC,{id:W,ref:Y},{default:i.default})]}})}})}:ae=function(){return S(Nm,null,{default:Q})},S(Ll,{mode:ie.value},{default:function(){return[S(wi.Item,M(M({component:"li"},o),{},{role:"none",class:Ce(ue,"".concat(ue,"-").concat(T.value),o.class,(H={},te(H,"".concat(ue,"-open"),le.value),te(H,"".concat(ue,"-active"),_e.value),te(H,"".concat(ue,"-selected"),ge.value),te(H,"".concat(ue,"-disabled"),Z.value),H)),onMouseenter:ye,onMouseleave:Se,"data-submenu-id":d}),{default:function(){return S(Re,null,[ae(),!L.value&&S(cL,{id:W,open:le.value,keyPath:g.value},{default:i.default})])}})]}})}}});function iC(t,e){if(t.classList)return t.classList.contains(e);var n=t.className;return" ".concat(n," ").indexOf(" ".concat(e," "))>-1}function $m(t,e){t.classList?t.classList.add(e):iC(t,e)||(t.className="".concat(t.className," ").concat(e))}function Dm(t,e){if(t.classList)t.classList.remove(e);else if(iC(t,e)){var n=t.className;t.className=" ".concat(n," ").replace(" ".concat(e," ")," ")}}var dL=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:n,css:!0,onBeforeEnter:function(a){a.style.height="0px",a.style.opacity="0",$m(a,e)},onEnter:function(a){Ke(function(){a.style.height="".concat(a.scrollHeight,"px"),a.style.opacity="1"})},onAfterEnter:function(a){a&&(Dm(a,e),a.style.height=null,a.style.opacity=null)},onBeforeLeave:function(a){$m(a,e),a.style.height="".concat(a.offsetHeight,"px"),a.style.opacity=null},onLeave:function(a){setTimeout(function(){a.style.height="0px",a.style.opacity="0"})},onAfterLeave:function(a){a&&(Dm(a,e),a.style&&(a.style.height=null,a.style.opacity=null))}}};const vL=dL;var pL=function(){return{id:String,prefixCls:String,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},motion:Object,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:.1},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}},Lm=[];const ia=he({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:pL(),slots:["expandIcon","overflowedIndicator"],setup:function(e,n){var r=n.slots,a=n.emit,i=n.attrs,o=lt("menu",e),s=o.prefixCls,l=o.direction,u=o.getPrefixCls,c=z({}),d=ot(nL,z(void 0)),v=V(function(){return d.value!==void 0?d.value:e.inlineCollapsed}),h=z(!1);Ve(function(){h.value=!0}),yt(function(){Un(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Un(!(d.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});var f=z([]),p=z([]),m=z({});pe(c,function(){for(var Y={},ne=0,le=Object.values(c.value);ne0&&arguments[0]!==void 0?arguments[0]:b.value;no(b.value,Y)||(b.value=Y.slice())},{immediate:!0,deep:!0});var w,_=function(ne){clearTimeout(w),w=setTimeout(function(){e.activeKey===void 0&&(f.value=ne),a("update:activeKey",ne[ne.length-1])})},C=V(function(){return!!e.disabled}),E=V(function(){return l.value==="rtl"}),I=z("vertical"),T=z(!1);yt(function(){(e.mode==="inline"||e.mode==="vertical")&&v.value?(I.value="vertical",T.value=v.value):(I.value=e.mode,T.value=!1)});var N=V(function(){return I.value==="inline"}),R=function(ne){b.value=ne,a("update:openKeys",ne),a("openChange",ne)},F=z(b.value),L=z(!1);pe(b,function(){N.value&&(F.value=b.value)},{immediate:!0}),pe(N,function(){if(!L.value){L.value=!0;return}N.value?b.value=F.value:R(Lm)},{immediate:!0});var j=V(function(){var Y;return Y={},te(Y,"".concat(s.value),!0),te(Y,"".concat(s.value,"-root"),!0),te(Y,"".concat(s.value,"-").concat(I.value),!0),te(Y,"".concat(s.value,"-inline-collapsed"),T.value),te(Y,"".concat(s.value,"-rtl"),E.value),te(Y,"".concat(s.value,"-").concat(e.theme),!0),Y}),D=V(function(){return u()}),P=V(function(){return{horizontal:{name:"".concat(D.value,"-slide-up")},inline:vL,other:{name:"".concat(D.value,"-zoom-big")}}});X_(!0);var O=function Y(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=[],ge=c.value;return ne.forEach(function(_e){var me=ge[_e],ye=me.key,Se=me.childrenEventKeys;le.push.apply(le,[ye].concat(nt(Y(be(Se)))))}),le},k=function(ne){a("click",ne),y(ne)},$=function(ne,le){var ge,_e=((ge=m.value[ne])===null||ge===void 0?void 0:ge.childrenEventKeys)||[],me=b.value.filter(function(Se){return Se!==ne});if(le)me.push(ne);else if(I.value!=="inline"){var ye=O(be(_e));me=Sc(me.filter(function(Se){return!ye.includes(Se)}))}no(b,me)||R(me)},G=function(ne,le){c.value=M(M({},c.value),{},te({},ne,le))},J=function(ne){delete c.value[ne],c.value=M({},c.value)},Z=z(0),X=V(function(){return e.expandIcon||r.expandIcon?function(Y){var ne=e.expandIcon||r.expandIcon;return ne=typeof ne=="function"?ne(Y):ne,Et(ne,{class:"".concat(s.value,"-submenu-expand-icon")},!1)}:null});return UD({store:c,prefixCls:s,activeKeys:f,openKeys:b,selectedKeys:p,changeActiveKeys:_,disabled:C,rtl:E,mode:I,inlineIndent:V(function(){return e.inlineIndent}),subMenuCloseDelay:V(function(){return e.subMenuCloseDelay}),subMenuOpenDelay:V(function(){return e.subMenuOpenDelay}),builtinPlacements:V(function(){return e.builtinPlacements}),triggerSubMenuAction:V(function(){return e.triggerSubMenuAction}),getPopupContainer:V(function(){return e.getPopupContainer}),inlineCollapsed:T,antdMenuTheme:V(function(){return e.theme}),siderCollapsed:d,defaultMotions:V(function(){return h.value?P.value:null}),motion:V(function(){return h.value?e.motion:null}),overflowDisabled:z(void 0),onOpenChange:$,onItemClick:k,registerMenuInfo:G,unRegisterMenuInfo:J,selectedSubMenuKeys:g,isRootMenu:z(!0),expandIcon:X,forceSubMenuRender:V(function(){return e.forceSubMenuRender})}),function(){var Y,ne,le=kn((Y=r.default)===null||Y===void 0?void 0:Y.call(r)),ge=Z.value>=le.length-1||I.value!=="horizontal"||e.disabledOverflow,_e=I.value!=="horizontal"||e.disabledOverflow?le:le.map(function(ye,Se){return S(Ll,{key:ye.key,overflowDisabled:Se>Z.value},{default:function(){return ye}})}),me=((ne=r.overflowedIndicator)===null||ne===void 0?void 0:ne.call(r))||S(V_,null,null);return S(wi,M(M({},i),{},{onMousedown:e.onMousedown,prefixCls:"".concat(s.value,"-overflow"),component:"ul",itemComponent:Jo,class:[j.value,i.class],role:"menu",id:e.id,data:_e,renderRawItem:function(Se){return Se},renderRawRest:function(Se){var B=Se.length,x=B?le.slice(-B):null;return S(Re,null,[S(Xo,{eventKey:Hs,key:Hs,title:me,disabled:ge,internalPopupClose:B===0},{default:function(){return x}}),S(Mm,null,{default:function(){return[S(Xo,{eventKey:Hs,key:Hs,title:me,disabled:ge,internalPopupClose:B===0},{default:function(){return x}})]}})])},maxCount:I.value!=="horizontal"||e.disabledOverflow?wi.INVALIDATE:wi.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Se){Z.value=Se}}),{default:function(){return[S(uu,{to:"body"},{default:function(){return[S("div",{style:{display:"none"},"aria-hidden":!0},[S(Mm,null,{default:function(){return[_e]}})])]}})]}})}}});var hL=function(){return{title:ee.any}};const $f=he({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:hL(),slots:["title"],setup:function(e,n){var r=n.slots,a=n.attrs,i=da(),o=i.prefixCls,s=V(function(){return"".concat(o.value,"-item-group")}),l=Lv();return function(){var u,c;return l?(u=r.default)===null||u===void 0?void 0:u.call(r):S("li",M(M({},a),{},{onClick:function(v){return v.stopPropagation()},class:s.value}),[S("div",{title:typeof e.title=="string"?e.title:void 0,class:"".concat(s.value,"-title")},[Wn(r,e,"title")]),S("ul",{class:"".concat(s.value,"-list")},[(c=r.default)===null||c===void 0?void 0:c.call(r)])])}}});var gL=function(){return{prefixCls:String,dashed:Boolean}};const Df=he({compatConfig:{MODE:3},name:"AMenuDivider",props:gL(),setup:function(e){var n=lt("menu",e),r=n.prefixCls,a=V(function(){var i;return i={},te(i,"".concat(r.value,"-item-divider"),!0),te(i,"".concat(r.value,"-item-divider-dashed"),!!e.dashed),i});return function(){return S("li",{class:a.value},null)}}});ia.install=function(t){return t.component(ia.name,ia),t.component(Jo.name,Jo),t.component(Xo.name,Xo),t.component(Df.name,Df),t.component($f.name,$f),t};ia.Item=Jo;ia.Divider=Df;ia.SubMenu=Xo;ia.ItemGroup=$f;var mL={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(nk,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",d="month",v="quarter",h="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var j=["th","st","nd","rd"],D=L%100;return"["+L+(j[(D-20)%10]||j[D]||j[0])+"]"}},b=function(L,j,D){var P=String(L);return!P||P.length>=j?L:""+Array(j+1-P.length).join(D)+L},w={s:b,z:function(L){var j=-L.utcOffset(),D=Math.abs(j),P=Math.floor(D/60),O=D%60;return(j<=0?"+":"-")+b(P,2,"0")+":"+b(O,2,"0")},m:function L(j,D){if(j.date()1)return L($[0])}else{var G=j.name;C[G]=j,O=G}return!P&&O&&(_=O),O||!P&&_},T=function(L,j){if(E(L))return L.clone();var D=typeof j=="object"?j:{};return D.date=L,D.args=arguments,new R(D)},N=w;N.l=I,N.i=E,N.w=function(L,j){return T(L,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var R=function(){function L(D){this.$L=I(D.locale,null,!0),this.parse(D)}var j=L.prototype;return j.parse=function(D){this.$d=function(P){var O=P.date,k=P.utc;if(O===null)return new Date(NaN);if(N.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var $=O.match(m);if($){var G=$[2]-1||0,J=($[7]||"0").substring(0,3);return k?new Date(Date.UTC($[1],G,$[3]||1,$[4]||0,$[5]||0,$[6]||0,J)):new Date($[1],G,$[3]||1,$[4]||0,$[5]||0,$[6]||0,J)}}return new Date(O)}(D),this.$x=D.x||{},this.init()},j.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},j.$utils=function(){return N},j.isValid=function(){return this.$d.toString()!==p},j.isSame=function(D,P){var O=T(D);return this.startOf(P)<=O&&O<=this.endOf(P)},j.isAfter=function(D,P){return T(D)k?(P=j,C.value="x"):(P=D,C.value="y"),e(-P,-P)&&L.preventDefault()}var I=z({onTouchStart:b,onTouchMove:w,onTouchEnd:_,onWheel:E});function T(L){I.value.onTouchStart(L)}function N(L){I.value.onTouchMove(L)}function R(L){I.value.onTouchEnd(L)}function F(L){I.value.onWheel(L)}Ve(function(){var L,j;document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),(L=t.value)===null||L===void 0||L.addEventListener("touchstart",T,{passive:!1}),(j=t.value)===null||j===void 0||j.addEventListener("wheel",F,{passive:!1})}),st(function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",R)})}function Um(t,e){var n=z(t);function r(a){var i=typeof a=="function"?a(n.value):a;i!==n.value&&e(i,n.value),n.value=i}return[n,r]}var WL=function(){var e=z(new Map),n=function(a){return function(i){e.value.set(a,i)}};return c1(function(){e.value=new Map}),[n,e]};const HL=WL;var VL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UL=/^\w*$/;function Fv(t,e){if(ir(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Ou(t)?!0:UL.test(t)||!VL.test(t)||e!=null&&t in Object(e)}var KL="Expected a function";function Bv(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(KL);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=t.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Bv.Cache||Hr),n}Bv.Cache=Hr;var GL=500;function qL(t){var e=Bv(t,function(r){return n.size===GL&&n.clear(),r}),n=e.cache;return e}var YL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,JL=/\\(\\)?/g,XL=qL(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(YL,function(n,r,a,i){e.push(a?i.replace(JL,"$1"):r||n)}),e});const ZL=XL;function Pu(t,e){return ir(t)?t:Fv(t,e)?[t]:ZL(sC(t))}var QL=1/0;function ps(t){if(typeof t=="string"||Ou(t))return t;var e=t+"";return e=="0"&&1/t==-QL?"-0":e}function zv(t,e){e=Pu(e,t);for(var n=0,r=e.length;t!=null&&n0&&n(s)?e>1?vC(s,e-1,n,r,a):yv(a,s):r||(a[a.length]=s)}return a}function u4(t){var e=t==null?0:t.length;return e?vC(t,1):[]}function c4(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Gm=Math.max;function f4(t,e,n){return e=Gm(e===void 0?t.length-1:e,0),function(){for(var r=arguments,a=-1,i=Gm(r.length-e,0),o=Array(i);++a0){if(++e>=h4)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var b4=y4(p4);const w4=b4;function _4(t){return w4(f4(t,void 0,u4),t+"")}var C4=_4(function(t,e){return t==null?{}:s4(t,e)});const hC=C4;var qm={width:0,height:0,left:0,top:0,right:0},S4=function(){return{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:{type:Object,default:void 0},editable:{type:Object},moreIcon:ee.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:{type:Object,default:void 0},onTabClick:{type:Function},onTabScroll:{type:Function}}};const Ym=he({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:S4(),slots:["moreIcon","leftExtra","rightExtra","tabBarExtraContent"],emits:["tabClick","tabScroll"],setup:function(e,n){var r=n.attrs,a=n.slots,i=cC(),o=i.tabs,s=i.prefixCls,l=z(),u=z(),c=z(),d=z(),v=HL(),h=ke(v,2),f=h[0],p=h[1],m=V(function(){return e.tabPosition==="top"||e.tabPosition==="bottom"}),g=Um(0,function(Ze,it){m.value&&e.onTabScroll&&e.onTabScroll({direction:Ze>it?"left":"right"})}),y=ke(g,2),b=y[0],w=y[1],_=Um(0,function(Ze,it){!m.value&&e.onTabScroll&&e.onTabScroll({direction:Ze>it?"top":"bottom"})}),C=ke(_,2),E=C[0],I=C[1],T=Ht(0),N=ke(T,2),R=N[0],F=N[1],L=Ht(0),j=ke(L,2),D=j[0],P=j[1],O=Ht(null),k=ke(O,2),$=k[0],G=k[1],J=Ht(null),Z=ke(J,2),X=Z[0],Y=Z[1],ne=Ht(0),le=ke(ne,2),ge=le[0],_e=le[1],me=Ht(0),ye=ke(me,2),Se=ye[0],B=ye[1],x=RL(new Map),A=ke(x,2),W=A[0],K=A[1],U=DL(o,W),se=V(function(){return"".concat(s.value,"-nav-operations-hidden")}),ie=z(0),re=z(0);yt(function(){m.value?e.rtl?(ie.value=0,re.value=Math.max(0,R.value-$.value)):(ie.value=Math.min(0,$.value-R.value),re.value=0):(ie.value=Math.min(0,X.value-D.value),re.value=0)});var Q=function(it){return itre.value?re.value:it},H=z(),q=Ht(),ue=ke(q,2),ae=ue[0],fe=ue[1],we=function(){fe(Date.now())},xe=function(){clearTimeout(H.value)},Pe=function(it,Je){it(function(Ct){var at=Q(Ct+Je);return at})};jL(l,function(Ze,it){if(m.value){if($.value>=R.value)return!1;Pe(w,Ze)}else{if(X.value>=D.value)return!1;Pe(I,it)}return xe(),we(),!0}),pe(ae,function(){xe(),ae.value&&(H.value=setTimeout(function(){fe(0)},100))});var oe=function(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey,Je=U.value.get(it)||{width:0,height:0,left:0,right:0,top:0};if(m.value){var Ct=b.value;e.rtl?Je.rightb.value+$.value&&(Ct=Je.right+Je.width-$.value):Je.left<-b.value?Ct=-Je.left:Je.left+Je.width>-b.value+$.value&&(Ct=-(Je.left+Je.width-$.value)),I(0),w(Q(Ct))}else{var at=E.value;Je.top<-E.value?at=-Je.top:Je.top+Je.height>-E.value+X.value&&(at=-(Je.top+Je.height-X.value)),w(0),I(Q(at))}},ve=z(0),Xe=z(0);yt(function(){var Ze,it,Je,Ct,at,zt,Gt,sr=U.value;["top","bottom"].includes(e.tabPosition)?(it="width",at=$.value,zt=R.value,Gt=ge.value,Je=e.rtl?"right":"left",Ct=Math.abs(b.value)):(it="height",at=X.value,zt=R.value,Gt=Se.value,Je="top",Ct=-E.value);var rn=at;zt+Gt>at&&ztCt+rn){jt=Sn-1;break}}for(var At=0,Wt=Tr-1;Wt>=0;Wt-=1){var $n=sr.get(Rn[Wt].key)||qm;if($n[Je]0,At=b.value+$.value=e||E<0||d&&I>=i}function g(){var C=xc();if(m(C))return y(C);s=setTimeout(g,p(C))}function y(C){return s=void 0,v&&r?h(C):(r=a=void 0,o)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function w(){return s===void 0?o:y(xc())}function _(){var C=xc(),E=m(C);if(r=arguments,a=this,l=C,E){if(s===void 0)return f(l);if(d)return clearTimeout(s),s=setTimeout(g,e),h(l)}return s===void 0&&(s=setTimeout(g,e)),o}return _.cancel=b,_.flush=w,_}var D4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const L4=D4;function Zm(t){for(var e=1;e"u")return 0;if(t||Tc===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var a=e.offsetWidth;n.style.overflow="scroll";var i=e.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),Tc=a-i}return Tc}var EC=function(){return{prefixCls:String,width:ee.oneOfType([ee.string,ee.number]),height:ee.oneOfType([ee.string,ee.number]),style:{type:Object,default:void 0},class:String,placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:{type:Object,default:void 0},autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0}}},EF=function(){return M(M({},EC()),{},{forceRender:{type:Boolean,default:void 0},getContainer:ee.oneOfType([ee.string,ee.func,ee.object,ee.looseBool])})},OF=function(){return M(M({},EC()),{},{getContainer:Function,getOpenCount:Function,scrollLocker:ee.any,switchScrollingEffect:Function})};function PF(t){return Array.isArray(t)?t:[t]}var OC={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},AF=Object.keys(OC).filter(function(t){if(typeof document>"u")return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],sy=OC[AF];function ly(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on".concat(e),n)}function uy(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r):t.attachEvent&&t.detachEvent("on".concat(e),n)}function IF(t,e){var n=typeof t=="function"?t(e):t;return Array.isArray(n)?n.length===2?n:[n[0],n[1]]:[n]}var cy=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Ec=!(typeof window<"u"&&window.document&&window.document.createElement),kF=function t(e,n,r,a){if(!n||n===document||n instanceof Document)return!1;if(n===e.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(a))===Math.abs(a),o=Math.max(Math.abs(r),Math.abs(a))===Math.abs(r),s=n.scrollHeight-n.clientHeight,l=n.scrollWidth-n.clientWidth,u=document.defaultView.getComputedStyle(n),c=u.overflowY==="auto"||u.overflowY==="scroll",d=u.overflowX==="auto"||u.overflowX==="scroll",v=s&&c,h=l&&d;return i&&(!v||v&&(n.scrollTop>=s&&a<0||n.scrollTop<=0&&a>0))||o&&(!h||h&&(n.scrollLeft>=l&&r<0||n.scrollLeft<=0&&r>0))?t(e,n.parentNode,r,a):!1},MF=["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class"],ro={},NF=he({compatConfig:{MODE:3},inheritAttrs:!1,props:OF(),emits:["close","handleClick","change"],setup:function(e,n){var r=n.emit,a=n.slots,i=ct({startPos:{x:null,y:null}}),o,s=z(),l=z(),u=z(),c=z(),d=z(),v=[],h="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),f=!Ec&&ln?{passive:!1}:!1;Ve(function(){Ke(function(){var O=e.open,k=e.getContainer,$=e.showMask,G=e.autofocus,J=k==null?void 0:k();if(j(e),O&&(J&&J.parentNode===document.body&&(ro[h]=O),E(),Ke(function(){G&&p()}),$)){var Z;(Z=e.scrollLocker)===null||Z===void 0||Z.lock()}})}),pe(function(){return e.level},function(){j(e)},{flush:"post"}),pe(function(){return e.open},function(){var O=e.open,k=e.getContainer,$=e.scrollLocker,G=e.showMask,J=e.autofocus,Z=k==null?void 0:k();Z&&Z.parentNode===document.body&&(ro[h]=!!O),E(),O?(J&&p(),G&&($==null||$.lock())):$==null||$.unLock()},{flush:"post"}),vn(function(){var O,k=e.open;delete ro[h],k&&(I(!1),document.body.style.touchAction=""),(O=e.scrollLocker)===null||O===void 0||O.unLock()}),pe(function(){return e.placement},function(O){O&&(d.value=null)});var p=function(){var k,$;(k=l.value)===null||k===void 0||($=k.focus)===null||$===void 0||$.call(k)},m=function(k){k.touches.length>1||(i.startPos={x:k.touches[0].clientX,y:k.touches[0].clientY})},g=function(k){if(!(k.changedTouches.length>1)){var $=k.currentTarget,G=k.changedTouches[0].clientX-i.startPos.x,J=k.changedTouches[0].clientY-i.startPos.y;($===u.value||$===c.value||$===d.value&&kF($,k.target,G,J))&&k.cancelable&&k.preventDefault()}},y=function O(k){var $=k.target;uy($,sy,O),$.style.transition=""},b=function(k){r("close",k)},w=function(k){k.keyCode===Ae.ESC&&(k.stopPropagation(),b(k))},_=function(k){var $=e.open,G=e.afterVisibleChange;k.target===s.value&&k.propertyName.match(/transform$/)&&(l.value.style.transition="",!$&&L()&&(document.body.style.overflowX="",u.value&&(u.value.style.left="",u.value.style.width="")),G&&G(!!$))},C=V(function(){var O=e.placement,k=O==="left"||O==="right",$="translate".concat(k?"X":"Y");return{isHorizontal:k,placementName:$}}),E=function(){var k=e.open,$=e.width,G=e.height,J=C.value,Z=J.isHorizontal,X=J.placementName,Y=d.value?d.value.getBoundingClientRect()[Z?"width":"height"]:0,ne=(Z?$:G)||Y;T(k,X,ne)},I=function(k,$,G,J){var Z=e.placement,X=e.levelMove,Y=e.duration,ne=e.ease,le=e.showMask;v.forEach(function(ge){ge.style.transition="transform ".concat(Y," ").concat(ne),ly(ge,sy,y);var _e=k?G:0;if(X){var me=IF(X,{target:ge,open:k});_e=k?me[0]:me[1]||0}var ye=typeof _e=="number"?"".concat(_e,"px"):_e,Se=Z==="left"||Z==="top"?ye:"-".concat(ye);Se=le&&Z==="right"&&J?"calc(".concat(Se," + ").concat(J,"px)"):Se,ge.style.transform=_e?"".concat($,"(").concat(Se,")"):""})},T=function(k,$,G){if(!Ec){var J=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Kv(!0):0;I(k,$,G,J),N(J)}r("change",k)},N=function(k){var $=e.getContainer,G=e.showMask,J=e.open,Z=$==null?void 0:$();if(Z&&Z.parentNode===document.body&&G){var X=["touchstart"],Y=[document.body,u.value,c.value,d.value];J&&document.body.style.overflow!=="hidden"?(k&&R(k),document.body.style.touchAction="none",Y.forEach(function(ne,le){ne&&ly(ne,X[le]||"touchmove",le?g:m,f)})):L()&&(document.body.style.touchAction="",k&&F(k),Y.forEach(function(ne,le){ne&&uy(ne,X[le]||"touchmove",le?g:m,f)}))}},R=function(k){var $=e.placement,G=e.duration,J=e.ease,Z="width ".concat(G," ").concat(J),X="transform ".concat(G," ").concat(J);switch(l.value.style.transition="none",$){case"right":l.value.style.transform="translateX(-".concat(k,"px)");break;case"top":case"bottom":l.value.style.width="calc(100% - ".concat(k,"px)"),l.value.style.transform="translateZ(0)";break}clearTimeout(o),o=setTimeout(function(){l.value&&(l.value.style.transition="".concat(X,",").concat(Z),l.value.style.width="",l.value.style.transform="")})},F=function(k){var $=e.placement,G=e.duration,J=e.ease;l.value.style.transition="none";var Z,X="width ".concat(G," ").concat(J),Y="transform ".concat(G," ").concat(J);switch($){case"left":{l.value.style.width="100%",X="width 0s ".concat(J," ").concat(G);break}case"right":{l.value.style.transform="translateX(".concat(k,"px)"),l.value.style.width="100%",X="width 0s ".concat(J," ").concat(G),u.value&&(u.value.style.left="-".concat(k,"px"),u.value.style.width="calc(100% + ".concat(k,"px)"));break}case"top":case"bottom":{l.value.style.width="calc(100% + ".concat(k,"px)"),l.value.style.height="100%",l.value.style.transform="translateZ(0)",Z="height 0s ".concat(J," ").concat(G);break}}clearTimeout(o),o=setTimeout(function(){l.value&&(l.value.style.transition="".concat(Y,",").concat(Z?"".concat(Z,","):"").concat(X),l.value.style.transform="",l.value.style.width="",l.value.style.height="")})},L=function(){return!Object.keys(ro).some(function(k){return ro[k]})},j=function(k){var $=k.level,G=k.getContainer;if(!Ec){var J=G==null?void 0:G(),Z=J?J.parentNode:null;if(v=[],$==="all"){var X=Z?Array.prototype.slice.call(Z.children):[];X.forEach(function(Y){Y.nodeName!=="SCRIPT"&&Y.nodeName!=="STYLE"&&Y.nodeName!=="LINK"&&Y!==J&&v.push(Y)})}else $&&PF($).forEach(function(Y){document.querySelectorAll(Y).forEach(function(ne){v.push(ne)})})}},D=function(k){r("handleClick",k)},P=z(!1);return pe(l,function(){Ke(function(){P.value=!0})}),function(){var O,k,$,G=e.width,J=e.height,Z=e.open,X=e.prefixCls,Y=e.placement;e.level,e.levelMove,e.ease,e.duration,e.getContainer,e.onChange,e.afterVisibleChange;var ne=e.showMask,le=e.maskClosable,ge=e.maskStyle,_e=e.keyboard;e.getOpenCount,e.scrollLocker;var me=e.contentWrapperStyle,ye=e.style,Se=e.class,B=bt(e,MF),x=Z&&P.value,A=Ce(X,(O={},te(O,"".concat(X,"-").concat(Y),!0),te(O,"".concat(X,"-open"),x),te(O,Se,!!Se),te(O,"no-mask",!ne),O)),W=C.value.placementName,K=Y==="left"||Y==="top"?"-100%":"100%",U=x?"":"".concat(W,"(").concat(K,")");return S("div",M(M({},Lt(B,["switchScrollingEffect","autofocus"])),{},{tabindex:-1,class:A,style:ye,ref:l,onKeydown:x&&_e?w:void 0,onTransitionend:_}),[ne&&S("div",{class:"".concat(X,"-mask"),onClick:le?b:void 0,style:ge,ref:u},null),S("div",{class:"".concat(X,"-content-wrapper"),style:M({transform:U,msTransform:U,width:cy(G)?"".concat(G,"px"):G,height:cy(J)?"".concat(J,"px"):J},me),ref:s},[S("div",{class:"".concat(X,"-content"),ref:d},[(k=a.default)===null||k===void 0?void 0:k.call(a)]),a.handler?S("div",{onClick:D,ref:c},[($=a.handler)===null||$===void 0?void 0:$.call(a)]):null])])}}});const fy=NF;function Ii(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.element,r=n===void 0?document.body:n,a={},i=Object.keys(t);return i.forEach(function(o){a[o]=r.style[o]}),i.forEach(function(o){r.style[o]=t[o]}),a}function RF(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Oc={};const dy=function(t){if(!(!RF()&&!t)){var e="ant-scrolling-effect",n=new RegExp("".concat(e),"g"),r=document.body.className;if(t){if(!n.test(r))return;Ii(Oc),Oc={},document.body.className=r.replace(n,"").trim();return}var a=Kv();if(a&&(Oc=Ii({position:"relative",width:"calc(100% - ".concat(a,"px)")}),!n.test(r))){var i="".concat(r," ").concat(e);document.body.className=i.trim()}}};var Bn=[],PC="ant-scrolling-effect",Pc=new RegExp("".concat(PC),"g"),$F=0,Ac=new Map,DF=W_(function t(e){var n=this;H_(this,t),te(this,"getContainer",function(){var r;return(r=n.options)===null||r===void 0?void 0:r.container}),te(this,"reLock",function(r){var a=Bn.find(function(i){var o=i.target;return o===n.lockTarget});a&&n.unLock(),n.options=r,a&&(a.options=r,n.lock())}),te(this,"lock",function(){var r;if(!Bn.some(function(l){var u=l.target;return u===n.lockTarget})){if(Bn.some(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=n.options)===null||u===void 0?void 0:u.container)})){Bn=[].concat(nt(Bn),[{target:n.lockTarget,options:n.options}]);return}var a=0,i=((r=n.options)===null||r===void 0?void 0:r.container)||document.body;(i===document.body&&window.innerWidth-document.documentElement.clientWidth>0||i.scrollHeight>i.clientHeight)&&(a=Kv());var o=i.className;if(Bn.filter(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=n.options)===null||u===void 0?void 0:u.container)}).length===0&&Ac.set(i,Ii({width:a!==0?"calc(100% - ".concat(a,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:i})),!Pc.test(o)){var s="".concat(o," ").concat(PC);i.className=s.trim()}Bn=[].concat(nt(Bn),[{target:n.lockTarget,options:n.options}])}}),te(this,"unLock",function(){var r,a=Bn.find(function(s){var l=s.target;return l===n.lockTarget});if(Bn=Bn.filter(function(s){var l=s.target;return l!==n.lockTarget}),!(!a||Bn.some(function(s){var l,u=s.options;return(u==null?void 0:u.container)===((l=a.options)===null||l===void 0?void 0:l.container)}))){var i=((r=n.options)===null||r===void 0?void 0:r.container)||document.body,o=i.className;Pc.test(o)&&(Ii(Ac.get(i),{element:i}),Ac.delete(i),i.className=i.className.replace(Pc,"").trim())}}),this.lockTarget=$F++,this.options=e}),Or=0,ho=fs(),Us={},ti=function(e){if(!ho)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(Qe(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body};const AC=he({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:ee.any,visible:{type:Boolean,default:void 0}},setup:function(e,n){var r=n.slots,a=z(),i=z(),o=z(),s=new DF({container:ti(e.getContainer)}),l=function(){var p,m;(p=a.value)===null||p===void 0||(m=p.parentNode)===null||m===void 0||m.removeChild(a.value)},u=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(p||a.value&&!a.value.parentNode){var m=ti(e.getContainer);return m?(m.appendChild(a.value),!0):!1}return!0},c=function(){return ho?(a.value||(a.value=document.createElement("div"),u(!0)),d(),a.value):null},d=function(){var p=e.wrapperClassName;a.value&&p&&p!==a.value.className&&(a.value.className=p)};ca(function(){d(),u()});var v=function(){Or===1&&!Object.keys(Us).length?(dy(),Us=Ii({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):Or||(Ii(Us),Us={},dy(!0))},h=Pt();return Ve(function(){var f=!1;pe([function(){return e.visible},function(){return e.getContainer}],function(p,m){var g=ke(p,2),y=g[0],b=g[1],w=ke(m,2),_=w[0],C=w[1];if(ho&&ti(e.getContainer)===document.body&&(y&&!_?Or+=1:f&&(Or-=1)),f){var E=typeof b=="function"&&typeof C=="function";(E?b.toString()!==C.toString():b!==C)&&l(),y&&y!==_&&ho&&ti(b)!==s.getContainer()&&s.reLock({container:ti(b)})}f=!0},{immediate:!0,flush:"post"}),Ke(function(){u()||(o.value=Ue(function(){h.update()}))})}),st(function(){var f=e.visible,p=e.getContainer;ho&&ti(p)===document.body&&(Or=f&&Or?Or-1:Or),l(),Ue.cancel(o.value)}),function(){var f=e.forceRender,p=e.visible,m=null,g={getOpenCount:function(){return Or},getContainer:c,switchScrollingEffect:v,scrollLocker:s};return(f||p||i.value)&&(m=S(Af,{getContainer:c,ref:i},{default:function(){var b;return(b=r.default)===null||b===void 0?void 0:b.call(r,g)}})),m}}});var LF=["afterVisibleChange","getContainer","wrapperClassName","forceRender"],FF=["visible","afterClose"],BF=he({compatConfig:{MODE:3},inheritAttrs:!1,props:pn(EF(),{prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",afterVisibleChange:function(){},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],slots:["handler"],setup:function(e,n){var r=n.emit,a=n.slots,i=z(null),o=function(u){r("handleClick",u)},s=function(u){r("close",u)};return function(){e.afterVisibleChange;var l=e.getContainer,u=e.wrapperClassName,c=e.forceRender,d=bt(e,LF),v=null;if(!l)return S("div",{class:u,ref:i},[S(fy,M(M({},d),{},{open:e.open,getContainer:function(){return i.value},onClose:s,onHandleClick:o}),a)]);var h=!!a.handler||c;return(h||e.open||i.value)&&(v=S(AC,{visible:e.open,forceRender:h,getContainer:l,wrapperClassName:u},{default:function(p){var m=p.visible,g=p.afterClose,y=bt(p,FF);return S(fy,M(M(M({ref:i},d),y),{},{open:m!==void 0?m:e.open,afterVisibleChange:g!==void 0?g:e.afterVisibleChange,onClose:s,onHandleClick:o}),a)}})),v}}});const zF=BF;var jF=["width","height","visible","placement","mask","wrapClassName","class"],WF=Ha("top","right","bottom","left");Ha("default","large");var vy={distance:180},HF=function(){return{autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:ee.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:ee.any,maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},wrapStyle:{type:Object,default:void 0},style:{type:Object,default:void 0},class:ee.any,wrapClassName:String,size:{type:String},drawerStyle:{type:Object,default:void 0},headerStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},contentWrapperStyle:{type:Object,default:void 0},title:ee.any,visible:{type:Boolean,default:void 0},width:ee.oneOfType([ee.string,ee.number]),height:ee.oneOfType([ee.string,ee.number]),zIndex:Number,prefixCls:String,push:ee.oneOfType([ee.looseBool,{type:Object}]),placement:ee.oneOf(WF),keyboard:{type:Boolean,default:void 0},extra:ee.any,footer:ee.any,footerStyle:{type:Object,default:void 0},level:ee.any,levelMove:{type:[Number,Array,Function]},handle:ee.any,afterVisibleChange:Function,onAfterVisibleChange:Function,"onUpdate:visible":Function,onClose:Function}},VF=he({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:pn(HF(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:vy}),slots:["closeIcon","title","extra","footer","handle"],setup:function(e,n){var r=n.emit,a=n.slots,i=n.attrs,o=z(!1),s=z(!1),l=z(null),u=ot("parentDrawerOpts",null),c=lt("drawer",e),d=c.prefixCls;Un(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Un(e.wrapStyle===void 0,"Drawer","`wrapStyle` prop is deprecated, please use `style` instead"),Un(e.wrapClassName===void 0,"Drawer","`wrapClassName` prop is deprecated, please use `class` instead");var v=function(){o.value=!0},h=function(){o.value=!1,Ke(function(){f()})};wt("parentDrawerOpts",{setPush:v,setPull:h}),Ve(function(){var N=e.visible;N&&u&&u.setPush()}),vn(function(){u&&u.setPull()}),pe(function(){return e.visible},function(N){u&&(N?u.setPush():u.setPull())},{flush:"post"});var f=function(){var R,F;(R=l.value)===null||R===void 0||(F=R.domFocus)===null||F===void 0||F.call(R)},p=function(R){r("update:visible",!1),r("close",R)},m=function(R){var F;(F=e.afterVisibleChange)===null||F===void 0||F.call(e,R),r("afterVisibleChange",R)},g=V(function(){return e.destroyOnClose&&!e.visible}),y=function(){var R=g.value;R&&(e.visible||(s.value=!0))},b=V(function(){var N=e.push,R=e.placement,F;return typeof N=="boolean"?F=N?vy.distance:0:F=N.distance,F=parseFloat(String(F||0)),R==="left"||R==="right"?"translateX(".concat(R==="left"?F:-F,"px)"):R==="top"||R==="bottom"?"translateY(".concat(R==="top"?F:-F,"px)"):null}),w=V(function(){var N=e.visible,R=e.mask,F=e.placement,L=e.size,j=L===void 0?"default":L,D=e.width,P=e.height;if(!N&&!R)return{};var O={};if(F==="left"||F==="right"){var k=j==="large"?736:378;O.width=typeof D>"u"?k:D,O.width=typeof O.width=="string"?O.width:"".concat(O.width,"px")}else{var $=j==="large"?736:378;O.height=typeof P>"u"?$:P,O.height=typeof O.height=="string"?O.height:"".concat(O.height,"px")}return O}),_=V(function(){var N=e.zIndex,R=e.wrapStyle,F=e.mask,L=e.style,j=F?{}:w.value;return M(M(M({zIndex:N,transform:o.value?b.value:void 0},j),R),L)}),C=function(R){var F=e.closable,L=e.headerStyle,j=Wn(a,e,"extra"),D=Wn(a,e,"title");return!D&&!F?null:S("div",{class:Ce("".concat(R,"-header"),te({},"".concat(R,"-header-close-only"),F&&!D&&!j)),style:L},[S("div",{class:"".concat(R,"-header-title")},[E(R),D&&S("div",{class:"".concat(R,"-title")},[D])]),j&&S("div",{class:"".concat(R,"-extra")},[j])])},E=function(R){var F,L=e.closable,j=a.closeIcon?(F=a.closeIcon)===null||F===void 0?void 0:F.call(a):e.closeIcon;return L&&S("button",{key:"closer",onClick:p,"aria-label":"Close",class:"".concat(R,"-close")},[j===void 0?S(zr,null,null):j])},I=function(R){var F;if(s.value&&!e.visible)return null;s.value=!1;var L=e.bodyStyle,j=e.drawerStyle,D={},P=g.value;return P&&(D.opacity=0,D.transition="opacity .3s"),S("div",{class:"".concat(R,"-wrapper-body"),style:M(M({},D),j),onTransitionend:y},[C(R),S("div",{key:"body",class:"".concat(R,"-body"),style:L},[(F=a.default)===null||F===void 0?void 0:F.call(a)]),T(R)])},T=function(R){var F=Wn(a,e,"footer");if(!F)return null;var L="".concat(R,"-footer");return S("div",{class:L,style:e.footerStyle},[F])};return function(){var N;e.width,e.height;var R=e.visible,F=e.placement,L=e.mask,j=e.wrapClassName,D=e.class,P=bt(e,jF),O=L?w.value:{},k=L?"":"no-mask",$=M(M(M(M({},i),Lt(P,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","wrapStyle","onAfterVisibleChange","onClose","onUpdate:visible"])),O),{},{onClose:p,afterVisibleChange:m,handler:!1,prefixCls:d.value,open:R,showMask:L,placement:F,class:Ce((N={},te(N,D,D),te(N,j,!!j),te(N,k,!!k),N)),style:_.value,ref:l});return S(zF,$,{handler:e.handle?function(){return e.handle}:a.handle,default:function(){return I(d.value)}})}}});const UF=Bi(VF);var IC=function(){return{id:String,prefixCls:String,inputPrefixCls:String,defaultValue:ee.oneOfType([ee.string,ee.number]),value:{type:[String,Number,Symbol],default:void 0},placeholder:{type:[String,Number]},autocomplete:String,type:{type:String,default:"text"},name:String,size:{type:String},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},addonBefore:ee.any,addonAfter:ee.any,prefix:ee.any,suffix:ee.any,autofocus:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,valueModifiers:Object,hidden:Boolean}};const Gv=IC;var kC=function(){return M(M({},Lt(IC(),["prefix","addonBefore","addonAfter","suffix"])),{},{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object})};function MC(t,e,n,r,a){var i;return Ce(t,(i={},te(i,"".concat(t,"-sm"),n==="small"),te(i,"".concat(t,"-lg"),n==="large"),te(i,"".concat(t,"-disabled"),r),te(i,"".concat(t,"-rtl"),a==="rtl"),te(i,"".concat(t,"-borderless"),!e),i))}var To=function(e){return e!=null&&(Array.isArray(e)?Fi(e).length:!0)};function KF(t){return To(t.prefix)||To(t.suffix)||To(t.allowClear)}function Ic(t){return To(t.addonBefore)||To(t.addonAfter)}var GF=["text","input"];const NC=he({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:ee.oneOf(Ha("text","input")),value:ee.any,defaultValue:ee.any,allowClear:{type:Boolean,default:void 0},element:ee.any,handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:ee.any,prefix:ee.any,addonBefore:ee.any,addonAfter:ee.any,readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean},setup:function(e,n){var r=n.slots,a=n.attrs,i=z(),o=function(h){var f;if((f=i.value)!==null&&f!==void 0&&f.contains(h.target)){var p=e.triggerFocus;p==null||p()}},s=function(h){var f,p=e.allowClear,m=e.value,g=e.disabled,y=e.readonly,b=e.handleReset,w=e.suffix,_=w===void 0?r.suffix:w;if(!p)return null;var C=!g&&!y&&m,E="".concat(h,"-clear-icon");return S(hu,{onClick:b,onMousedown:function(T){return T.preventDefault()},class:Ce((f={},te(f,"".concat(E,"-hidden"),!C),te(f,"".concat(E,"-has-suffix"),!!_),f),E),role:"button"},null)},l=function(h){var f,p=e.suffix,m=p===void 0?(f=r.suffix)===null||f===void 0?void 0:f.call(r):p,g=e.allowClear;return m||g?S("span",{class:"".concat(h,"-suffix")},[s(h),m]):null},u=function(h,f){var p,m,g,y=e.focused,b=e.value,w=e.prefix,_=w===void 0?(p=r.prefix)===null||p===void 0?void 0:p.call(r):w,C=e.size,E=e.suffix,I=E===void 0?(m=r.suffix)===null||m===void 0?void 0:m.call(r):E,T=e.disabled,N=e.allowClear,R=e.direction,F=e.readonly,L=e.bordered,j=e.hidden,D=e.addonAfter,P=D===void 0?r.addonAfter:D,O=e.addonBefore,k=O===void 0?r.addonBefore:O,$=l(h);if(!KF({prefix:_,suffix:I,allowClear:N}))return Et(f,{value:b});var G=_?S("span",{class:"".concat(h,"-prefix")},[_]):null,J=Ce("".concat(h,"-affix-wrapper"),(g={},te(g,"".concat(h,"-affix-wrapper-focused"),y),te(g,"".concat(h,"-affix-wrapper-disabled"),T),te(g,"".concat(h,"-affix-wrapper-sm"),C==="small"),te(g,"".concat(h,"-affix-wrapper-lg"),C==="large"),te(g,"".concat(h,"-affix-wrapper-input-with-clear-btn"),I&&N&&b),te(g,"".concat(h,"-affix-wrapper-rtl"),R==="rtl"),te(g,"".concat(h,"-affix-wrapper-readonly"),F),te(g,"".concat(h,"-affix-wrapper-borderless"),!L),te(g,"".concat(a.class),!Ic({addonAfter:P,addonBefore:k})&&a.class),g));return S("span",{ref:i,class:J,style:a.style,onMouseup:o,hidden:j},[G,Et(f,{style:null,value:b,class:MC(h,L,C,T)}),$])},c=function(h,f){var p,m,g,y=e.addonBefore,b=y===void 0?(p=r.addonBefore)===null||p===void 0?void 0:p.call(r):y,w=e.addonAfter,_=w===void 0?(m=r.addonAfter)===null||m===void 0?void 0:m.call(r):w,C=e.size,E=e.direction,I=e.hidden,T=e.disabled;if(!Ic({addonBefore:b,addonAfter:_}))return f;var N="".concat(h,"-group"),R="".concat(N,"-addon"),F=Ce(R,te({},"".concat(R,"-disabled"),T)),L=b?S("span",{class:F},[b]):null,j=_?S("span",{class:F},[_]):null,D=Ce("".concat(h,"-wrapper"),N,te({},"".concat(N,"-rtl"),E==="rtl")),P=Ce("".concat(h,"-group-wrapper"),(g={},te(g,"".concat(h,"-group-wrapper-sm"),C==="small"),te(g,"".concat(h,"-group-wrapper-lg"),C==="large"),te(g,"".concat(h,"-group-wrapper-rtl"),E==="rtl"),g),a.class);return S("span",{class:P,style:a.style,hidden:I},[S("span",{class:D},[L,Et(f,{style:null}),j])])},d=function(h,f){var p,m=e.value,g=e.allowClear,y=e.direction,b=e.bordered,w=e.hidden,_=e.addonAfter,C=_===void 0?r.addonAfter:_,E=e.addonBefore,I=E===void 0?r.addonBefore:E;if(!g)return Et(f,{value:m});var T=Ce("".concat(h,"-affix-wrapper"),"".concat(h,"-affix-wrapper-textarea-with-clear-btn"),(p={},te(p,"".concat(h,"-affix-wrapper-rtl"),y==="rtl"),te(p,"".concat(h,"-affix-wrapper-borderless"),!b),te(p,"".concat(a.class),!Ic({addonAfter:C,addonBefore:I})&&a.class),p));return S("span",{class:T,style:a.style,hidden:w},[Et(f,{style:null,value:m}),s(h)])};return function(){var v,h=e.prefixCls,f=e.inputType,p=e.element,m=p===void 0?(v=r.element)===null||v===void 0?void 0:v.call(r):p;return f===GF[0]?d(h,m):c(h,u(h,m))}}});function Ff(t){return typeof t>"u"||t===null?"":String(t)}function Eo(t,e,n,r){if(n){var a=e;if(e.type==="click"){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0});var i=t.cloneNode(!0);a.target=i,a.currentTarget=i,i.value="",n(a);return}if(r!==void 0){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0}),a.target=t,a.currentTarget=t,t.value=r,n(a);return}n(a)}}function RC(t,e){if(t){t.focus(e);var n=e||{},r=n.cursor;if(r){var a=t.value.length;switch(r){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(a,a);break;default:t.setSelectionRange(0,a)}}}}const kt=he({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:Gv(),setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=n.emit,s=z(),l=z(),u,c=Nv(),d=lt("input",e),v=d.direction,h=d.prefixCls,f=d.size,p=d.autocomplete,m=z(e.value===void 0?e.defaultValue:e.value),g=z(!1);pe(function(){return e.value},function(){m.value=e.value}),pe(function(){return e.disabled},function(){e.value!==void 0&&(m.value=e.value),e.disabled&&(g.value=!1)});var y=function(){u=setTimeout(function(){var k;((k=s.value)===null||k===void 0?void 0:k.getAttribute("type"))==="password"&&s.value.hasAttribute("value")&&s.value.removeAttribute("value")})},b=function(k){RC(s.value,k)},w=function(){var k;(k=s.value)===null||k===void 0||k.blur()},_=function(k,$,G){var J;(J=s.value)===null||J===void 0||J.setSelectionRange(k,$,G)},C=function(){var k;(k=s.value)===null||k===void 0||k.select()};i({focus:b,blur:w,input:s,stateValue:m,setSelectionRange:_,select:C});var E=function(k){var $=e.onFocus;g.value=!0,$==null||$(k),Ke(function(){y()})},I=function(k){var $=e.onBlur;g.value=!1,$==null||$(k),c.onFieldBlur(),Ke(function(){y()})},T=function(k){o("update:value",k.target.value),o("change",k),o("input",k),c.onFieldChange()},N=Pt(),R=function(k,$){m.value!==k&&(e.value===void 0?m.value=k:Ke(function(){s.value.value!==m.value&&N.update()}),Ke(function(){$&&$()}))},F=function(k){Eo(s.value,k,T),R("",function(){b()})},L=function(k){var $=k.target,G=$.value,J=$.composing;if(!((k.isComposing||J)&&e.lazy||m.value===G)){var Z=k.target.value;Eo(s.value,k,T),R(Z,function(){y()})}},j=function(k){k.keyCode===13&&o("pressEnter",k),o("keydown",k)};Ve(function(){y()}),st(function(){clearTimeout(u)});var D=function(){var k,$=e.addonBefore,G=$===void 0?r.addonBefore:$,J=e.addonAfter,Z=J===void 0?r.addonAfter:J,X=e.disabled,Y=e.bordered,ne=Y===void 0?!0:Y,le=e.valueModifiers,ge=le===void 0?{}:le,_e=e.htmlSize,me=Lt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers"]),ye=M(M(M({},me),a),{},{autocomplete:p.value,onChange:L,onInput:L,onFocus:E,onBlur:I,onKeydown:j,class:Ce(MC(h.value,ne,f.value,X,v.value),te({},a.class,a.class&&!G&&!Z)),ref:s,key:"ant-input",size:_e,id:(k=me.id)!==null&&k!==void 0?k:c.id.value});ge.lazy&&delete ye.onInput,ye.autofocus||delete ye.autofocus;var Se=S("input",Lt(ye,["size"]),null);return dn(Se,[[vs]])},P=function(){var k,$=m.value,G=e.maxlength,J=e.suffix,Z=J===void 0?(k=r.suffix)===null||k===void 0?void 0:k.call(r):J,X=e.showCount,Y=Number(G)>0;if(Z||X){var ne=nt(Ff($)).length,le=null;return Qe(X)==="object"?le=X.formatter({count:ne,maxlength:G}):le="".concat(ne).concat(Y?" / ".concat(G):""),S(Re,null,[!!X&&S("span",{class:Ce("".concat(h.value,"-show-count-suffix"),te({},"".concat(h.value,"-show-count-has-suffix"),!!Z))},[le]),Z])}return null};return function(){var O=M(M(M({},a),e),{},{prefixCls:h.value,inputType:"input",value:Ff(m.value),handleReset:F,focused:g.value&&!e.disabled});return S(NC,M(M({},Lt(O,["element","valueModifiers","suffix","showCount"])),{},{ref:l}),M(M({},r),{},{element:D,suffix:P}))}}}),qF=he({compatConfig:{MODE:3},name:"AInputGroup",props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0},onMouseenter:{type:Function},onMouseleave:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup:function(e,n){var r=n.slots,a=lt("input-group",e),i=a.prefixCls,o=a.direction,s=V(function(){var l,u=i.value;return l={},te(l,"".concat(u),!0),te(l,"".concat(u,"-lg"),e.size==="large"),te(l,"".concat(u,"-sm"),e.size==="small"),te(l,"".concat(u,"-compact"),e.compact),te(l,"".concat(u,"-rtl"),o.value==="rtl"),l});return function(){var l;return S("span",{class:s.value,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onFocus:e.onFocus,onBlur:e.onBlur},[(l=r.default)===null||l===void 0?void 0:l.call(r)])}}});var kc=/iPhone/i,py=/iPod/i,hy=/iPad/i,Mc=/\bAndroid(?:.+)Mobile\b/i,gy=/Android/i,ni=/\bAndroid(?:.+)SD4930UR\b/i,Ks=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Pr=/Windows Phone/i,my=/\bWindows(?:.+)ARM\b/i,yy=/BlackBerry/i,by=/BB10/i,wy=/Opera Mini/i,_y=/\b(CriOS|Chrome)(?:.+)Mobile/i,Cy=/Mobile(?:.+)Firefox\b/i;function je(t,e){return t.test(e)}function Sy(t){var e=t||(typeof navigator<"u"?navigator.userAgent:""),n=e.split("[FBAN");if(typeof n[1]<"u"){var r=n,a=ke(r,1);e=a[0]}if(n=e.split("Twitter"),typeof n[1]<"u"){var i=n,o=ke(i,1);e=o[0]}var s={apple:{phone:je(kc,e)&&!je(Pr,e),ipod:je(py,e),tablet:!je(kc,e)&&je(hy,e)&&!je(Pr,e),device:(je(kc,e)||je(py,e)||je(hy,e))&&!je(Pr,e)},amazon:{phone:je(ni,e),tablet:!je(ni,e)&&je(Ks,e),device:je(ni,e)||je(Ks,e)},android:{phone:!je(Pr,e)&&je(ni,e)||!je(Pr,e)&&je(Mc,e),tablet:!je(Pr,e)&&!je(ni,e)&&!je(Mc,e)&&(je(Ks,e)||je(gy,e)),device:!je(Pr,e)&&(je(ni,e)||je(Ks,e)||je(Mc,e)||je(gy,e))||je(/\bokhttp\b/i,e)},windows:{phone:je(Pr,e),tablet:je(my,e),device:je(Pr,e)||je(my,e)},other:{blackberry:je(yy,e),blackberry10:je(by,e),opera:je(wy,e),firefox:je(Cy,e),chrome:je(_y,e),device:je(yy,e)||je(by,e)||je(wy,e)||je(Cy,e)||je(_y,e)},any:null,phone:null,tablet:null};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}var YF=M(M({},Sy()),{},{isMobile:Sy});const JF=YF;var XF=["disabled","loading","addonAfter","suffix"];const ZF=he({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:M(M({},Gv()),{},{inputPrefixCls:String,enterButton:ee.any,onSearch:{type:Function}}),setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=n.emit,s=z(),l=function(){var w;(w=s.value)===null||w===void 0||w.focus()},u=function(){var w;(w=s.value)===null||w===void 0||w.blur()};i({focus:l,blur:u});var c=function(w){o("update:value",w.target.value),w&&w.target&&w.type==="click"&&o("search",w.target.value,w),o("change",w)},d=function(w){var _;document.activeElement===((_=s.value)===null||_===void 0?void 0:_.input)&&w.preventDefault()},v=function(w){var _;o("search",(_=s.value)===null||_===void 0?void 0:_.stateValue,w),JF.tablet||s.value.focus()},h=lt("input-search",e),f=h.prefixCls,p=h.getPrefixCls,m=h.direction,g=h.size,y=V(function(){return p("input",e.inputPrefixCls)});return function(){var b,w,_,C,E,I=e.disabled,T=e.loading,N=e.addonAfter,R=N===void 0?(b=r.addonAfter)===null||b===void 0?void 0:b.call(r):N,F=e.suffix,L=F===void 0?(w=r.suffix)===null||w===void 0?void 0:w.call(r):F,j=bt(e,XF),D=e.enterButton,P=D===void 0?(_=(C=r.enterButton)===null||C===void 0?void 0:C.call(r))!==null&&_!==void 0?_:!1:D;P=P||P==="";var O=typeof P=="boolean"?S(F_,null,null):null,k="".concat(f.value,"-button"),$=Array.isArray(P)?P[0]:P,G,J=$.type&&tA($.type)&&$.type.__ANT_BUTTON;if(J||$.tagName==="button")G=Et($,M({onMousedown:d,onClick:v,key:"enterButton"},J?{class:k,size:g.value}:{}),!1);else{var Z=O&&!P;G=S(Xt,{class:k,type:P?"primary":void 0,size:g.value,disabled:I,key:"enterButton",onMousedown:d,onClick:v,loading:T,icon:Z?O:null},{default:function(){return[Z?null:O||P]}})}R&&(G=[G,R]);var X=Ce(f.value,(E={},te(E,"".concat(f.value,"-rtl"),m.value==="rtl"),te(E,"".concat(f.value,"-").concat(g.value),!!g.value),te(E,"".concat(f.value,"-with-button"),!!P),E),a.class);return S(kt,M(M(M({ref:s},Lt(j,["onUpdate:value","onSearch","enterButton"])),a),{},{onPressEnter:v,size:g.value,prefixCls:y.value,addonAfter:G,suffix:L,onChange:c,class:X,disabled:I}),r)}}});var QF=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -189,11 +189,11 @@ Note that this is not an issue if running this frontend on a browser instead of `;async function u7(){return ce({__tauriModule:"Os",message:{cmd:"platform"}})}async function c7(){return ce({__tauriModule:"Os",message:{cmd:"version"}})}async function f7(){return ce({__tauriModule:"Os",message:{cmd:"osType"}})}async function d7(){return ce({__tauriModule:"Os",message:{cmd:"arch"}})}async function v7(){return ce({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function p7(){return ce({__tauriModule:"Os",message:{cmd:"locale"}})}var ns={};en(ns,{BaseDirectory:()=>Vl,Dir:()=>Vl,copyFile:()=>_7,createDir:()=>b7,exists:()=>x7,readBinaryFile:()=>g7,readDir:()=>y7,readTextFile:()=>h7,removeDir:()=>w7,removeFile:()=>C7,renameFile:()=>S7,writeBinaryFile:()=>m7,writeFile:()=>Rb,writeTextFile:()=>Rb});var Vl=(t=>(t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Desktop=6]="Desktop",t[t.Document=7]="Document",t[t.Download=8]="Download",t[t.Executable=9]="Executable",t[t.Font=10]="Font",t[t.Home=11]="Home",t[t.Picture=12]="Picture",t[t.Public=13]="Public",t[t.Runtime=14]="Runtime",t[t.Template=15]="Template",t[t.Video=16]="Video",t[t.Resource=17]="Resource",t[t.App=18]="App",t[t.Log=19]="Log",t[t.Temp=20]="Temp",t[t.AppConfig=21]="AppConfig",t[t.AppData=22]="AppData",t[t.AppLocalData=23]="AppLocalData",t[t.AppCache=24]="AppCache",t[t.AppLog=25]="AppLog",t))(Vl||{});async function h7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})}async function g7(t,e={}){let n=await ce({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}});return Uint8Array.from(n)}async function Rb(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:""},a=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),typeof e=="string"?r.contents=e??"":a=e,ce({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(new TextEncoder().encode(r.contents)),options:a}})}async function m7(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:[]},a=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),e&&"dir"in e?a=e:typeof t=="string"&&(r.contents=e??[]),ce({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(r.contents instanceof ArrayBuffer?new Uint8Array(r.contents):r.contents),options:a}})}async function y7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})}async function b7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})}async function w7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})}async function _7(t,e,n={}){return ce({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})}async function C7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})}async function S7(t,e,n={}){return ce({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})}async function x7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"exists",path:t,options:e}})}var T7={};en(T7,{BaseDirectory:()=>Vl,appCacheDir:()=>A7,appConfigDir:()=>ux,appDataDir:()=>O7,appDir:()=>E7,appLocalDataDir:()=>P7,appLogDir:()=>cx,audioDir:()=>I7,basename:()=>n9,cacheDir:()=>k7,configDir:()=>M7,dataDir:()=>N7,delimiter:()=>J7,desktopDir:()=>R7,dirname:()=>e9,documentDir:()=>$7,downloadDir:()=>D7,executableDir:()=>L7,extname:()=>t9,fontDir:()=>F7,homeDir:()=>B7,isAbsolute:()=>r9,join:()=>Q7,localDataDir:()=>z7,logDir:()=>q7,normalize:()=>Z7,pictureDir:()=>j7,publicDir:()=>W7,resolve:()=>X7,resolveResource:()=>V7,resourceDir:()=>H7,runtimeDir:()=>U7,sep:()=>Y7,templateDir:()=>K7,videoDir:()=>G7});async function E7(){return ux()}async function ux(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:21}})}async function O7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:22}})}async function P7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:23}})}async function A7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:24}})}async function I7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:1}})}async function k7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:2}})}async function M7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:3}})}async function N7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:4}})}async function R7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:6}})}async function $7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:7}})}async function D7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:8}})}async function L7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:9}})}async function F7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:10}})}async function B7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:11}})}async function z7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:5}})}async function j7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:12}})}async function W7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:13}})}async function H7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:17}})}async function V7(t){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:t,directory:17}})}async function U7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:14}})}async function K7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:15}})}async function G7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:16}})}async function q7(){return cx()}async function cx(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:25}})}var Y7=Tp()?"\\":"/",J7=Tp()?";":":";async function X7(...t){return ce({__tauriModule:"Path",message:{cmd:"resolve",paths:t}})}async function Z7(t){return ce({__tauriModule:"Path",message:{cmd:"normalize",path:t}})}async function Q7(...t){return ce({__tauriModule:"Path",message:{cmd:"join",paths:t}})}async function e9(t){return ce({__tauriModule:"Path",message:{cmd:"dirname",path:t}})}async function t9(t){return ce({__tauriModule:"Path",message:{cmd:"extname",path:t}})}async function n9(t,e){return ce({__tauriModule:"Path",message:{cmd:"basename",path:t,ext:e}})}async function r9(t){return ce({__tauriModule:"Path",message:{cmd:"isAbsolute",path:t}})}var a9={};en(a9,{exit:()=>i9,relaunch:()=>fx});async function i9(t=0){return ce({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})}async function fx(){return ce({__tauriModule:"Process",message:{cmd:"relaunch"}})}var o9={};en(o9,{Child:()=>dx,Command:()=>vx,EventEmitter:()=>hl,open:()=>l9});async function s9(t,e,n=[],r){return typeof n=="object"&&Object.freeze(n),ce({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:n,options:r,onEventFn:Ba(t)}})}var hl=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}on(e,n){return e in this.eventListeners?this.eventListeners[e].push(n):this.eventListeners[e]=[n],this}once(e,n){let r=(...a)=>{this.removeListener(e,r),n(...a)};return this.addListener(e,r)}off(e,n){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==n)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...n){if(e in this.eventListeners){let r=this.eventListeners[e];for(let a of r)a(...n);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,n){return e in this.eventListeners?this.eventListeners[e].unshift(n):this.eventListeners[e]=[n],this}prependOnceListener(e,n){let r=(...a)=>{this.removeListener(e,r),n(...a)};return this.prependListener(e,r)}},dx=class{constructor(e){this.pid=e}async write(e){return ce({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return ce({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},vx=class extends hl{constructor(e,n=[],r){super(),this.stdout=new hl,this.stderr=new hl,this.program=e,this.args=typeof n=="string"?[n]:n,this.options=r??{}}static sidecar(e,n=[],r){let a=new vx(e,n,r);return a.options.sidecar=!0,a}async spawn(){return s9(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new dx(e))}async execute(){return new Promise((e,n)=>{this.on("error",n);let r=[],a=[];this.stdout.on("data",i=>{r.push(i)}),this.stderr.on("data",i=>{a.push(i)}),this.on("close",i=>{e({code:i.code,signal:i.signal,stdout:r.join(` `),stderr:a.join(` `)})}),this.spawn().catch(n)})}};async function l9(t,e){return ce({__tauriModule:"Shell",message:{cmd:"open",path:t,with:e}})}var u9={};en(u9,{getName:()=>f9,getTauriVersion:()=>d9,getVersion:()=>c9,hide:()=>p9,show:()=>v9});async function c9(){return ce({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function f9(){return ce({__tauriModule:"App",message:{cmd:"getAppName"}})}async function d9(){return ce({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function v9(){return ce({__tauriModule:"App",message:{cmd:"show"}})}async function p9(){return ce({__tauriModule:"App",message:{cmd:"hide"}})}var h9={};en(h9,{getMatches:()=>g9});async function g9(){return ce({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}var m9={};en(m9,{readText:()=>b9,writeText:()=>y9});async function y9(t){return ce({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})}async function b9(){return ce({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var w9={};en(w9,{ask:()=>S9,confirm:()=>x9,message:()=>C9,open:()=>px,save:()=>_9});async function px(t={}){return typeof t=="object"&&Object.freeze(t),ce({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})}async function _9(t={}){return typeof t=="object"&&Object.freeze(t),ce({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})}async function C9(t,e){var r,a;let n=typeof e=="string"?{title:e}:e;return ce({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabel:(a=n==null?void 0:n.okLabel)==null?void 0:a.toString()}})}async function S9(t,e){var r,a,i;let n=typeof e=="string"?{title:e}:e;return ce({__tauriModule:"Dialog",message:{cmd:"askDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabels:[((a=n==null?void 0:n.okLabel)==null?void 0:a.toString())??"Yes",((i=n==null?void 0:n.cancelLabel)==null?void 0:i.toString())??"No"]}})}async function x9(t,e){var r,a,i;let n=typeof e=="string"?{title:e}:e;return ce({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabels:[((a=n==null?void 0:n.okLabel)==null?void 0:a.toString())??"Ok",((i=n==null?void 0:n.cancelLabel)==null?void 0:i.toString())??"Cancel"]}})}var T9={};en(T9,{isRegistered:()=>P9,register:()=>E9,registerAll:()=>O9,unregister:()=>A9,unregisterAll:()=>I9});async function E9(t,e){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:Ba(e)}})}async function O9(t,e){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:Ba(e)}})}async function P9(t){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})}async function A9(t){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})}async function I9(){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var k9={};en(k9,{Body:()=>go,Client:()=>mx,Response:()=>gx,ResponseType:()=>hx,fetch:()=>M9,getClient:()=>yx});var hx=(t=>(t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary",t))(hx||{}),go=class{constructor(t,e){this.type=t,this.payload=e}static form(t){let e={},n=(r,a)=>{if(a!==null){let i;typeof a=="string"?i=a:a instanceof Uint8Array||Array.isArray(a)?i=Array.from(a):a instanceof File?i={file:a.name,mime:a.type,fileName:a.name}:typeof a.file=="string"?i={file:a.file,mime:a.mime,fileName:a.fileName}:i={file:Array.from(a.file),mime:a.mime,fileName:a.fileName},e[String(r)]=i}};if(t instanceof FormData)for(let[r,a]of t)n(r,a);else for(let[r,a]of Object.entries(t))n(r,a);return new go("Form",e)}static json(t){return new go("Json",t)}static text(t){return new go("Text",t)}static bytes(t){return new go("Bytes",Array.from(t instanceof ArrayBuffer?new Uint8Array(t):t))}},gx=class{constructor(t){this.url=t.url,this.status=t.status,this.ok=this.status>=200&&this.status<300,this.headers=t.headers,this.rawHeaders=t.rawHeaders,this.data=t.data}},mx=class{constructor(t){this.id=t}async drop(){return ce({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(t){let e=!t.responseType||t.responseType===1;return e&&(t.responseType=2),ce({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:t}}).then(n=>{let r=new gx(n);if(e){try{r.data=JSON.parse(r.data)}catch(a){if(r.ok&&r.data==="")r.data={};else if(r.ok)throw Error(`Failed to parse response \`${r.data}\` as JSON: ${a}; - try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return r}return r})}async get(t,e){return this.request({method:"GET",url:t,...e})}async post(t,e,n){return this.request({method:"POST",url:t,body:e,...n})}async put(t,e,n){return this.request({method:"PUT",url:t,body:e,...n})}async patch(t,e){return this.request({method:"PATCH",url:t,...e})}async delete(t,e){return this.request({method:"DELETE",url:t,...e})}};async function yx(t){return ce({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(e=>new mx(e))}var jc=null;async function M9(t,e){return jc===null&&(jc=await yx()),jc.request({url:t,method:(e==null?void 0:e.method)??"GET",...e})}var N9=Hu;const Ul=z(),R9=async()=>{if(console.log({BASE_URL:"/infinite_image_browsing/fe-static",MODE:"production",DEV:!1,PROD:!0,SSR:!1}),!!{}.TAURI_ARCH)try{Ul.value=await N9("get_tauri_conf")}catch(t){console.error(t)}};var $9=!1;function Vu(t){return tu()?(wd(t),!0):!1}function za(t){return typeof t=="function"?t():be(t)}const bs=typeof window<"u",Ri=()=>{},D9=L9();function L9(){var t;return bs&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function bx(t,e){function n(...r){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(a).catch(i)})}return n}const wx=t=>t();function F9(t,e={}){let n,r,a=Ri;const i=s=>{clearTimeout(s),a(),a=Ri};return s=>{const l=za(t),u=za(e.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((c,d)=>{a=e.rejectOnCancel?d:c,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,c(s())},l)})}}function B9(t=wx){const e=z(!0);function n(){e.value=!1}function r(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:os(e),pause:n,resume:r,eventFilter:a}}function wq(t){return t}function z9(...t){if(t.length!==1)return sn(...t);const e=t[0];return typeof e=="function"?os(dE(()=>({get:e,set:Ri}))):z(e)}function _q(t,e=200,n={}){return bx(F9(e,n),t)}function j9(t,e=!0){Pt()?Ve(t):e?t():Ke(t)}function W9(t,e,n={}){const{immediate:r=!0}=n,a=z(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,t(...u)},za(e))}return r&&(a.value=!0,bs&&l()),Vu(s),{isPending:os(a),start:l,stop:s}}var $b=Object.getOwnPropertySymbols,H9=Object.prototype.hasOwnProperty,V9=Object.prototype.propertyIsEnumerable,U9=(t,e)=>{var n={};for(var r in t)H9.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&$b)for(var r of $b(t))e.indexOf(r)<0&&V9.call(t,r)&&(n[r]=t[r]);return n};function K9(t,e,n={}){const r=n,{eventFilter:a=wx}=r,i=U9(r,["eventFilter"]);return pe(t,bx(a,e),i)}var G9=Object.defineProperty,q9=Object.defineProperties,Y9=Object.getOwnPropertyDescriptors,Kl=Object.getOwnPropertySymbols,_x=Object.prototype.hasOwnProperty,Cx=Object.prototype.propertyIsEnumerable,Db=(t,e,n)=>e in t?G9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,J9=(t,e)=>{for(var n in e||(e={}))_x.call(e,n)&&Db(t,n,e[n]);if(Kl)for(var n of Kl(e))Cx.call(e,n)&&Db(t,n,e[n]);return t},X9=(t,e)=>q9(t,Y9(e)),Z9=(t,e)=>{var n={};for(var r in t)_x.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Kl)for(var r of Kl(t))e.indexOf(r)<0&&Cx.call(t,r)&&(n[r]=t[r]);return n};function Q9(t,e,n={}){const r=n,{eventFilter:a}=r,i=Z9(r,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=B9(a);return{stop:K9(t,e,X9(J9({},i),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Cq(t,e,n){return pe(t,(r,a,i)=>{r&&e(r,a,i)},n)}function id(t,e,n){let r;dt(n)?r={evaluating:n}:r=n||{};const{lazy:a=!1,evaluating:i=void 0,shallow:o=!0,onError:s=Ri}=r,l=z(!a),u=o?Qn(e):z(e);let c=0;return yt(async d=>{if(!l.value)return;c++;const v=c;let h=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const f=await t(p=>{d(()=>{i&&(i.value=!1),h||p()})});v===c&&(u.value=f)}catch(f){s(f)}finally{i&&v===c&&(i.value=!1),h=!0}}),a?V(()=>(l.value=!0,u.value)):u}function Hn(t){var e;const n=za(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Cr=bs?window:void 0,eW=bs?window.document:void 0,tW=bs?window.navigator:void 0;function Qt(...t){let e,n,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,a]=t,e=Cr):[e,n,r,a]=t,!e)return Ri;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,d,v,h)=>(c.addEventListener(d,v,h),()=>c.removeEventListener(d,v,h)),l=pe(()=>[Hn(e),za(a)],([c,d])=>{o(),c&&i.push(...n.flatMap(v=>r.map(h=>s(c,v,h,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Vu(u),u}let Lb=!1;function Sq(t,e,n={}){const{window:r=Cr,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;D9&&!Lb&&(Lb=!0,Array.from(r.document.body.children).forEach(v=>v.addEventListener("click",Ri)));let s=!0;const l=v=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(f=>f===v.target||v.composedPath().includes(f));{const f=Hn(h);return f&&(v.target===f||v.composedPath().includes(f))}}),c=[Qt(r,"click",v=>{const h=Hn(t);if(!(!h||h===v.target||v.composedPath().includes(h))){if(v.detail===0&&(s=!l(v)),!s){s=!0;return}e(v)}},{passive:!0,capture:i}),Qt(r,"pointerdown",v=>{const h=Hn(t);h&&(s=!v.composedPath().includes(h)&&!l(v))},{passive:!0}),o&&Qt(r,"blur",v=>{var h;const f=Hn(t);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(f!=null&&f.contains(r.document.activeElement))&&e(v)})].filter(Boolean);return()=>c.forEach(v=>v())}const nW=500;function rW(t,e,n){var r,a;const i=V(()=>Hn(t));let o;function s(){o&&(clearTimeout(o),o=void 0)}function l(c){var d,v,h,f;(d=n==null?void 0:n.modifiers)!=null&&d.self&&c.target!==i.value||(s(),(v=n==null?void 0:n.modifiers)!=null&&v.prevent&&c.preventDefault(),(h=n==null?void 0:n.modifiers)!=null&&h.stop&&c.stopPropagation(),o=setTimeout(()=>e(c),(f=n==null?void 0:n.delay)!=null?f:nW))}const u={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(a=n==null?void 0:n.modifiers)==null?void 0:a.once};Qt(i,"pointerdown",l,u),Qt(i,"pointerup",s,u),Qt(i,"pointerleave",s,u)}function aW(){const t=z(!1);return Pt()&&Ve(()=>{t.value=!0}),t}function Ep(t){const e=aW();return V(()=>(e.value,!!t()))}function iW(t,e={}){const{window:n=Cr}=e,r=Ep(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const i=z(!1),o=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",s):a.removeListener(s))},s=()=>{r.value&&(o(),a=n.matchMedia(z9(t).value),i.value=!!(a!=null&&a.matches),a&&("addEventListener"in a?a.addEventListener("change",s):a.addListener(s)))};return yt(s),Vu(()=>o()),i}function xq(t={}){const{navigator:e=tW,read:n=!1,source:r,copiedDuring:a=1500,legacy:i=!1}=t,o=["copy","cut"],s=Ep(()=>e&&"clipboard"in e),l=V(()=>s.value||i),u=z(""),c=z(!1),d=W9(()=>c.value=!1,a);function v(){s.value?e.clipboard.readText().then(m=>{u.value=m}):u.value=p()}if(l.value&&n)for(const m of o)Qt(m,v);async function h(m=za(r)){l.value&&m!=null&&(s.value?await e.clipboard.writeText(m):f(m),u.value=m,c.value=!0,d.start())}function f(m){const g=document.createElement("textarea");g.value=m??"",g.style.position="absolute",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove()}function p(){var m,g,y;return(y=(g=(m=document==null?void 0:document.getSelection)==null?void 0:m.call(document))==null?void 0:g.toString())!=null?y:""}return{isSupported:l,text:u,copied:c,copy:h}}const Js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xs="__vueuse_ssr_handlers__",oW=sW();function sW(){return Xs in Js||(Js[Xs]=Js[Xs]||{}),Js[Xs]}function lW(t,e){return oW[t]||e}function uW(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var cW=Object.defineProperty,Fb=Object.getOwnPropertySymbols,fW=Object.prototype.hasOwnProperty,dW=Object.prototype.propertyIsEnumerable,Bb=(t,e,n)=>e in t?cW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zb=(t,e)=>{for(var n in e||(e={}))fW.call(e,n)&&Bb(t,n,e[n]);if(Fb)for(var n of Fb(e))dW.call(e,n)&&Bb(t,n,e[n]);return t};const vW={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},jb="vueuse-storage";function pW(t,e,n,r={}){var a;const{flush:i="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=Cr,eventFilter:v,onError:h=I=>{console.error(I)}}=r,f=(c?Qn:z)(e);if(!n)try{n=lW("getDefaultStorage",()=>{var I;return(I=Cr)==null?void 0:I.localStorage})()}catch(I){h(I)}if(!n)return f;const p=za(e),m=uW(p),g=(a=r.serializer)!=null?a:vW[m],{pause:y,resume:b}=Q9(f,()=>w(f.value),{flush:i,deep:o,eventFilter:v});return d&&s&&(Qt(d,"storage",E),Qt(d,jb,C)),E(),f;function w(I){try{if(I==null)n.removeItem(t);else{const T=g.write(I),N=n.getItem(t);N!==T&&(n.setItem(t,T),d&&d.dispatchEvent(new CustomEvent(jb,{detail:{key:t,oldValue:N,newValue:T,storageArea:n}})))}}catch(T){h(T)}}function _(I){const T=I?I.newValue:n.getItem(t);if(T==null)return l&&p!==null&&n.setItem(t,g.write(p)),p;if(!I&&u){const N=g.read(T);return typeof u=="function"?u(N,p):m==="object"&&!Array.isArray(N)?zb(zb({},p),N):N}else return typeof T!="string"?T:g.read(T)}function C(I){E(I.detail)}function E(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){f.value=p;return}if(!(I&&I.key!==t)){y();try{f.value=_(I)}catch(T){h(T)}finally{I?Ke(b):b()}}}}}function hW(t){return iW("(prefers-color-scheme: dark)",t)}function gW({document:t=eW}={}){if(!t)return z("visible");const e=z(t.visibilityState);return Qt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Wb=Object.getOwnPropertySymbols,mW=Object.prototype.hasOwnProperty,yW=Object.prototype.propertyIsEnumerable,bW=(t,e)=>{var n={};for(var r in t)mW.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Wb)for(var r of Wb(t))e.indexOf(r)<0&&yW.call(t,r)&&(n[r]=t[r]);return n};function wW(t,e,n={}){const r=n,{window:a=Cr}=r,i=bW(r,["window"]);let o;const s=Ep(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=V(()=>Array.isArray(t)?t.map(v=>Hn(v)):[Hn(t)]),c=pe(u,v=>{if(l(),s.value&&a){o=new ResizeObserver(e);for(const h of v)h&&o.observe(h,i)}},{immediate:!0,flush:"post",deep:!0}),d=()=>{l(),c()};return Vu(d),{isSupported:s,stop:d}}function _W(t,e={width:0,height:0},n={}){const{window:r=Cr,box:a="content-box"}=n,i=V(()=>{var l,u;return(u=(l=Hn(t))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),o=z(e.width),s=z(e.height);return wW(t,([l])=>{const u=a==="border-box"?l.borderBoxSize:a==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&i.value){const c=Hn(t);if(c){const d=r.getComputedStyle(c);o.value=parseFloat(d.width),s.value=parseFloat(d.height)}}else if(u){const c=Array.isArray(u)?u:[u];o.value=c.reduce((d,{inlineSize:v})=>d+v,0),s.value=c.reduce((d,{blockSize:v})=>d+v,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},n),pe(()=>Hn(t),l=>{o.value=l?e.width:0,s.value=l?e.height:0}),{width:o,height:s}}function Sx(t,e,n={}){const{window:r=Cr}=n;return pW(t,e,r==null?void 0:r.localStorage,n)}const CW={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function SW(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=Cr,target:o=i,eventFilter:s}=t,l=z(a.x),u=z(a.y),c=z(null),d=typeof e=="function"?e:CW[e],v=g=>{const y=d(g);y&&([l.value,u.value]=y,c.value="mouse")},h=g=>{if(g.touches.length>0){const y=d(g.touches[0]);y&&([l.value,u.value]=y,c.value="touch")}},f=()=>{l.value=a.x,u.value=a.y},p=s?g=>s(()=>v(g),{}):g=>v(g),m=s?g=>s(()=>h(g),{}):g=>h(g);return o&&(Qt(o,"mousemove",p,{passive:!0}),Qt(o,"dragover",p,{passive:!0}),n&&e!=="movement"&&(Qt(o,"touchstart",m,{passive:!0}),Qt(o,"touchmove",m,{passive:!0}),r&&Qt(o,"touchend",f,{passive:!0}))),{x:l,y:u,sourceType:c}}function Hb(t,e={}){const{handleOutside:n=!0,window:r=Cr}=e,{x:a,y:i,sourceType:o}=SW(e),s=z(t??(r==null?void 0:r.document.body)),l=z(0),u=z(0),c=z(0),d=z(0),v=z(0),h=z(0),f=z(!0);let p=()=>{};return r&&(p=pe([s,a,i],()=>{const m=Hn(s);if(!m)return;const{left:g,top:y,width:b,height:w}=m.getBoundingClientRect();c.value=g+r.pageXOffset,d.value=y+r.pageYOffset,v.value=w,h.value=b;const _=a.value-c.value,C=i.value-d.value;f.value=b===0||w===0||_<0||C<0||_>b||C>w,(n||!f.value)&&(l.value=_,u.value=C)},{immediate:!0}),Qt(document,"mouseleave",()=>{f.value=!0})),{x:a,y:i,sourceType:o,elementX:l,elementY:u,elementPositionX:c,elementPositionY:d,elementHeight:v,elementWidth:h,isOutside:f,stop:p}}const xx=!!{}.TAURI_ARCH,xW=window===parent,Fr=encodeURIComponent,ua=(t,e=!1)=>`${Vi.value}/file?path=${Fr(t.fullpath)}&t=${Fr(t.date)}${e?`&disposition=${Fr(t.name)}`:""}`,Vb=(t,e="512x512")=>`${Vi.value}/image-thumbnail?path=${Fr(t.fullpath)}&size=${e}&t=${Fr(t.date)}`,TW=t=>`${Vi.value}/stream_video?path=${Fr(t.fullpath)}`,Tq=t=>(xx?"":parent.document.location.origin)+`${Vi.value}/video_cover?path=${Fr(t.fullpath)}&mt=${Fr(t.date)}`,EW=t=>typeof t=="object"&&t.__id==="FileTransferData",OW=t=>{var n;const e=JSON.parse(((n=t.dataTransfer)==null?void 0:n.getData("text"))??"{}");return EW(e)?e:null},Eq=t=>VS(t,"fullpath");function Tx(t){var r;if(typeof t!="string")return!1;const e=[".jpg",".jpeg",".png",".gif",".bmp",".webp",".avif",".jpe"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function gl(t){var r;if(typeof t!="string")return!1;const e=[".mp4",".m4v",".avi",".mkv",".mov",".wmv",".flv",".ts",".webm"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function od(t){var r;if(typeof t!="string")return!1;const e=[".mp3",".wav",".ogg",".flac",".m4a",".aac",".wma"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}const PW=t=>`${Vi.value}/stream_video?path=${Fr(t.fullpath)}`,Oq=t=>Tx(t)||gl(t)||od(t);function Ex(t){t.forEach((e,n)=>{try{const r=new URL(e,"https://github.com/zanllp/sd-webui-infinite-image-browsing");let a="";const i=r.searchParams.get("disposition");i&&(a=decodeURIComponent(i));const o=document.createElement("a");o.style.display="none",o.href=e,o.download=a,document.body.appendChild(o),setTimeout(()=>{o.click(),setTimeout(()=>{document.body.removeChild(o)},100)},n*100)}catch(r){console.error(`Failed to download file from URL: ${e}`,r)}})}const Pq=(t,e)=>{const n=window.URL.createObjectURL(new Blob([JSON.stringify({files:t},null,4)])),r=document.createElement("a");r.href=n,r.setAttribute("download",`iib_imginfo_${e??new Date().toLocaleString()}.json`),document.body.appendChild(r),r.click()},Op="iib://";function Ox(){try{return parent.window.gradioApp()}catch{}const t=parent.document.getElementsByTagName("gradio-app"),e=t.length==0?null:t[0].shadowRoot;return e||document}const AW=()=>{const t=Ox().querySelectorAll("#tabs > .tabitem[id^=tab_]");return Array.from(t).findIndex(e=>e.id.includes("infinite-image-browsing"))},Px=()=>{try{Ox().querySelector("#tabs").querySelectorAll("button")[AW()].click()}catch(t){console.error(t)}},IW=async(t,e=100,n=1e3)=>new Promise(r=>{const a=(i=0)=>{const o=t();o!=null||i>n/e?r(o):setTimeout(()=>a(++i),e)};a()}),Ax=(t,...e)=>e.reduce((n,r)=>(n[r]=t==null?void 0:t[r],n),{}),Ix=()=>ct(new ts(-1,0,-1,"throw")),Aq=async(t,e)=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(t);else{const n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}Jt.success(e??Te("copied"))}catch{Jt.error("copy failed. maybe it's non-secure environment")}},{useEventListen:sd,eventEmitter:Uu}=HS();function Iq(t){let e=null,n=!1;return async function(...r){if(n)return e;n=!0;try{return e=t.apply(this,r),await e}finally{n=!1}}}function kW(t){const e=parent.location.href,n=new URLSearchParams(parent.location.search);t.forEach(a=>{n.delete(a)});const r=`${e.split("?")[0]}${n.size?"?":""}${n.toString()}`;return parent.history.pushState(null,"",r),r}const ld=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=a=>n(a),r.src=t}),MW=t=>{try{return JSON.parse(t)}catch{return null}};function NW(t){return`${t}`.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}const kq=(t,e)=>(e||(e=Te("confirmThisAction")),(...n)=>xt.confirm({content:e,onOk:()=>t(...n)})),kx=Op+"sync",Ku=()=>{const t=localStorage.getItem(kx);return t==="true"||t===null},Mq=()=>Sx(kx,!0),Vi=V(()=>Ul.value?`http://127.0.0.1:${Ul.value.port}/infinite_image_browsing`:"/infinite_image_browsing"),RW=t=>{const e=jl.hash.sha256.hash(t);return jl.codec.hex.fromBits(e)};let lo=null,Ub=!1;const $W=async()=>lo||(lo=new Promise(t=>{const e=z(""),n=r=>{lo=null,t(r)};xt.confirm({title:Te("serverKeyRequired"),content:()=>sa("input",{class:"ant-input",type:"password",value:e.value,onInput:r=>e.value=r.target.value,autocomplete:"current-password",name:"password",autocapitalize:"off",spellcheck:!1,style:"width: 100%;"}),onOk(){n(e.value)},onCancel(){n("")}})}),lo),DW=t=>{t.interceptors.response.use(e=>e,async e=>{var n,r,a,i,o,s,l,u,c,d;if(yB(e)){if(((n=e.response)==null?void 0:n.status)===401&&((i=(a=(r=e.response)==null?void 0:r.data)==null?void 0:a.detail)==null?void 0:i.type)==="secret_verification_failed"){const h=await $W();if(!h)throw e;return ij.set("IIB_S",RW(h+"_ciallo")),Ub||(Ub=!0,await Fa(100),location.reload()),new Promise(()=>{})}switch((l=(s=(o=e.response)==null?void 0:o.data)==null?void 0:s.detail)==null?void 0:l.type){case"secret_key_required":throw xt.error({width:"60vw",title:Te("secretKeyMustBeConfigured"),content:()=>sa("p",{style:"white-space: pre-line;"},Te("secretKeyRequiredWarnMsg"))}),new Error(Te("secretKeyRequiredWarnMsg"))}let v=(c=(u=e.response)==null?void 0:u.data)==null?void 0:c.detail;try{v||(v=JSON.parse(await((d=e.response)==null?void 0:d.data.text())).detail)}catch(h){console.error(e.response,h)}throw v??(v=Te("errorOccurred")),Jt.error(v),new Error(v)}return e})},We=V(()=>{const t=bS.create({baseURL:Vi.value});return DW(t),t}),LW=async()=>{const e=(await We.value.get("/global_setting")).data;try{Ku()||(e.app_fe_setting={})}catch(n){console.error(n)}return e},Nq=async()=>(await We.value.get("/global_setting")).data,Rq=async()=>(await We.value.get("/version")).data,FW=async t=>(await We.value.post("/check_path_exists",{paths:t})).data,$q=async t=>We.value.post(`/send_img_path?path=${encodeURIComponent(t)}`),Dq=async()=>(await We.value.get("/gen_info_completed",{timeout:6e4})).data,Kb=async t=>(await We.value.get(`/image_geninfo?path=${encodeURIComponent(t)}`)).data,Lq=async t=>t.length?(await We.value.post("/image_geninfo_batch",{paths:t})).data:{},Fq=async t=>{await We.value.post("/open_folder",{path:t})},Bq=async t=>{await We.value.post("/open_with_default_app",{path:t})},zq=async t=>(await We.value.post("/batch_top_4_media_info",{paths:t})).data,Mx=async(t,e)=>{Ku()&&await We.value.post("/app_fe_setting",{name:t,value:JSON.stringify(e)})},jq=async(t,e)=>{await We.value.post("/app_fe_setting",{name:t,value:JSON.stringify(e)})},Wq=async t=>{Ku()&&await We.value.delete("/app_fe_setting",{data:{name:t}})},BW=async t=>{await We.value.post("/set_target_frame_as_video_cover",t)},Hq=async t=>(await We.value.post("/ai-chat",t)).data,zW=()=>({"date-asc":Te("sortByDateAscending"),"date-desc":Te("sortByDateDescending"),"name-asc":Te("sortByNameAscending"),"name-desc":Te("sortByNameDescending"),"size-asc":Te("sortBySizeAscending"),"size-desc":Te("sortBySizeDescending"),"created-time-asc":Te("sortByCreatedDateAscending"),"created-time-desc":Te("sortByCreatedDateDescending")});var Pp=(t=>(t.DATE_ASC="date-asc",t.DATE_DESC="date-desc",t.NAME_ASC="name-asc",t.NAME_DESC="name-desc",t.SIZE_ASC="size-asc",t.SIZE_DESC="size-desc",t.CREATED_TIME_ASC="created-time-asc",t.CREATED_TIME_DESC="created-time-desc",t))(Pp||{});const Vq=Object.values(Pp),Uq={value:t=>t,text:t=>zW()[t].toLocaleLowerCase()},jW=(t,e)=>{const n=t.type==="dir"?1:0;return(e.type==="dir"?1:0)-n},Gb=(t,e)=>{const n=Date.parse(t.date),r=Date.parse(e.date);return n-r},qb=(t,e)=>{const n=Date.parse(t.created_time),r=Date.parse(e.created_time);return n-r},Yb=(t,e)=>{const n=t.name.toLowerCase(),r=e.name.toLowerCase();return n.localeCompare(r)},Jb=(t,e)=>t.bytes-e.bytes,Kq=(t,e)=>{const n=(r,a)=>{switch(e){case"date-asc":return Gb(r,a);case"date-desc":return Gb(a,r);case"created-time-asc":return qb(r,a);case"created-time-desc":return qb(a,r);case"name-asc":return Yb(r,a);case"name-desc":return Yb(a,r);case"size-asc":return Jb(r,a);case"size-desc":return Jb(a,r);default:throw new Error(`Invalid sort method: ${e}`)}};return t.slice().sort((r,a)=>jW(r,a)||n(r,a))};/*! + try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return r}return r})}async get(t,e){return this.request({method:"GET",url:t,...e})}async post(t,e,n){return this.request({method:"POST",url:t,body:e,...n})}async put(t,e,n){return this.request({method:"PUT",url:t,body:e,...n})}async patch(t,e){return this.request({method:"PATCH",url:t,...e})}async delete(t,e){return this.request({method:"DELETE",url:t,...e})}};async function yx(t){return ce({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(e=>new mx(e))}var jc=null;async function M9(t,e){return jc===null&&(jc=await yx()),jc.request({url:t,method:(e==null?void 0:e.method)??"GET",...e})}var N9=Hu;const Ul=z(),R9=async()=>{if(console.log({BASE_URL:"/infinite_image_browsing/fe-static",MODE:"production",DEV:!1,PROD:!0,SSR:!1}),!!{}.TAURI_ARCH)try{Ul.value=await N9("get_tauri_conf")}catch(t){console.error(t)}};var $9=!1;function Vu(t){return tu()?(wd(t),!0):!1}function za(t){return typeof t=="function"?t():be(t)}const bs=typeof window<"u",Ri=()=>{},D9=L9();function L9(){var t;return bs&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function bx(t,e){function n(...r){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(a).catch(i)})}return n}const wx=t=>t();function F9(t,e={}){let n,r,a=Ri;const i=s=>{clearTimeout(s),a(),a=Ri};return s=>{const l=za(t),u=za(e.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((c,d)=>{a=e.rejectOnCancel?d:c,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,c(s())},l)})}}function B9(t=wx){const e=z(!0);function n(){e.value=!1}function r(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:os(e),pause:n,resume:r,eventFilter:a}}function wq(t){return t}function z9(...t){if(t.length!==1)return sn(...t);const e=t[0];return typeof e=="function"?os(dE(()=>({get:e,set:Ri}))):z(e)}function _q(t,e=200,n={}){return bx(F9(e,n),t)}function j9(t,e=!0){Pt()?Ve(t):e?t():Ke(t)}function W9(t,e,n={}){const{immediate:r=!0}=n,a=z(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,t(...u)},za(e))}return r&&(a.value=!0,bs&&l()),Vu(s),{isPending:os(a),start:l,stop:s}}var $b=Object.getOwnPropertySymbols,H9=Object.prototype.hasOwnProperty,V9=Object.prototype.propertyIsEnumerable,U9=(t,e)=>{var n={};for(var r in t)H9.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&$b)for(var r of $b(t))e.indexOf(r)<0&&V9.call(t,r)&&(n[r]=t[r]);return n};function K9(t,e,n={}){const r=n,{eventFilter:a=wx}=r,i=U9(r,["eventFilter"]);return pe(t,bx(a,e),i)}var G9=Object.defineProperty,q9=Object.defineProperties,Y9=Object.getOwnPropertyDescriptors,Kl=Object.getOwnPropertySymbols,_x=Object.prototype.hasOwnProperty,Cx=Object.prototype.propertyIsEnumerable,Db=(t,e,n)=>e in t?G9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,J9=(t,e)=>{for(var n in e||(e={}))_x.call(e,n)&&Db(t,n,e[n]);if(Kl)for(var n of Kl(e))Cx.call(e,n)&&Db(t,n,e[n]);return t},X9=(t,e)=>q9(t,Y9(e)),Z9=(t,e)=>{var n={};for(var r in t)_x.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Kl)for(var r of Kl(t))e.indexOf(r)<0&&Cx.call(t,r)&&(n[r]=t[r]);return n};function Q9(t,e,n={}){const r=n,{eventFilter:a}=r,i=Z9(r,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=B9(a);return{stop:K9(t,e,X9(J9({},i),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Cq(t,e,n){return pe(t,(r,a,i)=>{r&&e(r,a,i)},n)}function id(t,e,n){let r;dt(n)?r={evaluating:n}:r=n||{};const{lazy:a=!1,evaluating:i=void 0,shallow:o=!0,onError:s=Ri}=r,l=z(!a),u=o?Qn(e):z(e);let c=0;return yt(async d=>{if(!l.value)return;c++;const v=c;let h=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const f=await t(p=>{d(()=>{i&&(i.value=!1),h||p()})});v===c&&(u.value=f)}catch(f){s(f)}finally{i&&v===c&&(i.value=!1),h=!0}}),a?V(()=>(l.value=!0,u.value)):u}function Hn(t){var e;const n=za(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Cr=bs?window:void 0,eW=bs?window.document:void 0,tW=bs?window.navigator:void 0;function Qt(...t){let e,n,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,a]=t,e=Cr):[e,n,r,a]=t,!e)return Ri;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,d,v,h)=>(c.addEventListener(d,v,h),()=>c.removeEventListener(d,v,h)),l=pe(()=>[Hn(e),za(a)],([c,d])=>{o(),c&&i.push(...n.flatMap(v=>r.map(h=>s(c,v,h,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Vu(u),u}let Lb=!1;function Sq(t,e,n={}){const{window:r=Cr,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;D9&&!Lb&&(Lb=!0,Array.from(r.document.body.children).forEach(v=>v.addEventListener("click",Ri)));let s=!0;const l=v=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(f=>f===v.target||v.composedPath().includes(f));{const f=Hn(h);return f&&(v.target===f||v.composedPath().includes(f))}}),c=[Qt(r,"click",v=>{const h=Hn(t);if(!(!h||h===v.target||v.composedPath().includes(h))){if(v.detail===0&&(s=!l(v)),!s){s=!0;return}e(v)}},{passive:!0,capture:i}),Qt(r,"pointerdown",v=>{const h=Hn(t);h&&(s=!v.composedPath().includes(h)&&!l(v))},{passive:!0}),o&&Qt(r,"blur",v=>{var h;const f=Hn(t);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(f!=null&&f.contains(r.document.activeElement))&&e(v)})].filter(Boolean);return()=>c.forEach(v=>v())}const nW=500;function rW(t,e,n){var r,a;const i=V(()=>Hn(t));let o;function s(){o&&(clearTimeout(o),o=void 0)}function l(c){var d,v,h,f;(d=n==null?void 0:n.modifiers)!=null&&d.self&&c.target!==i.value||(s(),(v=n==null?void 0:n.modifiers)!=null&&v.prevent&&c.preventDefault(),(h=n==null?void 0:n.modifiers)!=null&&h.stop&&c.stopPropagation(),o=setTimeout(()=>e(c),(f=n==null?void 0:n.delay)!=null?f:nW))}const u={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(a=n==null?void 0:n.modifiers)==null?void 0:a.once};Qt(i,"pointerdown",l,u),Qt(i,"pointerup",s,u),Qt(i,"pointerleave",s,u)}function aW(){const t=z(!1);return Pt()&&Ve(()=>{t.value=!0}),t}function Ep(t){const e=aW();return V(()=>(e.value,!!t()))}function iW(t,e={}){const{window:n=Cr}=e,r=Ep(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const i=z(!1),o=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",s):a.removeListener(s))},s=()=>{r.value&&(o(),a=n.matchMedia(z9(t).value),i.value=!!(a!=null&&a.matches),a&&("addEventListener"in a?a.addEventListener("change",s):a.addListener(s)))};return yt(s),Vu(()=>o()),i}function xq(t={}){const{navigator:e=tW,read:n=!1,source:r,copiedDuring:a=1500,legacy:i=!1}=t,o=["copy","cut"],s=Ep(()=>e&&"clipboard"in e),l=V(()=>s.value||i),u=z(""),c=z(!1),d=W9(()=>c.value=!1,a);function v(){s.value?e.clipboard.readText().then(m=>{u.value=m}):u.value=p()}if(l.value&&n)for(const m of o)Qt(m,v);async function h(m=za(r)){l.value&&m!=null&&(s.value?await e.clipboard.writeText(m):f(m),u.value=m,c.value=!0,d.start())}function f(m){const g=document.createElement("textarea");g.value=m??"",g.style.position="absolute",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove()}function p(){var m,g,y;return(y=(g=(m=document==null?void 0:document.getSelection)==null?void 0:m.call(document))==null?void 0:g.toString())!=null?y:""}return{isSupported:l,text:u,copied:c,copy:h}}const Js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xs="__vueuse_ssr_handlers__",oW=sW();function sW(){return Xs in Js||(Js[Xs]=Js[Xs]||{}),Js[Xs]}function lW(t,e){return oW[t]||e}function uW(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var cW=Object.defineProperty,Fb=Object.getOwnPropertySymbols,fW=Object.prototype.hasOwnProperty,dW=Object.prototype.propertyIsEnumerable,Bb=(t,e,n)=>e in t?cW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zb=(t,e)=>{for(var n in e||(e={}))fW.call(e,n)&&Bb(t,n,e[n]);if(Fb)for(var n of Fb(e))dW.call(e,n)&&Bb(t,n,e[n]);return t};const vW={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},jb="vueuse-storage";function pW(t,e,n,r={}){var a;const{flush:i="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=Cr,eventFilter:v,onError:h=I=>{console.error(I)}}=r,f=(c?Qn:z)(e);if(!n)try{n=lW("getDefaultStorage",()=>{var I;return(I=Cr)==null?void 0:I.localStorage})()}catch(I){h(I)}if(!n)return f;const p=za(e),m=uW(p),g=(a=r.serializer)!=null?a:vW[m],{pause:y,resume:b}=Q9(f,()=>w(f.value),{flush:i,deep:o,eventFilter:v});return d&&s&&(Qt(d,"storage",E),Qt(d,jb,C)),E(),f;function w(I){try{if(I==null)n.removeItem(t);else{const T=g.write(I),N=n.getItem(t);N!==T&&(n.setItem(t,T),d&&d.dispatchEvent(new CustomEvent(jb,{detail:{key:t,oldValue:N,newValue:T,storageArea:n}})))}}catch(T){h(T)}}function _(I){const T=I?I.newValue:n.getItem(t);if(T==null)return l&&p!==null&&n.setItem(t,g.write(p)),p;if(!I&&u){const N=g.read(T);return typeof u=="function"?u(N,p):m==="object"&&!Array.isArray(N)?zb(zb({},p),N):N}else return typeof T!="string"?T:g.read(T)}function C(I){E(I.detail)}function E(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){f.value=p;return}if(!(I&&I.key!==t)){y();try{f.value=_(I)}catch(T){h(T)}finally{I?Ke(b):b()}}}}}function hW(t){return iW("(prefers-color-scheme: dark)",t)}function gW({document:t=eW}={}){if(!t)return z("visible");const e=z(t.visibilityState);return Qt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Wb=Object.getOwnPropertySymbols,mW=Object.prototype.hasOwnProperty,yW=Object.prototype.propertyIsEnumerable,bW=(t,e)=>{var n={};for(var r in t)mW.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Wb)for(var r of Wb(t))e.indexOf(r)<0&&yW.call(t,r)&&(n[r]=t[r]);return n};function wW(t,e,n={}){const r=n,{window:a=Cr}=r,i=bW(r,["window"]);let o;const s=Ep(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=V(()=>Array.isArray(t)?t.map(v=>Hn(v)):[Hn(t)]),c=pe(u,v=>{if(l(),s.value&&a){o=new ResizeObserver(e);for(const h of v)h&&o.observe(h,i)}},{immediate:!0,flush:"post",deep:!0}),d=()=>{l(),c()};return Vu(d),{isSupported:s,stop:d}}function _W(t,e={width:0,height:0},n={}){const{window:r=Cr,box:a="content-box"}=n,i=V(()=>{var l,u;return(u=(l=Hn(t))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),o=z(e.width),s=z(e.height);return wW(t,([l])=>{const u=a==="border-box"?l.borderBoxSize:a==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&i.value){const c=Hn(t);if(c){const d=r.getComputedStyle(c);o.value=parseFloat(d.width),s.value=parseFloat(d.height)}}else if(u){const c=Array.isArray(u)?u:[u];o.value=c.reduce((d,{inlineSize:v})=>d+v,0),s.value=c.reduce((d,{blockSize:v})=>d+v,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},n),pe(()=>Hn(t),l=>{o.value=l?e.width:0,s.value=l?e.height:0}),{width:o,height:s}}function Sx(t,e,n={}){const{window:r=Cr}=n;return pW(t,e,r==null?void 0:r.localStorage,n)}const CW={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function SW(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=Cr,target:o=i,eventFilter:s}=t,l=z(a.x),u=z(a.y),c=z(null),d=typeof e=="function"?e:CW[e],v=g=>{const y=d(g);y&&([l.value,u.value]=y,c.value="mouse")},h=g=>{if(g.touches.length>0){const y=d(g.touches[0]);y&&([l.value,u.value]=y,c.value="touch")}},f=()=>{l.value=a.x,u.value=a.y},p=s?g=>s(()=>v(g),{}):g=>v(g),m=s?g=>s(()=>h(g),{}):g=>h(g);return o&&(Qt(o,"mousemove",p,{passive:!0}),Qt(o,"dragover",p,{passive:!0}),n&&e!=="movement"&&(Qt(o,"touchstart",m,{passive:!0}),Qt(o,"touchmove",m,{passive:!0}),r&&Qt(o,"touchend",f,{passive:!0}))),{x:l,y:u,sourceType:c}}function Hb(t,e={}){const{handleOutside:n=!0,window:r=Cr}=e,{x:a,y:i,sourceType:o}=SW(e),s=z(t??(r==null?void 0:r.document.body)),l=z(0),u=z(0),c=z(0),d=z(0),v=z(0),h=z(0),f=z(!0);let p=()=>{};return r&&(p=pe([s,a,i],()=>{const m=Hn(s);if(!m)return;const{left:g,top:y,width:b,height:w}=m.getBoundingClientRect();c.value=g+r.pageXOffset,d.value=y+r.pageYOffset,v.value=w,h.value=b;const _=a.value-c.value,C=i.value-d.value;f.value=b===0||w===0||_<0||C<0||_>b||C>w,(n||!f.value)&&(l.value=_,u.value=C)},{immediate:!0}),Qt(document,"mouseleave",()=>{f.value=!0})),{x:a,y:i,sourceType:o,elementX:l,elementY:u,elementPositionX:c,elementPositionY:d,elementHeight:v,elementWidth:h,isOutside:f,stop:p}}const xx=!!{}.TAURI_ARCH,xW=window===parent,Fr=encodeURIComponent,ua=(t,e=!1)=>`${Vi.value}/file?path=${Fr(t.fullpath)}&t=${Fr(t.date)}${e?`&disposition=${Fr(t.name)}`:""}`,Vb=(t,e="512x512")=>`${Vi.value}/image-thumbnail?path=${Fr(t.fullpath)}&size=${e}&t=${Fr(t.date)}`,TW=t=>`${Vi.value}/stream_video?path=${Fr(t.fullpath)}`,Tq=t=>(xx?"":parent.document.location.origin)+`${Vi.value}/video_cover?path=${Fr(t.fullpath)}&mt=${Fr(t.date)}`,EW=t=>typeof t=="object"&&t.__id==="FileTransferData",OW=t=>{var n;const e=JSON.parse(((n=t.dataTransfer)==null?void 0:n.getData("text"))??"{}");return EW(e)?e:null},Eq=t=>VS(t,"fullpath");function Tx(t){var r;if(typeof t!="string")return!1;const e=[".jpg",".jpeg",".png",".gif",".bmp",".webp",".avif",".jpe"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function gl(t){var r;if(typeof t!="string")return!1;const e=[".mp4",".m4v",".avi",".mkv",".mov",".wmv",".flv",".ts",".webm"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function od(t){var r;if(typeof t!="string")return!1;const e=[".mp3",".wav",".ogg",".flac",".m4a",".aac",".wma"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}const PW=t=>`${Vi.value}/stream_video?path=${Fr(t.fullpath)}`,Oq=t=>Tx(t)||gl(t)||od(t);function Ex(t){t.forEach((e,n)=>{try{const r=new URL(e,"https://github.com/zanllp/sd-webui-infinite-image-browsing");let a="";const i=r.searchParams.get("disposition");i&&(a=decodeURIComponent(i));const o=document.createElement("a");o.style.display="none",o.href=e,o.download=a,document.body.appendChild(o),setTimeout(()=>{o.click(),setTimeout(()=>{document.body.removeChild(o)},100)},n*100)}catch(r){console.error(`Failed to download file from URL: ${e}`,r)}})}const Pq=(t,e)=>{const n=window.URL.createObjectURL(new Blob([JSON.stringify({files:t},null,4)])),r=document.createElement("a");r.href=n,r.setAttribute("download",`iib_imginfo_${e??new Date().toLocaleString()}.json`),document.body.appendChild(r),r.click()},Op="iib://";function Ox(){try{return parent.window.gradioApp()}catch{}const t=parent.document.getElementsByTagName("gradio-app"),e=t.length==0?null:t[0].shadowRoot;return e||document}const AW=()=>{const t=Ox().querySelectorAll("#tabs > .tabitem[id^=tab_]");return Array.from(t).findIndex(e=>e.id.includes("infinite-image-browsing"))},Px=()=>{try{Ox().querySelector("#tabs").querySelectorAll("button")[AW()].click()}catch(t){console.error(t)}},IW=async(t,e=100,n=1e3)=>new Promise(r=>{const a=(i=0)=>{const o=t();o!=null||i>n/e?r(o):setTimeout(()=>a(++i),e)};a()}),Ax=(t,...e)=>e.reduce((n,r)=>(n[r]=t==null?void 0:t[r],n),{}),Ix=()=>ct(new ts(-1,0,-1,"throw")),Aq=async(t,e)=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(t);else{const n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}Jt.success(e??Te("copied"))}catch{Jt.error("copy failed. maybe it's non-secure environment")}},{useEventListen:sd,eventEmitter:Uu}=HS();function Iq(t){let e=null,n=!1;return async function(...r){if(n)return e;n=!0;try{return e=t.apply(this,r),await e}finally{n=!1}}}function kW(t){const e=parent.location.href,n=new URLSearchParams(parent.location.search);t.forEach(a=>{n.delete(a)});const r=`${e.split("?")[0]}${n.size?"?":""}${n.toString()}`;return parent.history.pushState(null,"",r),r}const ld=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=a=>n(a),r.src=t}),MW=t=>{try{return JSON.parse(t)}catch{return null}};function NW(t){return`${t}`.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}const kq=(t,e)=>(e||(e=Te("confirmThisAction")),(...n)=>xt.confirm({content:e,onOk:()=>t(...n)})),kx=Op+"sync",Ku=()=>{const t=localStorage.getItem(kx);return t==="true"||t===null},Mq=()=>Sx(kx,!0),Vi=V(()=>Ul.value?`http://127.0.0.1:${Ul.value.port}/infinite_image_browsing`:"/infinite_image_browsing"),RW=t=>{const e=jl.hash.sha256.hash(t);return jl.codec.hex.fromBits(e)};let lo=null,Ub=!1;const $W=async()=>lo||(lo=new Promise(t=>{const e=z(""),n=r=>{lo=null,t(r)};xt.confirm({title:Te("serverKeyRequired"),content:()=>sa("input",{class:"ant-input",type:"password",value:e.value,onInput:r=>e.value=r.target.value,autocomplete:"current-password",name:"password",autocapitalize:"off",spellcheck:!1,style:"width: 100%;"}),onOk(){n(e.value)},onCancel(){n("")}})}),lo),DW=t=>{t.interceptors.response.use(e=>e,async e=>{var n,r,a,i,o,s,l,u,c,d;if(yB(e)){if(((n=e.response)==null?void 0:n.status)===401&&((i=(a=(r=e.response)==null?void 0:r.data)==null?void 0:a.detail)==null?void 0:i.type)==="secret_verification_failed"){const h=await $W();if(!h)throw e;return ij.set("IIB_S",RW(h+"_ciallo")),Ub||(Ub=!0,await Fa(100),location.reload()),new Promise(()=>{})}switch((l=(s=(o=e.response)==null?void 0:o.data)==null?void 0:s.detail)==null?void 0:l.type){case"secret_key_required":throw xt.error({width:"60vw",title:Te("secretKeyMustBeConfigured"),content:()=>sa("p",{style:"white-space: pre-line;"},Te("secretKeyRequiredWarnMsg"))}),new Error(Te("secretKeyRequiredWarnMsg"))}let v=(c=(u=e.response)==null?void 0:u.data)==null?void 0:c.detail;try{v||(v=JSON.parse(await((d=e.response)==null?void 0:d.data.text())).detail)}catch(h){console.error(e.response,h)}throw v??(v=Te("errorOccurred")),Jt.error(v),new Error(v)}return e})},ze=V(()=>{const t=bS.create({baseURL:Vi.value});return DW(t),t}),LW=async()=>{const e=(await ze.value.get("/global_setting")).data;try{Ku()||(e.app_fe_setting={})}catch(n){console.error(n)}return e},Nq=async()=>(await ze.value.get("/global_setting")).data,Rq=async()=>(await ze.value.get("/version")).data,FW=async t=>(await ze.value.post("/check_path_exists",{paths:t})).data,$q=async t=>ze.value.post(`/send_img_path?path=${encodeURIComponent(t)}`),Dq=async()=>(await ze.value.get("/gen_info_completed",{timeout:6e4})).data,Kb=async t=>(await ze.value.get(`/image_geninfo?path=${encodeURIComponent(t)}`)).data,Lq=async t=>t.length?(await ze.value.post("/image_geninfo_batch",{paths:t})).data:{},Fq=async t=>{await ze.value.post("/open_folder",{path:t})},Bq=async t=>{await ze.value.post("/open_with_default_app",{path:t})},zq=async t=>(await ze.value.post("/batch_top_4_media_info",{paths:t})).data,Mx=async(t,e)=>{Ku()&&await ze.value.post("/app_fe_setting",{name:t,value:JSON.stringify(e)})},jq=async(t,e)=>{await ze.value.post("/app_fe_setting",{name:t,value:JSON.stringify(e)})},Wq=async t=>{Ku()&&await ze.value.delete("/app_fe_setting",{data:{name:t}})},BW=async t=>{await ze.value.post("/set_target_frame_as_video_cover",t)},Hq=async t=>(await ze.value.post("/ai-chat",t)).data,zW=()=>({"date-asc":Te("sortByDateAscending"),"date-desc":Te("sortByDateDescending"),"name-asc":Te("sortByNameAscending"),"name-desc":Te("sortByNameDescending"),"size-asc":Te("sortBySizeAscending"),"size-desc":Te("sortBySizeDescending"),"created-time-asc":Te("sortByCreatedDateAscending"),"created-time-desc":Te("sortByCreatedDateDescending")});var Pp=(t=>(t.DATE_ASC="date-asc",t.DATE_DESC="date-desc",t.NAME_ASC="name-asc",t.NAME_DESC="name-desc",t.SIZE_ASC="size-asc",t.SIZE_DESC="size-desc",t.CREATED_TIME_ASC="created-time-asc",t.CREATED_TIME_DESC="created-time-desc",t))(Pp||{});const Vq=Object.values(Pp),Uq={value:t=>t,text:t=>zW()[t].toLocaleLowerCase()},jW=(t,e)=>{const n=t.type==="dir"?1:0;return(e.type==="dir"?1:0)-n},Gb=(t,e)=>{const n=Date.parse(t.date),r=Date.parse(e.date);return n-r},qb=(t,e)=>{const n=Date.parse(t.created_time),r=Date.parse(e.created_time);return n-r},Yb=(t,e)=>{const n=t.name.toLowerCase(),r=e.name.toLowerCase();return n.localeCompare(r)},Jb=(t,e)=>t.bytes-e.bytes,Kq=(t,e)=>{const n=(r,a)=>{switch(e){case"date-asc":return Gb(r,a);case"date-desc":return Gb(a,r);case"created-time-asc":return qb(r,a);case"created-time-desc":return qb(a,r);case"name-asc":return Yb(r,a);case"name-desc":return Yb(a,r);case"size-asc":return Jb(r,a);case"size-desc":return Jb(a,r);default:throw new Error(`Invalid sort method: ${e}`)}};return t.slice().sort((r,a)=>jW(r,a)||n(r,a))};/*! * pinia v2.1.3 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Nx;const Gu=t=>Nx=t,Rx=Symbol();function ud(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ao;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ao||(Ao={}));function WW(){const t=bd(!0),e=t.run(()=>z({}));let n=[],r=[];const a=ru({install(i){Gu(a),a._a=i,i.provide(Rx,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!$9?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}const $x=()=>{};function Xb(t,e,n,r=$x){t.push(e);const a=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&tu()&&wd(a),a}function ri(t,...e){t.slice().forEach(n=>{n(...e)})}const HW=t=>t();function cd(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],a=t[n];ud(a)&&ud(r)&&t.hasOwnProperty(n)&&!dt(r)&&!Dr(r)?t[n]=cd(a,r):t[n]=r}return t}const VW=Symbol();function UW(t){return!ud(t)||!t.hasOwnProperty(VW)}const{assign:Jr}=Object;function KW(t){return!!(dt(t)&&t.effect)}function GW(t,e,n,r){const{state:a,actions:i,getters:o}=e,s=n.state.value[t];let l;function u(){s||(n.state.value[t]=a?a():{});const c=Z0(n.state.value[t]);return Jr(c,i,Object.keys(o||{}).reduce((d,v)=>(d[v]=ru(V(()=>{Gu(n);const h=n._s.get(t);return o[v].call(h,h)})),d),{}))}return l=Dx(t,u,e,n,r,!0),l}function Dx(t,e,n={},r,a,i){let o;const s=Jr({actions:{}},n),l={deep:!0};let u,c,d=[],v=[],h;const f=r.state.value[t];!i&&!f&&(r.state.value[t]={}),z({});let p;function m(I){let T;u=c=!1,typeof I=="function"?(I(r.state.value[t]),T={type:Ao.patchFunction,storeId:t,events:h}):(cd(r.state.value[t],I),T={type:Ao.patchObject,payload:I,storeId:t,events:h});const N=p=Symbol();Ke().then(()=>{p===N&&(u=!0)}),c=!0,ri(d,T,r.state.value[t])}const g=i?function(){const{state:T}=n,N=T?T():{};this.$patch(R=>{Jr(R,N)})}:$x;function y(){o.stop(),d=[],v=[],r._s.delete(t)}function b(I,T){return function(){Gu(r);const N=Array.from(arguments),R=[],F=[];function L(P){R.push(P)}function j(P){F.push(P)}ri(v,{args:N,name:I,store:_,after:L,onError:j});let D;try{D=T.apply(this&&this.$id===t?this:_,N)}catch(P){throw ri(F,P),P}return D instanceof Promise?D.then(P=>(ri(R,P),P)).catch(P=>(ri(F,P),Promise.reject(P))):(ri(R,D),D)}}const w={_p:r,$id:t,$onAction:Xb.bind(null,v),$patch:m,$reset:g,$subscribe(I,T={}){const N=Xb(d,I,T.detached,()=>R()),R=o.run(()=>pe(()=>r.state.value[t],F=>{(T.flush==="sync"?c:u)&&I({storeId:t,type:Ao.direct,events:h},F)},Jr({},l,T)));return N},$dispose:y},_=ct(w);r._s.set(t,_);const C=r._a&&r._a.runWithContext||HW,E=r._e.run(()=>(o=bd(),C(()=>o.run(e))));for(const I in E){const T=E[I];if(dt(T)&&!KW(T)||Dr(T))i||(f&&UW(T)&&(dt(T)?T.value=f[I]:cd(T,f[I])),r.state.value[t][I]=T);else if(typeof T=="function"){const N=b(I,T);E[I]=N,s.actions[I]=T}}return Jr(_,E),Jr(De(_),E),Object.defineProperty(_,"$state",{get:()=>r.state.value[t],set:I=>{m(T=>{Jr(T,I)})}}),r._p.forEach(I=>{Jr(_,o.run(()=>I({store:_,app:r._a,pinia:r,options:s})))}),f&&i&&n.hydrate&&n.hydrate(_.$state,f),u=!0,c=!0,_}function ws(t,e,n){let r,a;const i=typeof e=="function";typeof t=="string"?(r=t,a=i?n:e):(a=t,r=t.id);function o(s,l){const u=QE();return s=s||(u?ot(Rx,null):null),s&&Gu(s),s=Nx,s._s.has(r)||(i?Dx(r,e,a,s):GW(r,a,s)),s._s.get(r)}return o.$id=r,o}function qW(t){{t=De(t);const e={};for(const n in t){const r=t[n];(dt(r)||Dr(r))&&(e[n]=sn(t,n))}return e}}function YW(t){return/^(?:\/|[a-z]:)/i.test($i(t))}function $i(t){if(!t)return"";t=t.replace(/\\/g,"/"),t=t.replace(/\/+/g,"/");const e=t.split("/"),n=[];for(let i=0;i{const n=YW(t)?t:$i(Lx(e,t));return $i(n)},Gq=t=>{t=$i(t);const e=t.split("/").filter(n=>n);return e[0].endsWith(":")&&(e[0]=e[0]+"/"),e};function qq(t){const e=t.lastIndexOf("/"),n=t.lastIndexOf("\\"),r=Math.max(e,n);return r===-1?".":t.substring(0,r)}const Fx=t=>Zr({...t,name:typeof t.name=="string"?t.name:t.nameFallbackStr??""}),Bx=t=>({...t,panes:t.panes.map(Fx)}),JW=t=>{var n;if(!t.panes.some(r=>r.type==="workspace-snapshot"))return Bx(t);const e=t.panes.filter(r=>r.type!=="workspace-snapshot").map(Fx);return{...t,panes:e,key:((n=TF(e))==null?void 0:n.key)??""}},zx=["defaultChangeIndchecked","defaultSeedChangeChecked","darkModeControl","dontShowAgainNewImgOpts","defaultSortingMethod","defaultGridCellWidth","dontShowAgain","lang","enableThumbnail","tabListHistoryRecord","recent","gridThumbnailResolution","longPressOpenContextMenu","onlyFoldersAndImages","fileTypeFilter","shortcut","ignoredConfirmActions","previewBgOpacity","defaultInitinalPage","autoRefreshWalkMode","autoRefreshWalkModePosLimit","autoRefreshNormalFixedMode","showCommaInInfoPanel","batchDownloadCompress","batchDownloadPackOnly","magicSwitchTiktokView","showRandomImageInStartup","showTiktokNavigator"];function XW(t){if(t<768)return 176;{const e=160+Math.floor((t-768)/128)*16;return Math.min(e,256)}}const Nn=ws(Op+"useGlobalStore",()=>{const t=z(),e=z([]),n=z(!0),r=z(512),a=z(Pp.CREATED_TIME_DESC),i=z(256);try{typeof parent<"u"&&parent.window&&(i.value=XW(parent.window.innerHeight))}catch(L){console.error(L)}const o=z("auto"),s=()=>({type:"empty",name:Te("emptyStartPage"),key:mr()}),l=z([]);Ve(()=>{const L=s();l.value.push({panes:[L],key:L.key,id:mr()})});const u=z(),c=z(new Array),d=Date.now(),v=z(),h=()=>{var j;const L=De(l.value).map(Bx);((j=v.value)==null?void 0:j[0].time)!==d?v.value=[{tabs:L,time:d},...v.value??[]]:v.value[0].tabs=L,v.value=v.value.slice(0,2)},f=async(L,j,D)=>{let P=l.value.map(k=>k.panes).flat().find(k=>k.type==="tag-search-matched-image-grid"&&k.id===j);if(P){P.selectedTagIds=Zr(D);return}else P={type:"tag-search-matched-image-grid",id:j,selectedTagIds:Zr(D),key:mr(),name:Te("searchResults")};const O=l.value[L+1];O?(O.key=P.key,O.panes.push(P)):l.value.push({panes:[P],key:P.key,id:mr()})},p=z(jS());pe(p,L=>gp.global.locale.value=L);const m=z(!1),g=z({delete:"",download:""}),y=z({}),b=V(()=>{const L=["outdir_extras_samples","outdir_save","outdir_txt2img_samples","outdir_img2img_samples","outdir_img2img_grids","outdir_txt2img_grids"],j=e.value.filter(D=>L.includes(D.key)).map(D=>[D.zh,D.dir]);return{...Object.fromEntries(j),...y.value}}),w=new Map,_=ct({deleteOneOnly:!1}),C=hW(),E=V(()=>{const L=()=>{try{return parent.location.search.includes("theme=dark")}catch{return!1}};return(o.value==="auto"?C.value||L():o.value==="dark")?"dark":"light"}),I=L=>{var j;try{L=L.trim();const D=b.value,P=$i(L),O=[];for(const[k,$]of Object.entries(D))if(k&&$){if(L===$||P===$)return k;O.push(P.replace($,"$"+k))}return((j=O.sort((k,$)=>k.length-$.length))==null?void 0:j[0])??L}catch(D){return console.error(D),L}},T=z(.6),N=z(!1),R=z(!0),F=z(!1);return{computedTheme:E,showTiktokNavigator:F,darkModeControl:o,defaultSortingMethod:a,defaultGridCellWidth:i,defaultChangeIndchecked:z(!0),defaultSeedChangeChecked:z(!1),pathAliasMap:b,createEmptyPane:s,lang:p,tabList:l,conf:t,quickMovePaths:e,enableThumbnail:n,dragingTab:u,saveRecord:h,recent:c,tabListHistoryRecord:v,gridThumbnailResolution:r,longPressOpenContextMenu:m,openTagSearchMatchedImageGridInRight:f,onlyFoldersAndImages:z(!0),fileTypeFilter:z(["image","video","audio"]),keepMultiSelect:z(!1),fullscreenPreviewInitialUrl:z(""),shortcut:g,pageFuncExportMap:w,dontShowAgain:z(!1),dontShowAgainNewImgOpts:z(!1),ignoredConfirmActions:_,getShortPath:I,extraPathAliasMap:y,previewBgOpacity:T,defaultInitinalPage:z("empty"),autoRefreshWalkMode:z(!0),autoRefreshWalkModePosLimit:z(128),autoRefreshNormalFixedMode:z(!0),showCommaInInfoPanel:z(!1),batchDownloadCompress:z(!1),batchDownloadPackOnly:z(!1),magicSwitchTiktokView:N,showRandomImageInStartup:R}},{persist:{paths:zx}}),ZW=ws(Op+"useWorkspeaceSnapshot",()=>{const t=Nn(),e=a=>{const i=De(t.tabList).map(JW);return{id:Date.now()+(Math.random()*1e5).toFixed(0),name:a,tabs:i}},n=z([]);return pe(()=>{var a;return(a=t.conf)==null?void 0:a.app_fe_setting},a=>{if(a&&Ku()){const s=Object.keys(a).filter(l=>l.startsWith("workspace_snapshot_")).map(l=>a[l]);n.value=s}},{immediate:!0}),{createSnapshot:e,snapshots:n,addSnapshot:async a=>{n.value.push(a),await Mx(`workspace_snapshot_${a.id}`,a)}}},{persist:{paths:["snapshots"]}}),Qb=async({global_setting:t,sd_cwd:e,home:n,extra_paths:r,cwd:a})=>{const i=Ax(t,"outdir_grids","outdir_extras_samples","outdir_img2img_grids","outdir_img2img_samples","outdir_grids","outdir_extras_samples","outdir_samples","outdir_txt2img_grids","outdir_txt2img_samples","outdir_save");i.outdir_extras_samples??(i.outdir_extras_samples="outputs/extras-images"),i.outdir_img2img_grids??(i.outdir_img2img_grids="outputs/img2img-grids"),i.outdir_img2img_samples??(i.outdir_img2img_samples="outputs/img2img-images"),i.outdir_save??(i.outdir_save="log/images"),i.outdir_txt2img_grids??(i.outdir_txt2img_grids="outputs/txt2img-grids"),i.outdir_txt2img_samples??(i.outdir_txt2img_samples="outputs/txt2img-images");const o={...i,cwd:e,home:n,desktop:`${n}/Desktop`};Object.keys(o).forEach(d=>{const v=d;if(o[v])try{o[v]=Zb(o[v],e)}catch(h){console.error(h)}});const s=await FW(Object.values(o).filter(d=>d)),l={outdir_txt2img_samples:Te("t2i"),outdir_img2img_samples:Te("i2i"),outdir_save:Te("saveButtonSavesTo"),outdir_extras_samples:Te("extra"),outdir_grids:Te("gridImage"),outdir_img2img_grids:Te("i2i-grid"),outdir_samples:Te("image"),outdir_txt2img_grids:Te("t2i-grid"),cwd:Te("workingFolder"),home:"home",desktop:Te("desktop")},u=Nn();u.extraPathAliasMap={home:n,[Te("desktop")]:o.desktop,[Te("workingFolder")]:a,[Te("t2i")]:o.outdir_txt2img_samples,[Te("i2i")]:o.outdir_img2img_samples,...r.filter(d=>d.alias).reduce((d,v)=>(d[v.alias]=Zb(v.path,e),d),{})},await Fa(0);const c=Object.keys(l).filter(d=>s[o[d]]).map(d=>{const v=d;return{key:v,zh:l[v],dir:o[v],can_delete:!1,types:["preset"]}}).concat(r.map(d=>({key:d.path,zh:d.alias||u.getShortPath(d.path),dir:d.path,can_delete:!0,types:d.types})));return VS(c,d=>d.key+d.types.join())};const jx={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let n=0;this.panes=this.panes.map((r,a)=>(r.size=a===e?r.max:r.min,a!==e&&(n+=r.min),r)),this.panes[e].size-=n,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:n-e.left,y:r-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),a=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(t),a),r);let o=[e,e+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const u=s.max<100&&i>=s.max+n.prevPanesSize,c=l.max<100&&i<=100-(l.max+this.sumNextPanesSize(e+1));if(u||c){u?(s.size=s.max,l.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(e+1),0),l.size=l.max);return}if(this.pushOtherPanes){const d=this.doPushOtherPanes(n,i);if(!d)return;({sums:n,panesToResize:o}=d),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}s!==null&&(s.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(t,e){const n=this.touch.activeSplitter,r=[n,n+1];return e{i>r[0]&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,i)=>{i>0&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[r[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,t.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((a,i)=>{i>n&&i{i=n+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[r[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:r}},sumPrevPanesSize(t){return this.panes.reduce((e,n,r)=>e+(re+(r>t+1?n.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),n=t.classList.contains("splitpanes__splitter");!e&&!n&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,e,n=!1){const r=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),n||(a.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=i=>this.onMouseDown(i,r)),a.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(a.ondblclick=i=>this.onSplitterDblClick(i,r+1)),e.parentNode.insertBefore(a,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let e=0;t.forEach(n=>{n.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,n,!0):e&&this.addSplitter(e,n),e++)})},requestUpdate({target:t,...e}){const n=this.indexedPanes[t._.uid];Object.entries(e).forEach(([r,a])=>n[r]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===t.$el));const n=parseFloat(t.minSize),r=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,i)=>a.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(r=>r.id===t._.uid),n=this.panes.splice(e,1)[0];this.panes.forEach((r,a)=>r.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:e}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const n=[],r=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&n.push(a.id),a.size<=a.min&&r.push(a.id)}),e>.1&&this.readjustSizes(e,n,r)},initialPanesSizing(){let t=100;const e=[],n=[];let r=0;this.panes.forEach(i=>{t-=i.size,i.size!==null&&r++,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)});let a=100;t>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(t/(this.panesCount-r),i.max),i.min)),a-=i.size}),a>.1&&this.readjustSizes(t,e,n))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let n=100/this.panesCount,r=0;const a=[],i=[];t&&t.givenSize!==null&&(n=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,a,i))},readjustSizes(t,e,n){let r;t>0?r=t/(this.panesCount-e.length):r=t/(this.panesCount-n.length),this.panes.forEach((a,i)=>{if(t>0&&!e.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),s=o-a.size;t-=s,a.size=o}else if(!n.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),s=o-a.size;t-=s,a.size=o}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,n)=>{e.ondblclick=t?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return sa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},QW=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},eH={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function tH(t,e,n,r,a,i){return Oe(),Fe("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=o=>i.onPaneClick(o,t._.uid)),style:Pn(t.style)},[_l(t.$slots,"default")],4)}const fd=QW(eH,[["render",tH]]);const nH={style:{position:"relative"}},rH=he({__name:"edgeTrigger",props:{tabIdx:{}},setup(t){const e=t,n=Nn(),r=z(),a=z(),{isOutside:i}=Hb(a),{isOutside:o}=Hb(r),s=V(()=>!i.value&&!!n.dragingTab),l=V(()=>!o.value&&!!n.dragingTab&&!s.value),u=(c,d)=>{var h,f,p,m;const v=MW(((h=c.dataTransfer)==null?void 0:h.getData("text"))??"{}");if(v&&(console.log("on-drop",d,v),(v==null?void 0:v.from)==="tab-drag")){if(c.stopPropagation(),n.dragingTab=void 0,d==="insert"&&v.tabIdx===e.tabIdx)return;const g=n.tabList,y=g[v.tabIdx].panes[v.paneIdx];g[v.tabIdx].panes.splice(v.paneIdx,1),d==="add-right"?(g[e.tabIdx].key=((f=g[e.tabIdx].panes[v.paneIdx-1])==null?void 0:f.key)??g[e.tabIdx].panes[0].key,g.splice(e.tabIdx+1,0,{panes:[y],key:y.key,id:mr()})):(g[v.tabIdx].key=((p=g[v.tabIdx].panes[v.paneIdx-1])==null?void 0:p.key)??((m=g[v.tabIdx].panes[0])==null?void 0:m.key),g[e.tabIdx].panes.push(y),g[e.tabIdx].key=y.key),g[v.tabIdx].panes.length===0&&g.splice(v.tabIdx,1)}};return(c,d)=>(Oe(),Fe("div",{class:qt(["wrap",{accept:l.value}]),ref_key:"trigger",ref:r,onDragover:d[2]||(d[2]=An(()=>{},["prevent"])),onDrop:d[3]||(d[3]=An(v=>u(v,"insert"),["prevent"]))},[$e("div",{class:qt(["iib-tab-edge-trigger",{accept:s.value}]),ref_key:"edgeTrigger",ref:a,onDragover:d[0]||(d[0]=An(()=>{},["prevent"])),onDrop:d[1]||(d[1]=An(v=>u(v,"add-right"),["prevent"]))},null,34),$e("div",nH,[_l(c.$slots,"default",{},void 0,!0)])],34))}});const Ui=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},aH=Ui(rH,[["__scopeId","data-v-f7ccb75b"]]);const Wx=ws("useImgSliStore",()=>{const t=z(!1),e=z(!1),n=z(!1),r=z(),a=z(),i=Nn(),o=V(()=>{var l;const s=i.tabList;for(const u of s)if(((l=u.panes.find(c=>c.key===u.key))==null?void 0:l.type)==="img-sli")return!0;return!1});return{drawerVisible:e,fileDragging:t,left:r,right:a,imgSliActived:o,opened:n}});var iH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};const oH=iH;function e0(t){for(var e=1;e(kd("data-v-9c9e2710"),t=t(),Md(),t),WH={key:0,class:"dragging-port-wrap"},HH={class:"content"},VH={key:0,class:"img-wrap"},UH={key:1},KH=jH(()=>$e("div",{style:{padding:"16px"}},null,-1)),GH={key:0,class:"img-wrap"},qH={key:1},YH={key:0,class:"tips",style:{"max-width":"30vw"}},JH={class:"actions"},XH=he({__name:"DraggingPort",setup(t){const e=Wx(),n=Nn(),{left:r,right:a}=qW(e),i=async(l,u)=>{const c=OW(l);if(c){const d=c.nodes[0];if(!Tx(d.name))return;e[u]=d}},o=()=>{e.left=void 0,e.right=void 0,e.opened=!1},s=()=>{bp(r.value&&a.value);const l={type:"img-sli",left:r.value,right:a.value,name:`${Te("imgCompare")} ( ${r.value.name} vs ${a.value.name})`,key:mr()};n.tabList[0].panes.push(l),n.tabList[0].key=l.key};return(l,u)=>{const c=Z8,d=Xt;return Oe(),mt(Yn,null,{default:Mt(()=>[(be(e).fileDragging||be(r)||be(a)||be(e).opened)&&!be(e).imgSliActived?(Oe(),Fe("div",WH,[$e("h2",null,St(l.$t("imgCompare")),1),$e("div",HH,[$e("div",{class:"left port",onDragover:u[1]||(u[1]=An(()=>{},["prevent"])),onDrop:u[2]||(u[2]=An(v=>i(v,"left"),["prevent"]))},[be(r)?(Oe(),Fe("div",VH,[S(c,{src:be(Vb)(be(r)),preview:{src:be(ua)(be(r))}},null,8,["src","preview"]),S(be(Wo),{class:"close",onClick:u[0]||(u[0]=v=>r.value=void 0)})])):(Oe(),Fe("div",UH,St(l.$t("dragImageHere")),1))],32),KH,$e("div",{class:"right port",onDragover:u[4]||(u[4]=An(()=>{},["prevent"])),onDrop:u[5]||(u[5]=An(v=>i(v,"right"),["prevent"]))},[be(a)?(Oe(),Fe("div",GH,[S(c,{src:be(Vb)(be(a)),preview:{src:be(ua)(be(a))}},null,8,["src","preview"]),S(be(Wo),{class:"close",onClick:u[3]||(u[3]=v=>a.value=void 0)})])):(Oe(),Fe("div",qH,St(l.$t("dragImageHere")),1))],32)]),be(e).opened?(Oe(),Fe("p",YH," Tips: "+St(l.$t("imageCompareTips")),1)):$t("",!0),$e("div",JH,[be(r)&&be(a)?(Oe(),mt(d,{key:0,type:"primary",onClick:u[6]||(u[6]=v=>be(e).drawerVisible=!0)},{default:Mt(()=>[_n(St(l.$t("confirm")),1)]),_:1})):$t("",!0),be(r)&&be(a)?(Oe(),mt(d,{key:1,type:"primary",onClick:s},{default:Mt(()=>[_n(St(l.$t("confirm"))+"("+St(l.$t("openInNewTab"))+")",1)]),_:1})):$t("",!0),S(d,{style:{"margin-left":"16px"},onClick:o},{default:Mt(()=>[_n(St(l.$t("close")),1)]),_:1})])])):$t("",!0)]),_:1})}}});const ZH=Ui(XH,[["__scopeId","data-v-9c9e2710"]]),QH=ws("useTiktokStore",()=>{const t=z(!1),e=z(!1),n=z([]),r=z(0),a=V(()=>n.value[r.value]||null),i=V(()=>r.valuer.value>0),s=V(()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=768);return{visible:t,isFullscreen:e,mediaList:n,currentIndex:r,currentItem:a,hasNext:i,hasPrev:o,isMobile:s,openTiktokView:(f,p=0)=>{n.value=f,r.value=Math.max(0,Math.min(p,f.length-1)),t.value=!0,s.value&&(e.value=!0)},closeView:()=>{e.value=!1,n.value=[],r.value=0,setTimeout(()=>{t.value=!1},300)},next:()=>{i.value&&r.value++},prev:()=>{o.value&&r.value--},goToIndex:f=>{f>=0&&f{e.value=!e.value}}}),eV=async()=>(await We.value.get("/db/basic_info")).data,Yq=async()=>(await We.value.get("/db/expired_dirs")).data,Jq=async()=>{await We.value.post("/db/update_image_data",{},{timeout:1/0})},Xq=async t=>{await We.value.post("/db/update_tag",t)},Zq=async(t,e)=>(await We.value.post("/db/match_images_by_tags",{...t,folder_paths:(t.folder_paths_str??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),cursor:e})).data,tV=async t=>(await We.value.post("/db/add_custom_tag",t)).data,nV=async t=>(await We.value.post("/db/toggle_custom_tag_to_img",t)).data,Qq=async t=>{await We.value.post("/db/remove_custom_tag",t)},eY=async()=>(await We.value.get("/db/random_images")).data,tY=async t=>(await We.value.post("/db/search_by_substr",t)).data,Hx="/db/extra_paths",nY=async t=>{await We.value.post(Hx,t)},rY=async t=>{await We.value.delete(Hx,{data:t})},aY=async t=>{await We.value.post("/db/alias_extra_path",t)},rV=async t=>(await We.value.post("/db/get_image_tags",{paths:t})).data,aV=()=>We.value.post("/db/rebuild_index"),iY=t=>We.value.post("/db/batch_update_image_tag",t),iV=async t=>(await We.value.post("/db/rename",t)).data,oY=async t=>(await We.value.post("/db/cluster_iib_output_job_start",t)).data,sY=async t=>(await We.value.get("/db/cluster_iib_output_job_status",{params:{job_id:t}})).data,lY=async t=>(await We.value.post("/db/cluster_iib_output_cached",t)).data,uY=async t=>(await We.value.post("/db/search_iib_output_by_prompt",t,{timeout:1/0})).data,cY=async t=>(await We.value.post("/db/cluster_tag_graph",t,{timeout:6e4})).data;function oV(){const t=[];for(let a=0;a<72;a++){const o=`hsl(${a*7.2}, 90%, 35%)`;t.push(o)}return t}const u0=oV(),qu=ws("useTagStore",()=>{const t=ct(new Map),e=async l=>{if(l=l.filter(u=>!t.has(u)),!!l.length)try{l.forEach(c=>t.set(c,[]));const u=await rV(l);for(const c in u)t.set(c,u[c])}catch{l.forEach(u=>t.delete(u))}},n=z(new Map),r=l=>{l&&n.value.set(l.id.toString(),l.color)},a=l=>{const u=l.id.toString();let c=n.value.get(u);if(c)return c;if(!c&&l.color)return n.value.set(u,l.color),l.color;if(!c){const d=jl.hash.sha256.hash(u),v=parseInt(jl.codec.hex.fromBits(d),16)%u0.length;c=u0[v],n.value.set(u,c)}return c},i=async l=>{l.forEach(u=>t.delete(u)),await e(l)},o=l=>({id:l.name,count:0,display_name:null,type:"temp",color:"",...l});return{set:(l,u)=>{const c=u.map(d=>o(typeof d=="string"?{name:d}:d));t.set(l,c)},colorCache:n,tagMap:t,getColor:a,fetchImageTags:e,refreshTags:i,tagConvert:o,notifyCacheUpdate:r}}),fY=async t=>(await We.value.get("/files",{params:{folder_path:t}})).data,dY=async t=>(await We.value.post("/delete_files",{file_paths:t})).data,vY=async(t,e,n)=>(await We.value.post("/move_files",{file_paths:t,dest:e,create_dest_folder:n})).data,pY=async(t,e,n)=>(await We.value.post("/copy_files",{file_paths:t,dest:e,create_dest_folder:n})).data,sV=async t=>{await We.value.post("/mkdirs",{dest_folder:t})},hY=async t=>(await We.value.post("/batch_get_files_info",{paths:t})).data;let uo,Wc;const lV=async(t,e,n="image/webp")=>{const a=await(await fetch(t)).arrayBuffer();return new File([a],e,{type:n})},uV=(t,e="image/webp")=>{if(!Wc){uo=document.createElement("canvas");const a=uo.getContext("2d");bp(a),Wc=a}const{videoHeight:n,videoWidth:r}=t;return uo.width=r,uo.height=n,Wc.drawImage(t,0,0,r,n),uo.toDataURL(e)},Vx=()=>{const t=Array.from(document.querySelectorAll(".ant-image-preview-wrap")).find(e=>e.style.display!=="none");t?(console.log("closeImageFullscreenPreview success"),cV(t)):console.log("closeImageFullscreenPreview not found")};function cV(t){if(!(t instanceof HTMLElement))throw new Error("The provided value is not an HTMLElement.");const e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0,target:t});t.dispatchEvent(e)}const gY=(t,e)=>{const n=e.querySelector(`.idx-${t} .ant-image-img`);n?n.click():console.log("openImageFullscreenPreview error: not found",t,e)},mY=t=>{const e=z("");return new Promise(n=>{xt.confirm({title:Te("inputFolderName"),content:()=>S(kt,{value:e.value,"onUpdate:value":r=>e.value=r},null),async onOk(){if(!e.value)return;const r=Lx(t,e.value);await sV(r),n()}})})},yY=()=>S("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[_n("Tips: "),Te("multiSelectTips")]),bY=(t,e,n)=>{const r=qu(),a=Nn(),i=d=>{var v;return!!((v=r.tagMap.get(t.fullpath))!=null&&v.some(h=>h.id===d))},o=z(null),s=async()=>{if(!o.value)return;const d=o.value;d.pause();const v=uV(d);await BW({path:t.fullpath,base64_img:v,updated_time:t.date}),t.cover_url=URL.createObjectURL(await lV(v,"cover")),Jt.success(Te("success")+"! "+Te("clearCacheIfNotTakeEffect"))},l={margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease","user-select":"none"},u=xt.confirm({width:"80vw",title:t.name,icon:null,content:()=>S("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[S("video",{ref:o,style:{maxHeight:xW?"80vh":"60vh",maxWidth:"100%",minWidth:"70%"},src:TW(t),controls:!0,autoplay:!0},null),S("div",{style:{marginTop:"4px"}},[S("div",{onClick:Gl,style:{background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...l}},[Te("addNewCustomTag")]),a.conf.all_custom_tags.map(d=>S("div",{key:d.id,onClick:()=>e==null?void 0:e(d.id),style:{background:i(d.id)?r.getColor(d):"var(--zp-primary-background)",color:i(d.id)?"white":r.getColor(d),border:`2px solid ${r.getColor(d)}`,...l}},[d.name]))]),S("div",{class:"actions",style:{marginTop:"16px"}},[S(Xt,{onClick:()=>Ex([ua(t,!0)])},{icon:S(ZC,null,null),default:Te("download")}),n&&S(Xt,{onClick:c,type:"primary"},{default:Te("tiktokView")}),S(Xt,{onClick:s},{default:Te("setCurrFrameAsVideoPoster")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"});function c(){n==null||n(),Vx(),u.destroy()}},wY=(t,e,n)=>{const r=qu(),a=Nn(),i=u=>{var c;return!!((c=r.tagMap.get(t.fullpath))!=null&&c.some(d=>d.id===u))},o={margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease","user-select":"none"},s=xt.confirm({width:"60vw",title:t.name,icon:null,content:()=>S("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[S("div",{style:{fontSize:"80px",marginBottom:"16px"}},[_n("🎵")]),S("audio",{style:{width:"100%",maxWidth:"500px"},src:PW(t),controls:!0,autoplay:!0},null),S("div",{style:{marginTop:"16px"}},[S("div",{onClick:Gl,style:{background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...o}},[Te("addNewCustomTag")]),a.conf.all_custom_tags.map(u=>S("div",{key:u.id,onClick:()=>e==null?void 0:e(u.id),style:{background:i(u.id)?r.getColor(u):"var(--zp-primary-background)",color:i(u.id)?"white":r.getColor(u),border:`2px solid ${r.getColor(u)}`,...o}},[u.name]))]),S("div",{class:"actions",style:{marginTop:"16px"}},[S(Xt,{onClick:()=>Ex([ua(t,!0)])},{icon:S(ZC,null,null),default:Te("download")}),n&&S(Xt,{onClick:l,type:"primary"},{default:Te("tiktokView")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"});function l(){n==null||n(),Vx(),s.destroy()}},_Y=()=>{xt.confirm({title:Te("confirmRebuildImageIndex"),onOk:async()=>{await aV(),Uu.emit("searchIndexExpired"),Jt.success(Te("rebuildComplete"))}})},CY=t=>{const e=z(t.split(/[\\/]/).pop()??"");return new Promise(n=>{xt.confirm({title:Te("rename"),content:()=>S(kt,{value:e.value,"onUpdate:value":r=>e.value=r},null),async onOk(){if(!e.value)return;const r=await iV({path:t,name:e.value});n(r.new_path)}})})},Gl=()=>{const t=z(""),e=Nn();return new Promise(n=>{xt.confirm({title:Te("addNewCustomTag"),content:()=>S(kt,{value:t.value,"onUpdate:value":r=>t.value=r},null),async onOk(){var i;if(!t.value)return;const r=await eV(),a=await tV({tag_name:t.value});if(a.type!=="custom")throw Jt.error(Te("existInOtherType")),new Error(Te("existInOtherType"));if(r.tags.find(o=>o.id===a.id))throw Jt.error(Te("alreadyExists")),new Error(Te("alreadyExists"));(i=e.conf)==null||i.all_custom_tags.push(a),Jt.success(Te("success")),n(t.value)}})})},fV=t=>(kd("data-v-c88a67da"),t=t(),Md(),t),dV={key:0,class:"debug-info"},vV={class:"debug-label"},pV={key:0,class:"media-content"},hV=["src","controls","loop"],gV={key:1,class:"tiktok-media tiktok-audio-container"},mV=fV(()=>$e("div",{class:"audio-icon"},"🎵",-1)),yV={class:"audio-filename"},bV=["src","controls","loop"],wV=["src"],_V={class:"tiktok-controls"},CV=["title"],SV=["title"],xV=["title"],TV=["title"],EV=["title"],OV={class:"autoplay-label"},PV=["title"],AV={key:1,class:"tiktok-navigation"},IV={class:"tiktok-bottom-overlay"},kV={key:0,class:"filename-display"},MV={class:"tiktok-progress"},NV={class:"progress-bar-row"},RV={class:"progress-bar"},$V={class:"progress-text"},DV={key:0,class:"tiktok-tags-panel"},LV={class:"tags-header"},FV={class:"tags-content"},BV=["onClick"],zV=he({__name:"TiktokViewer",setup(t){const n=QH(),r=qu(),a=Nn(),i=Nn(),o=V(()=>({isAnimating:_.value,isDragging:I.value,bufferTransform:w.value,dragOffset:T.value,autoPlayMode:l.value,isMuted:s.value,currentIndex:n.currentIndex})),s=Sx("tiktok-viewer-muted",!0),l=z("off"),u=z(null),c=["off","5s","10s","20s"],d=V(()=>({off:Te("autoPlayOff"),"5s":Te("autoPlay5s"),"10s":Te("autoPlay10s"),"20s":Te("autoPlay20s")})),v=oe=>{switch(oe){case"5s":return 5e3;case"10s":return 1e4;case"20s":return 2e4;default:return 0}},h=V(()=>/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)||navigator.platform.toUpperCase().indexOf("MAC")>=0),f=oe=>h.value&&!oe?700:300,p=z(),m=z(),g=z([null,null,null]),y=z([null,null,null]),b=z([null,null,null]),w=z(0),_=z(!1),C=z(0),E=z(0),I=z(!1),T=z(0),N=z(!1),R=z(!0),F=()=>{R.value=!R.value},L=V(()=>b.value[1]),j=V(()=>({"tiktok-viewer":!0,"tiktok-viewer--fullscreen":n.isFullscreen,"tiktok-viewer--floating":!n.isFullscreen,"tiktok-viewer--mobile":n.isMobile})),D=oe=>{const ve=(oe-1)*100,Xe=w.value+T.value;return{transform:`translateY(${ve+Xe}%)`,transition:_.value&&!I.value?"transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)":"none"}},P=()=>{u.value&&(clearTimeout(u.value),u.value=null)},O=()=>{if(P(),l.value==="off")return;const oe=b.value[1];if(!oe||gl(oe.url))return;const ve=v(l.value);ve>0&&(u.value=window.setTimeout(()=>{!_.value&&!I.value&&(n.hasNext?ye():Se())},ve))},k=oe=>{oe===1&&l.value!=="off"&&!_.value&&setTimeout(()=>{n.hasNext?ye():Se()},500)},$=oe=>{oe===1&&l.value!=="off"&&!_.value&&setTimeout(()=>{n.hasNext?ye():Se()},500)},G=async()=>{await Fa(30);for(let oe=0;oek(oe),await ve.play()):(ve.pause(),ve.currentTime=0,ve.onended=null)}catch(Xe){console.warn(`视频播放控制失败 (index: ${oe}):`,Xe)}}for(let oe=0;oe$(oe),await ve.play()):(ve.pause(),ve.currentTime=0,ve.onended=null)}catch(Xe){console.warn(`音频播放控制失败 (index: ${oe}):`,Xe)}}},J=()=>{const oe=n.currentIndex,ve=n.mediaList;b.value=[oe>0?ve[oe-1]:null,ve[oe]||null,oe{G(),O()})},Z=oe=>{var Ie,Le,Ye,_t;if(!((Ie=L.value)==null?void 0:Ie.url))return!1;const Xe=((Le=L.value)==null?void 0:Le.fullpath)||((Ye=L.value)==null?void 0:Ye.id);return!!((_t=r.tagMap.get(Xe))!=null&&_t.some(tn=>tn.id===oe))},X=V(()=>{var oe,ve;return(ve=(oe=i.conf)==null?void 0:oe.all_custom_tags)==null?void 0:ve.find(Xe=>Xe.type==="custom"&&Xe.name==="like")}),Y=V(()=>X.value?Z(X.value.id):!1),ne=async()=>{X.value&&await le(X.value.id)},le=async oe=>{var Xe,Ie,Le,Ye,_t;if((Xe=L.value)!=null&&Xe.url)try{const tn=((Ie=L.value)==null?void 0:Ie.fullpath)||((Le=L.value)==null?void 0:Le.id),{is_remove:Ya}=await nV({tag_id:Number(oe),img_path:tn}),nn=((_t=(Ye=i.conf)==null?void 0:Ye.all_custom_tags.find(Ja=>Ja.id===oe))==null?void 0:_t.name)||Te("tag");await r.refreshTags([tn]),Jt.success(Te(Ya?"removedTagFromImage":"addedTagToImage",{tag:nn}))}catch(tn){console.error("Toggle tag error:",tn),Jt.error(Te("tagOperationFailed"))}},ge={margin:"4px",padding:"8px 16px",borderRadius:"20px",display:"inline-block",cursor:"pointer",fontWeight:"bold",transition:"0.3s all ease",userSelect:"none",fontSize:"14px"},_e=()=>{const ve=(c.indexOf(l.value)+1)%c.length;l.value=c[ve],O(),Jt.success(Te("autoPlayStatus",{mode:d.value[l.value]}))},me=(oe=!1)=>{_.value||!n.hasPrev||(P(),_.value=!0,T.value=0,w.value=100,setTimeout(()=>{n.prev(),J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},ye=(oe=!1)=>{_.value||!n.hasNext||(P(),_.value=!0,T.value=0,w.value=-100,setTimeout(()=>{n.next(),J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},Se=(oe=!1)=>{_.value||(P(),_.value=!0,T.value=0,w.value=100,setTimeout(()=>{n.currentIndex=0,J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},B=oe=>{if(_.value){oe.preventDefault();return}P(),C.value=oe.touches[0].clientY,E.value=oe.touches[0].clientY,I.value=!0,T.value=0,w.value!==0&&(w.value=0)},x=oe=>{if(_.value){oe.preventDefault();return}if(!I.value)return;E.value=oe.touches[0].clientY;const ve=E.value-C.value,Xe=window.innerHeight,Ie=ve/Xe*100;T.value=Ie,oe.preventDefault()},A=()=>{if(!I.value)return;const oe=E.value-C.value,ve=window.innerHeight,Xe=oe/ve*100;if(I.value=!1,_.value){T.value=0;return}Math.abs(Xe)>30?Xe>0&&n.hasPrev?me(!0):Xe<0&&n.hasNext?ye(!0):K():K()},W=()=>{I.value&&(I.value=!1,_.value||K())},K=()=>{_.value||(_.value=!0,T.value=0,w.value=0,setTimeout(()=>{_.value=!1,O()},300))},U=dj(oe=>{_.value||(oe.preventDefault(),P(),oe.deltaY>0&&n.hasNext?ye():oe.deltaY<0&&n.hasPrev&&me())},500),se=oe=>{if(!(!n.visible||_.value))switch(oe.key){case"ArrowUp":oe.preventDefault(),n.hasPrev&&me();break;case"ArrowDown":oe.preventDefault(),n.hasNext&&ye();break;case"Escape":oe.preventDefault(),n.closeView();break}},ie=async()=>{n.isFullscreen?await Q():await re()},re=async()=>{if(p.value&&!document.fullscreenElement)try{await p.value.requestFullscreen(),n.isFullscreen=!0}catch(oe){console.warn("无法进入全屏模式:",oe)}},Q=async()=>{if(document.fullscreenElement)try{await document.exitFullscreen(),n.isFullscreen=!1}catch(oe){console.warn("无法退出全屏模式:",oe)}},H=()=>{s.value=!s.value;const oe=g.value[1];oe&&(oe.muted=s.value);const ve=y.value[1];ve&&(ve.muted=s.value)},q=()=>{n.isFullscreen=!!document.fullscreenElement},ue=z([]),ae=z([]),fe=oe=>{oe&&(oe.pause(),oe.src="",oe.muted=!0,oe.load(),oe.parentNode&&oe.parentNode.removeChild(oe))},we=oe=>{oe&&(oe.pause(),oe.src="",oe.muted=!0,oe.load(),oe.parentNode&&oe.parentNode.removeChild(oe))};pe(ue,oe=>{for(;oe.length>5;){const ve=oe.shift();ve&&fe(ve)}},{deep:!0}),pe(ae,oe=>{for(;oe.length>5;){const ve=oe.shift();ve&&we(ve)}},{deep:!0}),pe(()=>n.visible===!1||n.mediaList.length===0,oe=>{oe||(ue.value.forEach(fe),ue.value=[],ae.value.forEach(we),ae.value=[],l.value="off")},{immediate:!0});const xe=()=>{b.value.forEach(oe=>{if(oe)if(gl(oe.url)){const ve=document.createElement("video");ve.preload="metadata",ve.src=oe.url,ue.value.push(ve)}else if(od(oe.url)){const ve=document.createElement("audio");ve.preload="metadata",ve.src=oe.url,ae.value.push(ve)}else{const ve=new Image;ve.src=oe.url}})},Pe=async()=>{const oe=n.currentItem;if(!oe)return;const ve=(oe==null?void 0:oe.fullpath)||oe.id;ve&&await r.fetchImageTags([ve])};return rW(m,F,{delay:500}),Ve(()=>{document.addEventListener("keydown",se),document.addEventListener("fullscreenchange",q),J()}),vn(()=>{document.removeEventListener("keydown",se),document.removeEventListener("fullscreenchange",q),P(),g.value.forEach(oe=>{fe(oe)}),y.value.forEach(oe=>{we(oe)}),ue.value.forEach(fe),ue.value=[],ae.value.forEach(we),ae.value=[]}),pe(()=>n.currentIndex,()=>{J(),Ke(()=>{xe(),Pe()})},{immediate:!0}),pe(()=>n.mediaList,()=>{J()},{deep:!0}),pe(()=>n.visible,oe=>{oe?(R.value=!0,Ke(()=>{J()})):(g.value.forEach(ve=>{ve&&(ve.pause(),ve.src="",ve.load())}),g.value=[null,null,null],y.value.forEach(ve=>{ve&&(ve.pause(),ve.src="",ve.load())}),y.value=[null,null,null],b.value=[null,null,null],P(),document.fullscreenElement&&Q())}),pe(()=>s.value,oe=>{g.value.forEach(ve=>{ve&&(ve.muted=oe)}),y.value.forEach(ve=>{ve&&(ve.muted=oe)})}),pe(()=>l.value,()=>{O()}),(oe,ve)=>{var Xe;return Oe(),mt(uu,{to:"body"},[be(n).visible?(Oe(),Fe("div",{key:0,ref_key:"containerRef",ref:p,class:qt(j.value),onTouchstart:B,onTouchmove:x,onTouchend:A,onTouchcancel:W,onWheel:ve[8]||(ve[8]=(...Ie)=>be(U)&&be(U)(...Ie))},[be(!1)?(Oe(),Fe("div",dV,[(Oe(!0),Fe(Re,null,Na(o.value,(Ie,Le)=>(Oe(),Fe("div",{key:Le,class:"debug-item"},[$e("span",vV,St(Le)+":",1),$e("span",{class:qt(["debug-value",{"is-true":Ie===!0,"is-false":Ie===!1}])},St(Ie),3)]))),128))])):$t("",!0),$e("div",{ref_key:"viewportRef",ref:m,class:"tiktok-viewport"},[(Oe(!0),Fe(Re,null,Na(b.value,(Ie,Le)=>(Oe(),Fe("div",{key:(Ie==null?void 0:Ie.id)||`empty-${Le}`,class:"tiktok-media-item",style:Pn(D(Le))},[Ie?(Oe(),Fe("div",pV,[be(gl)(Ie.url)&&be(n).visible?(Oe(),Fe("video",{class:"tiktok-media tiktok-video",src:Ie.url,controls:Le===1,loop:Le===1&&l.value==="off",playsinline:"",preload:"metadata",key:Ie.url,ref_for:!0,ref:Ye=>{Ye&&(g.value[Le]=Ye)}},null,8,hV)):be(od)(Ie.url)&&be(n).visible?(Oe(),Fe("div",gV,[mV,$e("div",yV,St(Ie.name||Ie.url.split("/").pop()),1),(Oe(),Fe("audio",{class:"tiktok-audio",src:Ie.url,controls:Le===1,loop:Le===1&&l.value==="off",preload:"metadata",key:Ie.url,ref_for:!0,ref:Ye=>{Ye&&(y.value[Le]=Ye)}},null,8,bV))])):(Oe(),Fe("img",{key:2,class:"tiktok-media",src:Ie.url},null,8,wV))])):$t("",!0)],4))),128))],512),dn($e("div",_V,[$e("button",{class:"control-btn close-btn",onClick:ve[0]||(ve[0]=(...Ie)=>be(n).closeView&&be(n).closeView(...Ie)),title:oe.$t("close")},[S(be(zr))],8,CV),$e("button",{class:"control-btn fullscreen-btn",onClick:ie,title:be(n).isFullscreen?oe.$t("exitFullscreen"):oe.$t("fullscreen")},[be(n).isFullscreen?(Oe(),mt(be(dH),{key:0})):(Oe(),mt(be(gH),{key:1}))],8,SV),$e("button",{class:"control-btn sound-btn",onClick:H,title:be(s)?oe.$t("soundOn"):oe.$t("soundOff")},[be(s)?(Oe(),mt(be(DH),{key:1})):(Oe(),mt(be(MH),{key:0}))],8,xV),X.value?(Oe(),Fe("button",{key:0,class:qt(["control-btn like-btn",{"like-active":Y.value}]),onClick:ne,title:Y.value?oe.$t("unlike"):oe.$t("like")},[Y.value?(Oe(),mt(be(wH),{key:0})):(Oe(),mt(be(xH),{key:1}))],10,TV)):$t("",!0),$e("button",{class:qt(["control-btn autoplay-btn",{"autoplay-active":l.value!=="off"}]),onClick:_e,title:oe.$t("autoPlayTooltip",{mode:d.value[l.value]})},[S(be(PH)),$e("span",OV,St(d.value[l.value]),1)],10,EV),$e("button",{class:"control-btn tags-btn",onClick:ve[1]||(ve[1]=Ie=>N.value=!N.value),title:oe.$t("tags")},[S(be(zH))],8,PV)],512),[[$r,R.value]]),be(a).showTiktokNavigator?dn((Oe(),Fe("div",AV,[be(n).hasPrev?(Oe(),Fe("div",{key:0,class:"nav-indicator nav-prev",onTouchstart:ve[2]||(ve[2]=An(Ie=>me(!1),["prevent"])),onClick:ve[3]||(ve[3]=Ie=>me(!1))},[S(be(n3))],32)):$t("",!0),be(n).hasNext?(Oe(),Fe("div",{key:1,class:"nav-indicator nav-next",onTouchstart:ve[4]||(ve[4]=An(Ie=>ye(!1),["prevent"])),onClick:ve[5]||(ve[5]=Ie=>ye(!1))},[S(be(L_))],32)):$t("",!0)],512)),[[$r,R.value]]):$t("",!0),dn($e("div",IV,[(Xe=L.value)!=null&&Xe.name?(Oe(),Fe("div",kV,St(L.value.name),1)):$t("",!0)],512),[[$r,R.value]]),dn($e("div",MV,[$e("div",NV,[$e("div",RV,[$e("div",{class:"progress-fill",style:Pn({width:`${(be(n).currentIndex+1)/be(n).mediaList.length*100}%`})},null,4)]),$e("span",$V,St(be(n).currentIndex+1)+" / "+St(be(n).mediaList.length),1)])],512),[[$r,R.value]]),S(Yn,{name:"slide-up"},{default:Mt(()=>{var Ie;return[N.value?(Oe(),Fe("div",DV,[$e("div",LV,[$e("h3",null,St(oe.$t("tags")),1),$e("button",{onClick:ve[6]||(ve[6]=Le=>N.value=!1),class:"close-tags"},[S(be(zr))])]),$e("div",FV,[$e("div",{onClick:ve[7]||(ve[7]=(...Le)=>be(Gl)&&be(Gl)(...Le)),style:Pn({background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...ge})},St(oe.$t("addNewCustomTag")),5),(Oe(!0),Fe(Re,null,Na(((Ie=be(i).conf)==null?void 0:Ie.all_custom_tags)||[],Le=>(Oe(),Fe("div",{key:Le.id,onClick:Ye=>le(Le.id),style:Pn({background:Z(Le.id)?be(r).getColor(Le):"var(--zp-primary-background)",color:Z(Le.id)?"white":be(r).getColor(Le),border:`2px solid ${be(r).getColor(Le)}`,...ge})},St(Le.name),13,BV))),128))])])):$t("",!0)]}),_:1})],34)):$t("",!0)])}}});const jV=Ui(zV,[["__scopeId","data-v-c88a67da"]]),WV={class:"container"},HV=["src"],VV=he({__name:"ImgSliSide",props:{side:{},containerWidth:{},img:{},maxEdge:{},percent:{}},setup(t){const e=t,n=id(async()=>Ax(await ld(ua(e.img)),"width","height")),r=V(()=>{let a="";const o=e.containerWidth;if(e.side==="left"?a=`calc(50% - ${(e.percent-50)/100*o}px)`:a=`calc(-50% - ${(e.percent-50)/100*o+4}px)`,e.maxEdge==="height")return`height:100%;transform: translate(${a}, -50%)`;{const s=n.value;return s?`height:${o/s.width*s.height}px;transform: translate(${a}, -50%)`:void 0}});return(a,i)=>(Oe(),Fe("div",WV,[$e("img",{class:qt(["img",[a.side]]),style:Pn(r.value),src:be(ua)(a.img),onDragstart:i[0]||(i[0]=An(()=>{},["prevent","stop"]))},null,46,HV)]))}});const c0=Ui(VV,[["__scopeId","data-v-1e5742ec"]]),UV=[["Seed","seed"],["CFG scale","cfgScale"],["Sampler","sampler"],["Steps","steps"],["Clip skip","clipSkip"],["Size","size"]],KV=new Map(UV),GV=/<(lora|hypernet):([a-zA-Z0-9_.]+):([0-9.]+)>/g,qV=/([a-zA-Z0-9_.]+)\(([a-zA-Z0-9]+)\)/,YV=(t,e)=>e.get(t.trim())??t.trim(),JV=["Template: ","Negative Template: "];function XV(t){try{return JSON.parse(encodeURIComponent(t))}catch{return t}}function f0(t,e){return typeof t=="function"?t.call(null,e):t}const ZV=t=>{try{return JSON.parse(t)}catch{return t}},QV=[{reg:/(ControlNet \d+): "([^"]+)"/g},{reg:/(Lora hashes): "([^"]+)"/g},{reg:/(Hashes): ({[^}]+})/g,key:"hashes",value:XV}];function eU(t){const e={};if(!t)return e;const n=t.match(/\nextraJsonMetaInfo:\s*(\{[\s\S]*\})\s*$/);if(n)try{e.extraJsonMetaInfo=JSON.parse(n[1]),t=t.replace(/\nextraJsonMetaInfo:\s*\{[\s\S]*\}\s*$/,"")}catch{e.extraJsonMetaInfo=n[1]}const r=t.split(` + */let Nx;const Gu=t=>Nx=t,Rx=Symbol();function ud(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ao;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ao||(Ao={}));function WW(){const t=bd(!0),e=t.run(()=>z({}));let n=[],r=[];const a=ru({install(i){Gu(a),a._a=i,i.provide(Rx,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!$9?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}const $x=()=>{};function Xb(t,e,n,r=$x){t.push(e);const a=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&tu()&&wd(a),a}function ri(t,...e){t.slice().forEach(n=>{n(...e)})}const HW=t=>t();function cd(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],a=t[n];ud(a)&&ud(r)&&t.hasOwnProperty(n)&&!dt(r)&&!Dr(r)?t[n]=cd(a,r):t[n]=r}return t}const VW=Symbol();function UW(t){return!ud(t)||!t.hasOwnProperty(VW)}const{assign:Jr}=Object;function KW(t){return!!(dt(t)&&t.effect)}function GW(t,e,n,r){const{state:a,actions:i,getters:o}=e,s=n.state.value[t];let l;function u(){s||(n.state.value[t]=a?a():{});const c=Z0(n.state.value[t]);return Jr(c,i,Object.keys(o||{}).reduce((d,v)=>(d[v]=ru(V(()=>{Gu(n);const h=n._s.get(t);return o[v].call(h,h)})),d),{}))}return l=Dx(t,u,e,n,r,!0),l}function Dx(t,e,n={},r,a,i){let o;const s=Jr({actions:{}},n),l={deep:!0};let u,c,d=[],v=[],h;const f=r.state.value[t];!i&&!f&&(r.state.value[t]={}),z({});let p;function m(I){let T;u=c=!1,typeof I=="function"?(I(r.state.value[t]),T={type:Ao.patchFunction,storeId:t,events:h}):(cd(r.state.value[t],I),T={type:Ao.patchObject,payload:I,storeId:t,events:h});const N=p=Symbol();Ke().then(()=>{p===N&&(u=!0)}),c=!0,ri(d,T,r.state.value[t])}const g=i?function(){const{state:T}=n,N=T?T():{};this.$patch(R=>{Jr(R,N)})}:$x;function y(){o.stop(),d=[],v=[],r._s.delete(t)}function b(I,T){return function(){Gu(r);const N=Array.from(arguments),R=[],F=[];function L(P){R.push(P)}function j(P){F.push(P)}ri(v,{args:N,name:I,store:_,after:L,onError:j});let D;try{D=T.apply(this&&this.$id===t?this:_,N)}catch(P){throw ri(F,P),P}return D instanceof Promise?D.then(P=>(ri(R,P),P)).catch(P=>(ri(F,P),Promise.reject(P))):(ri(R,D),D)}}const w={_p:r,$id:t,$onAction:Xb.bind(null,v),$patch:m,$reset:g,$subscribe(I,T={}){const N=Xb(d,I,T.detached,()=>R()),R=o.run(()=>pe(()=>r.state.value[t],F=>{(T.flush==="sync"?c:u)&&I({storeId:t,type:Ao.direct,events:h},F)},Jr({},l,T)));return N},$dispose:y},_=ct(w);r._s.set(t,_);const C=r._a&&r._a.runWithContext||HW,E=r._e.run(()=>(o=bd(),C(()=>o.run(e))));for(const I in E){const T=E[I];if(dt(T)&&!KW(T)||Dr(T))i||(f&&UW(T)&&(dt(T)?T.value=f[I]:cd(T,f[I])),r.state.value[t][I]=T);else if(typeof T=="function"){const N=b(I,T);E[I]=N,s.actions[I]=T}}return Jr(_,E),Jr(De(_),E),Object.defineProperty(_,"$state",{get:()=>r.state.value[t],set:I=>{m(T=>{Jr(T,I)})}}),r._p.forEach(I=>{Jr(_,o.run(()=>I({store:_,app:r._a,pinia:r,options:s})))}),f&&i&&n.hydrate&&n.hydrate(_.$state,f),u=!0,c=!0,_}function ws(t,e,n){let r,a;const i=typeof e=="function";typeof t=="string"?(r=t,a=i?n:e):(a=t,r=t.id);function o(s,l){const u=QE();return s=s||(u?ot(Rx,null):null),s&&Gu(s),s=Nx,s._s.has(r)||(i?Dx(r,e,a,s):GW(r,a,s)),s._s.get(r)}return o.$id=r,o}function qW(t){{t=De(t);const e={};for(const n in t){const r=t[n];(dt(r)||Dr(r))&&(e[n]=sn(t,n))}return e}}function YW(t){return/^(?:\/|[a-z]:)/i.test($i(t))}function $i(t){if(!t)return"";t=t.replace(/\\/g,"/"),t=t.replace(/\/+/g,"/");const e=t.split("/"),n=[];for(let i=0;i{const n=YW(t)?t:$i(Lx(e,t));return $i(n)},Gq=t=>{t=$i(t);const e=t.split("/").filter(n=>n);return e[0].endsWith(":")&&(e[0]=e[0]+"/"),e};function qq(t){const e=t.lastIndexOf("/"),n=t.lastIndexOf("\\"),r=Math.max(e,n);return r===-1?".":t.substring(0,r)}const Fx=t=>Zr({...t,name:typeof t.name=="string"?t.name:t.nameFallbackStr??""}),Bx=t=>({...t,panes:t.panes.map(Fx)}),JW=t=>{var n;if(!t.panes.some(r=>r.type==="workspace-snapshot"))return Bx(t);const e=t.panes.filter(r=>r.type!=="workspace-snapshot").map(Fx);return{...t,panes:e,key:((n=TF(e))==null?void 0:n.key)??""}},zx=["defaultChangeIndchecked","defaultSeedChangeChecked","darkModeControl","dontShowAgainNewImgOpts","defaultSortingMethod","defaultGridCellWidth","dontShowAgain","lang","enableThumbnail","tabListHistoryRecord","recent","gridThumbnailResolution","longPressOpenContextMenu","onlyFoldersAndImages","fileTypeFilter","shortcut","ignoredConfirmActions","previewBgOpacity","defaultInitinalPage","autoRefreshWalkMode","autoRefreshWalkModePosLimit","autoRefreshNormalFixedMode","showCommaInInfoPanel","batchDownloadCompress","batchDownloadPackOnly","magicSwitchTiktokView","showRandomImageInStartup","showTiktokNavigator"];function XW(t){if(t<768)return 176;{const e=160+Math.floor((t-768)/128)*16;return Math.min(e,256)}}const Nn=ws(Op+"useGlobalStore",()=>{const t=z(),e=z([]),n=z(!0),r=z(512),a=z(Pp.CREATED_TIME_DESC),i=z(256);try{typeof parent<"u"&&parent.window&&(i.value=XW(parent.window.innerHeight))}catch(L){console.error(L)}const o=z("auto"),s=()=>({type:"empty",name:Te("emptyStartPage"),key:mr()}),l=z([]);Ve(()=>{const L=s();l.value.push({panes:[L],key:L.key,id:mr()})});const u=z(),c=z(new Array),d=Date.now(),v=z(),h=()=>{var j;const L=De(l.value).map(Bx);((j=v.value)==null?void 0:j[0].time)!==d?v.value=[{tabs:L,time:d},...v.value??[]]:v.value[0].tabs=L,v.value=v.value.slice(0,2)},f=async(L,j,D)=>{let P=l.value.map(k=>k.panes).flat().find(k=>k.type==="tag-search-matched-image-grid"&&k.id===j);if(P){P.selectedTagIds=Zr(D);return}else P={type:"tag-search-matched-image-grid",id:j,selectedTagIds:Zr(D),key:mr(),name:Te("searchResults")};const O=l.value[L+1];O?(O.key=P.key,O.panes.push(P)):l.value.push({panes:[P],key:P.key,id:mr()})},p=z(jS());pe(p,L=>gp.global.locale.value=L);const m=z(!1),g=z({delete:"",download:""}),y=z({}),b=V(()=>{const L=["outdir_extras_samples","outdir_save","outdir_txt2img_samples","outdir_img2img_samples","outdir_img2img_grids","outdir_txt2img_grids"],j=e.value.filter(D=>L.includes(D.key)).map(D=>[D.zh,D.dir]);return{...Object.fromEntries(j),...y.value}}),w=new Map,_=ct({deleteOneOnly:!1}),C=hW(),E=V(()=>{const L=()=>{try{return parent.location.search.includes("theme=dark")}catch{return!1}};return(o.value==="auto"?C.value||L():o.value==="dark")?"dark":"light"}),I=L=>{var j;try{L=L.trim();const D=b.value,P=$i(L),O=[];for(const[k,$]of Object.entries(D))if(k&&$){if(L===$||P===$)return k;O.push(P.replace($,"$"+k))}return((j=O.sort((k,$)=>k.length-$.length))==null?void 0:j[0])??L}catch(D){return console.error(D),L}},T=z(.6),N=z(!1),R=z(!0),F=z(!1);return{computedTheme:E,showTiktokNavigator:F,darkModeControl:o,defaultSortingMethod:a,defaultGridCellWidth:i,defaultChangeIndchecked:z(!0),defaultSeedChangeChecked:z(!1),pathAliasMap:b,createEmptyPane:s,lang:p,tabList:l,conf:t,quickMovePaths:e,enableThumbnail:n,dragingTab:u,saveRecord:h,recent:c,tabListHistoryRecord:v,gridThumbnailResolution:r,longPressOpenContextMenu:m,openTagSearchMatchedImageGridInRight:f,onlyFoldersAndImages:z(!0),fileTypeFilter:z(["image","video","audio"]),keepMultiSelect:z(!1),fullscreenPreviewInitialUrl:z(""),shortcut:g,pageFuncExportMap:w,dontShowAgain:z(!1),dontShowAgainNewImgOpts:z(!1),ignoredConfirmActions:_,getShortPath:I,extraPathAliasMap:y,previewBgOpacity:T,defaultInitinalPage:z("empty"),autoRefreshWalkMode:z(!0),autoRefreshWalkModePosLimit:z(128),autoRefreshNormalFixedMode:z(!0),showCommaInInfoPanel:z(!1),batchDownloadCompress:z(!1),batchDownloadPackOnly:z(!1),magicSwitchTiktokView:N,showRandomImageInStartup:R}},{persist:{paths:zx}}),ZW=ws(Op+"useWorkspeaceSnapshot",()=>{const t=Nn(),e=a=>{const i=De(t.tabList).map(JW);return{id:Date.now()+(Math.random()*1e5).toFixed(0),name:a,tabs:i}},n=z([]);return pe(()=>{var a;return(a=t.conf)==null?void 0:a.app_fe_setting},a=>{if(a&&Ku()){const s=Object.keys(a).filter(l=>l.startsWith("workspace_snapshot_")).map(l=>a[l]);n.value=s}},{immediate:!0}),{createSnapshot:e,snapshots:n,addSnapshot:async a=>{n.value.push(a),await Mx(`workspace_snapshot_${a.id}`,a)}}},{persist:{paths:["snapshots"]}}),Qb=async({global_setting:t,sd_cwd:e,home:n,extra_paths:r,cwd:a})=>{const i=Ax(t,"outdir_grids","outdir_extras_samples","outdir_img2img_grids","outdir_img2img_samples","outdir_grids","outdir_extras_samples","outdir_samples","outdir_txt2img_grids","outdir_txt2img_samples","outdir_save");i.outdir_extras_samples??(i.outdir_extras_samples="outputs/extras-images"),i.outdir_img2img_grids??(i.outdir_img2img_grids="outputs/img2img-grids"),i.outdir_img2img_samples??(i.outdir_img2img_samples="outputs/img2img-images"),i.outdir_save??(i.outdir_save="log/images"),i.outdir_txt2img_grids??(i.outdir_txt2img_grids="outputs/txt2img-grids"),i.outdir_txt2img_samples??(i.outdir_txt2img_samples="outputs/txt2img-images");const o={...i,cwd:e,home:n,desktop:`${n}/Desktop`};Object.keys(o).forEach(d=>{const v=d;if(o[v])try{o[v]=Zb(o[v],e)}catch(h){console.error(h)}});const s=await FW(Object.values(o).filter(d=>d)),l={outdir_txt2img_samples:Te("t2i"),outdir_img2img_samples:Te("i2i"),outdir_save:Te("saveButtonSavesTo"),outdir_extras_samples:Te("extra"),outdir_grids:Te("gridImage"),outdir_img2img_grids:Te("i2i-grid"),outdir_samples:Te("image"),outdir_txt2img_grids:Te("t2i-grid"),cwd:Te("workingFolder"),home:"home",desktop:Te("desktop")},u=Nn();u.extraPathAliasMap={home:n,[Te("desktop")]:o.desktop,[Te("workingFolder")]:a,[Te("t2i")]:o.outdir_txt2img_samples,[Te("i2i")]:o.outdir_img2img_samples,...r.filter(d=>d.alias).reduce((d,v)=>(d[v.alias]=Zb(v.path,e),d),{})},await Fa(0);const c=Object.keys(l).filter(d=>s[o[d]]).map(d=>{const v=d;return{key:v,zh:l[v],dir:o[v],can_delete:!1,types:["preset"]}}).concat(r.map(d=>({key:d.path,zh:d.alias||u.getShortPath(d.path),dir:d.path,can_delete:!0,types:d.types})));return VS(c,d=>d.key+d.types.join())};const jx={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let n=0;this.panes=this.panes.map((r,a)=>(r.size=a===e?r.max:r.min,a!==e&&(n+=r.min),r)),this.panes[e].size-=n,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:n-e.left,y:r-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),a=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(t),a),r);let o=[e,e+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const u=s.max<100&&i>=s.max+n.prevPanesSize,c=l.max<100&&i<=100-(l.max+this.sumNextPanesSize(e+1));if(u||c){u?(s.size=s.max,l.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(e+1),0),l.size=l.max);return}if(this.pushOtherPanes){const d=this.doPushOtherPanes(n,i);if(!d)return;({sums:n,panesToResize:o}=d),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}s!==null&&(s.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(t,e){const n=this.touch.activeSplitter,r=[n,n+1];return e{i>r[0]&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,i)=>{i>0&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[r[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,t.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((a,i)=>{i>n&&i{i=n+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[r[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:r}},sumPrevPanesSize(t){return this.panes.reduce((e,n,r)=>e+(re+(r>t+1?n.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),n=t.classList.contains("splitpanes__splitter");!e&&!n&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,e,n=!1){const r=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),n||(a.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=i=>this.onMouseDown(i,r)),a.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(a.ondblclick=i=>this.onSplitterDblClick(i,r+1)),e.parentNode.insertBefore(a,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let e=0;t.forEach(n=>{n.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,n,!0):e&&this.addSplitter(e,n),e++)})},requestUpdate({target:t,...e}){const n=this.indexedPanes[t._.uid];Object.entries(e).forEach(([r,a])=>n[r]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===t.$el));const n=parseFloat(t.minSize),r=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,i)=>a.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(r=>r.id===t._.uid),n=this.panes.splice(e,1)[0];this.panes.forEach((r,a)=>r.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:e}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const n=[],r=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&n.push(a.id),a.size<=a.min&&r.push(a.id)}),e>.1&&this.readjustSizes(e,n,r)},initialPanesSizing(){let t=100;const e=[],n=[];let r=0;this.panes.forEach(i=>{t-=i.size,i.size!==null&&r++,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)});let a=100;t>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(t/(this.panesCount-r),i.max),i.min)),a-=i.size}),a>.1&&this.readjustSizes(t,e,n))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let n=100/this.panesCount,r=0;const a=[],i=[];t&&t.givenSize!==null&&(n=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,a,i))},readjustSizes(t,e,n){let r;t>0?r=t/(this.panesCount-e.length):r=t/(this.panesCount-n.length),this.panes.forEach((a,i)=>{if(t>0&&!e.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),s=o-a.size;t-=s,a.size=o}else if(!n.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),s=o-a.size;t-=s,a.size=o}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,n)=>{e.ondblclick=t?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return sa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},QW=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},eH={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function tH(t,e,n,r,a,i){return Oe(),Fe("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=o=>i.onPaneClick(o,t._.uid)),style:Pn(t.style)},[_l(t.$slots,"default")],4)}const fd=QW(eH,[["render",tH]]);const nH={style:{position:"relative"}},rH=he({__name:"edgeTrigger",props:{tabIdx:{}},setup(t){const e=t,n=Nn(),r=z(),a=z(),{isOutside:i}=Hb(a),{isOutside:o}=Hb(r),s=V(()=>!i.value&&!!n.dragingTab),l=V(()=>!o.value&&!!n.dragingTab&&!s.value),u=(c,d)=>{var h,f,p,m;const v=MW(((h=c.dataTransfer)==null?void 0:h.getData("text"))??"{}");if(v&&(console.log("on-drop",d,v),(v==null?void 0:v.from)==="tab-drag")){if(c.stopPropagation(),n.dragingTab=void 0,d==="insert"&&v.tabIdx===e.tabIdx)return;const g=n.tabList,y=g[v.tabIdx].panes[v.paneIdx];g[v.tabIdx].panes.splice(v.paneIdx,1),d==="add-right"?(g[e.tabIdx].key=((f=g[e.tabIdx].panes[v.paneIdx-1])==null?void 0:f.key)??g[e.tabIdx].panes[0].key,g.splice(e.tabIdx+1,0,{panes:[y],key:y.key,id:mr()})):(g[v.tabIdx].key=((p=g[v.tabIdx].panes[v.paneIdx-1])==null?void 0:p.key)??((m=g[v.tabIdx].panes[0])==null?void 0:m.key),g[e.tabIdx].panes.push(y),g[e.tabIdx].key=y.key),g[v.tabIdx].panes.length===0&&g.splice(v.tabIdx,1)}};return(c,d)=>(Oe(),Fe("div",{class:qt(["wrap",{accept:l.value}]),ref_key:"trigger",ref:r,onDragover:d[2]||(d[2]=An(()=>{},["prevent"])),onDrop:d[3]||(d[3]=An(v=>u(v,"insert"),["prevent"]))},[$e("div",{class:qt(["iib-tab-edge-trigger",{accept:s.value}]),ref_key:"edgeTrigger",ref:a,onDragover:d[0]||(d[0]=An(()=>{},["prevent"])),onDrop:d[1]||(d[1]=An(v=>u(v,"add-right"),["prevent"]))},null,34),$e("div",nH,[_l(c.$slots,"default",{},void 0,!0)])],34))}});const Ui=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},aH=Ui(rH,[["__scopeId","data-v-f7ccb75b"]]);const Wx=ws("useImgSliStore",()=>{const t=z(!1),e=z(!1),n=z(!1),r=z(),a=z(),i=Nn(),o=V(()=>{var l;const s=i.tabList;for(const u of s)if(((l=u.panes.find(c=>c.key===u.key))==null?void 0:l.type)==="img-sli")return!0;return!1});return{drawerVisible:e,fileDragging:t,left:r,right:a,imgSliActived:o,opened:n}});var iH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};const oH=iH;function e0(t){for(var e=1;e(kd("data-v-9c9e2710"),t=t(),Md(),t),WH={key:0,class:"dragging-port-wrap"},HH={class:"content"},VH={key:0,class:"img-wrap"},UH={key:1},KH=jH(()=>$e("div",{style:{padding:"16px"}},null,-1)),GH={key:0,class:"img-wrap"},qH={key:1},YH={key:0,class:"tips",style:{"max-width":"30vw"}},JH={class:"actions"},XH=he({__name:"DraggingPort",setup(t){const e=Wx(),n=Nn(),{left:r,right:a}=qW(e),i=async(l,u)=>{const c=OW(l);if(c){const d=c.nodes[0];if(!Tx(d.name))return;e[u]=d}},o=()=>{e.left=void 0,e.right=void 0,e.opened=!1},s=()=>{bp(r.value&&a.value);const l={type:"img-sli",left:r.value,right:a.value,name:`${Te("imgCompare")} ( ${r.value.name} vs ${a.value.name})`,key:mr()};n.tabList[0].panes.push(l),n.tabList[0].key=l.key};return(l,u)=>{const c=Z8,d=Xt;return Oe(),mt(Yn,null,{default:Mt(()=>[(be(e).fileDragging||be(r)||be(a)||be(e).opened)&&!be(e).imgSliActived?(Oe(),Fe("div",WH,[$e("h2",null,St(l.$t("imgCompare")),1),$e("div",HH,[$e("div",{class:"left port",onDragover:u[1]||(u[1]=An(()=>{},["prevent"])),onDrop:u[2]||(u[2]=An(v=>i(v,"left"),["prevent"]))},[be(r)?(Oe(),Fe("div",VH,[S(c,{src:be(Vb)(be(r)),preview:{src:be(ua)(be(r))}},null,8,["src","preview"]),S(be(Wo),{class:"close",onClick:u[0]||(u[0]=v=>r.value=void 0)})])):(Oe(),Fe("div",UH,St(l.$t("dragImageHere")),1))],32),KH,$e("div",{class:"right port",onDragover:u[4]||(u[4]=An(()=>{},["prevent"])),onDrop:u[5]||(u[5]=An(v=>i(v,"right"),["prevent"]))},[be(a)?(Oe(),Fe("div",GH,[S(c,{src:be(Vb)(be(a)),preview:{src:be(ua)(be(a))}},null,8,["src","preview"]),S(be(Wo),{class:"close",onClick:u[3]||(u[3]=v=>a.value=void 0)})])):(Oe(),Fe("div",qH,St(l.$t("dragImageHere")),1))],32)]),be(e).opened?(Oe(),Fe("p",YH," Tips: "+St(l.$t("imageCompareTips")),1)):$t("",!0),$e("div",JH,[be(r)&&be(a)?(Oe(),mt(d,{key:0,type:"primary",onClick:u[6]||(u[6]=v=>be(e).drawerVisible=!0)},{default:Mt(()=>[_n(St(l.$t("confirm")),1)]),_:1})):$t("",!0),be(r)&&be(a)?(Oe(),mt(d,{key:1,type:"primary",onClick:s},{default:Mt(()=>[_n(St(l.$t("confirm"))+"("+St(l.$t("openInNewTab"))+")",1)]),_:1})):$t("",!0),S(d,{style:{"margin-left":"16px"},onClick:o},{default:Mt(()=>[_n(St(l.$t("close")),1)]),_:1})])])):$t("",!0)]),_:1})}}});const ZH=Ui(XH,[["__scopeId","data-v-9c9e2710"]]),QH=ws("useTiktokStore",()=>{const t=z(!1),e=z(!1),n=z([]),r=z(0),a=V(()=>n.value[r.value]||null),i=V(()=>r.valuer.value>0),s=V(()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=768);return{visible:t,isFullscreen:e,mediaList:n,currentIndex:r,currentItem:a,hasNext:i,hasPrev:o,isMobile:s,openTiktokView:(f,p=0)=>{n.value=f,r.value=Math.max(0,Math.min(p,f.length-1)),t.value=!0,s.value&&(e.value=!0)},closeView:()=>{e.value=!1,n.value=[],r.value=0,setTimeout(()=>{t.value=!1},300)},next:()=>{i.value&&r.value++},prev:()=>{o.value&&r.value--},goToIndex:f=>{f>=0&&f{e.value=!e.value}}}),eV=async()=>(await ze.value.get("/db/basic_info")).data,Yq=async()=>(await ze.value.get("/db/expired_dirs")).data,Jq=async()=>{await ze.value.post("/db/update_image_data",{},{timeout:1/0})},Xq=async t=>{await ze.value.post("/db/update_tag",t)},Zq=async(t,e)=>(await ze.value.post("/db/match_images_by_tags",{...t,folder_paths:(t.folder_paths_str??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),cursor:e})).data,tV=async t=>(await ze.value.post("/db/add_custom_tag",t)).data,nV=async t=>(await ze.value.post("/db/toggle_custom_tag_to_img",t)).data,Qq=async t=>{await ze.value.post("/db/remove_custom_tag",t)},eY=async()=>(await ze.value.get("/db/random_images")).data,tY=async t=>(await ze.value.post("/db/search_by_substr",t)).data,Hx="/db/extra_paths",nY=async t=>{await ze.value.post(Hx,t)},rY=async t=>{await ze.value.delete(Hx,{data:t})},aY=async t=>{await ze.value.post("/db/alias_extra_path",t)},rV=async t=>(await ze.value.post("/db/get_image_tags",{paths:t})).data,aV=()=>ze.value.post("/db/rebuild_index"),iY=t=>ze.value.post("/db/batch_update_image_tag",t),iV=async t=>(await ze.value.post("/db/rename",t)).data,oY=async t=>(await ze.value.post("/db/cluster_iib_output_job_start",t)).data,sY=async t=>(await ze.value.get("/db/cluster_iib_output_job_status",{params:{job_id:t}})).data,lY=async t=>(await ze.value.post("/db/cluster_iib_output_cached",t)).data,uY=async t=>(await ze.value.post("/db/search_iib_output_by_prompt",t,{timeout:1/0})).data,cY=async t=>(await ze.value.post("/db/cluster_tag_graph",t,{timeout:3e5})).data,fY=async t=>(await ze.value.post("/db/cluster_tag_graph_cluster_paths",t,{timeout:3e5})).data;function oV(){const t=[];for(let a=0;a<72;a++){const o=`hsl(${a*7.2}, 90%, 35%)`;t.push(o)}return t}const u0=oV(),qu=ws("useTagStore",()=>{const t=ct(new Map),e=async l=>{if(l=l.filter(u=>!t.has(u)),!!l.length)try{l.forEach(c=>t.set(c,[]));const u=await rV(l);for(const c in u)t.set(c,u[c])}catch{l.forEach(u=>t.delete(u))}},n=z(new Map),r=l=>{l&&n.value.set(l.id.toString(),l.color)},a=l=>{const u=l.id.toString();let c=n.value.get(u);if(c)return c;if(!c&&l.color)return n.value.set(u,l.color),l.color;if(!c){const d=jl.hash.sha256.hash(u),v=parseInt(jl.codec.hex.fromBits(d),16)%u0.length;c=u0[v],n.value.set(u,c)}return c},i=async l=>{l.forEach(u=>t.delete(u)),await e(l)},o=l=>({id:l.name,count:0,display_name:null,type:"temp",color:"",...l});return{set:(l,u)=>{const c=u.map(d=>o(typeof d=="string"?{name:d}:d));t.set(l,c)},colorCache:n,tagMap:t,getColor:a,fetchImageTags:e,refreshTags:i,tagConvert:o,notifyCacheUpdate:r}}),dY=async t=>(await ze.value.get("/files",{params:{folder_path:t}})).data,vY=async t=>(await ze.value.post("/delete_files",{file_paths:t})).data,pY=async(t,e,n)=>(await ze.value.post("/move_files",{file_paths:t,dest:e,create_dest_folder:n})).data,hY=async(t,e,n)=>(await ze.value.post("/copy_files",{file_paths:t,dest:e,create_dest_folder:n})).data,sV=async t=>{await ze.value.post("/mkdirs",{dest_folder:t})},gY=async t=>(await ze.value.post("/batch_get_files_info",{paths:t})).data;let uo,Wc;const lV=async(t,e,n="image/webp")=>{const a=await(await fetch(t)).arrayBuffer();return new File([a],e,{type:n})},uV=(t,e="image/webp")=>{if(!Wc){uo=document.createElement("canvas");const a=uo.getContext("2d");bp(a),Wc=a}const{videoHeight:n,videoWidth:r}=t;return uo.width=r,uo.height=n,Wc.drawImage(t,0,0,r,n),uo.toDataURL(e)},Vx=()=>{const t=Array.from(document.querySelectorAll(".ant-image-preview-wrap")).find(e=>e.style.display!=="none");t?(console.log("closeImageFullscreenPreview success"),cV(t)):console.log("closeImageFullscreenPreview not found")};function cV(t){if(!(t instanceof HTMLElement))throw new Error("The provided value is not an HTMLElement.");const e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0,target:t});t.dispatchEvent(e)}const mY=(t,e)=>{const n=e.querySelector(`.idx-${t} .ant-image-img`);n?n.click():console.log("openImageFullscreenPreview error: not found",t,e)},yY=t=>{const e=z("");return new Promise(n=>{xt.confirm({title:Te("inputFolderName"),content:()=>S(kt,{value:e.value,"onUpdate:value":r=>e.value=r},null),async onOk(){if(!e.value)return;const r=Lx(t,e.value);await sV(r),n()}})})},bY=()=>S("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[_n("Tips: "),Te("multiSelectTips")]),wY=(t,e,n)=>{const r=qu(),a=Nn(),i=d=>{var v;return!!((v=r.tagMap.get(t.fullpath))!=null&&v.some(h=>h.id===d))},o=z(null),s=async()=>{if(!o.value)return;const d=o.value;d.pause();const v=uV(d);await BW({path:t.fullpath,base64_img:v,updated_time:t.date}),t.cover_url=URL.createObjectURL(await lV(v,"cover")),Jt.success(Te("success")+"! "+Te("clearCacheIfNotTakeEffect"))},l={margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease","user-select":"none"},u=xt.confirm({width:"80vw",title:t.name,icon:null,content:()=>S("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[S("video",{ref:o,style:{maxHeight:xW?"80vh":"60vh",maxWidth:"100%",minWidth:"70%"},src:TW(t),controls:!0,autoplay:!0},null),S("div",{style:{marginTop:"4px"}},[S("div",{onClick:Gl,style:{background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...l}},[Te("addNewCustomTag")]),a.conf.all_custom_tags.map(d=>S("div",{key:d.id,onClick:()=>e==null?void 0:e(d.id),style:{background:i(d.id)?r.getColor(d):"var(--zp-primary-background)",color:i(d.id)?"white":r.getColor(d),border:`2px solid ${r.getColor(d)}`,...l}},[d.name]))]),S("div",{class:"actions",style:{marginTop:"16px"}},[S(Xt,{onClick:()=>Ex([ua(t,!0)])},{icon:S(ZC,null,null),default:Te("download")}),n&&S(Xt,{onClick:c,type:"primary"},{default:Te("tiktokView")}),S(Xt,{onClick:s},{default:Te("setCurrFrameAsVideoPoster")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"});function c(){n==null||n(),Vx(),u.destroy()}},_Y=(t,e,n)=>{const r=qu(),a=Nn(),i=u=>{var c;return!!((c=r.tagMap.get(t.fullpath))!=null&&c.some(d=>d.id===u))},o={margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease","user-select":"none"},s=xt.confirm({width:"60vw",title:t.name,icon:null,content:()=>S("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[S("div",{style:{fontSize:"80px",marginBottom:"16px"}},[_n("🎵")]),S("audio",{style:{width:"100%",maxWidth:"500px"},src:PW(t),controls:!0,autoplay:!0},null),S("div",{style:{marginTop:"16px"}},[S("div",{onClick:Gl,style:{background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...o}},[Te("addNewCustomTag")]),a.conf.all_custom_tags.map(u=>S("div",{key:u.id,onClick:()=>e==null?void 0:e(u.id),style:{background:i(u.id)?r.getColor(u):"var(--zp-primary-background)",color:i(u.id)?"white":r.getColor(u),border:`2px solid ${r.getColor(u)}`,...o}},[u.name]))]),S("div",{class:"actions",style:{marginTop:"16px"}},[S(Xt,{onClick:()=>Ex([ua(t,!0)])},{icon:S(ZC,null,null),default:Te("download")}),n&&S(Xt,{onClick:l,type:"primary"},{default:Te("tiktokView")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"});function l(){n==null||n(),Vx(),s.destroy()}},CY=()=>{xt.confirm({title:Te("confirmRebuildImageIndex"),onOk:async()=>{await aV(),Uu.emit("searchIndexExpired"),Jt.success(Te("rebuildComplete"))}})},SY=t=>{const e=z(t.split(/[\\/]/).pop()??"");return new Promise(n=>{xt.confirm({title:Te("rename"),content:()=>S(kt,{value:e.value,"onUpdate:value":r=>e.value=r},null),async onOk(){if(!e.value)return;const r=await iV({path:t,name:e.value});n(r.new_path)}})})},Gl=()=>{const t=z(""),e=Nn();return new Promise(n=>{xt.confirm({title:Te("addNewCustomTag"),content:()=>S(kt,{value:t.value,"onUpdate:value":r=>t.value=r},null),async onOk(){var i;if(!t.value)return;const r=await eV(),a=await tV({tag_name:t.value});if(a.type!=="custom")throw Jt.error(Te("existInOtherType")),new Error(Te("existInOtherType"));if(r.tags.find(o=>o.id===a.id))throw Jt.error(Te("alreadyExists")),new Error(Te("alreadyExists"));(i=e.conf)==null||i.all_custom_tags.push(a),Jt.success(Te("success")),n(t.value)}})})},fV=t=>(kd("data-v-c88a67da"),t=t(),Md(),t),dV={key:0,class:"debug-info"},vV={class:"debug-label"},pV={key:0,class:"media-content"},hV=["src","controls","loop"],gV={key:1,class:"tiktok-media tiktok-audio-container"},mV=fV(()=>$e("div",{class:"audio-icon"},"🎵",-1)),yV={class:"audio-filename"},bV=["src","controls","loop"],wV=["src"],_V={class:"tiktok-controls"},CV=["title"],SV=["title"],xV=["title"],TV=["title"],EV=["title"],OV={class:"autoplay-label"},PV=["title"],AV={key:1,class:"tiktok-navigation"},IV={class:"tiktok-bottom-overlay"},kV={key:0,class:"filename-display"},MV={class:"tiktok-progress"},NV={class:"progress-bar-row"},RV={class:"progress-bar"},$V={class:"progress-text"},DV={key:0,class:"tiktok-tags-panel"},LV={class:"tags-header"},FV={class:"tags-content"},BV=["onClick"],zV=he({__name:"TiktokViewer",setup(t){const n=QH(),r=qu(),a=Nn(),i=Nn(),o=V(()=>({isAnimating:_.value,isDragging:I.value,bufferTransform:w.value,dragOffset:T.value,autoPlayMode:l.value,isMuted:s.value,currentIndex:n.currentIndex})),s=Sx("tiktok-viewer-muted",!0),l=z("off"),u=z(null),c=["off","5s","10s","20s"],d=V(()=>({off:Te("autoPlayOff"),"5s":Te("autoPlay5s"),"10s":Te("autoPlay10s"),"20s":Te("autoPlay20s")})),v=oe=>{switch(oe){case"5s":return 5e3;case"10s":return 1e4;case"20s":return 2e4;default:return 0}},h=V(()=>/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)||navigator.platform.toUpperCase().indexOf("MAC")>=0),f=oe=>h.value&&!oe?700:300,p=z(),m=z(),g=z([null,null,null]),y=z([null,null,null]),b=z([null,null,null]),w=z(0),_=z(!1),C=z(0),E=z(0),I=z(!1),T=z(0),N=z(!1),R=z(!0),F=()=>{R.value=!R.value},L=V(()=>b.value[1]),j=V(()=>({"tiktok-viewer":!0,"tiktok-viewer--fullscreen":n.isFullscreen,"tiktok-viewer--floating":!n.isFullscreen,"tiktok-viewer--mobile":n.isMobile})),D=oe=>{const ve=(oe-1)*100,Xe=w.value+T.value;return{transform:`translateY(${ve+Xe}%)`,transition:_.value&&!I.value?"transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)":"none"}},P=()=>{u.value&&(clearTimeout(u.value),u.value=null)},O=()=>{if(P(),l.value==="off")return;const oe=b.value[1];if(!oe||gl(oe.url))return;const ve=v(l.value);ve>0&&(u.value=window.setTimeout(()=>{!_.value&&!I.value&&(n.hasNext?ye():Se())},ve))},k=oe=>{oe===1&&l.value!=="off"&&!_.value&&setTimeout(()=>{n.hasNext?ye():Se()},500)},$=oe=>{oe===1&&l.value!=="off"&&!_.value&&setTimeout(()=>{n.hasNext?ye():Se()},500)},G=async()=>{await Fa(30);for(let oe=0;oek(oe),await ve.play()):(ve.pause(),ve.currentTime=0,ve.onended=null)}catch(Xe){console.warn(`视频播放控制失败 (index: ${oe}):`,Xe)}}for(let oe=0;oe$(oe),await ve.play()):(ve.pause(),ve.currentTime=0,ve.onended=null)}catch(Xe){console.warn(`音频播放控制失败 (index: ${oe}):`,Xe)}}},J=()=>{const oe=n.currentIndex,ve=n.mediaList;b.value=[oe>0?ve[oe-1]:null,ve[oe]||null,oe{G(),O()})},Z=oe=>{var Ie,Le,Ye,_t;if(!((Ie=L.value)==null?void 0:Ie.url))return!1;const Xe=((Le=L.value)==null?void 0:Le.fullpath)||((Ye=L.value)==null?void 0:Ye.id);return!!((_t=r.tagMap.get(Xe))!=null&&_t.some(tn=>tn.id===oe))},X=V(()=>{var oe,ve;return(ve=(oe=i.conf)==null?void 0:oe.all_custom_tags)==null?void 0:ve.find(Xe=>Xe.type==="custom"&&Xe.name==="like")}),Y=V(()=>X.value?Z(X.value.id):!1),ne=async()=>{X.value&&await le(X.value.id)},le=async oe=>{var Xe,Ie,Le,Ye,_t;if((Xe=L.value)!=null&&Xe.url)try{const tn=((Ie=L.value)==null?void 0:Ie.fullpath)||((Le=L.value)==null?void 0:Le.id),{is_remove:Ya}=await nV({tag_id:Number(oe),img_path:tn}),nn=((_t=(Ye=i.conf)==null?void 0:Ye.all_custom_tags.find(Ja=>Ja.id===oe))==null?void 0:_t.name)||Te("tag");await r.refreshTags([tn]),Jt.success(Te(Ya?"removedTagFromImage":"addedTagToImage",{tag:nn}))}catch(tn){console.error("Toggle tag error:",tn),Jt.error(Te("tagOperationFailed"))}},ge={margin:"4px",padding:"8px 16px",borderRadius:"20px",display:"inline-block",cursor:"pointer",fontWeight:"bold",transition:"0.3s all ease",userSelect:"none",fontSize:"14px"},_e=()=>{const ve=(c.indexOf(l.value)+1)%c.length;l.value=c[ve],O(),Jt.success(Te("autoPlayStatus",{mode:d.value[l.value]}))},me=(oe=!1)=>{_.value||!n.hasPrev||(P(),_.value=!0,T.value=0,w.value=100,setTimeout(()=>{n.prev(),J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},ye=(oe=!1)=>{_.value||!n.hasNext||(P(),_.value=!0,T.value=0,w.value=-100,setTimeout(()=>{n.next(),J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},Se=(oe=!1)=>{_.value||(P(),_.value=!0,T.value=0,w.value=100,setTimeout(()=>{n.currentIndex=0,J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},B=oe=>{if(_.value){oe.preventDefault();return}P(),C.value=oe.touches[0].clientY,E.value=oe.touches[0].clientY,I.value=!0,T.value=0,w.value!==0&&(w.value=0)},x=oe=>{if(_.value){oe.preventDefault();return}if(!I.value)return;E.value=oe.touches[0].clientY;const ve=E.value-C.value,Xe=window.innerHeight,Ie=ve/Xe*100;T.value=Ie,oe.preventDefault()},A=()=>{if(!I.value)return;const oe=E.value-C.value,ve=window.innerHeight,Xe=oe/ve*100;if(I.value=!1,_.value){T.value=0;return}Math.abs(Xe)>30?Xe>0&&n.hasPrev?me(!0):Xe<0&&n.hasNext?ye(!0):K():K()},W=()=>{I.value&&(I.value=!1,_.value||K())},K=()=>{_.value||(_.value=!0,T.value=0,w.value=0,setTimeout(()=>{_.value=!1,O()},300))},U=dj(oe=>{_.value||(oe.preventDefault(),P(),oe.deltaY>0&&n.hasNext?ye():oe.deltaY<0&&n.hasPrev&&me())},500),se=oe=>{if(!(!n.visible||_.value))switch(oe.key){case"ArrowUp":oe.preventDefault(),n.hasPrev&&me();break;case"ArrowDown":oe.preventDefault(),n.hasNext&&ye();break;case"Escape":oe.preventDefault(),n.closeView();break}},ie=async()=>{n.isFullscreen?await Q():await re()},re=async()=>{if(p.value&&!document.fullscreenElement)try{await p.value.requestFullscreen(),n.isFullscreen=!0}catch(oe){console.warn("无法进入全屏模式:",oe)}},Q=async()=>{if(document.fullscreenElement)try{await document.exitFullscreen(),n.isFullscreen=!1}catch(oe){console.warn("无法退出全屏模式:",oe)}},H=()=>{s.value=!s.value;const oe=g.value[1];oe&&(oe.muted=s.value);const ve=y.value[1];ve&&(ve.muted=s.value)},q=()=>{n.isFullscreen=!!document.fullscreenElement},ue=z([]),ae=z([]),fe=oe=>{oe&&(oe.pause(),oe.src="",oe.muted=!0,oe.load(),oe.parentNode&&oe.parentNode.removeChild(oe))},we=oe=>{oe&&(oe.pause(),oe.src="",oe.muted=!0,oe.load(),oe.parentNode&&oe.parentNode.removeChild(oe))};pe(ue,oe=>{for(;oe.length>5;){const ve=oe.shift();ve&&fe(ve)}},{deep:!0}),pe(ae,oe=>{for(;oe.length>5;){const ve=oe.shift();ve&&we(ve)}},{deep:!0}),pe(()=>n.visible===!1||n.mediaList.length===0,oe=>{oe||(ue.value.forEach(fe),ue.value=[],ae.value.forEach(we),ae.value=[],l.value="off")},{immediate:!0});const xe=()=>{b.value.forEach(oe=>{if(oe)if(gl(oe.url)){const ve=document.createElement("video");ve.preload="metadata",ve.src=oe.url,ue.value.push(ve)}else if(od(oe.url)){const ve=document.createElement("audio");ve.preload="metadata",ve.src=oe.url,ae.value.push(ve)}else{const ve=new Image;ve.src=oe.url}})},Pe=async()=>{const oe=n.currentItem;if(!oe)return;const ve=(oe==null?void 0:oe.fullpath)||oe.id;ve&&await r.fetchImageTags([ve])};return rW(m,F,{delay:500}),Ve(()=>{document.addEventListener("keydown",se),document.addEventListener("fullscreenchange",q),J()}),vn(()=>{document.removeEventListener("keydown",se),document.removeEventListener("fullscreenchange",q),P(),g.value.forEach(oe=>{fe(oe)}),y.value.forEach(oe=>{we(oe)}),ue.value.forEach(fe),ue.value=[],ae.value.forEach(we),ae.value=[]}),pe(()=>n.currentIndex,()=>{J(),Ke(()=>{xe(),Pe()})},{immediate:!0}),pe(()=>n.mediaList,()=>{J()},{deep:!0}),pe(()=>n.visible,oe=>{oe?(R.value=!0,Ke(()=>{J()})):(g.value.forEach(ve=>{ve&&(ve.pause(),ve.src="",ve.load())}),g.value=[null,null,null],y.value.forEach(ve=>{ve&&(ve.pause(),ve.src="",ve.load())}),y.value=[null,null,null],b.value=[null,null,null],P(),document.fullscreenElement&&Q())}),pe(()=>s.value,oe=>{g.value.forEach(ve=>{ve&&(ve.muted=oe)}),y.value.forEach(ve=>{ve&&(ve.muted=oe)})}),pe(()=>l.value,()=>{O()}),(oe,ve)=>{var Xe;return Oe(),mt(uu,{to:"body"},[be(n).visible?(Oe(),Fe("div",{key:0,ref_key:"containerRef",ref:p,class:qt(j.value),onTouchstart:B,onTouchmove:x,onTouchend:A,onTouchcancel:W,onWheel:ve[8]||(ve[8]=(...Ie)=>be(U)&&be(U)(...Ie))},[be(!1)?(Oe(),Fe("div",dV,[(Oe(!0),Fe(Re,null,Na(o.value,(Ie,Le)=>(Oe(),Fe("div",{key:Le,class:"debug-item"},[$e("span",vV,St(Le)+":",1),$e("span",{class:qt(["debug-value",{"is-true":Ie===!0,"is-false":Ie===!1}])},St(Ie),3)]))),128))])):$t("",!0),$e("div",{ref_key:"viewportRef",ref:m,class:"tiktok-viewport"},[(Oe(!0),Fe(Re,null,Na(b.value,(Ie,Le)=>(Oe(),Fe("div",{key:(Ie==null?void 0:Ie.id)||`empty-${Le}`,class:"tiktok-media-item",style:Pn(D(Le))},[Ie?(Oe(),Fe("div",pV,[be(gl)(Ie.url)&&be(n).visible?(Oe(),Fe("video",{class:"tiktok-media tiktok-video",src:Ie.url,controls:Le===1,loop:Le===1&&l.value==="off",playsinline:"",preload:"metadata",key:Ie.url,ref_for:!0,ref:Ye=>{Ye&&(g.value[Le]=Ye)}},null,8,hV)):be(od)(Ie.url)&&be(n).visible?(Oe(),Fe("div",gV,[mV,$e("div",yV,St(Ie.name||Ie.url.split("/").pop()),1),(Oe(),Fe("audio",{class:"tiktok-audio",src:Ie.url,controls:Le===1,loop:Le===1&&l.value==="off",preload:"metadata",key:Ie.url,ref_for:!0,ref:Ye=>{Ye&&(y.value[Le]=Ye)}},null,8,bV))])):(Oe(),Fe("img",{key:2,class:"tiktok-media",src:Ie.url},null,8,wV))])):$t("",!0)],4))),128))],512),dn($e("div",_V,[$e("button",{class:"control-btn close-btn",onClick:ve[0]||(ve[0]=(...Ie)=>be(n).closeView&&be(n).closeView(...Ie)),title:oe.$t("close")},[S(be(zr))],8,CV),$e("button",{class:"control-btn fullscreen-btn",onClick:ie,title:be(n).isFullscreen?oe.$t("exitFullscreen"):oe.$t("fullscreen")},[be(n).isFullscreen?(Oe(),mt(be(dH),{key:0})):(Oe(),mt(be(gH),{key:1}))],8,SV),$e("button",{class:"control-btn sound-btn",onClick:H,title:be(s)?oe.$t("soundOn"):oe.$t("soundOff")},[be(s)?(Oe(),mt(be(DH),{key:1})):(Oe(),mt(be(MH),{key:0}))],8,xV),X.value?(Oe(),Fe("button",{key:0,class:qt(["control-btn like-btn",{"like-active":Y.value}]),onClick:ne,title:Y.value?oe.$t("unlike"):oe.$t("like")},[Y.value?(Oe(),mt(be(wH),{key:0})):(Oe(),mt(be(xH),{key:1}))],10,TV)):$t("",!0),$e("button",{class:qt(["control-btn autoplay-btn",{"autoplay-active":l.value!=="off"}]),onClick:_e,title:oe.$t("autoPlayTooltip",{mode:d.value[l.value]})},[S(be(PH)),$e("span",OV,St(d.value[l.value]),1)],10,EV),$e("button",{class:"control-btn tags-btn",onClick:ve[1]||(ve[1]=Ie=>N.value=!N.value),title:oe.$t("tags")},[S(be(zH))],8,PV)],512),[[$r,R.value]]),be(a).showTiktokNavigator?dn((Oe(),Fe("div",AV,[be(n).hasPrev?(Oe(),Fe("div",{key:0,class:"nav-indicator nav-prev",onTouchstart:ve[2]||(ve[2]=An(Ie=>me(!1),["prevent"])),onClick:ve[3]||(ve[3]=Ie=>me(!1))},[S(be(n3))],32)):$t("",!0),be(n).hasNext?(Oe(),Fe("div",{key:1,class:"nav-indicator nav-next",onTouchstart:ve[4]||(ve[4]=An(Ie=>ye(!1),["prevent"])),onClick:ve[5]||(ve[5]=Ie=>ye(!1))},[S(be(L_))],32)):$t("",!0)],512)),[[$r,R.value]]):$t("",!0),dn($e("div",IV,[(Xe=L.value)!=null&&Xe.name?(Oe(),Fe("div",kV,St(L.value.name),1)):$t("",!0)],512),[[$r,R.value]]),dn($e("div",MV,[$e("div",NV,[$e("div",RV,[$e("div",{class:"progress-fill",style:Pn({width:`${(be(n).currentIndex+1)/be(n).mediaList.length*100}%`})},null,4)]),$e("span",$V,St(be(n).currentIndex+1)+" / "+St(be(n).mediaList.length),1)])],512),[[$r,R.value]]),S(Yn,{name:"slide-up"},{default:Mt(()=>{var Ie;return[N.value?(Oe(),Fe("div",DV,[$e("div",LV,[$e("h3",null,St(oe.$t("tags")),1),$e("button",{onClick:ve[6]||(ve[6]=Le=>N.value=!1),class:"close-tags"},[S(be(zr))])]),$e("div",FV,[$e("div",{onClick:ve[7]||(ve[7]=(...Le)=>be(Gl)&&be(Gl)(...Le)),style:Pn({background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...ge})},St(oe.$t("addNewCustomTag")),5),(Oe(!0),Fe(Re,null,Na(((Ie=be(i).conf)==null?void 0:Ie.all_custom_tags)||[],Le=>(Oe(),Fe("div",{key:Le.id,onClick:Ye=>le(Le.id),style:Pn({background:Z(Le.id)?be(r).getColor(Le):"var(--zp-primary-background)",color:Z(Le.id)?"white":be(r).getColor(Le),border:`2px solid ${be(r).getColor(Le)}`,...ge})},St(Le.name),13,BV))),128))])])):$t("",!0)]}),_:1})],34)):$t("",!0)])}}});const jV=Ui(zV,[["__scopeId","data-v-c88a67da"]]),WV={class:"container"},HV=["src"],VV=he({__name:"ImgSliSide",props:{side:{},containerWidth:{},img:{},maxEdge:{},percent:{}},setup(t){const e=t,n=id(async()=>Ax(await ld(ua(e.img)),"width","height")),r=V(()=>{let a="";const o=e.containerWidth;if(e.side==="left"?a=`calc(50% - ${(e.percent-50)/100*o}px)`:a=`calc(-50% - ${(e.percent-50)/100*o+4}px)`,e.maxEdge==="height")return`height:100%;transform: translate(${a}, -50%)`;{const s=n.value;return s?`height:${o/s.width*s.height}px;transform: translate(${a}, -50%)`:void 0}});return(a,i)=>(Oe(),Fe("div",WV,[$e("img",{class:qt(["img",[a.side]]),style:Pn(r.value),src:be(ua)(a.img),onDragstart:i[0]||(i[0]=An(()=>{},["prevent","stop"]))},null,46,HV)]))}});const c0=Ui(VV,[["__scopeId","data-v-1e5742ec"]]),UV=[["Seed","seed"],["CFG scale","cfgScale"],["Sampler","sampler"],["Steps","steps"],["Clip skip","clipSkip"],["Size","size"]],KV=new Map(UV),GV=/<(lora|hypernet):([a-zA-Z0-9_.]+):([0-9.]+)>/g,qV=/([a-zA-Z0-9_.]+)\(([a-zA-Z0-9]+)\)/,YV=(t,e)=>e.get(t.trim())??t.trim(),JV=["Template: ","Negative Template: "];function XV(t){try{return JSON.parse(encodeURIComponent(t))}catch{return t}}function f0(t,e){return typeof t=="function"?t.call(null,e):t}const ZV=t=>{try{return JSON.parse(t)}catch{return t}},QV=[{reg:/(ControlNet \d+): "([^"]+)"/g},{reg:/(Lora hashes): "([^"]+)"/g},{reg:/(Hashes): ({[^}]+})/g,key:"hashes",value:XV}];function eU(t){const e={};if(!t)return e;const n=t.match(/\nextraJsonMetaInfo:\s*(\{[\s\S]*\})\s*$/);if(n)try{e.extraJsonMetaInfo=JSON.parse(n[1]),t=t.replace(/\nextraJsonMetaInfo:\s*\{[\s\S]*\}\s*$/,"")}catch{e.extraJsonMetaInfo=n[1]}const r=t.split(` `).filter(h=>h.trim()!==""&&!JV.some(f=>h.startsWith(f))),a=r.findIndex(h=>h.startsWith("Steps: "));let i=r[a]||"";a>-1&&r.splice(a,1),i=NW(i);const o=[];QV.forEach(({reg:h,key:f,value:p})=>{const m={},g=[];let y;for(;(y=h.exec(i))!==null;){const b=f!==void 0?f0(f,y[1]):y[1],w=p!==void 0?f0(p,y[2]):y[2];m[b]=w,g.push(y[0])}g.forEach(b=>i=i.replace(b,"")),o.push(m)});const s=/\s*([\w ]+):\s*("(?:\\"[^,]|\\"|\\|[^"])+"|[^,]*)(?:,|$)/g;let l;for(;(l=s.exec(i))!==null;){let h=l[1];const f=l[2].replace(/\\(.)/g,"$1");h&&(h=YV(h,KV),e[h.trim()]=ZV((f??"").trim()))}o.forEach(h=>{Object.assign(e,h)});let[u,...c]=r.join(` `).split("Negative prompt:").map(h=>h.trim());u=u.replace(/\nextraJsonMetaInfo:\s*\{[\s\S]*\}\s*$/,"").trim(),e.prompt=u,e.negativePrompt=c.join(" ").trim();const v=[...u.matchAll(GV)].map(([,h,f,p])=>({type:h,name:f,weight:parseFloat(p)}));if(e.Size||e.size){const h=(e.Size||e.size||"0x0").split("x");e.width||(e.width=parseFloat(h[0])||0),e.height||(e.height=parseFloat(h[1])||0)}if(e.Model&&e["Model hash"]){const h=e.Model,f=e["Model hash"];typeof e.hashes!="object"&&(e.hashes={}),e.hashes.model||(e.hashes.model=f),v.push({type:"model",name:h,hash:f})}if(e.Hypernet&&e["Hypernet strength"]&&v.push({type:"hypernet",name:e.Hypernet,weight:parseFloat(e["Hypernet strength"])}),e["AddNet Enabled"]==="True"){let h=1;for(;;){const f=e[`AddNet Model ${h}`];if(!f)break;const[,p,m]=f.match(qV)??[];v.push({type:e[`AddNet Module ${h}`].toLowerCase(),name:p,hash:m,weight:parseFloat(e[`AddNet Weight ${h}`])}),h++}}return e.resources=v,e}const tU=he({__name:"PromptCompare",props:{lImg:{},rImg:{}},setup(t){const e=t,n=Ix(),r=Nn(),a=z(""),i=z("");function o(s){var c;let l="",u=eU(s);l+=`--- PROMPT --- \r `,l+=((c=u.prompt)==null?void 0:c.replace(/\r\n/g,""))+`\r @@ -205,7 +205,7 @@ Note that this is not an issue if running this frontend on a browser instead of \r `,l+=`--- PARAMS ---\r `;for(const[d,v]of Object.entries(u))d=="prompt"||d=="negativePrompt"||(l+=d+": "+v+`\r -`);return l}return pe(()=>{var s;return(s=e==null?void 0:e.lImg)==null?void 0:s.fullpath},async s=>{s&&(n.tasks.forEach(l=>l.cancel()),n.pushAction(()=>Kb(s)).res.then(l=>{a.value=o(l)}),n.pushAction(()=>Kb(e.rImg.fullpath)).res.then(l=>{i.value=o(l)}))},{immediate:!0}),(s,l)=>{const u=us("VueDiff");return Oe(),mt(u,{class:"diff",mode:"split",theme:be(r).computedTheme,language:"plaintext",prev:a.value,current:i.value},null,8,["theme","prev","current"])}}});const nU={key:0,class:"hint"},rU={class:"hint-inline"},aU=he({__name:"ImgSliComparePane",props:{left:{},right:{},container:{}},setup(t,{expose:e}){const n=t,r=z(50),a=([{size:c}])=>{r.value=c},i=z(),{width:o}=_W(i);e({requestFullScreen:()=>{var c;(c=i.value)==null||c.requestFullscreen()}});const l=id(async()=>{if(!n.left||!n.right)return{width:0,height:0};const[c,d]=await Promise.all([ld(ua(n.left)),ld(ua(n.right))]);return{width:Math.max(c.width,d.width),height:Math.max(d.height,c.height)}}),u=id(async()=>{const c=l.value;if(!c)return"width";const{height:d,width:v}=c,h=v/d,f=document.body.clientWidth/document.body.clientHeight;return h>f?"width":"height"});return(c,d)=>(Oe(),Fe(Re,null,[$e("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[S(be(jx),{class:"default-theme",onResize:a},{default:Mt(()=>[c.left?(Oe(),mt(be(fd),{key:0},{default:Mt(()=>[S(c0,{side:"left","max-edge":be(u),"container-width":be(o),percent:r.value,img:c.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):$t("",!0),c.right?(Oe(),mt(be(fd),{key:1},{default:Mt(()=>[S(c0,{"max-edge":be(u),percent:r.value,img:c.right,side:"right","container-width":be(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):$t("",!0)]),_:1})],512),c.container!=="drawer"?(Oe(),Fe("div",nU,[$e("div",rU,[S(be(lH)),_n(" "+St(c.$t("scrollDownToComparePrompt")),1)])])):$t("",!0),S(tU,{lImg:c.left,rImg:c.right},null,8,["lImg","rImg"])],64))}});const iU={class:"actions"},oU=he({__name:"ImgSliDrawer",setup(t){const e=Wx(),n=z();return(r,a)=>{const i=Xt,o=sD,s=UF;return Oe(),Fe(Re,null,[S(s,{width:"100vw",visible:be(e).drawerVisible,"onUpdate:visible":a[2]||(a[2]=l=>be(e).drawerVisible=l),"destroy-on-close":"",class:"img-sli","close-icon":null},{footer:Mt(()=>[$e("div",iU,[S(i,{onClick:a[0]||(a[0]=l=>be(e).drawerVisible=!1)},{default:Mt(()=>[_n(St(r.$t("close")),1)]),_:1}),S(i,{onClick:a[1]||(a[1]=l=>{var u;return(u=n.value)==null?void 0:u.requestFullScreen()})},{default:Mt(()=>[_n(St(r.$t("fullscreenview")),1)]),_:1}),S(o,{banner:"",style:{height:"32px"},message:"👇 "+r.$t("scrollDownToComparePrompt"),type:"info","show-icon":""},null,8,["message"])])]),default:Mt(()=>[be(e).left&&be(e).right?(Oe(),mt(aU,{key:0,ref_key:"splitpane",ref:n,container:"drawer",left:be(e).left,right:be(e).right},null,8,["left","right"])):$t("",!0)]),_:1},8,["visible"]),S(ZH),S(jV)],64)}}});const sU=Ui(oU,[["__scopeId","data-v-65e6ee07"]]),lU=he({__name:"SplitViewTab",setup(t){const e=Nn(),n={local:xn(()=>mn(()=>import("./stackView-2bd6cdf7.js"),["assets/stackView-2bd6cdf7.js","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/numInput-a524d3bc.js","assets/index-b9ffc995.js","assets/index-859cb083.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-55a21cf1.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-cc53e03a.js","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-74181f4c.js","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/MultiSelectKeep-fb8adaea.css","assets/useGenInfoDiff-13d2ea38.js","assets/stackView-b7949086.css","assets/index-f4bbe4b8.css"])),empty:xn(()=>mn(()=>import("./emptyStartup-94fd8d18.js"),["assets/emptyStartup-94fd8d18.js","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/Checkbox-951f37ba.js","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/emptyStartup-b38a59ac.css","assets/index-9fed83c2.css"])),"global-setting":xn(()=>mn(()=>import("./globalSetting-c284fbc0.js"),["assets/globalSetting-c284fbc0.js","assets/numInput-a524d3bc.js","assets/index-b9ffc995.js","assets/index-859cb083.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-55a21cf1.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/globalSetting-8612eccd.css","assets/index-f4bbe4b8.css"])),"tag-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-e6c6fa7f.js"),["assets/MatchedImageGrid-e6c6fa7f.js","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/MultiSelectKeep-74181f4c.js","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/MultiSelectKeep-fb8adaea.css","assets/hook-4ff6f457.js","assets/useGenInfoDiff-13d2ea38.js","assets/MatchedImageGrid-19d3b31e.css"])),"topic-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-23b35dd9.js"),["assets/MatchedImageGrid-23b35dd9.js","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/MultiSelectKeep-74181f4c.js","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/hook-4ff6f457.js","assets/useGenInfoDiff-13d2ea38.js","assets/MatchedImageGrid-53718263.css"])),"tag-search":xn(()=>mn(()=>import("./TagSearch-3cb5874b.js"),["assets/TagSearch-3cb5874b.js","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/index-859cb083.js","assets/index-d55a76b1.css","assets/searchHistory-c9de01d4.js","assets/index-b9ffc995.js","assets/index-806213af.css","assets/searchHistory-9e10234a.css","assets/isArrayLikeObject-55a21cf1.js","assets/_isIterateeCall-7008db8e.js","assets/TagSearch-ccd65d46.css","assets/index-f4bbe4b8.css"])),"fuzzy-search":xn(()=>mn(()=>import("./SubstrSearch-549f6935.js"),["assets/SubstrSearch-549f6935.js","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/index-859cb083.js","assets/index-d55a76b1.css","assets/index-b9ffc995.js","assets/index-806213af.css","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-74181f4c.js","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/hook-4ff6f457.js","assets/useGenInfoDiff-13d2ea38.js","assets/searchHistory-c9de01d4.js","assets/searchHistory-9e10234a.css","assets/SubstrSearch-efdcae1f.css","assets/index-f4bbe4b8.css"])),"topic-search":xn(()=>mn(()=>import("./TopicSearch-4fe24c7f.js"),["assets/TopicSearch-4fe24c7f.js","assets/index-859cb083.js","assets/index-d55a76b1.css","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/TopicSearch-e239a03c.css","assets/index-f4bbe4b8.css"])),"img-sli":xn(()=>mn(()=>import("./ImgSliPagePane-5dc424f1.js"),["assets/ImgSliPagePane-5dc424f1.js","assets/ImgSliPagePane-5f5e28b7.css"])),"batch-download":xn(()=>mn(()=>import("./batchDownload-0bd1b629.js"),["assets/batchDownload-0bd1b629.js","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/batchDownload-6b8c6bb5.css"])),"grid-view":xn(()=>mn(()=>import("./gridView-f8ee15ac.js"),["assets/gridView-f8ee15ac.js","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/gridView-7100baf1.css"])),"workspace-snapshot":xn(()=>mn(()=>import("./index-17a1bd90.js"),["assets/index-17a1bd90.js","assets/index-7e587e4d.css","assets/index-f4bbe4b8.css"])),"random-image":xn(()=>mn(()=>import("./randomImage-12e0ef07.js"),["assets/randomImage-12e0ef07.js","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-74181f4c.js","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/randomImage-a1c3d712.css"]))},r=(o,s,l)=>{var c,d;const u=e.tabList[o];if(l==="add"){const v={type:"empty",key:mr(),name:Te("emptyStartPage")};u.panes.push(v),u.key=v.key}else{const v=u.panes.findIndex(h=>h.key===s);if(u.key===s&&(u.key=((c=u.panes[v-1])==null?void 0:c.key)??((d=u.panes[1])==null?void 0:d.key)),u.panes.splice(v,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const h=e.createEmptyPane();e.tabList.push({panes:[h],key:h.key,id:mr()})}}};sd("closeTabPane",(o,s)=>r(o,s,"del"));const a=z();pe(()=>e.tabList,async()=>{var o;await Ke(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((s,l)=>{Array.from(s.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,c)=>{const d=u;d.setAttribute("draggable","true"),d.setAttribute("tabIdx",l.toString()),d.setAttribute("paneIdx",c.toString()),d.ondragend=()=>{e.dragingTab=void 0},d.ondragstart=v=>{e.dragingTab={tabIdx:l,paneIdx:c},v.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:l,paneIdx:c,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=Zo(()=>Uu.emit("returnToIIB"),100);return j9(async()=>{const o=window.parent;if(!await IW(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const s=o.get_uiCurrentTabContent();s!=null&&s.id.includes("infinite-image-browsing")&&i()})}),pe(gW(),o=>o&&i()),(o,s)=>{const l=Bl,u=xo;return Oe(),Fe("div",{ref_key:"container",ref:a},[S(be(jx),{class:"default-theme"},{default:Mt(()=>[(Oe(!0),Fe(Re,null,Na(be(e).tabList,(c,d)=>(Oe(),mt(be(fd),{key:c.id},{default:Mt(()=>[S(aH,{tabIdx:d},{default:Mt(()=>[S(u,{type:"editable-card",activeKey:c.key,"onUpdate:activeKey":v=>c.key=v,onEdit:(v,h)=>r(d,v,h)},{default:Mt(()=>[(Oe(!0),Fe(Re,null,Na(c.panes,(v,h)=>(Oe(),mt(l,{key:v.key,tab:v.name,class:"pane"},{default:Mt(()=>[(Oe(),mt(WE(n[v.type]),jd({tabIdx:d,paneKey:v.key,paneIdx:h},v),null,16,["tabIdx","paneKey","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),S(sU)],512)}}});const uU=Ui(lU,[["__scopeId","data-v-4413a897"]]),cU=async t=>{var r;const e=(r=t.conf)==null?void 0:r.global_setting,n=new URLSearchParams(parent.location.search);switch(n.get("action")){case"open":{let a=n.get("path");if(!a||!e)return;const i={extra:e.outdir_extras_samples,save:e.outdir_save,txt2img:e.outdir_txt2img_samples,img2img:e.outdir_img2img_samples};i[a]&&(a=i[a]);const o=t.tabList[0],s=n.get("mode"),l={type:"local",path:a,key:mr(),name:"",mode:["scanned","walk","scanned-fixed"].includes(s||"scanned")?s:"scanned"};o.panes.unshift(l),o.key=l.key,Px(),kW(["action","path","mode"]);break}}};function d0(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!br(t)}const Ux="app.conf.json",Io=z(),Kx=()=>ns.writeFile(Ux,JSON.stringify(De(Io.value),null,4)),fU=he({setup(){const t=async()=>{const e=await px({directory:!0});if(typeof e=="string"){if(!await ns.exists(`${e}/config.json`))return Jt.error(Te("tauriLaunchConfMessages.configNotFound"));if(!await ns.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return Jt.error(Te("tauriLaunchConfMessages.folderNotFound"));Io.value.sdwebui_dir=e,Jt.info(Te("tauriLaunchConfMessages.configCompletedMessage")),await Kx(),await Hu("shutdown_api_server_command"),await Fa(1500),await fx()}};return()=>{let e,n;return S("div",{style:{padding:"32px 0"}},[S("div",{style:{padding:"16px 0"}},[S("h2",null,[Te("tauriLaunchConf.readSdWebuiConfigTitle")]),S("p",null,[Te("tauriLaunchConf.readSdWebuiConfigDescription")]),S(Xt,{onClick:t,type:"primary"},d0(e=Te("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),S("div",{style:{padding:"16px 0"}},[S("h2",null,[Te("tauriLaunchConf.skipThisConfigTitle")]),S("p",null,[Te("tauriLaunchConf.skipThisConfigDescription")]),S(Xt,{type:"primary",onClick:xt.destroyAll},d0(n=Te("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),dU=async()=>{try{Io.value=JSON.parse(await ns.readTextFile(Ux))}catch{}Io.value||(Io.value={sdwebui_dir:""},await Kx(),xt.info({title:Te("tauriLaunchConfMessages.firstTimeUserTitle"),content:S(fU,null,null),width:"80vw",okText:Te("tauriLaunchConf.skipButton"),okButtonProps:{onClick:xt.destroyAll}}))},vU=async t=>{var i;if(!((i=t.conf)!=null&&i.export_fe_fn))return;const e=qu();a({insertTabPane:({tabIdx:o=0,paneIdx:s=0,pane:l})=>{const u=t.tabList[o];return l.key||(l.key=mr()),u.panes.splice(s,0,l),u.key=l.key,{key:l.key,ref:r(l.key)}},getTabList:()=>t.tabList,getPageRef:r,switch2IIB:Px,openIIBInNewTab:()=>window.parent.open("/infinite_image_browsing"),setTagColor(o,s){e.colorCache.set(o,s)},setTags(o,s){e.set(o,s)},getTags(o){return e.tagMap.get(o)},createGridViewFile(o,s){return{name:o.split(/[/\\]/).pop()??"",size:"-",bytes:0,type:"file",created_time:"",date:"",fullpath:o,tags:s==null?void 0:s.map(l=>({name:l})),is_under_scanned_path:!0}}});function r(o){return new Proxy({},{get(s,l,u){var c;if(l==="close"){const d=t.tabList.findIndex(v=>v.panes.some(h=>h.key===o));return()=>Uu.emit("closeTabPane",d,o)}return(c=t.pageFuncExportMap.get(o))==null?void 0:c[l]}})}function a(o){const s=window;for(const l in o)s[l]=(...u)=>o[l](...u)}},pU=he({__name:"App",setup(t){const e=Nn(),n=ZW(),r=Ix(),a=zx.filter(l=>!["tabListHistoryRecord","recent"].includes(l));let i=null;const o=kb(async()=>{e.$subscribe(Zo(async()=>{var u;if(((u=e.conf)==null?void 0:u.is_readonly)===!0)return;const l={};a.forEach(c=>{l[c]=Zr(e[c])}),JSON.stringify(l)!==JSON.stringify(i)&&(console.log("save global setting",l),await Mx("global",l),i=Zr(l))},500))}),s=kb(async()=>{var u,c;await Fa(100);const l=e.defaultInitinalPage;if(l!=="empty")if(l==="last-workspace-state"){const d=(u=e.tabListHistoryRecord)==null?void 0:u[1];if(!(d!=null&&d.tabs))return;e.tabList=Zr(d.tabs),Jt.success(Te("restoreLastWorkspaceStateSuccess"))}else{const d=(c=l.split("_"))==null?void 0:c[2],v=n.snapshots.find(h=>h.id===d);if(!(v!=null&&v.tabs))return;e.tabList=Zr(v.tabs),Jt.success(Te("restoreWorkspaceSnapshotSuccess"))}});return sd("updateGlobalSetting",async()=>{var d,v;await R9(),console.log(Ul.value);const l=await LW();e.conf=l;const u=await Qb(l);e.quickMovePaths=u.filter(h=>{var f,p;return(p=(f=h==null?void 0:h.dir)==null?void 0:f.trim)==null?void 0:p.call(f)});const c=(v=(d=e==null?void 0:e.conf)==null?void 0:d.app_fe_setting)==null?void 0:v.global;c&&(console.log("restoreFeGlobalSetting",c),i=Zr(c),a.forEach(h=>{const f=c[h];f!==void 0&&(e[h]=f)})),o(),s(),vU(e),cU(e)}),sd("returnToIIB",async()=>{const l=e.conf;if(!l)return;const u=l.global_setting;if(!u.outdir_txt2img_samples&&!u.outdir_img2img_samples)return;const c=new Set(e.quickMovePaths.map(v=>v.key));if(c.has("outdir_txt2img_samples")&&c.has("outdir_img2img_samples"))return;const d=await Qb(l);e.quickMovePaths=d.filter(v=>{var h,f;return(f=(h=v==null?void 0:v.dir)==null?void 0:h.trim)==null?void 0:f.call(h)})}),pe(()=>e.computedTheme==="dark",async l=>{await Fa();const u=document.getElementsByTagName("html")[0];if(l){document.body.classList.add("dark");const c=document.createElement("style"),{default:d}=await mn(()=>import("./antd.dark-35e9b327.js"),[]);c.innerHTML=d,c.setAttribute("antd-dark",""),u.appendChild(c)}else document.body.classList.remove("dark"),Array.from(u.querySelectorAll("style[antd-dark]")).forEach(c=>c.remove())},{immediate:!0}),pe(()=>e.previewBgOpacity,l=>{document.documentElement.style.setProperty("--iib-preview-mask-bg",`rgba(0, 0, 0, ${l})`)},{immediate:!0}),Ve(async()=>{xx&&dU(),Uu.emit("updateGlobalSetting")}),(l,u)=>{const c=wn;return Oe(),mt(c,{loading:!be(r).isIdle},{default:Mt(()=>[S(uU)]),_:1},8,["loading"])}}});function hU(t){return typeof t=="object"&&t!==null}function v0(t,e){return t=hU(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function gU(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function mU(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function yU(t,e){return e.reduce((n,r)=>{const a=r.split(".");return mU(n,a,gU(t,a))},{})}function p0(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function h0(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?yU(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function bU(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a}=e;if(!r)return;const i=(Array.isArray(r)?r.map(o=>v0(o,t)):[v0(r,t)]).map(({storage:o=localStorage,beforeRestore:s=null,afterRestore:l=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:c=a.$id,paths:d=null,debug:v=!1})=>{var h;return{storage:o,beforeRestore:s,afterRestore:l,serializer:u,key:((h=t.key)!=null?h:f=>f)(c),paths:d,debug:v}});a.$persist=()=>{i.forEach(o=>{h0(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;o&&(l==null||l(e)),p0(a,s),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:s,afterRestore:l}=o;s==null||s(e),p0(a,o),l==null||l(e),a.$subscribe((u,c)=>{h0(c,o)},{detached:!0})})}}var wU=bU(),_U=Object.defineProperty,CU=Object.defineProperties,SU=Object.getOwnPropertyDescriptors,g0=Object.getOwnPropertySymbols,xU=Object.prototype.hasOwnProperty,TU=Object.prototype.propertyIsEnumerable,m0=(t,e,n)=>e in t?_U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dd=(t,e)=>{for(var n in e||(e={}))xU.call(e,n)&&m0(t,n,e[n]);if(g0)for(var n of g0(e))TU.call(e,n)&&m0(t,n,e[n]);return t},EU=(t,e)=>CU(t,SU(e));function OU(t){return tu()?(wd(t),!0):!1}const Gx=typeof window<"u";function qx(t,e){function n(...r){t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})}return n}const PU=t=>t();function AU(t,e={}){let n,r;return i=>{const o=be(t),s=be(e.maxWait);if(n&&clearTimeout(n),o<=0||s!==void 0&&s<=0)return r&&(clearTimeout(r),r=null),i();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,i()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,i()},o)}}function IU(t,e=!0,n=!0){let r=0,a,i=!n;const o=()=>{a&&(clearTimeout(a),a=void 0)};return l=>{const u=be(t),c=Date.now()-r;if(o(),u<=0)return r=Date.now(),l();c>u&&(r=Date.now(),i?i=!1:l()),e&&(a=setTimeout(()=>{r=Date.now(),n||(i=!0),o(),l()},u)),!n&&!a&&(a=setTimeout(()=>i=!0,u))}}function mo(t,e=200,n=!0,r=!0){return qx(IU(e,n,r),t)}var y0=Object.getOwnPropertySymbols,kU=Object.prototype.hasOwnProperty,MU=Object.prototype.propertyIsEnumerable,NU=(t,e)=>{var n={};for(var r in t)kU.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&y0)for(var r of y0(t))e.indexOf(r)<0&&MU.call(t,r)&&(n[r]=t[r]);return n};function RU(t,e,n={}){const r=n,{eventFilter:a=PU}=r,i=NU(r,["eventFilter"]);return pe(t,qx(a,e),i)}var $U=Object.defineProperty,DU=Object.defineProperties,LU=Object.getOwnPropertyDescriptors,ql=Object.getOwnPropertySymbols,Yx=Object.prototype.hasOwnProperty,Jx=Object.prototype.propertyIsEnumerable,b0=(t,e,n)=>e in t?$U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,FU=(t,e)=>{for(var n in e||(e={}))Yx.call(e,n)&&b0(t,n,e[n]);if(ql)for(var n of ql(e))Jx.call(e,n)&&b0(t,n,e[n]);return t},BU=(t,e)=>DU(t,LU(e)),zU=(t,e)=>{var n={};for(var r in t)Yx.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ql)for(var r of ql(t))e.indexOf(r)<0&&Jx.call(t,r)&&(n[r]=t[r]);return n};function Xx(t,e,n={}){const r=n,{debounce:a=0}=r,i=zU(r,["debounce"]);return RU(t,e,BU(FU({},i),{eventFilter:AU(a)}))}function jU(t){var e;const n=be(t);return(e=n==null?void 0:n.$el)!=null?e:n}const WU=Gx?window:void 0,w0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_0="__vueuse_ssr_handlers__";w0[_0]=w0[_0]||{};var C0=Object.getOwnPropertySymbols,HU=Object.prototype.hasOwnProperty,VU=Object.prototype.propertyIsEnumerable,UU=(t,e)=>{var n={};for(var r in t)HU.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&C0)for(var r of C0(t))e.indexOf(r)<0&&VU.call(t,r)&&(n[r]=t[r]);return n};function KU(t,e,n={}){const r=n,{window:a=WU}=r,i=UU(r,["window"]);let o;const s=a&&"ResizeObserver"in a,l=()=>{o&&(o.disconnect(),o=void 0)},u=pe(()=>jU(t),d=>{l(),s&&a&&d&&(o=new ResizeObserver(e),o.observe(d,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return OU(c),{isSupported:s,stop:c}}var S0,x0;Gx&&(window!=null&&window.navigator)&&((S0=window==null?void 0:window.navigator)!=null&&S0.platform)&&/iP(ad|hone|od)/.test((x0=window==null?void 0:window.navigator)==null?void 0:x0.platform);var Fp={exports:{}};(function(t){var e=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,a=0;e.Diff=function(i,o){return[i,o]},e.prototype.diff_main=function(i,o,s,l){typeof l>"u"&&(this.Diff_Timeout<=0?l=Number.MAX_VALUE:l=new Date().getTime()+1e3*this.Diff_Timeout);var u=l;if(i==null||o==null)throw new Error("Null input. (diff_main)");if(i==o)return i?[new e.Diff(a,i)]:[];typeof s>"u"&&(s=!0);var c=s,d=this.diff_commonPrefix(i,o),v=i.substring(0,d);i=i.substring(d),o=o.substring(d),d=this.diff_commonSuffix(i,o);var h=i.substring(i.length-d);i=i.substring(0,i.length-d),o=o.substring(0,o.length-d);var f=this.diff_compute_(i,o,c,u);return v&&f.unshift(new e.Diff(a,v)),h&&f.push(new e.Diff(a,h)),this.diff_cleanupMerge(f),f},e.prototype.diff_compute_=function(i,o,s,l){var u;if(!i)return[new e.Diff(r,o)];if(!o)return[new e.Diff(n,i)];var c=i.length>o.length?i:o,d=i.length>o.length?o:i,v=c.indexOf(d);if(v!=-1)return u=[new e.Diff(r,c.substring(0,v)),new e.Diff(a,d),new e.Diff(r,c.substring(v+d.length))],i.length>o.length&&(u[0][0]=u[2][0]=n),u;if(d.length==1)return[new e.Diff(n,i),new e.Diff(r,o)];var h=this.diff_halfMatch_(i,o);if(h){var f=h[0],p=h[1],m=h[2],g=h[3],y=h[4],b=this.diff_main(f,m,s,l),w=this.diff_main(p,g,s,l);return b.concat([new e.Diff(a,y)],w)}return s&&i.length>100&&o.length>100?this.diff_lineMode_(i,o,l):this.diff_bisect_(i,o,l)},e.prototype.diff_lineMode_=function(i,o,s){var l=this.diff_linesToChars_(i,o);i=l.chars1,o=l.chars2;var u=l.lineArray,c=this.diff_main(i,o,!1,s);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new e.Diff(a,""));for(var d=0,v=0,h=0,f="",p="";d=1&&h>=1){c.splice(d-v-h,v+h),d=d-v-h;for(var m=this.diff_main(f,p,!1,s),g=m.length-1;g>=0;g--)c.splice(d,0,m[g]);d+=m.length}h=0,v=0,f="",p="";break}d++}return c.pop(),c},e.prototype.diff_bisect_=function(i,o,s){for(var l=i.length,u=o.length,c=Math.ceil((l+u)/2),d=c,v=2*c,h=new Array(v),f=new Array(v),p=0;ps);C++){for(var E=-C+y;E<=C-b;E+=2){var I=d+E,T;E==-C||E!=C&&h[I-1]l)b+=2;else if(N>u)y+=2;else if(g){var R=d+m-E;if(R>=0&&R=F)return this.diff_bisectSplit_(i,o,T,N,s)}}}for(var L=-C+w;L<=C-_;L+=2){var R=d+L,F;L==-C||L!=C&&f[R-1]l)_+=2;else if(j>u)w+=2;else if(!g){var I=d+m-L;if(I>=0&&I=F)return this.diff_bisectSplit_(i,o,T,N,s)}}}}return[new e.Diff(n,i),new e.Diff(r,o)]},e.prototype.diff_bisectSplit_=function(i,o,s,l,u){var c=i.substring(0,s),d=o.substring(0,l),v=i.substring(s),h=o.substring(l),f=this.diff_main(c,d,!1,u),p=this.diff_main(v,h,!1,u);return f.concat(p)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(h){for(var f="",p=0,m=-1,g=s.length;m{var s;return(s=e==null?void 0:e.lImg)==null?void 0:s.fullpath},async s=>{s&&(n.tasks.forEach(l=>l.cancel()),n.pushAction(()=>Kb(s)).res.then(l=>{a.value=o(l)}),n.pushAction(()=>Kb(e.rImg.fullpath)).res.then(l=>{i.value=o(l)}))},{immediate:!0}),(s,l)=>{const u=us("VueDiff");return Oe(),mt(u,{class:"diff",mode:"split",theme:be(r).computedTheme,language:"plaintext",prev:a.value,current:i.value},null,8,["theme","prev","current"])}}});const nU={key:0,class:"hint"},rU={class:"hint-inline"},aU=he({__name:"ImgSliComparePane",props:{left:{},right:{},container:{}},setup(t,{expose:e}){const n=t,r=z(50),a=([{size:c}])=>{r.value=c},i=z(),{width:o}=_W(i);e({requestFullScreen:()=>{var c;(c=i.value)==null||c.requestFullscreen()}});const l=id(async()=>{if(!n.left||!n.right)return{width:0,height:0};const[c,d]=await Promise.all([ld(ua(n.left)),ld(ua(n.right))]);return{width:Math.max(c.width,d.width),height:Math.max(d.height,c.height)}}),u=id(async()=>{const c=l.value;if(!c)return"width";const{height:d,width:v}=c,h=v/d,f=document.body.clientWidth/document.body.clientHeight;return h>f?"width":"height"});return(c,d)=>(Oe(),Fe(Re,null,[$e("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[S(be(jx),{class:"default-theme",onResize:a},{default:Mt(()=>[c.left?(Oe(),mt(be(fd),{key:0},{default:Mt(()=>[S(c0,{side:"left","max-edge":be(u),"container-width":be(o),percent:r.value,img:c.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):$t("",!0),c.right?(Oe(),mt(be(fd),{key:1},{default:Mt(()=>[S(c0,{"max-edge":be(u),percent:r.value,img:c.right,side:"right","container-width":be(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):$t("",!0)]),_:1})],512),c.container!=="drawer"?(Oe(),Fe("div",nU,[$e("div",rU,[S(be(lH)),_n(" "+St(c.$t("scrollDownToComparePrompt")),1)])])):$t("",!0),S(tU,{lImg:c.left,rImg:c.right},null,8,["lImg","rImg"])],64))}});const iU={class:"actions"},oU=he({__name:"ImgSliDrawer",setup(t){const e=Wx(),n=z();return(r,a)=>{const i=Xt,o=sD,s=UF;return Oe(),Fe(Re,null,[S(s,{width:"100vw",visible:be(e).drawerVisible,"onUpdate:visible":a[2]||(a[2]=l=>be(e).drawerVisible=l),"destroy-on-close":"",class:"img-sli","close-icon":null},{footer:Mt(()=>[$e("div",iU,[S(i,{onClick:a[0]||(a[0]=l=>be(e).drawerVisible=!1)},{default:Mt(()=>[_n(St(r.$t("close")),1)]),_:1}),S(i,{onClick:a[1]||(a[1]=l=>{var u;return(u=n.value)==null?void 0:u.requestFullScreen()})},{default:Mt(()=>[_n(St(r.$t("fullscreenview")),1)]),_:1}),S(o,{banner:"",style:{height:"32px"},message:"👇 "+r.$t("scrollDownToComparePrompt"),type:"info","show-icon":""},null,8,["message"])])]),default:Mt(()=>[be(e).left&&be(e).right?(Oe(),mt(aU,{key:0,ref_key:"splitpane",ref:n,container:"drawer",left:be(e).left,right:be(e).right},null,8,["left","right"])):$t("",!0)]),_:1},8,["visible"]),S(ZH),S(jV)],64)}}});const sU=Ui(oU,[["__scopeId","data-v-65e6ee07"]]),lU=he({__name:"SplitViewTab",setup(t){const e=Nn(),n={local:xn(()=>mn(()=>import("./stackView-2425ddfa.js"),["assets/stackView-2425ddfa.js","assets/index-e33c98d2.js","assets/index-41e4fe63.css","assets/numInput-8bb1e710.js","assets/index-b39f3e91.js","assets/index-1c4f06bb.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-ca08191a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js","assets/index-8e3285c7.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-89286149.js","assets/index-1cc34316.css","assets/index-11d9431b.js","assets/index-80432a0c.css","assets/FileItem-6ddd7179.js","assets/_isIterateeCall-e2252db1.js","assets/index-8929347d.js","assets/index-63826c0f.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-f7eadb70.js","assets/shortcut-f1e6388a.js","assets/Checkbox-431074e2.js","assets/MultiSelectKeep-fb8adaea.css","assets/useGenInfoDiff-4c9e8f19.js","assets/stackView-b7949086.css","assets/index-f4bbe4b8.css"])),empty:xn(()=>mn(()=>import("./emptyStartup-4685419f.js"),["assets/emptyStartup-4685419f.js","assets/index-89286149.js","assets/index-1cc34316.css","assets/Checkbox-431074e2.js","assets/index-11d9431b.js","assets/index-80432a0c.css","assets/emptyStartup-b38a59ac.css","assets/index-9fed83c2.css"])),"global-setting":xn(()=>mn(()=>import("./globalSetting-ed72e088.js"),["assets/globalSetting-ed72e088.js","assets/numInput-8bb1e710.js","assets/index-b39f3e91.js","assets/index-1c4f06bb.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-ca08191a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js","assets/index-8e3285c7.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-89286149.js","assets/index-1cc34316.css","assets/shortcut-f1e6388a.js","assets/Checkbox-431074e2.js","assets/globalSetting-8612eccd.css","assets/index-f4bbe4b8.css"])),"tag-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-59968c61.js"),["assets/MatchedImageGrid-59968c61.js","assets/index-e33c98d2.js","assets/index-41e4fe63.css","assets/index-89286149.js","assets/index-1cc34316.css","assets/MultiSelectKeep-f7eadb70.js","assets/FileItem-6ddd7179.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js","assets/index-8e3285c7.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e2252db1.js","assets/index-8929347d.js","assets/index-63826c0f.css","assets/index-11d9431b.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/shortcut-f1e6388a.js","assets/Checkbox-431074e2.js","assets/MultiSelectKeep-fb8adaea.css","assets/hook-47732221.js","assets/useGenInfoDiff-4c9e8f19.js","assets/MatchedImageGrid-19d3b31e.css"])),"topic-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-c0a36e04.js"),["assets/MatchedImageGrid-c0a36e04.js","assets/index-e33c98d2.js","assets/index-41e4fe63.css","assets/MultiSelectKeep-f7eadb70.js","assets/FileItem-6ddd7179.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js","assets/index-8e3285c7.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e2252db1.js","assets/index-8929347d.js","assets/index-63826c0f.css","assets/index-11d9431b.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/shortcut-f1e6388a.js","assets/Checkbox-431074e2.js","assets/index-89286149.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/hook-47732221.js","assets/useGenInfoDiff-4c9e8f19.js","assets/MatchedImageGrid-53718263.css"])),"tag-search":xn(()=>mn(()=>import("./TagSearch-4ec898b0.js"),["assets/TagSearch-4ec898b0.js","assets/index-e33c98d2.js","assets/index-41e4fe63.css","assets/index-1c4f06bb.js","assets/index-d55a76b1.css","assets/searchHistory-5c5a132b.js","assets/index-b39f3e91.js","assets/index-806213af.css","assets/searchHistory-9e10234a.css","assets/isArrayLikeObject-ca08191a.js","assets/_isIterateeCall-e2252db1.js","assets/TagSearch-ccd65d46.css","assets/index-f4bbe4b8.css"])),"fuzzy-search":xn(()=>mn(()=>import("./SubstrSearch-0571f040.js"),["assets/SubstrSearch-0571f040.js","assets/index-e33c98d2.js","assets/index-41e4fe63.css","assets/index-1c4f06bb.js","assets/index-d55a76b1.css","assets/index-b39f3e91.js","assets/index-806213af.css","assets/FileItem-6ddd7179.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js","assets/index-8e3285c7.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e2252db1.js","assets/index-8929347d.js","assets/index-63826c0f.css","assets/index-11d9431b.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-f7eadb70.js","assets/shortcut-f1e6388a.js","assets/Checkbox-431074e2.js","assets/index-89286149.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/hook-47732221.js","assets/useGenInfoDiff-4c9e8f19.js","assets/searchHistory-5c5a132b.js","assets/searchHistory-9e10234a.css","assets/SubstrSearch-efdcae1f.css","assets/index-f4bbe4b8.css"])),"topic-search":xn(()=>mn(()=>import("./TopicSearch-1abffd49.js"),["assets/TopicSearch-1abffd49.js","assets/index-1c4f06bb.js","assets/index-d55a76b1.css","assets/index-e33c98d2.js","assets/index-41e4fe63.css","assets/index-89286149.js","assets/index-1cc34316.css","assets/index-8e3285c7.js","assets/index-017a4092.css","assets/index-8929347d.js","assets/index-63826c0f.css","assets/TopicSearch-179508c7.css","assets/index-f4bbe4b8.css"])),"img-sli":xn(()=>mn(()=>import("./ImgSliPagePane-25a3c965.js"),["assets/ImgSliPagePane-25a3c965.js","assets/ImgSliPagePane-5f5e28b7.css"])),"batch-download":xn(()=>mn(()=>import("./batchDownload-88ec1277.js"),["assets/batchDownload-88ec1277.js","assets/index-89286149.js","assets/index-1cc34316.css","assets/FileItem-6ddd7179.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js","assets/index-8e3285c7.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e2252db1.js","assets/index-8929347d.js","assets/index-63826c0f.css","assets/index-11d9431b.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/batchDownload-6b8c6bb5.css"])),"grid-view":xn(()=>mn(()=>import("./gridView-4048615e.js"),["assets/gridView-4048615e.js","assets/FileItem-6ddd7179.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js","assets/index-8e3285c7.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e2252db1.js","assets/index-8929347d.js","assets/index-63826c0f.css","assets/index-11d9431b.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/gridView-7100baf1.css"])),"workspace-snapshot":xn(()=>mn(()=>import("./index-7996ed59.js"),["assets/index-7996ed59.js","assets/index-7e587e4d.css","assets/index-f4bbe4b8.css"])),"random-image":xn(()=>mn(()=>import("./randomImage-a0fc1235.js"),["assets/randomImage-a0fc1235.js","assets/FileItem-6ddd7179.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js","assets/index-8e3285c7.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e2252db1.js","assets/index-8929347d.js","assets/index-63826c0f.css","assets/index-11d9431b.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-f7eadb70.js","assets/shortcut-f1e6388a.js","assets/Checkbox-431074e2.js","assets/index-89286149.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/randomImage-a1c3d712.css"]))},r=(o,s,l)=>{var c,d;const u=e.tabList[o];if(l==="add"){const v={type:"empty",key:mr(),name:Te("emptyStartPage")};u.panes.push(v),u.key=v.key}else{const v=u.panes.findIndex(h=>h.key===s);if(u.key===s&&(u.key=((c=u.panes[v-1])==null?void 0:c.key)??((d=u.panes[1])==null?void 0:d.key)),u.panes.splice(v,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const h=e.createEmptyPane();e.tabList.push({panes:[h],key:h.key,id:mr()})}}};sd("closeTabPane",(o,s)=>r(o,s,"del"));const a=z();pe(()=>e.tabList,async()=>{var o;await Ke(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((s,l)=>{Array.from(s.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,c)=>{const d=u;d.setAttribute("draggable","true"),d.setAttribute("tabIdx",l.toString()),d.setAttribute("paneIdx",c.toString()),d.ondragend=()=>{e.dragingTab=void 0},d.ondragstart=v=>{e.dragingTab={tabIdx:l,paneIdx:c},v.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:l,paneIdx:c,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=Zo(()=>Uu.emit("returnToIIB"),100);return j9(async()=>{const o=window.parent;if(!await IW(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const s=o.get_uiCurrentTabContent();s!=null&&s.id.includes("infinite-image-browsing")&&i()})}),pe(gW(),o=>o&&i()),(o,s)=>{const l=Bl,u=xo;return Oe(),Fe("div",{ref_key:"container",ref:a},[S(be(jx),{class:"default-theme"},{default:Mt(()=>[(Oe(!0),Fe(Re,null,Na(be(e).tabList,(c,d)=>(Oe(),mt(be(fd),{key:c.id},{default:Mt(()=>[S(aH,{tabIdx:d},{default:Mt(()=>[S(u,{type:"editable-card",activeKey:c.key,"onUpdate:activeKey":v=>c.key=v,onEdit:(v,h)=>r(d,v,h)},{default:Mt(()=>[(Oe(!0),Fe(Re,null,Na(c.panes,(v,h)=>(Oe(),mt(l,{key:v.key,tab:v.name,class:"pane"},{default:Mt(()=>[(Oe(),mt(WE(n[v.type]),jd({tabIdx:d,paneKey:v.key,paneIdx:h},v),null,16,["tabIdx","paneKey","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),S(sU)],512)}}});const uU=Ui(lU,[["__scopeId","data-v-4413a897"]]),cU=async t=>{var r;const e=(r=t.conf)==null?void 0:r.global_setting,n=new URLSearchParams(parent.location.search);switch(n.get("action")){case"open":{let a=n.get("path");if(!a||!e)return;const i={extra:e.outdir_extras_samples,save:e.outdir_save,txt2img:e.outdir_txt2img_samples,img2img:e.outdir_img2img_samples};i[a]&&(a=i[a]);const o=t.tabList[0],s=n.get("mode"),l={type:"local",path:a,key:mr(),name:"",mode:["scanned","walk","scanned-fixed"].includes(s||"scanned")?s:"scanned"};o.panes.unshift(l),o.key=l.key,Px(),kW(["action","path","mode"]);break}}};function d0(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!br(t)}const Ux="app.conf.json",Io=z(),Kx=()=>ns.writeFile(Ux,JSON.stringify(De(Io.value),null,4)),fU=he({setup(){const t=async()=>{const e=await px({directory:!0});if(typeof e=="string"){if(!await ns.exists(`${e}/config.json`))return Jt.error(Te("tauriLaunchConfMessages.configNotFound"));if(!await ns.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return Jt.error(Te("tauriLaunchConfMessages.folderNotFound"));Io.value.sdwebui_dir=e,Jt.info(Te("tauriLaunchConfMessages.configCompletedMessage")),await Kx(),await Hu("shutdown_api_server_command"),await Fa(1500),await fx()}};return()=>{let e,n;return S("div",{style:{padding:"32px 0"}},[S("div",{style:{padding:"16px 0"}},[S("h2",null,[Te("tauriLaunchConf.readSdWebuiConfigTitle")]),S("p",null,[Te("tauriLaunchConf.readSdWebuiConfigDescription")]),S(Xt,{onClick:t,type:"primary"},d0(e=Te("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),S("div",{style:{padding:"16px 0"}},[S("h2",null,[Te("tauriLaunchConf.skipThisConfigTitle")]),S("p",null,[Te("tauriLaunchConf.skipThisConfigDescription")]),S(Xt,{type:"primary",onClick:xt.destroyAll},d0(n=Te("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),dU=async()=>{try{Io.value=JSON.parse(await ns.readTextFile(Ux))}catch{}Io.value||(Io.value={sdwebui_dir:""},await Kx(),xt.info({title:Te("tauriLaunchConfMessages.firstTimeUserTitle"),content:S(fU,null,null),width:"80vw",okText:Te("tauriLaunchConf.skipButton"),okButtonProps:{onClick:xt.destroyAll}}))},vU=async t=>{var i;if(!((i=t.conf)!=null&&i.export_fe_fn))return;const e=qu();a({insertTabPane:({tabIdx:o=0,paneIdx:s=0,pane:l})=>{const u=t.tabList[o];return l.key||(l.key=mr()),u.panes.splice(s,0,l),u.key=l.key,{key:l.key,ref:r(l.key)}},getTabList:()=>t.tabList,getPageRef:r,switch2IIB:Px,openIIBInNewTab:()=>window.parent.open("/infinite_image_browsing"),setTagColor(o,s){e.colorCache.set(o,s)},setTags(o,s){e.set(o,s)},getTags(o){return e.tagMap.get(o)},createGridViewFile(o,s){return{name:o.split(/[/\\]/).pop()??"",size:"-",bytes:0,type:"file",created_time:"",date:"",fullpath:o,tags:s==null?void 0:s.map(l=>({name:l})),is_under_scanned_path:!0}}});function r(o){return new Proxy({},{get(s,l,u){var c;if(l==="close"){const d=t.tabList.findIndex(v=>v.panes.some(h=>h.key===o));return()=>Uu.emit("closeTabPane",d,o)}return(c=t.pageFuncExportMap.get(o))==null?void 0:c[l]}})}function a(o){const s=window;for(const l in o)s[l]=(...u)=>o[l](...u)}},pU=he({__name:"App",setup(t){const e=Nn(),n=ZW(),r=Ix(),a=zx.filter(l=>!["tabListHistoryRecord","recent"].includes(l));let i=null;const o=kb(async()=>{e.$subscribe(Zo(async()=>{var u;if(((u=e.conf)==null?void 0:u.is_readonly)===!0)return;const l={};a.forEach(c=>{l[c]=Zr(e[c])}),JSON.stringify(l)!==JSON.stringify(i)&&(console.log("save global setting",l),await Mx("global",l),i=Zr(l))},500))}),s=kb(async()=>{var u,c;await Fa(100);const l=e.defaultInitinalPage;if(l!=="empty")if(l==="last-workspace-state"){const d=(u=e.tabListHistoryRecord)==null?void 0:u[1];if(!(d!=null&&d.tabs))return;e.tabList=Zr(d.tabs),Jt.success(Te("restoreLastWorkspaceStateSuccess"))}else{const d=(c=l.split("_"))==null?void 0:c[2],v=n.snapshots.find(h=>h.id===d);if(!(v!=null&&v.tabs))return;e.tabList=Zr(v.tabs),Jt.success(Te("restoreWorkspaceSnapshotSuccess"))}});return sd("updateGlobalSetting",async()=>{var d,v;await R9(),console.log(Ul.value);const l=await LW();e.conf=l;const u=await Qb(l);e.quickMovePaths=u.filter(h=>{var f,p;return(p=(f=h==null?void 0:h.dir)==null?void 0:f.trim)==null?void 0:p.call(f)});const c=(v=(d=e==null?void 0:e.conf)==null?void 0:d.app_fe_setting)==null?void 0:v.global;c&&(console.log("restoreFeGlobalSetting",c),i=Zr(c),a.forEach(h=>{const f=c[h];f!==void 0&&(e[h]=f)})),o(),s(),vU(e),cU(e)}),sd("returnToIIB",async()=>{const l=e.conf;if(!l)return;const u=l.global_setting;if(!u.outdir_txt2img_samples&&!u.outdir_img2img_samples)return;const c=new Set(e.quickMovePaths.map(v=>v.key));if(c.has("outdir_txt2img_samples")&&c.has("outdir_img2img_samples"))return;const d=await Qb(l);e.quickMovePaths=d.filter(v=>{var h,f;return(f=(h=v==null?void 0:v.dir)==null?void 0:h.trim)==null?void 0:f.call(h)})}),pe(()=>e.computedTheme==="dark",async l=>{await Fa();const u=document.getElementsByTagName("html")[0];if(l){document.body.classList.add("dark");const c=document.createElement("style"),{default:d}=await mn(()=>import("./antd.dark-35e9b327.js"),[]);c.innerHTML=d,c.setAttribute("antd-dark",""),u.appendChild(c)}else document.body.classList.remove("dark"),Array.from(u.querySelectorAll("style[antd-dark]")).forEach(c=>c.remove())},{immediate:!0}),pe(()=>e.previewBgOpacity,l=>{document.documentElement.style.setProperty("--iib-preview-mask-bg",`rgba(0, 0, 0, ${l})`)},{immediate:!0}),Ve(async()=>{xx&&dU(),Uu.emit("updateGlobalSetting")}),(l,u)=>{const c=wn;return Oe(),mt(c,{loading:!be(r).isIdle},{default:Mt(()=>[S(uU)]),_:1},8,["loading"])}}});function hU(t){return typeof t=="object"&&t!==null}function v0(t,e){return t=hU(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function gU(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function mU(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function yU(t,e){return e.reduce((n,r)=>{const a=r.split(".");return mU(n,a,gU(t,a))},{})}function p0(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function h0(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?yU(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function bU(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a}=e;if(!r)return;const i=(Array.isArray(r)?r.map(o=>v0(o,t)):[v0(r,t)]).map(({storage:o=localStorage,beforeRestore:s=null,afterRestore:l=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:c=a.$id,paths:d=null,debug:v=!1})=>{var h;return{storage:o,beforeRestore:s,afterRestore:l,serializer:u,key:((h=t.key)!=null?h:f=>f)(c),paths:d,debug:v}});a.$persist=()=>{i.forEach(o=>{h0(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;o&&(l==null||l(e)),p0(a,s),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:s,afterRestore:l}=o;s==null||s(e),p0(a,o),l==null||l(e),a.$subscribe((u,c)=>{h0(c,o)},{detached:!0})})}}var wU=bU(),_U=Object.defineProperty,CU=Object.defineProperties,SU=Object.getOwnPropertyDescriptors,g0=Object.getOwnPropertySymbols,xU=Object.prototype.hasOwnProperty,TU=Object.prototype.propertyIsEnumerable,m0=(t,e,n)=>e in t?_U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dd=(t,e)=>{for(var n in e||(e={}))xU.call(e,n)&&m0(t,n,e[n]);if(g0)for(var n of g0(e))TU.call(e,n)&&m0(t,n,e[n]);return t},EU=(t,e)=>CU(t,SU(e));function OU(t){return tu()?(wd(t),!0):!1}const Gx=typeof window<"u";function qx(t,e){function n(...r){t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})}return n}const PU=t=>t();function AU(t,e={}){let n,r;return i=>{const o=be(t),s=be(e.maxWait);if(n&&clearTimeout(n),o<=0||s!==void 0&&s<=0)return r&&(clearTimeout(r),r=null),i();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,i()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,i()},o)}}function IU(t,e=!0,n=!0){let r=0,a,i=!n;const o=()=>{a&&(clearTimeout(a),a=void 0)};return l=>{const u=be(t),c=Date.now()-r;if(o(),u<=0)return r=Date.now(),l();c>u&&(r=Date.now(),i?i=!1:l()),e&&(a=setTimeout(()=>{r=Date.now(),n||(i=!0),o(),l()},u)),!n&&!a&&(a=setTimeout(()=>i=!0,u))}}function mo(t,e=200,n=!0,r=!0){return qx(IU(e,n,r),t)}var y0=Object.getOwnPropertySymbols,kU=Object.prototype.hasOwnProperty,MU=Object.prototype.propertyIsEnumerable,NU=(t,e)=>{var n={};for(var r in t)kU.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&y0)for(var r of y0(t))e.indexOf(r)<0&&MU.call(t,r)&&(n[r]=t[r]);return n};function RU(t,e,n={}){const r=n,{eventFilter:a=PU}=r,i=NU(r,["eventFilter"]);return pe(t,qx(a,e),i)}var $U=Object.defineProperty,DU=Object.defineProperties,LU=Object.getOwnPropertyDescriptors,ql=Object.getOwnPropertySymbols,Yx=Object.prototype.hasOwnProperty,Jx=Object.prototype.propertyIsEnumerable,b0=(t,e,n)=>e in t?$U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,FU=(t,e)=>{for(var n in e||(e={}))Yx.call(e,n)&&b0(t,n,e[n]);if(ql)for(var n of ql(e))Jx.call(e,n)&&b0(t,n,e[n]);return t},BU=(t,e)=>DU(t,LU(e)),zU=(t,e)=>{var n={};for(var r in t)Yx.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ql)for(var r of ql(t))e.indexOf(r)<0&&Jx.call(t,r)&&(n[r]=t[r]);return n};function Xx(t,e,n={}){const r=n,{debounce:a=0}=r,i=zU(r,["debounce"]);return RU(t,e,BU(FU({},i),{eventFilter:AU(a)}))}function jU(t){var e;const n=be(t);return(e=n==null?void 0:n.$el)!=null?e:n}const WU=Gx?window:void 0,w0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_0="__vueuse_ssr_handlers__";w0[_0]=w0[_0]||{};var C0=Object.getOwnPropertySymbols,HU=Object.prototype.hasOwnProperty,VU=Object.prototype.propertyIsEnumerable,UU=(t,e)=>{var n={};for(var r in t)HU.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&C0)for(var r of C0(t))e.indexOf(r)<0&&VU.call(t,r)&&(n[r]=t[r]);return n};function KU(t,e,n={}){const r=n,{window:a=WU}=r,i=UU(r,["window"]);let o;const s=a&&"ResizeObserver"in a,l=()=>{o&&(o.disconnect(),o=void 0)},u=pe(()=>jU(t),d=>{l(),s&&a&&d&&(o=new ResizeObserver(e),o.observe(d,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return OU(c),{isSupported:s,stop:c}}var S0,x0;Gx&&(window!=null&&window.navigator)&&((S0=window==null?void 0:window.navigator)!=null&&S0.platform)&&/iP(ad|hone|od)/.test((x0=window==null?void 0:window.navigator)==null?void 0:x0.platform);var Fp={exports:{}};(function(t){var e=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,a=0;e.Diff=function(i,o){return[i,o]},e.prototype.diff_main=function(i,o,s,l){typeof l>"u"&&(this.Diff_Timeout<=0?l=Number.MAX_VALUE:l=new Date().getTime()+1e3*this.Diff_Timeout);var u=l;if(i==null||o==null)throw new Error("Null input. (diff_main)");if(i==o)return i?[new e.Diff(a,i)]:[];typeof s>"u"&&(s=!0);var c=s,d=this.diff_commonPrefix(i,o),v=i.substring(0,d);i=i.substring(d),o=o.substring(d),d=this.diff_commonSuffix(i,o);var h=i.substring(i.length-d);i=i.substring(0,i.length-d),o=o.substring(0,o.length-d);var f=this.diff_compute_(i,o,c,u);return v&&f.unshift(new e.Diff(a,v)),h&&f.push(new e.Diff(a,h)),this.diff_cleanupMerge(f),f},e.prototype.diff_compute_=function(i,o,s,l){var u;if(!i)return[new e.Diff(r,o)];if(!o)return[new e.Diff(n,i)];var c=i.length>o.length?i:o,d=i.length>o.length?o:i,v=c.indexOf(d);if(v!=-1)return u=[new e.Diff(r,c.substring(0,v)),new e.Diff(a,d),new e.Diff(r,c.substring(v+d.length))],i.length>o.length&&(u[0][0]=u[2][0]=n),u;if(d.length==1)return[new e.Diff(n,i),new e.Diff(r,o)];var h=this.diff_halfMatch_(i,o);if(h){var f=h[0],p=h[1],m=h[2],g=h[3],y=h[4],b=this.diff_main(f,m,s,l),w=this.diff_main(p,g,s,l);return b.concat([new e.Diff(a,y)],w)}return s&&i.length>100&&o.length>100?this.diff_lineMode_(i,o,l):this.diff_bisect_(i,o,l)},e.prototype.diff_lineMode_=function(i,o,s){var l=this.diff_linesToChars_(i,o);i=l.chars1,o=l.chars2;var u=l.lineArray,c=this.diff_main(i,o,!1,s);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new e.Diff(a,""));for(var d=0,v=0,h=0,f="",p="";d=1&&h>=1){c.splice(d-v-h,v+h),d=d-v-h;for(var m=this.diff_main(f,p,!1,s),g=m.length-1;g>=0;g--)c.splice(d,0,m[g]);d+=m.length}h=0,v=0,f="",p="";break}d++}return c.pop(),c},e.prototype.diff_bisect_=function(i,o,s){for(var l=i.length,u=o.length,c=Math.ceil((l+u)/2),d=c,v=2*c,h=new Array(v),f=new Array(v),p=0;ps);C++){for(var E=-C+y;E<=C-b;E+=2){var I=d+E,T;E==-C||E!=C&&h[I-1]l)b+=2;else if(N>u)y+=2;else if(g){var R=d+m-E;if(R>=0&&R=F)return this.diff_bisectSplit_(i,o,T,N,s)}}}for(var L=-C+w;L<=C-_;L+=2){var R=d+L,F;L==-C||L!=C&&f[R-1]l)_+=2;else if(j>u)w+=2;else if(!g){var I=d+m-L;if(I>=0&&I=F)return this.diff_bisectSplit_(i,o,T,N,s)}}}}return[new e.Diff(n,i),new e.Diff(r,o)]},e.prototype.diff_bisectSplit_=function(i,o,s,l,u){var c=i.substring(0,s),d=o.substring(0,l),v=i.substring(s),h=o.substring(l),f=this.diff_main(c,d,!1,u),p=this.diff_main(v,h,!1,u);return f.concat(p)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(h){for(var f="",p=0,m=-1,g=s.length;ml?i=i.substring(s-l):so.length?i:o,l=i.length>o.length?o:i;if(s.length<4||2*l.length=b.length?[T,N,R,F,I]:null}var d=c(s,l,Math.ceil(s.length/4)),v=c(s,l,Math.ceil(s.length/2)),h;if(!d&&!v)return null;v?d?h=d[4].length>v[4].length?d:v:h=v:h=d;var f,p,m,g;i.length>o.length?(f=h[0],p=h[1],m=h[2],g=h[3]):(m=h[0],g=h[1],f=h[2],p=h[3]);var y=h[4];return[f,p,m,g,y]},e.prototype.diff_cleanupSemantic=function(i){for(var o=!1,s=[],l=0,u=null,c=0,d=0,v=0,h=0,f=0;c0?s[l-1]:-1,d=0,v=0,h=0,f=0,u=null,o=!0)),c++;for(o&&this.diff_cleanupMerge(i),this.diff_cleanupSemanticLossless(i),c=1;c=y?(g>=p.length/2||g>=m.length/2)&&(i.splice(c,0,new e.Diff(a,m.substring(0,g))),i[c-1][1]=p.substring(0,p.length-g),i[c+1][1]=m.substring(g),c++):(y>=p.length/2||y>=m.length/2)&&(i.splice(c,0,new e.Diff(a,p.substring(0,y))),i[c-1][0]=r,i[c-1][1]=m.substring(0,m.length-y),i[c+1][0]=n,i[c+1][1]=p.substring(y),c++),c++}c++}},e.prototype.diff_cleanupSemanticLossless=function(i){function o(y,b){if(!y||!b)return 6;var w=y.charAt(y.length-1),_=b.charAt(0),C=w.match(e.nonAlphaNumericRegex_),E=_.match(e.nonAlphaNumericRegex_),I=C&&w.match(e.whitespaceRegex_),T=E&&_.match(e.whitespaceRegex_),N=I&&w.match(e.linebreakRegex_),R=T&&_.match(e.linebreakRegex_),F=N&&y.match(e.blanklineEndRegex_),L=R&&b.match(e.blanklineStartRegex_);return F||L?5:N||R?4:C&&!I&&T?3:I||T?2:C||E?1:0}for(var s=1;s=m&&(m=g,h=l,f=u,p=c)}i[s-1][1]!=h&&(h?i[s-1][1]=h:(i.splice(s-1,1),s--),i[s][1]=f,p?i[s+1][1]=p:(i.splice(s+1,1),s--))}s++}},e.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,e.whitespaceRegex_=/\s/,e.linebreakRegex_=/[\r\n]/,e.blanklineEndRegex_=/\n\r?\n$/,e.blanklineStartRegex_=/^\r?\n\r?\n/,e.prototype.diff_cleanupEfficiency=function(i){for(var o=!1,s=[],l=0,u=null,c=0,d=!1,v=!1,h=!1,f=!1;c0?s[l-1]:-1,h=f=!1),o=!0)),c++;o&&this.diff_cleanupMerge(i)},e.prototype.diff_cleanupMerge=function(i){i.push(new e.Diff(a,""));for(var o=0,s=0,l=0,u="",c="",d;o1?(s!==0&&l!==0&&(d=this.diff_commonPrefix(c,u),d!==0&&(o-s-l>0&&i[o-s-l-1][0]==a?i[o-s-l-1][1]+=c.substring(0,d):(i.splice(0,0,new e.Diff(a,c.substring(0,d))),o++),c=c.substring(d),u=u.substring(d)),d=this.diff_commonSuffix(c,u),d!==0&&(i[o][1]=c.substring(c.length-d)+i[o][1],c=c.substring(0,c.length-d),u=u.substring(0,u.length-d))),o-=s+l,i.splice(o,s+l),u.length&&(i.splice(o,0,new e.Diff(n,u)),o++),c.length&&(i.splice(o,0,new e.Diff(r,c)),o++),o++):o!==0&&i[o-1][0]==a?(i[o-1][1]+=i[o][1],i.splice(o,1)):o++,l=0,s=0,u="",c="";break}i[i.length-1][1]===""&&i.pop();var v=!1;for(o=1;oo));d++)u=s,c=l;return i.length!=d&&i[d][0]===n?c:c+(o-u)},e.prototype.diff_prettyHtml=function(i){for(var o=[],s=/&/g,l=//g,c=/\n/g,d=0;d");switch(v){case r:o[d]=''+f+"";break;case n:o[d]=''+f+"";break;case a:o[d]=""+f+"";break}}return o.join("")},e.prototype.diff_text1=function(i){for(var o=[],s=0;sthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var l=this.match_alphabet_(o),u=this;function c(T,N){var R=T/o.length,F=Math.abs(s-N);return u.Match_Distance?R+F/u.Match_Distance:F?1:R}var d=this.Match_Threshold,v=i.indexOf(o,s);v!=-1&&(d=Math.min(c(0,v),d),v=i.lastIndexOf(o,s+o.length),v!=-1&&(d=Math.min(c(0,v),d)));var h=1<=b;C--){var E=l[i.charAt(C-1)];if(y===0?_[C]=(_[C+1]<<1|1)&E:_[C]=(_[C+1]<<1|1)&E|((g[C+1]|g[C])<<1|1)|g[C+1],_[C]&h){var I=c(y,C-1);if(I<=d)if(d=I,v=C-1,v>s)b=Math.max(1,2*s-v);else break}}if(c(y+1,s)>d)break;g=_}return v},e.prototype.match_alphabet_=function(i){for(var o={},s=0;s"u")l=i,u=this.diff_main(l,o,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(i&&typeof i=="object"&&typeof o>"u"&&typeof s>"u")u=i,l=this.diff_text1(u);else if(typeof i=="string"&&o&&typeof o=="object"&&typeof s>"u")l=i,u=o;else if(typeof i=="string"&&typeof o=="string"&&s&&typeof s=="object")l=i,u=s;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var c=[],d=new e.patch_obj,v=0,h=0,f=0,p=l,m=l,g=0;g=2*this.Patch_Margin&&v&&(this.patch_addContext_(d,p),c.push(d),d=new e.patch_obj,v=0,p=m,h=f);break}y!==r&&(h+=b.length),y!==n&&(f+=b.length)}return v&&(this.patch_addContext_(d,p),c.push(d)),c},e.prototype.patch_deepCopy=function(i){for(var o=[],s=0;sthis.Match_MaxBits?(h=this.match_main(o,v.substring(0,this.Match_MaxBits),d),h!=-1&&(f=this.match_main(o,v.substring(v.length-this.Match_MaxBits),d+v.length-this.Match_MaxBits),(f==-1||h>=f)&&(h=-1))):h=this.match_main(o,v,d),h==-1)u[c]=!1,l-=i[c].length2-i[c].length1;else{u[c]=!0,l=h-d;var p;if(f==-1?p=o.substring(h,h+v.length):p=o.substring(h,f+this.Match_MaxBits),v==p)o=o.substring(0,h)+this.diff_text2(i[c].diffs)+o.substring(h+v.length);else{var m=this.diff_main(v,p,!1);if(v.length>this.Match_MaxBits&&this.diff_levenshtein(m)/v.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(m);for(var g=0,y,b=0;bc[0][1].length){var d=o-c[0][1].length;c[0][1]=s.substring(c[0][1].length)+c[0][1],u.start1-=d,u.start2-=d,u.length1+=d,u.length2+=d}if(u=i[i.length-1],c=u.diffs,c.length==0||c[c.length-1][0]!=a)c.push(new e.Diff(a,s)),u.length1+=o,u.length2+=o;else if(o>c[c.length-1][1].length){var d=o-c[c.length-1][1].length;c[c.length-1][1]+=s.substring(0,d),u.length1+=d,u.length2+=d}return s},e.prototype.patch_splitMax=function(i){for(var o=this.Match_MaxBits,s=0;s2*o?(v.length1+=p.length,u+=p.length,h=!1,v.diffs.push(new e.Diff(f,p)),l.diffs.shift()):(p=p.substring(0,o-v.length1-this.Patch_Margin),v.length1+=p.length,u+=p.length,f===a?(v.length2+=p.length,c+=p.length):h=!1,v.diffs.push(new e.Diff(f,p)),p==l.diffs[0][1]?l.diffs.shift():l.diffs[0][1]=l.diffs[0][1].substring(p.length))}d=this.diff_text2(v.diffs),d=d.substring(d.length-this.Patch_Margin);var m=this.diff_text1(l.diffs).substring(0,this.Patch_Margin);m!==""&&(v.length1+=m.length,v.length2+=m.length,v.diffs.length!==0&&v.diffs[v.diffs.length-1][0]===a?v.diffs[v.diffs.length-1][1]+=m:v.diffs.push(new e.Diff(a,m))),h||i.splice(++s,0,v)}}},e.prototype.patch_toText=function(i){for(var o=[],s=0;s{const e=[];let n=0;return t.map(r=>{const a=r[0][1].replace(/\n$/,"").split(` `),i=r[1][1].replace(/\n$/,"").split(` `);a.map(o=>{un(r[0][0])==="removed"&&e.push([{type:un(r[0][0]),lineNum:void 0,value:o}])}),i.map(o=>{un(r[1][0])!=="disabled"&&(n+=1,e.push([{type:un(r[1][0]),lineNum:n,value:o}]))})}),e},uG=(t,e,n)=>{function r(i,o){const s=new Fp.exports.diff_match_patch,l=s.diff_linesToChars_(i,o),u=l.chars1,c=l.chars2,d=l.lineArray,v=s.diff_main(u,c,!1);return s.diff_charsToLines_(v,d),v}const a=r(e,n).reduce((i,o)=>{const s=un(o[0]);if(s==="equal"&&i.push([o]),s==="removed"&&i.push([o]),s==="added"){const l=i.length&&i[i.length-1][0]?i[i.length-1][0]:null;l&&un(l[0])==="removed"?i[i.length-1].push(o):i.push([o])}return i},[]);return a.map(i=>{if(i.length>1)return;const o=un(i[0][0]);o==="added"?i.unshift([2,""]):o==="removed"?i.push([2,""]):o==="equal"&&i.push([...i[0]])}),t==="split"?sG(a):t==="unified"?lG(a):[]},cG=(t,e)=>{const n=new Fp.exports.diff_match_patch,r=n.diff_main(t,e);return n.diff_cleanupSemantic(r),r.filter(a=>un(a[0])!=="removed").map(a=>un(a[0])==="added"?`${Mr}${a[1]}${Nr}`:a[1]).join("")},fG=({highlightCode:t,language:e,code:n})=>{if(!n.match(new RegExp(`(${Mr}|${Nr})`,"g"))){t.value=Sr.highlight(n,{language:e}).value;return}let a=n;const i=n.replace(new RegExp(`(${Mr}|${Nr})`,"g"),"");let o=document.createElement("div");o.innerHTML=Sr.highlight(i,{language:e}).value;let s=!1;const l=d=>{d.childNodes.forEach(v=>{if(v.nodeType===1&&l(v),v.nodeType===3){if(!v.textContent)return;let h=v.textContent,f="";for(s&&(f+=Mr);h.length;){if(a.startsWith(Mr)){a=a.slice(Mr.length),f+=Mr,s=!0;continue}if(a.startsWith(Nr)){a=a.slice(Nr.length),f+=Nr,s=!1;continue}const p=a.match(new RegExp(`(${Mr}|${Nr})`)),m=p&&p.index?p.index:a.length,g=Math.min(m,h.length);f+=a.substring(0,g),a=a.slice(g),h=h.slice(g)}s&&(f+=Nr),v.textContent=f}})};l(o);const u=Mr.replace("<","<").replace(">",">"),c=Nr.replace("<","<").replace(">",">");t.value=o.innerHTML.replace(new RegExp(u,"g"),'').replace(new RegExp(c,"g"),""),o=null},dG=(t,e,n)=>{const r=z([]),a=z([]),i=V(()=>a.value.filter(s=>t.folding?!s.foldable&&s.visible:s.visible));return Xx([()=>t.mode,()=>t.prev,()=>t.current,()=>t.folding],()=>{const s=uG(t.mode,t.prev,t.current);r.value=s,a.value.splice(r.value.length),r.value.map((l,u)=>{var c;const d=a.value[u],v=t.folding&&l[0].type==="equal"&&((c=r.value[u-1])==null?void 0:c[0].type)==="equal",h={index:u,foldable:v,visible:!0};n.value?a.value[u]=EU(dd({},h),{visible:(d==null?void 0:d.visible)||!1,top:(d==null?void 0:d.top)||void 0,height:(d==null?void 0:d.height)||n.value.lineMinHeight}):a.value[u]=dd({},h)})},{debounce:t.inputDelay,immediate:!0}),{meta:a,render:r,list:i}},vG=(t,e,n,r)=>{const a=V(()=>n.value?r.value.reduce((s,l)=>(l.top=s,l.foldable?s:s+l.height),0)+"px":void 0),i=()=>{if(!e.value||!n.value)return;const o=e.value.scrollTop,s=n.value.height,l=o-1.5*s,u=o+s+1.5*s;r.value.reduce((c,d)=>(c>=l&&c<=u?d.visible=!0:d.visible=!1,d.top=c,d.foldable?c:c+d.height),0)};return Xx([()=>t.mode,()=>t.prev,()=>t.current,()=>t.folding],()=>Ke(i),{debounce:t.inputDelay,immediate:!0}),Ve(()=>{var o;n.value&&((o=e.value)==null||o.addEventListener("scroll",mo(i,n.value.delay)))}),st(()=>{var o;n.value&&((o=e.value)==null||o.removeEventListener("scroll",mo(i,n.value.delay)))}),pe(n,(o,s)=>{var l,u;!s&&o&&((l=e.value)==null||l.addEventListener("scroll",mo(i,o.delay))),s&&!o&&((u=e.value)==null||u.removeEventListener("scroll",mo(i,s.delay)))}),{minHeight:a}};var Up=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};const pG=he({props:{language:{type:String,required:!0},code:{type:String,required:!0},scrollOptions:{type:[Boolean,Object],default:!1}},emits:["rendered"],setup(t,{emit:e}){const n=z("");return Ve(()=>{pe([()=>t.language,()=>t.code],()=>{fG({highlightCode:n,language:t.language,code:t.code}),Ke(()=>e("rendered"))},{immediate:!0}),pe([()=>t.scrollOptions],()=>{Ke(()=>e("rendered"))},{deep:!0})}),{highlightCode:n}}}),hG=["innerHTML"];function gG(t,e,n,r,a,i){return Oe(),Fe("pre",null,[$e("code",{class:"hljs",innerHTML:t.highlightCode},null,8,hG)])}var mG=Up(pG,[["render",gG]]);const yG=he({components:{Code:mG},props:{mode:{type:String,required:!0},folding:{type:Boolean,default:!1},language:{type:String,required:!0},meta:{type:Object,required:!0},render:{type:Object,required:!0},scrollOptions:{type:[Boolean,Object],default:!1}},setup(t,{emit:e}){const n=z(null),r=V(()=>{if(t.scrollOptions)return{position:"absolute",left:0,top:0,transform:`translate3d(0, ${t.meta.top}px, 0)`,minHeight:t.scrollOptions.lineMinHeight+"px"}}),a=V(()=>t.folding&&t.render[0].type==="equal"),i=(s,l,u)=>{if(!s.value)return` -`;if(typeof l>"u"||typeof u>"u"||!s.chkWords)return s.value;const c=l[u===0?1:0];return c.value?cG(c.value,s.value):s.value},o=()=>{!n.value||t.meta.height===n.value.offsetHeight||e("setLineHeight",t.meta.index,n.value.offsetHeight)};return t.scrollOptions&&KU(n,mo(()=>{!n.value||t.meta.height===n.value.offsetHeight||e("setLineHeight",t.meta.index,n.value.offsetHeight)},t.scrollOptions.delay)),{line:n,isFoldLine:a,rendered:o,rowStyle:r,setCode:i}}}),bG=$e("div",{class:"lineNum vue-diff-cell-fold"},null,-1),wG=$e("div",{class:"code vue-diff-cell-fold"},null,-1),_G=$e("div",{class:"lineNum vue-diff-cell-fold"},null,-1),CG=$e("div",{class:"code vue-diff-cell-fold"},null,-1);function SG(t,e,n,r,a,i){const o=us("Code");return Oe(),Fe("div",{ref:"line",class:qt(["vue-diff-row",`vue-diff-row-${t.mode}`]),style:Pn(t.rowStyle)},[t.mode==="split"?(Oe(!0),Fe(Re,{key:0},Na(t.render,(s,l)=>(Oe(),Fe(Re,{key:l},[t.isFoldLine?(Oe(),Fe(Re,{key:0},[bG,wG],64)):(Oe(),Fe(Re,{key:1},[$e("div",{class:qt(["lineNum",`vue-diff-cell-${s.type}`])},St(s.lineNum),3),$e("div",{class:qt(["code",`vue-diff-cell-${s.type}`])},[S(o,{language:t.language,code:t.setCode(s,t.render,l),scrollOptions:t.scrollOptions,onRendered:t.rendered},null,8,["language","code","scrollOptions","onRendered"])],2)],64))],64))),128)):$t("",!0),t.mode==="unified"?(Oe(),Fe(Re,{key:1},[t.isFoldLine?(Oe(),Fe(Re,{key:0},[_G,CG],64)):(Oe(),Fe(Re,{key:1},[$e("div",{class:qt(["lineNum",`vue-diff-cell-${t.render[0].type}`])},St(t.render[0].lineNum),3),$e("div",{class:qt(["code",`vue-diff-cell-${t.render[0].type}`])},[S(o,{language:t.language,code:t.setCode(t.render[0]),scrollOptions:t.scrollOptions,onRendered:t.rendered},null,8,["language","code","scrollOptions","onRendered"])],2)],64))],64)):$t("",!0)],6)}var xG=Up(yG,[["render",SG]]);const TG=he({components:{Line:xG},props:{mode:{type:String,default:"split"},theme:{type:String,default:"dark"},language:{type:String,default:"plaintext"},prev:{type:String,default:""},current:{type:String,default:""},folding:{type:Boolean,default:!1},inputDelay:{type:Number,default:0},virtualScroll:{type:[Boolean,Object],default:!1}},setup(t){const e=z(null),n=V(()=>t.virtualScroll?dd({height:500,lineMinHeight:24,delay:100},typeof t.virtualScroll=="object"?De(t.virtualScroll):{}):!1),{meta:r,render:a,list:i}=dG(t,e,n),{minHeight:o}=vG(t,e,n,r);return{list:i,meta:r,minHeight:o,render:a,scrollOptions:n,setLineHeight:(l,u)=>{r.value[l]&&r.value[l].height!==u&&(r.value[l].height=u)},viewer:e}}});function EG(t,e,n,r,a,i){const o=us("Line");return Oe(),Fe("div",{class:qt(["vue-diff-wrapper",`vue-diff-mode-${t.mode} vue-diff-theme-${t.theme}`])},[$e("div",{ref:"viewer",class:"vue-diff-viewer",style:Pn({height:t.scrollOptions?t.scrollOptions.height+"px":void 0})},[$e("div",{class:"vue-diff-viewer-inner",style:Pn({minHeight:t.minHeight})},[(Oe(!0),Fe(Re,null,Na(t.list,(s,l)=>(Oe(),mt(o,{key:l,mode:t.mode,folding:t.folding,language:t.language,meta:t.meta[s.index],render:t.render[s.index],scrollOptions:t.scrollOptions,onSetLineHeight:t.setLineHeight},null,8,["mode","folding","language","meta","render","scrollOptions","onSetLineHeight"]))),128))],4)],4)],2)}var OG=Up(TG,[["render",EG]]),PG={install:(t,e={})=>{const{componentName:n="Diff"}=e;t.component(n,OG)},hljs:Sr};const yT=WW();yT.use(wU);tP(pU).use(yT).use(gp).use(PG,{componentName:"VueDiff"}).mount("#zanllp_dev_gradio_fe");export{$t as $,qe as A,Te as B,Iq as C,L_ as D,sd as E,jG as F,V as G,$i as H,vn as I,Sx as J,Op as K,Aq as L,ia as M,qq as N,bp as O,ee as P,TF as Q,mr as R,mY as S,xt as T,Oe as U,Fe as V,$e as W,_n as X,St as Y,Re as Z,bt as _,M as a,hg as a$,Ui as a0,Nn as a1,mt as a2,Mt as a3,be as a4,An as a5,dt as a6,Pn as a7,Na as a8,xx as a9,FW as aA,nY as aB,Uu as aC,rY as aD,aY as aE,px as aF,_l as aG,tv as aH,Rq as aI,Wx as aJ,ZW as aK,Mq as aL,P4 as aM,CD as aN,sD as aO,kd as aP,Md as aQ,Mx as aR,dj as aS,_Y as aT,Uq as aU,N9 as aV,ns as aW,Ux as aX,fx as aY,zk as aZ,tk as a_,AG as aa,vO as ab,KS as ac,Vq as ad,Fq as ae,ua as af,qt as ag,Dl as ah,wn as ai,kt as aj,Xt as ak,Jo as al,ct as am,Ce as an,Fi as ao,Et as ap,pD as aq,cs as ar,Yn as as,dn as at,$r as au,ot as av,Lt as aw,wt as ax,Ha as ay,Ke as az,Qe as b,xq as b$,ar as b0,y_ as b1,xF as b2,wu as b3,ML as b4,KD as b5,Gd as b6,ke as b7,Bo as b8,vL as b9,Ut as bA,uR as bB,pn as bC,BG as bD,Zq as bE,hY as bF,Nf as bG,LG as bH,X1 as bI,U_ as bJ,Un as bK,ir as bL,gv as bM,fC as bN,Vv as bO,Ml as bP,g_ as bQ,q4 as bR,G4 as bS,s6 as bT,wv as bU,qn as bV,l_ as bW,I6 as bX,yr as bY,j9 as bZ,Cq as b_,zA as ba,UO as bb,Pw as bc,Ow as bd,hu as be,Pl as bf,Qn as bg,yt as bh,LA as bi,zG as bj,st as bk,De as bl,yL as bm,Sv as bn,Go as bo,u_ as bp,XD as bq,JD as br,zv as bs,Pu as bt,ps as bu,tA as bv,_4 as bw,Au as bx,Q4 as by,cl as bz,S as c,yY as c$,Pt as c0,_q as c1,$G as c2,kG as c3,Sq as c4,us as c5,WE as c6,jd as c7,uu as c8,qu as c9,ca as cA,HL as cB,dH as cC,gH as cD,cY as cE,Nq as cF,jq as cG,lY as cH,oY as cI,uY as cJ,sY as cK,UG as cL,Bk as cM,J1 as cN,br as cO,iA as cP,aU as cQ,qW as cR,OW as cS,We as cT,Eq as cU,kq as cV,Wq as cW,eY as cX,wq as cY,Vx as cZ,VS as c_,X$ as ca,zr as cb,Ix as cc,eV as cd,Yq as ce,tV as cf,Qq as cg,Xq as ch,o8 as ci,qF as cj,Jq as ck,w4 as cl,f4 as cm,pC as cn,wr as co,DG as cp,WG as cq,tY as cr,Pq as cs,Tx as ct,Lq as cu,eU as cv,Bi as cw,gm as cx,HG as cy,sc as cz,he as d,oi as d$,pY as d0,vY as d1,QH as d2,gl as d3,od as d4,TW as d5,PW as d6,Hb as d7,nV as d8,Gl as d9,Pp as dA,Kq as dB,Oq as dC,nk as dD,_W as dE,zq as dF,HS as dG,rW as dH,SE as dI,ru as dJ,lE as dK,HE as dL,IG as dM,Vb as dN,Wo as dO,wH as dP,xH as dQ,Tq as dR,bY as dS,wY as dT,Z8 as dU,MD as dV,yD as dW,ED as dX,ln as dY,jn as dZ,b_ as d_,iY as da,Kb as db,Zb as dc,CY as dd,Ex as de,Bq as df,$q as dg,Dq as dh,dY as di,gY as dj,Z0 as dk,RG as dl,V_ as dm,NW as dn,Hq as dp,Xo as dq,Df as dr,Bl as ds,xo as dt,Vd as du,Rd as dv,ID as dw,Ae as dx,kL as dy,ws as dz,rr as e,FG as e0,wD as e1,RE as e2,Ue as e3,NG as e4,MG as e5,_v as e6,VG as e7,W_ as e8,H_ as e9,O_ as ea,n3 as eb,kn as f,Wn as g,te as h,nt as i,Nv as j,sj as k,nd as l,pe as m,Zo as n,Ve as o,fY as p,sa as q,z as r,Gq as s,Fa as t,lt as u,YW as v,pu as w,Lx as x,Zr as y,Jt as z}; +`;if(typeof l>"u"||typeof u>"u"||!s.chkWords)return s.value;const c=l[u===0?1:0];return c.value?cG(c.value,s.value):s.value},o=()=>{!n.value||t.meta.height===n.value.offsetHeight||e("setLineHeight",t.meta.index,n.value.offsetHeight)};return t.scrollOptions&&KU(n,mo(()=>{!n.value||t.meta.height===n.value.offsetHeight||e("setLineHeight",t.meta.index,n.value.offsetHeight)},t.scrollOptions.delay)),{line:n,isFoldLine:a,rendered:o,rowStyle:r,setCode:i}}}),bG=$e("div",{class:"lineNum vue-diff-cell-fold"},null,-1),wG=$e("div",{class:"code vue-diff-cell-fold"},null,-1),_G=$e("div",{class:"lineNum vue-diff-cell-fold"},null,-1),CG=$e("div",{class:"code vue-diff-cell-fold"},null,-1);function SG(t,e,n,r,a,i){const o=us("Code");return Oe(),Fe("div",{ref:"line",class:qt(["vue-diff-row",`vue-diff-row-${t.mode}`]),style:Pn(t.rowStyle)},[t.mode==="split"?(Oe(!0),Fe(Re,{key:0},Na(t.render,(s,l)=>(Oe(),Fe(Re,{key:l},[t.isFoldLine?(Oe(),Fe(Re,{key:0},[bG,wG],64)):(Oe(),Fe(Re,{key:1},[$e("div",{class:qt(["lineNum",`vue-diff-cell-${s.type}`])},St(s.lineNum),3),$e("div",{class:qt(["code",`vue-diff-cell-${s.type}`])},[S(o,{language:t.language,code:t.setCode(s,t.render,l),scrollOptions:t.scrollOptions,onRendered:t.rendered},null,8,["language","code","scrollOptions","onRendered"])],2)],64))],64))),128)):$t("",!0),t.mode==="unified"?(Oe(),Fe(Re,{key:1},[t.isFoldLine?(Oe(),Fe(Re,{key:0},[_G,CG],64)):(Oe(),Fe(Re,{key:1},[$e("div",{class:qt(["lineNum",`vue-diff-cell-${t.render[0].type}`])},St(t.render[0].lineNum),3),$e("div",{class:qt(["code",`vue-diff-cell-${t.render[0].type}`])},[S(o,{language:t.language,code:t.setCode(t.render[0]),scrollOptions:t.scrollOptions,onRendered:t.rendered},null,8,["language","code","scrollOptions","onRendered"])],2)],64))],64)):$t("",!0)],6)}var xG=Up(yG,[["render",SG]]);const TG=he({components:{Line:xG},props:{mode:{type:String,default:"split"},theme:{type:String,default:"dark"},language:{type:String,default:"plaintext"},prev:{type:String,default:""},current:{type:String,default:""},folding:{type:Boolean,default:!1},inputDelay:{type:Number,default:0},virtualScroll:{type:[Boolean,Object],default:!1}},setup(t){const e=z(null),n=V(()=>t.virtualScroll?dd({height:500,lineMinHeight:24,delay:100},typeof t.virtualScroll=="object"?De(t.virtualScroll):{}):!1),{meta:r,render:a,list:i}=dG(t,e,n),{minHeight:o}=vG(t,e,n,r);return{list:i,meta:r,minHeight:o,render:a,scrollOptions:n,setLineHeight:(l,u)=>{r.value[l]&&r.value[l].height!==u&&(r.value[l].height=u)},viewer:e}}});function EG(t,e,n,r,a,i){const o=us("Line");return Oe(),Fe("div",{class:qt(["vue-diff-wrapper",`vue-diff-mode-${t.mode} vue-diff-theme-${t.theme}`])},[$e("div",{ref:"viewer",class:"vue-diff-viewer",style:Pn({height:t.scrollOptions?t.scrollOptions.height+"px":void 0})},[$e("div",{class:"vue-diff-viewer-inner",style:Pn({minHeight:t.minHeight})},[(Oe(!0),Fe(Re,null,Na(t.list,(s,l)=>(Oe(),mt(o,{key:l,mode:t.mode,folding:t.folding,language:t.language,meta:t.meta[s.index],render:t.render[s.index],scrollOptions:t.scrollOptions,onSetLineHeight:t.setLineHeight},null,8,["mode","folding","language","meta","render","scrollOptions","onSetLineHeight"]))),128))],4)],4)],2)}var OG=Up(TG,[["render",EG]]),PG={install:(t,e={})=>{const{componentName:n="Diff"}=e;t.component(n,OG)},hljs:Sr};const yT=WW();yT.use(wU);tP(pU).use(yT).use(gp).use(PG,{componentName:"VueDiff"}).mount("#zanllp_dev_gradio_fe");export{$t as $,qe as A,Te as B,Iq as C,L_ as D,sd as E,jG as F,V as G,$i as H,vn as I,Sx as J,Op as K,Aq as L,ia as M,qq as N,bp as O,ee as P,TF as Q,mr as R,yY as S,xt as T,Oe as U,Fe as V,$e as W,_n as X,St as Y,Re as Z,bt as _,M as a,hg as a$,Ui as a0,Nn as a1,mt as a2,Mt as a3,be as a4,An as a5,dt as a6,Pn as a7,Na as a8,xx as a9,FW as aA,nY as aB,Uu as aC,rY as aD,aY as aE,px as aF,_l as aG,tv as aH,Rq as aI,Wx as aJ,ZW as aK,Mq as aL,P4 as aM,CD as aN,sD as aO,kd as aP,Md as aQ,Mx as aR,dj as aS,CY as aT,Uq as aU,N9 as aV,ns as aW,Ux as aX,fx as aY,zk as aZ,tk as a_,AG as aa,vO as ab,KS as ac,Vq as ad,Fq as ae,ua as af,qt as ag,Dl as ah,wn as ai,kt as aj,Xt as ak,Jo as al,ct as am,Ce as an,Fi as ao,Et as ap,pD as aq,cs as ar,Yn as as,dn as at,$r as au,ot as av,Lt as aw,wt as ax,Ha as ay,Ke as az,Qe as b,xq as b$,ar as b0,y_ as b1,xF as b2,wu as b3,ML as b4,KD as b5,Gd as b6,ke as b7,Bo as b8,vL as b9,Ut as bA,uR as bB,pn as bC,BG as bD,Zq as bE,gY as bF,Nf as bG,LG as bH,X1 as bI,U_ as bJ,Un as bK,ir as bL,gv as bM,fC as bN,Vv as bO,Ml as bP,g_ as bQ,q4 as bR,G4 as bS,s6 as bT,wv as bU,qn as bV,l_ as bW,I6 as bX,yr as bY,j9 as bZ,Cq as b_,zA as ba,UO as bb,Pw as bc,Ow as bd,hu as be,Pl as bf,Qn as bg,yt as bh,LA as bi,zG as bj,st as bk,De as bl,yL as bm,Sv as bn,Go as bo,u_ as bp,XD as bq,JD as br,zv as bs,Pu as bt,ps as bu,tA as bv,_4 as bw,Au as bx,Q4 as by,cl as bz,S as c,VS as c$,Pt as c0,_q as c1,$G as c2,kG as c3,Sq as c4,us as c5,WE as c6,jd as c7,uu as c8,qu as c9,ca as cA,HL as cB,dH as cC,gH as cD,cY as cE,fY as cF,Nq as cG,jq as cH,lY as cI,oY as cJ,uY as cK,sY as cL,UG as cM,Bk as cN,J1 as cO,br as cP,iA as cQ,aU as cR,qW as cS,OW as cT,ze as cU,Eq as cV,kq as cW,Wq as cX,eY as cY,wq as cZ,Vx as c_,X$ as ca,zr as cb,Ix as cc,eV as cd,Yq as ce,tV as cf,Qq as cg,Xq as ch,o8 as ci,qF as cj,Jq as ck,w4 as cl,f4 as cm,pC as cn,wr as co,DG as cp,WG as cq,tY as cr,Pq as cs,Tx as ct,Lq as cu,eU as cv,Bi as cw,gm as cx,HG as cy,sc as cz,he as d,b_ as d$,bY as d0,hY as d1,pY as d2,QH as d3,gl as d4,od as d5,TW as d6,PW as d7,Hb as d8,nV as d9,ws as dA,Pp as dB,Kq as dC,Oq as dD,nk as dE,_W as dF,zq as dG,HS as dH,rW as dI,SE as dJ,ru as dK,lE as dL,HE as dM,IG as dN,Vb as dO,Wo as dP,wH as dQ,xH as dR,Tq as dS,wY as dT,_Y as dU,Z8 as dV,MD as dW,yD as dX,ED as dY,ln as dZ,jn as d_,Gl as da,iY as db,Kb as dc,Zb as dd,SY as de,Ex as df,Bq as dg,$q as dh,Dq as di,vY as dj,mY as dk,Z0 as dl,RG as dm,V_ as dn,NW as dp,Hq as dq,Xo as dr,Df as ds,Bl as dt,xo as du,Vd as dv,Rd as dw,ID as dx,Ae as dy,kL as dz,rr as e,oi as e0,FG as e1,wD as e2,RE as e3,Ue as e4,NG as e5,MG as e6,_v as e7,VG as e8,W_ as e9,H_ as ea,O_ as eb,n3 as ec,kn as f,Wn as g,te as h,nt as i,Nv as j,sj as k,nd as l,pe as m,Zo as n,Ve as o,dY as p,sa as q,z as r,Gq as s,Fa as t,lt as u,YW as v,pu as w,Lx as x,Zr as y,Jt as z}; diff --git a/vue/dist/assets/index-859cb083.js b/vue/dist/assets/index-1c4f06bb.js similarity index 53% rename from vue/dist/assets/index-859cb083.js rename to vue/dist/assets/index-1c4f06bb.js index 099f0b3..d5b3dd4 100644 --- a/vue/dist/assets/index-859cb083.js +++ b/vue/dist/assets/index-1c4f06bb.js @@ -1 +1 @@ -import{r as o,o as t,cL as n}from"./index-0205daf8.js";const a=function(){var e=o(!1);return t(function(){e.value=n()}),e};export{a as u}; +import{r as o,o as t,cM as n}from"./index-157194fb.js";const a=function(){var e=o(!1);return t(function(){e.value=n()}),e};export{a as u}; diff --git a/vue/dist/assets/index-17a1bd90.js b/vue/dist/assets/index-7996ed59.js similarity index 61% rename from vue/dist/assets/index-17a1bd90.js rename to vue/dist/assets/index-7996ed59.js index 57708e3..3374c1f 100644 --- a/vue/dist/assets/index-17a1bd90.js +++ b/vue/dist/assets/index-7996ed59.js @@ -1 +1 @@ -import{d as x,a1 as $,aK as g,cV as b,r as w,U as p,V as i,W as a,c as r,a3 as d,X as u,Y as n,Z as B,a8 as V,a4 as m,y as W,z as _,B as v,aj as I,ak as D,cW as N,a0 as R}from"./index-0205daf8.js";/* empty css */const F={class:"container"},K={class:"actions"},L={class:"uni-desc"},U={class:"snapshot"},j=x({__name:"index",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(q){const h=$(),t=g(),f=e=>{h.tabList=W(e.tabs)},k=b(async e=>{await N(`workspace_snapshot_${e.id}`),t.snapshots=t.snapshots.filter(c=>c.id!==e.id),_.success(v("deleteSuccess"))}),o=w(""),y=async()=>{if(!o.value){_.error(v("nameRequired"));return}const e=t.createSnapshot(o.value);await t.addSnapshot(e),_.success(v("saveCompleted"))};return(e,c)=>{const C=I,l=D;return p(),i("div",F,[a("div",K,[r(C,{value:o.value,"onUpdate:value":c[0]||(c[0]=s=>o.value=s),placeholder:e.$t("name"),style:{"max-width":"300px"}},null,8,["value","placeholder"]),r(l,{type:"primary",onClick:y},{default:d(()=>[u(n(e.$t("saveWorkspaceSnapshot")),1)]),_:1})]),a("p",L,n(e.$t("WorkspaceSnapshotDesc")),1),a("ul",U,[(p(!0),i(B,null,V(m(t).snapshots,s=>(p(),i("li",{key:s.id},[a("div",null,[a("span",null,n(s.name),1)]),a("div",null,[r(l,{onClick:S=>f(s)},{default:d(()=>[u(n(e.$t("restore")),1)]),_:2},1032,["onClick"]),r(l,{onClick:S=>m(k)(s)},{default:d(()=>[u(n(e.$t("remove")),1)]),_:2},1032,["onClick"])])]))),128))])])}}});const E=R(j,[["__scopeId","data-v-e55e3025"]]);export{E as default}; +import{d as x,a1 as $,aK as g,cW as b,r as w,U as p,V as i,W as a,c as r,a3 as d,X as u,Y as n,Z as B,a8 as W,a4 as m,y as I,z as _,B as v,aj as V,ak as D,cX as N,a0 as R}from"./index-157194fb.js";/* empty css */const F={class:"container"},K={class:"actions"},L={class:"uni-desc"},U={class:"snapshot"},X=x({__name:"index",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(j){const h=$(),t=g(),f=e=>{h.tabList=I(e.tabs)},k=b(async e=>{await N(`workspace_snapshot_${e.id}`),t.snapshots=t.snapshots.filter(c=>c.id!==e.id),_.success(v("deleteSuccess"))}),o=w(""),y=async()=>{if(!o.value){_.error(v("nameRequired"));return}const e=t.createSnapshot(o.value);await t.addSnapshot(e),_.success(v("saveCompleted"))};return(e,c)=>{const C=V,l=D;return p(),i("div",F,[a("div",K,[r(C,{value:o.value,"onUpdate:value":c[0]||(c[0]=s=>o.value=s),placeholder:e.$t("name"),style:{"max-width":"300px"}},null,8,["value","placeholder"]),r(l,{type:"primary",onClick:y},{default:d(()=>[u(n(e.$t("saveWorkspaceSnapshot")),1)]),_:1})]),a("p",L,n(e.$t("WorkspaceSnapshotDesc")),1),a("ul",U,[(p(!0),i(B,null,W(m(t).snapshots,s=>(p(),i("li",{key:s.id},[a("div",null,[a("span",null,n(s.name),1)]),a("div",null,[r(l,{onClick:S=>f(s)},{default:d(()=>[u(n(e.$t("restore")),1)]),_:2},1032,["onClick"]),r(l,{onClick:S=>m(k)(s)},{default:d(()=>[u(n(e.$t("remove")),1)]),_:2},1032,["onClick"])])]))),128))])])}}});const A=R(X,[["__scopeId","data-v-e55e3025"]]);export{A as default}; diff --git a/vue/dist/assets/index-728b29ca.js b/vue/dist/assets/index-89286149.js similarity index 95% rename from vue/dist/assets/index-728b29ca.js rename to vue/dist/assets/index-89286149.js index 4c217de..8c85918 100644 --- a/vue/dist/assets/index-728b29ca.js +++ b/vue/dist/assets/index-89286149.js @@ -1 +1 @@ -import{cw as j,ay as z,d as K,j as U,dv as $,w as g,r as b,G as S,m as A,u as D,o as E,az as G,h as d,c as s,a as C,aw as H,bf as L,g as x,dw as W,P as c,dx as _}from"./index-0205daf8.js";var R=z("small","default"),q=function(){return{id:String,prefixCls:String,size:c.oneOf(R),disabled:{type:Boolean,default:void 0},checkedChildren:c.any,unCheckedChildren:c.any,tabindex:c.oneOfType([c.string,c.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:c.oneOfType([c.string,c.number,c.looseBool]),checkedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!0),unCheckedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},J=K({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:q(),slots:["checkedChildren","unCheckedChildren"],setup:function(n,r){var o=r.attrs,y=r.slots,B=r.expose,l=r.emit,m=U();$(function(){g(!("defaultChecked"in o),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),g(!("value"in o),"Switch","`value` is not validate prop, do you mean `checked`?")});var h=b(n.checked!==void 0?n.checked:o.defaultChecked),f=S(function(){return h.value===n.checkedValue});A(function(){return n.checked},function(){h.value=n.checked});var v=D("switch",n),u=v.prefixCls,F=v.direction,T=v.size,i=b(),w=function(){var e;(e=i.value)===null||e===void 0||e.focus()},V=function(){var e;(e=i.value)===null||e===void 0||e.blur()};B({focus:w,blur:V}),E(function(){G(function(){n.autofocus&&!n.disabled&&i.value.focus()})});var k=function(e,t){n.disabled||(l("update:checked",e),l("change",e,t),m.onFieldChange())},I=function(e){l("blur",e)},N=function(e){w();var t=f.value?n.unCheckedValue:n.checkedValue;k(t,e),l("click",t,e)},M=function(e){e.keyCode===_.LEFT?k(n.unCheckedValue,e):e.keyCode===_.RIGHT&&k(n.checkedValue,e),l("keydown",e)},O=function(e){var t;(t=i.value)===null||t===void 0||t.blur(),l("mouseup",e)},P=S(function(){var a;return a={},d(a,"".concat(u.value,"-small"),T.value==="small"),d(a,"".concat(u.value,"-loading"),n.loading),d(a,"".concat(u.value,"-checked"),f.value),d(a,"".concat(u.value,"-disabled"),n.disabled),d(a,u.value,!0),d(a,"".concat(u.value,"-rtl"),F.value==="rtl"),a});return function(){var a;return s(W,{insertExtraNode:!0},{default:function(){return[s("button",C(C(C({},H(n,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),o),{},{id:(a=n.id)!==null&&a!==void 0?a:m.id.value,onKeydown:M,onClick:N,onBlur:I,onMouseup:O,type:"button",role:"switch","aria-checked":h.value,disabled:n.disabled||n.loading,class:[o.class,P.value],ref:i}),[s("div",{class:"".concat(u.value,"-handle")},[n.loading?s(L,{class:"".concat(u.value,"-loading-icon")},null):null]),s("span",{class:"".concat(u.value,"-inner")},[f.value?x(y,n,"checkedChildren"):x(y,n,"unCheckedChildren")])])]}})}}});const X=j(J);export{X as _}; +import{cw as j,ay as z,d as K,j as U,dw as $,w as g,r as b,G as S,m as A,u as D,o as E,az as G,h as d,c as s,a as C,aw as H,bf as L,g as x,dx as W,P as c,dy as _}from"./index-157194fb.js";var R=z("small","default"),q=function(){return{id:String,prefixCls:String,size:c.oneOf(R),disabled:{type:Boolean,default:void 0},checkedChildren:c.any,unCheckedChildren:c.any,tabindex:c.oneOfType([c.string,c.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:c.oneOfType([c.string,c.number,c.looseBool]),checkedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!0),unCheckedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},J=K({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:q(),slots:["checkedChildren","unCheckedChildren"],setup:function(n,r){var o=r.attrs,y=r.slots,B=r.expose,l=r.emit,m=U();$(function(){g(!("defaultChecked"in o),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),g(!("value"in o),"Switch","`value` is not validate prop, do you mean `checked`?")});var h=b(n.checked!==void 0?n.checked:o.defaultChecked),f=S(function(){return h.value===n.checkedValue});A(function(){return n.checked},function(){h.value=n.checked});var v=D("switch",n),u=v.prefixCls,F=v.direction,T=v.size,i=b(),w=function(){var e;(e=i.value)===null||e===void 0||e.focus()},V=function(){var e;(e=i.value)===null||e===void 0||e.blur()};B({focus:w,blur:V}),E(function(){G(function(){n.autofocus&&!n.disabled&&i.value.focus()})});var k=function(e,t){n.disabled||(l("update:checked",e),l("change",e,t),m.onFieldChange())},I=function(e){l("blur",e)},N=function(e){w();var t=f.value?n.unCheckedValue:n.checkedValue;k(t,e),l("click",t,e)},M=function(e){e.keyCode===_.LEFT?k(n.unCheckedValue,e):e.keyCode===_.RIGHT&&k(n.checkedValue,e),l("keydown",e)},O=function(e){var t;(t=i.value)===null||t===void 0||t.blur(),l("mouseup",e)},P=S(function(){var a;return a={},d(a,"".concat(u.value,"-small"),T.value==="small"),d(a,"".concat(u.value,"-loading"),n.loading),d(a,"".concat(u.value,"-checked"),f.value),d(a,"".concat(u.value,"-disabled"),n.disabled),d(a,u.value,!0),d(a,"".concat(u.value,"-rtl"),F.value==="rtl"),a});return function(){var a;return s(W,{insertExtraNode:!0},{default:function(){return[s("button",C(C(C({},H(n,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),o),{},{id:(a=n.id)!==null&&a!==void 0?a:m.id.value,onKeydown:M,onClick:N,onBlur:I,onMouseup:O,type:"button",role:"switch","aria-checked":h.value,disabled:n.disabled||n.loading,class:[o.class,P.value],ref:i}),[s("div",{class:"".concat(u.value,"-handle")},[n.loading?s(L,{class:"".concat(u.value,"-loading-icon")},null):null]),s("span",{class:"".concat(u.value,"-inner")},[f.value?x(y,n,"checkedChildren"):x(y,n,"unCheckedChildren")])])]}})}}});const X=j(J);export{X as _}; diff --git a/vue/dist/assets/index-6d8e3499.js b/vue/dist/assets/index-8929347d.js similarity index 82% rename from vue/dist/assets/index-6d8e3499.js rename to vue/dist/assets/index-8929347d.js index cc0ba46..5b0c2a8 100644 --- a/vue/dist/assets/index-6d8e3499.js +++ b/vue/dist/assets/index-8929347d.js @@ -1 +1 @@ -import{d as F,u as S,G as k,an as j,h as d,c as s,aq as U,e7 as W,r as q,bh as G,Z as V,dw as Z,P as N,cb as z}from"./index-0205daf8.js";var H=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},J=F({compatConfig:{MODE:3},name:"ACheckableTag",props:H(),setup:function(e,i){var l=i.slots,r=i.emit,g=S("tag",e),u=g.prefixCls,o=function(C){var v=e.checked;r("update:checked",!v),r("change",!v),r("click",C)},p=k(function(){var a;return j(u.value,(a={},d(a,"".concat(u.value,"-checkable"),!0),d(a,"".concat(u.value,"-checkable-checked"),e.checked),a))});return function(){var a;return s("span",{class:p.value,onClick:o},[(a=l.default)===null||a===void 0?void 0:a.call(l)])}}});const b=J;var K=new RegExp("^(".concat(U.join("|"),")(-inverse)?$")),L=new RegExp("^(".concat(W.join("|"),")$")),Q=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:N.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:N.any}},f=F({compatConfig:{MODE:3},name:"ATag",props:Q(),slots:["closeIcon","icon"],setup:function(e,i){var l=i.slots,r=i.emit,g=i.attrs,u=S("tag",e),o=u.prefixCls,p=u.direction,a=q(!0);G(function(){e.visible!==void 0&&(a.value=e.visible)});var C=function(t){t.stopPropagation(),r("update:visible",!1),r("close",t),!t.defaultPrevented&&e.visible===void 0&&(a.value=!1)},v=k(function(){var n=e.color;return n?K.test(n)||L.test(n):!1}),E=k(function(){var n;return j(o.value,(n={},d(n,"".concat(o.value,"-").concat(e.color),v.value),d(n,"".concat(o.value,"-has-color"),e.color&&!v.value),d(n,"".concat(o.value,"-hidden"),!a.value),d(n,"".concat(o.value,"-rtl"),p.value==="rtl"),n))});return function(){var n,t,h,m=e.icon,w=m===void 0?(n=l.icon)===null||n===void 0?void 0:n.call(l):m,y=e.color,_=e.closeIcon,P=_===void 0?(t=l.closeIcon)===null||t===void 0?void 0:t.call(l):_,x=e.closable,R=x===void 0?!1:x,B=function(){return R?P?s("span",{class:"".concat(o.value,"-close-icon"),onClick:C},[P]):s(z,{class:"".concat(o.value,"-close-icon"),onClick:C},null):null},O={backgroundColor:y&&!v.value?y:void 0},I=w||null,T=(h=l.default)===null||h===void 0?void 0:h.call(l),A=I?s(V,null,[I,s("span",null,[T])]):T,D="onClick"in g,$=s("span",{class:E.value,style:O},[A,B()]);return D?s(Z,null,{default:function(){return[$]}}):$}}});f.CheckableTag=b;f.install=function(c){return c.component(f.name,f),c.component(b.name,b),c};const Y=f;export{Y as _}; +import{d as F,u as S,G as k,an as j,h as d,c as s,aq as U,e8 as W,r as q,bh as G,Z as V,dx as Z,P as N,cb as z}from"./index-157194fb.js";var H=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},J=F({compatConfig:{MODE:3},name:"ACheckableTag",props:H(),setup:function(e,i){var l=i.slots,r=i.emit,g=S("tag",e),u=g.prefixCls,o=function(C){var v=e.checked;r("update:checked",!v),r("change",!v),r("click",C)},p=k(function(){var a;return j(u.value,(a={},d(a,"".concat(u.value,"-checkable"),!0),d(a,"".concat(u.value,"-checkable-checked"),e.checked),a))});return function(){var a;return s("span",{class:p.value,onClick:o},[(a=l.default)===null||a===void 0?void 0:a.call(l)])}}});const b=J;var K=new RegExp("^(".concat(U.join("|"),")(-inverse)?$")),L=new RegExp("^(".concat(W.join("|"),")$")),Q=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:N.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:N.any}},f=F({compatConfig:{MODE:3},name:"ATag",props:Q(),slots:["closeIcon","icon"],setup:function(e,i){var l=i.slots,r=i.emit,g=i.attrs,u=S("tag",e),o=u.prefixCls,p=u.direction,a=q(!0);G(function(){e.visible!==void 0&&(a.value=e.visible)});var C=function(t){t.stopPropagation(),r("update:visible",!1),r("close",t),!t.defaultPrevented&&e.visible===void 0&&(a.value=!1)},v=k(function(){var n=e.color;return n?K.test(n)||L.test(n):!1}),E=k(function(){var n;return j(o.value,(n={},d(n,"".concat(o.value,"-").concat(e.color),v.value),d(n,"".concat(o.value,"-has-color"),e.color&&!v.value),d(n,"".concat(o.value,"-hidden"),!a.value),d(n,"".concat(o.value,"-rtl"),p.value==="rtl"),n))});return function(){var n,t,h,m=e.icon,R=m===void 0?(n=l.icon)===null||n===void 0?void 0:n.call(l):m,y=e.color,_=e.closeIcon,P=_===void 0?(t=l.closeIcon)===null||t===void 0?void 0:t.call(l):_,x=e.closable,w=x===void 0?!1:x,B=function(){return w?P?s("span",{class:"".concat(o.value,"-close-icon"),onClick:C},[P]):s(z,{class:"".concat(o.value,"-close-icon"),onClick:C},null):null},O={backgroundColor:y&&!v.value?y:void 0},I=R||null,T=(h=l.default)===null||h===void 0?void 0:h.call(l),A=I?s(V,null,[I,s("span",null,[T])]):T,D="onClick"in g,$=s("span",{class:E.value,style:O},[A,B()]);return D?s(Z,null,{default:function(){return[$]}}):$}}});f.CheckableTag=b;f.install=function(c){return c.component(f.name,f),c.component(b.name,b),c};const Y=f;export{Y as _}; diff --git a/vue/dist/assets/index-6a8edab1.js b/vue/dist/assets/index-8e3285c7.js similarity index 84% rename from vue/dist/assets/index-6a8edab1.js rename to vue/dist/assets/index-8e3285c7.js index 9160b94..98d42b2 100644 --- a/vue/dist/assets/index-6a8edab1.js +++ b/vue/dist/assets/index-8e3285c7.js @@ -1 +1 @@ -import{e8 as we,e9 as De,h as p,d as pe,r as D,bk as Ce,ea as Te,an as R,c as y,a as N,bi as qe,e3 as Ne,b as He,G as ue,b7 as Ue,m as Y,_ as Me,dx as le,bA as ze,j as Oe,u as Ge,eb as je,D as Ke,aw as We,ap as Le,P as ve}from"./index-0205daf8.js";function me(){return typeof BigInt=="function"}function J(a){var e=a.trim(),t=e.startsWith("-");t&&(e=e.slice(1)),e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),e.startsWith(".")&&(e="0".concat(e));var l=e||"0",c=l.split("."),s=c[0]||"0",g=c[1]||"0";s==="0"&&g==="0"&&(t=!1);var v=t?"-":"";return{negative:t,negativeStr:v,trimStr:l,integerStr:s,decimalStr:g,fullStr:"".concat(v).concat(l)}}function be(a){var e=String(a);return!Number.isNaN(Number(e))&&e.includes("e")}function Q(a){var e=String(a);if(be(a)){var t=Number(e.slice(e.indexOf("e-")+2)),l=e.match(/\.(\d+)/);return l!=null&&l[1]&&(t+=l[1].length),t}return e.includes(".")&&Se(e)?e.length-e.indexOf(".")-1:0}function he(a){var e=String(a);if(be(a)){if(a>Number.MAX_SAFE_INTEGER)return String(me()?BigInt(a).toString():Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new a(Number.MAX_SAFE_INTEGER);if(c0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":he(this.number):this.origin}}]),a}(),Ye=function(){function a(e){if(De(this,a),p(this,"origin",""),Be(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}var t=e;if(be(t)&&(t=Number(t)),t=typeof t=="string"?t:he(t),Se(t)){var l=J(t);this.negative=l.negative;var c=l.trimStr.split(".");this.integer=BigInt(c[0]);var s=c[1]||"0";this.decimal=BigInt(s),this.decimalLen=s.length}else this.nan=!0}return we(a,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var l="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(l)}},{key:"negate",value:function(){var t=new a(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new a(t);var l=new a(t);if(l.isInvalidate())return this;var c=Math.max(this.getDecimalStr().length,l.getDecimalStr().length),s=this.alignDecimal(c),g=l.alignDecimal(c),v=(s+g).toString(),d=J(v),f=d.negativeStr,m=d.trimStr,i="".concat(f).concat(m.padStart(c+1,"0"));return new a("".concat(i.slice(0,-c),".").concat(i.slice(-c)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":J("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),a}();function k(a){return me()?new Ye(a):new Xe(a)}function ge(a,e,t){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(a==="")return"";var c=J(a),s=c.negativeStr,g=c.integerStr,v=c.decimalStr,d="".concat(e).concat(v),f="".concat(s).concat(g);if(t>=0){var m=Number(v[t]);if(m>=5&&!l){var i=k(a).add("".concat(s,"0.").concat("0".repeat(t)).concat(10-m));return ge(i.toString(),e,t,l)}return t===0?f:"".concat(f).concat(e).concat(v.padEnd(t,"0").slice(0,t))}return d===".0"?f:"".concat(f).concat(d)}var Je=200,Qe=600;const Ze=pe({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:{type:Function}},slots:["upNode","downNode"],setup:function(e,t){var l=t.slots,c=t.emit,s=D(),g=function(f,m){f.preventDefault(),c("step",m);function i(){c("step",m),s.value=setTimeout(i,Je)}s.value=setTimeout(i,Qe)},v=function(){clearTimeout(s.value)};return Ce(function(){v()}),function(){if(Te())return null;var d=e.prefixCls,f=e.upDisabled,m=e.downDisabled,i="".concat(d,"-handler"),V=R(i,"".concat(i,"-up"),p({},"".concat(i,"-up-disabled"),f)),_=R(i,"".concat(i,"-down"),p({},"".concat(i,"-down-disabled"),m)),C={unselectable:"on",role:"button",onMouseup:v,onMouseleave:v},x=l.upNode,A=l.downNode;return y("div",{class:"".concat(i,"-wrap")},[y("span",N(N({},C),{},{onMousedown:function(M){g(M,!0)},"aria-label":"Increase Value","aria-disabled":f,class:V}),[(x==null?void 0:x())||y("span",{unselectable:"on",class:"".concat(d,"-handler-up-inner")},null)]),y("span",N(N({},C),{},{onMousedown:function(M){g(M,!1)},"aria-label":"Decrease Value","aria-disabled":m,class:_}),[(A==null?void 0:A())||y("span",{unselectable:"on",class:"".concat(d,"-handler-down-inner")},null)])])}}});function et(a,e){var t=D(null);function l(){try{var s=a.value,g=s.selectionStart,v=s.selectionEnd,d=s.value,f=d.substring(0,g),m=d.substring(v);t.value={start:g,end:v,value:d,beforeTxt:f,afterTxt:m}}catch{}}function c(){if(a.value&&t.value&&e.value)try{var s=a.value.value,g=t.value,v=g.beforeTxt,d=g.afterTxt,f=g.start,m=s.length;if(s.endsWith(d))m=s.length-t.value.afterTxt.length;else if(s.startsWith(v))m=v.length;else{var i=v[f-1],V=s.indexOf(i,f-1);V!==-1&&(m=V+1)}a.value.setSelectionRange(m,m)}catch(_){qe(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(_.message))}}return[l,c]}const tt=function(){var a=D(0),e=function(){Ne.cancel(a.value)};return Ce(function(){e()}),function(t){e(),a.value=Ne(function(){t()})}};var nt=["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"],Ie=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},xe=function(e){var t=k(e);return t.isInvalidate()?null:t},Ve=function(){return{stringMode:{type:Boolean},defaultValue:{type:[String,Number]},value:{type:[String,Number]},prefixCls:{type:String},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number],default:1},tabindex:{type:Number},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{type:Function},formatter:{type:Function},precision:{type:Number},decimalSeparator:{type:String},onInput:{type:Function},onChange:{type:Function},onPressEnter:{type:Function},onStep:{type:Function},onBlur:{type:Function},onFocus:{type:Function}}};const at=pe({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:N(N({},Ve()),{},{lazy:Boolean}),slots:["upHandler","downHandler"],setup:function(e,t){var l=t.attrs,c=t.slots,s=t.emit,g=t.expose,v=D(),d=D(!1),f=D(!1),m=D(!1),i=D(k(e.value));function V(u){e.value===void 0&&(i.value=u)}var _=function(n,o){if(!o)return e.precision>=0?e.precision:Math.max(Q(n),Q(e.step))},C=function(n){var o=String(n);if(e.parser)return e.parser(o);var r=o;return e.decimalSeparator&&(r=r.replace(e.decimalSeparator,".")),r.replace(/[^\w.-]+/g,"")},x=D(""),A=function(n,o){if(e.formatter)return e.formatter(n,{userTyping:o,input:String(x.value)});var r=typeof n=="number"?he(n):n;if(!o){var I=_(r,o);if(Se(r)&&(e.decimalSeparator||I>=0)){var S=e.decimalSeparator||".";r=ge(r,S,I)}}return r},G=function(){var u=e.value;return i.value.isInvalidate()&&["string","number"].includes(He(u))?Number.isNaN(u)?"":u:A(i.value.toString(),!1)}();x.value=G;function M(u,n){x.value=A(u.isInvalidate()?u.toString(!1):u.toString(!n),n)}var P=ue(function(){return xe(e.max)}),E=ue(function(){return xe(e.min)}),h=ue(function(){return!P.value||!i.value||i.value.isInvalidate()?!1:P.value.lessEquals(i.value)}),T=ue(function(){return!E.value||!i.value||i.value.isInvalidate()?!1:i.value.lessEquals(E.value)}),F=et(v,d),w=Ue(F,2),q=w[0],Z=w[1],H=function(n){return P.value&&!n.lessEquals(P.value)?P.value:E.value&&!E.value.lessEquals(n)?E.value:null},U=function(n){return!H(n)},z=function(n,o){var r=n,I=U(r)||r.isEmpty();if(!r.isEmpty()&&!o&&(r=H(r)||r,I=!0),!e.readonly&&!e.disabled&&I){var S=r.toString(),B=_(S,o);if(B>=0&&(r=k(ge(S,".",B))),!r.equals(i.value)){var $;V(r),($=e.onChange)===null||$===void 0||$.call(e,r.isEmpty()?null:Ie(e.stringMode,r)),e.value===void 0&&M(r,o)}return r}return i.value},j=tt(),K=function u(n){var o;if(q(),x.value=n,!m.value){var r=C(n),I=k(r);I.isNaN()||z(I,!0)}(o=e.onInput)===null||o===void 0||o.call(e,n),j(function(){var S=n;e.parser||(S=n.replace(/。/g,".")),S!==n&&u(S)})},W=function(){m.value=!0},ee=function(){m.value=!1,K(v.value.value)},L=function(n){K(n.target.value)},X=function(n){var o,r;if(!(n&&h.value||!n&&T.value)){f.value=!1;var I=k(e.step);n||(I=I.negate());var S=(i.value||k(0)).add(I.toString()),B=z(S,!1);(o=e.onStep)===null||o===void 0||o.call(e,Ie(e.stringMode,B),{offset:e.step,type:n?"up":"down"}),(r=v.value)===null||r===void 0||r.focus()}},te=function(n){var o=k(C(x.value)),r=o;o.isNaN()?r=i.value:r=z(o,n),e.value!==void 0?M(i.value,!1):r.isNaN()||M(r,!1)},oe=function(n){var o=n.which;if(f.value=!0,o===le.ENTER){var r;m.value||(f.value=!1),te(!1),(r=e.onPressEnter)===null||r===void 0||r.call(e,n)}e.keyboard!==!1&&!m.value&&[le.UP,le.DOWN].includes(o)&&(X(le.UP===o),n.preventDefault())},b=function(){f.value=!1},O=function(n){te(!1),d.value=!1,f.value=!1,s("blur",n)};return Y(function(){return e.precision},function(){i.value.isInvalidate()||M(i.value,!1)},{flush:"post"}),Y(function(){return e.value},function(){var u=k(e.value);i.value=u;var n=k(C(x.value));(!u.equals(n)||!f.value||e.formatter)&&M(u,f.value)},{flush:"post"}),Y(x,function(){e.formatter&&Z()},{flush:"post"}),Y(function(){return e.disabled},function(u){u&&(d.value=!1)}),g({focus:function(){var n;(n=v.value)===null||n===void 0||n.focus()},blur:function(){var n;(n=v.value)===null||n===void 0||n.blur()}}),function(){var u,n=N(N({},l),e),o=n.prefixCls,r=o===void 0?"rc-input-number":o,I=n.min,S=n.max,B=n.step,$=B===void 0?1:B;n.defaultValue,n.value;var ne=n.disabled,ae=n.readonly;n.keyboard;var re=n.controls,se=re===void 0?!0:re,ie=n.autofocus;n.stringMode,n.parser,n.formatter,n.precision,n.decimalSeparator,n.onChange,n.onInput,n.onPressEnter,n.onStep;var _e=n.lazy,ke=n.class,Fe=n.style,Ae=Me(n,nt),$e=c.upHandler,Pe=c.downHandler,ye="".concat(r,"-input"),ce={};return _e?ce.onChange=L:ce.onInput=L,y("div",{class:R(r,ke,(u={},p(u,"".concat(r,"-focused"),d.value),p(u,"".concat(r,"-disabled"),ne),p(u,"".concat(r,"-readonly"),ae),p(u,"".concat(r,"-not-a-number"),i.value.isNaN()),p(u,"".concat(r,"-out-of-range"),!i.value.isInvalidate()&&!U(i.value)),u)),style:Fe,onKeydown:oe,onKeyup:b},[se&&y(Ze,{prefixCls:r,upDisabled:h.value,downDisabled:T.value,onStep:X},{upNode:$e,downNode:Pe}),y("div",{class:"".concat(ye,"-wrap")},[y("input",N(N(N({autofocus:ie,autocomplete:"off",role:"spinbutton","aria-valuemin":I,"aria-valuemax":S,"aria-valuenow":i.value.isInvalidate()?null:i.value.toString(),step:$},Ae),{},{ref:v,class:ye,value:x.value,disabled:ne,readonly:ae,onFocus:function(Re){d.value=!0,s("focus",Re)}},ce),{},{onBlur:O,onCompositionstart:W,onCompositionend:ee}),null)])])}}});function de(a){return a!=null}var rt=["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"],Ee=Ve(),it=function(){return N(N({},Ee),{},{size:{type:String},bordered:{type:Boolean,default:!0},placeholder:String,name:String,id:String,type:String,addonBefore:ve.any,addonAfter:ve.any,prefix:ve.any,"onUpdate:value":Ee.onChange,valueModifiers:Object})},fe=pe({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:it(),slots:["addonBefore","addonAfter","prefix"],setup:function(e,t){var l=t.emit,c=t.expose,s=t.attrs,g=t.slots,v=Oe(),d=Ge("input-number",e),f=d.prefixCls,m=d.size,i=d.direction,V=D(e.value===void 0?e.defaultValue:e.value),_=D(!1);Y(function(){return e.value},function(){V.value=e.value});var C=D(null),x=function(){var h;(h=C.value)===null||h===void 0||h.focus()},A=function(){var h;(h=C.value)===null||h===void 0||h.blur()};c({focus:x,blur:A});var G=function(h){e.value===void 0&&(V.value=h),l("update:value",h),l("change",h),v.onFieldChange()},M=function(h){_.value=!1,l("blur",h),v.onFieldBlur()},P=function(h){_.value=!0,l("focus",h)};return function(){var E,h,T,F,w=N(N({},s),e),q=w.class,Z=w.bordered,H=w.readonly,U=w.style,z=w.addonBefore,j=z===void 0?(E=g.addonBefore)===null||E===void 0?void 0:E.call(g):z,K=w.addonAfter,W=K===void 0?(h=g.addonAfter)===null||h===void 0?void 0:h.call(g):K,ee=w.prefix,L=ee===void 0?(T=g.prefix)===null||T===void 0?void 0:T.call(g):ee,X=w.valueModifiers,te=X===void 0?{}:X,oe=Me(w,rt),b=f.value,O=m.value,u=R((F={},p(F,"".concat(b,"-lg"),O==="large"),p(F,"".concat(b,"-sm"),O==="small"),p(F,"".concat(b,"-rtl"),i.value==="rtl"),p(F,"".concat(b,"-readonly"),H),p(F,"".concat(b,"-borderless"),!Z),F),q),n=y(at,N(N({},We(oe,["size","defaultValue"])),{},{ref:C,lazy:!!te.lazy,value:V.value,class:u,prefixCls:b,readonly:H,onChange:G,onBlur:M,onFocus:P}),{upHandler:function(){return y(je,{class:"".concat(b,"-handler-up-inner")},null)},downHandler:function(){return y(Ke,{class:"".concat(b,"-handler-down-inner")},null)}}),o=de(j)||de(W);if(de(L)){var r,I=R("".concat(b,"-affix-wrapper"),(r={},p(r,"".concat(b,"-affix-wrapper-focused"),_.value),p(r,"".concat(b,"-affix-wrapper-disabled"),e.disabled),p(r,"".concat(b,"-affix-wrapper-rtl"),i.value==="rtl"),p(r,"".concat(b,"-affix-wrapper-readonly"),H),p(r,"".concat(b,"-affix-wrapper-borderless"),!Z),p(r,"".concat(q),!o&&q),r));n=y("div",{class:I,style:U,onMouseup:function(){return C.value.focus()}},[y("span",{class:"".concat(b,"-prefix")},[L]),n])}if(o){var S,B="".concat(b,"-group"),$="".concat(B,"-addon"),ne=j?y("div",{class:$},[j]):null,ae=W?y("div",{class:$},[W]):null,re=R("".concat(b,"-wrapper"),B,p({},"".concat(B,"-rtl"),i.value==="rtl")),se=R("".concat(b,"-group-wrapper"),(S={},p(S,"".concat(b,"-group-wrapper-sm"),O==="small"),p(S,"".concat(b,"-group-wrapper-lg"),O==="large"),p(S,"".concat(b,"-group-wrapper-rtl"),i.value==="rtl"),S),q);n=y("div",{class:se,style:U},[y("div",{class:re},[ne,n,ae])])}return Le(n,{style:U})}}});const ot=ze(fe,{install:function(e){return e.component(fe.name,fe),e}});export{ot as _}; +import{e9 as we,ea as De,h as p,d as pe,r as D,bk as Ce,eb as Te,an as R,c as S,a as N,bi as qe,e4 as Ne,b as He,G as ue,b7 as Ue,m as Y,_ as Me,dy as le,bA as ze,j as Oe,u as Ge,ec as je,D as Ke,aw as We,ap as Le,P as ve}from"./index-157194fb.js";function me(){return typeof BigInt=="function"}function J(a){var e=a.trim(),t=e.startsWith("-");t&&(e=e.slice(1)),e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),e.startsWith(".")&&(e="0".concat(e));var l=e||"0",c=l.split("."),s=c[0]||"0",g=c[1]||"0";s==="0"&&g==="0"&&(t=!1);var v=t?"-":"";return{negative:t,negativeStr:v,trimStr:l,integerStr:s,decimalStr:g,fullStr:"".concat(v).concat(l)}}function be(a){var e=String(a);return!Number.isNaN(Number(e))&&e.includes("e")}function Q(a){var e=String(a);if(be(a)){var t=Number(e.slice(e.indexOf("e-")+2)),l=e.match(/\.(\d+)/);return l!=null&&l[1]&&(t+=l[1].length),t}return e.includes(".")&&ye(e)?e.length-e.indexOf(".")-1:0}function he(a){var e=String(a);if(be(a)){if(a>Number.MAX_SAFE_INTEGER)return String(me()?BigInt(a).toString():Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new a(Number.MAX_SAFE_INTEGER);if(c0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":he(this.number):this.origin}}]),a}(),Ye=function(){function a(e){if(De(this,a),p(this,"origin",""),Be(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}var t=e;if(be(t)&&(t=Number(t)),t=typeof t=="string"?t:he(t),ye(t)){var l=J(t);this.negative=l.negative;var c=l.trimStr.split(".");this.integer=BigInt(c[0]);var s=c[1]||"0";this.decimal=BigInt(s),this.decimalLen=s.length}else this.nan=!0}return we(a,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var l="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(l)}},{key:"negate",value:function(){var t=new a(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new a(t);var l=new a(t);if(l.isInvalidate())return this;var c=Math.max(this.getDecimalStr().length,l.getDecimalStr().length),s=this.alignDecimal(c),g=l.alignDecimal(c),v=(s+g).toString(),d=J(v),f=d.negativeStr,m=d.trimStr,i="".concat(f).concat(m.padStart(c+1,"0"));return new a("".concat(i.slice(0,-c),".").concat(i.slice(-c)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":J("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),a}();function k(a){return me()?new Ye(a):new Xe(a)}function ge(a,e,t){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(a==="")return"";var c=J(a),s=c.negativeStr,g=c.integerStr,v=c.decimalStr,d="".concat(e).concat(v),f="".concat(s).concat(g);if(t>=0){var m=Number(v[t]);if(m>=5&&!l){var i=k(a).add("".concat(s,"0.").concat("0".repeat(t)).concat(10-m));return ge(i.toString(),e,t,l)}return t===0?f:"".concat(f).concat(e).concat(v.padEnd(t,"0").slice(0,t))}return d===".0"?f:"".concat(f).concat(d)}var Je=200,Qe=600;const Ze=pe({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:{type:Function}},slots:["upNode","downNode"],setup:function(e,t){var l=t.slots,c=t.emit,s=D(),g=function(f,m){f.preventDefault(),c("step",m);function i(){c("step",m),s.value=setTimeout(i,Je)}s.value=setTimeout(i,Qe)},v=function(){clearTimeout(s.value)};return Ce(function(){v()}),function(){if(Te())return null;var d=e.prefixCls,f=e.upDisabled,m=e.downDisabled,i="".concat(d,"-handler"),V=R(i,"".concat(i,"-up"),p({},"".concat(i,"-up-disabled"),f)),_=R(i,"".concat(i,"-down"),p({},"".concat(i,"-down-disabled"),m)),C={unselectable:"on",role:"button",onMouseup:v,onMouseleave:v},x=l.upNode,A=l.downNode;return S("div",{class:"".concat(i,"-wrap")},[S("span",N(N({},C),{},{onMousedown:function(M){g(M,!0)},"aria-label":"Increase Value","aria-disabled":f,class:V}),[(x==null?void 0:x())||S("span",{unselectable:"on",class:"".concat(d,"-handler-up-inner")},null)]),S("span",N(N({},C),{},{onMousedown:function(M){g(M,!1)},"aria-label":"Decrease Value","aria-disabled":m,class:_}),[(A==null?void 0:A())||S("span",{unselectable:"on",class:"".concat(d,"-handler-down-inner")},null)])])}}});function et(a,e){var t=D(null);function l(){try{var s=a.value,g=s.selectionStart,v=s.selectionEnd,d=s.value,f=d.substring(0,g),m=d.substring(v);t.value={start:g,end:v,value:d,beforeTxt:f,afterTxt:m}}catch{}}function c(){if(a.value&&t.value&&e.value)try{var s=a.value.value,g=t.value,v=g.beforeTxt,d=g.afterTxt,f=g.start,m=s.length;if(s.endsWith(d))m=s.length-t.value.afterTxt.length;else if(s.startsWith(v))m=v.length;else{var i=v[f-1],V=s.indexOf(i,f-1);V!==-1&&(m=V+1)}a.value.setSelectionRange(m,m)}catch(_){qe(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(_.message))}}return[l,c]}const tt=function(){var a=D(0),e=function(){Ne.cancel(a.value)};return Ce(function(){e()}),function(t){e(),a.value=Ne(function(){t()})}};var nt=["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"],Ie=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},xe=function(e){var t=k(e);return t.isInvalidate()?null:t},Ve=function(){return{stringMode:{type:Boolean},defaultValue:{type:[String,Number]},value:{type:[String,Number]},prefixCls:{type:String},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number],default:1},tabindex:{type:Number},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{type:Function},formatter:{type:Function},precision:{type:Number},decimalSeparator:{type:String},onInput:{type:Function},onChange:{type:Function},onPressEnter:{type:Function},onStep:{type:Function},onBlur:{type:Function},onFocus:{type:Function}}};const at=pe({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:N(N({},Ve()),{},{lazy:Boolean}),slots:["upHandler","downHandler"],setup:function(e,t){var l=t.attrs,c=t.slots,s=t.emit,g=t.expose,v=D(),d=D(!1),f=D(!1),m=D(!1),i=D(k(e.value));function V(u){e.value===void 0&&(i.value=u)}var _=function(n,o){if(!o)return e.precision>=0?e.precision:Math.max(Q(n),Q(e.step))},C=function(n){var o=String(n);if(e.parser)return e.parser(o);var r=o;return e.decimalSeparator&&(r=r.replace(e.decimalSeparator,".")),r.replace(/[^\w.-]+/g,"")},x=D(""),A=function(n,o){if(e.formatter)return e.formatter(n,{userTyping:o,input:String(x.value)});var r=typeof n=="number"?he(n):n;if(!o){var I=_(r,o);if(ye(r)&&(e.decimalSeparator||I>=0)){var y=e.decimalSeparator||".";r=ge(r,y,I)}}return r},G=function(){var u=e.value;return i.value.isInvalidate()&&["string","number"].includes(He(u))?Number.isNaN(u)?"":u:A(i.value.toString(),!1)}();x.value=G;function M(u,n){x.value=A(u.isInvalidate()?u.toString(!1):u.toString(!n),n)}var P=ue(function(){return xe(e.max)}),E=ue(function(){return xe(e.min)}),h=ue(function(){return!P.value||!i.value||i.value.isInvalidate()?!1:P.value.lessEquals(i.value)}),T=ue(function(){return!E.value||!i.value||i.value.isInvalidate()?!1:i.value.lessEquals(E.value)}),F=et(v,d),w=Ue(F,2),q=w[0],Z=w[1],H=function(n){return P.value&&!n.lessEquals(P.value)?P.value:E.value&&!E.value.lessEquals(n)?E.value:null},U=function(n){return!H(n)},z=function(n,o){var r=n,I=U(r)||r.isEmpty();if(!r.isEmpty()&&!o&&(r=H(r)||r,I=!0),!e.readonly&&!e.disabled&&I){var y=r.toString(),B=_(y,o);if(B>=0&&(r=k(ge(y,".",B))),!r.equals(i.value)){var $;V(r),($=e.onChange)===null||$===void 0||$.call(e,r.isEmpty()?null:Ie(e.stringMode,r)),e.value===void 0&&M(r,o)}return r}return i.value},j=tt(),K=function u(n){var o;if(q(),x.value=n,!m.value){var r=C(n),I=k(r);I.isNaN()||z(I,!0)}(o=e.onInput)===null||o===void 0||o.call(e,n),j(function(){var y=n;e.parser||(y=n.replace(/。/g,".")),y!==n&&u(y)})},W=function(){m.value=!0},ee=function(){m.value=!1,K(v.value.value)},L=function(n){K(n.target.value)},X=function(n){var o,r;if(!(n&&h.value||!n&&T.value)){f.value=!1;var I=k(e.step);n||(I=I.negate());var y=(i.value||k(0)).add(I.toString()),B=z(y,!1);(o=e.onStep)===null||o===void 0||o.call(e,Ie(e.stringMode,B),{offset:e.step,type:n?"up":"down"}),(r=v.value)===null||r===void 0||r.focus()}},te=function(n){var o=k(C(x.value)),r=o;o.isNaN()?r=i.value:r=z(o,n),e.value!==void 0?M(i.value,!1):r.isNaN()||M(r,!1)},oe=function(n){var o=n.which;if(f.value=!0,o===le.ENTER){var r;m.value||(f.value=!1),te(!1),(r=e.onPressEnter)===null||r===void 0||r.call(e,n)}e.keyboard!==!1&&!m.value&&[le.UP,le.DOWN].includes(o)&&(X(le.UP===o),n.preventDefault())},b=function(){f.value=!1},O=function(n){te(!1),d.value=!1,f.value=!1,s("blur",n)};return Y(function(){return e.precision},function(){i.value.isInvalidate()||M(i.value,!1)},{flush:"post"}),Y(function(){return e.value},function(){var u=k(e.value);i.value=u;var n=k(C(x.value));(!u.equals(n)||!f.value||e.formatter)&&M(u,f.value)},{flush:"post"}),Y(x,function(){e.formatter&&Z()},{flush:"post"}),Y(function(){return e.disabled},function(u){u&&(d.value=!1)}),g({focus:function(){var n;(n=v.value)===null||n===void 0||n.focus()},blur:function(){var n;(n=v.value)===null||n===void 0||n.blur()}}),function(){var u,n=N(N({},l),e),o=n.prefixCls,r=o===void 0?"rc-input-number":o,I=n.min,y=n.max,B=n.step,$=B===void 0?1:B;n.defaultValue,n.value;var ne=n.disabled,ae=n.readonly;n.keyboard;var re=n.controls,se=re===void 0?!0:re,ie=n.autofocus;n.stringMode,n.parser,n.formatter,n.precision,n.decimalSeparator,n.onChange,n.onInput,n.onPressEnter,n.onStep;var _e=n.lazy,ke=n.class,Fe=n.style,Ae=Me(n,nt),$e=c.upHandler,Pe=c.downHandler,Se="".concat(r,"-input"),ce={};return _e?ce.onChange=L:ce.onInput=L,S("div",{class:R(r,ke,(u={},p(u,"".concat(r,"-focused"),d.value),p(u,"".concat(r,"-disabled"),ne),p(u,"".concat(r,"-readonly"),ae),p(u,"".concat(r,"-not-a-number"),i.value.isNaN()),p(u,"".concat(r,"-out-of-range"),!i.value.isInvalidate()&&!U(i.value)),u)),style:Fe,onKeydown:oe,onKeyup:b},[se&&S(Ze,{prefixCls:r,upDisabled:h.value,downDisabled:T.value,onStep:X},{upNode:$e,downNode:Pe}),S("div",{class:"".concat(Se,"-wrap")},[S("input",N(N(N({autofocus:ie,autocomplete:"off",role:"spinbutton","aria-valuemin":I,"aria-valuemax":y,"aria-valuenow":i.value.isInvalidate()?null:i.value.toString(),step:$},Ae),{},{ref:v,class:Se,value:x.value,disabled:ne,readonly:ae,onFocus:function(Re){d.value=!0,s("focus",Re)}},ce),{},{onBlur:O,onCompositionstart:W,onCompositionend:ee}),null)])])}}});function de(a){return a!=null}var rt=["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"],Ee=Ve(),it=function(){return N(N({},Ee),{},{size:{type:String},bordered:{type:Boolean,default:!0},placeholder:String,name:String,id:String,type:String,addonBefore:ve.any,addonAfter:ve.any,prefix:ve.any,"onUpdate:value":Ee.onChange,valueModifiers:Object})},fe=pe({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:it(),slots:["addonBefore","addonAfter","prefix"],setup:function(e,t){var l=t.emit,c=t.expose,s=t.attrs,g=t.slots,v=Oe(),d=Ge("input-number",e),f=d.prefixCls,m=d.size,i=d.direction,V=D(e.value===void 0?e.defaultValue:e.value),_=D(!1);Y(function(){return e.value},function(){V.value=e.value});var C=D(null),x=function(){var h;(h=C.value)===null||h===void 0||h.focus()},A=function(){var h;(h=C.value)===null||h===void 0||h.blur()};c({focus:x,blur:A});var G=function(h){e.value===void 0&&(V.value=h),l("update:value",h),l("change",h),v.onFieldChange()},M=function(h){_.value=!1,l("blur",h),v.onFieldBlur()},P=function(h){_.value=!0,l("focus",h)};return function(){var E,h,T,F,w=N(N({},s),e),q=w.class,Z=w.bordered,H=w.readonly,U=w.style,z=w.addonBefore,j=z===void 0?(E=g.addonBefore)===null||E===void 0?void 0:E.call(g):z,K=w.addonAfter,W=K===void 0?(h=g.addonAfter)===null||h===void 0?void 0:h.call(g):K,ee=w.prefix,L=ee===void 0?(T=g.prefix)===null||T===void 0?void 0:T.call(g):ee,X=w.valueModifiers,te=X===void 0?{}:X,oe=Me(w,rt),b=f.value,O=m.value,u=R((F={},p(F,"".concat(b,"-lg"),O==="large"),p(F,"".concat(b,"-sm"),O==="small"),p(F,"".concat(b,"-rtl"),i.value==="rtl"),p(F,"".concat(b,"-readonly"),H),p(F,"".concat(b,"-borderless"),!Z),F),q),n=S(at,N(N({},We(oe,["size","defaultValue"])),{},{ref:C,lazy:!!te.lazy,value:V.value,class:u,prefixCls:b,readonly:H,onChange:G,onBlur:M,onFocus:P}),{upHandler:function(){return S(je,{class:"".concat(b,"-handler-up-inner")},null)},downHandler:function(){return S(Ke,{class:"".concat(b,"-handler-down-inner")},null)}}),o=de(j)||de(W);if(de(L)){var r,I=R("".concat(b,"-affix-wrapper"),(r={},p(r,"".concat(b,"-affix-wrapper-focused"),_.value),p(r,"".concat(b,"-affix-wrapper-disabled"),e.disabled),p(r,"".concat(b,"-affix-wrapper-rtl"),i.value==="rtl"),p(r,"".concat(b,"-affix-wrapper-readonly"),H),p(r,"".concat(b,"-affix-wrapper-borderless"),!Z),p(r,"".concat(q),!o&&q),r));n=S("div",{class:I,style:U,onMouseup:function(){return C.value.focus()}},[S("span",{class:"".concat(b,"-prefix")},[L]),n])}if(o){var y,B="".concat(b,"-group"),$="".concat(B,"-addon"),ne=j?S("div",{class:$},[j]):null,ae=W?S("div",{class:$},[W]):null,re=R("".concat(b,"-wrapper"),B,p({},"".concat(B,"-rtl"),i.value==="rtl")),se=R("".concat(b,"-group-wrapper"),(y={},p(y,"".concat(b,"-group-wrapper-sm"),O==="small"),p(y,"".concat(b,"-group-wrapper-lg"),O==="large"),p(y,"".concat(b,"-group-wrapper-rtl"),i.value==="rtl"),y),q);n=S("div",{class:se,style:U},[S("div",{class:re},[ne,n,ae])])}return Le(n,{style:U})}}});const ot=ze(fe,{install:function(e){return e.component(fe.name,fe),e}});export{ot as _}; diff --git a/vue/dist/assets/index-b9ffc995.js b/vue/dist/assets/index-b39f3e91.js similarity index 98% rename from vue/dist/assets/index-b9ffc995.js rename to vue/dist/assets/index-b39f3e91.js index 9820e47..6d8dedf 100644 --- a/vue/dist/assets/index-b9ffc995.js +++ b/vue/dist/assets/index-b39f3e91.js @@ -1 +1 @@ -import{av as M,G as l,ax as D,ay as P,d as F,u as I,r as K,o as L,cx as _,b as y,bk as T,cy as A,an as $,h as o,c as B,a as G}from"./index-0205daf8.js";import{u as V}from"./index-859cb083.js";var E=Symbol("rowContextKey"),W=function(r){D(E,r)},k=function(){return M(E,{gutter:l(function(){}),wrap:l(function(){}),supportFlexGap:l(function(){})})};P("top","middle","bottom","stretch");P("start","end","center","space-around","space-between");var U=function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}},q=F({compatConfig:{MODE:3},name:"ARow",props:U(),setup:function(r,N){var g=N.slots,v=I("row",r),d=v.prefixCls,h=v.direction,j,x=K({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),w=V();L(function(){j=_.subscribe(function(e){var t=r.gutter||0;(!Array.isArray(t)&&y(t)==="object"||Array.isArray(t)&&(y(t[0])==="object"||y(t[1])==="object"))&&(x.value=e)})}),T(function(){_.unsubscribe(j)});var S=l(function(){var e=[0,0],t=r.gutter,n=t===void 0?0:t,s=Array.isArray(n)?n:[n,0];return s.forEach(function(i,b){if(y(i)==="object")for(var a=0;a0?"".concat(e[0]/-2,"px"):void 0,s=e[1]>0?"".concat(e[1]/-2,"px"):void 0;return n&&(t.marginLeft=n,t.marginRight=n),w.value?t.rowGap="".concat(e[1],"px"):s&&(t.marginTop=s,t.marginBottom=s),t});return function(){var e;return B("div",{class:R.value,style:O.value},[(e=g.default)===null||e===void 0?void 0:e.call(g)])}}});const Y=q;function H(c){return typeof c=="number"?"".concat(c," ").concat(c," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(c)?"0 0 ".concat(c):c}var J=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const Z=F({compatConfig:{MODE:3},name:"ACol",props:J(),setup:function(r,N){var g=N.slots,v=k(),d=v.gutter,h=v.supportFlexGap,j=v.wrap,x=I("col",r),w=x.prefixCls,S=x.direction,R=l(function(){var e,t=r.span,n=r.order,s=r.offset,i=r.push,b=r.pull,a=w.value,p={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(m){var f,u={},C=r[m];typeof C=="number"?u.span=C:y(C)==="object"&&(u=C||{}),p=G(G({},p),{},(f={},o(f,"".concat(a,"-").concat(m,"-").concat(u.span),u.span!==void 0),o(f,"".concat(a,"-").concat(m,"-order-").concat(u.order),u.order||u.order===0),o(f,"".concat(a,"-").concat(m,"-offset-").concat(u.offset),u.offset||u.offset===0),o(f,"".concat(a,"-").concat(m,"-push-").concat(u.push),u.push||u.push===0),o(f,"".concat(a,"-").concat(m,"-pull-").concat(u.pull),u.pull||u.pull===0),o(f,"".concat(a,"-rtl"),S.value==="rtl"),f))}),$(a,(e={},o(e,"".concat(a,"-").concat(t),t!==void 0),o(e,"".concat(a,"-order-").concat(n),n),o(e,"".concat(a,"-offset-").concat(s),s),o(e,"".concat(a,"-push-").concat(i),i),o(e,"".concat(a,"-pull-").concat(b),b),e),p)}),O=l(function(){var e=r.flex,t=d.value,n={};if(t&&t[0]>0){var s="".concat(t[0]/2,"px");n.paddingLeft=s,n.paddingRight=s}if(t&&t[1]>0&&!h.value){var i="".concat(t[1]/2,"px");n.paddingTop=i,n.paddingBottom=i}return e&&(n.flex=H(e),j.value===!1&&!n.minWidth&&(n.minWidth=0)),n});return function(){var e;return B("div",{class:R.value,style:O.value},[(e=g.default)===null||e===void 0?void 0:e.call(g)])}}});export{Z as C,Y as R}; +import{av as M,G as l,ax as D,ay as P,d as F,u as I,r as K,o as L,cx as _,b as y,bk as T,cy as A,an as $,h as o,c as B,a as G}from"./index-157194fb.js";import{u as V}from"./index-1c4f06bb.js";var E=Symbol("rowContextKey"),W=function(r){D(E,r)},k=function(){return M(E,{gutter:l(function(){}),wrap:l(function(){}),supportFlexGap:l(function(){})})};P("top","middle","bottom","stretch");P("start","end","center","space-around","space-between");var U=function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}},q=F({compatConfig:{MODE:3},name:"ARow",props:U(),setup:function(r,N){var g=N.slots,v=I("row",r),d=v.prefixCls,h=v.direction,j,x=K({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),w=V();L(function(){j=_.subscribe(function(e){var t=r.gutter||0;(!Array.isArray(t)&&y(t)==="object"||Array.isArray(t)&&(y(t[0])==="object"||y(t[1])==="object"))&&(x.value=e)})}),T(function(){_.unsubscribe(j)});var S=l(function(){var e=[0,0],t=r.gutter,n=t===void 0?0:t,s=Array.isArray(n)?n:[n,0];return s.forEach(function(i,b){if(y(i)==="object")for(var a=0;a0?"".concat(e[0]/-2,"px"):void 0,s=e[1]>0?"".concat(e[1]/-2,"px"):void 0;return n&&(t.marginLeft=n,t.marginRight=n),w.value?t.rowGap="".concat(e[1],"px"):s&&(t.marginTop=s,t.marginBottom=s),t});return function(){var e;return B("div",{class:R.value,style:O.value},[(e=g.default)===null||e===void 0?void 0:e.call(g)])}}});const Y=q;function H(c){return typeof c=="number"?"".concat(c," ").concat(c," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(c)?"0 0 ".concat(c):c}var J=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const Z=F({compatConfig:{MODE:3},name:"ACol",props:J(),setup:function(r,N){var g=N.slots,v=k(),d=v.gutter,h=v.supportFlexGap,j=v.wrap,x=I("col",r),w=x.prefixCls,S=x.direction,R=l(function(){var e,t=r.span,n=r.order,s=r.offset,i=r.push,b=r.pull,a=w.value,p={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(m){var f,u={},C=r[m];typeof C=="number"?u.span=C:y(C)==="object"&&(u=C||{}),p=G(G({},p),{},(f={},o(f,"".concat(a,"-").concat(m,"-").concat(u.span),u.span!==void 0),o(f,"".concat(a,"-").concat(m,"-order-").concat(u.order),u.order||u.order===0),o(f,"".concat(a,"-").concat(m,"-offset-").concat(u.offset),u.offset||u.offset===0),o(f,"".concat(a,"-").concat(m,"-push-").concat(u.push),u.push||u.push===0),o(f,"".concat(a,"-").concat(m,"-pull-").concat(u.pull),u.pull||u.pull===0),o(f,"".concat(a,"-rtl"),S.value==="rtl"),f))}),$(a,(e={},o(e,"".concat(a,"-").concat(t),t!==void 0),o(e,"".concat(a,"-order-").concat(n),n),o(e,"".concat(a,"-offset-").concat(s),s),o(e,"".concat(a,"-push-").concat(i),i),o(e,"".concat(a,"-pull-").concat(b),b),e),p)}),O=l(function(){var e=r.flex,t=d.value,n={};if(t&&t[0]>0){var s="".concat(t[0]/2,"px");n.paddingLeft=s,n.paddingRight=s}if(t&&t[1]>0&&!h.value){var i="".concat(t[1]/2,"px");n.paddingTop=i,n.paddingBottom=i}return e&&(n.flex=H(e),j.value===!1&&!n.minWidth&&(n.minWidth=0)),n});return function(){var e;return B("div",{class:R.value,style:O.value},[(e=g.default)===null||e===void 0?void 0:e.call(g)])}}});export{Z as C,Y as R}; diff --git a/vue/dist/assets/index-af89284c.js b/vue/dist/assets/index-e33c98d2.js similarity index 75% rename from vue/dist/assets/index-af89284c.js rename to vue/dist/assets/index-e33c98d2.js index 14461a1..cdfb804 100644 --- a/vue/dist/assets/index-af89284c.js +++ b/vue/dist/assets/index-e33c98d2.js @@ -1 +1 @@ -import{d as w,bC as D,av as A,cM as j,az as k,n as V,cN as B,cO as y,e as $,c as a,_ as M,h as r,a as P,cP as O,P as b}from"./index-0205daf8.js";var T=["class","style"],W=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:b.any,delay:Number,indicator:b.any}},p=null;function q(t,n){return!!t&&!!n&&!isNaN(Number(n))}function G(t){var n=t.indicator;p=typeof n=="function"?n:function(){return a(n,null,null)}}const H=w({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:D(W(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:A("configProvider",j)}},data:function(){var n=this.spinning,e=this.delay,i=q(n,e);return{sSpinning:n&&!i}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var n=this;k(function(){n.debouncifyUpdateSpinning(),n.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(n){var e=n||this.$props,i=e.delay;i&&(this.cancelExistingSpin(),this.updateSpinning=V(this.originalUpdateSpinning,i))},updateSpinning:function(){var n=this.spinning,e=this.sSpinning;e!==n&&(this.sSpinning=n)},cancelExistingSpin:function(){var n=this.updateSpinning;n&&n.cancel&&n.cancel()},renderIndicator:function(n){var e="".concat(n,"-dot"),i=B(this,"indicator");return i===null?null:(Array.isArray(i)&&(i=i.length===1?i[0]:i),y(i)?$(i,{class:e}):p&&y(p())?$(p(),{class:e}):a("span",{class:"".concat(e," ").concat(n,"-dot-spin")},[a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null)]))}},render:function(){var n,e,i,o=this.$props,f=o.size,N=o.prefixCls,h=o.tip,d=h===void 0?(n=(e=this.$slots).tip)===null||n===void 0?void 0:n.call(e):h,x=o.wrapperClassName,l=this.$attrs,v=l.class,_=l.style,C=M(l,T),S=this.configProvider,U=S.getPrefixCls,z=S.direction,s=U("spin",N),u=this.sSpinning,E=(i={},r(i,s,!0),r(i,"".concat(s,"-sm"),f==="small"),r(i,"".concat(s,"-lg"),f==="large"),r(i,"".concat(s,"-spinning"),u),r(i,"".concat(s,"-show-text"),!!d),r(i,"".concat(s,"-rtl"),z==="rtl"),r(i,v,!!v),i),m=a("div",P(P({},C),{},{style:_,class:E}),[this.renderIndicator(s),d?a("div",{class:"".concat(s,"-text")},[d]):null]),g=O(this);if(g&&g.length){var c,I=(c={},r(c,"".concat(s,"-container"),!0),r(c,"".concat(s,"-blur"),u),c);return a("div",{class:["".concat(s,"-nested-loading"),x]},[u&&a("div",{key:"loading"},[m]),a("div",{class:I,key:"container"},[g])])}return m}});export{H as S,G as s}; +import{d as w,bC as D,av as A,cN as j,az as k,n as V,cO as B,cP as y,e as $,c as a,_ as O,h as r,a as P,cQ as T,P as b}from"./index-157194fb.js";var M=["class","style"],Q=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:b.any,delay:Number,indicator:b.any}},p=null;function W(t,n){return!!t&&!!n&&!isNaN(Number(n))}function F(t){var n=t.indicator;p=typeof n=="function"?n:function(){return a(n,null,null)}}const G=w({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:D(Q(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:A("configProvider",j)}},data:function(){var n=this.spinning,e=this.delay,i=W(n,e);return{sSpinning:n&&!i}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var n=this;k(function(){n.debouncifyUpdateSpinning(),n.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(n){var e=n||this.$props,i=e.delay;i&&(this.cancelExistingSpin(),this.updateSpinning=V(this.originalUpdateSpinning,i))},updateSpinning:function(){var n=this.spinning,e=this.sSpinning;e!==n&&(this.sSpinning=n)},cancelExistingSpin:function(){var n=this.updateSpinning;n&&n.cancel&&n.cancel()},renderIndicator:function(n){var e="".concat(n,"-dot"),i=B(this,"indicator");return i===null?null:(Array.isArray(i)&&(i=i.length===1?i[0]:i),y(i)?$(i,{class:e}):p&&y(p())?$(p(),{class:e}):a("span",{class:"".concat(e," ").concat(n,"-dot-spin")},[a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null)]))}},render:function(){var n,e,i,o=this.$props,f=o.size,N=o.prefixCls,h=o.tip,d=h===void 0?(n=(e=this.$slots).tip)===null||n===void 0?void 0:n.call(e):h,x=o.wrapperClassName,l=this.$attrs,v=l.class,_=l.style,C=O(l,M),S=this.configProvider,U=S.getPrefixCls,z=S.direction,s=U("spin",N),u=this.sSpinning,E=(i={},r(i,s,!0),r(i,"".concat(s,"-sm"),f==="small"),r(i,"".concat(s,"-lg"),f==="large"),r(i,"".concat(s,"-spinning"),u),r(i,"".concat(s,"-show-text"),!!d),r(i,"".concat(s,"-rtl"),z==="rtl"),r(i,v,!!v),i),m=a("div",P(P({},C),{},{style:_,class:E}),[this.renderIndicator(s),d?a("div",{class:"".concat(s,"-text")},[d]):null]),g=T(this);if(g&&g.length){var c,I=(c={},r(c,"".concat(s,"-container"),!0),r(c,"".concat(s,"-blur"),u),c);return a("div",{class:["".concat(s,"-nested-loading"),x]},[u&&a("div",{key:"loading"},[m]),a("div",{class:I,key:"container"},[g])])}return m}});export{G as S,F as s}; diff --git a/vue/dist/assets/isArrayLikeObject-55a21cf1.js b/vue/dist/assets/isArrayLikeObject-55a21cf1.js deleted file mode 100644 index c856172..0000000 --- a/vue/dist/assets/isArrayLikeObject-55a21cf1.js +++ /dev/null @@ -1 +0,0 @@ -import{cl as e,cm as i,cn as r,co as a,b1 as n}from"./index-0205daf8.js";function c(s,t){return e(i(s,t,r),s+"")}function b(s){return a(s)&&n(s)}export{c as b,b as i}; diff --git a/vue/dist/assets/isArrayLikeObject-ca08191a.js b/vue/dist/assets/isArrayLikeObject-ca08191a.js new file mode 100644 index 0000000..9aee3f7 --- /dev/null +++ b/vue/dist/assets/isArrayLikeObject-ca08191a.js @@ -0,0 +1 @@ +import{cl as e,cm as i,cn as r,co as a,b1 as n}from"./index-157194fb.js";function c(s,t){return e(i(s,t,r),s+"")}function b(s){return a(s)&&n(s)}export{c as b,b as i}; diff --git a/vue/dist/assets/numInput-a524d3bc.js b/vue/dist/assets/numInput-8bb1e710.js similarity index 99% rename from vue/dist/assets/numInput-a524d3bc.js rename to vue/dist/assets/numInput-8bb1e710.js index 9408f59..e6e72ae 100644 --- a/vue/dist/assets/numInput-a524d3bc.js +++ b/vue/dist/assets/numInput-8bb1e710.js @@ -1,4 +1,4 @@ -import{G as E,av as He,aZ as $r,i as ee,a as I,b as sr,a_ as Ce,a$ as ae,b0 as Er,e as jr,h as Z,b1 as _r,b2 as fr,b3 as Vr,b4 as Ir,b5 as Sr,ax as dr,b6 as Mr,b7 as Rr,an as qe,c as K,Z as Oe,b8 as kr,d as Ae,u as Ke,r as ne,m as fe,b9 as Nr,ba as Lr,bb as Tr,bc as Dr,bd as Wr,be as Br,bf as zr,bg as cr,bh as vr,bi as Hr,y as we,bj as Kr,bk as Gr,ao as Ur,ay as Pe,P as ue,bl as Se,az as mr,bm as Ge,bn as Zr,bo as Yr,bp as Ye,bq as Qr,br as Xr,bs as Jr,bt as gr,bu as en,Q as rn,bv as nn,bw as tn,bx as an,by as ln,bz as un,a4 as le,am as on,bA as ye,n as sn,bB as hr,bC as fn,bD as dn,w as Ee,a0 as cn}from"./index-0205daf8.js";import{C as pr,R as vn}from"./index-b9ffc995.js";import{i as mn,b as gn}from"./isArrayLikeObject-55a21cf1.js";import{_ as hn}from"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";var pn=Symbol("SizeProvider"),yn=function(e){var r=e?E(function(){return e.size}):He(pn,E(function(){return"default"}));return r};function bn(n,e,r){var t=-1,a=n.length;e<0&&(e=-e>a?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(a);++t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xe(n,e,r){return wn()?xe=Reflect.construct.bind():xe=function(a,i,l){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(a,u),p=new o;return l&&me(p,l.prototype),p},xe.apply(null,arguments)}function xn(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function Re(n){var e=typeof Map=="function"?new Map:void 0;return Re=function(t){if(t===null||!xn(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,a)}function a(){return xe(t,arguments,Me(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),me(a,t)},Re(n)}var qn=/%[sdj%]/g,On=function(){};typeof process<"u"&&process.env;function ke(n){if(!n||!n.length)return null;var e={};return n.forEach(function(r){var t=r.field;e[t]=e[t]||[],e[t].push(r)}),e}function X(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t=i)return u;switch(u){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return u}});return l}return n}function Pn(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function G(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||Pn(e)&&typeof n=="string"&&!n)}function Cn(n,e,r){var t=[],a=0,i=n.length;function l(u){t.push.apply(t,u||[]),a++,a===i&&r(t)}n.forEach(function(u){e(u,l)})}function Qe(n,e,r){var t=0,a=n.length;function i(l){if(l&&l.length){r(l);return}var u=t;t=t+1,ua?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(a);++t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xe(n,e,r){return wn()?xe=Reflect.construct.bind():xe=function(a,i,l){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(a,u),p=new o;return l&&me(p,l.prototype),p},xe.apply(null,arguments)}function xn(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function Re(n){var e=typeof Map=="function"?new Map:void 0;return Re=function(t){if(t===null||!xn(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,a)}function a(){return xe(t,arguments,Me(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),me(a,t)},Re(n)}var qn=/%[sdj%]/g,On=function(){};typeof process<"u"&&process.env;function ke(n){if(!n||!n.length)return null;var e={};return n.forEach(function(r){var t=r.field;e[t]=e[t]||[],e[t].push(r)}),e}function X(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t=i)return u;switch(u){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return u}});return l}return n}function Pn(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function G(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||Pn(e)&&typeof n=="string"&&!n)}function Cn(n,e,r){var t=[],a=0,i=n.length;function l(u){t.push.apply(t,u||[]),a++,a===i&&r(t)}n.forEach(function(u){e(u,l)})}function Qe(n,e,r){var t=0,a=n.length;function i(l){if(l&&l.length){r(l);return}var u=t;t=t+1,u0:!0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");var s=Object.keys(a).map(parseFloat).sort(function(d,u){return d-u});if(e&&n)for(var l=r;l<=i;l+=n)s.indexOf(l)===-1&&s.push(l);return s},he=function(t,a){var e=a.attrs,n=e.prefixCls,r=e.vertical,i=e.reverse,s=e.marks,l=e.dots,d=e.step,u=e.included,v=e.lowerBound,m=e.upperBound,y=e.max,C=e.min,M=e.dotStyle,w=e.activeDotStyle,g=y-C,h=Ae(r,s,l,d,C,y).map(function(p){var S,x="".concat(Math.abs(p-C)/g*100,"%"),F=!u&&p===m||u&&p<=m&&p>=v,V=r?f(f({},M),{},b({},i?"top":"bottom",x)):f(f({},M),{},b({},i?"right":"left",x));F&&(V=f(f({},V),w));var c=A((S={},b(S,"".concat(n,"-dot"),!0),b(S,"".concat(n,"-dot-active"),F),b(S,"".concat(n,"-dot-reverse"),i),S));return P("span",{class:c,style:V,key:p},null)});return P("div",{class:"".concat(n,"-step")},[h])};he.inheritAttrs=!1;const je=he;var fe=function(t,a){var e=a.attrs,n=a.slots,r=e.class,i=e.vertical,s=e.reverse,l=e.marks,d=e.included,u=e.upperBound,v=e.lowerBound,m=e.max,y=e.min,C=e.onClickLabel,M=Object.keys(l),w=n.mark,g=m-y,h=M.map(parseFloat).sort(function(p,S){return p-S}).map(function(p){var S,x=typeof l[p]=="function"?l[p]():l[p],F=se(x)==="object"&&!Ve(x),V=F?x.label:x;if(!V&&V!==0)return null;w&&(V=w({point:p,label:V}));var c=!d&&p===u||d&&p<=u&&p>=v,T=A((S={},b(S,"".concat(r,"-text"),!0),b(S,"".concat(r,"-text-active"),c),S)),$=b({marginBottom:"-50%"},s?"top":"bottom","".concat((p-y)/g*100,"%")),B=b({transform:"translateX(".concat(s?"50%":"-50%",")"),msTransform:"translateX(".concat(s?"50%":"-50%",")")},s?"right":"left","".concat((p-y)/g*100,"%")),L=i?$:B,H=F?f(f({},L),x.style):L,_=b({},oe?"onTouchstartPassive":"onTouchstart",function(O){return C(O,p)});return P("span",f({class:T,style:H,key:p,onMousedown:function(N){return C(N,p)}},_),[V])});return P("div",{class:r},[h])};fe.inheritAttrs=!1;const Ue=fe,me=j({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:k.oneOfType([k.number,k.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup:function(t,a){var e=a.attrs,n=a.emit,r=a.expose,i=U(!1),s=U(),l=function(){document.activeElement===s.value&&(i.value=!0)},d=function(h){i.value=!1,n("blur",h)},u=function(){i.value=!1},v=function(){var h;(h=s.value)===null||h===void 0||h.focus()},m=function(){var h;(h=s.value)===null||h===void 0||h.blur()},y=function(){i.value=!0,v()},C=function(h){h.preventDefault(),v(),n("mousedown",h)};r({focus:v,blur:m,clickFocus:y,ref:s});var M=null;Me(function(){M=K(document,"mouseup",l)}),le(function(){var g;(g=M)===null||g===void 0||g.remove()});var w=ue(function(){var g,h,p=t.vertical,S=t.offset,x=t.reverse;return p?(g={},b(g,x?"top":"bottom","".concat(S,"%")),b(g,x?"bottom":"top","auto"),b(g,"transform",x?null:"translateY(+50%)"),g):(h={},b(h,x?"right":"left","".concat(S,"%")),b(h,x?"left":"right","auto"),b(h,"transform","translateX(".concat(x?"+":"-","50%)")),h)});return function(){var g=t.prefixCls,h=t.disabled,p=t.min,S=t.max,x=t.value,F=t.tabindex,V=t.ariaLabel,c=t.ariaLabelledBy,T=t.ariaValueTextFormatter,$=t.onMouseenter,B=t.onMouseleave,L=A(e.class,b({},"".concat(g,"-handle-click-focused"),i.value)),H={"aria-valuemin":p,"aria-valuemax":S,"aria-valuenow":x,"aria-disabled":!!h},_=[e.style,w.value],O=F||0;(h||F===null)&&(O=null);var N;T&&(N=T(x));var X=f(f(f({},e),{},{role:"slider",tabindex:O},H),{},{class:L,onBlur:d,onKeydown:u,onMousedown:C,onMouseenter:$,onMouseleave:B,ref:s,style:_});return P("div",f(f({},X),{},{"aria-label":V,"aria-labelledby":c,"aria-valuetext":N}),null)}}});function W(o,t){try{return Object.keys(t).some(function(a){return o.target===t[a].ref})}catch{return!1}}function pe(o,t){var a=t.min,e=t.max;return oe}function ee(o){return o.touches.length>1||o.type.toLowerCase()==="touchend"&&o.touches.length>0}function te(o,t){var a=t.marks,e=t.step,n=t.min,r=t.max,i=Object.keys(a).map(parseFloat);if(e!==null){var s=Math.pow(10,ge(e)),l=Math.floor((r*s-n*s)/(e*s)),d=Math.min((o-n)/e,l),u=Math.round(d)*e+n;i.push(u)}var v=i.map(function(m){return Math.abs(o-m)});return i[v.indexOf(Math.min.apply(Math,D(v)))]}function ge(o){var t=o.toString(),a=0;return t.indexOf(".")>=0&&(a=t.length-t.indexOf(".")-1),a}function ae(o,t){var a=1;return window.visualViewport&&(a=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(o?t.clientY:t.pageX)/a}function ne(o,t){var a=1;return window.visualViewport&&(a=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(o?t.touches[0].clientY:t.touches[0].pageX)/a}function re(o,t){var a=t.getBoundingClientRect();return o?a.top+a.height*.5:window.pageXOffset+a.left+a.width*.5}function Z(o,t){var a=t.max,e=t.min;return o<=e?e:o>=a?a:o}function be(o,t){var a=t.step,e=isFinite(te(o,t))?te(o,t):0;return a===null?e:parseFloat(e.toFixed(ge(a)))}function G(o){o.stopPropagation(),o.preventDefault()}function Ge(o,t,a){var e={increase:function(s,l){return s+l},decrease:function(s,l){return s-l}},n=e[o](Object.keys(a.marks).indexOf(JSON.stringify(t)),1),r=Object.keys(a.marks)[n];return a.step?e[o](t,a.step):Object.keys(a.marks).length&&a.marks[r]?a.marks[r]:t}function ye(o,t,a){var e="increase",n="decrease",r=e;switch(o.keyCode){case E.UP:r=t&&a?n:e;break;case E.RIGHT:r=!t&&a?n:e;break;case E.DOWN:r=t&&a?e:n;break;case E.LEFT:r=!t&&a?e:n;break;case E.END:return function(i,s){return s.max};case E.HOME:return function(i,s){return s.min};case E.PAGE_UP:return function(i,s){return i+s.step*2};case E.PAGE_DOWN:return function(i,s){return i-s.step*2};default:return}return function(i,s){return Ge(r,i,s)}}var Ie=["index","directives","className","style"];function R(){}function xe(o){var t={id:String,min:Number,max:Number,step:Number,marks:k.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:k.object,maximumTrackStyle:k.object,handleStyle:k.oneOfType([k.object,k.arrayOf(k.object)]),trackStyle:k.oneOfType([k.object,k.arrayOf(k.object)]),railStyle:k.object,dotStyle:k.object,activeDotStyle:k.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return j({compatConfig:{MODE:3},name:"CreateSlider",mixins:[J,o],inheritAttrs:!1,slots:["mark"],props:de(t,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data:function(){var e=this.step,n=this.max,r=this.min,i=isFinite(n-r)?(n-r)%e===0:!0;return ie(e&&Math.floor(e)===e?i:!0,"Slider[max] - Slider[min] (".concat(n-r,") should be a multiple of Slider[step] (").concat(e,")")),this.handlesRefs={},{}},mounted:function(){var e=this;this.$nextTick(function(){e.document=e.sliderRef&&e.sliderRef.ownerDocument;var n=e.autofocus,r=e.disabled;n&&!r&&e.focus()})},beforeUnmount:function(){var e=this;this.$nextTick(function(){e.removeDocumentEvents()})},methods:{defaultHandle:function(e){var n=e.index;e.directives;var r=e.className,i=e.style,s=z(e,Ie);if(delete s.dragging,s.value===null)return null;var l=f(f({},s),{},{class:r,style:i,key:n});return P(me,l,null)},onDown:function(e,n){var r=n,i=this.$props,s=i.draggableTrack,l=i.vertical,d=this.$data.bounds,u=s&&this.positionGetValue?this.positionGetValue(r)||[]:[],v=W(e,this.handlesRefs);if(this.dragTrack=s&&d.length>=2&&!v&&!u.map(function(y,C){var M=C?!0:y>=d[C];return C===u.length-1?y<=d[C]:M}).some(function(y){return!y}),this.dragTrack)this.dragOffset=r,this.startBounds=D(d);else{if(!v)this.dragOffset=0;else{var m=re(l,e.target);this.dragOffset=r-m,r=m}this.onStart(r)}},onMouseDown:function(e){if(e.button===0){this.removeDocumentEvents();var n=this.$props.vertical,r=ae(n,e);this.onDown(e,r),this.addDocumentMouseEvents()}},onTouchStart:function(e){if(!ee(e)){var n=this.vertical,r=ne(n,e);this.onDown(e,r),this.addDocumentTouchEvents(),G(e)}},onFocus:function(e){var n=this.vertical;if(W(e,this.handlesRefs)&&!this.dragTrack){var r=re(n,e.target);this.dragOffset=0,this.onStart(r),G(e),this.$emit("focus",e)}},onBlur:function(e){this.dragTrack||this.onEnd(),this.$emit("blur",e)},onMouseUp:function(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove:function(e){if(!this.sliderRef){this.onEnd();return}var n=ae(this.vertical,e);this.onMove(e,n-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove:function(e){if(ee(e)||!this.sliderRef){this.onEnd();return}var n=ne(this.vertical,e);this.onMove(e,n-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown:function(e){this.sliderRef&&W(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel:function(e,n){var r=this;e.stopPropagation(),this.onChange({sValue:n}),this.setState({sValue:n},function(){return r.onEnd(!0)})},getSliderStart:function(){var e=this.sliderRef,n=this.vertical,r=this.reverse,i=e.getBoundingClientRect();return n?r?i.bottom:i.top:window.pageXOffset+(r?i.right:i.left)},getSliderLength:function(){var e=this.sliderRef;if(!e)return 0;var n=e.getBoundingClientRect();return this.vertical?n.height:n.width},addDocumentTouchEvents:function(){this.onTouchMoveListener=K(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=K(this.document,"touchend",this.onEnd)},addDocumentMouseEvents:function(){this.onMouseMoveListener=K(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=K(this.document,"mouseup",this.onEnd)},removeDocumentEvents:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus:function(){var e;this.$props.disabled||(e=this.handlesRefs[0])===null||e===void 0||e.focus()},blur:function(){var e=this;this.$props.disabled||Object.keys(this.handlesRefs).forEach(function(n){var r,i;(r=e.handlesRefs[n])===null||r===void 0||(i=r.blur)===null||i===void 0||i.call(r)})},calcValue:function(e){var n=this.vertical,r=this.min,i=this.max,s=Math.abs(Math.max(e,0)/this.getSliderLength()),l=n?(1-s)*(i-r)+r:s*(i-r)+r;return l},calcValueByPos:function(e){var n=this.reverse?-1:1,r=n*(e-this.getSliderStart()),i=this.trimAlignValue(this.calcValue(r));return i},calcOffset:function(e){var n=this.min,r=this.max,i=(e-n)/(r-n);return Math.max(0,i*100)},saveSlider:function(e){this.sliderRef=e},saveHandle:function(e,n){this.handlesRefs[e]=n}},render:function(){var e,n=this.prefixCls,r=this.marks,i=this.dots,s=this.step,l=this.included,d=this.disabled,u=this.vertical,v=this.reverse,m=this.min,y=this.max,C=this.maximumTrackStyle,M=this.railStyle,w=this.dotStyle,g=this.activeDotStyle,h=this.id,p=this.$attrs,S=p.class,x=p.style,F=this.renderSlider(),V=F.tracks,c=F.handles,T=A(n,S,(e={},b(e,"".concat(n,"-with-marks"),Object.keys(r).length),b(e,"".concat(n,"-disabled"),d),b(e,"".concat(n,"-vertical"),u),e)),$={vertical:u,marks:r,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:m,reverse:v,class:"".concat(n,"-mark"),onClickLabel:d?R:this.onClickMarkLabel},B=b({},oe?"onTouchstartPassive":"onTouchstart",d?R:this.onTouchStart);return P("div",f(f({id:h,ref:this.saveSlider,tabindex:"-1",class:T},B),{},{onMousedown:d?R:this.onMouseDown,onMouseup:d?R:this.onMouseUp,onKeydown:d?R:this.onKeyDown,onFocus:d?R:this.onFocus,onBlur:d?R:this.onBlur,style:x}),[P("div",{class:"".concat(n,"-rail"),style:f(f({},C),M)},null),V,P(je,{prefixCls:n,vertical:u,reverse:v,marks:r,dots:i,step:s,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:m,dotStyle:w,activeDotStyle:g},null),c,P(Ue,$,{mark:this.$slots.mark}),Te(this)])}})}var Ke=j({compatConfig:{MODE:3},name:"Slider",mixins:[J],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:k.oneOfType([k.number,k.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data:function(){var t=this.defaultValue!==void 0?this.defaultValue:this.min,a=this.value!==void 0?this.value:t;return{sValue:this.trimAlignValue(a),dragging:!1}},watch:{value:{handler:function(t){this.setChangeValue(t)},deep:!0},min:function(){var t=this.sValue;this.setChangeValue(t)},max:function(){var t=this.sValue;this.setChangeValue(t)}},methods:{setChangeValue:function(t){var a=t!==void 0?t:this.sValue,e=this.trimAlignValue(a,this.$props);e!==this.sValue&&(this.setState({sValue:e}),pe(a,this.$props)&&this.$emit("change",e))},onChange:function(t){var a=!Y(this,"value"),e=t.sValue>this.max?f(f({},t),{},{sValue:this.max}):t;a&&this.setState(e);var n=e.sValue;this.$emit("change",n)},onStart:function(t){this.setState({dragging:!0});var a=this.sValue;this.$emit("beforeChange",a);var e=this.calcValueByPos(t);this.startValue=e,this.startPosition=t,e!==a&&(this.prevMovedHandleIndex=0,this.onChange({sValue:e}))},onEnd:function(t){var a=this.dragging;this.removeDocumentEvents(),(a||t)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove:function(t,a){G(t);var e=this.sValue,n=this.calcValueByPos(a);n!==e&&this.onChange({sValue:n})},onKeyboard:function(t){var a=this.$props,e=a.reverse,n=a.vertical,r=ye(t,n,e);if(r){G(t);var i=this.sValue,s=r(i,this.$props),l=this.trimAlignValue(s);if(l===i)return;this.onChange({sValue:l}),this.$emit("afterChange",l),this.onEnd()}},getLowerBound:function(){var t=this.$props.startPoint||this.$props.min;return this.$data.sValue>t?t:this.$data.sValue},getUpperBound:function(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(t===null)return null;var e=f(f({},this.$props),a),n=Z(t,e);return be(n,e)},getTrack:function(t){var a=t.prefixCls,e=t.reverse,n=t.vertical,r=t.included,i=t.minimumTrackStyle,s=t.mergedTrackStyle,l=t.length,d=t.offset;return P(ve,{class:"".concat(a,"-track"),vertical:n,included:r,offset:d,reverse:e,length:l,style:f(f({},i),s)},null)},renderSlider:function(){var t=this,a=this.prefixCls,e=this.vertical,n=this.included,r=this.disabled,i=this.minimumTrackStyle,s=this.trackStyle,l=this.handleStyle,d=this.tabindex,u=this.ariaLabelForHandle,v=this.ariaLabelledByForHandle,m=this.ariaValueTextFormatterForHandle,y=this.min,C=this.max,M=this.startPoint,w=this.reverse,g=this.handle,h=this.defaultHandle,p=g||h,S=this.sValue,x=this.dragging,F=this.calcOffset(S),V=p({class:"".concat(a,"-handle"),prefixCls:a,vertical:e,offset:F,value:S,dragging:x,disabled:r,min:y,max:C,reverse:w,index:0,tabindex:d,ariaLabel:u,ariaLabelledBy:v,ariaValueTextFormatter:m,style:l[0]||l,ref:function(B){return t.saveHandle(0,B)},onFocus:this.onFocus,onBlur:this.onBlur}),c=M!==void 0?this.calcOffset(M):0,T=s[0]||s;return{tracks:this.getTrack({prefixCls:a,reverse:w,vertical:e,included:n,offset:c,minimumTrackStyle:i,mergedTrackStyle:T,length:F-c}),handles:V}}}});const Xe=xe(Ke);var I=function(t){var a=t.value,e=t.handle,n=t.bounds,r=t.props,i=r.allowCross,s=r.pushable,l=Number(s),d=Z(a,r),u=d;return!i&&e!=null&&n!==void 0&&(e>0&&d<=n[e-1]+l&&(u=n[e-1]+l),e=n[e+1]-l&&(u=n[e+1]-l)),be(u,r)},We={defaultValue:k.arrayOf(k.number),value:k.arrayOf(k.number),count:Number,pushable:Be(k.oneOfType([k.looseBool,k.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:k.arrayOf(k.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},ze=j({compatConfig:{MODE:3},name:"Range",mixins:[J],inheritAttrs:!1,props:de(We,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data:function(){var t=this,a=this.count,e=this.min,n=this.max,r=Array.apply(void 0,D(Array(a+1))).map(function(){return e}),i=Y(this,"defaultValue")?this.defaultValue:r,s=this.value;s===void 0&&(s=i);var l=s.map(function(u,v){return I({value:u,handle:v,props:t.$props})}),d=l[0]===n?0:l.length-1;return{sHandle:null,recent:d,bounds:l}},watch:{value:{handler:function(t){var a=this.bounds;this.setChangeValue(t||a)},deep:!0},min:function(){var t=this.value;this.setChangeValue(t||this.bounds)},max:function(){var t=this.value;this.setChangeValue(t||this.bounds)}},methods:{setChangeValue:function(t){var a=this,e=this.bounds,n=t.map(function(i,s){return I({value:i,handle:s,bounds:e,props:a.$props})});if(e.length===n.length){if(n.every(function(i,s){return i===e[s]}))return null}else n=t.map(function(i,s){return I({value:i,handle:s,props:a.$props})});if(this.setState({bounds:n}),t.some(function(i){return pe(i,a.$props)})){var r=t.map(function(i){return Z(i,a.$props)});this.$emit("change",r)}},onChange:function(t){var a=!Y(this,"value");if(a)this.setState(t);else{var e={};["sHandle","recent"].forEach(function(i){t[i]!==void 0&&(e[i]=t[i])}),Object.keys(e).length&&this.setState(e)}var n=f(f({},this.$data),t),r=n.bounds;this.$emit("change",r)},positionGetValue:function(t){var a=this.getValue(),e=this.calcValueByPos(t),n=this.getClosestBound(e),r=this.getBoundNeedMoving(e,n),i=a[r];if(e===i)return null;var s=D(a);return s[r]=e,s},onStart:function(t){var a=this.bounds;this.$emit("beforeChange",a);var e=this.calcValueByPos(t);this.startValue=e,this.startPosition=t;var n=this.getClosestBound(e);this.prevMovedHandleIndex=this.getBoundNeedMoving(e,n),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});var r=a[this.prevMovedHandleIndex];if(e!==r){var i=D(a);i[this.prevMovedHandleIndex]=e,this.onChange({bounds:i})}},onEnd:function(t){var a=this.sHandle;this.removeDocumentEvents(),a||(this.dragTrack=!1),(a!==null||t)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove:function(t,a,e,n){G(t);var r=this.$data,i=this.$props,s=i.max||100,l=i.min||0;if(e){var d=i.vertical?-a:a;d=i.reverse?-d:d;var u=s-Math.max.apply(Math,D(n)),v=l-Math.min.apply(Math,D(n)),m=Math.min(Math.max(d/(this.getSliderLength()/100),v),u),y=n.map(function(h){return Math.floor(Math.max(Math.min(h+m,s),l))});r.bounds.map(function(h,p){return h===y[p]}).some(function(h){return!h})&&this.onChange({bounds:y});return}var C=this.bounds,M=this.sHandle,w=this.calcValueByPos(a),g=C[M];w!==g&&this.moveTo(w)},onKeyboard:function(t){var a=this.$props,e=a.reverse,n=a.vertical,r=ye(t,n,e);if(r){G(t);var i=this.bounds,s=this.sHandle,l=i[s===null?this.recent:s],d=r(l,this.$props),u=I({value:d,handle:s,bounds:i,props:this.$props});if(u===l)return;var v=!0;this.moveTo(u,v)}},getClosestBound:function(t){for(var a=this.bounds,e=0,n=1;n=a[n]&&(e=n);return Math.abs(a[e+1]-t)=n.length||i<0)return!1;var s=a+e,l=n[i],d=this.pushable,u=Number(d),v=e*(t[s]-l);return this.pushHandle(t,s,e,u-v)?(t[a]=l,!0):!1},trimAlignValue:function(t){var a=this.sHandle,e=this.bounds;return I({value:t,handle:a,bounds:e,props:this.$props})},ensureValueNotConflict:function(t,a,e){var n=e.allowCross,r=e.pushable,i=this.$data||{},s=i.bounds;if(t=t===void 0?i.sHandle:t,r=Number(r),!n&&t!=null&&s!==void 0){if(t>0&&a<=s[t-1]+r)return s[t-1]+r;if(t=s[t+1]-r)return s[t+1]-r}return a},getTrack:function(t){var a=t.bounds,e=t.prefixCls,n=t.reverse,r=t.vertical,i=t.included,s=t.offsets,l=t.trackStyle;return a.slice(0,-1).map(function(d,u){var v,m=u+1,y=A((v={},b(v,"".concat(e,"-track"),!0),b(v,"".concat(e,"-track-").concat(m),!0),v));return P(ve,{class:y,vertical:r,reverse:n,included:i,offset:s[m-1],length:s[m]-s[m-1],style:l[u],key:m},null)})},renderSlider:function(){var t=this,a=this.sHandle,e=this.bounds,n=this.prefixCls,r=this.vertical,i=this.included,s=this.disabled,l=this.min,d=this.max,u=this.reverse,v=this.handle,m=this.defaultHandle,y=this.trackStyle,C=this.handleStyle,M=this.tabindex,w=this.ariaLabelGroupForHandles,g=this.ariaLabelledByGroupForHandles,h=this.ariaValueTextFormatterGroupForHandles,p=v||m,S=e.map(function(V){return t.calcOffset(V)}),x="".concat(n,"-handle"),F=e.map(function(V,c){var T,$=M[c]||0;(s||M[c]===null)&&($=null);var B=a===c;return p({class:A((T={},b(T,x,!0),b(T,"".concat(x,"-").concat(c+1),!0),b(T,"".concat(x,"-dragging"),B),T)),prefixCls:n,vertical:r,dragging:B,offset:S[c],value:V,index:c,tabindex:$,min:l,max:d,reverse:u,disabled:s,style:C[c],ref:function(H){return t.saveHandle(c,H)},onFocus:t.onFocus,onBlur:t.onBlur,ariaLabel:w[c],ariaLabelledBy:g[c],ariaValueTextFormatter:h[c]})});return{tracks:this.getTrack({bounds:e,prefixCls:n,reverse:u,vertical:r,included:i,offsets:S,trackStyle:y}),handles:F}}}});const Ye=xe(ze),Je=j({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:Pe(),setup:function(t,a){var e=a.attrs,n=a.slots,r=U(null),i=U(null);function s(){q.cancel(i.value),i.value=null}function l(){i.value=q(function(){var u;(u=r.value)===null||u===void 0||u.forcePopupAlign(),i.value=null})}var d=function(){s(),t.visible&&l()};return we([function(){return t.visible},function(){return t.title}],function(){d()},{flush:"post",immediate:!0}),Fe(function(){d()}),le(function(){s()}),function(){return P($e,f(f({ref:r},t),e),n)}}});var Ze=["value","dragging","index"],qe=["tooltipPrefixCls","range","id"],Qe=function(t){return typeof t=="number"?t.toString():""},et=function(){return{id:String,prefixCls:String,tooltipPrefixCls:String,range:{type:[Boolean,Object],default:void 0},reverse:{type:Boolean,default:void 0},min:Number,max:Number,step:{type:[Number,Object]},marks:{type:Object},dots:{type:Boolean,default:void 0},value:{type:[Number,Array]},defaultValue:{type:[Number,Array]},included:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},tipFormatter:{type:[Function,Object],default:function(){return Qe}},tooltipVisible:{type:Boolean,default:void 0},tooltipPlacement:{type:String},getTooltipPopupContainer:{type:Function},autofocus:{type:Boolean,default:void 0},handleStyle:{type:[Object,Array]},trackStyle:{type:[Object,Array]},onChange:{type:Function},onAfterChange:{type:Function},onFocus:{type:Function},onBlur:{type:Function},"onUpdate:value":{type:Function}}},tt=j({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:et(),slots:["mark"],setup:function(t,a){var e=a.attrs,n=a.slots,r=a.emit,i=a.expose,s=Oe("slider",t),l=s.prefixCls,d=s.rootPrefixCls,u=s.direction,v=s.getPopupContainer,m=s.configProvider,y=Ne(),C=U(),M=U({}),w=function(c,T){M.value[c]=T},g=ue(function(){return t.tooltipPlacement?t.tooltipPlacement:t.vertical?u.value==="rtl"?"left":"right":"top"}),h=function(){var c;(c=C.value)===null||c===void 0||c.focus()},p=function(){var c;(c=C.value)===null||c===void 0||c.blur()},S=function(c){r("update:value",c),r("change",c),y.onFieldChange()},x=function(c){r("blur",c)};i({focus:h,blur:p});var F=function(c){var T=c.tooltipPrefixCls,$=c.info,B=$.value,L=$.dragging,H=$.index,_=z($,Ze),O=t.tipFormatter,N=t.tooltipVisible,X=t.getTooltipPopupContainer,ke=O?M.value[H]||L:!1,Ce=N||N===void 0&&ke;return P(Je,{prefixCls:T,title:O?O(B):"",visible:Ce,placement:g.value,transitionName:"".concat(d.value,"-zoom-down"),key:H,overlayClassName:"".concat(l.value,"-tooltip"),getPopupContainer:X||v.value},{default:function(){return[P(me,f(f({},_),{},{value:B,onMouseenter:function(){return w(H,!0)},onMouseleave:function(){return w(H,!1)}}),null)]}})};return function(){var V=t.tooltipPrefixCls,c=t.range,T=t.id,$=T===void 0?y.id.value:T,B=z(t,qe),L=m.getPrefixCls("tooltip",V),H=A(e.class,b({},"".concat(l.value,"-rtl"),u.value==="rtl"));u.value==="rtl"&&!B.vertical&&(B.reverse=!B.reverse);var _;return se(c)==="object"&&(_=c.draggableTrack),c?P(Ye,f(f({},B),{},{step:B.step,draggableTrack:_,class:H,ref:C,handle:function(N){return F({tooltipPrefixCls:L,prefixCls:l.value,info:N})},prefixCls:l.value,onChange:S,onBlur:x}),{mark:n.mark}):P(Xe,f(f({},B),{},{id:$,step:B.step,class:H,ref:C,handle:function(N){return F({tooltipPrefixCls:L,prefixCls:l.value,info:N})},prefixCls:l.value,onChange:S,onBlur:x}),{mark:n.mark})}}});const at=He(tt);const nt={class:"num-input"},lt=j({__name:"numInput",props:Le({min:{},max:{},step:{}},{modelValue:{}}),emits:["update:modelValue"],setup(o){const t=o,a=_e(o,"modelValue");return(e,n)=>{const r=Re,i=at;return Ee(),De("div",nt,[P(r,Q({value:a.value,"onUpdate:value":n[0]||(n[0]=s=>a.value=s)},t),null,16,["value"]),P(i,Q({value:a.value,"onUpdate:value":n[1]||(n[1]=s=>a.value=s)},t,{class:"slide"}),null,16,["value"])])}}});export{lt as _}; +import{h as b,a as f,c as P,an as A,w as ie,b as se,b0 as Ve,dZ as oe,d as j,P as k,r as U,o as Me,d_ as K,bk as le,G as ue,dy as E,i as D,d$ as J,bC as de,_ as z,cQ as Te,e0 as Y,e1 as Be,e2 as Pe,m as we,e3 as Fe,aN as $e,e4 as Z,cw as He,u as Oe,j as Ne,e5 as Le,e6 as _e,U as Ee,V as De,c7 as q}from"./index-157194fb.js";/* empty css */import{_ as Re}from"./index-8e3285c7.js";var ce=function(t,a){var e,n,r=a.attrs,i=r.included,s=r.vertical,l=r.style,d=r.class,u=r.length,v=r.offset,m=r.reverse;u<0&&(m=!m,u=Math.abs(u),v=100-v);var y=s?(e={},b(e,m?"top":"bottom","".concat(v,"%")),b(e,m?"bottom":"top","auto"),b(e,"height","".concat(u,"%")),e):(n={},b(n,m?"right":"left","".concat(v,"%")),b(n,m?"left":"right","auto"),b(n,"width","".concat(u,"%")),n),C=f(f({},l),y);return i?P("div",{class:d,style:C},null):null};ce.inheritAttrs=!1;const ve=ce;var Ae=function(t,a,e,n,r,i){ie(e?n>0:!0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");var s=Object.keys(a).map(parseFloat).sort(function(d,u){return d-u});if(e&&n)for(var l=r;l<=i;l+=n)s.indexOf(l)===-1&&s.push(l);return s},he=function(t,a){var e=a.attrs,n=e.prefixCls,r=e.vertical,i=e.reverse,s=e.marks,l=e.dots,d=e.step,u=e.included,v=e.lowerBound,m=e.upperBound,y=e.max,C=e.min,M=e.dotStyle,w=e.activeDotStyle,g=y-C,h=Ae(r,s,l,d,C,y).map(function(p){var S,x="".concat(Math.abs(p-C)/g*100,"%"),F=!u&&p===m||u&&p<=m&&p>=v,V=r?f(f({},M),{},b({},i?"top":"bottom",x)):f(f({},M),{},b({},i?"right":"left",x));F&&(V=f(f({},V),w));var c=A((S={},b(S,"".concat(n,"-dot"),!0),b(S,"".concat(n,"-dot-active"),F),b(S,"".concat(n,"-dot-reverse"),i),S));return P("span",{class:c,style:V,key:p},null)});return P("div",{class:"".concat(n,"-step")},[h])};he.inheritAttrs=!1;const je=he;var fe=function(t,a){var e=a.attrs,n=a.slots,r=e.class,i=e.vertical,s=e.reverse,l=e.marks,d=e.included,u=e.upperBound,v=e.lowerBound,m=e.max,y=e.min,C=e.onClickLabel,M=Object.keys(l),w=n.mark,g=m-y,h=M.map(parseFloat).sort(function(p,S){return p-S}).map(function(p){var S,x=typeof l[p]=="function"?l[p]():l[p],F=se(x)==="object"&&!Ve(x),V=F?x.label:x;if(!V&&V!==0)return null;w&&(V=w({point:p,label:V}));var c=!d&&p===u||d&&p<=u&&p>=v,T=A((S={},b(S,"".concat(r,"-text"),!0),b(S,"".concat(r,"-text-active"),c),S)),$=b({marginBottom:"-50%"},s?"top":"bottom","".concat((p-y)/g*100,"%")),B=b({transform:"translateX(".concat(s?"50%":"-50%",")"),msTransform:"translateX(".concat(s?"50%":"-50%",")")},s?"right":"left","".concat((p-y)/g*100,"%")),L=i?$:B,H=F?f(f({},L),x.style):L,_=b({},oe?"onTouchstartPassive":"onTouchstart",function(O){return C(O,p)});return P("span",f({class:T,style:H,key:p,onMousedown:function(N){return C(N,p)}},_),[V])});return P("div",{class:r},[h])};fe.inheritAttrs=!1;const Ue=fe,me=j({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:k.oneOfType([k.number,k.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup:function(t,a){var e=a.attrs,n=a.emit,r=a.expose,i=U(!1),s=U(),l=function(){document.activeElement===s.value&&(i.value=!0)},d=function(h){i.value=!1,n("blur",h)},u=function(){i.value=!1},v=function(){var h;(h=s.value)===null||h===void 0||h.focus()},m=function(){var h;(h=s.value)===null||h===void 0||h.blur()},y=function(){i.value=!0,v()},C=function(h){h.preventDefault(),v(),n("mousedown",h)};r({focus:v,blur:m,clickFocus:y,ref:s});var M=null;Me(function(){M=K(document,"mouseup",l)}),le(function(){var g;(g=M)===null||g===void 0||g.remove()});var w=ue(function(){var g,h,p=t.vertical,S=t.offset,x=t.reverse;return p?(g={},b(g,x?"top":"bottom","".concat(S,"%")),b(g,x?"bottom":"top","auto"),b(g,"transform",x?null:"translateY(+50%)"),g):(h={},b(h,x?"right":"left","".concat(S,"%")),b(h,x?"left":"right","auto"),b(h,"transform","translateX(".concat(x?"+":"-","50%)")),h)});return function(){var g=t.prefixCls,h=t.disabled,p=t.min,S=t.max,x=t.value,F=t.tabindex,V=t.ariaLabel,c=t.ariaLabelledBy,T=t.ariaValueTextFormatter,$=t.onMouseenter,B=t.onMouseleave,L=A(e.class,b({},"".concat(g,"-handle-click-focused"),i.value)),H={"aria-valuemin":p,"aria-valuemax":S,"aria-valuenow":x,"aria-disabled":!!h},_=[e.style,w.value],O=F||0;(h||F===null)&&(O=null);var N;T&&(N=T(x));var X=f(f(f({},e),{},{role:"slider",tabindex:O},H),{},{class:L,onBlur:d,onKeydown:u,onMousedown:C,onMouseenter:$,onMouseleave:B,ref:s,style:_});return P("div",f(f({},X),{},{"aria-label":V,"aria-labelledby":c,"aria-valuetext":N}),null)}}});function W(o,t){try{return Object.keys(t).some(function(a){return o.target===t[a].ref})}catch{return!1}}function pe(o,t){var a=t.min,e=t.max;return oe}function ee(o){return o.touches.length>1||o.type.toLowerCase()==="touchend"&&o.touches.length>0}function te(o,t){var a=t.marks,e=t.step,n=t.min,r=t.max,i=Object.keys(a).map(parseFloat);if(e!==null){var s=Math.pow(10,ge(e)),l=Math.floor((r*s-n*s)/(e*s)),d=Math.min((o-n)/e,l),u=Math.round(d)*e+n;i.push(u)}var v=i.map(function(m){return Math.abs(o-m)});return i[v.indexOf(Math.min.apply(Math,D(v)))]}function ge(o){var t=o.toString(),a=0;return t.indexOf(".")>=0&&(a=t.length-t.indexOf(".")-1),a}function ae(o,t){var a=1;return window.visualViewport&&(a=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(o?t.clientY:t.pageX)/a}function ne(o,t){var a=1;return window.visualViewport&&(a=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(o?t.touches[0].clientY:t.touches[0].pageX)/a}function re(o,t){var a=t.getBoundingClientRect();return o?a.top+a.height*.5:window.pageXOffset+a.left+a.width*.5}function Q(o,t){var a=t.max,e=t.min;return o<=e?e:o>=a?a:o}function be(o,t){var a=t.step,e=isFinite(te(o,t))?te(o,t):0;return a===null?e:parseFloat(e.toFixed(ge(a)))}function G(o){o.stopPropagation(),o.preventDefault()}function Ge(o,t,a){var e={increase:function(s,l){return s+l},decrease:function(s,l){return s-l}},n=e[o](Object.keys(a.marks).indexOf(JSON.stringify(t)),1),r=Object.keys(a.marks)[n];return a.step?e[o](t,a.step):Object.keys(a.marks).length&&a.marks[r]?a.marks[r]:t}function ye(o,t,a){var e="increase",n="decrease",r=e;switch(o.keyCode){case E.UP:r=t&&a?n:e;break;case E.RIGHT:r=!t&&a?n:e;break;case E.DOWN:r=t&&a?e:n;break;case E.LEFT:r=!t&&a?e:n;break;case E.END:return function(i,s){return s.max};case E.HOME:return function(i,s){return s.min};case E.PAGE_UP:return function(i,s){return i+s.step*2};case E.PAGE_DOWN:return function(i,s){return i-s.step*2};default:return}return function(i,s){return Ge(r,i,s)}}var Ie=["index","directives","className","style"];function R(){}function xe(o){var t={id:String,min:Number,max:Number,step:Number,marks:k.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:k.object,maximumTrackStyle:k.object,handleStyle:k.oneOfType([k.object,k.arrayOf(k.object)]),trackStyle:k.oneOfType([k.object,k.arrayOf(k.object)]),railStyle:k.object,dotStyle:k.object,activeDotStyle:k.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return j({compatConfig:{MODE:3},name:"CreateSlider",mixins:[J,o],inheritAttrs:!1,slots:["mark"],props:de(t,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data:function(){var e=this.step,n=this.max,r=this.min,i=isFinite(n-r)?(n-r)%e===0:!0;return ie(e&&Math.floor(e)===e?i:!0,"Slider[max] - Slider[min] (".concat(n-r,") should be a multiple of Slider[step] (").concat(e,")")),this.handlesRefs={},{}},mounted:function(){var e=this;this.$nextTick(function(){e.document=e.sliderRef&&e.sliderRef.ownerDocument;var n=e.autofocus,r=e.disabled;n&&!r&&e.focus()})},beforeUnmount:function(){var e=this;this.$nextTick(function(){e.removeDocumentEvents()})},methods:{defaultHandle:function(e){var n=e.index;e.directives;var r=e.className,i=e.style,s=z(e,Ie);if(delete s.dragging,s.value===null)return null;var l=f(f({},s),{},{class:r,style:i,key:n});return P(me,l,null)},onDown:function(e,n){var r=n,i=this.$props,s=i.draggableTrack,l=i.vertical,d=this.$data.bounds,u=s&&this.positionGetValue?this.positionGetValue(r)||[]:[],v=W(e,this.handlesRefs);if(this.dragTrack=s&&d.length>=2&&!v&&!u.map(function(y,C){var M=C?!0:y>=d[C];return C===u.length-1?y<=d[C]:M}).some(function(y){return!y}),this.dragTrack)this.dragOffset=r,this.startBounds=D(d);else{if(!v)this.dragOffset=0;else{var m=re(l,e.target);this.dragOffset=r-m,r=m}this.onStart(r)}},onMouseDown:function(e){if(e.button===0){this.removeDocumentEvents();var n=this.$props.vertical,r=ae(n,e);this.onDown(e,r),this.addDocumentMouseEvents()}},onTouchStart:function(e){if(!ee(e)){var n=this.vertical,r=ne(n,e);this.onDown(e,r),this.addDocumentTouchEvents(),G(e)}},onFocus:function(e){var n=this.vertical;if(W(e,this.handlesRefs)&&!this.dragTrack){var r=re(n,e.target);this.dragOffset=0,this.onStart(r),G(e),this.$emit("focus",e)}},onBlur:function(e){this.dragTrack||this.onEnd(),this.$emit("blur",e)},onMouseUp:function(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove:function(e){if(!this.sliderRef){this.onEnd();return}var n=ae(this.vertical,e);this.onMove(e,n-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove:function(e){if(ee(e)||!this.sliderRef){this.onEnd();return}var n=ne(this.vertical,e);this.onMove(e,n-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown:function(e){this.sliderRef&&W(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel:function(e,n){var r=this;e.stopPropagation(),this.onChange({sValue:n}),this.setState({sValue:n},function(){return r.onEnd(!0)})},getSliderStart:function(){var e=this.sliderRef,n=this.vertical,r=this.reverse,i=e.getBoundingClientRect();return n?r?i.bottom:i.top:window.pageXOffset+(r?i.right:i.left)},getSliderLength:function(){var e=this.sliderRef;if(!e)return 0;var n=e.getBoundingClientRect();return this.vertical?n.height:n.width},addDocumentTouchEvents:function(){this.onTouchMoveListener=K(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=K(this.document,"touchend",this.onEnd)},addDocumentMouseEvents:function(){this.onMouseMoveListener=K(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=K(this.document,"mouseup",this.onEnd)},removeDocumentEvents:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus:function(){var e;this.$props.disabled||(e=this.handlesRefs[0])===null||e===void 0||e.focus()},blur:function(){var e=this;this.$props.disabled||Object.keys(this.handlesRefs).forEach(function(n){var r,i;(r=e.handlesRefs[n])===null||r===void 0||(i=r.blur)===null||i===void 0||i.call(r)})},calcValue:function(e){var n=this.vertical,r=this.min,i=this.max,s=Math.abs(Math.max(e,0)/this.getSliderLength()),l=n?(1-s)*(i-r)+r:s*(i-r)+r;return l},calcValueByPos:function(e){var n=this.reverse?-1:1,r=n*(e-this.getSliderStart()),i=this.trimAlignValue(this.calcValue(r));return i},calcOffset:function(e){var n=this.min,r=this.max,i=(e-n)/(r-n);return Math.max(0,i*100)},saveSlider:function(e){this.sliderRef=e},saveHandle:function(e,n){this.handlesRefs[e]=n}},render:function(){var e,n=this.prefixCls,r=this.marks,i=this.dots,s=this.step,l=this.included,d=this.disabled,u=this.vertical,v=this.reverse,m=this.min,y=this.max,C=this.maximumTrackStyle,M=this.railStyle,w=this.dotStyle,g=this.activeDotStyle,h=this.id,p=this.$attrs,S=p.class,x=p.style,F=this.renderSlider(),V=F.tracks,c=F.handles,T=A(n,S,(e={},b(e,"".concat(n,"-with-marks"),Object.keys(r).length),b(e,"".concat(n,"-disabled"),d),b(e,"".concat(n,"-vertical"),u),e)),$={vertical:u,marks:r,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:m,reverse:v,class:"".concat(n,"-mark"),onClickLabel:d?R:this.onClickMarkLabel},B=b({},oe?"onTouchstartPassive":"onTouchstart",d?R:this.onTouchStart);return P("div",f(f({id:h,ref:this.saveSlider,tabindex:"-1",class:T},B),{},{onMousedown:d?R:this.onMouseDown,onMouseup:d?R:this.onMouseUp,onKeydown:d?R:this.onKeyDown,onFocus:d?R:this.onFocus,onBlur:d?R:this.onBlur,style:x}),[P("div",{class:"".concat(n,"-rail"),style:f(f({},C),M)},null),V,P(je,{prefixCls:n,vertical:u,reverse:v,marks:r,dots:i,step:s,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:m,dotStyle:w,activeDotStyle:g},null),c,P(Ue,$,{mark:this.$slots.mark}),Te(this)])}})}var Ke=j({compatConfig:{MODE:3},name:"Slider",mixins:[J],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:k.oneOfType([k.number,k.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data:function(){var t=this.defaultValue!==void 0?this.defaultValue:this.min,a=this.value!==void 0?this.value:t;return{sValue:this.trimAlignValue(a),dragging:!1}},watch:{value:{handler:function(t){this.setChangeValue(t)},deep:!0},min:function(){var t=this.sValue;this.setChangeValue(t)},max:function(){var t=this.sValue;this.setChangeValue(t)}},methods:{setChangeValue:function(t){var a=t!==void 0?t:this.sValue,e=this.trimAlignValue(a,this.$props);e!==this.sValue&&(this.setState({sValue:e}),pe(a,this.$props)&&this.$emit("change",e))},onChange:function(t){var a=!Y(this,"value"),e=t.sValue>this.max?f(f({},t),{},{sValue:this.max}):t;a&&this.setState(e);var n=e.sValue;this.$emit("change",n)},onStart:function(t){this.setState({dragging:!0});var a=this.sValue;this.$emit("beforeChange",a);var e=this.calcValueByPos(t);this.startValue=e,this.startPosition=t,e!==a&&(this.prevMovedHandleIndex=0,this.onChange({sValue:e}))},onEnd:function(t){var a=this.dragging;this.removeDocumentEvents(),(a||t)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove:function(t,a){G(t);var e=this.sValue,n=this.calcValueByPos(a);n!==e&&this.onChange({sValue:n})},onKeyboard:function(t){var a=this.$props,e=a.reverse,n=a.vertical,r=ye(t,n,e);if(r){G(t);var i=this.sValue,s=r(i,this.$props),l=this.trimAlignValue(s);if(l===i)return;this.onChange({sValue:l}),this.$emit("afterChange",l),this.onEnd()}},getLowerBound:function(){var t=this.$props.startPoint||this.$props.min;return this.$data.sValue>t?t:this.$data.sValue},getUpperBound:function(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(t===null)return null;var e=f(f({},this.$props),a),n=Q(t,e);return be(n,e)},getTrack:function(t){var a=t.prefixCls,e=t.reverse,n=t.vertical,r=t.included,i=t.minimumTrackStyle,s=t.mergedTrackStyle,l=t.length,d=t.offset;return P(ve,{class:"".concat(a,"-track"),vertical:n,included:r,offset:d,reverse:e,length:l,style:f(f({},i),s)},null)},renderSlider:function(){var t=this,a=this.prefixCls,e=this.vertical,n=this.included,r=this.disabled,i=this.minimumTrackStyle,s=this.trackStyle,l=this.handleStyle,d=this.tabindex,u=this.ariaLabelForHandle,v=this.ariaLabelledByForHandle,m=this.ariaValueTextFormatterForHandle,y=this.min,C=this.max,M=this.startPoint,w=this.reverse,g=this.handle,h=this.defaultHandle,p=g||h,S=this.sValue,x=this.dragging,F=this.calcOffset(S),V=p({class:"".concat(a,"-handle"),prefixCls:a,vertical:e,offset:F,value:S,dragging:x,disabled:r,min:y,max:C,reverse:w,index:0,tabindex:d,ariaLabel:u,ariaLabelledBy:v,ariaValueTextFormatter:m,style:l[0]||l,ref:function(B){return t.saveHandle(0,B)},onFocus:this.onFocus,onBlur:this.onBlur}),c=M!==void 0?this.calcOffset(M):0,T=s[0]||s;return{tracks:this.getTrack({prefixCls:a,reverse:w,vertical:e,included:n,offset:c,minimumTrackStyle:i,mergedTrackStyle:T,length:F-c}),handles:V}}}});const Xe=xe(Ke);var I=function(t){var a=t.value,e=t.handle,n=t.bounds,r=t.props,i=r.allowCross,s=r.pushable,l=Number(s),d=Q(a,r),u=d;return!i&&e!=null&&n!==void 0&&(e>0&&d<=n[e-1]+l&&(u=n[e-1]+l),e=n[e+1]-l&&(u=n[e+1]-l)),be(u,r)},We={defaultValue:k.arrayOf(k.number),value:k.arrayOf(k.number),count:Number,pushable:Be(k.oneOfType([k.looseBool,k.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:k.arrayOf(k.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},ze=j({compatConfig:{MODE:3},name:"Range",mixins:[J],inheritAttrs:!1,props:de(We,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data:function(){var t=this,a=this.count,e=this.min,n=this.max,r=Array.apply(void 0,D(Array(a+1))).map(function(){return e}),i=Y(this,"defaultValue")?this.defaultValue:r,s=this.value;s===void 0&&(s=i);var l=s.map(function(u,v){return I({value:u,handle:v,props:t.$props})}),d=l[0]===n?0:l.length-1;return{sHandle:null,recent:d,bounds:l}},watch:{value:{handler:function(t){var a=this.bounds;this.setChangeValue(t||a)},deep:!0},min:function(){var t=this.value;this.setChangeValue(t||this.bounds)},max:function(){var t=this.value;this.setChangeValue(t||this.bounds)}},methods:{setChangeValue:function(t){var a=this,e=this.bounds,n=t.map(function(i,s){return I({value:i,handle:s,bounds:e,props:a.$props})});if(e.length===n.length){if(n.every(function(i,s){return i===e[s]}))return null}else n=t.map(function(i,s){return I({value:i,handle:s,props:a.$props})});if(this.setState({bounds:n}),t.some(function(i){return pe(i,a.$props)})){var r=t.map(function(i){return Q(i,a.$props)});this.$emit("change",r)}},onChange:function(t){var a=!Y(this,"value");if(a)this.setState(t);else{var e={};["sHandle","recent"].forEach(function(i){t[i]!==void 0&&(e[i]=t[i])}),Object.keys(e).length&&this.setState(e)}var n=f(f({},this.$data),t),r=n.bounds;this.$emit("change",r)},positionGetValue:function(t){var a=this.getValue(),e=this.calcValueByPos(t),n=this.getClosestBound(e),r=this.getBoundNeedMoving(e,n),i=a[r];if(e===i)return null;var s=D(a);return s[r]=e,s},onStart:function(t){var a=this.bounds;this.$emit("beforeChange",a);var e=this.calcValueByPos(t);this.startValue=e,this.startPosition=t;var n=this.getClosestBound(e);this.prevMovedHandleIndex=this.getBoundNeedMoving(e,n),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});var r=a[this.prevMovedHandleIndex];if(e!==r){var i=D(a);i[this.prevMovedHandleIndex]=e,this.onChange({bounds:i})}},onEnd:function(t){var a=this.sHandle;this.removeDocumentEvents(),a||(this.dragTrack=!1),(a!==null||t)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove:function(t,a,e,n){G(t);var r=this.$data,i=this.$props,s=i.max||100,l=i.min||0;if(e){var d=i.vertical?-a:a;d=i.reverse?-d:d;var u=s-Math.max.apply(Math,D(n)),v=l-Math.min.apply(Math,D(n)),m=Math.min(Math.max(d/(this.getSliderLength()/100),v),u),y=n.map(function(h){return Math.floor(Math.max(Math.min(h+m,s),l))});r.bounds.map(function(h,p){return h===y[p]}).some(function(h){return!h})&&this.onChange({bounds:y});return}var C=this.bounds,M=this.sHandle,w=this.calcValueByPos(a),g=C[M];w!==g&&this.moveTo(w)},onKeyboard:function(t){var a=this.$props,e=a.reverse,n=a.vertical,r=ye(t,n,e);if(r){G(t);var i=this.bounds,s=this.sHandle,l=i[s===null?this.recent:s],d=r(l,this.$props),u=I({value:d,handle:s,bounds:i,props:this.$props});if(u===l)return;var v=!0;this.moveTo(u,v)}},getClosestBound:function(t){for(var a=this.bounds,e=0,n=1;n=a[n]&&(e=n);return Math.abs(a[e+1]-t)=n.length||i<0)return!1;var s=a+e,l=n[i],d=this.pushable,u=Number(d),v=e*(t[s]-l);return this.pushHandle(t,s,e,u-v)?(t[a]=l,!0):!1},trimAlignValue:function(t){var a=this.sHandle,e=this.bounds;return I({value:t,handle:a,bounds:e,props:this.$props})},ensureValueNotConflict:function(t,a,e){var n=e.allowCross,r=e.pushable,i=this.$data||{},s=i.bounds;if(t=t===void 0?i.sHandle:t,r=Number(r),!n&&t!=null&&s!==void 0){if(t>0&&a<=s[t-1]+r)return s[t-1]+r;if(t=s[t+1]-r)return s[t+1]-r}return a},getTrack:function(t){var a=t.bounds,e=t.prefixCls,n=t.reverse,r=t.vertical,i=t.included,s=t.offsets,l=t.trackStyle;return a.slice(0,-1).map(function(d,u){var v,m=u+1,y=A((v={},b(v,"".concat(e,"-track"),!0),b(v,"".concat(e,"-track-").concat(m),!0),v));return P(ve,{class:y,vertical:r,reverse:n,included:i,offset:s[m-1],length:s[m]-s[m-1],style:l[u],key:m},null)})},renderSlider:function(){var t=this,a=this.sHandle,e=this.bounds,n=this.prefixCls,r=this.vertical,i=this.included,s=this.disabled,l=this.min,d=this.max,u=this.reverse,v=this.handle,m=this.defaultHandle,y=this.trackStyle,C=this.handleStyle,M=this.tabindex,w=this.ariaLabelGroupForHandles,g=this.ariaLabelledByGroupForHandles,h=this.ariaValueTextFormatterGroupForHandles,p=v||m,S=e.map(function(V){return t.calcOffset(V)}),x="".concat(n,"-handle"),F=e.map(function(V,c){var T,$=M[c]||0;(s||M[c]===null)&&($=null);var B=a===c;return p({class:A((T={},b(T,x,!0),b(T,"".concat(x,"-").concat(c+1),!0),b(T,"".concat(x,"-dragging"),B),T)),prefixCls:n,vertical:r,dragging:B,offset:S[c],value:V,index:c,tabindex:$,min:l,max:d,reverse:u,disabled:s,style:C[c],ref:function(H){return t.saveHandle(c,H)},onFocus:t.onFocus,onBlur:t.onBlur,ariaLabel:w[c],ariaLabelledBy:g[c],ariaValueTextFormatter:h[c]})});return{tracks:this.getTrack({bounds:e,prefixCls:n,reverse:u,vertical:r,included:i,offsets:S,trackStyle:y}),handles:F}}}});const Ye=xe(ze),Je=j({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:Pe(),setup:function(t,a){var e=a.attrs,n=a.slots,r=U(null),i=U(null);function s(){Z.cancel(i.value),i.value=null}function l(){i.value=Z(function(){var u;(u=r.value)===null||u===void 0||u.forcePopupAlign(),i.value=null})}var d=function(){s(),t.visible&&l()};return we([function(){return t.visible},function(){return t.title}],function(){d()},{flush:"post",immediate:!0}),Fe(function(){d()}),le(function(){s()}),function(){return P($e,f(f({ref:r},t),e),n)}}});var Qe=["value","dragging","index"],Ze=["tooltipPrefixCls","range","id"],qe=function(t){return typeof t=="number"?t.toString():""},et=function(){return{id:String,prefixCls:String,tooltipPrefixCls:String,range:{type:[Boolean,Object],default:void 0},reverse:{type:Boolean,default:void 0},min:Number,max:Number,step:{type:[Number,Object]},marks:{type:Object},dots:{type:Boolean,default:void 0},value:{type:[Number,Array]},defaultValue:{type:[Number,Array]},included:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},tipFormatter:{type:[Function,Object],default:function(){return qe}},tooltipVisible:{type:Boolean,default:void 0},tooltipPlacement:{type:String},getTooltipPopupContainer:{type:Function},autofocus:{type:Boolean,default:void 0},handleStyle:{type:[Object,Array]},trackStyle:{type:[Object,Array]},onChange:{type:Function},onAfterChange:{type:Function},onFocus:{type:Function},onBlur:{type:Function},"onUpdate:value":{type:Function}}},tt=j({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:et(),slots:["mark"],setup:function(t,a){var e=a.attrs,n=a.slots,r=a.emit,i=a.expose,s=Oe("slider",t),l=s.prefixCls,d=s.rootPrefixCls,u=s.direction,v=s.getPopupContainer,m=s.configProvider,y=Ne(),C=U(),M=U({}),w=function(c,T){M.value[c]=T},g=ue(function(){return t.tooltipPlacement?t.tooltipPlacement:t.vertical?u.value==="rtl"?"left":"right":"top"}),h=function(){var c;(c=C.value)===null||c===void 0||c.focus()},p=function(){var c;(c=C.value)===null||c===void 0||c.blur()},S=function(c){r("update:value",c),r("change",c),y.onFieldChange()},x=function(c){r("blur",c)};i({focus:h,blur:p});var F=function(c){var T=c.tooltipPrefixCls,$=c.info,B=$.value,L=$.dragging,H=$.index,_=z($,Qe),O=t.tipFormatter,N=t.tooltipVisible,X=t.getTooltipPopupContainer,ke=O?M.value[H]||L:!1,Ce=N||N===void 0&&ke;return P(Je,{prefixCls:T,title:O?O(B):"",visible:Ce,placement:g.value,transitionName:"".concat(d.value,"-zoom-down"),key:H,overlayClassName:"".concat(l.value,"-tooltip"),getPopupContainer:X||v.value},{default:function(){return[P(me,f(f({},_),{},{value:B,onMouseenter:function(){return w(H,!0)},onMouseleave:function(){return w(H,!1)}}),null)]}})};return function(){var V=t.tooltipPrefixCls,c=t.range,T=t.id,$=T===void 0?y.id.value:T,B=z(t,Ze),L=m.getPrefixCls("tooltip",V),H=A(e.class,b({},"".concat(l.value,"-rtl"),u.value==="rtl"));u.value==="rtl"&&!B.vertical&&(B.reverse=!B.reverse);var _;return se(c)==="object"&&(_=c.draggableTrack),c?P(Ye,f(f({},B),{},{step:B.step,draggableTrack:_,class:H,ref:C,handle:function(N){return F({tooltipPrefixCls:L,prefixCls:l.value,info:N})},prefixCls:l.value,onChange:S,onBlur:x}),{mark:n.mark}):P(Xe,f(f({},B),{},{id:$,step:B.step,class:H,ref:C,handle:function(N){return F({tooltipPrefixCls:L,prefixCls:l.value,info:N})},prefixCls:l.value,onChange:S,onBlur:x}),{mark:n.mark})}}});const at=He(tt);const nt={class:"num-input"},lt=j({__name:"numInput",props:Le({min:{},max:{},step:{}},{modelValue:{}}),emits:["update:modelValue"],setup(o){const t=o,a=_e(o,"modelValue");return(e,n)=>{const r=Re,i=at;return Ee(),De("div",nt,[P(r,q({value:a.value,"onUpdate:value":n[0]||(n[0]=s=>a.value=s)},t),null,16,["value"]),P(i,q({value:a.value,"onUpdate:value":n[1]||(n[1]=s=>a.value=s)},t,{class:"slide"}),null,16,["value"])])}}});export{lt as _}; diff --git a/vue/dist/assets/randomImage-12e0ef07.js b/vue/dist/assets/randomImage-a0fc1235.js similarity index 68% rename from vue/dist/assets/randomImage-12e0ef07.js rename to vue/dist/assets/randomImage-a0fc1235.js index 00c3db6..b98fad3 100644 --- a/vue/dist/assets/randomImage-12e0ef07.js +++ b/vue/dist/assets/randomImage-a0fc1235.js @@ -1 +1 @@ -import{d as Z,a1 as ee,r as F,J as te,K as le,o as ie,U as v,V as N,c as i,a4 as e,W as g,a3 as n,X as k,Y as u,a5 as R,L as se,a6 as ae,af as oe,ag as $,$ as A,a2 as ne,z as w,B as re,cX as ce,cY as de,ak as ue,ai as me,T as fe,a0 as pe}from"./index-0205daf8.js";import{u as ve,c as ge,a as ke,F as we,d as he}from"./FileItem-cc53e03a.js";import{a as Ce,b as Se,c as _e,M as Ie,o as z,L as ye,R as xe,f as be}from"./MultiSelectKeep-74181f4c.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";/* empty css */import"./index-6a8edab1.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./index-e9cc5bd5.js";import"./shortcut-eca2d427.js";import"./Checkbox-951f37ba.js";import"./index-728b29ca.js";const Ve={class:"refresh-button"},Me={class:"hint"},Te={key:0,class:"preview-switch"},Fe=Z({__name:"randomImage",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(Ne){const B=ee(),m=F(!1),l=F([]),r=l,h=te(`${le}randomImageSettingNotificationShown`,!1),P=()=>{h.value||(w.info({content:re("randomImageSettingNotification"),duration:6,key:"randomImageSetting"}),h.value=!0)},f=async()=>{try{m.value=!0;const s=await ce();s.length===0&&w.warn("No data, please generate index in image search page first"),l.value=s}finally{m.value=!1,_()}},C=()=>{if(l.value.length===0){w.warn("没有图片可以浏览");return}z(l.value,o.value||0)};ie(()=>{f(),setTimeout(()=>{P()},2e3)});const{stackViewEl:K,multiSelectedIdxs:p,stack:L,scroller:U}=ve({images:l}).toRefs(),{onClearAllSelected:D,onSelectAll:E,onReverseSelect:G}=ge();Ce();const{itemSize:S,gridItems:O,cellWidth:W,onScroll:_}=ke(),{showGenInfo:c,imageGenInfo:I,q:X,onContextMenuClick:Y,onFileItemClick:q}=Se({openNext:de}),{previewIdx:o,previewing:y,onPreviewVisibleChange:H,previewImgMove:x,canPreview:b}=_e(),V=async(s,t,d)=>{L.value=[{curr:"",files:l.value}],await Y(s,t,d)};return(s,t)=>{var M;const d=ue,J=me,Q=fe;return v(),N("div",{class:"container",ref_key:"stackViewEl",ref:K},[i(Ie,{show:!!e(p).length||e(B).keepMultiSelect,onClearAllSelected:e(D),onSelectAll:e(E),onReverseSelect:e(G)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),g("div",Ve,[i(d,{onClick:f,onTouchstart:R(f,["prevent"]),type:"primary",loading:m.value,shape:"round"},{default:n(()=>[k(u(s.$t("shuffle")),1)]),_:1},8,["onTouchstart","loading"]),i(d,{onClick:C,onTouchstart:R(C,["prevent"]),type:"default",disabled:!((M=l.value)!=null&&M.length),shape:"round"},{default:n(()=>[k(u(s.$t("tiktokView")),1)]),_:1},8,["onTouchstart","disabled"])]),i(Q,{visible:e(c),"onUpdate:visible":t[1]||(t[1]=a=>ae(c)?c.value=a:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=a=>c.value=!1)},{cancelText:n(()=>[]),default:n(()=>[i(J,{active:"",loading:!e(X).isIdle},{default:n(()=>[g("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=a=>e(se)(e(I)))},[g("div",Me,u(s.$t("doubleClickToCopy")),1),k(" "+u(e(I)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),i(e(he),{ref_key:"scroller",ref:U,class:"file-list",items:l.value.slice(),"item-size":e(S).first,"key-field":"fullpath","item-secondary-size":e(S).second,gridItems:e(O),onScroll:e(_)},{default:n(({item:a,index:T})=>[i(we,{idx:T,file:a,"cell-width":e(W),"full-screen-preview-image-url":e(r)[e(o)]?e(oe)(e(r)[e(o)]):"",onContextMenuClick:V,onPreviewVisibleChange:e(H),"is-selected-mutil-files":e(p).length>1,selected:e(p).includes(T),onFileItemClick:e(q),onTiktokView:(Re,j)=>e(z)(l.value,j)},null,8,["idx","file","cell-width","full-screen-preview-image-url","onPreviewVisibleChange","is-selected-mutil-files","selected","onFileItemClick","onTiktokView"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"]),e(y)?(v(),N("div",Te,[i(e(ye),{onClick:t[3]||(t[3]=a=>e(x)("prev")),class:$({disable:!e(b)("prev")})},null,8,["class"]),i(e(xe),{onClick:t[4]||(t[4]=a=>e(x)("next")),class:$({disable:!e(b)("next")})},null,8,["class"])])):A("",!0),e(y)&&e(r)&&e(r)[e(o)]?(v(),ne(be,{key:1,file:e(r)[e(o)],idx:e(o),onContextMenuClick:V},null,8,["file","idx"])):A("",!0)],512)}}});const We=pe(Fe,[["__scopeId","data-v-e1531e89"]]);export{We as default}; +import{d as j,a1 as ee,r as F,J as te,K as le,o as ie,U as v,V as N,c as i,a4 as e,W as g,a3 as n,X as k,Y as u,a5 as R,L as se,a6 as ae,af as oe,ag as $,$ as A,a2 as ne,z as w,B as re,cY as ce,cZ as de,ak as ue,ai as me,T as fe,a0 as pe}from"./index-157194fb.js";import{u as ve,c as ge,a as ke,F as we,d as he}from"./FileItem-6ddd7179.js";import{a as Ce,b as Se,c as _e,M as Ie,o as z,L as ye,R as xe,f as be}from"./MultiSelectKeep-f7eadb70.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js";/* empty css */import"./index-8e3285c7.js";import"./_isIterateeCall-e2252db1.js";import"./index-8929347d.js";import"./index-11d9431b.js";import"./shortcut-f1e6388a.js";import"./Checkbox-431074e2.js";import"./index-89286149.js";const Ve={class:"refresh-button"},Me={class:"hint"},Te={key:0,class:"preview-switch"},Fe=j({__name:"randomImage",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(Ne){const B=ee(),m=F(!1),l=F([]),r=l,h=te(`${le}randomImageSettingNotificationShown`,!1),P=()=>{h.value||(w.info({content:re("randomImageSettingNotification"),duration:6,key:"randomImageSetting"}),h.value=!0)},f=async()=>{try{m.value=!0;const s=await ce();s.length===0&&w.warn("No data, please generate index in image search page first"),l.value=s}finally{m.value=!1,_()}},C=()=>{if(l.value.length===0){w.warn("没有图片可以浏览");return}z(l.value,o.value||0)};ie(()=>{f(),setTimeout(()=>{P()},2e3)});const{stackViewEl:K,multiSelectedIdxs:p,stack:L,scroller:U}=ve({images:l}).toRefs(),{onClearAllSelected:D,onSelectAll:E,onReverseSelect:G}=ge();Ce();const{itemSize:S,gridItems:O,cellWidth:W,onScroll:_}=ke(),{showGenInfo:c,imageGenInfo:I,q:Y,onContextMenuClick:q,onFileItemClick:H}=Se({openNext:de}),{previewIdx:o,previewing:y,onPreviewVisibleChange:J,previewImgMove:x,canPreview:b}=_e(),V=async(s,t,d)=>{L.value=[{curr:"",files:l.value}],await q(s,t,d)};return(s,t)=>{var M;const d=ue,Q=me,X=fe;return v(),N("div",{class:"container",ref_key:"stackViewEl",ref:K},[i(Ie,{show:!!e(p).length||e(B).keepMultiSelect,onClearAllSelected:e(D),onSelectAll:e(E),onReverseSelect:e(G)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),g("div",Ve,[i(d,{onClick:f,onTouchstart:R(f,["prevent"]),type:"primary",loading:m.value,shape:"round"},{default:n(()=>[k(u(s.$t("shuffle")),1)]),_:1},8,["onTouchstart","loading"]),i(d,{onClick:C,onTouchstart:R(C,["prevent"]),type:"default",disabled:!((M=l.value)!=null&&M.length),shape:"round"},{default:n(()=>[k(u(s.$t("tiktokView")),1)]),_:1},8,["onTouchstart","disabled"])]),i(X,{visible:e(c),"onUpdate:visible":t[1]||(t[1]=a=>ae(c)?c.value=a:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=a=>c.value=!1)},{cancelText:n(()=>[]),default:n(()=>[i(Q,{active:"",loading:!e(Y).isIdle},{default:n(()=>[g("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=a=>e(se)(e(I)))},[g("div",Me,u(s.$t("doubleClickToCopy")),1),k(" "+u(e(I)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),i(e(he),{ref_key:"scroller",ref:U,class:"file-list",items:l.value.slice(),"item-size":e(S).first,"key-field":"fullpath","item-secondary-size":e(S).second,gridItems:e(O),onScroll:e(_)},{default:n(({item:a,index:T})=>[i(we,{idx:T,file:a,"cell-width":e(W),"full-screen-preview-image-url":e(r)[e(o)]?e(oe)(e(r)[e(o)]):"",onContextMenuClick:V,onPreviewVisibleChange:e(J),"is-selected-mutil-files":e(p).length>1,selected:e(p).includes(T),onFileItemClick:e(H),onTiktokView:(Re,Z)=>e(z)(l.value,Z)},null,8,["idx","file","cell-width","full-screen-preview-image-url","onPreviewVisibleChange","is-selected-mutil-files","selected","onFileItemClick","onTiktokView"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"]),e(y)?(v(),N("div",Te,[i(e(ye),{onClick:t[3]||(t[3]=a=>e(x)("prev")),class:$({disable:!e(b)("prev")})},null,8,["class"]),i(e(xe),{onClick:t[4]||(t[4]=a=>e(x)("next")),class:$({disable:!e(b)("next")})},null,8,["class"])])):A("",!0),e(y)&&e(r)&&e(r)[e(o)]?(v(),ne(be,{key:1,file:e(r)[e(o)],idx:e(o),onContextMenuClick:V},null,8,["file","idx"])):A("",!0)],512)}}});const We=pe(Fe,[["__scopeId","data-v-e1531e89"]]);export{We as default}; diff --git a/vue/dist/assets/searchHistory-c9de01d4.js b/vue/dist/assets/searchHistory-5c5a132b.js similarity index 95% rename from vue/dist/assets/searchHistory-c9de01d4.js rename to vue/dist/assets/searchHistory-5c5a132b.js index 0f38356..d8f4500 100644 --- a/vue/dist/assets/searchHistory-c9de01d4.js +++ b/vue/dist/assets/searchHistory-5c5a132b.js @@ -1 +1 @@ -import{R as y,C as v}from"./index-b9ffc995.js";import{cw as f,c as d,A as w,d as P,U as a,V as c,W as r,Z as S,a8 as V,aG as O,a3 as R,X as u,Y as p,a4 as b,ak as $,a0 as x,R as H,J as _,K as m}from"./index-0205daf8.js";const A=f(y),E=f(v);var L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z"}}]},name:"pushpin",theme:"filled"};const C=L;function h(t){for(var e=1;e{const n=$;return a(),c("div",null,[r("ul",F,[(a(!0),c(S,null,V(e.records.getRecords(),i=>(a(),c("li",{key:i.id,class:"record"},[r("div",k,[O(e.$slots,"default",{record:i},void 0,!0)]),r("div",I,[d(n,{onClick:g=>e.$emit("reuseRecord",i),type:"primary"},{default:R(()=>[u(p(e.$t("restore")),1)]),_:2},1032,["onClick"]),r("div",{class:"pin",onClick:g=>e.records.switchPin(i)},[d(b(z)),u(" "+p(e.records.isPinned(i)?e.$t("unpin"):e.$t("pin")),1)],8,B)])]))),128))])])}}});const q=x(J,[["__scopeId","data-v-fff181dd"]]);class o{constructor(e=128,s=[],n=[]){this.maxLength=e,this.records=s,this.pinnedValues=n}isPinned(e){return this.pinnedValues.some(s=>s.id===e.id)}add(e){this.records.length>=this.maxLength&&this.records.pop(),this.records.unshift({...e,id:H()+Date.now(),time:new Date().toLocaleString()})}pin(e){const s=this.records.findIndex(n=>n.id===e.id);s!==-1&&this.records.splice(s,1),this.pinnedValues.push(e)}unpin(e){const s=this.pinnedValues.findIndex(n=>n.id===e.id);s!==-1&&this.pinnedValues.splice(s,1),this.records.unshift(e)}switchPin(e){this.isPinned(e)?this.unpin(e):this.pin(e)}getRecords(){return[...this.pinnedValues,...this.records]}getPinnedValues(){return this.pinnedValues}}const G=_(`${m}fuzzy-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}}),M=_(`${m}tag-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}});export{q as H,E as _,A as a,G as f,M as t}; +import{R as y,C as v}from"./index-b39f3e91.js";import{cw as f,c as d,A as w,d as P,U as a,V as c,W as r,Z as S,a8 as V,aG as O,a3 as R,X as u,Y as p,a4 as b,ak as $,a0 as x,R as H,J as _,K as m}from"./index-157194fb.js";const A=f(y),E=f(v);var L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z"}}]},name:"pushpin",theme:"filled"};const C=L;function h(t){for(var e=1;e{const n=$;return a(),c("div",null,[r("ul",F,[(a(!0),c(S,null,V(e.records.getRecords(),i=>(a(),c("li",{key:i.id,class:"record"},[r("div",k,[O(e.$slots,"default",{record:i},void 0,!0)]),r("div",I,[d(n,{onClick:g=>e.$emit("reuseRecord",i),type:"primary"},{default:R(()=>[u(p(e.$t("restore")),1)]),_:2},1032,["onClick"]),r("div",{class:"pin",onClick:g=>e.records.switchPin(i)},[d(b(z)),u(" "+p(e.records.isPinned(i)?e.$t("unpin"):e.$t("pin")),1)],8,B)])]))),128))])])}}});const q=x(J,[["__scopeId","data-v-fff181dd"]]);class o{constructor(e=128,s=[],n=[]){this.maxLength=e,this.records=s,this.pinnedValues=n}isPinned(e){return this.pinnedValues.some(s=>s.id===e.id)}add(e){this.records.length>=this.maxLength&&this.records.pop(),this.records.unshift({...e,id:H()+Date.now(),time:new Date().toLocaleString()})}pin(e){const s=this.records.findIndex(n=>n.id===e.id);s!==-1&&this.records.splice(s,1),this.pinnedValues.push(e)}unpin(e){const s=this.pinnedValues.findIndex(n=>n.id===e.id);s!==-1&&this.pinnedValues.splice(s,1),this.records.unshift(e)}switchPin(e){this.isPinned(e)?this.unpin(e):this.pin(e)}getRecords(){return[...this.pinnedValues,...this.records]}getPinnedValues(){return this.pinnedValues}}const G=_(`${m}fuzzy-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}}),M=_(`${m}tag-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}});export{q as H,E as _,A as a,G as f,M as t}; diff --git a/vue/dist/assets/shortcut-eca2d427.js b/vue/dist/assets/shortcut-f1e6388a.js similarity index 96% rename from vue/dist/assets/shortcut-eca2d427.js rename to vue/dist/assets/shortcut-f1e6388a.js index ea2fa52..1385361 100644 --- a/vue/dist/assets/shortcut-eca2d427.js +++ b/vue/dist/assets/shortcut-f1e6388a.js @@ -1,2 +1,2 @@ -import{du as L,a as b,P as Q,d as D,j as R,u as W,av as Y,bh as Z,bk as ee,o as ae,w as ne,r as G,f as te,_ as N,an as U,h as S,c as M,m as T,G as E,ax as re,i as ue}from"./index-0205daf8.js";import{V as le}from"./Checkbox-951f37ba.js";function oe(n,e){var r=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=L(n))||e&&n&&typeof n.length=="number"){r&&(n=r);var d=0,i=function(){};return{s:i,n:function(){return d>=n.length?{done:!0}:{done:!1,value:n[d++]}},e:function(o){throw o},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +import{dv as L,a as b,P as Q,d as D,j as R,u as W,av as Y,bh as Z,bk as ee,o as ae,w as ne,r as G,f as te,_ as N,an as U,h as S,c as M,m as T,G as E,ax as re,i as ue}from"./index-157194fb.js";import{V as le}from"./Checkbox-431074e2.js";function oe(n,e){var r=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=L(n))||e&&n&&typeof n.length=="number"){r&&(n=r);var d=0,i=function(){};return{s:i,n:function(){return d>=n.length?{done:!0}:{done:!1,value:n[d++]}},e:function(o){throw o},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,y=!1,x;return{s:function(){r=r.call(n)},n:function(){var o=r.next();return g=o.done,o},e:function(o){y=!0,x=o},f:function(){try{!g&&r.return!=null&&r.return()}finally{if(y)throw x}}}}var ie=function(){return{name:String,prefixCls:String,options:{type:Array,default:function(){return[]}},disabled:Boolean,id:String}},ce=function(){return b(b({},ie()),{},{defaultValue:{type:Array},value:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function}})},se=function(){return{prefixCls:String,defaultChecked:{type:Boolean,default:void 0},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:Q.any,name:String,id:String,indeterminate:{type:Boolean,default:void 0},type:{type:String,default:"checkbox"},autofocus:{type:Boolean,default:void 0},onChange:Function,"onUpdate:checked":Function,onClick:Function,skipGroup:{type:Boolean,default:!1}}},de=function(){return b(b({},se()),{},{indeterminate:{type:Boolean,default:!1}})},H=Symbol("CheckboxGroupContext"),fe=["indeterminate","skipGroup","id"],ve=["onMouseenter","onMouseleave","onInput","class","style"];const w=D({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:de(),setup:function(e,r){var d=r.emit,i=r.attrs,g=r.slots,y=r.expose,x=R(),c=W("checkbox",e),o=c.prefixCls,h=c.direction,u=Y(H,void 0),k=Symbol("checkboxUniId");Z(function(){!e.skipGroup&&u&&u.registerValue(k,e.value)}),ee(function(){u&&u.cancelValue(k)}),ae(function(){ne(e.checked!==void 0||u||e.value===void 0,"Checkbox","`value` is not validate prop, do you mean `checked`?")});var _=function(a){var t=a.target.checked;d("update:checked",t),d("change",a)},V=G(),O=function(){var a;(a=V.value)===null||a===void 0||a.focus()},P=function(){var a;(a=V.value)===null||a===void 0||a.blur()};return y({focus:O,blur:P}),function(){var m,a,t=te((m=g.default)===null||m===void 0?void 0:m.call(g)),s=e.indeterminate,f=e.skipGroup,v=e.id,l=v===void 0?x.id.value:v,C=N(e,fe),A=i.onMouseenter,j=i.onMouseleave;i.onInput;var I=i.class,X=i.style,q=N(i,ve),p=b(b({},C),{},{id:l,prefixCls:o.value},q);u&&!f?(p.onChange=function(){for(var $=arguments.length,K=new Array($),B=0;B<$;B++)K[B]=arguments[B];d.apply(void 0,["change"].concat(K)),u.toggleOption({label:t,value:e.value})},p.name=u.name.value,p.checked=u.mergedValue.value.indexOf(e.value)!==-1,p.disabled=e.disabled||u.disabled.value,p.indeterminate=s):p.onChange=_;var z=U((a={},S(a,"".concat(o.value,"-wrapper"),!0),S(a,"".concat(o.value,"-rtl"),h.value==="rtl"),S(a,"".concat(o.value,"-wrapper-checked"),p.checked),S(a,"".concat(o.value,"-wrapper-disabled"),p.disabled),a),I),J=U(S({},"".concat(o.value,"-indeterminate"),s));return M("label",{class:z,style:X,onMouseenter:A,onMouseleave:j},[M(le,b(b({},p),{},{class:J,ref:V}),null),t.length?M("span",null,[t]):null])}}}),F=D({compatConfig:{MODE:3},name:"ACheckboxGroup",props:ce(),setup:function(e,r){var d=r.slots,i=r.emit,g=r.expose,y=R(),x=W("checkbox",e),c=x.prefixCls,o=x.direction,h=G((e.value===void 0?e.defaultValue:e.value)||[]);T(function(){return e.value},function(){h.value=e.value||[]});var u=E(function(){return e.options.map(function(a){return typeof a=="string"||typeof a=="number"?{label:a,value:a}:a})}),k=G(Symbol()),_=G(new Map),V=function(t){_.value.delete(t),k.value=Symbol()},O=function(t,s){_.value.set(t,s),k.value=Symbol()},P=G(new Map);T(k,function(){var a=new Map,t=oe(_.value.values()),s;try{for(t.s();!(s=t.n()).done;){var f=s.value;a.set(f,!0)}}catch(v){t.e(v)}finally{t.f()}P.value=a});var m=function(t){var s=h.value.indexOf(t.value),f=ue(h.value);s===-1?f.push(t.value):f.splice(s,1),e.value===void 0&&(h.value=f);var v=f.filter(function(l){return P.value.has(l)}).sort(function(l,C){var A=u.value.findIndex(function(I){return I.value===l}),j=u.value.findIndex(function(I){return I.value===C});return A-j});i("update:value",v),i("change",v),y.onFieldChange()};return re(H,{cancelValue:V,registerValue:O,toggleOption:m,mergedValue:h,name:E(function(){return e.name}),disabled:E(function(){return e.disabled})}),g({mergedValue:h}),function(){var a,t=e.id,s=t===void 0?y.id.value:t,f=null,v="".concat(c.value,"-group");return u.value&&u.value.length>0&&(f=u.value.map(function(l){var C;return M(w,{prefixCls:c.value,key:l.value.toString(),disabled:"disabled"in l?l.disabled:e.disabled,indeterminate:l.indeterminate,value:l.value,checked:h.value.indexOf(l.value)!==-1,onChange:l.onChange,class:"".concat(v,"-item")},{default:function(){return[l.label===void 0?(C=d.label)===null||C===void 0?void 0:C.call(d,l):l.label]}})})),M("div",{class:[v,S({},"".concat(v,"-rtl"),o.value==="rtl")],id:s},[f||((a=d.default)===null||a===void 0?void 0:a.call(d))])}}});w.Group=F;w.install=function(n){return n.component(w.name,w),n.component(F.name,F),n};const me=n=>{const e=[];return n.shiftKey&&e.push("Shift"),n.ctrlKey&&e.push("Ctrl"),n.metaKey&&e.push("Cmd"),(n.code.startsWith("Key")||n.code.startsWith("Digit"))&&e.push(n.code),n.key==="Escape"&&e.push("Esc"),e.join(" + ")};export{w as C,F as _,me as g}; diff --git a/vue/dist/assets/stackView-2bd6cdf7.js b/vue/dist/assets/stackView-2425ddfa.js similarity index 96% rename from vue/dist/assets/stackView-2bd6cdf7.js rename to vue/dist/assets/stackView-2425ddfa.js index fc06aef..c0118ae 100644 --- a/vue/dist/assets/stackView-2bd6cdf7.js +++ b/vue/dist/assets/stackView-2425ddfa.js @@ -1 +1 @@ -import{d as he,u as qe,g as fe,_ as dt,c as i,a as Be,P as Se,D as Ee,f as pt,w as Et,b as zt,e as Vt,h as tt,M as ze,i as jt,j as Ut,F as Ve,A as ft,k as Oe,l as Wt,r as pe,m as je,n as at,o as Ht,p as we,s as Te,q as U,t as nt,v as qt,x as Gt,y as Kt,z as de,B as N,C as Qt,E as Jt,G as _e,H as ot,I as Xt,J as Yt,K as Zt,L as Ue,N as ea,O as ta,Q as Le,R as Ne,S as aa,T as vt,U as R,V as j,W as h,X as ee,Y as b,Z as We,$ as J,a0 as mt,a1 as na,a2 as K,a3 as g,a4 as e,a5 as k,a6 as Q,a7 as oa,a8 as st,a9 as sa,aa as la,ab as ra,ac as ia,ad as ua,ae as ca,af as da,ag as lt,ah as pa,ai as fa,aj as va,ak as ma,al as ha}from"./index-0205daf8.js";import{S as ve,s as ga}from"./index-af89284c.js";import{F as X,_ as ht,a as ka}from"./numInput-a524d3bc.js";import"./index-b9ffc995.js";/* empty css */import{_ as ba}from"./index-728b29ca.js";import{D as gt}from"./index-e9cc5bd5.js";/* empty css */import"./index-859cb083.js";import{u as kt,N as ya,g as S,s as bt,a as Ca,b as wa,c as _a,d as Sa,F as Ia}from"./FileItem-cc53e03a.js";import{u as Pa,a as xa,b as Aa,c as $a,M as Ra,o as rt,L as Ma,R as Da,f as Fa}from"./MultiSelectKeep-74181f4c.js";import{u as Oa}from"./useGenInfoDiff-13d2ea38.js";import"./isArrayLikeObject-55a21cf1.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";import"./index-6a8edab1.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./shortcut-eca2d427.js";import"./Checkbox-951f37ba.js";var Ta=["class","style"],La=function(){return{prefixCls:String,href:String,separator:Se.any,overlay:Se.any,onClick:Function}};const me=he({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:La(),slots:["separator","overlay"],setup:function(t,l){var s=l.slots,p=l.attrs,c=qe("breadcrumb",t),y=c.prefixCls,x=function(f,C){var v=fe(s,t,"overlay");return v?i(gt,{overlay:v,placement:"bottom"},{default:function(){return[i("span",{class:"".concat(C,"-overlay-link")},[f,i(Ee,null,null)])]}}):f};return function(){var D,f=(D=fe(s,t,"separator"))!==null&&D!==void 0?D:"/",C=fe(s,t),v=p.class,A=p.style,I=dt(p,Ta),P;return t.href!==void 0?P=i("a",Be({class:"".concat(y.value,"-link"),onClick:t.onClick},I),[C]):P=i("span",Be({class:"".concat(y.value,"-link"),onClick:t.onClick},I),[C]),P=x(P,y.value),C?i("span",{class:v,style:A},[P,f&&i("span",{class:"".concat(y.value,"-separator")},[f])]):null}}});var Na=function(){return{prefixCls:String,routes:{type:Array},params:Se.any,separator:Se.any,itemRender:{type:Function}}};function Ba(o,t){if(!o.breadcrumbName)return null;var l=Object.keys(t).join("|"),s=o.breadcrumbName.replace(new RegExp(":(".concat(l,")"),"g"),function(p,c){return t[c]||p});return s}function it(o){var t=o.route,l=o.params,s=o.routes,p=o.paths,c=s.indexOf(t)===s.length-1,y=Ba(t,l);return c?i("span",null,[y]):i("a",{href:"#/".concat(p.join("/"))},[y])}const oe=he({compatConfig:{MODE:3},name:"ABreadcrumb",props:Na(),slots:["separator","itemRender"],setup:function(t,l){var s=l.slots,p=qe("breadcrumb",t),c=p.prefixCls,y=p.direction,x=function(v,A){return v=(v||"").replace(/^\//,""),Object.keys(A).forEach(function(I){v=v.replace(":".concat(I),A[I])}),v},D=function(v,A,I){var P=jt(v),O=x(A||"",I);return O&&P.push(O),P},f=function(v){var A=v.routes,I=A===void 0?[]:A,P=v.params,O=P===void 0?{}:P,W=v.separator,B=v.itemRender,E=B===void 0?it:B,T=[];return I.map(function(F){var L=x(F.path,O);L&&T.push(L);var H=[].concat(T),Y=null;return F.children&&F.children.length&&(Y=i(ze,null,{default:function(){return[F.children.map(function(q){return i(ze.Item,{key:q.path||q.breadcrumbName},{default:function(){return[E({route:q,params:O,routes:I,paths:D(H,q.path,O)})]}})})]}})),i(me,{overlay:Y,separator:W,key:L||F.breadcrumbName},{default:function(){return[E({route:F,params:O,routes:I,paths:H})]}})})};return function(){var C,v,A,I=t.routes,P=t.params,O=P===void 0?{}:P,W=pt(fe(s,t)),B=(C=fe(s,t,"separator"))!==null&&C!==void 0?C:"/",E=t.itemRender||s.itemRender||it;I&&I.length>0?A=f({routes:I,params:O,separator:B,itemRender:E}):W.length&&(A=W.map(function(F,L){return Et(zt(F.type)==="object"&&(F.type.__ANT_BREADCRUMB_ITEM||F.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Vt(F,{separator:B,key:L})}));var T=(v={},tt(v,c.value,!0),tt(v,"".concat(c.value,"-rtl"),y.value==="rtl"),v);return i("div",{class:T},[A])}}});var Ea=["separator","class"],za=function(){return{prefixCls:String}};const He=he({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:za(),setup:function(t,l){var s=l.slots,p=l.attrs,c=qe("breadcrumb",t),y=c.prefixCls;return function(){var x;p.separator;var D=p.class,f=dt(p,Ea),C=pt((x=s.default)===null||x===void 0?void 0:x.call(s));return i("span",Be({class:["".concat(y.value,"-separator"),D]},f),[C.length>0?C:"/"])}}});oe.Item=me;oe.Separator=He;oe.install=function(o){return o.component(oe.name,oe),o.component(me.name,me),o.component(He.name,He),o};X.useInjectFormItemContext=Ut;X.ItemRest=Ve;X.install=function(o){return o.component(X.name,X),o.component(X.Item.name,X.Item),o.component(Ve.name,Ve),o};ve.setDefaultIndicator=ga;ve.install=function(o){return o.component(ve.name,ve),o};var Va={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const ja=Va;function ut(o){for(var t=1;t{p=f,s=C}),y=()=>{l.isFinished=!0,clearTimeout(l.id)},x=()=>Oe(this,void 0,void 0,function*(){try{l.res=yield l.action(),l.validator&&l.validator(l.res)&&(p(l.res),y())}catch(f){Ie.silent||console.error(f),l.errorHandleMethod==="stop"&&(y(),s(f))}}),D=()=>{l.isFinished||(l.id=setTimeout(()=>Oe(this,void 0,void 0,function*(){yield x(),D()}),l.pollInterval))};return setTimeout(()=>Oe(this,void 0,void 0,function*(){l.immediately&&(yield x()),D()}),0),Wt({task:l,clearTask:y,completedTask:c})}}Ie.silent=!1;var Ha={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const qa=Ha;function ct(o){for(var t=1;ts.value.length,at((n,u)=>{var d;n!==u&&((d=t.value)==null||d.scrollToItem(0))},300)),Ht(async()=>{var n;if(!s.value.length)if(f.value.mode==="scanned-fixed"||f.value.mode==="walk")s.value=[{files:[],curr:f.value.path??""}];else{const u=await we("/");s.value.push({files:u.files,curr:"/"})}o.value=new ya,o.value.configure({parent:l.value}),f.value.path&&f.value.path!=="/"?await T(f.value.path):(n=S.conf)!=null&&n.home&&T(S.conf.home)}),je(c,at(n=>{const u=D.value();if(!u)return;u.path=n;const d=Te(n).pop()??"",_=(()=>{const M={walk:"Walk","scanned-fixed":"Fixed",scanned:null}[f.value.mode??"scanned"],$=G=>M?`${M}: ${G}`:G,V=S.getShortPath(n);return $(V.length>24&&d?d:V)})();u.name=U("div",{style:"display:flex;align-items:center"},[U(Ka),U("span",{class:"line-clamp-1",style:"max-width: 256px"},_)]),u.nameFallbackStr=_,S.recent=S.recent.filter(M=>M.key!==u.key),S.recent.unshift({path:n,key:u.key,mode:f.value.mode}),S.recent.length>20&&(S.recent=S.recent.slice(0,20))},300));const P=()=>Ue(c.value),O=async n=>{var u,d;if(n.type==="dir")try{(u=o.value)==null||u.start();const{files:w}=await we(n.fullpath);f.value.mode=="scanned-fixed"?s.value=[{files:w,curr:n.fullpath}]:s.value.push({files:w,curr:n.name})}finally{(d=o.value)==null||d.done()}},W=n=>{if(f.value.mode!="walk")for(;n{T(ea(c.value))},E=(n,u)=>(ta(S.conf,"global.conf load failed"),S.conf.is_win?n.toLowerCase()==u.toLowerCase():n==u),T=async n=>{f.value.mode==="walk"?D.value().path=n:f.value.mode==="scanned-fixed"?await O({fullpath:n,name:n,type:"dir"}):await F(n),nt(500).then(()=>x.value.emit("viewableAreaFilesChange"))},F=async n=>{var d,w;const u=s.value.slice();try{qt(n)||(n=Gt(((d=S.conf)==null?void 0:d.sd_cwd)??"/",n));const _=Te(n),M=s.value.map($=>$.curr);for(M.shift();M[0]&&_[0]&&E(M[0],_[0]);)M.shift(),_.shift();for(let $=0;$E(G.name,$));if(!V)throw console.error({frags:_,frag:$,stack:Kt(s.value)}),new Error(`${$} not found`);await O(V)}}catch(_){throw de.error(N("moveFailedCheckPath")+(_ instanceof Error?_.message:"")),console.error(n,Te(n),p.value),s.value=u,_}},L=Qt(async()=>{var n,u,d;try{if((n=o.value)==null||n.start(),v.value)await v.value.reset(),x.value.emit("loadNextDir");else{const{files:w}=await we(c.value);Le(s.value).files=w}C.value.clear(),(u=t.value)==null||u.scrollToItem(0),de.success(N("refreshCompleted"))}finally{(d=o.value)==null||d.done()}}),H=async(n=!1)=>{var u,d,w;if(!(n===!0&&I.value)){if(f.value.mode==="walk"&&v.value){const _=((u=t.value)==null?void 0:u.$_endIndex)??64;if(S.autoRefreshWalkMode&&_{M.value=!0,S.autoRefreshWalkMode=!1,V(),de.success(N("walkModeAutoRefreshDisabled"))},V=de.loading(U("span",{},[N("autoUpdate"),U("span",{onClick:$,style:{paddingLeft:"16px",cursor:"pointer",color:"var(--primary-color)"}},N("disable"))]),0);try{const G=new Promise(be=>{v.value.seamlessRefresh(_,M).then(ae=>{M.value||(v.value=ae,x.value.emit("loadNextDir"),be())})});await Promise.all([G,nt(1500)])}finally{V()}}return}try{if(!S.autoRefreshNormalFixedMode)return;(d=o.value)==null||d.start();const{files:_}=await we(c.value);Le(s.value).files.map($=>$.date).join()!==_.map($=>$.date).join()&&(Le(s.value).files=_,de.success(N("autoUpdate")))}finally{(w=o.value)==null||w.done()}}};Jt("returnToIIB",H),y.value("refresh",L);const Y=n=>{T(n)},te=_e(()=>S.quickMovePaths.map(n=>({...n,path:ot(n.dir)}))),q=_e(()=>{const n=ot(c.value);return te.value.find(d=>d.path===n)}),se=async()=>{const n=S.tabList[f.value.tabIdx],u={type:"empty",name:N("emptyStartPage"),key:Date.now()+Ne(),popAddPathModal:{path:c.value,type:"scanned-fixed"}};n.panes.push(u),n.key=u.key},Z=pe(!1),le=pe(c.value),ge=()=>{Z.value=!0,le.value=c.value},Pe=async()=>{await T(le.value),Z.value=!1};Pa("click",n=>{var u,d,w;(w=(d=(u=n.target)==null?void 0:u.className)==null?void 0:d.includes)!=null&&w.call(d,"ant-input")||(Z.value=!1)});const xe=()=>{const n=parent.location,u=n.href.substring(0,n.href.length-n.search.length),d=new URLSearchParams(n.search);d.set("action","open"),d.set("path",c.value),d.set("mode",f.value.mode??"scanned");const w=`${u}?${d.toString()}`;Ue(w,N("copyLocationUrlSuccessMsg"))},re=(n="tag-search")=>{const u=S.tabList[f.value.tabIdx],d={type:n,key:Ne(),searchScope:c.value,name:N(n==="tag-search"?"imgSearch":"fuzzy-search")};u.panes.push(d),u.key=d.key},z=()=>x.value.emit("selectAll"),ie=async()=>{await aa(c.value),await L()},ke=()=>{const n=c.value;bt.set(n,s.value);const u=S.tabList[f.value.tabIdx],d={type:"local",key:Ne(),path:n,name:N("local"),stackKey:n,mode:"walk"};u.panes.push(d),u.key=d.key},Ae=_e(()=>!v.value&&A.value.some(n=>n.type==="dir"));return{locInputValue:le,isLocationEditing:Z,onLocEditEnter:Pe,onEditBtnClick:ge,addToSearchScanPathAndQuickMove:se,searchPathInfo:q,refresh:L,copyLocation:P,back:W,openNext:O,currPage:p,currLocation:c,stack:s,scroller:t,share:xe,selectAll:z,quickMoveTo:Y,onCreateFloderBtnClick:ie,onWalkBtnClick:ke,showWalkButton:Ae,searchInCurrentDir:re,backToLastUseTo:B,...Ja(()=>H(!0))}}const Ja=o=>{const t=pe([]),l=_e(()=>t.value.length>0);Xt(()=>{t.value.forEach(c=>c())});const s=Yt(Zt+"poll-interval",3);return{onPollRefreshClick:()=>{if(t.value.length){t.value.forEach(c=>c()),t.value=[];return}vt.confirm({title:N("pollRefresh"),width:640,content:()=>U("div",{},[U("p",{class:"uni-desc primary-bg"},N("pollRefreshTip")),U("div",{style:{display:"flex",alignItems:"center",gap:"4px"}},[U("span",{},N("pollInterval")+"(s): "),U(ht,{min:1,max:60*10,modelValue:s.value,"onUpdate:modelValue":c=>{s.value=c}})])]),onOk:()=>{const{clearTask:c}=Ie.run({pollInterval:s.value*1e3,action:o});t.value.push(c)}})},polling:l}};const Xa={class:"base-info"},Ya=he({__name:"BaseFileListInfo",props:{fileNum:{},selectedFileNum:{}},setup(o){return(t,l)=>(R(),j("div",Xa,[h("span",null,[ee(b(t.$t("items",[t.fileNum]))+" ",1),t.selectedFileNum?(R(),j(We,{key:0},[ee(", "+b(t.$t("selectedItems",[t.selectedFileNum])),1)],64)):J("",!0)])]))}});const Za=mt(Ya,[["__scopeId","data-v-7f9c0b15"]]),en={class:"hint"},tn={class:"location-bar"},an=["onClick"],nn={key:3,class:"location-act"},on={class:"actions"},sn=["onClick"],ln=["onClick"],rn={style:{width:"512px",background:"var(--zp-primary-background)",padding:"16px","border-radius":"4px","box-shadow":"0 0 4px var(--zp-secondary-background)",border:"1px solid var(--zp-secondary-background)"}},un={style:{padding:"4px"}},cn={style:{padding:"4px"}},dn={style:{padding:"4px"}},pn={key:0,class:"view"},fn={style:{padding:"16px 0 512px"}},vn={key:0,class:"preview-switch"},mn=he({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},mode:{},stackKey:{}},setup(o){const t=o,l=na(),{scroller:s,stackViewEl:p,props:c,multiSelectedIdxs:y,spinning:x}=kt().toRefs(),{currLocation:D,currPage:f,refresh:C,copyLocation:v,back:A,openNext:I,stack:P,quickMoveTo:O,addToSearchScanPathAndQuickMove:W,locInputValue:B,isLocationEditing:E,onLocEditEnter:T,onEditBtnClick:F,share:L,selectAll:H,onCreateFloderBtnClick:Y,onWalkBtnClick:te,showWalkButton:q,searchInCurrentDir:se,backToLastUseTo:Z,polling:le,onPollRefreshClick:ge}=Qa(),{gridItems:Pe,sortMethodConv:xe,moreActionsDropdownShow:re,sortedFiles:z,sortMethod:ie,itemSize:ke,loadNextDir:Ae,loadNextDirLoading:n,canLoadNext:u,onScroll:d,cellWidth:w,dirCoverCache:_}=Ca(),{onDrop:M,onFileDragStart:$,onFileDragEnd:V}=xa(),{onFileItemClick:G,onContextMenuClick:be,showGenInfo:ae,imageGenInfo:Qe,q:yt}=Aa({openNext:I}),{previewIdx:ue,onPreviewVisibleChange:Ct,previewing:$e,previewImgMove:Je,canPreview:Xe}=$a(),{showMenuIdx:Re}=wa(),{onClearAllSelected:wt,onReverseSelect:_t,onSelectAll:St}=_a(),{getGenDiff:It,changeIndchecked:ce,seedChangeChecked:ye,getRawGenParams:Pt,getGenDiffWatchDep:xt}=Oa(),At=()=>{z.value.length!==0&&rt(z.value,ue.value||0)};return je(()=>t,()=>{c.value=t;const m=bt.get(t.stackKey??"");m&&(P.value=m.slice())},{immediate:!0}),(m,a)=>{const $t=pa,Rt=fa,Mt=vt,Dt=va,Ft=me,Ot=oe,Ye=ma,Me=ha,Ze=ze,De=gt,Tt=ht,Ce=ka,et=ba,Lt=X,Nt=ve;return R(),K(Nt,{spinning:e(x),size:"large"},{default:g(()=>[i(Ra,{show:e(l).keepMultiSelect||!!e(y).length,onClearAllSelected:e(wt),onSelectAll:e(St),onReverseSelect:e(_t)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),i($t,{style:{display:"none"}}),h("div",{ref_key:"stackViewEl",ref:p,onDragover:a[31]||(a[31]=k(()=>{},["prevent"])),onDrop:a[32]||(a[32]=k(r=>e(M)(r),["prevent"])),class:"container"},[i(Mt,{visible:e(ae),"onUpdate:visible":a[1]||(a[1]=r=>Q(ae)?ae.value=r:null),width:"70vw","mask-closable":"",onOk:a[2]||(a[2]=r=>ae.value=!1)},{cancelText:g(()=>[]),default:g(()=>[i(Rt,{active:"",loading:!e(yt).isIdle},{default:g(()=>[h("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:a[0]||(a[0]=r=>e(Ue)(e(Qe)))},[h("div",en,b(m.$t("doubleClickToCopy")),1),ee(" "+b(e(Qe)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),h("div",tn,[h("div",{class:"breadcrumb",style:oa({flex:e(E)?1:""})},[e(E)?(R(),K(Dt,{key:0,style:{flex:"1"},value:e(B),"onUpdate:value":a[3]||(a[3]=r=>Q(B)?B.value=r:null),onClick:a[4]||(a[4]=k(()=>{},["stop"])),onKeydown:a[5]||(a[5]=k(()=>{},["stop"])),onPressEnter:e(T),"allow-clear":""},null,8,["value","onPressEnter"])):(R(),K(Ot,{key:1,style:{flex:"1"}},{default:g(()=>[(R(!0),j(We,null,st(e(P),(r,ne)=>(R(),K(Ft,{key:ne},{default:g(()=>[h("a",{onClick:k(Fe=>e(A)(ne),["prevent"])},b(r.curr==="/"?m.$t("root"):r.curr.replace(/:\/$/,m.$t("drive"))),9,an)]),_:2},1024))),128))]),_:1})),e(E)?(R(),K(Ye,{key:2,size:"small",onClick:e(T),type:"primary"},{default:g(()=>[ee(b(m.$t("go")),1)]),_:1},8,["onClick"])):(R(),j("div",nn,[m.mode==="scanned-fixed"?(R(),j("a",{key:0,onClick:a[6]||(a[6]=k((...r)=>e(Z)&&e(Z)(...r),["prevent"])),style:{margin:"0 8px 16px 0"}},[i(e(Wa))])):J("",!0),h("a",{onClick:a[7]||(a[7]=k((...r)=>e(v)&&e(v)(...r),["prevent"])),class:"copy"},b(m.$t("copy")),1),h("a",{onClick:a[8]||(a[8]=k((...r)=>e(F)&&e(F)(...r),["prevent","stop"]))},b(m.$t("edit")),1)]))],4),h("div",on,[h("a",{class:"opt",onClick:a[9]||(a[9]=k((...r)=>e(C)&&e(C)(...r),["prevent"]))},b(m.$t("refresh")),1),h("a",{class:"opt",onClick:a[10]||(a[10]=k((...r)=>e(ge)&&e(ge)(...r),["prevent"]))},b(e(le)?m.$t("stopPollRefresh"):m.$t("pollRefresh")),1),h("a",{class:"opt",onClick:k(At,["prevent"])},b(m.$t("TikTok View")),9,sn),i(De,null,{overlay:g(()=>[i(Ze,null,{default:g(()=>[i(Me,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[12]||(a[12]=k(r=>e(se)("tag-search"),["prevent"]))},b(m.$t("imgSearch")),1)]),_:1}),i(Me,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[13]||(a[13]=k(r=>e(se)("fuzzy-search"),["prevent"]))},b(m.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[11]||(a[11]=k(()=>{},["prevent"]))},[ee(b(m.$t("search"))+" ",1),i(e(Ee))])]),_:1}),e(q)?(R(),j("a",{key:0,class:"opt",onClick:a[14]||(a[14]=k((...r)=>e(te)&&e(te)(...r),["prevent"]))}," Walk ")):J("",!0),h("a",{class:"opt",onClick:a[15]||(a[15]=k((...r)=>e(H)&&e(H)(...r),["prevent","stop"]))},b(m.$t("selectAll")),1),e(sa)?J("",!0):(R(),j("a",{key:1,class:"opt",onClick:a[16]||(a[16]=k((...r)=>e(L)&&e(L)(...r),["prevent"]))},b(m.$t("share")),1)),i(De,null,{overlay:g(()=>[i(Ze,null,{default:g(()=>[(R(!0),j(We,null,st(e(l).quickMovePaths,r=>(R(),K(Me,{key:r.dir},{default:g(()=>[h("a",{onClick:k(ne=>e(O)(r.dir),["prevent"])},b(r.zh),9,ln)]),_:2},1024))),128))]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[17]||(a[17]=k(()=>{},["prevent"]))},[ee(b(m.$t("quickMove"))+" ",1),i(e(Ee))])]),_:1}),i(De,{trigger:["click"],visible:e(re),"onUpdate:visible":a[27]||(a[27]=r=>Q(re)?re.value=r:null),placement:"bottomLeft",getPopupContainer:r=>r.parentNode},{overlay:g(()=>[h("div",rn,[i(Lt,la(ra({labelCol:{span:10},wrapperCol:{span:14}})),{default:g(()=>[i(Ce,{label:m.$t("gridCellWidth")},{default:g(()=>[i(Tt,{modelValue:e(w),"onUpdate:modelValue":a[19]||(a[19]=r=>Q(w)?w.value=r:null),max:1024,min:64,step:16},null,8,["modelValue"])]),_:1},8,["label"]),i(Ce,{label:m.$t("sortingMethod")},{default:g(()=>[i(e(ia),{value:e(ie),"onUpdate:value":a[20]||(a[20]=r=>Q(ie)?ie.value=r:null),onClick:a[21]||(a[21]=k(()=>{},["stop"])),conv:e(xe),options:e(ua)},null,8,["value","conv","options"])]),_:1},8,["label"]),i(Ce,{label:m.$t("showChangeIndicators")},{default:g(()=>[i(et,{checked:e(ce),"onUpdate:checked":a[22]||(a[22]=r=>Q(ce)?ce.value=r:null),onClick:e(Pt)},null,8,["checked","onClick"])]),_:1},8,["label"]),i(Ce,{label:m.$t("seedAsChange")},{default:g(()=>[i(et,{checked:e(ye),"onUpdate:checked":a[23]||(a[23]=r=>Q(ye)?ye.value=r:null),disabled:!e(ce)},null,8,["checked","disabled"])]),_:1},8,["label"]),h("div",un,[h("a",{onClick:a[24]||(a[24]=k((...r)=>e(W)&&e(W)(...r),["prevent"]))},b(m.$t("addToSearchScanPathAndQuickMove")),1)]),h("div",cn,[h("a",{onClick:a[25]||(a[25]=k(r=>e(ca)(e(D)+"/"),["prevent"]))},b(m.$t("openWithLocalFileBrowser")),1)]),h("div",dn,[h("a",{onClick:a[26]||(a[26]=k((...r)=>e(Y)&&e(Y)(...r),["prevent"]))},b(m.$t("createFolder")),1)])]),_:1},16)])]),default:g(()=>[h("a",{class:"opt",onClick:a[18]||(a[18]=k(()=>{},["prevent"]))},b(m.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(f)?(R(),j("div",pn,[i(e(Sa),{class:"file-list",items:e(z),ref_key:"scroller",ref:s,onScroll:e(d),"item-size":e(ke).first,"key-field":"fullpath","item-secondary-size":e(ke).second,gridItems:e(Pe)},{default:g(({item:r,index:ne})=>[i(Ia,{idx:parseInt(ne),file:r,"full-screen-preview-image-url":e(z)[e(ue)]?e(da)(e(z)[e(ue)]):"","show-menu-idx":e(Re),"onUpdate:showMenuIdx":a[28]||(a[28]=Fe=>Q(Re)?Re.value=Fe:null),selected:e(y).includes(ne),"cell-width":e(w),onFileItemClick:e(G),onDragstart:e($),onDragend:e(V),onPreviewVisibleChange:e(Ct),onContextMenuClick:e(be),onTiktokView:(Fe,Bt)=>e(rt)(e(z),Bt),"is-selected-mutil-files":e(y).length>1,"enable-change-indicator":e(ce),"seed-change-checked":e(ye),"get-gen-diff":e(It),"get-gen-diff-watch-dep":e(xt),previewing:e($e),"cover-files":e(_).get(r.fullpath)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick","onTiktokView","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","previewing","cover-files"])]),after:g(()=>[h("div",fn,[t.mode==="walk"?(R(),K(Ye,{key:0,onClick:e(Ae),loading:e(n),block:"",type:"primary",disabled:!e(u),ghost:""},{default:g(()=>[ee(b(m.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])):J("",!0)])]),_:1},8,["items","onScroll","item-size","item-secondary-size","gridItems"]),e($e)?(R(),j("div",vn,[i(e(Ma),{onClick:a[29]||(a[29]=r=>e(Je)("prev")),class:lt({disable:!e(Xe)("prev")})},null,8,["class"]),i(e(Da),{onClick:a[30]||(a[30]=r=>e(Je)("next")),class:lt({disable:!e(Xe)("next")})},null,8,["class"])])):J("",!0)])):J("",!0)],544),e($e)?(R(),K(Fa,{key:0,file:e(z)[e(ue)],idx:e(ue),onContextMenuClick:e(be)},null,8,["file","idx","onContextMenuClick"])):J("",!0),i(Za,{"file-num":e(z).length,"selected-file-num":e(y).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const Tn=mt(mn,[["__scopeId","data-v-8d4bd42a"]]);export{Tn as default}; +import{d as he,u as qe,g as fe,_ as dt,c as i,a as Be,P as Se,D as Ee,f as pt,w as Et,b as zt,e as Vt,h as tt,M as ze,i as jt,j as Ut,F as Ve,A as ft,k as Oe,l as Wt,r as pe,m as je,n as at,o as Ht,p as we,s as Te,q as U,t as nt,v as qt,x as Gt,y as Kt,z as de,B as N,C as Qt,E as Jt,G as _e,H as ot,I as Xt,J as Yt,K as Zt,L as Ue,N as ea,O as ta,Q as Le,R as Ne,S as aa,T as vt,U as R,V as j,W as h,X as ee,Y as b,Z as We,$ as J,a0 as mt,a1 as na,a2 as K,a3 as g,a4 as e,a5 as k,a6 as Q,a7 as oa,a8 as st,a9 as sa,aa as la,ab as ra,ac as ia,ad as ua,ae as ca,af as da,ag as lt,ah as pa,ai as fa,aj as va,ak as ma,al as ha}from"./index-157194fb.js";import{S as ve,s as ga}from"./index-e33c98d2.js";import{F as X,_ as ht,a as ka}from"./numInput-8bb1e710.js";import"./index-b39f3e91.js";/* empty css */import{_ as ba}from"./index-89286149.js";import{D as gt}from"./index-11d9431b.js";/* empty css */import"./index-1c4f06bb.js";import{u as kt,N as ya,g as S,s as bt,a as Ca,b as wa,c as _a,d as Sa,F as Ia}from"./FileItem-6ddd7179.js";import{u as Pa,a as xa,b as Aa,c as $a,M as Ra,o as rt,L as Ma,R as Da,f as Fa}from"./MultiSelectKeep-f7eadb70.js";import{u as Oa}from"./useGenInfoDiff-4c9e8f19.js";import"./isArrayLikeObject-ca08191a.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-2254804f.js";import"./index-8e3285c7.js";import"./_isIterateeCall-e2252db1.js";import"./index-8929347d.js";import"./shortcut-f1e6388a.js";import"./Checkbox-431074e2.js";var Ta=["class","style"],La=function(){return{prefixCls:String,href:String,separator:Se.any,overlay:Se.any,onClick:Function}};const me=he({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:La(),slots:["separator","overlay"],setup:function(t,l){var s=l.slots,p=l.attrs,c=qe("breadcrumb",t),y=c.prefixCls,x=function(f,C){var v=fe(s,t,"overlay");return v?i(gt,{overlay:v,placement:"bottom"},{default:function(){return[i("span",{class:"".concat(C,"-overlay-link")},[f,i(Ee,null,null)])]}}):f};return function(){var D,f=(D=fe(s,t,"separator"))!==null&&D!==void 0?D:"/",C=fe(s,t),v=p.class,A=p.style,I=dt(p,Ta),P;return t.href!==void 0?P=i("a",Be({class:"".concat(y.value,"-link"),onClick:t.onClick},I),[C]):P=i("span",Be({class:"".concat(y.value,"-link"),onClick:t.onClick},I),[C]),P=x(P,y.value),C?i("span",{class:v,style:A},[P,f&&i("span",{class:"".concat(y.value,"-separator")},[f])]):null}}});var Na=function(){return{prefixCls:String,routes:{type:Array},params:Se.any,separator:Se.any,itemRender:{type:Function}}};function Ba(o,t){if(!o.breadcrumbName)return null;var l=Object.keys(t).join("|"),s=o.breadcrumbName.replace(new RegExp(":(".concat(l,")"),"g"),function(p,c){return t[c]||p});return s}function it(o){var t=o.route,l=o.params,s=o.routes,p=o.paths,c=s.indexOf(t)===s.length-1,y=Ba(t,l);return c?i("span",null,[y]):i("a",{href:"#/".concat(p.join("/"))},[y])}const oe=he({compatConfig:{MODE:3},name:"ABreadcrumb",props:Na(),slots:["separator","itemRender"],setup:function(t,l){var s=l.slots,p=qe("breadcrumb",t),c=p.prefixCls,y=p.direction,x=function(v,A){return v=(v||"").replace(/^\//,""),Object.keys(A).forEach(function(I){v=v.replace(":".concat(I),A[I])}),v},D=function(v,A,I){var P=jt(v),O=x(A||"",I);return O&&P.push(O),P},f=function(v){var A=v.routes,I=A===void 0?[]:A,P=v.params,O=P===void 0?{}:P,W=v.separator,B=v.itemRender,E=B===void 0?it:B,T=[];return I.map(function(F){var L=x(F.path,O);L&&T.push(L);var H=[].concat(T),Y=null;return F.children&&F.children.length&&(Y=i(ze,null,{default:function(){return[F.children.map(function(q){return i(ze.Item,{key:q.path||q.breadcrumbName},{default:function(){return[E({route:q,params:O,routes:I,paths:D(H,q.path,O)})]}})})]}})),i(me,{overlay:Y,separator:W,key:L||F.breadcrumbName},{default:function(){return[E({route:F,params:O,routes:I,paths:H})]}})})};return function(){var C,v,A,I=t.routes,P=t.params,O=P===void 0?{}:P,W=pt(fe(s,t)),B=(C=fe(s,t,"separator"))!==null&&C!==void 0?C:"/",E=t.itemRender||s.itemRender||it;I&&I.length>0?A=f({routes:I,params:O,separator:B,itemRender:E}):W.length&&(A=W.map(function(F,L){return Et(zt(F.type)==="object"&&(F.type.__ANT_BREADCRUMB_ITEM||F.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Vt(F,{separator:B,key:L})}));var T=(v={},tt(v,c.value,!0),tt(v,"".concat(c.value,"-rtl"),y.value==="rtl"),v);return i("div",{class:T},[A])}}});var Ea=["separator","class"],za=function(){return{prefixCls:String}};const He=he({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:za(),setup:function(t,l){var s=l.slots,p=l.attrs,c=qe("breadcrumb",t),y=c.prefixCls;return function(){var x;p.separator;var D=p.class,f=dt(p,Ea),C=pt((x=s.default)===null||x===void 0?void 0:x.call(s));return i("span",Be({class:["".concat(y.value,"-separator"),D]},f),[C.length>0?C:"/"])}}});oe.Item=me;oe.Separator=He;oe.install=function(o){return o.component(oe.name,oe),o.component(me.name,me),o.component(He.name,He),o};X.useInjectFormItemContext=Ut;X.ItemRest=Ve;X.install=function(o){return o.component(X.name,X),o.component(X.Item.name,X.Item),o.component(Ve.name,Ve),o};ve.setDefaultIndicator=ga;ve.install=function(o){return o.component(ve.name,ve),o};var Va={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const ja=Va;function ut(o){for(var t=1;t{p=f,s=C}),y=()=>{l.isFinished=!0,clearTimeout(l.id)},x=()=>Oe(this,void 0,void 0,function*(){try{l.res=yield l.action(),l.validator&&l.validator(l.res)&&(p(l.res),y())}catch(f){Ie.silent||console.error(f),l.errorHandleMethod==="stop"&&(y(),s(f))}}),D=()=>{l.isFinished||(l.id=setTimeout(()=>Oe(this,void 0,void 0,function*(){yield x(),D()}),l.pollInterval))};return setTimeout(()=>Oe(this,void 0,void 0,function*(){l.immediately&&(yield x()),D()}),0),Wt({task:l,clearTask:y,completedTask:c})}}Ie.silent=!1;var Ha={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const qa=Ha;function ct(o){for(var t=1;ts.value.length,at((n,u)=>{var d;n!==u&&((d=t.value)==null||d.scrollToItem(0))},300)),Ht(async()=>{var n;if(!s.value.length)if(f.value.mode==="scanned-fixed"||f.value.mode==="walk")s.value=[{files:[],curr:f.value.path??""}];else{const u=await we("/");s.value.push({files:u.files,curr:"/"})}o.value=new ya,o.value.configure({parent:l.value}),f.value.path&&f.value.path!=="/"?await T(f.value.path):(n=S.conf)!=null&&n.home&&T(S.conf.home)}),je(c,at(n=>{const u=D.value();if(!u)return;u.path=n;const d=Te(n).pop()??"",_=(()=>{const M={walk:"Walk","scanned-fixed":"Fixed",scanned:null}[f.value.mode??"scanned"],$=G=>M?`${M}: ${G}`:G,V=S.getShortPath(n);return $(V.length>24&&d?d:V)})();u.name=U("div",{style:"display:flex;align-items:center"},[U(Ka),U("span",{class:"line-clamp-1",style:"max-width: 256px"},_)]),u.nameFallbackStr=_,S.recent=S.recent.filter(M=>M.key!==u.key),S.recent.unshift({path:n,key:u.key,mode:f.value.mode}),S.recent.length>20&&(S.recent=S.recent.slice(0,20))},300));const P=()=>Ue(c.value),O=async n=>{var u,d;if(n.type==="dir")try{(u=o.value)==null||u.start();const{files:w}=await we(n.fullpath);f.value.mode=="scanned-fixed"?s.value=[{files:w,curr:n.fullpath}]:s.value.push({files:w,curr:n.name})}finally{(d=o.value)==null||d.done()}},W=n=>{if(f.value.mode!="walk")for(;n{T(ea(c.value))},E=(n,u)=>(ta(S.conf,"global.conf load failed"),S.conf.is_win?n.toLowerCase()==u.toLowerCase():n==u),T=async n=>{f.value.mode==="walk"?D.value().path=n:f.value.mode==="scanned-fixed"?await O({fullpath:n,name:n,type:"dir"}):await F(n),nt(500).then(()=>x.value.emit("viewableAreaFilesChange"))},F=async n=>{var d,w;const u=s.value.slice();try{qt(n)||(n=Gt(((d=S.conf)==null?void 0:d.sd_cwd)??"/",n));const _=Te(n),M=s.value.map($=>$.curr);for(M.shift();M[0]&&_[0]&&E(M[0],_[0]);)M.shift(),_.shift();for(let $=0;$E(G.name,$));if(!V)throw console.error({frags:_,frag:$,stack:Kt(s.value)}),new Error(`${$} not found`);await O(V)}}catch(_){throw de.error(N("moveFailedCheckPath")+(_ instanceof Error?_.message:"")),console.error(n,Te(n),p.value),s.value=u,_}},L=Qt(async()=>{var n,u,d;try{if((n=o.value)==null||n.start(),v.value)await v.value.reset(),x.value.emit("loadNextDir");else{const{files:w}=await we(c.value);Le(s.value).files=w}C.value.clear(),(u=t.value)==null||u.scrollToItem(0),de.success(N("refreshCompleted"))}finally{(d=o.value)==null||d.done()}}),H=async(n=!1)=>{var u,d,w;if(!(n===!0&&I.value)){if(f.value.mode==="walk"&&v.value){const _=((u=t.value)==null?void 0:u.$_endIndex)??64;if(S.autoRefreshWalkMode&&_{M.value=!0,S.autoRefreshWalkMode=!1,V(),de.success(N("walkModeAutoRefreshDisabled"))},V=de.loading(U("span",{},[N("autoUpdate"),U("span",{onClick:$,style:{paddingLeft:"16px",cursor:"pointer",color:"var(--primary-color)"}},N("disable"))]),0);try{const G=new Promise(be=>{v.value.seamlessRefresh(_,M).then(ae=>{M.value||(v.value=ae,x.value.emit("loadNextDir"),be())})});await Promise.all([G,nt(1500)])}finally{V()}}return}try{if(!S.autoRefreshNormalFixedMode)return;(d=o.value)==null||d.start();const{files:_}=await we(c.value);Le(s.value).files.map($=>$.date).join()!==_.map($=>$.date).join()&&(Le(s.value).files=_,de.success(N("autoUpdate")))}finally{(w=o.value)==null||w.done()}}};Jt("returnToIIB",H),y.value("refresh",L);const Y=n=>{T(n)},te=_e(()=>S.quickMovePaths.map(n=>({...n,path:ot(n.dir)}))),q=_e(()=>{const n=ot(c.value);return te.value.find(d=>d.path===n)}),se=async()=>{const n=S.tabList[f.value.tabIdx],u={type:"empty",name:N("emptyStartPage"),key:Date.now()+Ne(),popAddPathModal:{path:c.value,type:"scanned-fixed"}};n.panes.push(u),n.key=u.key},Z=pe(!1),le=pe(c.value),ge=()=>{Z.value=!0,le.value=c.value},Pe=async()=>{await T(le.value),Z.value=!1};Pa("click",n=>{var u,d,w;(w=(d=(u=n.target)==null?void 0:u.className)==null?void 0:d.includes)!=null&&w.call(d,"ant-input")||(Z.value=!1)});const xe=()=>{const n=parent.location,u=n.href.substring(0,n.href.length-n.search.length),d=new URLSearchParams(n.search);d.set("action","open"),d.set("path",c.value),d.set("mode",f.value.mode??"scanned");const w=`${u}?${d.toString()}`;Ue(w,N("copyLocationUrlSuccessMsg"))},re=(n="tag-search")=>{const u=S.tabList[f.value.tabIdx],d={type:n,key:Ne(),searchScope:c.value,name:N(n==="tag-search"?"imgSearch":"fuzzy-search")};u.panes.push(d),u.key=d.key},z=()=>x.value.emit("selectAll"),ie=async()=>{await aa(c.value),await L()},ke=()=>{const n=c.value;bt.set(n,s.value);const u=S.tabList[f.value.tabIdx],d={type:"local",key:Ne(),path:n,name:N("local"),stackKey:n,mode:"walk"};u.panes.push(d),u.key=d.key},Ae=_e(()=>!v.value&&A.value.some(n=>n.type==="dir"));return{locInputValue:le,isLocationEditing:Z,onLocEditEnter:Pe,onEditBtnClick:ge,addToSearchScanPathAndQuickMove:se,searchPathInfo:q,refresh:L,copyLocation:P,back:W,openNext:O,currPage:p,currLocation:c,stack:s,scroller:t,share:xe,selectAll:z,quickMoveTo:Y,onCreateFloderBtnClick:ie,onWalkBtnClick:ke,showWalkButton:Ae,searchInCurrentDir:re,backToLastUseTo:B,...Ja(()=>H(!0))}}const Ja=o=>{const t=pe([]),l=_e(()=>t.value.length>0);Xt(()=>{t.value.forEach(c=>c())});const s=Yt(Zt+"poll-interval",3);return{onPollRefreshClick:()=>{if(t.value.length){t.value.forEach(c=>c()),t.value=[];return}vt.confirm({title:N("pollRefresh"),width:640,content:()=>U("div",{},[U("p",{class:"uni-desc primary-bg"},N("pollRefreshTip")),U("div",{style:{display:"flex",alignItems:"center",gap:"4px"}},[U("span",{},N("pollInterval")+"(s): "),U(ht,{min:1,max:60*10,modelValue:s.value,"onUpdate:modelValue":c=>{s.value=c}})])]),onOk:()=>{const{clearTask:c}=Ie.run({pollInterval:s.value*1e3,action:o});t.value.push(c)}})},polling:l}};const Xa={class:"base-info"},Ya=he({__name:"BaseFileListInfo",props:{fileNum:{},selectedFileNum:{}},setup(o){return(t,l)=>(R(),j("div",Xa,[h("span",null,[ee(b(t.$t("items",[t.fileNum]))+" ",1),t.selectedFileNum?(R(),j(We,{key:0},[ee(", "+b(t.$t("selectedItems",[t.selectedFileNum])),1)],64)):J("",!0)])]))}});const Za=mt(Ya,[["__scopeId","data-v-7f9c0b15"]]),en={class:"hint"},tn={class:"location-bar"},an=["onClick"],nn={key:3,class:"location-act"},on={class:"actions"},sn=["onClick"],ln=["onClick"],rn={style:{width:"512px",background:"var(--zp-primary-background)",padding:"16px","border-radius":"4px","box-shadow":"0 0 4px var(--zp-secondary-background)",border:"1px solid var(--zp-secondary-background)"}},un={style:{padding:"4px"}},cn={style:{padding:"4px"}},dn={style:{padding:"4px"}},pn={key:0,class:"view"},fn={style:{padding:"16px 0 512px"}},vn={key:0,class:"preview-switch"},mn=he({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},mode:{},stackKey:{}},setup(o){const t=o,l=na(),{scroller:s,stackViewEl:p,props:c,multiSelectedIdxs:y,spinning:x}=kt().toRefs(),{currLocation:D,currPage:f,refresh:C,copyLocation:v,back:A,openNext:I,stack:P,quickMoveTo:O,addToSearchScanPathAndQuickMove:W,locInputValue:B,isLocationEditing:E,onLocEditEnter:T,onEditBtnClick:F,share:L,selectAll:H,onCreateFloderBtnClick:Y,onWalkBtnClick:te,showWalkButton:q,searchInCurrentDir:se,backToLastUseTo:Z,polling:le,onPollRefreshClick:ge}=Qa(),{gridItems:Pe,sortMethodConv:xe,moreActionsDropdownShow:re,sortedFiles:z,sortMethod:ie,itemSize:ke,loadNextDir:Ae,loadNextDirLoading:n,canLoadNext:u,onScroll:d,cellWidth:w,dirCoverCache:_}=Ca(),{onDrop:M,onFileDragStart:$,onFileDragEnd:V}=xa(),{onFileItemClick:G,onContextMenuClick:be,showGenInfo:ae,imageGenInfo:Qe,q:yt}=Aa({openNext:I}),{previewIdx:ue,onPreviewVisibleChange:Ct,previewing:$e,previewImgMove:Je,canPreview:Xe}=$a(),{showMenuIdx:Re}=wa(),{onClearAllSelected:wt,onReverseSelect:_t,onSelectAll:St}=_a(),{getGenDiff:It,changeIndchecked:ce,seedChangeChecked:ye,getRawGenParams:Pt,getGenDiffWatchDep:xt}=Oa(),At=()=>{z.value.length!==0&&rt(z.value,ue.value||0)};return je(()=>t,()=>{c.value=t;const m=bt.get(t.stackKey??"");m&&(P.value=m.slice())},{immediate:!0}),(m,a)=>{const $t=pa,Rt=fa,Mt=vt,Dt=va,Ft=me,Ot=oe,Ye=ma,Me=ha,Ze=ze,De=gt,Tt=ht,Ce=ka,et=ba,Lt=X,Nt=ve;return R(),K(Nt,{spinning:e(x),size:"large"},{default:g(()=>[i(Ra,{show:e(l).keepMultiSelect||!!e(y).length,onClearAllSelected:e(wt),onSelectAll:e(St),onReverseSelect:e(_t)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),i($t,{style:{display:"none"}}),h("div",{ref_key:"stackViewEl",ref:p,onDragover:a[31]||(a[31]=k(()=>{},["prevent"])),onDrop:a[32]||(a[32]=k(r=>e(M)(r),["prevent"])),class:"container"},[i(Mt,{visible:e(ae),"onUpdate:visible":a[1]||(a[1]=r=>Q(ae)?ae.value=r:null),width:"70vw","mask-closable":"",onOk:a[2]||(a[2]=r=>ae.value=!1)},{cancelText:g(()=>[]),default:g(()=>[i(Rt,{active:"",loading:!e(yt).isIdle},{default:g(()=>[h("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:a[0]||(a[0]=r=>e(Ue)(e(Qe)))},[h("div",en,b(m.$t("doubleClickToCopy")),1),ee(" "+b(e(Qe)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),h("div",tn,[h("div",{class:"breadcrumb",style:oa({flex:e(E)?1:""})},[e(E)?(R(),K(Dt,{key:0,style:{flex:"1"},value:e(B),"onUpdate:value":a[3]||(a[3]=r=>Q(B)?B.value=r:null),onClick:a[4]||(a[4]=k(()=>{},["stop"])),onKeydown:a[5]||(a[5]=k(()=>{},["stop"])),onPressEnter:e(T),"allow-clear":""},null,8,["value","onPressEnter"])):(R(),K(Ot,{key:1,style:{flex:"1"}},{default:g(()=>[(R(!0),j(We,null,st(e(P),(r,ne)=>(R(),K(Ft,{key:ne},{default:g(()=>[h("a",{onClick:k(Fe=>e(A)(ne),["prevent"])},b(r.curr==="/"?m.$t("root"):r.curr.replace(/:\/$/,m.$t("drive"))),9,an)]),_:2},1024))),128))]),_:1})),e(E)?(R(),K(Ye,{key:2,size:"small",onClick:e(T),type:"primary"},{default:g(()=>[ee(b(m.$t("go")),1)]),_:1},8,["onClick"])):(R(),j("div",nn,[m.mode==="scanned-fixed"?(R(),j("a",{key:0,onClick:a[6]||(a[6]=k((...r)=>e(Z)&&e(Z)(...r),["prevent"])),style:{margin:"0 8px 16px 0"}},[i(e(Wa))])):J("",!0),h("a",{onClick:a[7]||(a[7]=k((...r)=>e(v)&&e(v)(...r),["prevent"])),class:"copy"},b(m.$t("copy")),1),h("a",{onClick:a[8]||(a[8]=k((...r)=>e(F)&&e(F)(...r),["prevent","stop"]))},b(m.$t("edit")),1)]))],4),h("div",on,[h("a",{class:"opt",onClick:a[9]||(a[9]=k((...r)=>e(C)&&e(C)(...r),["prevent"]))},b(m.$t("refresh")),1),h("a",{class:"opt",onClick:a[10]||(a[10]=k((...r)=>e(ge)&&e(ge)(...r),["prevent"]))},b(e(le)?m.$t("stopPollRefresh"):m.$t("pollRefresh")),1),h("a",{class:"opt",onClick:k(At,["prevent"])},b(m.$t("TikTok View")),9,sn),i(De,null,{overlay:g(()=>[i(Ze,null,{default:g(()=>[i(Me,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[12]||(a[12]=k(r=>e(se)("tag-search"),["prevent"]))},b(m.$t("imgSearch")),1)]),_:1}),i(Me,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[13]||(a[13]=k(r=>e(se)("fuzzy-search"),["prevent"]))},b(m.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[11]||(a[11]=k(()=>{},["prevent"]))},[ee(b(m.$t("search"))+" ",1),i(e(Ee))])]),_:1}),e(q)?(R(),j("a",{key:0,class:"opt",onClick:a[14]||(a[14]=k((...r)=>e(te)&&e(te)(...r),["prevent"]))}," Walk ")):J("",!0),h("a",{class:"opt",onClick:a[15]||(a[15]=k((...r)=>e(H)&&e(H)(...r),["prevent","stop"]))},b(m.$t("selectAll")),1),e(sa)?J("",!0):(R(),j("a",{key:1,class:"opt",onClick:a[16]||(a[16]=k((...r)=>e(L)&&e(L)(...r),["prevent"]))},b(m.$t("share")),1)),i(De,null,{overlay:g(()=>[i(Ze,null,{default:g(()=>[(R(!0),j(We,null,st(e(l).quickMovePaths,r=>(R(),K(Me,{key:r.dir},{default:g(()=>[h("a",{onClick:k(ne=>e(O)(r.dir),["prevent"])},b(r.zh),9,ln)]),_:2},1024))),128))]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[17]||(a[17]=k(()=>{},["prevent"]))},[ee(b(m.$t("quickMove"))+" ",1),i(e(Ee))])]),_:1}),i(De,{trigger:["click"],visible:e(re),"onUpdate:visible":a[27]||(a[27]=r=>Q(re)?re.value=r:null),placement:"bottomLeft",getPopupContainer:r=>r.parentNode},{overlay:g(()=>[h("div",rn,[i(Lt,la(ra({labelCol:{span:10},wrapperCol:{span:14}})),{default:g(()=>[i(Ce,{label:m.$t("gridCellWidth")},{default:g(()=>[i(Tt,{modelValue:e(w),"onUpdate:modelValue":a[19]||(a[19]=r=>Q(w)?w.value=r:null),max:1024,min:64,step:16},null,8,["modelValue"])]),_:1},8,["label"]),i(Ce,{label:m.$t("sortingMethod")},{default:g(()=>[i(e(ia),{value:e(ie),"onUpdate:value":a[20]||(a[20]=r=>Q(ie)?ie.value=r:null),onClick:a[21]||(a[21]=k(()=>{},["stop"])),conv:e(xe),options:e(ua)},null,8,["value","conv","options"])]),_:1},8,["label"]),i(Ce,{label:m.$t("showChangeIndicators")},{default:g(()=>[i(et,{checked:e(ce),"onUpdate:checked":a[22]||(a[22]=r=>Q(ce)?ce.value=r:null),onClick:e(Pt)},null,8,["checked","onClick"])]),_:1},8,["label"]),i(Ce,{label:m.$t("seedAsChange")},{default:g(()=>[i(et,{checked:e(ye),"onUpdate:checked":a[23]||(a[23]=r=>Q(ye)?ye.value=r:null),disabled:!e(ce)},null,8,["checked","disabled"])]),_:1},8,["label"]),h("div",un,[h("a",{onClick:a[24]||(a[24]=k((...r)=>e(W)&&e(W)(...r),["prevent"]))},b(m.$t("addToSearchScanPathAndQuickMove")),1)]),h("div",cn,[h("a",{onClick:a[25]||(a[25]=k(r=>e(ca)(e(D)+"/"),["prevent"]))},b(m.$t("openWithLocalFileBrowser")),1)]),h("div",dn,[h("a",{onClick:a[26]||(a[26]=k((...r)=>e(Y)&&e(Y)(...r),["prevent"]))},b(m.$t("createFolder")),1)])]),_:1},16)])]),default:g(()=>[h("a",{class:"opt",onClick:a[18]||(a[18]=k(()=>{},["prevent"]))},b(m.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(f)?(R(),j("div",pn,[i(e(Sa),{class:"file-list",items:e(z),ref_key:"scroller",ref:s,onScroll:e(d),"item-size":e(ke).first,"key-field":"fullpath","item-secondary-size":e(ke).second,gridItems:e(Pe)},{default:g(({item:r,index:ne})=>[i(Ia,{idx:parseInt(ne),file:r,"full-screen-preview-image-url":e(z)[e(ue)]?e(da)(e(z)[e(ue)]):"","show-menu-idx":e(Re),"onUpdate:showMenuIdx":a[28]||(a[28]=Fe=>Q(Re)?Re.value=Fe:null),selected:e(y).includes(ne),"cell-width":e(w),onFileItemClick:e(G),onDragstart:e($),onDragend:e(V),onPreviewVisibleChange:e(Ct),onContextMenuClick:e(be),onTiktokView:(Fe,Bt)=>e(rt)(e(z),Bt),"is-selected-mutil-files":e(y).length>1,"enable-change-indicator":e(ce),"seed-change-checked":e(ye),"get-gen-diff":e(It),"get-gen-diff-watch-dep":e(xt),previewing:e($e),"cover-files":e(_).get(r.fullpath)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick","onTiktokView","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","previewing","cover-files"])]),after:g(()=>[h("div",fn,[t.mode==="walk"?(R(),K(Ye,{key:0,onClick:e(Ae),loading:e(n),block:"",type:"primary",disabled:!e(u),ghost:""},{default:g(()=>[ee(b(m.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])):J("",!0)])]),_:1},8,["items","onScroll","item-size","item-secondary-size","gridItems"]),e($e)?(R(),j("div",vn,[i(e(Ma),{onClick:a[29]||(a[29]=r=>e(Je)("prev")),class:lt({disable:!e(Xe)("prev")})},null,8,["class"]),i(e(Da),{onClick:a[30]||(a[30]=r=>e(Je)("next")),class:lt({disable:!e(Xe)("next")})},null,8,["class"])])):J("",!0)])):J("",!0)],544),e($e)?(R(),K(Fa,{key:0,file:e(z)[e(ue)],idx:e(ue),onContextMenuClick:e(be)},null,8,["file","idx","onContextMenuClick"])):J("",!0),i(Za,{"file-num":e(z).length,"selected-file-num":e(y).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const Tn=mt(mn,[["__scopeId","data-v-8d4bd42a"]]);export{Tn as default}; diff --git a/vue/dist/assets/useGenInfoDiff-13d2ea38.js b/vue/dist/assets/useGenInfoDiff-4c9e8f19.js similarity index 91% rename from vue/dist/assets/useGenInfoDiff-13d2ea38.js rename to vue/dist/assets/useGenInfoDiff-4c9e8f19.js index 07b0775..02f4e87 100644 --- a/vue/dist/assets/useGenInfoDiff-13d2ea38.js +++ b/vue/dist/assets/useGenInfoDiff-4c9e8f19.js @@ -1 +1 @@ -import{u as G,g as d}from"./FileItem-cc53e03a.js";import{r as b,t as j,ct as m,cu as y,cv as D}from"./index-0205daf8.js";const r=new Map,A=()=>{const{useEventListen:k,sortedFiles:f,getViewableAreaFiles:w}=G().toRefs(),c=b(d.defaultChangeIndchecked),u=b(d.defaultSeedChangeChecked),g=async()=>{if(await j(100),!c.value)return;const o=w.value().filter(e=>m(e.fullpath)&&!e.gen_info_obj);if(!o.length)return;const t=await y(o.map(e=>e.fullpath).filter(e=>!r.has(e)));o.forEach(e=>{const i=t[e.fullpath]||r.get(e.fullpath)||"";r.set(e.fullpath,i),e.gen_info_obj=D(i),e.gen_info_raw=i})};k.value("viewableAreaFilesChange",g);const F=o=>{const t=f.value;return[o,u.value,t[o-1],t[o],t[o+1]]};function I(o,t,e,i){const a={diff:{},empty:!0,ownFile:"",otherFile:""};if(t+e<0||t+e>=f.value.length||f.value[t]==null||!("gen_info_obj"in f.value[t])||!("gen_info_obj"in f.value[t+e]))return a;const l=o,s=f.value[t+e].gen_info_obj;if(s==null)return a;const h=["hashes","resources"];a.diff={},a.ownFile=i.name,a.otherFile=f.value[t+e].name,a.empty=!1,u.value||h.push("seed");for(const n in l)if(!h.includes(n)){if(!(n in s)){a.diff[n]="+";continue}if(l[n]!=s[n])if(n.includes("rompt")&&l[n]!=""&&s[n]!=""){const p=l[n].split(","),C=s[n].split(",");let _=0;for(const v in p)p[v]!=C[v]&&_++;a.diff[n]=_}else a.diff[n]=[l[n],s[n]]}return a}return{getGenDiff:I,changeIndchecked:c,seedChangeChecked:u,getRawGenParams:()=>g(),getGenDiffWatchDep:F}};export{A as u}; +import{u as G,g as d}from"./FileItem-6ddd7179.js";import{r as b,t as j,ct as m,cu as y,cv as D}from"./index-157194fb.js";const r=new Map,A=()=>{const{useEventListen:k,sortedFiles:f,getViewableAreaFiles:w}=G().toRefs(),c=b(d.defaultChangeIndchecked),u=b(d.defaultSeedChangeChecked),g=async()=>{if(await j(100),!c.value)return;const o=w.value().filter(e=>m(e.fullpath)&&!e.gen_info_obj);if(!o.length)return;const t=await y(o.map(e=>e.fullpath).filter(e=>!r.has(e)));o.forEach(e=>{const i=t[e.fullpath]||r.get(e.fullpath)||"";r.set(e.fullpath,i),e.gen_info_obj=D(i),e.gen_info_raw=i})};k.value("viewableAreaFilesChange",g);const F=o=>{const t=f.value;return[o,u.value,t[o-1],t[o],t[o+1]]};function I(o,t,e,i){const a={diff:{},empty:!0,ownFile:"",otherFile:""};if(t+e<0||t+e>=f.value.length||f.value[t]==null||!("gen_info_obj"in f.value[t])||!("gen_info_obj"in f.value[t+e]))return a;const l=o,s=f.value[t+e].gen_info_obj;if(s==null)return a;const h=["hashes","resources"];a.diff={},a.ownFile=i.name,a.otherFile=f.value[t+e].name,a.empty=!1,u.value||h.push("seed");for(const n in l)if(!h.includes(n)){if(!(n in s)){a.diff[n]="+";continue}if(l[n]!=s[n])if(n.includes("rompt")&&l[n]!=""&&s[n]!=""){const p=l[n].split(","),C=s[n].split(",");let _=0;for(const v in p)p[v]!=C[v]&&_++;a.diff[n]=_}else a.diff[n]=[l[n],s[n]]}return a}return{getGenDiff:I,changeIndchecked:c,seedChangeChecked:u,getRawGenParams:()=>g(),getGenDiffWatchDep:F}};export{A as u}; diff --git a/vue/dist/index.html b/vue/dist/index.html index d7435e1..5444e45 100644 --- a/vue/dist/index.html +++ b/vue/dist/index.html @@ -7,7 +7,7 @@ Infinite Image Browsing - + diff --git a/vue/src/api/db.ts b/vue/src/api/db.ts index 28a9ae2..5e11abc 100644 --- a/vue/src/api/db.ts +++ b/vue/src/api/db.ts @@ -350,10 +350,26 @@ export interface TagGraphResp { selected_tags: number abstraction_layers: number total_links: number + topic_cluster_cache_key?: string } } export const getClusterTagGraph = async (req: TagGraphReq) => { - const resp = await axiosInst.value.post('/db/cluster_tag_graph', req, { timeout: 60000 }) + // Large datasets can take longer to build / transfer; keep a generous timeout. + const resp = await axiosInst.value.post('/db/cluster_tag_graph', req, { timeout: 300000 }) return resp.data as TagGraphResp +} + +export interface TagGraphClusterPathsReq { + topic_cluster_cache_key: string + cluster_id: string +} + +export interface TagGraphClusterPathsResp { + paths: string[] +} + +export const getClusterTagGraphClusterPaths = async (req: TagGraphClusterPathsReq) => { + const resp = await axiosInst.value.post('/db/cluster_tag_graph_cluster_paths', req, { timeout: 300000 }) + return resp.data as TagGraphClusterPathsResp } \ No newline at end of file diff --git a/vue/src/page/TopicSearch/TagRelationGraph.vue b/vue/src/page/TopicSearch/TagRelationGraph.vue index 1469146..f431afc 100644 --- a/vue/src/page/TopicSearch/TagRelationGraph.vue +++ b/vue/src/page/TopicSearch/TagRelationGraph.vue @@ -67,7 +67,7 @@