diff --git a/javascript/index.js b/javascript/index.js index c63617a..888340d 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 e25a532..4f4ee24 100644 --- a/scripts/iib/tag_graph.py +++ b/scripts/iib/tag_graph.py @@ -129,13 +129,21 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } {"role": "user", "content": user_prompt} ], "temperature": 0.0, - "max_tokens": 32768, # Increased significantly for large keyword sets + "max_tokens": 32768, "stream": True, } + request_id = f"tg_{int(time.time() * 1000)}_{os.getpid()}" + logger.info( + "[tag_graph][%s] LLM request: model=%s tags_count=%s max_attempts=%s timeout=%s", + request_id, model, len(tags), _LLM_MAX_ATTEMPTS, _LLM_REQUEST_TIMEOUT_SEC + ) + logger.debug("[tag_graph][%s] LLM request payload: %s", request_id, json.dumps(payload, ensure_ascii=False, indent=2)) + # Retry a few times then fallback quickly (to avoid frontend timeout on large datasets). # Use streaming requests to avoid blocking too long on a single non-stream response. last_error = "" + full_response_content = "" for attempt in range(1, _LLM_MAX_ATTEMPTS + 1): try: resp = requests.post( @@ -147,24 +155,37 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } ) # Check status early if resp.status_code != 200: - body = (resp.text or "")[:400] + body = resp.text or "" 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) + last_error = f"api_error_retriable: status={resp.status_code} body={body}" + logger.warning( + "[tag_graph][%s] llm_http_error attempt=%s status=%s body=%s", + request_id, attempt, resp.status_code, body + ) continue - logger.error("[tag_graph] llm_http_client_error attempt=%s status=%s body=%s", attempt, resp.status_code, body) + logger.error( + "[tag_graph][%s] llm_http_client_error attempt=%s status=%s body=%s", + request_id, attempt, resp.status_code, body + ) raise Exception(f"API client error: {resp.status_code} {body}") # Accumulate streamed content chunks content = accumulate_streaming_response(resp) - print(f"[tag_graph] content: {content[:500]}...") + full_response_content = content + logger.info( + "[tag_graph][%s] llm_response attempt=%s content_length=%s", + request_id, attempt, len(content) + ) + logger.debug("[tag_graph][%s] llm_response content: %s", request_id, content) + # Strategy 1: Direct parse (if response is pure JSON) try: result = json.loads(content) if isinstance(result, dict) and 'layers' in result: + logger.info("[tag_graph][%s] llm_success attempt=%s layers_count=%s", request_id, attempt, len(result.get('layers', []))) return result - except Exception: - pass + except Exception as parse_err: + logger.debug("[tag_graph][%s] direct_parse_failed attempt=%s err=%s", request_id, attempt, str(parse_err)) # Strategy 2: Extract JSON from markdown code blocks json_str = None @@ -178,7 +199,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}" - logger.warning("[tag_graph] llm_no_json attempt=%s err=%s", attempt, last_error, stack_info=True) + logger.warning("[tag_graph][%s] llm_no_json attempt=%s content=%s", request_id, attempt, content) continue # Clean up common JSON issues @@ -188,27 +209,35 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } try: 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], stack_info=True) + last_error = f"json_parse_error: {e} json_str={json_str}" + logger.warning( + "[tag_graph][%s] llm_json_parse_error attempt=%s err=%s json_str=%s", + request_id, attempt, str(e), json_str + ) continue 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, stack_info=True) + last_error = f"invalid_structure: result={str(result)}" + logger.warning( + "[tag_graph][%s] llm_invalid_structure attempt=%s result=%s", + request_id, attempt, str(result) + ) continue + logger.info("[tag_graph][%s] llm_success attempt=%s layers_count=%s", request_id, attempt, len(result.get('layers', []))) return result 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, stack_info=True) + logger.warning( + "[tag_graph][%s] llm_request_error attempt=%s err=%s", + request_id, attempt, str(e) + ) continue # 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, + "[tag_graph][%s] llm_failed all_attempts=%s timeout_sec=%s last_error=%s full_response=%s", + request_id, _LLM_MAX_ATTEMPTS, _LLM_REQUEST_TIMEOUT_SEC, last_error, full_response_content ) raise HTTPException( status_code=500, diff --git a/scripts/iib/topic_cluster.py b/scripts/iib/topic_cluster.py index 21d5c63..ae89fe5 100644 --- a/scripts/iib/topic_cluster.py +++ b/scripts/iib/topic_cluster.py @@ -17,6 +17,7 @@ from pydantic import BaseModel from scripts.iib.db.datamodel import DataBase, ImageEmbedding, ImageEmbeddingFail, TopicClusterCache, TopicTitleCache from scripts.iib.tool import cwd, accumulate_streaming_response +from scripts.iib.logger import logger # Perf deps (required for this feature) _np = None @@ -527,75 +528,125 @@ def _call_chat_title_sync( # Retry up to 5 times for: network errors, API errors, parsing failures. attempt_debug: List[Dict] = [] last_err = "" + full_response_content = "" + request_id = f"tc_{int(time.time() * 1000)}_{os.getpid()}" + + logger.info( + "[topic_cluster][%s] LLM request: model=%s samples=%s existing_keywords=%s max_tokens=%s timeout=120", + request_id, model, len(samples), len(existing_keywords) if existing_keywords else 0, payload.get("max_tokens", "N/A") + ) + logger.debug("[topic_cluster][%s] LLM request payload: %s", request_id, json.dumps(payload, ensure_ascii=False, indent=2)) + for attempt in range(1, 6): try: resp = requests.post(url, json=payload, headers=headers, timeout=120) except requests.RequestException as e: last_err = f"network_error: {type(e).__name__}: {e}" - attempt_debug.append({"attempt": attempt, "reason": "network_error", "error": str(e)[:400]}) + attempt_debug.append({"attempt": attempt, "reason": "network_error", "error": str(e)}) + logger.warning( + "[topic_cluster][%s] llm_request_error attempt=%s err=%s", + request_id, attempt, str(e) + ) continue # Retry on server-side errors (5xx) and rate limits (429), but not client errors (4xx except 429). if resp.status_code != 200: - body = (resp.text or "")[:600] - # 401 -> 400 as per your requirement + body = resp.text or "" status = 400 if resp.status_code == 401 else resp.status_code - # Retry on 429 (rate limit) or 5xx (server error) if resp.status_code == 429 or resp.status_code >= 500: - last_err = f"api_error_retriable: status={status}; body={body}" - attempt_debug.append({"attempt": attempt, "reason": "api_error_retriable", "status": status, "body": body[:200]}) + last_err = f"api_error_retriable: status={status} body={body}" + attempt_debug.append({"attempt": attempt, "reason": "api_error_retriable", "status": status, "body": body}) + logger.warning( + "[topic_cluster][%s] llm_http_error attempt=%s status=%s body=%s", + request_id, attempt, status, body + ) continue # 4xx (except 429): fail immediately (client error, not retriable) + logger.error( + "[topic_cluster][%s] llm_http_client_error status=%s body=%s", + request_id, status, body + ) raise HTTPException(status_code=status, detail=body) - + try: # Use streaming response accumulation content = accumulate_streaming_response(resp) + full_response_content = content except Exception as e: last_err = f"streaming_error: {type(e).__name__}: {e}" - attempt_debug.append({"attempt": attempt, "reason": "streaming_error", "error": str(e)[:400]}) + attempt_debug.append({"attempt": attempt, "reason": "streaming_error", "error": str(e)}) + logger.warning( + "[topic_cluster][%s] llm_streaming_error attempt=%s err=%s", + request_id, attempt, str(e) + ) continue + logger.info( + "[topic_cluster][%s] llm_response attempt=%s content_length=%s", + request_id, attempt, len(content) + ) + logger.debug("[topic_cluster][%s] llm_response content: %s", request_id, content) + # Extract JSON from content m = re.search(r"\{[\s\S]*\}", content) if not m: - snippet = (content or "")[:400].replace("\n", "\\n") - last_err = f"no_json_object; content_snippet={snippet}" - attempt_debug.append({"attempt": attempt, "reason": "no_json_object", "snippet": snippet}) + last_err = f"no_json_object; content={content}" + attempt_debug.append({"attempt": attempt, "reason": "no_json_object", "content": content}) + logger.warning( + "[topic_cluster][%s] llm_no_json attempt=%s content=%s", + request_id, attempt, content + ) continue json_str = m.group(0) try: obj = json.loads(json_str) except Exception as e: - snippet = (json_str or "")[:400].replace("\n", "\\n") - last_err = f"json_parse_failed: {type(e).__name__}: {e}; json_snippet={snippet}" - attempt_debug.append({"attempt": attempt, "reason": "json_parse_failed", "snippet": snippet}) + last_err = f"json_parse_failed: {type(e).__name__}: {e}; json_str={json_str}" + attempt_debug.append({"attempt": attempt, "reason": "json_parse_failed", "json_str": json_str, "error": str(e)}) + logger.warning( + "[topic_cluster][%s] llm_json_parse_error attempt=%s err=%s json_str=%s", + request_id, attempt, str(e), json_str + ) continue if not isinstance(obj, dict): - snippet = (json_str or "")[:200].replace("\n", "\\n") - last_err = f"json_not_object; json_snippet={snippet}" - attempt_debug.append({"attempt": attempt, "reason": "json_not_object", "snippet": snippet}) + last_err = f"json_not_object; json_str={json_str}" + attempt_debug.append({"attempt": attempt, "reason": "json_not_object", "json_str": json_str}) + logger.warning( + "[topic_cluster][%s] llm_json_not_object attempt=%s json_str=%s", + request_id, attempt, json_str + ) continue title = str(obj.get("title") or "").strip() keywords = obj.get("keywords") or [] if not title: - snippet = (json_str or "")[:200].replace("\n", "\\n") - last_err = f"missing_title; json_snippet={snippet}" - attempt_debug.append({"attempt": attempt, "reason": "missing_title", "snippet": snippet}) + last_err = f"missing_title; json_str={json_str}" + attempt_debug.append({"attempt": attempt, "reason": "missing_title", "json_str": json_str}) + logger.warning( + "[topic_cluster][%s] llm_missing_title attempt=%s json_str=%s", + request_id, attempt, json_str + ) continue if not isinstance(keywords, list): keywords = [] keywords = [str(x).strip() for x in keywords if str(x).strip()][:6] + logger.info( + "[topic_cluster][%s] llm_success attempt=%s title=%s keywords=%s", + request_id, attempt, title, keywords + ) return {"title": title[:24], "keywords": keywords} # Exhausted retries - dbg = json.dumps(attempt_debug, ensure_ascii=False)[:1200] + dbg = json.dumps(attempt_debug, ensure_ascii=False) + logger.error( + "[topic_cluster][%s] llm_failed all_attempts=5 last_error=%s attempts=%s full_response=%s", + request_id, last_err, dbg, full_response_content + ) raise HTTPException( status_code=502, - detail=f"Chat API JSON extraction failed after 5 attempts; last_error={last_err}; attempts={dbg}", + detail=f"Chat API JSON extraction failed after 5 attempts; request_id={request_id}; last_error={last_err}; attempts={dbg}", ) diff --git a/vue/dist/assets/Checkbox-65a2741e.js b/vue/dist/assets/Checkbox-da9add50.js similarity index 97% rename from vue/dist/assets/Checkbox-65a2741e.js rename to vue/dist/assets/Checkbox-da9add50.js index bf246bc..9447bcd 100644 --- a/vue/dist/assets/Checkbox-65a2741e.js +++ b/vue/dist/assets/Checkbox-da9add50.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-64cbe4df.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-043a7b26.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-2b09179d.js b/vue/dist/assets/FileItem-032f0ab0.js similarity index 99% rename from vue/dist/assets/FileItem-2b09179d.js rename to vue/dist/assets/FileItem-032f0ab0.js index 3338948..6a61ded 100644 --- a/vue/dist/assets/FileItem-2b09179d.js +++ b/vue/dist/assets/FileItem-032f0ab0.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,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-64cbe4df.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js";import{i as Gt}from"./_isIterateeCall-e4f71c4d.js";import{_ as Yt}from"./index-8c941714.js";import{D as G,a as he}from"./index-01c239de.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-043a7b26.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js";import{i as Gt}from"./_isIterateeCall-537db5dd.js";import{_ as Yt}from"./index-136f922f.js";import{D as G,a as he}from"./index-c87c1cca.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-78cd67a3"),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-78cd67a3"]]),_s=i=>(Se("data-v-0f74bba6"),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=>({"5a16e08d":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-0f74bba6"]]);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-3820ef66.js b/vue/dist/assets/ImgSliPagePane-ba655e37.js similarity index 82% rename from vue/dist/assets/ImgSliPagePane-3820ef66.js rename to vue/dist/assets/ImgSliPagePane-ba655e37.js index 6dedafd..afe57ed 100644 --- a/vue/dist/assets/ImgSliPagePane-3820ef66.js +++ b/vue/dist/assets/ImgSliPagePane-ba655e37.js @@ -1 +1 @@ -import{d as a,U as t,V as s,c as n,cR as _,a0 as o}from"./index-64cbe4df.js";const c={class:"img-sli-container"},i=a({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(l){return(e,r)=>(t(),s("div",c,[n(_,{left:e.left,right:e.right},null,8,["left","right"])]))}});const d=o(i,[["__scopeId","data-v-ae3fb9a8"]]);export{d as default}; +import{d as a,U as t,V as s,c as n,cR as _,a0 as o}from"./index-043a7b26.js";const c={class:"img-sli-container"},i=a({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(l){return(e,r)=>(t(),s("div",c,[n(_,{left:e.left,right:e.right},null,8,["left","right"])]))}});const d=o(i,[["__scopeId","data-v-ae3fb9a8"]]);export{d as default}; diff --git a/vue/dist/assets/MatchedImageGrid-a60bfc42.js b/vue/dist/assets/MatchedImageGrid-1b69852b.js similarity index 87% rename from vue/dist/assets/MatchedImageGrid-a60bfc42.js rename to vue/dist/assets/MatchedImageGrid-1b69852b.js index f5d4ca0..523e6bc 100644 --- a/vue/dist/assets/MatchedImageGrid-a60bfc42.js +++ b/vue/dist/assets/MatchedImageGrid-1b69852b.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-64cbe4df.js";import{S as Te}from"./index-ed3f9da1.js";import{_ as Ae}from"./index-f0ba7b9c.js";import{o as N,L as Ve,R as $e,f as De,M as Fe}from"./MultiSelectKeep-e2324426.js";import{c as Re,d as ze,F as Be}from"./FileItem-2b09179d.js";import{c as Ge,u as Ue}from"./hook-6b091d6d.js";import"./shortcut-86575428.js";import"./Checkbox-65a2741e.js";/* empty css */import"./index-53055c61.js";import"./index-01c239de.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js";import"./_isIterateeCall-e4f71c4d.js";import"./index-8c941714.js";import"./useGenInfoDiff-bfe60e2e.js";const Ee=c=>(be("data-v-4815fec6"),c=c(),ye(),c),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(c){const k=c,m=he(!1),g=Ge(t=>xe({...k.selectedTagIds,random_sort:m.value},t)),{queue:P,images:s,onContextMenuClickU:y,stackViewEl:J,previewIdx:r,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 ce=Fe,re=Ce,ue=Se,pe=Ae,_=L,me=L,ge=Te;return u(),S("div",{class:"container",ref_key:"stackViewEl",ref:J},[n(ce,{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(re,{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(r)]?e(Ie)(e(s)[e(r)]):"",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(r)]?(u(),U(De,{key:0,file:e(s)[e(r)],idx:e(r),onContextMenuClick:e(y)},null,8,["file","idx","onContextMenuClick"])):b("",!0)],512)}}});const ct=Me(qe,[["__scopeId","data-v-4815fec6"]]);export{ct 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-043a7b26.js";import{S as Te}from"./index-d7774373.js";import{_ as Ae}from"./index-e6c51938.js";import{o as N,L as Ve,R as $e,f as De,M as Fe}from"./MultiSelectKeep-047e6315.js";import{c as Re,d as ze,F as Be}from"./FileItem-032f0ab0.js";import{c as Ge,u as Ue}from"./hook-c2da9ac8.js";import"./shortcut-94e5bafb.js";import"./Checkbox-da9add50.js";/* empty css */import"./index-6b635fab.js";import"./index-c87c1cca.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js";import"./_isIterateeCall-537db5dd.js";import"./index-136f922f.js";import"./useGenInfoDiff-0d82f93a.js";const Ee=c=>(be("data-v-4815fec6"),c=c(),ye(),c),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(c){const k=c,m=he(!1),g=Ge(t=>xe({...k.selectedTagIds,random_sort:m.value},t)),{queue:P,images:s,onContextMenuClickU:y,stackViewEl:J,previewIdx:r,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 ce=Fe,re=Ce,ue=Se,pe=Ae,_=L,me=L,ge=Te;return u(),S("div",{class:"container",ref_key:"stackViewEl",ref:J},[n(ce,{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(re,{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(r)]?e(Ie)(e(s)[e(r)]):"",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(r)]?(u(),U(De,{key:0,file:e(s)[e(r)],idx:e(r),onContextMenuClick:e(y)},null,8,["file","idx","onContextMenuClick"])):b("",!0)],512)}}});const ct=Me(qe,[["__scopeId","data-v-4815fec6"]]);export{ct as default}; diff --git a/vue/dist/assets/MatchedImageGrid-9f060dd1.js b/vue/dist/assets/MatchedImageGrid-e8d81cbf.js similarity index 89% rename from vue/dist/assets/MatchedImageGrid-9f060dd1.js rename to vue/dist/assets/MatchedImageGrid-e8d81cbf.js index 8b3018b..e0a5235 100644 --- a/vue/dist/assets/MatchedImageGrid-9f060dd1.js +++ b/vue/dist/assets/MatchedImageGrid-e8d81cbf.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 a,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-64cbe4df.js";import{S as be}from"./index-ed3f9da1.js";import{o as N,L as ye,R as Me,f as Ae,M as Ve}from"./MultiSelectKeep-e2324426.js";import{c as Fe,d as ze,F as De}from"./FileItem-2b09179d.js";import{u as Te}from"./hook-6b091d6d.js";import"./shortcut-86575428.js";import"./Checkbox-65a2741e.js";/* empty css */import"./index-53055c61.js";import"./index-f0ba7b9c.js";import"./index-01c239de.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js";import"./_isIterateeCall-e4f71c4d.js";import"./index-8c941714.js";import"./useGenInfoDiff-bfe60e2e.js";const x=r=>(Se("data-v-aea581a5"),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:ae,onSelectAll:oe,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(ae),onSelectAll:e(oe),onReverseSelect:e(de)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),s(S,{size:"large",spinning:!e(W).isIdle||t.loading},{default:a(()=>{var T,$,G,R;return[s(C,{visible:e(k),"onUpdate:visible":i[1]||(i[1]=o=>P(k)?k.value=o:null),width:"70vw","mask-closable":"",onOk:i[2]||(i[2]=o=>k.value=!1)},{cancelText:a(()=>[]),default:a(()=>[s(f,{active:"",loading:!e(Q).isIdle},{default:a(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:i[0]||(i[0]=o=>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:a(()=>[v(c(n.$t("tiktokView")),1)]),_:1},8,["disabled"]),s(m,{onClick:e(ee),disabled:!(($=e(l))!=null&&$.length)},{default:a(()=>[v(c(n.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick","disabled"]),s(m,{onClick:e(Z),disabled:!((G=e(l))!=null&&G.length)},{default:a(()=>[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:a(()=>[Le]),default:a(({item:o,index:B})=>[s(De,{idx:B,file:o,"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]=o=>e(M)("prev")),class:E({disable:!e(A)("prev")})},null,8,["class"]),s(e(Me),{onClick:i[5]||(i[5]=o=>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-aea581a5"]]);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 a,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-043a7b26.js";import{S as be}from"./index-d7774373.js";import{o as N,L as ye,R as Me,f as Ae,M as Ve}from"./MultiSelectKeep-047e6315.js";import{c as Fe,d as ze,F as De}from"./FileItem-032f0ab0.js";import{u as Te}from"./hook-c2da9ac8.js";import"./shortcut-94e5bafb.js";import"./Checkbox-da9add50.js";/* empty css */import"./index-6b635fab.js";import"./index-e6c51938.js";import"./index-c87c1cca.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js";import"./_isIterateeCall-537db5dd.js";import"./index-136f922f.js";import"./useGenInfoDiff-0d82f93a.js";const x=r=>(Se("data-v-aea581a5"),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:ae,onSelectAll:oe,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(ae),onSelectAll:e(oe),onReverseSelect:e(de)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),s(S,{size:"large",spinning:!e(W).isIdle||t.loading},{default:a(()=>{var T,$,G,R;return[s(C,{visible:e(k),"onUpdate:visible":i[1]||(i[1]=o=>P(k)?k.value=o:null),width:"70vw","mask-closable":"",onOk:i[2]||(i[2]=o=>k.value=!1)},{cancelText:a(()=>[]),default:a(()=>[s(f,{active:"",loading:!e(Q).isIdle},{default:a(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:i[0]||(i[0]=o=>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:a(()=>[v(c(n.$t("tiktokView")),1)]),_:1},8,["disabled"]),s(m,{onClick:e(ee),disabled:!(($=e(l))!=null&&$.length)},{default:a(()=>[v(c(n.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick","disabled"]),s(m,{onClick:e(Z),disabled:!((G=e(l))!=null&&G.length)},{default:a(()=>[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:a(()=>[Le]),default:a(({item:o,index:B})=>[s(De,{idx:B,file:o,"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]=o=>e(M)("prev")),class:E({disable:!e(A)("prev")})},null,8,["class"]),s(e(Me),{onClick:i[5]||(i[5]=o=>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-aea581a5"]]);export{st as default}; diff --git a/vue/dist/assets/MultiSelectKeep-e2324426.js b/vue/dist/assets/MultiSelectKeep-047e6315.js similarity index 99% rename from vue/dist/assets/MultiSelectKeep-e2324426.js rename to vue/dist/assets/MultiSelectKeep-047e6315.js index 5476751..1e09cf8 100644 --- a/vue/dist/assets/MultiSelectKeep-e2324426.js +++ b/vue/dist/assets/MultiSelectKeep-047e6315.js @@ -1,4 +1,4 @@ -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-64cbe4df.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-2b09179d.js";import{C as Ln,g as Sn}from"./shortcut-86575428.js";/* empty css */import{_ as En}from"./index-53055c61.js";import{_ as An}from"./index-f0ba7b9c.js";import{D as Fn}from"./index-01c239de.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(` +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-043a7b26.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-032f0ab0.js";import{C as Ln,g as Sn}from"./shortcut-94e5bafb.js";/* empty css */import{_ as En}from"./index-6b635fab.js";import{_ as An}from"./index-e6c51938.js";import{D as Fn}from"./index-c87c1cca.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 diff --git a/vue/dist/assets/SubstrSearch-35cc8dd0.js b/vue/dist/assets/SubstrSearch-434c65f6.js similarity index 93% rename from vue/dist/assets/SubstrSearch-35cc8dd0.js rename to vue/dist/assets/SubstrSearch-434c65f6.js index de7323f..1461011 100644 --- a/vue/dist/assets/SubstrSearch-35cc8dd0.js +++ b/vue/dist/assets/SubstrSearch-434c65f6.js @@ -1 +1 @@ -import{c as a,A as Fe,d as Ue,c9 as Be,r as b,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-64cbe4df.js";import{S as ot}from"./index-ed3f9da1.js";/* empty css */import"./index-56137fc5.js";import"./index-d2c56e4b.js";import{c as rt,d as dt,F as ut}from"./FileItem-2b09179d.js";import{M as ct,o as pt,L as ft,R as vt,f as mt}from"./MultiSelectKeep-e2324426.js";import{c as gt,u as _t}from"./hook-6b091d6d.js";import{f as M,H as ie,_ as ht,a as yt}from"./searchHistory-a27d7522.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js";/* empty css */import"./index-53055c61.js";import"./_isIterateeCall-e4f71c4d.js";import"./index-8c941714.js";import"./index-01c239de.js";import"./shortcut-86575428.js";import"./Checkbox-65a2741e.js";import"./index-f0ba7b9c.js";import"./useGenInfoDiff-bfe60e2e.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 bt=kt;function oe(u){for(var c=1;c(at("data-v-e1bd92bd"),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=b(!1),_=b(""),$=b(!1),S=b(c.searchScope??""),C=b(!1),P=b(0),x=b("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:w,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:be,getGenDiffWatchDep:we}=_t(T),m=b();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(()=>w.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 w.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(w).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(w).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(w).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(w).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(w).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(be),"get-gen-diff-watch-dep":e(we),"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-e1bd92bd"]]);export{na as default}; +import{c as a,A as Fe,d as Ue,c9 as Be,r as b,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-043a7b26.js";import{S as ot}from"./index-d7774373.js";/* empty css */import"./index-3432146f.js";import"./index-394c80fb.js";import{c as rt,d as dt,F as ut}from"./FileItem-032f0ab0.js";import{M as ct,o as pt,L as ft,R as vt,f as mt}from"./MultiSelectKeep-047e6315.js";import{c as gt,u as _t}from"./hook-c2da9ac8.js";import{f as M,H as ie,_ as ht,a as yt}from"./searchHistory-b9ead0fd.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js";/* empty css */import"./index-6b635fab.js";import"./_isIterateeCall-537db5dd.js";import"./index-136f922f.js";import"./index-c87c1cca.js";import"./shortcut-94e5bafb.js";import"./Checkbox-da9add50.js";import"./index-e6c51938.js";import"./useGenInfoDiff-0d82f93a.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 bt=kt;function oe(u){for(var c=1;c(at("data-v-e1bd92bd"),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=b(!1),_=b(""),$=b(!1),S=b(c.searchScope??""),C=b(!1),P=b(0),x=b("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:w,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:be,getGenDiffWatchDep:we}=_t(T),m=b();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(()=>w.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 w.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(w).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(w).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(w).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(w).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(w).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(be),"get-gen-diff-watch-dep":e(we),"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-e1bd92bd"]]);export{na as default}; diff --git a/vue/dist/assets/TagSearch-a4041cb3.js b/vue/dist/assets/TagSearch-41700db5.js similarity index 99% rename from vue/dist/assets/TagSearch-a4041cb3.js rename to vue/dist/assets/TagSearch-41700db5.js index d8b2102..006f4d2 100644 --- a/vue/dist/assets/TagSearch-a4041cb3.js +++ b/vue/dist/assets/TagSearch-41700db5.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-64cbe4df.js";import{S as Yl}from"./index-ed3f9da1.js";/* empty css */import"./index-56137fc5.js";import{t as Sa,_ as Xl,a as Jl,H as Zl}from"./searchHistory-a27d7522.js";import"./index-d2c56e4b.js";import{b as Ql,i as es}from"./isArrayLikeObject-31019b5f.js";import{i as ts}from"./_isIterateeCall-e4f71c4d.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-cae56808.css b/vue/dist/assets/TopicSearch-75f6e0b5.css similarity index 72% rename from vue/dist/assets/TopicSearch-cae56808.css rename to vue/dist/assets/TopicSearch-75f6e0b5.css index ec30d23..201d9d9 100644 --- a/vue/dist/assets/TopicSearch-cae56808.css +++ b/vue/dist/assets/TopicSearch-75f6e0b5.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-281d55ac]{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-281d55ac],.error-container[data-v-281d55ac]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#fff}.loading-text[data-v-281d55ac]{margin-top:16px;font-size:14px;color:#aaa}.graph-container[data-v-281d55ac]{width:100%;height:100%;position:relative}.control-panel[data-v-281d55ac]{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-281d55ac]{width:100%;height:100%}.topic-search[data-v-18a75914]{height:var(--pane-max-height);overflow:auto;padding:12px}.toolbar[data-v-18a75914]{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-18a75914]{display:flex;align-items:center;gap:8px}.title[data-v-18a75914]{display:flex;align-items:center;gap:8px;font-weight:700}.right[data-v-18a75914]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.label[data-v-18a75914]{color:#888}.guide[data-v-18a75914]{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-18a75914]{display:flex;align-items:center;gap:10px}.guide-hint[data-v-18a75914]{margin-top:4px;display:flex;align-items:center;gap:10px;opacity:.85}.guide-icon[data-v-18a75914]{width:22px;text-align:center;flex:0 0 22px}.guide-text[data-v-18a75914]{flex:1 1 auto;min-width:0;color:#000000bf}.grid[data-v-18a75914]{margin-top:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.card[data-v-18a75914]{background:var(--zp-primary-background);border-radius:12px;padding:10px 12px;cursor:pointer;border:1px solid rgba(0,0,0,.06)}.card[data-v-18a75914]:hover{border-color:#1890ff99}.card-top[data-v-18a75914]{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-title[data-v-18a75914]{font-weight:700}.card-count[data-v-18a75914]{min-width:28px;text-align:right;opacity:.75}.card-desc[data-v-18a75914]{margin-top:6px;color:#666;font-size:12px}.empty[data-v-18a75914]{height:calc(var(--pane-max-height) - 72px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.hint[data-v-18a75914]{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-54d42f00]{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-54d42f00],.error-container[data-v-54d42f00]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#fff}.loading-text[data-v-54d42f00]{margin-top:16px;font-size:14px;color:#aaa}.graph-container[data-v-54d42f00]{width:100%;height:100%;position:relative}.control-panel[data-v-54d42f00]{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-54d42f00]{width:100%;height:100%}.topic-search[data-v-930c370d]{height:var(--pane-max-height);overflow:auto;padding:12px}.toolbar[data-v-930c370d]{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-930c370d]{display:flex;align-items:center;gap:8px}.title[data-v-930c370d]{display:flex;align-items:center;gap:8px;font-weight:700}.right[data-v-930c370d]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.label[data-v-930c370d]{color:#888}.guide[data-v-930c370d]{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-930c370d]{display:flex;align-items:center;gap:10px}.guide-hint[data-v-930c370d]{margin-top:4px;display:flex;align-items:center;gap:10px;opacity:.85}.guide-icon[data-v-930c370d]{width:22px;text-align:center;flex:0 0 22px}.guide-text[data-v-930c370d]{flex:1 1 auto;min-width:0;color:#000000bf}.grid[data-v-930c370d]{margin-top:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.card[data-v-930c370d]{background:var(--zp-primary-background);border-radius:12px;padding:10px 12px;cursor:pointer;border:1px solid rgba(0,0,0,.06)}.card[data-v-930c370d]:hover{border-color:#1890ff99}.card-top[data-v-930c370d]{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-title[data-v-930c370d]{font-weight:700}.card-count[data-v-930c370d]{min-width:28px;text-align:right;opacity:.75}.card-desc[data-v-930c370d]{margin-top:6px;color:#666;font-size:12px}.empty[data-v-930c370d]{height:calc(var(--pane-max-height) - 72px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.hint[data-v-930c370d]{font-size:16px;opacity:.75} diff --git a/vue/dist/assets/TopicSearch-52e0968f.js b/vue/dist/assets/TopicSearch-b4afae11.js similarity index 69% rename from vue/dist/assets/TopicSearch-52e0968f.js rename to vue/dist/assets/TopicSearch-b4afae11.js index b8139e9..745f8ff 100644 --- a/vue/dist/assets/TopicSearch-52e0968f.js +++ b/vue/dist/assets/TopicSearch-b4afae11.js @@ -1,6 +1,6 @@ -import{ay as cu,P as jl,bK as XA,d as si,G as Ft,a as Ee,c as yt,Z as Wc,_ as qA,cz as mg,r as Yt,cA as nE,bC as KA,cB as iE,b7 as jA,h as br,u as JA,be as oE,cb as sE,bc as lE,ca as uE,cw as QA,m as ro,an as fE,ao as cE,B as Zt,az as Fh,o as tM,I as vE,U as qt,V as he,W as Dt,Y as Gt,a4 as ue,a3 as ae,X as Me,cp as eM,a2 as Ja,cC as hE,cD as dE,$ as je,z as ea,cE as pE,aO as rM,ah as aM,aj as nM,ak as iM,aP as oM,aQ as sM,cF as gE,a0 as lM,a1 as yE,J as n1,bk as mE,a9 as _E,a8 as SE,cG as xE,cH as bE,cI as wE,ck as TE,cJ as CE,cK as AE,R as zo,T as ME,cL as DE}from"./index-64cbe4df.js";import{u as LE}from"./index-56137fc5.js";import{S as uM}from"./index-ed3f9da1.js";import{_ as IE}from"./index-f0ba7b9c.js";import{_ as fM}from"./index-53055c61.js";/* empty css */import{_ as cM}from"./index-8c941714.js";var vM=cu("normal","exception","active","success"),PE=cu("line","circle","dashboard"),kE=cu("default","small"),jv=function(){return{prefixCls:String,type:jl.oneOf(PE),percent:Number,format:{type:Function},status:jl.oneOf(vM),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:jl.oneOf(kE),steps:Number,successPercent:Number,title:String}};function ao(r){return!r||r<0?0:r>100?100:r}function $c(r){var t=r.success,e=r.successPercent,a=e;return t&&"progress"in t&&(XA(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),a=t.progress),t&&"percent"in t&&(a=t.percent),a}var RE=["from","to","direction"],EE=function(){return Ee(Ee({},jv()),{},{prefixCls:String,direction:{type:String}})},OE=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(", ")},NE=function(t,e){var a=t.from,n=a===void 0?mg.blue:a,i=t.to,o=i===void 0?mg.blue:i,s=t.direction,l=s===void 0?e==="rtl"?"to left":"to right":s,u=qA(t,RE);if(Object.keys(u).length!==0){var f=OE(u);return{backgroundImage:"linear-gradient(".concat(l,", ").concat(f,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(n,", ").concat(o,")")}};const BE=si({compatConfig:{MODE:3},name:"Line",props:EE(),setup:function(t,e){var a=e.slots,n=Ft(function(){var u=t.strokeColor,f=t.direction;return u&&typeof u!="string"?NE(u,f):{background:u}}),i=Ft(function(){return t.trailColor?{backgroundColor:t.trailColor}:void 0}),o=Ft(function(){var u=t.percent,f=t.strokeWidth,c=t.strokeLinecap,v=t.size;return Ee({width:"".concat(ao(u),"%"),height:"".concat(f||(v==="small"?6:8),"px"),borderRadius:c==="square"?0:""},n.value)}),s=Ft(function(){return $c(t)}),l=Ft(function(){var u=t.strokeWidth,f=t.size,c=t.strokeLinecap,v=t.success;return{width:"".concat(ao(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(Wc,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 zE={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},VE=function(t){var e=Yt(null);return nE(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},GE={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},FE=["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"],i1=0;function o1(r){return+r.replace("%","")}function s1(r){return Array.isArray(r)?r:[r]}function l1(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 lu,P as Xl,bK as $A,d as oi,G as Ft,a as Re,c as mt,Z as Vc,_ as UA,cz as pg,r as Yt,cA as nE,bC as YA,cB as iE,b7 as ZA,h as xr,u as XA,be as oE,cb as sE,bc as lE,ca as uE,cw as qA,m as eo,an as fE,ao as cE,B as Zt,az as zh,o as KA,I as vE,U as ee,V as Ae,W as Dt,Y as Gt,a4 as ve,a3 as ue,X as Ge,cp as jA,a2 as Ja,cC as hE,cD as dE,$ as vr,z as ta,cE as pE,aO as JA,ah as QA,aj as tM,ak as eM,aP as rM,aQ as aM,cF as gE,a0 as nM,a1 as yE,J as t1,bk as mE,a9 as _E,a8 as SE,cG as xE,cH as bE,cI as wE,ck as TE,cJ as CE,cK as AE,R as Bo,T as ME,cL as DE}from"./index-043a7b26.js";import{u as LE}from"./index-3432146f.js";import{S as iM}from"./index-d7774373.js";import{_ as IE}from"./index-e6c51938.js";import{_ as oM}from"./index-6b635fab.js";/* empty css */import{_ as sM}from"./index-136f922f.js";var lM=lu("normal","exception","active","success"),PE=lu("line","circle","dashboard"),kE=lu("default","small"),Zv=function(){return{prefixCls:String,type:Xl.oneOf(PE),percent:Number,format:{type:Function},status:Xl.oneOf(lM),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:Xl.oneOf(kE),steps:Number,successPercent:Number,title:String}};function ro(r){return!r||r<0?0:r>100?100:r}function Gc(r){var t=r.success,e=r.successPercent,a=e;return t&&"progress"in t&&($A(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),a=t.progress),t&&"percent"in t&&(a=t.percent),a}var RE=["from","to","direction"],EE=function(){return Re(Re({},Zv()),{},{prefixCls:String,direction:{type:String}})},OE=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(", ")},NE=function(t,e){var a=t.from,n=a===void 0?pg.blue:a,i=t.to,o=i===void 0?pg.blue:i,s=t.direction,l=s===void 0?e==="rtl"?"to left":"to right":s,u=UA(t,RE);if(Object.keys(u).length!==0){var f=OE(u);return{backgroundImage:"linear-gradient(".concat(l,", ").concat(f,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(n,", ").concat(o,")")}};const BE=oi({compatConfig:{MODE:3},name:"Line",props:EE(),setup:function(t,e){var a=e.slots,n=Ft(function(){var u=t.strokeColor,f=t.direction;return u&&typeof u!="string"?NE(u,f):{background:u}}),i=Ft(function(){return t.trailColor?{backgroundColor:t.trailColor}:void 0}),o=Ft(function(){var u=t.percent,f=t.strokeWidth,c=t.strokeLinecap,v=t.size;return Re({width:"".concat(ro(u),"%"),height:"".concat(f||(v==="small"?6:8),"px"),borderRadius:c==="square"?0:""},n.value)}),s=Ft(function(){return Gc(t)}),l=Ft(function(){var u=t.strokeWidth,f=t.size,c=t.strokeLinecap,v=t.success;return{width:"".concat(ro(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 mt(Vc,null,[mt("div",{class:"".concat(t.prefixCls,"-outer")},[mt("div",{class:"".concat(t.prefixCls,"-inner"),style:i.value},[mt("div",{class:"".concat(t.prefixCls,"-bg"),style:o.value},null),s.value!==void 0?mt("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 zE={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},VE=function(t){var e=Yt(null);return nE(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},GE={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},FE=["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"],e1=0;function r1(r){return+r.replace("%","")}function a1(r){return Array.isArray(r)?r:[r]}function n1(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 HE=si({compatConfig:{MODE:3},name:"VCCircle",props:KA(GE,zE),setup:function(t){i1+=1;var e=Yt(i1),a=Ft(function(){return s1(t.percent)}),n=Ft(function(){return s1(t.strokeColor)}),i=iE(),o=jA(i,2),s=o[0],l=o[1];VE(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,")"):"",x=l1(g,y,_,v,d,p),b=x.pathString,w=x.pathStyle;g+=y;var T={key:m,d:b,stroke:S,"stroke-linecap":h,"stroke-width":v,opacity:y===0?0:1,"fill-opacity":"0",class:"".concat(c,"-circle-path"),style:w};return yt("path",Ee({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=qA(t,FE),m=l1(0,100,p,c,h,d),_=m.pathString,S=m.pathStyle;delete y.percent;var x=n.value.find(function(w){return Object.prototype.toString.call(w)==="[object Object]"}),b={d:_,stroke:p,"stroke-linecap":g,"stroke-width":v||c,"fill-opacity":"0",class:"".concat(f,"-circle-trail"),style:S};return yt("svg",Ee({class:"".concat(f,"-circle"),viewBox:"0 0 100 100"},y),[x&&yt("defs",null,[yt("linearGradient",{id:"".concat(f,"-gradient-").concat(e.value),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(x).sort(function(w,T){return o1(w)-o1(T)}).map(function(w,T){return yt("stop",{key:T,offset:w,"stop-color":x[w]},null)})])]),yt("path",b,null),u().reverse()])}}});function WE(r){var t=r.percent,e=r.success,a=r.successPercent,n=ao($c({success:e,successPercent:a}));return[n,ao(ao(t)-n)]}function $E(r){var t=r.success,e=t===void 0?{}:t,a=r.strokeColor,n=e.strokeColor;return[n||mg.green,a||null]}const UE=si({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:jv(),setup:function(t,e){var a=e.slots,n=Ft(function(){if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),i=Ft(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=Ft(function(){return t.strokeWidth||6}),s=Ft(function(){return t.gapPosition||t.type==="dashboard"&&"bottom"||"top"}),l=Ft(function(){return WE(t)}),u=Ft(function(){return Object.prototype.toString.call(t.strokeColor)==="[object Object]"}),f=Ft(function(){return $E({success:t.success,strokeColor:t.strokeColor})}),c=Ft(function(){var v;return v={},br(v,"".concat(t.prefixCls,"-inner"),!0),br(v,"".concat(t.prefixCls,"-circle-gradient"),u.value),v});return function(){var v;return yt("div",{class:c.value,style:i.value},[yt(HE,{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 YE=function(){return Ee(Ee({},jv()),{},{steps:Number,size:{type:String},strokeColor:String,trailColor:String})};const ZE=si({compatConfig:{MODE:3},name:"Steps",props:YE(),setup:function(t,e){var a=e.slots,n=Ft(function(){return Math.round(t.steps*((t.percent||0)/100))}),i=Ft(function(){return t.size==="small"?2:14}),o=Ft(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=$c(t);if(!v)return null;var m,_=h||(a==null?void 0:a.format)||function(x){return"".concat(x,"%")},S=d==="line";return h||a!=null&&a.format||u.value!=="exception"&&u.value!=="success"?m=_(ao(p),ao(y)):u.value==="exception"?m=S?yt(oE,null,null):yt(sE,null,null):u.value==="success"&&(m=S?yt(lE,null,null):yt(uE,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(ZE,Ee(Ee({},t),{},{strokeColor:typeof h=="string"?h:void 0,prefixCls:i.value,steps:v}),{default:function(){return[p]}}):yt(BE,Ee(Ee({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}):(c==="circle"||c==="dashboard")&&(g=yt(UE,Ee(Ee({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}));var y=Ee(Ee({},s.value),{},br({},"".concat(i.value,"-status-").concat(u.value),!0));return yt("div",{class:y,title:d},[g])}}}),qE=QA(XE);var KE={small:8,middle:16,large:24},jE=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:jl.oneOf(cu("horizontal","vertical")).def("horizontal"),align:jl.oneOf(cu("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function JE(r){return typeof r=="string"?KE[r]:r||0}var QE=si({compatConfig:{MODE:3},name:"ASpace",props:jE(),slots:["split"],setup:function(t,e){var a=e.slots,n=JA("space",t),i=n.prefixCls,o=n.space,s=n.direction,l=LE(),u=Ft(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=Yt(),c=Yt();ro(u,function(){var g=(Array.isArray(u.value)?u.value:[u.value,u.value]).map(function(m){return JE(m)}),y=jA(g,2);f.value=y[0],c.value=y[1]},{immediate:!0});var v=Ft(function(){return t.align===void 0&&t.direction==="horizontal"?"center":t.align}),h=Ft(function(){var g;return fE(i.value,"".concat(i.value,"-").concat(t.direction),(g={},br(g,"".concat(i.value,"-rtl"),s.value==="rtl"),br(g,"".concat(i.value,"-align-").concat(v.value),v.value),g))}),d=Ft(function(){return s.value==="rtl"?"marginLeft":"marginRight"}),p=Ft(function(){var g={};return l.value&&(g.columnGap="".concat(f.value,"px"),g.rowGap="".concat(c.value,"px")),Ee(Ee({},g),t.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-c.value,"px")})});return function(){var g,y,m=t.wrap,_=t.direction,S=_===void 0?"horizontal":_,x=(g=a.default)===null||g===void 0?void 0:g.call(a),b=cE(x),w=b.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},[b.map(function(I,L){var P=x.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=Gc(t);if(!v)return null;var m,_=h||(a==null?void 0:a.format)||function(x){return"".concat(x,"%")},S=d==="line";return h||a!=null&&a.format||u.value!=="exception"&&u.value!=="success"?m=_(ro(p),ro(y)):u.value==="exception"?m=S?mt(oE,null,null):mt(sE,null,null):u.value==="success"&&(m=S?mt(lE,null,null):mt(uE,null,null)),mt("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?mt(ZE,Re(Re({},t),{},{strokeColor:typeof h=="string"?h:void 0,prefixCls:i.value,steps:v}),{default:function(){return[p]}}):mt(BE,Re(Re({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}):(c==="circle"||c==="dashboard")&&(g=mt(UE,Re(Re({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}));var y=Re(Re({},s.value),{},xr({},"".concat(i.value,"-status-").concat(u.value),!0));return mt("div",{class:y,title:d},[g])}}}),qE=qA(XE);var KE={small:8,middle:16,large:24},jE=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:Xl.oneOf(lu("horizontal","vertical")).def("horizontal"),align:Xl.oneOf(lu("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function JE(r){return typeof r=="string"?KE[r]:r||0}var QE=oi({compatConfig:{MODE:3},name:"ASpace",props:jE(),slots:["split"],setup:function(t,e){var a=e.slots,n=XA("space",t),i=n.prefixCls,o=n.space,s=n.direction,l=LE(),u=Ft(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=Yt(),c=Yt();eo(u,function(){var g=(Array.isArray(u.value)?u.value:[u.value,u.value]).map(function(m){return JE(m)}),y=ZA(g,2);f.value=y[0],c.value=y[1]},{immediate:!0});var v=Ft(function(){return t.align===void 0&&t.direction==="horizontal"?"center":t.align}),h=Ft(function(){var g;return fE(i.value,"".concat(i.value,"-").concat(t.direction),(g={},xr(g,"".concat(i.value,"-rtl"),s.value==="rtl"),xr(g,"".concat(i.value,"-align-").concat(v.value),v.value),g))}),d=Ft(function(){return s.value==="rtl"?"marginLeft":"marginRight"}),p=Ft(function(){var g={};return l.value&&(g.columnGap="".concat(f.value,"px"),g.rowGap="".concat(c.value,"px")),Re(Re({},g),t.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-c.value,"px")})});return function(){var g,y,m=t.wrap,_=t.direction,S=_===void 0?"horizontal":_,x=(g=a.default)===null||g===void 0?void 0:g.call(a),b=cE(x),w=b.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 mt("div",{class:h.value,style:p.value},[b.map(function(I,L){var P=x.indexOf(I),R={};return l.value||(S==="vertical"?L"u"&&typeof self<"u"?kn.worker=!0:!kn.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(kn.node=!0,kn.svgSupported=!0):aO(navigator.userAgent,kn);function aO(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 Vt=kn;var Im=12,hM="sans-serif",fn=Im+"px "+hM,nO=20,iO=100,oO="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sO(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?v1(s,o):v1(o,s))}function SM(r){return r.nodeName.toUpperCase()==="CANVAS"}var IO=/([&<>"'])/g,PO={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qe(r){return r==null?"":(r+"").replace(IO,function(t,e){return PO[e]})}var kO=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Wh=[],RO=Vt.browser.firefox&&+Vt.browser.version.split(".")[0]<39;function Ag(r,t,e,a){return e=e||{},a?h1(r,t,e):RO&&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):h1(r,t,e),e}function h1(r,t,e){if(Vt.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(SM(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(Cg(Wh,r,a,n)){e.zrX=Wh[0],e.zrY=Wh[1];return}}e.zrX=e.zrY=0}function Bm(r){return r||window.event}function Or(r,t,e){if(t=Bm(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&&Ag(r,o,t,e)}else{Ag(r,t,t,e);var i=EO(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&kO.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function EO(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 Mg(r,t,e,a){r.addEventListener(t,e,a)}function OO(r,t,e,a){r.removeEventListener(t,e,a)}var cn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function d1(r){return r.which===2||r.which===3}var NO=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=p1(a)/p1(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=BO(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function He(){return[1,0,0,1,0,0]}function rh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function ah(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 Ea(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 Va(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 li(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 zm(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 la(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 zO(r){var t=He();return ah(t,r),t}var VO=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 vt=VO;var qi=Math.min,ps=Math.max,Dg=Math.abs,g1=["x","y"],GO=["width","height"],vi=new vt,hi=new vt,di=new vt,pi=new vt,xr=xM(),zl=xr.minTv,Lg=xr.maxTv,Ql=[0,0],Vm=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=qi(t.x,this.x),a=qi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ps(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ps(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=He();return Va(i,i,[-e.x,-e.y]),zm(i,i,[a,n]),Va(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&&vt.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(FO,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(HO,e.x,e.y,e.width,e.height));var s=!!a;xr.reset(n,s);var l=xr.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}vi.x=di.x=e.x,vi.y=pi.y=e.y,hi.x=pi.x=e.x+e.width,hi.y=di.y=e.y+e.height,vi.transform(a),pi.transform(a),hi.transform(a),di.transform(a),t.x=qi(vi.x,hi.x,di.x,pi.x),t.y=qi(vi.y,hi.y,di.y,pi.y);var l=ps(vi.x,hi.x,di.x,pi.x),u=ps(vi.y,hi.y,di.y,pi.y);t.width=l-t.x,t.height=u-t.y},r}(),FO=new Vm(0,0,0,0),HO=new Vm(0,0,0,0);function y1(r,t,e,a,n,i,o,s){var l=Dg(t-e),u=Dg(a-r),f=qi(l,u),c=g1[n],v=g1[1-n],h=GO[n];t=u||!xr.bidirectional)&&(zl[c]=-u,zl[v]=0,xr.useDir&&xr.calcDirMTV())))}function xM(){var r=0,t=new vt,e=new vt,a={minTv:new vt,maxTv:new vt,useDir:!1,dirMinTv:new vt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=ps(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)&&(Uh.copy(v.getBoundingRect()),v.transform&&Uh.applyTransform(v.transform),Uh.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 ZO(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?bM:!0}return!1}function m1(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=ZO(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==bM)){t.target=o;break}}}function TM(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}const XO=wM;var CM=32,sl=7;function qO(r){for(var t=0;r>=CM;)t|=r&1,r>>=1;return r+t}function _1(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 KO(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 Yh(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 Zh(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 jO(r,t){var e=sl,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]=sl||w>=sl);if(T)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[b+y]=r[x+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[b+y]=r[x+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(C=g-Yh(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,b=S+1,x=_+1,y=0;y=sl||C>=sl);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;ys&&(l=s),S1(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 wr=1,Vl=2,cs=4,x1=!1;function Xh(){x1||(x1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function b1(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var JO=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=b1}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 QO=JO;var AM;AM=Vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Ig=AM;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 MM=Cc;var lf=Math.pow,Yn=Math.sqrt,Zc=1e-8,DM=1e-4,w1=Yn(3),uf=1/3,Ca=Co(),Vr=Co(),bs=Co();function Gn(r){return r>-Zc&&rZc||r<-Zc}function Oe(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 T1(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function Xc(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(Gn(f)&&Gn(c))if(Gn(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(Gn(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=Yn(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-lf(-_,uf):_=lf(_,uf),S<0?S=-lf(-S,uf):S=lf(S,uf);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*c)/(2*Yn(f*f*f)),b=Math.acos(x)/3,w=Yn(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+w1*Math.sin(b)))/(3*o),C=(-s+w*(T-w1*Math.sin(b)))/(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 IM(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(Gn(o)){if(LM(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Gn(f))n[0]=-i/(2*o);else if(f>0){var c=Yn(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 Qn(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;Ca[0]=l,Ca[1]=u;for(var m=0;m<1;m+=.05)Vr[0]=Oe(r,e,n,o,m),Vr[1]=Oe(t,a,i,s,m),g=no(Ca,Vr),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Gn(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Yn(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 kM(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function hu(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 RM(r,t,e,a,n,i,o,s,l){var u,f=.005,c=1/0;Ca[0]=o,Ca[1]=s;for(var v=0;v<1;v+=.05){Vr[0]=Fe(r,e,n,v),Vr[1]=Fe(t,a,i,v);var h=no(Ca,Vr);h=0&&h=1?1:Xc(0,a,i,1,l,s)&&Oe(0,n,o,1,s[0])}}}var nN=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||ye,this.ondestroy=t.ondestroy||ye,this.onrestart=t.onrestart||ye,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=lt(t)?t:MM[t]||Gm(t)},r}();const iN=nN;var EM=function(){function r(t){this.value=t}return r}(),oN=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new EM(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}(),sN=function(){function r(t){this._list=new oN,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 EM(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 Ds=sN;var C1={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 na(r){return r=Math.round(r),r<0?0:r>255?255:r}function lN(r){return r=Math.round(r),r<0?0:r>360?360:r}function du(r){return r<0?0:r>1?1:r}function qh(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?na(parseFloat(t)/100*255):na(parseInt(t,10))}function Zn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?du(parseFloat(t)/100):du(parseFloat(t))}function Kh(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 Fn(r,t,e){return r+(t-r)*e}function Er(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function kg(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var OM=new Ds(20),ff=null;function Go(r,t){ff&&kg(ff,t),ff=OM.put(r,ff||t.slice())}function gr(r,t){if(r){t=t||[];var e=OM.get(r);if(e)return kg(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in C1)return kg(t,C1[a]),Go(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)){Er(t,0,0,0,1);return}return Er(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),Go(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Er(t,0,0,0,1);return}return Er(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Go(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?Er(t,+u[0],+u[1],+u[2],1):Er(t,0,0,0,1);f=Zn(u.pop());case"rgb":if(u.length>=3)return Er(t,qh(u[0]),qh(u[1]),qh(u[2]),u.length===3?f:Zn(u[3])),Go(r,t),t;Er(t,0,0,0,1);return;case"hsla":if(u.length!==4){Er(t,0,0,0,1);return}return u[3]=Zn(u[3]),Rg(u,t),Go(r,t),t;case"hsl":if(u.length!==3){Er(t,0,0,0,1);return}return Rg(u,t),Go(r,t),t;default:return}}Er(t,0,0,0,1)}}function Rg(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=Zn(r[1]),n=Zn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],Er(t,na(Kh(o,i,e+1/3)*255),na(Kh(o,i,e)*255),na(Kh(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function uN(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 Eg(r,t){var e=gr(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 Oa(e,e.length===4?"rgba":"rgb")}}function jh(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]=na(Fn(o[0],s[0],l)),e[1]=na(Fn(o[1],s[1],l)),e[2]=na(Fn(o[2],s[2],l)),e[3]=du(Fn(o[3],s[3],l)),e}}function fN(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=gr(t[n]),s=gr(t[i]),l=a-n,u=Oa([na(Fn(o[0],s[0],l)),na(Fn(o[1],s[1],l)),na(Fn(o[2],s[2],l)),du(Fn(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Xn(r,t,e,a){var n=gr(r);if(r)return n=uN(n),t!=null&&(n[0]=lN(lt(t)?t(n[0]):t)),e!=null&&(n[1]=Zn(lt(e)?e(n[1]):e)),a!=null&&(n[2]=Zn(lt(a)?a(n[2]):a)),Oa(Rg(n),"rgba")}function qc(r,t){var e=gr(r);if(e&&t!=null)return e[3]=du(t),Oa(e,"rgba")}function Oa(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 Kc(r,t){var e=gr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var A1=new Ds(100);function Og(r){if(J(r)){var t=A1.get(r);return t||(t=Eg(r,-.1),A1.put(r,t)),t}else if(Qv(r)){var e=$({},r);return e.colorStops=Z(r.colorStops,function(a){return{offset:a.offset,color:Eg(a.color,-.1)}}),e}return r}var jc=Math.round;function pu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=gr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var M1=1e-4;function Hn(r){return r-M1}function cf(r){return jc(r*1e3)/1e3}function Ng(r){return jc(r*1e4)/1e4}function cN(r){return"matrix("+cf(r[0])+","+cf(r[1])+","+cf(r[2])+","+cf(r[3])+","+Ng(r[4])+","+Ng(r[5])+")"}var vN={left:"start",right:"end",center:"middle",middle:"middle"};function hN(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function dN(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function pN(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 NM(r){return r&&!!r.image}function gN(r){return r&&!!r.svgElement}function Fm(r){return NM(r)||gN(r)}function BM(r){return r.type==="linear"}function zM(r){return r.type==="radial"}function VM(r){return r&&(r.type==="linear"||r.type==="radial")}function nh(r){return"url(#"+r+")"}function GM(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 FM(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*xc,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("+jc(o*xc)+"deg, "+jc(s*xc)+"deg)"),l.join(" ")}var yN=function(){return Vt.hasGlobalWindow&<(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}}(),Bg=Array.prototype.slice;function Qa(r,t,e){return(t-r)*e+r}function Jh(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=L1,l=e;if(er(e)){var u=xN(e);s=u,(u===1&&!Rt(e[0])||u===2&&!Rt(e[0][0]))&&(o=!0)}else if(Rt(e)&&!tr(e))s=hf;else if(J(e))if(!isNaN(+e))s=hf;else{var f=gr(e);f&&(l=f,s=Gl)}else if(Qv(e)){var c=$({},l);c.colorStops=Z(e.colorStops,function(h){return{offset:h.offset,color:gr(h.color)}}),BM(e)?s=zg:zM(e)&&(s=Vg),l=c}i===0?this.valType=s:(s!==this.valType||s===L1)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return a&&(v.easing=a,v.easingFunc=lt(a)?a:MM[a]||Gm(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=df(n),u=I1(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?ll:t[l];if((df(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(df(i))i===Mc?Jh(m,h[n],d[n],y):mN(m,h[n],d[n],y);else if(I1(i)){var _=h[n],S=d[n],x=i===zg;t[l]={type:x?"linear":"radial",x:Qa(_.x,S.x,y),y:Qa(_.y,S.y,y),colorStops:Z(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Qa(w.offset,C.offset,y),color:Ac(Jh([],w.color,C.color,y))}}),global:S.global},x?(t[l].x2=Qa(_.x2,S.x2,y),t[l].y2=Qa(_.y2,S.y2,y)):t[l].r=Qa(_.r,S.r,y)}else if(u)Jh(m,h[n],d[n],y),a||(t[l]=Ac(m));else{var b=Qa(h[n],d[n],y);a?this._additiveValue=b:t[l]=b}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===hf?t[a]=t[a]+n:e===Gl?(gr(t[a],ll),vf(ll,ll,n,1),t[a]=Ac(ll)):e===Mc?vf(t[a],t[a],n,1):e===HM&&D1(t[a],t[a],n,1)},r}(),Hm=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){Rm("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,kt(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,tu(u),n),this._trackKeys.push(s)}l.addKeyframe(t,tu(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 gs(){return new Date().getTime()}var wN=function(r){B(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=gs()-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&&(Ig(a),!e._paused&&e.update())}Ig(a)},t.prototype.start=function(){this._running||(this._time=gs(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=gs(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=gs()-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 Hm(e,a.loop);return this.addAnimator(n),n},t}(Xr);const TN=wN;var CN=300,Qh=Vt.domSupported,td=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=Z(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"]},k1=!1;function Gg(r){var t=r.pointerType;return t==="pen"||t==="touch"}function AN(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 ed(r){r&&(r.zrByTouch=!0)}function MN(r,t){return Or(r.dom,new DN(r,t),!0)}function WM(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 DN=function(){function r(t,e){this.stopPropagation=ye,this.stopImmediatePropagation=ye,this.preventDefault=ye,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Qr={mousedown:function(r){r=Or(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Or(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=Or(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Or(this.dom,r);var t=r.toElement||r.relatedTarget;WM(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){k1=!0,r=Or(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){k1||(r=Or(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Or(this.dom,r),ed(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Qr.mousemove.call(this,r),Qr.mousedown.call(this,r)},touchmove:function(r){r=Or(this.dom,r),ed(r),this.handler.processGesture(r,"change"),Qr.mousemove.call(this,r)},touchend:function(r){r=Or(this.dom,r),ed(r),this.handler.processGesture(r,"end"),Qr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentO1||r<-O1}var yi=[],Fo=[],ad=He(),nd=Math.abs,EN=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 gi(this.rotation)||gi(this.x)||gi(this.y)||gi(this.scaleX-1)||gi(this.scaleY-1)||gi(this.skewX)||gi(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(E1(a),this.invTransform=null);return}a=a||He(),e?this.getLocalTransform(a):E1(a),t&&(e?Ea(a,t,a):ah(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(yi);var a=yi[0]<0?-1:1,n=yi[1]<0?-1:1,i=((yi[0]-a)*e+a)/yi[0]||0,o=((yi[1]-n)*e+n)/yi[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||He(),la(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||He(),Ea(Fo,t.invTransform,e),e=Fo);var a=this.originX,n=this.originY;(a||n)&&(ad[4]=a,ad[5]=n,Ea(Fo,e,ad),Fo[4]-=a,Fo[5]-=n,e=Fo),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&&me(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&me(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&nd(t[0]-1)>1e-10&&nd(t[3]-1)>1e-10?Math.sqrt(nd(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Qc(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&&li(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}(),Ga=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Qc(r,t){for(var e=0;e=N1)){r=r||fn;for(var t=[],e=+new Date,a=0;a<=127;a++)t[a]=sa.measureText(String.fromCharCode(a),r).width;var n=+new Date-e;return n>16?id=N1:n>2&&id++,t}}var id=0,N1=5;function UM(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=ON(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Ba(r,t){var e=r.strWidthCache,a=e.get(t);return a==null&&(a=sa.measureText(t,r.font).width,e.put(t,a)),a}function B1(r,t,e,a){var n=Ba(Na(t),r),i=Wu(t),o=Ls(0,n,e),s=io(0,i,a),l=new gt(o,s,n,i);return l}function ih(r,t,e,a){var n=((r||"")+"").split(` -`),i=n.length;if(i===1)return B1(n[0],t,e,a);for(var o=new gt(0,0,0,0),s=0;s=0?parseFloat(r)/100*t:parseFloat(r):r}function tv(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+=ua(a[0],e.width),u+=ua(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 od="__zr_normal__",sd=Ga.concat(["ignore"]),NN=za(Ga,function(r,t){return r[t]=!0,r},{ignore:!1}),Ho={},BN=new gt(0,0,0,0),gf=[],Wm=function(){function r(t){this.id=gM(),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=BN,a.layoutRect?v.copy(a.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ho,a,v):tv(Ho,a,v),i.x=Ho.x,i.y=Ho.y,o=Ho.align,s=Ho.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=ua(h[0],v.width),p=ua(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 gt(0,0,0,0);i.getLocalTransform(gf),la(gf,gf),gt.copy(m,v),m.applyTransform(gf)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,x=void 0,b=void 0;_&&this.canBeInsideText()?(S=a.insideFill,x=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),b=!0)):(S=a.outsideFill,x=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==y.fill||x!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=b,y.align=o,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=wr,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()?$g:Wg},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&gr(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,Oa(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(dt(t))for(var a=t,n=kt(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(od,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===od,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(wt(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){Rm("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&=~wr),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&=~wr)}},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=wt(n,t),o=wt(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]=tu(e[y]),VN(e,a,y)}}var x=new Hm(e,!1,!1,c?Ut(d,function(I){return I.targetName===t}):null);x.targetName=t,n.scope&&(x.scope=n.scope),v&&T&&x.whenWithKeys(0,T,p),M&&x.whenWithKeys(0,M,p),x.whenWithKeys(u??500,s?C:a,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}const ZM=Wm;var XM=function(r){B(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=wt(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=wt(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"?Pn.worker=!0:!Pn.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Pn.node=!0,Pn.svgSupported=!0):aO(navigator.userAgent,Pn);function aO(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 Vt=Pn;var Mm=12,uM="sans-serif",fn=Mm+"px "+uM,nO=20,iO=100,oO="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sO(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?l1(s,o):l1(o,s))}function gM(r){return r.nodeName.toUpperCase()==="CANVAS"}var IO=/([&<>"'])/g,PO={"&":"&","<":"<",">":">",'"':""","'":"'"};function Je(r){return r==null?"":(r+"").replace(IO,function(t,e){return PO[e]})}var kO=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gh=[],RO=Vt.browser.firefox&&+Vt.browser.version.split(".")[0]<39;function wg(r,t,e,a){return e=e||{},a?u1(r,t,e):RO&&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):u1(r,t,e),e}function u1(r,t,e){if(Vt.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(gM(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(bg(Gh,r,a,n)){e.zrX=Gh[0],e.zrY=Gh[1];return}}e.zrX=e.zrY=0}function Em(r){return r||window.event}function Or(r,t,e){if(t=Em(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&&wg(r,o,t,e)}else{wg(r,t,t,e);var i=EO(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&kO.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function EO(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 Tg(r,t,e,a){r.addEventListener(t,e,a)}function OO(r,t,e,a){r.removeEventListener(t,e,a)}var cn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function f1(r){return r.which===2||r.which===3}var NO=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=c1(a)/c1(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=BO(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function He(){return[1,0,0,1,0,0]}function Jv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Qv(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 Ra(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 za(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 si(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 Om(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 sa(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 zO(r){var t=He();return Qv(t,r),t}var VO=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 vt=VO;var Xi=Math.min,ds=Math.max,Cg=Math.abs,v1=["x","y"],GO=["width","height"],ci=new vt,vi=new vt,hi=new vt,di=new vt,Sr=yM(),Ol=Sr.minTv,Ag=Sr.maxTv,Kl=[0,0],Nm=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=Xi(t.x,this.x),a=Xi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ds(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ds(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=He();return za(i,i,[-e.x,-e.y]),Om(i,i,[a,n]),za(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&&vt.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(FO,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(HO,e.x,e.y,e.width,e.height));var s=!!a;Sr.reset(n,s);var l=Sr.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}ci.x=hi.x=e.x,ci.y=di.y=e.y,vi.x=di.x=e.x+e.width,vi.y=hi.y=e.y+e.height,ci.transform(a),di.transform(a),vi.transform(a),hi.transform(a),t.x=Xi(ci.x,vi.x,hi.x,di.x),t.y=Xi(ci.y,vi.y,hi.y,di.y);var l=ds(ci.x,vi.x,hi.x,di.x),u=ds(ci.y,vi.y,hi.y,di.y);t.width=l-t.x,t.height=u-t.y},r}(),FO=new Nm(0,0,0,0),HO=new Nm(0,0,0,0);function h1(r,t,e,a,n,i,o,s){var l=Cg(t-e),u=Cg(a-r),f=Xi(l,u),c=v1[n],v=v1[1-n],h=GO[n];t=u||!Sr.bidirectional)&&(Ol[c]=-u,Ol[v]=0,Sr.useDir&&Sr.calcDirMTV())))}function yM(){var r=0,t=new vt,e=new vt,a={minTv:new vt,maxTv:new vt,useDir:!1,dirMinTv:new vt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=ds(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)&&(Hh.copy(v.getBoundingRect()),v.transform&&Hh.applyTransform(v.transform),Hh.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 ZO(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?mM:!0}return!1}function d1(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=ZO(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==mM)){t.target=o;break}}}function SM(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}const XO=_M;var xM=32,nl=7;function qO(r){for(var t=0;r>=xM;)t|=r&1,r>>=1;return r+t}function p1(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 KO(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 Wh(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 $h(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 jO(r,t){var e=nl,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]=nl||w>=nl);if(T)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[b+y]=r[x+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[b+y]=r[x+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(C=g-Wh(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,b=S+1,x=_+1,y=0;y=nl||C>=nl);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;ys&&(l=s),g1(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 br=1,Nl=2,fs=4,y1=!1;function Uh(){y1||(y1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function m1(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var JO=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=m1}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 QO=JO;var bM;bM=Vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Mg=bM;var xc={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-xc.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?xc.bounceIn(r*2)*.5:xc.bounceOut(r*2-1)*.5+.5}};const wM=xc;var af=Math.pow,Un=Math.sqrt,Wc=1e-8,TM=1e-4,_1=Un(3),nf=1/3,Ta=To(),Vr=To(),xs=To();function Vn(r){return r>-Wc&&rWc||r<-Wc}function Ee(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 S1(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function $c(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(Vn(f)&&Vn(c))if(Vn(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(Vn(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=Un(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-af(-_,nf):_=af(_,nf),S<0?S=-af(-S,nf):S=af(S,nf);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*c)/(2*Un(f*f*f)),b=Math.acos(x)/3,w=Un(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+_1*Math.sin(b)))/(3*o),C=(-s+w*(T-_1*Math.sin(b)))/(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 AM(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(Vn(o)){if(CM(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Vn(f))n[0]=-i/(2*o);else if(f>0){var c=Un(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 Jn(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 MM(r,t,e,a,n,i,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,y;Ta[0]=l,Ta[1]=u;for(var m=0;m<1;m+=.05)Vr[0]=Ee(r,e,n,o,m),Vr[1]=Ee(t,a,i,s,m),g=ao(Ta,Vr),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Vn(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Un(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 DM(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function fu(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 LM(r,t,e,a,n,i,o,s,l){var u,f=.005,c=1/0;Ta[0]=o,Ta[1]=s;for(var v=0;v<1;v+=.05){Vr[0]=Fe(r,e,n,v),Vr[1]=Fe(t,a,i,v);var h=ao(Ta,Vr);h=0&&h=1?1:$c(0,a,i,1,l,s)&&Ee(0,n,o,1,s[0])}}}var nN=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||ge,this.ondestroy=t.ondestroy||ge,this.onrestart=t.onrestart||ge,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=lt(t)?t:wM[t]||Bm(t)},r}();const iN=nN;var IM=function(){function r(t){this.value=t}return r}(),oN=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new IM(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}(),sN=function(){function r(t){this._list=new oN,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 IM(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 Ms=sN;var x1={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 aa(r){return r=Math.round(r),r<0?0:r>255?255:r}function lN(r){return r=Math.round(r),r<0?0:r>360?360:r}function cu(r){return r<0?0:r>1?1:r}function Yh(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?aa(parseFloat(t)/100*255):aa(parseInt(t,10))}function Yn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?cu(parseFloat(t)/100):cu(parseFloat(t))}function Zh(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 Gn(r,t,e){return r+(t-r)*e}function Er(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function Lg(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var PM=new Ms(20),of=null;function Vo(r,t){of&&Lg(of,t),of=PM.put(r,of||t.slice())}function gr(r,t){if(r){t=t||[];var e=PM.get(r);if(e)return Lg(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in x1)return Lg(t,x1[a]),Vo(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)){Er(t,0,0,0,1);return}return Er(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),Vo(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Er(t,0,0,0,1);return}return Er(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Vo(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?Er(t,+u[0],+u[1],+u[2],1):Er(t,0,0,0,1);f=Yn(u.pop());case"rgb":if(u.length>=3)return Er(t,Yh(u[0]),Yh(u[1]),Yh(u[2]),u.length===3?f:Yn(u[3])),Vo(r,t),t;Er(t,0,0,0,1);return;case"hsla":if(u.length!==4){Er(t,0,0,0,1);return}return u[3]=Yn(u[3]),Ig(u,t),Vo(r,t),t;case"hsl":if(u.length!==3){Er(t,0,0,0,1);return}return Ig(u,t),Vo(r,t),t;default:return}}Er(t,0,0,0,1)}}function Ig(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=Yn(r[1]),n=Yn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],Er(t,aa(Zh(o,i,e+1/3)*255),aa(Zh(o,i,e)*255),aa(Zh(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function uN(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 Pg(r,t){var e=gr(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 Ea(e,e.length===4?"rgba":"rgb")}}function Xh(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]=aa(Gn(o[0],s[0],l)),e[1]=aa(Gn(o[1],s[1],l)),e[2]=aa(Gn(o[2],s[2],l)),e[3]=cu(Gn(o[3],s[3],l)),e}}function fN(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=gr(t[n]),s=gr(t[i]),l=a-n,u=Ea([aa(Gn(o[0],s[0],l)),aa(Gn(o[1],s[1],l)),aa(Gn(o[2],s[2],l)),cu(Gn(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Zn(r,t,e,a){var n=gr(r);if(r)return n=uN(n),t!=null&&(n[0]=lN(lt(t)?t(n[0]):t)),e!=null&&(n[1]=Yn(lt(e)?e(n[1]):e)),a!=null&&(n[2]=Yn(lt(a)?a(n[2]):a)),Ea(Ig(n),"rgba")}function Uc(r,t){var e=gr(r);if(e&&t!=null)return e[3]=cu(t),Ea(e,"rgba")}function Ea(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 Yc(r,t){var e=gr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var b1=new Ms(100);function kg(r){if(J(r)){var t=b1.get(r);return t||(t=Pg(r,-.1),b1.put(r,t)),t}else if(qv(r)){var e=$({},r);return e.colorStops=Z(r.colorStops,function(a){return{offset:a.offset,color:Pg(a.color,-.1)}}),e}return r}var Zc=Math.round;function vu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=gr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var w1=1e-4;function Fn(r){return r-w1}function sf(r){return Zc(r*1e3)/1e3}function Rg(r){return Zc(r*1e4)/1e4}function cN(r){return"matrix("+sf(r[0])+","+sf(r[1])+","+sf(r[2])+","+sf(r[3])+","+Rg(r[4])+","+Rg(r[5])+")"}var vN={left:"start",right:"end",center:"middle",middle:"middle"};function hN(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function dN(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function pN(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 kM(r){return r&&!!r.image}function gN(r){return r&&!!r.svgElement}function zm(r){return kM(r)||gN(r)}function RM(r){return r.type==="linear"}function EM(r){return r.type==="radial"}function OM(r){return r&&(r.type==="linear"||r.type==="radial")}function th(r){return"url(#"+r+")"}function NM(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 BM(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*yc,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("+Zc(o*yc)+"deg, "+Zc(s*yc)+"deg)"),l.join(" ")}var yN=function(){return Vt.hasGlobalWindow&<(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}}(),Eg=Array.prototype.slice;function Qa(r,t,e){return(t-r)*e+r}function qh(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=C1,l=e;if(tr(e)){var u=xN(e);s=u,(u===1&&!Rt(e[0])||u===2&&!Rt(e[0][0]))&&(o=!0)}else if(Rt(e)&&!Qe(e))s=uf;else if(J(e))if(!isNaN(+e))s=uf;else{var f=gr(e);f&&(l=f,s=Bl)}else if(qv(e)){var c=$({},l);c.colorStops=Z(e.colorStops,function(h){return{offset:h.offset,color:gr(h.color)}}),RM(e)?s=Og:EM(e)&&(s=Ng),l=c}i===0?this.valType=s:(s!==this.valType||s===C1)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return a&&(v.easing=a,v.easingFunc=lt(a)?a:wM[a]||Bm(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=ff(n),u=A1(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?il:t[l];if((ff(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(ff(i))i===wc?qh(m,h[n],d[n],y):mN(m,h[n],d[n],y);else if(A1(i)){var _=h[n],S=d[n],x=i===Og;t[l]={type:x?"linear":"radial",x:Qa(_.x,S.x,y),y:Qa(_.y,S.y,y),colorStops:Z(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Qa(w.offset,C.offset,y),color:bc(qh([],w.color,C.color,y))}}),global:S.global},x?(t[l].x2=Qa(_.x2,S.x2,y),t[l].y2=Qa(_.y2,S.y2,y)):t[l].r=Qa(_.r,S.r,y)}else if(u)qh(m,h[n],d[n],y),a||(t[l]=bc(m));else{var b=Qa(h[n],d[n],y);a?this._additiveValue=b:t[l]=b}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===uf?t[a]=t[a]+n:e===Bl?(gr(t[a],il),lf(il,il,n,1),t[a]=bc(il)):e===wc?lf(t[a],t[a],n,1):e===zM&&T1(t[a],t[a],n,1)},r}(),Vm=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){Im("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,kt(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,jl(u),n),this._trackKeys.push(s)}l.addKeyframe(t,jl(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 ps(){return new Date().getTime()}var wN=function(r){B(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=ps()-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&&(Mg(a),!e._paused&&e.update())}Mg(a)},t.prototype.start=function(){this._running||(this._time=ps(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ps(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ps()-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 Vm(e,a.loop);return this.addAnimator(n),n},t}(Xr);const TN=wN;var CN=300,Kh=Vt.domSupported,jh=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=Z(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}}(),M1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},D1=!1;function Bg(r){var t=r.pointerType;return t==="pen"||t==="touch"}function AN(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 Jh(r){r&&(r.zrByTouch=!0)}function MN(r,t){return Or(r.dom,new DN(r,t),!0)}function VM(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 DN=function(){function r(t,e){this.stopPropagation=ge,this.stopImmediatePropagation=ge,this.preventDefault=ge,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Jr={mousedown:function(r){r=Or(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Or(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=Or(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Or(this.dom,r);var t=r.toElement||r.relatedTarget;VM(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){D1=!0,r=Or(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){D1||(r=Or(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Or(this.dom,r),Jh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Jr.mousemove.call(this,r),Jr.mousedown.call(this,r)},touchmove:function(r){r=Or(this.dom,r),Jh(r),this.handler.processGesture(r,"change"),Jr.mousemove.call(this,r)},touchend:function(r){r=Or(this.dom,r),Jh(r),this.handler.processGesture(r,"end"),Jr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentP1||r<-P1}var gi=[],Go=[],td=He(),ed=Math.abs,EN=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 pi(this.rotation)||pi(this.x)||pi(this.y)||pi(this.scaleX-1)||pi(this.scaleY-1)||pi(this.skewX)||pi(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(I1(a),this.invTransform=null);return}a=a||He(),e?this.getLocalTransform(a):I1(a),t&&(e?Ra(a,t,a):Qv(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(gi);var a=gi[0]<0?-1:1,n=gi[1]<0?-1:1,i=((gi[0]-a)*e+a)/gi[0]||0,o=((gi[1]-n)*e+n)/gi[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||He(),sa(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||He(),Ra(Go,t.invTransform,e),e=Go);var a=this.originX,n=this.originY;(a||n)&&(td[4]=a,td[5]=n,Ra(Go,e,td),Go[4]-=a,Go[5]-=n,e=Go),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&&ye(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&ye(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&ed(t[0]-1)>1e-10&&ed(t[3]-1)>1e-10?Math.sqrt(ed(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){qc(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&&si(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}(),Va=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function qc(r,t){for(var e=0;e=k1)){r=r||fn;for(var t=[],e=+new Date,a=0;a<=127;a++)t[a]=oa.measureText(String.fromCharCode(a),r).width;var n=+new Date-e;return n>16?rd=k1:n>2&&rd++,t}}var rd=0,k1=5;function FM(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=ON(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Na(r,t){var e=r.strWidthCache,a=e.get(t);return a==null&&(a=oa.measureText(t,r.font).width,e.put(t,a)),a}function R1(r,t,e,a){var n=Na(Oa(t),r),i=Gu(t),o=Ds(0,n,e),s=no(0,i,a),l=new gt(o,s,n,i);return l}function eh(r,t,e,a){var n=((r||"")+"").split(` +`),i=n.length;if(i===1)return R1(n[0],t,e,a);for(var o=new gt(0,0,0,0),s=0;s=0?parseFloat(r)/100*t:parseFloat(r):r}function Kc(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+=la(a[0],e.width),u+=la(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 ad="__zr_normal__",nd=Va.concat(["ignore"]),NN=Ba(Va,function(r,t){return r[t]=!0,r},{ignore:!1}),Fo={},BN=new gt(0,0,0,0),vf=[],Gm=function(){function r(t){this.id=vM(),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=BN,a.layoutRect?v.copy(a.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Fo,a,v):Kc(Fo,a,v),i.x=Fo.x,i.y=Fo.y,o=Fo.align,s=Fo.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=la(h[0],v.width),p=la(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 gt(0,0,0,0);i.getLocalTransform(vf),sa(vf,vf),gt.copy(m,v),m.applyTransform(vf)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,x=void 0,b=void 0;_&&this.canBeInsideText()?(S=a.insideFill,x=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),b=!0)):(S=a.outsideFill,x=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==y.fill||x!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=b,y.align=o,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=br,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()?Fg:Gg},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&gr(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,Ea(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(dt(t))for(var a=t,n=kt(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(ad,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===ad,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(wt(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){Im("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&=~br),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&=~br)}},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=wt(n,t),o=wt(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]=jl(e[y]),VN(e,a,y)}}var x=new Vm(e,!1,!1,c?Ut(d,function(I){return I.targetName===t}):null);x.targetName=t,n.scope&&(x.scope=n.scope),v&&T&&x.whenWithKeys(0,T,p),M&&x.whenWithKeys(0,M,p),x.whenWithKeys(u??500,s?C:a,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}const WM=Gm;var $M=function(r){B(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=wt(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=wt(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=qN;function qN(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 ev(r,t,e)}function ev(r,t,e){return J(r)?XN(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function Se(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),KM),r=(+r).toFixed(t),e?r:+r}function $r(r){return r.sort(function(t,e){return t-e}),r}function La(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 KN(r)}function KN(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 jM(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Da(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function jN(r,t){var e=za(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=Z(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=Z(n,function(h){return Math.floor(h)}),s=za(o,function(h,d){return h+d},0),l=Z(n,function(h,d){return h-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Z(o,function(h){return h/a})}function JN(r,t){var e=Math.max(La(r),La(t)),a=r+t;return e>KM?a:Se(a,e)}var G1=9007199254740991;function JM(r){var t=Math.PI*2;return(r%t+t)%t}function gu(r){return r>-V1&&r=10&&t++,t}function QM(r,t){var e=$m(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 fd(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 F1(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 cd(r){r.option=r.parentModel=r.ecModel=null}var _B=".",mi="___EC__COMPONENT__CONTAINER___",fD="___EC__EXTENDED_CLASS___";function Ia(r){var t={main:"",sub:""};if(r){var e=r.split(_B);t.main=e[0]||"",t.sub=e[1]||""}return t}function SB(r){rr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function xB(r){return!!(r&&r[fD])}function Zm(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return bB(a)?n=function(i){B(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},hO(n,this)),$(n.prototype,e),n[fD]=!0,n.extend=this.extend,n.superCall=CB,n.superApply=AB,n.superClass=a,n}}function bB(r){return lt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function cD(r,t){r.extend=t.extend}var wB=Math.round(Math.random()*10);function TB(r){var t=["__\0is_clz",wB++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function CB(r,t){for(var e=[],a=2;a=0||i&&wt(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var MB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],DB=yo(MB),LB=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return DB(this,t,e)},r}(),Zg=new Ds(50);function IB(r){if(typeof r=="string"){var t=Zg.get(r);return t&&t.image}else return r}function Xm(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Zg.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!sh(t)&&i.pending.push(o)):(t=sa.loadImage(r,Y1,Y1),t.__zrImageSrc=r,Zg.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Y1(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;u++)l-=s;var f=Ba(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 hD(r,t,e){var a=e.containerWidth,n=e.contentWidth,i=e.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ba(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?kB(t,n,i):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=Ba(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function kB(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=vD(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},b=0;bd&&hd(i,o.substring(d,g),t,h),hd(i,p[2],t,h,p[1]),d=vd.lastIndex}dc){var z=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=dD(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=Na(l),y=0;y=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var zB=za(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function VB(r){return BB(r)?!!zB[r]:!0}function dD(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,c=Na(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 X1(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;gt.set(q1,Ls(e,o,n),io(a,s,i),o,s),gt.intersect(t,q1,null,K1);var l=K1.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Ls(l.x,l.width,n,!0),r.baseY=io(l.y,l.height,i,!0)}}var q1=new gt(0,0,0,0),K1={outIntersectRect:{},clamp:!0};function qm(r){return r!=null?r+="":r=""}function GB(r){var t=qm(r.text),e=r.font,a=Ba(Na(e),t),n=Wu(e);return Xg(r,a,n,null)}function Xg(r,t,e,a){var n=new gt(Ls(r.x||0,t,r.textAlign),io(r.y||0,e,r.textBaseline),t,e),i=a??(pD(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function pD(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var qg="__zr_style_"+Math.round(Math.random()*10),oo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},lh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oo[qg]=!0;var j1=["z","z2","invisible"],FB=["invisible"],HB=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=kt(e),n=0;n1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(yf[0]=yd(n)*e+r,yf[1]=gd(n)*a+t,mf[0]=yd(i)*e+r,mf[1]=gd(i)*a+t,u(s,yf,mf),f(l,yf,mf),n=n%_i,n<0&&(n=n+_i),i=i%_i,i<0&&(i=i+_i),n>i&&!o?i+=_i:nn&&(_f[0]=yd(h)*e+r,_f[1]=gd(h)*a+t,u(s,_f,s),f(l,_f,l))}var jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Si=[],xi=[],pa=[],wn=[],ga=[],ya=[],md=Math.min,_d=Math.max,bi=Math.cos,wi=Math.sin,Za=Math.abs,Kg=Math.PI,Rn=Kg*2,Sd=typeof Float32Array<"u",ul=[];function xd(r){var t=Math.round(r/Kg*1e8)/1e8;return t%2*Kg}function fh(r,t){var e=xd(r[0]);e<0&&(e+=Rn);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=Rn?n=e+Rn:t&&e-n>=Rn?n=e-Rn:!t&&e>n?n=e+(Rn-xd(e-n)):t&&e0&&(this._ux=Za(a/Jc/t)||0,this._uy=Za(a/Jc/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(jt.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(jt.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(jt.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(jt.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(),ul[0]=n,ul[1]=i,fh(ul,o),n=ul[0],i=ul[1];var s=i-n;return this.addData(jt.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=bi(i)*a+t,this._yi=wi(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(jt.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(jt.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(){pa[0]=pa[1]=ga[0]=ga[1]=Number.MAX_VALUE,wn[0]=wn[1]=ya[0]=ya[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 jt.C:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++],b=t[v++],w=t[v++];p=tN(i,o,S,x,g,y,b,w,10),i=b,o=w;break}case jt.Q:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++];p=rN(i,o,S,x,g,y,10),i=g,o=y;break}case jt.A:var T=t[v++],C=t[v++],M=t[v++],D=t[v++],I=t[v++],L=t[v++],P=L+I;v+=1,d&&(s=bi(I)*M+T,l=wi(I)*D+C),p=_d(M,D)*md(Rn,Math.abs(L)),i=bi(P)*M+T,o=wi(P)*D+C;break;case jt.R:{s=i=t[v++],l=o=t[v++];var R=t[v++],k=t[v++];p=R*2+k*2;break}case jt.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,x;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var b=0;b0&&(t.lineTo(S,x),_=0),w){case jt.M:s=u=a[b++],l=f=a[b++],t.moveTo(u,f);break;case jt.L:{c=a[b++],v=a[b++];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,x=v,_=L)}break}case jt.C:{var P=a[b++],R=a[b++],k=a[b++],N=a[b++],E=a[b++],z=a[b++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;Qn(u,P,k,E,I,Si),Qn(f,R,N,z,I,xi),t.bezierCurveTo(Si[1],xi[1],Si[2],xi[2],Si[3],xi[3]);break t}g+=D}t.bezierCurveTo(P,R,k,N,E,z),u=E,f=z;break}case jt.Q:{var P=a[b++],R=a[b++],k=a[b++],N=a[b++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;hu(u,P,k,I,Si),hu(f,R,N,I,xi),t.quadraticCurveTo(Si[1],xi[1],Si[2],xi[2]);break t}g+=D}t.quadraticCurveTo(P,R,k,N),u=k,f=N;break}case jt.A:var V=a[b++],H=a[b++],G=a[b++],Y=a[b++],X=a[b++],ot=a[b++],St=a[b++],Mt=!a[b++],st=G>Y?G:Y,et=Za(G-Y)>.001,it=X+ot,tt=!1;if(h){var D=d[y++];g+D>m&&(it=X+ot*(m-g)/D,tt=!0),g+=D}if(et&&t.ellipse?t.ellipse(V,H,G,Y,St,X,it,Mt):t.arc(V,H,st,X,it,Mt),tt)break t;T&&(s=bi(X)*G+V,l=wi(X)*Y+H),u=bi(it)*G+V,f=wi(it)*Y+H;break;case jt.R:s=u=a[b],l=f=a[b+1],c=a[b++],v=a[b++];var O=a[b++],W=a[b++];if(h){var D=d[y++];if(g+D>m){var q=m-g;t.moveTo(c,v),t.lineTo(c+md(q,O),v),q-=O,q>0&&t.lineTo(c+O,v+md(q,W)),q-=W,q>0&&t.lineTo(c+_d(O-q,0),v+W),q-=O,q>0&&t.lineTo(c,v+_d(W-q,0));break t}g+=D}t.rect(c,v,O,W);break;case jt.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=jt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const Fa=ZB;function On(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+=fl);var v=Math.atan2(l,s);return v<0&&(v+=fl),v>=a&&v<=n||v+fl>=a&&v+fl<=n}function tn(r,t,e,a,n,i){if(i>t&&i>a||in?s:0}var Tn=Fa.CMD,Ti=Math.PI*2,KB=1e-4;function jB(r,t){return Math.abs(r-t)t&&u>a&&u>i&&u>s||u1&&JB(),h=Oe(t,a,i,s,Br[0]),v>1&&(d=Oe(t,a,i,s,Br[1]))),v===2?gt&&s>a&&s>i||s=0&&u<=1){for(var f=0,c=Fe(t,a,i,u),v=0;ve||s<-e)return 0;var l=Math.sqrt(e*e-s*s);or[0]=-l,or[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Ti-1e-4){a=0,n=Ti;var f=i?1:-1;return o>=or[0]+r&&o<=or[1]+r?f:0}if(a>n){var c=a;a=n,n=c}a<0&&(a+=Ti,n+=Ti);for(var v=0,h=0;h<2;h++){var d=or[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=Ti+p),(p>=a&&p<=n||p+Ti>=a&&p+Ti<=n)&&(p>Math.PI/2&&p1&&(e||(s+=tn(l,u,f,c,a,n))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case Tn.M:f=i[d++],c=i[d++],l=f,u=c;break;case Tn.L:if(e){if(On(l,u,i[d],i[d+1],t,a,n))return!0}else s+=tn(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Tn.C:if(e){if(XB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=QB(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 Tn.Q:if(e){if(gD(l,u,i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=tz(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Tn.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],x=i[d++],b=i[d++];d+=1;var w=!!(1-i[d++]);v=Math.cos(x)*_+y,h=Math.sin(x)*S+m,g?(f=v,c=h):s+=tn(l,u,v,h,a,n);var T=(a-y)*S/_+y;if(e){if(qB(y,m,S,x,x+b,w,t,T,n))return!0}else s+=ez(y,m,S,x,x+b,w,T,n);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case Tn.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(On(f,c,v,c,t,a,n)||On(v,c,v,h,t,a,n)||On(v,h,f,h,t,a,n)||On(f,h,f,c,t,a,n))return!0}else s+=tn(v,c,v,h,a,n),s+=tn(f,h,f,c,a,n);break;case Tn.Z:if(e){if(On(l,u,f,c,t,a,n))return!0}else s+=tn(l,u,f,c,a,n);l=f,u=c;break}}return!e&&!jB(u,c)&&(s+=tn(l,u,f,c,a,n)||0),s!==0}function rz(r,t,e){return yD(r,0,!1,t,e)}function az(r,t,e,a){return yD(r,t,!0,e,a)}var rv=ht({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oo),nz={style:ht({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},lh.style)},bd=Ga.concat(["invisible","culling","z","z2","zlevel","parent"]),iz=function(r){B(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?Wg:a>.2?RN:$g}else if(e)return $g}return Wg},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(J(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Kc(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&cs)&&(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)),az(s,l/u,e,a)))return!0}if(this.hasFill())return rz(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=cs,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&cs)},t.prototype.createStyle=function(e){return eh(rv,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=kt(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 ys=Math.round;function ch(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&&(ys(a*2)===ys(n*2)&&(r.x1=r.x2=Cr(a,s,!0)),ys(i*2)===ys(o*2)&&(r.y1=r.y2=Cr(i,s,!0))),r}}function SD(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=Cr(a,s,!0),r.y=Cr(n,s,!0),r.width=Math.max(Cr(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Cr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Cr(r,t,e){if(!t)return r;var a=ys(r*2);return(a+ys(t))%2===0?a/2:(a+(e?1:-1))/2}var cz=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),vz={},xD=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new cz},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=SD(vz,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?fz(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Pt);xD.prototype.type="rect";const Lt=xD;var rS={fill:"#000"},aS=2,ma={},hz={style:ht({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},lh.style)},bD=function(r){B(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=rS,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&&(P=b[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(D+=(f-(D-g)-(m-I)-C)/2;M<=L;)P=b[M],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.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&&wd(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=uS(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(mu),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,x=lS("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=sS("stroke"in u?u.stroke:"stroke"in a?a.stroke:!h&&!l&&(!y.autoStroke||m)?(_=aS,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||fn,g.opacity=Ar(u.opacity,a.opacity,1),iS(g,u),b&&(g.lineWidth=Ar(u.lineWidth,a.lineWidth,_),g.lineDash=nt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),x&&(g.fill=x),p.setBoundingRect(Xg(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(Lt),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(qe),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=Ar(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return TD(e)&&(a=[e.fontStyle,e.fontWeight,wD(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&Wr(a)||e.textFont||e.font},t}(Yr),dz={left:!0,right:1,center:1},pz={top:1,bottom:1,middle:1},nS=["fontStyle","fontWeight","fontSize","fontFamily"];function wD(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Im+"px":r+"px"}function iS(r,t){for(var e=0;e=0,i=!1;if(r instanceof Pt){var o=CD(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Wo(s)||Wo(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=$({},a),u=$({},u),u.fill=s):!Wo(u.fill)&&Wo(s)?(i=!0,a=$({},a),u=$({},u),u.fill=Og(s)):!Wo(u.stroke)&&Wo(l)&&(i||(a=$({},a),u=$({},u)),u.stroke=Og(l)),a.style=u}}if(a&&a.z2==null){i||(a=$({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??Us)}return a}function bz(r,t,e){if(e&&e.z2==null){e=$({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??yz)}return e}function wz(r,t,e){var a=wt(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:Sz(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 Td(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return xz(this,r,t,e);if(r==="blur")return wz(this,r,e);if(r==="select")return bz(this,r,e)}return e}function mo(r){r.stateProxy=Td;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Td),e&&(e.stateProxy=Td)}function dS(r,t){!kD(r,t)&&!r.__highByOuter&&_n(r,AD)}function pS(r,t){!kD(r,t)&&!r.__highByOuter&&_n(r,MD)}function hn(r,t){r.__highByOuter|=1<<(t||0),_n(r,AD)}function dn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&_n(r,MD)}function LD(r){_n(r,Qm)}function t0(r){_n(r,DD)}function ID(r){_n(r,mz)}function PD(r){_n(r,_z)}function kD(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function RD(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Km(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){DD(u)}),s&&e.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Qg(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 lo(r,t,e){Ki(r,!0),_n(r,mo),ey(r,t,e)}function Lz(r){Ki(r,!1)}function ne(r,t,e,a){a?Lz(r):lo(r,t,e)}function ey(r,t,e){var a=mt(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var yS=["emphasis","blur","select"],Iz={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ie(r,t,e,a){e=e||"itemStyle";for(var n=0;n1&&(o*=Cd(d),s*=Cd(d));var p=(n===i?-1:1)*Cd((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+xf(c)*g-Sf(c)*y,_=(t+a)/2+Sf(c)*g+xf(c)*y,S=xS([1,0],[(v-g)/o,(h-y)/s]),x=[(v-g)/o,(h-y)/s],b=[(-1*v-g)/o,(-1*h-y)/s],w=xS(x,b);if(ay(x,b)<=-1&&(w=cl),ay(x,b)>=1&&(w=0),w<0){var T=Math.round(w/cl*1e6)/1e6;w=cl*2+T%2*cl}f.addData(u,m,_,o,s,S,w,c,i)}var Nz=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Bz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function zz(r){var t=new Fa;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=Fa.CMD,l=r.match(Nz);if(!l)return t;for(var u=0;uP*P+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(n/x-1),y1:C*(n/x-1)}}function Uz(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 Yz(r,t){var e,a=Fl(t.r,0),n=Fl(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=wS(u-l),d=h>Ad&&h%Ad;if(d>Jr&&(h=d),!(a>Jr))r.moveTo(f,c);else if(h>Ad-Jr)r.moveTo(f+a*Uo(l),c+a*Ci(l)),r.arc(f,c,a,l,u,!v),n>Jr&&(r.moveTo(f+n*Uo(u),c+n*Ci(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,x=void 0,b=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,I=void 0,L=void 0,P=void 0,R=a*Uo(l),k=a*Ci(l),N=n*Uo(u),E=n*Ci(u),z=h>Jr;if(z){var V=t.cornerRadius;V&&(e=Uz(V),p=e[0],g=e[1],y=e[2],m=e[3]);var H=wS(a-n)/2;if(_=_a(H,y),S=_a(H,m),x=_a(H,p),b=_a(H,g),C=w=Fl(_,S),M=T=Fl(x,b),(w>Jr||T>Jr)&&(D=a*Uo(u),I=a*Ci(u),L=n*Uo(l),P=n*Ci(l),hJr){var et=_a(y,C),it=_a(m,C),tt=bf(L,P,R,k,a,et,v),O=bf(D,I,N,E,a,it,v);r.moveTo(f+tt.cx+tt.x0,c+tt.cy+tt.y0),C0&&r.arc(f+tt.cx,c+tt.cy,et,Ke(tt.y0,tt.x0),Ke(tt.y1,tt.x1),!v),r.arc(f,c,a,Ke(tt.cy+tt.y1,tt.cx+tt.x1),Ke(O.cy+O.y1,O.cx+O.x1),!v),it>0&&r.arc(f+O.cx,c+O.cy,it,Ke(O.y1,O.x1),Ke(O.y0,O.x0),!v))}else r.moveTo(f+R,c+k),r.arc(f,c,a,l,u,!v);if(!(n>Jr)||!z)r.lineTo(f+N,c+E);else if(M>Jr){var et=_a(p,M),it=_a(g,M),tt=bf(N,E,D,I,n,-it,v),O=bf(R,k,L,P,n,-et,v);r.lineTo(f+tt.cx+tt.x0,c+tt.cy+tt.y0),M0&&r.arc(f+tt.cx,c+tt.cy,it,Ke(tt.y0,tt.x0),Ke(tt.y1,tt.x1),!v),r.arc(f,c,n,Ke(tt.cy+tt.y1,tt.cx+tt.x1),Ke(O.cy+O.y1,O.cx+O.x1),v),et>0&&r.arc(f+O.cx,c+O.cy,et,Ke(O.y1,O.x1),Ke(O.y0,O.x0),!v))}else r.lineTo(f+N,c+E),r.arc(f,c,n,u,l,v)}r.closePath()}}}var Zz=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}(),HD=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Zz},t.prototype.buildPath=function(e,a){Yz(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Pt);HD.prototype.type="sector";const fr=HD;var Xz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),WD=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Xz},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}(Pt);WD.prototype.type="ring";const dh=WD;function qz(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=qz(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;sMi[1]){if(i=!1,Ge.negativeSize||a)return i;var l=wf(Mi[0]-Ai[1]),u=wf(Ai[0]-Mi[1]);Md(l,u)>Cf.len()&&(l=u||!Ge.bidirectional)&&(vt.scale(Tf,s,-u*n),Ge.useDir&&Ge.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 Bt(r,t,e,a,n,i){i0("update",r,t,e,a,n,i)}function re(r,t,e,a,n,i){i0("enter",r,t,e,a,n,i)}function Ts(r){if(!r.__zr)return!0;for(var t=0;tDa(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function AS(r){return!r.isGroup}function gV(r){return r.shape!=null}function Uu(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){AS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return gV(o)&&(s.shape=ut(o.shape)),s}var i=a(r);t.traverse(function(o){if(AS(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Bt(o,l,e,mt(o).dataIndex)}}})}function aL(r,t){return Z(r,function(e){var a=e[0];a=ge(a,t.x),a=Mr(a,t.x+t.width);var n=e[1];return n=ge(n,t.y),n=Mr(n,t.y+t.height),[a,n]})}function yV(r,t){var e=ge(r.x,t.x),a=Mr(r.x+r.width,t.x+t.width),n=ge(r.y,t.y),i=Mr(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 Yu(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),ht(n,e),new qe(a)):xu(r.replace("path://",""),a,e,"center")}function Hl(r,t,e,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=Dd(h,d,f,c)/v;return!(g<0||g>1)}function Dd(r,t,e,a){return r*a-e*t}function mV(r){return r<=1e-6&&r>=-1e-6}function _o(r,t,e,a,n){return t==null||(Rt(t)?se[0]=se[1]=se[2]=se[3]=t:(se[0]=t[0],se[1]=t[1],se[2]=t[2],se[3]=t[3]),a&&(se[0]=ge(0,se[0]),se[1]=ge(0,se[1]),se[2]=ge(0,se[2]),se[3]=ge(0,se[3])),e&&(se[0]=-se[0],se[1]=-se[1],se[2]=-se[2],se[3]=-se[3]),MS(r,se,"x","width",3,1,n&&n[0]||0),MS(r,se,"y","height",0,2,n&&n[1]||0)),r}var se=[0,0,0,0];function MS(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=ge(0,Mr(o,l)),r[a]=0?-t[n]:t[i]>=0?l+t[i]:Da(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function Sn(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=J(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(kt(l),function(f){rt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=mt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ht({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function iy(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function fi(r,t){if(r)if(U(r))for(var e=0;et&&(t=o),ot&&(e=t=0),{min:e,max:t}}function mh(r,t,e){oL(r,t,e,-1/0)}function oL(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 ci(r,t){return Ct(Ct({},r,!0),t,!0)}const PV={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:". "}}}},kV={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 lv="ZH",u0="EN",Cs=u0,kc={},f0={},vL=Vt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Cs).toUpperCase();return r.indexOf(lv)>-1?lv:Cs}():Cs;function hL(r,t){r=r.toUpperCase(),f0[r]=new zt(t),kc[r]=t}function RV(r){if(J(r)){var t=kc[r.toUpperCase()]||{};return r===lv||r===u0?ut(t):Ct(ut(t),ut(kc[Cs]),!1)}else return Ct(ut(r),ut(kc[Cs]),!1)}function sy(r){return f0[r]}function EV(){return f0[Cs]}hL(u0,PV);hL(lv,kV);var ly=null;function OV(r){ly||(ly=r)}function xe(){return ly}var c0=1e3,v0=c0*60,au=v0*60,Hr=au*24,kS=Hr*365,NV={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})/},Rc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},BV="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Mf="{yyyy}-{MM}-{dd}",RS={year:"{yyyy}",month:"{yyyy}-{MM}",day:Mf,hour:Mf+" "+Rc.hour,minute:Mf+" "+Rc.minute,second:Mf+" "+Rc.second,millisecond:BV},Sr=["year","month","day","hour","minute","second","millisecond"],zV=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function VV(r){return!J(r)&&!lt(r)?GV(r):r}function GV(r){r=r||{};var t={},e=!0;return A(Sr,function(a){e&&(e=r[a]==null)}),A(Sr,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=Sr[s],u=dt(i)&&!U(i)?i[l]:i,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):J(u)?(o=u,f=[o]):(o==null?o=Rc[a]:NV[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[a][l]=f}}),t}function Cn(r,t){return r+="","0000".substr(0,t-r.length)+r}function nu(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 FV(r){return r===nu(r)}function HV(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Sh(r,t,e,a){var n=Ao(r),i=n[dL(e)](),o=n[h0(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[d0(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[p0(e)](),c=(f-1)%12+1,v=n[g0(e)](),h=n[y0(e)](),d=n[m0(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=a instanceof zt?a:sy(a||vL)||EV(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Cn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Cn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Cn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Cn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Cn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Cn(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Cn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Cn(d,3)).replace(/{S}/g,d+"")}function WV(r,t,e,a,n){var i=null;if(J(e))i=e;else if(lt(e)){var o={time:r.time,level:r.time.level},s=xe();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=_s(r.value,n);i=e[f][f][0]}}return Sh(new Date(r.value),i,n,a)}function _s(r,t){var e=Ao(r),a=e[h0(t)]()+1,n=e[d0(t)](),i=e[p0(t)](),o=e[g0(t)](),s=e[y0(t)](),l=e[m0(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 uy(r,t,e){switch(t){case"year":r[pL(e)](0);case"month":r[gL(e)](1);case"day":r[yL(e)](0);case"hour":r[mL(e)](0);case"minute":r[_L(e)](0);case"second":r[SL(e)](0)}return r}function dL(r){return r?"getUTCFullYear":"getFullYear"}function h0(r){return r?"getUTCMonth":"getMonth"}function d0(r){return r?"getUTCDate":"getDate"}function p0(r){return r?"getUTCHours":"getHours"}function g0(r){return r?"getUTCMinutes":"getMinutes"}function y0(r){return r?"getUTCSeconds":"getSeconds"}function m0(r){return r?"getUTCMilliseconds":"getMilliseconds"}function $V(r){return r?"setUTCFullYear":"setFullYear"}function pL(r){return r?"setUTCMonth":"setMonth"}function gL(r){return r?"setUTCDate":"setDate"}function yL(r){return r?"setUTCHours":"setHours"}function mL(r){return r?"setUTCMinutes":"setMinutes"}function _L(r){return r?"setUTCSeconds":"setSeconds"}function SL(r){return r?"setUTCMilliseconds":"setMilliseconds"}function xL(r){if(!tD(r))return J(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function bL(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 Zu=th;function fy(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Wr(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?Ao(r):r;if(isNaN(+l)){if(s)return"-"}else return Sh(l,a,e)}if(t==="ordinal")return Sg(r)?n(r):Rt(r)&&i(r)?r+"":"-";var u=vn(r);return i(u)?xL(u):Sg(r)?n(r):typeof r=="boolean"?r+"":"-"}var ES=["a","b","c","d","e","f","g"],Pd=function(r,t){return"{"+r+(t??"")+"}"};function wL(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 xo(r,t){return t=t||"transparent",J(r)?r:dt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function uv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Ec={},kd={},ZV=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(Ec),this._normalMasterList=a(kd);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"){Ec[t]=e;return}kd[t]=e},r.get=function(t){return kd[t]||Ec[t]},r}();function XV(r){return!!Ec[r]}var cy={coord:1,coord2:2};function qV(r){TL.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var TL=at();function KV(r){var t=r.getShallow("coord",!0),e=cy.coord;if(t==null){var a=TL.get(r.type);a&&a.getCoord2&&(e=cy.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var Aa={none:0,dataCoordSys:1,boxCoordSys:2};function CL(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=Aa.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=Aa.dataCoordSys,i||(n=Aa.none)):a==="box"&&(n=Aa.boxCoordSys,!i&&!XV(e)&&(n=Aa.none))}return{coordSysType:e,kind:n}}function Xu(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=CL(t),o=i.kind,s=i.coordSysType;if(n&&o!==Aa.dataCoordSys&&(o=Aa.dataCoordSys,s=e),o===Aa.none||s!==e)return!1;var l=a(e,t);return l?(o===Aa.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var AL=function(r,t){var e=t.getReferringComponents(r,ce).models[0];return e&&e.coordinateSystem};const qu=ZV;var Oc=A,ML=["left","right","top","bottom","width","height"],ji=[["width","left","right"],["height","top","bottom"]];function _0(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 fo=_0;bt(_0,"vertical");bt(_0,"horizontal");function DL(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 jV(r,t){var e=ke(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===Wl.point)i=e.refPoint,n=ie(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=U(o)?o:[o,o];n=ie(a,e.refContainer),i=e.boxCoordFrom===cy.coord2?e.refPoint:[j(s[0],n.width)+n.x,j(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function LL(r,t){var e=jV(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 ie(r,t,e){e=Zu(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 gt((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}function IL(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=Ct(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return $s(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return DL(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}(zt);cD(Ks,zt);oh(Ks);LV(Ks);IV(Ks,t5);function t5(r){var t=[];return A(Ks.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Z(t,function(e){return Ia(e).main}),r!=="dataset"&&wt(t,"dataset")<=0&&t.unshift("dataset"),t}const Et=Ks;var Ji={color:{},darkColor:{},size:{}},de=Ji.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)"};$(de,{primary:de.neutral80,secondary:de.neutral70,tertiary:de.neutral60,quaternary:de.neutral50,disabled:de.neutral20,border:de.neutral30,borderTint:de.neutral20,borderShade:de.neutral40,background:de.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:de.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:de.neutral70,axisLineTint:de.neutral40,axisTick:de.neutral70,axisTickMinor:de.neutral60,axisLabel:de.neutral70,axisSplitLine:de.neutral15,axisMinorSplitLine:de.neutral05});for(var Di in de)if(de.hasOwnProperty(Di)){var OS=de[Di];Di==="theme"?Ji.darkColor.theme=de.theme.slice():Di==="highlight"?Ji.darkColor.highlight="rgba(255,231,130,0.4)":Di.indexOf("accent")===0?Ji.darkColor[Di]=Xn(OS,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Ji.darkColor[Di]=Xn(OS,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Ji.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const F=Ji;var kL="";typeof navigator<"u"&&(kL=navigator.platform||"");var Yo="rgba(0, 0, 0, 0.2)",RL=F.color.theme[0],e5=Xn(RL,null,null,.9);const r5={darkMode:"auto",colorBy:"series",color:F.color.theme,gradientColor:[e5,RL],aria:{decal:{decals:[{color:Yo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Yo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Yo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Yo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Yo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Yo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:kL.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 EL=at(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Dr="original",We="arrayRows",Lr="objectRows",va="keyedColumns",Kn="typedArray",OL="unknown",oa="column",Io="row",Ue={Must:1,Might:2,Not:3},NL=It();function a5(r){NL(r).datasetMap=at()}function BL(r,t,e){var a={},n=x0(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=NL(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),A(r,function(p,g){var y=dt(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 GL(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:l5(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 u5(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Df,vl,BS,zS="\0_ec_inner",f5=1,FL=function(r){B(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 zt(i),this._locale=new zt(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=FS(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,FS(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"?BS(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=at(),u=a&&a.replaceMergeMainTypeMap;a5(this),A(e,function(c,v){c!=null&&(Et.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?ut(c):Ct(n[v],c,!0))}),u&&u.each(function(c,v){Et.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Et.topologicalTravel(s,Et.getAllClassMainTypes(),f,this);function f(c){var v=o5(this,c,Kt(e[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=oD(h,v,d);vB(p,c,Et),n[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;A(p,function(S,x){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=c==="series",C=Et.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var M=$({componentIndex:x},S.keyInfo);b=new C(w,this,this,M),$(b,M),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),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=ut(this.option);return A(e,function(a,n){if(Et.hasClass(n)){for(var i=Kt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!yu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[zS],e},t.prototype.setTheme=function(e){this._theme=new zt(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 S5(r,t){return r.join(",")===t.join(",")}const x5=g5;var jr=A,Tu=dt,HS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Rd(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=HS.length;e0?e[o-1].seriesModel:null)}),I5(e)}})}function I5(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=JN(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var bh=function(){function r(t){this.data=t.data||(t.sourceFormat===va?{}:[]),this.sourceFormat=t.sourceFormat||OL,this.seriesLayoutBy=t.seriesLayoutBy||oa,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};qS=(t={},t[We+"_"+oa]={pure:!0,appendData:i},t[We+"_"+Io]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Lr]={pure:!0,appendData:i},t[va]={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[Dr]={appendData:i},t[Kn]={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 Ps(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function QS(r){var t,e;return dt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function iu(r){return new z5(r)}var z5=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}},G5=function(){function r(t,e){if(!Rt(e)){var a="";Ht(a)}this._opFn=QL[t],this._rvalFloat=vn(e)}return r.prototype.evaluate=function(t){return Rt(t)?this._opFn(t,this._rvalFloat):this._opFn(vn(t),this._rvalFloat)},r}(),t2=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=Rt(t)?t:vn(t),n=Rt(e)?e:vn(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=J(t),l=J(e);s&&(a=l?t:0),l&&(n=s?e:0)}return an?-this._resultLT:0},r}(),F5=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=vn(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=vn(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function H5(r,t){return r==="eq"||r==="ne"?new F5(r==="eq",t):rt(QL,r)?new G5(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 jn(t,e)},r}();function $5(r,t){var e=new W5,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==oa&&Ht(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 _="";rt(l,y)&&Ht(_),l[y]=m}});else for(var f=0;f65535?J5:Q5}function Xo(){return[1/0,-1/0]}function tG(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function rx(r,t,e,a,n){var i=a2[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=Z(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],x=t[n[1]][1],y=0;y=c&&m<=v||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(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 jn(e[i],this._dimensions[i])}Nd={arrayRows:t,objectRows:function(e,a,n,i){return jn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return jn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),n2=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(If(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=yr(s)?Kn:Dr,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?[dy(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=[dy(_,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&&nx(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&nx(c),s.push(f),l.push(u._getVersionSign())}),a?o=K5(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[P5(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e0&&(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=qN;function qN(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 jc(r,t,e)}function jc(r,t,e){return J(r)?XN(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function _e(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),YM),r=(+r).toFixed(t),e?r:+r}function $r(r){return r.sort(function(t,e){return t-e}),r}function Da(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 KN(r)}function KN(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 ZM(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Ma(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function jN(r,t){var e=Ba(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=Z(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=Z(n,function(h){return Math.floor(h)}),s=Ba(o,function(h,d){return h+d},0),l=Z(n,function(h,d){return h-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Z(o,function(h){return h/a})}function JN(r,t){var e=Math.max(Da(r),Da(t)),a=r+t;return e>YM?a:_e(a,e)}var N1=9007199254740991;function XM(r){var t=Math.PI*2;return(r%t+t)%t}function hu(r){return r>-O1&&r=10&&t++,t}function qM(r,t){var e=Fm(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 sd(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 B1(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 ld(r){r.option=r.parentModel=r.ecModel=null}var _B=".",yi="___EC__COMPONENT__CONTAINER___",oD="___EC__EXTENDED_CLASS___";function La(r){var t={main:"",sub:""};if(r){var e=r.split(_B);t.main=e[0]||"",t.sub=e[1]||""}return t}function SB(r){er(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function xB(r){return!!(r&&r[oD])}function $m(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return bB(a)?n=function(i){B(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},hO(n,this)),$(n.prototype,e),n[oD]=!0,n.extend=this.extend,n.superCall=CB,n.superApply=AB,n.superClass=a,n}}function bB(r){return lt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function sD(r,t){r.extend=t.extend}var wB=Math.round(Math.random()*10);function TB(r){var t=["__\0is_clz",wB++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function CB(r,t){for(var e=[],a=2;a=0||i&&wt(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var MB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],DB=go(MB),LB=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return DB(this,t,e)},r}(),$g=new Ms(50);function IB(r){if(typeof r=="string"){var t=$g.get(r);return t&&t.image}else return r}function Um(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=$g.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!ah(t)&&i.pending.push(o)):(t=oa.loadImage(r,H1,H1),t.__zrImageSrc=r,$g.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function H1(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;u++)l-=s;var f=Na(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 uD(r,t,e){var a=e.containerWidth,n=e.contentWidth,i=e.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Na(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?kB(t,n,i):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=Na(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function kB(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=lD(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},b=0;bd&&fd(i,o.substring(d,g),t,h),fd(i,p[2],t,h,p[1]),d=ud.lastIndex}dc){var z=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=fD(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=Oa(l),y=0;y=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var zB=Ba(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function VB(r){return BB(r)?!!zB[r]:!0}function fD(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,c=Oa(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 $1(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;gt.set(U1,Ds(e,o,n),no(a,s,i),o,s),gt.intersect(t,U1,null,Y1);var l=Y1.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Ds(l.x,l.width,n,!0),r.baseY=no(l.y,l.height,i,!0)}}var U1=new gt(0,0,0,0),Y1={outIntersectRect:{},clamp:!0};function Ym(r){return r!=null?r+="":r=""}function GB(r){var t=Ym(r.text),e=r.font,a=Na(Oa(e),t),n=Gu(e);return Ug(r,a,n,null)}function Ug(r,t,e,a){var n=new gt(Ds(r.x||0,t,r.textAlign),no(r.y||0,e,r.textBaseline),t,e),i=a??(cD(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function cD(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var Yg="__zr_style_"+Math.round(Math.random()*10),io={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};io[Yg]=!0;var Z1=["z","z2","invisible"],FB=["invisible"],HB=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=kt(e),n=0;n1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(hf[0]=dd(n)*e+r,hf[1]=hd(n)*a+t,df[0]=dd(i)*e+r,df[1]=hd(i)*a+t,u(s,hf,df),f(l,hf,df),n=n%mi,n<0&&(n=n+mi),i=i%mi,i<0&&(i=i+mi),n>i&&!o?i+=mi:nn&&(pf[0]=dd(h)*e+r,pf[1]=hd(h)*a+t,u(s,pf,s),f(l,pf,l))}var jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_i=[],Si=[],da=[],bn=[],pa=[],ga=[],pd=Math.min,gd=Math.max,xi=Math.cos,bi=Math.sin,Za=Math.abs,Zg=Math.PI,kn=Zg*2,yd=typeof Float32Array<"u",ol=[];function md(r){var t=Math.round(r/Zg*1e8)/1e8;return t%2*Zg}function oh(r,t){var e=md(r[0]);e<0&&(e+=kn);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=kn?n=e+kn:t&&e-n>=kn?n=e-kn:!t&&e>n?n=e+(kn-md(e-n)):t&&e0&&(this._ux=Za(a/Xc/t)||0,this._uy=Za(a/Xc/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(jt.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(jt.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(jt.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(jt.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(),ol[0]=n,ol[1]=i,oh(ol,o),n=ol[0],i=ol[1];var s=i-n;return this.addData(jt.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=xi(i)*a+t,this._yi=bi(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(jt.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(jt.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)&&yd&&(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(){da[0]=da[1]=pa[0]=pa[1]=Number.MAX_VALUE,bn[0]=bn[1]=ga[0]=ga[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 jt.C:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++],b=t[v++],w=t[v++];p=tN(i,o,S,x,g,y,b,w,10),i=b,o=w;break}case jt.Q:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++];p=rN(i,o,S,x,g,y,10),i=g,o=y;break}case jt.A:var T=t[v++],C=t[v++],M=t[v++],D=t[v++],I=t[v++],L=t[v++],P=L+I;v+=1,d&&(s=xi(I)*M+T,l=bi(I)*D+C),p=gd(M,D)*pd(kn,Math.abs(L)),i=xi(P)*M+T,o=bi(P)*D+C;break;case jt.R:{s=i=t[v++],l=o=t[v++];var R=t[v++],k=t[v++];p=R*2+k*2;break}case jt.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,x;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var b=0;b0&&(t.lineTo(S,x),_=0),w){case jt.M:s=u=a[b++],l=f=a[b++],t.moveTo(u,f);break;case jt.L:{c=a[b++],v=a[b++];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,x=v,_=L)}break}case jt.C:{var P=a[b++],R=a[b++],k=a[b++],N=a[b++],E=a[b++],z=a[b++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;Jn(u,P,k,E,I,_i),Jn(f,R,N,z,I,Si),t.bezierCurveTo(_i[1],Si[1],_i[2],Si[2],_i[3],Si[3]);break t}g+=D}t.bezierCurveTo(P,R,k,N,E,z),u=E,f=z;break}case jt.Q:{var P=a[b++],R=a[b++],k=a[b++],N=a[b++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;fu(u,P,k,I,_i),fu(f,R,N,I,Si),t.quadraticCurveTo(_i[1],Si[1],_i[2],Si[2]);break t}g+=D}t.quadraticCurveTo(P,R,k,N),u=k,f=N;break}case jt.A:var V=a[b++],H=a[b++],G=a[b++],Y=a[b++],X=a[b++],ot=a[b++],St=a[b++],Mt=!a[b++],st=G>Y?G:Y,et=Za(G-Y)>.001,it=X+ot,tt=!1;if(h){var D=d[y++];g+D>m&&(it=X+ot*(m-g)/D,tt=!0),g+=D}if(et&&t.ellipse?t.ellipse(V,H,G,Y,St,X,it,Mt):t.arc(V,H,st,X,it,Mt),tt)break t;T&&(s=xi(X)*G+V,l=bi(X)*Y+H),u=xi(it)*G+V,f=bi(it)*Y+H;break;case jt.R:s=u=a[b],l=f=a[b+1],c=a[b++],v=a[b++];var O=a[b++],W=a[b++];if(h){var D=d[y++];if(g+D>m){var q=m-g;t.moveTo(c,v),t.lineTo(c+pd(q,O),v),q-=O,q>0&&t.lineTo(c+O,v+pd(q,W)),q-=W,q>0&&t.lineTo(c+gd(O-q,0),v+W),q-=O,q>0&&t.lineTo(c,v+gd(W-q,0));break t}g+=D}t.rect(c,v,O,W);break;case jt.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=jt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const Ga=ZB;function En(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+=sl);var v=Math.atan2(l,s);return v<0&&(v+=sl),v>=a&&v<=n||v+sl>=a&&v+sl<=n}function tn(r,t,e,a,n,i){if(i>t&&i>a||in?s:0}var wn=Ga.CMD,wi=Math.PI*2,KB=1e-4;function jB(r,t){return Math.abs(r-t)t&&u>a&&u>i&&u>s||u1&&JB(),h=Ee(t,a,i,s,Br[0]),v>1&&(d=Ee(t,a,i,s,Br[1]))),v===2?gt&&s>a&&s>i||s=0&&u<=1){for(var f=0,c=Fe(t,a,i,u),v=0;ve||s<-e)return 0;var l=Math.sqrt(e*e-s*s);ir[0]=-l,ir[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=wi-1e-4){a=0,n=wi;var f=i?1:-1;return o>=ir[0]+r&&o<=ir[1]+r?f:0}if(a>n){var c=a;a=n,n=c}a<0&&(a+=wi,n+=wi);for(var v=0,h=0;h<2;h++){var d=ir[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=wi+p),(p>=a&&p<=n||p+wi>=a&&p+wi<=n)&&(p>Math.PI/2&&p1&&(e||(s+=tn(l,u,f,c,a,n))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case wn.M:f=i[d++],c=i[d++],l=f,u=c;break;case wn.L:if(e){if(En(l,u,i[d],i[d+1],t,a,n))return!0}else s+=tn(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case wn.C:if(e){if(XB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=QB(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 wn.Q:if(e){if(vD(l,u,i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=tz(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case wn.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],x=i[d++],b=i[d++];d+=1;var w=!!(1-i[d++]);v=Math.cos(x)*_+y,h=Math.sin(x)*S+m,g?(f=v,c=h):s+=tn(l,u,v,h,a,n);var T=(a-y)*S/_+y;if(e){if(qB(y,m,S,x,x+b,w,t,T,n))return!0}else s+=ez(y,m,S,x,x+b,w,T,n);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case wn.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(En(f,c,v,c,t,a,n)||En(v,c,v,h,t,a,n)||En(v,h,f,h,t,a,n)||En(f,h,f,c,t,a,n))return!0}else s+=tn(v,c,v,h,a,n),s+=tn(f,h,f,c,a,n);break;case wn.Z:if(e){if(En(l,u,f,c,t,a,n))return!0}else s+=tn(l,u,f,c,a,n);l=f,u=c;break}}return!e&&!jB(u,c)&&(s+=tn(l,u,f,c,a,n)||0),s!==0}function rz(r,t,e){return hD(r,0,!1,t,e)}function az(r,t,e,a){return hD(r,t,!0,e,a)}var Jc=ht({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},io),nz={style:ht({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},nh.style)},_d=Va.concat(["invisible","culling","z","z2","zlevel","parent"]),iz=function(r){B(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<_d.length;++s)n[_d[s]]=this[_d[s]];n.__dirty|=br}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var a=kt(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i.5?Gg:a>.2?RN:Fg}else if(e)return Fg}return Gg},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(J(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Yc(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&fs)&&(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)),az(s,l/u,e,a)))return!0}if(this.hasFill())return rz(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=fs,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&fs)},t.prototype.createStyle=function(e){return jv(Jc,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=kt(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 gs=Math.round;function sh(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&&(gs(a*2)===gs(n*2)&&(r.x1=r.x2=Tr(a,s,!0)),gs(i*2)===gs(o*2)&&(r.y1=r.y2=Tr(i,s,!0))),r}}function gD(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=Tr(a,s,!0),r.y=Tr(n,s,!0),r.width=Math.max(Tr(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Tr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Tr(r,t,e){if(!t)return r;var a=gs(r*2);return(a+gs(t))%2===0?a/2:(a+(e?1:-1))/2}var cz=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),vz={},yD=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new cz},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=gD(vz,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?fz(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Pt);yD.prototype.type="rect";const Lt=yD;var J1={fill:"#000"},Q1=2,ya={},hz={style:ht({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},nh.style)},mD=function(r){B(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=J1,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&&(P=b[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(D+=(f-(D-g)-(m-I)-C)/2;M<=L;)P=b[M],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.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=iS(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(pu),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,x=nS("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=aS("stroke"in u?u.stroke:"stroke"in a?a.stroke:!h&&!l&&(!y.autoStroke||m)?(_=Q1,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||fn,g.opacity=Cr(u.opacity,a.opacity,1),eS(g,u),b&&(g.lineWidth=Cr(u.lineWidth,a.lineWidth,_),g.lineDash=nt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),x&&(g.fill=x),p.setBoundingRect(Ug(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(Lt),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(qe),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=Cr(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return SD(e)&&(a=[e.fontStyle,e.fontWeight,_D(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&Wr(a)||e.textFont||e.font},t}(Yr),dz={left:!0,right:1,center:1},pz={top:1,bottom:1,middle:1},tS=["fontStyle","fontWeight","fontSize","fontFamily"];function _D(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Mm+"px":r+"px"}function eS(r,t){for(var e=0;e=0,i=!1;if(r instanceof Pt){var o=xD(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Ho(s)||Ho(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=$({},a),u=$({},u),u.fill=s):!Ho(u.fill)&&Ho(s)?(i=!0,a=$({},a),u=$({},u),u.fill=kg(s)):!Ho(u.stroke)&&Ho(l)&&(i||(a=$({},a),u=$({},u)),u.stroke=kg(l)),a.style=u}}if(a&&a.z2==null){i||(a=$({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??$s)}return a}function bz(r,t,e){if(e&&e.z2==null){e=$({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??yz)}return e}function wz(r,t,e){var a=wt(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:Sz(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 xd(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return xz(this,r,t,e);if(r==="blur")return wz(this,r,e);if(r==="select")return bz(this,r,e)}return e}function yo(r){r.stateProxy=xd;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=xd),e&&(e.stateProxy=xd)}function fS(r,t){!DD(r,t)&&!r.__highByOuter&&_n(r,bD)}function cS(r,t){!DD(r,t)&&!r.__highByOuter&&_n(r,wD)}function hn(r,t){r.__highByOuter|=1<<(t||0),_n(r,bD)}function dn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&_n(r,wD)}function CD(r){_n(r,Km)}function jm(r){_n(r,TD)}function AD(r){_n(r,mz)}function MD(r){_n(r,_z)}function DD(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function LD(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Zm(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){TD(u)}),s&&e.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Kg(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 so(r,t,e){qi(r,!0),_n(r,yo),Jg(r,t,e)}function Lz(r){qi(r,!1)}function ne(r,t,e,a){a?Lz(r):so(r,t,e)}function Jg(r,t,e){var a=yt(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var hS=["emphasis","blur","select"],Iz={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Le(r,t,e,a){e=e||"itemStyle";for(var n=0;n1&&(o*=bd(d),s*=bd(d));var p=(n===i?-1:1)*bd((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+yf(c)*g-gf(c)*y,_=(t+a)/2+gf(c)*g+yf(c)*y,S=yS([1,0],[(v-g)/o,(h-y)/s]),x=[(v-g)/o,(h-y)/s],b=[(-1*v-g)/o,(-1*h-y)/s],w=yS(x,b);if(ty(x,b)<=-1&&(w=ll),ty(x,b)>=1&&(w=0),w<0){var T=Math.round(w/ll*1e6)/1e6;w=ll*2+T%2*ll}f.addData(u,m,_,o,s,S,w,c,i)}var Nz=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Bz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function zz(r){var t=new Ga;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=Ga.CMD,l=r.match(Nz);if(!l)return t;for(var u=0;uP*P+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(n/x-1),y1:C*(n/x-1)}}function Uz(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 Yz(r,t){var e,a=zl(t.r,0),n=zl(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=_S(u-l),d=h>wd&&h%wd;if(d>jr&&(h=d),!(a>jr))r.moveTo(f,c);else if(h>wd-jr)r.moveTo(f+a*$o(l),c+a*Ti(l)),r.arc(f,c,a,l,u,!v),n>jr&&(r.moveTo(f+n*$o(u),c+n*Ti(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,x=void 0,b=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,I=void 0,L=void 0,P=void 0,R=a*$o(l),k=a*Ti(l),N=n*$o(u),E=n*Ti(u),z=h>jr;if(z){var V=t.cornerRadius;V&&(e=Uz(V),p=e[0],g=e[1],y=e[2],m=e[3]);var H=_S(a-n)/2;if(_=ma(H,y),S=ma(H,m),x=ma(H,p),b=ma(H,g),C=w=zl(_,S),M=T=zl(x,b),(w>jr||T>jr)&&(D=a*$o(u),I=a*Ti(u),L=n*$o(l),P=n*Ti(l),hjr){var et=ma(y,C),it=ma(m,C),tt=mf(L,P,R,k,a,et,v),O=mf(D,I,N,E,a,it,v);r.moveTo(f+tt.cx+tt.x0,c+tt.cy+tt.y0),C0&&r.arc(f+tt.cx,c+tt.cy,et,Ke(tt.y0,tt.x0),Ke(tt.y1,tt.x1),!v),r.arc(f,c,a,Ke(tt.cy+tt.y1,tt.cx+tt.x1),Ke(O.cy+O.y1,O.cx+O.x1),!v),it>0&&r.arc(f+O.cx,c+O.cy,it,Ke(O.y1,O.x1),Ke(O.y0,O.x0),!v))}else r.moveTo(f+R,c+k),r.arc(f,c,a,l,u,!v);if(!(n>jr)||!z)r.lineTo(f+N,c+E);else if(M>jr){var et=ma(p,M),it=ma(g,M),tt=mf(N,E,D,I,n,-it,v),O=mf(R,k,L,P,n,-et,v);r.lineTo(f+tt.cx+tt.x0,c+tt.cy+tt.y0),M0&&r.arc(f+tt.cx,c+tt.cy,it,Ke(tt.y0,tt.x0),Ke(tt.y1,tt.x1),!v),r.arc(f,c,n,Ke(tt.cy+tt.y1,tt.cx+tt.x1),Ke(O.cy+O.y1,O.cx+O.x1),v),et>0&&r.arc(f+O.cx,c+O.cy,et,Ke(O.y1,O.x1),Ke(O.y0,O.x0),!v))}else r.lineTo(f+N,c+E),r.arc(f,c,n,u,l,v)}r.closePath()}}}var Zz=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}(),zD=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Zz},t.prototype.buildPath=function(e,a){Yz(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Pt);zD.prototype.type="sector";const ur=zD;var Xz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),VD=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Xz},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}(Pt);VD.prototype.type="ring";const fh=VD;function qz(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=qz(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;sAi[1]){if(i=!1,Ve.negativeSize||a)return i;var l=_f(Ai[0]-Ci[1]),u=_f(Ci[0]-Ai[1]);Td(l,u)>xf.len()&&(l=u||!Ve.bidirectional)&&(vt.scale(Sf,s,-u*n),Ve.useDir&&Ve.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 Bt(r,t,e,a,n,i){r0("update",r,t,e,a,n,i)}function ae(r,t,e,a,n,i){r0("enter",r,t,e,a,n,i)}function ws(r){if(!r.__zr)return!0;for(var t=0;tMa(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function bS(r){return!r.isGroup}function gV(r){return r.shape!=null}function Hu(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){bS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return gV(o)&&(s.shape=ut(o.shape)),s}var i=a(r);t.traverse(function(o){if(bS(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Bt(o,l,e,yt(o).dataIndex)}}})}function QD(r,t){return Z(r,function(e){var a=e[0];a=pe(a,t.x),a=Ar(a,t.x+t.width);var n=e[1];return n=pe(n,t.y),n=Ar(n,t.y+t.height),[a,n]})}function yV(r,t){var e=pe(r.x,t.x),a=Ar(r.x+r.width,t.x+t.width),n=pe(r.y,t.y),i=Ar(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 Wu(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),ht(n,e),new qe(a)):mu(r.replace("path://",""),a,e,"center")}function Vl(r,t,e,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=Cd(h,d,f,c)/v;return!(g<0||g>1)}function Cd(r,t,e,a){return r*a-e*t}function mV(r){return r<=1e-6&&r>=-1e-6}function mo(r,t,e,a,n){return t==null||(Rt(t)?se[0]=se[1]=se[2]=se[3]=t:(se[0]=t[0],se[1]=t[1],se[2]=t[2],se[3]=t[3]),a&&(se[0]=pe(0,se[0]),se[1]=pe(0,se[1]),se[2]=pe(0,se[2]),se[3]=pe(0,se[3])),e&&(se[0]=-se[0],se[1]=-se[1],se[2]=-se[2],se[3]=-se[3]),wS(r,se,"x","width",3,1,n&&n[0]||0),wS(r,se,"y","height",0,2,n&&n[1]||0)),r}var se=[0,0,0,0];function wS(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=pe(0,Ar(o,l)),r[a]=0?-t[n]:t[i]>=0?l+t[i]:Ma(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function Sn(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=J(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(kt(l),function(f){rt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=yt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ht({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function ry(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ui(r,t){if(r)if(U(r))for(var e=0;et&&(t=o),ot&&(e=t=0),{min:e,max:t}}function dh(r,t,e){rL(r,t,e,-1/0)}function rL(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 fi(r,t){return Tt(Tt({},r,!0),t,!0)}const PV={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:". "}}}},kV={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 nv="ZH",o0="EN",Ts=o0,Dc={},s0={},lL=Vt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ts).toUpperCase();return r.indexOf(nv)>-1?nv:Ts}():Ts;function uL(r,t){r=r.toUpperCase(),s0[r]=new zt(t),Dc[r]=t}function RV(r){if(J(r)){var t=Dc[r.toUpperCase()]||{};return r===nv||r===o0?ut(t):Tt(ut(t),ut(Dc[Ts]),!1)}else return Tt(ut(r),ut(Dc[Ts]),!1)}function ny(r){return s0[r]}function EV(){return s0[Ts]}uL(o0,PV);uL(nv,kV);var iy=null;function OV(r){iy||(iy=r)}function Se(){return iy}var l0=1e3,u0=l0*60,tu=u0*60,Hr=tu*24,DS=Hr*365,NV={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})/},Lc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},BV="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",wf="{yyyy}-{MM}-{dd}",LS={year:"{yyyy}",month:"{yyyy}-{MM}",day:wf,hour:wf+" "+Lc.hour,minute:wf+" "+Lc.minute,second:wf+" "+Lc.second,millisecond:BV},_r=["year","month","day","hour","minute","second","millisecond"],zV=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function VV(r){return!J(r)&&!lt(r)?GV(r):r}function GV(r){r=r||{};var t={},e=!0;return A(_r,function(a){e&&(e=r[a]==null)}),A(_r,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=_r[s],u=dt(i)&&!U(i)?i[l]:i,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):J(u)?(o=u,f=[o]):(o==null?o=Lc[a]:NV[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[a][l]=f}}),t}function Tn(r,t){return r+="","0000".substr(0,t-r.length)+r}function eu(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 FV(r){return r===eu(r)}function HV(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function gh(r,t,e,a){var n=Co(r),i=n[fL(e)](),o=n[f0(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[c0(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[v0(e)](),c=(f-1)%12+1,v=n[h0(e)](),h=n[d0(e)](),d=n[p0(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=a instanceof zt?a:ny(a||lL)||EV(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Tn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Tn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Tn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Tn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Tn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Tn(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Tn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Tn(d,3)).replace(/{S}/g,d+"")}function WV(r,t,e,a,n){var i=null;if(J(e))i=e;else if(lt(e)){var o={time:r.time,level:r.time.level},s=Se();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=ms(r.value,n);i=e[f][f][0]}}return gh(new Date(r.value),i,n,a)}function ms(r,t){var e=Co(r),a=e[f0(t)]()+1,n=e[c0(t)](),i=e[v0(t)](),o=e[h0(t)](),s=e[d0(t)](),l=e[p0(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 oy(r,t,e){switch(t){case"year":r[cL(e)](0);case"month":r[vL(e)](1);case"day":r[hL(e)](0);case"hour":r[dL(e)](0);case"minute":r[pL(e)](0);case"second":r[gL(e)](0)}return r}function fL(r){return r?"getUTCFullYear":"getFullYear"}function f0(r){return r?"getUTCMonth":"getMonth"}function c0(r){return r?"getUTCDate":"getDate"}function v0(r){return r?"getUTCHours":"getHours"}function h0(r){return r?"getUTCMinutes":"getMinutes"}function d0(r){return r?"getUTCSeconds":"getSeconds"}function p0(r){return r?"getUTCMilliseconds":"getMilliseconds"}function $V(r){return r?"setUTCFullYear":"setFullYear"}function cL(r){return r?"setUTCMonth":"setMonth"}function vL(r){return r?"setUTCDate":"setDate"}function hL(r){return r?"setUTCHours":"setHours"}function dL(r){return r?"setUTCMinutes":"setMinutes"}function pL(r){return r?"setUTCSeconds":"setSeconds"}function gL(r){return r?"setUTCMilliseconds":"setMilliseconds"}function yL(r){if(!KM(r))return J(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function mL(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 $u=Kv;function sy(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Wr(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?Co(r):r;if(isNaN(+l)){if(s)return"-"}else return gh(l,a,e)}if(t==="ordinal")return yg(r)?n(r):Rt(r)&&i(r)?r+"":"-";var u=vn(r);return i(u)?yL(u):yg(r)?n(r):typeof r=="boolean"?r+"":"-"}var IS=["a","b","c","d","e","f","g"],Dd=function(r,t){return"{"+r+(t??"")+"}"};function _L(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 So(r,t){return t=t||"transparent",J(r)?r:dt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function iv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Ic={},Ld={},ZV=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(Ic),this._normalMasterList=a(Ld);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"){Ic[t]=e;return}Ld[t]=e},r.get=function(t){return Ld[t]||Ic[t]},r}();function XV(r){return!!Ic[r]}var ly={coord:1,coord2:2};function qV(r){SL.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var SL=at();function KV(r){var t=r.getShallow("coord",!0),e=ly.coord;if(t==null){var a=SL.get(r.type);a&&a.getCoord2&&(e=ly.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var Ca={none:0,dataCoordSys:1,boxCoordSys:2};function xL(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=Ca.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=Ca.dataCoordSys,i||(n=Ca.none)):a==="box"&&(n=Ca.boxCoordSys,!i&&!XV(e)&&(n=Ca.none))}return{coordSysType:e,kind:n}}function Uu(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=xL(t),o=i.kind,s=i.coordSysType;if(n&&o!==Ca.dataCoordSys&&(o=Ca.dataCoordSys,s=e),o===Ca.none||s!==e)return!1;var l=a(e,t);return l?(o===Ca.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var bL=function(r,t){var e=t.getReferringComponents(r,ce).models[0];return e&&e.coordinateSystem};const Yu=ZV;var Pc=A,wL=["left","right","top","bottom","width","height"],Ki=[["width","left","right"],["height","top","bottom"]];function g0(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 uo=g0;bt(g0,"vertical");bt(g0,"horizontal");function TL(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 jV(r,t){var e=Pe(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===Gl.point)i=e.refPoint,n=ie(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=U(o)?o:[o,o];n=ie(a,e.refContainer),i=e.boxCoordFrom===ly.coord2?e.refPoint:[j(s[0],n.width)+n.x,j(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function CL(r,t){var e=jV(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 ie(r,t,e){e=$u(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 gt((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}function AL(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=Tt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Ws(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return TL(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}(zt);sD(qs,zt);rh(qs);LV(qs);IV(qs,t5);function t5(r){var t=[];return A(qs.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Z(t,function(e){return La(e).main}),r!=="dataset"&&wt(t,"dataset")<=0&&t.unshift("dataset"),t}const Et=qs;var ji={color:{},darkColor:{},size:{}},he=ji.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)"};$(he,{primary:he.neutral80,secondary:he.neutral70,tertiary:he.neutral60,quaternary:he.neutral50,disabled:he.neutral20,border:he.neutral30,borderTint:he.neutral20,borderShade:he.neutral40,background:he.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:he.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:he.neutral70,axisLineTint:he.neutral40,axisTick:he.neutral70,axisTickMinor:he.neutral60,axisLabel:he.neutral70,axisSplitLine:he.neutral15,axisMinorSplitLine:he.neutral05});for(var Mi in he)if(he.hasOwnProperty(Mi)){var PS=he[Mi];Mi==="theme"?ji.darkColor.theme=he.theme.slice():Mi==="highlight"?ji.darkColor.highlight="rgba(255,231,130,0.4)":Mi.indexOf("accent")===0?ji.darkColor[Mi]=Zn(PS,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):ji.darkColor[Mi]=Zn(PS,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}ji.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const F=ji;var DL="";typeof navigator<"u"&&(DL=navigator.platform||"");var Uo="rgba(0, 0, 0, 0.2)",LL=F.color.theme[0],e5=Zn(LL,null,null,.9);const r5={darkMode:"auto",colorBy:"series",color:F.color.theme,gradientColor:[e5,LL],aria:{decal:{decals:[{color:Uo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Uo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Uo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Uo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Uo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Uo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:DL.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 IL=at(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Mr="original",We="arrayRows",Dr="objectRows",ca="keyedColumns",qn="typedArray",PL="unknown",ia="column",Lo="row",Ue={Must:1,Might:2,Not:3},kL=It();function a5(r){kL(r).datasetMap=at()}function RL(r,t,e){var a={},n=m0(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=kL(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),A(r,function(p,g){var y=dt(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 NL(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:l5(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 u5(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Tf,ul,RS,ES="\0_ec_inner",f5=1,BL=function(r){B(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 zt(i),this._locale=new zt(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=BS(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,BS(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"?RS(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=at(),u=a&&a.replaceMergeMainTypeMap;a5(this),A(e,function(c,v){c!=null&&(Et.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?ut(c):Tt(n[v],c,!0))}),u&&u.each(function(c,v){Et.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Et.topologicalTravel(s,Et.getAllClassMainTypes(),f,this);function f(c){var v=o5(this,c,qt(e[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=rD(h,v,d);vB(p,c,Et),n[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;A(p,function(S,x){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=c==="series",C=Et.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var M=$({componentIndex:x},S.keyInfo);b=new C(w,this,this,M),$(b,M),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),n[c]=g,i.set(c,y),o.set(c,m),c==="series"&&Tf(this)}this._seriesIndices||Tf(this)},t.prototype.getOption=function(){var e=ut(this.option);return A(e,function(a,n){if(Et.hasClass(n)){for(var i=qt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!du(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[ES],e},t.prototype.setTheme=function(e){this._theme=new zt(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 S5(r,t){return r.join(",")===t.join(",")}const x5=g5;var Kr=A,xu=dt,zS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Id(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=zS.length;e0?e[o-1].seriesModel:null)}),I5(e)}})}function I5(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=JN(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var mh=function(){function r(t){this.data=t.data||(t.sourceFormat===ca?{}:[]),this.sourceFormat=t.sourceFormat||PL,this.seriesLayoutBy=t.seriesLayoutBy||ia,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};US=(t={},t[We+"_"+ia]={pure:!0,appendData:i},t[We+"_"+Lo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Dr]={pure:!0,appendData:i},t[ca]={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[Mr]={appendData:i},t[qn]={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 Is(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function qS(r){var t,e;return dt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function ru(r){return new z5(r)}var z5=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}},G5=function(){function r(t,e){if(!Rt(e)){var a="";Ht(a)}this._opFn=qL[t],this._rvalFloat=vn(e)}return r.prototype.evaluate=function(t){return Rt(t)?this._opFn(t,this._rvalFloat):this._opFn(vn(t),this._rvalFloat)},r}(),KL=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=Rt(t)?t:vn(t),n=Rt(e)?e:vn(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=J(t),l=J(e);s&&(a=l?t:0),l&&(n=s?e:0)}return an?-this._resultLT:0},r}(),F5=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=vn(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=vn(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function H5(r,t){return r==="eq"||r==="ne"?new F5(r==="eq",t):rt(qL,r)?new G5(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 Kn(t,e)},r}();function $5(r,t){var e=new W5,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ia&&Ht(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 _="";rt(l,y)&&Ht(_),l[y]=m}});else for(var f=0;f65535?J5:Q5}function Zo(){return[1/0,-1/0]}function tG(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function JS(r,t,e,a,n){var i=QL[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=Z(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],x=t[n[1]][1],y=0;y=c&&m<=v||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(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(Yo(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 Kn(e[i],this._dimensions[i])}Rd={arrayRows:t,objectRows:function(e,a,n,i){return Kn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Kn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),t2=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(Af(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=yr(s)?qn:Mr,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?[cy(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=[cy(_,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&&tx(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&tx(c),s.push(f),l.push(u._getVersionSign())}),a?o=K5(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[P5(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=l2(n);i>=t&&(t=i+ +(a&&(!i||gy(n)&&!n.noHeader)))}),t}return 0}function nG(r,t,e,a){var n=t.noHeader,i=oG(l2(t)),o=[],s=t.blocks||[];rr(!s||U(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(rt(u,l)){var f=new t2(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=s2(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):yy(a,o.join(""),n?e:i.html);if(n)return c;var v=fy(t.header,"ordinal",r.useUTC),h=o2(a,r.renderMode).nameStyle,d=i2(a);return r.renderMode==="richText"?u2(r,v,h)+i.richText+c:yy(a,'
'+Qe(v)+"
"+c,e)}function iG(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],Z(S,function(x,b){return fy(x,U(h)?h[b]:h,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||F.color.secondary,n),v=i?"":fy(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,y=o2(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":c)+(i?"":u2(r,v,m))+(o?"":uG(r,d,p,g,_)):yy(a,(s?"":c)+(i?"":sG(v,!s,m))+(o?"":lG(d,p,g,_)),e)}}function ix(r,t,e,a,n,i){if(r){var o=s2(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function oG(r){return{html:rG[r],richText:aG[r]}}function yy(r,t,e){var a='
',n="margin: "+e+"px 0 0",i=i2(r);return'
'+t+a+"
"}function sG(r,t,e){var a=t?"margin-left:2px":"";return''+Qe(r)+""}function lG(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=U(r)?r:[r],''+Z(r,function(o){return Qe(o)}).join("  ")+""}function u2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function uG(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 f2(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return xo(a)}function c2(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Bd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=eD()}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=YV({color:e,type:t,renderMode:a,markerId:n});return J(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 v2(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=f2(t,e),f,c,v,h;if(o>1||l&&!o){var d=fG(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=Ps(n,e,i[0]),c=p.type}else h=f=l?s[0]:s;var g=Um(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return we("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[we("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Wr(_),value:f,valueType:c,dataIndex:e})].concat(v||[])})}function fG(r,t,e,a,n){var i=t.getData(),o=za(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(Ps(i,e,c),c)}):A(r,f);function f(c,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(we("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 An=It();function Pf(r,t){return r.getName(t)||r.getId(t)}var Nc="__universalTransitionEnabled",Ch=function(r){B(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=iu({count:vG,reset:hG}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=An(this).sourceManager=new n2(this);i.prepareSource();var o=this.getInitialData(e,n);sx(o,this),this.dataTask.context.data=o,An(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=wu(this),i=n?Lo(e):{},o=this.subType;Et.hasClass(o)&&(o+="Series"),Ct(e,a.getTheme().get(this.subType)),Ct(e,this.getDefaultOption()),po(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Ha(e,i,n)},t.prototype.mergeOption=function(e,a){e=Ct(this.option,e,!0),this.fillDataTextStyle(e.data);var n=wu(this);n&&Ha(this.option,e,n);var i=An(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);sx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,An(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!yr(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 v2({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Vt.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=b0.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[Pf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Nc])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"){dt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,a)}},t.registerClass=function(e){return Et.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}(Et);Ce(Ch,wh);Ce(Ch,b0);cD(Ch,Et);function ox(r){var t=r.name;Um(r)||(r.name=cG(r)||t)}function cG(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 vG(r){return r.model.getRawData().count()}function hG(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),dG}function dG(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function sx(r,t){A(vu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(pG,t))})}function pG(r,t){var e=my(r);return e&&e.setOutputEnd((t||this).count()),t}function my(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 oe=Ch;var M0=function(){function r(){this.group=new ft,this.uid=qs("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}();Zm(M0);oh(M0);const le=M0;function js(){var r=It();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 h2=It(),gG=js(),D0=function(){function r(){this.group=new ft,this.uid=qs("viewChart"),this.renderTask=iu({plan:yG,reset:mG}),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&&ux(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&ux(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){fi(this.group,t)},r.markUpdateMethod=function(t,e){h2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function lx(r,t,e){r&&Su(r)&&(t==="emphasis"?hn:dn)(r,e)}function ux(r,t,e){var a=go(r,t),n=t&&t.highlightKey!=null?kz(t.highlightKey):null;a!=null?A(Kt(a),function(i){lx(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){lx(i,e,n)})}Zm(D0);oh(D0);function yG(r){return gG(r.model)}function mG(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&h2(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),_G[l]}var _G={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 Qt=D0;var fv="\0__throttleOriginMethod",fx="\0__throttleRate",cx="\0__throttleType";function L0(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 Js(r,t,e,a){var n=r[t];if(n){var i=n[fv]||n,o=n[cx],s=n[fx];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=L0(i,e,a==="debounce"),n[fv]=i,n[cx]=a,n[fx]=e}return n}}function Cu(r,t){var e=r[t];e&&e[fv]&&(e.clear&&e.clear(),r[t]=e[fv])}var vx=It(),hx={itemStyle:yo(cL,!0),lineStyle:yo(fL,!0)},SG={lineStyle:"stroke",itemStyle:"fill"};function d2(r,t){var e=r.visualStyleMapper||hx[t];return e||(console.warn("Unknown style type '"+t+"'."),hx.itemStyle)}function p2(r,t){var e=r.visualDrawType||SG[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var xG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=d2(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=p2(r,a),u=o[l],f=lt(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"||lt(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||lt(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)}}}},dl=new zt,bG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=d2(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){dl.option=l[a];var u=n(dl),f=o.ensureUniqueItemVisual(s,"style");$(f,u),dl.option.decal&&(o.setItemVisual(s,"decal",dl.option.decal),dl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},wG={performRawSeries:!0,overallReset:function(r){var t=at();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)),vx(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=vx(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=p2(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)}})}})}},kf=Math.PI;function TG(r,t){t=t||{},ht(t,{text:"loading",textColor:F.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:F.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new ft,a=new Lt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new Nt({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 Lt({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 n0({shape:{startAngle:-kf/2,endAngle:-kf/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:kf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:kf*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 CG=function(){function r(t,e,a,n){this._stageTaskMap=at(),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=at();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="";rr(!(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=at(),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)||iu({plan:IG,reset:PG,count:RG}));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||iu({reset:AG});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=at(),u=t.seriesType,f=t.getTargetSeries,c=!0,v=!1,h="";rr(!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,iu({reset:MG,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 lt(t)&&(t={overallReset:t,seriesType:EG(t)}),t.uid=qs("stageHandler"),e&&(t.visualType=e),t},r}();function AG(r){r.overallReset(r.ecModel,r.api,r.payload)}function MG(r){return r.overallProgress&&DG}function DG(){this.agent.dirty(),this.getDownstream().dirty()}function LG(){this.agent&&this.agent.dirty()}function IG(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function PG(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Kt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Z(t,function(e,a){return g2(a)}):kG}var kG=g2(0);function g2(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}(),_y=["symbol","symbolSize","symbolRotate","symbolOffset"],px=_y.concat(["symbolKeepAspect"]),zG={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<_y.length;o++){var s=_y[o],l=r.get(s);lt(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual($({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=kt(n);function f(c,v){for(var h=r.getRawValue(v),d=r.getDataParams(v),p=0;p=0&&to(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"?tF(r,t,e):QG(r,t,e),n=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Rt(r)?[r]:U(r)?r:null}function P0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&rF(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Z(e,function(i){return i/n}),a/=n)}return[e,a]}var aF=new Fa(!0);function hv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function gx(r){return typeof r=="string"&&r!=="none"}function dv(r){var t=r.fill;return t!=null&&t!=="none"}function yx(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 mx(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 xy(r,t,e){var a=Xm(t.image,t.__image,e);if(sh(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)*xc),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function nF(r,t,e,a){var n,i=hv(e),o=dv(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||aF,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,x=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(m=c?Sy(r,v,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?Sy(r,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?xy(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=c||!t.__canvasStrokePattern?xy(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(x?r.strokeStyle=x: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&cs)&&(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&&mx(r,e),o&&yx(r,e)):(o&&yx(r,e),i&&mx(r,e))),T&&r.setLineDash([])}function iF(r,t,e){var a=t.__image=Xm(e.image,t.__image,t,t.onload);if(!(!a||!sh(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 oF(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||fn,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?(hv(e)&&r.strokeText(n,e.x,e.y),dv(e)&&r.fillText(n,e.x,e.y)):(dv(e)&&r.fillText(n,e.x,e.y),hv(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var _x=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function w2(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){pr(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?oo.opacity:o}(a||t.blend!==e.blend)&&(i||(pr(r,n),i=!0),r.globalCompositeOperation=t.blend||oo.blend);for(var s=0;s<_x.length;s++){var l=_x[s];(a||t[l]!==e[l])&&(i||(pr(r,n),i=!0),r[l]=r.dpr*(t[l]||0))}return(a||t.shadowColor!==e.shadowColor)&&(i||(pr(r,n),i=!0),r.shadowColor=t.shadowColor||oo.shadowColor),i}function xx(r,t,e,a,n){var i=Mu(t,n.inHover),o=a?null:e&&Mu(e,n.inHover)||{};if(i===o)return!1;var s=w2(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(pr(r,n),s=!0),gx(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(pr(r,n),s=!0),gx(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(pr(r,n),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(pr(r,n),s=!0),r.lineWidth=u)}for(var f=0;f0&&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[Ae]){if(this._disposed){this.id;return}var i,o,s;if(dt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ae]=!0,Jo(this),!this._model||a){var l=new x5(this._api),u=this._theme,f=this._model=new HL;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Cy);var c={seriesTransition:s,optionChanged:!0};if(n)this[Ve]={silent:i,updateParams:c},this[Ae]=!1,this.getZr().wakeUp();else{try{Ri(this),qa.update.call(this,null,c)}catch(v){throw this[Ve]=null,this[Ae]=!1,v}this._ssr||this._zr.flush(),this[Ve]=null,this[Ae]=!1,Ko.call(this,i),jo.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[Ae]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Ve]&&(i==null&&(i=this[Ve].silent),o=this[Ve].updateParams,this[Ve]=null),this[Ae]=!0,Jo(this);try{this._updateTheme(e),n.setTheme(this._theme),Ri(this),qa.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ae]=!1,s}this[Ae]=!1,Ko.call(this,i),jo.call(this,i)}}},t.prototype._updateTheme=function(e){J(e)&&(e=F2[e]),e&&(e=ut(e),e&&UL(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||Vt.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(Nx[n]){var l=s,u=s,f=-s,c=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();A(ou,function(_,S){if(_.group===n){var x=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ut(e)),b=_.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),f=o(b.right,f),c=o(b.bottom,c),v.push({dom:x,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=sa.createCanvas(),y=z1(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return A(v,function(_){var S=_.left-l,x=_.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 Lt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),A(v,function(_){var S=new qe({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 Nf(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return Nf(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return Nf(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=ws(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=ws(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?I0(s,l,a):Ku(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(EF,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Qi(l,function(p){var g=mt(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(wy,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),GG(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&&lD(this.getDom(),E0,"");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 ou[a.id]},t.prototype.resize=function(e){if(!this[Ae]){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[Ve]&&(i==null&&(i=this[Ve].silent),n=!0,this[Ve]=null),this[Ae]=!0,Jo(this);try{n&&Ri(this),qa.update.call(this,{type:"resize",animation:$({duration:0},e&&e.animation)})}catch(o){throw this[Ae]=!1,o}this[Ae]=!1,Ko.call(this,i),jo.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(dt(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!Ay[e]){var n=Ay[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=by[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(dt(a)||(a={silent:!!a}),!!pv[e.type]&&this._model){if(this[Ae]){this._pendingActions.push(e);return}var n=a.silent;Wd.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Vt.browser.weChat&&this._throttledZrFlush(),Ko.call(this,n),jo.call(this,n)}},t.prototype.updateLabelLayout=function(){ta.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(){Ri=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),Fd(c,!0),Fd(c,!1),v.plan()},Fd=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")&&!Vt.node&&!Vt.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 mh(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!Ts(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(Ts(y))return;if(y instanceof Pt&&Rz(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)}})}Ex=function(c){return new(function(v){B(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){hn(d,p),Pr(c)},h.prototype.leaveEmphasis=function(d,p){dn(d,p),Pr(c)},h.prototype.enterBlur=function(d){LD(d),Pr(c)},h.prototype.leaveBlur=function(d){t0(d),Pr(c)},h.prototype.enterSelect=function(d){ID(d),Pr(c)},h.prototype.leaveSelect=function(d){PD(d),Pr(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[Ef]},h}(WL))(c)},V2=function(c){function v(h,d){for(var p=0;p=0)){Bx.push(e);var i=_2.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function U2(r,t){Ay[r]=t}function HF(r,t,e){var a=yF("registerMap");a&&a(r,t,e)}var WF=q5;ko(k0,xG);ko(Ah,bG);ko(Ah,wG);ko(k0,zG);ko(Ah,VG);ko(R2,dF);W2(UL);$2(bF,L5);U2("default",TG);$a({type:so,event:so,update:so},ye);$a({type:Ic,event:Ic,update:Ic},ye);$a({type:av,event:Jm,update:av,action:ye,refineEvent:B0,publishNonRefinedEvent:!0});$a({type:Jg,event:Jm,update:Jg,action:ye,refineEvent:B0,publishNonRefinedEvent:!0});$a({type:nv,event:Jm,update:nv,action:ye,refineEvent:B0,publishNonRefinedEvent:!0});function B0(r,t,e,a){return{eventContent:{selected:Dz(e),isFromClick:t.isFromClick||!1}}}H2("default",{});H2("dark",NG);var zx=[],$F={registerPreprocessor:W2,registerProcessor:$2,registerPostInit:zF,registerPostUpdate:VF,registerUpdateLifecycle:O0,registerAction:$a,registerCoordinateSystem:GF,registerLayout:FF,registerVisual:ko,registerTransform:WF,registerLoading:U2,registerMap:HF,registerImpl:gF,PRIORITY:PF,ComponentModel:Et,ComponentView:le,SeriesModel:oe,ChartView:Qt,registerComponentModel:function(r){Et.registerClass(r)},registerComponentView:function(r){le.registerClass(r)},registerSeriesModel:function(r){oe.registerClass(r)},registerChartView:function(r){Qt.registerClass(r)},registerCustomSeries:function(r,t){mF(r,t)},registerSubTypeDefaulter:function(r,t){Et.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){UN(r,t)}};function At(r){if(U(r)){A(r,function(t){At(t)});return}wt(zx,r)>=0||(zx.push(r),lt(r)&&(r={install:r}),r.install($F))}function gl(r){return r==null?0:r.length||1}function Vx(r){return r}var UF=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||Vx,this._newKeyGetter=n||Vx,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 yl=dt,Mn=Z,JF=typeof Int32Array>"u"?Array:Int32Array,QF="e\0\0",Gx=-1,t3=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],e3=["_approximateExtent"],Fx,zf,ml,_l,Yd,Sl,Zd,r3=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;Z2(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===Dr;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():yl(i)&&(i=$({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,yl(e)?$(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){yl(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;jg(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:Mn(this.dimensions,this._getDimInfo,this),this.hostModel)),Yd(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];lt(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(Om(arguments)))})},r.internalField=function(){Fx=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 JF(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[e]=l}}}(),r}();const lr=r3;function ju(r,t){w0(r)||(r=T0(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=at(),i=[],o=n3(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&K2(o),l=a===r.dimensionsDefine,u=l?q2(r):X2(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=at(f),v=new r2(o),h=0;h0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function n3(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return A(t,function(i){var o;dt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function i3(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 o3=function(){function r(t){this.coordSysDims=[],this.axisMap=at(),this.categoryAxisMap=at(),this.coordSysName=t}return r}();function s3(r){var t=r.get("coordinateSystem"),e=new o3(t),a=l3[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var l3={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",ce).models[0],i=r.getReferringComponents("yAxis",ce).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Qo(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Qo(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",ce).models[0];t.coordSysDims=["single"],e.set("single",n),Qo(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",ce).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Qo(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Qo(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),Qo(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",ce).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 Qo(r){return r.get("type")==="category"}function u3(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;f3(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,_){J(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 f3(r){return!Z2(r.schema)}function ei(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function j2(r,t){return ei(r,t)?r.getCalculationInfo("stackResultDimension"):t}function c3(r,t){var e=r.get("coordinateSystem"),a=qu.get(e),n;return t&&t.coordSysDims&&(n=Z(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=yv(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function v3(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 xn(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=T0(r)):(n=a.getSource(),i=n.sourceFormat===Dr);var o=s3(t),s=c3(t,o),l=e.useEncodeDefaulter,u=lt(l)?l:l?bt(BL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=ju(n,f),v=v3(c.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(c),d=u3(t,{schema:c,store:h}),p=new lr(c,t);p.setCalculationInfo(d);var g=v!=null&&h3(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 h3(r){if(r.sourceFormat===Dr){var t=d3(r.data||[]);return!U(Ws(t))}}function d3(r){for(var t=0;tn&&(o=i.interval=n);var s=i.intervalPrecision=Du(o),l=i.niceTickExtent=[Se(Math.ceil(r[0]/o)*o,s),Se(Math.floor(r[1]/o)*o,s)];return g3(l,r),i}function Xd(r){var t=Math.pow(10,$m(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Se(e*t)}function Du(r){return La(r)+2}function Hx(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function g3(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Hx(r,0,t),Hx(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function z0(r,t){return r>=t[0]&&r<=t[1]}var y3=function(){function r(){this.normalize=Wx,this.scale=$x}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=Q(t.normalize,t),this.scale=Q(t.scale,t)):(this.normalize=Wx,this.scale=$x)},r}();function Wx(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function $x(r,t){return r*(t[1]-t[0])+t[0]}function Dy(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 J2=function(){function r(t){this._calculator=new y3,this._setting=t||{},this._extent=[1/0,-1/0];var e=xe();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=xe();e&&this._innerSetBreak(e.parseAxisBreakOption(t,Q(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}();oh(J2);const Ro=J2;var m3=0,_3=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++m3,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&Z(a,S3);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(!J(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=at(this.categories))},r}();function S3(r){return dt(r)&&r.value!=null?r.value:r+""}const Lu=_3;var Q2=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new Lu({})),U(n)&&(n=new Lu({categories:Z(n,function(i){return dt(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:J(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return z0(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}(Ro);Ro.registerClass(Q2);const Iu=Q2;var Dn=Se,tI=function(r){B(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 z0(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=Du(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=xe(),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=Dn(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:Dn(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 aI(r){var t=w3(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")||(lI(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:G0(i),stackId:V0(a)})}),nI(e)}function nI(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=kt(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 T3(r,t,e){if(r&&t){var a=r[G0(t)];return a!=null&&e!=null?a[V0(e)]:a}}function iI(r,t){var e=rI(r,t),a=aI(e);A(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=V0(n),u=a[G0(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function oI(r){return{seriesType:r,plan:js(),reset:function(t){if(sI(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=ei(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=C3(n,i),d=lI(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 x=_.count,b=d&&Pa(x*3),w=d&&l&&Pa(x*3),T=d&&Pa(x),C=a.master.getRect(),M=v?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(c?g:o,D),R=I.get(s,D),k=h,N=void 0;c&&(N=+P-I.get(o,D));var E=void 0,z=void 0,V=void 0,H=void 0;if(v){var G=a.dataToPoint([P,R]);if(c){var Y=a.dataToPoint([N,R]);k=Y[0]}E=k,z=G[1]+m,V=G[0]-k,H=y,Math.abs(V)0?e:1:e))}var A3=function(r,t,e,a){for(;e>>1;r[n][1]n&&(this._approxInterval=n);var o=Vf.length,s=Math.min(A3(Vf,this._approxInterval,0,o),o-1);this._interval=Vf[s][1],this._intervalPrecision=Du(this._interval),this._minLevelUnit=Vf[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Rt(e)?e:+Ao(e)},t.prototype.contain=function(e){return z0(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}(ri),Vf=[["second",c0],["minute",v0],["hour",au],["quarter-day",au*6],["half-day",au*12],["day",Hr*1.2],["half-week",Hr*3.5],["week",Hr*7],["month",Hr*31],["quarter",Hr*95],["half-year",kS/2],["year",kS]];function fI(r,t,e,a){return uy(new Date(t),r,a).getTime()===uy(new Date(e),r,a).getTime()}function M3(r,t){return r/=Hr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function D3(r){var t=30*Hr;return r/=t,r>6?6:r>3?3:r>2?2:1}function L3(r){return r/=au,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ux(r,t){return r/=t?v0:c0,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function I3(r){return QM(r,!0)}function P3(r,t,e){var a=Math.max(0,wt(Sr,t)-1);return uy(new Date(r),Sr[a],e).getTime()}function k3(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 R3(r,t,e,a,n,i){var o=1e4,s=zV,l=0;function u(L,P,R,k,N,E,z){for(var V=k3(N,L),H=P,G=new Date(H);Ho));)if(G[N](G[k]()+L),H=G.getTime(),i){var Y=i.calcNiceTickMultiple(H,V);Y>0&&(G[N](G[k]()+Y*L),H=G.getTime())}z.push({value:H,notAdd:!0})}function f(L,P,R){var k=[],N=!P.length;if(!fI(nu(L),a[0],a[1],e)){N&&(P=[{value:P3(a[0],L,e)},{value:a[1]}]);for(var E=0;E=a[0]&&z<=a[1]&&u(H,z,V,G,Y,X,k),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 x=n/t;if(h>x*1.5&&d>x/1.5||(c.push(m),h>x||r===s[p]))break}v=[]}}}for(var b=Ut(Z(c,function(L){return Ut(L,function(P){return P.value>=a[0]&&P.value<=a[1]&&!P.notAdd})}),function(L){return L.length>0}),w=[],T=b.length-1,p=0;p0;)i*=10;var s=[Iy(O3(a[0]/i)*i),Iy(E3(a[1]/i)*i)];this._interval=i,this._intervalPrecision=Du(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=Ff(e)/Ff(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=Ff(e)/Ff(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),Gf(this.base,e)},t.prototype.setBreaksFromOption=function(e){var a=xe();if(a){var n=a.logarithmicParseBreaksFromOption(e,this.base,Q(this.parse,this)),i=n.parsedOriginal,o=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},t.type="log",t}(ri);function Hf(r,t){return Iy(r,La(t))}Ro.registerClass(vI);const N3=vI;var B3=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[V3[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=z3[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),z3={min:"_determinedMin",max:"_determinedMax"},V3={min:"_dataMin",max:"_dataMax"};function hI(r,t,e){var a=r.rawExtentInfo;return a||(a=new B3(r,t,e),r.rawExtentInfo=a,a)}function Wf(r,t){return t==null?null:tr(t)?NaN:r.parse(t)}function dI(r,t){var e=r.type,a=hI(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=rI("bar",o),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=aI(s),f=G3(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function G3(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=T3(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 Rs(r,t){var e=t,a=dI(r,e),n=a.extent,i=e.get("splitNumber");r instanceof N3&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(gI(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 Mh(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Iu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new cI({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ro.getClass(t)||ri)}}function F3(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function tl(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=VV(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if(J(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(lt(t)){if(r.type==="category")return function(n,i){return t(mv(r,n),n.value-r.scale.getExtent()[0],null)};var a=xe();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(mv(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function mv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function F0(r){var t=r.get("interval");return t??"auto"}function pI(r){return r.type==="category"&&F0(r.getLabelModel())===0}function _v(r,t){var e={};return A(r.mapDimensionsAll(t),function(a){e[j2(r,a)]=!0}),kt(e)}function H3(r,t,e){t&&A(_v(t,e),function(a){var n=t.getApproximateExtent(a);n[0]r[1]&&(r[1]=n[1])})}function Es(r){return r==="middle"||r==="center"}function Pu(r){return r.getShallow("show")}function gI(r){var t=r.get("breaks",!0);if(t!=null)return!xe()||!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 Ju=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),$3=1e-8;function Yx(r,t){return Math.abs(r-t)<$3}function $i(r,t,e){var a=0,n=r[0];if(!n)return!1;for(var i=1;in&&(a=o,n=l)}if(a)return Y3(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"?Zx(s.exterior,n,i,e):A(s.points,function(l){Zx(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 gt(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 q3(r,t){return r=X3(r),Z(Ut(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 Xx(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new Xx(l[0],l.slice(1)))});break;case"LineString":i.push(new qx([n.coordinates]));break;case"MultiLineString":i.push(new qx(n.coordinates))}var s=new mI(a[t||"name"],i,a.cp);return s.properties=a,s})}var K3=It(),su=It(),fa={estimate:1,determine:2};function Sv(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function SI(r,t){var e=Z(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 j3(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=tl(r),n=r.scale.getExtent(),i=SI(r,e),o=Ut(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:Z(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"?Q3(r,t):eH(r)}function J3(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=SI(r,a);return{ticks:Ut(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?tH(r,t):{ticks:Z(r.scale.getTicks(e),function(o){return o.value})}}function Q3(r,t){var e=r.getLabelModel(),a=xI(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function xI(r,t,e){var a=aH(r),n=F0(t),i=e.kind===fa.estimate;if(!i){var o=wI(a,n);if(o)return o}var s,l;lt(n)?s=AI(r,n):(l=n==="auto"?nH(r,e):n,s=CI(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 tH(r,t){var e=rH(r),a=F0(t),n=wI(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),lt(a))i=AI(r,a,!0);else if(a==="auto"){var s=xI(r,r.getLabelModel(),Sv(fa.determine));o=s.labelCategoryInterval,i=Z(s.labels,function(l){return l.tickValue})}else o=a,i=CI(r,o,!0);return Py(e,a,{ticks:i,tickCategoryInterval:o})}function eH(r){var t=r.scale.getTicks(),e=tl(r);return{labels:Z(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var rH=bI("axisTick"),aH=bI("axisLabel");function bI(r){return function(e){return su(e)[r]||(su(e)[r]={list:[]})}}function wI(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,_=ih(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,x=g/d;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(S,x)));if(e===fa.estimate)return t.out.noPxChangeTryDetermine.push(Q(oH,null,r,b,l)),b;var w=TI(r,b,l);return w??b}function oH(r,t,e){return TI(r,t,e)==null}function TI(r,t,e){var a=K3(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 sH(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 CI(r,t,e){var a=tl(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=pI(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 AI(r,t,e){var a=r.scale,n=tl(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 Kx=[0,1],lH=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 jM(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(),jx(a,n.count())),$t(t,Kx,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),jx(a,n.count()));var i=$t(t,a,Kx,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=J3(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=Z(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return uH(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=Z(a,function(i){return Z(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||Sv(fa.determine),j3(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||Sv(fa.determine),iH(this,t)},r}();function jx(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function uH(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=Se(h),d=Se(d),c?h>d:hn&&(n+=xl);var h=Math.atan2(s,o);if(h<0&&(h+=xl),h>=a&&h<=n||h+xl>=a&&h+xl<=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 xv(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 MI(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 ra=[];function hH(r,t,e){var a=MI(t.x,t.y,t.width,t.height,r.x,r.y,ra);return e.set(ra[0],ra[1]),a}function dH(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,aa.fromArray(r[0]),ee.fromArray(r[1]),pe.fromArray(r[2]),vt.sub(ka,aa,ee),vt.sub(Ma,pe,ee);var e=ka.len(),a=Ma.len();if(!(e<.001||a<.001)){ka.scale(1/e),Ma.scale(1/a);var n=ka.dot(Ma),i=Math.cos(t);if(i1&&vt.copy(sr,pe),sr.toArray(r[1])}}}}function pH(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,aa.fromArray(r[0]),ee.fromArray(r[1]),pe.fromArray(r[2]),vt.sub(ka,ee,aa),vt.sub(Ma,pe,ee);var a=ka.len(),n=Ma.len();if(!(a<.001||n<.001)){ka.scale(1/a),Ma.scale(1/n);var i=ka.dot(t),o=Math.cos(e);if(i=l)vt.copy(sr,pe);else{sr.scaleAndAdd(Ma,s/Math.tan(Math.PI/2-f));var c=pe.x!==ee.x?(sr.x-ee.x)/(pe.x-ee.x):(sr.y-ee.y)/(pe.y-ee.y);if(isNaN(c))return;c<0?vt.copy(sr,ee):c>1&&vt.copy(sr,pe)}sr.toArray(r[1])}}}}function jd(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 gH(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=Bn(a[0],a[1]),i=Bn(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=wc([],a[1],a[0],o/n),l=wc([],a[1],a[2],o/i),u=wc([],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&&b(-c/i,0,i);var g=r[0],y=r[i-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),x(m,_,1),x(_,m,-1),S(),m<0&&T(-m),_<0&&T(_);function S(){m=g.rect[o]-e,_=a-y.rect[o]-y.rect[s]}function x(C,M,D){if(C<0){var I=Math.min(M,-C);if(I>0){b(I*D,0,i);var L=I+C;L<0&&w(-L*D,1)}else w(-C*D,1)}}function b(C,M,D){C!==0&&(f=!0);for(var I=M;I0)for(var L=0;L0;L--){var N=D[L-1]*k;b(-N,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?b(D,0,I+1):b(-D,i-I-1,i),C-=D,C<=0)return}return f}function _H(r){for(var t=0;t=0&&a.attr(i.oldLayoutSelect),wt(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Bt(a,u,e,l)}else if(a.attr(u),!Xs(a).valueAnimation){var c=nt(a.style.opacity,1);a.style.opacity=0,re(a,{style:{opacity:c}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};$f(h,u,Uf),$f(h,a.states.select,Uf)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};$f(d,u,Uf),$f(d,a.states.emphasis,Uf)}uL(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=bH(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Bt(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,re(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const TH=wH;var tp=It();function CH(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=tp(e).labelManager;n||(n=tp(e).labelManager=new TH),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=tp(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var ep=Math.sin,rp=Math.cos,RI=Math.PI,Oi=Math.PI*2,AH=180/RI,MH=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=Hn(c-Oi)||(f?u>=Oi:-u>=Oi),h=u>0?u%Oi:u%Oi+Oi,d=!1;v?d=!0:Hn(c)?d=!1:d=h>=RI==!!f;var p=t+a*rp(o),g=e+n*ep(o);this._start&&this._add("M",p,g);var y=Math.round(i*AH);if(v){var m=1/this._p,_=(f?1:-1)*(Oi-m);this._add("A",a,n,y,1,+f,t+a*rp(o+_),e+n*ep(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=t+a*rp(s),x=e+n*ep(s);this._add("A",a,n,y,+d,+f,S,x)}},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 NH(r){return""}function $0(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 OH(o,s)+(o!=="style"?Qe(l):l||"")+(i?""+e+Z(i,function(u){return a(u)}).join(e)+e:"")+NH(o)}return a(r)}function BH(r,t,e){e=e||{};var a=e.newline?` -`:"",n=" {"+a,i=a+"}",o=Z(kt(r),function(l){return l+n+Z(kt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=Z(kt(t),function(l){return"@keyframes "+l+n+Z(kt(t[l]),function(u){return u+n+Z(kt(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 Ny(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ab(r,t,e,a){return Ne("svg","root",{width:r,height:t,xmlns:OI,"xmlns:xlink":NI,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var zH=0;function zI(){return zH++}var nb={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"},zi="transform-origin";function VH(r,t,e){var a=$({},r.shape);$(a,t),r.buildPath(e,a);var n=new EI;return n.reset(GM(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function GH(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[zi]=e+"px "+a+"px")}var FH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function VI(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function HH(r,t,e){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=Ny(e.zrId);u.animation=!0,Lh(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=kt(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=VI(n,e);return i.replace(o,s)}}function ib(r){return J(r)?nb[r]?"cubic-bezier("+nb[r]+")":Gm(r)?r:"":""}function Lh(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof gh){var s=HH(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var Mt=VI(w,e);return Mt+" "+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-"+zI();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"};ob(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=Og(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),ob(a,t,e,!0)}}function ob(r,t,e,a){var n=JSON.stringify(r),i=e.cssStyleCache[n];i||(i=e.zrId+"-cls-"+zI(),e.cssStyleCache[n]=i,e.cssNodes["."+i+(a?":hover":"")]=r),t.class=t.class?t.class+" "+i:i}var ku=Math.round;function GI(r){return r&&J(r.src)}function FI(r){return r&<(r.toDataURL)}function U0(r,t,e,a){kH(function(n,i){var o=n==="fill"||n==="stroke";o&&VM(i)?WI(t,r,n,a):o&&Fm(i)?$I(e,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),KH(e,r,a)}function Y0(r,t){var e=YN(t);e&&(e.each(function(a,n){a!=null&&(r[(rb+n).toLowerCase()]=a+"")}),t.isSilent()&&(r[rb+"silent"]="true"))}function sb(r){return Hn(r[0]-1)&&Hn(r[1])&&Hn(r[2])&&Hn(r[3]-1)}function $H(r){return Hn(r[4])&&Hn(r[5])}function Z0(r,t,e){if(t&&!($H(t)&&sb(t))){var a=e?10:1e4;r.transform=sb(t)?"translate("+ku(t[4]*a)/a+" "+ku(t[5]*a)/a+")":cN(t)}}function lb(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.";rr(v,g),rr(h,g)}else if(v==null||h==null){var y=function(M,D){if(M){var I=M.elm,L=v||D.width,P=h||D.height;M.tag==="pattern"&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),M.attrs.width=L,M.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=Xm(d,null,r,function(M){l||y(b,M),y(c,M)});m&&m.width&&m.height&&(v=v||m.width,h=h||m.height)}c=Ne("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else n.svgElement&&(c=ut(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 x=FM(n);x&&(o.patternTransform=x);var b=Ne("pattern","",o,[c]),w=$0(b),T=a.patternCache,C=T[w];C||(C=a.zrId+"-p"+a.patternIdx++,T[w]=C,o.id=C,b=a.defs[C]=Ne("pattern",C,o,[c])),t[e]=nh(C)}}function jH(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]=Ne("clipPath",i,o,[HI(r,e)])}t["clip-path"]=nh(i)}function cb(r){return document.createTextNode(r)}function Ui(r,t,e){r.insertBefore(t,e)}function vb(r,t){r.removeChild(t)}function hb(r,t){r.appendChild(t)}function UI(r){return r.parentNode}function YI(r){return r.nextSibling}function ap(r,t){r.textContent=t}var db=58,JH=120,QH=Ne("","");function By(r){return r===void 0}function Ta(r){return r!==void 0}function t4(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 Ul(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function Ru(r){var t,e=r.children,a=r.tag;if(Ta(a)){var n=r.elm=BI(a);if(X0(QH,r),U(e))for(t=0;ti?(d=e[l+1]==null?null:e[l+1].elm,ZI(r,d,e,n,l)):Cv(r,t,a,i))}function vs(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(X0(r,t),By(t.text)?Ta(a)&&Ta(n)?a!==n&&e4(e,a,n):Ta(n)?(Ta(r.text)&&ap(e,""),ZI(e,null,n,0,n.length-1)):Ta(a)?Cv(e,a,0,a.length-1):Ta(r.text)&&ap(e,""):r.text!==t.text&&(Ta(a)&&Cv(e,a,0,a.length-1),ap(e,t.text)))}function r4(r,t){if(Ul(r,t))vs(r,t);else{var e=r.elm,a=UI(e);Ru(t),a!==null&&(Ui(a,t.elm,YI(e)),Cv(a,[r],0,0))}return t}var a4=0,n4=function(){function r(t,e,a){if(this.type="svg",this.refreshHover=pb(),this.configLayer=pb(),this.storage=e,this._opts=a=$({},a),this.root=t,this._id="zr"+a4++,this._oldVNode=ab(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=BI("svg");X0(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",r4(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return fb(t,Ny(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=Ny(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=i4(a,n,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Ne("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=Z(kt(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(Ne("defs","defs",{},u)),t.animation){var f=BH(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=Ne("style","stl",{},[],f);o.push(c)}}return ab(a,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},$0(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}}P.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?Yf:0),this._needsManuallyCompositing),f.__builtin__||Rm("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&wr&&!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]?Ct(a[t],e,!0):a[t]=e;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill=F.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}(oe);const g4=p4;function Os(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Ps(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 y4=function(r){B(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=Te(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=m4,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(){hn(this.childAt(0))},t.prototype.downplay=function(){dn(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):Bt(h,d,s,a),Zr(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,re(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=Pe(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Po(e.getItemVisual(a,"symbolOffset"),n);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(a,"style"),w=b.fill;if(s instanceof qe){var T=s.style;s.useStyle($({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle($({},b)):s.useStyle(b),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;Be(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return D?e.getName(R):Os(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 P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),ne(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=mt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&ti(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ti(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Qs(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t}(ft);function m4(r,t){this.parent.drift(r,t)}const Qu=y4;function ip(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 mb(r){return r!=null&&!dt(r)&&(r={isIgnore:r}),r||{}}function _b(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:Pe(t),cursorStyle:t.get("cursor")}}var _4=function(){function r(t){this.group=new ft,this._SymbolCtor=t||Qu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=mb(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=_b(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(ip(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(!ip(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):Bt(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=_b(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=mb(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 KI(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 x4(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 b4(r,t,e,a,n,i,o,s){for(var l=x4(r,t),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=qI(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=n||p<0)break;if(co(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 x=p+i,b=t[x*2],w=t[x*2+1];b===y&&w===m&&g=a||co(b,w))h=y,d=m;else{M=b-u,D=w-f;var P=y-u,R=b-y,k=m-f,N=w-m,E=void 0,z=void 0;if(s==="x"){E=Math.abs(P),z=Math.abs(R);var V=M>0?1:-1;h=y-V*E*o,d=m,I=y+V*z*o,L=m}else if(s==="y"){E=Math.abs(k),z=Math.abs(N);var H=D>0?1:-1;h=y,d=m-H*E*o,I=y,L=m+H*z*o}else E=Math.sqrt(P*P+k*k),z=Math.sqrt(R*R+N*N),C=z/(z+E),h=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=Ln(I,In(b,y)),L=Ln(L,In(w,m)),I=In(I,Ln(b,y)),L=In(L,Ln(w,m)),M=I-y,D=L-m,h=y-M*E/z,d=m-D*E/z,h=Ln(h,In(u,y)),d=Ln(d,In(f,m)),h=In(h,Ln(u,y)),d=In(d,Ln(f,m)),M=y-h,D=m-d,I=y+M*z/E,L=m+D*z/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 jI=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),w4=function(r){B(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:F.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new jI},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&co(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 x=u?Xc(s,h,p,y,e,f):Xc(l,d,g,m,e,f);if(x>0)for(var b=0;b=0){var S=u?Oe(l,d,g,m,w):Oe(s,h,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Pt),T4=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(jI),JI=function(r){B(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 T4},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&&co(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 M4(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=Z(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=A4(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 Ys(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function D4(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 I4(r,t){return isNaN(r)||isNaN(t)}function P4(r){for(var t=r.length/2;t>0&&I4(r[t*2-2],r[t*2-1]);t--);return t-1}function Tb(r,t){return[r[t*2],r[t*2+1]]}function k4(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 eP(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=d.getState("emphasis").style;z.lineWidth=+d.style.lineWidth+1}mt(d).seriesIndex=e.seriesIndex,ne(d,k,N,E);var V=wb(e.get("smooth")),H=e.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:H,connectNulls:w}),p){var G=s.getCalculationInfo("stackedOnSeries"),Y=0;p.useStyle(ht(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(Y=wb(G.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:Y,smoothMonotone:H,connectNulls:w}),Ie(p,e,"areaStyle"),mt(p).seriesIndex=e.seriesIndex,ne(p,k,N,E)}var X=this._changePolyState;s.eachItemGraphicEl(function(ot){ot&&(ot.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=s,this._coordSys=i,this._stackedOnPoints=x,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){mt(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=go(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 Qu(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 Qt.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=go(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 Qt.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;iv(this._polyline,e),a&&iv(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new w4({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 JI({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");lt(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=lt(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,x=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=n;i?(y=b.x,m=b.x+b.width,_=h.x):(y=b.y+b.height,m=b.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=lt(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(eP(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 Nt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=P4(l);f>=0&&(Be(s,Pe(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?XI(o,h):Os(o,c)},enableTextSetter:!0},R4(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,x=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=k4(c,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!h){var I=Tb(c,C[0]);u.attr({x:I[0]+x,y:I[1]+b}),o&&(D=v.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+x,y:I[1]+b});var L=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(D=uD(n,d,L,P,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,I=Tb(c,R);o&&(D=v.getRawValue(R)),u.attr({x:I[0]+x,y:I[1]+b})}if(o){var k=Xs(u);typeof k.setLabelText=="function"&&k.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,v=b4(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=Pn(v.stackedOnCurrent,v.current,n,o,l),h=Pn(v.current,null,n,o,l),g=Pn(v.stackedOnNext,v.next,n,o,l),p=Pn(v.next,null,n,o,l)),bb(h,p)>3e3||f&&bb(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(),Bt(u,y,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Bt(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 x=_[S].cmd;if(x==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,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;J(i)?d=N4[i]:lt(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,B4))}}}}}function z4(r){r.registerChartView(O4),r.registerSeriesModel(g4),r.registerLayout(rf("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,rP("line"))}var aP=function(r){B(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 xn(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,x=0;xg){_=(b+m)/2;break}x===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}(oe);oe.registerClass(aP);const Av=aP;var V4=function(r){B(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 xn(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=ci(Av.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:F.color.primary,borderWidth:2}},realtimeSort:!1}),t}(Av);const G4=V4;var F4=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}(),H4=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new F4},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){on(i,e,mt(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}(Qt),Cb={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=sp(t.x,r.x),s=lp(t.x+t.width,n),l=sp(t.y,r.y),u=lp(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=lp(t.r,r.r),i=sp(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}},Ab={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new Lt({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?Mv:fr,f=new u({shape:a,z2:1});f.name="item";var c=nP(n);if(f.calculateTextPosition=W4(c,{isRoundCap:u===Mv}),i){var v=f.shape,h=n?"r":"endAngle",d={};v[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?Bt:re)(f,{shape:d},i)}return f}};function Z4(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 Mb(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?Bt:re)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?Bt:re)(e,{shape:u},f,n)}function Db(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 K4(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function nP(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 Ib(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=Ra(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=Pe(a);Be(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Os(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,$4(r,g==="outside"?h:g,nP(o),a.get(["label","rotate"]))}lL(p,d,i.getRawValue(e),function(m){return XI(t,m)});var y=a.getModel(["emphasis"]);ne(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Ie(r,a),K4(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function j4(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 J4=function(){function r(){}return r}(),Pb=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new J4},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 Q4(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 iP(r,t,e){if(ai(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 tW(r,t,e){var a=r.type==="polar"?fr:Lt;return new a({shape:iP(t,e,r),silent:!0,z2:0})}const eW=Y4;function rW(r){r.registerChartView(eW),r.registerSeriesModel(G4),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(iI,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oI("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,rP("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 Eb=Math.PI*2,Kf=Math.PI/180;function aW(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=LL(a,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,v=-a.get("startAngle")*Kf,h=a.get("endAngle"),d=a.get("padAngle")*Kf;h=h==="auto"?v-Eb:-h*Kf;var p=a.get("minAngle")*Kf,g=p+d,y=0;n.each(i,function(N){!isNaN(N)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),x=a.get("roseType"),b=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=S?1:-1,C=[v,h],M=T*d/2;fh(C,!S),v=C[0],h=C[1];var D=oP(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,P=0,R=v;if(n.setLayout({viewRect:c,r:u}),n.each(i,function(N,E){var z;if(isNaN(N)){n.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:x?NaN:u});return}x!=="area"?z=m===0&&b?_:N*_:z=I/y,zz?(H=R+T*z/2,G=H):(H=R+M,G=V-M),n.setItemLayout(E,{angle:z,startAngle:H,endAngle:G,clockwise:S,cx:s,cy:l,r0:f,r:x?$t(N,w,[f,u]):u}),R=V}),Le?y:g,x=Math.abs(_.label.y-e);if(x>=S.maxY){var b=_.label.x-t-_.len2*n,w=a+_.len,T=Math.abs(b)r.unconstrainedWidth?null:v:null;a.setStyle("width",h)}lP(i,a)}}}function lP(r,t){Nb.rect=r,PI(Nb,t,oW)}var oW={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Nb={};function up(r){return r.position==="center"}function sW(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*nW,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=t.getItemModel(b),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),k=j(I.get("edgeDistance"),u),N=I.get("bleedMargin");N==null&&(N=Math.min(u,v)>200?10:2);var E=D.getModel("labelLine"),z=E.get("length");z=j(z,u);var V=E.get("length2");if(V=j(V,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":G>0?"left":"right"}var K=Math.PI,pt=0,xt=I.get("rotate");if(Rt(xt))pt=xt*(K/180);else if(L==="center")pt=0;else if(xt==="radial"||xt===!0){var Tt=G<0?-H+K:-H;pt=Tt}else if(xt==="tangential"&&L!=="outside"&&L!=="outer"){var Ot=Math.atan2(G,Y);Ot<0&&(Ot=K*2+Ot);var te=Y>0;te&&(Ot=K+Ot),pt=Ot-K}if(i=!!pt,C.x=X,C.y=ot,C.rotation=pt,C.setStyle({verticalAlign:"middle"}),st){C.setStyle({align:Mt});var $e=C.states.select;$e&&($e.x+=C.x,$e.y+=C.y)}else{var Xt=new gt(0,0,0,0);lP(Xt,C),e.push({label:C,labelLine:M,position:L,len:z,len2:V,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new vt(G,Y),linePoints:St,textAlign:Mt,labelDistance:P,labelAlignTo:R,edgeDistance:k,bleedMargin:N,rect:Xt,unconstrainedWidth:Xt.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:st})}}),!i&&r.get("avoidLabelOverlap")&&iW(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}(Qt);const fW=uW;function rl(r,t,e){t=U(t)&&{coordDimensions:t}||$({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=ju(a,t).dimensions,i=new lr(n,r);return i.initData(a,e),i}var cW=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 al=cW;var vW=It(),uP=function(r){B(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 al(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return rl(this,{coordDimensions:["value"],encodeDefaulter:bt(S0,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=vW(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=jN(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){po(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}(oe);qV({fullType:uP.type,getCoord2:function(r){return r.getShallow("center")}});const hW=uP;function dW(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!(Rt(o)&&!isNaN(o)&&o<0)})}}}function pW(r){r.registerChartView(fW),r.registerSeriesModel(hW),b2("pie",r.registerAction),r.registerLayout(bt(aW,"pie")),r.registerProcessor(el("pie")),r.registerProcessor(dW("pie"))}var gW=function(r){B(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 xn(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:F.color.primary}},universalTransition:{divideShape:"clone"}},t}(oe);const yW=gW;var fP=4,mW=function(){function r(){}return r}(),_W=function(r){B(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 mW},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 xW=SW;var bW=function(r){B(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=rf("").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 xW:new tf,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}(Qt);const wW=bW;var cP={left:0,right:0,top:0,bottom:0},Dv=["25%","25%"],TW=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=Lo(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&Ha(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Ha(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:cP,outerBoundsContain:"all",outerBoundsClampWidth:Dv[0],outerBoundsClampHeight:Dv[1],backgroundColor:F.color.transparent,borderWidth:1,borderColor:F.color.neutral30},t}(Et);const CW=TW;var Vy=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ce).models[0]},t.type="cartesian2dAxis",t}(Et);Ce(Vy,Ju);var vP={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:F.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:F.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:F.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[F.color.backgroundTint,F.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:F.color.neutral00,borderColor:F.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},AW=Ct({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},vP),q0=Ct({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:F.color.axisMinorSplitLine,width:1}}},vP),MW=Ct({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},q0),DW=ht({logBase:10},q0);const hP={category:AW,value:q0,time:MW,log:DW};var LW={value:1,category:1,time:1,log:1},Gy=null;function IW(r){Gy||(Gy=r)}function af(){return Gy}function Ns(r,t,e,a){A(LW,function(n,i){var o=Ct(Ct({},hP[i],!0),a,!0),s=function(l){B(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=wu(this),h=v?Lo(f):{},d=c.getTheme();Ct(f,d.get(i+"Axis")),Ct(f,this.getDefaultOption()),f.type=Bb(f),v&&Ha(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Lu.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=af();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Bb)}function Bb(r){return r.type||(r.data?"category":"value")}var PW=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 Z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ut(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 kW=PW;var Fy=["x","y"];function zb(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var RW=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Fy,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!zb(e)||!zb(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=la([],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 gt(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 me(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 me(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 gt(i,o,s,l)},t}(kW),EW=function(r){B(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}(ha);const dP=EW;var Ih="expandAxisBreak",pP="collapseAxisBreak",gP="toggleAxisBreak",K0="axisbreakchanged",OW={type:Ih,event:K0,update:"update",refineEvent:j0},NW={type:pP,event:K0,update:"update",refineEvent:j0},BW={type:gP,event:K0,update:"update",refineEvent:j0};function j0(r,t,e,a){var n=[];return A(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function zW(r){r.registerAction(OW,t),r.registerAction(NW,t),r.registerAction(BW,t);function t(e,a){var n=[],i=ws(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(ht((v={},v[l]=u.componentIndex,v),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var Wn=Math.PI,VW=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],GW=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Bs=It(),yP=It(),mP=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 FW(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=J0(r.axisName)&&Es(r.nameLocation);A(a,function(d){var p=Wa(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?la(bl,g.transform):rh(bl),p.transform&&Ea(bl,bl,p.transform),gt.copy(jf,p.localRect),jf.applyTransform(bl),s?s.union(jf):gt.copy(s=new gt(0,0,0,0),jf))}});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 gt(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var bl=He(),jf=new gt(0,0,0,0),_P=function(r,t,e,a,n,i){if(Es(r.nameLocation)){var o=i.stOccupiedRect;o&&SP(mH({},o,i.transGroup.transform),a,n)}else xP(i.labelInfoList,i.dirVec,a,n)};function SP(r,t,e){var a=new vt;Dh(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&ky(t,a)}function xP(r,t,e,a){for(var n=vt.dot(a,t)>=0,i=0,o=r.length;i0?"top":"bottom",i="center"):gu(n-Wn)?(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}(),HW=["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&&(me(f,f,u),me(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())af().buildAxisBreakLine(a,n,i,d);else{var p=new Le($({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));Is(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"]);J(g)&&(g=[g,g]),(J(y)||Rt(y))&&(y=[y,y]);var m=Po(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(x,b){if(g[b]!=="none"&&g[b]!=null){var w=Te(g[b],-_/2,-S/2,_,S,h.stroke,!0),T=x.r+x.offset,C=v?c:f;w.attr({rotation:x.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=Gb(t,n,s);l&&Vb(r,t,e,a,n,i,o,fa.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=Gb(t,n,s);l&&Vb(r,t,e,a,n,i,o,fa.determine);var u=ZW(r,n,i,a);YW(r,t.labelLayoutList,u),XW(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(J0(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 vt(0,0),y=new vt(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=He();y.transform(li(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*Wn/180);var S,x;Es(f)?S=vo.innerTextLayout(r.rotation,_??r.rotation,c):(S=$W(r.rotation,f,_||0,d),x=r.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(S.rotation)),!isFinite(x)&&(x=null)));var b=v.getFont(),w=a.get("nameTruncate",!0)||{},T=w.ellipsis,C=Ze(r.raw.nameTruncateMaxWidth,w.maxWidth,x),M=s.nameMarginLevel||0,D=new Nt({x:g.x,y:g.y,rotation:S.rotation,silent:vo.isLabelSilent(a),style:Jt(v,{text:u,font:b,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(Sn({el:D,componentModel:a,itemName:u}),D.__fullText=u,D.anid="name",a.get("triggerEvent")){var I=vo.makeAxisEventDataBase(a);I.targetType="axisName",I.name=u,mt(D).eventData=I}i.add(D),D.updateTransform(),t.nameEl=D;var L=l.nameLayout=Wa({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Es(f)?VW[M]:GW[M]});if(l.nameLocation=f,n.add(D),D.decomposeTransform(),r.shouldNameMoveOverlap&&L){var P=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,L,y,P)}}}};function Vb(r,t,e,a,n,i,o,s){wP(t)||qW(r,t,n,s,a,o);var l=t.labelLayoutList;KW(r,a,l,i),QW(a,r.rotation,l);var u=r.optionHideOverlap;UW(a,l,u),u&&kI(Ut(l,function(f){return f&&!f.label.ignore})),FW(r,e,a,l)}function $W(r,t,e,a){var n=JM(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return gu(n-Wn/2)?(o=l?"bottom":"top",i="center"):gu(n-Wn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nWn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function UW(r,t,e){if(pI(r.axis))return;function a(s,l,u){var f=Wa(t[l]),c=Wa(t[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){Yl(f.label);return}if(c.suggestIgnore){Yl(c.label);return}var v=.1;if(!e){var h=[0,0,0,0];f=Ry({marginForce:h},f),c=Ry({marginForce:h},c)}Dh(f,c,null,{touchThreshold:v})&&Yl(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 YW(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=Xd(h),d=u[1]-h*o;else{var g=r.getTicks().length-1;g>o&&(h=Xd(h));var y=h*o;p=Math.ceil(u[1]/h)*h,d=Se(p-y),d<0&&u[0]>=0?(d=0,p=Se(y)):p>0&&u[1]<=0&&(p=0,d=-Se(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 Hb=[[3,1],[0,2]],a$=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Fy,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=kt(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;My(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(Rs(p,d),My(p)&&(s=h))}f.length&&(s||(s=f.pop(),Rs(s.scale,s.model)),A(f,function(g){TP(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){Wb(a,"y",o,i)}),A(a.y,function(o){Wb(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=ke(t,e),i=this._rect=ie(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Wy(o,i),!a){var u=o$(i,s,o,l,e),f=void 0;if(l)$y?($y(this._axesList,i),Wy(o,i)):f=Yb(i.clone(),"axisLabel",null,i,o,u,n);else{var c=s$(t,i,n),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=Yb(v,h,d,i,o,u,n))}CP(i,o,fa.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]}dt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n0})==null;return _o(a,s,!0,!0,e),Wy(n,a),l;function u(v){A(n[_t[v]],function(h){if(Pu(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g0&&!tr(h)&&h>1e-4&&(v/=h),v}}function o$(r,t,e,a,n){var i=new mP(l$);return A(e,function(o){return A(o,function(s){if(Pu(s.model)){var l=!a;s.axisBuilder=e$(r,t,s.model,n,i,l)}})}),i}function CP(r,t,e,a,n,i){var o=e===fa.determine;A(t,function(u){return A(u,function(f){Pu(f.model)&&(r$(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[_t[1-u]]=r[be[u]]<=i.refContainer[be[u]]*.5?0:1-u===1?2:1}A(t,function(u,f){return A(u,function(c){Pu(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function s$(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=ie(r.get("outerBounds",!0)||cP,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||wt(["all","axisLabel"],i)<0?o="all":o=i;var s=[ev(nt(r.get("outerBoundsClampWidth",!0),Dv[0]),t.width),ev(nt(r.get("outerBoundsClampHeight",!0),Dv[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var l$=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";_P(r,t,e,a,n,i),Es(r.nameLocation)||A(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&xP(s.labelInfoList,s.dirVec,a,n)})};const u$=a$;function f$(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return c$(e,r,t),e.seriesInvolved&&h$(e,r),e}function c$(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=Eu(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(A(s.getAxes(),bt(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,bt(p,h?"cross":!0,v)),h&&A(d.otherAxes,bt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Uy(_))){y==null&&(y=_.get("triggerTooltip")),_=g?v$(m,c,n,t,g,y):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=Eu(m.model),T=y||x||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:x,useHandle:Uy(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||T;var M=d$(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 v$(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]=ut(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&&ht(u,c.textStyle)}}return r.model.getModel("axisPointer",new zt(l,e,a))}function h$(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[Eu(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 d$(r,t){for(var e=t.model,a=t.dim,n=0;n=0||r===t}function p$(r){var t=Q0(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=Uy(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 w$=It();function qb(r,t,e,a){if(r instanceof dP){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):T$(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 T$(r,t,e,a,n,i){var o=w$(r);o.items||(o.items=[]);var s=o.items,l=Kb(s,t,e,a,n,i,1),u=Kb(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 Kb(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=ht({color:d.color},l));var g=Ct(ut(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(J(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else lt(f)&&(g.name=f(g.name,g));var m=new zt(g,null,this.ecModel);return Ce(m,Ju.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:F.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ct({lineStyle:{color:F.color.neutral20}},wl.axisLine),axisLabel:Jf(wl.axisLabel,!1),axisTick:Jf(wl.axisTick,!1),splitLine:Jf(wl.splitLine,!0),splitArea:Jf(wl.splitArea,!0),indicator:[]},t}(Et);const O$=E$;var N$=function(r){B(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=Z(i,function(s){var l=s.model.get("showName")?s.name:"",u=new gn(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,k,N){var E=N%k.length;return R[E]=R[E]||[],E}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,x=a.cy,b=0;b<_.length;b++){if(f){var w=m(g,d,b);g[w].push(new ui({shape:{cx:S,cy:x,r:_[b].coord}}))}if(c&&b<_.length-1){var w=m(y,p,b);y[w].push(new dh({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,C=Z(n,function(R,k){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),Z(N,function(E){return a.coordToPoint(E.coord,k)})}),M=[],b=0;b<=T;b++){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(!(Qb(this._zr,"globalPan")||Tl(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)&&(cn(i.event),i.__ecRoamConsumed=!0,tw(e,a,n,i,o))},t}(Xr);function Tl(r){return r.__ecRoamConsumed}var X$=It();function Ph(r){var t=X$(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Cl(r,t,e,a){for(var n=Ph(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=BP(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var h=n;n=new ft,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 Lt({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=vp[s];if(f&&rt(vp,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=nw[s];if(h&&rt(nw,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 mu({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});kr(e,a),_r(t,a,this._defsUsePending,!1,!1),J$(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(){vp={g:function(t,e){var a=new ft;return kr(e,a),_r(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new Lt;return kr(e,a),_r(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 ui;return kr(e,a),_r(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 Le;return kr(e,a),_r(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 a0;return kr(e,a),_r(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=sw(a));var i=new cr({shape:{points:n||[]},silent:!0});return kr(e,i),_r(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=sw(a));var i=new ar({shape:{points:n||[]},silent:!0});return kr(e,i),_r(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new qe;return kr(e,a),_r(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 ft;return kr(e,s),_r(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 ft;return kr(e,s),_r(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=zD(a);return kr(e,n),_r(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),nw={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 Ys(t,e,a,n);return iw(r,i),ow(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 jD(t,e,a);return iw(r,n),ow(r,n),n}};function iw(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function ow(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={};NP(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000",s=i.stopOpacity||e.getAttribute("stop-opacity");if(s){var l=gr(o),u=l&&l[3];u&&(l[3]*=Zn(s),o=Oa(l,"rgba"))}t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function kr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),ht(t.__inheritedStyle,r.__inheritedStyle))}function sw(r){for(var t=Rh(r),e=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=Rh(o);switch(n=n||He(),s){case"translate":Va(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":zm(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":li(n,n,-parseFloat(l[0])*hp,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*hp);Ea(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*hp);Ea(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 uw=/([^\s:;]+)\s*:\s*([^:;]+)/g;function NP(r,t,e){var a=r.getAttribute("style");if(a){uw.lastIndex=0;for(var n;(n=uw.exec(a))!=null;){var i=n[1],o=rt(Iv,i)?Iv[i]:null;o&&(t[o]=n[2]);var s=rt(Pv,i)?Pv[i]:null;s&&(e[s]=n[2])}}}function n8(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=at(),a=at(),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;Be(t,Pe(a),{labelFetcher:v,labelDataIndex:c,defaultText:e},h);var d=t.getTextContent();if(d&&(zP(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 dw(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):mt(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function pw(r,t,e,a,n){r.data||Sn({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function gw(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return ne(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&Pz(t,n,e),o}function yw(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=F.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:F.color.tertiary},itemStyle:{borderWidth:.5,borderColor:F.color.border,areaColor:F.color.background},emphasis:{label:{show:!0,color:F.color.primary},itemStyle:{areaColor:F.color.highlight}},select:{label:{show:!0,color:F.color.primary},itemStyle:{color:F.color.highlight}},nameProperty:"name"},t}(oe);const A8=C8;function M8(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,_=ie(S,d),_=IL(r,_,p)}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function k8(r,t){A(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var R8=function(){function r(){this.dimensions=GP}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 xw(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=bw,u.resize(o,e)}),t.eachSeries(function(o){Xu({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",ce).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=Z(o,function(f){return f.get("nameMap")}),u=new xw(s,s,$({nameMap:Em(l),api:e,ecModel:t},n(o[0])));u.zoomLimit=Ze.apply(null,Z(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=bw,u.resize(o[0],e),A(o,function(f){f.coordinateSystem=u,k8(u,f)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=at(),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 H8(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){$8(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=U8(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 ww(r){return arguments.length?r:X8}function Zl(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function $8(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 U8(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=dp(s),i=pp(i),s&&i;){n=dp(n),o=pp(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+c-i.hierNode.prelim-u+a(s,i);v>0&&(Z8(Y8(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&&!dp(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=c-l),i&&!pp(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function dp(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function pp(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function Y8(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function Z8(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 X8(r,t){return r.parentNode===t.parentNode?1:2}var q8=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),K8=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:F.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new q8},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,x||(S=S-Math.PI));var w=x?"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"?vu(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(mt(e).focus=L),J8(n,o,f,e,d,h,p,a),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===$u||iv(e.__edge,P)}})}function J8(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 ph({shape:Xy(f,c,v,n,n)})),Bt(p,{shape:Xy(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(J(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 ZP(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function s_(r,t){var e=ZP(r);return wt(e,t)>=0}function Eh(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 uU=function(r){B(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 zt(n,this,this.ecModel),o=o_.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 we("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=Eh(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:F.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(oe);const fU=uU;function cU(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 vU(r,t){r.eachSeriesByType("tree",function(e){hU(e,t)})}function hU(r,t){var e=ke(r,t).refContainer,a=ie(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=ww(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=a.width,o=a.height,s=ww());var l=r.getData().tree.root,u=l.children[0];if(u){F8(l),cU(u,H8,s),l.hierNode.modifier=-u.hierNode.prelim,Dl(u,W8);var f=u,c=u,v=u;Dl(u,function(S){var x=S.getLayout().x;xc.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),Dl(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var x=Zl(y,m);S.setLayout({x:x.x,y:x.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),Dl(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),Dl(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 dU(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 pU(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=kh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}function gU(r){r.registerChartView(Q8),r.registerSeriesModel(fU),r.registerLayout(vU),r.registerVisual(dU),pU(r)}var Dw=["treemapZoomToNode","treemapRender","treemapMove"];function yU(r){for(var t=0;t1;)i=i.parentNode;var o=hy(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var mU=function(r){B(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};qP(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new zt({itemStyle:o},this,a);i=e.levels=_U(i,a);var l=Z(i||[],function(c){return new zt(c,s,a)},this),u=o_.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 we("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=Eh(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=at(),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(){XP(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:F.size.l,top:F.size.xxxl,right:F.size.l,bottom:F.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:F.size.m,emptyItemWidth:25,itemStyle:{color:F.color.backgroundShade,textStyle:{color:F.color.secondary}},emphasis:{itemStyle:{color:F.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:F.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:F.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}(oe);function qP(r){var t=0;A(r.children,function(a){qP(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 _U(r,t){var e=Kt(t.get("color")),a=Kt(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;A(r,function(s){var l=new zt(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 SU=mU;var xU=8,Lw=8,gp=5,bU=function(){function r(t){this.group=new ft,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=ke(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=ie(v,c);this._prepare(a,h,u),this._renderContent(t,h,d,s,l,u,f,n),xh(o,v,c)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=De(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+xU*2,e.emptyItemWidth);e.totalWidth+=s+Lw,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 cr({shape:{points:wU(u,0,m,c,p===h.length-1,p===0)},style:ht(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Nt({style:Jt(o,{text:_})}),textConfig:{position:"inside"},z2:Us*1e4,onclick:bt(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Jt(s,{text:_}),S.ensureState("emphasis").style=d,ne(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),TU(S,t,y),u+=m+Lw}},r.prototype.remove=function(){this.group.removeAll()},r}();function wU(r,t,e,a,n,i){var o=[[n?r:r-gp,t],[r+e,t],[r+e,t+a],[n?r:r-gp,t+a]];return!i&&o.splice(2,0,[r+e+gp,t+a/2]),!n&&o.push([r,t+a/2]),o}function TU(r,t,e){mt(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&&Eh(e,t)}}const CU=bU;var AU=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 gt(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=He();Va(g,g,[-a,-n]),zm(g,g,[d,d]),Va(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&&uv(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 CU(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(s_(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Ll(),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}(Qt);function Ll(){return{nodeGroup:[],background:[],content:[]}}function kU(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,x=_&&_.length,b=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),M=b.get("borderRadius")||0,D=ot("nodeGroup",qy);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),kv(D).nodeWidth=h,kv(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=ot("background",Iw,u,LU);I&&V(D,I,x&&f.upperLabelHeight);var L=v.getModel("emphasis"),P=L.get("focus"),R=L.get("blurScope"),k=L.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)Su(D)&&Ki(D,!1),I&&(Ki(I,!k),c.setItemGraphicEl(o.dataIndex,I),ey(I,N,R));else{var E=ot("content",Iw,u,IU);E&&H(D,E),I.disableMorphing=!0,I&&Su(I)&&Ki(I,!1),Ki(D,!k),c.setItemGraphicEl(o.dataIndex,D);var z=v.getShallow("cursor");z&&E.attr("cursor",z),ey(D,N,R)}return D;function V(st,et,it){var tt=mt(et);if(tt.dataIndex=o.dataIndex,tt.seriesIndex=r.seriesIndex,et.setShape({x:0,y:0,width:h,height:d,r:M}),g)G(et);else{et.invisible=!1;var O=o.getVisual("style"),W=O.stroke,q=Ew(b);q.fill=W;var K=Gi(w);K.fill=w.get("borderColor");var pt=Gi(T);pt.fill=T.get("borderColor");var xt=Gi(C);if(xt.fill=C.get("borderColor"),it){var Tt=h-2*p;Y(et,W,O.opacity,{x:p,y:0,width:Tt,height:S})}else et.removeTextContent();et.setStyle(q),et.ensureState("emphasis").style=K,et.ensureState("blur").style=pt,et.ensureState("select").style=xt,mo(et)}st.add(et)}function H(st,et){var it=mt(et);it.dataIndex=o.dataIndex,it.seriesIndex=r.seriesIndex;var tt=Math.max(h-2*p,0),O=Math.max(d-2*p,0);if(et.culling=!0,et.setShape({x:p,y:p,width:tt,height:O,r:M}),g)G(et);else{et.invisible=!1;var W=o.getVisual("style"),q=W.fill,K=Ew(b);K.fill=q,K.decal=W.decal;var pt=Gi(w),xt=Gi(T),Tt=Gi(C);Y(et,q,W.opacity,null),et.setStyle(K),et.ensureState("emphasis").style=pt,et.ensureState("blur").style=xt,et.ensureState("select").style=Tt,mo(et)}st.add(et)}function G(st){!st.invisible&&i.push(st)}function Y(st,et,it,tt){var O=v.getModel(tt?Rw:kw),W=De(v.get("name"),null),q=O.getShallow("show");Be(st,Pe(v,tt?Rw:kw),{defaultText:q?W:null,inheritColor:et,defaultOpacity:it,labelFetcher:r,labelDataIndex:o.dataIndex});var K=st.getTextContent();if(K){var pt=K.style,xt=th(pt.padding||0);tt&&(st.setTextConfig({layoutRect:tt}),K.disableLabelLayout=!0),K.beforeUpdate=function(){var Ot=Math.max((tt?tt.width:st.shape.width)-xt[1]-xt[3],0),te=Math.max((tt?tt.height:st.shape.height)-xt[0]-xt[2],0);(pt.width!==Ot||pt.height!==te)&&K.setStyle({width:Ot,height:te})},pt.truncateMinChar=2,pt.lineOverflow="truncate",X(pt,tt,f);var Tt=K.getState("emphasis");X(Tt?Tt.style:null,tt,f)}}function X(st,et,it){var tt=st?st.text:null;if(!et&&it.isLeafRoot&&tt!=null){var O=r.get("drillDownIcon",!0);st.text=O?O+" "+tt:tt}}function ot(st,et,it,tt){var O=m!=null&&e[st][m],W=n[st];return O?(e[st][m]=null,St(W,O)):g||(O=new et,O instanceof Yr&&(O.z2=RU(it,tt)),Mt(W,O)),t[st][y]=O}function St(st,et){var it=st[y]={};et instanceof qy?(it.oldX=et.x,it.oldY=et.y):it.oldShape=$({},et.shape)}function Mt(st,et){var it=st[y]={},tt=o.parentNode,O=et instanceof ft;if(tt&&(!a||a.direction==="drillDown")){var W=0,q=0,K=n.background[tt.getRawIndex()];!a&&K&&K.oldShape&&(W=K.oldShape.width,q=K.oldShape.height),O?(it.oldX=0,it.oldY=q):it.oldShape={x:W,y:q,width:0,height:0}}it.fadein=!O}}function RU(r,t){return r*DU+t}const EU=PU;var Nu=A,OU=dt,Rv=-1,l_=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=ut(t);this.type=a,this.mappingMethod=e,this._normalizeData=zU[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(yp(n),NU(n)):e==="category"?n.categories?BU(n):yp(n,!0):(rr(e!=="linear"||n.dataExtent),yp(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return Q(this._normalizeData,this)},r.listVisualTypes=function(){return kt(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){dt(t)?A(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=U(t)?[]:dt(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&&Nu(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(OU(t)){var e=[];Nu(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 yp(r,t){var e=r.visual,a=[];dt(e)?Nu(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]),KP(r,a)}function tc(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Ky([0,1])}}function Ow(r){var t=this.option.visual;return t[Math.round($t(r,[0,1],[0,t.length-1],!0))]||{}}function Il(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Xl(r){var t=this.option.visual;return t[this.option.loop&&r!==Rv?r%t.length:r]}function Fi(){return this.option.visual[0]}function Ky(r){return{linear:function(t){return $t(t,r,this.option.visual,!0)},category:Xl,piecewise:function(t,e){var a=jy.call(this,e);return a==null&&(a=$t(t,r,this.option.visual,!0)),a},fixed:Fi}}function jy(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=l_.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function KP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Z(t,function(e){var a=gr(e);return a||[0,0,0,1]})),t}var zU={linear:function(r){return $t(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=l_.findPieceIndex(r,t,!0);if(e!=null)return $t(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Rv},fixed:ye};function ec(r,t,e){return r?t<=e:t=e.length||p===e[p.depth]){var y=$U(n,l,p,g,d,a);JP(p,y,e,a)}})}}}function FU(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 Nw(r){var t=mp(r,"color");if(t){var e=mp(r,"colorAlpha"),a=mp(r,"colorSaturation");return a&&(t=Xn(t,null,null,a)),e&&(t=qc(t,e)),t}}function HU(r,t){return t!=null?Xn(t,null,null,r):null}function mp(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=_p(t,"color")||n.color!=null&&n.color!=="none"&&(_p(t,"colorAlpha")||_p(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 Xe(c);return jP(v).drColorMappingBy=f,v}}}function _p(r,t){var e=r.get(t);return U(e)&&e.length?{name:t,range:e}:null}function $U(r,t,e,a,n,i){var o=$({},t);if(n){var s=n.type,l=s==="color"&&jP(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 Bu=Math.max,Ev=Math.min,Bw=Ze,u_=A,QP=["itemStyle","borderWidth"],UU=["itemStyle","gapWidth"],YU=["upperLabel","show"],ZU=["upperLabel","height"];const XU={seriesType:"treemap",reset:function(r,t,e,a){var n=r.option,i=ke(r,e).refContainer,o=ie(r.getBoxLayoutParams(),i),s=n.size||[],l=j(Bw(o.width,s[0]),i.width),u=j(Bw(o.height,s[1]),i.height),f=a&&a.type,c=["treemapZoomToNode","treemapRootToNode"],v=Ou(a,c,r),h=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),p=ZP(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?t6(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(_),tk(d,m,!1,0),_=d.getLayout(),u_(p,function(x,b){var w=(p[b+1]||d).getValue();x.setLayout($({dataExtent:[w,w],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(e6(o,h,v),!0),r.setLayoutInfo(o),ek(S,new gt(-o.x,-o.y,e.getWidth(),e.getHeight()),p,d,0)}};function tk(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(QP),u=s.get(UU)/2,f=rk(s),c=Math.max(l,f),v=l-u,h=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),n=Bu(n-2*v,0),i=Bu(i-v-h,0);var d=n*i,p=qU(r,s,d,t,e,a);if(p.length){var g={x:v,y:h,width:n,height:i},y=Ev(n,i),m=1/0,_=[];_.area=0;for(var S=0,x=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 QU(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?Bu(u*a/l,l/(u*n)):1/0}function zw(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;cG1&&(u=G1),i=s}ua&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(x[0]=-x[0],x[1]=-x[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=b[0],i.y=b[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}(ft);const h_=_6;var S6=function(){function r(t){this.group=new ft,this._LineCtor=t||h_}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=$w(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=$w(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!x6(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n0}function $w(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:Pe(t)}}function Uw(r){return isNaN(r[0])||isNaN(r[1])}function Tp(r){return r&&!Uw(r[0])&&!Uw(r[1])}const d_=S6;var Cp=[],Ap=[],Mp=[],rs=Fe,Dp=no,Yw=Math.abs;function Zw(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){Cp[0]=rs(a[0],n[0],i[0],f),Cp[1]=rs(a[1],n[1],i[1],f);var c=Yw(Dp(Cp,t)-l);c=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Lp(r,t){var e=[],a=hu,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=[nn(u[0]),nn(u[1])],u[2]&&u.__original.push(nn(u[2])));var v=u.__original;if(u[2]!=null){if(ir(n[0],v[0]),ir(n[1],v[2]),ir(n[2],v[1]),f&&f!=="none"){var h=Kl(s.node1),d=Zw(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=Kl(s.node2),d=Zw(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]}ir(u[0],n[0]),ir(u[1],n[2]),ir(u[2],n[1])}else{if(ir(i[0],v[0]),ir(i[1],v[1]),Xi(o,i[1],i[0]),Hs(o,o),f&&f!=="none"){var h=Kl(s.node1);xg(i[0],i[0],o,h*t)}if(c&&c!=="none"){var h=Kl(s.node2);xg(i[1],i[1],o,-h*t)}ir(u[0],i[0]),ir(u[1],i[1])}})}var uk=It();function b6(r){if(r)return uk(r).bridge}function Xw(r,t){r&&(uk(r).bridge=t)}function qw(r){return r.type==="view"}var w6=function(r){B(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 tf,i=new d_,o=this.group,s=new ft;this._controller=new Oo(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(qw(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(c):Bt(this._mainGroup,c,e)}Lp(e.getGraph(),ql(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 x=S.dataIndex,b=S.getGraphicEl(),w=S.getModel();if(b){b.off("drag").off("dragend");var T=w.get("draggable");T&&b.on("drag",function(M){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(x),v.setItemLayout(x,[b.x,b.y]);break;case"circular":v.setItemLayout(x,[b.x,b.y]),S.setLayout({fixed:!0},!0),v_(e,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(e);break;case"none":default:v.setItemLayout(x,[b.x,b.y]),c_(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),b.setDraggable(T,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(mt(b).focus=S.getAdjacentDataIndices())}}),v.graph.eachEdge(function(S){var x=S.getGraphicEl(),b=S.getModel().get(["emphasis","focus"]);x&&b==="adjacency"&&(mt(x).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){ok(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(!qw(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&&(e_(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,a,n){this._active&&(r_(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),Lp(e.getGraph(),ql(e)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=ql(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(Lp(e.getGraph(),ql(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=b6(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 ft,l=n.group.children(),u=i.group.children(),f=new ft,c=new ft;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 Hi||(e=this._nodesMap[as(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}(),fk=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=at(),e=at();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 ck(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)}}}Ce(Hi,ck("hostGraph","data"));Ce(fk,ck("hostGraph","edgeData"));const A6=C6;function p_(r,t,e,a,n){for(var i=new A6(a),o=0;o "+v)),u++)}var h=e.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=xn(r,e);else{var p=qu.get(h),g=p?p.dimensions||[]:[];wt(g,"value")<0&&g.concat(["value"]);var y=ju(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new lr(y,e),d.initData(r)}var m=new lr(["value"],e);return m.initData(l,s),n&&n(d,m),UP({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var M6=function(r){B(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 al(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),po(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){l6(this);var s=p_(i,n,this,!0,l);return A(s.edges,function(u){u6(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=zt.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),we("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=v2({series:this,dataIndex:e,multipleSeries:a});return c},t.prototype._updateCategoriesData=function(){var e=Z(this.option.categories||[],function(n){return n.value!=null?n:$({value:0},n)}),a=new lr(["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:F.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:F.color.primary}}},t}(oe);const D6=M6;function L6(r){r.registerChartView(T6),r.registerSeriesModel(D6),r.registerProcessor(a6),r.registerVisual(n6),r.registerVisual(i6),r.registerLayout(f6),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,v6),r.registerLayout(d6),r.registerCoordinateSystem("graphView",{dimensions:No.dimensions,create:g6}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ye),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ye),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=kh(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var I6=function(r){B(t,r);function t(e,a,n){var i=r.call(this)||this;mt(i).dataType="node",i.z2=2;var o=new Nt;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=$(Ra(u.getModel("itemStyle"),c,!0),c),h=this;if(isNaN(v.startAngle)){h.setShape(v);return}i?h.setShape(v):Bt(h,{shape:v},l,a);var d=$(Ra(u.getModel("itemStyle"),c,!0),c);o.setShape(d),o.useStyle(e.getItemVisual(a,"style")),Ie(o,u),this._updateLabel(l,u,s),e.setItemGraphicEl(a,h),Ie(h,u,"itemStyle");var p=f.get("focus");ne(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=Pe(a),v=n.getVisual("style");Be(i,c,{labelFetcher:{getFormattedLabel:function(m,_,S,x,b,w){return e.getFormattedLabel(m,_,"node",x,Ar(b,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}(fr);const Kw=I6;var P6=function(r){B(t,r);function t(e,a,n,i){var o=r.call(this)||this;return mt(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=$(Ra(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),jw(g,l,e,v)):(Zr(g),jw(g,l,e,v),Bt(g,{shape:p},s,n)),ne(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),Ie(g,c,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g)},t}(Pt);function jw(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(J(l)&&J(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 Ys(c,v,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var k6=Math.PI/180,R6=function(r){B(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")*k6;if(i.diff(o).add(function(f){var c=i.getItemLayout(f);if(c){var v=new Kw(i,f,l);mt(v).dataIndex=f,s.add(v)}}).update(function(f,c){var v=o.getItemGraphicEl(c),h=i.getItemLayout(f);if(!h){v&&on(v,e,c);return}v?v.updateData(i,f,l):v=new Kw(i,f,l),s.add(v)}).remove(function(f){var c=o.getItemGraphicEl(f);c&&on(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()),re(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 P6(n,i,l,a);mt(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&&on(u,e,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type="chord",t}(Qt);const E6=R6;var O6=function(r){B(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 al(Q(this.getData,this),Q(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=p_(i,n,this,!0,s);return o.data}function s(l,u){var f=zt.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),we("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return we("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}(oe);const N6=O6;var Ip=Math.PI/180;function B6(r,t){r.eachSeriesByType("chord",function(e){z6(e,t)})}function z6(r,t){var e=r.getData(),a=e.graph,n=r.getEdgeData(),i=n.count();if(i){var o=LL(r,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=Math.max((r.get("padAngle")||0)*Ip,0),v=Math.max((r.get("minAngle")||0)*Ip,0),h=-r.get("startAngle")*Ip,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];fh(y,!p);var m=y[0],_=y[1],S=_-m,x=e.getSum("value")===0&&n.getSum("value")===0,b=[],w=0;a.eachEdge(function(E){var z=x?1:E.getValue("value");x&&(z>0||v)&&(w+=2);var V=E.node1.dataIndex,H=E.node2.dataIndex;b[V]=(b[V]||0)+z,b[H]=(b[H]||0)+z});var T=0;if(a.eachNode(function(E){var z=E.getValue("value");isNaN(z)||(b[E.dataIndex]=Math.max(z,b[E.dataIndex]||0)),!x&&(b[E.dataIndex]>0||v)&&w++,T+=b[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 z=b[E.dataIndex]||0,V=C*(T?z:1)*g;Math.abs(V)D){var P=M/D;a.eachNode(function(E){var z=E.getLayout().angle;Math.abs(z)>=v?E.setLayout({angle:z*P,ratio:P},!0):E.setLayout({angle:v,ratio:v===0?1:z/v},!0)})}else a.eachNode(function(E){if(!L){var z=E.getLayout().angle,V=Math.min(z/I,1),H=V*M;z-Hv&&v>0){var V=L?1:Math.min(z/I,1),H=z-v,G=Math.min(H,Math.min(R,M*V));R-=G,E.setLayout({angle:z-G,ratio:(z-G)/z},!0)}else v>0&&E.setLayout({angle:v,ratio:z===0?1:v/z},!0)}});var k=m,N=[];a.eachNode(function(E){var z=Math.max(E.getLayout().angle,v);E.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:k,endAngle:k+z*g,clockwise:p},!0),N[E.dataIndex]=k,k+=(z+c)*g}),a.eachEdge(function(E){var z=x?1:E.getValue("value"),V=C*(T?z:1)*g,H=E.node1.dataIndex,G=N[H]||0,Y=Math.abs((E.node1.getLayout().ratio||1)*V),X=G+Y*g,ot=[s+f*Math.cos(G),l+f*Math.sin(G)],St=[s+f*Math.cos(X),l+f*Math.sin(X)],Mt=E.node2.dataIndex,st=N[Mt]||0,et=Math.abs((E.node2.getLayout().ratio||1)*V),it=st+et*g,tt=[s+f*Math.cos(st),l+f*Math.sin(st)],O=[s+f*Math.cos(it),l+f*Math.sin(it)];E.setLayout({s1:ot,s2:St,sStartAngle:G,sEndAngle:X,t1:tt,t2:O,tStartAngle:st,tEndAngle:it,cx:s,cy:l,r:f,value:z,clockwise:p}),N[H]=X,N[Mt]=it})}}}function V6(r){r.registerChartView(E6),r.registerSeriesModel(N6),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,B6),r.registerProcessor(el("chord"))}var G6=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),F6=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new G6},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}(Pt);const H6=F6;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 ac(r,t){var e=r==null?"":r+"";return t&&(J(t)?e=t.replace("{value}",e):lt(t)&&(e=t(r))),e}var $6=function(r){B(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?Mv:fr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];fh(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;d&&x=C&&(M===0?0:i[M-1][0])Math.PI/2&&(X+=Math.PI)):Y==="tangential"?X=-T-Math.PI/2:Rt(Y)&&(X=Y*Math.PI/180),X===0?c.add(new Nt({style:Jt(_,{text:z,x:H,y:G,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:V}),silent:!0})):c.add(new Nt({style:Jt(_,{text:z,x:H,y:G,verticalAlign:"middle",align:"center"},{inheritColor:V}),silent:!0,originX:H,originY:G,rotation:X}))}if(m.get("show")&&k!==S){var N=m.get("distance");N=N?N+f:f;for(var ot=0;ot<=x;ot++){P=Math.cos(T),R=Math.sin(T);var St=new Le({shape:{x1:P*(d-N)+v,y1:R*(d-N)+h,x2:P*(d-w-N)+v,y2:R*(d-w-N)+h},silent:!0,style:I});I.stroke==="auto"&&St.setStyle({stroke:i((k+ot/x)/S)}),c.add(St),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"),x=+e.get("max"),b=[S,x],w=[s,l];function T(M,D){var I=m.getItemModel(M),L=I.getModel("pointer"),P=j(L.get("width"),o.r),R=j(L.get("length"),o.r),k=e.get(["pointer","icon"]),N=L.get("offsetCenter"),E=j(N[0],o.r),z=j(N[1],o.r),V=L.get("keepAspect"),H;return k?H=Te(k,E-P/2,z-R,P,R,null,V):H=new H6({shape:{angle:-Math.PI/2,width:P,r:R,x:E,y:z}}),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?Mv:fr,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),k=P?o.r-R:o.r-(M+1)*R,N=P?o.r:o.r-M*R,E=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:N}});return P&&(E.z2=$t(m.get(_,M),[S,x],[100,0],!0)),E}(y||p)&&(m.diff(v).add(function(M){var D=m.get(_,M);if(p){var I=T(M,s);re(I,{rotation:-((isNaN(+D)?w[0]:$t(D,b,w,!0))+Math.PI/2)},e),c.add(I),m.setItemGraphicEl(M,I)}if(y){var L=C(M,s),P=g.get("clip");re(L,{shape:{endAngle:$t(D,b,w,P)}},e),c.add(L),jg(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),P=L?L.rotation:s,R=T(M,P);R.rotation=P,Bt(R,{rotation:-((isNaN(+I)?w[0]:$t(I,b,w,!0))+Math.PI/2)},e),c.add(R),m.setItemGraphicEl(M,R)}if(y){var k=h[D],N=k?k.shape.endAngle:s,E=C(M,N),z=g.get("clip");Bt(E,{shape:{endAngle:$t(I,b,w,z)}},e),c.add(E),jg(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"),P=I.get("blurScope"),R=I.get("disabled");if(p){var k=m.getItemGraphicEl(M),N=m.getItemVisual(M,"style"),E=N.fill;if(k instanceof qe){var z=k.style;k.useStyle($({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},N))}else k.useStyle(N),k.type!=="pointer"&&k.setColor(E);k.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",i($t(m.get(_,M),b,[0,1],!0))),k.z2EmphasisLift=0,Ie(k,D),ne(k,L,P,R)}if(y){var V=d[M];V.useStyle(m.getItemVisual(M,"style")),V.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),V.z2EmphasisLift=0,Ie(V,D),ne(V,L,P,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=Te(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 ft,h=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Nt({silent:!0}),d[y]=new Nt({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 ft,x=i($t(_,[f,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.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:Jt(b,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),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),P=o.cy+j(I[1],o.r),R=j(D.get("width"),o.r),k=j(D.get("height"),o.r),N=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,M=d[y],E=D.get("formatter");M.attr({z2:g?0:2,style:Jt(D,{x:L,y:P,text:ac(_,E),width:isNaN(R)?null:R,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:N})}),lL(M,{normal:D},_,function(V){return ac(V,E)}),p&&uL(M,y,l,e,{getFormattedLabel:function(V,H,G,Y,X,ot){return ac(ot?ot.interpolatedValue:_,E)}}),S.add(M)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(Qt);const U6=$6;var Y6=function(r){B(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 rl(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,F.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:F.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:F.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:F.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:F.color.neutral00,borderWidth:0,borderColor:F.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:F.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:F.color.transparent,borderWidth:0,borderColor:F.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:F.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(oe);const Z6=Y6;function X6(r){r.registerChartView(U6),r.registerSeriesModel(Z6)}var q6=["itemStyle","opacity"],K6=function(r){B(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new ar,s=new Nt;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(q6);f=f??1,n||Zr(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,re(i,{style:{opacity:f}},o,a)):Bt(i,{style:{opacity:f},shape:{points:l.points}},o,a),Ie(i,s),this._updateLabel(e,a),ne(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;Be(o,Pe(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 vt(g[0][0],g[0][1]):null},Bt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),H0(n,W0(l),{stroke:v})},t}(cr),j6=function(r){B(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 K6(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);on(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}(Qt);const J6=j6;var Q6=function(r){B(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 al(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return rl(this,{coordDimensions:["value"],encodeDefaulter:bt(S0,this)})},t.prototype._defaultLabelLine=function(e){po(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:F.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:F.color.primary}}},t}(oe);const tY=Q6;function eY(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();oSY)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||!kp(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 kp(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const wY=xY;var TY=function(r){B(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&&Ct(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=Ut(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}(Et);const CY=TY;var AY=function(r){B(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}(ha);const MY=AY;function ni(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=ns(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=ns(s,[0,o]),n=i=ns(s,[n,i]),a=0}t[0]=ns(t[0],e),t[1]=ns(t[1],e);var l=Rp(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=ns(t[a],f);var c;return c=Rp(t,a),n!=null&&(c.sign!==l.sign||c.spani&&(t[1-a]=t[a]+c.sign*i),t}function Rp(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 ns(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Ep=A,hk=Math.min,dk=Math.max,tT=Math.floor,DY=Math.ceil,eT=Se,LY=Math.PI,IY=function(){function r(t,e,a){this.type="parallel",this._axesMap=at(),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;Ep(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new MY(o,Mh(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();Ep(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),Rs(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){var a=ke(t,e).refContainer;this._rect=ie(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=nc(t.get("axisExpandWidth"),l),c=nc(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=nc(h[1]-h[0],l),h[1]=h[0]+d;else{d=nc(f*(c-1),l);var p=t.get("axisExpandCenter")||tT(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[tT(eT(h[0]/f,1))+1,DY(eT(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])}),Ep(a,function(o,s){var l=(n.axisExpandable?kY:PY)(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=He();li(h,h,v),Va(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?ni(l,n,o,"all"):u="none";else{var h=n[1]-n[0],d=o[1]*s/h;n=[dk(0,d-h/2)],n[1]=hk(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function nc(r,t){return hk(dk(r,t[0]),t[1])}function PY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function kY(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--)$r(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;iVY}function xk(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function bk(r,t,e,a){var n=new ft;return n.add(new Lt({name:"main",style:__(e),silent:!0,draggable:!0,cursor:"move",drift:bt(iT,r,t,n,["n","s","w","e"]),ondragend:bt(wo,t,{isEnd:!0})})),A(a,function(i){n.add(new Lt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:bt(iT,r,t,n,i),ondragend:bt(wo,t,{isEnd:!0})}))}),n}function wk(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=zs(n,GY),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;ja(r,t,"main",o,s,d,p),a.transformable&&(ja(r,t,"w",l,u,i,y),ja(r,t,"e",v,u,i,y),ja(r,t,"n",l,u,g,i),ja(r,t,"s",l,h,g,i),ja(r,t,"nw",l,u,i,i),ja(r,t,"ne",v,u,i,i),ja(r,t,"sw",l,h,i,i),ja(r,t,"se",v,h,i,i))}function rm(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(__(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?am(r,i[0]):ZY(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?HY[s]+"-resize":null})})}function ja(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(qY(S_(r,t,[[a,n],[a+i,n+o]])))}function __(r){return ht({strokeNoScale:!0},r.brushStyle)}function Tk(r,t,e,a){var n=[Vu(r,e),Vu(t,a)],i=[zs(r,e),zs(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function YY(r){return uo(r.group)}function am(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=yh(e[t],YY(r));return a[n]}function ZY(r,t){var e=[am(r,t[0]),am(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function iT(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=Ck(t,n,i);A(a,function(u){var f=FY[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Tk(s[0][0],s[1][0],s[0][1],s[1][1])),g_(t,e),wo(t,{isEnd:!1})}function XY(r,t,e,a){var n=t.__brushOption.range,i=Ck(r,e,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),g_(r,t),wo(r,{isEnd:!1})}function Ck(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=Sk(r,t);return a&&a!==bo?a.clipPath(e,r._transform):ut(e)}function qY(r){var t=Vu(r[0][0],r[1][0]),e=Vu(r[0][1],r[1][1]),a=zs(r[0][0],r[1][0]),n=zs(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function KY(r,t,e){if(!(!r._brushType||JY(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=m_(r,t,e);if(!r._dragging)for(var o=0;oa.getWidth()||e<0||e>a.getHeight()}var Nh={lineX:lT(0),lineY:lT(1),rect:{createCover:function(r,t){function e(a){return a}return bk({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=xk(r);return Tk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){wk(r,t,e,a)},updateCommon:rm,contain:im},polygon:{createCover:function(r,t){var e=new ft;return e.add(new ar({name:"main",style:__(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new cr({name:"main",draggable:!0,drift:bt(XY,r,t),ondragend:bt(wo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:S_(r,t,e)})},updateCommon:rm,contain:im}};function lT(r){return{createCover:function(t,e){return bk({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=xk(t),a=Vu(e[0][r],e[1][r]),n=zs(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=Sk(t,e);if(o!==bo&&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(),wk(t,e,l,n)},updateCommon:rm,contain:im}}const x_=$Y;function Mk(r){return r=b_(r),function(t){return aL(t,r)}}function Dk(r,t){return r=b_(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 Lk(r,t,e){var a=b_(r);return function(n,i){return a.contain(i[0],i[1])&&!kP(n,t,e)}}function b_(r){return gt.create(r)}var QY=function(r){B(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 x_(a.getZr())).on("brush",Q(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!t7(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ft,this.group.add(this._axisGroup),!!e.get("show")){var s=r7(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 gn(e,n,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,e,s,f,n),Uu(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=gt.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:Mk(c),isTargetByCursor:Lk(c,s,i),getLinearBrushOtherExtent:Dk(c,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(e7(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=Z(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}(le);function t7(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function e7(r){var t=r.axis;return Z(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function r7(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const a7=QY;var n7={type:"axisAreaSelect",event:"axisAreaSelected"};function i7(r){r.registerAction(n7,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 o7={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ik(r){r.registerComponentView(wY),r.registerComponentModel(CY),r.registerCoordinateSystem("parallel",NY),r.registerPreprocessor(yY),r.registerComponentModel(rT),r.registerComponentView(a7),Ns(r,"parallel",rT,o7),i7(r)}function s7(r){At(Ik),r.registerChartView(uY),r.registerSeriesModel(hY),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,gY)}var l7=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}(),u7=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new l7},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(){hn(this)},t.prototype.downplay=function(){dn(this)},t}(Pt),f7=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new ft,e._focusAdjacencyDisabled=!1,e}return t.prototype.init=function(e,a){this._controller=new Oo(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),RP(e,n,s,this._controller,this._controllerHost,null),o.eachEdge(function(d){var p=new u7,g=mt(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(),x=d.node1.getModel(),b=x.get("localX"),w=x.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),M=C.get("localX"),D=C.get("localY"),I=d.getLayout(),L,P,R,k,N,E,z,V;p.shape.extent=Math.max(1,I.dy),p.shape.orient=h,h==="vertical"?(L=(b!=null?b*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,R=(M!=null?M*u:T.x)+I.ty,k=D!=null?D*f:T.y,N=L,E=P*(1-_)+k*_,z=R,V=P*_+k*(1-_)):(L=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,R=M!=null?M*u:T.x,k=(D!=null?D*f:T.y)+I.ty,N=L*(1-_)+R*_,E=P,z=L*_+R*(1-_),V=k),p.setShape({x1:L,y1:P,x2:R,y2:k,cpx1:N,cpy1:E,cpx2:z,cpy2:V}),p.useStyle(m.getItemStyle()),uT(p.style,h,d);var H=""+y.get("value"),G=Pe(y,"edgeLabel");Be(p,G,{labelFetcher:{getFormattedLabel:function(ot,St,Mt,st,et,it){return e.getFormattedLabel(ot,St,"edge",st,Ar(et,G.normal&&G.normal.get("formatter"),H),it)}},labelDataIndex:d.dataIndex,defaultText:H}),p.setTextConfig({position:"inside"});var Y=y.getModel("emphasis");Ie(p,y,"lineStyle",function(ot){var St=ot.getItemStyle();return uT(St,h,d),St}),s.add(p),v.setItemGraphicEl(d.dataIndex,p);var X=Y.get("focus");ne(p,X==="adjacency"?d.getAdjacentDataIndices():X==="trajectory"?d.getTrajectoryDataIndices():X,Y.get("blurScope"),Y.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,x=new Lt({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});Be(x,Pe(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),x.disableLabelAnimation=!0,x.setStyle("fill",d.getVisual("color")),x.setStyle("decal",d.getVisual("style").decal),Ie(x,g),s.add(x),c.setItemGraphicEl(d.dataIndex,x),mt(x).dataType="node";var b=_.get("focus");ne(x,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,_.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(c7(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 No(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}(Qt);function uT(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");J(a)&&J(n)&&(r.fill=new Ys(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function c7(r,t,e){var a=new Lt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return re(a,{shape:{width:r.width+20}},t,e),a}const v7=f7;var h7=function(r){B(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 zt(o[l],this,a));var u=p_(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 we("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 we("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:F.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:F.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(oe);const d7=h7;function p7(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=ke(e,t).refContainer,o=ie(e.getBoxLayoutParams(),i);e.layoutInfo=o;var s=o.width,l=o.height,u=e.getGraph(),f=u.nodes,c=u.edges;y7(f);var v=Ut(f,function(g){return g.getLayout().value===0}),h=v.length!==0?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");g7(f,c,a,n,s,l,h,d,p)})}function g7(r,t,e,a,n,i,o,s,l){m7(r,t,e,n,i,s,l),b7(r,t,i,n,a,o,s),P7(r,s)}function y7(r){A(r,function(t){var e=Jn(t.outEdges,Ov),a=Jn(t.inEdges,Ov),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function m7(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"&&_7(r,o,i,w);var T=i==="vertical"?(n-e)/w:(a-e)/w;x7(r,T,i)}function Pk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function _7(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,C7(s,l,o),Op(s,n,e,a,o),I7(s,l,o),Op(s,n,e,a,o)}function w7(r,t){var e=[],a=t==="vertical"?"y":"x",n=Yg(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 T7(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 C7(r,t,e){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=Jn(n.outEdges,A7,e)/Jn(n.outEdges,Ov);if(isNaN(i)){var o=n.outEdges.length;i=o?Jn(n.outEdges,M7,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-ii(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-ii(n,e))*t;n.setLayout({y:l},!0)}}})})}function A7(r,t){return ii(r.node2,t)*r.getValue()}function M7(r,t){return ii(r.node2,t)}function D7(r,t){return ii(r.node1,t)*r.getValue()}function L7(r,t){return ii(r.node1,t)}function ii(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Ov(r){return r.getValue()}function Jn(r,t,e){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),A(a,function(s){var l=new Xe({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 R7(r){r.registerChartView(v7),r.registerSeriesModel(d7),r.registerLayout(p7),r.registerVisual(k7),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=kh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}var kk=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,x){var b;U(S)?(b=S.slice(),S.unshift(x)):U(S.value)?(b=$({},S),b.value=b.value.slice(),S.value.unshift(x)):b=S,y.push(b)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:yv(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:yv(p),dimsDef:m.slice()}];return rl(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:bt(BL,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),Rk=function(r){B(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:F.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:F.color.shadow}},animationDuration:800},t}(oe);Ce(Rk,kk,!0);const E7=Rk;var O7=function(r){B(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=fT(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?(Zr(c),Ek(v,c,i,u)):c=fT(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}(Qt),N7=function(){function r(){}return r}(),B7=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new N7},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 U7={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==We){var a="";Ht(a)}var n=$7(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function Y7(r){r.registerSeriesModel(E7),r.registerChartView(V7),r.registerLayout(G7),r.registerTransform(U7)}var Z7=["itemStyle","borderColor"],X7=["itemStyle","borderColor0"],q7=["itemStyle","borderColorDoji"],K7=["itemStyle","color"],j7=["itemStyle","color0"];function w_(r,t){return t.get(r>0?K7:j7)}function T_(r,t){return t.get(r===0?q7:r>0?Z7:X7)}var J7={seriesType:"candlestick",plan:js(),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=w_(s,o),l.stroke=T_(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");$(u,l)}}}}}};const Q7=J7;var t9=["color","borderColor"],e9=function(r){B(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){fi(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&&cT(u,c))return;var v=Np(c,f,!0);re(v,{shape:{points:c.ends}},e,f),Bp(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&&cT(u,h)){i.remove(v);return}v?(Bt(v,{shape:{points:h.ends}},e,f),Zr(v)):v=Np(h),Bp(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(),vT(e,this.group);var a=e.get("clip",!0)?ef(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=Np(s);Bp(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){vT(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}(Qt),r9=function(){function r(){}return r}(),a9=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new r9},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}(Pt);function Np(r,t,e){var a=r.ends;return new a9({shape:{points:e?n9(a,r):a},z2:100})}function cT(r,t){for(var e=!0,a=0;ax?D[i]:M[i],ends:P,brushRect:z(b,w,_)})}function N(H,G){var Y=[];return Y[n]=G,Y[i]=H,isNaN(G)||isNaN(H)?[NaN,NaN]:t.dataToPoint(Y)}function E(H,G,Y){var X=G.slice(),ot=G.slice();X[n]=Pc(X[n]+a/2,1,!1),ot[n]=Pc(ot[n]-a/2,1,!0),Y?H.push(X,ot):H.push(ot,X)}function z(H,G,Y){var X=N(H,Y),ot=N(G,Y);return X[n]-=a/2,ot[n]-=a/2,{x:X[0],y:X[1],width:a,height:ot[1]-X[1]}}function V(H){return H[n]=Pc(H[n],1),H}}function d(p,g){for(var y=Pa(p.count*4),m=0,_,S=[],x=[],b,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var C=w.get(s,b),M=w.get(u,b),D=w.get(f,b),I=w.get(c,b),L=w.get(v,b);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=hT(w,b,M,D,f,T),S[n]=C,S[i]=I,_=t.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function hT(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 f9(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 c9=u9;function v9(r){r.registerChartView(o9),r.registerSeriesModel(s9),r.registerPreprocessor(l9),r.registerVisual(Q7),r.registerLayout(c9)}function dT(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 h9=function(r){B(t,r);function t(e,a){var n=r.call(this)||this,i=new Qu(e,a),o=new ft;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;lt(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 Bn(e.__p1,e.__cp1)+Bn(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=Fe,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}(Nk);const w9=b9;var T9=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),C9=function(r){B(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:F.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new T9},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(gD(c,v,g,y,d,p,s,e,a))return l}else if(On(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 M9=A9;var D9={seriesType:"lines",plan:js(),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)&&ef(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=zk.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 M9:new d_(o?i?w9:Bk:i?Nk:h_),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}(Qt);const I9=L9;var P9=typeof Uint32Array>"u"?Array:Uint32Array,k9=typeof Float64Array>"u"?Array:Float64Array;function pT(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Z(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),Em([n,e[0],e[1]])}))}var R9=function(r){B(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||[],pT(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(pT(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=vu(this._flatCoords,a.flatCoords),this._flatCoordsOffset=vu(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}(oe);const E9=R9;function ic(r){return r instanceof Array||(r=[r,r]),r}var O9={seriesType:"lines",reset:function(r){var t=ic(r.get("symbol")),e=ic(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=ic(s.getShallow("symbol",!0)),u=ic(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 N9=O9;function B9(r){r.registerChartView(I9),r.registerSeriesModel(E9),r.registerLayout(zk),r.registerVisual(N9)}var z9=256,V9=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=sa.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),x[b++]=I[D],x[b++]=I[D+1],x[b++]=I[D+2],x[b++]=I[D+3]*_*256}else b+=4}return v.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=sa.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=F.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 G9=V9;function F9(r,t,e){var a=r[1]-r[0];t=Z(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 gT(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var W9=function(r){B(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()):gT(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&&(gT(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){fi(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=ai(s,"cartesian2d"),u=ai(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(),x=e.get(["itemStyle","borderRadius"]),b=Pe(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]||kh[1])continue;var N=s.dataToPoint([R,k]);L=new Lt({shape:{x:N[0]-f/2,y:N[1]-c/2,width:f,height:c},style:P})}else if(u){var E=s.dataToLayout([y.get(D[0],I),y.get(D[1],I)]).rect;if(tr(E.x))continue;L=new Lt({z2:1,shape:E,style:P})}else{if(isNaN(y.get(D[1],I)))continue;var z=s.dataToLayout([y.get(D[0],I)]),E=z.contentRect||z.rect;if(tr(E.x)||tr(E.y))continue;L=new Lt({z2:1,shape:E,style:P})}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(),x=V.get(["itemStyle","borderRadius"]),T=H.get("focus"),C=H.get("blurScope"),M=H.get("disabled"),b=Pe(V)}L.shape.r=x;var G=e.getRawValue(I),Y="-";G&&G[2]!=null&&(Y=G[2]+""),Be(L,b,{labelFetcher:e,labelDataIndex:I,defaultOpacity:P.opacity,defaultText:Y}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,ne(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 G9;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(),x=n.type==="visualMap.continuous"?H9(S,n.option.range):F9(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new qe({style:{width:g,height:y,x:v,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Qt);const $9=W9;var U9=function(r){B(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 xn(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=qu.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:F.color.primary}}},t}(oe);const Y9=U9;function Z9(r){r.registerChartView($9),r.registerSeriesModel(Y9)}var X9=["itemStyle","borderWidth"],yT=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Gp=new ui,q9=function(r){B(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:yT[+f],categoryDim:yT[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=_T(o,d),g=mT(o,d,p,v),y=ST(o,v,g);o.setItemGraphicEl(d,y),i.add(y),bT(y,v,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=_T(o,d),m=mT(o,d,y,v),_=$k(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?rZ(g,v,m):g=ST(o,v,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),bT(g,v,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&xT(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=e.get("clip",!0)?ef(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){xT(i,mt(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(Qt);function mT(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};K9(e,i,n,a,v),j9(r,t,n,i,o,v.boundingLength,v.pxSign,f,a,v),J9(e,v.symbolScale,u,a,v);var h=v.symbolSize,d=Po(e.get("symbolOffset"),h);return Q9(e,h,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function K9(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=[Fp(s,o[0])-l,Fp(s,o[1])-l];c[1]=0?1:-1:f>0?1:-1}function Fp(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function j9(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 J9(r,t,e,a,n){var i=r.get(X9)||0;i&&(Gp.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Gp.updateTransform(),i/=Gp.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function Q9(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=Ze(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]),x=Math.max(p+S*2,0),b=_?0:S*2,w=tD(a),T=w?a:wT((y+b)/x),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),x=p+S*2,b=_?0:S*2,!w&&a!=="fixed"&&(T=u?wT((Math.abs(u)+b)/x):0),g=T*x-b,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 P=c.clipShape={};P[v.xy]=-e[v.xy],P[v.wh]=f.ecSize[v.wh],P[h.xy]=0,P[h.wh]=e[h.wh]}function Vk(r){var t=r.symbolPatternSize,e=Te(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Gk(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(C_(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 Fk(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?As(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=Vk(e),n.add(i),As(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 Hk(r,t,e){var a=$({},t.barRectShape),n=r.__pictorialBarRect;n?As(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new Lt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Wk(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)Bt(n,{shape:i},s,l);else{i[o.wh]=0,n=new Lt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],Mo[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function _T(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=tZ,e.isAnimationEnabled=eZ,e}function tZ(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function eZ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function ST(r,t,e,a){var n=new ft,i=new ft;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Gk(n,t,e):Fk(n,t,e),Hk(n,e,a),Wk(n,t,e,a),n.__pictorialShapeStr=$k(r,e),n.__pictorialSymbolMeta=e,n}function rZ(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;Bt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?Gk(r,t,e,!0):Fk(r,t,e,!0),Hk(r,e,!0),Wk(r,t,e,!0)}function xT(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];C_(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),A(i,function(o){ti(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function $k(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function C_(r,t,e){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function As(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&Mo[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function bT(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");C_(r,function(p){if(p instanceof qe){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,Be(d,Pe(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:Os(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),ne(r,f,c,i.get("disabled"))}function wT(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const aZ=q9;var nZ=function(r){B(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=ci(Av.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:F.color.primary}}}),t}(Av);const iZ=nZ;function oZ(r){r.registerChartView(aZ),r.registerSeriesModel(iZ),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(iI,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oI("pictorialBar"))}var sZ=function(r){B(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 pn(this._layersSeries||[],l,v,v),d=[];h.add(Q(p,this,"add")).update(Q(p,this,"update")).remove(Q(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,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 dZ(r){r.registerChartView(uZ),r.registerSeriesModel(cZ),r.registerLayout(vZ),r.registerProcessor(el("themeRiver"))}var pZ=2,gZ=4,yZ=function(r){B(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=pZ,o.textConfig={inside:!0},mt(o).seriesIndex=a.seriesIndex;var s=new Nt({z2:gZ,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;mt(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=ks(h,o));var d=Ra(l.getModel("itemStyle"),c,!0);$(c,d),A(ur,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Ra(S,c);x&&(_.shape=x)}),e?(s.setShape(c),s.shape.r=f.r0,re(s,{shape:{r:f.r}},n,a.dataIndex)):(Bt(s,{shape:c},n),Zr(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"?vu(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;ne(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)P&&!gu(k-P)&&k0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,n):(o.virtualPiece=new CT(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";uv(u,f)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:om,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}(Qt);const xZ=SZ;var bZ=function(r){B(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};Uk(n);var i=this._levelModels=Z(e.levels||[],function(l){return new zt(l,this,a)},this),o=o_.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=Eh(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(){XP(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}(oe);function Uk(r){var t=0;A(r.children,function(a){Uk(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 wZ=bZ;var MT=Math.PI/180;function TZ(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")*MT,d=a.get("minAngle")*MT,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&Yk(g,m);var _=0;A(g.children,function(k){!isNaN(k.getValue())&&_++});var S=g.getValue(),x=Math.PI/(S||_)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(v-c)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,I=function(k,N){if(k){var E=N;if(k!==p){var z=k.getValue(),V=S===0&&M?x:z*x;V1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&J(s)&&(s=Eg(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 MZ(r){r.registerChartView(xZ),r.registerSeriesModel(wZ),r.registerLayout(bt(TZ,"sunburst")),r.registerProcessor(bt(el,"sunburst")),r.registerVisual(AZ),_Z(r)}var DT={color:"fill",borderColor:"stroke"},DZ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},sn=It(),LZ=function(r){B(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 xn(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=sn(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}(oe);const IZ=LZ;function PZ(r,t){return t=t||[0,0],Z(["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 kZ(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:Q(PZ,r)}}}function RZ(r,t){return t=t||[0,0],Z([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 EZ(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:Q(RZ,r)}}}function OZ(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 NZ(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:Q(OZ,r)}}}function BZ(r,t){return t=t||[0,0],Z(["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 zZ(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:Q(BZ,r)}}}function VZ(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 GZ(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 Zk(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||rt(r,"text")))}function Xk(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},rt(a,"text")&&(o.text=a.text),rt(a,"rich")&&(o.rich=a.rich),rt(a,"textFill")&&(o.fill=a.textFill),rt(a,"textStroke")&&(o.stroke=a.textStroke),rt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),rt(a,"fontSize")&&(o.fontSize=a.fontSize),rt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),rt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=rt(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),rt(a,"textPosition")&&(n.position=a.textPosition),rt(a,"textOffset")&&(n.offset=a.textOffset),rt(a,"textRotation")&&(n.rotation=a.textRotation),rt(a,"textDistance")&&(n.distance=a.textDistance)}return LT(o,r),A(o.rich,function(l){LT(l,l)}),{textConfig:n,textContent:i}}function LT(r,t){t&&(t.font=t.textFont||t.font,rt(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),rt(t,"textAlign")&&(r.align=t.textAlign),rt(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),rt(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),rt(t,"textWidth")&&(r.width=t.textWidth),rt(t,"textHeight")&&(r.height=t.textHeight),rt(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),rt(t,"textPadding")&&(r.padding=t.textPadding),rt(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),rt(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),rt(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),rt(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),rt(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),rt(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),rt(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function IT(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||F.color.neutral99;PT(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||F.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||F.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&&(rt(t,"fill")&&(r.textFill=t.fill),rt(t,"stroke")&&(r.textStroke=t.fill),rt(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),rt(t,"font")&&(r.font=t.font),rt(t,"fontStyle")&&(r.fontStyle=t.fontStyle),rt(t,"fontWeight")&&(r.fontWeight=t.fontWeight),rt(t,"fontSize")&&(r.fontSize=t.fontSize),rt(t,"fontFamily")&&(r.fontFamily=t.fontFamily),rt(t,"align")&&(r.textAlign=t.align),rt(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),rt(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),rt(t,"width")&&(r.textWidth=t.width),rt(t,"height")&&(r.textHeight=t.height),rt(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),rt(t,"padding")&&(r.textPadding=t.padding),rt(t,"borderColor")&&(r.textBorderColor=t.borderColor),rt(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),rt(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),rt(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),rt(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),rt(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),rt(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),rt(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),rt(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),rt(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),rt(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var qk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},kT=kt(qk);za(Ga,function(r,t){return r[t]=1,r},{});Ga.join(", ");var Nv=["","style","shape","extra"],Vs=It();function A_(r,t,e,a,n){var i=r+"Animation",o=Zs(r,a,n)||{},s=Vs(t).userDuring;return o.duration>0&&(o.during=s?Q(UZ,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),$(o,e[i]),o}function Vc(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=Vs(r),u=t.style;l.userDuring=t.during;var f={},c={};if(ZZ(r,t,c),r.type==="compound")for(var v=r.shape.paths,h=t.shape.paths,d=0;d0&&r.animateFrom(g,y)}else HZ(r,t,n||0,e,f);Kk(r,t),u?r.dirty():r.markRedraw()}function Kk(r,t){for(var e=Vs(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function WZ(r,t){rt(t,"silent")&&(r.silent=t.silent),rt(t,"ignore")&&(r.ignore=t.ignore),r instanceof Yr&&rt(t,"invisible")&&(r.invisible=t.invisible),r instanceof Pt&&rt(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var ba={},$Z={setTransform:function(r,t){return ba.el[r]=t,this},getTransform:function(r){return ba.el[r]},setShape:function(r,t){var e=ba.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=ba.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=ba.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=ba.el.style;if(t)return t[r]},setExtra:function(r,t){var e=ba.el.extra||(ba.el.extra={});return e[r]=t,this},getExtra:function(r){var t=ba.el.extra;if(t)return t[r]}};function UZ(){var r=this,t=r.el;if(t){var e=Vs(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}ba.el=t,a($Z)}}function RT(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]={}),ho(l))$(o,i);else for(var u=Kt(l),f=0;f=0){!o&&(o=a[r]={});for(var h=kt(i),f=0;f=0)){var v=r.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=a.style={});for(var d=kt(e),u=0;u=0?t.getStore().get(E,k):void 0}var z=t.get(N.name,k),V=N&&N.ordinalMeta;return V?V.categories[z]:z}function w(R,k){k==null&&(k=f);var N=t.getItemVisual(k,"style"),E=N&&N.fill,z=N&&N.opacity,V=_(k,$n).getItemStyle();E!=null&&(V.fill=E),z!=null&&(V.opacity=z);var H={inheritColor:J(E)?E:F.color.neutral99},G=S(k,$n),Y=Jt(G,null,H,!1,!0);Y.text=G.getShallow("show")?nt(r.getFormattedLabel(k,$n),Os(t,k)):null;var X=sv(G,H,!1);return M(R,V),V=IT(V,Y,X),R&&C(V,R),V.legacy=!0,V}function T(R,k){k==null&&(k=f);var N=_(k,ln).getItemStyle(),E=S(k,ln),z=Jt(E,null,null,!0,!0);z.text=E.getShallow("show")?Ar(r.getFormattedLabel(k,ln),r.getFormattedLabel(k,$n),Os(t,k)):null;var V=sv(E,null,!0);return M(R,N),N=IT(N,z,V),R&&C(N,R),N.legacy=!0,N}function C(R,k){for(var N in k)rt(k,N)&&(R[N]=k[N])}function M(R,k){R&&(R.textFill&&(k.textFill=R.textFill),R.textPosition&&(k.textPosition=R.textPosition))}function D(R,k){if(k==null&&(k=f),rt(DT,R)){var N=t.getItemVisual(k,"style");return N?N[DT[R]]:null}if(rt(DZ,R))return t.getItemVisual(k,R)}function I(R){if(o.type==="cartesian2d"){var k=o.getBaseAxis();return b3(ht({axis:k},R))}}function L(){return e.getCurrentSeriesIndices()}function P(R){return l0(R,e)}}function iX(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 Yp(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&&ne(s,a.focus,a.blurScope,a.emphasisDisabled),s}function P_(r,t,e,a,n,i){var o=-1,s=t;t&&tR(t,a,n)&&(o=wt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=L_(a),s&&tX(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Rr.normal.cfg=Rr.normal.conOpt=Rr.emphasis.cfg=Rr.emphasis.conOpt=Rr.blur.cfg=Rr.blur.conOpt=Rr.select.cfg=Rr.select.conOpt=null,Rr.isLegacy=!1,sX(u,e,a,n,l,Rr),oX(u,e,a,n,l),I_(r,u,e,a,Rr,n,l),rt(a,"info")&&(sn(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function tR(r,t,e){var a=sn(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&vX(i)&&eR(i)!==a.customPathData||n==="image"&&rt(o,"image")&&o.image!==a.customImagePath}function oX(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&&tR(o,i,a)&&(o=null),o||(o=L_(i),r.setClipPath(o)),I_(null,o,t,i,null,a,n)}}function sX(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){OT(e,null,i),OT(e,ln,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=L_(o),r.setTextContent(f)),I_(null,f,t,o,null,a,n);for(var c=o&&o.style,v=0;v=f;h--){var d=t.childAt(h);uX(t,d,n)}}}function uX(r,t,e){t&&Bh(t,sn(r).option,e)}function fX(r){new pn(r.oldChildren,r.newChildren,NT,NT,r).add(BT).update(BT).remove(cX).execute()}function NT(r,t){var e=r&&r.name;return e??JZ+t}function BT(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 cX(r){var t=this.context,e=t.oldChildren[r];e&&Bh(e,sn(e).option,t.seriesModel)}function eR(r){return r&&(r.pathData||r.d)}function vX(r){return r&&(rt(r,"pathData")||rt(r,"d"))}function hX(r){r.registerChartView(rX),r.registerSeriesModel(IZ)}var Yi=It(),zT=ut,Zp=Q,dX=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 ft,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var v=bt(VT,e,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}FT(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=Q0(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=Yi(t).pointerEl=new Mo[i.type](zT(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Yi(t).labelEl=new Nt(zT(e.label));t.add(i),GT(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Yi(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=Yi(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),GT(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=Yu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){cn(u.event)},onmousedown:Zp(this._onHandleDragMove,this,0,0),drift:Zp(this._onHandleDragMove,this),ondragend:Zp(this._onHandleDragEnd,this)}),a.add(n)),FT(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,Js(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){VT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Xp(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(Xp(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Xp(n)),Yi(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),Cu(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 VT(r,t,e,a){rR(Yi(e).lastProp,a)||(Yi(e).lastProp=a,t?Bt(e,a,r):(e.stopAnimation(),e.attr(a)))}function rR(r,t){if(dt(r)&&dt(t)){var e=!0;return A(t,function(a,n){e=e&&rR(r[n],a)}),!!e}else return r===t}function GT(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Xp(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function FT(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 R_=dX;function E_(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 aR(r,t,e,a,n){var i=e.get("value"),o=nR(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Zu(s.get("padding")||0),u=s.getFont(),f=ih(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),pX(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:Jt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function pX(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 nR(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:mv(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)}),J(o)?i=o.replace("{value}",i):lt(o)&&(i=o(s))}return i}function O_(r,t,e){var a=He();return li(a,a,e.rotation),Va(a,a,e.position),ia([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function iR(r,t,e,a,n,i){var o=gn.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),aR(t,a,n,i,{position:O_(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function N_(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function oR(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function HT(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var gX=function(r){B(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=WT(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=E_(i),h=yX[u](s,c,f);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=Lv(l.getRect(),n);iR(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Lv(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=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=WT(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}(R_);function WT(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var yX={line:function(r,t,e){var a=N_([t,e[0]],[t,e[1]],$T(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:oR([t-a/2,e[0]],[a,n],$T(r))}}};function $T(r){return r.dim==="x"?0:1}const mX=gX;var _X=function(r){B(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:F.color.border,width:1,type:"dashed"},shadowStyle:{color:F.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:F.color.neutral00,padding:[5,7,5,7],backgroundColor:F.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:F.color.accent40,throttle:40}},t}(Et);const SX=_X;var an=It(),xX=A;function sR(r,t,e){if(!Vt.node){var a=t.getZr();an(a).records||(an(a).records={}),bX(a,t);var n=an(a).records[r]||(an(a).records[r]={});n.handler=e}}function bX(r,t){if(an(r).initialized)return;an(r).initialized=!0,e("click",bt(UT,"click")),e("mousemove",bt(UT,"mousemove")),e("globalout",TX);function e(a,n){r.on(a,function(i){var o=CX(t);xX(an(r).records,function(s){s&&n(s,i,o.dispatchAction)}),wX(o.pendings,t)})}}function wX(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 TX(r,t,e){r.handler("leave",null,e)}function UT(r,t,e,a){t.handler(r,e,a)}function CX(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 um(r,t){if(!Vt.node){var e=t.getZr(),a=(an(e).records||{})[r];a&&(an(e).records[r]=null)}}var AX=function(r){B(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";sR("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){um("axisPointer",a)},t.prototype.dispose=function(e,a){um("axisPointer",a)},t.type="axisPointer",t}(le);const MX=AX;function lR(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=go(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(Z(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 YT=It();function DX(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Q(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Gc(n)&&(n=lR({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Gc(n),u=i.axesInfo,f=s.axesInfo,c=a==="leave"||Gc(n),v={},h={},d={list:[],map:{}},p={showPointer:bt(IX,h),showTooltip:bt(PX,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=OX(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=b.pointToData(n)),T!=null&&ZT(S,T,p,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&A(_.axesInfo,function(S,x){var b=h[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,XT(S),XT(y)))),g[y.key]=w}})}),A(g,function(y,m){ZT(f[m],y,p,!0,v)}),kX(h,f,v),RX(d,n,r,o),EX(f,o,e),v}}function ZT(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 IX(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function PX(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=Eu(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 kX(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 RX(r,t,e,a){if(Gc(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 EX(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=YT(a)[n]||{},o=YT(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 OX(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 XT(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 Gc(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function nf(r){Eo.registerAxisPointerClass("CartesianAxisPointer",mX),r.registerComponentModel(SX),r.registerComponentView(MX),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=f$(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},DX)}function NX(r){At(IP),At(nf)}var BX=function(r){B(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=E_(i),d=VX[v](s,l,c,f);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=zX(a,n,i,l,p);aR(e,n,i,o,g)},t}(R_);function zX(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=He();li(v,v,s),Va(v,v,[a.cx,a.cy]),u=ia([o,-n],v);var h=t.getModel("axisLabel").get("rotate")||0,d=gn.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 VX={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:N_(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:HT(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:HT(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const GX=BX;var FX=function(r){B(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}(Et);const HX=FX;var B_=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ce).models[0]},t.type="polarAxis",t}(Et);Ce(B_,Ju);var WX=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(B_),$X=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(B_),z_=function(r){B(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}(ha);z_.prototype.dataToRadius=ha.prototype.dataToCoord;z_.prototype.radiusToData=ha.prototype.coordToData;const UX=z_;var YX=It(),V_=function(r){B(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=ih(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=YX(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}(ha);V_.prototype.dataToAngle=ha.prototype.dataToCoord;V_.prototype.angleToData=ha.prototype.coordToData;const ZX=V_;var uR=["radius","angle"],XX=function(){function r(t){this.dimensions=uR,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new UX,this._angleAxis=new ZX,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=qT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=qT(e);return n===this?this.pointToData(a):null},r}();function qT(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const qX=XX;function KX(r,t,e){var a=t.get("center"),n=ke(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 jX(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(_v(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(_v(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Rs(a.scale,a.model),Rs(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 JX(r){return r.mainType==="angleAxis"}function KT(r,t){var e;if(r.type=t.get("type"),r.scale=Mh(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),JX(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 QX={dimensions:uR,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new qX(n+"");i.update=jX;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");KT(o,l),KT(s,u),KX(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",ce).models[0];a.coordinateSystem=n.coordinateSystem}}),e}};const tq=QX;var eq=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function oc(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 sc(r){var t=r.getRadiusAxis();return t.inverse?0:1}function jT(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 rq=function(r){B(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=Z(n.getViewLabels(),function(f){f=ut(f);var c=n.scale,v=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});jT(u),jT(s),A(eq,function(f){e.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&aq[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Eo),aq={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=sc(e),c=f?0:1,v,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?v=new Mo[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 dh({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[sc(e)],u=Z(a,function(f){return new Le({shape:oc(e,[l,l+s],f.coord)})});r.add(Fr(u,{style:ht(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[sc(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 x=s[d];dt(x)&&x.textStyle&&(h=new zt(x.textStyle,l,l.ecModel))}var b=new Nt({silent:gn.isLabelSilent(t),style:Jt(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),Sn({el:b,componentModel:t,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:c.rawLabel,tickIndex:v}}),f){var w=gn.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,mt(b).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;x&&(a[f][L]||(a[f][L]={p:C,n:C}),R=a[f][L][P]);var k=void 0,N=void 0,E=void 0,z=void 0;if(d.dim==="radius"){var V=d.dataToCoord(I)-C,H=l.dataToCoord(L);Math.abs(V)=z})}}})}function cq(r){var t={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=cR(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=fR(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=JT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=JT(e);return n===this?this.pointToData(a):null},r}();function JT(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function wq(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new bq(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",ce).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var Tq={create:wq,dimensions:hR};const Cq=Tq;var QT=["x","y"],Aq=["width","height"],Mq=function(r){B(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=Kp(l,1-Vv(s)),f=l.dataToPoint(a)[0],c=i.get("type");if(c&&c!=="none"){var v=E_(i),h=Dq[c](s,f,u);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=fm(n);iR(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=fm(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=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=Vv(o),u=Kp(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=Kp(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}(R_),Dq={line:function(r,t,e){var a=N_([t,e[0]],[t,e[1]],Vv(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:oR([t-a/2,e[0]],[a,n],Vv(r))}}};function Vv(r){return r.isHorizontal()?0:1}function Kp(r,t){var e=r.getRect();return[e[QT[t]],e[QT[t]]+e[Aq[t]]]}const Lq=Mq;var Iq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(le);function Pq(r){At(nf),Eo.registerAxisPointerClass("SingleAxisPointer",Lq),r.registerComponentView(Iq),r.registerComponentView(_q),r.registerComponentModel(qp),Ns(r,"single",qp,qp.defaultOption),r.registerCoordinateSystem("single",Cq)}var kq=function(r){B(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=Lo(e);r.prototype.init.apply(this,arguments),tC(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),tC(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:F.color.axisLine,width:1,type:"solid"}},itemStyle:{color:F.color.neutral00,borderWidth:1,borderColor:F.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:F.size.s,color:F.color.secondary},monthLabel:{show:!0,position:"start",margin:F.size.s,align:"center",formatter:null,color:F.color.secondary},yearLabel:{show:!0,position:null,margin:F.size.xl,formatter:null,color:F.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Et);function tC(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=Z([0,1],function(i){return JV(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Ha(r,t,{type:"box",ignoreSize:n})}const Rq=kq;var Eq=function(r){B(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 Lt({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 ar({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 J(e)&&e?UV(e,a):lt(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 Nt({z2:30,style:Jt(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||J(s))&&(s&&(a=sy(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/jp)-Math.floor(e[0].time/jp)+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){Xu({targetModel:i,coordSysType:"calendar",coordSysProvider:AL})}),a},r.dimensions=["time","value"],r}();function Jp(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}const Bq=Nq;function zq(r){r.registerComponentModel(Rq),r.registerComponentView(Oq),r.registerCoordinateSystem("calendar",Bq)}var en={level:1,leaf:2,nonLeaf:3},un={none:0,all:1,body:2,corner:3};function cm(r,t,e){var a=t[_t[e]].getCell(r);return!a&&Rt(r)&&r<0&&(a=t[_t[1-e]].getUnitLayoutInfo(e,Math.round(r))),a}function dR(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 pR(r,t,e,a,n){eC(r[0],t,n,e,a,0),eC(r[1],t,n,e,a,1)}function eC(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?(rC(r,t,s,u,n,i,0),l>1&&rC(r,t,s,u,n,i,l-1)):r[0]=r[1]=NaN,u){var f=-n[_t[1-i]].getLocatorCount(i),c=n[_t[i]].getLocatorCount(i)-1;e===un.body?f=ge(0,f):e===un.corner&&(c=Mr(-1,c)),c=t[0]&&r[0]<=t[1]}function iC(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 Fq(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 oC(r,t,e,a){var n=cm(t[a][0],e,a),i=cm(t[a][1],e,a);r[_t[a]]=r[be[a]]=NaN,n&&i&&(r[_t[a]]=n.xy,r[be[a]]=i.xy+i.wh-n.xy)}function Pl(r,t,e,a){return r[_t[t]]=e,r[_t[1-t]]=a,r}function Hq(r){return r&&(r.type===en.leaf||r.type===en.nonLeaf)?r:null}function Gv(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var sC=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;J(h)?p={value:h}:dt(h)?(p=h,h.value!=null&&!J(h.value)&&(p={value:null})):p={value:null};var g={type:en.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:f,id:new vt,span:Pl(new vt,e.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:e,rect:Gv()};o++,(i[f]||(i[f]=[])).push(g),n[c]||(n[c]={type:en.level,xy:NaN,wh:NaN,option:null,id:new vt,dim:e});var y=s(p.children,f,c+1),m=Math.max(1,y);g.span[_t[e.dimIdx]]=m,v+=m,f+=m}),v}function l(){for(var u=[];a.length=1,_=e[_t[a]],S=i.getLocatorCount(a)-1,x=new qn;for(o.resetLayoutIterator(x,a);x.next();)b(x.item);for(i.resetLayoutIterator(x,a);x.next();)b(x.item);function b(w){tr(w.wh)&&(w.wh=y),w.xy=_,w.id[_t[a]]===S&&!m&&(w.wh=e[_t[a]]+e[be[a]]-w.xy),_+=w.wh}}function dC(r,t){for(var e=t[_t[r]].resetCellIterator();e.next();){var a=e.item;Fv(a.rect,r,a.id,a.span,t),Fv(a.rect,1-r,a.id,a.span,t),a.type===en.nonLeaf&&(a.xy=a.rect[_t[r]],a.wh=a.rect[be[r]])}}function pC(r,t){r.travelExistingCells(function(e){var a=e.span;if(a){var n=e.spanRect,i=e.id;Fv(n,0,i,a,t),Fv(n,1,i,a,t)}})}function Fv(r,t,e,a,n){r[be[t]]=0;var i=e[_t[t]],o=i<0?n[_t[1-t]]:n[_t[t]],s=o.getUnitLayoutInfo(t,e[_t[t]]);if(r[_t[t]]=s.xy,r[be[t]]=s.wh,a[_t[t]]>1){var l=o.getUnitLayoutInfo(t,e[_t[t]]+a[_t[t]]-1);r[be[t]]=l.xy+l.wh-s.xy}}function nK(r,t,e){var a=ev(r,e[be[t]]);return hm(a,e[be[t]])}function hm(r,t){return Math.max(Math.min(r,nt(t,1/0)),0)}function eg(r){var t=r.matrixModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var Ye={inBody:1,inCorner:2,outside:3},Sa={x:null,y:null,point:[]};function gC(r,t,e,a,n){var i=e[_t[t]],o=e[_t[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[_t[t]]=Ye.outside;return}if(n===un.body){l?(r[_t[t]]=Ye.inBody,c=Mr(s.xy+s.wh,ge(l.xy,c)),r.point[t]=c):r[_t[t]]=Ye.outside;return}else if(n===un.corner){f?(r[_t[t]]=Ye.inCorner,c=Mr(f.xy+f.wh,ge(u.xy,c)),r.point[t]=c):r[_t[t]]=Ye.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[_t[t]]=Ye.outside;return}c=d}r.point[t]=c,r[_t[t]]=v<=c&&c<=d?Ye.inBody:h<=c&&c<=v?Ye.inCorner:Ye.outside}function yC(r,t,e,a){var n=1-e;if(r[_t[e]]!==Ye.outside)for(a[_t[e]].resetCellIterator(tg);tg.next();){var i=tg.item;if(_C(r.point[e],i.rect,e)&&_C(r.point[n],i.rect,n)){t[e]=i.ordinal,t[n]=i.id[_t[n]];return}}}function mC(r,t,e,a){if(r[_t[e]]!==Ye.outside){var n=r[_t[e]]===Ye.inCorner?a[_t[1-e]]:a[_t[e]];for(n.resetLayoutIterator(vc,e);vc.next();)if(iK(r.point[e],vc.item)){t[e]=vc.item.id[_t[e]];return}}}function iK(r,t){return t.xy<=r&&r<=t.xy+t.wh}function _C(r,t,e){return t[_t[e]]<=r&&r<=t[_t[e]]+t[be[e]]}const oK=aK;function sK(r){r.registerComponentModel(Xq),r.registerComponentView(rK),r.registerCoordinateSystem("matrix",oK)}function lK(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 SC(r,t){var e;return A(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function uK(r,t,e){var a=$({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(Ct(n,a,!0),Ha(n,a,{ignoreSize:!0}),PL(e,n),hc(e,n),hc(e,n,"shape"),hc(e,n,"style"),hc(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var yR=["transition","enterFrom","leaveTo"],fK=yR.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function hc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?yR:fK,n=0;n=0;f--){var c=n[f],v=De(c.id,null),h=v!=null?o.get(v):null;if(h){var d=h.parent,y=zr(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=xh(h,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!zr(h).isNew&&S){for(var x=c.transition,b={},w=0;w=0)?b[T]=C:h[T]=C}Bt(h,b,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Fc(n,zr(n).option,a,e._lastGraphicModel)}),this._elMap=at()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(le);function dm(r){var t=rt(xC,r)?xC[r]:ov(r),e=new t({});return zr(e).type=r,e}function bC(r,t,e,a){var n=dm(e);return t.add(n),a.set(r,n),zr(n).id=r,zr(n).isNew=!0,n}function Fc(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Fc(i,t,e,a)}),Bh(r,t,a),e.removeKey(zr(r).id))}function wC(r,t,e,a){r.isGroup||A([["cursor",Yr.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];rt(t,i)?r[i]=nt(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(kt(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=lt(i)?i:null}}),rt(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function dK(r){return r=$({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(ML),function(t){delete r[t]}),r}function pK(r,t,e){var a=mt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=mt(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function gK(r){r.registerComponentModel(vK),r.registerComponentView(hK),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 TC=["x","y","radius","angle","single"],yK=["cartesian2d","polar","singleAxis"];function mK(r){var t=r.get("coordinateSystem");return wt(yK,t)>=0}function Un(r){return r+"Axis"}function _K(r,t){var e=at(),a=[],n=at();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 mR(r){var t=r.ecModel,e={infoList:[],infoMap:at()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(Un(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 rg=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}(),SK=function(r){B(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=CC(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=CC(e);Ct(this.option,e,!0),Ct(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=at(),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(TC,function(n){var i=this.getReferringComponents(Un(n),gB);if(i.specified){a=!0;var o=new rg;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 rg;if(v.add(c.componentIndex),e.set(f,v),i=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",ce).models[0];h&&A(u,function(d){c.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",ce).models[0]&&v.add(d.componentIndex)})}}}i&&A(TC,function(u){if(i){var f=n.findComponents({mainType:Un(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var c=new rg;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(Un(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(Un(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&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else hs(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)}});hs(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;hs(["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=$t(a[0]+o,a,[0,100],!0):i!=null&&(o=$t(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=jM(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 MK(r,t,e){var a=[1/0,-1/0];hs(e,function(o){H3(a,o.getData(),t)});var n=r.getAxisModel(),i=hI(n.axis.scale,n,a).calculate();return[i.min,i.max]}const DK=AK;var LK={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Un(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 DK(n,i,s,r),e.push(o.__dzAxisProxy))});var a=at();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 IK=LK;function PK(r){r.registerAction("dataZoom",function(t,e){var a=_K(e,t);A(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var MC=!1;function W_(r){MC||(MC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,IK),PK(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function kK(r){r.registerComponentModel(bK),r.registerComponentView(CK),W_(r)}var Gr=function(){function r(){}return r}(),_R={};function ds(r,t){_R[r]=t}function SR(r){return _R[r]}var RK=function(r){B(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=SR(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Ct(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:F.color.border,borderRadius:0,borderWidth:0,padding:F.size.m,itemSize:15,itemGap:F.size.s,showTitle:!0,iconStyle:{borderColor:F.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:F.color.accent50}},tooltip:{show:!1,position:"bottom"}},t}(Et);const EK=RK;function xR(r,t){var e=Zu(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new Lt({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 OK=function(r){B(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 pn(this._featureNames||[],c).add(v).update(v).remove(bt(v,null)).execute(),this._featureNames=c;function v(m,_){var S=c[m],x=c[_],b=u[S],w=new zt(b,e,e.ecModel),T;if(i&&i.newTitle!=null&&i.featureName===S&&(b.title=i.newTitle),S&&!x){if(NK(S))T={onclick:w.option.onclick,featureName:S};else{var C=SR(S);if(!C)return;T=new C}f[S]=T}else if(T=f[x],!T)return;T.uid=qs("toolbox-feature"),T.model=w,T.ecModel=a,T.api=n;var M=T instanceof Gr;if(!S&&x){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,P=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[D]=I,P[D]&&(I==="emphasis"?hn:dn)(P[D])},T instanceof Gr&&T.render&&T.render(w,a,n,i)}function h(m,_,S){var x=m.getModel("iconStyle"),b=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Gr&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,M;J(w)?(C={},C[S]=w):C=w,J(T)?(M={},M[S]=T):M=T;var D=m.iconPaths={};A(C,function(I,L){var P=Yu(I,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var R=P.ensureState("emphasis");R.style=b.getItemStyle();var k=new Nt({style:{text:M[L],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:l0({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},a)},ignore:!0});P.setTextContent(k),Sn({el:P,componentModel:e,itemName:L,formatterParamsExtra:{title:M[L]}}),P.__title=M[L],P.on("mouseover",function(){var N=b.getItemStyle(),E=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:b.get("textFill")||N.fill||N.stroke||F.color.neutral99,backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||E}),k.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",L])!=="emphasis"&&n.leaveEmphasis(this),k.hide()}),(m.get(["iconStatus",L])==="emphasis"?hn:dn)(P),o.add(P),P.on("click",Q(_.onclick,_,a,n,L)),D[L]=P})}var d=ke(e,n).refContainer,p=e.getBoxLayoutParams(),g=e.get("padding"),y=ie(p,d,g);fo(e.get("orient"),o,e.get("itemGap"),y.width,y.height),xh(o,p,d,g),o.add(xR(o.getBoundingRect(),e)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),x=S.textConfig||(S.textConfig={}),b=m.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!lt(w)&&_){var T=w.style||(w.style={}),C=ih(_,Nt.makeFont(T)),M=m.x+o.x,D=m.y+o.y+s,I=!1;D+C.height>n.getHeight()&&(x.position="top",I=!0);var L=I?-5-C.height:s+10;M+C.width/2>n.getWidth()?(x.position=["100%",L],T.align="right"):M-C.width/2<0&&(x.position=[0,L],T.align="left")}})},t.prototype.updateView=function(e,a,n,i){A(this._features,function(o){o instanceof Gr&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){A(this._features,function(n){n instanceof Gr&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){A(this._features,function(n){n instanceof Gr&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(le);function NK(r){return r.indexOf("my")===0}const BK=OK;var zK=function(r){B(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")||F.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Vt.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,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=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:F.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(Gr);const VK=zK;var DC="__ec_magicType_stack__",GK=[["line","bar"],["stack"]],FK=function(r){B(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(LC[n]){var s={series:[]},l=function(c){var v=c.subType,h=c.id,d=LC[n](v,h,c,i);d&&(ht(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,ce).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(GK,function(c){wt(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=Ct({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}(Gr),LC={line:function(r,t,e,a){if(r==="bar")return Ct({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 Ct({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")===DC;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),Ct({id:t,stack:n?"":DC},a.get(["option","stack"])||{},!0)}};$a({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const HK=FK;var zh=new Array(60).join("-"),Gs=" ";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 $K(r){var t=[];return A(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(Z(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(Gs)],f=0;f1||e>0&&!r.noHeader;return A(r.blocks,function(n){var i=n2(n);i>=t&&(t=i+ +(a&&(!i||hy(n)&&!n.noHeader)))}),t}return 0}function nG(r,t,e,a){var n=t.noHeader,i=oG(n2(t)),o=[],s=t.blocks||[];er(!s||U(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(rt(u,l)){var f=new KL(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=a2(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):dy(a,o.join(""),n?e:i.html);if(n)return c;var v=sy(t.header,"ordinal",r.useUTC),h=r2(a,r.renderMode).nameStyle,d=e2(a);return r.renderMode==="richText"?i2(r,v,h)+i.richText+c:dy(a,'
'+Je(v)+"
"+c,e)}function iG(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],Z(S,function(x,b){return sy(x,U(h)?h[b]:h,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||F.color.secondary,n),v=i?"":sy(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,y=r2(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":c)+(i?"":i2(r,v,m))+(o?"":uG(r,d,p,g,_)):dy(a,(s?"":c)+(i?"":sG(v,!s,m))+(o?"":lG(d,p,g,_)),e)}}function ex(r,t,e,a,n,i){if(r){var o=a2(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function oG(r){return{html:rG[r],richText:aG[r]}}function dy(r,t,e){var a='
',n="margin: "+e+"px 0 0",i=e2(r);return'
'+t+a+"
"}function sG(r,t,e){var a=t?"margin-left:2px":"";return''+Je(r)+""}function lG(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=U(r)?r:[r],''+Z(r,function(o){return Je(o)}).join("  ")+""}function i2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function uG(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 o2(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return So(a)}function s2(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Ed=function(){function r(){this.richTextStyles={},this._nextStyleNameId=jM()}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=YV({color:e,type:t,renderMode:a,markerId:n});return J(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 l2(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=o2(t,e),f,c,v,h;if(o>1||l&&!o){var d=fG(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=Is(n,e,i[0]),c=p.type}else h=f=l?s[0]:s;var g=Hm(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return be("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[be("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Wr(_),value:f,valueType:c,dataIndex:e})].concat(v||[])})}function fG(r,t,e,a,n){var i=t.getData(),o=Ba(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(Is(i,e,c),c)}):A(r,f);function f(c,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(be("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 Cn=It();function Mf(r,t){return r.getName(t)||r.getId(t)}var kc="__universalTransitionEnabled",xh=function(r){B(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=ru({count:vG,reset:hG}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Cn(this).sourceManager=new t2(this);i.prepareSource();var o=this.getInitialData(e,n);ax(o,this),this.dataTask.context.data=o,Cn(this).dataBeforeProcessed=o,rx(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=Su(this),i=n?Do(e):{},o=this.subType;Et.hasClass(o)&&(o+="Series"),Tt(e,a.getTheme().get(this.subType)),Tt(e,this.getDefaultOption()),ho(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Fa(e,i,n)},t.prototype.mergeOption=function(e,a){e=Tt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Su(this);n&&Fa(this.option,e,n);var i=Cn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);ax(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Cn(this).dataBeforeProcessed=o,rx(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!yr(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 l2({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Vt.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=_0.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[Mf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[kc])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"){dt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,a)}},t.registerClass=function(e){return Et.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}(Et);Te(xh,_h);Te(xh,_0);sD(xh,Et);function rx(r){var t=r.name;Hm(r)||(r.name=cG(r)||t)}function cG(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 vG(r){return r.model.getRawData().count()}function hG(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),dG}function dG(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ax(r,t){A(uu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(pG,t))})}function pG(r,t){var e=py(r);return e&&e.setOutputEnd((t||this).count()),t}function py(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 oe=xh;var T0=function(){function r(){this.group=new ft,this.uid=Xs("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}();$m(T0);rh(T0);const le=T0;function Ks(){var r=It();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 u2=It(),gG=Ks(),C0=function(){function r(){this.group=new ft,this.uid=Xs("viewChart"),this.renderTask=ru({plan:yG,reset:mG}),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&&ix(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&ix(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){ui(this.group,t)},r.markUpdateMethod=function(t,e){u2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function nx(r,t,e){r&&yu(r)&&(t==="emphasis"?hn:dn)(r,e)}function ix(r,t,e){var a=po(r,t),n=t&&t.highlightKey!=null?kz(t.highlightKey):null;a!=null?A(qt(a),function(i){nx(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){nx(i,e,n)})}$m(C0);rh(C0);function yG(r){return gG(r.model)}function mG(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&u2(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),_G[l]}var _G={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 Qt=C0;var ov="\0__throttleOriginMethod",ox="\0__throttleRate",sx="\0__throttleType";function A0(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 js(r,t,e,a){var n=r[t];if(n){var i=n[ov]||n,o=n[sx],s=n[ox];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=A0(i,e,a==="debounce"),n[ov]=i,n[sx]=a,n[ox]=e}return n}}function bu(r,t){var e=r[t];e&&e[ov]&&(e.clear&&e.clear(),r[t]=e[ov])}var lx=It(),ux={itemStyle:go(sL,!0),lineStyle:go(oL,!0)},SG={lineStyle:"stroke",itemStyle:"fill"};function f2(r,t){var e=r.visualStyleMapper||ux[t];return e||(console.warn("Unknown style type '"+t+"'."),ux.itemStyle)}function c2(r,t){var e=r.visualDrawType||SG[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var xG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=f2(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=c2(r,a),u=o[l],f=lt(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"||lt(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||lt(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)}}}},cl=new zt,bG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=f2(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){cl.option=l[a];var u=n(cl),f=o.ensureUniqueItemVisual(s,"style");$(f,u),cl.option.decal&&(o.setItemVisual(s,"decal",cl.option.decal),cl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},wG={performRawSeries:!0,overallReset:function(r){var t=at();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)),lx(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=lx(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=c2(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)}})}})}},Df=Math.PI;function TG(r,t){t=t||{},ht(t,{text:"loading",textColor:F.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:F.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new ft,a=new Lt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new Nt({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 Lt({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 e0({shape:{startAngle:-Df/2,endAngle:-Df/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:Df*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Df*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 CG=function(){function r(t,e,a,n){this._stageTaskMap=at(),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=at();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="";er(!(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=at(),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)||ru({plan:IG,reset:PG,count:RG}));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||ru({reset:AG});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=at(),u=t.seriesType,f=t.getTargetSeries,c=!0,v=!1,h="";er(!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,ru({reset:MG,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 lt(t)&&(t={overallReset:t,seriesType:EG(t)}),t.uid=Xs("stageHandler"),e&&(t.visualType=e),t},r}();function AG(r){r.overallReset(r.ecModel,r.api,r.payload)}function MG(r){return r.overallProgress&&DG}function DG(){this.agent.dirty(),this.getDownstream().dirty()}function LG(){this.agent&&this.agent.dirty()}function IG(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function PG(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=qt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Z(t,function(e,a){return v2(a)}):kG}var kG=v2(0);function v2(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}(),gy=["symbol","symbolSize","symbolRotate","symbolOffset"],cx=gy.concat(["symbolKeepAspect"]),zG={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&&Qi(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function yy(r,t,e){for(var a=t.type==="radial"?t3(r,t,e):QG(r,t,e),n=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Rt(r)?[r]:U(r)?r:null}function D0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&r3(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Z(e,function(i){return i/n}),a/=n)}return[e,a]}var a3=new Ga(!0);function uv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function vx(r){return typeof r=="string"&&r!=="none"}function fv(r){var t=r.fill;return t!=null&&t!=="none"}function hx(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 dx(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 my(r,t,e){var a=Um(t.image,t.__image,e);if(ah(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)*yc),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function n3(r,t,e,a){var n,i=uv(e),o=fv(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||a3,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,x=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(m=c?yy(r,v,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?yy(r,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?my(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=c||!t.__canvasStrokePattern?my(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(x?r.strokeStyle=x:i=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(n=D0(t),T=n[0],C=n[1]);var M=!0;(u||c&fs)&&(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&&dx(r,e),o&&hx(r,e)):(o&&hx(r,e),i&&dx(r,e))),T&&r.setLineDash([])}function i3(r,t,e){var a=t.__image=Um(e.image,t.__image,t,t.onload);if(!(!a||!ah(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 o3(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||fn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=D0(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(uv(e)&&r.strokeText(n,e.x,e.y),fv(e)&&r.fillText(n,e.x,e.y)):(fv(e)&&r.fillText(n,e.x,e.y),uv(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var px=["shadowBlur","shadowOffsetX","shadowOffsetY"],gx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function _2(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){pr(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?io.opacity:o}(a||t.blend!==e.blend)&&(i||(pr(r,n),i=!0),r.globalCompositeOperation=t.blend||io.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[Ce]){if(this._disposed){this.id;return}var i,o,s;if(dt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ce]=!0,jo(this),!this._model||a){var l=new x5(this._api),u=this._theme,f=this._model=new zL;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},by);var c={seriesTransition:s,optionChanged:!0};if(n)this[ze]={silent:i,updateParams:c},this[Ce]=!1,this.getZr().wakeUp();else{try{ki(this),qa.update.call(this,null,c)}catch(v){throw this[ze]=null,this[Ce]=!1,v}this._ssr||this._zr.flush(),this[ze]=null,this[Ce]=!1,qo.call(this,i),Ko.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[Ce]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[ze]&&(i==null&&(i=this[ze].silent),o=this[ze].updateParams,this[ze]=null),this[Ce]=!0,jo(this);try{this._updateTheme(e),n.setTheme(this._theme),ki(this),qa.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ce]=!1,s}this[Ce]=!1,qo.call(this,i),Ko.call(this,i)}}},t.prototype._updateTheme=function(e){J(e)&&(e=B2[e]),e&&(e=ut(e),e&&FL(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||Vt.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(kx[n]){var l=s,u=s,f=-s,c=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();A(au,function(_,S){if(_.group===n){var x=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ut(e)),b=_.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),f=o(b.right,f),c=o(b.bottom,c),v.push({dom:x,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=oa.createCanvas(),y=E1(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return A(v,function(_){var S=_.left-l,x=_.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 Lt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),A(v,function(_){var S=new qe({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 kf(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return kf(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return kf(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=bs(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=bs(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?M0(s,l,a):Zu(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(E3,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Ji(l,function(p){var g=yt(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)})}),GG(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&&nD(this.getDom(),P0,"");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 au[a.id]},t.prototype.resize=function(e){if(!this[Ce]){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[ze]&&(i==null&&(i=this[ze].silent),n=!0,this[ze]=null),this[Ce]=!0,jo(this);try{n&&ki(this),qa.update.call(this,{type:"resize",animation:$({duration:0},e&&e.animation)})}catch(o){throw this[Ce]=!1,o}this[Ce]=!1,qo.call(this,i),Ko.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(dt(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!wy[e]){var n=wy[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=_y[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(dt(a)||(a={silent:!!a}),!!cv[e.type]&&this._model){if(this[Ce]){this._pendingActions.push(e);return}var n=a.silent;Gd.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Vt.browser.weChat&&this._throttledZrFlush(),qo.call(this,n),Ko.call(this,n)}},t.prototype.updateLabelLayout=function(){Qr.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(){ki=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),zd(c,!0),zd(c,!1),v.plan()},zd=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")&&!Vt.node&&!Vt.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=_o(c);v.eachRendered(function(d){return dh(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!ws(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(ws(y))return;if(y instanceof Pt&&Rz(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)}})}Ix=function(c){return new(function(v){B(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){hn(d,p),Pr(c)},h.prototype.leaveEmphasis=function(d,p){dn(d,p),Pr(c)},h.prototype.enterBlur=function(d){CD(d),Pr(c)},h.prototype.leaveBlur=function(d){jm(d),Pr(c)},h.prototype.enterSelect=function(d){AD(d),Pr(c)},h.prototype.leaveSelect=function(d){MD(d),Pr(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[If]},h}(VL))(c)},O2=function(c){function v(h,d){for(var p=0;p=0)){Rx.push(e);var i=p2.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function F2(r,t){wy[r]=t}function H3(r,t,e){var a=y3("registerMap");a&&a(r,t,e)}var W3=q5;Po(L0,xG);Po(bh,bG);Po(bh,wG);Po(L0,zG);Po(bh,VG);Po(L2,d3);V2(FL);G2(b3,L5);F2("default",TG);Wa({type:oo,event:oo,update:oo},ge);Wa({type:Ac,event:Ac,update:Ac},ge);Wa({type:Qc,event:qm,update:Qc,action:ge,refineEvent:E0,publishNonRefinedEvent:!0});Wa({type:qg,event:qm,update:qg,action:ge,refineEvent:E0,publishNonRefinedEvent:!0});Wa({type:tv,event:qm,update:tv,action:ge,refineEvent:E0,publishNonRefinedEvent:!0});function E0(r,t,e,a){return{eventContent:{selected:Dz(e),isFromClick:t.isFromClick||!1}}}z2("default",{});z2("dark",NG);var Ex=[],$3={registerPreprocessor:V2,registerProcessor:G2,registerPostInit:z3,registerPostUpdate:V3,registerUpdateLifecycle:k0,registerAction:Wa,registerCoordinateSystem:G3,registerLayout:F3,registerVisual:Po,registerTransform:W3,registerLoading:F2,registerMap:H3,registerImpl:g3,PRIORITY:P3,ComponentModel:Et,ComponentView:le,SeriesModel:oe,ChartView:Qt,registerComponentModel:function(r){Et.registerClass(r)},registerComponentView:function(r){le.registerClass(r)},registerSeriesModel:function(r){oe.registerClass(r)},registerChartView:function(r){Qt.registerClass(r)},registerCustomSeries:function(r,t){m3(r,t)},registerSubTypeDefaulter:function(r,t){Et.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){UN(r,t)}};function At(r){if(U(r)){A(r,function(t){At(t)});return}wt(Ex,r)>=0||(Ex.push(r),lt(r)&&(r={install:r}),r.install($3))}function hl(r){return r==null?0:r.length||1}function Ox(r){return r}var U3=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||Ox,this._newKeyGetter=n||Ox,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 dl=dt,An=Z,J3=typeof Int32Array>"u"?Array:Int32Array,Q3="e\0\0",Nx=-1,tF=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],eF=["_approximateExtent"],Bx,Ef,pl,gl,Wd,yl,$d,rF=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;W2(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===Mr;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():dl(i)&&(i=$({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,dl(e)?$(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){dl(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;Xg(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:An(this.dimensions,this._getDimInfo,this),this.hostModel)),Wd(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];lt(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(km(arguments)))})},r.internalField=function(){Bx=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 J3(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[e]=l}}}(),r}();const sr=rF;function Xu(r,t){S0(r)||(r=x0(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=at(),i=[],o=nF(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Y2(o),l=a===r.dimensionsDefine,u=l?U2(r):$2(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=at(f),v=new JL(o),h=0;h0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function nF(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return A(t,function(i){var o;dt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function iF(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 oF=function(){function r(t){this.coordSysDims=[],this.axisMap=at(),this.categoryAxisMap=at(),this.coordSysName=t}return r}();function sF(r){var t=r.get("coordinateSystem"),e=new oF(t),a=lF[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var lF={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",ce).models[0],i=r.getReferringComponents("yAxis",ce).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Jo(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Jo(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",ce).models[0];t.coordSysDims=["single"],e.set("single",n),Jo(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",ce).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Jo(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Jo(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),Jo(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",ce).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 Jo(r){return r.get("type")==="category"}function uF(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;fF(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,_){J(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 fF(r){return!W2(r.schema)}function ti(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Z2(r,t){return ti(r,t)?r.getCalculationInfo("stackResultDimension"):t}function cF(r,t){var e=r.get("coordinateSystem"),a=Yu.get(e),n;return t&&t.coordSysDims&&(n=Z(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=hv(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function vF(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 xn(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=x0(r)):(n=a.getSource(),i=n.sourceFormat===Mr);var o=sF(t),s=cF(t,o),l=e.useEncodeDefaulter,u=lt(l)?l:l?bt(RL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=Xu(n,f),v=vF(c.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(c),d=uF(t,{schema:c,store:h}),p=new sr(c,t);p.setCalculationInfo(d);var g=v!=null&&hF(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 hF(r){if(r.sourceFormat===Mr){var t=dF(r.data||[]);return!U(Hs(t))}}function dF(r){for(var t=0;tn&&(o=i.interval=n);var s=i.intervalPrecision=Cu(o),l=i.niceTickExtent=[_e(Math.ceil(r[0]/o)*o,s),_e(Math.floor(r[1]/o)*o,s)];return gF(l,r),i}function Ud(r){var t=Math.pow(10,Fm(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,_e(e*t)}function Cu(r){return Da(r)+2}function zx(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function gF(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),zx(r,0,t),zx(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function O0(r,t){return r>=t[0]&&r<=t[1]}var yF=function(){function r(){this.normalize=Vx,this.scale=Gx}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=Q(t.normalize,t),this.scale=Q(t.scale,t)):(this.normalize=Vx,this.scale=Gx)},r}();function Vx(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Gx(r,t){return r*(t[1]-t[0])+t[0]}function Cy(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 X2=function(){function r(t){this._calculator=new yF,this._setting=t||{},this._extent=[1/0,-1/0];var e=Se();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=Se();e&&this._innerSetBreak(e.parseAxisBreakOption(t,Q(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}();rh(X2);const ko=X2;var mF=0,_F=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++mF,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&Z(a,SF);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(!J(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=at(this.categories))},r}();function SF(r){return dt(r)&&r.value!=null?r.value:r+""}const Au=_F;var q2=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new Au({})),U(n)&&(n=new Au({categories:Z(n,function(i){return dt(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:J(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return O0(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}(ko);ko.registerClass(q2);const Mu=q2;var Mn=_e,K2=function(r){B(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 O0(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=Cu(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=Se(),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=Mn(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:Mn(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 Q2(r){var t=wF(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")||(nI(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:B0(i),stackId:N0(a)})}),tI(e)}function tI(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=kt(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 TF(r,t,e){if(r&&t){var a=r[B0(t)];return a!=null&&e!=null?a[N0(e)]:a}}function eI(r,t){var e=J2(r,t),a=Q2(e);A(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=N0(n),u=a[B0(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function rI(r){return{seriesType:r,plan:Ks(),reset:function(t){if(aI(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=ti(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=CF(n,i),d=nI(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 x=_.count,b=d&&Ia(x*3),w=d&&l&&Ia(x*3),T=d&&Ia(x),C=a.master.getRect(),M=v?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(c?g:o,D),R=I.get(s,D),k=h,N=void 0;c&&(N=+P-I.get(o,D));var E=void 0,z=void 0,V=void 0,H=void 0;if(v){var G=a.dataToPoint([P,R]);if(c){var Y=a.dataToPoint([N,R]);k=Y[0]}E=k,z=G[1]+m,V=G[0]-k,H=y,Math.abs(V)0?e:1:e))}var AF=function(r,t,e,a){for(;e>>1;r[n][1]n&&(this._approxInterval=n);var o=Of.length,s=Math.min(AF(Of,this._approxInterval,0,o),o-1);this._interval=Of[s][1],this._intervalPrecision=Cu(this._interval),this._minLevelUnit=Of[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Rt(e)?e:+Co(e)},t.prototype.contain=function(e){return O0(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}(ei),Of=[["second",l0],["minute",u0],["hour",tu],["quarter-day",tu*6],["half-day",tu*12],["day",Hr*1.2],["half-week",Hr*3.5],["week",Hr*7],["month",Hr*31],["quarter",Hr*95],["half-year",DS/2],["year",DS]];function oI(r,t,e,a){return oy(new Date(t),r,a).getTime()===oy(new Date(e),r,a).getTime()}function MF(r,t){return r/=Hr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function DF(r){var t=30*Hr;return r/=t,r>6?6:r>3?3:r>2?2:1}function LF(r){return r/=tu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Fx(r,t){return r/=t?u0:l0,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function IF(r){return qM(r,!0)}function PF(r,t,e){var a=Math.max(0,wt(_r,t)-1);return oy(new Date(r),_r[a],e).getTime()}function kF(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 RF(r,t,e,a,n,i){var o=1e4,s=zV,l=0;function u(L,P,R,k,N,E,z){for(var V=kF(N,L),H=P,G=new Date(H);Ho));)if(G[N](G[k]()+L),H=G.getTime(),i){var Y=i.calcNiceTickMultiple(H,V);Y>0&&(G[N](G[k]()+Y*L),H=G.getTime())}z.push({value:H,notAdd:!0})}function f(L,P,R){var k=[],N=!P.length;if(!oI(eu(L),a[0],a[1],e)){N&&(P=[{value:PF(a[0],L,e)},{value:a[1]}]);for(var E=0;E=a[0]&&z<=a[1]&&u(H,z,V,G,Y,X,k),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 x=n/t;if(h>x*1.5&&d>x/1.5||(c.push(m),h>x||r===s[p]))break}v=[]}}}for(var b=Ut(Z(c,function(L){return Ut(L,function(P){return P.value>=a[0]&&P.value<=a[1]&&!P.notAdd})}),function(L){return L.length>0}),w=[],T=b.length-1,p=0;p0;)i*=10;var s=[My(OF(a[0]/i)*i),My(EF(a[1]/i)*i)];this._interval=i,this._intervalPrecision=Cu(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=Bf(e)/Bf(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=Bf(e)/Bf(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),Nf(this.base,e)},t.prototype.setBreaksFromOption=function(e){var a=Se();if(a){var n=a.logarithmicParseBreaksFromOption(e,this.base,Q(this.parse,this)),i=n.parsedOriginal,o=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},t.type="log",t}(ei);function zf(r,t){return My(r,Da(t))}ko.registerClass(lI);const NF=lI;var BF=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[VF[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=zF[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),zF={min:"_determinedMin",max:"_determinedMax"},VF={min:"_dataMin",max:"_dataMax"};function uI(r,t,e){var a=r.rawExtentInfo;return a||(a=new BF(r,t,e),r.rawExtentInfo=a,a)}function Vf(r,t){return t==null?null:Qe(t)?NaN:r.parse(t)}function fI(r,t){var e=r.type,a=uI(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=J2("bar",o),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=Q2(s),f=GF(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function GF(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=TF(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 ks(r,t){var e=t,a=fI(r,e),n=a.extent,i=e.get("splitNumber");r instanceof NF&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(vI(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 wh(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Mu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new sI({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ko.getClass(t)||ei)}}function FF(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Qs(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=VV(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if(J(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(lt(t)){if(r.type==="category")return function(n,i){return t(dv(r,n),n.value-r.scale.getExtent()[0],null)};var a=Se();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(dv(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function dv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function z0(r){var t=r.get("interval");return t??"auto"}function cI(r){return r.type==="category"&&z0(r.getLabelModel())===0}function pv(r,t){var e={};return A(r.mapDimensionsAll(t),function(a){e[Z2(r,a)]=!0}),kt(e)}function HF(r,t,e){t&&A(pv(t,e),function(a){var n=t.getApproximateExtent(a);n[0]r[1]&&(r[1]=n[1])})}function Rs(r){return r==="middle"||r==="center"}function Du(r){return r.getShallow("show")}function vI(r){var t=r.get("breaks",!0);if(t!=null)return!Se()||!WF(r.axis)?void 0:t}function WF(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var qu=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),$F=1e-8;function Hx(r,t){return Math.abs(r-t)<$F}function Wi(r,t,e){var a=0,n=r[0];if(!n)return!1;for(var i=1;in&&(a=o,n=l)}if(a)return YF(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"?Wx(s.exterior,n,i,e):A(s.points,function(l){Wx(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 gt(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 qF(r,t){return r=XF(r),Z(Ut(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 $x(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new $x(l[0],l.slice(1)))});break;case"LineString":i.push(new Ux([n.coordinates]));break;case"MultiLineString":i.push(new Ux(n.coordinates))}var s=new dI(a[t||"name"],i,a.cp);return s.properties=a,s})}var KF=It(),nu=It(),ua={estimate:1,determine:2};function gv(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function gI(r,t){var e=Z(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 jF(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=Qs(r),n=r.scale.getExtent(),i=gI(r,e),o=Ut(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:Z(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"?QF(r,t):eH(r)}function JF(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=gI(r,a);return{ticks:Ut(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?tH(r,t):{ticks:Z(r.scale.getTicks(e),function(o){return o.value})}}function QF(r,t){var e=r.getLabelModel(),a=yI(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function yI(r,t,e){var a=aH(r),n=z0(t),i=e.kind===ua.estimate;if(!i){var o=_I(a,n);if(o)return o}var s,l;lt(n)?s=bI(r,n):(l=n==="auto"?nH(r,e):n,s=xI(r,l));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return Dy(a,n,u),!0}):Dy(a,n,u),u}function tH(r,t){var e=rH(r),a=z0(t),n=_I(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),lt(a))i=bI(r,a,!0);else if(a==="auto"){var s=yI(r,r.getLabelModel(),gv(ua.determine));o=s.labelCategoryInterval,i=Z(s.labels,function(l){return l.tickValue})}else o=a,i=xI(r,o,!0);return Dy(e,a,{ticks:i,tickCategoryInterval:o})}function eH(r){var t=r.scale.getTicks(),e=Qs(r);return{labels:Z(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var rH=mI("axisTick"),aH=mI("axisLabel");function mI(r){return function(e){return nu(e)[r]||(nu(e)[r]={list:[]})}}function _I(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,_=eh(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,x=g/d;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(S,x)));if(e===ua.estimate)return t.out.noPxChangeTryDetermine.push(Q(oH,null,r,b,l)),b;var w=SI(r,b,l);return w??b}function oH(r,t,e){return SI(r,t,e)==null}function SI(r,t,e){var a=KF(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 sH(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 xI(r,t,e){var a=Qs(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=cI(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 bI(r,t,e){var a=r.scale,n=Qs(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 Yx=[0,1],lH=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 ZM(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(),Zx(a,n.count())),$t(t,Yx,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Zx(a,n.count()));var i=$t(t,a,Yx,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=JF(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=Z(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return uH(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=Z(a,function(i){return Z(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||gv(ua.determine),jF(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||gv(ua.determine),iH(this,t)},r}();function Zx(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function uH(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=_e(h),d=_e(d),c?h>d:hn&&(n+=ml);var h=Math.atan2(s,o);if(h<0&&(h+=ml),h>=a&&h<=n||h+ml>=a&&h+ml<=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 yv(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 wI(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 ea=[];function hH(r,t,e){var a=wI(t.x,t.y,t.width,t.height,r.x,r.y,ea);return e.set(ea[0],ea[1]),a}function dH(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,ra.fromArray(r[0]),re.fromArray(r[1]),de.fromArray(r[2]),vt.sub(Pa,ra,re),vt.sub(Aa,de,re);var e=Pa.len(),a=Aa.len();if(!(e<.001||a<.001)){Pa.scale(1/e),Aa.scale(1/a);var n=Pa.dot(Aa),i=Math.cos(t);if(i1&&vt.copy(or,de),or.toArray(r[1])}}}}function pH(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ra.fromArray(r[0]),re.fromArray(r[1]),de.fromArray(r[2]),vt.sub(Pa,re,ra),vt.sub(Aa,de,re);var a=Pa.len(),n=Aa.len();if(!(a<.001||n<.001)){Pa.scale(1/a),Aa.scale(1/n);var i=Pa.dot(t),o=Math.cos(e);if(i=l)vt.copy(or,de);else{or.scaleAndAdd(Aa,s/Math.tan(Math.PI/2-f));var c=de.x!==re.x?(or.x-re.x)/(de.x-re.x):(or.y-re.y)/(de.y-re.y);if(isNaN(c))return;c<0?vt.copy(or,re):c>1&&vt.copy(or,de)}or.toArray(r[1])}}}}function Xd(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 gH(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=Nn(a[0],a[1]),i=Nn(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=_c([],a[1],a[0],o/n),l=_c([],a[1],a[2],o/i),u=_c([],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&&b(-c/i,0,i);var g=r[0],y=r[i-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),x(m,_,1),x(_,m,-1),S(),m<0&&T(-m),_<0&&T(_);function S(){m=g.rect[o]-e,_=a-y.rect[o]-y.rect[s]}function x(C,M,D){if(C<0){var I=Math.min(M,-C);if(I>0){b(I*D,0,i);var L=I+C;L<0&&w(-L*D,1)}else w(-C*D,1)}}function b(C,M,D){C!==0&&(f=!0);for(var I=M;I0)for(var L=0;L0;L--){var N=D[L-1]*k;b(-N,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?b(D,0,I+1):b(-D,i-I-1,i),C-=D,C<=0)return}return f}function _H(r){for(var t=0;t=0&&a.attr(i.oldLayoutSelect),wt(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Bt(a,u,e,l)}else if(a.attr(u),!Zs(a).valueAnimation){var c=nt(a.style.opacity,1);a.style.opacity=0,ae(a,{style:{opacity:c}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};Gf(h,u,Ff),Gf(h,a.states.select,Ff)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};Gf(d,u,Ff),Gf(d,a.states.emphasis,Ff)}iL(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=bH(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Bt(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,ae(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const TH=wH;var jd=It();function CH(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=jd(e).labelManager;n||(n=jd(e).labelManager=new TH),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=jd(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Jd=Math.sin,Qd=Math.cos,LI=Math.PI,Ei=Math.PI*2,AH=180/LI,MH=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=Fn(c-Ei)||(f?u>=Ei:-u>=Ei),h=u>0?u%Ei:u%Ei+Ei,d=!1;v?d=!0:Fn(c)?d=!1:d=h>=LI==!!f;var p=t+a*Qd(o),g=e+n*Jd(o);this._start&&this._add("M",p,g);var y=Math.round(i*AH);if(v){var m=1/this._p,_=(f?1:-1)*(Ei-m);this._add("A",a,n,y,1,+f,t+a*Qd(o+_),e+n*Jd(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=t+a*Qd(s),x=e+n*Jd(s);this._add("A",a,n,y,+d,+f,S,x)}},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 NH(r){return""}function F0(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 OH(o,s)+(o!=="style"?Je(l):l||"")+(i?""+e+Z(i,function(u){return a(u)}).join(e)+e:"")+NH(o)}return a(r)}function BH(r,t,e){e=e||{};var a=e.newline?` +`:"",n=" {"+a,i=a+"}",o=Z(kt(r),function(l){return l+n+Z(kt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=Z(kt(t),function(l){return"@keyframes "+l+n+Z(kt(t[l]),function(u){return u+n+Z(kt(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 Ry(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Qx(r,t,e,a){return Oe("svg","root",{width:r,height:t,xmlns:PI,"xmlns:xlink":kI,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var zH=0;function EI(){return zH++}var tb={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"},Bi="transform-origin";function VH(r,t,e){var a=$({},r.shape);$(a,t),r.buildPath(e,a);var n=new II;return n.reset(NM(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function GH(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[Bi]=e+"px "+a+"px")}var FH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function OI(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function HH(r,t,e){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=Ry(e.zrId);u.animation=!0,Ch(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=kt(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=OI(n,e);return i.replace(o,s)}}function eb(r){return J(r)?tb[r]?"cubic-bezier("+tb[r]+")":Bm(r)?r:"":""}function Ch(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof vh){var s=HH(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var Mt=OI(w,e);return Mt+" "+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-"+EI();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"};rb(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=kg(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),rb(a,t,e,!0)}}function rb(r,t,e,a){var n=JSON.stringify(r),i=e.cssStyleCache[n];i||(i=e.zrId+"-cls-"+EI(),e.cssStyleCache[n]=i,e.cssNodes["."+i+(a?":hover":"")]=r),t.class=t.class?t.class+" "+i:i}var Lu=Math.round;function NI(r){return r&&J(r.src)}function BI(r){return r&<(r.toDataURL)}function H0(r,t,e,a){kH(function(n,i){var o=n==="fill"||n==="stroke";o&&OM(i)?VI(t,r,n,a):o&&zm(i)?GI(e,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),KH(e,r,a)}function W0(r,t){var e=YN(t);e&&(e.each(function(a,n){a!=null&&(r[(Jx+n).toLowerCase()]=a+"")}),t.isSilent()&&(r[Jx+"silent"]="true"))}function ab(r){return Fn(r[0]-1)&&Fn(r[1])&&Fn(r[2])&&Fn(r[3]-1)}function $H(r){return Fn(r[4])&&Fn(r[5])}function $0(r,t,e){if(t&&!($H(t)&&ab(t))){var a=e?10:1e4;r.transform=ab(t)?"translate("+Lu(t[4]*a)/a+" "+Lu(t[5]*a)/a+")":cN(t)}}function nb(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.";er(v,g),er(h,g)}else if(v==null||h==null){var y=function(M,D){if(M){var I=M.elm,L=v||D.width,P=h||D.height;M.tag==="pattern"&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),M.attrs.width=L,M.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=Um(d,null,r,function(M){l||y(b,M),y(c,M)});m&&m.width&&m.height&&(v=v||m.width,h=h||m.height)}c=Oe("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else n.svgElement&&(c=ut(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 x=BM(n);x&&(o.patternTransform=x);var b=Oe("pattern","",o,[c]),w=F0(b),T=a.patternCache,C=T[w];C||(C=a.zrId+"-p"+a.patternIdx++,T[w]=C,o.id=C,b=a.defs[C]=Oe("pattern",C,o,[c])),t[e]=th(C)}}function jH(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]=Oe("clipPath",i,o,[zI(r,e)])}t["clip-path"]=th(i)}function sb(r){return document.createTextNode(r)}function $i(r,t,e){r.insertBefore(t,e)}function lb(r,t){r.removeChild(t)}function ub(r,t){r.appendChild(t)}function FI(r){return r.parentNode}function HI(r){return r.nextSibling}function tp(r,t){r.textContent=t}var fb=58,JH=120,QH=Oe("","");function Ey(r){return r===void 0}function wa(r){return r!==void 0}function t4(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 Hl(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function Iu(r){var t,e=r.children,a=r.tag;if(wa(a)){var n=r.elm=RI(a);if(U0(QH,r),U(e))for(t=0;ti?(d=e[l+1]==null?null:e[l+1].elm,WI(r,d,e,n,l)):xv(r,t,a,i))}function cs(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(U0(r,t),Ey(t.text)?wa(a)&&wa(n)?a!==n&&e4(e,a,n):wa(n)?(wa(r.text)&&tp(e,""),WI(e,null,n,0,n.length-1)):wa(a)?xv(e,a,0,a.length-1):wa(r.text)&&tp(e,""):r.text!==t.text&&(wa(a)&&xv(e,a,0,a.length-1),tp(e,t.text)))}function r4(r,t){if(Hl(r,t))cs(r,t);else{var e=r.elm,a=FI(e);Iu(t),a!==null&&($i(a,t.elm,HI(e)),xv(a,[r],0,0))}return t}var a4=0,n4=function(){function r(t,e,a){if(this.type="svg",this.refreshHover=cb(),this.configLayer=cb(),this.storage=e,this._opts=a=$({},a),this.root=t,this._id="zr"+a4++,this._oldVNode=Qx(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=RI("svg");U0(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",r4(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return ob(t,Ry(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=Ry(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=i4(a,n,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Oe("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=Z(kt(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(Oe("defs","defs",{},u)),t.animation){var f=BH(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=Oe("style","stl",{},[],f);o.push(c)}}return Qx(a,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},F0(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}}P.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?Hf:0),this._needsManuallyCompositing),f.__builtin__||Im("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&br&&!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]?Tt(a[t],e,!0):a[t]=e;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill=F.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}(oe);const g4=p4;function Es(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Is(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 y4=function(r){B(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=we(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=m4,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(){hn(this.childAt(0))},t.prototype.downplay=function(){dn(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):Bt(h,d,s,a),Zr(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,ae(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=Ie(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Io(e.getItemVisual(a,"symbolOffset"),n);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(a,"style"),w=b.fill;if(s instanceof qe){var T=s.style;s.useStyle($({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle($({},b)):s.useStyle(b),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;Ne(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return D?e.getName(R):Es(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 P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),ne(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=yt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Qn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Qn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Js(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t}(ft);function m4(r,t){this.parent.drift(r,t)}const Ku=y4;function rp(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 db(r){return r!=null&&!dt(r)&&(r={isIgnore:r}),r||{}}function pb(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:Ie(t),cursorStyle:t.get("cursor")}}var _4=function(){function r(t){this.group=new ft,this._SymbolCtor=t||Ku}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=db(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=pb(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(rp(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(!rp(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):Bt(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=pb(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=db(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 YI(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 x4(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 b4(r,t,e,a,n,i,o,s){for(var l=x4(r,t),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=UI(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=n||p<0)break;if(fo(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 x=p+i,b=t[x*2],w=t[x*2+1];b===y&&w===m&&g=a||fo(b,w))h=y,d=m;else{M=b-u,D=w-f;var P=y-u,R=b-y,k=m-f,N=w-m,E=void 0,z=void 0;if(s==="x"){E=Math.abs(P),z=Math.abs(R);var V=M>0?1:-1;h=y-V*E*o,d=m,I=y+V*z*o,L=m}else if(s==="y"){E=Math.abs(k),z=Math.abs(N);var H=D>0?1:-1;h=y,d=m-H*E*o,I=y,L=m+H*z*o}else E=Math.sqrt(P*P+k*k),z=Math.sqrt(R*R+N*N),C=z/(z+E),h=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=Dn(I,Ln(b,y)),L=Dn(L,Ln(w,m)),I=Ln(I,Dn(b,y)),L=Ln(L,Dn(w,m)),M=I-y,D=L-m,h=y-M*E/z,d=m-D*E/z,h=Dn(h,Ln(u,y)),d=Dn(d,Ln(f,m)),h=Ln(h,Dn(u,y)),d=Ln(d,Dn(f,m)),M=y-h,D=m-d,I=y+M*z/E,L=m+D*z/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 ZI=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),w4=function(r){B(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:F.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new ZI},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&fo(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 x=u?$c(s,h,p,y,e,f):$c(l,d,g,m,e,f);if(x>0)for(var b=0;b=0){var S=u?Ee(l,d,g,m,w):Ee(s,h,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Pt),T4=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ZI),XI=function(r){B(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 T4},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&&fo(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 M4(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=Z(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=A4(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 Us(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function D4(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 I4(r,t){return isNaN(r)||isNaN(t)}function P4(r){for(var t=r.length/2;t>0&&I4(r[t*2-2],r[t*2-1]);t--);return t-1}function Sb(r,t){return[r[t*2],r[t*2+1]]}function k4(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 jI(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=d.getState("emphasis").style;z.lineWidth=+d.style.lineWidth+1}yt(d).seriesIndex=e.seriesIndex,ne(d,k,N,E);var V=_b(e.get("smooth")),H=e.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:H,connectNulls:w}),p){var G=s.getCalculationInfo("stackedOnSeries"),Y=0;p.useStyle(ht(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(Y=_b(G.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:Y,smoothMonotone:H,connectNulls:w}),Le(p,e,"areaStyle"),yt(p).seriesIndex=e.seriesIndex,ne(p,k,N,E)}var X=this._changePolyState;s.eachItemGraphicEl(function(ot){ot&&(ot.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=s,this._coordSys=i,this._stackedOnPoints=x,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){yt(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=po(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 Ku(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 Qt.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=po(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 Qt.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;ev(this._polyline,e),a&&ev(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new w4({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 XI({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");lt(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=lt(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,x=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=n;i?(y=b.x,m=b.x+b.width,_=h.x):(y=b.y+b.height,m=b.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=lt(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(jI(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 Nt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=P4(l);f>=0&&(Ne(s,Ie(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?$I(o,h):Es(o,c)},enableTextSetter:!0},R4(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,x=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=k4(c,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!h){var I=Sb(c,C[0]);u.attr({x:I[0]+x,y:I[1]+b}),o&&(D=v.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+x,y:I[1]+b});var L=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(D=iD(n,d,L,P,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,I=Sb(c,R);o&&(D=v.getRawValue(R)),u.attr({x:I[0]+x,y:I[1]+b})}if(o){var k=Zs(u);typeof k.setLabelText=="function"&&k.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,v=b4(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=In(v.stackedOnCurrent,v.current,n,o,l),h=In(v.current,null,n,o,l),g=In(v.stackedOnNext,v.next,n,o,l),p=In(v.next,null,n,o,l)),mb(h,p)>3e3||f&&mb(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(),Bt(u,y,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Bt(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 x=_[S].cmd;if(x==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,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;J(i)?d=N4[i]:lt(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,B4))}}}}}function z4(r){r.registerChartView(O4),r.registerSeriesModel(g4),r.registerLayout(Qu("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,JI("line"))}var QI=function(r){B(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 xn(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,x=0;xg){_=(b+m)/2;break}x===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}(oe);oe.registerClass(QI);const bv=QI;var V4=function(r){B(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 xn(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=fi(bv.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:F.color.primary,borderWidth:2}},realtimeSort:!1}),t}(bv);const G4=V4;var F4=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}(),H4=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new F4},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){on(i,e,yt(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}(Qt),xb={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=np(t.x,r.x),s=ip(t.x+t.width,n),l=np(t.y,r.y),u=ip(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=ip(t.r,r.r),i=np(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}},bb={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new Lt({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?wv:ur,f=new u({shape:a,z2:1});f.name="item";var c=tP(n);if(f.calculateTextPosition=W4(c,{isRoundCap:u===wv}),i){var v=f.shape,h=n?"r":"endAngle",d={};v[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?Bt:ae)(f,{shape:d},i)}return f}};function Z4(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 wb(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?Bt:ae)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?Bt:ae)(e,{shape:u},f,n)}function Tb(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 K4(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function tP(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 Ab(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=ka(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=Ie(a);Ne(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Es(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,$4(r,g==="outside"?h:g,tP(o),a.get(["label","rotate"]))}nL(p,d,i.getRawValue(e),function(m){return $I(t,m)});var y=a.getModel(["emphasis"]);ne(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Le(r,a),K4(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function j4(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 J4=function(){function r(){}return r}(),Mb=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new J4},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 Q4(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 eP(r,t,e){if(ri(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 tW(r,t,e){var a=r.type==="polar"?ur:Lt;return new a({shape:eP(t,e,r),silent:!0,z2:0})}const eW=Y4;function rW(r){r.registerChartView(eW),r.registerSeriesModel(G4),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(eI,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,rI("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,JI("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 Ib=Math.PI*2,Yf=Math.PI/180;function aW(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=CL(a,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,v=-a.get("startAngle")*Yf,h=a.get("endAngle"),d=a.get("padAngle")*Yf;h=h==="auto"?v-Ib:-h*Yf;var p=a.get("minAngle")*Yf,g=p+d,y=0;n.each(i,function(N){!isNaN(N)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),x=a.get("roseType"),b=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=S?1:-1,C=[v,h],M=T*d/2;oh(C,!S),v=C[0],h=C[1];var D=rP(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,P=0,R=v;if(n.setLayout({viewRect:c,r:u}),n.each(i,function(N,E){var z;if(isNaN(N)){n.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:x?NaN:u});return}x!=="area"?z=m===0&&b?_:N*_:z=I/y,zz?(H=R+T*z/2,G=H):(H=R+M,G=V-M),n.setItemLayout(E,{angle:z,startAngle:H,endAngle:G,clockwise:S,cx:s,cy:l,r0:f,r:x?$t(N,w,[f,u]):u}),R=V}),Le?y:g,x=Math.abs(_.label.y-e);if(x>=S.maxY){var b=_.label.x-t-_.len2*n,w=a+_.len,T=Math.abs(b)r.unconstrainedWidth?null:v:null;a.setStyle("width",h)}nP(i,a)}}}function nP(r,t){kb.rect=r,MI(kb,t,oW)}var oW={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},kb={};function op(r){return r.position==="center"}function sW(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*nW,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=t.getItemModel(b),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),k=j(I.get("edgeDistance"),u),N=I.get("bleedMargin");N==null&&(N=Math.min(u,v)>200?10:2);var E=D.getModel("labelLine"),z=E.get("length");z=j(z,u);var V=E.get("length2");if(V=j(V,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":G>0?"left":"right"}var K=Math.PI,pt=0,xt=I.get("rotate");if(Rt(xt))pt=xt*(K/180);else if(L==="center")pt=0;else if(xt==="radial"||xt===!0){var Ct=G<0?-H+K:-H;pt=Ct}else if(xt==="tangential"&&L!=="outside"&&L!=="outer"){var Ot=Math.atan2(G,Y);Ot<0&&(Ot=K*2+Ot);var te=Y>0;te&&(Ot=K+Ot),pt=Ot-K}if(i=!!pt,C.x=X,C.y=ot,C.rotation=pt,C.setStyle({verticalAlign:"middle"}),st){C.setStyle({align:Mt});var $e=C.states.select;$e&&($e.x+=C.x,$e.y+=C.y)}else{var Xt=new gt(0,0,0,0);nP(Xt,C),e.push({label:C,labelLine:M,position:L,len:z,len2:V,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new vt(G,Y),linePoints:St,textAlign:Mt,labelDistance:P,labelAlignTo:R,edgeDistance:k,bleedMargin:N,rect:Xt,unconstrainedWidth:Xt.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:st})}}),!i&&r.get("avoidLabelOverlap")&&iW(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}(Qt);const fW=uW;function el(r,t,e){t=U(t)&&{coordDimensions:t}||$({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=Xu(a,t).dimensions,i=new sr(n,r);return i.initData(a,e),i}var cW=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 rl=cW;var vW=It(),iP=function(r){B(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 rl(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return el(this,{coordDimensions:["value"],encodeDefaulter:bt(y0,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=vW(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=jN(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){ho(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}(oe);qV({fullType:iP.type,getCoord2:function(r){return r.getShallow("center")}});const hW=iP;function dW(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!(Rt(o)&&!isNaN(o)&&o<0)})}}}function pW(r){r.registerChartView(fW),r.registerSeriesModel(hW),m2("pie",r.registerAction),r.registerLayout(bt(aW,"pie")),r.registerProcessor(tl("pie")),r.registerProcessor(dW("pie"))}var gW=function(r){B(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 xn(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:F.color.primary}},universalTransition:{divideShape:"clone"}},t}(oe);const yW=gW;var oP=4,mW=function(){function r(){}return r}(),_W=function(r){B(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 mW},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 xW=SW;var bW=function(r){B(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=Qu("").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 xW:new ju,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}(Qt);const wW=bW;var sP={left:0,right:0,top:0,bottom:0},Tv=["25%","25%"],TW=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=Do(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&Fa(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Fa(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:sP,outerBoundsContain:"all",outerBoundsClampWidth:Tv[0],outerBoundsClampHeight:Tv[1],backgroundColor:F.color.transparent,borderWidth:1,borderColor:F.color.neutral30},t}(Et);const CW=TW;var Ny=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ce).models[0]},t.type="cartesian2dAxis",t}(Et);Te(Ny,qu);var lP={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:F.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:F.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:F.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[F.color.backgroundTint,F.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:F.color.neutral00,borderColor:F.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},AW=Tt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},lP),Y0=Tt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:F.color.axisMinorSplitLine,width:1}}},lP),MW=Tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Y0),DW=ht({logBase:10},Y0);const uP={category:AW,value:Y0,time:MW,log:DW};var LW={value:1,category:1,time:1,log:1},By=null;function IW(r){By||(By=r)}function tf(){return By}function Os(r,t,e,a){A(LW,function(n,i){var o=Tt(Tt({},uP[i],!0),a,!0),s=function(l){B(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=Su(this),h=v?Do(f):{},d=c.getTheme();Tt(f,d.get(i+"Axis")),Tt(f,this.getDefaultOption()),f.type=Rb(f),v&&Fa(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Au.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=tf();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Rb)}function Rb(r){return r.type||(r.data?"category":"value")}var PW=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 Z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ut(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 kW=PW;var zy=["x","y"];function Eb(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var RW=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=zy,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!Eb(e)||!Eb(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=sa([],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 gt(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 ye(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 ye(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 gt(i,o,s,l)},t}(kW),EW=function(r){B(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}(va);const fP=EW;var Ah="expandAxisBreak",cP="collapseAxisBreak",vP="toggleAxisBreak",Z0="axisbreakchanged",OW={type:Ah,event:Z0,update:"update",refineEvent:X0},NW={type:cP,event:Z0,update:"update",refineEvent:X0},BW={type:vP,event:Z0,update:"update",refineEvent:X0};function X0(r,t,e,a){var n=[];return A(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function zW(r){r.registerAction(OW,t),r.registerAction(NW,t),r.registerAction(BW,t);function t(e,a){var n=[],i=bs(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(ht((v={},v[l]=u.componentIndex,v),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var Hn=Math.PI,VW=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],GW=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ns=It(),hP=It(),dP=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 FW(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=q0(r.axisName)&&Rs(r.nameLocation);A(a,function(d){var p=Ha(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?sa(_l,g.transform):Jv(_l),p.transform&&Ra(_l,_l,p.transform),gt.copy(Zf,p.localRect),Zf.applyTransform(_l),s?s.union(Zf):gt.copy(s=new gt(0,0,0,0),Zf))}});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 gt(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var _l=He(),Zf=new gt(0,0,0,0),pP=function(r,t,e,a,n,i){if(Rs(r.nameLocation)){var o=i.stOccupiedRect;o&&gP(mH({},o,i.transGroup.transform),a,n)}else yP(i.labelInfoList,i.dirVec,a,n)};function gP(r,t,e){var a=new vt;Th(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&Ly(t,a)}function yP(r,t,e,a){for(var n=vt.dot(a,t)>=0,i=0,o=r.length;i0?"top":"bottom",i="center"):hu(n-Hn)?(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}(),HW=["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&&(ye(f,f,u),ye(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())tf().buildAxisBreakLine(a,n,i,d);else{var p=new De($({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));Ls(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"]);J(g)&&(g=[g,g]),(J(y)||Rt(y))&&(y=[y,y]);var m=Io(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(x,b){if(g[b]!=="none"&&g[b]!=null){var w=we(g[b],-_/2,-S/2,_,S,h.stroke,!0),T=x.r+x.offset,C=v?c:f;w.attr({rotation:x.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=Nb(t,n,s);l&&Ob(r,t,e,a,n,i,o,ua.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=Nb(t,n,s);l&&Ob(r,t,e,a,n,i,o,ua.determine);var u=ZW(r,n,i,a);YW(r,t.labelLayoutList,u),XW(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(q0(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 vt(0,0),y=new vt(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=He();y.transform(si(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*Hn/180);var S,x;Rs(f)?S=co.innerTextLayout(r.rotation,_??r.rotation,c):(S=$W(r.rotation,f,_||0,d),x=r.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(S.rotation)),!isFinite(x)&&(x=null)));var b=v.getFont(),w=a.get("nameTruncate",!0)||{},T=w.ellipsis,C=Ze(r.raw.nameTruncateMaxWidth,w.maxWidth,x),M=s.nameMarginLevel||0,D=new Nt({x:g.x,y:g.y,rotation:S.rotation,silent:co.isLabelSilent(a),style:Jt(v,{text:u,font:b,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(Sn({el:D,componentModel:a,itemName:u}),D.__fullText=u,D.anid="name",a.get("triggerEvent")){var I=co.makeAxisEventDataBase(a);I.targetType="axisName",I.name=u,yt(D).eventData=I}i.add(D),D.updateTransform(),t.nameEl=D;var L=l.nameLayout=Ha({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Rs(f)?VW[M]:GW[M]});if(l.nameLocation=f,n.add(D),D.decomposeTransform(),r.shouldNameMoveOverlap&&L){var P=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,L,y,P)}}}};function Ob(r,t,e,a,n,i,o,s){_P(t)||qW(r,t,n,s,a,o);var l=t.labelLayoutList;KW(r,a,l,i),QW(a,r.rotation,l);var u=r.optionHideOverlap;UW(a,l,u),u&&DI(Ut(l,function(f){return f&&!f.label.ignore})),FW(r,e,a,l)}function $W(r,t,e,a){var n=XM(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return hu(n-Hn/2)?(o=l?"bottom":"top",i="center"):hu(n-Hn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nHn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function UW(r,t,e){if(cI(r.axis))return;function a(s,l,u){var f=Ha(t[l]),c=Ha(t[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){Wl(f.label);return}if(c.suggestIgnore){Wl(c.label);return}var v=.1;if(!e){var h=[0,0,0,0];f=Iy({marginForce:h},f),c=Iy({marginForce:h},c)}Th(f,c,null,{touchThreshold:v})&&Wl(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 YW(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=Ud(h),d=u[1]-h*o;else{var g=r.getTicks().length-1;g>o&&(h=Ud(h));var y=h*o;p=Math.ceil(u[1]/h)*h,d=_e(p-y),d<0&&u[0]>=0?(d=0,p=_e(y)):p>0&&u[1]<=0&&(p=0,d=-_e(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 zb=[[3,1],[0,2]],a$=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=zy,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=kt(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;Ty(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(ks(p,d),Ty(p)&&(s=h))}f.length&&(s||(s=f.pop(),ks(s.scale,s.model)),A(f,function(g){SP(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){Vb(a,"y",o,i)}),A(a.y,function(o){Vb(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=Pe(t,e),i=this._rect=ie(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Gy(o,i),!a){var u=o$(i,s,o,l,e),f=void 0;if(l)Fy?(Fy(this._axesList,i),Gy(o,i)):f=Hb(i.clone(),"axisLabel",null,i,o,u,n);else{var c=s$(t,i,n),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=Hb(v,h,d,i,o,u,n))}xP(i,o,ua.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]}dt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n0})==null;return mo(a,s,!0,!0,e),Gy(n,a),l;function u(v){A(n[_t[v]],function(h){if(Du(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g0&&!Qe(h)&&h>1e-4&&(v/=h),v}}function o$(r,t,e,a,n){var i=new dP(l$);return A(e,function(o){return A(o,function(s){if(Du(s.model)){var l=!a;s.axisBuilder=e$(r,t,s.model,n,i,l)}})}),i}function xP(r,t,e,a,n,i){var o=e===ua.determine;A(t,function(u){return A(u,function(f){Du(f.model)&&(r$(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[_t[1-u]]=r[xe[u]]<=i.refContainer[xe[u]]*.5?0:1-u===1?2:1}A(t,function(u,f){return A(u,function(c){Du(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function s$(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=ie(r.get("outerBounds",!0)||sP,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||wt(["all","axisLabel"],i)<0?o="all":o=i;var s=[jc(nt(r.get("outerBoundsClampWidth",!0),Tv[0]),t.width),jc(nt(r.get("outerBoundsClampHeight",!0),Tv[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var l$=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";pP(r,t,e,a,n,i),Rs(r.nameLocation)||A(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&yP(s.labelInfoList,s.dirVec,a,n)})};const u$=a$;function f$(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return c$(e,r,t),e.seriesInvolved&&h$(e,r),e}function c$(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=Pu(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(A(s.getAxes(),bt(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,bt(p,h?"cross":!0,v)),h&&A(d.otherAxes,bt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Hy(_))){y==null&&(y=_.get("triggerTooltip")),_=g?v$(m,c,n,t,g,y):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=Pu(m.model),T=y||x||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:x,useHandle:Hy(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||T;var M=d$(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 v$(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]=ut(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&&ht(u,c.textStyle)}}return r.model.getModel("axisPointer",new zt(l,e,a))}function h$(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[Pu(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 d$(r,t){for(var e=t.model,a=t.dim,n=0;n=0||r===t}function p$(r){var t=K0(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=Hy(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 w$=It();function Ub(r,t,e,a){if(r instanceof fP){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?MP(e,o,u,a):T$(r,t,e,a,o,l):e}function MP(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 T$(r,t,e,a,n,i){var o=w$(r);o.items||(o.items=[]);var s=o.items,l=Yb(s,t,e,a,n,i,1),u=Yb(s,t,e,a,n,i,-1),f=Math.abs(l-e)n/2||c&&v>c/2-a?MP(e,n,c,a):(s.push({fixedCoord:t,floatCoord:f,r:a}),f)}function Yb(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=ht({color:d.color},l));var g=Tt(ut(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(J(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else lt(f)&&(g.name=f(g.name,g));var m=new zt(g,null,this.ecModel);return Te(m,qu.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:F.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Tt({lineStyle:{color:F.color.neutral20}},Sl.axisLine),axisLabel:Xf(Sl.axisLabel,!1),axisTick:Xf(Sl.axisTick,!1),splitLine:Xf(Sl.splitLine,!0),splitArea:Xf(Sl.splitArea,!0),indicator:[]},t}(Et);const O$=E$;var N$=function(r){B(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=Z(i,function(s){var l=s.model.get("showName")?s.name:"",u=new gn(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,k,N){var E=N%k.length;return R[E]=R[E]||[],E}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,x=a.cy,b=0;b<_.length;b++){if(f){var w=m(g,d,b);g[w].push(new li({shape:{cx:S,cy:x,r:_[b].coord}}))}if(c&&b<_.length-1){var w=m(y,p,b);y[w].push(new fh({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,C=Z(n,function(R,k){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),Z(N,function(E){return a.coordToPoint(E.coord,k)})}),M=[],b=0;b<=T;b++){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(!(qb(this._zr,"globalPan")||xl(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)&&(cn(i.event),i.__ecRoamConsumed=!0,Kb(e,a,n,i,o))},t}(Xr);function xl(r){return r.__ecRoamConsumed}var X$=It();function Mh(r){var t=X$(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function bl(r,t,e,a){for(var n=Mh(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=RP(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var h=n;n=new ft,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 Lt({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=up[s];if(f&&rt(up,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=tw[s];if(h&&rt(tw,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 pu({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});kr(e,a),mr(t,a,this._defsUsePending,!1,!1),J$(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(){up={g:function(t,e){var a=new ft;return kr(e,a),mr(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new Lt;return kr(e,a),mr(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 li;return kr(e,a),mr(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 De;return kr(e,a),mr(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 t0;return kr(e,a),mr(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=aw(a));var i=new fr({shape:{points:n||[]},silent:!0});return kr(e,i),mr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=aw(a));var i=new rr({shape:{points:n||[]},silent:!0});return kr(e,i),mr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new qe;return kr(e,a),mr(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 ft;return kr(e,s),mr(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 ft;return kr(e,s),mr(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=ED(a);return kr(e,n),mr(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),tw={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 Us(t,e,a,n);return ew(r,i),rw(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 ZD(t,e,a);return ew(r,n),rw(r,n),n}};function ew(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function rw(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={};kP(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000",s=i.stopOpacity||e.getAttribute("stop-opacity");if(s){var l=gr(o),u=l&&l[3];u&&(l[3]*=Yn(s),o=Ea(l,"rgba"))}t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function kr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),ht(t.__inheritedStyle,r.__inheritedStyle))}function aw(r){for(var t=Lh(r),e=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=Lh(o);switch(n=n||He(),s){case"translate":za(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Om(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":si(n,n,-parseFloat(l[0])*fp,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*fp);Ra(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*fp);Ra(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 iw=/([^\s:;]+)\s*:\s*([^:;]+)/g;function kP(r,t,e){var a=r.getAttribute("style");if(a){iw.lastIndex=0;for(var n;(n=iw.exec(a))!=null;){var i=n[1],o=rt(Av,i)?Av[i]:null;o&&(t[o]=n[2]);var s=rt(Mv,i)?Mv[i]:null;s&&(e[s]=n[2])}}}function n8(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=at(),a=at(),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;Ne(t,Ie(a),{labelFetcher:v,labelDataIndex:c,defaultText:e},h);var d=t.getTextContent();if(d&&(EP(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 fw(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):yt(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function cw(r,t,e,a,n){r.data||Sn({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function vw(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return ne(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&Pz(t,n,e),o}function hw(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=F.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:F.color.tertiary},itemStyle:{borderWidth:.5,borderColor:F.color.border,areaColor:F.color.background},emphasis:{label:{show:!0,color:F.color.primary},itemStyle:{areaColor:F.color.highlight}},select:{label:{show:!0,color:F.color.primary},itemStyle:{color:F.color.highlight}},nameProperty:"name"},t}(oe);const A8=C8;function M8(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,_=ie(S,d),_=AL(r,_,p)}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function k8(r,t){A(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var R8=function(){function r(){this.dimensions=NP}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 yw(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=mw,u.resize(o,e)}),t.eachSeries(function(o){Uu({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",ce).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=Z(o,function(f){return f.get("nameMap")}),u=new yw(s,s,$({nameMap:Pm(l),api:e,ecModel:t},n(o[0])));u.zoomLimit=Ze.apply(null,Z(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=mw,u.resize(o[0],e),A(o,function(f){f.coordinateSystem=u,k8(u,f)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=at(),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 H8(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){$8(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=U8(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 _w(r){return arguments.length?r:X8}function $l(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function $8(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 U8(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=cp(s),i=vp(i),s&&i;){n=cp(n),o=vp(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+c-i.hierNode.prelim-u+a(s,i);v>0&&(Z8(Y8(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&&!cp(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=c-l),i&&!vp(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function cp(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function vp(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function Y8(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function Z8(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 X8(r,t){return r.parentNode===t.parentNode?1:2}var q8=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),K8=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:F.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new q8},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,x||(S=S-Math.PI));var w=x?"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"?uu(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(yt(e).focus=L),J8(n,o,f,e,d,h,p,a),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Fu||ev(e.__edge,P)}})}function J8(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 ch({shape:Uy(f,c,v,n,n)})),Bt(p,{shape:Uy(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(J(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 WP(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function n_(r,t){var e=WP(r);return wt(e,t)>=0}function Ih(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 uU=function(r){B(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 zt(n,this,this.ecModel),o=a_.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 be("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=Ih(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:F.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(oe);const fU=uU;function cU(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 vU(r,t){r.eachSeriesByType("tree",function(e){hU(e,t)})}function hU(r,t){var e=Pe(r,t).refContainer,a=ie(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=_w(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=a.width,o=a.height,s=_w());var l=r.getData().tree.root,u=l.children[0];if(u){F8(l),cU(u,H8,s),l.hierNode.modifier=-u.hierNode.prelim,Cl(u,W8);var f=u,c=u,v=u;Cl(u,function(S){var x=S.getLayout().x;xc.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),Cl(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var x=$l(y,m);S.setLayout({x:x.x,y:x.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),Cl(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),Cl(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 dU(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 pU(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=Dh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}function gU(r){r.registerChartView(Q8),r.registerSeriesModel(fU),r.registerLayout(vU),r.registerVisual(dU),pU(r)}var Tw=["treemapZoomToNode","treemapRender","treemapMove"];function yU(r){for(var t=0;t1;)i=i.parentNode;var o=fy(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var mU=function(r){B(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};UP(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new zt({itemStyle:o},this,a);i=e.levels=_U(i,a);var l=Z(i||[],function(c){return new zt(c,s,a)},this),u=a_.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 be("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=Ih(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=at(),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(){$P(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:F.size.l,top:F.size.xxxl,right:F.size.l,bottom:F.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:F.size.m,emptyItemWidth:25,itemStyle:{color:F.color.backgroundShade,textStyle:{color:F.color.secondary}},emphasis:{itemStyle:{color:F.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:F.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:F.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}(oe);function UP(r){var t=0;A(r.children,function(a){UP(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 _U(r,t){var e=qt(t.get("color")),a=qt(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;A(r,function(s){var l=new zt(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 SU=mU;var xU=8,Cw=8,hp=5,bU=function(){function r(t){this.group=new ft,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=Pe(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=ie(v,c);this._prepare(a,h,u),this._renderContent(t,h,d,s,l,u,f,n),yh(o,v,c)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=Me(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+xU*2,e.emptyItemWidth);e.totalWidth+=s+Cw,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 fr({shape:{points:wU(u,0,m,c,p===h.length-1,p===0)},style:ht(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Nt({style:Jt(o,{text:_})}),textConfig:{position:"inside"},z2:$s*1e4,onclick:bt(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Jt(s,{text:_}),S.ensureState("emphasis").style=d,ne(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),TU(S,t,y),u+=m+Cw}},r.prototype.remove=function(){this.group.removeAll()},r}();function wU(r,t,e,a,n,i){var o=[[n?r:r-hp,t],[r+e,t],[r+e,t+a],[n?r:r-hp,t+a]];return!i&&o.splice(2,0,[r+e+hp,t+a/2]),!n&&o.push([r,t+a/2]),o}function TU(r,t,e){yt(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&&Ih(e,t)}}const CU=bU;var AU=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;nMw||Math.abs(e.dy)>Mw)){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 gt(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=He();za(g,g,[-a,-n]),Om(g,g,[d,d]),za(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&&iv(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 CU(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(n_(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Al(),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}(Qt);function Al(){return{nodeGroup:[],background:[],content:[]}}function kU(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,x=_&&_.length,b=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),M=b.get("borderRadius")||0,D=ot("nodeGroup",Yy);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),Dv(D).nodeWidth=h,Dv(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=ot("background",Aw,u,LU);I&&V(D,I,x&&f.upperLabelHeight);var L=v.getModel("emphasis"),P=L.get("focus"),R=L.get("blurScope"),k=L.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)yu(D)&&qi(D,!1),I&&(qi(I,!k),c.setItemGraphicEl(o.dataIndex,I),Jg(I,N,R));else{var E=ot("content",Aw,u,IU);E&&H(D,E),I.disableMorphing=!0,I&&yu(I)&&qi(I,!1),qi(D,!k),c.setItemGraphicEl(o.dataIndex,D);var z=v.getShallow("cursor");z&&E.attr("cursor",z),Jg(D,N,R)}return D;function V(st,et,it){var tt=yt(et);if(tt.dataIndex=o.dataIndex,tt.seriesIndex=r.seriesIndex,et.setShape({x:0,y:0,width:h,height:d,r:M}),g)G(et);else{et.invisible=!1;var O=o.getVisual("style"),W=O.stroke,q=Iw(b);q.fill=W;var K=Vi(w);K.fill=w.get("borderColor");var pt=Vi(T);pt.fill=T.get("borderColor");var xt=Vi(C);if(xt.fill=C.get("borderColor"),it){var Ct=h-2*p;Y(et,W,O.opacity,{x:p,y:0,width:Ct,height:S})}else et.removeTextContent();et.setStyle(q),et.ensureState("emphasis").style=K,et.ensureState("blur").style=pt,et.ensureState("select").style=xt,yo(et)}st.add(et)}function H(st,et){var it=yt(et);it.dataIndex=o.dataIndex,it.seriesIndex=r.seriesIndex;var tt=Math.max(h-2*p,0),O=Math.max(d-2*p,0);if(et.culling=!0,et.setShape({x:p,y:p,width:tt,height:O,r:M}),g)G(et);else{et.invisible=!1;var W=o.getVisual("style"),q=W.fill,K=Iw(b);K.fill=q,K.decal=W.decal;var pt=Vi(w),xt=Vi(T),Ct=Vi(C);Y(et,q,W.opacity,null),et.setStyle(K),et.ensureState("emphasis").style=pt,et.ensureState("blur").style=xt,et.ensureState("select").style=Ct,yo(et)}st.add(et)}function G(st){!st.invisible&&i.push(st)}function Y(st,et,it,tt){var O=v.getModel(tt?Lw:Dw),W=Me(v.get("name"),null),q=O.getShallow("show");Ne(st,Ie(v,tt?Lw:Dw),{defaultText:q?W:null,inheritColor:et,defaultOpacity:it,labelFetcher:r,labelDataIndex:o.dataIndex});var K=st.getTextContent();if(K){var pt=K.style,xt=Kv(pt.padding||0);tt&&(st.setTextConfig({layoutRect:tt}),K.disableLabelLayout=!0),K.beforeUpdate=function(){var Ot=Math.max((tt?tt.width:st.shape.width)-xt[1]-xt[3],0),te=Math.max((tt?tt.height:st.shape.height)-xt[0]-xt[2],0);(pt.width!==Ot||pt.height!==te)&&K.setStyle({width:Ot,height:te})},pt.truncateMinChar=2,pt.lineOverflow="truncate",X(pt,tt,f);var Ct=K.getState("emphasis");X(Ct?Ct.style:null,tt,f)}}function X(st,et,it){var tt=st?st.text:null;if(!et&&it.isLeafRoot&&tt!=null){var O=r.get("drillDownIcon",!0);st.text=O?O+" "+tt:tt}}function ot(st,et,it,tt){var O=m!=null&&e[st][m],W=n[st];return O?(e[st][m]=null,St(W,O)):g||(O=new et,O instanceof Yr&&(O.z2=RU(it,tt)),Mt(W,O)),t[st][y]=O}function St(st,et){var it=st[y]={};et instanceof Yy?(it.oldX=et.x,it.oldY=et.y):it.oldShape=$({},et.shape)}function Mt(st,et){var it=st[y]={},tt=o.parentNode,O=et instanceof ft;if(tt&&(!a||a.direction==="drillDown")){var W=0,q=0,K=n.background[tt.getRawIndex()];!a&&K&&K.oldShape&&(W=K.oldShape.width,q=K.oldShape.height),O?(it.oldX=0,it.oldY=q):it.oldShape={x:W,y:q,width:0,height:0}}it.fadein=!O}}function RU(r,t){return r*DU+t}const EU=PU;var Ru=A,OU=dt,Lv=-1,i_=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=ut(t);this.type=a,this.mappingMethod=e,this._normalizeData=zU[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(dp(n),NU(n)):e==="category"?n.categories?BU(n):dp(n,!0):(er(e!=="linear"||n.dataExtent),dp(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return Q(this._normalizeData,this)},r.listVisualTypes=function(){return kt(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){dt(t)?A(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=U(t)?[]:dt(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&&Ru(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(OU(t)){var e=[];Ru(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 dp(r,t){var e=r.visual,a=[];dt(e)?Ru(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]),YP(r,a)}function Kf(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Zy([0,1])}}function Pw(r){var t=this.option.visual;return t[Math.round($t(r,[0,1],[0,t.length-1],!0))]||{}}function Ml(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Ul(r){var t=this.option.visual;return t[this.option.loop&&r!==Lv?r%t.length:r]}function Gi(){return this.option.visual[0]}function Zy(r){return{linear:function(t){return $t(t,r,this.option.visual,!0)},category:Ul,piecewise:function(t,e){var a=Xy.call(this,e);return a==null&&(a=$t(t,r,this.option.visual,!0)),a},fixed:Gi}}function Xy(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=i_.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function YP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Z(t,function(e){var a=gr(e);return a||[0,0,0,1]})),t}var zU={linear:function(r){return $t(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=i_.findPieceIndex(r,t,!0);if(e!=null)return $t(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Lv},fixed:ge};function jf(r,t,e){return r?t<=e:t=e.length||p===e[p.depth]){var y=$U(n,l,p,g,d,a);XP(p,y,e,a)}})}}}function FU(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 kw(r){var t=pp(r,"color");if(t){var e=pp(r,"colorAlpha"),a=pp(r,"colorSaturation");return a&&(t=Zn(t,null,null,a)),e&&(t=Uc(t,e)),t}}function HU(r,t){return t!=null?Zn(t,null,null,r):null}function pp(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=gp(t,"color")||n.color!=null&&n.color!=="none"&&(gp(t,"colorAlpha")||gp(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 Xe(c);return ZP(v).drColorMappingBy=f,v}}}function gp(r,t){var e=r.get(t);return U(e)&&e.length?{name:t,range:e}:null}function $U(r,t,e,a,n,i){var o=$({},t);if(n){var s=n.type,l=s==="color"&&ZP(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 Eu=Math.max,Iv=Math.min,Rw=Ze,o_=A,qP=["itemStyle","borderWidth"],UU=["itemStyle","gapWidth"],YU=["upperLabel","show"],ZU=["upperLabel","height"];const XU={seriesType:"treemap",reset:function(r,t,e,a){var n=r.option,i=Pe(r,e).refContainer,o=ie(r.getBoxLayoutParams(),i),s=n.size||[],l=j(Rw(o.width,s[0]),i.width),u=j(Rw(o.height,s[1]),i.height),f=a&&a.type,c=["treemapZoomToNode","treemapRootToNode"],v=ku(a,c,r),h=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),p=WP(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?t6(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(_),KP(d,m,!1,0),_=d.getLayout(),o_(p,function(x,b){var w=(p[b+1]||d).getValue();x.setLayout($({dataExtent:[w,w],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(e6(o,h,v),!0),r.setLayoutInfo(o),jP(S,new gt(-o.x,-o.y,e.getWidth(),e.getHeight()),p,d,0)}};function KP(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(qP),u=s.get(UU)/2,f=JP(s),c=Math.max(l,f),v=l-u,h=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),n=Eu(n-2*v,0),i=Eu(i-v-h,0);var d=n*i,p=qU(r,s,d,t,e,a);if(p.length){var g={x:v,y:h,width:n,height:i},y=Iv(n,i),m=1/0,_=[];_.area=0;for(var S=0,x=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 QU(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?Eu(u*a/l,l/(u*n)):1/0}function Ew(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;cN1&&(u=N1),i=s}ua&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(x[0]=-x[0],x[1]=-x[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=b[0],i.y=b[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}(ft);const f_=_6;var S6=function(){function r(t){this.group=new ft,this._LineCtor=t||f_}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=Gw(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=Gw(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!x6(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n0}function Gw(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:Ie(t)}}function Fw(r){return isNaN(r[0])||isNaN(r[1])}function xp(r){return r&&!Fw(r[0])&&!Fw(r[1])}const c_=S6;var bp=[],wp=[],Tp=[],es=Fe,Cp=ao,Hw=Math.abs;function Ww(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){bp[0]=es(a[0],n[0],i[0],f),bp[1]=es(a[1],n[1],i[1],f);var c=Hw(Cp(bp,t)-l);c=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Ap(r,t){var e=[],a=fu,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=[nn(u[0]),nn(u[1])],u[2]&&u.__original.push(nn(u[2])));var v=u.__original;if(u[2]!=null){if(nr(n[0],v[0]),nr(n[1],v[2]),nr(n[2],v[1]),f&&f!=="none"){var h=Zl(s.node1),d=Ww(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=Zl(s.node2),d=Ww(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]}nr(u[0],n[0]),nr(u[1],n[2]),nr(u[2],n[1])}else{if(nr(i[0],v[0]),nr(i[1],v[1]),Zi(o,i[1],i[0]),Fs(o,o),f&&f!=="none"){var h=Zl(s.node1);mg(i[0],i[0],o,h*t)}if(c&&c!=="none"){var h=Zl(s.node2);mg(i[1],i[1],o,-h*t)}nr(u[0],i[0]),nr(u[1],i[1])}})}var ik=It();function b6(r){if(r)return ik(r).bridge}function $w(r,t){r&&(ik(r).bridge=t)}function Uw(r){return r.type==="view"}var w6=function(r){B(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 ju,i=new c_,o=this.group,s=new ft;this._controller=new Eo(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(Uw(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(c):Bt(this._mainGroup,c,e)}Ap(e.getGraph(),Yl(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 x=S.dataIndex,b=S.getGraphicEl(),w=S.getModel();if(b){b.off("drag").off("dragend");var T=w.get("draggable");T&&b.on("drag",function(M){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(x),v.setItemLayout(x,[b.x,b.y]);break;case"circular":v.setItemLayout(x,[b.x,b.y]),S.setLayout({fixed:!0},!0),u_(e,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(e);break;case"none":default:v.setItemLayout(x,[b.x,b.y]),l_(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),b.setDraggable(T,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(yt(b).focus=S.getAdjacentDataIndices())}}),v.graph.eachEdge(function(S){var x=S.getGraphicEl(),b=S.getModel().get(["emphasis","focus"]);x&&b==="adjacency"&&(yt(x).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){rk(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(!Uw(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&&(J0(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,a,n){this._active&&(Q0(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),Ap(e.getGraph(),Yl(e)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=Yl(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(Ap(e.getGraph(),Yl(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=b6(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 ft,l=n.group.children(),u=i.group.children(),f=new ft,c=new ft;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 Fi||(e=this._nodesMap[rs(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}(),ok=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=at(),e=at();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 sk(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)}}}Te(Fi,sk("hostGraph","data"));Te(ok,sk("hostGraph","edgeData"));const A6=C6;function v_(r,t,e,a,n){for(var i=new A6(a),o=0;o "+v)),u++)}var h=e.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=xn(r,e);else{var p=Yu.get(h),g=p?p.dimensions||[]:[];wt(g,"value")<0&&g.concat(["value"]);var y=Xu(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new sr(y,e),d.initData(r)}var m=new sr(["value"],e);return m.initData(l,s),n&&n(d,m),FP({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var M6=function(r){B(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 rl(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),ho(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){l6(this);var s=v_(i,n,this,!0,l);return A(s.edges,function(u){u6(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=zt.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),be("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=l2({series:this,dataIndex:e,multipleSeries:a});return c},t.prototype._updateCategoriesData=function(){var e=Z(this.option.categories||[],function(n){return n.value!=null?n:$({value:0},n)}),a=new sr(["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:F.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:F.color.primary}}},t}(oe);const D6=M6;function L6(r){r.registerChartView(T6),r.registerSeriesModel(D6),r.registerProcessor(a6),r.registerVisual(n6),r.registerVisual(i6),r.registerLayout(f6),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,v6),r.registerLayout(d6),r.registerCoordinateSystem("graphView",{dimensions:Oo.dimensions,create:g6}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ge),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ge),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=Dh(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var I6=function(r){B(t,r);function t(e,a,n){var i=r.call(this)||this;yt(i).dataType="node",i.z2=2;var o=new Nt;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=$(ka(u.getModel("itemStyle"),c,!0),c),h=this;if(isNaN(v.startAngle)){h.setShape(v);return}i?h.setShape(v):Bt(h,{shape:v},l,a);var d=$(ka(u.getModel("itemStyle"),c,!0),c);o.setShape(d),o.useStyle(e.getItemVisual(a,"style")),Le(o,u),this._updateLabel(l,u,s),e.setItemGraphicEl(a,h),Le(h,u,"itemStyle");var p=f.get("focus");ne(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=Ie(a),v=n.getVisual("style");Ne(i,c,{labelFetcher:{getFormattedLabel:function(m,_,S,x,b,w){return e.getFormattedLabel(m,_,"node",x,Cr(b,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}(ur);const Yw=I6;var P6=function(r){B(t,r);function t(e,a,n,i){var o=r.call(this)||this;return yt(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=$(ka(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),Zw(g,l,e,v)):(Zr(g),Zw(g,l,e,v),Bt(g,{shape:p},s,n)),ne(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),Le(g,c,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g)},t}(Pt);function Zw(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(J(l)&&J(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 Us(c,v,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var k6=Math.PI/180,R6=function(r){B(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")*k6;if(i.diff(o).add(function(f){var c=i.getItemLayout(f);if(c){var v=new Yw(i,f,l);yt(v).dataIndex=f,s.add(v)}}).update(function(f,c){var v=o.getItemGraphicEl(c),h=i.getItemLayout(f);if(!h){v&&on(v,e,c);return}v?v.updateData(i,f,l):v=new Yw(i,f,l),s.add(v)}).remove(function(f){var c=o.getItemGraphicEl(f);c&&on(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()),ae(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 P6(n,i,l,a);yt(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&&on(u,e,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type="chord",t}(Qt);const E6=R6;var O6=function(r){B(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 rl(Q(this.getData,this),Q(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=v_(i,n,this,!0,s);return o.data}function s(l,u){var f=zt.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),be("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return be("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}(oe);const N6=O6;var Mp=Math.PI/180;function B6(r,t){r.eachSeriesByType("chord",function(e){z6(e,t)})}function z6(r,t){var e=r.getData(),a=e.graph,n=r.getEdgeData(),i=n.count();if(i){var o=CL(r,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=Math.max((r.get("padAngle")||0)*Mp,0),v=Math.max((r.get("minAngle")||0)*Mp,0),h=-r.get("startAngle")*Mp,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];oh(y,!p);var m=y[0],_=y[1],S=_-m,x=e.getSum("value")===0&&n.getSum("value")===0,b=[],w=0;a.eachEdge(function(E){var z=x?1:E.getValue("value");x&&(z>0||v)&&(w+=2);var V=E.node1.dataIndex,H=E.node2.dataIndex;b[V]=(b[V]||0)+z,b[H]=(b[H]||0)+z});var T=0;if(a.eachNode(function(E){var z=E.getValue("value");isNaN(z)||(b[E.dataIndex]=Math.max(z,b[E.dataIndex]||0)),!x&&(b[E.dataIndex]>0||v)&&w++,T+=b[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 z=b[E.dataIndex]||0,V=C*(T?z:1)*g;Math.abs(V)D){var P=M/D;a.eachNode(function(E){var z=E.getLayout().angle;Math.abs(z)>=v?E.setLayout({angle:z*P,ratio:P},!0):E.setLayout({angle:v,ratio:v===0?1:z/v},!0)})}else a.eachNode(function(E){if(!L){var z=E.getLayout().angle,V=Math.min(z/I,1),H=V*M;z-Hv&&v>0){var V=L?1:Math.min(z/I,1),H=z-v,G=Math.min(H,Math.min(R,M*V));R-=G,E.setLayout({angle:z-G,ratio:(z-G)/z},!0)}else v>0&&E.setLayout({angle:v,ratio:z===0?1:v/z},!0)}});var k=m,N=[];a.eachNode(function(E){var z=Math.max(E.getLayout().angle,v);E.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:k,endAngle:k+z*g,clockwise:p},!0),N[E.dataIndex]=k,k+=(z+c)*g}),a.eachEdge(function(E){var z=x?1:E.getValue("value"),V=C*(T?z:1)*g,H=E.node1.dataIndex,G=N[H]||0,Y=Math.abs((E.node1.getLayout().ratio||1)*V),X=G+Y*g,ot=[s+f*Math.cos(G),l+f*Math.sin(G)],St=[s+f*Math.cos(X),l+f*Math.sin(X)],Mt=E.node2.dataIndex,st=N[Mt]||0,et=Math.abs((E.node2.getLayout().ratio||1)*V),it=st+et*g,tt=[s+f*Math.cos(st),l+f*Math.sin(st)],O=[s+f*Math.cos(it),l+f*Math.sin(it)];E.setLayout({s1:ot,s2:St,sStartAngle:G,sEndAngle:X,t1:tt,t2:O,tStartAngle:st,tEndAngle:it,cx:s,cy:l,r:f,value:z,clockwise:p}),N[H]=X,N[Mt]=it})}}}function V6(r){r.registerChartView(E6),r.registerSeriesModel(N6),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,B6),r.registerProcessor(tl("chord"))}var G6=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),F6=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new G6},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}(Pt);const H6=F6;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 Qf(r,t){var e=r==null?"":r+"";return t&&(J(t)?e=t.replace("{value}",e):lt(t)&&(e=t(r))),e}var $6=function(r){B(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?wv:ur,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];oh(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;d&&x=C&&(M===0?0:i[M-1][0])Math.PI/2&&(X+=Math.PI)):Y==="tangential"?X=-T-Math.PI/2:Rt(Y)&&(X=Y*Math.PI/180),X===0?c.add(new Nt({style:Jt(_,{text:z,x:H,y:G,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:V}),silent:!0})):c.add(new Nt({style:Jt(_,{text:z,x:H,y:G,verticalAlign:"middle",align:"center"},{inheritColor:V}),silent:!0,originX:H,originY:G,rotation:X}))}if(m.get("show")&&k!==S){var N=m.get("distance");N=N?N+f:f;for(var ot=0;ot<=x;ot++){P=Math.cos(T),R=Math.sin(T);var St=new De({shape:{x1:P*(d-N)+v,y1:R*(d-N)+h,x2:P*(d-w-N)+v,y2:R*(d-w-N)+h},silent:!0,style:I});I.stroke==="auto"&&St.setStyle({stroke:i((k+ot/x)/S)}),c.add(St),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"),x=+e.get("max"),b=[S,x],w=[s,l];function T(M,D){var I=m.getItemModel(M),L=I.getModel("pointer"),P=j(L.get("width"),o.r),R=j(L.get("length"),o.r),k=e.get(["pointer","icon"]),N=L.get("offsetCenter"),E=j(N[0],o.r),z=j(N[1],o.r),V=L.get("keepAspect"),H;return k?H=we(k,E-P/2,z-R,P,R,null,V):H=new H6({shape:{angle:-Math.PI/2,width:P,r:R,x:E,y:z}}),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?wv:ur,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),k=P?o.r-R:o.r-(M+1)*R,N=P?o.r:o.r-M*R,E=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:N}});return P&&(E.z2=$t(m.get(_,M),[S,x],[100,0],!0)),E}(y||p)&&(m.diff(v).add(function(M){var D=m.get(_,M);if(p){var I=T(M,s);ae(I,{rotation:-((isNaN(+D)?w[0]:$t(D,b,w,!0))+Math.PI/2)},e),c.add(I),m.setItemGraphicEl(M,I)}if(y){var L=C(M,s),P=g.get("clip");ae(L,{shape:{endAngle:$t(D,b,w,P)}},e),c.add(L),Xg(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),P=L?L.rotation:s,R=T(M,P);R.rotation=P,Bt(R,{rotation:-((isNaN(+I)?w[0]:$t(I,b,w,!0))+Math.PI/2)},e),c.add(R),m.setItemGraphicEl(M,R)}if(y){var k=h[D],N=k?k.shape.endAngle:s,E=C(M,N),z=g.get("clip");Bt(E,{shape:{endAngle:$t(I,b,w,z)}},e),c.add(E),Xg(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"),P=I.get("blurScope"),R=I.get("disabled");if(p){var k=m.getItemGraphicEl(M),N=m.getItemVisual(M,"style"),E=N.fill;if(k instanceof qe){var z=k.style;k.useStyle($({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},N))}else k.useStyle(N),k.type!=="pointer"&&k.setColor(E);k.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",i($t(m.get(_,M),b,[0,1],!0))),k.z2EmphasisLift=0,Le(k,D),ne(k,L,P,R)}if(y){var V=d[M];V.useStyle(m.getItemVisual(M,"style")),V.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),V.z2EmphasisLift=0,Le(V,D),ne(V,L,P,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=we(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 ft,h=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Nt({silent:!0}),d[y]=new Nt({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 ft,x=i($t(_,[f,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.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:Jt(b,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),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),P=o.cy+j(I[1],o.r),R=j(D.get("width"),o.r),k=j(D.get("height"),o.r),N=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,M=d[y],E=D.get("formatter");M.attr({z2:g?0:2,style:Jt(D,{x:L,y:P,text:Qf(_,E),width:isNaN(R)?null:R,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:N})}),nL(M,{normal:D},_,function(V){return Qf(V,E)}),p&&iL(M,y,l,e,{getFormattedLabel:function(V,H,G,Y,X,ot){return Qf(ot?ot.interpolatedValue:_,E)}}),S.add(M)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(Qt);const U6=$6;var Y6=function(r){B(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 el(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,F.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:F.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:F.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:F.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:F.color.neutral00,borderWidth:0,borderColor:F.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:F.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:F.color.transparent,borderWidth:0,borderColor:F.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:F.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(oe);const Z6=Y6;function X6(r){r.registerChartView(U6),r.registerSeriesModel(Z6)}var q6=["itemStyle","opacity"],K6=function(r){B(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new rr,s=new Nt;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(q6);f=f??1,n||Zr(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,ae(i,{style:{opacity:f}},o,a)):Bt(i,{style:{opacity:f},shape:{points:l.points}},o,a),Le(i,s),this._updateLabel(e,a),ne(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;Ne(o,Ie(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 vt(g[0][0],g[0][1]):null},Bt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),V0(n,G0(l),{stroke:v})},t}(fr),j6=function(r){B(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 K6(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);on(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}(Qt);const J6=j6;var Q6=function(r){B(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 rl(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return el(this,{coordDimensions:["value"],encodeDefaulter:bt(y0,this)})},t.prototype._defaultLabelLine=function(e){ho(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:F.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:F.color.primary}}},t}(oe);const tY=Q6;function eY(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();oSY)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||!Lp(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 Lp(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const wY=xY;var TY=function(r){B(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&&Tt(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=Ut(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}(Et);const CY=TY;var AY=function(r){B(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}(va);const MY=AY;function ai(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=as(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=as(s,[0,o]),n=i=as(s,[n,i]),a=0}t[0]=as(t[0],e),t[1]=as(t[1],e);var l=Ip(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=as(t[a],f);var c;return c=Ip(t,a),n!=null&&(c.sign!==l.sign||c.spani&&(t[1-a]=t[a]+c.sign*i),t}function Ip(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 as(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Pp=A,uk=Math.min,fk=Math.max,Kw=Math.floor,DY=Math.ceil,jw=_e,LY=Math.PI,IY=function(){function r(t,e,a){this.type="parallel",this._axesMap=at(),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;Pp(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new MY(o,wh(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();Pp(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),ks(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){var a=Pe(t,e).refContainer;this._rect=ie(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=tc(t.get("axisExpandWidth"),l),c=tc(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=tc(h[1]-h[0],l),h[1]=h[0]+d;else{d=tc(f*(c-1),l);var p=t.get("axisExpandCenter")||Kw(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[Kw(jw(h[0]/f,1))+1,DY(jw(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])}),Pp(a,function(o,s){var l=(n.axisExpandable?kY:PY)(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=He();si(h,h,v),za(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?ai(l,n,o,"all"):u="none";else{var h=n[1]-n[0],d=o[1]*s/h;n=[fk(0,d-h/2)],n[1]=uk(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function tc(r,t){return uk(fk(r,t[0]),t[1])}function PY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function kY(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--)$r(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;iVY}function yk(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function mk(r,t,e,a){var n=new ft;return n.add(new Lt({name:"main",style:g_(e),silent:!0,draggable:!0,cursor:"move",drift:bt(eT,r,t,n,["n","s","w","e"]),ondragend:bt(bo,t,{isEnd:!0})})),A(a,function(i){n.add(new Lt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:bt(eT,r,t,n,i),ondragend:bt(bo,t,{isEnd:!0})}))}),n}function _k(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=Bs(n,GY),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;ja(r,t,"main",o,s,d,p),a.transformable&&(ja(r,t,"w",l,u,i,y),ja(r,t,"e",v,u,i,y),ja(r,t,"n",l,u,g,i),ja(r,t,"s",l,h,g,i),ja(r,t,"nw",l,u,i,i),ja(r,t,"ne",v,u,i,i),ja(r,t,"sw",l,h,i,i),ja(r,t,"se",v,h,i,i))}function Qy(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(g_(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?tm(r,i[0]):ZY(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?HY[s]+"-resize":null})})}function ja(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(qY(y_(r,t,[[a,n],[a+i,n+o]])))}function g_(r){return ht({strokeNoScale:!0},r.brushStyle)}function Sk(r,t,e,a){var n=[Nu(r,e),Nu(t,a)],i=[Bs(r,e),Bs(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function YY(r){return lo(r.group)}function tm(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=hh(e[t],YY(r));return a[n]}function ZY(r,t){var e=[tm(r,t[0]),tm(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function eT(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=xk(t,n,i);A(a,function(u){var f=FY[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Sk(s[0][0],s[1][0],s[0][1],s[1][1])),h_(t,e),bo(t,{isEnd:!1})}function XY(r,t,e,a){var n=t.__brushOption.range,i=xk(r,e,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),h_(r,t),bo(r,{isEnd:!1})}function xk(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 y_(r,t,e){var a=gk(r,t);return a&&a!==xo?a.clipPath(e,r._transform):ut(e)}function qY(r){var t=Nu(r[0][0],r[1][0]),e=Nu(r[0][1],r[1][1]),a=Bs(r[0][0],r[1][0]),n=Bs(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function KY(r,t,e){if(!(!r._brushType||JY(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=p_(r,t,e);if(!r._dragging)for(var o=0;oa.getWidth()||e<0||e>a.getHeight()}var kh={lineX:nT(0),lineY:nT(1),rect:{createCover:function(r,t){function e(a){return a}return mk({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=yk(r);return Sk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){_k(r,t,e,a)},updateCommon:Qy,contain:rm},polygon:{createCover:function(r,t){var e=new ft;return e.add(new rr({name:"main",style:g_(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new fr({name:"main",draggable:!0,drift:bt(XY,r,t),ondragend:bt(bo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:y_(r,t,e)})},updateCommon:Qy,contain:rm}};function nT(r){return{createCover:function(t,e){return mk({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=yk(t),a=Nu(e[0][r],e[1][r]),n=Bs(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=gk(t,e);if(o!==xo&&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(),_k(t,e,l,n)},updateCommon:Qy,contain:rm}}const m_=$Y;function wk(r){return r=__(r),function(t){return QD(t,r)}}function Tk(r,t){return r=__(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 Ck(r,t,e){var a=__(r);return function(n,i){return a.contain(i[0],i[1])&&!DP(n,t,e)}}function __(r){return gt.create(r)}var QY=function(r){B(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 m_(a.getZr())).on("brush",Q(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!t7(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ft,this.group.add(this._axisGroup),!!e.get("show")){var s=r7(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 gn(e,n,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,e,s,f,n),Hu(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=gt.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:wk(c),isTargetByCursor:Ck(c,s,i),getLinearBrushOtherExtent:Tk(c,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(e7(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=Z(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}(le);function t7(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function e7(r){var t=r.axis;return Z(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function r7(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const a7=QY;var n7={type:"axisAreaSelect",event:"axisAreaSelected"};function i7(r){r.registerAction(n7,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 o7={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ak(r){r.registerComponentView(wY),r.registerComponentModel(CY),r.registerCoordinateSystem("parallel",NY),r.registerPreprocessor(yY),r.registerComponentModel(Jw),r.registerComponentView(a7),Os(r,"parallel",Jw,o7),i7(r)}function s7(r){At(Ak),r.registerChartView(uY),r.registerSeriesModel(hY),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,gY)}var l7=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}(),u7=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new l7},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(){hn(this)},t.prototype.downplay=function(){dn(this)},t}(Pt),f7=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new ft,e._focusAdjacencyDisabled=!1,e}return t.prototype.init=function(e,a){this._controller=new Eo(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),LP(e,n,s,this._controller,this._controllerHost,null),o.eachEdge(function(d){var p=new u7,g=yt(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(),x=d.node1.getModel(),b=x.get("localX"),w=x.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),M=C.get("localX"),D=C.get("localY"),I=d.getLayout(),L,P,R,k,N,E,z,V;p.shape.extent=Math.max(1,I.dy),p.shape.orient=h,h==="vertical"?(L=(b!=null?b*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,R=(M!=null?M*u:T.x)+I.ty,k=D!=null?D*f:T.y,N=L,E=P*(1-_)+k*_,z=R,V=P*_+k*(1-_)):(L=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,R=M!=null?M*u:T.x,k=(D!=null?D*f:T.y)+I.ty,N=L*(1-_)+R*_,E=P,z=L*_+R*(1-_),V=k),p.setShape({x1:L,y1:P,x2:R,y2:k,cpx1:N,cpy1:E,cpx2:z,cpy2:V}),p.useStyle(m.getItemStyle()),iT(p.style,h,d);var H=""+y.get("value"),G=Ie(y,"edgeLabel");Ne(p,G,{labelFetcher:{getFormattedLabel:function(ot,St,Mt,st,et,it){return e.getFormattedLabel(ot,St,"edge",st,Cr(et,G.normal&&G.normal.get("formatter"),H),it)}},labelDataIndex:d.dataIndex,defaultText:H}),p.setTextConfig({position:"inside"});var Y=y.getModel("emphasis");Le(p,y,"lineStyle",function(ot){var St=ot.getItemStyle();return iT(St,h,d),St}),s.add(p),v.setItemGraphicEl(d.dataIndex,p);var X=Y.get("focus");ne(p,X==="adjacency"?d.getAdjacentDataIndices():X==="trajectory"?d.getTrajectoryDataIndices():X,Y.get("blurScope"),Y.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,x=new Lt({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});Ne(x,Ie(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),x.disableLabelAnimation=!0,x.setStyle("fill",d.getVisual("color")),x.setStyle("decal",d.getVisual("style").decal),Le(x,g),s.add(x),c.setItemGraphicEl(d.dataIndex,x),yt(x).dataType="node";var b=_.get("focus");ne(x,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,_.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(c7(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 Oo(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}(Qt);function iT(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");J(a)&&J(n)&&(r.fill=new Us(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function c7(r,t,e){var a=new Lt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ae(a,{shape:{width:r.width+20}},t,e),a}const v7=f7;var h7=function(r){B(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 zt(o[l],this,a));var u=v_(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 be("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 be("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:F.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:F.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(oe);const d7=h7;function p7(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=Pe(e,t).refContainer,o=ie(e.getBoxLayoutParams(),i);e.layoutInfo=o;var s=o.width,l=o.height,u=e.getGraph(),f=u.nodes,c=u.edges;y7(f);var v=Ut(f,function(g){return g.getLayout().value===0}),h=v.length!==0?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");g7(f,c,a,n,s,l,h,d,p)})}function g7(r,t,e,a,n,i,o,s,l){m7(r,t,e,n,i,s,l),b7(r,t,i,n,a,o,s),P7(r,s)}function y7(r){A(r,function(t){var e=jn(t.outEdges,Pv),a=jn(t.inEdges,Pv),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function m7(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"&&_7(r,o,i,w);var T=i==="vertical"?(n-e)/w:(a-e)/w;x7(r,T,i)}function Mk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function _7(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,C7(s,l,o),kp(s,n,e,a,o),I7(s,l,o),kp(s,n,e,a,o)}function w7(r,t){var e=[],a=t==="vertical"?"y":"x",n=Wg(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 T7(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 C7(r,t,e){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=jn(n.outEdges,A7,e)/jn(n.outEdges,Pv);if(isNaN(i)){var o=n.outEdges.length;i=o?jn(n.outEdges,M7,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-ni(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-ni(n,e))*t;n.setLayout({y:l},!0)}}})})}function A7(r,t){return ni(r.node2,t)*r.getValue()}function M7(r,t){return ni(r.node2,t)}function D7(r,t){return ni(r.node1,t)*r.getValue()}function L7(r,t){return ni(r.node1,t)}function ni(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Pv(r){return r.getValue()}function jn(r,t,e){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),A(a,function(s){var l=new Xe({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 R7(r){r.registerChartView(v7),r.registerSeriesModel(d7),r.registerLayout(p7),r.registerVisual(k7),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=Dh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}var Dk=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,x){var b;U(S)?(b=S.slice(),S.unshift(x)):U(S.value)?(b=$({},S),b.value=b.value.slice(),S.value.unshift(x)):b=S,y.push(b)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:hv(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:hv(p),dimsDef:m.slice()}];return el(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:bt(RL,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),Lk=function(r){B(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:F.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:F.color.shadow}},animationDuration:800},t}(oe);Te(Lk,Dk,!0);const E7=Lk;var O7=function(r){B(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=oT(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?(Zr(c),Ik(v,c,i,u)):c=oT(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}(Qt),N7=function(){function r(){}return r}(),B7=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new N7},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 U7={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==We){var a="";Ht(a)}var n=$7(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function Y7(r){r.registerSeriesModel(E7),r.registerChartView(V7),r.registerLayout(G7),r.registerTransform(U7)}var Z7=["itemStyle","borderColor"],X7=["itemStyle","borderColor0"],q7=["itemStyle","borderColorDoji"],K7=["itemStyle","color"],j7=["itemStyle","color0"];function S_(r,t){return t.get(r>0?K7:j7)}function x_(r,t){return t.get(r===0?q7:r>0?Z7:X7)}var J7={seriesType:"candlestick",plan:Ks(),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=x_(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");$(u,l)}}}}}};const Q7=J7;var t9=["color","borderColor"],e9=function(r){B(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){ui(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&&sT(u,c))return;var v=Rp(c,f,!0);ae(v,{shape:{points:c.ends}},e,f),Ep(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&&sT(u,h)){i.remove(v);return}v?(Bt(v,{shape:{points:h.ends}},e,f),Zr(v)):v=Rp(h),Ep(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(),lT(e,this.group);var a=e.get("clip",!0)?Ju(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=Rp(s);Ep(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){lT(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}(Qt),r9=function(){function r(){}return r}(),a9=function(r){B(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new r9},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}(Pt);function Rp(r,t,e){var a=r.ends;return new a9({shape:{points:e?n9(a,r):a},z2:100})}function sT(r,t){for(var e=!0,a=0;ax?D[i]:M[i],ends:P,brushRect:z(b,w,_)})}function N(H,G){var Y=[];return Y[n]=G,Y[i]=H,isNaN(G)||isNaN(H)?[NaN,NaN]:t.dataToPoint(Y)}function E(H,G,Y){var X=G.slice(),ot=G.slice();X[n]=Mc(X[n]+a/2,1,!1),ot[n]=Mc(ot[n]-a/2,1,!0),Y?H.push(X,ot):H.push(ot,X)}function z(H,G,Y){var X=N(H,Y),ot=N(G,Y);return X[n]-=a/2,ot[n]-=a/2,{x:X[0],y:X[1],width:a,height:ot[1]-X[1]}}function V(H){return H[n]=Mc(H[n],1),H}}function d(p,g){for(var y=Ia(p.count*4),m=0,_,S=[],x=[],b,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var C=w.get(s,b),M=w.get(u,b),D=w.get(f,b),I=w.get(c,b),L=w.get(v,b);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=uT(w,b,M,D,f,T),S[n]=C,S[i]=I,_=t.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function uT(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 f9(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 c9=u9;function v9(r){r.registerChartView(o9),r.registerSeriesModel(s9),r.registerPreprocessor(l9),r.registerVisual(Q7),r.registerLayout(c9)}function fT(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 h9=function(r){B(t,r);function t(e,a){var n=r.call(this)||this,i=new Ku(e,a),o=new ft;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;lt(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 Nn(e.__p1,e.__cp1)+Nn(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=Fe,f=Dg;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}(kk);const w9=b9;var T9=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),C9=function(r){B(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:F.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new T9},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(vD(c,v,g,y,d,p,s,e,a))return l}else if(En(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 M9=A9;var D9={seriesType:"lines",plan:Ks(),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)&&Ju(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=Ek.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 M9:new c_(o?i?w9:Rk:i?kk:f_),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}(Qt);const I9=L9;var P9=typeof Uint32Array>"u"?Array:Uint32Array,k9=typeof Float64Array>"u"?Array:Float64Array;function cT(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Z(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),Pm([n,e[0],e[1]])}))}var R9=function(r){B(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||[],cT(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(cT(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=uu(this._flatCoords,a.flatCoords),this._flatCoordsOffset=uu(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}(oe);const E9=R9;function ec(r){return r instanceof Array||(r=[r,r]),r}var O9={seriesType:"lines",reset:function(r){var t=ec(r.get("symbol")),e=ec(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=ec(s.getShallow("symbol",!0)),u=ec(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 N9=O9;function B9(r){r.registerChartView(I9),r.registerSeriesModel(E9),r.registerLayout(Ek),r.registerVisual(N9)}var z9=256,V9=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=oa.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),x[b++]=I[D],x[b++]=I[D+1],x[b++]=I[D+2],x[b++]=I[D+3]*_*256}else b+=4}return v.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=oa.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=F.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 G9=V9;function F9(r,t,e){var a=r[1]-r[0];t=Z(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 vT(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var W9=function(r){B(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()):vT(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&&(vT(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){ui(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=ri(s,"cartesian2d"),u=ri(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(),x=e.get(["itemStyle","borderRadius"]),b=Ie(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]||kh[1])continue;var N=s.dataToPoint([R,k]);L=new Lt({shape:{x:N[0]-f/2,y:N[1]-c/2,width:f,height:c},style:P})}else if(u){var E=s.dataToLayout([y.get(D[0],I),y.get(D[1],I)]).rect;if(Qe(E.x))continue;L=new Lt({z2:1,shape:E,style:P})}else{if(isNaN(y.get(D[1],I)))continue;var z=s.dataToLayout([y.get(D[0],I)]),E=z.contentRect||z.rect;if(Qe(E.x)||Qe(E.y))continue;L=new Lt({z2:1,shape:E,style:P})}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(),x=V.get(["itemStyle","borderRadius"]),T=H.get("focus"),C=H.get("blurScope"),M=H.get("disabled"),b=Ie(V)}L.shape.r=x;var G=e.getRawValue(I),Y="-";G&&G[2]!=null&&(Y=G[2]+""),Ne(L,b,{labelFetcher:e,labelDataIndex:I,defaultOpacity:P.opacity,defaultText:Y}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,ne(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 G9;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(),x=n.type==="visualMap.continuous"?H9(S,n.option.range):F9(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new qe({style:{width:g,height:y,x:v,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Qt);const $9=W9;var U9=function(r){B(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 xn(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Yu.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:F.color.primary}}},t}(oe);const Y9=U9;function Z9(r){r.registerChartView($9),r.registerSeriesModel(Y9)}var X9=["itemStyle","borderWidth"],hT=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Bp=new li,q9=function(r){B(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:hT[+f],categoryDim:hT[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=pT(o,d),g=dT(o,d,p,v),y=gT(o,v,g);o.setItemGraphicEl(d,y),i.add(y),mT(y,v,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=pT(o,d),m=dT(o,d,y,v),_=Gk(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?rZ(g,v,m):g=gT(o,v,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),mT(g,v,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&yT(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=e.get("clip",!0)?Ju(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){yT(i,yt(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(Qt);function dT(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};K9(e,i,n,a,v),j9(r,t,n,i,o,v.boundingLength,v.pxSign,f,a,v),J9(e,v.symbolScale,u,a,v);var h=v.symbolSize,d=Io(e.get("symbolOffset"),h);return Q9(e,h,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function K9(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=[zp(s,o[0])-l,zp(s,o[1])-l];c[1]=0?1:-1:f>0?1:-1}function zp(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function j9(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 J9(r,t,e,a,n){var i=r.get(X9)||0;i&&(Bp.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Bp.updateTransform(),i/=Bp.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function Q9(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=Ze(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]),x=Math.max(p+S*2,0),b=_?0:S*2,w=KM(a),T=w?a:_T((y+b)/x),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),x=p+S*2,b=_?0:S*2,!w&&a!=="fixed"&&(T=u?_T((Math.abs(u)+b)/x):0),g=T*x-b,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 P=c.clipShape={};P[v.xy]=-e[v.xy],P[v.wh]=f.ecSize[v.wh],P[h.xy]=0,P[h.wh]=e[h.wh]}function Ok(r){var t=r.symbolPatternSize,e=we(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Nk(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(b_(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 Bk(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Cs(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=Ok(e),n.add(i),Cs(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 zk(r,t,e){var a=$({},t.barRectShape),n=r.__pictorialBarRect;n?Cs(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new Lt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Vk(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)Bt(n,{shape:i},s,l);else{i[o.wh]=0,n=new Lt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],Ao[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function pT(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=tZ,e.isAnimationEnabled=eZ,e}function tZ(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function eZ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function gT(r,t,e,a){var n=new ft,i=new ft;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Nk(n,t,e):Bk(n,t,e),zk(n,e,a),Vk(n,t,e,a),n.__pictorialShapeStr=Gk(r,e),n.__pictorialSymbolMeta=e,n}function rZ(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;Bt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?Nk(r,t,e,!0):Bk(r,t,e,!0),zk(r,e,!0),Vk(r,t,e,!0)}function yT(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];b_(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),A(i,function(o){Qn(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function Gk(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function b_(r,t,e){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function Cs(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&Ao[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function mT(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");b_(r,function(p){if(p instanceof qe){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,Ne(d,Ie(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:Es(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),ne(r,f,c,i.get("disabled"))}function _T(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const aZ=q9;var nZ=function(r){B(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=fi(bv.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:F.color.primary}}}),t}(bv);const iZ=nZ;function oZ(r){r.registerChartView(aZ),r.registerSeriesModel(iZ),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(eI,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,rI("pictorialBar"))}var sZ=function(r){B(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 pn(this._layersSeries||[],l,v,v),d=[];h.add(Q(p,this,"add")).update(Q(p,this,"update")).remove(Q(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,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 dZ(r){r.registerChartView(uZ),r.registerSeriesModel(cZ),r.registerLayout(vZ),r.registerProcessor(tl("themeRiver"))}var pZ=2,gZ=4,yZ=function(r){B(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=pZ,o.textConfig={inside:!0},yt(o).seriesIndex=a.seriesIndex;var s=new Nt({z2:gZ,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;yt(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=Ps(h,o));var d=ka(l.getModel("itemStyle"),c,!0);$(c,d),A(lr,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=ka(S,c);x&&(_.shape=x)}),e?(s.setShape(c),s.shape.r=f.r0,ae(s,{shape:{r:f.r}},n,a.dataIndex)):(Bt(s,{shape:c},n),Zr(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"?uu(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;ne(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)P&&!hu(k-P)&&k0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,n):(o.virtualPiece=new xT(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";iv(u,f)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:am,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}(Qt);const xZ=SZ;var bZ=function(r){B(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};Fk(n);var i=this._levelModels=Z(e.levels||[],function(l){return new zt(l,this,a)},this),o=a_.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=Ih(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(){$P(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}(oe);function Fk(r){var t=0;A(r.children,function(a){Fk(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 wZ=bZ;var wT=Math.PI/180;function TZ(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")*wT,d=a.get("minAngle")*wT,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&Hk(g,m);var _=0;A(g.children,function(k){!isNaN(k.getValue())&&_++});var S=g.getValue(),x=Math.PI/(S||_)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(v-c)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,I=function(k,N){if(k){var E=N;if(k!==p){var z=k.getValue(),V=S===0&&M?x:z*x;V1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&J(s)&&(s=Pg(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 MZ(r){r.registerChartView(xZ),r.registerSeriesModel(wZ),r.registerLayout(bt(TZ,"sunburst")),r.registerProcessor(bt(tl,"sunburst")),r.registerVisual(AZ),_Z(r)}var TT={color:"fill",borderColor:"stroke"},DZ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},sn=It(),LZ=function(r){B(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 xn(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=sn(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}(oe);const IZ=LZ;function PZ(r,t){return t=t||[0,0],Z(["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 kZ(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:Q(PZ,r)}}}function RZ(r,t){return t=t||[0,0],Z([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 EZ(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:Q(RZ,r)}}}function OZ(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 NZ(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:Q(OZ,r)}}}function BZ(r,t){return t=t||[0,0],Z(["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 zZ(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:Q(BZ,r)}}}function VZ(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 GZ(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 Wk(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||rt(r,"text")))}function $k(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},rt(a,"text")&&(o.text=a.text),rt(a,"rich")&&(o.rich=a.rich),rt(a,"textFill")&&(o.fill=a.textFill),rt(a,"textStroke")&&(o.stroke=a.textStroke),rt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),rt(a,"fontSize")&&(o.fontSize=a.fontSize),rt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),rt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=rt(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),rt(a,"textPosition")&&(n.position=a.textPosition),rt(a,"textOffset")&&(n.offset=a.textOffset),rt(a,"textRotation")&&(n.rotation=a.textRotation),rt(a,"textDistance")&&(n.distance=a.textDistance)}return CT(o,r),A(o.rich,function(l){CT(l,l)}),{textConfig:n,textContent:i}}function CT(r,t){t&&(t.font=t.textFont||t.font,rt(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),rt(t,"textAlign")&&(r.align=t.textAlign),rt(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),rt(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),rt(t,"textWidth")&&(r.width=t.textWidth),rt(t,"textHeight")&&(r.height=t.textHeight),rt(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),rt(t,"textPadding")&&(r.padding=t.textPadding),rt(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),rt(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),rt(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),rt(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),rt(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),rt(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),rt(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function AT(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||F.color.neutral99;MT(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||F.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||F.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,A(t.rich,function(s){MT(s,s)}),a}function MT(r,t){t&&(rt(t,"fill")&&(r.textFill=t.fill),rt(t,"stroke")&&(r.textStroke=t.fill),rt(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),rt(t,"font")&&(r.font=t.font),rt(t,"fontStyle")&&(r.fontStyle=t.fontStyle),rt(t,"fontWeight")&&(r.fontWeight=t.fontWeight),rt(t,"fontSize")&&(r.fontSize=t.fontSize),rt(t,"fontFamily")&&(r.fontFamily=t.fontFamily),rt(t,"align")&&(r.textAlign=t.align),rt(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),rt(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),rt(t,"width")&&(r.textWidth=t.width),rt(t,"height")&&(r.textHeight=t.height),rt(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),rt(t,"padding")&&(r.textPadding=t.padding),rt(t,"borderColor")&&(r.textBorderColor=t.borderColor),rt(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),rt(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),rt(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),rt(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),rt(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),rt(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),rt(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),rt(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),rt(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),rt(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Uk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},DT=kt(Uk);Ba(Va,function(r,t){return r[t]=1,r},{});Va.join(", ");var kv=["","style","shape","extra"],zs=It();function w_(r,t,e,a,n){var i=r+"Animation",o=Ys(r,a,n)||{},s=zs(t).userDuring;return o.duration>0&&(o.during=s?Q(UZ,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),$(o,e[i]),o}function Oc(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=zs(r),u=t.style;l.userDuring=t.during;var f={},c={};if(ZZ(r,t,c),r.type==="compound")for(var v=r.shape.paths,h=t.shape.paths,d=0;d0&&r.animateFrom(g,y)}else HZ(r,t,n||0,e,f);Yk(r,t),u?r.dirty():r.markRedraw()}function Yk(r,t){for(var e=zs(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function WZ(r,t){rt(t,"silent")&&(r.silent=t.silent),rt(t,"ignore")&&(r.ignore=t.ignore),r instanceof Yr&&rt(t,"invisible")&&(r.invisible=t.invisible),r instanceof Pt&&rt(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var xa={},$Z={setTransform:function(r,t){return xa.el[r]=t,this},getTransform:function(r){return xa.el[r]},setShape:function(r,t){var e=xa.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=xa.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=xa.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=xa.el.style;if(t)return t[r]},setExtra:function(r,t){var e=xa.el.extra||(xa.el.extra={});return e[r]=t,this},getExtra:function(r){var t=xa.el.extra;if(t)return t[r]}};function UZ(){var r=this,t=r.el;if(t){var e=zs(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}xa.el=t,a($Z)}}function LT(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]={}),vo(l))$(o,i);else for(var u=qt(l),f=0;f=0){!o&&(o=a[r]={});for(var h=kt(i),f=0;f=0)){var v=r.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=a.style={});for(var d=kt(e),u=0;u=0?t.getStore().get(E,k):void 0}var z=t.get(N.name,k),V=N&&N.ordinalMeta;return V?V.categories[z]:z}function w(R,k){k==null&&(k=f);var N=t.getItemVisual(k,"style"),E=N&&N.fill,z=N&&N.opacity,V=_(k,Wn).getItemStyle();E!=null&&(V.fill=E),z!=null&&(V.opacity=z);var H={inheritColor:J(E)?E:F.color.neutral99},G=S(k,Wn),Y=Jt(G,null,H,!1,!0);Y.text=G.getShallow("show")?nt(r.getFormattedLabel(k,Wn),Es(t,k)):null;var X=av(G,H,!1);return M(R,V),V=AT(V,Y,X),R&&C(V,R),V.legacy=!0,V}function T(R,k){k==null&&(k=f);var N=_(k,ln).getItemStyle(),E=S(k,ln),z=Jt(E,null,null,!0,!0);z.text=E.getShallow("show")?Cr(r.getFormattedLabel(k,ln),r.getFormattedLabel(k,Wn),Es(t,k)):null;var V=av(E,null,!0);return M(R,N),N=AT(N,z,V),R&&C(N,R),N.legacy=!0,N}function C(R,k){for(var N in k)rt(k,N)&&(R[N]=k[N])}function M(R,k){R&&(R.textFill&&(k.textFill=R.textFill),R.textPosition&&(k.textPosition=R.textPosition))}function D(R,k){if(k==null&&(k=f),rt(TT,R)){var N=t.getItemVisual(k,"style");return N?N[TT[R]]:null}if(rt(DZ,R))return t.getItemVisual(k,R)}function I(R){if(o.type==="cartesian2d"){var k=o.getBaseAxis();return bF(ht({axis:k},R))}}function L(){return e.getCurrentSeriesIndices()}function P(R){return i0(R,e)}}function iX(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 Wp(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=D_(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&ne(s,a.focus,a.blurScope,a.emphasisDisabled),s}function D_(r,t,e,a,n,i){var o=-1,s=t;t&&Kk(t,a,n)&&(o=wt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=A_(a),s&&tX(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Rr.normal.cfg=Rr.normal.conOpt=Rr.emphasis.cfg=Rr.emphasis.conOpt=Rr.blur.cfg=Rr.blur.conOpt=Rr.select.cfg=Rr.select.conOpt=null,Rr.isLegacy=!1,sX(u,e,a,n,l,Rr),oX(u,e,a,n,l),M_(r,u,e,a,Rr,n,l),rt(a,"info")&&(sn(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function Kk(r,t,e){var a=sn(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&vX(i)&&jk(i)!==a.customPathData||n==="image"&&rt(o,"image")&&o.image!==a.customImagePath}function oX(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&&Kk(o,i,a)&&(o=null),o||(o=A_(i),r.setClipPath(o)),M_(null,o,t,i,null,a,n)}}function sX(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){PT(e,null,i),PT(e,ln,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=A_(o),r.setTextContent(f)),M_(null,f,t,o,null,a,n);for(var c=o&&o.style,v=0;v=f;h--){var d=t.childAt(h);uX(t,d,n)}}}function uX(r,t,e){t&&Rh(t,sn(r).option,e)}function fX(r){new pn(r.oldChildren,r.newChildren,kT,kT,r).add(RT).update(RT).remove(cX).execute()}function kT(r,t){var e=r&&r.name;return e??JZ+t}function RT(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;D_(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function cX(r){var t=this.context,e=t.oldChildren[r];e&&Rh(e,sn(e).option,t.seriesModel)}function jk(r){return r&&(r.pathData||r.d)}function vX(r){return r&&(rt(r,"pathData")||rt(r,"d"))}function hX(r){r.registerChartView(rX),r.registerSeriesModel(IZ)}var Ui=It(),ET=ut,$p=Q,dX=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 ft,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var v=bt(OT,e,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}BT(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=K0(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=Ui(t).pointerEl=new Ao[i.type](ET(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Ui(t).labelEl=new Nt(ET(e.label));t.add(i),NT(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Ui(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=Ui(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),NT(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=Wu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){cn(u.event)},onmousedown:$p(this._onHandleDragMove,this,0,0),drift:$p(this._onHandleDragMove,this),ondragend:$p(this._onHandleDragEnd,this)}),a.add(n)),BT(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,js(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){OT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Up(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(Up(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Up(n)),Ui(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),bu(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 OT(r,t,e,a){Jk(Ui(e).lastProp,a)||(Ui(e).lastProp=a,t?Bt(e,a,r):(e.stopAnimation(),e.attr(a)))}function Jk(r,t){if(dt(r)&&dt(t)){var e=!0;return A(t,function(a,n){e=e&&Jk(r[n],a)}),!!e}else return r===t}function NT(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Up(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function BT(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 I_=dX;function P_(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 Qk(r,t,e,a,n){var i=e.get("value"),o=tR(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=$u(s.get("padding")||0),u=s.getFont(),f=eh(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),pX(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:Jt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function pX(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 tR(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:dv(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)}),J(o)?i=o.replace("{value}",i):lt(o)&&(i=o(s))}return i}function k_(r,t,e){var a=He();return si(a,a,e.rotation),za(a,a,e.position),na([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function eR(r,t,e,a,n,i){var o=gn.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),Qk(t,a,n,i,{position:k_(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function R_(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function rR(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function zT(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var gX=function(r){B(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=VT(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=P_(i),h=yX[u](s,c,f);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=Cv(l.getRect(),n);eR(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Cv(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=k_(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=VT(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}(I_);function VT(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var yX={line:function(r,t,e){var a=R_([t,e[0]],[t,e[1]],GT(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:rR([t-a/2,e[0]],[a,n],GT(r))}}};function GT(r){return r.dim==="x"?0:1}const mX=gX;var _X=function(r){B(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:F.color.border,width:1,type:"dashed"},shadowStyle:{color:F.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:F.color.neutral00,padding:[5,7,5,7],backgroundColor:F.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:F.color.accent40,throttle:40}},t}(Et);const SX=_X;var an=It(),xX=A;function aR(r,t,e){if(!Vt.node){var a=t.getZr();an(a).records||(an(a).records={}),bX(a,t);var n=an(a).records[r]||(an(a).records[r]={});n.handler=e}}function bX(r,t){if(an(r).initialized)return;an(r).initialized=!0,e("click",bt(FT,"click")),e("mousemove",bt(FT,"mousemove")),e("globalout",TX);function e(a,n){r.on(a,function(i){var o=CX(t);xX(an(r).records,function(s){s&&n(s,i,o.dispatchAction)}),wX(o.pendings,t)})}}function wX(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 TX(r,t,e){r.handler("leave",null,e)}function FT(r,t,e,a){t.handler(r,e,a)}function CX(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 om(r,t){if(!Vt.node){var e=t.getZr(),a=(an(e).records||{})[r];a&&(an(e).records[r]=null)}}var AX=function(r){B(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";aR("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){om("axisPointer",a)},t.prototype.dispose=function(e,a){om("axisPointer",a)},t.type="axisPointer",t}(le);const MX=AX;function nR(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=po(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(Z(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 HT=It();function DX(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Q(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Nc(n)&&(n=nR({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Nc(n),u=i.axesInfo,f=s.axesInfo,c=a==="leave"||Nc(n),v={},h={},d={list:[],map:{}},p={showPointer:bt(IX,h),showTooltip:bt(PX,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=OX(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=b.pointToData(n)),T!=null&&WT(S,T,p,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&A(_.axesInfo,function(S,x){var b=h[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,$T(S),$T(y)))),g[y.key]=w}})}),A(g,function(y,m){WT(f[m],y,p,!0,v)}),kX(h,f,v),RX(d,n,r,o),EX(f,o,e),v}}function WT(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 IX(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function PX(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=Pu(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 kX(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 RX(r,t,e,a){if(Nc(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 EX(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=HT(a)[n]||{},o=HT(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 OX(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 $T(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 Nc(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function ef(r){Ro.registerAxisPointerClass("CartesianAxisPointer",mX),r.registerComponentModel(SX),r.registerComponentView(MX),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=f$(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},DX)}function NX(r){At(AP),At(ef)}var BX=function(r){B(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=P_(i),d=VX[v](s,l,c,f);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=zX(a,n,i,l,p);Qk(e,n,i,o,g)},t}(I_);function zX(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=He();si(v,v,s),za(v,v,[a.cx,a.cy]),u=na([o,-n],v);var h=t.getModel("axisLabel").get("rotate")||0,d=gn.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 VX={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:R_(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:zT(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:zT(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const GX=BX;var FX=function(r){B(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}(Et);const HX=FX;var E_=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ce).models[0]},t.type="polarAxis",t}(Et);Te(E_,qu);var WX=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(E_),$X=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(E_),O_=function(r){B(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}(va);O_.prototype.dataToRadius=va.prototype.dataToCoord;O_.prototype.radiusToData=va.prototype.coordToData;const UX=O_;var YX=It(),N_=function(r){B(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=eh(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=YX(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}(va);N_.prototype.dataToAngle=va.prototype.dataToCoord;N_.prototype.angleToData=va.prototype.coordToData;const ZX=N_;var iR=["radius","angle"],XX=function(){function r(t){this.dimensions=iR,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new UX,this._angleAxis=new ZX,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=UT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=UT(e);return n===this?this.pointToData(a):null},r}();function UT(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const qX=XX;function KX(r,t,e){var a=t.get("center"),n=Pe(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 jX(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(pv(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(pv(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),ks(a.scale,a.model),ks(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 JX(r){return r.mainType==="angleAxis"}function YT(r,t){var e;if(r.type=t.get("type"),r.scale=wh(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),JX(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 QX={dimensions:iR,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new qX(n+"");i.update=jX;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");YT(o,l),YT(s,u),KX(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",ce).models[0];a.coordinateSystem=n.coordinateSystem}}),e}};const tq=QX;var eq=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function rc(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 ac(r){var t=r.getRadiusAxis();return t.inverse?0:1}function ZT(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 rq=function(r){B(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=Z(n.getViewLabels(),function(f){f=ut(f);var c=n.scale,v=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});ZT(u),ZT(s),A(eq,function(f){e.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&aq[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Ro),aq={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=ac(e),c=f?0:1,v,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?v=new Ao[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 fh({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[ac(e)],u=Z(a,function(f){return new De({shape:rc(e,[l,l+s],f.coord)})});r.add(Fr(u,{style:ht(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[ac(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 x=s[d];dt(x)&&x.textStyle&&(h=new zt(x.textStyle,l,l.ecModel))}var b=new Nt({silent:gn.isLabelSilent(t),style:Jt(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),Sn({el:b,componentModel:t,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:c.rawLabel,tickIndex:v}}),f){var w=gn.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,yt(b).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;x&&(a[f][L]||(a[f][L]={p:C,n:C}),R=a[f][L][P]);var k=void 0,N=void 0,E=void 0,z=void 0;if(d.dim==="radius"){var V=d.dataToCoord(I)-C,H=l.dataToCoord(L);Math.abs(V)=z})}}})}function cq(r){var t={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=sR(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=oR(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=XT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=XT(e);return n===this?this.pointToData(a):null},r}();function XT(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function wq(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new bq(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",ce).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var Tq={create:wq,dimensions:uR};const Cq=Tq;var qT=["x","y"],Aq=["width","height"],Mq=function(r){B(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=Zp(l,1-Ov(s)),f=l.dataToPoint(a)[0],c=i.get("type");if(c&&c!=="none"){var v=P_(i),h=Dq[c](s,f,u);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=sm(n);eR(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=sm(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=k_(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=Ov(o),u=Zp(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=Zp(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}(I_),Dq={line:function(r,t,e){var a=R_([t,e[0]],[t,e[1]],Ov(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:rR([t-a/2,e[0]],[a,n],Ov(r))}}};function Ov(r){return r.isHorizontal()?0:1}function Zp(r,t){var e=r.getRect();return[e[qT[t]],e[qT[t]]+e[Aq[t]]]}const Lq=Mq;var Iq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(le);function Pq(r){At(ef),Ro.registerAxisPointerClass("SingleAxisPointer",Lq),r.registerComponentView(Iq),r.registerComponentView(_q),r.registerComponentModel(Yp),Os(r,"single",Yp,Yp.defaultOption),r.registerCoordinateSystem("single",Cq)}var kq=function(r){B(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=Do(e);r.prototype.init.apply(this,arguments),KT(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),KT(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:F.color.axisLine,width:1,type:"solid"}},itemStyle:{color:F.color.neutral00,borderWidth:1,borderColor:F.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:F.size.s,color:F.color.secondary},monthLabel:{show:!0,position:"start",margin:F.size.s,align:"center",formatter:null,color:F.color.secondary},yearLabel:{show:!0,position:null,margin:F.size.xl,formatter:null,color:F.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Et);function KT(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=Z([0,1],function(i){return JV(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Fa(r,t,{type:"box",ignoreSize:n})}const Rq=kq;var Eq=function(r){B(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 Lt({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 rr({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 J(e)&&e?UV(e,a):lt(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 Nt({z2:30,style:Jt(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||J(s))&&(s&&(a=ny(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/Xp)-Math.floor(e[0].time/Xp)+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){Uu({targetModel:i,coordSysType:"calendar",coordSysProvider:bL})}),a},r.dimensions=["time","value"],r}();function qp(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}const Bq=Nq;function zq(r){r.registerComponentModel(Rq),r.registerComponentView(Oq),r.registerCoordinateSystem("calendar",Bq)}var en={level:1,leaf:2,nonLeaf:3},un={none:0,all:1,body:2,corner:3};function lm(r,t,e){var a=t[_t[e]].getCell(r);return!a&&Rt(r)&&r<0&&(a=t[_t[1-e]].getUnitLayoutInfo(e,Math.round(r))),a}function fR(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 cR(r,t,e,a,n){jT(r[0],t,n,e,a,0),jT(r[1],t,n,e,a,1)}function jT(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?(JT(r,t,s,u,n,i,0),l>1&&JT(r,t,s,u,n,i,l-1)):r[0]=r[1]=NaN,u){var f=-n[_t[1-i]].getLocatorCount(i),c=n[_t[i]].getLocatorCount(i)-1;e===un.body?f=pe(0,f):e===un.corner&&(c=Ar(-1,c)),c=t[0]&&r[0]<=t[1]}function eC(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 Fq(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 rC(r,t,e,a){var n=lm(t[a][0],e,a),i=lm(t[a][1],e,a);r[_t[a]]=r[xe[a]]=NaN,n&&i&&(r[_t[a]]=n.xy,r[xe[a]]=i.xy+i.wh-n.xy)}function Dl(r,t,e,a){return r[_t[t]]=e,r[_t[1-t]]=a,r}function Hq(r){return r&&(r.type===en.leaf||r.type===en.nonLeaf)?r:null}function Nv(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var aC=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;J(h)?p={value:h}:dt(h)?(p=h,h.value!=null&&!J(h.value)&&(p={value:null})):p={value:null};var g={type:en.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:f,id:new vt,span:Dl(new vt,e.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:e,rect:Nv()};o++,(i[f]||(i[f]=[])).push(g),n[c]||(n[c]={type:en.level,xy:NaN,wh:NaN,option:null,id:new vt,dim:e});var y=s(p.children,f,c+1),m=Math.max(1,y);g.span[_t[e.dimIdx]]=m,v+=m,f+=m}),v}function l(){for(var u=[];a.length=1,_=e[_t[a]],S=i.getLocatorCount(a)-1,x=new Xn;for(o.resetLayoutIterator(x,a);x.next();)b(x.item);for(i.resetLayoutIterator(x,a);x.next();)b(x.item);function b(w){Qe(w.wh)&&(w.wh=y),w.xy=_,w.id[_t[a]]===S&&!m&&(w.wh=e[_t[a]]+e[xe[a]]-w.xy),_+=w.wh}}function fC(r,t){for(var e=t[_t[r]].resetCellIterator();e.next();){var a=e.item;Bv(a.rect,r,a.id,a.span,t),Bv(a.rect,1-r,a.id,a.span,t),a.type===en.nonLeaf&&(a.xy=a.rect[_t[r]],a.wh=a.rect[xe[r]])}}function cC(r,t){r.travelExistingCells(function(e){var a=e.span;if(a){var n=e.spanRect,i=e.id;Bv(n,0,i,a,t),Bv(n,1,i,a,t)}})}function Bv(r,t,e,a,n){r[xe[t]]=0;var i=e[_t[t]],o=i<0?n[_t[1-t]]:n[_t[t]],s=o.getUnitLayoutInfo(t,e[_t[t]]);if(r[_t[t]]=s.xy,r[xe[t]]=s.wh,a[_t[t]]>1){var l=o.getUnitLayoutInfo(t,e[_t[t]]+a[_t[t]]-1);r[xe[t]]=l.xy+l.wh-s.xy}}function nK(r,t,e){var a=jc(r,e[xe[t]]);return fm(a,e[xe[t]])}function fm(r,t){return Math.max(Math.min(r,nt(t,1/0)),0)}function Jp(r){var t=r.matrixModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var Ye={inBody:1,inCorner:2,outside:3},_a={x:null,y:null,point:[]};function vC(r,t,e,a,n){var i=e[_t[t]],o=e[_t[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[_t[t]]=Ye.outside;return}if(n===un.body){l?(r[_t[t]]=Ye.inBody,c=Ar(s.xy+s.wh,pe(l.xy,c)),r.point[t]=c):r[_t[t]]=Ye.outside;return}else if(n===un.corner){f?(r[_t[t]]=Ye.inCorner,c=Ar(f.xy+f.wh,pe(u.xy,c)),r.point[t]=c):r[_t[t]]=Ye.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[_t[t]]=Ye.outside;return}c=d}r.point[t]=c,r[_t[t]]=v<=c&&c<=d?Ye.inBody:h<=c&&c<=v?Ye.inCorner:Ye.outside}function hC(r,t,e,a){var n=1-e;if(r[_t[e]]!==Ye.outside)for(a[_t[e]].resetCellIterator(jp);jp.next();){var i=jp.item;if(pC(r.point[e],i.rect,e)&&pC(r.point[n],i.rect,n)){t[e]=i.ordinal,t[n]=i.id[_t[n]];return}}}function dC(r,t,e,a){if(r[_t[e]]!==Ye.outside){var n=r[_t[e]]===Ye.inCorner?a[_t[1-e]]:a[_t[e]];for(n.resetLayoutIterator(lc,e);lc.next();)if(iK(r.point[e],lc.item)){t[e]=lc.item.id[_t[e]];return}}}function iK(r,t){return t.xy<=r&&r<=t.xy+t.wh}function pC(r,t,e){return t[_t[e]]<=r&&r<=t[_t[e]]+t[xe[e]]}const oK=aK;function sK(r){r.registerComponentModel(Xq),r.registerComponentView(rK),r.registerCoordinateSystem("matrix",oK)}function lK(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 gC(r,t){var e;return A(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function uK(r,t,e){var a=$({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(Tt(n,a,!0),Fa(n,a,{ignoreSize:!0}),ML(e,n),uc(e,n),uc(e,n,"shape"),uc(e,n,"style"),uc(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var hR=["transition","enterFrom","leaveTo"],fK=hR.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function uc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?hR:fK,n=0;n=0;f--){var c=n[f],v=Me(c.id,null),h=v!=null?o.get(v):null;if(h){var d=h.parent,y=zr(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=yh(h,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!zr(h).isNew&&S){for(var x=c.transition,b={},w=0;w=0)?b[T]=C:h[T]=C}Bt(h,b,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Bc(n,zr(n).option,a,e._lastGraphicModel)}),this._elMap=at()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(le);function cm(r){var t=rt(yC,r)?yC[r]:rv(r),e=new t({});return zr(e).type=r,e}function mC(r,t,e,a){var n=cm(e);return t.add(n),a.set(r,n),zr(n).id=r,zr(n).isNew=!0,n}function Bc(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Bc(i,t,e,a)}),Rh(r,t,a),e.removeKey(zr(r).id))}function _C(r,t,e,a){r.isGroup||A([["cursor",Yr.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];rt(t,i)?r[i]=nt(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(kt(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=lt(i)?i:null}}),rt(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function dK(r){return r=$({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(wL),function(t){delete r[t]}),r}function pK(r,t,e){var a=yt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=yt(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function gK(r){r.registerComponentModel(vK),r.registerComponentView(hK),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 SC=["x","y","radius","angle","single"],yK=["cartesian2d","polar","singleAxis"];function mK(r){var t=r.get("coordinateSystem");return wt(yK,t)>=0}function $n(r){return r+"Axis"}function _K(r,t){var e=at(),a=[],n=at();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 dR(r){var t=r.ecModel,e={infoList:[],infoMap:at()};return r.eachTargetAxis(function(a,n){var i=t.getComponent($n(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 Qp=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}(),SK=function(r){B(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=xC(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=xC(e);Tt(this.option,e,!0),Tt(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=at(),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(SC,function(n){var i=this.getReferringComponents($n(n),gB);if(i.specified){a=!0;var o=new Qp;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 Qp;if(v.add(c.componentIndex),e.set(f,v),i=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",ce).models[0];h&&A(u,function(d){c.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",ce).models[0]&&v.add(d.componentIndex)})}}}i&&A(SC,function(u){if(i){var f=n.findComponents({mainType:$n(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var c=new Qp;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($n(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($n(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&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else vs(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)}});vs(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;vs(["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=$t(a[0]+o,a,[0,100],!0):i!=null&&(o=$t(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=ZM(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 MK(r,t,e){var a=[1/0,-1/0];vs(e,function(o){HF(a,o.getData(),t)});var n=r.getAxisModel(),i=uI(n.axis.scale,n,a).calculate();return[i.min,i.max]}const DK=AK;var LK={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent($n(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 DK(n,i,s,r),e.push(o.__dzAxisProxy))});var a=at();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 IK=LK;function PK(r){r.registerAction("dataZoom",function(t,e){var a=_K(e,t);A(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var wC=!1;function G_(r){wC||(wC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,IK),PK(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function kK(r){r.registerComponentModel(bK),r.registerComponentView(CK),G_(r)}var Gr=function(){function r(){}return r}(),pR={};function hs(r,t){pR[r]=t}function gR(r){return pR[r]}var RK=function(r){B(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=gR(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Tt(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:F.color.border,borderRadius:0,borderWidth:0,padding:F.size.m,itemSize:15,itemGap:F.size.s,showTitle:!0,iconStyle:{borderColor:F.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:F.color.accent50}},tooltip:{show:!1,position:"bottom"}},t}(Et);const EK=RK;function yR(r,t){var e=$u(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new Lt({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 OK=function(r){B(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 pn(this._featureNames||[],c).add(v).update(v).remove(bt(v,null)).execute(),this._featureNames=c;function v(m,_){var S=c[m],x=c[_],b=u[S],w=new zt(b,e,e.ecModel),T;if(i&&i.newTitle!=null&&i.featureName===S&&(b.title=i.newTitle),S&&!x){if(NK(S))T={onclick:w.option.onclick,featureName:S};else{var C=gR(S);if(!C)return;T=new C}f[S]=T}else if(T=f[x],!T)return;T.uid=Xs("toolbox-feature"),T.model=w,T.ecModel=a,T.api=n;var M=T instanceof Gr;if(!S&&x){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,P=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[D]=I,P[D]&&(I==="emphasis"?hn:dn)(P[D])},T instanceof Gr&&T.render&&T.render(w,a,n,i)}function h(m,_,S){var x=m.getModel("iconStyle"),b=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Gr&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,M;J(w)?(C={},C[S]=w):C=w,J(T)?(M={},M[S]=T):M=T;var D=m.iconPaths={};A(C,function(I,L){var P=Wu(I,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var R=P.ensureState("emphasis");R.style=b.getItemStyle();var k=new Nt({style:{text:M[L],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:i0({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},a)},ignore:!0});P.setTextContent(k),Sn({el:P,componentModel:e,itemName:L,formatterParamsExtra:{title:M[L]}}),P.__title=M[L],P.on("mouseover",function(){var N=b.getItemStyle(),E=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:b.get("textFill")||N.fill||N.stroke||F.color.neutral99,backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||E}),k.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",L])!=="emphasis"&&n.leaveEmphasis(this),k.hide()}),(m.get(["iconStatus",L])==="emphasis"?hn:dn)(P),o.add(P),P.on("click",Q(_.onclick,_,a,n,L)),D[L]=P})}var d=Pe(e,n).refContainer,p=e.getBoxLayoutParams(),g=e.get("padding"),y=ie(p,d,g);uo(e.get("orient"),o,e.get("itemGap"),y.width,y.height),yh(o,p,d,g),o.add(yR(o.getBoundingRect(),e)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),x=S.textConfig||(S.textConfig={}),b=m.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!lt(w)&&_){var T=w.style||(w.style={}),C=eh(_,Nt.makeFont(T)),M=m.x+o.x,D=m.y+o.y+s,I=!1;D+C.height>n.getHeight()&&(x.position="top",I=!0);var L=I?-5-C.height:s+10;M+C.width/2>n.getWidth()?(x.position=["100%",L],T.align="right"):M-C.width/2<0&&(x.position=[0,L],T.align="left")}})},t.prototype.updateView=function(e,a,n,i){A(this._features,function(o){o instanceof Gr&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){A(this._features,function(n){n instanceof Gr&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){A(this._features,function(n){n instanceof Gr&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(le);function NK(r){return r.indexOf("my")===0}const BK=OK;var zK=function(r){B(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")||F.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Vt.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,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=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:F.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(Gr);const VK=zK;var TC="__ec_magicType_stack__",GK=[["line","bar"],["stack"]],FK=function(r){B(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(CC[n]){var s={series:[]},l=function(c){var v=c.subType,h=c.id,d=CC[n](v,h,c,i);d&&(ht(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,ce).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(GK,function(c){wt(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=Tt({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}(Gr),CC={line:function(r,t,e,a){if(r==="bar")return Tt({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 Tt({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")===TC;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),Tt({id:t,stack:n?"":TC},a.get(["option","stack"])||{},!0)}};Wa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const HK=FK;var Eh=new Array(60).join("-"),Vs=" ";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 $K(r){var t=[];return A(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(Z(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(Vs)],f=0;f=0)return!0}var pm=new RegExp("["+Gs+"]+","g");function XK(r){for(var t=r.split(/\n+/g),e=Hv(t.shift()).split(pm),a=[],n=Z(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 ej(r){var t=$_(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return bR(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 rj(r){wR(r).snapshots=null}function aj(r){return $_(r).length}function $_(r){var t=wR(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var nj=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){rj(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}(Gr);$a({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const ij=nj;var oj=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],sj=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=IC(e,t);A(lj,function(o,s){(!a||!a.include||wt(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=ag[a.brushType](0,i,n);a.__rangeOffset={offset:EC[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=ag[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=ag[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?EC[a.brushType](i.values,o.offset,uj(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Z(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:Mk(n),isTargetByCursor:Lk(n,t,a.coordSysModel),getLinearBrushOtherExtent:Dk(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&wt(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=IC(e,t),i=0;ir[1]&&r.reverse(),r}function IC(r,t){return ws(r,t,{includeMainTypes:oj})}var lj={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=at(),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){(wt(e,c.getAxis("x").model)>=0||wt(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:kC.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:kC.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}],kC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(uo(r)),t}},ag={lineX:bt(RC,0),lineY:bt(RC,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=[gm([n[0],i[0]]),gm([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=Z(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 RC(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=gm(Z([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 EC={lineX:bt(OC,0),lineY:bt(OC,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 Z(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function OC(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function uj(r,t){var e=NC(r),a=NC(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 NC(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const U_=sj;var ym=A,fj=cB("toolbox-dataZoom_"),cj=function(r){B(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 x_(n.getZr()),this._brushController.on("brush",Q(this._onBrush,this)).mount()),dj(e,a,this,i,n),hj(e,a)},t.prototype.onclick=function(e,a,n){vj[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 U_(Y_(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)}}),tj(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=ni(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=[];ym(e,function(n,i){a.push(ut(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:F.color.backgroundTint}};return a},t}(Gr),vj={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(ej(this.ecModel))}};function Y_(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 hj(r,t){r.setIconStatus("back",aj(t)>1?"emphasis":"normal")}function dj(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 U_(Y_(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)}i5("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=Y_(a),o=ws(r,i);ym(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ym(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:fj+u+c};v[f]=c,n.push(v)}return n});const pj=cj;function gj(r){r.registerComponentModel(EK),r.registerComponentView(BK),ds("saveAsImage",VK),ds("magicType",HK),ds("dataView",QK),ds("dataZoom",pj),ds("restore",ij),At(kK)}var yj=function(r){B(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:F.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:F.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:F.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:F.color.tertiary,fontSize:14}},t}(Et);const mj=yj;function TR(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function CR(r){if(Vt.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 Cj(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?",":"")+(Vt.transformSupported?""+Z_+n:",left"+n+",top"+n)),xj+":"+i}function BC(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Vt.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Vt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+Z_+":"+o+";":[["top",0],["left",0],[AR,o]]}function Aj(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 Mj(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=c2(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),t&&i>0&&n.push(Cj(i,e,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(d){var p="border-"+d,g=bL(p),y=r.get(g);y!=null&&n.push(p+":"+y+(d==="color"?"":"px"))}),n.push(Aj(c)),v!=null&&n.push("padding:"+Zu(v).join("px ")+"px"),n.join(";")+";"}function zC(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&AO(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 Dj=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,Vt.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&&(J(i)?document.querySelector(i):Ms(i)?i:lt(i)&&i(t.getDom()));zC(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();Or(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=Sj(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=bj+Mj(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+BC(i[0],i[1],!0)+("border-color:"+xo(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(J(i)&&a.get("trigger")==="item"&&!TR(a)&&(s=Tj(a,n,i)),J(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||Vt.node||!n.getDom())){var o=FC(i,n);this._ticket="";var s=i.dataByCoordSys,l=Bj(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=kj;f.x=i.x,f.y=i.y,f.update(),mt(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=lR(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(FC(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=Rl([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=mt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Qi(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(mt(f).dataIndex!=null?l=f:mt(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=Q(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=Rl([a.tooltipOption],i),l=this._renderMode,u=[],f=we("section",{blocks:[],noHeader:!0}),c=[],v=new Bd;A(e,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=nR(x,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=we("section",{header:b,noHeader:!Wr(b),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=mv(S.axis,{value:x}),D.axisValueLabel=b,D.marker=v.makeTooltipMarker("item",xo(D.color),l);var I=QS(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=Rl([C],i).get("valueFormatter");w.blocks.push(P?$({valueFormatter:P},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=ix(f,v,l,d,n.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` +`),meta:t.meta}}function zv(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ZK(r){var t=r.slice(0,r.indexOf(` +`));if(t.indexOf(Vs)>=0)return!0}var vm=new RegExp("["+Vs+"]+","g");function XK(r){for(var t=r.split(/\n+/g),e=zv(t.shift()).split(vm),a=[],n=Z(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 ej(r){var t=F_(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return mR(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 rj(r){_R(r).snapshots=null}function aj(r){return F_(r).length}function F_(r){var t=_R(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var nj=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){rj(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}(Gr);Wa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const ij=nj;var oj=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],sj=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=AC(e,t);A(lj,function(o,s){(!a||!a.include||wt(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=tg[a.brushType](0,i,n);a.__rangeOffset={offset:IC[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=tg[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=tg[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?IC[a.brushType](i.values,o.offset,uj(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Z(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:wk(n),isTargetByCursor:Ck(n,t,a.coordSysModel),getLinearBrushOtherExtent:Tk(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&wt(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=AC(e,t),i=0;ir[1]&&r.reverse(),r}function AC(r,t){return bs(r,t,{includeMainTypes:oj})}var lj={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=at(),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){(wt(e,c.getAxis("x").model)>=0||wt(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:DC.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:DC.geo})})}},MC=[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}],DC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(lo(r)),t}},tg={lineX:bt(LC,0),lineY:bt(LC,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=[hm([n[0],i[0]]),hm([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=Z(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 LC(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=hm(Z([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 IC={lineX:bt(PC,0),lineY:bt(PC,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 Z(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function PC(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function uj(r,t){var e=kC(r),a=kC(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 kC(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const H_=sj;var dm=A,fj=cB("toolbox-dataZoom_"),cj=function(r){B(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 m_(n.getZr()),this._brushController.on("brush",Q(this._onBrush,this)).mount()),dj(e,a,this,i,n),hj(e,a)},t.prototype.onclick=function(e,a,n){vj[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 H_(W_(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)}}),tj(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=ai(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=[];dm(e,function(n,i){a.push(ut(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:F.color.backgroundTint}};return a},t}(Gr),vj={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(ej(this.ecModel))}};function W_(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 hj(r,t){r.setIconStatus("back",aj(t)>1?"emphasis":"normal")}function dj(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 H_(W_(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)}i5("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=W_(a),o=bs(r,i);dm(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),dm(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:fj+u+c};v[f]=c,n.push(v)}return n});const pj=cj;function gj(r){r.registerComponentModel(EK),r.registerComponentView(BK),hs("saveAsImage",VK),hs("magicType",HK),hs("dataView",QK),hs("dataZoom",pj),hs("restore",ij),At(kK)}var yj=function(r){B(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:F.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:F.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:F.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:F.color.tertiary,fontSize:14}},t}(Et);const mj=yj;function SR(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function xR(r){if(Vt.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 Cj(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?",":"")+(Vt.transformSupported?""+$_+n:",left"+n+",top"+n)),xj+":"+i}function RC(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Vt.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Vt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+$_+":"+o+";":[["top",0],["left",0],[bR,o]]}function Aj(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 Mj(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=s2(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),t&&i>0&&n.push(Cj(i,e,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(d){var p="border-"+d,g=mL(p),y=r.get(g);y!=null&&n.push(p+":"+y+(d==="color"?"":"px"))}),n.push(Aj(c)),v!=null&&n.push("padding:"+$u(v).join("px ")+"px"),n.join(";")+";"}function EC(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&AO(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 Dj=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,Vt.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&&(J(i)?document.querySelector(i):As(i)?i:lt(i)&&i(t.getDom()));EC(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();Or(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=Sj(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=bj+Mj(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+RC(i[0],i[1],!0)+("border-color:"+So(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(J(i)&&a.get("trigger")==="item"&&!SR(a)&&(s=Tj(a,n,i)),J(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||Vt.node||!n.getDom())){var o=BC(i,n);this._ticket="";var s=i.dataByCoordSys,l=Bj(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=kj;f.x=i.x,f.y=i.y,f.update(),yt(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=nR(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(BC(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=Il([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=yt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ji(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(yt(f).dataIndex!=null?l=f:yt(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=Q(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=Il([a.tooltipOption],i),l=this._renderMode,u=[],f=be("section",{blocks:[],noHeader:!0}),c=[],v=new Ed;A(e,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=tR(x,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=be("section",{header:b,noHeader:!Wr(b),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=dv(S.axis,{value:x}),D.axisValueLabel=b,D.marker=v.makeTooltipMarker("item",So(D.color),l);var I=qS(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=Il([C],i).get("valueFormatter");w.blocks.push(P?$({valueFormatter:P},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=ex(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=mt(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=Rl([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 Bd;y.marker=m.makeTooltipMarker("item",xo(y.color),h);var _=QS(u.formatTooltip(f,!1,c)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?ix(x?$({valueFormatter:x},b):b,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=mt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(J(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ut(l),l.content=Qe(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=Rl(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new Bd;this._showOrMove(d,function(){var m=ut(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(J(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=Sh(y.axisValue,h,g)),h=wL(h,n,!0)}else if(lt(v)){var _=Q(function(S,x){S===this._ticket&&(c.setContent(x,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),lt(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(dt(a)){var p=a;p.width=c[0],p.height=c[1];var g=ie(p,{width:u,height:f});n=g.x,i=g.y,v=null,h=null}else if(J(a)&&l){var y=Nj(a,d,c,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=Ej(n,i,o,u,f,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=HC(v)?c[0]/2:v==="right"?c[0]:0),h&&(i-=HC(h)?c[1]/2:h==="bottom"?c[1]:0),TR(e)){var y=Oj(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){Vt.node||!a.getDom()||(Cu(this,"_updatePosition"),this._tooltipContent.dispose(),um("itemTooltip",a))},t.type="tooltip",t}(le);function Rl(r,t,e){var a=t.ecModel,n;e?(n=new zt(e,a,a),n=new zt(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof zt&&(o=o.get("tooltip",!0)),J(o)&&(o={formatter:o}),o&&(n=new zt(o,n,a)))}return n}function FC(r,t){return r.dispatchAction||Q(t.dispatchAction,t)}function Ej(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 Oj(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 Nj(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 HC(r){return r==="center"||r==="middle"}function Bj(r,t,e){var a=Ym(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=$s(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=mt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const zj=Rj;function Vj(r){At(nf),r.registerComponentModel(mj),r.registerComponentView(zj),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ye),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ye)}var Gj=["rect","polygon","keep","clear"];function Fj(r,t){var e=Kt(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),Hj(s),t&&!s.length&&s.push.apply(s,Gj)}}function Hj(r){var t={};A(r,function(e){t[e]=1}),r.length=0,A(t,function(e,a){r.push(a)})}var WC=A;function $C(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function mm(r,t,e){var a={};return WC(t,function(i){var o=a[i]=n();WC(r[i],function(s,l){if(Xe.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Xe(u),l==="opacity"&&(u=ut(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Xe(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function DR(r,t,e){var a;A(e,function(n){t.hasOwnProperty(n)&&$C(t[n])&&(a=!0)}),a&&A(e,function(n){t.hasOwnProperty(n)&&$C(t[n])?r[n]=ut(t[n]):delete r[n]})}function Wj(r,t,e,a,n,i){var o={};A(r,function(c){var v=Xe.prepareVisualTypes(t[c]);o[c]=v});var s;function l(c){return I0(e,s,c)}function u(c,v){x2(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&&qC(t)}};function qC(r){return new gt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var jj=function(r){B(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 x_(a.getZr())).on("brush",Q(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){LR(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:ut(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:ut(n),$from:a})},t.type="brush",t}(le);const Jj=jj;var Qj=function(r){B(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&&DR(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=Z(e,function(a){return KC(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=KC(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:F.color.backgroundTint,borderColor:F.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:F.color.disabled},t}(Et);function KC(r,t){return Ct({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new zt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const tJ=Qj;var eJ=["rect","polygon","lineX","lineY","keep","clear"],rJ=function(r){B(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}(Gr);const aJ=rJ;function nJ(r){r.registerComponentView(Jj),r.registerComponentModel(tJ),r.registerPreprocessor(Fj),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Yj),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"},ye),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ye),ds("brush",aJ)}var iJ=function(r){B(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:F.size.m,backgroundColor:F.color.transparent,borderColor:F.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:F.color.primary},subtextStyle:{fontSize:12,color:F.color.quaternary}},t}(Et),oJ=function(r){B(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 Nt({style:Jt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=e.get("subtext"),h=new Nt({style:Jt(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(){uv(d,"_"+e.get("target"))}),p&&h.on("click",function(){uv(p,"_"+e.get("subtarget"))}),mt(f).eventData=mt(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 _=ke(e,n),S=ie(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 x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var b=S.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var T=new Lt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(le);function sJ(r){r.registerComponentModel(iJ),r.registerComponentView(oJ)}var lJ=function(r){B(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=De(Ws(u),""),v;dt(u)?(v=ut(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 lr([{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:F.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:F.color.secondary},data:[]},t}(Et);const jC=lJ;var IR=function(r){B(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=ci(jC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:F.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:F.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:F.color.tertiary},itemStyle:{color:F.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:F.color.accent50,borderColor:F.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:F.color.accent50,borderColor:F.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:F.color.accent60},itemStyle:{color:F.color.accent60,borderColor:F.color.accent60},controlStyle:{color:F.color.accent70,borderColor:F.color.accent70}},progress:{lineStyle:{color:F.color.accent30},itemStyle:{color:F.color.accent40}},data:[]}),t}(jC);Ce(IR,wh.prototype);const uJ=IR;var fJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(le);const cJ=fJ;var vJ=function(r){B(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}(ha);const hJ=vJ;var ig=Math.PI,JC=It(),dJ=function(r){B(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 we("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=gJ(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:ig/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*ig/180;var m,_,S,x=v.get("position",!0),b=h&&v.get("showPlayBtn",!0),w=h&&v.get("showPrevBtn",!0),T=h&&v.get("showNextBtn",!0),C=0,M=c;x==="left"||x==="bottom"?(b&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-d,0],M-=g)):(b&&(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=He(),l=o.x,u=o.y+o.height;Va(s,s,[-l,-u]),li(s,s,-ig/2),Va(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||J(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,x,b,w,T){S[w]+=b[w][T]-x[w][T]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=pJ(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 hJ("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new ft;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 Le({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 Le({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ht({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:Q(o._changeTimeline,o,u.value)},g=QC(c,v,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),lo(g);var y=mt(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 Nt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:Q(o._changeTimeline,o,c),silent:!1,style:Jt(h,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Jt(d),y.ensureState("progress").style=Jt(p),a.add(y),lo(y),JC(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",Q(this._changeTimeline,this,c?"-":"+")),v(e.prevBtnPosition,"prev",Q(this._changeTimeline,this,c?"+":"-")),v(e.playPosition,f?"stop":"play",Q(this._handlePlayClick,this,!f),!0);function v(h,d,p,g){if(h){var y=ua(nt(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=yJ(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(_),lo(_)}}},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=Q(u._handlePointerDrag,u),c.ondragend=Q(u._handlePointerDragend,u),tA(c,u._progressLine,s,n,i,!0)},onUpdate:function(c){tA(c,u._progressLine,s,n,i)}};this._currentPointer=QC(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=$r(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var yc={min:bt(gc,"min"),max:bt(gc,"max"),average:bt(gc,"average"),median:bt(gc,"median")};function Fu(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!CJ(t)&&!U(t.coord)&&U(n)){var i=kR(t,e,a,r);if(t=ut(t),t.type&&yc[t.type]&&i.baseAxis&&i.valueAxis){var o=wt(n,i.baseAxis.dim),s=wt(n,i.valueAxis.dim),l=yc[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&&yc[t.type]){var f=a.getOtherAxis(u);f&&(t.value=Wv(e,e.mapDimension(f.dim),t.type))}}else for(var c=t.coord,v=0;v<2;v++)yc[c[v]]&&(c[v]=Wv(e,e.mapDimension(n[v]),c[v]));return t}}function kR(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(AJ(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 AJ(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Hu(r,t){return r&&r.containData&&t.coord&&!Sm(t)?r.containData(t.coord):!0}function MJ(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Sm(t)&&!Sm(e)?r.containZone(t.coord,e.coord):!0}function RR(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return jn(o,t[i])}:function(e,a,n,i){return jn(e.value,t[i])}}function Wv(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 og=It(),DJ=function(r){B(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=at()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){og(s).keep=!1}),a.eachSeries(function(s){var l=mn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!og(s).keep&&i.group.remove(s.group)}),LJ(a,o,this.type)},t.prototype.markKeep=function(e){og(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;A(e,function(i){var o=mn.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?LD(l):t0(l))})}})},t.type="marker",t}(le);function LJ(r,t,e){r.eachSeries(function(a){var n=mn.getMarkerModelFromSeries(a,e),i=t.get(a.id);if(n&&i&&i.group){var o=So(n),s=o.z,l=o.zlevel;mh(i.group,s,l)}})}const q_=DJ;function rA(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 IJ=function(r){B(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=mn.getMarkerModelFromSeries(i,"markPoint");o&&(rA(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 tf),c=PJ(o,e,a);a.setData(c),rA(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(lt(d)||lt(p)||lt(g)||lt(y)){var _=a.getRawValue(v),S=a.getDataParams(v);lt(d)&&(d=d(_,S)),lt(p)&&(p=p(_,S)),lt(g)&&(g=g(_,S)),lt(y)&&(y=y(_,S))}var x=h.getModel("itemStyle").getItemStyle(),b=h.get("z2"),w=Ku(l,"color");x.fill||(x.fill=w),c.setItemVisual(v,{z2:nt(b,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(v){v.traverse(function(h){mt(h).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(q_);function PJ(r,t,e){var a;r?a=Z(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 lr(a,e),i=Z(e.get("data"),bt(Fu,t));r&&(i=Ut(i,bt(Hu,r)));var o=RR(!!r,a);return n.initData(i,null,o),n}const kJ=IJ;function RJ(r){r.registerComponentModel(TJ),r.registerComponentView(kJ),r.registerPreprocessor(function(t){X_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var EJ=function(r){B(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}(mn);const OJ=EJ;var mc=It(),NJ=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=Ze(a.yAxis,a.xAxis);else{var u=kR(a,n,t,r);s=u.valueAxis;var f=j2(n,u.valueDataDim);l=Wv(n,f,o)}var c=s.dim==="x"?0:1,v=1-c,h=ut(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&&Rt(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=[Fu(r,i[0]),Fu(r,i[1]),$({},i[2])];return g[2].type=g[2].type||null,Ct(g[2],g[0]),Ct(g[2],g[1]),g};function $v(r){return!isNaN(r)&&!isFinite(r)}function aA(r,t,e,a){var n=1-r,i=a.dimensions[r];return $v(t[n])&&$v(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function BJ(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(aA(1,e,a,r)||aA(0,e,a,r)))return!0}return Hu(r,t[0])&&Hu(r,t[1])}function sg(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(ai(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;$v(r.get(f[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):$v(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 zJ=function(r){B(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=mn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=mc(o).from,u=mc(o).to;l.each(function(f){sg(l,f,!0,i,n),sg(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 d_);this.group.add(f.group);var c=VJ(o,e,a),v=c.from,h=c.to,d=c.line;mc(a).from=v,mc(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 x=d.getItemModel(S),b=x.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),h.getItemLayout(S)]);var w=x.get("z2");b.stroke==null&&(b.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:b})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){mt(S).dataModel=a,S.traverse(function(x){mt(x).dataModel=a})});function _(S,x,b){var w=S.getItemModel(x);sg(S,x,b,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Ku(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:nt(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:nt(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:nt(w.get("symbolSize"),g[b?0:1]),symbol:nt(w.get("symbol",!0),p[b?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(q_);function VJ(r,t,e){var a;r?a=Z(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 lr(a,e),i=new lr(a,e),o=new lr([],e),s=Z(e.get("data"),bt(NJ,t,r,e));r&&(s=Ut(s,bt(BJ,r)));var l=RR(!!r,a);return n.initData(Z(s,function(u){return u[0]}),null,l),i.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}const GJ=zJ;function FJ(r){r.registerComponentModel(OJ),r.registerComponentView(GJ),r.registerPreprocessor(function(t){X_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var HJ=function(r){B(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}(mn);const WJ=HJ;var _c=It(),$J=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Fu(r,n),s=Fu(r,i),l=o.coord,u=s.coord;l[0]=Ze(l[0],-1/0),l[1]=Ze(l[1],-1/0),u[0]=Ze(u[0],1/0),u[1]=Ze(u[1],1/0);var f=Em([{},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 Uv(r){return!isNaN(r)&&!isFinite(r)}function nA(r,t,e,a){var n=1-r;return Uv(t[n])&&Uv(e[n])}function UJ(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 ai(r,"cartesian2d")?e&&a&&(nA(1,e,a)||nA(0,e,a))?!0:MJ(r,n,i):Hu(r,n)||Hu(r,i)}function iA(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(ai(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);Uv(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):Uv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var oA=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],YJ=function(r){B(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=mn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(oA,function(c){return iA(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 ft});this.group.add(f.group),this.markKeep(f);var c=ZJ(o,e,a);a.setData(c),c.each(function(v){var h=Z(oA,function(M){return iA(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))];$r(m),$r(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),x=!S;c.setItemLayout(v,{points:h,allClipped:x});var b=c.getItemModel(v),w=b.getModel("itemStyle").getItemStyle(),T=b.get("z2"),C=Ku(l,"color");w.fill||(w.fill=C,J(w.fill)&&(w.fill=qc(w.fill,.4))),w.stroke||(w.stroke=C),c.setItemVisual(v,"style",w),c.setItemVisual(v,"z2",nt(T,0))}),c.diff(_c(f).data).add(function(v){var h=c.getItemLayout(v),d=c.getItemVisual(v,"z2");if(!h.allClipped){var p=new cr({z2:nt(d,0),shape:{points:h.points}});c.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,h){var d=_c(f).data.getItemGraphicEl(h),p=c.getItemLayout(v),g=c.getItemVisual(v,"z2");p.allClipped?d&&f.group.remove(d):(d?Bt(d,{z2:nt(g,0),shape:{points:p.points}},a,v):d=new cr({shape:{points:p.points}}),c.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var h=_c(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")),Be(v,Pe(d),{labelFetcher:a,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:J(p.fill)?qc(p.fill,1):F.color.neutral99}),Ie(v,d),ne(v,null,null,d.get(["emphasis","disabled"])),mt(v).dataModel=a}),_c(f).data=c,f.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(q_);function ZJ(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=Z(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return $($({},c),{name:u,ordinalMeta:null})});n=Z(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new lr(n,e)}else n=[{name:"value",type:"float"}],a=new lr(n,e);var s=Z(e.get("data"),bt($J,t,r,e));r&&(s=Ut(s,bt(UJ,r)));var l=r?function(u,f,c,v){var h=u.coord[Math.floor(v/2)][v%2];return jn(h,n[v])}:function(u,f,c,v){return jn(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}const XJ=YJ;function qJ(r){r.registerComponentModel(WJ),r.registerComponentView(XJ),r.registerPreprocessor(function(t){X_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var KJ=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"])}},jJ=function(r){B(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){J(i)&&(i={type:i}),a[o]=Ct(i,KJ(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:F.size.m,align:"auto",backgroundColor:F.color.transparent,borderColor:F.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:F.color.disabled,inactiveBorderColor:F.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:F.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:F.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:F.color.tertiary,borderWidth:1,borderColor:F.color.border},emphasis:{selectorLabel:{show:!0,color:F.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Et);const xm=jJ;var ss=bt,bm=A,Sc=ft,JJ=function(r){B(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 Sc),this.group.add(this._selectorGroup=new Sc),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=ke(e,n).refContainer,c=e.getBoxLayoutParams(),v=e.get("padding"),h=ie(c,f,v),d=this.layoutInner(e,o,h,i,l,u),p=ie(ht({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=xR(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=at(),c=a.get("selectedMode"),v=a.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),bm(a.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===` -`)){var m=new Sc;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,y,p,d,a,e,x,w,b,c,i);T.on("click",ss(sA,y,null,i,h)).on("mouseover",ss(wm,_.name,null,i,h)).on("mouseout",ss(Tm,_.name,null,i,h)),n.ssr&&T.eachChild(function(C){var M=mt(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"),P=D.getItemVisual(I,"legendIcon"),R=gr(L.fill);R&&R[3]===0&&(R[3]=.2,L=$($({},L),{fill:Oa(R,"rgba")}));var k=this._createItem(C,y,p,d,a,e,{},L,P,c,i);k.on("click",ss(sA,null,y,i,h)).on("mouseover",ss(wm,null,y,i,h)).on("mouseout",ss(Tm,null,y,i,h)),n.ssr&&k.eachChild(function(N){var E=mt(N);E.seriesIndex=C.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),v&&k.eachChild(function(N){M.packEventData(N,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};mt(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();bm(e,function(u){var f=u.type,c=new Nt({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"]);Be(c,{normal:v,emphasis:h},{defaultText:u.title}),lo(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=QJ(f,i,l,u,h,g,v),x=new Sc,b=i.getModel("textStyle");if(lt(e.getLegendIcon)&&(!_||_==="inherit"))x.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;x.add(tQ({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;J(M)&&M?D=M.replace("{name}",a??""):lt(M)&&(D=M(a));var I=g?b.getTextColor():i.get("inactiveColor");x.add(new Nt({style:Jt(b,{text:D,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new Lt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Sn({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(R){R.silent=!0}),L.silent=!c,this.getContentGroup().add(x),lo(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();fo(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){fo("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}(le);function QJ(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),bm(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:ks(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 tQ(r){var t=r.icon||"roundRect",e=Te(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=F.color.neutral00,e.style.lineWidth=2),e}function sA(r,t,e,a){Tm(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),wm(r,t,e,a)}function ER(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 x={x:0,y:0};if(x[o]=p?n[o]:h[o],x[s]=Math.max(h[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-_,0),b[s]=x[s],c.setClipPath(new Lt({shape:b})),c.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Bt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),x},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",J(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=lg[o],l=ug[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||_&&!x(_,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]),(!_||!x(m,_.s))&&y.i=w&&b.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}(OR);const oQ=iQ;function sQ(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 lQ(r){At(NR),r.registerComponentModel(nQ),r.registerComponentView(oQ),sQ(r)}function uQ(r){At(NR),At(lQ)}var fQ=function(r){B(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=ci(Gu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Gu);const cQ=fQ;var K_=It();function vQ(r,t,e){K_(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function hQ(r,t){for(var e=K_(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 mQ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=K_(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=at());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=mR(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,dQ(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=at());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){BR(n,i);return}var f=yQ(l,i,e);o.enable(f.controlType,f.opt),Js(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var _Q=function(r){B(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(),vQ(n,e,{pan:Q(fg.pan,this),zoom:Q(fg.zoom,this),scrollMove:Q(fg.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){hQ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(H_),fg={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=cg[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(ni(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:cA(function(r,t,e,a,n,i){var o=cg[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:cA(function(r,t,e,a,n,i){var o=cg[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function cA(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(ni(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var cg={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 SQ=_Q;function zR(r){W_(r),r.registerComponentModel(cQ),r.registerComponentView(SQ),mQ(r)}var xQ=function(r){B(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=ci(Gu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:F.color.accent10,borderRadius:0,backgroundColor:F.color.transparent,dataBackground:{lineStyle:{color:F.color.accent30,width:.5},areaStyle:{color:F.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:F.color.accent40,width:.5},areaStyle:{color:F.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:F.color.neutral00,borderColor:F.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:F.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:F.color.tertiary},brushSelect:!0,brushStyle:{color:F.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:F.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Gu);const bQ=xQ;var Nl=Lt,wQ=1,vg=30,TQ=7,Bl="horizontal",vA="vertical",CQ=5,AQ=["line","bar","candlestick","scatter"],MQ={easing:"cubicOut",duration:100,delay:0},DQ=function(r){B(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=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),Js(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(){Cu(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 ft;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?TQ:0,o=ke(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Bl?{right:o.width-s.x-s.width,top:o.height-vg-l-i,width:s.width,height:vg}:{right:l,top:s.y,width:vg,height:s.height},f=Lo(e.option);A(["right","top","width","height"],function(v){f[v]==="ph"&&(f[v]=u[v])});var c=ie(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===vA&&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===Bl&&!o?{scaleY:l?1:-1,scaleX:1}:n===Bl&&o?{scaleY:l?1:-1,scaleX:-1}:n===vA&&!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 Nl({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Nl({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Q(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",x=-m,b=Math.round(o.count()/a[0]),w;o.each([e.thisDim,l],function(I,L,P){if(b>0&&P%b){S||(x+=m);return}x=S?(+I-c[0])*_:x+m;var R=L==null||isNaN(L)||L==="",k=R?0:$t(L,v,d,!0);R&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([x,0]),y.push([x,0])),R||(g.push([x,k]),y.push([x,k])),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"),P=new ft,R=new cr({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new ar({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(R),P.add(k),P}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&&wt(AQ,u.get("type"))<0)){var f=i.getComponent(Un(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 Nl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Nl({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:wQ,fill:F.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!vv[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=Te(S,-1,0,2,2,null,!0);x.attr({cursor:IQ(this._orient),draggable:!0,drift:Q(this._onDragMove,this,_),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=j(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),lo(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(n[_]=x);var C=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;e.add(i[_]=new Nt({silent:!0,invisible:!D,style:Jt(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 Lt({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=Te(l.get("moveHandleIcon"),-g/2,-g/2,g,g,F.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 Lt({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:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[$t(e[0],[0,100],a,!0),$t(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];ni(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?$t(s.minSpan,l,o,!0):null,s.maxSpan!=null?$t(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=$r([$t(i[0],o,l,!0),$t(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=$r(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 vt(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();ni(0,l,o,0,u.minSpan!=null?$t(u.minSpan,s,o,!0):null,u.maxSpan!=null?$t(u.maxSpan,s,o,!0):null),this._range=$r([$t(l[0],o,s,!0),$t(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(cn(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 Nl({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?MQ:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=mR(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}(H_);function LQ(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function IQ(r){return r==="vertical"?"ns-resize":"ew-resize"}const PQ=DQ;function VR(r){r.registerComponentModel(bQ),r.registerComponentView(PQ),W_(r)}function kQ(r){At(zR),At(VR)}var RQ={get:function(r,t,e){var a=ut((EQ[r]||{})[t]);return e&&U(a)?a[a.length-1]:a}},EQ={color:{active:["#006edd","#e0ffff"],inactive:[F.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 GR=RQ;var hA=Xe.mapVisual,OQ=Xe.eachVisual,NQ=U,dA=A,BQ=$r,zQ=$t,VQ=function(r){B(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&&DR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=Q(e,this),this.controllerVisuals=mm(this.option.controller,a,e),this.targetVisuals=mm(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=$s(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return Z(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(J(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(lt(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=BQ([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={});Ct(i,n),Ct(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){NQ(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]={},dA(d,function(g,y){if(Xe.isValidType(y)){var m=GR.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";dA(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&ut(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&ut(h)||(s?m[0]:[m[0],m[0]])),_.symbol=hA(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;OQ(S,function(b){b>x&&(x=b)}),_.symbolSize=hA(S,function(b){return zQ(b,[0,x],[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:F.color.transparent,borderColor:F.color.borderTint,contentColor:F.color.theme[0],inactiveColor:F.color.disabled,borderWidth:0,padding:F.size.m,textGap:10,precision:0,textStyle:{color:F.color.secondary}},t}(Et);const Yv=VQ;var pA=[20,140],GQ=function(r){B(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]=pA[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=pA[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=$r((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=gA(this,"outOfRange",this.getExtent()),n=gA(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 ft(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=wa(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=ia(n.handleLabelPoints[c],uo(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=wa(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=ia(f.indicatorLabelPoint,uo(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"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||SA(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=dB(v,h);this._dispatchHighDown("downplay",Hc(d[0],n)),this._dispatchHighDown("highlight",Hc(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Qi(e.target,function(l){var u=mt(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 JQ(r,t,e,a){for(var n=t.targetVisuals[a],i=Xe.prepareVisualTypes(n),o={color:Ku(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(qQ,KQ),A(jQ,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(QQ))}function $R(r){r.registerComponentModel(FQ),r.registerComponentView(XQ),WR(r)}var ttt=function(r){B(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=[],ett[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=ut(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=ut(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=Xe.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]=GR.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=ut(e)},t.prototype.getValueState=function(e){var a=Xe.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=Xe.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=ci(Yv.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}(Yv),ett={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 TA(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const rtt=ttt;var att=function(r){B(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=Ze(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 ft;d.onclick=Q(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 Nt({style:Jt(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),fo(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:Hc(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return HR(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 ft,l=this.visualMapModel.textStyleModel;s.add(new Nt({style:Jt(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=Z(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=Te(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=ut(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}(FR);const ntt=att;function UR(r){r.registerComponentModel(rtt),r.registerComponentView(ntt),WR(r)}function itt(r){At($R),At(UR)}var ott=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:iL(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}(),stt=function(r){B(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 ott(this);if(this._target=null,this.ecModel.eachSeries(function(n){Xw(n,null)}),this.shouldShow()){var a=this.getTarget();Xw(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:F.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:F.color.neutral30,borderColor:F.color.neutral40,opacity:.3},z:10},t}(Et),ltt=function(r){B(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 No),!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")||F.color.neutral00);var l=ke(e,n).refContainer,u=ie(DL(e,!0),l),f=s.lineWidth||0,c=this._contentRect=_o(u.clone(),f/2,!0,!0),v=new ft;i.add(v),v.setClipPath(new Lt({shape:c.plain()}));var h=this._targetGroup=new ft;v.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Lt({style:s,shape:d,silent:!1,cursor:"grab"}));var p=e.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);v.add(this._windowRect=new Lt({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),AA(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),AA(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=ie({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=la([],e.targetTrans),n=Ea([],this._coordSys.transform,a);this._transThisToTarget=la([],n);var i=e.viewportRect;i?i=i.clone():i=new gt(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(ht({r:s},i))}},t.prototype._resetRoamController=function(e){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new Oo(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",Q(this._onPan,this)).on("zoom",Q(this._onZoom,this))},t.prototype._onPan=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=me([],[e.oldX,e.oldY],a),i=me([],[e.oldX-e.dx,e.oldY-e.dy],a);this._api.dispatchAction(CA(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=me([],[e.originX,e.originY],a);this._api.dispatchAction(CA(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}(le);function CA(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 AA(r,t){var e=So(r);mh(t.group,e.z,e.zlevel)}function utt(r){r.registerComponentModel(stt),r.registerComponentView(ltt)}var ftt={label:{enabled:!0},decal:{show:!1}},MA=It(),ctt={};function vtt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=ut(ftt);Ct(a.label,r.getLocaleModel().get("aria"),!1),Ct(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=at();r.eachSeries(function(v){if(!v.isColorBySeries()){var h=c.get(v.type);h||(h={},c.set(v.type,h)),MA(v).scope=h}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(lt(v.enableAriaDecal)){v.enableAriaDecal();return}var h=v.getData();if(v.isColorBySeries()){var m=hy(v.ecModel,v.name,ctt,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,m))}else{var d=v.getRawData(),p={},g=MA(v).scope;h.each(function(x){var b=h.getRawIndex(x);p[b]=x});var y=d.count();d.each(function(x){var b=p[x],w=d.getName(x)||x+"",T=hy(v.ecModel,w,g,y),C=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(C,T))})}function S(x,b){var w=x?$($({},b),x):b;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=ht(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 P=c.get(["data","partialData"]);M+=o(P,{displayCnt:h})}else M+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),k=c.get(["data","separator","end"]),N=c.get(["data","excludeDimensionId"]),E=[],z=0;z":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},ptt=function(){function r(t){var e=this._condVal=J(t)?new RegExp(t):gO(t)?t:null;if(e==null){var a="";Ht(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return J(e)?this._condVal.test(t):Rt(e)?this._condVal.test(t+""):!1},r}(),gtt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),ytt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&a.push(n),n=[L,P]}function f(L,P,R,k){xs(L,R)&&xs(P,k)||n.push(L,P,R,k,R,k)}function c(L,P,R,k,N,E){var z=Math.abs(P-L),V=Math.tan(z/4)*4/3,H=PT:D2&&a.push(n),a}function Am(r,t,e,a,n,i,o,s,l,u){if(xs(r,e)&&xs(t,a)&&xs(n,o)&&xs(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=[];Qn(r,e,n,o,.5,C),Qn(t,a,i,s,.5,M),Am(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),Am(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function Ptt(r,t){var e=Cm(r),a=[];t=t||1;for(var n=0;n0)for(var u=0;uMath.abs(u),c=ZR([l,u],f?0:1,t),v=(f?s:u)/c.length,h=0;hn,o=ZR([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 vt(p*l+r,p*u+t)}function Ett(r,t,e){var a=new vt;vt.sub(a,e,t),a.normalize();var n=new vt;vt.sub(n,r,t);var i=n.dot(a);return i}function us(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Ott(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),Ott(t,u,f)}function Zv(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);Zv(r,i[0],n,a),Zv(r,i[1],e-n,a)}return a}function Ntt(r,t){for(var e=[],a=0;a0)for(var x=a/e,b=-a/2;b<=a/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),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 Kv(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=Z(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=Z(i,function(s,l){return{cp:s,z:Utt(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 KR(r){return Vtt(r.path,r.count)}function Mm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Ytt(r,t,e){var a=[];function n(x){for(var b=0;b=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 Xtt={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;NA(r)&&(u=r,f=t),NA(t)&&(u=t,f=r);function c(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,C=m?w:b[0];if(Xv(T))c({many:[T],one:C},!0,_,S,!0);else{var M=s?ht({delay:s(_,S)},l):l;J_(T,C,M),i(T,C,T,C,M)}}else for(var D=ht({dividePath:Xtt[e],individualDelay:s&&function(N,E,z,V){return s(N+_,S)}},l),I=m?Ytt(b,w,D):Ztt(w,b,D),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,k=0;kt.length,h=u?BA(f,u):BA(v?t:r,[v?r:t]),d=0,p=0;pjR))for(var i=a.getIndices(),o=0;o0&&b.group.traverse(function(T){T instanceof Pt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function HA(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function WA(r){return U(r)?r.sort().join(","):r}function Nn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function eet(r,t){var e=at(),a=at(),n=at();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=HA(i),f=WA(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=HA(i),u=WA(l),f=a.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Nn(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Nn(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:Nn(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Nn(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:Nn(v.data)}],newSeries:[]},e.set(v.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Nn(s)})}}}}),e}function $A(r,t){for(var e=0;e=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Nn(t.oldData[s]),groupIdDim:o.dimension})}),A(Kt(r.to),function(o){var s=$A(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Nn(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&JR(n,i,a)}function aet(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){A(Kt(a.seriesTransition),function(n){A(Kt(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=UA,a=YA,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 iet(){return new net}var UA=0,YA=0;function oet(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=Q_(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 set(r,t,e,a,n,i){r!=="no"&&A(e,function(o){var s=Q_(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:ut(o),vmin:t(o.start),vmax:t(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(J(o.gap)){var u=Wr(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 t1(r,t){return Lm(t)===Lm(r)}function Lm(r){return r.start+"_\0_"+r.end}function fet(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=To(a,function(u){return t1(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 cet(r,t,e,a){var n,i;if(r.break){var o=r.break.parsedBreak,s=To(e,function(c){return t1(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"?Se(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 vet(r,t,e){var a={noNegative:!0},n=Dm(r,e,a),i=Dm(r,e,a),o=Math.log(t);return i.breaks=Z(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 het={vmin:"start",vmax:"end"};function det(r,t){return t&&(r=r||{},r.break={type:het[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function pet(){OV({createScaleBreakContext:iet,pruneTicksByBreak:set,addBreaksToTicks:uet,parseAxisBreakOption:Dm,identifyAxisBreak:t1,serializeAxisBreakIdentifier:Lm,retrieveAxisBreakPairs:fet,getTicksLogTransformBreak:cet,logarithmicParseBreaksFromOption:vet,makeAxisLabelFormatterParamBreak:det})}var ZA=It();function get(r,t){var e=To(r,function(a){return xe().identifyAxisBreak(a.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function yet(r){A(r,function(t){return t.shouldRemove=!0})}function met(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function _et(r,t,e,a,n){var i=e.axis;if(i.scale.isBlank()||!xe())return;var o=xe().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 ft({ignoreModelZ:!0}),S=i.isHorizontal(),x=ZA(t).visualList||(ZA(t).visualList=[]);yet(x);for(var b=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;St&&(Y=E);var Mt=[],st=[];Mt[k]=D,st[k]=I,!ot&&!St&&(Mt[k]+=G?-l:l,st[k]-=G?l:-l),Mt[N]=Y,st[N]=Y,V.push(Mt),H.push(st);var et=void 0;if(Xm[1]&&m.reverse(),{coordPair:m,brkId:xe().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 vt,y=new vt;vt.scale(g,a,-s),vt.scale(y,a,1-s),ky(e[0],g),ky(e[1],y)}function wet(r,t){var e={breaks:[]};return A(t.breaks,function(a){if(a){var n=To(r.get("breaks",!0),function(s){return xe().identifyAxisBreak(s,a)});if(n){var i=t.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===Ih?!0:i===pP?!1:i===gP?!n.isExpanded:n.isExpanded,e.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),e}function Tet(){IW({adjustBreakLabelPair:bet,buildAxisBreakLine:xet,rectCoordBuildBreakAxis:_et,updateModelAxisBreak:wet})}function Cet(r){zW(r),pet(),Tet()}function Aet(){i$(Met)}function Met(r,t){A(r,function(e){if(!e.model.get(["axisLabel","inside"])){var a=Det(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 Det(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var a,n,i=e.getExtent();e instanceof Iu?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=tl(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f(oM("data-v-281d55ac"),r=r(),sM(),r),Iet={key:0,class:"loading-container"},Pet={class:"loading-text"},ket={key:1,class:"error-container"},Ret={key:2,class:"graph-container"},Eet={class:"control-panel"},Oet={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap"}},Net=Let(()=>Dt("div",{style:{flex:"1 1 auto"}},null,-1)),Bet=si({__name:"TagRelationGraph",props:{folders:{},lang:{}},emits:["searchTag","openCluster"],setup(r,{emit:t}){const e=r,a=Yt(!1),n=Yt(""),i=Yt(null),o=Yt(null),s=Yt(),l=Yt();let u=null,f=null,c=null,v=null,h={};const d=Yt("__all__"),p=Yt(""),g=Yt(3),y=Yt(""),m=Yt(200),_=Yt(0),S=Yt(0),x=Yt(!1),b=async()=>{try{if(document.fullscreenElement){await document.exitFullscreen();return}const V=l.value;if(!V||!V.requestFullscreen){ea.warning(Zt("tagGraphFullscreenUnsupported"));return}await V.requestFullscreen()}catch(V){ea.error((V==null?void 0:V.message)||Zt("tagGraphFullscreenFailed"))}},w=Ft(()=>{var Y;const H=(((Y=i.value)==null?void 0:Y.layers)??[]).map(X=>String(X.name??"")).filter(Boolean),G=Array.from(new Set(H));return[{label:Zt("tagGraphAllLayers"),value:"__all__"},...G.map(X=>({label:X,value:X}))]}),T=Ft(()=>{var H;return(((H=o.value)==null?void 0:H.layers)??[]).reduce((G,Y)=>{var X;return G+(((X=Y==null?void 0:Y.nodes)==null?void 0:X.length)??0)},0)}),C=Ft(()=>{var V,H;return((H=(V=o.value)==null?void 0:V.links)==null?void 0:H.length)??0}),M=["#4A90E2","#7B68EE","#50C878","#FF6B6B","#FFD700","#FF8C00"],D=V=>M[V%M.length],I=async()=>{var V,H;if(!e.folders||e.folders.length===0){n.value="No folders selected";return}a.value=!0,n.value="";try{const G={folder_paths:e.folders,lang:e.lang||"en"};i.value=await pE(G),o.value={...i.value,layers:P(i.value.layers,m.value||200)}}catch(G){const Y=(H=(V=G.response)==null?void 0:V.data)==null?void 0:H.detail;n.value=typeof Y=="string"?Y:Y?JSON.stringify(Y):G.message||"Failed to load graph",ea.error(n.value)}finally{a.value=!1}},L=()=>{s.value&&Fh(()=>{z()})},P=(V,H)=>{const G=[];for(const Y of V){let X=(Y==null?void 0:Y.nodes)??[];Number((Y==null?void 0:Y.level)??0)===1&&X.length>H&&(X=X.sort((St,Mt)=>(Mt.size||0)-(St.size||0)).slice(0,H)),X.length&&G.push({...Y,nodes:X})}return G},R=()=>{const V=i.value;if(!V)return;const H=(p.value||"").trim().toLowerCase(),G=d.value,Y=m.value||200;if(!y.value&&!H&&(G==="__all__"||!G)){o.value={...V,layers:P(V.layers,Y)},L();return}const X=new Map;for(const O of V.layers){const W=String((O==null?void 0:O.name)??""),q=Number((O==null?void 0:O.level)??0);for(const K of(O==null?void 0:O.nodes)??[]){const pt=String((K==null?void 0:K.id)??"");pt&&X.set(pt,{id:pt,label:String((K==null?void 0:K.label)??""),layerName:W,layerLevel:q,metadata:K==null?void 0:K.metadata})}}const ot=new Set;if(y.value)X.has(y.value)&&ot.add(y.value);else for(const[O,W]of X)G&&G!=="__all__"&&W.layerName!==G||H&&!`${W.label} ${O}`.toLowerCase().includes(H)||ot.add(O);const St=V.links,Mt=new Map,st=(O,W)=>{!O||!W||(Mt.has(O)||Mt.set(O,new Set),Mt.get(O).add(W))};for(const O of St){const W=String((O==null?void 0:O.source)??""),q=String((O==null?void 0:O.target)??"");!W||!q||(st(W,q),st(q,W))}const et=new Set;if(y.value){if(!X.get(y.value))return;const W=_.value,q=S.value,K=(xt,Tt)=>{const Ot=new Set([xt]),te=[{id:xt,d:0}];for(;te.length;){const Xt=te.shift();if(Xt.d>=Tt)continue;const $e=Mt.get(Xt.id);if(!$e)continue;const ze=X.get(Xt.id),Ir=(ze==null?void 0:ze.layerLevel)??0;for(const Wt of $e){if(Ot.has(Wt))continue;const fe=X.get(Wt);((fe==null?void 0:fe.layerLevel)??0)>Ir&&(Ot.add(Wt),et.add(Wt),te.push({id:Wt,d:Xt.d+1}))}}},pt=(xt,Tt)=>{const Ot=new Set([xt]),te=[{id:xt,d:0}];for(;te.length;){const Xt=te.shift();if(Xt.d>=Tt)continue;const $e=Mt.get(Xt.id);if(!$e)continue;const ze=X.get(Xt.id),Ir=(ze==null?void 0:ze.layerLevel)??0;for(const Wt of $e){if(Ot.has(Wt))continue;const fe=X.get(Wt);((fe==null?void 0:fe.layerLevel)??0)0&&K(y.value,W),q>0&&pt(y.value,q)}else for(const O of ot)et.add(O);const it=[];for(const O of V.layers){let W=((O==null?void 0:O.nodes)??[]).filter(K=>et.has(String((K==null?void 0:K.id)??"")));Number((O==null?void 0:O.level)??0)===1&&W.length>Y&&(W=W.sort((K,pt)=>(pt.size||0)-(K.size||0)).slice(0,Y)),W.length&&it.push({...O,nodes:W})}const tt=St.filter(O=>et.has(String((O==null?void 0:O.source)??""))&&et.has(String((O==null?void 0:O.target)??"")));o.value={layers:it,links:tt,stats:{...V.stats,total_links:tt.length}},L()},k=()=>{y.value="",R()},N=(V,H,G,Y)=>{d.value=H||"__all__",p.value=G||"",y.value=V,Y==="cluster"?(_.value=3,S.value=0):Y==="tag"?(_.value=2,S.value=1):Y==="abstract"?(_.value=1,S.value=2):(_.value=2,S.value=2),R()},E=()=>{d.value="__all__",p.value="",g.value=3,y.value="",i.value&&(o.value={...i.value,layers:P(i.value.layers,m.value||200)}),L()},z=()=>{if(!o.value||!s.value)return;u&&u.dispose(),u=NF(s.value);const H=[...o.value.layers].reverse(),G=[],Y=2400,X=120,ot=180;h={};const St=[];for(const W of H){const q=W.nodes.length;if(q===0){St.push(0);continue}const K=Math.max(.3,1-q/500),pt=X+(ot-X)*K,Tt=Math.ceil(Math.sqrt(q));St.push(Tt*pt)}const Mt=[];let st=300;H.forEach((W,q)=>{const K=St[q];if(K===0)return;const pt=St[q+1]??K,xt=.5,Tt=(K+pt)*xt;Mt.push({startX:st,width:K}),st+=K+Tt}),H.forEach((W,q)=>{const K=W.nodes.length;if(K===0)return;const xt=Mt[q].startX,Tt=Math.max(.3,1-K/500)*(W.name.toLowerCase().includes("abstract")?2:1),Ot=X+(ot-X)*Tt,Xt=Math.ceil(Math.sqrt(K)),ze=Math.ceil(K/Xt)*Ot,Wt=W.nodes.reduce((Re,qr)=>Re+qr.id.charCodeAt(0),0)*7%500-250,fe=(Y-ze)/2+Wt;W.nodes.forEach((Re,qr)=>{const Ua=Math.floor(qr/Xt);let Ya=(qr%Xt-(Xt-1)/2)*Ot,da=Ua*Ot;const Kr=Re.id.split("").reduce((Vh,a1)=>Vh+a1.charCodeAt(0),0),nl=Kr*37.5%(Math.PI*2),il=Ot*.8*(Kr*13%100)/100,of=Ot*.4*(Kr*23%100)/100-Ot*.2,ve=Ot*.4*(Kr*41%100)/100-Ot*.2;Ya+=of,da+=ve;const bn=Ya+Math.cos(nl)*il,e1=da+Math.sin(nl)*il,QR=xt+Ot/2+bn,tE=fe+e1,r1=20,eE=60,rE=Math.sqrt(Re.size)/5,aE=Math.max(r1,Math.min(eE,r1+rE));G.push({id:Re.id,name:Re.label,x:QR,y:tE,fixed:!0,symbolSize:aE,value:Re.size,category:W.level,itemStyle:{color:D(W.level)},label:{show:!0,fontSize:11,color:"#fff",formatter:Vh=>{const Gh=Vh.name;return Gh.length>10?Gh.substring(0,10)+"...":Gh}},metadata:Re.metadata,layerName:W.name}),h[Re.id]=G.length-1})});const et=o.value.links.map(W=>({source:W.source,target:W.target,value:W.weight,lineStyle:{width:Math.max(.5,Math.min(2,W.weight/100)),opacity:.3,curveness:.1}})),it=H.map(W=>({name:W.name})),tt={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:W=>{if(W.dataType==="node"){const q=W.data,K=String(q.id||""),pt=q.metadata||{},xt=Number(pt.image_count??q.value??0),Tt=pt.cluster_count!=null?Number(pt.cluster_count):null,Ot=pt.level!=null?Number(pt.level):null,te=String(pt.type||""),Xt=[];!Number.isNaN(xt)&&xt>0&&Xt.push(`🖼️ ${xt}`),Tt!=null&&!Number.isNaN(Tt)&&Xt.push(`🧩 ${Tt}`),Ot!=null&&!Number.isNaN(Ot)&&Xt.push(`🏷️ L${Ot}`);const $e=te==="tag",ze=te==="tag"||te==="abstract"||te==="cluster",Ir=te==="cluster",Wt=[$e?``:"",ze?``:"",Ir?``:"",``].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=yt(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=Il([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 Ed;y.marker=m.makeTooltipMarker("item",So(y.color),h);var _=qS(u.formatTooltip(f,!1,c)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?ex(x?$({valueFormatter:x},b):b,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=yt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(J(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ut(l),l.content=Je(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=Il(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new Ed;this._showOrMove(d,function(){var m=ut(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(J(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=gh(y.axisValue,h,g)),h=_L(h,n,!0)}else if(lt(v)){var _=Q(function(S,x){S===this._ticket&&(c.setContent(x,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),lt(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(dt(a)){var p=a;p.width=c[0],p.height=c[1];var g=ie(p,{width:u,height:f});n=g.x,i=g.y,v=null,h=null}else if(J(a)&&l){var y=Nj(a,d,c,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=Ej(n,i,o,u,f,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=zC(v)?c[0]/2:v==="right"?c[0]:0),h&&(i-=zC(h)?c[1]/2:h==="bottom"?c[1]:0),SR(e)){var y=Oj(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){Vt.node||!a.getDom()||(bu(this,"_updatePosition"),this._tooltipContent.dispose(),om("itemTooltip",a))},t.type="tooltip",t}(le);function Il(r,t,e){var a=t.ecModel,n;e?(n=new zt(e,a,a),n=new zt(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof zt&&(o=o.get("tooltip",!0)),J(o)&&(o={formatter:o}),o&&(n=new zt(o,n,a)))}return n}function BC(r,t){return r.dispatchAction||Q(t.dispatchAction,t)}function Ej(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 Oj(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 Nj(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 zC(r){return r==="center"||r==="middle"}function Bj(r,t,e){var a=Wm(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Ws(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=yt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const zj=Rj;function Vj(r){At(ef),r.registerComponentModel(mj),r.registerComponentView(zj),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ge),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ge)}var Gj=["rect","polygon","keep","clear"];function Fj(r,t){var e=qt(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),Hj(s),t&&!s.length&&s.push.apply(s,Gj)}}function Hj(r){var t={};A(r,function(e){t[e]=1}),r.length=0,A(t,function(e,a){r.push(a)})}var VC=A;function GC(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function pm(r,t,e){var a={};return VC(t,function(i){var o=a[i]=n();VC(r[i],function(s,l){if(Xe.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Xe(u),l==="opacity"&&(u=ut(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Xe(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function TR(r,t,e){var a;A(e,function(n){t.hasOwnProperty(n)&&GC(t[n])&&(a=!0)}),a&&A(e,function(n){t.hasOwnProperty(n)&&GC(t[n])?r[n]=ut(t[n]):delete r[n]})}function Wj(r,t,e,a,n,i){var o={};A(r,function(c){var v=Xe.prepareVisualTypes(t[c]);o[c]=v});var s;function l(c){return M0(e,s,c)}function u(c,v){y2(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&&UC(t)}};function UC(r){return new gt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var jj=function(r){B(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 m_(a.getZr())).on("brush",Q(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){CR(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:ut(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:ut(n),$from:a})},t.type="brush",t}(le);const Jj=jj;var Qj=function(r){B(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&&TR(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=Z(e,function(a){return YC(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=YC(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:F.color.backgroundTint,borderColor:F.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:F.color.disabled},t}(Et);function YC(r,t){return Tt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new zt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const tJ=Qj;var eJ=["rect","polygon","lineX","lineY","keep","clear"],rJ=function(r){B(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}(Gr);const aJ=rJ;function nJ(r){r.registerComponentView(Jj),r.registerComponentModel(tJ),r.registerPreprocessor(Fj),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Yj),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"},ge),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ge),hs("brush",aJ)}var iJ=function(r){B(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:F.size.m,backgroundColor:F.color.transparent,borderColor:F.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:F.color.primary},subtextStyle:{fontSize:12,color:F.color.quaternary}},t}(Et),oJ=function(r){B(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 Nt({style:Jt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=e.get("subtext"),h=new Nt({style:Jt(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(){iv(d,"_"+e.get("target"))}),p&&h.on("click",function(){iv(p,"_"+e.get("subtarget"))}),yt(f).eventData=yt(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 _=Pe(e,n),S=ie(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 x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var b=S.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var T=new Lt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(le);function sJ(r){r.registerComponentModel(iJ),r.registerComponentView(oJ)}var lJ=function(r){B(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=Me(Hs(u),""),v;dt(u)?(v=ut(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 sr([{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:F.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:F.color.secondary},data:[]},t}(Et);const ZC=lJ;var AR=function(r){B(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=fi(ZC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:F.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:F.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:F.color.tertiary},itemStyle:{color:F.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:F.color.accent50,borderColor:F.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:F.color.accent50,borderColor:F.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:F.color.accent60},itemStyle:{color:F.color.accent60,borderColor:F.color.accent60},controlStyle:{color:F.color.accent70,borderColor:F.color.accent70}},progress:{lineStyle:{color:F.color.accent30},itemStyle:{color:F.color.accent40}},data:[]}),t}(ZC);Te(AR,_h.prototype);const uJ=AR;var fJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(le);const cJ=fJ;var vJ=function(r){B(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}(va);const hJ=vJ;var rg=Math.PI,XC=It(),dJ=function(r){B(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 be("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=gJ(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:rg/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*rg/180;var m,_,S,x=v.get("position",!0),b=h&&v.get("showPlayBtn",!0),w=h&&v.get("showPrevBtn",!0),T=h&&v.get("showNextBtn",!0),C=0,M=c;x==="left"||x==="bottom"?(b&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-d,0],M-=g)):(b&&(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=He(),l=o.x,u=o.y+o.height;za(s,s,[-l,-u]),si(s,s,-rg/2),za(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||J(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,x,b,w,T){S[w]+=b[w][T]-x[w][T]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=pJ(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 hJ("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new ft;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 De({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 De({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ht({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:Q(o._changeTimeline,o,u.value)},g=qC(c,v,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),so(g);var y=yt(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 Nt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:Q(o._changeTimeline,o,c),silent:!1,style:Jt(h,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Jt(d),y.ensureState("progress").style=Jt(p),a.add(y),so(y),XC(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",Q(this._changeTimeline,this,c?"-":"+")),v(e.prevBtnPosition,"prev",Q(this._changeTimeline,this,c?"+":"-")),v(e.playPosition,f?"stop":"play",Q(this._handlePlayClick,this,!f),!0);function v(h,d,p,g){if(h){var y=la(nt(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=yJ(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(_),so(_)}}},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=Q(u._handlePointerDrag,u),c.ondragend=Q(u._handlePointerDragend,u),KC(c,u._progressLine,s,n,i,!0)},onUpdate:function(c){KC(c,u._progressLine,s,n,i)}};this._currentPointer=qC(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=$r(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var hc={min:bt(vc,"min"),max:bt(vc,"max"),average:bt(vc,"average"),median:bt(vc,"median")};function zu(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!CJ(t)&&!U(t.coord)&&U(n)){var i=DR(t,e,a,r);if(t=ut(t),t.type&&hc[t.type]&&i.baseAxis&&i.valueAxis){var o=wt(n,i.baseAxis.dim),s=wt(n,i.valueAxis.dim),l=hc[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&&hc[t.type]){var f=a.getOtherAxis(u);f&&(t.value=Vv(e,e.mapDimension(f.dim),t.type))}}else for(var c=t.coord,v=0;v<2;v++)hc[c[v]]&&(c[v]=Vv(e,e.mapDimension(n[v]),c[v]));return t}}function DR(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(AJ(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 AJ(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Vu(r,t){return r&&r.containData&&t.coord&&!ym(t)?r.containData(t.coord):!0}function MJ(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!ym(t)&&!ym(e)?r.containZone(t.coord,e.coord):!0}function LR(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Kn(o,t[i])}:function(e,a,n,i){return Kn(e.value,t[i])}}function Vv(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 ag=It(),DJ=function(r){B(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=at()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){ag(s).keep=!1}),a.eachSeries(function(s){var l=mn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!ag(s).keep&&i.group.remove(s.group)}),LJ(a,o,this.type)},t.prototype.markKeep=function(e){ag(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;A(e,function(i){var o=mn.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?CD(l):jm(l))})}})},t.type="marker",t}(le);function LJ(r,t,e){r.eachSeries(function(a){var n=mn.getMarkerModelFromSeries(a,e),i=t.get(a.id);if(n&&i&&i.group){var o=_o(n),s=o.z,l=o.zlevel;dh(i.group,s,l)}})}const Y_=DJ;function JC(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 IJ=function(r){B(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=mn.getMarkerModelFromSeries(i,"markPoint");o&&(JC(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 ju),c=PJ(o,e,a);a.setData(c),JC(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(lt(d)||lt(p)||lt(g)||lt(y)){var _=a.getRawValue(v),S=a.getDataParams(v);lt(d)&&(d=d(_,S)),lt(p)&&(p=p(_,S)),lt(g)&&(g=g(_,S)),lt(y)&&(y=y(_,S))}var x=h.getModel("itemStyle").getItemStyle(),b=h.get("z2"),w=Zu(l,"color");x.fill||(x.fill=w),c.setItemVisual(v,{z2:nt(b,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(v){v.traverse(function(h){yt(h).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(Y_);function PJ(r,t,e){var a;r?a=Z(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 sr(a,e),i=Z(e.get("data"),bt(zu,t));r&&(i=Ut(i,bt(Vu,r)));var o=LR(!!r,a);return n.initData(i,null,o),n}const kJ=IJ;function RJ(r){r.registerComponentModel(TJ),r.registerComponentView(kJ),r.registerPreprocessor(function(t){U_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var EJ=function(r){B(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}(mn);const OJ=EJ;var dc=It(),NJ=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=Ze(a.yAxis,a.xAxis);else{var u=DR(a,n,t,r);s=u.valueAxis;var f=Z2(n,u.valueDataDim);l=Vv(n,f,o)}var c=s.dim==="x"?0:1,v=1-c,h=ut(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&&Rt(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=[zu(r,i[0]),zu(r,i[1]),$({},i[2])];return g[2].type=g[2].type||null,Tt(g[2],g[0]),Tt(g[2],g[1]),g};function Gv(r){return!isNaN(r)&&!isFinite(r)}function QC(r,t,e,a){var n=1-r,i=a.dimensions[r];return Gv(t[n])&&Gv(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function BJ(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(QC(1,e,a,r)||QC(0,e,a,r)))return!0}return Vu(r,t[0])&&Vu(r,t[1])}function ng(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(ri(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Gv(r.get(f[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):Gv(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 zJ=function(r){B(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=mn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=dc(o).from,u=dc(o).to;l.each(function(f){ng(l,f,!0,i,n),ng(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 c_);this.group.add(f.group);var c=VJ(o,e,a),v=c.from,h=c.to,d=c.line;dc(a).from=v,dc(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 x=d.getItemModel(S),b=x.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),h.getItemLayout(S)]);var w=x.get("z2");b.stroke==null&&(b.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:b})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){yt(S).dataModel=a,S.traverse(function(x){yt(x).dataModel=a})});function _(S,x,b){var w=S.getItemModel(x);ng(S,x,b,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Zu(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:nt(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:nt(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:nt(w.get("symbolSize"),g[b?0:1]),symbol:nt(w.get("symbol",!0),p[b?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(Y_);function VJ(r,t,e){var a;r?a=Z(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 sr(a,e),i=new sr(a,e),o=new sr([],e),s=Z(e.get("data"),bt(NJ,t,r,e));r&&(s=Ut(s,bt(BJ,r)));var l=LR(!!r,a);return n.initData(Z(s,function(u){return u[0]}),null,l),i.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}const GJ=zJ;function FJ(r){r.registerComponentModel(OJ),r.registerComponentView(GJ),r.registerPreprocessor(function(t){U_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var HJ=function(r){B(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}(mn);const WJ=HJ;var pc=It(),$J=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=zu(r,n),s=zu(r,i),l=o.coord,u=s.coord;l[0]=Ze(l[0],-1/0),l[1]=Ze(l[1],-1/0),u[0]=Ze(u[0],1/0),u[1]=Ze(u[1],1/0);var f=Pm([{},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 Fv(r){return!isNaN(r)&&!isFinite(r)}function tA(r,t,e,a){var n=1-r;return Fv(t[n])&&Fv(e[n])}function UJ(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 ri(r,"cartesian2d")?e&&a&&(tA(1,e,a)||tA(0,e,a))?!0:MJ(r,n,i):Vu(r,n)||Vu(r,i)}function eA(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(ri(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);Fv(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):Fv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var rA=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],YJ=function(r){B(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=mn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(rA,function(c){return eA(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 ft});this.group.add(f.group),this.markKeep(f);var c=ZJ(o,e,a);a.setData(c),c.each(function(v){var h=Z(rA,function(M){return eA(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))];$r(m),$r(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),x=!S;c.setItemLayout(v,{points:h,allClipped:x});var b=c.getItemModel(v),w=b.getModel("itemStyle").getItemStyle(),T=b.get("z2"),C=Zu(l,"color");w.fill||(w.fill=C,J(w.fill)&&(w.fill=Uc(w.fill,.4))),w.stroke||(w.stroke=C),c.setItemVisual(v,"style",w),c.setItemVisual(v,"z2",nt(T,0))}),c.diff(pc(f).data).add(function(v){var h=c.getItemLayout(v),d=c.getItemVisual(v,"z2");if(!h.allClipped){var p=new fr({z2:nt(d,0),shape:{points:h.points}});c.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,h){var d=pc(f).data.getItemGraphicEl(h),p=c.getItemLayout(v),g=c.getItemVisual(v,"z2");p.allClipped?d&&f.group.remove(d):(d?Bt(d,{z2:nt(g,0),shape:{points:p.points}},a,v):d=new fr({shape:{points:p.points}}),c.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var h=pc(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")),Ne(v,Ie(d),{labelFetcher:a,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:J(p.fill)?Uc(p.fill,1):F.color.neutral99}),Le(v,d),ne(v,null,null,d.get(["emphasis","disabled"])),yt(v).dataModel=a}),pc(f).data=c,f.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(Y_);function ZJ(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=Z(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return $($({},c),{name:u,ordinalMeta:null})});n=Z(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new sr(n,e)}else n=[{name:"value",type:"float"}],a=new sr(n,e);var s=Z(e.get("data"),bt($J,t,r,e));r&&(s=Ut(s,bt(UJ,r)));var l=r?function(u,f,c,v){var h=u.coord[Math.floor(v/2)][v%2];return Kn(h,n[v])}:function(u,f,c,v){return Kn(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}const XJ=YJ;function qJ(r){r.registerComponentModel(WJ),r.registerComponentView(XJ),r.registerPreprocessor(function(t){U_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var KJ=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"])}},jJ=function(r){B(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){J(i)&&(i={type:i}),a[o]=Tt(i,KJ(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:F.size.m,align:"auto",backgroundColor:F.color.transparent,borderColor:F.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:F.color.disabled,inactiveBorderColor:F.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:F.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:F.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:F.color.tertiary,borderWidth:1,borderColor:F.color.border},emphasis:{selectorLabel:{show:!0,color:F.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Et);const mm=jJ;var os=bt,_m=A,gc=ft,JJ=function(r){B(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 gc),this.group.add(this._selectorGroup=new gc),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=Pe(e,n).refContainer,c=e.getBoxLayoutParams(),v=e.get("padding"),h=ie(c,f,v),d=this.layoutInner(e,o,h,i,l,u),p=ie(ht({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=yR(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=at(),c=a.get("selectedMode"),v=a.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),_m(a.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===` +`)){var m=new gc;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,y,p,d,a,e,x,w,b,c,i);T.on("click",os(aA,y,null,i,h)).on("mouseover",os(Sm,_.name,null,i,h)).on("mouseout",os(xm,_.name,null,i,h)),n.ssr&&T.eachChild(function(C){var M=yt(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"),P=D.getItemVisual(I,"legendIcon"),R=gr(L.fill);R&&R[3]===0&&(R[3]=.2,L=$($({},L),{fill:Ea(R,"rgba")}));var k=this._createItem(C,y,p,d,a,e,{},L,P,c,i);k.on("click",os(aA,null,y,i,h)).on("mouseover",os(Sm,null,y,i,h)).on("mouseout",os(xm,null,y,i,h)),n.ssr&&k.eachChild(function(N){var E=yt(N);E.seriesIndex=C.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),v&&k.eachChild(function(N){M.packEventData(N,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};yt(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();_m(e,function(u){var f=u.type,c=new Nt({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"]);Ne(c,{normal:v,emphasis:h},{defaultText:u.title}),so(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=QJ(f,i,l,u,h,g,v),x=new gc,b=i.getModel("textStyle");if(lt(e.getLegendIcon)&&(!_||_==="inherit"))x.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;x.add(tQ({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;J(M)&&M?D=M.replace("{name}",a??""):lt(M)&&(D=M(a));var I=g?b.getTextColor():i.get("inactiveColor");x.add(new Nt({style:Jt(b,{text:D,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new Lt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Sn({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(R){R.silent=!0}),L.silent=!c,this.getContentGroup().add(x),so(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();uo(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){uo("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}(le);function QJ(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),_m(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:Ps(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 tQ(r){var t=r.icon||"roundRect",e=we(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=F.color.neutral00,e.style.lineWidth=2),e}function aA(r,t,e,a){xm(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Sm(r,t,e,a)}function IR(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 x={x:0,y:0};if(x[o]=p?n[o]:h[o],x[s]=Math.max(h[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-_,0),b[s]=x[s],c.setClipPath(new Lt({shape:b})),c.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Bt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),x},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",J(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=ig[o],l=og[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||_&&!x(_,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]),(!_||!x(m,_.s))&&y.i=w&&b.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}(PR);const oQ=iQ;function sQ(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 lQ(r){At(kR),r.registerComponentModel(nQ),r.registerComponentView(oQ),sQ(r)}function uQ(r){At(kR),At(lQ)}var fQ=function(r){B(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=fi(Bu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Bu);const cQ=fQ;var Z_=It();function vQ(r,t,e){Z_(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function hQ(r,t){for(var e=Z_(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 mQ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=Z_(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=at());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=dR(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,dQ(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=at());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){RR(n,i);return}var f=yQ(l,i,e);o.enable(f.controlType,f.opt),js(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var _Q=function(r){B(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(),vQ(n,e,{pan:Q(sg.pan,this),zoom:Q(sg.zoom,this),scrollMove:Q(sg.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){hQ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(V_),sg={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=lg[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(ai(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:sA(function(r,t,e,a,n,i){var o=lg[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:sA(function(r,t,e,a,n,i){var o=lg[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function sA(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(ai(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var lg={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 SQ=_Q;function ER(r){G_(r),r.registerComponentModel(cQ),r.registerComponentView(SQ),mQ(r)}var xQ=function(r){B(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=fi(Bu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:F.color.accent10,borderRadius:0,backgroundColor:F.color.transparent,dataBackground:{lineStyle:{color:F.color.accent30,width:.5},areaStyle:{color:F.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:F.color.accent40,width:.5},areaStyle:{color:F.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:F.color.neutral00,borderColor:F.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:F.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:F.color.tertiary},brushSelect:!0,brushStyle:{color:F.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:F.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Bu);const bQ=xQ;var Rl=Lt,wQ=1,ug=30,TQ=7,El="horizontal",lA="vertical",CQ=5,AQ=["line","bar","candlestick","scatter"],MQ={easing:"cubicOut",duration:100,delay:0},DQ=function(r){B(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=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),js(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(){bu(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 ft;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?TQ:0,o=Pe(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===El?{right:o.width-s.x-s.width,top:o.height-ug-l-i,width:s.width,height:ug}:{right:l,top:s.y,width:ug,height:s.height},f=Do(e.option);A(["right","top","width","height"],function(v){f[v]==="ph"&&(f[v]=u[v])});var c=ie(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===lA&&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===El&&!o?{scaleY:l?1:-1,scaleX:1}:n===El&&o?{scaleY:l?1:-1,scaleX:-1}:n===lA&&!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 Rl({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Rl({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Q(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",x=-m,b=Math.round(o.count()/a[0]),w;o.each([e.thisDim,l],function(I,L,P){if(b>0&&P%b){S||(x+=m);return}x=S?(+I-c[0])*_:x+m;var R=L==null||isNaN(L)||L==="",k=R?0:$t(L,v,d,!0);R&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([x,0]),y.push([x,0])),R||(g.push([x,k]),y.push([x,k])),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"),P=new ft,R=new fr({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new rr({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(R),P.add(k),P}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&&wt(AQ,u.get("type"))<0)){var f=i.getComponent($n(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 Rl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Rl({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:wQ,fill:F.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!lv[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=we(S,-1,0,2,2,null,!0);x.attr({cursor:IQ(this._orient),draggable:!0,drift:Q(this._onDragMove,this,_),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=j(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),so(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(n[_]=x);var C=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;e.add(i[_]=new Nt({silent:!0,invisible:!D,style:Jt(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 Lt({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=we(l.get("moveHandleIcon"),-g/2,-g/2,g,g,F.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 Lt({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:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[$t(e[0],[0,100],a,!0),$t(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];ai(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?$t(s.minSpan,l,o,!0):null,s.maxSpan!=null?$t(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=$r([$t(i[0],o,l,!0),$t(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=$r(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 vt(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();ai(0,l,o,0,u.minSpan!=null?$t(u.minSpan,s,o,!0):null,u.maxSpan!=null?$t(u.maxSpan,s,o,!0):null),this._range=$r([$t(l[0],o,s,!0),$t(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(cn(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 Rl({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?MQ:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=dR(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}(V_);function LQ(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function IQ(r){return r==="vertical"?"ns-resize":"ew-resize"}const PQ=DQ;function OR(r){r.registerComponentModel(bQ),r.registerComponentView(PQ),G_(r)}function kQ(r){At(ER),At(OR)}var RQ={get:function(r,t,e){var a=ut((EQ[r]||{})[t]);return e&&U(a)?a[a.length-1]:a}},EQ={color:{active:["#006edd","#e0ffff"],inactive:[F.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 NR=RQ;var uA=Xe.mapVisual,OQ=Xe.eachVisual,NQ=U,fA=A,BQ=$r,zQ=$t,VQ=function(r){B(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&&TR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=Q(e,this),this.controllerVisuals=pm(this.option.controller,a,e),this.targetVisuals=pm(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=Ws(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return Z(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(J(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(lt(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=BQ([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={});Tt(i,n),Tt(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){NQ(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]={},fA(d,function(g,y){if(Xe.isValidType(y)){var m=NR.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";fA(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&ut(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&ut(h)||(s?m[0]:[m[0],m[0]])),_.symbol=uA(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;OQ(S,function(b){b>x&&(x=b)}),_.symbolSize=uA(S,function(b){return zQ(b,[0,x],[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:F.color.transparent,borderColor:F.color.borderTint,contentColor:F.color.theme[0],inactiveColor:F.color.disabled,borderWidth:0,padding:F.size.m,textGap:10,precision:0,textStyle:{color:F.color.secondary}},t}(Et);const Hv=VQ;var cA=[20,140],GQ=function(r){B(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]=cA[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=cA[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=$r((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=vA(this,"outOfRange",this.getExtent()),n=vA(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 ft(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=ba(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=na(n.handleLabelPoints[c],lo(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=ba(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=na(f.indicatorLabelPoint,lo(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"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||gA(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=dB(v,h);this._dispatchHighDown("downplay",zc(d[0],n)),this._dispatchHighDown("highlight",zc(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Ji(e.target,function(l){var u=yt(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 JQ(r,t,e,a){for(var n=t.targetVisuals[a],i=Xe.prepareVisualTypes(n),o={color:Zu(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(qQ,KQ),A(jQ,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(QQ))}function GR(r){r.registerComponentModel(FQ),r.registerComponentView(XQ),VR(r)}var ttt=function(r){B(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=[],ett[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=ut(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=ut(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=Xe.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]=NR.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=ut(e)},t.prototype.getValueState=function(e){var a=Xe.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=Xe.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=fi(Hv.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}(Hv),ett={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 SA(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const rtt=ttt;var att=function(r){B(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=Ze(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 ft;d.onclick=Q(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 Nt({style:Jt(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),uo(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:zc(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return zR(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 ft,l=this.visualMapModel.textStyleModel;s.add(new Nt({style:Jt(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=Z(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=we(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=ut(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}(BR);const ntt=att;function FR(r){r.registerComponentModel(rtt),r.registerComponentView(ntt),VR(r)}function itt(r){At(GR),At(FR)}var ott=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:eL(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}(),stt=function(r){B(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 ott(this);if(this._target=null,this.ecModel.eachSeries(function(n){$w(n,null)}),this.shouldShow()){var a=this.getTarget();$w(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:F.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:F.color.neutral30,borderColor:F.color.neutral40,opacity:.3},z:10},t}(Et),ltt=function(r){B(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 Oo),!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")||F.color.neutral00);var l=Pe(e,n).refContainer,u=ie(TL(e,!0),l),f=s.lineWidth||0,c=this._contentRect=mo(u.clone(),f/2,!0,!0),v=new ft;i.add(v),v.setClipPath(new Lt({shape:c.plain()}));var h=this._targetGroup=new ft;v.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Lt({style:s,shape:d,silent:!1,cursor:"grab"}));var p=e.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);v.add(this._windowRect=new Lt({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),bA(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),bA(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=ie({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=sa([],e.targetTrans),n=Ra([],this._coordSys.transform,a);this._transThisToTarget=sa([],n);var i=e.viewportRect;i?i=i.clone():i=new gt(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(ht({r:s},i))}},t.prototype._resetRoamController=function(e){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new Eo(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",Q(this._onPan,this)).on("zoom",Q(this._onZoom,this))},t.prototype._onPan=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ye([],[e.oldX,e.oldY],a),i=ye([],[e.oldX-e.dx,e.oldY-e.dy],a);this._api.dispatchAction(xA(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=ye([],[e.originX,e.originY],a);this._api.dispatchAction(xA(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}(le);function xA(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 bA(r,t){var e=_o(r);dh(t.group,e.z,e.zlevel)}function utt(r){r.registerComponentModel(stt),r.registerComponentView(ltt)}var ftt={label:{enabled:!0},decal:{show:!1}},wA=It(),ctt={};function vtt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=ut(ftt);Tt(a.label,r.getLocaleModel().get("aria"),!1),Tt(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=at();r.eachSeries(function(v){if(!v.isColorBySeries()){var h=c.get(v.type);h||(h={},c.set(v.type,h)),wA(v).scope=h}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(lt(v.enableAriaDecal)){v.enableAriaDecal();return}var h=v.getData();if(v.isColorBySeries()){var m=fy(v.ecModel,v.name,ctt,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,m))}else{var d=v.getRawData(),p={},g=wA(v).scope;h.each(function(x){var b=h.getRawIndex(x);p[b]=x});var y=d.count();d.each(function(x){var b=p[x],w=d.getName(x)||x+"",T=fy(v.ecModel,w,g,y),C=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(C,T))})}function S(x,b){var w=x?$($({},b),x):b;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=ht(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 P=c.get(["data","partialData"]);M+=o(P,{displayCnt:h})}else M+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),k=c.get(["data","separator","end"]),N=c.get(["data","excludeDimensionId"]),E=[],z=0;z":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},ptt=function(){function r(t){var e=this._condVal=J(t)?new RegExp(t):gO(t)?t:null;if(e==null){var a="";Ht(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return J(e)?this._condVal.test(t):Rt(e)?this._condVal.test(t+""):!1},r}(),gtt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),ytt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&a.push(n),n=[L,P]}function f(L,P,R,k){Ss(L,R)&&Ss(P,k)||n.push(L,P,R,k,R,k)}function c(L,P,R,k,N,E){var z=Math.abs(P-L),V=Math.tan(z/4)*4/3,H=PT:D2&&a.push(n),a}function wm(r,t,e,a,n,i,o,s,l,u){if(Ss(r,e)&&Ss(t,a)&&Ss(n,o)&&Ss(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=[];Jn(r,e,n,o,.5,C),Jn(t,a,i,s,.5,M),wm(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),wm(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function Ptt(r,t){var e=bm(r),a=[];t=t||1;for(var n=0;n0)for(var u=0;uMath.abs(u),c=WR([l,u],f?0:1,t),v=(f?s:u)/c.length,h=0;hn,o=WR([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 vt(p*l+r,p*u+t)}function Ett(r,t,e){var a=new vt;vt.sub(a,e,t),a.normalize();var n=new vt;vt.sub(n,r,t);var i=n.dot(a);return i}function ls(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Ott(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),Ott(t,u,f)}function Wv(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);Wv(r,i[0],n,a),Wv(r,i[1],e-n,a)}return a}function Ntt(r,t){for(var e=[],a=0;a0)for(var x=a/e,b=-a/2;b<=a/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),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 Yv(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=Z(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=Z(i,function(s,l){return{cp:s,z:Utt(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 YR(r){return Vtt(r.path,r.count)}function Tm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Ytt(r,t,e){var a=[];function n(x){for(var b=0;b=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 Xtt={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;kA(r)&&(u=r,f=t),kA(t)&&(u=t,f=r);function c(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,C=m?w:b[0];if($v(T))c({many:[T],one:C},!0,_,S,!0);else{var M=s?ht({delay:s(_,S)},l):l;q_(T,C,M),i(T,C,T,C,M)}}else for(var D=ht({dividePath:Xtt[e],individualDelay:s&&function(N,E,z,V){return s(N+_,S)}},l),I=m?Ytt(b,w,D):Ztt(w,b,D),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,k=0;kt.length,h=u?RA(f,u):RA(v?t:r,[v?r:t]),d=0,p=0;pZR))for(var i=a.getIndices(),o=0;o0&&b.group.traverse(function(T){T instanceof Pt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function zA(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function VA(r){return U(r)?r.sort().join(","):r}function On(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function eet(r,t){var e=at(),a=at(),n=at();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=zA(i),f=VA(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=zA(i),u=VA(l),f=a.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:On(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:On(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:On(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:On(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:On(v.data)}],newSeries:[]},e.set(v.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:On(s)})}}}}),e}function GA(r,t){for(var e=0;e=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:On(t.oldData[s]),groupIdDim:o.dimension})}),A(qt(r.to),function(o){var s=GA(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:On(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&XR(n,i,a)}function aet(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){A(qt(a.seriesTransition),function(n){A(qt(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=FA,a=HA,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 iet(){return new net}var FA=0,HA=0;function oet(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=K_(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 set(r,t,e,a,n,i){r!=="no"&&A(e,function(o){var s=K_(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:ut(o),vmin:t(o.start),vmax:t(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(J(o.gap)){var u=Wr(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 j_(r,t){return Am(t)===Am(r)}function Am(r){return r.start+"_\0_"+r.end}function fet(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=wo(a,function(u){return j_(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 cet(r,t,e,a){var n,i;if(r.break){var o=r.break.parsedBreak,s=wo(e,function(c){return j_(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"?_e(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 vet(r,t,e){var a={noNegative:!0},n=Cm(r,e,a),i=Cm(r,e,a),o=Math.log(t);return i.breaks=Z(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 het={vmin:"start",vmax:"end"};function det(r,t){return t&&(r=r||{},r.break={type:het[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function pet(){OV({createScaleBreakContext:iet,pruneTicksByBreak:set,addBreaksToTicks:uet,parseAxisBreakOption:Cm,identifyAxisBreak:j_,serializeAxisBreakIdentifier:Am,retrieveAxisBreakPairs:fet,getTicksLogTransformBreak:cet,logarithmicParseBreaksFromOption:vet,makeAxisLabelFormatterParamBreak:det})}var WA=It();function get(r,t){var e=wo(r,function(a){return Se().identifyAxisBreak(a.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function yet(r){A(r,function(t){return t.shouldRemove=!0})}function met(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function _et(r,t,e,a,n){var i=e.axis;if(i.scale.isBlank()||!Se())return;var o=Se().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 ft({ignoreModelZ:!0}),S=i.isHorizontal(),x=WA(t).visualList||(WA(t).visualList=[]);yet(x);for(var b=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;St&&(Y=E);var Mt=[],st=[];Mt[k]=D,st[k]=I,!ot&&!St&&(Mt[k]+=G?-l:l,st[k]-=G?l:-l),Mt[N]=Y,st[N]=Y,V.push(Mt),H.push(st);var et=void 0;if(Xm[1]&&m.reverse(),{coordPair:m,brkId:Se().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 vt,y=new vt;vt.scale(g,a,-s),vt.scale(y,a,1-s),Ly(e[0],g),Ly(e[1],y)}function wet(r,t){var e={breaks:[]};return A(t.breaks,function(a){if(a){var n=wo(r.get("breaks",!0),function(s){return Se().identifyAxisBreak(s,a)});if(n){var i=t.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===Ah?!0:i===cP?!1:i===vP?!n.isExpanded:n.isExpanded,e.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),e}function Tet(){IW({adjustBreakLabelPair:bet,buildAxisBreakLine:xet,rectCoordBuildBreakAxis:_et,updateModelAxisBreak:wet})}function Cet(r){zW(r),pet(),Tet()}function Aet(){i$(Met)}function Met(r,t){A(r,function(e){if(!e.model.get(["axisLabel","inside"])){var a=Det(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 Det(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var a,n,i=e.getExtent();e instanceof Mu?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Qs(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f(rM("data-v-54d42f00"),r=r(),aM(),r),Iet={key:0,class:"loading-container"},Pet={class:"loading-text"},ket={key:1,class:"error-container"},Ret={key:2,class:"graph-container"},Eet={class:"control-panel"},Oet={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap"}},Net=Let(()=>Dt("div",{style:{flex:"1 1 auto"}},null,-1)),Bet=oi({__name:"TagRelationGraph",props:{folders:{},lang:{}},emits:["searchTag","openCluster"],setup(r,{emit:t}){const e=r,a=Yt(!1),n=Yt(""),i=Yt(null),o=Yt(null),s=Yt(),l=Yt();let u=null,f=null,c=null,v=null,h={};const d=Yt("__all__"),p=Yt(""),g=Yt(3),y=Yt(""),m=Yt(200),_=Yt(0),S=Yt(0),x=Yt(!1),b=async()=>{try{if(document.fullscreenElement){await document.exitFullscreen();return}const V=l.value;if(!V||!V.requestFullscreen){ta.warning(Zt("tagGraphFullscreenUnsupported"));return}await V.requestFullscreen()}catch(V){ta.error((V==null?void 0:V.message)||Zt("tagGraphFullscreenFailed"))}},w=Ft(()=>{var Y;const H=(((Y=i.value)==null?void 0:Y.layers)??[]).map(X=>String(X.name??"")).filter(Boolean),G=Array.from(new Set(H));return[{label:Zt("tagGraphAllLayers"),value:"__all__"},...G.map(X=>({label:X,value:X}))]}),T=Ft(()=>{var H;return(((H=o.value)==null?void 0:H.layers)??[]).reduce((G,Y)=>{var X;return G+(((X=Y==null?void 0:Y.nodes)==null?void 0:X.length)??0)},0)}),C=Ft(()=>{var V,H;return((H=(V=o.value)==null?void 0:V.links)==null?void 0:H.length)??0}),M=["#4A90E2","#7B68EE","#50C878","#FF6B6B","#FFD700","#FF8C00"],D=V=>M[V%M.length],I=async()=>{var V,H;if(!e.folders||e.folders.length===0){n.value="No folders selected";return}a.value=!0,n.value="";try{const G={folder_paths:e.folders,lang:e.lang||"en"};i.value=await pE(G),o.value={...i.value,layers:P(i.value.layers,m.value||200)}}catch(G){const Y=(H=(V=G.response)==null?void 0:V.data)==null?void 0:H.detail;n.value=typeof Y=="string"?Y:Y?JSON.stringify(Y):G.message||"Failed to load graph",ta.error(n.value)}finally{a.value=!1}},L=()=>{s.value&&zh(()=>{z()})},P=(V,H)=>{const G=[];for(const Y of V){let X=(Y==null?void 0:Y.nodes)??[];Number((Y==null?void 0:Y.level)??0)===1&&X.length>H&&(X=X.sort((St,Mt)=>(Mt.size||0)-(St.size||0)).slice(0,H)),X.length&&G.push({...Y,nodes:X})}return G},R=()=>{const V=i.value;if(!V)return;const H=(p.value||"").trim().toLowerCase(),G=d.value,Y=m.value||200;if(!y.value&&!H&&(G==="__all__"||!G)){o.value={...V,layers:P(V.layers,Y)},L();return}const X=new Map;for(const O of V.layers){const W=String((O==null?void 0:O.name)??""),q=Number((O==null?void 0:O.level)??0);for(const K of(O==null?void 0:O.nodes)??[]){const pt=String((K==null?void 0:K.id)??"");pt&&X.set(pt,{id:pt,label:String((K==null?void 0:K.label)??""),layerName:W,layerLevel:q,metadata:K==null?void 0:K.metadata})}}const ot=new Set;if(y.value)X.has(y.value)&&ot.add(y.value);else for(const[O,W]of X)G&&G!=="__all__"&&W.layerName!==G||H&&!`${W.label} ${O}`.toLowerCase().includes(H)||ot.add(O);const St=V.links,Mt=new Map,st=(O,W)=>{!O||!W||(Mt.has(O)||Mt.set(O,new Set),Mt.get(O).add(W))};for(const O of St){const W=String((O==null?void 0:O.source)??""),q=String((O==null?void 0:O.target)??"");!W||!q||(st(W,q),st(q,W))}const et=new Set;if(y.value){if(!X.get(y.value))return;const W=_.value,q=S.value,K=(xt,Ct)=>{const Ot=new Set([xt]),te=[{id:xt,d:0}];for(;te.length;){const Xt=te.shift();if(Xt.d>=Ct)continue;const $e=Mt.get(Xt.id);if(!$e)continue;const Be=X.get(Xt.id),Ir=(Be==null?void 0:Be.layerLevel)??0;for(const Wt of $e){if(Ot.has(Wt))continue;const fe=X.get(Wt);((fe==null?void 0:fe.layerLevel)??0)>Ir&&(Ot.add(Wt),et.add(Wt),te.push({id:Wt,d:Xt.d+1}))}}},pt=(xt,Ct)=>{const Ot=new Set([xt]),te=[{id:xt,d:0}];for(;te.length;){const Xt=te.shift();if(Xt.d>=Ct)continue;const $e=Mt.get(Xt.id);if(!$e)continue;const Be=X.get(Xt.id),Ir=(Be==null?void 0:Be.layerLevel)??0;for(const Wt of $e){if(Ot.has(Wt))continue;const fe=X.get(Wt);((fe==null?void 0:fe.layerLevel)??0)0&&K(y.value,W),q>0&&pt(y.value,q)}else for(const O of ot)et.add(O);const it=[];for(const O of V.layers){let W=((O==null?void 0:O.nodes)??[]).filter(K=>et.has(String((K==null?void 0:K.id)??"")));Number((O==null?void 0:O.level)??0)===1&&W.length>Y&&(W=W.sort((K,pt)=>(pt.size||0)-(K.size||0)).slice(0,Y)),W.length&&it.push({...O,nodes:W})}const tt=St.filter(O=>et.has(String((O==null?void 0:O.source)??""))&&et.has(String((O==null?void 0:O.target)??"")));o.value={layers:it,links:tt,stats:{...V.stats,total_links:tt.length}},L()},k=()=>{y.value="",R()},N=(V,H,G,Y)=>{d.value=H||"__all__",p.value=G||"",y.value=V,Y==="cluster"?(_.value=3,S.value=0):Y==="tag"?(_.value=2,S.value=1):Y==="abstract"?(_.value=1,S.value=2):(_.value=2,S.value=2),R()},E=()=>{d.value="__all__",p.value="",g.value=3,y.value="",i.value&&(o.value={...i.value,layers:P(i.value.layers,m.value||200)}),L()},z=()=>{if(!o.value||!s.value)return;u&&u.dispose(),u=N3(s.value);const H=[...o.value.layers].reverse(),G=[],Y=2400,X=120,ot=180;h={};const St=[];for(const W of H){const q=W.nodes.length;if(q===0){St.push(0);continue}const K=Math.max(.3,1-q/500),pt=X+(ot-X)*K,Ct=Math.ceil(Math.sqrt(q));St.push(Ct*pt)}const Mt=[];let st=300;H.forEach((W,q)=>{const K=St[q];if(K===0)return;const pt=St[q+1]??K,xt=.5,Ct=(K+pt)*xt;Mt.push({startX:st,width:K}),st+=K+Ct}),H.forEach((W,q)=>{const K=W.nodes.length;if(K===0)return;const xt=Mt[q].startX,Ct=Math.max(.3,1-K/500)*(W.name.toLowerCase().includes("abstract")?2:1),Ot=X+(ot-X)*Ct,Xt=Math.ceil(Math.sqrt(K)),Be=Math.ceil(K/Xt)*Ot,Wt=W.nodes.reduce((ke,qr)=>ke+qr.id.charCodeAt(0),0)*7%500-250,fe=(Y-Be)/2+Wt;W.nodes.forEach((ke,qr)=>{const $a=Math.floor(qr/Xt);let Ua=(qr%Xt-(Xt-1)/2)*Ot,ha=$a*Ot;const Kt=ke.id.split("").reduce((Nh,Q_)=>Nh+Q_.charCodeAt(0),0),Ya=Kt*37.5%(Math.PI*2),Oh=Ot*.8*(Kt*13%100)/100,qR=Ot*.4*(Kt*23%100)/100-Ot*.2,KR=Ot*.4*(Kt*41%100)/100-Ot*.2;Ua+=qR,ha+=KR;const jR=Ua+Math.cos(Ya)*Oh,JR=ha+Math.sin(Ya)*Oh,QR=xt+Ot/2+jR,tE=fe+JR,J_=20,eE=60,rE=Math.sqrt(ke.size)/5,aE=Math.max(J_,Math.min(eE,J_+rE));G.push({id:ke.id,name:ke.label,x:QR,y:tE,fixed:!0,symbolSize:aE,value:ke.size,category:W.level,itemStyle:{color:D(W.level)},label:{show:!0,fontSize:11,color:"#fff",formatter:Nh=>{const Bh=Nh.name;return Bh.length>10?Bh.substring(0,10)+"...":Bh}},metadata:ke.metadata,layerName:W.name}),h[ke.id]=G.length-1})});const et=o.value.links.map(W=>({source:W.source,target:W.target,value:W.weight,lineStyle:{width:Math.max(.5,Math.min(2,W.weight/100)),opacity:.3,curveness:.1}})),it=H.map(W=>({name:W.name})),tt={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:W=>{if(W.dataType==="node"){const q=W.data,K=String(q.id||""),pt=q.metadata||{},xt=Number(pt.image_count??q.value??0),Ct=pt.cluster_count!=null?Number(pt.cluster_count):null,Ot=pt.level!=null?Number(pt.level):null,te=String(pt.type||""),Xt=[];!Number.isNaN(xt)&&xt>0&&Xt.push(`🖼️ ${xt}`),Ct!=null&&!Number.isNaN(Ct)&&Xt.push(`🧩 ${Ct}`),Ot!=null&&!Number.isNaN(Ot)&&Xt.push(`🏷️ L${Ot}`);const $e=te==="tag",Be=te==="tag"||te==="abstract"||te==="cluster",Ir=te==="cluster",Wt=[$e?``:"",Be?``:"",Ir?``:"",``].filter(Boolean).join("");return`
${W.name}
@@ -69,4 +69,4 @@ PERFORMANCE OF THIS SOFTWARE. ${Wt}
- `}return""}},legend:[{data:it.map(W=>W.name),orient:"vertical",right:10,bottom:10,textStyle:{color:"#fff"}}],series:[{type:"graph",layout:"none",data:G,links:et,categories:it,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(tt);const O=()=>{u&&u.dispatchAction({type:"hideTip"})};u.on("click",W=>{var q,K,pt;if(W.dataType==="node"){const xt=W.data;if(((q=xt.metadata)==null?void 0:q.type)==="tag"){const Tt=h[String(xt.id||"")];Tt!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:Tt}))}else if(((K=xt.metadata)==null?void 0:K.type)==="cluster"){const Tt=h[String(xt.id||"")];Tt!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:Tt}))}else if(((pt=xt.metadata)==null?void 0:pt.type)==="abstract"){const Tt=h[String(xt.id||"")];Tt!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:Tt}))}else ea.info(`Abstract category: ${W.name}`)}}),u.getZr().on("click",W=>{W!=null&&W.target||O()}),c&&(document.removeEventListener("click",c,!0),c=null),c=W=>{var Tt,Ot,te,Xt,$e;const q=W.target;if(!q)return;const K=(Tt=q.closest)==null?void 0:Tt.call(q,"button[data-action]");if(K){const ze=K.getAttribute("data-action")||"",Ir=K.getAttribute("data-nodeid")||"",Wt=h[Ir];if(ze==="search"&&Wt!=null){const fe=G[Wt]&&G[Wt].name||"";fe&&(t("searchTag",fe),ea.info(`${Zt("search")}: ${fe}`)),O()}else if(ze==="filter"&&Wt!=null){const fe=G[Wt]&&G[Wt].layerName||"__all__",Re=G[Wt]&&G[Wt].name||"",qr=String(G[Wt]&&G[Wt].id||Ir),Ua=String(G[Wt]&&G[Wt].metadata&&G[Wt].metadata.type||"");d.value=fe||"__all__",p.value=Re,N(qr,String(fe||"__all__"),String(Re||""),Ua),O()}else if(ze==="openCluster"&&Wt!=null){const fe=G[Wt]&&G[Wt].metadata||{},Re=G[Wt]&&G[Wt].name||"",qr=Number(fe.image_count||0),Ua=String(((te=(Ot=o.value)==null?void 0:Ot.stats)==null?void 0:te.topic_cluster_cache_key)||""),Bo=String(fe.cluster_id||"");if(!Ua||!Bo){ea.warning("Cluster data is incomplete, please re-generate clustering result"),O();return}(async()=>{const Ya=ea.loading("Loading cluster images...",0);try{const da=await gE({topic_cluster_cache_key:Ua,cluster_id:Bo}),Kr=Array.isArray(da==null?void 0:da.paths)?da.paths:[];Kr.length?t("openCluster",{title:Re,paths:Kr,size:qr||Kr.length}):ea.warning("No images found in this cluster"),O()}finally{Ya==null||Ya()}})()}else ze==="close"&&O();W.preventDefault(),W.stopPropagation();return}if((Xt=q.closest)==null?void 0:Xt.call(q,".iib-tg-tip"))return;((($e=s.value)==null?void 0:$e.contains(q))??!1)||O()},document.addEventListener("click",c,!0)};return ro(()=>e.folders,()=>{I()},{immediate:!0}),ro([o,s],()=>{o.value&&s.value&&Fh(()=>{z()})}),ro(m,()=>{o.value&&R()}),tM(()=>{f=()=>{u&&u.resize()},window.addEventListener("resize",f),v=()=>{x.value=!!document.fullscreenElement,Fh(()=>{u==null||u.resize()})},document.addEventListener("fullscreenchange",v)}),vE(()=>{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()}),(V,H)=>{const G=uM,Y=rM,X=cM,ot=tO,St=aM,Mt=nM,st=fM,et=iM;return qt(),he("div",{ref_key:"fullscreenRef",ref:l,class:"tag-hierarchy-graph"},[a.value?(qt(),he("div",Iet,[yt(G,{size:"large"}),Dt("div",Pet,Gt(ue(Zt)("tagGraphGenerating")),1)])):n.value?(qt(),he("div",ket,[yt(Y,{type:"error",message:n.value,"show-icon":""},null,8,["message"])])):i.value?(qt(),he("div",Ret,[Dt("div",Eet,[Dt("div",Oet,[yt(ot,null,{default:ae(()=>[yt(X,null,{default:ae(()=>{var it,tt;return[Me(Gt(ue(Zt)("tagGraphStatLayers"))+": "+Gt(((tt=(it=o.value)==null?void 0:it.layers)==null?void 0:tt.length)??0),1)]}),_:1}),yt(X,null,{default:ae(()=>[Me(Gt(ue(Zt)("tagGraphStatNodes"))+": "+Gt(T.value),1)]),_:1}),yt(X,null,{default:ae(()=>[Me(Gt(ue(Zt)("tagGraphStatLinks"))+": "+Gt(C.value),1)]),_:1})]),_:1}),Net,yt(ot,{size:8},{default:ae(()=>[yt(St,{value:d.value,"onUpdate:value":H[0]||(H[0]=it=>d.value=it),options:w.value,style:{width:"140px"},getPopupContainer:it=>it.parentElement||it},null,8,["value","options","getPopupContainer"]),yt(Mt,{value:p.value,"onUpdate:value":H[1]||(H[1]=it=>p.value=it),style:{width:"200px"},"allow-clear":"",placeholder:ue(Zt)("tagGraphFilterPlaceholder"),onKeydown:eM(k,["enter"])},null,8,["value","placeholder","onKeydown"]),yt(st,{value:g.value,"onUpdate:value":H[2]||(H[2]=it=>g.value=it),size:"small",min:1,max:20,step:1,style:{width:"92px"},title:ue(Zt)("tagGraphFilterHopsTitle")},null,8,["value","title"]),yt(st,{value:m.value,"onUpdate:value":H[3]||(H[3]=it=>m.value=it),size:"small",min:10,max:1e3,step:10,style:{width:"100px"},title:ue(Zt)("tagGraphKeywordLimitTitle")},null,8,["value","title"]),yt(et,{size:"small",onClick:k},{default:ae(()=>[Me(Gt(ue(Zt)("tagGraphFilterApply")),1)]),_:1}),yt(et,{size:"small",onClick:E},{default:ae(()=>[Me(Gt(ue(Zt)("tagGraphFilterReset")),1)]),_:1}),yt(et,{size:"small",title:x.value?ue(Zt)("exitFullscreen"):ue(Zt)("fullscreen"),onClick:b},{default:ae(()=>[x.value?(qt(),Ja(ue(hE),{key:0})):(qt(),Ja(ue(dE),{key:1}))]),_:1},8,["title"])]),_:1})])]),Dt("div",{ref_key:"chartRef",ref:s,class:"chart-container"},null,512)])):je("",!0)],512)}}});const zet=lM(Bet,[["__scopeId","data-v-281d55ac"]]),mr=r=>(oM("data-v-18a75914"),r=r(),sM(),r),Vet={class:"topic-search"},Get={class:"toolbar"},Fet={class:"left"},Het={class:"title"},Wet=mr(()=>Dt("span",{class:"icon"},"🧠",-1)),$et={class:"right"},Uet={key:0,style:{opacity:"0.75"}},Yet={class:"label"},Zet={class:"label"},Xet={style:{display:"grid",gap:"6px"}},qet=mr(()=>Dt("span",{style:{"margin-right":"6px"}},"🔑",-1)),Ket={key:0},jet=mr(()=>Dt("span",{style:{"margin-right":"6px"}},"🧩",-1)),Jet=mr(()=>Dt("span",{style:{"margin-right":"6px"}},"🐍",-1)),Qet={style:{opacity:"0.85"}},trt=mr(()=>Dt("span",{style:{"margin-right":"6px"}},"💻",-1)),ert={key:2,style:{margin:"10px 0 0 0",position:"relative"}},rrt={key:3,style:{margin:"10px 0 0 0",padding:"8px 12px",background:"#fffbe6",border:"1px solid #ffe58f","border-radius":"8px",display:"flex","align-items":"center",gap:"10px"}},art=mr(()=>Dt("span",null,"💾",-1)),nrt={key:4,style:{margin:"10px 0 0 0",position:"relative"}},irt={key:5,style:{margin:"10px 0 0 0",padding:"8px 12px",background:"#f6ffed",border:"1px solid #b7eb8f","border-radius":"8px",display:"flex","align-items":"center",gap:"10px"}},ort=mr(()=>Dt("span",null,"✅",-1)),srt={key:6,style:{margin:"10px 0 0 0"}},lrt={style:{margin:"10px 0",display:"flex","align-items":"center",gap:"8px"}},urt=mr(()=>Dt("span",{style:{"font-size":"13px",color:"#666"}},"View:",-1)),frt={key:7},crt={key:0,style:{"margin-top":"10px"}},vrt={key:1,class:"grid"},hrt=["onClick"],drt={class:"card-top"},prt={class:"card-title line-clamp-1"},grt={class:"card-count"},yrt={class:"card-desc line-clamp-2"},mrt={key:2,class:"empty"},_rt={class:"guide"},Srt={class:"guide-row"},xrt=mr(()=>Dt("span",{class:"guide-icon"},"🗂️",-1)),brt={class:"guide-text"},wrt={class:"guide-row"},Trt=mr(()=>Dt("span",{class:"guide-icon"},"🧠",-1)),Crt={class:"guide-text"},Art={class:"guide-row"},Mrt=mr(()=>Dt("span",{class:"guide-icon"},"🔎",-1)),Drt={class:"guide-text"},Lrt={class:"guide-row"},Irt=mr(()=>Dt("span",{class:"guide-icon"},"✨",-1)),Prt={class:"guide-text"},krt={class:"guide-row"},Rrt=mr(()=>Dt("span",{class:"guide-icon"},"🚀",-1)),Ert={class:"guide-text"},Ort={class:"guide-hint"},Nrt=mr(()=>Dt("span",{class:"guide-icon"},"💡",-1)),Brt={key:0,class:"guide-text"},zrt={key:1,class:"guide-text"},Vrt={key:8,style:{height:"calc(100vh - 300px)","min-height":"600px"}},Grt="iib_topic_search_hide_requirements_v1",Frt="iib_topic_search_cache_collapsed_v1",yg="topic_search_scope",Hrt=si({__name:"TopicSearch",props:{tabIdx:{},paneIdx:{}},setup(r){const t=r,e=yE(),a=Yt(!1),n=Yt(.9),i=Yt(2),o=Yt(null),s=Yt(null),l=Yt(!1),u=n1(Grt,!0),f=()=>{u.value=!1},c=n1(Frt,!1),v=()=>{c.value=!1},h=()=>{c.value=!0},d=Yt(null),p=Yt("");let g=null;const y=Ft(()=>{var W;const O=(W=d.value)==null?void 0:W.status;return O==="queued"||O==="running"}),m=Ft(()=>{var W;const O=String(((W=d.value)==null?void 0:W.stage)||"");return!O||O==="queued"||O==="init"?Zt("topicSearchJobQueued"):O==="embedding"?Zt("topicSearchJobStageEmbedding"):O==="clustering"?Zt("topicSearchJobStageClustering"):O==="titling"?Zt("topicSearchJobStageTitling"):O==="done"?Zt("topicSearchJobStageDone"):O==="error"?Zt("topicSearchJobStageError"):`${Zt("topicSearchJobStage")}: ${O}`}),_=Ft(()=>{var pt;const O=(pt=d.value)==null?void 0:pt.progress;if(!O)return 0;const W=Number(O.to_embed??0),q=Number(O.embedded_done??0);if(W<=0)return 0;const K=Math.floor(q/W*100);return Math.max(0,Math.min(100,K))}),S=Ft(()=>{var W,q,K,pt;const O=(W=d.value)==null?void 0:W.progress;if(!O)return"";if(((q=d.value)==null?void 0:q.stage)==="embedding"){const xt=Number(O.embedded_done??0),Tt=Number(O.to_embed??0),Ot=Number(O.scanned??0),te=String(O.folder??"");return Zt("topicSearchJobEmbeddingDesc",[xt,Tt,Ot,te])}if(((K=d.value)==null?void 0:K.stage)==="clustering"){const xt=Number(O.items_done??0),Tt=Number(O.items_total??0);return Zt("topicSearchJobClusteringDesc",[xt,Tt])}if(((pt=d.value)==null?void 0:pt.stage)==="titling"){const xt=Number(O.clusters_done??0),Tt=Number(O.clusters_total??0);return Zt("topicSearchJobTitlingDesc",[xt,Tt])}return""}),x=Yt(""),b=Yt(!1),w=Yt(null),T=Yt("clusters"),C=Yt(!1),M=Yt([]),D=Yt(!1),I=Yt(!1);let L=null,P="";const R=Ft(()=>(e.quickMovePaths??[]).filter(W=>{const q=String((W==null?void 0:W.key)??"");return((W==null?void 0:W.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(q)}).map(W=>String((W==null?void 0:W.dir)??"")).filter(Boolean));ro(R,O=>{O!=null&&O.length&&(M.value=(M.value??[]).filter(W=>!O.includes(W)))},{immediate:!0});const k=Ft(()=>(e.quickMovePaths??[]).filter(W=>{const q=String((W==null?void 0:W.key)??"");return!(((W==null?void 0:W.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(q))}).map(W=>({value:W.dir,label:W.zh||W.dir}))),N=Ft(()=>(M.value??[]).filter(Boolean).length),E=Ft(()=>(M.value??[]).filter(Boolean)),z=Ft(()=>{var O;return((O=o.value)==null?void 0:O.clusters)??[]}),V=async()=>{var q,K,pt;if(D.value)return;try{const xt=await xE();e.conf=xt}catch{}const O=((q=e.conf)==null?void 0:q.app_fe_setting)||{},W=(K=O==null?void 0:O[yg])==null?void 0:K.folder_paths;Array.isArray(W)&&W.length&&!((pt=M.value)!=null&&pt.length)&&(M.value=W.map(xt=>String(xt)).filter(Boolean)),D.value=!0},H=async()=>{var W,q;if((W=e.conf)!=null&&W.is_readonly||!D.value)return;const O={folder_paths:E.value,updated_at:Date.now()};await bE(yg,O),(q=e.conf)!=null&&q.app_fe_setting&&(e.conf.app_fe_setting[yg]=O)},G=()=>{var W;if((W=e.conf)!=null&&W.is_readonly||!D.value)return;const O=JSON.stringify(E.value);O!==P&&(L&&clearTimeout(L),L=setTimeout(async()=>{I.value=!0;try{await H(),P=O}finally{I.value=!1}},500))},Y=()=>{g&&(clearInterval(g),g=null)},X=async()=>{const O=p.value;if(!O)return;const W=await DE(O);d.value=W,W.status==="done"?(Y(),a.value=!1,W.result&&(o.value=W.result),s.value=null):W.status==="error"&&(Y(),a.value=!1,ea.error(W.error||Zt("topicSearchJobFailed")))},ot=async()=>{if(N.value)try{const O=await wE({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:E.value});s.value=O,O.cache_hit&&O.result&&(o.value=O.result)}catch{}},St=async()=>{var O;if(!((O=e.conf)!=null&&O.is_readonly)){if(!N.value){ea.warning(Zt("topicSearchNeedScope")),C.value=!0;return}Y(),a.value=!0,d.value=null,p.value="";try{await TE();const W=await CE({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:E.value});p.value=W.job_id,await X(),g=setInterval(()=>{X()},800)}catch(W){throw a.value=!1,W}}},Mt=async()=>{const O=(x.value||"").trim();if(O&&!b.value){if(!N.value){ea.warning(Zt("topicSearchNeedScope")),C.value=!0;return}b.value=!0;try{w.value=await AE({query:O,top_k:80,ensure_embed:!l.value,folder_paths:E.value}),l.value||(l.value=!0),st()}finally{b.value=!1}}},st=()=>{var pt;const O=(((pt=w.value)==null?void 0:pt.results)??[]).map(xt=>xt.path).filter(Boolean);if(!O.length)return;const W=`Query: ${x.value.trim()}(${O.length})`,q={type:"topic-search-matched-image-grid",name:W,key:Date.now()+zo(),id:zo(),title:W,paths:O},K=e.tabList[t.tabIdx];K.panes.push(q),K.key=q.key},et=O=>{const W={type:"topic-search-matched-image-grid",name:`${O.title}(${O.size})`,key:Date.now()+zo(),id:zo(),title:O.title,paths:O.paths},q=e.tabList[t.tabIdx];q.panes.push(W),q.key=W.key},it=O=>{const W={type:"topic-search-matched-image-grid",name:`${O.title}(${O.size})`,key:Date.now()+zo(),id:zo(),title:O.title,paths:O.paths},q=e.tabList[t.tabIdx];q.panes.push(W),q.key=W.key},tt=O=>{x.value=O,Mt()};return tM(()=>{(async()=>(await V(),N.value&&await ot()))()}),mE(()=>{Y()}),ro(E,()=>{l.value=!1},{deep:!0}),ro(()=>E.value,()=>{G()},{deep:!0}),(O,W)=>{var Ir,Wt,fe,Re,qr,Ua,Bo,Ya,da,Kr,nl,il,of;const q=cM,K=iM,pt=nM,xt=fM,Tt=rM,Ot=qE,te=IE,Xt=uM,$e=aM,ze=ME;return qt(),he("div",Vet,[Dt("div",Get,[Dt("div",Fet,[Dt("div",Het,[Wet,Dt("span",null,Gt(O.$t("topicSearchTitleExperimental")),1)]),o.value?(qt(),Ja(q,{key:0,color:"blue"},{default:ae(()=>[Me("共 "+Gt(o.value.count)+" 张",1)]),_:1})):je("",!0),o.value?(qt(),Ja(q,{key:1,color:"geekblue"},{default:ae(()=>[Me("主题 "+Gt(o.value.clusters.length),1)]),_:1})):je("",!0),o.value?(qt(),Ja(q,{key:2,color:"default"},{default:ae(()=>[Me("噪声 "+Gt(o.value.noise.length),1)]),_:1})):je("",!0)]),Dt("div",$et,[yt(K,{onClick:W[0]||(W[0]=ve=>C.value=!0)},{default:ae(()=>[Me(Gt(O.$t("topicSearchScope"))+" ",1),N.value?(qt(),he("span",Uet,"("+Gt(N.value)+")",1)):je("",!0)]),_:1}),yt(pt,{value:x.value,"onUpdate:value":W[1]||(W[1]=ve=>x.value=ve),style:{width:"min(420px, 72vw)"},placeholder:O.$t("topicSearchQueryPlaceholder"),disabled:b.value,onKeydown:eM(Mt,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),yt(K,{loading:b.value,onClick:Mt},{default:ae(()=>[Me(Gt(O.$t("search")),1)]),_:1},8,["loading"]),(Wt=(Ir=w.value)==null?void 0:Ir.results)!=null&&Wt.length?(qt(),Ja(K,{key:0,onClick:st},{default:ae(()=>[Me(Gt(O.$t("topicSearchOpenResults")),1)]),_:1})):je("",!0),Dt("span",Yet,Gt(O.$t("topicSearchThreshold")),1),yt(xt,{value:n.value,"onUpdate:value":W[2]||(W[2]=ve=>n.value=ve),min:.5,max:.99,step:.01},null,8,["value"]),Dt("span",Zet,Gt(O.$t("topicSearchMinClusterSize")),1),yt(xt,{value:i.value,"onUpdate:value":W[3]||(W[3]=ve=>i.value=ve),min:1,max:50,step:1},null,8,["value"]),yt(K,{type:"primary",ghost:"",loading:a.value,disabled:(fe=ue(e).conf)==null?void 0:fe.is_readonly,onClick:St},{default:ae(()=>[Me(Gt(O.$t("refresh")),1)]),_:1},8,["loading","disabled"])])]),(Re=ue(e).conf)!=null&&Re.is_readonly?(qt(),Ja(Tt,{key:0,type:"warning",message:O.$t("readonlyModeSettingPageDesc"),style:{margin:"12px 0"},"show-icon":""},null,8,["message"])):je("",!0),ue(u)?(qt(),Ja(Tt,{key:1,type:"info","show-icon":"",closable:"",style:{margin:"10px 0 0 0"},message:O.$t("topicSearchRequirementsTitle"),onClose:f},{description:ae(()=>[Dt("div",Xet,[Dt("div",null,[qet,Dt("span",null,Gt(O.$t("topicSearchRequirementsOpenai")),1)]),ue(_E)?(qt(),he("div",Ket,[jet,Dt("span",null,Gt(O.$t("topicSearchRequirementsDepsDesktop")),1)])):(qt(),he(Wc,{key:1},[Dt("div",null,[Jet,Dt("span",null,Gt(O.$t("topicSearchRequirementsDepsPython")),1)]),Dt("div",Qet,[trt,Dt("span",null,Gt(O.$t("topicSearchRequirementsInstallCmd")),1)])],64))])]),_:1},8,["message"])):je("",!0),(qr=s.value)!=null&&qr.cache_hit&&((Ua=s.value)!=null&&Ua.stale)&&!ue(c)?(qt(),he("div",ert,[yt(Tt,{type:"warning","show-icon":"",message:O.$t("topicSearchCacheStale"),description:O.$t("topicSearchCacheStaleDesc")},{action:ae(()=>{var ve;return[yt(K,{size:"small",loading:a.value||y.value,disabled:(ve=ue(e).conf)==null?void 0:ve.is_readonly,onClick:St},{default:ae(()=>[Me(Gt(O.$t("topicSearchCacheUpdate")),1)]),_:1},8,["loading","disabled"])]}),_:1},8,["message","description"]),yt(K,{size:"small",style:{position:"absolute",top:"8px",right:"8px","z-index":"1"},onClick:h},{default:ae(()=>[Me(" ^ ")]),_:1})])):je("",!0),(Bo=s.value)!=null&&Bo.cache_hit&&((Ya=s.value)!=null&&Ya.stale)&&ue(c)?(qt(),he("div",rrt,[art,yt(K,{size:"small",loading:a.value||y.value,disabled:(da=ue(e).conf)==null?void 0:da.is_readonly,onClick:St},{default:ae(()=>[Me(Gt(O.$t("topicSearchCacheUpdate")),1)]),_:1},8,["loading","disabled"]),yt(K,{size:"small",onClick:v},{default:ae(()=>[Me(" v ")]),_:1})])):je("",!0),(Kr=s.value)!=null&&Kr.cache_hit&&!((nl=s.value)!=null&&nl.stale)&&!ue(c)?(qt(),he("div",nrt,[yt(Tt,{type:"success","show-icon":"",message:O.$t("topicSearchCacheHit")},null,8,["message"]),yt(K,{size:"small",style:{position:"absolute",top:"8px",right:"8px","z-index":"1"},onClick:h},{default:ae(()=>[Me(" ^ ")]),_:1})])):je("",!0),(il=s.value)!=null&&il.cache_hit&&!((of=s.value)!=null&&of.stale)&&ue(c)?(qt(),he("div",irt,[ort,yt(K,{size:"small",onClick:v},{default:ae(()=>[Me(" v ")]),_:1})])):je("",!0),y.value?(qt(),he("div",srt,[yt(Tt,{type:"info","show-icon":"",message:m.value,description:S.value},null,8,["message","description"]),yt(Ot,{percent:_.value,size:"small",style:{"margin-top":"8px"}},null,8,["percent"])])):je("",!0),Dt("div",lrt,[urt,yt(te,{checked:T.value,"onUpdate:checked":W[4]||(W[4]=ve=>T.value=ve),"checked-value":"graph","un-checked-value":"clusters","checked-children":"Tag Graph","un-checked-children":"Clusters"},null,8,["checked"])]),T.value==="clusters"?(qt(),he("div",frt,[yt(Xt,{spinning:a.value},{default:ae(()=>{var ve;return[w.value?(qt(),he("div",crt,[yt(Tt,{type:"info",message:O.$t("topicSearchRecallMsg",[w.value.results.length,w.value.count,w.value.top_k]),"show-icon":""},null,8,["message"])])):je("",!0),z.value.length?(qt(),he("div",vrt,[(qt(!0),he(Wc,null,SE(z.value,bn=>(qt(),he("div",{class:"card",key:bn.id,onClick:e1=>et(bn)},[Dt("div",drt,[Dt("div",prt,Gt(bn.title),1),Dt("div",grt,Gt(bn.size),1)]),Dt("div",yrt,Gt(bn.sample_prompt),1)],8,hrt))),128))])):(qt(),he("div",mrt,[yt(Tt,{type:"info","show-icon":"",message:O.$t("topicSearchGuideTitle"),style:{"margin-bottom":"10px"}},null,8,["message"]),Dt("div",_rt,[Dt("div",Srt,[xrt,Dt("span",brt,Gt(O.$t("topicSearchGuideStep1")),1),yt(K,{size:"small",onClick:W[5]||(W[5]=bn=>C.value=!0)},{default:ae(()=>[Me(Gt(O.$t("topicSearchScope")),1)]),_:1})]),Dt("div",wrt,[Trt,Dt("span",Crt,Gt(O.$t("topicSearchGuideStep2")),1),yt(K,{size:"small",loading:a.value,disabled:(ve=ue(e).conf)==null?void 0:ve.is_readonly,onClick:St},{default:ae(()=>[Me(Gt(O.$t("refresh")),1)]),_:1},8,["loading","disabled"])]),Dt("div",Art,[Mrt,Dt("span",Drt,Gt(O.$t("topicSearchGuideStep3")),1)]),Dt("div",Lrt,[Irt,Dt("span",Prt,Gt(O.$t("topicSearchGuideAdvantage1")),1)]),Dt("div",krt,[Rrt,Dt("span",Ert,Gt(O.$t("topicSearchGuideAdvantage2")),1)]),Dt("div",Ort,[Nrt,N.value?(qt(),he("span",zrt,Gt(O.$t("topicSearchGuideEmptyReasonNoTopics")),1)):(qt(),he("span",Brt,Gt(O.$t("topicSearchGuideEmptyReasonNoScope")),1))])])]))]}),_:1},8,["spinning"])])):T.value==="graph"?(qt(),he("div",Vrt,[yt(zet,{folders:E.value,lang:ue(e).lang,onSearchTag:tt,onOpenCluster:it},null,8,["folders","lang"])])):je("",!0),yt(ze,{visible:C.value,"onUpdate:visible":W[7]||(W[7]=ve=>C.value=ve),title:O.$t("topicSearchScopeModalTitle"),"mask-closable":!0,onOk:W[8]||(W[8]=()=>{C.value=!1,H()})},{default:ae(()=>[yt(Tt,{type:"info","show-icon":"",message:O.$t("topicSearchScopeTip"),style:{"margin-bottom":"10px"}},null,8,["message"]),I.value?(qt(),Ja(Tt,{key:0,type:"info","show-icon":"",message:O.$t("topicSearchSavingToBackend"),style:{"margin-bottom":"10px"}},null,8,["message"])):je("",!0),yt($e,{value:M.value,"onUpdate:value":W[6]||(W[6]=ve=>M.value=ve),mode:"multiple",style:{width:"100%"},options:k.value,placeholder:O.$t("topicSearchScopePlaceholder"),"max-tag-count":3,getPopupContainer:ve=>ve.parentElement||ve,"allow-clear":""},null,8,["value","options","placeholder","getPopupContainer"])]),_:1},8,["visible","title"])])}}});const Krt=lM(Hrt,[["__scopeId","data-v-18a75914"]]);export{Krt as default}; + `}return""}},legend:[{data:it.map(W=>W.name),orient:"vertical",right:10,bottom:10,textStyle:{color:"#fff"}}],series:[{type:"graph",layout:"none",data:G,links:et,categories:it,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(tt);const O=()=>{u&&u.dispatchAction({type:"hideTip"})};u.on("click",W=>{var q,K,pt;if(W.dataType==="node"){const xt=W.data;if(((q=xt.metadata)==null?void 0:q.type)==="tag"){const Ct=h[String(xt.id||"")];Ct!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:Ct}))}else if(((K=xt.metadata)==null?void 0:K.type)==="cluster"){const Ct=h[String(xt.id||"")];Ct!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:Ct}))}else if(((pt=xt.metadata)==null?void 0:pt.type)==="abstract"){const Ct=h[String(xt.id||"")];Ct!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:Ct}))}else ta.info(`Abstract category: ${W.name}`)}}),u.getZr().on("click",W=>{W!=null&&W.target||O()}),c&&(document.removeEventListener("click",c,!0),c=null),c=W=>{var Ct,Ot,te,Xt,$e;const q=W.target;if(!q)return;const K=(Ct=q.closest)==null?void 0:Ct.call(q,"button[data-action]");if(K){const Be=K.getAttribute("data-action")||"",Ir=K.getAttribute("data-nodeid")||"",Wt=h[Ir];if(Be==="search"&&Wt!=null){const fe=G[Wt]&&G[Wt].name||"";fe&&(t("searchTag",fe),ta.info(`${Zt("search")}: ${fe}`)),O()}else if(Be==="filter"&&Wt!=null){const fe=G[Wt]&&G[Wt].layerName||"__all__",ke=G[Wt]&&G[Wt].name||"",qr=String(G[Wt]&&G[Wt].id||Ir),$a=String(G[Wt]&&G[Wt].metadata&&G[Wt].metadata.type||"");d.value=fe||"__all__",p.value=ke,N(qr,String(fe||"__all__"),String(ke||""),$a),O()}else if(Be==="openCluster"&&Wt!=null){const fe=G[Wt]&&G[Wt].metadata||{},ke=G[Wt]&&G[Wt].name||"",qr=Number(fe.image_count||0),$a=String(((te=(Ot=o.value)==null?void 0:Ot.stats)==null?void 0:te.topic_cluster_cache_key)||""),No=String(fe.cluster_id||"");if(!$a||!No){ta.warning("Cluster data is incomplete, please re-generate clustering result"),O();return}(async()=>{const Ua=ta.loading("Loading cluster images...",0);try{const ha=await gE({topic_cluster_cache_key:$a,cluster_id:No}),Kt=Array.isArray(ha==null?void 0:ha.paths)?ha.paths:[];Kt.length?t("openCluster",{title:ke,paths:Kt,size:qr||Kt.length}):ta.warning("No images found in this cluster"),O()}finally{Ua==null||Ua()}})()}else Be==="close"&&O();W.preventDefault(),W.stopPropagation();return}if((Xt=q.closest)==null?void 0:Xt.call(q,".iib-tg-tip"))return;((($e=s.value)==null?void 0:$e.contains(q))??!1)||O()},document.addEventListener("click",c,!0)};return eo(()=>e.folders,()=>{I()},{immediate:!0}),eo([o,s],()=>{o.value&&s.value&&zh(()=>{z()})}),eo(m,()=>{o.value&&R()}),KA(()=>{f=()=>{u&&u.resize()},window.addEventListener("resize",f),v=()=>{x.value=!!document.fullscreenElement,zh(()=>{u==null||u.resize()})},document.addEventListener("fullscreenchange",v)}),vE(()=>{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()}),(V,H)=>{const G=iM,Y=JA,X=sM,ot=tO,St=QA,Mt=tM,st=oM,et=eM;return ee(),Ae("div",{ref_key:"fullscreenRef",ref:l,class:"tag-hierarchy-graph"},[a.value?(ee(),Ae("div",Iet,[mt(G,{size:"large"}),Dt("div",Pet,Gt(ve(Zt)("tagGraphGenerating")),1)])):n.value?(ee(),Ae("div",ket,[mt(Y,{type:"error",message:n.value,"show-icon":""},null,8,["message"])])):i.value?(ee(),Ae("div",Ret,[Dt("div",Eet,[Dt("div",Oet,[mt(ot,null,{default:ue(()=>[mt(X,null,{default:ue(()=>{var it,tt;return[Ge(Gt(ve(Zt)("tagGraphStatLayers"))+": "+Gt(((tt=(it=o.value)==null?void 0:it.layers)==null?void 0:tt.length)??0),1)]}),_:1}),mt(X,null,{default:ue(()=>[Ge(Gt(ve(Zt)("tagGraphStatNodes"))+": "+Gt(T.value),1)]),_:1}),mt(X,null,{default:ue(()=>[Ge(Gt(ve(Zt)("tagGraphStatLinks"))+": "+Gt(C.value),1)]),_:1})]),_:1}),Net,mt(ot,{size:8},{default:ue(()=>[mt(St,{value:d.value,"onUpdate:value":H[0]||(H[0]=it=>d.value=it),options:w.value,style:{width:"140px"},getPopupContainer:it=>it.parentElement||it},null,8,["value","options","getPopupContainer"]),mt(Mt,{value:p.value,"onUpdate:value":H[1]||(H[1]=it=>p.value=it),style:{width:"200px"},"allow-clear":"",placeholder:ve(Zt)("tagGraphFilterPlaceholder"),onKeydown:jA(k,["enter"])},null,8,["value","placeholder","onKeydown"]),mt(st,{value:g.value,"onUpdate:value":H[2]||(H[2]=it=>g.value=it),size:"small",min:1,max:20,step:1,style:{width:"92px"},title:ve(Zt)("tagGraphFilterHopsTitle")},null,8,["value","title"]),mt(st,{value:m.value,"onUpdate:value":H[3]||(H[3]=it=>m.value=it),size:"small",min:10,max:1e3,step:10,style:{width:"100px"},title:ve(Zt)("tagGraphKeywordLimitTitle")},null,8,["value","title"]),mt(et,{size:"small",onClick:k},{default:ue(()=>[Ge(Gt(ve(Zt)("tagGraphFilterApply")),1)]),_:1}),mt(et,{size:"small",onClick:E},{default:ue(()=>[Ge(Gt(ve(Zt)("tagGraphFilterReset")),1)]),_:1}),mt(et,{size:"small",title:x.value?ve(Zt)("exitFullscreen"):ve(Zt)("fullscreen"),onClick:b},{default:ue(()=>[x.value?(ee(),Ja(ve(hE),{key:0})):(ee(),Ja(ve(dE),{key:1}))]),_:1},8,["title"])]),_:1})])]),Dt("div",{ref_key:"chartRef",ref:s,class:"chart-container"},null,512)])):vr("",!0)],512)}}});const zet=nM(Bet,[["__scopeId","data-v-54d42f00"]]),Lr=r=>(rM("data-v-930c370d"),r=r(),aM(),r),Vet={class:"topic-search"},Get={class:"toolbar"},Fet={class:"left"},Het={class:"title"},Wet=Lr(()=>Dt("span",{class:"icon"},"🧠",-1)),$et={class:"right"},Uet={key:0,style:{opacity:"0.75"}},Yet={class:"label"},Zet={class:"label"},Xet={style:{display:"grid",gap:"6px"}},qet=Lr(()=>Dt("span",{style:{"margin-right":"6px"}},"🔑",-1)),Ket={key:0},jet=Lr(()=>Dt("span",{style:{"margin-right":"6px"}},"🧩",-1)),Jet=Lr(()=>Dt("span",{style:{"margin-right":"6px"}},"🐍",-1)),Qet={style:{opacity:"0.85"}},trt=Lr(()=>Dt("span",{style:{"margin-right":"6px"}},"💻",-1)),ert={key:2,style:{margin:"10px 0 0 0",position:"relative"}},rrt={key:3,style:{margin:"10px 0 0 0",padding:"8px 12px",background:"#fffbe6",border:"1px solid #ffe58f","border-radius":"8px",display:"flex","align-items":"center",gap:"10px"}},art=Lr(()=>Dt("span",null,"💾",-1)),nrt={key:4,style:{margin:"10px 0 0 0"}},irt={style:{margin:"10px 0",display:"flex","align-items":"center",gap:"8px"}},ort=Lr(()=>Dt("span",{style:{"font-size":"13px",color:"#666"}},"View:",-1)),srt={key:5},lrt={key:0,style:{"margin-top":"10px"}},urt={key:1,class:"grid"},frt=["onClick"],crt={class:"card-top"},vrt={class:"card-title line-clamp-1"},hrt={class:"card-count"},drt={class:"card-desc line-clamp-2"},prt={key:2,class:"empty"},grt={class:"guide"},yrt={class:"guide-row"},mrt=Lr(()=>Dt("span",{class:"guide-icon"},"🗂️",-1)),_rt={class:"guide-text"},Srt={class:"guide-row"},xrt=Lr(()=>Dt("span",{class:"guide-icon"},"🧠",-1)),brt={class:"guide-text"},wrt={class:"guide-row"},Trt=Lr(()=>Dt("span",{class:"guide-icon"},"🔎",-1)),Crt={class:"guide-text"},Art={class:"guide-row"},Mrt=Lr(()=>Dt("span",{class:"guide-icon"},"✨",-1)),Drt={class:"guide-text"},Lrt={class:"guide-row"},Irt=Lr(()=>Dt("span",{class:"guide-icon"},"🚀",-1)),Prt={class:"guide-text"},krt={class:"guide-hint"},Rrt=Lr(()=>Dt("span",{class:"guide-icon"},"💡",-1)),Ert={key:0,class:"guide-text"},Ort={key:1,class:"guide-text"},Nrt={key:6,style:{height:"calc(100vh - 300px)","min-height":"600px"}},Brt="iib_topic_search_hide_requirements_v1",zrt="iib_topic_search_cache_collapsed_v1",dg="topic_search_scope",Vrt=oi({__name:"TopicSearch",props:{tabIdx:{},paneIdx:{}},setup(r){const t=r,e=yE(),a=Yt(!1),n=Yt(.9),i=Yt(2),o=Yt(null),s=Yt(null),l=Yt(!1),u=t1(Brt,!0),f=()=>{u.value=!1},c=t1(zrt,!1),v=()=>{c.value=!1},h=()=>{c.value=!0},d=Yt(null),p=Yt("");let g=null;const y=Ft(()=>{var W;const O=(W=d.value)==null?void 0:W.status;return O==="queued"||O==="running"}),m=Ft(()=>{var W;const O=String(((W=d.value)==null?void 0:W.stage)||"");return!O||O==="queued"||O==="init"?Zt("topicSearchJobQueued"):O==="embedding"?Zt("topicSearchJobStageEmbedding"):O==="clustering"?Zt("topicSearchJobStageClustering"):O==="titling"?Zt("topicSearchJobStageTitling"):O==="done"?Zt("topicSearchJobStageDone"):O==="error"?Zt("topicSearchJobStageError"):`${Zt("topicSearchJobStage")}: ${O}`}),_=Ft(()=>{var pt;const O=(pt=d.value)==null?void 0:pt.progress;if(!O)return 0;const W=Number(O.to_embed??0),q=Number(O.embedded_done??0);if(W<=0)return 0;const K=Math.floor(q/W*100);return Math.max(0,Math.min(100,K))}),S=Ft(()=>{var W,q,K,pt;const O=(W=d.value)==null?void 0:W.progress;if(!O)return"";if(((q=d.value)==null?void 0:q.stage)==="embedding"){const xt=Number(O.embedded_done??0),Ct=Number(O.to_embed??0),Ot=Number(O.scanned??0),te=String(O.folder??"");return Zt("topicSearchJobEmbeddingDesc",[xt,Ct,Ot,te])}if(((K=d.value)==null?void 0:K.stage)==="clustering"){const xt=Number(O.items_done??0),Ct=Number(O.items_total??0);return Zt("topicSearchJobClusteringDesc",[xt,Ct])}if(((pt=d.value)==null?void 0:pt.stage)==="titling"){const xt=Number(O.clusters_done??0),Ct=Number(O.clusters_total??0);return Zt("topicSearchJobTitlingDesc",[xt,Ct])}return""}),x=Yt(""),b=Yt(!1),w=Yt(null),T=Yt("clusters"),C=Yt(!1),M=Yt([]),D=Yt(!1),I=Yt(!1);let L=null,P="";const R=Ft(()=>(e.quickMovePaths??[]).filter(W=>{const q=String((W==null?void 0:W.key)??"");return((W==null?void 0:W.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(q)}).map(W=>String((W==null?void 0:W.dir)??"")).filter(Boolean));eo(R,O=>{O!=null&&O.length&&(M.value=(M.value??[]).filter(W=>!O.includes(W)))},{immediate:!0});const k=Ft(()=>(e.quickMovePaths??[]).filter(W=>{const q=String((W==null?void 0:W.key)??"");return!(((W==null?void 0:W.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(q))}).map(W=>({value:W.dir,label:W.zh||W.dir}))),N=Ft(()=>(M.value??[]).filter(Boolean).length),E=Ft(()=>(M.value??[]).filter(Boolean)),z=Ft(()=>{var O;return((O=o.value)==null?void 0:O.clusters)??[]}),V=async()=>{var q,K,pt;if(D.value)return;try{const xt=await xE();e.conf=xt}catch{}const O=((q=e.conf)==null?void 0:q.app_fe_setting)||{},W=(K=O==null?void 0:O[dg])==null?void 0:K.folder_paths;Array.isArray(W)&&W.length&&!((pt=M.value)!=null&&pt.length)&&(M.value=W.map(xt=>String(xt)).filter(Boolean)),D.value=!0},H=async()=>{var W,q;if((W=e.conf)!=null&&W.is_readonly||!D.value)return;const O={folder_paths:E.value,updated_at:Date.now()};await bE(dg,O),(q=e.conf)!=null&&q.app_fe_setting&&(e.conf.app_fe_setting[dg]=O)},G=()=>{var W;if((W=e.conf)!=null&&W.is_readonly||!D.value)return;const O=JSON.stringify(E.value);O!==P&&(L&&clearTimeout(L),L=setTimeout(async()=>{I.value=!0;try{await H(),P=O}finally{I.value=!1}},500))},Y=()=>{g&&(clearInterval(g),g=null)},X=async()=>{const O=p.value;if(!O)return;const W=await DE(O);d.value=W,W.status==="done"?(Y(),a.value=!1,W.result&&(o.value=W.result),s.value=null):W.status==="error"&&(Y(),a.value=!1,ta.error(W.error||Zt("topicSearchJobFailed")))},ot=async()=>{if(N.value)try{const O=await wE({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:E.value});s.value=O,O.cache_hit&&O.result&&(o.value=O.result)}catch{}},St=async()=>{var O;if(!((O=e.conf)!=null&&O.is_readonly)){if(!N.value){ta.warning(Zt("topicSearchNeedScope")),C.value=!0;return}Y(),a.value=!0,d.value=null,p.value="";try{await TE();const W=await CE({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:E.value});p.value=W.job_id,await X(),g=setInterval(()=>{X()},800)}catch(W){throw a.value=!1,W}}},Mt=async()=>{const O=(x.value||"").trim();if(O&&!b.value){if(!N.value){ta.warning(Zt("topicSearchNeedScope")),C.value=!0;return}b.value=!0;try{w.value=await AE({query:O,top_k:80,ensure_embed:!l.value,folder_paths:E.value}),l.value||(l.value=!0),st()}finally{b.value=!1}}},st=()=>{var pt;const O=(((pt=w.value)==null?void 0:pt.results)??[]).map(xt=>xt.path).filter(Boolean);if(!O.length)return;const W=`Query: ${x.value.trim()}(${O.length})`,q={type:"topic-search-matched-image-grid",name:W,key:Date.now()+Bo(),id:Bo(),title:W,paths:O},K=e.tabList[t.tabIdx];K.panes.push(q),K.key=q.key},et=O=>{const W={type:"topic-search-matched-image-grid",name:`${O.title}(${O.size})`,key:Date.now()+Bo(),id:Bo(),title:O.title,paths:O.paths},q=e.tabList[t.tabIdx];q.panes.push(W),q.key=W.key},it=O=>{const W={type:"topic-search-matched-image-grid",name:`${O.title}(${O.size})`,key:Date.now()+Bo(),id:Bo(),title:O.title,paths:O.paths},q=e.tabList[t.tabIdx];q.panes.push(W),q.key=W.key},tt=O=>{x.value=O,Mt()};return KA(()=>{(async()=>(await V(),N.value&&await ot()))()}),mE(()=>{Y()}),eo(E,()=>{l.value=!1},{deep:!0}),eo(()=>E.value,()=>{G()},{deep:!0}),(O,W)=>{var Ir,Wt,fe,ke,qr,$a,No,Ua,ha;const q=sM,K=eM,pt=tM,xt=oM,Ct=JA,Ot=qE,te=IE,Xt=iM,$e=QA,Be=ME;return ee(),Ae("div",Vet,[Dt("div",Get,[Dt("div",Fet,[Dt("div",Het,[Wet,Dt("span",null,Gt(O.$t("topicSearchTitleExperimental")),1)]),o.value?(ee(),Ja(q,{key:0,color:"blue"},{default:ue(()=>[Ge("共 "+Gt(o.value.count)+" 张",1)]),_:1})):vr("",!0),o.value?(ee(),Ja(q,{key:1,color:"geekblue"},{default:ue(()=>[Ge("主题 "+Gt(o.value.clusters.length),1)]),_:1})):vr("",!0),o.value?(ee(),Ja(q,{key:2,color:"default"},{default:ue(()=>[Ge("噪声 "+Gt(o.value.noise.length),1)]),_:1})):vr("",!0)]),Dt("div",$et,[mt(K,{onClick:W[0]||(W[0]=Kt=>C.value=!0)},{default:ue(()=>[Ge(Gt(O.$t("topicSearchScope"))+" ",1),N.value?(ee(),Ae("span",Uet,"("+Gt(N.value)+")",1)):vr("",!0)]),_:1}),mt(pt,{value:x.value,"onUpdate:value":W[1]||(W[1]=Kt=>x.value=Kt),style:{width:"min(420px, 72vw)"},placeholder:O.$t("topicSearchQueryPlaceholder"),disabled:b.value,onKeydown:jA(Mt,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),mt(K,{loading:b.value,onClick:Mt},{default:ue(()=>[Ge(Gt(O.$t("search")),1)]),_:1},8,["loading"]),(Wt=(Ir=w.value)==null?void 0:Ir.results)!=null&&Wt.length?(ee(),Ja(K,{key:0,onClick:st},{default:ue(()=>[Ge(Gt(O.$t("topicSearchOpenResults")),1)]),_:1})):vr("",!0),Dt("span",Yet,Gt(O.$t("topicSearchThreshold")),1),mt(xt,{value:n.value,"onUpdate:value":W[2]||(W[2]=Kt=>n.value=Kt),min:.5,max:.99,step:.01},null,8,["value"]),Dt("span",Zet,Gt(O.$t("topicSearchMinClusterSize")),1),mt(xt,{value:i.value,"onUpdate:value":W[3]||(W[3]=Kt=>i.value=Kt),min:1,max:50,step:1},null,8,["value"]),mt(K,{type:"primary",ghost:"",loading:a.value,disabled:(fe=ve(e).conf)==null?void 0:fe.is_readonly,onClick:St},{default:ue(()=>[Ge(Gt(O.$t("refresh")),1)]),_:1},8,["loading","disabled"])])]),(ke=ve(e).conf)!=null&&ke.is_readonly?(ee(),Ja(Ct,{key:0,type:"warning",message:O.$t("readonlyModeSettingPageDesc"),style:{margin:"12px 0"},"show-icon":""},null,8,["message"])):vr("",!0),ve(u)?(ee(),Ja(Ct,{key:1,type:"info","show-icon":"",closable:"",style:{margin:"10px 0 0 0"},message:O.$t("topicSearchRequirementsTitle"),onClose:f},{description:ue(()=>[Dt("div",Xet,[Dt("div",null,[qet,Dt("span",null,Gt(O.$t("topicSearchRequirementsOpenai")),1)]),ve(_E)?(ee(),Ae("div",Ket,[jet,Dt("span",null,Gt(O.$t("topicSearchRequirementsDepsDesktop")),1)])):(ee(),Ae(Vc,{key:1},[Dt("div",null,[Jet,Dt("span",null,Gt(O.$t("topicSearchRequirementsDepsPython")),1)]),Dt("div",Qet,[trt,Dt("span",null,Gt(O.$t("topicSearchRequirementsInstallCmd")),1)])],64))])]),_:1},8,["message"])):vr("",!0),(qr=s.value)!=null&&qr.cache_hit&&(($a=s.value)!=null&&$a.stale)&&!ve(c)?(ee(),Ae("div",ert,[mt(Ct,{type:"warning","show-icon":"",message:O.$t("topicSearchCacheStale"),description:O.$t("topicSearchCacheStaleDesc")},{action:ue(()=>{var Kt;return[mt(K,{size:"small",loading:a.value||y.value,disabled:(Kt=ve(e).conf)==null?void 0:Kt.is_readonly,onClick:St},{default:ue(()=>[Ge(Gt(O.$t("topicSearchCacheUpdate")),1)]),_:1},8,["loading","disabled"])]}),_:1},8,["message","description"]),mt(K,{size:"small",style:{position:"absolute",top:"8px",right:"8px","z-index":"1"},onClick:h},{default:ue(()=>[Ge(" ^ ")]),_:1})])):vr("",!0),(No=s.value)!=null&&No.cache_hit&&((Ua=s.value)!=null&&Ua.stale)&&ve(c)?(ee(),Ae("div",rrt,[art,mt(K,{size:"small",loading:a.value||y.value,disabled:(ha=ve(e).conf)==null?void 0:ha.is_readonly,onClick:St},{default:ue(()=>[Ge(Gt(O.$t("topicSearchCacheUpdate")),1)]),_:1},8,["loading","disabled"]),mt(K,{size:"small",onClick:v},{default:ue(()=>[Ge(" v ")]),_:1})])):vr("",!0),y.value?(ee(),Ae("div",nrt,[mt(Ct,{type:"info","show-icon":"",message:m.value,description:S.value},null,8,["message","description"]),mt(Ot,{percent:_.value,size:"small",style:{"margin-top":"8px"}},null,8,["percent"])])):vr("",!0),Dt("div",irt,[ort,mt(te,{checked:T.value,"onUpdate:checked":W[4]||(W[4]=Kt=>T.value=Kt),"checked-value":"graph","un-checked-value":"clusters","checked-children":"Tag Graph","un-checked-children":"Clusters"},null,8,["checked"])]),T.value==="clusters"?(ee(),Ae("div",srt,[mt(Xt,{spinning:a.value},{default:ue(()=>{var Kt;return[w.value?(ee(),Ae("div",lrt,[mt(Ct,{type:"info",message:O.$t("topicSearchRecallMsg",[w.value.results.length,w.value.count,w.value.top_k]),"show-icon":""},null,8,["message"])])):vr("",!0),z.value.length?(ee(),Ae("div",urt,[(ee(!0),Ae(Vc,null,SE(z.value,Ya=>(ee(),Ae("div",{class:"card",key:Ya.id,onClick:Oh=>et(Ya)},[Dt("div",crt,[Dt("div",vrt,Gt(Ya.title),1),Dt("div",hrt,Gt(Ya.size),1)]),Dt("div",drt,Gt(Ya.sample_prompt),1)],8,frt))),128))])):(ee(),Ae("div",prt,[mt(Ct,{type:"info","show-icon":"",message:O.$t("topicSearchGuideTitle"),style:{"margin-bottom":"10px"}},null,8,["message"]),Dt("div",grt,[Dt("div",yrt,[mrt,Dt("span",_rt,Gt(O.$t("topicSearchGuideStep1")),1),mt(K,{size:"small",onClick:W[5]||(W[5]=Ya=>C.value=!0)},{default:ue(()=>[Ge(Gt(O.$t("topicSearchScope")),1)]),_:1})]),Dt("div",Srt,[xrt,Dt("span",brt,Gt(O.$t("topicSearchGuideStep2")),1),mt(K,{size:"small",loading:a.value,disabled:(Kt=ve(e).conf)==null?void 0:Kt.is_readonly,onClick:St},{default:ue(()=>[Ge(Gt(O.$t("refresh")),1)]),_:1},8,["loading","disabled"])]),Dt("div",wrt,[Trt,Dt("span",Crt,Gt(O.$t("topicSearchGuideStep3")),1)]),Dt("div",Art,[Mrt,Dt("span",Drt,Gt(O.$t("topicSearchGuideAdvantage1")),1)]),Dt("div",Lrt,[Irt,Dt("span",Prt,Gt(O.$t("topicSearchGuideAdvantage2")),1)]),Dt("div",krt,[Rrt,N.value?(ee(),Ae("span",Ort,Gt(O.$t("topicSearchGuideEmptyReasonNoTopics")),1)):(ee(),Ae("span",Ert,Gt(O.$t("topicSearchGuideEmptyReasonNoScope")),1))])])]))]}),_:1},8,["spinning"])])):T.value==="graph"?(ee(),Ae("div",Nrt,[mt(zet,{folders:E.value,lang:ve(e).lang,onSearchTag:tt,onOpenCluster:it},null,8,["folders","lang"])])):vr("",!0),mt(Be,{visible:C.value,"onUpdate:visible":W[7]||(W[7]=Kt=>C.value=Kt),title:O.$t("topicSearchScopeModalTitle"),"mask-closable":!0,onOk:W[8]||(W[8]=()=>{C.value=!1,H()})},{default:ue(()=>[mt(Ct,{type:"info","show-icon":"",message:O.$t("topicSearchScopeTip"),style:{"margin-bottom":"10px"}},null,8,["message"]),I.value?(ee(),Ja(Ct,{key:0,type:"info","show-icon":"",message:O.$t("topicSearchSavingToBackend"),style:{"margin-bottom":"10px"}},null,8,["message"])):vr("",!0),mt($e,{value:M.value,"onUpdate:value":W[6]||(W[6]=Kt=>M.value=Kt),mode:"multiple",style:{width:"100%"},options:k.value,placeholder:O.$t("topicSearchScopePlaceholder"),"max-tag-count":3,getPopupContainer:Kt=>Kt.parentElement||Kt,"allow-clear":""},null,8,["value","options","placeholder","getPopupContainer"])]),_:1},8,["visible","title"])])}}});const Zrt=nM(Vrt,[["__scopeId","data-v-930c370d"]]);export{Zrt as default}; diff --git a/vue/dist/assets/_isIterateeCall-e4f71c4d.js b/vue/dist/assets/_isIterateeCall-537db5dd.js similarity index 68% rename from vue/dist/assets/_isIterateeCall-e4f71c4d.js rename to vue/dist/assets/_isIterateeCall-537db5dd.js index 8378f85..007f4e3 100644 --- a/vue/dist/assets/_isIterateeCall-e4f71c4d.js +++ b/vue/dist/assets/_isIterateeCall-537db5dd.js @@ -1 +1 @@ -import{bV as i,b1 as t,e7 as f,bM as n}from"./index-64cbe4df.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-043a7b26.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-5f7d83ce.js b/vue/dist/assets/batchDownload-e0fb16ef.js similarity index 83% rename from vue/dist/assets/batchDownload-5f7d83ce.js rename to vue/dist/assets/batchDownload-e0fb16ef.js index ecfb056..04cdb6e 100644 --- a/vue/dist/assets/batchDownload-5f7d83ce.js +++ b/vue/dist/assets/batchDownload-e0fb16ef.js @@ -1 +1 @@ -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-64cbe4df.js";import{_ as N}from"./index-f0ba7b9c.js";import{u as L,a as H,f as O,F as W,d as j}from"./FileItem-2b09179d.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js";/* empty css */import"./index-53055c61.js";import"./_isIterateeCall-e4f71c4d.js";import"./index-8c941714.js";import"./index-01c239de.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-a2642a17"]]);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-043a7b26.js";import{_ as N}from"./index-e6c51938.js";import{u as L,a as H,f as O,F as W,d as j}from"./FileItem-032f0ab0.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js";/* empty css */import"./index-6b635fab.js";import"./_isIterateeCall-537db5dd.js";import"./index-136f922f.js";import"./index-c87c1cca.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-a2642a17"]]);export{le as default}; diff --git a/vue/dist/assets/emptyStartup-d1e11017.js b/vue/dist/assets/emptyStartup-eb8667f8.js similarity index 99% rename from vue/dist/assets/emptyStartup-d1e11017.js rename to vue/dist/assets/emptyStartup-eb8667f8.js index 0a02666..3b45dc7 100644 --- a/vue/dist/assets/emptyStartup-d1e11017.js +++ b/vue/dist/assets/emptyStartup-eb8667f8.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-64cbe4df.js";import{_ as Lt}from"./index-f0ba7b9c.js";/* empty css */import{V as xt}from"./Checkbox-65a2741e.js";import{D as It}from"./index-01c239de.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-043a7b26.js";import{_ as Lt}from"./index-e6c51938.js";/* empty css */import{V as xt}from"./Checkbox-da9add50.js";import{D as It}from"./index-c87c1cca.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-a6c8c220"),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-a6c8c220"]]);export{Kn as default}; diff --git a/vue/dist/assets/globalSetting-59c96cc0.js b/vue/dist/assets/globalSetting-5870e577.js similarity index 96% rename from vue/dist/assets/globalSetting-59c96cc0.js rename to vue/dist/assets/globalSetting-5870e577.js index 9b2a993..2e9e9db 100644 --- a/vue/dist/assets/globalSetting-59c96cc0.js +++ b/vue/dist/assets/globalSetting-5870e577.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-64cbe4df.js";import{_ as z,a as le,F as Me}from"./numInput-a328defa.js";import"./index-d2c56e4b.js";/* empty css *//* empty css */import{_ as oe}from"./index-f0ba7b9c.js";import"./index-56137fc5.js";import{g as Oe,C as Y,_ as Pe}from"./shortcut-86575428.js";import"./isArrayLikeObject-31019b5f.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js";import"./index-53055c61.js";import"./Checkbox-65a2741e.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-a56a2d27"]]),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-e8b4762d"]]);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-043a7b26.js";import{_ as z,a as le,F as Me}from"./numInput-a8e85774.js";import"./index-394c80fb.js";/* empty css *//* empty css */import{_ as oe}from"./index-e6c51938.js";import"./index-3432146f.js";import{g as Oe,C as Y,_ as Pe}from"./shortcut-94e5bafb.js";import"./isArrayLikeObject-5d03658e.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js";import"./index-6b635fab.js";import"./Checkbox-da9add50.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-a56a2d27"]]),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-e8b4762d"]]);export{_t as default}; diff --git a/vue/dist/assets/gridView-7f025bc2.js b/vue/dist/assets/gridView-3c77523c.js similarity index 81% rename from vue/dist/assets/gridView-7f025bc2.js rename to vue/dist/assets/gridView-3c77523c.js index cdbffbf..871f7ab 100644 --- a/vue/dist/assets/gridView-7f025bc2.js +++ b/vue/dist/assets/gridView-3c77523c.js @@ -1 +1 @@ -import{u as w,a as y,F as k,d as x}from"./FileItem-2b09179d.js";import{d as h,a1 as F,c9 as b,r as D,bh as I,bl as C,U as V,V as E,c,a3 as z,a4 as e,af as S,cT as B,cV as R,a0 as T}from"./index-64cbe4df.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js";/* empty css */import"./index-53055c61.js";import"./_isIterateeCall-e4f71c4d.js";import"./index-8c941714.js";import"./index-01c239de.js";const A=h({__name:"gridView",props:{tabIdx:{},paneIdx:{},id:{},removable:{type:Boolean},allowDragAndDrop:{type:Boolean},files:{},paneKey:{}},setup(p){const o=p,m=F(),{stackViewEl:d}=w().toRefs(),{itemSize:i,gridItems:u,cellWidth:f}=y(),g=b(),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:_},[c(e(x),{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 n;return[c(k,{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":(n=t==null?void 0:t.tags)==null?void 0:n.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-f35f4802"]]);export{j as default}; +import{u as w,a as y,F as k,d as x}from"./FileItem-032f0ab0.js";import{d as h,a1 as F,c9 as b,r as D,bh as I,bl as C,U as V,V as E,c,a3 as z,a4 as e,af as S,cT as B,cV as R,a0 as T}from"./index-043a7b26.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js";/* empty css */import"./index-6b635fab.js";import"./_isIterateeCall-537db5dd.js";import"./index-136f922f.js";import"./index-c87c1cca.js";const A=h({__name:"gridView",props:{tabIdx:{},paneIdx:{},id:{},removable:{type:Boolean},allowDragAndDrop:{type:Boolean},files:{},paneKey:{}},setup(p){const o=p,m=F(),{stackViewEl:d}=w().toRefs(),{itemSize:i,gridItems:u,cellWidth:f}=y(),g=b(),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:_},[c(e(x),{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 n;return[c(k,{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":(n=t==null?void 0:t.tags)==null?void 0:n.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-f35f4802"]]);export{j as default}; diff --git a/vue/dist/assets/hook-6b091d6d.js b/vue/dist/assets/hook-c2da9ac8.js similarity index 90% rename from vue/dist/assets/hook-6b091d6d.js rename to vue/dist/assets/hook-c2da9ac8.js index ea19742..14890fb 100644 --- a/vue/dist/assets/hook-6b091d6d.js +++ b/vue/dist/assets/hook-c2da9ac8.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-64cbe4df.js";import{u as L,a as Q,b as j,e as H}from"./FileItem-2b09179d.js";import{a as T,b as U,c as W}from"./MultiSelectKeep-e2324426.js";import{u as B}from"./useGenInfoDiff-bfe60e2e.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-043a7b26.js";import{u as L,a as Q,b as j,e as H}from"./FileItem-032f0ab0.js";import{a as T,b as U,c as W}from"./MultiSelectKeep-047e6315.js";import{u as B}from"./useGenInfoDiff-0d82f93a.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-64cbe4df.js b/vue/dist/assets/index-043a7b26.js similarity index 99% rename from vue/dist/assets/index-64cbe4df.js rename to vue/dist/assets/index-043a7b26.js index 660c6c4..561e0e7 100644 --- a/vue/dist/assets/index-64cbe4df.js +++ b/vue/dist/assets/index-043a7b26.js @@ -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,p]of Object.entries(u))d=="prompt"||d=="negativePrompt"||(l+=d+": "+p+`\r -`);return l}return ve(()=>{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:p}=c,h=p/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-d6c97117"]]),lU=he({__name:"SplitViewTab",setup(t){const e=Nn(),n={local:xn(()=>mn(()=>import("./stackView-719235f1.js"),["assets/stackView-719235f1.js","assets/index-ed3f9da1.js","assets/index-41e4fe63.css","assets/numInput-a328defa.js","assets/index-d2c56e4b.js","assets/index-56137fc5.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-31019b5f.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js","assets/index-53055c61.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-f0ba7b9c.js","assets/index-1cc34316.css","assets/index-01c239de.js","assets/index-80432a0c.css","assets/FileItem-2b09179d.js","assets/_isIterateeCall-e4f71c4d.js","assets/index-8c941714.js","assets/index-63826c0f.css","assets/FileItem-d0ea10d7.css","assets/MultiSelectKeep-e2324426.js","assets/shortcut-86575428.js","assets/Checkbox-65a2741e.js","assets/MultiSelectKeep-1800e6f5.css","assets/useGenInfoDiff-bfe60e2e.js","assets/stackView-7d153076.css","assets/index-f4bbe4b8.css"])),empty:xn(()=>mn(()=>import("./emptyStartup-d1e11017.js"),["assets/emptyStartup-d1e11017.js","assets/index-f0ba7b9c.js","assets/index-1cc34316.css","assets/Checkbox-65a2741e.js","assets/index-01c239de.js","assets/index-80432a0c.css","assets/emptyStartup-15f7a1b4.css","assets/index-9fed83c2.css"])),"global-setting":xn(()=>mn(()=>import("./globalSetting-59c96cc0.js"),["assets/globalSetting-59c96cc0.js","assets/numInput-a328defa.js","assets/index-d2c56e4b.js","assets/index-56137fc5.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-31019b5f.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js","assets/index-53055c61.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-f0ba7b9c.js","assets/index-1cc34316.css","assets/shortcut-86575428.js","assets/Checkbox-65a2741e.js","assets/globalSetting-14ee2849.css","assets/index-f4bbe4b8.css"])),"tag-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-a60bfc42.js"),["assets/MatchedImageGrid-a60bfc42.js","assets/index-ed3f9da1.js","assets/index-41e4fe63.css","assets/index-f0ba7b9c.js","assets/index-1cc34316.css","assets/MultiSelectKeep-e2324426.js","assets/FileItem-2b09179d.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js","assets/index-53055c61.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e4f71c4d.js","assets/index-8c941714.js","assets/index-63826c0f.css","assets/index-01c239de.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/shortcut-86575428.js","assets/Checkbox-65a2741e.js","assets/MultiSelectKeep-1800e6f5.css","assets/hook-6b091d6d.js","assets/useGenInfoDiff-bfe60e2e.js","assets/MatchedImageGrid-c716d973.css"])),"topic-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-9f060dd1.js"),["assets/MatchedImageGrid-9f060dd1.js","assets/index-ed3f9da1.js","assets/index-41e4fe63.css","assets/MultiSelectKeep-e2324426.js","assets/FileItem-2b09179d.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js","assets/index-53055c61.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e4f71c4d.js","assets/index-8c941714.js","assets/index-63826c0f.css","assets/index-01c239de.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/shortcut-86575428.js","assets/Checkbox-65a2741e.js","assets/index-f0ba7b9c.js","assets/index-1cc34316.css","assets/MultiSelectKeep-1800e6f5.css","assets/hook-6b091d6d.js","assets/useGenInfoDiff-bfe60e2e.js","assets/MatchedImageGrid-e9e22234.css"])),"tag-search":xn(()=>mn(()=>import("./TagSearch-a4041cb3.js"),["assets/TagSearch-a4041cb3.js","assets/index-ed3f9da1.js","assets/index-41e4fe63.css","assets/index-56137fc5.js","assets/index-d55a76b1.css","assets/searchHistory-a27d7522.js","assets/index-d2c56e4b.js","assets/index-806213af.css","assets/searchHistory-d0561c22.css","assets/isArrayLikeObject-31019b5f.js","assets/_isIterateeCall-e4f71c4d.js","assets/TagSearch-369c3a9a.css","assets/index-f4bbe4b8.css"])),"fuzzy-search":xn(()=>mn(()=>import("./SubstrSearch-35cc8dd0.js"),["assets/SubstrSearch-35cc8dd0.js","assets/index-ed3f9da1.js","assets/index-41e4fe63.css","assets/index-56137fc5.js","assets/index-d55a76b1.css","assets/index-d2c56e4b.js","assets/index-806213af.css","assets/FileItem-2b09179d.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js","assets/index-53055c61.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e4f71c4d.js","assets/index-8c941714.js","assets/index-63826c0f.css","assets/index-01c239de.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/MultiSelectKeep-e2324426.js","assets/shortcut-86575428.js","assets/Checkbox-65a2741e.js","assets/index-f0ba7b9c.js","assets/index-1cc34316.css","assets/MultiSelectKeep-1800e6f5.css","assets/hook-6b091d6d.js","assets/useGenInfoDiff-bfe60e2e.js","assets/searchHistory-a27d7522.js","assets/searchHistory-d0561c22.css","assets/SubstrSearch-5ca89adf.css","assets/index-f4bbe4b8.css"])),"topic-search":xn(()=>mn(()=>import("./TopicSearch-52e0968f.js"),["assets/TopicSearch-52e0968f.js","assets/index-56137fc5.js","assets/index-d55a76b1.css","assets/index-ed3f9da1.js","assets/index-41e4fe63.css","assets/index-f0ba7b9c.js","assets/index-1cc34316.css","assets/index-53055c61.js","assets/index-017a4092.css","assets/index-8c941714.js","assets/index-63826c0f.css","assets/TopicSearch-cae56808.css","assets/index-f4bbe4b8.css"])),"img-sli":xn(()=>mn(()=>import("./ImgSliPagePane-3820ef66.js"),["assets/ImgSliPagePane-3820ef66.js","assets/ImgSliPagePane-868b21f8.css"])),"batch-download":xn(()=>mn(()=>import("./batchDownload-5f7d83ce.js"),["assets/batchDownload-5f7d83ce.js","assets/index-f0ba7b9c.js","assets/index-1cc34316.css","assets/FileItem-2b09179d.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js","assets/index-53055c61.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e4f71c4d.js","assets/index-8c941714.js","assets/index-63826c0f.css","assets/index-01c239de.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/batchDownload-57f1d54b.css"])),"grid-view":xn(()=>mn(()=>import("./gridView-7f025bc2.js"),["assets/gridView-7f025bc2.js","assets/FileItem-2b09179d.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js","assets/index-53055c61.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e4f71c4d.js","assets/index-8c941714.js","assets/index-63826c0f.css","assets/index-01c239de.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/gridView-eef9ac55.css"])),"workspace-snapshot":xn(()=>mn(()=>import("./index-eb3486b4.js"),["assets/index-eb3486b4.js","assets/index-bd568ec0.css","assets/index-f4bbe4b8.css"])),"random-image":xn(()=>mn(()=>import("./randomImage-1bcaa8a0.js"),["assets/randomImage-1bcaa8a0.js","assets/FileItem-2b09179d.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js","assets/index-53055c61.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-e4f71c4d.js","assets/index-8c941714.js","assets/index-63826c0f.css","assets/index-01c239de.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/MultiSelectKeep-e2324426.js","assets/shortcut-86575428.js","assets/Checkbox-65a2741e.js","assets/index-f0ba7b9c.js","assets/index-1cc34316.css","assets/MultiSelectKeep-1800e6f5.css","assets/randomImage-4d1c5076.css"]))},r=(o,s,l)=>{var c,d;const u=e.tabList[o];if(l==="add"){const p={type:"empty",key:mr(),name:Te("emptyStartPage")};u.panes.push(p),u.key=p.key}else{const p=u.panes.findIndex(h=>h.key===s);if(u.key===s&&(u.key=((c=u.panes[p-1])==null?void 0:c.key)??((d=u.panes[1])==null?void 0:d.key)),u.panes.splice(p,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();ve(()=>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=p=>{e.dragingTab={tabIdx:l,paneIdx:c},p.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()})}),ve(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":p=>c.key=p,onEdit:(p,h)=>r(d,p,h)},{default:Mt(()=>[(Oe(!0),Fe(Re,null,Na(c.panes,(p,h)=>(Oe(),mt(l,{key:p.key,tab:p.name,class:"pane"},{default:Mt(()=>[(Oe(),mt(WE(n[p.type]),jd({tabIdx:d,paneKey:p.key,paneIdx:h},p),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-76f3eb81"]]),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 vx({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}}))},pU=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(p=>p.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)}},vU=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],p=n.snapshots.find(h=>h.id===d);if(!(p!=null&&p.tabs))return;e.tabList=Zr(p.tabs),Jt.success(Te("restoreWorkspaceSnapshotSuccess"))}});return sd("updateGlobalSetting",async()=>{var d,p;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,v;return(v=(f=h==null?void 0:h.dir)==null?void 0:f.trim)==null?void 0:v.call(f)});const c=(p=(d=e==null?void 0:e.conf)==null?void 0:d.app_fe_setting)==null?void 0:p.global;c&&(console.log("restoreFeGlobalSetting",c),i=Zr(c),a.forEach(h=>{const f=c[h];f!==void 0&&(e[h]=f)})),o(),s(),pU(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(p=>p.key));if(c.has("outdir_txt2img_samples")&&c.has("outdir_img2img_samples"))return;const d=await Qb(l);e.quickMovePaths=d.filter(p=>{var h,f;return(f=(h=p==null?void 0:p.dir)==null?void 0:h.trim)==null?void 0:f.call(h)})}),ve(()=>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}),ve(()=>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 p0(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 v0(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=>p0(o,t)):[p0(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:p=!1})=>{var h;return{storage:o,beforeRestore:s,afterRestore:l,serializer:u,key:((h=t.key)!=null?h:f=>f)(c),paths:d,debug:p}});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)),v0(a,s),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:s,afterRestore:l}=o;s==null||s(e),v0(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 ve(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=ve(()=>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 Fv={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),p=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 p&&f.unshift(new e.Diff(a,p)),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,p=c.indexOf(d);if(p!=-1)return u=[new e.Diff(r,c.substring(0,p)),new e.Diff(a,d),new e.Diff(r,c.substring(p+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],v=h[1],m=h[2],g=h[3],y=h[4],b=this.diff_main(f,m,s,l),w=this.diff_main(v,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,p=0,h=0,f="",v="";d=1&&h>=1){c.splice(d-p-h,p+h),d=d-p-h;for(var m=this.diff_main(f,v,!1,s),g=m.length-1;g>=0;g--)c.splice(d,0,m[g]);d+=m.length}h=0,p=0,f="",v="";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,p=2*c,h=new Array(p),f=new Array(p),v=0;vs);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),p=i.substring(s),h=o.substring(l),f=this.diff_main(c,d,!1,u),v=this.diff_main(p,h,!1,u);return f.concat(v)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(h){for(var f="",v=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:p}=c,h=p/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-d6c97117"]]),lU=he({__name:"SplitViewTab",setup(t){const e=Nn(),n={local:xn(()=>mn(()=>import("./stackView-5bc08bca.js"),["assets/stackView-5bc08bca.js","assets/index-d7774373.js","assets/index-41e4fe63.css","assets/numInput-a8e85774.js","assets/index-394c80fb.js","assets/index-3432146f.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-5d03658e.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js","assets/index-6b635fab.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-e6c51938.js","assets/index-1cc34316.css","assets/index-c87c1cca.js","assets/index-80432a0c.css","assets/FileItem-032f0ab0.js","assets/_isIterateeCall-537db5dd.js","assets/index-136f922f.js","assets/index-63826c0f.css","assets/FileItem-d0ea10d7.css","assets/MultiSelectKeep-047e6315.js","assets/shortcut-94e5bafb.js","assets/Checkbox-da9add50.js","assets/MultiSelectKeep-1800e6f5.css","assets/useGenInfoDiff-0d82f93a.js","assets/stackView-7d153076.css","assets/index-f4bbe4b8.css"])),empty:xn(()=>mn(()=>import("./emptyStartup-eb8667f8.js"),["assets/emptyStartup-eb8667f8.js","assets/index-e6c51938.js","assets/index-1cc34316.css","assets/Checkbox-da9add50.js","assets/index-c87c1cca.js","assets/index-80432a0c.css","assets/emptyStartup-15f7a1b4.css","assets/index-9fed83c2.css"])),"global-setting":xn(()=>mn(()=>import("./globalSetting-5870e577.js"),["assets/globalSetting-5870e577.js","assets/numInput-a8e85774.js","assets/index-394c80fb.js","assets/index-3432146f.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-5d03658e.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js","assets/index-6b635fab.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-e6c51938.js","assets/index-1cc34316.css","assets/shortcut-94e5bafb.js","assets/Checkbox-da9add50.js","assets/globalSetting-14ee2849.css","assets/index-f4bbe4b8.css"])),"tag-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-1b69852b.js"),["assets/MatchedImageGrid-1b69852b.js","assets/index-d7774373.js","assets/index-41e4fe63.css","assets/index-e6c51938.js","assets/index-1cc34316.css","assets/MultiSelectKeep-047e6315.js","assets/FileItem-032f0ab0.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js","assets/index-6b635fab.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-537db5dd.js","assets/index-136f922f.js","assets/index-63826c0f.css","assets/index-c87c1cca.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/shortcut-94e5bafb.js","assets/Checkbox-da9add50.js","assets/MultiSelectKeep-1800e6f5.css","assets/hook-c2da9ac8.js","assets/useGenInfoDiff-0d82f93a.js","assets/MatchedImageGrid-c716d973.css"])),"topic-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-e8d81cbf.js"),["assets/MatchedImageGrid-e8d81cbf.js","assets/index-d7774373.js","assets/index-41e4fe63.css","assets/MultiSelectKeep-047e6315.js","assets/FileItem-032f0ab0.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js","assets/index-6b635fab.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-537db5dd.js","assets/index-136f922f.js","assets/index-63826c0f.css","assets/index-c87c1cca.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/shortcut-94e5bafb.js","assets/Checkbox-da9add50.js","assets/index-e6c51938.js","assets/index-1cc34316.css","assets/MultiSelectKeep-1800e6f5.css","assets/hook-c2da9ac8.js","assets/useGenInfoDiff-0d82f93a.js","assets/MatchedImageGrid-e9e22234.css"])),"tag-search":xn(()=>mn(()=>import("./TagSearch-41700db5.js"),["assets/TagSearch-41700db5.js","assets/index-d7774373.js","assets/index-41e4fe63.css","assets/index-3432146f.js","assets/index-d55a76b1.css","assets/searchHistory-b9ead0fd.js","assets/index-394c80fb.js","assets/index-806213af.css","assets/searchHistory-d0561c22.css","assets/isArrayLikeObject-5d03658e.js","assets/_isIterateeCall-537db5dd.js","assets/TagSearch-369c3a9a.css","assets/index-f4bbe4b8.css"])),"fuzzy-search":xn(()=>mn(()=>import("./SubstrSearch-434c65f6.js"),["assets/SubstrSearch-434c65f6.js","assets/index-d7774373.js","assets/index-41e4fe63.css","assets/index-3432146f.js","assets/index-d55a76b1.css","assets/index-394c80fb.js","assets/index-806213af.css","assets/FileItem-032f0ab0.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js","assets/index-6b635fab.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-537db5dd.js","assets/index-136f922f.js","assets/index-63826c0f.css","assets/index-c87c1cca.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/MultiSelectKeep-047e6315.js","assets/shortcut-94e5bafb.js","assets/Checkbox-da9add50.js","assets/index-e6c51938.js","assets/index-1cc34316.css","assets/MultiSelectKeep-1800e6f5.css","assets/hook-c2da9ac8.js","assets/useGenInfoDiff-0d82f93a.js","assets/searchHistory-b9ead0fd.js","assets/searchHistory-d0561c22.css","assets/SubstrSearch-5ca89adf.css","assets/index-f4bbe4b8.css"])),"topic-search":xn(()=>mn(()=>import("./TopicSearch-b4afae11.js"),["assets/TopicSearch-b4afae11.js","assets/index-3432146f.js","assets/index-d55a76b1.css","assets/index-d7774373.js","assets/index-41e4fe63.css","assets/index-e6c51938.js","assets/index-1cc34316.css","assets/index-6b635fab.js","assets/index-017a4092.css","assets/index-136f922f.js","assets/index-63826c0f.css","assets/TopicSearch-75f6e0b5.css","assets/index-f4bbe4b8.css"])),"img-sli":xn(()=>mn(()=>import("./ImgSliPagePane-ba655e37.js"),["assets/ImgSliPagePane-ba655e37.js","assets/ImgSliPagePane-868b21f8.css"])),"batch-download":xn(()=>mn(()=>import("./batchDownload-e0fb16ef.js"),["assets/batchDownload-e0fb16ef.js","assets/index-e6c51938.js","assets/index-1cc34316.css","assets/FileItem-032f0ab0.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js","assets/index-6b635fab.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-537db5dd.js","assets/index-136f922f.js","assets/index-63826c0f.css","assets/index-c87c1cca.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/batchDownload-57f1d54b.css"])),"grid-view":xn(()=>mn(()=>import("./gridView-3c77523c.js"),["assets/gridView-3c77523c.js","assets/FileItem-032f0ab0.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js","assets/index-6b635fab.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-537db5dd.js","assets/index-136f922f.js","assets/index-63826c0f.css","assets/index-c87c1cca.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/gridView-eef9ac55.css"])),"workspace-snapshot":xn(()=>mn(()=>import("./index-9f241841.js"),["assets/index-9f241841.js","assets/index-bd568ec0.css","assets/index-f4bbe4b8.css"])),"random-image":xn(()=>mn(()=>import("./randomImage-54a23823.js"),["assets/randomImage-54a23823.js","assets/FileItem-032f0ab0.js","assets/numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js","assets/index-6b635fab.js","assets/index-017a4092.css","assets/numInput-2acaf603.css","assets/index-9fed83c2.css","assets/_isIterateeCall-537db5dd.js","assets/index-136f922f.js","assets/index-63826c0f.css","assets/index-c87c1cca.js","assets/index-80432a0c.css","assets/FileItem-d0ea10d7.css","assets/MultiSelectKeep-047e6315.js","assets/shortcut-94e5bafb.js","assets/Checkbox-da9add50.js","assets/index-e6c51938.js","assets/index-1cc34316.css","assets/MultiSelectKeep-1800e6f5.css","assets/randomImage-4d1c5076.css"]))},r=(o,s,l)=>{var c,d;const u=e.tabList[o];if(l==="add"){const p={type:"empty",key:mr(),name:Te("emptyStartPage")};u.panes.push(p),u.key=p.key}else{const p=u.panes.findIndex(h=>h.key===s);if(u.key===s&&(u.key=((c=u.panes[p-1])==null?void 0:c.key)??((d=u.panes[1])==null?void 0:d.key)),u.panes.splice(p,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();ve(()=>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=p=>{e.dragingTab={tabIdx:l,paneIdx:c},p.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()})}),ve(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":p=>c.key=p,onEdit:(p,h)=>r(d,p,h)},{default:Mt(()=>[(Oe(!0),Fe(Re,null,Na(c.panes,(p,h)=>(Oe(),mt(l,{key:p.key,tab:p.name,class:"pane"},{default:Mt(()=>[(Oe(),mt(WE(n[p.type]),jd({tabIdx:d,paneKey:p.key,paneIdx:h},p),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-76f3eb81"]]),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 vx({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}}))},pU=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(p=>p.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)}},vU=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],p=n.snapshots.find(h=>h.id===d);if(!(p!=null&&p.tabs))return;e.tabList=Zr(p.tabs),Jt.success(Te("restoreWorkspaceSnapshotSuccess"))}});return sd("updateGlobalSetting",async()=>{var d,p;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,v;return(v=(f=h==null?void 0:h.dir)==null?void 0:f.trim)==null?void 0:v.call(f)});const c=(p=(d=e==null?void 0:e.conf)==null?void 0:d.app_fe_setting)==null?void 0:p.global;c&&(console.log("restoreFeGlobalSetting",c),i=Zr(c),a.forEach(h=>{const f=c[h];f!==void 0&&(e[h]=f)})),o(),s(),pU(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(p=>p.key));if(c.has("outdir_txt2img_samples")&&c.has("outdir_img2img_samples"))return;const d=await Qb(l);e.quickMovePaths=d.filter(p=>{var h,f;return(f=(h=p==null?void 0:p.dir)==null?void 0:h.trim)==null?void 0:f.call(h)})}),ve(()=>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}),ve(()=>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 p0(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 v0(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=>p0(o,t)):[p0(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:p=!1})=>{var h;return{storage:o,beforeRestore:s,afterRestore:l,serializer:u,key:((h=t.key)!=null?h:f=>f)(c),paths:d,debug:p}});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)),v0(a,s),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:s,afterRestore:l}=o;s==null||s(e),v0(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 ve(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=ve(()=>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 Fv={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),p=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 p&&f.unshift(new e.Diff(a,p)),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,p=c.indexOf(d);if(p!=-1)return u=[new e.Diff(r,c.substring(0,p)),new e.Diff(a,d),new e.Diff(r,c.substring(p+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],v=h[1],m=h[2],g=h[3],y=h[4],b=this.diff_main(f,m,s,l),w=this.diff_main(v,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,p=0,h=0,f="",v="";d=1&&h>=1){c.splice(d-p-h,p+h),d=d-p-h;for(var m=this.diff_main(f,v,!1,s),g=m.length-1;g>=0;g--)c.splice(d,0,m[g]);d+=m.length}h=0,p=0,f="",v="";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,p=2*c,h=new Array(p),f=new Array(p),v=0;vs);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),p=i.substring(s),h=o.substring(l),f=this.diff_main(c,d,!1,u),v=this.diff_main(p,h,!1,u);return f.concat(v)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(h){for(var f="",v=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)),p=c(s,l,Math.ceil(s.length/2)),h;if(!d&&!p)return null;p?d?h=d[4].length>p[4].length?d:p:h=p:h=d;var f,v,m,g;i.length>o.length?(f=h[0],v=h[1],m=h[2],g=h[3]):(m=h[0],g=h[1],f=h[2],v=h[3]);var y=h[4];return[f,v,m,g,y]},e.prototype.diff_cleanupSemantic=function(i){for(var o=!1,s=[],l=0,u=null,c=0,d=0,p=0,h=0,f=0;c0?s[l-1]:-1,d=0,p=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>=v.length/2||g>=m.length/2)&&(i.splice(c,0,new e.Diff(a,m.substring(0,g))),i[c-1][1]=v.substring(0,v.length-g),i[c+1][1]=m.substring(g),c++):(y>=v.length/2||y>=m.length/2)&&(i.splice(c,0,new e.Diff(a,v.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]=v.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,v=c)}i[s-1][1]!=h&&(h?i[s-1][1]=h:(i.splice(s-1,1),s--),i[s][1]=f,v?i[s+1][1]=v:(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,p=!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 p=!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(p){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,p=i.indexOf(o,s);p!=-1&&(d=Math.min(c(0,p),d),p=i.lastIndexOf(o,s+o.length),p!=-1&&(d=Math.min(c(0,p),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,p=C-1,p>s)b=Math.max(1,2*s-p);else break}}if(c(y+1,s)>d)break;g=_}return p},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,p=0,h=0,f=0,v=l,m=l,g=0;g=2*this.Patch_Margin&&p&&(this.patch_addContext_(d,v),c.push(d),d=new e.patch_obj,p=0,v=m,h=f);break}y!==r&&(h+=b.length),y!==n&&(f+=b.length)}return p&&(this.patch_addContext_(d,v),c.push(d)),c},e.prototype.patch_deepCopy=function(i){for(var o=[],s=0;sthis.Match_MaxBits?(h=this.match_main(o,p.substring(0,this.Match_MaxBits),d),h!=-1&&(f=this.match_main(o,p.substring(p.length-this.Match_MaxBits),d+p.length-this.Match_MaxBits),(f==-1||h>=f)&&(h=-1))):h=this.match_main(o,p,d),h==-1)u[c]=!1,l-=i[c].length2-i[c].length1;else{u[c]=!0,l=h-d;var v;if(f==-1?v=o.substring(h,h+p.length):v=o.substring(h,f+this.Match_MaxBits),p==v)o=o.substring(0,h)+this.diff_text2(i[c].diffs)+o.substring(h+p.length);else{var m=this.diff_main(p,v,!1);if(p.length>this.Match_MaxBits&&this.diff_levenshtein(m)/p.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?(p.length1+=v.length,u+=v.length,h=!1,p.diffs.push(new e.Diff(f,v)),l.diffs.shift()):(v=v.substring(0,o-p.length1-this.Patch_Margin),p.length1+=v.length,u+=v.length,f===a?(p.length2+=v.length,c+=v.length):h=!1,p.diffs.push(new e.Diff(f,v)),v==l.diffs[0][1]?l.diffs.shift():l.diffs[0][1]=l.diffs[0][1].substring(v.length))}d=this.diff_text2(p.diffs),d=d.substring(d.length-this.Patch_Margin);var m=this.diff_text1(l.diffs).substring(0,this.Patch_Margin);m!==""&&(p.length1+=m.length,p.length2+=m.length,p.diffs.length!==0&&p.diffs[p.diffs.length-1][0]===a?p.diffs[p.diffs.length-1][1]+=m:p.diffs.push(new e.Diff(a,m))),h||i.splice(++s,0,p)}}},e.prototype.patch_toText=function(i){for(var o=[],s=0;s0?"".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-043a7b26.js";import{u as V}from"./index-3432146f.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-53055c61.js b/vue/dist/assets/index-6b635fab.js similarity index 99% rename from vue/dist/assets/index-53055c61.js rename to vue/dist/assets/index-6b635fab.js index 5b8fcda..9d54c6c 100644 --- a/vue/dist/assets/index-53055c61.js +++ b/vue/dist/assets/index-6b635fab.js @@ -1 +1 @@ -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-64cbe4df.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 _}; +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-043a7b26.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-eb3486b4.js b/vue/dist/assets/index-9f241841.js similarity index 95% rename from vue/dist/assets/index-eb3486b4.js rename to vue/dist/assets/index-9f241841.js index 85f91c8..33fda01 100644 --- a/vue/dist/assets/index-eb3486b4.js +++ b/vue/dist/assets/index-9f241841.js @@ -1 +1 @@ -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-64cbe4df.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-2c44013c"]]);export{A 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-043a7b26.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-2c44013c"]]);export{A as default}; diff --git a/vue/dist/assets/index-01c239de.js b/vue/dist/assets/index-c87c1cca.js similarity index 98% rename from vue/dist/assets/index-01c239de.js rename to vue/dist/assets/index-c87c1cca.js index 17ae83c..8794f66 100644 --- a/vue/dist/assets/index-01c239de.js +++ b/vue/dist/assets/index-c87c1cca.js @@ -1 +1 @@ -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-64cbe4df.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}; +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-043a7b26.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-ed3f9da1.js b/vue/dist/assets/index-d7774373.js similarity index 97% rename from vue/dist/assets/index-ed3f9da1.js rename to vue/dist/assets/index-d7774373.js index 57bfa57..a1fabf5 100644 --- a/vue/dist/assets/index-ed3f9da1.js +++ b/vue/dist/assets/index-d7774373.js @@ -1 +1 @@ -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-64cbe4df.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}; +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-043a7b26.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/index-f0ba7b9c.js b/vue/dist/assets/index-e6c51938.js similarity index 97% rename from vue/dist/assets/index-f0ba7b9c.js rename to vue/dist/assets/index-e6c51938.js index 035fe78..567ef8b 100644 --- a/vue/dist/assets/index-f0ba7b9c.js +++ b/vue/dist/assets/index-e6c51938.js @@ -1 +1 @@ -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-64cbe4df.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-043a7b26.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/isArrayLikeObject-31019b5f.js b/vue/dist/assets/isArrayLikeObject-31019b5f.js deleted file mode 100644 index 384b7a8..0000000 --- a/vue/dist/assets/isArrayLikeObject-31019b5f.js +++ /dev/null @@ -1 +0,0 @@ -import{cl as e,cm as i,cn as r,co as a,b1 as n}from"./index-64cbe4df.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-5d03658e.js b/vue/dist/assets/isArrayLikeObject-5d03658e.js new file mode 100644 index 0000000..5ee406c --- /dev/null +++ b/vue/dist/assets/isArrayLikeObject-5d03658e.js @@ -0,0 +1 @@ +import{cl as e,cm as i,cn as r,co as a,b1 as n}from"./index-043a7b26.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-a328defa.js b/vue/dist/assets/numInput-a8e85774.js similarity index 99% rename from vue/dist/assets/numInput-a328defa.js rename to vue/dist/assets/numInput-a8e85774.js index 4b27dca..1b985d9 100644 --- a/vue/dist/assets/numInput-a328defa.js +++ b/vue/dist/assets/numInput-a8e85774.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-64cbe4df.js";import{C as pr,R as vn}from"./index-d2c56e4b.js";import{i as mn,b as gn}from"./isArrayLikeObject-31019b5f.js";import{_ as hn}from"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.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 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 _}; +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-043a7b26.js";/* empty css */import{_ as Re}from"./index-6b635fab.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-1bcaa8a0.js b/vue/dist/assets/randomImage-54a23823.js similarity index 87% rename from vue/dist/assets/randomImage-1bcaa8a0.js rename to vue/dist/assets/randomImage-54a23823.js index 71a1c19..fa79b56 100644 --- a/vue/dist/assets/randomImage-1bcaa8a0.js +++ b/vue/dist/assets/randomImage-54a23823.js @@ -1 +1 @@ -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-64cbe4df.js";import{u as ve,c as ge,a as ke,F as we,d as he}from"./FileItem-2b09179d.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-e2324426.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js";/* empty css */import"./index-53055c61.js";import"./_isIterateeCall-e4f71c4d.js";import"./index-8c941714.js";import"./index-01c239de.js";import"./shortcut-86575428.js";import"./Checkbox-65a2741e.js";import"./index-f0ba7b9c.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-49082269"]]);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-043a7b26.js";import{u as ve,c as ge,a as ke,F as we,d as he}from"./FileItem-032f0ab0.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-047e6315.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js";/* empty css */import"./index-6b635fab.js";import"./_isIterateeCall-537db5dd.js";import"./index-136f922f.js";import"./index-c87c1cca.js";import"./shortcut-94e5bafb.js";import"./Checkbox-da9add50.js";import"./index-e6c51938.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-49082269"]]);export{We as default}; diff --git a/vue/dist/assets/searchHistory-a27d7522.js b/vue/dist/assets/searchHistory-b9ead0fd.js similarity index 95% rename from vue/dist/assets/searchHistory-a27d7522.js rename to vue/dist/assets/searchHistory-b9ead0fd.js index 5d038c4..e80db39 100644 --- a/vue/dist/assets/searchHistory-a27d7522.js +++ b/vue/dist/assets/searchHistory-b9ead0fd.js @@ -1 +1 @@ -import{R as y,C as v}from"./index-d2c56e4b.js";import{cw as f,c as d,A as w,d as P,U as o,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-64cbe4df.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 o(),c("div",null,[r("ul",F,[(o(!0),c(S,null,V(e.records.getRecords(),i=>(o(),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-834a248f"]]);class a{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 a,{serializer:{read:t=>{const e=JSON.parse(t);return new a(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}}),M=_(`${m}tag-search-HistoryRecord`,new a,{serializer:{read:t=>{const e=JSON.parse(t);return new a(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-394c80fb.js";import{cw as f,c as d,A as w,d as P,U as o,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-043a7b26.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 o(),c("div",null,[r("ul",F,[(o(!0),c(S,null,V(e.records.getRecords(),i=>(o(),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-834a248f"]]);class a{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 a,{serializer:{read:t=>{const e=JSON.parse(t);return new a(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}}),M=_(`${m}tag-search-HistoryRecord`,new a,{serializer:{read:t=>{const e=JSON.parse(t);return new a(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-86575428.js b/vue/dist/assets/shortcut-94e5bafb.js similarity index 97% rename from vue/dist/assets/shortcut-86575428.js rename to vue/dist/assets/shortcut-94e5bafb.js index 4683315..11c77cc 100644 --- a/vue/dist/assets/shortcut-86575428.js +++ b/vue/dist/assets/shortcut-94e5bafb.js @@ -1,2 +1,2 @@ -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-64cbe4df.js";import{V as le}from"./Checkbox-65a2741e.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-043a7b26.js";import{V as le}from"./Checkbox-da9add50.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-719235f1.js b/vue/dist/assets/stackView-5bc08bca.js similarity index 96% rename from vue/dist/assets/stackView-719235f1.js rename to vue/dist/assets/stackView-5bc08bca.js index 15db86b..fc80787 100644 --- a/vue/dist/assets/stackView-719235f1.js +++ b/vue/dist/assets/stackView-5bc08bca.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 y,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-64cbe4df.js";import{S as ve,s as ga}from"./index-ed3f9da1.js";import{F as X,_ as ht,a as ka}from"./numInput-a328defa.js";import"./index-d2c56e4b.js";/* empty css */import{_ as ya}from"./index-f0ba7b9c.js";import{D as gt}from"./index-01c239de.js";/* empty css */import"./index-56137fc5.js";import{u as kt,N as ba,g as S,s as yt,a as Ca,b as wa,c as _a,d as Sa,F as Ia}from"./FileItem-2b09179d.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-e2324426.js";import{u as Oa}from"./useGenInfoDiff-bfe60e2e.js";import"./isArrayLikeObject-31019b5f.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-4748a0d9.js";import"./index-53055c61.js";import"./_isIterateeCall-e4f71c4d.js";import"./index-8c941714.js";import"./shortcut-86575428.js";import"./Checkbox-65a2741e.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),b=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(b.value,"-link"),onClick:t.onClick},I),[C]):P=i("span",Be({class:"".concat(b.value,"-link"),onClick:t.onClick},I),[C]),P=x(P,b.value),C?i("span",{class:v,style:A},[P,f&&i("span",{class:"".concat(b.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,b=Ba(t,l);return c?i("span",null,[b]):i("a",{href:"#/".concat(p.join("/"))},[b])}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,b=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"),b.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),b=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(b.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}),b=()=>{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),b())}catch(f){Ie.silent||console.error(f),l.errorHandleMethod==="stop"&&(b(),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:b,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 ba,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(ye=>{v.value.seamlessRefresh(_,M).then(ae=>{M.value||(v.value=ae,x.value.emit("loadNextDir"),ye())})});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),b.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;yt.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(y(t.$t("items",[t.fileNum]))+" ",1),t.selectedFileNum?(R(),j(We,{key:0},[ee(", "+y(t.$t("selectedItems",[t.selectedFileNum])),1)],64)):J("",!0)])]))}});const Za=mt(Ya,[["__scopeId","data-v-afd25667"]]),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:b,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:ye,showGenInfo:ae,imageGenInfo:Qe,q:bt}=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:be,getRawGenParams:Pt,getGenDiffWatchDep:xt}=Oa(),At=()=>{z.value.length!==0&&rt(z.value,ue.value||0)};return je(()=>t,()=>{c.value=t;const m=yt.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=ya,Lt=X,Nt=ve;return R(),K(Nt,{spinning:e(x),size:"large"},{default:g(()=>[i(Ra,{show:e(l).keepMultiSelect||!!e(b).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(bt).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,y(m.$t("doubleClickToCopy")),1),ee(" "+y(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"])},y(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(y(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"},y(m.$t("copy")),1),h("a",{onClick:a[8]||(a[8]=k((...r)=>e(F)&&e(F)(...r),["prevent","stop"]))},y(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"]))},y(m.$t("refresh")),1),h("a",{class:"opt",onClick:a[10]||(a[10]=k((...r)=>e(ge)&&e(ge)(...r),["prevent"]))},y(e(le)?m.$t("stopPollRefresh"):m.$t("pollRefresh")),1),h("a",{class:"opt",onClick:k(At,["prevent"])},y(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"]))},y(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"]))},y(m.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[11]||(a[11]=k(()=>{},["prevent"]))},[ee(y(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"]))},y(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"]))},y(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"])},y(r.zh),9,ln)]),_:2},1024))),128))]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[17]||(a[17]=k(()=>{},["prevent"]))},[ee(y(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(be),"onUpdate:checked":a[23]||(a[23]=r=>Q(be)?be.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"]))},y(m.$t("addToSearchScanPathAndQuickMove")),1)]),h("div",cn,[h("a",{onClick:a[25]||(a[25]=k(r=>e(ca)(e(D)+"/"),["prevent"]))},y(m.$t("openWithLocalFileBrowser")),1)]),h("div",dn,[h("a",{onClick:a[26]||(a[26]=k((...r)=>e(Y)&&e(Y)(...r),["prevent"]))},y(m.$t("createFolder")),1)])]),_:1},16)])]),default:g(()=>[h("a",{class:"opt",onClick:a[18]||(a[18]=k(()=>{},["prevent"]))},y(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(b).includes(ne),"cell-width":e(w),onFileItemClick:e(G),onDragstart:e($),onDragend:e(V),onPreviewVisibleChange:e(Ct),onContextMenuClick:e(ye),onTiktokView:(Fe,Bt)=>e(rt)(e(z),Bt),"is-selected-mutil-files":e(b).length>1,"enable-change-indicator":e(ce),"seed-change-checked":e(be),"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(y(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(ye)},null,8,["file","idx","onContextMenuClick"])):J("",!0),i(Za,{"file-num":e(z).length,"selected-file-num":e(b).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const Tn=mt(mn,[["__scopeId","data-v-317d328e"]]);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 y,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-043a7b26.js";import{S as ve,s as ga}from"./index-d7774373.js";import{F as X,_ as ht,a as ka}from"./numInput-a8e85774.js";import"./index-394c80fb.js";/* empty css */import{_ as ya}from"./index-e6c51938.js";import{D as gt}from"./index-c87c1cca.js";/* empty css */import"./index-3432146f.js";import{u as kt,N as ba,g as S,s as yt,a as Ca,b as wa,c as _a,d as Sa,F as Ia}from"./FileItem-032f0ab0.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-047e6315.js";import{u as Oa}from"./useGenInfoDiff-0d82f93a.js";import"./isArrayLikeObject-5d03658e.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-0cc91aef.js";import"./index-6b635fab.js";import"./_isIterateeCall-537db5dd.js";import"./index-136f922f.js";import"./shortcut-94e5bafb.js";import"./Checkbox-da9add50.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),b=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(b.value,"-link"),onClick:t.onClick},I),[C]):P=i("span",Be({class:"".concat(b.value,"-link"),onClick:t.onClick},I),[C]),P=x(P,b.value),C?i("span",{class:v,style:A},[P,f&&i("span",{class:"".concat(b.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,b=Ba(t,l);return c?i("span",null,[b]):i("a",{href:"#/".concat(p.join("/"))},[b])}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,b=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"),b.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),b=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(b.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}),b=()=>{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),b())}catch(f){Ie.silent||console.error(f),l.errorHandleMethod==="stop"&&(b(),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:b,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 ba,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(ye=>{v.value.seamlessRefresh(_,M).then(ae=>{M.value||(v.value=ae,x.value.emit("loadNextDir"),ye())})});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),b.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;yt.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(y(t.$t("items",[t.fileNum]))+" ",1),t.selectedFileNum?(R(),j(We,{key:0},[ee(", "+y(t.$t("selectedItems",[t.selectedFileNum])),1)],64)):J("",!0)])]))}});const Za=mt(Ya,[["__scopeId","data-v-afd25667"]]),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:b,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:ye,showGenInfo:ae,imageGenInfo:Qe,q:bt}=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:be,getRawGenParams:Pt,getGenDiffWatchDep:xt}=Oa(),At=()=>{z.value.length!==0&&rt(z.value,ue.value||0)};return je(()=>t,()=>{c.value=t;const m=yt.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=ya,Lt=X,Nt=ve;return R(),K(Nt,{spinning:e(x),size:"large"},{default:g(()=>[i(Ra,{show:e(l).keepMultiSelect||!!e(b).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(bt).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,y(m.$t("doubleClickToCopy")),1),ee(" "+y(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"])},y(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(y(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"},y(m.$t("copy")),1),h("a",{onClick:a[8]||(a[8]=k((...r)=>e(F)&&e(F)(...r),["prevent","stop"]))},y(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"]))},y(m.$t("refresh")),1),h("a",{class:"opt",onClick:a[10]||(a[10]=k((...r)=>e(ge)&&e(ge)(...r),["prevent"]))},y(e(le)?m.$t("stopPollRefresh"):m.$t("pollRefresh")),1),h("a",{class:"opt",onClick:k(At,["prevent"])},y(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"]))},y(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"]))},y(m.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[11]||(a[11]=k(()=>{},["prevent"]))},[ee(y(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"]))},y(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"]))},y(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"])},y(r.zh),9,ln)]),_:2},1024))),128))]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[17]||(a[17]=k(()=>{},["prevent"]))},[ee(y(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(be),"onUpdate:checked":a[23]||(a[23]=r=>Q(be)?be.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"]))},y(m.$t("addToSearchScanPathAndQuickMove")),1)]),h("div",cn,[h("a",{onClick:a[25]||(a[25]=k(r=>e(ca)(e(D)+"/"),["prevent"]))},y(m.$t("openWithLocalFileBrowser")),1)]),h("div",dn,[h("a",{onClick:a[26]||(a[26]=k((...r)=>e(Y)&&e(Y)(...r),["prevent"]))},y(m.$t("createFolder")),1)])]),_:1},16)])]),default:g(()=>[h("a",{class:"opt",onClick:a[18]||(a[18]=k(()=>{},["prevent"]))},y(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(b).includes(ne),"cell-width":e(w),onFileItemClick:e(G),onDragstart:e($),onDragend:e(V),onPreviewVisibleChange:e(Ct),onContextMenuClick:e(ye),onTiktokView:(Fe,Bt)=>e(rt)(e(z),Bt),"is-selected-mutil-files":e(b).length>1,"enable-change-indicator":e(ce),"seed-change-checked":e(be),"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(y(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(ye)},null,8,["file","idx","onContextMenuClick"])):J("",!0),i(Za,{"file-num":e(z).length,"selected-file-num":e(b).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const Tn=mt(mn,[["__scopeId","data-v-317d328e"]]);export{Tn as default}; diff --git a/vue/dist/assets/useGenInfoDiff-bfe60e2e.js b/vue/dist/assets/useGenInfoDiff-0d82f93a.js similarity index 91% rename from vue/dist/assets/useGenInfoDiff-bfe60e2e.js rename to vue/dist/assets/useGenInfoDiff-0d82f93a.js index 12e70d8..9a2ae16 100644 --- a/vue/dist/assets/useGenInfoDiff-bfe60e2e.js +++ b/vue/dist/assets/useGenInfoDiff-0d82f93a.js @@ -1 +1 @@ -import{u as G,g as d}from"./FileItem-2b09179d.js";import{r as b,t as j,ct as m,cu as y,cv as D}from"./index-64cbe4df.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-032f0ab0.js";import{r as b,t as j,ct as m,cu as y,cv as D}from"./index-043a7b26.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 1bd44f7..4b63f88 100644 --- a/vue/dist/index.html +++ b/vue/dist/index.html @@ -7,7 +7,7 @@ Infinite Image Browsing - + diff --git a/vue/src/page/TopicSearch/TopicSearch.vue b/vue/src/page/TopicSearch/TopicSearch.vue index 3e04117..554f568 100644 --- a/vue/src/page/TopicSearch/TopicSearch.vue +++ b/vue/src/page/TopicSearch/TopicSearch.vue @@ -497,7 +497,7 @@ watch( -
@@ -513,10 +513,10 @@ watch( > ^ -
+ --> -
@@ -524,7 +524,7 @@ watch( v -
+ -->