PageSourceSearch

https://keonhacai8.art/wp-content/plugins/wp-sport-advanced/assets/dist/assets/main-Dx4_sGQs.js

js keonhacai8.art collected 2026-10-04 03:58:27 UTC 635,093 bytes, 95 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./MatchDetailPage-Dja0EwLr.js","./_plugin-vue_export-helper-C8YFU58O.js","./YellowCard-Cda6EIdC.js","./useLeagueStandings-C4ZOQiOW.js","./index-C-Xze8eA.js","./MatchDetailPage-BBSwOyCJ.css","./LeaguePage-DdEfn0Zz.js","./useLeagueInfo-CxVSmRFw.js","./useLeagueSchedule-BTKrtNi1.js","./fetchLeagueScheduleOdds-8V7aX_01.js","./client-D-piEjCZ.js","./useLeagueOddsSchedule-V_37jMbu.js","./Odd1x2-DHUzoTph.js","./Odd1x2-ByUKkIhM.css","./convertGoal-DkJG4FMn.js","./chevron-right-CwDNr7nP.js","./LeaguePage-CMiXGOrP.css","./LeagueListPage-DrQg-oeR.js","./LeagueListPage-DvNdCchi.css","./TeamPage-DTXkNhJ9.js","./TeamPage-BE3x9NyL.css","./PlayerPage-BjtH9aMK.js","./PlayerPage-BAOAr7WB.css","./SixInOnePage-DSpiTVQW.js","./SixInOnePage-DB1ppsRh.css","./LiveSliderPage-BLtclb-3.js","./LiveSliderPage-BXNre2Hn.css","./LivescoreBongdakoPage-1qflMh0z.js","./LivescoreBongdakoPage-SDArwWlc.css","./HotPickLeaguePage-CBeLBZX0.js","./HotPickCarousel-CeZg3Upq.js","./HotPickCarousel-BJ5RyzcP.css","./HotPickScheduleSection-Y2m_Zknj.js","./HotPickScheduleSection-BX-Y0yzD.css","./HotPickStandingsSection-f-P7KeXQ.js","./HotPickStandingsSection-BItTZKLY.css","./HotPickResultsSection-kJpya0f4.js","./HotPickResultsSection-DEdN2kNm.css","./HotPickLeaguePage-SoYvTmuS.css","./HotPickCarouselPage-C74EZb-L.js","./HotPickCarouselPage-CIedrQ19.css","./HotPickSchedulePage-Bin0zWs2.js","./HotPickSchedulePage-CwPhcZST.css","./HotPickStandingsPage-0FSQQj9M.js","./HotPickStandingsPage-lpF_uPFi.css","./HotPickResultsPage-BenFAt0S.js","./HotPickResultsPage-CYLxGcmh.css","./HotMatchesPage-D8Vm3
11Za.js","./HotMatchesPage-DHf_CFMI.css","./BxhFifaPage-87_cxSPc.js","./BxhFifaPage-amz5_URm.css"])))=>i.map(i=>d[i]);
2var dC=Object.defineProperty;var Dg=t=>{throw TypeError(t)};var pC=(t,e,r)=>e in t?dC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Tg=(t,e,r)=>pC(t,typeof e!="symbol"?e+"":e,r),bf=(t,e,r)=>e.has(t)||Dg("Cannot "+r);var E=(t,e,r)=>(bf(t,e,"read from private field"),r?r.call(t):e.get(t)),oe=(t,e,r)=>e.has(t)?Dg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),re=(t,e,r,n)=>(bf(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Pe=(t,e,r)=>(bf(t,e,"access private method"),r);var Bu=(t,e,r,n)=>({set _(a){re(t,e,a,r)},get _(){return E(t,e,n)}});import{i as $r,u as k,h as V_,a as yr,r as se,n as En,c as $,s as Pl,b as Qo,w as Be,o as G_,d as gC,e as yC,t as Fc,f as j_,m as q_,g as K_,j as mC,k as _C,l as da,p as ze,q as rv,v as Nc,x as Da,y as wC,z as Ro,A as bC,B as Xo,T as SC,C as Mn,D as G,E as me,F as B,G as Mu,H as ge,I as Ns,J as nv,K as Ce,L as Ta,M as nt,N as be,O as at,P as Se,Q as Ol,R as Pu,S as H,U as ce,V as Q_,W as pa,X as Ud,Y as In,Z as po,_ as Cg,$ as zd,a0 as DC,a1 as Wd,a2 as TC,a3 as Ai,a4 as CC,a5 as MC,a6 as PC}from"./_plugin-vue_export-helper-C8YFU58O.js";const OC="modulepreload",AC=function(t,e){return new URL(t,e).href},Mg={},_t=function(e,r,n){let a=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),u=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.allSettled(r.map(l=>{if(l=AC(l,n),l in Mg)return;Mg[l]=!0;const c=l.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!n)for(let d=o.length-1;d>=0;d--){const y=o[d];if(y.href===l&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${f}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":OC,c||(h.as="script"),h.crossOrigin="",h.href=l,u&&h.setAttribute("nonce",u),document.head.appendChild(h),c)return new Promise((d,y)=>{h.addEventListener("load",d),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return a.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return e().catch(i)})};var Ou=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},EC={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},aa,Hd,I_,IC=(I_=class{constructor(){oe(this,aa,EC);oe(this,Hd,!1)}setTimeoutProvider(t){re(this,aa,t)}setTimeout(t,e){return E(this,aa).setTimeout(t,e)}clearTimeout(t){E(this,aa).clearTimeout(t)}setInterval(t,e){return E(this,aa).setInterval(t,e)}clearInterval(t){E(this,aa).clearInterval(t)}},aa=new WeakMap,Hd=new WeakMap,I_),ni=new IC;function LC(t){setTimeout(t,0)}var Ci=typeof window>"u"||"Deno"in globalThis;function cr(){}function xC(t,e){return typeof t=="function"?t(e):t}function av(t){return typeof t=="number"&&t>=0&&t!==1/0}function X_(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ga(t,e){return typeof t=="function"?t(e):t}function hr(t,e){return typeof t=="function"?t(e):t}function Pg(t,e){const{type:r="all",exact:n,fetchStatus:a,predicate:i,queryKey:o,stale:s}=t;if(o){if(n){if(e.queryHash!==Vd(o,e.options))return!1}else if(!au(e.queryKey,o))return!1}if(r!=="all"){const u=e.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||a&&a!==e.state.fetchStatus||i&&!i(e))}function Og(t,e){const{exact:r,status:n,predicate:a,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(r){if(nu(e.options.mutationKey)!==nu(i))return!1}else if(!au(e.options.mutationKey,i))return!1}return!(n&&e.state.status!==n||a&&!a(e))}function Vd(t,e){return((e==null?void 0:e.queryKeyHashFn)||nu)(t)}function nu(t){return JSON.stringify(t,(e,r)=>ov(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function au(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>au(t[r],e[r])):!1}var $C=Object.prototype.hasOwnProperty;function Z_(t,e){if(t===e)return t;const r=Ag(t)&&Ag(e);if(!r&&!(ov(t)&&ov(e)))return e;const a=(r?t:Object.keys(t)).length,i=r?e:Object.keys(e),o=i.length,s=r?new Array(o):{};let u=0;for(let l=0;l<o;l++){const c=r?l:i[l],f=t[c],v=e[c];if(f===v){s[c]=f,(r?l<a:$C.call(t,c))&&u++;continue}if(f===null||v===null||typeof f!="object"||typeof v!="object"){s[c]=v;continue}const h=Z_(f,v);s[c]=h,h===f&&u++}return a===o&&u===a?t:s}function iv(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}function Ag(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function ov(t){if(!Eg(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!Eg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Eg(t){return Object.prototype.toString.call(t)==="[object Object]"}function kC(t){return new Promise(e=>{ni.setTimeout(e,t)})}function sv(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?Z_(t,e):e}function RC(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function FC(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var Gd=Symbol();function J_(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Gd?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Ig(t,e){return typeof t=="function"?t(...e):!!t}function NC(t,e,r){let n=!1,a;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(a??(a=e()),n||(n=!0,a.aborted?r():a.addEventListener("abort",r,{once:!0})),a)}),t}var ui,ia,To,L_,YC=(L_=class extends Ou{constructor(){super();oe(this,ui);oe(this,ia);oe(this,To);re(this,To,e=>{if(!Ci&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){E(this,ia)||this.setEventListener(E(this,To))}onUnsubscribe(){var e;this.hasListeners()||((e=E(this,ia))==null||e.call(this),re(this,ia,void 0))}setEventListener(e){var r;re(this,To,e),(r=E(this,ia))==null||r.call(this),re(this,ia,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){E(this,ui)!==e&&(re(this,ui,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,678 bytes, line 2
2this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof E(this,ui)=="boolean"?E(this,ui):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},ui=new WeakMap,ia=new WeakMap,To=new WeakMap,L_),jd=new YC;function uv(){let t,e;const r=new Promise((a,i)=>{t=a,e=i});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),t(a)},r.reject=a=>{n({status:"rejected",reason:a}),e(a)},r}var BC=LC;function HC(){let t=[],e=0,r=s=>{s()},n=s=>{s()},a=BC;const i=s=>{e?t.push(s):a(()=>{r(s)})},o=()=>{const s=t;t=[],s.length&&a(()=>{n(()=>{s.forEach(u=>{r(u)})})})};return{batch:s=>{let u;e++;try{u=s()}finally{e--,e||o()}return u},batchCalls:s=>(...u)=>{i(()=>{s(...u)})},schedule:i,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{a=s}}}var Dt=HC(),Co,oa,Mo,x_,UC=(x_=class extends Ou{constructor(){super();oe(this,Co,!0);oe(this,oa);oe(this,Mo);re(this,Mo,e=>{if(!Ci&&window.addEventListener){const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){E(this,oa)||this.setEventListener(E(this,Mo))}onUnsubscribe(){var e;this.hasListeners()||((e=E(this,oa))==null||e.call(this),re(this,oa,void 0))}setEventListener(e){var r;re(this,Mo,e),(r=E(this,oa))==null||r.call(this),re(this,oa,e(this.setOnline.bind(this)))}setOnline(e){E(this,Co)!==e&&(re(this,Co,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return E(this,Co)}},Co=new WeakMap,oa=new WeakMap,Mo=new WeakMap,x_),Jl=new UC;function zC(t){return Math.min(1e3*2**t,3e4)}function ew(t){return(t??"online")==="online"?Jl.isOnline():!0}var lv=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function tw(t){let e=!1,r=0,n;const a=uv(),i=()=>a.status!=="pending",o=y=>{var g;if(!i()){const p=new lv(y);v(p),(g=t.onCancel)==null||g.call(t,p)}},s=()=>{e=!0},u=()=>{e=!1},l=()=>jd.isFocused()&&(t.networkMode==="always"||Jl.isOnline())&&t.canRun(),c=()=>ew(t.networkMode)&&t.canRun(),f=y=>{i()||(n==null||n(),a.resolve(y))},v=y=>{i()||(n==null||n(),a.reject(y))},h=()=>new Promise(y=>{var g;n=p=>{(i()||l())&&y(p)},(g=t.onPause)==null||g.call(t)}).then(()=>{var y;n=void 0,i()||(y=t.onContinue)==null||y.call(t)}),d=()=>{if(i())return;let y;const g=r===0?t.initialPromise:void 0;try{y=g??t.fn()}catch(p){y=Promise.reject(p)}Promise.resolve(y).then(f).catch(p=>{var S;if(i())return;const m=t.retry??(Ci?0:3),_=t.retryDelay??zC,w=typeof _=="function"?_(r,p):_,b=m===!0||typeof m=="number"&&r<m||typeof m=="function"&&m(r,p);if(e||!b){v(p);return}r++,(S=t.onFail)==null||S.call(t,r,p),kC(w).then(()=>l()?void 0:h()).then(()=>{e?v(p):d()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(n==null||n(),a),cancelRetry:s,continueRetry:u,canStart:c,start:()=>(c()?d():h().then(d),a)}}var li,$_,rw=($_=class{constructor(){oe(this,li)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),av(this.gcTime)&&re(this,li,ni.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ci?1/0:5*60*1e3))}clearGcTimeout(){E(this,li)&&(ni.clearTimeout(E(this,li)),re(this,li,void 0))}},li=new WeakMap,$_),ci,Po,lr,fi,pt,bu,hi,Ir,Dn,k_,WC=(k_=class extends rw{constructor(e){super();oe(this,Ir);oe(this,ci);oe(this,Po);oe(this,lr);oe(this,fi);oe(this,pt);oe(this,bu);oe(this,hi);re(this,hi,!1),re(this,bu,e.defaultOptions),this.setOptions(e.options),this.observers=[],re(this,fi,e.client),re(this,lr,E(this,fi).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,re(this,ci,xg(this.options)),this.state=e.state??E(this,ci),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=E(this,pt))==null?void 0:e.promise}setOptions(e){if(this.options={...E(this,bu),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=xg(this.options);r.data!==void 0&&(this.setState(Lg(r.data,r.dataUpdatedAt)),re(this,ci,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,lr).remove(this)}setData(e,r){const n=sv(this.state.data,e,this.options);return Pe(this,Ir,Dn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){Pe(this,Ir,Dn).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var n,a;const r=(n=E(this,pt))==null?void 0:n.promise;return(a=E(this,pt))==null||a.cancel(e),r?r.then(cr).catch(cr):Prom
2ise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,ci))}isActive(){return this.observers.some(e=>hr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ga(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!X_(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=E(this,pt))==null||r.continue()}onOnline(){var r;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=E(this,pt))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),E(this,lr).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(E(this,pt)&&(E(this,hi)?E(this,pt).cancel({revert:!0}):E(this,pt).cancelRetry()),this.scheduleGc()),E(this,lr).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,Ir,Dn).call(this,{type:"invalidate"})}async fetch(e,r){var u,l,c,f,v,h,d,y,g,p,m,_;if(this.state.fetchStatus!=="idle"&&((u=E(this,pt))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(E(this,pt))return E(this,pt).continueRetry(),E(this,pt).promise}if(e&&this.setOptions(e),!this.options.queryFn){const w=this.observers.find(b=>b.options.queryFn);w&&this.setOptions(w.options)}const n=new AbortController,a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(re(this,hi,!0),n.signal)})},i=()=>{const w=J_(this.options,r),S=(()=>{const O={client:E(this,fi),queryKey:this.queryKey,meta:this.meta};return a(O),O})();return re(this,hi,!1),this.options.persister?this.options.persister(w,S,this):w(S)},s=(()=>{const w={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:E(this,fi),state:this.state,fetchFn:i};return a(w),w})();(l=this.options.behavior)==null||l.onFetch(s,this),re(this,Po,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=s.fetchOptions)==null?void 0:c.meta))&&Pe(this,Ir,Dn).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta}),re(this,pt,tw({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,onCancel:w=>{w instanceof lv&&w.revert&&this.setState({...E(this,Po),fetchStatus:"idle"}),n.abort()},onFail:(w,b)=>{Pe(this,Ir,Dn).call(this,{type:"failed",failureCount:w,error:b})},onPause:()=>{Pe(this,Ir,Dn).call(this,{type:"pause"})},onContinue:()=>{Pe(this,Ir,Dn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const w=await E(this,pt).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(h=(v=E(this,lr).config).onSuccess)==null||h.call(v,w,this),(y=(d=E(this,lr).config).onSettled)==null||y.call(d,w,this.state.error,this),w}catch(w){if(w instanceof lv){if(w.silent)return E(this,pt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw Pe(this,Ir,Dn).call(this,{type:"error",error:w}),(p=(g=E(this,lr).config).onError)==null||p.call(g,w,this),(_=(m=E(this,lr).config).onSettled)==null||_.call(m,this.state.data,w,this),w}finally{this.scheduleGc()}}},ci=new WeakMap,Po=new WeakMap,lr=new WeakMap,fi=new WeakMap,pt=new WeakMap,bu=new WeakMap,hi=new WeakMap,Ir=new WeakSet,Dn=function(e){const r=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...nw(n.data,this.options),fetchMeta:e.meta??null};case"success":const a={...n,...Lg(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return re(this,Po,e.manual?a:void 0),a;case"error":const i=e.error;
vendor: 10,442 bytes, line 2
2return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),Dt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),E(this,lr).notify({query:this,type:"updated",action:e})})},k_);function nw(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ew(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Lg(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xg(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ut,Oe,Su,Et,vi,Oo,Pn,sa,Du,Ao,Eo,di,pi,ua,Io,xe,Es,cv,fv,hv,vv,dv,pv,gv,aw,R_,VC=(R_=class extends Ou{constructor(e,r){super();oe(this,xe);oe(this,Ut);oe(this,Oe);oe(this,Su);oe(this,Et);oe(this,vi);oe(this,Oo);oe(this,Pn);oe(this,sa);oe(this,Du);oe(this,Ao);oe(this,Eo);oe(this,di);oe(this,pi);oe(this,ua);oe(this,Io,new Set);this.options=r,re(this,Ut,e),re(this,sa,null),re(this,Pn,uv()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,Oe).addObserver(this),$g(E(this,Oe),this.options)?Pe(this,xe,Es).call(this):this.updateResult(),Pe(this,xe,vv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yv(E(this,Oe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yv(E(this,Oe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Pe(this,xe,dv).call(this),Pe(this,xe,pv).call(this),E(this,Oe).removeObserver(this)}setOptions(e){const r=this.options,n=E(this,Oe);if(this.options=E(this,Ut).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof hr(this.options.enabled,E(this,Oe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Pe(this,xe,gv).call(this),E(this,Oe).setOptions(this.options),r._defaulted&&!iv(this.options,r)&&E(this,Ut).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,Oe),observer:this});const a=this.hasListeners();a&&kg(E(this,Oe),n,this.options,r)&&Pe(this,xe,Es).call(this),this.updateResult(),a&&(E(this,Oe)!==n||hr(this.options.enabled,E(this,Oe))!==hr(r.enabled,E(this,Oe))||ga(this.options.staleTime,E(this,Oe))!==ga(r.staleTime,E(this,Oe)))&&Pe(this,xe,cv).call(this);const i=Pe(this,xe,fv).call(this);a&&(E(this,Oe)!==n||hr(this.options.enabled,E(this,Oe))!==hr(r.enabled,E(this,Oe))||i!==E(this,ua))&&Pe(this,xe,hv).call(this,i)}getOptimisticResult(e){const r=E(this,Ut).getQueryCache().build(E(this,Ut),e),n=this.createResult(r,e);return jC(this,n)&&(re(this,Et,n),re(this,Oo,this.options),re(this,vi,E(this,Oe).state)),n}getCurrentResult(){return E(this,Et)}trackResult(e,r){return new Proxy(e,{get:(n,a)=>(this.trackProp(a),r==null||r(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,Pn).status==="pending"&&E(this,Pn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(e){E(this,Io).add(e)}getCurrentQuery(){return E(this,Oe)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=E(this,Ut).defaultQueryOptions(e),n=E(this,Ut).getQueryCache().build(E(this,Ut),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(e){return Pe(this,xe,Es).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,Et)))}createResult(e,r){var M;const n=E(this,Oe),a=this.options,i=E(this,Et),o=E(this,vi),s=E(this,Oo),l=e!==n?e.state:E(this,Su),{state:c}=e;let f={...c},v=!1,h;if(r._optimisticResults){const D=this.hasListeners(),P=!D&&$g(e,r),L=D&&kg(e,n,r,a);(P||L)&&(f={...f,...nw(c.data,e.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:d,errorUpdatedAt:y,status:g}=f;h=f.data;let p=!1;if(r.placeholderData!==void 0&&h===void 0&&g==="pending"){let D;i!=null&&i.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(D=i.data,p=!0):D=typeof r.placeholderData=="function"?r.placeholderData((M=E(this,Eo))==null?void 0:M.state.data,E(this,Eo)):r.placeholderData,D!==void 0&&(g="success",h=sv(i==null?void 0:i.data,D,r),v=!0)}if(r.select&&h!==void 0&&!p)if(i&&h===(o==null?void 0:o.data)&&r.select===E(this,Du))h=E(this,Ao);else try{re(this,Du,r.select),h=r.select(h),h=sv(i==null?void 0:i.data,h,r),re(this,Ao,h),re(this,sa,null)}catch(D){re(this,sa,D)}E(this,sa)&&(d=E(this,sa),h=E(this,Ao),y=Date.now(),g="error");const m=f.fetchStatus==="fetching",_=g==="pending",w=g==="error",b=_&&m,S=h!==void 0,T={status:g,fetchStatus:f.fetchStatus,isPending:_,isSuccess:g==="success",isError:w,isInitialLoading:b,isLoading:b,data:h,dataUpdatedAt:f.dataUpdatedAt,error:d,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&!_,isLoadingError:w&&!S,isPaused:f.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:w&&S,isStale:qd(e,r),refetch:this.refetch,promise:E(this,Pn),isEnabled:hr(r.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const D=R=>{T.status==="error"?R.reject(T.error):T.data!==void 0&&R.resolve(T.data)},P=()=>{const R=re(this,Pn,T.promise=uv());D(R)},L=E(this,Pn);switch(L.status){case"pending":e.queryHash===n.queryHash&&D(L);break;case"fulfilled":(T.status==="error"||T.data!==L.value)&&P();break;case"rejected":(T.status!=="error"||T.error!==L.reason)&&P();break}}return T}updateResult(){const e=E(this,Et),r=this.createResult(E(this,Oe),this.options);if(re(this,vi,E(this,Oe).state),re(this,Oo,this.options),E(this,vi).data!==void 0&&re(this,Eo,E(this,Oe)),iv(r,e))return;re(this,Et,r);const n=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!E(this,Io).size)return!0;const o=new Set(i??E(this,Io));return this.options.throwOnError&&o.add("error"),Object.keys(E(this,Et)).some(s=>{const u=s;return E(this,Et)[u]!==e[u]&&o.has(u)})};Pe(this,xe,aw).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Pe(this,xe,vv).call(this)}},Ut=new WeakMap,Oe=new WeakMap,Su=new WeakMap,Et=new WeakMap,vi=new WeakMap,Oo=new WeakMap,Pn=new WeakMap,sa=new WeakMap,Du=new WeakMap,Ao=new WeakMap,Eo=new WeakMap,di=new WeakMap,pi=new WeakMap,ua=new WeakMap,Io=new WeakMap,xe=new WeakSet,Es=function(e){Pe(this,xe,gv).call(this);let r=E(this,Oe).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(cr)),r},cv=function(){Pe(this,xe,dv).call(this);const e=ga(this.options.staleTime,E(this,Oe));if(Ci||E(this,Et).isStale||!av(e))return;const n=X_(E(this,Et).dataUpdatedAt,e)+1;re(this,di,ni.setTimeout(()=>{E(this,Et).isStale||this.updateResult()},n))},fv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,Oe)):this.options.refetchInterval)??!1},hv=function(e){Pe(this,xe,pv).call(this),re(this,ua,e),!(Ci||hr(this.options.enabled,E(this,Oe))===!1||!av(E(this,ua))||E(this,ua)===0)&&re(this,pi,ni.setInterval(()=>{(this.options.refetchIntervalInBackground||jd.isFocused())&&Pe(this,xe,Es).call(this)},E(this,ua)))},vv=function(){Pe(this,xe,cv).call(this),Pe(this,xe,hv).call(this,Pe(this,xe,fv).call(this))},dv=function(){E(this,di)&&(ni.clearTimeout(E(this,di)),re(this,di,void 0))},pv=function(){E(this,pi)&&(ni.clearInterval(E(this,pi)),re(this,pi,void 0))},gv=function(){const e=E(this,Ut).getQueryCache().build(E(this,Ut),this.options);if(e===E(this,Oe))return;const r=E(this,Oe);re(this,Oe,e),re(this,Su,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},aw=function(e){Dt.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(E(this,Et))}),E(this,Ut).getQueryCache().notify({query:E(this,Oe),type:"observerResultsUpdated"})})},R_);function GC(t,e){return hr(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function $g(t,e){return GC(t,e)||t.state.data!==void 0&&yv(t,e,e.refetchOnMount)}function yv(t,e,r){if(hr(e.enabled,t)!==!1&&ga(e.staleTime,t)!=="static"){const n=typeof r=="function"?r(t):r;return n==="always"||n!==!1&&qd(t,e)}return!1}function kg(t,e,r,n){return(t!==e||hr(n.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&qd(t,r)}function qd(t,e){return hr(e.enabled,t)!==!1&&t.isStaleByTime(ga(e.staleTime,t))}function jC(t,e){return!iv(t.getCurrentResult(),e)}function Rg(t){return{onFetch:(e,r)=>{var c,f,v,h,d;const n=e.options,a=(v=(f=(c=e.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:v.direction,i=((h=e.state.data)==null?void 0:h.pages)||[],o=((d=e.state.data)==null?void 0:d.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const l=async()=>{let y=!1;const g=_=>{NC(_,()=>e.signal,()=>y=!0)},p=J_(e.options,e.fetchOptions),m=async(_,w,b)=>{if(y)return Promise.reject();if(w==null&&_.pages.length)return Promise.resolve(_);const O=(()=>{const P={client:e.client,queryKey:e.queryKey,pageParam:w,direction:b?"backward":"forward",meta:e.options.meta};return g(P),P})(),T=await p(O),{maxPages:M}=e.options,D=b?FC:RC;return{pages:D(_.pages,T,M),pageParams:D(_.pageParams,w,M)}};if(a&&i.length){const _=a==="backward",w=_?qC:Fg,b={pages:i,pageParams:o},S=w(n,b);s=await m(b,S,_)}else{const _=t??i.length;do{const w=u===0?o[0]??n.initialPageParam:Fg(n,s);if(u>0&&w==null)break;s=await m(s,w),u++}while(u<_)}return s};e.options.persister?e.fetchFn=()=>{var y,g;return(g=(y=e.options).persister)==null?void 0:g.call(y,l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=l}}}function Fg(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>
vendor: 5,178 bytes, line 2
20?t.getNextPageParam(e[n],e,r[n],r):void 0}function qC(t,{pages:e,pageParams:r}){var n;return e.length>0?(n=t.getPreviousPageParam)==null?void 0:n.call(t,e[0],e,r[0],r):void 0}var Tu,Qr,It,gi,Xr,Zn,F_,KC=(F_=class extends rw{constructor(e){super();oe(this,Xr);oe(this,Tu);oe(this,Qr);oe(this,It);oe(this,gi);re(this,Tu,e.client),this.mutationId=e.mutationId,re(this,It,e.mutationCache),re(this,Qr,[]),this.state=e.state||QC(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){E(this,Qr).includes(e)||(E(this,Qr).push(e),this.clearGcTimeout(),E(this,It).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){re(this,Qr,E(this,Qr).filter(r=>r!==e)),this.scheduleGc(),E(this,It).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){E(this,Qr).length||(this.state.status==="pending"?this.scheduleGc():E(this,It).remove(this))}continue(){var e;return((e=E(this,gi))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,s,u,l,c,f,v,h,d,y,g,p,m,_,w,b,S,O,T,M;const r=()=>{Pe(this,Xr,Zn).call(this,{type:"continue"})},n={client:E(this,Tu),meta:this.options.meta,mutationKey:this.options.mutationKey};re(this,gi,tw({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(D,P)=>{Pe(this,Xr,Zn).call(this,{type:"failed",failureCount:D,error:P})},onPause:()=>{Pe(this,Xr,Zn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,It).canRun(this)}));const a=this.state.status==="pending",i=!E(this,gi).canStart();try{if(a)r();else{Pe(this,Xr,Zn).call(this,{type:"pending",variables:e,isPaused:i}),await((s=(o=E(this,It).config).onMutate)==null?void 0:s.call(o,e,this,n));const P=await((l=(u=this.options).onMutate)==null?void 0:l.call(u,e,n));P!==this.state.context&&Pe(this,Xr,Zn).call(this,{type:"pending",context:P,variables:e,isPaused:i})}const D=await E(this,gi).start();return await((f=(c=E(this,It).config).onSuccess)==null?void 0:f.call(c,D,e,this.state.context,this,n)),await((h=(v=this.options).onSuccess)==null?void 0:h.call(v,D,e,this.state.context,n)),await((y=(d=E(this,It).config).onSettled)==null?void 0:y.call(d,D,null,this.state.variables,this.state.context,this,n)),await((p=(g=this.options).onSettled)==null?void 0:p.call(g,D,null,e,this.state.context,n)),Pe(this,Xr,Zn).call(this,{type:"success",data:D}),D}catch(D){try{await((_=(m=E(this,It).config).onError)==null?void 0:_.call(m,D,e,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((b=(w=this.options).onError)==null?void 0:b.call(w,D,e,this.state.context,n))}catch(P){Promise.reject(P)}try{await((O=(S=E(this,It).config).onSettled)==null?void 0:O.call(S,void 0,D,this.state.variables,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((M=(T=this.options).onSettled)==null?void 0:M.call(T,void 0,D,e,this.state.context,n))}catch(P){Promise.reject(P)}throw Pe(this,Xr,Zn).call(this,{type:"error",error:D}),D}finally{E(this,It).runNext(this)}}},Tu=new WeakMap,Qr=new WeakMap,It=new WeakMap,gi=new WeakMap,Xr=new WeakSet,Zn=function(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Dt.batch(()=>{E(this,Qr).forEach(n=>{n.onMutationUpdate(e)}),E(this,It).notify({mutation:this,type:"updated",action:e})})},F_);function QC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var On,Lr,Cu,N_,iw=(N_=class extends Ou{constructor(r={}){super();oe(this,On);oe(this,Lr);oe(this,Cu);this.config=r,re(this,On,new Set),re(this,Lr,new Map),re(this,Cu,0)}build(r,n,a){const i=new KC({client:r,mutationCache:this,mutationId:++Bu(this,Cu)._,options:r.defaultMutationOptions(n),state:a});return this.add(i),i}add(r){E(this,On).add(r);const n=Hu(r);if(typeof n=="string"){const a=E(this,Lr).get(n);a?a.push(r):E(this,Lr).set(n,[r])}this.notify({type:"added",mutation:r})}remove(r){if(E(this,On).delete(r)){const n=Hu(r);if(typeof n=="string"){const a=E(this,Lr).get(n);if(a)if(a.length>1){const i=a.indexOf(r);i!==-1&&a.splice(i,1)}else a[0]===r&&E(this,Lr).delete(n)}}this.notify({type:"removed",mutation:r})}canRun(r){const n=Hu(r);if(typeof n=="string"){const a=E(this,Lr).get(n),i=a==null?void 0:a.find(o=>o.state.status==="pending");return!i||i===r}else return!0}runNext(r){var a;const n=Hu(r);if(typeof n=="string"){const i=(a=E(this,Lr).get(n))==null?void 0:a.find(o=>
vendor: 4,646 bytes, line 2
2o!==r&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Dt.batch(()=>{E(this,On).forEach(r=>{this.notify({type:"removed",mutation:r})}),E(this,On).clear(),E(this,Lr).clear()})}getAll(){return Array.from(E(this,On))}find(r){const n={exact:!0,...r};return this.getAll().find(a=>Og(n,a))}findAll(r={}){return this.getAll().filter(n=>Og(r,n))}notify(r){Dt.batch(()=>{this.listeners.forEach(n=>{n(r)})})}resumePausedMutations(){const r=this.getAll().filter(n=>n.state.isPaused);return Dt.batch(()=>Promise.all(r.map(n=>n.continue().catch(cr))))}},On=new WeakMap,Lr=new WeakMap,Cu=new WeakMap,N_);function Hu(t){var e;return(e=t.options.scope)==null?void 0:e.id}var Zr,Y_,ow=(Y_=class extends Ou{constructor(r={}){super();oe(this,Zr);this.config=r,re(this,Zr,new Map)}build(r,n,a){const i=n.queryKey,o=n.queryHash??Vd(i,n);let s=this.get(o);return s||(s=new WC({client:r,queryKey:i,queryHash:o,options:r.defaultQueryOptions(n),state:a,defaultOptions:r.getQueryDefaults(i)}),this.add(s)),s}add(r){E(this,Zr).has(r.queryHash)||(E(this,Zr).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const n=E(this,Zr).get(r.queryHash);n&&(r.destroy(),n===r&&E(this,Zr).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Dt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return E(this,Zr).get(r)}getAll(){return[...E(this,Zr).values()]}find(r){const n={exact:!0,...r};return this.getAll().find(a=>Pg(n,a))}findAll(r={}){const n=this.getAll();return Object.keys(r).length>0?n.filter(a=>Pg(r,a)):n}notify(r){Dt.batch(()=>{this.listeners.forEach(n=>{n(r)})})}onFocus(){Dt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Dt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Zr=new WeakMap,Y_),et,la,ca,Lo,xo,fa,$o,ko,B_,XC=(B_=class{constructor(e={}){oe(this,et);oe(this,la);oe(this,ca);oe(this,Lo);oe(this,xo);oe(this,fa);oe(this,$o);oe(this,ko);re(this,et,e.queryCache||new ow),re(this,la,e.mutationCache||new iw),re(this,ca,e.defaultOptions||{}),re(this,Lo,new Map),re(this,xo,new Map),re(this,fa,0)}mount(){Bu(this,fa)._++,E(this,fa)===1&&(re(this,$o,jd.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,et).onFocus())})),re(this,ko,Jl.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,et).onOnline())})))}unmount(){var e,r;Bu(this,fa)._--,E(this,fa)===0&&((e=E(this,$o))==null||e.call(this),re(this,$o,void 0),(r=E(this,ko))==null||r.call(this),re(this,ko,void 0))}isFetching(e){return E(this,et).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,la).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const r=this.defaultQueryOptions({queryKey:e});return(n=E(this,et).get(r.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const r=this.defaultQueryOptions(e),n=E(this,et).build(this,r),a=n.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ga(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(a))}getQueriesData(e){return E(this,et).findAll(e).map(({queryKey:r,state:n})=>{const a=n.data;return[r,a]})}setQueryData(e,r,n){const a=this.defaultQueryOptions({queryKey:e}),i=E(this,et).get(a.queryHash),o=i==null?void 0:i.state.data,s=xC(r,o);if(s!==void 0)return E(this,et).build(this,a).setData(s,{...n,manual:!0})}setQueriesData(e,r,n){return Dt.batch(()=>E(this,et).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,r,n)]))}getQueryState(e){var n;const r=this.defaultQueryOptions({queryKey:e});return(n=E(this,et).get(r.queryHash))==null?void 0:n.state}removeQueries(e){const r=E(this,et);Dt.batch(()=>{r.findAll(e).forEach(n=>{r.remove(n)})})}resetQueries(e,r){const n=E(this,et);return Dt.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},r)))}cancelQueries(e,r={}){const n={revert:!0,...r},a=Dt.batch(()=>E(this,et).findAll(e).map(i=>i.cancel(n)));return Promise.all(a).then(cr).catch(cr)}invalidateQueries(e,r={}){return Dt.batch(()=>(E(this,et).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},r)))}refetchQueries(e,r={}){const n={...r,cancelRefetch:r.cancelRefetch??!0},a=Dt.batch(()=>E(this,et).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(cr)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(a).then(cr)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const n=E(this,et).build(this,r);
2return n.isStaleByTime(ga(r.staleTime,n))?n.fetch(r):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(cr).catch(cr)}fetchInfiniteQuery(e){return e.behavior=Rg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(cr).catch(cr)}ensureInfiniteQueryData(e){return e.behavior=Rg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Jl.isOnline()?E(this,la).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,et)}getMutationCache(){return E(this,la)}getDefaultOptions(){return E(this,ca)}setDefaultOptions(e){re(this,ca,e)}setQueryDefaults(e,r){E(this,Lo).set(nu(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...E(this,Lo).values()],n={};return r.forEach(a=>{au(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,r){E(this,xo).set(nu(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...E(this,xo).values()],n={};return r.forEach(a=>{au(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const r={...E(this,ca).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=Vd(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Gd&&(r.enabled=!1),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,ca).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,et).clear(),E(this,la).clear()}},et=new WeakMap,la=new WeakMap,ca=new WeakMap,Lo=new WeakMap,xo=new WeakMap,fa=new WeakMap,$o=new WeakMap,ko=new WeakMap,B_),ZC="VUE_QUERY_CLIENT";function sw(t){const e=t?`:${t}`:"";return`${ZC}${e}`}function Ng(t,e){Object.keys(t).forEach(r=>{t[r]=e[r]})}function mv(t,e,r="",n=0){if(e){const a=e(t,r,n);if(a===void 0&&$r(t)||a!==void 0)return a}if(Array.isArray(t))return t.map((a,i)=>mv(a,e,String(i),n+1));if(typeof t=="object"&&eM(t)){const a=Object.entries(t).map(([i,o])=>[i,mv(o,e,i,n+1)]);return Object.fromEntries(a)}return t}function JC(t,e){return mv(t,e)}function we(t,e=!1){return JC(t,(r,n,a)=>{if(a===1&&n==="queryKey")return we(r,!0);if(e&&tM(r))return we(r(),e);if($r(r))return we(k(r),e)})}function eM(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function tM(t){return typeof t=="function"}function rM(t=""){if(!V_())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const e=sw(t),r=yr(e);if(!r)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return r}var nM=class extends ow{find(t){return super.find(we(t))}findAll(t={}){return super.findAll(we(t))}},aM=class extends iw{find(t){return super.find(we(t))}findAll(t={}){return super.findAll(we(t))}},uw=class extends XC{constructor(t={}){const e={defaultOptions:t.defaultOptions,queryCache:t.queryCache||new nM,mutationCache:t.mutationCache||new aM};super(e),this.isRestoring=se(!1)}isFetching(t={}){return super.isFetching(we(t))}isMutating(t={}){return super.isMutating(we(t))}getQueryData(t){return super.getQueryData(we(t))}ensureQueryData(t){return super.ensureQueryData(we(t))}getQueriesData(t){return super.getQueriesData(we(t))}setQueryData(t,e,r={}){return super.setQueryData(we(t),e,we(r))}setQueriesData(t,e,r={}){return super.setQueriesData(we(t),e,we(r))}getQueryState(t){return super.getQueryState(we(t))}removeQueries(t={}){return super.removeQueries(we(t))}resetQueries(t={},e={}){return super.resetQueries(we(t),we(e))}cancelQueries(t={},e={}){return super.cancelQueries(we(t),we(e))}invalidateQueries(t={},e={}){const r=we(t),n=we(e);if(super.invalidateQueries({...r,refetchType:"none"},n),r.refetchType==="none")return Promise.resolve();const a={...r,type:r.refetchType??r.type??"active"};return En().then(()=>super.refetchQueries(a,n))}refetchQueries(t={},e={}){return super.refetchQueries(we(t),we(e))}fetchQuery(t){return super.fetchQuery(we(t))}prefetchQuery(t){return super.prefetchQuery(we(t))}fetchInfiniteQuery(t){return super.fetchInfiniteQuery(we(t))}prefetchInfiniteQuery(t){return super.prefetchInfiniteQuery(we(t))}setDefaultOptions(t){super.setDefaultOptions(we(t))}setQueryDefaults(t,e){super.setQueryDefaults(we(t),we(e))}getQueryDefaults(t){return super.getQueryDefaults(we(t))}setMutationDefaults(t,e){super.setMutationDefaults(we(t),we(e))}getMutationDefaults(t){return super.getMutationDefaults(we(t))}},iM={install:(t,e={})=>{const r=sw(e.queryClientKey);let n;if("queryClient"in e&&e.queryClient)n=e.queryClient;else{const o="queryClientConfig"in e?e.queryClientConfig:void 0;n=new uw(o)}Ci||n.mount();let a=()=>{};if(e.clientPersister){n.isRestoring&&(n.isRestoring.value=!0);const[o,s]=e.clientPersister(n);a=o,s.then(()=>{var u;n.isRestoring&&(n.isRestoring.value=!1),(u=e.clientPersisterOnSuccess)==null||u.call(e,n)})}const i=()=>{n.unmount(),a()};if(t.onUnmount)t.onUnmount(i);else{const o=t.unmount;t.unmount=function(){i(),o()}}t.provide(r,n)}};function oM(t,e,r){const n=rM(),a=$(()=>{var g;let h=e;typeof h=="function"&&(h=h());const d=we(h);typeof d.enabled=="function"&&(d.enabled=d.enabled());const y=n.defaultQueryOptions(d);return y._optimisticResults=(g=n.isRestoring)!=null&&g.value?"isRestoring":"optimistic",y}),i=new t(n,a.value),o=a.value.shallow?Pl(i.getCurrentResult()):Qo(i.getCurrentResult());let s=()=>{};n.isRestoring&&Be(n.isRestoring,h=>{h||(s(),s=i.subscribe(d=>{Ng(o,d)}))},{immediate:!0});const u=()=>{i.setOptions(a.value),Ng(o,i.getCurrentResult())};Be(a,u),G_(()=>{s()});const l=(...h)=>(u(),o.refetch(...h)),c=()=>new Promise((h,d)=>{let y=()=>{};const g=()=>{if(a.value.enabled!==!1){i.setOptions(a.value);const p=i.getOptimisticResult(a.value);p.isStale?(y(),i.fetchOptimistic(a.value).then(h,m=>{Ig(a.value.throwOnError,[m,i.getCurrentQuery()])?d(m):h(i.getCurrentResult())})):(y(),h(p))}};g(),y=Be(a,g)});Be(()=>o.error,h=>{if(o.isError&&!o.isFetching&&Ig(a.value.throwOnError,[h,i.getCurrentQuery()]))throw h});const f=a.value.shallow?gC(o):yC(o),v=Fc(f);for(const h in o)typeof o[h]=="function"&&(v[h]=o[h]);return v.suspense=c,v.refetch=l,v}function so(t,e){return oM(VC,t)}const lw=new uw({defaultOptions:{queries:{staleTime:1e3*60,retry:1}}});var iu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}
vendor: 11,700 bytes, lines 2-6
2function sM(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var cw={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(iu,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",o="second",s="minute",u="hour",l="day",c="week",f="month",v="quarter",h="year",d="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var A=["th","st","nd","rd"],x=I%100;return"["+I+(A[(x-20)%10]||A[x]||A[0])+"]"}},_=function(I,A,x){var Y=String(I);return!Y||Y.length>=A?I:""+Array(A+1-Y.length).join(x)+I},w={s:_,z:function(I){var A=-I.utcOffset(),x=Math.abs(A),Y=Math.floor(x/60),U=x%60;return(A<=0?"+":"-")+_(Y,2,"0")+":"+_(U,2,"0")},m:function I(A,x){if(A.date()<x.date())return-I(x,A);var Y=12*(x.year()-A.year())+(x.month()-A.month()),U=A.clone().add(Y,f),q=x-U<0,N=A.clone().add(Y+(q?-1:1),f);return+(-(Y+(x-U)/(q?U-N:N-U))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:h,w:c,d:l,D:d,h:u,m:s,s:o,ms:i,Q:v}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},b="en",S={};S[b]=m;var O="$isDayjsObject",T=function(I){return I instanceof L||!(!I||!I[O])},M=function I(A,x,Y){var U;if(!A)return b;if(typeof A=="string"){var q=A.toLowerCase();S[q]&&(U=q),x&&(S[q]=x,U=q);var N=A.split("-");if(!U&&N.length>1)return I(N[0])}else{var Q=A.name;S[Q]=A,U=Q}return!Y&&U&&(b=U),U||!Y&&b},D=function(I,A){if(T(I))return I.clone();var x=typeof A=="object"?A:{};return x.date=I,x.args=arguments,new L(x)},P=w;P.l=M,P.i=T,P.w=function(I,A){return D(I,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var L=function(){function I(x){this.$L=M(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[O]=!0}var A=I.prototype;return A.parse=function(x){this.$d=function(Y){var U=Y.date,q=Y.utc;if(U===null)return new Date(NaN);if(P.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var N=U.match(g);if(N){var Q=N[2]-1||0,V=(N[7]||"0").substring(0,3);return q?new Date(Date.UTC(N[1],Q,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)):new Date(N[1],Q,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)}}return new Date(U)}(x),this.init()},A.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},A.$utils=function(){return P},A.isValid=function(){return this.$d.toString()!==y},A.isSame=function(x,Y){var U=D(x);return this.startOf(Y)<=U&&U<=this.endOf(Y)},A.isAfter=function(x,Y){return D(x)<this.startOf(Y)},A.isBefore=function(x,Y){return this.endOf(Y)<D(x)},A.$g=function(x,Y,U){return P.u(x)?this[Y]:this.set(U,x)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(x,Y){var U=this,q=!!P.u(Y)||Y,N=P.p(x),Q=function(_e,he){var te=P.w(U.$u?Date.UTC(U.$y,he,_e):new Date(U.$y,he,_e),U);return q?te:te.endOf(l)},V=function(_e,he){return P.w(U.toDate()[_e].apply(U.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(he)),U)},ne=this.$W,ee=this.$M,ue=this.$D,ye="set"+(this.$u?"UTC":"");switch(N){case h:return q?Q(1,0):Q(31,11);case f:return q?Q(1,ee):Q(0,ee+1);case c:var de=this.$locale().weekStart||0,Me=(ne<de?ne+7:ne)-de;return Q(q?ue-Me:ue+(6-Me),ee);case l:case d:return V(ye+"Hours",0);case u:return V(ye+"Minutes",1);case s:return V(ye+"Seconds",2);case o:return V(ye+"Milliseconds",3);default:return this.clone()}},A.endOf=function(x){return this.startOf(x,!1)},A.$set=function(x,Y){var U,q=P.p(x),N="set"+(this.$u?"UTC":""),Q=(U={},U[l]=N+"Date",U[d]=N+"Date",U[f]=N+"Month",U[h]=N+"FullYear",U[u]=N+"Hours",U[s]=N+"Minutes",U[o]=N+"Seconds",U[i]=N+"Milliseconds",U)[q],V=q===l?this.$D+(Y-this.$W):Y;if(q===f||q===h){var ne=this.clone().set(d,1);ne.$d[Q](V),ne.init(),this.$d=ne.set(d,Math.min(this.$D,ne.daysInMonth())).$d}else Q&&this.$d[Q](V);return this.init(),this},A.set=function(x,Y){return this.clone().$set(x,Y)},A.get=function(x){return this[P.p(x)]()},A.add=function(x,Y){var U,q=this;x=Number(x);var N=P.p(Y),Q=function(ee){var ue=D(q);return P.w(ue.date(ue.date()+Math.round(ee*x)),q)};if(N===f)return this.set(f,this.$M+x);if(N===h)return this.set(h,this.$y+x);if(N===l)return Q(1);if(N===c)return Q(7);var V=(U={},U[s]=n,U[u]=a,U[o]=r,U)[N]||1,ne=this.$d.getTime()+x*V;return P.w(ne,this)},A.subtract=function(x,Y){return this.add(-1*x,Y)},A.format=function(x){var Y=this,U=this.$locale();if(!this.isValid())return U.invalidDate||y;var q=x||"YYYY-MM-DDTHH:mm:ssZ",N=P.z(this),Q=this.$H,V=this.$m,ne=this.$M,ee=U.weekdays,ue=U.months,ye=U.meridiem,de=function(he,te,F,K){return he&&(he[te]||he(Y,q))||F[te].slice(0,K)},Me=function(he){return P.s(Q%12||12,he,"0")},_e=ye||function(he,te,F){var K=he<12?"AM":"PM";return F?K.toLowerCase():K};return q.replace(p,function(he,te){return te||function(F){switch(F){case"YY":return String(Y.$y).slice(-2);case"YYYY":return P.s(Y.$y,4,"0");case"M":return ne+1;case"MM":return P.s(ne+1,2,"0");case"MMM":return de(U.monthsShort,ne,ue,3);case"MMMM":return de(ue,ne);case"D":return Y.$D;case"DD":return P.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return de(U.weekdaysMin,Y.$W,ee,2);case"ddd":return de(U.weekdaysShort,Y.$W,ee,3);case"dddd":return ee[Y.$W];case"H":return String(Q);case"HH":return P.s(Q,2,"0");case"h":return Me(1);case"hh":return Me(2);case"a":return _e(Q,V,!0);case"A":return _e(Q,V,!1);case"m":return String(V);case"mm":return P.s(V,2,"0");case"s":return String(Y.$s);case"ss":return P.s(Y.$s,2,"0");case"SSS":return P.s(Y.$ms,3,"0");case"Z":return N}return null}(he)||N.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(x,Y,U){var q,N=this,Q=P.p(Y),V=D(x),ne=(V.utcOffset()-this.utcOffset())*n,ee=this-V,ue=function(){return P.m(N,V)};switch(Q){case h:q=ue()/12;break;case f:q=ue();break;case v:q=ue()/3;break;case c:q=(ee-ne)/6048e5;break;case l:q=(ee-ne)/864e5;break;case u:q=ee/a;break;case s:q=ee/n;break;case o:q=ee/r;break;default:q=ee}return U?q:P.a(q)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return S[this.$L]},A.locale=function(x,Y){if(!x)return this.$L;var U=this.clone(),q=M(x,Y,!0);return q&&(U.$L=q),U},A.clone=function(){return P.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},I}(),R=L.prototype;return D.prototype=R,[["$ms",i],["$s",o],["$m",s],["$H",u],["$W",l],["$M",f],["$y",h],["$D",d]].forEach(function(I){R[I[1]]=function(A){return this.$g(A,I[0],I[1])}}),D.extend=function(I,A){return I.$i||(I(A,L,D),I.$i=!0),D},D.locale=M,D.isDayjs=T,D.unix=function(I){return D(1e3*I)},D.en=S[b],D.Ls=S,D.p={},D})})(cw);var uM=cw.exports;const Ye=Kd(uM),Yc=[{label:"Vin88",value:2},{label:"Five88",value:2},{label:"Sky88",value:2},{label:"BET365",value:2},{label:"Crown",value:3},{label:"10BET",value:4},{label:"Ladbrokes",value:5},{label:"Mansion88",value:6},{label:"Macauslot",value:7},{label:"SNAI",value:8},{label:"William Hill",value:9},{label:"Easybets",value:10},{label:"Vcbet",value:11},{label:"EuroBet",value:12},{label:"Interwetten",value:13},{label:"12bet",value:14},{label:"Sbobet",value:15},{label:"Wewbet",value:16},{label:"18Bet",value:17},{label:"Fun88",value:18},{label:"188bet",value:21},{label:"Pinnacle",value:22},{label:"HKJC",value:136}];Yc[0].value;var H_,U_;const lM={baseURL:((H_=window.wp_sport_advanced)==null?void 0:H_.apiUrl)??((U_=window.config)==null?void 0:U_.dbUrl)??"https://api-sports.thscore.onl/api",initialFilters:{date:Ye().format("YYYY-MM-DD"),timeRange:"all",lang:"vn",ishot:0,companyid:[Yc[0].value],halfOdd:0},skipFetchLiveData:!1,skipFetchOdds:!1};let ct={...lM};var z_;const cM=!!((z_=window.wp_sport_advanced)!=null&&z_.proxyUrl);async function Ct(t){if(!cM)return fetch(t);const r=`${window.wp_sport_advanced.proxyUrl}?path=${encodeURIComponent(t.replace(ct.baseURL,""))}`;return fetch(r,{credentials:"omit"})}/*!
3 * pinia v3.0.4
4 * (c) 2025 Eduardo San Martin Morote
5 * @license MIT
6 */let fw;const Bc=t=>fw=t,hw=Symbol();function _v(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ys;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ys||(Ys={}));function fM(){const t=j_(!0),e=t.run(()=>se({}));let r=[],n=[];const a=q_({install(i){Bc(a),a._a=i,i.provide(hw,a),i.config.globalProperties.$pinia=a,n.forEach(o=>r.push(o)),n=[]},use(i){return this._a?r.push(i):n.push(i),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return a}const vw=()=>{};function Yg(t,e,r,n=vw){t.add(e);const a=()=>{t.delete(e)&&n()};return!r&&_C()&&G_(a),a}function Bi(t,...e){t.forEach(r=>{r(...e)})}const hM=t=>t(),Bg=Symbol(),Sf=Symbol();function wv(t,e){t instanceof Map&&e instanceof Map?e.forEach((r,n)=>t.set(n,r)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],a=t[r];_v(a)&&_v(n)&&t.hasOwnProperty(r)&&!$r(n)&&!K_(n)?t[r]=wv(a,n):t[r]=n}return t}const vM=Symbol();function dM(t){return!_v(t)||!Object.prototype.hasOwnProperty.call(t,vM)}const{assign:Jn}=Object;function pM(t){return!!($r(t)&&t.effect)}function gM(t,e,r,n){const{state:a,actions:i,getters:o}=e,s=r.state.value[t];let u;function l(){s||(r.state.value[t]=a?a():{});const c=Fc(r.state.value[t]);return Jn(c,i,Object.keys(o||{}).reduce((f,v)=>(f[v]=q_($(()=>{Bc(r);const h=r._s.get(t);return o[v].call(h,h)})),f),{}))}return u=dw(t,l,e,r,n,!0),u}function dw(t,e,r={},n,a,i){let o;const s=Jn({actions:{}},r),u={deep:!0};let l,c,f=new Set,v=new Set,h;const d=n.state.value[t];!i&&!d&&(n.state.value[t]={}),se({});let y;function g(T){let M;l=c=!1,typeof T=="function"?(T(n.state.value[t]),M={type:Ys.patchFunction,storeId:t,events:h}):(wv(n.state.value[t],T),M={type:Ys.patchObject,payload:T,storeId:t,events:h});const D=y=Symbol();En().then(()=>{y===D&&(l=!0)}),c=!0,Bi(f,M,n.state.value[t])}const p=i?function(){const{state:M}=r,D=M?M():{};this.$patch(P=>{Jn(P,D)})}:vw;function m(){o.stop(),f.clear(),v.clear(),n._s.delete(t)}const _=(T,M="")=>{if(Bg in T)return T[Sf]=M,T;const D=function(){Bc(n);const P=Array.from(arguments),L=new Set,R=new Set;function I(Y){L.add(Y)}function A(Y){R.add(Y)}Bi(v,{args:P,name:D[Sf],store:b,after:I,onError:A});let x;try{x=T.apply(this&&this.$id===t?this:b,P)}catch(Y){throw Bi(R,Y),Y}return x instanceof Promise?x.then(Y=>(Bi(L,Y),Y)).catch(Y=>(Bi(R,Y),Promise.reject(Y))):(Bi(L,x),x)};return D[Bg]=!0,D[Sf]=M,D},w={_p:n,$id:t,$onAction:Yg.bind(null,v),$patch:g,$reset:p,$subscribe(T,M={}){const D=Yg(f,T,M.detached,()=>P()),P=o.run(()=>Be(()=>n.state.value[t],L=>{(M.flush==="sync"?c:l)&&T({storeId:t,type:Ys.direct,events:h},L)},Jn({},u,M)));return D},$dispose:m},b=Qo(w);n._s.set(t,b);const O=(n._a&&n._a.runWithContext||hM)(()=>n._e.run(()=>
6(o=j_()).run(()=>e({action:_}))));for(const T in O){const M=O[T];if($r(M)&&!pM(M)||K_(M))i||(d&&dM(M)&&($r(M)?M.value=d[T]:wv(M,d[T])),n.state.value[t][T]=M);else if(typeof M=="function"){const D=_(M,T);O[T]=D,s.actions[T]=M}}return Jn(b,O),Jn(mC(b),O),Object.defineProperty(b,"$state",{get:()=>n.state.value[t],set:T=>{g(M=>{Jn(M,T)})}}),n._p.forEach(T=>{Jn(b,o.run(()=>T({store:b,app:n._a,pinia:n,options:s})))}),d&&i&&r.hydrate&&r.hydrate(b.$state,d),l=!0,c=!0,b}/*! #__NO_SIDE_EFFECTS__ */function pw(t,e,r){let n;const a=typeof e=="function";n=a?r:e;function i(o,s){const u=V_();return o=o||(u?yr(hw,null):null),o&&Bc(o),o=fw,o._s.has(t)||(a?dw(t,e,n,o):gM(t,n,o)),o._s.get(t)}return i.$id=t,i}var gw={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(iu,function(){return function(r,n,a){n.prototype.isToday=function(){var i="YYYY-MM-DD",o=a();return this.format(i)===o.format(i)}}})})(gw);var yM=gw.exports;const mM=Kd(yM);var yw={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(iu,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,o,s){var u=o.prototype;s.utc=function(y){var g={date:y,utc:!0,args:arguments};return new o(g)},u.utc=function(y){var g=s(this.toDate(),{locale:this.$L,utc:!0});return y?g.add(this.utcOffset(),r):g},u.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var l=u.parse;u.parse=function(y){y.utc&&(this.$u=!0),this.$utils().u(y.$offset)||(this.$offset=y.$offset),l.call(this,y)};var c=u.init;u.init=function(){if(this.$u){var y=this.$d;this.$y=y.getUTCFullYear(),this.$M=y.getUTCMonth(),this.$D=y.getUTCDate(),this.$W=y.getUTCDay(),this.$H=y.getUTCHours(),this.$m=y.getUTCMinutes(),this.$s=y.getUTCSeconds(),this.$ms=y.getUTCMilliseconds()}else c.call(this)};var f=u.utcOffset;u.utcOffset=function(y,g){var p=this.$utils().u;if(p(y))return this.$u?0:p(this.$offset)?f.call(this):this.$offset;if(typeof y=="string"&&(y=function(b){b===void 0&&(b="");var S=b.match(n);if(!S)return null;var O=(""+S[0]).match(a)||["-",0,0],T=O[0],M=60*+O[1]+ +O[2];return M===0?0:T==="+"?M:-M}(y),y===null))return this;var m=Math.abs(y)<=16?60*y:y;if(m===0)return this.utc(g);var _=this.clone();if(g)return _.$offset=m,_.$u=!1,_;var w=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(_=this.local().add(m+w,r)).$offset=m,_.$x.$localOffset=w,_};var v=u.format;u.format=function(y){var g=y||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return v.call(this,g)},u.valueOf=function(){var y=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*y},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var h=u.toDate;u.toDate=function(y){return y==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var d=u.diff;u.diff=function(y,g,p){if(y&&this.$u===y.$u)return d.call(this,y,g,p);var m=this.local(),_=s(y).local();return d.call(m,_,g,p)}}})})(yw);var _M=yw.exports;const wM=Kd(_M);var ve=(t=>(t[t.Postponed=-14]="Postponed",t[t.Interrupted=-13]="Interrupted",t[t.Terminated=-12]="Terminated",t[t.TBD=-11]="TBD",t[t.Cancelled=-10]="Cancelled",t[t.Finished=-1]="Finished",t[t.NotStarted=0]="NotStarted",t[t.FirstHalf=1]="FirstHalf",t[t.HalfTimeBreak=2]="HalfTimeBreak",t[t.SecondHalf=3]="SecondHalf",t[t.ExtraTime=4]="ExtraTime",t[t.Penalty=5]="Penalty",t))(ve||{});Ye.extend(wM);Ye.extend(mM);const bM=t=>{var e;try{return{dataChanges:(((e=t==null?void 0:t.data)==null?void 0:e.results)||[]).map(a=>({id:a.ScheduleID,matchState:a.MatchState.toString(),homeScore:a.HomeScore.toString(),guestScore:a.GuestScore.toString(),homeHalfScore:a.HomeHalfScore.toString(),guestHalfScore:a.GuestHalfScore.toString(),homeRedCard:a.HomeRedCard.toString(),guestRedCard:a.GuestRedCard.toString(),homeYellowCard:a.HomeYellowCard.toString(),guestYellowCard:a.GuestYellowCard.toString(),homeCorner:a.HomeCorners.toString(),guestCorner:a.GuestCorners.toString(),matchTime:"",matchTime2:"",VarEventResult:"",VarExplanation:"",unknow:"",unknow2:"",unknow3:"",VarEvents:"",InjuryTime:"0",ColorSclass:""}))}}catch(r){return console.error("Error converting live update:",r),null}},SM=(t,e)=>{const r=Object.assign({},t);return e.matchState&&(r.MatchState=Number(e.matchState)),e.homeCorner&&(r.homeCorner=Number(e.homeCorner)),e.guestCorner&&(r.guestCorner=Number(e.guestCorner)),e.homeScore&&(r.HomeScore=Number(e.homeScore)),e.guestScore&&(r.GuestScore=Number(e.guestScore)),e.homeHalfScore&&(r.HomeHalfScore=Number(e.homeHalfScore)),e.guestHalfScore&&(r.GuestHalfScore=Number(e.guestHalfScore)),e.homeRedCard&&(r.Home_Red=Number(e.homeRedCard)),e.guestRedCard&&(r.Guest_Red=Number(e.guestRedCard)),e.homeYellowCard&&(r.Home_Yellow=Number(e.homeYellowCard)),e.guestYellowCard&&(r.Guest_Yellow=Number(e.guestYellowCard)),e.matchTime&&(r.matchTime=e.matchTime),e.matchTime2&&(r.matchTime2=e.matchTime2),e.InjuryTime&&(r.InjuryTime=Number(e.InjuryTime)),r},DM=t=>{var r;if(!((r=t==null?void 0:t.data)!=null&&r.results))return[];const e=new Map;
6return t.data.results.forEach(n=>{const a=n.match_id;e.has(a)||e.set(a,{ScheduleID:a,CompanyID:n.company_id,HDP:{UpOdds_Real:null,Goal_Real:null,DownOdds_Real:null},"1x2":{UpOdds_Real:null,Goal_Real:null,DownOdds_Real:null},OU:{UpOdds_Real:null,Goal_Real:null,DownOdds_Real:null},CR:{UpOdds_Real:null,Goal_Real:null,DownOdds_Real:null}});const i=e.get(a),o={UpOdds_Real:parseFloat(n.v1),Goal_Real:parseFloat(n.line),DownOdds_Real:parseFloat(n.v2)};n.market==="HDP"?i.HDP=o:n.market==="OU"?i.OU=o:n.market==="1x2"?i["1x2"]=o:n.market==="CR"&&(i.CR=o)}),Array.from(e.values())},mw=[{label:"TL Thập phân",value:4,format:"EU"},{label:"TL HongKong",value:1,format:"HK"},{label:"TL Indo",value:2,format:"INDO"},{label:"TL Mỹ",value:3,format:"US"},{label:"TL Malay",value:5,format:"MY"}];function Hg(t,e){if(!(t>0))return NaN;switch(e){case"EU":return t+1;case"HK":return t;case"INDO":return t>=1?t:-(1/t);case"US":return t>=1?t*100:-100/t;case"MY":return t>1?-(1/t):t}}function AK(t,e){return e==="MY"?Hg(t,"EU"):Hg(t,e)}const EK=(t,e)=>{switch(t){case"all":return!0;case"not-started":return e===ve.NotStarted;case"finished":return e===ve.Finished;case"in-game":return e>ve.NotStarted}},TM=t=>t!==null&&t!==""&&t!==void 0,CM=(t,e,r=0)=>{const n=t+e;if(n===0)return{a:"0%",b:"0%"};const a=Math.pow(10,r),i=Math.round(t/n*100*a)/a,o=Math.round(e/n*100*a)/a;return{a:`${i}%`,b:`${o}%`}},ti="soccer-favorites",ec="soccer-odd-format",bv="soccer-odd-type",Zo=pw("matches-new",{state:()=>({apiFilters:{...ct.initialFilters},skipFetchOdds:ct.skipFetchOdds,skipFetchLiveData:ct.skipFetchLiveData,groupBy:"league",clientFilters:{filterByLeagues:[],filterIncludeMatches:[],filterExcludeMatches:[],matchType:"all",filterByMatchStatus:"all"},collapseControl:{all:[],live:[],early:[],hot:[],result:[],date:[],favorite:[],filterLeague:[],time:[]},favorite:MM(),showOdd:!0,oddFormat:OM(),oddType:PM()}),getters:{},actions:{setApiFilters(t){this.apiFilters={...this.apiFilters,...t}},setGroupBy(t){this.groupBy=t},setFilterByLeagues(t){this.clientFilters.filterByLeagues=t},setFilterIncludeMatches(t){this.clientFilters.filterIncludeMatches=t},setFilterExcludeMatches(t){this.clientFilters.filterExcludeMatches=t},addFilterExcludeMatches(t){this.clientFilters.filterExcludeMatches.includes(t)||this.clientFilters.filterExcludeMatches.push(t)},resetClientFilters(t="all"){this.setFilterByLeagues([]),this.setFilterIncludeMatches([]),this.setFilterExcludeMatches([]),this.setMatchType(t),this.setFilterByMatchStatus("all")},setMatchType(t){this.clientFilters.matchType=t},setFilterByMatchStatus(t){this.clientFilters.filterByMatchStatus=t},setFavoriteLeagues(t){this.favorite.leagues=t,localStorage.setItem(ti,JSON.stringify(this.favorite))},setFavoriteMatches(t){this.favorite.matches=t,localStorage.setItem(ti,JSON.stringify(this.favorite))},resetFavorites(){this.favorite={leagues:[],matches:[]},localStorage.removeItem(ti)},toggleFavoriteMatch(t){const e=this.favorite.matches.indexOf(t);e===-1?this.favorite.matches.push(t):this.favorite.matches.splice(e,1),localStorage.setItem(ti,JSON.stringify(this.favorite))},toggleFavoriteLeague(t){const e=this.favorite.leagues.indexOf(t);e===-1?this.favorite.leagues.push(t):this.favorite.leagues.splice(e,1),localStorage.setItem(ti,JSON.stringify(this.favorite))},toggleShowOdd(){this.showOdd=!this.showOdd},setCollapseControl(t,e){this.collapseControl[t]=e},toggleCollapse(t,e){var r;(r=this.collapseControl[t])!=null&&r.includes(e)?this.collapseControl[t]=this.collapseControl[t].filter(n=>n!==e):(this.collapseControl[t]||(this.collapseControl[t]=[]),this.collapseControl[t].push(e))},isCollapsed(t,e){var r;return((r=this.collapseControl[t])==null?void 0:r.includes(e))??!1},setDisplayOddType(t){this.oddFormat=t,localStorage.setItem(ec,t)},setOddType(t){const e=mw.find(r=>r.value===t);e&&(this.oddType=t,this.oddFormat=e.format,localStorage.setItem(bv,String(t)),localStorage.setItem(ec,e.format))}}}),MM=()=>{try{const t=localStorage.getItem(ti);if(t){const e=JSON.parse(t);if(e&&typeof e=="object"&&Array.isArray(e.leagues)&&Array.isArray(e.matches))return e}}catch(t){console.error("Failed to parse or validate favorites from localStorage",t),localStorage.removeItem(ti)}return{leagues:[],matches:[]}},PM=()=>{try{const t=localStorage.getItem(bv);if(t){const e=Number(t);if(mw.some(r=>r.value===e))return e}}catch(t){console.error("Failed to parse odd type from localStorage",t),localStorage.removeItem(bv)}return 4},OM=()=>{try{const t=localStorage.getItem(ec);
6if(t&&["EU","HK","INDO","US","MY"].includes(t))return t}catch(t){console.error("Failed to parse or validate odd format from localStorage",t),localStorage.removeItem(ec)}return"HK"};var W_;const AM=((W_=window.config)==null?void 0:W_._imgS3)??"https://img.winfast.dev",EM=t=>t?/^https?:\/\//i.test(t)||t.startsWith("//")?t:AM+t:"",Ug="live_sites_cache",Sv=se([]),Al=se(null),El=se(!1),Dv=se(!1),Df=se(!1),zg=async(t=!1)=>{if(!El.value&&!(Df.value&&!t)){El.value=!0,Al.value=null,Dv.value=!1;try{const e=`${ct.baseURL}/v1/gf/data/live_sites.json`,r=await Ct(e);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const n=await r.json();Sv.value=n,Df.value=!0,localStorage.setItem(Ug,JSON.stringify(n))}catch(e){console.warn("API lỗi, đang thử lấy từ Cache:",e);const r=localStorage.getItem(Ug);if(r)try{Sv.value=JSON.parse(r),Dv.value=!0,Df.value=!0}catch{Al.value="Không tải được dữ liệu và cache bị lỗi."}else Al.value=e.message||"Lỗi kết nối và không có dữ liệu lưu trữ."}finally{El.value=!1}}},IM=[{type:"rapid",path:"/streams/{match_id}",name:"Lương Sơn"},{type:"rapid",path:"/streams/{match_id}",name:"Cà Khịa"},{type:"rapid",path:"/streams/{match_id}",name:"Về bờ"},{type:"rapid",path:"/streams/{match_id}",name:"Thập Cẩm"},{type:"rapid",path:"/truc-tiep/home-away-{match_id}",name:"Vua sân cỏ"},{type:"rapid",path:"/streams/{match_id}",name:"Socolive"},{type:"isport",path:"/truc-tiep/home-away-{match_id}",name:"Xôi lạc"},{type:"isport",path:"/truc-tiep/home-away-{match_id}",name:"90 phút"},{type:"isport",path:"/truc-tiep/home-away-{match_id}",name:"Ra khơi"},{type:"isport",path:"/truc-tiep/home-away-{match_id}",name:"Sao kê"},{type:"rapid",path:"/truc-tiep-bong-da/home-away-{match_id}",name:"Hub88"}];function Wg(t){return t?t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[đĐ]/g,"d").replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-"):""}function LM(t,e,r,n,a,i){const o=IM.find(u=>u.name.toLowerCase()===t.toLowerCase());if(!r)return`//${e}`;if(!o)return`//${e}`;let s=o.path;if(s.includes("home-away")){const u=Wg(a),l=Wg(i);s=s.replace("home-away",`${u}-vs-${l}`)}return s=s.replace("{match_id}",o.type==="rapid"?r:n.toString()),`//${e}${s}`}function _w(){zg();const t=$(()=>Sv.value.map(r=>({...r,logo:EM(r.logo)})));return{data:t,error:Al,isLoading:El,isUsingCache:Dv,onclickLivestream:()=>{if(!Array.isArray(t.value)||t.value.length===0)return;const r=Math.floor(Math.random()*t.value.length),n=t.value[r],a=typeof n=="string"?n:n==null?void 0:n.domain;a&&window.open("//"+a,"_blank","noopener,noreferrer")},getMatchLink:LM,refetch:()=>zg(!0)}}var Jo=TypeError;const xM={},$M=Object.freeze(Object.defineProperty({__proto__:null,default:xM},Symbol.toStringTag,{value:"Module"})),kM=sM($M);var Qd=typeof Map=="function"&&Map.prototype,Tf=Object.getOwnPropertyDescriptor&&Qd?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,tc=Qd&&Tf&&typeof Tf.get=="function"?Tf.get:null,Vg=Qd&&Map.prototype.forEach,Xd=typeof Set=="function"&&Set.prototype,Cf=Object.getOwnPropertyDescriptor&&Xd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,rc=Xd&&Cf&&typeof Cf.get=="function"?Cf.get:null,Gg=Xd&&Set.prototype.forEach,RM=typeof WeakMap=="function"&&WeakMap.prototype,Bs=RM?WeakMap.prototype.has:null,FM=typeof WeakSet=="function"&&WeakSet.prototype,Hs=FM?WeakSet.prototype.has:null,NM=typeof WeakRef=="function"&&WeakRef.prototype,jg=NM?WeakRef.prototype.deref:null,YM=Boolean.prototype.valueOf,BM=Object.prototype.toString,HM=Function.prototype.toString,UM=String.prototype.match,Zd=String.prototype.slice,ha=String.prototype.replace,zM=String.prototype.toUpperCase,qg=String.prototype.toLowerCase,ww=RegExp.prototype.test,Kg=Array.prototype.concat,Jr=Array.prototype.join,WM=Array.prototype.slice,Qg=Math.floor,Tv=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Mf=Object.getOwnPropertySymbols,Cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Us=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fo||!0)?
vendor: 10,682 bytes, lines 6-9
6Symbol.toStringTag:null,bw=Object.prototype.propertyIsEnumerable,Xg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Zg(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||ww.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Qg(-t):Qg(t);if(n!==t){var a=String(n),i=Zd.call(e,a.length+1);return ha.call(a,r,"$&_")+"."+ha.call(ha.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ha.call(e,r,"$&_")}var Mv=kM,Jg=Mv.custom,ey=Tw(Jg)?Jg:null,Sw={__proto__:null,double:'"',single:"'"},VM={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Hc=function t(e,r,n,a){var i=r||{};if(Tn(i,"quoteStyle")&&!Tn(Sw,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Tn(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=Tn(i,"customInspect")?i.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Tn(i,"indent")&&i.indent!==null&&i.indent!=="	"&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Tn(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Mw(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return s?Zg(e,u):u}if(typeof e=="bigint"){var l=String(e)+"n";return s?Zg(e,l):l}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Pv(e)?"[Array]":"[Object]";var f=l2(i,n);if(typeof a>"u")a=[];else if(Cw(a,e)>=0)return"[Circular]";function v(R,I,A){if(I&&(a=WM.call(a),a.push(I)),A){var x={depth:i.depth};return Tn(i,"quoteStyle")&&(x.quoteStyle=i.quoteStyle),t(R,x,n+1,a)}return t(R,i,n+1,a)}if(typeof e=="function"&&!ty(e)){var h=e2(e),d=Uu(e,v);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(d.length>0?" { "+Jr.call(d,", ")+" }":"")}if(Tw(e)){var y=Fo?ha.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Cv.call(e);return typeof e=="object"&&!Fo?ds(y):y}if(o2(e)){for(var g="<"+qg.call(String(e.nodeName)),p=e.attributes||[],m=0;m<p.length;m++)g+=" "+p[m].name+"="+Dw(GM(p[m].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+qg.call(String(e.nodeName))+">",g}if(Pv(e)){if(e.length===0)return"[]";var _=Uu(e,v);return f&&!u2(_)?"["+Ov(_,f)+"]":"[ "+Jr.call(_,", ")+" ]"}if(qM(e)){var w=Uu(e,v);return!("cause"in Error.prototype)&&"cause"in e&&!bw.call(e,"cause")?"{ ["+String(e)+"] "+Jr.call(Kg.call("[cause]: "+v(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Jr.call(w,", ")+" }"}if(typeof e=="object"&&o){if(ey&&typeof e[ey]=="function"&&Mv)return Mv(e,{depth:c-n});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(t2(e)){var b=[];return Vg&&Vg.call(e,function(R,I){b.push(v(I,e,!0)+" => "+v(R,e))}),ry("Map",tc.call(e),b,f)}if(a2(e)){var S=[];return Gg&&Gg.call(e,function(R){S.push(v(R,e))}),ry("Set",rc.call(e),S,f)}if(r2(e))return Pf("WeakMap");if(i2(e))return Pf("WeakSet");if(n2(e))return Pf("WeakRef");if(QM(e))return ds(v(Number(e)));if(ZM(e))return ds(v(Tv.call(e)));if(XM(e))return ds(YM.call(e));if(KM(e))return ds(v(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof iu<"u"&&e===iu)return"{ [object globalThis] }";if(!jM(e)&&!ty(e)){var O=Uu(e,v),T=Xg?Xg(e)===Object.prototype:e instanceof Object||e.constructor===Object,M=e instanceof Object?"":"null prototype",D=!T&&Us&&Object(e)===e&&Us in e?Zd.call(Ca(e),8,-1):M?"Object":"",P=T||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",L=P+(D||M?"["+Jr.call(Kg.call([],D||[],M||[]),": ")+"] ":"");return O.length===0?L+"{}":f?L+"{"+Ov(O,f)+"}":L+"{ "+Jr.call(O,", ")+" }"}return String(e)};function Dw(t,e,r){var n=r.quoteStyle||e,a=Sw[n];return a+t+a}function GM(t){return ha.call(String(t),/"/g,"&quot;")}function Ei(t){return!Us||!(typeof t=="object"&&(Us in t||typeof t[Us]<"u"))}function Pv(t){return Ca(t)==="[object Array]"&&Ei(t)}function jM(t){return Ca(t)==="[object Date]"&&Ei(t)}function ty(t){return Ca(t)==="[object RegExp]"&&Ei(t)}function qM(t){return Ca(t)==="[object Error]"&&Ei(t)}function KM(t){return Ca(t)==="[object String]"&&Ei(t)}function QM(t){return Ca(t)==="[object Number]"&&Ei(t)}function XM(t){return Ca(t)==="[object Boolean]"&&Ei(t)}function Tw(t){if(Fo)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Cv)return!1;try{return Cv.call(t),!0}catch{}return!1}function ZM(t){if(!t||typeof t!="object"||!Tv)return!1;try{return Tv.call(t),!0}catch{}return!1}var JM=Object.prototype.hasOwnProperty||function(t){return t in this};function Tn(t,e){return JM.call(t,e)}function Ca(t){return BM.call(t)}function e2(t){if(t.name)return t.name;var e=UM.call(HM.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Cw(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function t2(t){if(!tc||!t||typeof t!="object")return!1;try{tc.call(t);try{rc.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function r2(t){if(!Bs||!t||typeof t!="object")return!1;try{Bs.call(t,Bs);try{Hs.call(t,Hs)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function n2(t){if(!jg||!t||typeof t!="object")return!1;try{return jg.call(t),!0}catch{}return!1}function a2(t){if(!rc||!t||typeof t!="object")return!1;try{rc.call(t);try{tc.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function i2(t){if(!Hs||!t||typeof t!="object")return!1;try{Hs.call(t,Hs);try{Bs.call(t,Bs)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function o2(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Mw(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Mw(Zd.call(t,0,e.maxStringLength),e)+n}var a=VM[e.quoteStyle||"single"];a.lastIndex=0;var i=ha.call(ha.call(t,a,"\\$1"),/[\x00-\x1f]/g,s2);return Dw(i,"single",e)}function s2(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+zM.call(e.toString(16))}function ds(t){return"Object("+t+")"}function Pf(t){return t+" { ? }"}function ry(t,e,r,n){var a=n?Ov(r,n):Jr.call(r,", ");return t+" ("+e+") {"+a+"}"}function u2(t){for(var e=0;e<t.length;e++)if(Cw(t[e],`
7`)>=0)return!1;return!0}function l2(t,e){var r;if(t.indent==="	")r="	";else if(typeof t.indent=="number"&&t.indent>0)r=Jr.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Jr.call(Array(e+1),r)}}function Ov(t,e){if(t.length===0)return"";var r=`
8`+e.prev+e.base;return r+Jr.call(t,","+r)+`
9`+e.prev}function Uu(t,e){var r=Pv(t),n=[];if(r){n.length=t.length;for(var a=0;a<t.length;a++)n[a]=Tn(t,a)?e(t[a],t):""}var i=typeof Mf=="function"?Mf(t):[],o;if(Fo){o={};for(var s=0;s<i.length;s++)o["$"+i[s]]=i[s]}for(var u in t)Tn(t,u)&&(r&&String(Number(u))===u&&u<t.length||Fo&&o["$"+u]instanceof Symbol||(ww.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof Mf=="function")for(var l=0;l<i.length;l++)bw.call(t,i[l])&&n.push("["+e(i[l])+"]: "+e(t[i[l]],t));return n}var c2=Hc,f2=Jo,Uc=function(t,e,r){for(var n=t,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,r||(a.next=t.next,t.next=a),a},h2=function(t,e){if(t){var r=Uc(t,e);return r&&r.value}},v2=function(t,e,r){var n=Uc(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},d2=function(t,e){return t?!!Uc(t,e):!1},p2=function(t,e){if(t)return Uc(t,e,!0)},g2=function(){var e,r={assert:function(n){if(!r.has(n))throw new f2("Side channel does not contain "+c2(n))},delete:function(n){var a=e&&e.next,i=p2(e,n);return i&&a&&a===i&&(e=void 0),!!i},get:function(n){return h2(e,n)},has:function(n){return d2(e,n)},set:function(n,a){e||(e={next:void 0}),v2(e,n,a)}};return r},Pw=Object,y2=Error,m2=EvalError,_2=RangeError,w2=ReferenceError,b2=SyntaxError,S2=URIError,D2=Math.abs,T2=Math.floor,C2=Math.max,M2=Math.min,P2=Math.pow,O2=Math.round,A2=Number.isNaN||function(e){return e!==e},E2=A2,I2=function(e){return E2(e)||e===0?e:e<0?-1:1},L2=Object.getOwnPropertyDescriptor,Il=L2;if(Il)try{Il([],"length")}catch{Il=null}var Ow=Il,Ll=Object.defineProperty||!1;if(Ll)try{Ll({},"a",{value:1})}catch{Ll=!1}var x2=Ll,Of,ny;function $2(){return ny||(ny=1,Of=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[r]=a;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==a||s.enumerable!==!0)return!1}return!0}),Of}var Af,ay;function k2(){if(ay)return Af;ay=1;var t=typeof Symbol<"u"&&Symbol,e=$2();return Af=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Af}var Ef,iy;function Aw(){return iy||(iy=1,Ef=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ef}var If,oy;function Ew(){if(oy)return If;oy=1;var t=Pw;return If=t.getPrototypeOf||null,If}var R2="Function.prototype.bind called on incompatible ",F2=Object.prototype.toString,N2=Math.max,Y2="[object Function]",sy=function(e,r){for(var n=[],a=0;a<e.length;a+=1)n[a]=e[a];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},B2=function(e,r){for(var n=[],a=r,i=0;a<e.length;a+=1,i+=1)n[i]=e[a];return n},H2=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},U2=function(e){var r=this;if(typeof r!="function"||F2.apply(r)!==Y2)throw new TypeError(R2+r);
9for(var n=B2(arguments,1),a,i=function(){if(this instanceof a){var c=r.apply(this,sy(n,arguments));return Object(c)===c?c:this}return r.apply(e,sy(n,arguments))},o=N2(0,r.length-n.length),s=[],u=0;u<o;u++)s[u]="$"+u;if(a=Function("binder","return function ("+H2(s,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,a.prototype=new l,l.prototype=null}return a},z2=U2,zc=Function.prototype.bind||z2,Jd=Function.prototype.call,Lf,uy;function Iw(){return uy||(uy=1,Lf=Function.prototype.apply),Lf}var W2=typeof Reflect<"u"&&Reflect&&Reflect.apply,V2=zc,G2=Iw(),j2=Jd,q2=W2,K2=q2||V2.call(j2,G2),Q2=zc,X2=Jo,Z2=Jd,J2=K2,Lw=function(e){if(e.length<1||typeof e[0]!="function")throw new X2("a function is required");return J2(Q2,Z2,e)},xf,ly;function eP(){if(ly)return xf;ly=1;var t=Lw,e=Ow,r;try{r=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var n=!!r&&e&&e(Object.prototype,"__proto__"),a=Object,i=a.getPrototypeOf;return xf=n&&typeof n.get=="function"?t([n.get]):typeof i=="function"?function(s){return i(s==null?s:a(s))}:!1,xf}var $f,cy;function tP(){if(cy)return $f;cy=1;var t=Aw(),e=Ew(),r=eP();return $f=t?function(a){return t(a)}:e?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return e(a)}:r?function(a){return r(a)}:null,$f}var kf,fy;function rP(){if(fy)return kf;fy=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=zc;return kf=r.call(t,e),kf}var De,nP=Pw,aP=y2,iP=m2,oP=_2,sP=w2,No=b2,go=Jo,uP=S2,lP=D2,cP=T2,fP=C2,hP=M2,vP=P2,dP=O2,pP=I2,xw=Function,Rf=function(t){try{return xw('"use strict"; return ('+t+").constructor;")()}catch{}},ou=Ow,gP=x2,Ff=function(){throw new go},yP=ou?function(){try{return arguments.callee,Ff}catch{try{return ou(arguments,"callee").get}catch{return Ff}}}():Ff,Hi=k2()(),gt=tP(),mP=Ew(),_P=Aw(),$w=Iw(),Au=Jd,ao={},wP=typeof Uint8Array>"u"||!gt?De:gt(Uint8Array),yi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?De:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?De:ArrayBuffer,"%ArrayIteratorPrototype%":Hi&&gt?gt([][Symbol.iterator]()):De,"%AsyncFromSyncIteratorPrototype%":De,"%AsyncFunction%":ao,"%AsyncGenerator%":ao,"%AsyncGeneratorFunction%":ao,"%AsyncIteratorPrototype%":ao,"%Atomics%":typeof Atomics>"u"?De:Atomics,"%BigInt%":typeof BigInt>"u"?De:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?De:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?De:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?De:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":aP,"%eval%":eval,"%EvalError%":iP,"%Float16Array%":typeof Float16Array>"u"?De:Float16Array,"%Float32Array%":typeof Float32Array>"u"?De:Float32Array,"%Float64Array%":typeof Float64Array>"u"?De:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?De:FinalizationRegistry,"%Function%":xw,"%GeneratorFunction%":ao,"%Int8Array%":typeof Int8Array>"u"?De:Int8Array,"%Int16Array%":typeof Int16Array>"u"?De:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 19,756 bytes, line 9
9"u"?De:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Hi&&gt?gt(gt([][Symbol.iterator]())):De,"%JSON%":typeof JSON=="object"?JSON:De,"%Map%":typeof Map>"u"?De:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Hi||!gt?De:gt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":nP,"%Object.getOwnPropertyDescriptor%":ou,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?De:Promise,"%Proxy%":typeof Proxy>"u"?De:Proxy,"%RangeError%":oP,"%ReferenceError%":sP,"%Reflect%":typeof Reflect>"u"?De:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?De:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Hi||!gt?De:gt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?De:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Hi&&gt?gt(""[Symbol.iterator]()):De,"%Symbol%":Hi?Symbol:De,"%SyntaxError%":No,"%ThrowTypeError%":yP,"%TypedArray%":wP,"%TypeError%":go,"%Uint8Array%":typeof Uint8Array>"u"?De:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?De:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?De:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?De:Uint32Array,"%URIError%":uP,"%WeakMap%":typeof WeakMap>"u"?De:WeakMap,"%WeakRef%":typeof WeakRef>"u"?De:WeakRef,"%WeakSet%":typeof WeakSet>"u"?De:WeakSet,"%Function.prototype.call%":Au,"%Function.prototype.apply%":$w,"%Object.defineProperty%":gP,"%Object.getPrototypeOf%":mP,"%Math.abs%":lP,"%Math.floor%":cP,"%Math.max%":fP,"%Math.min%":hP,"%Math.pow%":vP,"%Math.round%":dP,"%Math.sign%":pP,"%Reflect.getPrototypeOf%":_P};if(gt)try{null.error}catch(t){var bP=gt(gt(t));yi["%Error.prototype%"]=bP}var SP=function t(e){var r;if(e==="%AsyncFunction%")r=Rf("async function () {}");else if(e==="%GeneratorFunction%")r=Rf("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Rf("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&gt&&(r=gt(a.prototype))}return yi[e]=r,r},hy={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Eu=zc,nc=rP(),DP=Eu.call(Au,Array.prototype.concat),TP=Eu.call($w,Array.prototype.splice),vy=Eu.call(Au,String.prototype.replace),ac=Eu.call(Au,String.prototype.slice),CP=Eu.call(Au,RegExp.prototype.exec),MP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,PP=/\\(\\)?/g,OP=function(e){var r=ac(e,0,1),n=ac(e,-1);if(r==="%"&&n!=="%")throw new No("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new No("invalid intrinsic syntax, expected opening `%`");var a=[];return vy(e,MP,function(i,o,s,u){a[a.length]=s?vy(u,PP,"$1"):o||i}),a},AP=function(e,r){var n=e,a;if(nc(hy,n)&&(a=hy[n],n="%"+a[0]+"%"),nc(yi,n)){var i=yi[n];if(i===ao&&(i=SP(n)),typeof i>"u"&&!r)throw new go("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new No("intrinsic "+e+" does not exist!")},ep=function(e,r){if(typeof e!="string"||e.length===0)throw new go("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new go('"allowMissing" argument must be a boolean');if(CP(/^%?[^%]*%?$/,e)===null)throw new No("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=OP(e),a=n.length>0?n[0]:"",i=AP("%"+a+"%",r),o=i.name,s=i.value,u=!1,l=i.alias;l&&(a=l[0],TP(n,DP([0,1],l)));for(var c=1,f=!0;c<n.length;c+=1){var v=n[c],h=ac(v,0,1),d=ac(v,-1);if((h==='"'||h==="'"||h==="`"||d==='"'||d==="'"||d==="`")&&h!==d)throw new No("property names with quotes must have matching quotes");if((v==="constructor"||!f)&&(u=!0),a+="."+v,o="%"+a+"%",nc(yi,o))s=yi[o];else if(s!=null){if(!(v in s)){if(!r)throw new go("base intrinsic for "+e+" exists, but the property is not available.");return}if(ou&&c+1>=n.length){var y=ou(s,v);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[v]}else f=nc(s,v),s=s[v];f&&!u&&(yi[o]=s)}}return s},kw=ep,Rw=Lw,EP=Rw([kw("%String.prototype.indexOf%")]),Fw=function(e,r){var n=kw(e,!!r);return typeof n=="function"&&EP(e,".prototype.")>-1?Rw([n]):n},IP=ep,Iu=Fw,LP=Hc,xP=Jo,dy=IP("%Map%",!0),$P=Iu("Map.prototype.get",!0),kP=Iu("Map.prototype.set",!0),RP=Iu("Map.prototype.has",!0),FP=Iu("Map.prototype.delete",!0),NP=Iu("Map.prototype.size",!0),Nw=!!dy&&function(){var e,r={assert:function(n){if(!r.has(n))throw new xP("Side channel does not contain "+LP(n))},delete:function(n){if(e){var a=FP(e,n);return NP(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return $P(e,n)},has:function(n){return e?RP(e,n):!1},set:function(n,a){e||(e=new dy),kP(e,n,a)}};return r},YP=ep,Wc=Fw,BP=Hc,zu=Nw,HP=Jo,Ui=YP("%WeakMap%",!0),UP=Wc("WeakMap.prototype.get",!0),zP=Wc("WeakMap.prototype.set",!0),WP=Wc("WeakMap.prototype.has",!0),VP=Wc("WeakMap.prototype.delete",!0),GP=Ui?function(){var e,r,n={assert:function(a){if(!n.has(a))throw new HP("Side channel does not contain "+BP(a))},delete:function(a){if(Ui&&a&&(typeof a=="object"||typeof a=="function")){if(e)return VP(e,a)}else if(zu&&r)return r.delete(a);return!1},get:function(a){return Ui&&a&&(typeof a=="object"||typeof a=="function")&&e?UP(e,a):r&&r.get(a)},has:function(a){return Ui&&a&&(typeof a=="object"||typeof a=="function")&&e?WP(e,a):!!r&&r.has(a)},set:function(a,i){Ui&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new Ui),zP(e,a,i)):zu&&(r||(r=zu()),r.set(a,i))}};return n}:zu,jP=Jo,qP=Hc,KP=g2,QP=Nw,XP=GP,ZP=XP||QP||KP,Yw=function(){var e,r={assert:function(n){if(!r.has(n))throw new jP("Side channel does not contain "+qP(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=ZP()),e.set(n,a)}};return r},JP=String.prototype.replace,eO=/%20/g,Nf={RFC1738:"RFC1738",RFC3986:"RFC3986"},tp={default:Nf.RFC3986,formatters:{RFC1738:function(t){return JP.call(t,eO,"+")},RFC3986:function(t){return String(t)}},RFC1738:Nf.RFC1738,RFC3986:Nf.RFC3986},tO=tp,rO=Yw,Yf=Object.prototype.hasOwnProperty,ri=Array.isArray,Vc=rO(),Bw=function(e,r){return Vc.set(e,r),e},ic=function(e){return Vc.has(e)},Av=function(e){return Vc.get(e)},Hw=function(e,r){Vc.set(e,r)},Ur=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),nO=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(ri(n)){for(var a=[],i=0;i<n.length;++i)typeof n[i]<"u"&&a.push(n[i]);r.obj[r.prop]=a}}},rp=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},a=0;a<e.length;++a)typeof e[a]<"u"&&(n[a]=e[a]);return n},aO=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(ri(e))e.push(r);else if(e&&typeof e=="object")if(ic(e)){var a=Av(e)+1;e[a]=r,Hw(e,a)}else(n&&(n.plainObjects||n.allowPrototypes)||!Yf.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object"){if(ic(r)){for(var i=Object.keys(r),o=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},s=0;s<i.length;s++){var u=parseInt(i[s],10);o[u+1]=r[i[s]]}return Bw(o,Av(r)+1)}return[e].concat(r)}var l=e;return ri(e)&&!ri(r)&&(l=rp(e,n)),ri(e)&&ri(r)?(r.forEach(function(c,f){if(Yf.call(e,f)){var v=e[f];v&&typeof v=="object"&&c&&typeof c=="object"?e[f]=t(v,c,n):e.push(c)}else e[f]=c}),e):Object.keys(r).reduce(function(c,f){var v=r[f];return Yf.call(c,f)?c[f]=t(c[f],v,n):c[f]=v,c},l)},iO=function(e,r){return Object.keys(r).reduce(function(n,a){return n[a]=r[a],n},e)},oO=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Bf=1024,sO=function(e,r,n,a,i){if(e.length===0)return e;var o=e;if(typeof e=="symbol"?o=Symbol.prototype.toString.call(e):typeof e!="string"&&(o=String(e)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var s="",u=0;u<o.length;u+=Bf){for(var l=o.length>=Bf?o.slice(u,u+Bf):o,c=[],f=0;f<l.length;++f){var v=l.charCodeAt(f);if(v===45||v===46||v===95||v===126||v>=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122||i===tO.RFC1738&&(v===40||v===41)){c[c.length]=l.charAt(f);continue}if(v<128){c[c.length]=Ur[v];continue}if(v<2048){c[c.length]=Ur[192|v>>6]+Ur[128|v&63];continue}if(v<55296||v>=57344){c[c.length]=Ur[224|v>>12]+Ur[128|v>>6&63]+Ur[128|v&63];continue}f+=1,v=65536+((v&1023)<<10|l.charCodeAt(f)&1023),c[c.length]=Ur[240|v>>18]+Ur[128|v>>12&63]+Ur[128|v>>6&63]+Ur[128|v&63]}s+=c.join("")}return s},uO=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],a=0;a<r.length;++a)for(var i=r[a],o=i.obj[i.prop],s=Object.keys(o),u=0;u<s.length;++u){var l=s[u],c=o[l];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:o,prop:l}),n.push(c))}return nO(r),e},lO=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},cO=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},fO=function(e,r,n,a){if(ic(e)){var i=Av(e)+1;return e[i]=r,Hw(e,i),e}var o=[].concat(e,r);return o.length>n?Bw(rp(o,{plainObjects:a}),o.length-1):o},hO=function(e,r){if(ri(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(r(e[a]));return n}return r(e)},Uw={arrayToObject:rp,assign:iO,combine:fO,compact:uO,decode:oO,encode:sO,isBuffer:cO,isOverflow:ic,isRegExp:lO,maybeMap:hO,merge:aO},zw=Yw,xl=Uw,zs=tp,vO=Object.prototype.hasOwnProperty,Ww={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Kr=Array.isArray,dO=Array.prototype.push,Vw=function(t,e){dO.apply(t,Kr(e)?e:[e])},pO=Date.prototype.toISOString,py=zs.default,ht={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:xl.encode,encodeValuesOnly:!1,filter:void 0,format:py,formatter:zs.formatters[py],indices:!1,serializeDate:function(e){return pO.call(e)},skipNulls:!1,strictNullHandling:!1},gO=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Hf={},yO=function t(e,r,n,a,i,o,s,u,l,c,f,v,h,d,y,g,p,m){for(var _=e,w=m,b=0,S=!1;(w=w.get(Hf))!==void 0&&!S;){var O=w.get(e);if(b+=1,typeof O<"u"){if(O===b)throw new RangeError("Cyclic object value");S=!0}typeof w.get(Hf)>"u"&&(b=0)}if(typeof c=="function"?_=c(r,_):_ instanceof Date?_=h(_):n==="comma"&&Kr(_)&&(_=xl.maybeMap(_,function(N){return N instanceof Date?h(N):N})),_===null){if(o)return l&&!g?l(r,ht.encoder,p,"key",d):r;_=""}if(gO(_)||xl.isBuffer(_)){if(l){var T=g?r:l(r,ht.encoder,p,"key",d);return[y(T)+"="+y(l(_,ht.encoder,p,"value",d))]}return[y(r)+"="+y(String(_))]}var M=[];if(typeof _>"u")return M;var D;if(n==="comma"&&Kr(_))g&&l&&(_=xl.maybeMap(_,l)),D=[{value:_.length>0?_.join(",")||null:void 0}];else if(Kr(c))D=c;else{var P=Object.keys(_);D=f?P.sort(f):P}var L=u?String(r).replace(/\./g,"%2E"):String(r),R=a&&Kr(_)&&_.length===1?L+"[]":L;if(i&&Kr(_)&&_.length===0)return R+"[]";for(var I=0;I<D.length;++I){var A=D[I],x=typeof A=="object"&&A&&typeof A.value<"u"?A.value:_[A];if(!(s&&x===null)){var Y=v&&u?String(A).replace(/\./g,"%2E"):String(A),U=Kr(_)?typeof n=="function"?n(R,Y):R:R+(v?"."+Y:"["+Y+"]");m.set(e,b);var q=zw();q.set(Hf,m),Vw(M,t(x,U,n,a,i,o,s,u,n==="comma"&&g&&Kr(_)?null:l,c,f,v,h,d,y,g,p,q))}}return M},mO=function(e){if(!e)return ht;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||ht.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=zs.default;if(typeof e.format<"u"){if(!vO.call(zs.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=zs.formatters[n],i=ht.filter;(typeof e.filter=="function"||Kr(e.filter))&&(i=e.filter);var o;if(e.arrayFormat in Ww?o=e.arrayFormat:"indices"in e?o=e.indices?"indices":"repeat":o=ht.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:ht.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:ht.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ht.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ht.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?ht.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:ht.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:ht.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:ht.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:ht.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:ht.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:ht.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ht.strictNullHandling}},_O=function(t,e){var r=t,n=mO(e),a,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):Kr(n.filter)&&(i=n.filter,a=i);var o=[];if(typeof r!="object"||r===null)return"";var s=Ww[n.arrayFormat],u=s==="comma"&&n.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);for(var l=zw(),c=0;c<a.length;++c){var f=a[c],v=r[f];n.skipNulls&&v===null||Vw(o,yO(v,f,s,u,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}var h=o.join(n.delimiter),d=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),h.length>0?d+h:""},ma=Uw,$l=Object.prototype.hasOwnProperty,gy=Array.isArray,Je={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ma.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},wO=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Gw=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},bO="utf8=%26%2310003%3B",SO="utf8=%E2%9C%93",DO=function(e,r){var n={__proto__:null},a=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,o=a.split(r.delimiter,r.throwOnLimitExceeded?i+1:i);if(r.throwOnLimitExceeded&&o.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var s=-1,u,l=r.charset;if(r.charsetSentinel)for(u=0;u<o.length;++u)o[u].indexOf("utf8=")===0&&(o[u]===SO?l="utf-8":o[u]===bO&&(l="iso-8859-1"),s=u,u=o.length);for(u=0;u<o.length;++u)if(u!==s){var c=o[u],f=c.indexOf("]="),v=f===-1?c.indexOf("="):f+1,h,d;if(v===-1?(h=r.decoder(c,Je.decoder,l,"key"),d=r.strictNullHandling?null:""):(h=r.decoder(c.slice(0,v),Je.decoder,l,"key"),h!==null&&(d=ma.maybeMap(Gw(c.slice(v+1),r,gy(n[h])?n[h].length:0),function(g){return r.decoder(g,Je.decoder,l,"value")}))),d&&r.interpretNumericEntities&&l==="iso-8859-1"&&(d=wO(String(d))),c.indexOf("[]=")>-1&&(d=gy(d)?[d]:d),h!==null){var y=$l.call(n,h);y&&r.duplicates==="combine"?n[h]=ma.combine(n[h],d,r.arrayLimit,r.plainObjects):(!y||r.duplicates==="last")&&(n[h]=d)}}return n},TO=function(t,e,r,n){var a=0;if(t.length>0&&t[t.length-1]==="[]"){var i=t.slice(0,-1).join("");a=Array.isArray(e)&&e[i]?e[i].length:0}for(var o=n?e:Gw(e,r,a),s=t.length-1;s>=0;--s){var u,l=t[s];if(l==="[]"&&r.parseArrays)ma.isOverflow(o)?u=o:u=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:ma.combine([],o,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var c=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,f=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,v=parseInt(f,10);!r.parseArrays&&f===""?u={0:o}:!isNaN(v)&&l!==f&&String(v)===f&&v>=0&&r.parseArrays&&v<=r.arrayLimit?(u=[],u[v]=o):f!=="__proto__"&&(u[f]=o)}o=u}return o},CO=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&$l.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,o=a.exec(n),s=o?n.slice(0,o.index):n,u=[];
9if(s){if(!r.plainObjects&&$l.call(Object.prototype,s)&&!r.allowPrototypes)return;u.push(s)}for(var l=0;(o=i.exec(n))!==null&&l<r.depth;){l+=1;var c=o[1].slice(1,-1);if(!r.plainObjects&&$l.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(o[1])}if(o){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+n.slice(o.index)+"]")}return u},MO=function(e,r,n,a){if(e){var i=CO(e,n);if(i)return TO(i,r,n,a)}},PO=function(e){if(!e)return Je;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?Je.charset:e.charset,n=typeof e.duplicates>"u"?Je.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Je.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Je.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Je.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Je.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Je.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Je.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Je.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Je.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Je.decoder,delimiter:typeof e.delimiter=="string"||ma.isRegExp(e.delimiter)?e.delimiter:Je.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Je.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Je.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Je.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Je.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Je.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Je.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},OO=function(t,e){var r=PO(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?DO(t,r):t,a=r.plainObjects?{__proto__:null}:{},i=Object.keys(n),o=0;o<i.length;++o){var s=i[o],u=MO(s,n[s],r,typeof t=="string");a=ma.merge(a,u,r)}return r.allowSparse===!0?a:ma.compact(a)},AO=_O,EO=OO,IO=tp,jw={formats:IO,parse:EO,stringify:AO};const qw=async t=>{const e=jw.stringify(t,{arrayFormat:"comma"}),r=`${ct.baseURL}/v1/football/match/diary?${e}&locale=vi`,n=await Ct(r);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()},LO=async t=>{const e=jw.stringify(t,{arrayFormat:"comma"}),r=`${ct.baseURL}/v1/football/odds/diary?${e}&locale=vi`,n=await Ct(r);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()},xO=async()=>{const t=`${ct.baseURL}/v1/football/match/live?locale=vi`,e=await Ct(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const r=await e.json();return bM(r)},$O=async t=>{const e=`${ct.baseURL}/v1/football/odds/live?companyid=${t}&locale=vi`,r=await Ct(e);
9if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const n=await r.json();return DM(n)},le="core-api-matches",Qe={MATCHES:le+"-matches",MATCHES_LATE_NIGHT:le+"-matches-late-night",ODDS:le+"-odds",ODDS_LATE_NIGHT:le+"-odds-late-night",LIVE_UPDATE:le+"-live-update",LIVE_ODDS:le+"-live-odds",LEAGUE_HOT:le+"-hot",MATCH_DETAIL:{INFO:le+"-match-detail-info",HISTORY:le+"-match-detail-history",ODDS:le+"-match-detail-odds",ODDS_HISTORY:le+"-match-detail-odds-history",H2H:le+"-match-detail-h2h",LINEUP:le+"-match-detail-lineup",TREND:le+"-match-detail-trend",GOAL_DISTRIBUTION:le+"-match-goal-distribution",BEST_ODD:le+"-match-best-odds"},LEAGUE_DETAIL:{INFO:le+"-league-detail-info",STANDINGS:le+"-league-detail-standings",SCHEDULE:le+"-league-detail-schedule",SCHEDULE_ODDS:le+"-league-detail-schedule-odds",TOP_PLAYERS:le+"-league-detail-top-players",ODDS:le+"-league-odds",SCORE_SPREAD:le+"-league-score-spread",ODD_EVEN:le+"-league-odd-even",OVER_UNDER:le+"-league-over-under",TEAM_SCORE:le+"-league-team-score",FREQUENT_RESULT:le+"-league-frequent-result",GOAL_TIME:le+"-league-goal-time",MATRIX_SCHEDULE:le+"-league-matrix-schedule",ODDS_AWAY:le+"-league-odds-away",HALF_FULL_STATS:le+"-league-half-time-stats",HALF_FULL_SCORES:le+"-league-half-full-scores",GET_MISS:le+"-league-get-miss",CATEGORIES:le+"-league-categories",CATEGORIESV2:le+"-league-categories-v2",BXH:le+"-league-bxh",BXH_FIFA:le+"-league-bxh-fifa",STATS:le+"-league-stats",TEAM_OF_WEEK:le+"-league-team-of-week",TEAMS:le+"-league-teams"},TEAM_DETAIL:{INFO:le+"-team-detail-info",SEASON:le+"-team-season"},PLAYER_DETAIL:{INFO:le+"-player-detail-info"},PREDICTION:le+"-prediction-data",V3:{COMPETITION_TOP_SCORERS:le+"-v3-competition-top-scorers",MATCHES:le+"-v3-matches"}},Ev=3*1e3,kO=15*1e3,yy=5*60*1e3;function RO(t){const e=Zo(),r=t?!t.skipFetchLiveData:!e.skipFetchLiveData,n=t?!t.skipFetchOdds:!e.skipFetchOdds,a=n&&r,i=$(()=>{const{companyid:F,...K}=t!=null&&t.apiFilters?t.apiFilters:e.apiFilters;return K}),o=so({queryKey:[Qe.MATCHES,$(()=>i.value)],queryFn:()=>qw(i.value),refetchInterval:yy}),{data:s,isLoading:u,isError:l,error:c}=o,f=so({queryKey:[Qe.LIVE_UPDATE],queryFn:()=>xO(),enabled:Ye(i.value.date).isToday()&&(i.value.timeRange==="live"||i.value.timeRange==="all")&&r,refetchInterval:Ev,refetchIntervalInBackground:!1}),{data:v,isLoading:h,isError:d,error:y}=f,g=so({queryKey:[Qe.ODDS,$(()=>e.apiFilters)],queryFn:()=>LO(e.apiFilters),enabled:n,refetchInterval:yy}),{data:p,isLoading:m,isError:_,error:w}=g,b=so({queryKey:[Qe.LIVE_ODDS,$(()=>e.apiFilters.companyid)],queryFn:()=>{var F;return $O(((F=e.apiFilters.companyid)==null?void 0:F[0])||Yc[0].value)},enabled:Ye(i.value.date).isToday()&&(i.value.timeRange==="live"||i.value.timeRange==="all")&&a,refetchInterval:Ev,refetchIntervalInBackground:!1}),{data:S,isLoading:O,isError:T,error:M}=b,D=$(()=>{var Yt,Tr,Cr;const F=[...((Yt=p.value)==null?void 0:Yt.data)??[]],K=[...((Tr=s.value)==null?void 0:Tr.data.matches)??[]],X=new Map;for(const je of F){const We=je.Type||"";if(!["1x2","OU","HDP","1x2Half","OUHalf","HDPHalf","CR"].includes(We))continue;const qt=X.get(je.ScheduleID)??{};qt[We]=je,X.set(je.ScheduleID,qt)}const $e=new Map;for(const je of S.value??[])$e.set(je.ScheduleID,je);const Ze=new Map;for(const je of((Cr=v.value)==null?void 0:Cr.dataChanges)??[])Ze.set(je.id,je);const Pt=new Set(e.favorite.matches);return[...K].sort((je,We)=>Ye(je.matchTime).unix()-Ye(We.matchTime).unix()).map(je=>{var Hr,_n,Ri,Vn,Fi,Oa,Aa;const We=je.ScheduleID,qt=Ze.has(We)?SM(je,Ze.get(We)):je;let Ot={"1x2":((Hr=X.get(We))==null?void 0:Hr["1x2"])??null,OU:((_n=X.get(We))==null?void 0:_n.OU)??null,HDP:((Ri=X.get(We))==null?void 0:Ri.HDP)??null,"1x2Half":((Vn=X.get(We))==null?void 0:Vn["1x2Half"])??null,OUHalf:((Fi=X.get(We))==null?void 0:Fi.OUHalf)??null,HDPHalf:((Oa=X.get(We))==null?void 0:Oa.HDPHalf)??null,CR:((Aa=X.get(We))==null?void 0:Aa.CR)??null};if($e.has(We)){const Ea=$e.get(We),nr=ar=>{var j,C,W,Z,fe,Ve;return{...Ot[ar],UpOdds_Real:((j=Ea[ar])==null?void 0:j.UpOdds_Real)??((C=Ot[ar])==null?void 0:C.UpOdds_Real)??null,Goal_Real:((W=Ea[ar])==null?void 0:W.Goal_Real)??((Z=Ot[ar])==null?void 0:Z.Goal_Real)??null,DownOdds_Real:((fe=Ea[ar])==null?void 0:fe.DownOdds_Real)??((Ve=Ot[ar])==null?void 0:Ve.DownOdds_Real)??null}};Ot={"1x2":nr("1x2"),HDP:nr("HDP"),OU:nr("OU"),"1x2Half":nr("1x2Half"),HDPHalf:nr("HDPHalf"),OUHalf:nr("OUHalf"),CR:nr("CR")}}return{...qt,odds:Ot,isFavorite:Pt.has(We)}})}),P=$(()=>{const{filterByLeagues:F,filterExcludeMatches:K,filterIncludeMatches:X}=e.clientFilters;if(X.length>0){const Ze=new Set(X);return D.value.filter(Pt=>Ze.has(Pt.ScheduleID))}let $e=D.value;if(F.length>0){const Ze=new Set(F);$e=$e.filter(Pt=>Ze.has(Pt.sclassID))}if(K.length>0){const Ze=new Set(K);$e=$e.filter(Pt=>!Ze.has(Pt.ScheduleID))}return $e}),L=$(()=>D.value),R=$(()=>{const F=new Map;for(const K of P.value)F.has(K.sclassID)||F.set(K.sclassID,[]),F.get(K.sclassID).push(K);return F}),I=$(()=>{var F;return((F=s.value)==null?void 0:F.data.leagues)??[]}),A=$(()=>{var F;return((F=s.value)==null?void 0:F.data.countries)??[]}),x=$(()=>I.value.map(F=>({...F,matches:L.value.filter(K=>K.sclassID===F.sclassID),isFavorite:e.favorite.leagues.includes(F.sclassID)})).filter(F=>F.matches.length>0)),Y=$(()=>I.value.map(F=>({...F,matches:R.value.get(F.sclassID)??[],isFavorite:e.favorite.leagues.includes(F.sclassID)})).filter(F=>F.matches.length>0)),U=$(()=>Y.value.filter(F=>F.isHot===1)),q=$(()=>I.value.map(F=>{const K=R.value.get(F.sclassID)??[],X=e.favorite.leagues.includes(F.sclassID);return{...F,matches:X?K:K.filter($e=>$e.isFavorite),isFavorite:X}}).filter(F=>F.isFavorite||F.matches.length>0)),N=$(()=>I.value.map(F=>({...F,matches:(R.value.get(F.sclassID)??[]).filter(K=>K.MatchState>ve.NotStarted),isFavorite:e.favorite.leagues.includes(F.sclassID)})).filter(F=>F.matches.length>0)),Q=$(()=>I.value.map(F=>({...F,matches:(R.value.get(F.sclassID)??[]).filter(K=>K.MatchState===ve.Finished),isFavorite:e.favorite.leagues.includes(F.sclassID)})).filter(F=>F.matches.length>0)),V=$(()=>I.value.map(F=>({...F,matches:(R.value.get(F.sclassID)??[]).filter(K=>K.MatchState===ve.NotStarted),isFavorite:e.favorite.leagues.includes(F.sclassID)})).filter(F=>F.matches.length>0)),ne=$(()=>{const F=new Map;for(const K of P.value){const X=Ye.utc(K.matchTime).local().format("YYYY-MM-DD");F.has(X)||F.set(X,[]),F.get(X).push({...K,league:te(K.sclassID)})}return Array.from(F.entries()).map(([K,X])=>({date:K,matches:X}))}),ee=$(()=>{const F=new Map;for(const K of P.value){const X=I.value.find($e=>$e.sclassID===K.sclassID);if((X==null?void 0:X.isHot)===1){const $e=Ye(K.matchTime).format("YYYY-MM-DD");F.has($e)||F.set($e,[]),F.get($e).push({...K,league:te(K.sclassID)})}}return Array.from(F.entries()).map(([K,X])=>({date:K,matches:X}))}),ue=$(()=>{const F=new Map;for(const K of P.value)if(K.MatchState>ve.NotStarted){const X=Ye.utc(K.matchTime).local().format("YYYY-MM-DD");F.has(X)||F.set(X,[]),F.get(X).push({...K,league:te(K.sclassID)})}return Array.from(F.entries()).map(([K,X])=>({date:K,matches:X}))}),ye=$(()=>{const F=new Map;for(const K of P.value)if(K.MatchState===ve.Finished){const X=Ye.utc(K.matchTime).local().format("YYYY-MM-DD");F.has(X)||F.set(X,[]),F.get(X).push({...K,league:te(K.sclassID)})}return Array.from(F.entries()).map(([K,X])=>({date:K,matches:X}))}),de=$(()=>{const F=new Map;for(const K of P.value)if(K.MatchState===ve.NotStarted){const X=Ye.utc(K.matchTime).local().format("YYYY-MM-DD");F.has(X)||F.set(X,[]),F.get(X).push({...K,league:te(K.sclassID)})}return Array.from(F.entries()).map(([K,X])=>({date:K,matches:X}))}),Me=$(()=>{const F=new Map;for(const K of P.value)if(K.isFavorite){const X=Ye(K.matchTime).format("YYYY-MM-DD");F.has(X)||F.set(X,[]),F.get(X).push({...K,league:te(K.sclassID)})}return Array.from(F.entries()).map(([K,X])=>({date:K,matches:X}))}),_e=$(()=>x.value.map(F=>({...F,isSelected:e.clientFilters.filterByLeagues.includes(F.sclassID)}))),he=$(()=>A.value.map(F=>({...F,leagues:_e.value.filter(K=>K.CountryID===F.CountryID)})).filter(F=>F.leagues.length>0));Be(l,(F,K,X)=>{if(!F)return;const $e=window.setInterval(()=>{o.refetch(),g.refetch()},kO);X(()=>{window.clearInterval($e)})});function te(F){return I.value.find(K=>K.sclassID===F)}return{dataRaw:{matches:$(()=>{var F;return[...((F=s.value)==null?void 0:F.data.matches)||[]]}),matchesWithOdds:D,fetchedDataOdd:$(()=>{var F;return[...((F=p.value)==null?void 0:F.data)||[]]}),liveUpdateApi:v,liveOddsApi:S,leagues:I,countries:A,odds:$(()=>{var F;return[...((F=p.value)==null?void 0:F.data)||[]]})},data:{filteredMatches:P,groupedByLeague:Y,groupedByLeagueFT:Q,groupedByLeagueHot:U,groupedByLeagueLive:N,groupedByLeagueSchedule:V,groupedByLeagueFavorite:q,groupedByTime:ne,groupedByTimeHot:ee,groupedByTimeLive:ue,groupedByTimeFT:ye,groupedByTimeSchedule:de,groupedByTimeFavorite:Me,countriesWithLeagues:he,leaguesWithFilterStatus:_e},errors:{matches:c,matchesLive:y,odds:w,oddsLive:M},isLoading:{matches:u,matchesLive:h,odds:m,oddsLive:O},isError:{matches:l,matchesLive:d,odds:_,oddsLive:T},matchQuery:o,liveUpdateQuery:f,oddsQuery:g,oddLiveQuery:b}}const Uf=(t,e)=>t==null||e==null||t===e?"none":t>e?"up":"down",IK=(t,e)=>{if(!t)return{up:null,goal:null,down:null};let r=null,n=null,a=null;e<=ve.NotStarted?(r=t.UpOdds??t.FirstUpodds??null,n=t.Goal??t.FirstGoal??null,a=t.DownOdds??t.FirstDownodds??null):(r=t.UpOdds_Real??t.FirstUpodds??null,n=t.Goal_Real??t.FirstGoal??null,a=t.DownOdds_Real??t.FirstDownodds??null);const i=Uf(r,t.FirstUpodds),o=Uf(n,t.FirstGoal),s=Uf(a,t.FirstDownodds);return{up:{value:r,oddState:i},goal:{value:n,oddState:o},down:{value:a,oddState:s}}};Yc.reduce((t,e)=>(t[e.value]=e.label,t),{});const LK=t=>{if(!t)return"#000000";const e=t.replace("#",""),r=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16);return(.299*r+.587*n+.114*a)/255>.5?"#000000":"#ffffff"},my=t=>t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[đĐ]/g,"d").replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-"),FO=async(t,e="vi")=>{const r=`${ct.baseURL}/v1/football/competitions/${t}?locale=${e}`,n=await Ct(r);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return(await n.json()).data},zf=async t=>{if(!t)throw new Error("seasonId is required to fetch league standings");const e=`${ct.baseURL}/v1/football/season/recent/table/detail?season_id=${t}&locale=vi`,r=await Ct(e);
9if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).data},NO=async t=>{const e=`${ct.baseURL}/v1/football/competitions/${t}/teams?locale=vi`,r=await Ct(e);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).data},_y=async t=>{if(!t)throw new Error("seasonId is required to fetch teams");const e=`${ct.baseURL}/v1/football/season/recent/team/stat?season_id=${t}&locale=vi`,r=await Ct(e);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).data},wy=async t=>{if(!t)throw new Error("seasonId is required to fetch top players");const e=`${ct.baseURL}/v1/football/season/recent/player/stat?season_id=${t}&locale=vi`,r=await Ct(e);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).data},by=async t=>{if(!t)throw new Error("seasonId is required to fetch league standings");const e=`${ct.baseURL}/v1/football/season/matches_by_round?season_id=${t}&locale=vi`,r=await Ct(e);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).data};var qr=(t=>(t[t.Goal=1]="Goal",t[t.Corner=2]="Corner",t[t.YellowCard=3]="YellowCard",t[t.RedCard=4]="RedCard",t[t.Offside=5]="Offside",t[t.FreeKick=6]="FreeKick",t[t.GoalKick=7]="GoalKick",t[t.Penalty=8]="Penalty",t[t.Substitution=9]="Substitution",t[t.Start=10]="Start",t[t.Midfield=11]="Midfield",t[t.End=12]="End",t[t.HalftimeScore=13]="HalftimeScore",t[t.CardUpgradeConfirmed=15]="CardUpgradeConfirmed",t[t.PenaltyMissed=16]="PenaltyMissed",t[t.OwnGoal=17]="OwnGoal",t[t.InjuryTime=19]="InjuryTime",t[t.ShotsOnTarget=21]="ShotsOnTarget",t[t.ShotsOffTarget=22]="ShotsOffTarget",t[t.Attacks=23]="Attacks",t[t.DangerousAttack=24]="DangerousAttack",t[t.BallPossession=25]="BallPossession",t[t.OvertimeOver=26]="OvertimeOver",t[t.PenaltyKickEnded=27]="PenaltyKickEnded",t[t.VAR=28]="VAR",t[t.PenaltyShootout=29]="PenaltyShootout",t[t.PenaltyShootoutMissed=30]="PenaltyShootoutMissed",t[t.ThrowIn=32]="ThrowIn",t[t.Dribble=33]="Dribble",t[t.DribbleSuccess=34]="DribbleSuccess",t[t.Clearances=36]="Clearances",t[t.BlockedShots=37]="BlockedShots",t[t.Intercept=38]="Intercept",t[t.Tackles=39]="Tackles",t[t.Pass=40]="Pass",t[t.PassSuccess=41]="PassSuccess",t[t.KeyPasses=42]="KeyPasses",t[t.Cross=43]="Cross",t[t.CrossSuccess=44]="CrossSuccess",t[t.LongPass=45]="LongPass",t[t.LongPassSuccess=46]="LongPassSuccess",t[t.DuelSuccess=48]="DuelSuccess",t[t.PassBroken=49]="PassBroken",t[t.Foul=51]="Foul",t[t.Save=52]="Save",t[t.Punches=53]="Punches",t[t.GoalkeeperStrikes=54]="GoalkeeperStrikes",t[t.GoalkeeperStrikesSuccess=55]="GoalkeeperStrikesSuccess",t[t.AerialDuel=56]="AerialDuel",t[t.DuelFailed=61]="DuelFailed",t[t.FreeKickEvent=63]="FreeKickEvent",t[t.FreeKickGoal=65]="FreeKickGoal",t[t.HitWoodwork=69]="HitWoodwork",t[t.FastBreak=70]="FastBreak",t[t.FastBreakShot=71]="FastBreakShot",t[t.FastBreakGoal=72]="FastBreakGoal",t[t.LostBall=78]="LostBall",t[t.WinAerialDuel=79]="WinAerialDuel",t[t.LoseAerialDuel=80]="LoseAerialDuel",t[t.WinGroundDuel=81]="WinGroundDuel",t[t.LoseGroundDuel=82]="LoseGroundDuel",t[t.Shots=83]="Shots",t))(qr||{});const Kw={1:"Bàn thắng",2:"Phạt góc",3:"Thẻ vàng",4:"Thẻ đỏ",5:"Việt vị",6:"Đá phạt",7:"Phát bóng từ vạch 5m50",8:"Phạt đền",9:"Thay người",10:"Bắt đầu",11:"Giữa sân",12:"Kết thúc",13:"Tỷ số hiệp một",15:"Xác nhận nâng thẻ",16:"Sút hỏng phạt đền",17:"Phản lưới nhà",19:"Bù giờ",21:"Sút trúng đích",22:"Sút ra ngoài",23:"Đợt tấn công",24:"Tấn công nguy hiểm",25:"Kiểm soát bóng",26:"Hết hiệp phụ",27:"Kết thúc đá luân lưu",28:"VAR",29:"Loạt sút luân lưu",30:"Sút hỏng luân lưu",32:"Ném biên",33:"Rê bóng",34:"Rê bóng thành công",36:"Phá bóng",37:"Sút bị chặn",38:"Cắt bóng",39:"Tắc bóng",40:"Đường chuyền",41:"Chuyền thành công",42:"Đường chuyền quyết định",43:"Tạt bóng",44:"Tạt bóng thành công",45:"Chuyền dài",46:"Chuyền dài thành công",48:"Thắng tranh chấp",49:"Đường chuyền bị chặn",51:"Phạm lỗi",52:"Cản phá",53:"Đấm bóng",54:"Thủ môn phát bóng",55:"Thủ môn phát bóng chính xác",56:"Tranh chấp trên không",61:"Thua tranh chấp",63:"Tình huống đá phạt",65:"Bàn thắng từ chấm đá phạt",69:"Trúng cột dọc/xà ngang",70:"Phản công nhanh",71:"Cú sút từ phản công",72:"Bàn thắng từ phản công",78:"Mất bóng",79:"Thắng tranh chấp trên không",80:"Thua tranh chấp trên không",81:"Thắng tranh chấp dưới đất",82:"Thua tranh chấp dưới đất",83:"Cú sút"},YO=[25,41],BO=new Set([ve.NotStarted,ve.FirstHalf,ve.HalfTimeBreak,ve.SecondHalf,ve.ExtraTime,ve.Penalty]),HO=t=>t!==void 0&&BO.has(t),Qw=t=>HO(t)?Ev:!1,UO=async t=>{const e=`${ct.baseURL}/v1/football/match/analysis?match_id=${t}&locale=vi`,r=await Ct(e);
9if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).data},Iv=async t=>{const e=`${ct.baseURL}/v1/football/match/live/history?match_id=${t}&locale=vi`,r=await Ct(e);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).data},Xw=async t=>{const e=`${ct.baseURL}/v1/football/match/detail?match_id=${t}&locale=vi`,r=await Ct(e);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).data},zO=async t=>{const e=`${ct.baseURL}/v1/football/match/lineup/detail?match_id=${t}&locale=vi`,r=await Ct(e);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).data},WO=async t=>{const e=`${ct.baseURL}/v1/football/match/trend/detail?match_id=${t}&locale=vi`,r=await Ct(e);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).data},VO=t=>({...so({queryKey:[Qe.MATCH_DETAIL.INFO,t],queryFn:()=>Xw(da(t)),enabled:$(()=>!!da(t)),refetchOnMount:!1,refetchOnWindowFocus:!1,refetchInterval:r=>{var n,a;return Qw((a=(n=r.state.data)==null?void 0:n.match)==null?void 0:a.MatchState)},refetchIntervalInBackground:!1})}),GO=t=>{const{data:e}=VO(t);return $(()=>{var r,n;return Qw((n=(r=e.value)==null?void 0:r.match)==null?void 0:n.MatchState)})},jO=t=>{const e=so({queryKey:[Qe.MATCH_DETAIL.HISTORY,t],queryFn:()=>Iv(da(t)),enabled:$(()=>!!da(t)),refetchOnMount:!1,refetchOnWindowFocus:!1,refetchInterval:GO(t),refetchIntervalInBackground:!1}),r=$(()=>{var o,s;return e.isLoading.value||!((s=(o=e.data.value)==null?void 0:o.half_team_stats)!=null&&s.ft.length)?[]:i(e.data.value.half_team_stats.p1)}),n=$(()=>{var o,s;return e.isLoading.value||!((s=(o=e.data.value)==null?void 0:o.half_team_stats)!=null&&s.p1.length)?[]:i(e.data.value.half_team_stats.p1)}),a=$(()=>{var o,s;return e.isLoading.value||!((s=(o=e.data.value)==null?void 0:o.half_team_stats)!=null&&s.p2.length)?[]:i(e.data.value.half_team_stats.p1)});function i(o){const s=o.map(u=>{const l=CM(u.home,u.away,1);return{homeValue:u.home,guestValue:u.away,homePercent:l.a,guestPercent:l.b,title:Kw[u.type]??"",balance:u.home>u.away?1:2,type:u.type,percentShow:YO.includes(u.type)}});return s==null?void 0:s.filter(u=>TM(u.title)&&!Number.isNaN(u.homeValue)&&!Number.isNaN(u.guestValue))}return{...e,statsDataFT:r,statsDataP1:n,statsDataP2:a}};/*! *****************************************************************************
10Copyright (c) Microsoft Corporation.
11
12Permission to use, copy, modify, and/or distribute this software for any
13purpose with or without fee is hereby granted.
14
15THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21PERFORMANCE OF THIS SOFTWARE.
22***************************************************************************** */var Lv=function(t,e){return Lv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Lv(t,e)};function Ae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Lv(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var np=12,qO="sans-serif",_a=np+"px "+qO,KO=20,QO=100,XO="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ZO(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),a=(t.charCodeAt(r)-KO)/QO;e[n]=a}return e}var JO=ZO(XO),wa={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var a=wa.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==n&&(e=t.font=n||_a),t.measureText(r);r=r||"",n=n||_a;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||np,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=JO[r[u]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},Zw=es(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Jw=es(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}
22),Lu=Object.prototype.toString,Gc=Array.prototype,eA=Gc.forEach,tA=Gc.filter,ap=Gc.slice,rA=Gc.map,Sy=(function(){}).constructor,Wu=Sy?Sy.prototype:null,ip="__proto__",nA=2311;function eb(){return nA++}function tb(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function ke(t){if(t==null||typeof t!="object")return t;var e=t,r=Lu.call(t);if(r==="[object Array]"){if(!Vs(t)){e=[];for(var n=0,a=t.length;n<a;n++)e[n]=ke(t[n])}}else if(Jw[r]){if(!Vs(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var n=0,a=t.length;n<a;n++)e[n]=t[n]}}}else if(!Zw[r]&&!Vs(t)&&!$v(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==ip&&(e[o]=ke(t[o]))}return e}function yt(t,e,r){if(!Te(e)||!Te(t))return r?ke(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==ip){var a=t[n],i=e[n];Te(i)&&Te(a)&&!pe(i)&&!pe(a)&&!$v(i)&&!$v(a)&&!Dy(i)&&!Dy(a)&&!Vs(i)&&!Vs(a)?yt(a,i,r):(r||!(n in t))&&(t[n]=ke(e[n]))}return t}function ie(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==ip&&(t[r]=e[r]);return t}function Nt(t,e,r){for(var n=ft(e),a=0,i=n.length;a<i;a++){var o=n[a];t[o]==null&&(t[o]=e[o])}return t}function lt(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function aA(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(t.prototype[a]=r[a]);t.prototype.constructor=t,t.superClass=e}function Nn(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&t[i]==null&&(t[i]=e[i])}else Nt(t,e)}function er(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function z(t,e,r){if(t&&e)if(t.forEach&&t.forEach===eA)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function Xe(t,e,r){if(!t)return[];if(!e)return rb(t);if(t.map&&t.map===rA)return t.map(e,r);for(var n=[],a=0,i=t.length;a<i;a++)n.push(e.call(r,t[a],a,t));return n}function es(t,e,r,n){if(t&&e){for(var a=0,i=t.length;a<i;a++)r=e.call(n,r,t[a],a,t);return r}}function xr(t,e,r){if(!t)return[];if(!e)return rb(t);if(t.filter&&t.filter===tA)return t.filter(e,r);for(var n=[],a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)&&n.push(t[a]);return n}function xK(t,e,r){if(t&&e){for(var n=0,a=t.length;n<a;n++)if(e.call(r,t[n],n,t))return t[n]}}function ft(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function iA(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(ap.call(arguments)))}}var en=Wu&&it(Wu.bind)?Wu.call.bind(Wu.bind):iA;function op(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(ap.call(arguments)))}}function pe(t){return Array.isArray?Array.isArray(t):Lu.call(t)==="[object Array]"}function it(t){return typeof t=="function"}function Ee(t){return typeof t=="string"}function xv(t){return Lu.call(t)==="[object String]"}function mt(t){return typeof t=="number"}function Te(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Dy(t){return!!Zw[Lu.call(t)]}function jt(t){return!!Jw[Lu.call(t)]}function $v(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function sp(t){return t.colorStops!=null}function $K(t){return t.image!=null}function oA(t){return t!==t}function kK(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function Re(t,e){return t??e}function Ws(t,e,r){return t??e??r}function rb(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return ap.apply(t,e)}function up(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function $n(t,e){if(!t)throw new Error(e)}function Ln(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var nb="__ec_primitive__";function kv(t){t[nb]=!0}function Vs(t){return t[nb]}var sA=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return ft(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),ab=typeof Map=="function";function uA(){return ab?new Map:new sA}var lA=function(){function t(e){var r=pe(e);this.data=uA();var n=this;e instanceof t?e.each(a):e&&z(e,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,a){e.call(r,n,a)})},t.prototype.keys=function(){var e=this.data.keys();return ab?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function He(t){return new lA(t)}function cA(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var a=t.length,n=0;n<e.length;n++)r[n+a]=e[n];return r}function jc(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&ie(r,e),r}function RK(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function un(t,e){return t.hasOwnProperty(e)}function mr(){}var fA=180/Math.PI,hA=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),vA=function(){function t(){this.browser=new hA,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),Le=new vA;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Le.wxa=!0,Le.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Le.worker=!0:!Le.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Le.node=!0,Le.svgSupported=!0):dA(navigator.userAgent,Le);function dA(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var pA=".",Ia="___EC__COMPONENT__CONTAINER___",ib="___EC__EXTENDED_CLASS___";function nn(t){var e={main:"",sub:""};if(t){var r=t.split(pA);e.main=r[0]||"",e.sub=r[1]||""}return e}function gA(t){$n(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function yA(t){return!!(t&&t[ib])}function lp(t,e){t.$constructor=t,t.extend=function(r){var n=this,a;return mA(n)?a=function(i){Ae(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},aA(a,this)),ie(a.prototype,r),a[ib]=!0,a.extend=this.extend,a.superCall=bA,a.superApply=SA,a.superClass=n,a}}function mA(t){return it(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function ob(t,e){t.extend=e.extend}var _A=Math.round(Math.random()*10);function wA(t){var e=["__\0is_clz",_A++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function bA(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function SA(t,e,r){return this.superClass.prototype[e].apply(t,r)}function cp(t){var e={};t.registerClass=function(n){var a=n.type||n.prototype.type;if(a){gA(a),n.prototype.type=a;var i=nn(a);if(!i.sub)e[i.main]=n;else if(i.sub!==Ia){var o=r(i);o[i.sub]=n}}return n},t.getClass=function(n,a,i){var o=e[n];if(o&&o[Ia]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var a=nn(n),i=[],o=e[a.main];return o&&o[Ia]?z(o,function(s,u){u!==Ia&&i.push(s)}):i.push(o),i},t.hasClass=function(n){var a=nn(n);return!!e[a.main]},t.getAllClassMainTypes=function(){var n=[];return z(e,function(a,i){n.push(i)}),n},t.hasSubTypes=function(n){var a=nn(n),i=e[a.main];return i&&i[Ia]};function r(n){var a=e[n.main];return(!a||!a[Ia])&&(a=e[n.main]={},a[Ia]=!0),a}}function su(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<t.length;s++){var u=t[s][1];if(!(a&&lt(a,u)>=0||i&&lt(i,u)<0)){var l=n.getShallow(u,e);l!=null&&(o[t[s][0]]=l)}}return o}}var DA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["o
22pacity"],["shadowColor"]],TA=su(DA),CA=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return TA(this,e,r)},t}(),sb=function(){function t(e){this.value=e}return t}(),MA=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new sb(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Yo=function(){function t(e){this._list=new MA,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete a[u.key],i=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new sb(r),s.key=e,n.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Rv=new Yo(50);function PA(t){if(typeof t=="string"){var e=Rv.get(t);return e&&e.image}else return t}function ub(t,e,r,n,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var i=Rv.get(t),o={hostEl:r,cb:n,cbPayload:a};return i?(e=i.image,!qc(e)&&i.pending.push(o)):(e=wa.loadImage(t,Ty,Ty),e.__zrImageSrc=t,Rv.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Ty(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function qc(t){return t&&t.width&&t.height}function yo(){return[1,0,0,1,0,0]}function lb(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function cb(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function kl(t,e,r){var n=e[0]*r[0]+e[2]*r[1],a=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],u=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=u,t}function Cy(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function OA(t,e,r,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],u=e[3],l=e[5],c=Math.sin(r),f=Math.cos(r);return t[0]=a*f+s*c,t[1]=-a*c+s*f,t[2]=i*f+u*c,t[3]=-i*c+f*u,t[4]=f*(o-n[0])+c*(l-n[1])+n[0],t[5]=f*(l-n[1])-c*(o-n[0])+n[1],t}function AA(t,e,r){var n=r[0],a=r[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function fp(t,e){var r=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],u=r*o-i*n;return u?(u=1/u,t[0]=o*u,t[1]=-i*u,t[2]=-n*u,t[3]=r*u,t[4]=(n*s-o*a)*u,t[5]=(i*a-r*s)*u,t):null}var rt=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,a){e.x=r.x+n.x*a,e.y=r.y+n.y*a},t.lerp=function(e,r,n,a){var i=1-a;e.x=i*r.x+a*n.x,e.y=i*r.y+a*n.y},t}(),ai=Math.min,uo=Math.max,Fv=Math.abs,My=["x","y"],EA=["width","height"],La=new rt,xa=new rt,$a=new rt,ka=new rt,Qt=fb(),Is=Qt.minTv,Nv=Qt.maxTv,Gs=[0,0],Fe=function(){function t(e,r,n,a){t.set(this,e,r,n,a)}return t.set=function(e,r,n,a,i){return a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),e.x=r,e.y=n,e.width=a,e.height=i,e},t.prototype.union=function(e){var r=ai(e.x,this.x),n=ai(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=uo(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=uo(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,a=e.height/r.height,i=yo();return Cy(i,i,[-r.x,-r.y]),AA(i,i,[n,a]),Cy(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,a){n&&rt.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(IA,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set(LA,r.x,r.y,r.width,r.height));var s=!!n;Qt.reset(a,s);var u=Qt.touchThreshold,l=e.x+u,c=e.x+e.width-u,f=e.y+u,v=e.y+e.height-u,h=r.x+u,d=r.x+r.width-u,y=r.y+u,g=r.y+r.height-u;if(l>c||f>v||h>d||y>g)return!1;var p=!(c<h||d<l||v<y||g<f);return(s||i)&&(Gs[0]=1/0,Gs[1]=0,Py(l,c,h,d,0,s,i,o),Py(f,v,y,g,1,s,i,o),s&&rt.copy(n,p?Qt.useDir?Qt.dirMinTv:Is:Nv)),p},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=r.x*a+o,e.y=r.y*i+s,e.width=r.width*a,e.height=r.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}La.x=$a.x=r.x,La.y=ka.y=r.y,xa.x=ka.x=r.x+r.width,xa.y=$a.y=r.y+r.height,La.transform(n),ka.transform(n),xa.transform(n),$a.transform(n),e.x=ai(La.x,xa.x,$a.x,ka.x),e.y=ai(La.y,xa.y,$a.y,ka.y);var u=uo(La.x,xa.x,$a.x,ka.x),l=uo(La.y,xa.y,$a.y,ka.y);e.width=u-e.x,e.height=l-e.y},t}(),IA=new Fe(0,0,0,0),LA=new Fe(0,0,0,0);function Py(t,e,r,n,a,i,o,s){var u=Fv(e-r),l=Fv(n-t),c=ai(u,l),f=My[a],v=My[1-a],h=EA[a];e<r||n<t?u<l?(i&&(Nv[f]=-u),s&&(o[f]=e,o[h]=0)):(i&&(Nv[f]=l),s&&(o[f]=t,o[h]=0)):(o&&(o[f]=uo(t,r),o[h]=ai(e,n)-o[f]),i&&(c<Gs[0]||Qt.useDir)&&(Gs[0]=ai(c,Gs[0]),(u<l||!Qt.bidirectional)&&(Is[f]=u,Is[v]=0,Qt.useDir&&Qt.calcDirMTV()),(u>=l||!Qt.bidirectional)&&(Is[f]=-l,Is[v]=0,Qt.useDir&&Qt.calcDirMTV())))}function fb(){var t=0,e=new rt,r=new rt,n={minTv:new rt,maxTv:new rt,useDir:!1,dirMinTv:ne
22w rt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=uo(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,u=Math.sin(t),l=Math.cos(t),c=u*i.y+l*i.x;if(a(c)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(r.x=s*l/c,r.y=s*u/c,a(r.x)&&a(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function a(i){return Fv(i)<1e-10}return n}function ln(t){Vu||(Vu=new Yo(100)),t=t||_a;var e=Vu.get(t);return e||(e={font:t,strWidthCache:new Yo(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:wa.measureText("国",t).width,asciiCharWidth:wa.measureText("a",t).width},Vu.put(t,e)),e}var Vu;function xA(t){if(!(Wf>=Oy)){t=t||_a;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=wa.measureText(String.fromCharCode(n),t).width;var a=+new Date-r;return a>16?Wf=Oy:a>2&&Wf++,e}}var Wf=0,Oy=5;function hb(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=xA(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function cn(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=wa.measureText(e,t.font).width,r.put(e,n)),n}function Ay(t,e,r,n){var a=cn(ln(e),t),i=Kc(e),o=Bo(0,a,r),s=mi(0,i,n),u=new Fe(o,s,a,i);return u}function FK(t,e,r,n){var a=((t||"")+"").split(`
23`),i=a.length;if(i===1)return Ay(a[0],e,r,n);for(var o=new Fe(0,0,0,0),s=0;s<a.length;s++){var u=Ay(a[s],e,r,n);s===0?o.copy(u):o.union(u)}return o}function Bo(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function mi(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function Kc(t){return ln(t).stWideCharWidth}function uu(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function vb(t,e,r){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=r.height,o=r.width,s=i/2,u=r.x,l=r.y,c="left",f="top";if(n instanceof Array)u+=uu(n[0],r.width),l+=uu(n[1],r.height),c=null,f=null;else switch(n){case"left":u-=a,l+=s,c="right",f="middle";break;case"right":u+=a+o,l+=s,f="middle";break;case"top":u+=o/2,l-=a,c="center",f="bottom";break;case"bottom":u+=o/2,l+=i+a,c="center";break;case"inside":u+=o/2,l+=s,c="center",f="middle";break;case"insideLeft":u+=a,l+=s,f="middle";break;case"insideRight":u+=o-a,l+=s,c="right",f="middle";break;case"insideTop":u+=o/2,l+=a,c="center";break;case"insideBottom":u+=o/2,l+=i-a,c="center",f="bottom";break;case"insideTopLeft":u+=a,l+=a;break;case"insideTopRight":u+=o-a,l+=a,c="right";break;case"insideBottomLeft":u+=a,l+=i-a,f="bottom";break;case"insideBottomRight":u+=o-a,l+=i-a,c="right",f="bottom";break}return t=t||{},t.x=u,t.y=l,t.align=c,t.verticalAlign=f,t}var Vf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function $A(t,e,r,n,a,i){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
24`);i=db(r,n,a,i);for(var s=!1,u={},l=0,c=o.length;l<c;l++)pb(u,o[l],i),o[l]=u.textLine,s=s||u.isTruncated;t.text=o.join(`
25`),t.isTruncated=s}function db(t,e,r,n){n=n||{};var a=ie({},n);r=Re(r,"..."),a.maxIterations=Re(n.maxIterations,2);var i=a.minChar=Re(n.minChar,0),o=a.fontMeasureInfo=ln(e),s=o.asciiCharWidth;a.placeholder=Re(n.placeholder,"");for(var u=t=Math.max(0,t-1),l=0;l<i&&u>=s;l++)u-=s;var c=cn(o,r);return c>u&&(r="",c=0),u=t-c,a.ellipsis=r,a.ellipsisWidth=c,a.contentWidth=u,a.containerWidth=t,a}function pb(t,e,r){var n=r.containerWidth,a=r.contentWidth,i=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=cn(i,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){e+=r.ellipsis;break}var u=s===0?kA(e,a,i):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,u),o=cn(i,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function kA(t,e,r){for(var n=0,a=0,i=t.length;a<i&&n<e;a++)n+=hb(r,t.charCodeAt(a));return a}function RA(t,e,r,n){var a=hp(t),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=e.font,c=i==="truncate",f=Kc(l),v=Re(e.lineHeight,f),h=e.lineOverflow==="truncate",d=!1,y=e.width;y==null&&r!=null&&(y=r-s);var g=e.height;g==null&&n!=null&&(g=n-u);var p;y!=null&&(i==="break"||i==="breakAll")?p=a?gb(a,e.font,y,i==="breakAll",0).lines:[]:p=a?a.split(`
26`):[];var m=p.length*v;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/v);d=d||p.length>_,p=p.slice(0,_),m=p.length*v}if(a&&c&&y!=null)for(var w=db(y,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},S=0;S<p.length;S++)pb(b,p[S],w),p[S]=b.textLine,d=d||b.isTruncated;for(var O=g,T=0,M=ln(l),S=0;S<p.length;S++)T=Math.max(cn(M,p[S]),T);y==null&&(y=T);var D=y;return O+=u,D+=s,{lines:p,height:g,outerWidth:D,outerHeight:O,lineHeight:v,calculatedLineHeight:f,contentWidth:T,contentHeight:m,width:y,isTruncated:d}}var FA=function(){function t(){}return t}(),Ey=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),NA=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();function YA(t,e,r,n,a){var i=new NA,o=hp(t);if(!o)return i;var s=e.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,c=e.width;c==null&&r!=null&&(c=r-u);var f=e.height;f==null&&n!=null&&(f=n-l);for(var v=e.overflow,h=(v==="break"||v==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:v==="breakAll"}:null,d=Vf.lastIndex=0,y;(y=Vf.exec(o))!=null;){var g=y.index;g>d&&Gf(i,o.substring(d,g),e,h),Gf(i,y[2],e,h,y[1]),d=Vf.lastIndex}d<o.length&&Gf(i,o.substring(d,o.length),e,h);var p=[],m=0,_=0,w=v==="truncate",b=e.lineOverflow==="truncate",S={};function O(ye,de,Me){ye.width=de,ye.lineHeight=Me,m+=Me,_=Math.max(_,de)}e:for(var T=0;T<i.lines.length;T++){for(var M=i.lines[T],D=0,P=0,L=0;L<M.tokens.length;L++){var R=M.tokens[L],I=R.styleName&&e.rich[R.styleName]||{},A=R.textPadding=I.padding,x=A?A[1]+A[3]:0,Y=R.font=I.font||e.font;R.contentHeight=Kc(Y);var U=Re(I.height,R.contentHeight);if(R.innerHeight=U,A&&(U+=A[0]+A[2]),R.height=U,R.lineHeight=Ws(I.lineHeight,e.lineHeight,U),R.align=I&&I.align||a,R.verticalAlign=I&&I.verticalAlign||"middle",b&&f!=null&&m+R.lineHeight>f){var q=i.lines.length;L>0?(M.tokens=M.tokens.slice(0,L),O(M,P,D),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<q;break e}var N=I.width,Q=N==null||N==="auto";if(typeof N=="string"&&N.charAt(N.length-1)==="%")R.percentWidth=N,p.push(R),R.contentWidth=cn(ln(Y),R.text);else{if(Q){var V=I.backgroundColor,ne=V&&V.image;ne&&(ne=PA(ne),qc(ne)&&(R.width=Math.max(R.width,ne.width*U/ne.he
26ight)))}var ee=w&&c!=null?c-P:null;ee!=null&&ee<R.width?!Q||ee<x?(R.text="",R.width=R.contentWidth=0):($A(S,R.text,ee-x,Y,e.ellipsis,{minChar:e.truncateMinChar}),R.text=S.text,i.isTruncated=i.isTruncated||S.isTruncated,R.width=R.contentWidth=cn(ln(Y),R.text)):R.contentWidth=cn(ln(Y),R.text)}R.width+=x,P+=R.width,I&&(D=Math.max(D,R.lineHeight))}O(M,P,D)}i.outerWidth=i.width=Re(c,_),i.outerHeight=i.height=Re(f,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=u,i.outerHeight+=l;for(var T=0;T<p.length;T++){var R=p[T],ue=R.percentWidth;R.width=parseInt(ue,10)/100*i.width}return i}function Gf(t,e,r,n,a){var i=e==="",o=a&&r.rich[a]||{},s=t.lines,u=o.font||r.font,l=!1,c,f;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=uu(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(c=e.split(`
27`),l=!0),n.accumWidth=d}else{var y=gb(e,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=y.accumWidth+h,f=y.linesWidths,c=y.lines}}c||(c=e.split(`
28`));for(var g=ln(u),p=0;p<c.length;p++){var m=c[p],_=new FA;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=f?f[p]:cn(g,m),!p&&!l){var w=(s[s.length-1]||(s[0]=new Ey)).tokens,b=w.length;b===1&&w[0].isLineHolder?w[0]=_:(m||!b||i)&&w.push(_)}else s.push(new Ey([_]))}}function BA(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var HA=es(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function UA(t){return BA(t)?!!HA[t]:!0}function gb(t,e,r,n,a){for(var i=[],o=[],s="",u="",l=0,c=0,f=ln(e),v=0;v<t.length;v++){var h=t.charAt(v);if(h===`
29`){u&&(s+=u,c+=l),i.push(s),o.push(c),s="",u="",l=0,c=0;continue}var d=hb(f,h.charCodeAt(0)),y=n?!1:!UA(h);if(i.length?c+d>r:a+c+d>r){c?(s||u)&&(y?(s||(s=u,u="",l=0,c=l),i.push(s),o.push(c-l),u+=h,l+=d,s="",c=l):(u&&(s+=u,u="",l=0),i.push(s),o.push(c),s=h,c=d)):y?(i.push(u),o.push(l),u=h,l=d):(i.push(h),o.push(d));continue}c+=d,y?(u+=h,l+=d):(u&&(s+=u,u="",l=0),s+=h)}return u&&(s+=u),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}function Iy(t,e,r,n,a,i){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;Fe.set(Ly,Bo(r,o,a),mi(n,s,i),o,s),Fe.intersect(e,Ly,null,xy);var u=xy.outIntersectRect;t.outerWidth=u.width,t.outerHeight=u.height,t.baseX=Bo(u.x,u.width,a,!0),t.baseY=mi(u.y,u.height,i,!0)}}var Ly=new Fe(0,0,0,0),xy={outIntersectRect:{},clamp:!0};function hp(t){return t!=null?t+="":t=""}function zA(t){var e=hp(t.text),r=t.font,n=cn(ln(r),e),a=Kc(r);return Yv(t,n,a,null)}function Yv(t,e,r,n){var a=new Fe(Bo(t.x||0,e,t.textAlign),mi(t.y||0,r,t.textBaseline),e,r),i=n??(yb(t)?t.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function yb(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}function ts(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function WA(t){return[t[0],t[1]]}function $y(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function VA(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function GA(t){return Math.sqrt(jA(t))}function jA(t){return t[0]*t[0]+t[1]*t[1]}function jf(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function qA(t,e){var r=GA(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Bv(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var KA=Bv;function QA(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var mo=QA;function _o(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function lo(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function co(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ky=lb,Ry=5e-5;function Ra(t){return t>Ry||t<-Ry}var Fa=[],zi=[],qf=yo(),Kf=Math.abs,vp=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Ra(this.rotation)||Ra(this.x)||Ra(this.y)||Ra(this.scaleX-1)||Ra(this.scaleY-1)||Ra(this.skewX)||Ra(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(ky(n),this.invTransform=null);return}n=n||yo(),r?this.getLocalTransform(n):ky(n),e&&(r?kl(n,e,n):cb(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Fa);
vendor: 4,623 bytes, line 29
29var n=Fa[0]<0?-1:1,a=Fa[1]<0?-1:1,i=((Fa[0]-n)*r+n)/Fa[0]||0,o=((Fa[1]-a)*r+a)/Fa[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||yo(),fp(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||yo(),kl(zi,e.invTransform,r),r=zi);var n=this.originX,a=this.originY;(n||a)&&(qf[4]=n,qf[5]=a,kl(zi,r,qf),zi[4]-=n,zi[5]-=a,r=zi),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],a=this.invTransform;return a&&_o(n,n,a),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],a=this.transform;return a&&_o(n,n,a),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Kf(e[0]-1)>1e-10&&Kf(e[3]-1)>1e-10?Math.sqrt(Kf(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){XA(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,u=e.anchorY,l=e.rotation||0,c=e.x,f=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||u){var d=n+s,y=a+u;r[4]=-d*i-v*y*o,r[5]=-y*o-h*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=v*o,l&&OA(r,r,l),r[4]+=n+c,r[5]+=a+f,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),lu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function XA(t,e){for(var r=0;r<lu.length;r++){var n=lu[r];t[n]=e[n]}}var js={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-js.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?js.bounceIn(t*2)*.5:js.bounceOut(t*2-1)*.5+.5}}
29,Gu=Math.pow,ya=Math.sqrt,oc=1e-8,mb=1e-4,Fy=ya(3),ju=1/3,tn=ts(),vr=ts(),wo=ts();function va(t){return t>-oc&&t<oc}function _b(t){return t>oc||t<-oc}function xt(t,e,r,n,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*n+3*i*r)}function Ny(t,e,r,n,a){var i=1-a;return 3*(((e-t)*i+2*(r-e)*a)*i+(n-r)*a*a)}function wb(t,e,r,n,a,i){var o=n+3*(e-r)-t,s=3*(r-e*2+t),u=3*(e-t),l=t-a,c=s*s-3*o*u,f=s*u-9*o*l,v=u*u-3*s*l,h=0;if(va(c)&&va(f))if(va(s))i[0]=0;else{var d=-u/s;d>=0&&d<=1&&(i[h++]=d)}else{var y=f*f-4*c*v;if(va(y)){var g=f/c,d=-s/o+g,p=-g/2;d>=0&&d<=1&&(i[h++]=d),p>=0&&p<=1&&(i[h++]=p)}else if(y>0){var m=ya(y),_=c*s+1.5*o*(-f+m),w=c*s+1.5*o*(-f-m);_<0?_=-Gu(-_,ju):_=Gu(_,ju),w<0?w=-Gu(-w,ju):w=Gu(w,ju);var d=(-s-(_+w))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var b=(2*c*s-3*o*f)/(2*ya(c*c*c)),S=Math.acos(b)/3,O=ya(c),T=Math.cos(S),d=(-s-2*O*T)/(3*o),p=(-s+O*(T+Fy*Math.sin(S)))/(3*o),M=(-s+O*(T-Fy*Math.sin(S)))/(3*o);d>=0&&d<=1&&(i[h++]=d),p>=0&&p<=1&&(i[h++]=p),M>=0&&M<=1&&(i[h++]=M)}}return h}function bb(t,e,r,n,a){var i=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,u=0;if(va(o)){if(_b(i)){var l=-s/i;l>=0&&l<=1&&(a[u++]=l)}}else{var c=i*i-4*o*s;if(va(c))a[0]=-i/(2*o);else if(c>0){var f=ya(c),l=(-i+f)/(2*o),v=(-i-f)/(2*o);l>=0&&l<=1&&(a[u++]=l),v>=0&&v<=1&&(a[u++]=v)}}return u}function sc(t,e,r,n,a,i){var o=(e-t)*a+t,s=(r-e)*a+e,u=(n-r)*a+r,l=(s-o)*a+o,c=(u-s)*a+s,f=(c-l)*a+l;i[0]=t,i[1]=o,i[2]=l,i[3]=f,i[4]=f,i[5]=c,i[6]=u,i[7]=n}function ZA(t,e,r,n,a,i,o,s,u,l,c){var f,v=.005,h=1/0,d,y,g,p;tn[0]=u,tn[1]=l;for(var m=0;m<1;m+=.05)vr[0]=xt(t,r,a,o,m),vr[1]=xt(e,n,i,s,m),g=mo(tn,vr),g<h&&(f=m,h=g);h=1/0;for(var _=0;_<32&&!(v<mb);_++)d=f-v,y=f+v,vr[0]=xt(t,r,a,o,d),vr[1]=xt(e,n,i,s,d),g=mo(vr,tn),d>=0&&g<h?(f=d,h=g):(wo[0]=xt(t,r,a,o,y),wo[1]=xt(e,n,i,s,y),p=mo(wo,tn),y<=1&&p<h?(f=y,h=p):v*=.5);return ya(h)}function JA(t,e,r,n,a,i,o,s,u){for(var l=t,c=e,f=0,v=1/u,h=1;h<=u;h++){var d=h*v,y=xt(t,r,a,o,d),g=xt(e,n,i,s,d),p=y-l,m=g-c;f+=Math.sqrt(p*p+m*m),l=y,c=g}return f}function zt(t,e,r,n){var a=1-n;return a*(a*t+2*n*e)+n*n*r}function Yy(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function eE(t,e,r,n,a){var i=t-2*e+r,o=2*(e-t),s=t-n,u=0;if(va(i)){if(_b(o)){var l=-s/o;l>=0&&l<=1&&(a[u++]=l)}}else{var c=o*o-4*i*s;if(va(c)){var l=-o/(2*i);l>=0&&l<=1&&(a[u++]=l)}else if(c>0){var f=ya(c),l=(-o+f)/(2*i),v=(-o-f)/(2*i);l>=0&&l<=1&&(a[u++]=l),v>=0&&v<=1&&(a[u++]=v)}}return u}function Sb(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function uc(t,e,r,n,a){var i=(e-t)*n+t,o=(r-e)*n+e,s=(o-i)*n+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function tE(t,e,r,n,a,i,o,s,u){var l,c=.005,f=1/0;tn[0]=o,tn[1]=s;for(var v=0;v<1;v+=.05){vr[0]=zt(t,r,a,v),vr[1]=zt(e,n,i,v);var h=mo(tn,vr);h<f&&(l=v,f=h)}f=1/0;for(var d=0;d<32&&!(c<mb);d++){var y=l-c,g=l+c;vr[0]=zt(t,r,a,y),vr[1]=zt(e,n,i,y);var h=mo(vr,tn);if(y>=0&&h<f)l=y,f=h;else{wo[0]=zt(t,r,a,g),wo[1]=zt(e,n,i,g);var p=mo(wo,tn);g<=1&&p<f?(l=g,f=p):c*=.5}}return ya(f)}function rE(t,e,r,n,a,i,o){for(var s=t,u=e,l=0,c=1/o,f=1;f<=o;f++){var v=f*c,h=zt(t,r,a,v),d=zt(e,n,i,v),y=h-s,g=d-u;l+=Math.sqrt(y*y+g*g),s=h,u=d}return l}var nE=/cubic-bezier\(([0-9,\.e ]+)\)/;function Db(t){var e=t&&nE.exec(t);if(e){var r=e[1].split(","),n=+Ln(r[0]),a=+Ln(r[1]),i=+Ln(r[2]),o=+Ln(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:wb(0,n,i,1,u,s)&&xt(0,a,o,1,s[0])}}}var aE=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||mr,this.ondestroy=e.ondestroy||mr,this.onrestart=e.onrestart||mr,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;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 u=a%n;this._startTime=e-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=it(e)?e:js[e]||Db(e)},t}(),By={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 qs(t){return t=Math.round(t),t<0?0:t>255?255:t}function Hy(t){return t<0?0:t>1?1:t}function Qf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?qs(parseFloat(e)/100*255):qs(parseInt(e,10))}function _i(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Hy(parseFloat(e)/100):Hy(parseFloat(e))}function Xf(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function or(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function Hv(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Tb=new Yo(20),qu=null;function Wi(t,e){qu&&Hv(qu,e),qu=Tb.put(t,qu||e.slice())}function wi(t,e){if(t){e=e||[];var r=Tb.get(t);if(r)return Hv(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in By)return Hv(e,By[n]),Wi(t,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){or(e,0,0,0,1);return}return or(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Wi(t,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){or(e,0,0,0,1);return}return or(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Wi(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),c=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?or(e,+l[0],+l[1],+l[2],1):or(e,0,0,0,1);c=_i(l.pop());case"rgb":if(l.length>=3)return or(e,Qf(l[0]),Qf(l[1]),Qf(l[2]),l.length===3?c:_i(l[3])),Wi(t,e),e;or(e,0,0,0,1);return;case"hsla":if(l.length!==4){or(e,0,0,0,1);return}return l[3]=_i(l[3]),Uv(l,e),Wi(t,e),e;case"hsl":if(l.length!==3){or(e,0,0,0,1);return}return Uv(l,e),Wi(t,e),e;default:return}}or(e,0,0,0,1)}}function Uv(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=_i(t[1]),a=_i(t[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],or(e,qs(Xf(o,i,r+1/3)*255),qs(Xf(o,i,r)*255),qs(Xf(o,i,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function iE(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=i-a,s=(i+a)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(i+a):l=o/(2-i-a);var c=((i-e)/6+o/2)/o,f=((i-r)/6+o/2)/o,v=((i-n)/6+o/2)/o;e===i?u=v-f:r===i?u=1/3+c-v:n===i&&(u=2/3+f-c),u<0&&(u+=1),u>1&&(u-=1)}var h=[u*360,l,s];return t[3]!=null&&h.push(t[3]),h}}function Uy(t,e){var r=wi(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return dp(r,r.length===4?"rgba":"rgb")}}function zv(t,e,r,n){var a=wi(t);if(t)return a=iE(a),r!=null&&(a[1]=_i(it(r)?r(a[1]):r)),n!=null&&(a[2]=_i(it(n)?n(a[2]):n)),dp(Uv(a
29),"rgba")}function dp(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function lc(t,e){var r=wi(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var zy=new Yo(100);function Wy(t){if(Ee(t)){var e=zy.get(t);return e||(e=Uy(t,-.1),zy.put(t,e)),e}else if(sp(t)){var r=ie({},t);return r.colorStops=Xe(t.colorStops,function(n){return{offset:n.offset,color:Uy(n.color,-.1)}}),r}return t}function oE(t){return t.type==="linear"}function sE(t){return t.type==="radial"}(function(){return Le.hasGlobalWindow&&it(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var Wv=Array.prototype.slice;function Cn(t,e,r){return(e-t)*r+t}function Zf(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=Cn(e[i],r[i],n);return t}function uE(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=Cn(e[o][s],r[o][s],n)}return t}function Ku(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+r[i]*n;return t}function Vy(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function lE(t,e){for(var r=t.length,n=e.length,a=r>n?e:t,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function cE(t,e,r){var n=t,a=e;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var u=i;u<o;u++)n.push(r===1?a[u]:Wv.call(a[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=a[u]);else for(var c=0;c<l;c++)isNaN(n[u][c])&&(n[u][c]=a[u][c])}}function Rl(t){if(er(t)){var e=t.length;if(er(t[0])){for(var r=[],n=0;n<e;n++)r.push(Wv.call(t[n]));return r}return Wv.call(t)}return t}function Fl(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function fE(t){return er(t&&t[0])?2:1}var Qu=0,Nl=1,Cb=2,Ls=3,Vv=4,Gv=5,Gy=6;function jy(t){return t===Vv||t===Gv}function Xu(t){return t===Nl||t===Cb}var ps=[0,0,0,0],hE=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=Gy,u=r;if(er(r)){var l=fE(r);s=l,(l===1&&!mt(r[0])||l===2&&!mt(r[0][0]))&&(o=!0)}else if(mt(r)&&!oA(r))s=Qu;else if(Ee(r))if(!isNaN(+r))s=Qu;else{var c=wi(r);c&&(u=c,s=Ls)}else if(sp(r)){var f=ie({},u);f.colorStops=Xe(r.colorStops,function(h){return{offset:h.offset,color:wi(h.color)}}),oE(r)?s=Vv:sE(r)&&(s=Gv),u=f}i===0?this.valType=s:(s!==this.valType||s===Gy)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:u,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=it(n)?n:js[n]||Db(n)),a.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(y,g){return y.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,u=Xu(a),l=jy(a),c=0;c<i;c++){var f=n[c],v=f.value,h=o.value;f.percent=f.time/e,s||(u&&c!==i-1?cE(v,h,a):l&&lE(v.colorStops,h.colorStops))}if(!s&&a!==Gv&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,c=0;c<i;c++)a===Qu?n[c].additiveValue=n[c].value-d:a===Ls?n[c].additiveValue=Ku([],n[c].value,d,-1):Xu(a)&&(n[c].additiveValue=a===Nl?Ku([],n[c].value,d,-1):Vy([],n[c].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=i===Ls,c,f=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var y=v(f+1,s-1);for(c=y;c>=0&&!(o[c].percent<=r);c--);c=v(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=v(c-1,s-2)}d=o[c+1],h=o[c]}if(h&&d){this._lastFr=c,this._lastFrP=r;var g=d.percent-h.percent,p=g===0?1:v((r-h.percent)/g,1);d.easingFunc&&(p=d.easingFunc(p));var m=n?this._additiveValue:l?ps:e[u];if((Xu(i)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)e[u]=p<1?h.rawValue:d.rawValue;else if(Xu(i))i===Nl?Zf(m,h[a],d[a],p):uE(m,h[a],d[a],p);else if(jy(i)){var _=h[a],w=d[a],b=i===Vv;e[u]={type:b?"linear":"radial",x:Cn(_.x,w.x,p),y:Cn(_.y,w.y,p),colorStops:Xe(_.colorStops,function(O,T){var M=w.colorStops[T];return{offset:Cn(O.offset,M.offset,p),color:Fl(Zf([],O.color,M.color,p))}}),global:w.global},b?(e[u].x2=Cn(_.x2,w.x2,p),e[u].y2=Cn(_.y2,w.y2,p)):e[u].r=Cn(_.r,w.r,p)}
vendor: 7,828 bytes, line 29
29else if(l)Zf(m,h[a],d[a],p),n||(e[u]=Fl(m));else{var S=Cn(h[a],d[a],p);n?this._additiveValue=S:e[u]=S}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,a=this._additiveValue;r===Qu?e[n]=e[n]+a:r===Ls?(wi(e[n],ps),Ku(ps,ps,a,1),e[n]=Fl(ps)):r===Nl?Ku(e[n],e[n],a,1):r===Cb&&Vy(e[n],e[n],a,1)},t}(),pp=function(){function t(e,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a){tb("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,ft(r),n)},t.prototype.whenWithKeys=function(e,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],u=i[s];if(!u){u=i[s]=new hE(s);var l=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,v=f[f.length-1];l=v&&v.value,c.valType===Ls&&l&&(l=Fl(l))}else l=this._target[s];if(l==null)continue;e>0&&u.addKeyframe(0,Rl(l),a),this._trackKeys.push(s)}u.addKeyframe(e,Rl(r[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(r=i)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,c=l.length;if(s.prepare(a,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=l[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new aE({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var y=!1,g=0;g<d.length;g++)if(d[g]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var p=r._onframeCbs;if(p)for(var g=0;g<p.length;g++)p[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return Xe(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(e[i]=Rl(u.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ft(e);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),Yn=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var u={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,c=i[e][l];return c&&c.callAtLast?i[e].splice(l,0,u):i[e].push(u),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==r&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,u=0;u<s;u++){var l=a[u];if(!(i&&i.filter&&l.query!=null&&!i.filter(e,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],u=a.length,l=0;l<u;l++){var c=a[l];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t}(),Mb=1;Le.hasGlobalWindow&&(Mb=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var qy=Mb,jv=.4,qv="#333",Kv="#ccc",vE="#eee",rn=1,xs=2,io=4,Jf="__zr_normal__",eh=lu.concat(["ignore"]),dE=es(lu,function(t,e){return t[e]=!0,t},{ignore:!1}),Vi={},pE=new Fe(0,0,0,0),Zu=[],Qc=function(){function t(e){this.id=eb(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,u=!1;i.parent=a?this:null;var l=!1;i.copyTransform(r);var c=n.position!=null,f=n.autoOverflowArea,v=void 0;if((f||c)&&(v=pE,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect
29()),a||v.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(Vi,n,v):vb(Vi,n,v),i.x=Vi.x,i.y=Vi.y,o=Vi.align,s=Vi.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,y=void 0;h==="center"?(d=v.width*.5,y=v.height*.5):(d=uu(h[0],v.width),y=uu(h[1],v.height)),l=!0,i.originX=-i.x+d+(a?0:v.x),i.originY=-i.y+y+(a?0:v.y)}}n.rotation!=null&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],l||(i.originX=-g[0],i.originY=-g[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var m=p.overflowRect=p.overflowRect||new Fe(0,0,0,0);i.getLocalTransform(Zu),fp(Zu,Zu),Fe.copy(m,v),m.applyTransform(Zu)}else p.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,w=void 0,b=void 0,S=void 0;_&&this.canBeInsideText()?(w=n.insideFill,b=n.insideStroke,(w==null||w==="auto")&&(w=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(w),S=!0)):(w=n.outsideFill,b=n.outsideStroke,(w==null||w==="auto")&&(w=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(w),S=!0)),w=w||"#000",(w!==p.fill||b!==p.stroke||S!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=w,p.stroke=b,p.autoStroke=S,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=rn,u&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Kv:qv},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&wi(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,dp(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},ie(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(Te(e))for(var n=e,a=ft(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Jf)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,eh)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in r)&&(r[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Jf,!1,e)},t.prototype.useState=function(e,r,n,a){var i=e===Jf,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,u=this.stateTransition;if(!(lt(s,e)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!i){tb("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(l);var c=!!(l&&l.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,r,!n&&!this.__inHover&&u&&u.duration>0,u);var f=this._textContent,v=this._textGuide;return f&&f.useState(e,r,n,c),v&&v.useState(e,r,n,c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~rn),l}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var u=0;u<o;u++)if(e[u]!==i[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=e[u],c=void 0;this.stateProxy&&(c=this.stateProxy(l,e)),c||(c=this.states[l]),c&&a.push(c)}var f=a[o-1],v=!!(f&&f.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,g=this._textGuide;y&&y.useStates(e,r,v),g&&g.useStates(e,r,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~rn)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=lt(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var a=this.currentStates.slice(),i=lt(a,e),o=lt(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,a=0;a<e.length;a++){var i=e[a];ie(r,i),i.textConfig&&(n=n||{},ie(n,i.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=ie({},a?this.textConfig:n.textConfig),ie(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,c=0;c<eh.length;c++){var f=eh[c],v=i&&dE[f];r&&r[f]!=null?v?(l=!0,u[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(v?(l=!0,u[f]=n[f]):this[f]=n[f])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(e,u,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new vp,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),ie(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=rn;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var a=e?this[e]:this,i=new pp(a,r,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,r){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=lt(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},t.prototype.animateTo=function(e,r,n){th(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){th(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,a){for(var i=th(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=rn;function r(n,a,i,o){Object.defineProperty(e,n,{get:function(){if(!this[a]){var u=this[a]=[];s(this,u)}return this[a]},set:function(u){this[i]=u[0],this[o]=u[1],this[a]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[i]},set:function(c){u[i]=c}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(c){u[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();Nn(Qc,Yn);Nn(Qc,vp);function th(t,e,r,n,a){r=r||{};var i=[];Pb(t,"",t,e,r,n,i,a);var o=i.length,s=!1,u=r.done,l=r.aborted,c=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},f=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),i.length>0&&r.during&&i[0].during(function(d,y){r.during(y)});for(var v=0;v<i.length;v++){var h=i[v];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function rh(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function gE(t){return er(t[0])}function yE(t,e,r){if(er(e[r]))if(er(t[r])||(t[r]=[]),jt(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),rh(t[r],e[r],n))}else{var a=e[r],i=t[r],o=a.length;if(gE(a))for(var s=a[0].length,u=0;u<o;u++)i[u]?rh(i[u],a[u],s):i[u]=Array.prototype.slice.call(a[u]);else rh(i,a,o);i.length=a.length}else t[r]=e[r]}function mE(t,e){return t===e||er(t)&&er(e)&&_E(t,e)}function _E(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Pb(t,e,r,n,a,i,o,s){for(var u=ft(n),l=a.duration,c=a.delay,f=a.additive,v=a.setToFinal,h=!Te(i),d=t.animators,y=[],g=0;g<u.length;g++){var p=u[g],m=n[p];if(m!=null&&r[p]!=null&&(h||i[p]))if(Te(m)&&!er(m)&&!sp(m)){if(e){s||
29(r[p]=m,t.updateDuringAnimation(e));continue}Pb(t,p,r[p],m,a,i&&i[p],o,s)}else y.push(p);else s||(r[p]=m,t.updateDuringAnimation(e),y.push(p))}var _=y.length;if(!f&&_)for(var w=0;w<d.length;w++){var b=d[w];if(b.targetName===e){var S=b.stopTracks(y);if(S){var O=lt(d,b);d.splice(O,1)}}}if(a.force||(y=xr(y,function(P){return!mE(n[P],r[P])}),_=y.length),_>0||a.force&&!o.length){var T=void 0,M=void 0,D=void 0;if(s){M={},v&&(T={});for(var w=0;w<_;w++){var p=y[w];M[p]=r[p],v?T[p]=n[p]:r[p]=n[p]}}else if(v){D={};for(var w=0;w<_;w++){var p=y[w];D[p]=Rl(r[p]),yE(r,n,p)}}var b=new pp(r,!1,!1,f?xr(d,function(L){return L.targetName===e}):null);b.targetName=e,a.scope&&(b.scope=a.scope),v&&T&&b.whenWithKeys(0,T,y),D&&b.whenWithKeys(0,D,y),b.whenWithKeys(l??500,s?M:n,y).delay(c||0),t.addAnimator(b,e),o.push(b)}}var Qv="__zr_style_"+Math.round(Math.random()*10),bi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bi[Qv]=!0;var Ky=["z","z2","invisible"],wE=["invisible"],xu=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=ft(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):t.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&bE(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,u=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Fe(0,0,0,0)),n?Fe.applyTransform(r,a,n):r.copy(a),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Fe(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:ie(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=xs,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&xs)},e.prototype.styleUpdated=function(){this.__dirty&=~xs},e.prototype.createStyle=function(r){return jc(bi,r)},e.prototype.useStyle=function(r){r[Qv]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[Qv]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Ky)},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var u=!(n&&i),l;if(n&&n.style?o?i?l=n.style:(l=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(l,n.style)):u&&(l=
vendor: 5,965 bytes, line 29
29a.style),l)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var f=ft(c),v=0;v<f.length;v++){var h=f[v];h in l&&(l[h]=l[h],this.style[h]=c[h])}for(var d=ft(l),v=0;v<d.length;v++){var h=d[v];this.style[h]=this.style[h]}this._transitionState(r,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var y=this.__inHover?wE:Ky,v=0;v<y.length;v++){var h=y[v];n&&n[h]!=null?this[h]=n[h]:u&&a[h]!=null&&(this[h]=a[h])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(r,n){return ie(r,n),r},e.prototype.getAnimationStyleProps=function(){return Xc},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=rn|xs}(),e}(Qc),nh=new Fe(0,0,0,0),ah=new Fe(0,0,0,0);function bE(t,e,r){return nh.copy(t.getBoundingRect()),t.transform&&nh.applyTransform(t.transform),ah.width=e,ah.height=r,!nh.intersect(ah)}var dr=Math.min,pr=Math.max,ih=Math.sin,oh=Math.cos,Na=Math.PI*2,Ju=ts(),el=ts(),tl=ts();function Qy(t,e,r,n,a,i){a[0]=dr(t,r),a[1]=dr(e,n),i[0]=pr(t,r),i[1]=pr(e,n)}var Xy=[],Zy=[];function SE(t,e,r,n,a,i,o,s,u,l){var c=bb,f=xt,v=c(t,r,a,o,Xy);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var h=0;h<v;h++){var d=f(t,r,a,o,Xy[h]);u[0]=dr(d,u[0]),l[0]=pr(d,l[0])}v=c(e,n,i,s,Zy);for(var h=0;h<v;h++){var y=f(e,n,i,s,Zy[h]);u[1]=dr(y,u[1]),l[1]=pr(y,l[1])}u[0]=dr(t,u[0]),l[0]=pr(t,l[0]),u[0]=dr(o,u[0]),l[0]=pr(o,l[0]),u[1]=dr(e,u[1]),l[1]=pr(e,l[1]),u[1]=dr(s,u[1]),l[1]=pr(s,l[1])}function DE(t,e,r,n,a,i,o,s){var u=Sb,l=zt,c=pr(dr(u(t,r,a),1),0),f=pr(dr(u(e,n,i),1),0),v=l(t,r,a,c),h=l(e,n,i,f);o[0]=dr(t,a,v),o[1]=dr(e,i,h),s[0]=pr(t,a,v),s[1]=pr(e,i,h)}function TE(t,e,r,n,a,i,o,s,u){var l=lo,c=co,f=Math.abs(a-i);if(f%Na<1e-4&&f>1e-4){s[0]=t-r,s[1]=e-n,u[0]=t+r,u[1]=e+n;return}if(Ju[0]=oh(a)*r+t,Ju[1]=ih(a)*n+e,el[0]=oh(i)*r+t,el[1]=ih(i)*n+e,l(s,Ju,el),c(u,Ju,el),a=a%Na,a<0&&(a=a+Na),i=i%Na,i<0&&(i=i+Na),a>i&&!o?i+=Na:a<i&&o&&(a+=Na),o){var v=i;i=a,a=v}for(var h=0;h<i;h+=Math.PI/2)h>a&&(tl[0]=oh(h)*r+t,tl[1]=ih(h)*n+e,l(s,tl,s),c(u,tl,u))}var Ie={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ya=[],Ba=[],zr=[],Gn=[],Wr=[],Vr=[],sh=Math.min,uh=Math.max,Ha=Math.cos,Ua=Math.sin,wn=Math.abs,Xv=Math.PI,ea=Xv*2,lh=typeof Float32Array<"u",gs=[];function ch(t){var e=Math.round(t/Xv*1e8)/1e8;return e%2*Xv}function CE(t,e){var r=ch(t[0]);r<0&&(r+=ea);var n=r-t[0],a=t[1];a+=n,!e&&a-r>=ea?a=r+ea:e&&r-a>=ea?a=r-ea:!e&&r>a?a=r+(ea-ch(r-a)):e&&r<a&&(a=r-(ea-ch(a-r))),t[0]=r,t[1]=a}var Ho=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=wn(n/qy/e)||0,this._uy=wn(n/qy/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ie.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=wn(e-this._xi),a=wn(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Ie.L,e,r),this._ctx&&i&&this._ctx.lineTo(e,r),i)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){return this._drawPendingPt(),this.addData(Ie.C,e,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,a){return this._drawPendingPt(),this.addData(Ie.Q,e,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,a),this._xi=n,this._yi=a,this},t.prototype.arc=function(e,r,n,a,i,o){this._drawPendingPt(),gs[0]=a,gs[1]=i,CE(gs,o),a=gs[0],i=gs[1];var s=i-a;return this.addData(Ie.A,e,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,a,i,o),this._xi=Ha(i)*n+e,this._yi=Ua(i)*n+r,this},t.prototype.arcTo=function(e,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,a,i),this},t.prototype.rect=function(e,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,a),this.addData(Ie.R,e,r,n,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ie.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&lh&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,a=this._len,i=0;i<r;i++)n+=e[i].len();var o=this.data;if(lh&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<r;i++)for(var u=e[i].data,s=0;s<u.length;s++)this.data[a++]=u[s];this._len=a}},t.prototype.addData=function(e,r,n,a,i,o,s,u,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>
290&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,lh&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){zr[0]=zr[1]=Wr[0]=Wr[1]=Number.MAX_VALUE,Gn[0]=Gn[1]=Vr[0]=Vr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],u=o===1;switch(u&&(r=e[o],n=e[o+1],a=r,i=n),s){case Ie.M:r=a=e[o++],n=i=e[o++],Wr[0]=a,Wr[1]=i,Vr[0]=a,Vr[1]=i;break;case Ie.L:Qy(r,n,e[o],e[o+1],Wr,Vr),r=e[o++],n=e[o++];break;case Ie.C:SE(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Wr,Vr),r=e[o++],n=e[o++];break;case Ie.Q:DE(r,n,e[o++],e[o++],e[o],e[o+1],Wr,Vr),r=e[o++],n=e[o++];break;case Ie.A:var l=e[o++],c=e[o++],f=e[o++],v=e[o++],h=e[o++],d=e[o++]+h;o+=1;var y=!e[o++];u&&(a=Ha(h)*f+l,i=Ua(h)*v+c),TE(l,c,f,v,h,d,y,Wr,Vr),r=Ha(d)*f+l,n=Ua(d)*v+c;break;case Ie.R:a=r=e[o++],i=n=e[o++];var g=e[o++],p=e[o++];Qy(a,i,a+g,i+p,Wr,Vr);break;case Ie.Z:r=a,n=i;break}lo(zr,zr,Wr),co(Gn,Gn,Vr)}return o===0&&(zr[0]=zr[1]=Gn[0]=Gn[1]=0),new Fe(zr[0],zr[1],Gn[0]-zr[0],Gn[1]-zr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,f=0,v=0;v<r;){var h=e[v++],d=v===1;d&&(i=e[v],o=e[v+1],s=i,u=o);var y=-1;switch(h){case Ie.M:i=s=e[v++],o=u=e[v++];break;case Ie.L:{var g=e[v++],p=e[v++],m=g-i,_=p-o;(wn(m)>n||wn(_)>a||v===r-1)&&(y=Math.sqrt(m*m+_*_),i=g,o=p);break}case Ie.C:{var w=e[v++],b=e[v++],g=e[v++],p=e[v++],S=e[v++],O=e[v++];y=JA(i,o,w,b,g,p,S,O,10),i=S,o=O;break}case Ie.Q:{var w=e[v++],b=e[v++],g=e[v++],p=e[v++];y=rE(i,o,w,b,g,p,10),i=g,o=p;break}case Ie.A:var T=e[v++],M=e[v++],D=e[v++],P=e[v++],L=e[v++],R=e[v++],I=R+L;v+=1,d&&(s=Ha(L)*D+T,u=Ua(L)*P+M),y=uh(D,P)*sh(ea,Math.abs(R)),i=Ha(I)*D+T,o=Ua(I)*P+M;break;case Ie.R:{s=i=e[v++],u=o=e[v++];var A=e[v++],x=e[v++];y=A*2+x*2;break}case Ie.Z:{var m=s-i,_=u-o;y=Math.sqrt(m*m+_*_),i=s,o=u;break}}y>=0&&(l[f++]=y,c+=y)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,u,l,c,f,v,h=r<1,d,y,g=0,p=0,m,_=0,w,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,m=r*y,!m)))e:for(var S=0;S<o;){var O=n[S++],T=S===1;switch(T&&(l=n[S],c=n[S+1],s=l,u=c),O!==Ie.L&&_>0&&(e.lineTo(w,b),_=0),O){case Ie.M:s=l=n[S++],u=c=n[S++],e.moveTo(l,c);break;case Ie.L:{f=n[S++],v=n[S++];var M=wn(f-l),D=wn(v-c);if(M>a||D>i){if(h){var P=d[p++];if(g+P>m){var L=(m-g)/P;e.lineTo(l*(1-L)+f*L,c*(1-L)+v*L);break e}g+=P}e.lineTo(f,v),l=f,c=v,_=0}else{var R=M*M+D*D;R>_&&(w=f,b=v,_=R)}break}case Ie.C:{var I=n[S++],A=n[S++],x=n[S++],Y=n[S++],U=n[S++],q=n[S++];if(h){var P=d[p++];if(g+P>m){var L=(m-g)/P;sc(l,I,x,U,L,Ya),sc(c,A,Y,q,L,Ba),e.bezierCurveTo(Ya[1],Ba[1],Ya[2],Ba[2],Ya[3],Ba[3]);break e}g+=P}e.bezierCurveTo(I,A,x,Y,U,q),l=U,c=q;break}case Ie.Q:{var I=n[S++],A=n[S++],x=n[S++],Y=n[S++];if(h){var P=d[p++];if(g+P>m){var L=(m-g)/P;uc(l,I,x,L,Ya),uc(c,A,Y,L,Ba),e.quadraticCurveTo(Ya[1],Ba[1],Ya[2],Ba[2]);break e}g+=P}e.quadraticCurveTo(I,A,x,Y),l=x,c=Y;break}case Ie.A:var N=n[S++],Q=n[S++],V=n[S++],ne=n[S++],ee=n[S++],ue=n[S++],ye=n[S++],de=!n[S++],Me=V>ne?V:ne,_e=wn(V-ne)>.001,he=ee+ue,te=!1;if(h){var P=d[p++];g+P>m&&(he=ee+ue*(m-g)/P,te=!0),g+=P}if(_e&&e.ellipse?e.ellipse(N,Q,V,ne,ye,ee,he,de):e.arc(N,Q,Me,ee,he,de),te)break e;T&&(s=Ha(ee)*V+N,u=Ua(ee)*ne+Q),l=Ha(he)*V+N,c=Ua(he)*ne+Q;break;case Ie.R:s=l=n[S],u=c=n[S+1],f=n[S++],v=n[S++];var F=n[S++],K=n[S++];if(h){var P=d[p++];if(g+P>m){var X=m-g;e.moveTo(f,v),e.lineTo(f+sh(X,F),v),X-=F,X>0&&e.lineTo(f+F,v+sh(X,K)),X-=K,X>0&&e.lineTo(f+uh(F-X,0),v+K),X-=F,X>0&&e.lineTo(f,v+uh(K-X,0));break e}g+=P}e.rect(f,v,F,K);break;case Ie.Z:if(h){var P=d[p++];if(g+P>m){var L=(m-g)/P;e.lineTo(l*(1-L)+s*L,c*(1-L)+u*L);break e}g+=P}e.closePath(),l=s,c=u}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Ie,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Gi(t,e,r,n,a,i,o){if(a===0)return!1;var s=a,u=0,l=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>t+s&&i>r+s||i<t-s&&i<r-s)return!1;if(t!==r)u=(e-n)/(t-r),l=(t*n-r*e)/(t-r);else return Math.abs(i-t)<=s/2;var c=u*i-o+l,f=c*c/(u*u+1);return f<=s/2*s/2}function ME(t,e,r,n,a,i,o,s,u,l,c){if(u===0)return!1;var f=u;if(c>e+f&&c>n+f&&c>i+f&&c>s+f||c<e-f&&c<n-f&&c<i-f&&c<s-f||l>t+f&&l>r+f&&l>a+f&&l>o+f||l<t-f&&l<r-f&&l<a-f&&l<o-f)return!1;var v=ZA(t,e,r,n,a,i,o,s,l,c);return v<=f/2}function PE(t,e,r,n,a,i,o,s,u){if(o===0)return!1;var l=o;if(u>e+l&&u>n+l&&u>i+l||u<e-l&&u<n-l&&u<i-l||s>t+l&&s>r+l&&s>a+l||s<t-l&&s<r-l&&s<a-l)return!1;var c=tE(t,e,r,n,a,i,s,u);return c<=l/2}var Jy=Math.PI*2;function rl(t){return t%=Jy,t<0&&(t+=Jy),t}var ys=Math.PI*2;function OE(t,e,r,n,a,i,o,s,u){if(o===0)return!1;var l=o;s-=t,u-=e;var c=Math.sqrt(s*s+u*u);if(c-l>r||c+l<r)return!1;if(Math.abs(n-a)%ys<1e-4)return!0;
29if(i){var f=n;n=rl(a),a=rl(f)}else n=rl(n),a=rl(a);n>a&&(a+=ys);var v=Math.atan2(u,s);return v<0&&(v+=ys),v>=n&&v<=a||v+ys>=n&&v+ys<=a}function za(t,e,r,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var u=o*(r-t)+t;return u===a?1/0:u>a?s:0}var jn=Ho.CMD,Wa=Math.PI*2,AE=1e-4;function EE(t,e){return Math.abs(t-e)<AE}var Lt=[-1,-1,-1],fr=[-1,-1];function IE(){var t=fr[0];fr[0]=fr[1],fr[1]=t}function LE(t,e,r,n,a,i,o,s,u,l){if(l>e&&l>n&&l>i&&l>s||l<e&&l<n&&l<i&&l<s)return 0;var c=wb(e,n,i,s,l,Lt);if(c===0)return 0;for(var f=0,v=-1,h=void 0,d=void 0,y=0;y<c;y++){var g=Lt[y],p=g===0||g===1?.5:1,m=xt(t,r,a,o,g);m<u||(v<0&&(v=bb(e,n,i,s,fr),fr[1]<fr[0]&&v>1&&IE(),h=xt(e,n,i,s,fr[0]),v>1&&(d=xt(e,n,i,s,fr[1]))),v===2?g<fr[0]?f+=h<e?p:-p:g<fr[1]?f+=d<h?p:-p:f+=s<d?p:-p:g<fr[0]?f+=h<e?p:-p:f+=s<h?p:-p)}return f}function xE(t,e,r,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var u=eE(e,n,i,s,Lt);if(u===0)return 0;var l=Sb(e,n,i);if(l>=0&&l<=1){for(var c=0,f=zt(e,n,i,l),v=0;v<u;v++){var h=Lt[v]===0||Lt[v]===1?.5:1,d=zt(t,r,a,Lt[v]);d<o||(Lt[v]<l?c+=f<e?h:-h:c+=i<f?h:-h)}return c}else{var h=Lt[0]===0||Lt[0]===1?.5:1,d=zt(t,r,a,Lt[0]);return d<o?0:i<e?h:-h}}function $E(t,e,r,n,a,i,o,s){if(s-=e,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Lt[0]=-u,Lt[1]=u;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l>=Wa-1e-4){n=0,a=Wa;var c=i?1:-1;return o>=Lt[0]+t&&o<=Lt[1]+t?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=Wa,a+=Wa);for(var v=0,h=0;h<2;h++){var d=Lt[h];if(d+t>o){var y=Math.atan2(s,d),c=i?1:-1;y<0&&(y=Wa+y),(y>=n&&y<=a||y+Wa>=n&&y+Wa<=a)&&(y>Math.PI/2&&y<Math.PI*1.5&&(c=-c),v+=c)}}return v}function Ob(t,e,r,n,a){for(var i=t.data,o=t.len(),s=0,u=0,l=0,c=0,f=0,v,h,d=0;d<o;){var y=i[d++],g=d===1;switch(y===jn.M&&d>1&&(r||(s+=za(u,l,c,f,n,a))),g&&(u=i[d],l=i[d+1],c=u,f=l),y){case jn.M:c=i[d++],f=i[d++],u=c,l=f;break;case jn.L:if(r){if(Gi(u,l,i[d],i[d+1],e,n,a))return!0}else s+=za(u,l,i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case jn.C:if(r){if(ME(u,l,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=LE(u,l,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case jn.Q:if(r){if(PE(u,l,i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=xE(u,l,i[d++],i[d++],i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case jn.A:var p=i[d++],m=i[d++],_=i[d++],w=i[d++],b=i[d++],S=i[d++];d+=1;var O=!!(1-i[d++]);v=Math.cos(b)*_+p,h=Math.sin(b)*w+m,g?(c=v,f=h):s+=za(u,l,v,h,n,a);var T=(n-p)*w/_+p;if(r){if(OE(p,m,w,b,b+S,O,e,T,a))return!0}else s+=$E(p,m,w,b,b+S,O,T,a);u=Math.cos(b+S)*_+p,l=Math.sin(b+S)*w+m;break;case jn.R:c=u=i[d++],f=l=i[d++];var M=i[d++],D=i[d++];if(v=c+M,h=f+D,r){if(Gi(c,f,v,f,e,n,a)||Gi(v,f,v,h,e,n,a)||Gi(v,h,c,h,e,n,a)||Gi(c,h,c,f,e,n,a))return!0}else s+=za(v,f,v,h,n,a),s+=za(c,h,c,f,n,a);break;case jn.Z:if(r){if(Gi(u,l,c,f,e,n,a))return!0}else s+=za(u,l,c,f,n,a);u=c,l=f;break}}return!r&&!EE(l,f)&&(s+=za(u,l,c,f,n,a)||0),s!==0}function kE(t,e,r){return Ob(t,0,!1,e,r)}function RE(t,e,r,n){return Ob(t,e,!0,r,n)}var Ab=Nt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bi),FE={style:Nt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xc.style)},fh=lu.concat(["invisible","culling","z","z2","zlevel","parent"]),Ke=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(u){r.buildPath(u,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<fh.length;++s)a[fh[s]]=this[fh[s]];a.__dirty|=rn}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=ft(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?ie(this.style,s):this.useStyle(s):o==="shape"?ie(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Ee(r)){var n=lc(r,0);return n>.5?qv:n>.2?vE:Kv}else if(r)return Kv}return qv},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ee(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=lc(r,0)<jv;if(i===o)return n}},e.prototype.buildPath=function(r,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~io},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Ho(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&io)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r
29=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;l=Math.max(l,c??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),RE(s,u/l,r,n)))return!0}if(this.hasFill())return kE(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=io,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:ie(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&io)},e.prototype.createStyle=function(r){return jc(Ab,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=ie({},this.shape))},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var u=!(n&&i),l;if(n&&n.shape?o?i?l=n.shape:(l=ie({},a.shape),ie(l,n.shape)):(l=ie({},i?this.shape:a.shape),ie(l,n.shape)):u&&(l=a.shape),l)if(o){this.shape=ie({},this.shape);for(var c={},f=ft(l),v=0;v<f.length;v++){var h=f[v];typeof l[h]=="object"?this.shape[h]=l[h]:c[h]=l[h]}this._transitionState(r,{shape:c},s)}else this.shape=l,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return FE},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(i){Ae(o,i);function o(s){var u=i.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return ke(r.style)},o.prototype.getDefaultShape=function(){return ke(r.shape)},o}(e);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=rn|xs|io}(),e}(xu),NE=Nt({strokeFirst:!0,font:_a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ab),cc=function(t){Ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return yb(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return jc(NE,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=zA(this.style)),this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(xu);cc.prototype.type="tspan";var YE=Nt({x:0,y:0},bi),BE={style:Nt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Xc.style)};function HE(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Ii=function(t){Ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return jc(YE,r)},e.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=HE(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return BE},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Fe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xu);Ii.prototype.type="image";
29function UE(t,e){var r=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,u,l,c;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=u=l=c=o:o instanceof Array?o.length===1?s=u=l=c=o[0]:o.length===2?(s=l=o[0],u=c=o[1]):o.length===3?(s=o[0],u=c=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],c=o[3]):s=u=l=c=0;var f;s+u>a&&(f=s+u,s*=a/f,u*=a/f),l+c>a&&(f=l+c,l*=a/f,c*=a/f),u+l>i&&(f=u+l,u*=i/f,l*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),t.moveTo(r+s,n),t.lineTo(r+a-u,n),u!==0&&t.arc(r+a-u,n+u,u,-Math.PI/2,0),t.lineTo(r+a,n+i-l),l!==0&&t.arc(r+a-l,n+i-l,l,0,Math.PI/2),t.lineTo(r+c,n+i),c!==0&&t.arc(r+c,n+i-c,c,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var fo=Math.round;function Eb(t,e,r){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=n,t.x2=a,t.y1=i,t.y2=o;var s=r&&r.lineWidth;return s&&(fo(n*2)===fo(a*2)&&(t.x1=t.x2=ii(n,s,!0)),fo(i*2)===fo(o*2)&&(t.y1=t.y2=ii(i,s,!0))),t}}function Ib(t,e,r){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;t.x=n,t.y=a,t.width=i,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=ii(n,s,!0),t.y=ii(a,s,!0),t.width=Math.max(ii(n+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(ii(a+o,s,!1)-t.y,o===0?0:1)),t}}function ii(t,e,r){if(!e)return t;var n=fo(t*2);return(n+fo(e))%2===0?n/2:(n+(r?1:-1))/2}var zE=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),WE={},fn=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new zE},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var u=Ib(WE,n,this.style);a=u.x,i=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?UE(r,n):r.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ke);fn.prototype.type="rect";var em={fill:"#000"},tm=2,Gr={},VE={style:Nt({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},Xc.style)},Uo=function(t){Ae(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=em,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,QE(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Fe(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(a);l?(r.copy(u),r.applyTransform(l),i=i||r.clone(),i.union(r)):(i=i||u.clone(),i.union(u))}this._rect=i||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||em},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return ie(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},e.prototype._mergeRich=function(r,n){for(var a=ft(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},ie(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return VE},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||_a,a=r.padding,i=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||i.align||"left",l=r.verticalAlign||i.verticalAlign||"top";Iy(Gr,i.overflowRect,o,s,u,l),o=Gr.baseX,s=Gr.baseY;var c=um(r),f=RA(c,r,Gr.outerWidth,Gr.outerHeight),v=hh(r),h=!!r.backgroundColor,d=f.outerHeight,y=f.outerWidth,g=f.lines,p=f.lineHeight;this.isTruncated=!!f.isTruncated;var m=o,_=mi(s,f.contentHeight,l);if(v||a){var w=Bo(o,y,u),b=mi(s,d,l);
29v&&this._renderBackground(r,r,w,b,y,d)}_+=p/2,a&&(m=sm(o,u,a),l==="top"?_+=a[0]:l==="bottom"&&(_-=a[2]));for(var S=0,O=!1,T=!1,M=om("fill"in r?r.fill:(T=!0,i.fill)),D=im("stroke"in r?r.stroke:!h&&(!i.autoStroke||T)?(S=tm,O=!0,i.stroke):null),P=r.textShadowBlur>0,L=0;L<g.length;L++){var R=this._getOrCreateChild(cc),I=R.createStyle();R.useStyle(I),I.text=g[L],I.x=m,I.y=_,I.textAlign=u,I.textBaseline="middle",I.opacity=r.opacity,I.strokeFirst=!0,P&&(I.shadowBlur=r.textShadowBlur||0,I.shadowColor=r.textShadowColor||"transparent",I.shadowOffsetX=r.textShadowOffsetX||0,I.shadowOffsetY=r.textShadowOffsetY||0),I.stroke=D,I.fill=M,D&&(I.lineWidth=r.lineWidth||S,I.lineDash=r.lineDash,I.lineDashOffset=r.lineDashOffset||0),I.font=n,nm(I,r),_+=p,R.setBoundingRect(Yv(I,f.contentWidth,f.calculatedLineHeight,O?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,a=r.align||n.align,i=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Iy(Gr,n.overflowRect,o,s,a,i),o=Gr.baseX,s=Gr.baseY;var u=um(r),l=YA(u,r,Gr.outerWidth,Gr.outerHeight,a),c=l.width,f=l.outerWidth,v=l.outerHeight,h=r.padding;this.isTruncated=!!l.isTruncated;var d=Bo(o,f,a),y=mi(s,v,i),g=d,p=y;h&&(g+=h[3],p+=h[0]);var m=g+c;hh(r)&&this._renderBackground(r,r,d,y,f,v);for(var _=!!r.backgroundColor,w=0;w<l.lines.length;w++){for(var b=l.lines[w],S=b.tokens,O=S.length,T=b.lineHeight,M=b.width,D=0,P=g,L=m,R=O-1,I=void 0;D<O&&(I=S[D],!I.align||I.align==="left");)this._placeToken(I,r,T,p,P,"left",_),M-=I.width,P+=I.width,D++;for(;R>=0&&(I=S[R],I.align==="right");)this._placeToken(I,r,T,p,L,"right",_),M-=I.width,L-=I.width,R--;for(P+=(c-(P-g)-(m-L)-M)/2;D<=R;)I=S[D],this._placeToken(I,r,T,p,P+I.width/2,"center",_),P+=I.width,D++;p+=T}},e.prototype._placeToken=function(r,n,a,i,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var c=r.verticalAlign,f=i+a/2;c==="top"?f=i+r.height/2:c==="bottom"&&(f=i+a-r.height/2);var v=!r.isLineHolder&&hh(l);v&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!l.backgroundColor,d=r.textPadding;d&&(o=sm(o,s,d),f-=r.height/2-d[0]-r.innerHeight/2);var y=this._getOrCreateChild(cc),g=y.createStyle();y.useStyle(g);var p=this._defaultStyle,m=!1,_=0,w=!1,b=om("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,p.fill)),S=im("stroke"in l?l.stroke:"stroke"in n?n.stroke:!h&&!u&&(!p.autoStroke||m)?(_=tm,w=!0,p.stroke):null),O=l.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,O&&(g.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,g.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||_a,g.opacity=Ws(l.opacity,n.opacity,1),nm(g,l),S&&(g.lineWidth=Ws(l.lineWidth,n.lineWidth,_),g.lineDash=Re(l.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=S),b&&(g.fill=b),y.setBoundingRect(Yv(g,r.contentWidth,r.contentHeight,w?0:null))},e.prototype._renderBackground=function(r,n,a,i,o,s){var u=r.backgroundColor,l=r.borderWidth,c=r.borderColor,f=u&&u.image,v=u&&!f,h=r.borderRadius,d=this,y,g;if(v||r.lineHeight||l&&c){y=this._getOrCreateChild(fn),y.useStyle(y.createStyle()),y.style.fill=null;var p=y.shape;p.x=a,p.y=i,p.width=o,p.height=s,p.r=h,y.dirtyShape()}if(v){var m=y.style;m.fill=u||null,m.fillOpacity=Re(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Ii),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=u.image,_.x=a,_.y=i,_.width=o,_.height=s}if(l&&c){var m=y.style;m.lineWidth=l,m.stroke=c,m.strokeOpacity=Re(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var w=(y||g).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=Ws(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return KE(r)&&(n=[r.fontStyle,r.fontWeight,qE(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ln(n)||r.textFont||r.font},e}(xu),GE={left:!0,right:1,center:1},jE={top:1,bottom:1,middle:1},rm=["fontStyle","fontWeight","fontSize","fontFamily"];function qE(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?np+"px":t+"px"}function nm(t,e){for(var r=0;r<rm.length;r++){var n=rm[r],a=e[n];a!=null&&(t[n]=a)}}function KE(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function QE(t){return am(t),z(t.rich,am),t}function am(t){if(t){t.font=Uo.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||GE[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||jE[r]?r:"top";var n=t.padding;n&&(t.padding=up(t.padding))}}function im(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function om(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function sm(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function um(t){var e=t.text;return e!=null&&(e+=""),e}function hh(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var lm=1e-4,Lb=20;function XE(t){return t.replace(/^\s+|\s+$/g,"")}var cu=Math.min,kr=Math.max,an=Math.abs;function NK(t,e,r,n){var a=e[0],i=e[1],o=r[0],s=r[1],u=i-a,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/u*l+o}var ta=ZE;function ZE(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return JE(t,e,r)}function JE(t,e,r){return Ee(t)?XE(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function eI(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),Lb),t=(+t).toFixed(e),r?t:+t}function cm(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return tI(t)}function tI(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}
29function YK(t,e){var r=Math.log,n=Math.LN10,a=Math.floor(r(t[1]-t[0])/n),i=Math.round(r(an(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function rI(t,e){var r=Math.max(cm(t),cm(e)),n=t+e;return r>Lb?n:eI(n,r)}function BK(t){var e=Math.PI*2;return(t%e+e)%e}function HK(t){return t>-lm&&t<lm}var nI=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function $u(t){if(t instanceof Date)return t;if(Ee(t)){var e=nI.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function UK(t){return Math.pow(10,xb(t))}function xb(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function zK(t,e){var r=xb(t),n=Math.pow(10,r),a=t/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,t=i*n,r>=-20?+t.toFixed(r<0?-r:0):t}function fc(t){var e=parseFloat(t);return e==t&&(e!==0||!Ee(t)||t.indexOf("x")<=0)?e:NaN}function aI(t){return!isNaN(fc(t))}function $b(){return Math.round(Math.random()*9)}function kb(t,e){return e===0?t:kb(e,t%e)}function fm(t,e){return t==null?e:e==null?t:t*e/kb(t,e)}var iI="[ECharts] ",oI=typeof console<"u"&&console.warn&&console.log;function sI(t,e,r){oI&&console[t](iI+e)}function Rb(t,e){sI("error",t)}function Xt(t){throw new Error(t)}var Fb="series\0",uI="\0_ec_\0";function Jt(t){return t instanceof Array?t:t==null?[]:[t]}function hm(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var vm=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Zc(t){return Te(t)&&!pe(t)&&!(t instanceof Date)?t.value:t}function WK(t){return Te(t)&&!(t instanceof Array)}function lI(t,e,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=He();z(e,function(u,l){if(!Te(u)){e[l]=null;return}});var s=cI(t,o,r);return(n||a)&&fI(s,t,o,e),n&&hI(s,e),n||a?vI(s,e,a):i&&dI(s,e),pI(s),s}function cI(t,e,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:r==="replaceMerge"||fu(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function fI(t,e,r,n){z(n,function(a,i){if(!(!a||a.id==null)){var o=Ks(a.id),s=r.get(o);if(s!=null){var u=t[s];$n(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=a,u.existing=e[s],n[i]=null}}})}function hI(t,e){z(e,function(r,n){if(!(!r||r.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||r.id==null)&&!fu(r)&&!fu(i)&&Nb("name",i,r)){t[a].newOption=r,e[n]=null;return}}})}function vI(t,e,r){z(e,function(n){if(n){for(var a,i=0;(a=t[i])&&(a.newOption||fu(a.existing)||a.existing&&n.id!=null&&!Nb("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function dI(t,e){z(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function pI(t){var e=He();z(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),z(t,function(r){var n=r.newOption;$n(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),z(t,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(Te(i)){if(o.name=i.name!=null?Ks(i.name):a?a.name:Fb+n,a)o.id=Ks(a.id);else if(i.id!=null)o.id=Ks(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function Nb(t,e,r){var n=Mi(e[t],null),a=Mi(r[t],null);return n!=null&&a!=null&&n===a}function Ks(t){return Mi(t,"")}function Mi(t,e){return t==null?e:Ee(t)?t:mt(t)||xv(t)?t+"":e}function Yb(t){var e=t.name;return!!(e&&e.indexOf(Fb))}function fu(t){return t&&t.id!=null&&Ks(t.id).indexOf(uI)===0}function gI(t,e,r){z(t,function(n){var a=n.newOption;
29Te(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=yI(e,a,n.existing,r))})}function yI(t,e,r,n){var a=e.type?e.type:r?r.subType:n.determineSubType(t,e);return a}function Jc(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return pe(e.dataIndex)?Xe(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return pe(e.name)?Xe(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function rr(){var t="__ec_inner_"+mI++;return function(e){return e[t]||(e[t]={})}}var mI=$b();function vh(t,e,r){var n=Bb(e,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,u=r?r.defaultMainType:null;return!a&&u&&i.set(u,{}),i.each(function(l,c){var f=ef(t,c,l,{useDefault:u===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Bb(t,e){var r;if(Ee(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var a=He(),i={},o=!1;return z(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){i[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],c=l[1],f=(l[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&lt(e.includeMainTypes,c)<0)){o=o||!!c;var v=a.get(c)||a.set(c,{});v[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var gp={useDefault:!0,enableAll:!1,enableNone:!1};function ef(t,e,r,n){n=n||gp;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=t.getComponent(e))?[u]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s}function Hb(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function _I(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function VK(t){return t==="auto"?Le.domSupported?"html":"richText":t||"html"}var _r=rr(),GK=function(t,e,r,n){if(n){var a=_r(n);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=_r(i);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},dm=1,pm={},Ub=rr(),yp=rr(),zb=0,mp=1,_p=2,ba=["emphasis","blur","select"],gm=["normal","emphasis","blur","select"],wI=10,bI=9,Si="highlight",Yl="downplay",hc="select",Zv="unselect",vc="toggleSelect",wp="selectchanged";function ji(t){return t!=null&&t!=="none"}function tf(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Wb(t){tf(t,"emphasis",_p)}function Vb(t){t.hoverState===_p&&tf(t,"normal",zb)}function bp(t){tf(t,"blur",mp)}function Gb(t){t.hoverState===mp&&tf(t,"normal",zb)}function SI(t){t.selected=!0}function DI(t){t.selected=!1}function ym(t,e,r){e(t,r)}function Bn(t,e,r){ym(t,e,r),t.isGroup&&t.traverse(function(n){ym(n,e,r)})}function TI(t,e,r,n){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o],u=a[s];i[s]=u??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var l=t.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(i,e)}return i}function CI(t,e,r,n){var a=r&&lt(r,"select")>=0,i=!1;if(t instanceof Ke){var o=Ub(t),s=a&&o.selectFill||o.normalFill,u=a&&o.selectStroke||o.normalStroke;if(ji(s)||ji(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=ie({},n),l=ie({},l),l.fill=s):!ji(l.fill)&&ji(s)?(i=!0,n=ie({},n),l=ie({},l),l.fill=Wy(s)):!ji(l.stroke)&&ji(u)&&(i||(n=ie({},n),l=ie({},l)),l.stroke=Wy(u)),n.style=l}}if(n&&n.z2==null){i||(n=ie({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(c??wI)}return n}function MI(t,e,r){if(r&&r.z2==null){r=ie({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??bI)}return r}function PI(t,e,r){var n=lt(t.currentStates,e)>=0,a=t.style.opacity,i=n?null:TI(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=ie({},r),o=ie({opacity:n?a:i.opacity*.1},o),r.style=o),r}function dh(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return CI(this,t,e,r);if(t==="blur")return PI(this,t,r);if(t==="select")return MI(this,t,r)}return r}function OI(t){t.stateProxy=dh;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=dh),r&&(r.stateProxy=dh)}function mm(t,e){!Qb(t,e)&&!t.__highByOuter&&Bn(t,Wb)}function _m(t,e){!Qb(t,e)&&!t.__highByOuter&&Bn(t,Vb)}function Jv(t,e){t.__highByOuter|=1<<(e||0),Bn(t,Wb)}function ed(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Bn(t,Vb)}function AI(t){Bn(t,bp)}function jb(t){Bn(t,Gb)}function qb(t){Bn(t,SI)}function Kb(t){Bn(t,DI)}function Qb(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Xb(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,i){var o=yp(i),s=a==="series",u=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){Gb(l)}),s&&r.push(i)),o.isBlured=!1}),z(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function td(t,e,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(l,c){for(var f=0;f<c.length;f++){var v=l.getItemGraphicEl(c[f]);v&&jb(v)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];a.eachSeries(function(l){var c=o===l,f=l.coordinateSystem;f&&f.master&&(f=f.master);var v=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!v||e==="series"&&c)){var h=n.getViewOfSeriesModel(l);
29if(h.group.traverse(function(g){g.__highByOuter&&c&&e==="self"||bp(g)}),er(e))i(l.getData(),e);else if(Te(e))for(var d=ft(e),y=0;y<d.length;y++)i(l.getData(d[y]),e[d[y]]);u.push(l),yp(l).isBlured=!0}}),a.eachComponent(function(l,c){if(l!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(u,!0,a)}})}}function rd(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){yp(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){bp(i)})}}}function EI(t,e,r){var n=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=Jc(a,e);i=(pe(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),u=0;!o&&u<s;)o=a.getItemGraphicEl(u++);if(o){var l=_r(o);td(n,l.focus,l.blurScope,r)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);c!=null&&td(n,c,f,r)}}}function Sp(t,e,r,n){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return a;var i=n.getModel().getComponent(t,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(_r(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function II(t,e,r){var n=_r(t),a=Sp(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&rd(n.componentMainType,n.componentIndex,r),z(i,function(s){return mm(s,e)})):(td(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&rd(n.componentMainType,n.componentIndex,r),mm(t,e))}function LI(t,e,r){Xb(r);var n=_r(t),a=Sp(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?z(a,function(i){return _m(i,e)}):_m(t,e)}function xI(t,e,r){if(ad(e)){var n=e.dataType,a=t.getData(n),i=Jc(a,e);pe(i)||(i=[i]),t[e.type===vc?"toggleSelect":e.type===hc?"select":"unselect"](i,n)}}function wm(t){var e=t.getAllData();z(e,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?qb(i):Kb(i)})})}function $I(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();z(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function kI(t,e,r){Zb(t,!0),Bn(t,OI),FI(t,e,r)}function RI(t){Zb(t,!1)}function jK(t,e,r,n){n?RI(t):kI(t,e,r)}function FI(t,e,r){var n=_r(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var bm=["emphasis","blur","select"],NI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function qK(t,e,r,n){r=r||"itemStyle";for(var a=0;a<bm.length;a++){var i=bm[a],o=e.getModel([i,r]),s=t.ensureState(i);s.style=o[NI[r]]()}}function Zb(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function nd(t){return!!(t&&t.__highDownDispatcher)}function YI(t){var e=pm[t];return e==null&&dm<=32&&(e=pm[t]=dm++),e}function ad(t){var e=t.type;return e===hc||e===Zv||e===vc}function Sm(t){var e=t.type;return e===Si||e===Yl}function BI(t){var e=Ub(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var qi=Ho.CMD,HI=[[],[],[]],Dm=Math.sqrt,UI=Math.atan2;function zI(t,e){if(e){var r=t.data,n=t.len(),a,i,o,s,u,l,c=qi.M,f=qi.C,v=qi.L,h=qi.R,d=qi.A,y=qi.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case c:i=1;break;case v:i=1;break;case f:i=3;break;case y:i=2;break;case d:var g=e[4],p=e[5],m=Dm(e[0]*e[0]+e[1]*e[1]),_=Dm(e[2]*e[2]+e[3]*e[3]),w=UI(-e[1]/_,e[0]/m);r[o]*=m,r[o++]+=g,r[o]*=_,r[o++]+=p,r[o++]*=m,r[o++]*=_,r[o++]+=w,r[o++]+=w,o+=2,s=o;break;case h:l[0]=r[o++],l[1]=r[o++],_o(l,l,e),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],_o(l,l,e),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<i;u++){var b=HI[u];b[0]=r[o++],b[1]=r[o++],_o(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}}var ph=Math.sqrt,nl=Math.sin,al=Math.cos,ms=Math.PI;function Tm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function id(t,e){return(t[0]*e[0]+t[1]*e[1])/(Tm(t)*Tm(e))}function Cm(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(id(t,e))}function Mm(t,e,r,n,a,i,o,s,u,l,c){var f=u*(ms/180),v=al(f)*(t-r)/2+nl(f)*(e-n)/2,h=-1*nl(f)*(t-r)/2+al(f)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=ph(d),s*=ph(d));var y=(a===i?-1:1)*ph((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=y*o*h/s,p=y*-s*v/o,m=(t+r)/2+al(f)*g-nl(f)*p,_=(e+n)/2+nl(f)*g+al(f)*p,w=Cm([1,0],[(v-g)/o,(h-p)/s]),b=[(v-g)/o,(h-p)/s],S=[(-1*v-g)/o,(-1*h-p)/s],O=Cm(b,S);
vendor: 5,376 bytes, line 29
29if(id(b,S)<=-1&&(O=ms),id(b,S)>=1&&(O=0),O<0){var T=Math.round(O/ms*1e6)/1e6;O=ms*2+T%2*ms}c.addData(l,m,_,o,s,w,O,f,i)}var WI=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,VI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function GI(t){var e=new Ho;if(!t)return e;var r=0,n=0,a=r,i=n,o,s=Ho.CMD,u=t.match(WI);if(!u)return e;for(var l=0;l<u.length;l++){for(var c=u[l],f=c.charAt(0),v=void 0,h=c.match(VI)||[],d=h.length,y=0;y<d;y++)h[y]=parseFloat(h[y]);for(var g=0;g<d;){var p=void 0,m=void 0,_=void 0,w=void 0,b=void 0,S=void 0,O=void 0,T=r,M=n,D=void 0,P=void 0;switch(f){case"l":r+=h[g++],n+=h[g++],v=s.L,e.addData(v,r,n);break;case"L":r=h[g++],n=h[g++],v=s.L,e.addData(v,r,n);break;case"m":r+=h[g++],n+=h[g++],v=s.M,e.addData(v,r,n),a=r,i=n,f="l";break;case"M":r=h[g++],n=h[g++],v=s.M,e.addData(v,r,n),a=r,i=n,f="L";break;case"h":r+=h[g++],v=s.L,e.addData(v,r,n);break;case"H":r=h[g++],v=s.L,e.addData(v,r,n);break;case"v":n+=h[g++],v=s.L,e.addData(v,r,n);break;case"V":n=h[g++],v=s.L,e.addData(v,r,n);break;case"C":v=s.C,e.addData(v,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":v=s.C,e.addData(v,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":p=r,m=n,D=e.len(),P=e.data,o===s.C&&(p+=r-P[D-4],m+=n-P[D-3]),v=s.C,T=h[g++],M=h[g++],r=h[g++],n=h[g++],e.addData(v,p,m,T,M,r,n);break;case"s":p=r,m=n,D=e.len(),P=e.data,o===s.C&&(p+=r-P[D-4],m+=n-P[D-3]),v=s.C,T=r+h[g++],M=n+h[g++],r+=h[g++],n+=h[g++],e.addData(v,p,m,T,M,r,n);break;case"Q":T=h[g++],M=h[g++],r=h[g++],n=h[g++],v=s.Q,e.addData(v,T,M,r,n);break;case"q":T=h[g++]+r,M=h[g++]+n,r+=h[g++],n+=h[g++],v=s.Q,e.addData(v,T,M,r,n);break;case"T":p=r,m=n,D=e.len(),P=e.data,o===s.Q&&(p+=r-P[D-4],m+=n-P[D-3]),r=h[g++],n=h[g++],v=s.Q,e.addData(v,p,m,r,n);break;case"t":p=r,m=n,D=e.len(),P=e.data,o===s.Q&&(p+=r-P[D-4],m+=n-P[D-3]),r+=h[g++],n+=h[g++],v=s.Q,e.addData(v,p,m,r,n);break;case"A":_=h[g++],w=h[g++],b=h[g++],S=h[g++],O=h[g++],T=r,M=n,r=h[g++],n=h[g++],v=s.A,Mm(T,M,r,n,S,O,_,w,b,v,e);break;case"a":_=h[g++],w=h[g++],b=h[g++],S=h[g++],O=h[g++],T=r,M=n,r+=h[g++],n+=h[g++],v=s.A,Mm(T,M,r,n,S,O,_,w,b,v,e);break}}(f==="z"||f==="Z")&&(v=s.Z,e.addData(v),r=a,n=i),o=v}return e.toStatic(),e}var Jb=function(t){Ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(Ke);function eS(t){return t.setData!=null}function tS(t,e){var r=GI(t),n=ie({},e);return n.buildPath=function(a){var i=eS(a);if(i&&a.canSave()){a.appendPath(r);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&r.rebuildPath(o,1)}},n.applyTransform=function(a){zI(r,a),this.dirtyShape()},n}function jI(t,e){return new Jb(tS(t,e))}function qI(t,e){var r=tS(t,e),n=function(a){Ae(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(Jb);return n}function KI(t,e){for(var r=[],n=t.length,a=0;a<n;a++){var i=t[a];r.push(i.getUpdatedPathProxy(!0))}var o=new Ke(e);return o.createPathProxy(),o.buildPath=function(s){if(eS(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var rs=function(t){Ae(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var a=lt(this._children,r);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,a=this._children,i=lt(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},e.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new Fe(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var u=a[s];
29if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),c=u.getLocalTransform(i);c?(Fe.applyTransform(n,l,c),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},e}(Qc);rs.prototype.type="group";var QI=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),rf=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new QI},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(Ke);rf.prototype.type="circle";var XI=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Dp=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new XI},e.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*a,c=u*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-c,i-l,o-u,i,o-u),r.bezierCurveTo(i+l,o-u,i+s,o-c,i+s,o),r.bezierCurveTo(i+s,o+c,i+l,o+u,i,o+u),r.bezierCurveTo(i-l,o+u,i-s,o+c,i-s,o),r.closePath()},e}(Ke);Dp.prototype.type="ellipse";var rS=Math.PI,gh=rS*2,Va=Math.sin,Ki=Math.cos,ZI=Math.acos,wt=Math.atan2,Pm=Math.abs,Qs=Math.sqrt,$s=Math.max,jr=Math.min,Pr=1e-4;function JI(t,e,r,n,a,i,o,s){var u=r-t,l=n-e,c=o-a,f=s-i,v=f*u-c*l;if(!(v*v<Pr))return v=(c*(e-i)-f*(t-a))/v,[t+v*u,e+v*l]}function il(t,e,r,n,a,i,o){var s=t-r,u=e-n,l=(o?i:-i)/Qs(s*s+u*u),c=l*u,f=-l*s,v=t+c,h=e+f,d=r+c,y=n+f,g=(v+d)/2,p=(h+y)/2,m=d-v,_=y-h,w=m*m+_*_,b=a-i,S=v*y-d*h,O=(_<0?-1:1)*Qs($s(0,b*b*w-S*S)),T=(S*_-m*O)/w,M=(-S*m-_*O)/w,D=(S*_+m*O)/w,P=(-S*m+_*O)/w,L=T-g,R=M-p,I=D-g,A=P-p;return L*L+R*R>I*I+A*A&&(T=D,M=P),{cx:T,cy:M,x0:-c,y0:-f,x1:T*(a/b-1),y1:M*(a/b-1)}}function eL(t){var e;if(pe(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function tL(t,e){var r,n=$s(e.r,0),a=$s(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var u=e.startAngle,l=e.endAngle;if(!(isNaN(u)||isNaN(l))){var c=e.cx,f=e.cy,v=!!e.clockwise,h=Pm(l-u),d=h>gh&&h%gh;if(d>Pr&&(h=d),!(n>Pr))t.moveTo(c,f);else if(h>gh-Pr)t.moveTo(c+n*Ki(u),f+n*Va(u)),t.arc(c,f,n,u,l,!v),a>Pr&&(t.moveTo(c+a*Ki(l),f+a*Va(l)),t.arc(c,f,a,l,u,v));else{var y=void 0,g=void 0,p=void 0,m=void 0,_=void 0,w=void 0,b=void 0,S=void 0,O=void 0,T=void 0,M=void 0,D=void 0,P=void 0,L=void 0,R=void 0,I=void 0,A=n*Ki(u),x=n*Va(u),Y=a*Ki(l),U=a*Va(l),q=h>Pr;if(q){var N=e.cornerRadius;N&&(r=eL(N),y=r[0],g=r[1],p=r[2],m=r[3]);var Q=Pm(n-a)/2;if(_=jr(Q,p),w=jr(Q,m),b=jr(Q,y),S=jr(Q,g),M=O=$s(_,w),D=T=$s(b,S),(O>Pr||T>Pr)&&(P=n*Ki(l),L=n*Va(l),R=a*Ki(u),I=a*Va(u),h<rS)){var V=JI(A,x,R,I,P,L,Y,U);if(V){var ne=A-V[0],ee=x-V[1],ue=P-V[0],ye=L-V[1],de=1/Va(ZI((ne*ue+ee*ye)/(Qs(ne*ne+ee*ee)*Qs(ue*ue+ye*ye)))/2),Me=Qs(V[0]*V[0]+V[1]*V[1]);M=jr(O,(n-Me)/(de+1)),D=jr(T,(a-Me)/(de-1))}}}if(!q)t.moveTo(c+A,f+x);else if(M>Pr){var _e=jr(p,M),he=jr(m,M),te=il(R,I,A,x,n,_e,v),F=il(P,L,Y,U,n,he,v);t.moveTo(c+te.cx+te.x0,f+te.cy+te.y0),M<O&&_e===he?t.arc(c+te.cx,f+te.cy,M,wt(te.y0,te.x0),wt(F.y0,F.x0),!v):(_e>0&&t.arc(c+te.cx,f+te.cy,_e,wt(te.y0,te.x0),wt(te.y1,te.x1),!v),t.arc(c,f,n,wt(te.cy+te.y1,te.cx+te.x1),wt(F.cy+F.y1,F.cx+F.x1),!v),he>0&&t.arc(c+F.cx,f+F.cy,he,wt(F.y1,F.x1),wt(F.y0,F.x0),!v))}else t.moveTo(c+A,f+x),t.arc(c,f,n,u,l,!v);if(!(a>Pr)||!q)t.lineTo(c+Y,f+U);else if(D>Pr){var _e=jr(y,D),he=jr(g,D),te=il(Y,U,P,L,a,-he,v),F=il(A,x,R,I,a,-_e,v);t.lineTo(c+te.cx+te.x0,f+te.cy+te.y0),D<T&&_e===he?t.arc(c+te.cx,f+te.cy,D,wt(te.y0,te.x0),wt(F.y0,F.x0),!v):(he>0&&t.arc(c+te.cx,f+te.cy,he,wt(te.y0,te.x0),wt(te.y1,te.x1),!v),t.arc(c,f,a,wt(te.cy+te.y1,te.cx+te.x1),wt(F.cy+F.y1,F.cx+F.x1),v),_e>0&&t.arc(c+F.cx,f+F.cy,_e,wt(F.y1,F.x1),wt(F.y0,F.x0),!v))}else t.lineTo(c+Y,f+U),t.arc(c,f,a,l,u,v)}t.closePath()}}}var rL=function(){function t(){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 t}(),Tp=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new rL},e.prototype.buildPath=function(r,n){tL(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ke);Tp.prototype.type="sector";var nL=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Cp=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new nL},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},e}(Ke);Cp.prototype.type="ring";function aL(t,e,r,n){var a=[],i=[],o=[],s=[],u,l,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var v=0,h=t.length;v<h;v++)lo(c,c,t[v]),co(f,f,t[v]);lo(c,c,n[0]),co(f,f,n[1])}for(var v=0,h=t.length;v<h;v++){var d=t[v];if(r)u=t[v?v-1:h-1],l=t[(v+1)%h];else if(v===0||v===h-1){a.push(WA(t[v]));continue}else u=t[v-1],l=t[v+1];VA(i,l,u),jf(i,i,e);var y=Bv(d,u),g=Bv(d,l),p=y+g;p!==0&&(y/=p,g/=p),jf(o,i,-y),jf(s,i,g);var m=$y([],d,o),_=$y([],d,s);n&&(co(m,m,c),lo(m,m,f),co(_,_,c),lo(_,_,f)),a.push(m),a.push(_)}return r&&a.push(a.shift()),a}function nS(t,e,r){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=aL(a,n,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var u=i[s*2],l=i[s*2+1],c=a[(s+1)%o];
29t.bezierCurveTo(u[0],u[1],l[0],l[1],c[0],c[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)t.lineTo(a[s][0],a[s][1])}r&&t.closePath()}}var iL=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Mp=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new iL},e.prototype.buildPath=function(r,n){nS(r,n,!0)},e}(Ke);Mp.prototype.type="polygon";var oL=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Pp=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new oL},e.prototype.buildPath=function(r,n){nS(r,n,!1)},e}(Ke);Pp.prototype.type="polyline";var sL={},uL=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),nf=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new uL},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var u=Eb(sL,n,this.style);a=u.x1,i=u.y1,o=u.x2,s=u.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(r.moveTo(a,i),l<1&&(o=a*(1-l)+o*l,s=i*(1-l)+s*l),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(Ke);nf.prototype.type="line";var Ht=[],lL=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function Om(t,e,r){var n=t.cpx2,a=t.cpy2;return n!=null||a!=null?[(r?Ny:xt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Ny:xt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Yy:zt)(t.x1,t.cpx1,t.x2,e),(r?Yy:zt)(t.y1,t.cpy1,t.y2,e)]}var Op=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lL},e.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,c=n.cpx2,f=n.cpy2,v=n.percent;v!==0&&(r.moveTo(a,i),c==null||f==null?(v<1&&(uc(a,u,o,v,Ht),u=Ht[1],o=Ht[2],uc(i,l,s,v,Ht),l=Ht[1],s=Ht[2]),r.quadraticCurveTo(u,l,o,s)):(v<1&&(sc(a,u,c,o,v,Ht),u=Ht[1],c=Ht[2],o=Ht[3],sc(i,l,f,s,v,Ht),l=Ht[1],f=Ht[2],s=Ht[3]),r.bezierCurveTo(u,l,c,f,o,s)))},e.prototype.pointAt=function(r){return Om(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Om(this.shape,r,!0);return qA(n,n)},e}(Ke);Op.prototype.type="bezier-curve";var cL=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),af=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new cL},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+a,f*o+i),r.arc(a,i,o,s,u,!l)},e}(Ke);af.prototype.type="arc";var fL=function(t){Ae(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ke.prototype.getBoundingRect.call(this)},e}(Ke),aS=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),hL=function(t){Ae(e,t);function e(r,n,a,i,o,s){var u=t.call(this,o)||this;return u.x=r??0,u.y=n??0,u.x2=a??1,u.y2=i??0,u.type="linear",u.global=s||!1,u}return e}(aS),vL=function(t){Ae(e,t);function e(r,n,a,i,o){var s=t.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e}(aS),yh=Math.min,dL=Math.max,ol=Math.abs,Ga=[0,0],ja=[0,0],dt=fb(),sl=dt.minTv,ul=dt.maxTv,pL=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new rt;for(var n=0;n<2;n++)this._axes[n]=new rt;
vendor: 4,127 bytes, line 29
29e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,u=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,u),n[3].set(i,u),r)for(var l=0;l<4;l++)n[l].transform(r);rt.sub(a[0],n[1],n[0]),rt.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var l=0;l<2;l++)this._origin[l]=a[l].dot(n[0])},t.prototype.intersect=function(e,r,n){var a=!0,i=!r;return r&&rt.set(r,0,0),dt.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(a=!1,i)||!i&&!dt.negativeSize&&rt.copy(r,a?dt.useDir?dt.dirMinTv:sl:ul),a},t.prototype._intersectCheckOneSide=function(e,r,n,a){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Ga),e._getProjMinMaxOnAxis(o,r._corners,ja),dt.negativeSize||Ga[1]<ja[0]||Ga[0]>ja[1]){if(i=!1,dt.negativeSize||n)return i;var u=ol(ja[0]-Ga[1]),l=ol(Ga[0]-ja[1]);yh(u,l)>ul.len()&&(u<l?rt.scale(ul,s,-u*a):rt.scale(ul,s,l*a))}else if(!n){var u=ol(ja[0]-Ga[1]),l=ol(Ga[0]-ja[1]);(dt.useDir||yh(u,l)<sl.len())&&((u<l||!dt.bidirectional)&&(rt.scale(sl,s,u*a),dt.useDir&&dt.calcDirMTV()),(u>=l||!dt.bidirectional)&&(rt.scale(sl,s,-l*a),dt.useDir&&dt.calcDirMTV()))}}return i},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var a=this._axes[e],i=this._origin,o=r[0].dot(a)+i[e],s=o,u=o,l=1;l<r.length;l++){var c=r[l].dot(a)+i[e];s=yh(c,s),u=dL(c,u)}n[0]=s+dt.touchThreshold,n[1]=u-dt.touchThreshold,dt.negativeSize=n[1]<n[0]},t}(),gL=[],yL=function(t){Ae(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Fe(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(gL)),r.union(i)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e}(xu),mL=rr();function _L(t,e,r,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),u=t==="update";if(s){var l=void 0,c=void 0,f=void 0;n?(l=Re(n.duration,200),c=Re(n.easing,"cubicOut"),f=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),c=e.getShallow(u?"animationEasingUpdate":"animationEasing"),f=e.getShallow(u?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(l=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),it
29(f)&&(f=f(r,a)),it(l)&&(l=l(r));var v={duration:l||0,delay:f,easing:c};return v}else return null}function Ap(t,e,r,n,a,i,o){var s=!1,u;it(a)?(o=i,i=a,a=null):Te(a)&&(i=a.cb,o=a.during,s=a.isFrom,u=a.removeOpt,a=a.dataIndex);var l=t==="leave";l||e.stopAnimation("leave");var c=_L(t,n,a,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(c&&c.duration>0){var f=c.duration,v=c.delay,h=c.easing,d={duration:f,delay:v||0,easing:h,done:i,force:!!i||!!o,setToFinal:!l,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),i&&i()}function iS(t,e,r,n,a,i){Ap("update",t,e,r,n,a,i)}function wL(t,e,r,n,a,i){Ap("enter",t,e,r,n,a,i)}function Xs(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function oS(t,e,r,n,a,i){Xs(t)||Ap("leave",t,e,r,n,a,i)}function Am(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),oS(t,{style:{opacity:0}},e,r,n)}function bL(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||Am(a,e,r,n)}):Am(t,e,r,n)}function KK(t){mL(t).oldStyle=t.style}var od={},SL=["x","y"],DL=["width","height"];function TL(t){return Ke.extend(t)}var CL=qI;function ML(t,e){return CL(t,e)}function Fr(t,e){od[t]=e}function PL(t){if(od.hasOwnProperty(t))return od[t]}function Ep(t,e,r,n){var a=jI(t,e);return r&&(n==="center"&&(r=uS(r,a.getBoundingRect())),lS(a,r)),a}function sS(t,e,r){var n=new Ii({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(uS(e,i))}}});return n}function uS(t,e){var r=e.width/e.height,n=t.height*r,a;n<=t.width?a=t.height:(n=t.width,a=n/r);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var OL=KI;function lS(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function AL(t,e){return Eb(t,t,{lineWidth:e}),t}function EL(t,e){return Ib(t,t,e),t}var IL=ii;function LL(t,e){for(var r=lb([]);t&&t!==e;)kl(r,t.getLocalTransform(),r),t=t.parent;return r}function cS(t,e,r){return e&&!er(e)&&(e=vp.getLocalTransform(e)),r&&(e=fp([],e)),_o([],t,e)}function xL(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:an(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:an(2*e[4]/e[2]),i=[t==="left"?-n:t==="right"?n:0,t==="top"?-a:t==="bottom"?a:0];return i=cS(i,e,r),an(i[0])>an(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Em(t){return!t.isGroup}function $L(t){return t.shape!=null}function kL(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(u){Em(u)&&u.anid&&(s[u.anid]=u)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return $L(o)&&(s.shape=ke(o.shape)),s}var i=n(t);e.traverse(function(o){if(Em(o)&&o.anid){var s=i[o.anid];if(s){var u=a(o);o.attr(a(s)),iS(o,u,r,_r(o).dataIndex)}}})}function RL(t,e){return Xe(t,function(r){var n=r[0];n=kr(n,e.x),n=cu(n,e.x+e.width);var a=r[1];return a=kr(a,e.y),a=cu(a,e.y+e.height),[n,a]})}function FL(t,e){var r=kr(t.x,e.x),n=cu(t.x+t.width,e.x+e.width),a=kr(t.y,e.y),i=cu(t.y+t.height,e.y+e.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function NL(t,e,r){var n=ie({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),Nt(a,r),new Ii(n)):Ep(t.replace("path://",""),n,r,"center")}function YL(t,e,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(fS(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function fS(t,e,r,n,a,i,o,s){var u=r-t,l=n-e,c=o-a,f=s-i,v=mh(c,f,u,l);if(BL(v))return!1;var h=t-a,d=e-i,y=mh(h,d,u,l)/v;if(y<0||y>1)return!1;var g=mh(h,d,c,f)/v;return!(g<0||g>1)}function mh(t,e,r,n){return t*n-r*e}function BL(t){return t<=1e-6&&t>=-1e-6}function HL(t,e,r,n,a){return e==null||(mt(e)?Ge[0]=Ge[1]=Ge[2]=Ge[3]=e:(Ge[0]=e[0],Ge[1]=e[1],Ge[2]=e[2],Ge[3]=e[3]),n&&(Ge[0]=kr(0,Ge[0]),Ge[1]=kr(0,Ge[1]),Ge[2]=kr(0,Ge[2]),Ge[3]=kr(0,Ge[3])),r&&(Ge[0]=-Ge[0],Ge[1]=-Ge[1],Ge[2]=-Ge[2],Ge[3]=-Ge[3]),Im(t,Ge,"x","width",3,1,a&&a[0]||0),Im(t,Ge,"y","height",0,2,a&&a[1]||0)),t}var Ge=[0,0,0,0];function Im(t,e,r,n,a,i,o){var s=e[i]+e[a],u=t[n];t[n]+=s,o=kr(0,cu(o,u)),t[n]<o?(t[n]=o,t[r]+=e[a]>=0?-e[a]:e[i]>=0?u+e[i]:an(s)>1e-8?(u-o)*e[a]/s:0):t[r]-=e[a]}function UL(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=Ee(e)?{formatter:e}:e,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var u=t.formatterParamsExtra;u&&z(ft(u),function(c){un(s,c)||(s[c]=u[c],s.$vars.push(c))});var l=_r(t.el);l.componentMainType=i,l.componentIndex=o,l.tooltipConfig={name:n,option:Nt({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function sd(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function hS(t,e){if(t)if(pe(t))for(var r=0;r<t.length;r++)sd(t[r],e);else sd(t,e)}function zL(t){return!t||an(t[1])<ll&&an(t[2])<ll||an(t[0])<ll&&an(t[3])<ll}var ll=1e-5;function WL(t,e){return t?Fe.copy(t,e):e.clone()}function VL(t,e){return e?cb(t||yo(),e):void 0}
29function vS(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function GL(t){var e=-1/0,r=1/0;sd(t,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function dS(t,e,r){pS(t,e,r,-1/0)}function pS(t,e,r,n){if(t.ignoreModelZ)return n;var a=t.getTextContent(),i=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),u=0;u<s.length;u++)n=kr(pS(s[u],e,r,n),n);else t.z=e,t.zlevel=r,n=kr(t.z2||0,n);if(a&&(a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+2)),i){var l=t.textGuideLineConfig;i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+(l&&l.showAbove?1:-1))}return n}Fr("circle",rf);Fr("ellipse",Dp);Fr("sector",Tp);Fr("ring",Cp);Fr("polygon",Mp);Fr("polyline",Pp);Fr("rect",fn);Fr("line",nf);Fr("bezierCurve",Op);Fr("arc",af);const QK=Object.freeze(Object.defineProperty({__proto__:null,Arc:af,BezierCurve:Op,BoundingRect:Fe,Circle:rf,CompoundPath:fL,Ellipse:Dp,Group:rs,Image:Ii,IncrementalDisplayable:yL,Line:nf,LinearGradient:hL,OrientedBoundingRect:pL,Path:Ke,Point:rt,Polygon:Mp,Polyline:Pp,RadialGradient:vL,Rect:fn,Ring:Cp,Sector:Tp,Text:Uo,WH:DL,XY:SL,applyTransform:cS,calcZ2Range:GL,clipPointsByRect:RL,clipRectByRect:FL,createIcon:NL,ensureCopyRect:WL,ensureCopyTransform:VL,expandOrShrinkRect:HL,extendPath:ML,extendShape:TL,getShapeClass:PL,getTransform:LL,groupTransition:kL,initProps:wL,isBoundingRectAxisAligned:zL,isElementRemoved:Xs,lineLineIntersect:fS,linePolygonIntersect:YL,makeImage:sS,makePath:Ep,mergePath:OL,registerShape:Fr,removeElement:oS,removeElementWithFadeOut:bL,resizePath:lS,retrieveZInfo:vS,setTooltipConfig:UL,subPixelOptimize:IL,subPixelOptimizeLine:AL,subPixelOptimizeRect:EL,transformDirection:xL,traverseElements:hS,traverseUpdateZ:dS,updateProps:iS},Symbol.toStringTag,{value:"Module"}));var of={};function jL(t,e){for(var r=0;r<ba.length;r++){var n=ba[r],a=e[n],i=t.ensureState(n);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Lm(t,e,r){var n=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=it(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var u={normal:s},l=0;l<ba.length;l++){var c=ba[l],f=e[c];u[c]=Re(n?n.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return u}function XK(t,e,r,n){r=r||of;for(var a=t instanceof Uo,i=!1,o=0;o<gm.length;o++){var s=e[gm[o]];if(s&&s.getShallow("show")){i=!0;break}}var u=a?t:t.getTextContent();if(i){a||(u||(u=new Uo,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var l=Lm(r,e),c=e.normal,f=!!c.getShallow("show"),v=xm(c,n,r,!1,!a);v.text=l.normal,a||t.setTextConfig($m(c,r,!1));for(var o=0;o<ba.length;o++){var h=ba[o],s=e[h];if(s){var d=u.ensureState(h),y=!!Re(s.getShallow("show"),f);if(y!==f&&(d.ignore=!y),d.style=xm(s,n,r,!0,!a),d.style.text=l[h],!a){var g=t.ensureState(h);g.textConfig=$m(s,r,!0)}}}u.silent=!!c.getShallow("silent"),u.style.x!=null&&(v.x=u.style.x),u.style.y!=null&&(v.y=u.style.y),u.ignore=!f,u.useStyle(v),u.dirty(),r.enableTextSetter&&(gS(u).setLabelText=function(p){var m=Lm(r,e,p);jL(u,m)})}else u&&(u.ignore=!0);t.dirty()}function ZK(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<ba.length;n++){var a=ba[n];r[a]=t.getModel([a,e])}return r}function xm(t,e,r,n,a){var i={};return qL(i,t,r,n,a),e&&ie(i,e),i}function $m(t,e,r){e=e||{};var n={},a,i=t.getShallow("rotate"),o=Re(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return a=t.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function qL(t,e,r,n,a){r=r||of;var i=e.ecModel,o=i&&i.option.textStyle,s=KL(e),u;if(s){u={};var l="richInheritPlainLabel",c=Re(e.get(l),i?i.get(l):void 0);for(var f in s)if(s.hasOwnProperty(f)){var v=e.getModel(["rich",f]);Nm(u[f]={},v,o,e,c,r,n,a,!1,!0)}}u&&(t.rich=u);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var y=t,g=e.get("minMargin");if(g!=null)g=mt(g)?g/2:0,y.margin=[g,g,g,g],y.__marginType=Ym.minMargin;else{var p=e.get("textMargin");p!=null&&(y.margin=up(p),y.__marginType=Ym.textMargin)}Nm(t,e,o,null,null,r,n,a,!0,!1)}function KL(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||of).rich;if(r){e=e||{};for(var n=ft(r),a=0;a<n.length;a++){var i=n[a];e[i]=1}}t=t.parentModel}return e}var km=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Rm=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Fm=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Nm(t,e,r,n,a,i,o,s,u,l){r=!o&&r||of;var c=i&&i.inheritColor,f=e.getShallow("color"),v=e.getShallow("textBorderColor"),h=Re(e.getShallow("opacity"),r.opacity);(f==="inherit"||f==="auto")&&(c?f=c:f=null),(v==="inherit"||v==="auto")&&(c?v=c:v=null),s||(f=f||r.color,v=v||r.textBorderColor),f!=null&&(t.fill=f),v!=null&&(t.stroke=v);var d=Re(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var y=Re(e.getShallow("textBorderType"),r.textBorderType);y!=null&&(t.lineDash=y);var g=Re(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(t.lineDashOffset=g),!o&&h==null&&!l&&(h=i&&i.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<km.length;p++){var m=km[p],_=a!==!1&&n?Ws(e.getShallow(m),n.getShallow(m),r[m]):Re(e.getShallow(m),r[m]);_!=null&&(t[m]=_)}for(var p=0;p<Rm.length;p++){var m=Rm[p],_=e.getShallow(m);_!=null&&(t[m]=_)}if(t.verticalAlign==null){var w=e.getShallow("baseline");w!=null&&(t.verticalAlign=w)}if(!u||!i.disableBox){for(var p=0;p<Fm.length;p++){var m=Fm[p],_=e.getShallow(m);_!=null&&(t[m]=_)}var b=e.getShallow("borderType");b!=null&&(t.borderDash=b),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&c&&(t.backgroundColor=c),(t.borderColor==="auto"||t.borderColor==="inherit")&&c&&(t.borderColor=c)}}function QL(t,e){var r=e&&e.getModel("textStyle");return Ln([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var gS=rr();function JK(t,e,r,n){if(t){var a=gS(t);a.prevValue=a.value,a.value=r;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}var Ym={minMargin:1,textMargin:2},XL=["textStyle","color"],_h=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],wh=new Uo,ZL=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;
29return this.getShallow("color")||(!e&&r?r.get(XL):null)},t.prototype.getFont=function(){return QL({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<_h.length;n++)r[_h[n]]=this.getShallow(_h[n]);return wh.useStyle(r),wh.update(),wh.getBoundingRect()},t}(),yS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],JL=su(yS),ex=function(){function t(){}return t.prototype.getLineStyle=function(e){return JL(this,e)},t}(),mS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],tx=su(mS),rx=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return tx(this,e,r)},t}(),Rt=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){yt(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,a=n==null?n:n[e];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,r){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(ke(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Le.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();lp(Rt);wA(Rt);Nn(Rt,ex);Nn(Rt,rx);Nn(Rt,CA);Nn(Rt,ZL);var eQ=He(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),pn="original",Tt="arrayRows",Nr="objectRows",gn="keyedColumns",Di="typedArray",_S="unknown",hn="column",Li="row",sr={Must:1,Might:2,Not:3},wS=rr();function nx(t){wS(t).datasetMap=He()}function tQ(t,e,r){var n={},a=bS(e);if(!a||!t)return n;var i=[],o=[],s=e.ecModel,u=wS(s).datasetMap,l=a.uid+"_"+r.seriesLayoutBy,c,f;t=t.slice(),z(t,function(y,g){var p=Te(y)?y:t[g]={name:y};p.type==="ordinal"&&c==null&&(c=g,f=d(p)),n[p.name]=[]});var v=u.get(l)||u.set(l,{categoryWayDim:f,valueWayDim:0});z(t,function(y,g){var p=y.name,m=d(y);if(c==null){var _=v.valueWayDim;h(n[p],_,m),h(o,_,m),v.valueWayDim+=m}else if(c===g)h(n[p],0,m),h(i,0,m);else{var _=v.categoryWayDim;h(n[p],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(y,g,p){for(var m=0;m<p;m++)y.push(g+m)}function d(y){var g=y.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function bS(t){var e=t.get("data",!0);if(!e)return ef(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},gp).models[0]}function ax(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:ef(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},gp).models}function ix(t,e){return ox(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function ox(t,e,r,n,a,i){var o,s=5;if(jt(t))return sr.Not;var u,l;if(n){var c=n[i];Te(c)?(u=c.name,l=c.type):Ee(c)&&(u=c)}
29if(l!=null)return l==="ordinal"?sr.Must:sr.Not;if(e===Tt){var f=t;if(r===Li){for(var v=f[i],h=0;h<(v||[]).length&&h<s;h++)if((o=w(v[a+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var d=f[a+h];if(d&&(o=w(d[i]))!=null)return o}}else if(e===Nr){var y=t;if(!u)return sr.Not;for(var h=0;h<y.length&&h<s;h++){var g=y[h];if(g&&(o=w(g[u]))!=null)return o}}else if(e===gn){var p=t;if(!u)return sr.Not;var v=p[u];if(!v||jt(v))return sr.Not;for(var h=0;h<v.length&&h<s;h++)if((o=w(v[h]))!=null)return o}else if(e===pn)for(var m=t,h=0;h<m.length&&h<s;h++){var g=m[h],_=Zc(g);if(!pe(_))return sr.Not;if((o=w(_[i]))!=null)return o}function w(b){var S=Ee(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return S?sr.Might:sr.Not;if(S&&b!=="-")return sr.Must}return sr.Not}var sf=function(){function t(e){this.data=e.data||(e.sourceFormat===gn?{}:[]),this.sourceFormat=e.sourceFormat||_S,this.seriesLayoutBy=e.seriesLayoutBy||hn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&ix(this,n)===sr.Must&&(a.type="ordinal")}}return t}();function sx(t){return t instanceof sf}function ud(t,e,r){r=r||SS(t);var n=e.seriesLayoutBy,a=cx(t,r,n,e.sourceHeader,e.dimensions),i=new sf({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ke(e)});return i}function ux(t){return new sf({data:t,sourceFormat:jt(t)?Di:pn})}function lx(t){return new sf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:ke(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function SS(t){var e=_S;if(jt(t))e=Di;else if(pe(t)){t.length===0&&(e=Tt);for(var r=0,n=t.length;r<n;r++){var a=t[r];if(a!=null){if(pe(a)||jt(a)){e=Tt;break}else if(Te(a)){e=Nr;break}}}}else if(Te(t)){for(var i in t)if(un(t,i)&&er(t[i])){e=gn;break}}return e}function cx(t,e,r,n,a){var i,o;if(!t)return{dimensionsDefine:Bm(a),startIndex:o,dimensionsDetectedCount:i};if(e===Tt){var s=t;n==="auto"||n==null?Hm(function(l){l!=null&&l!=="-"&&(Ee(l)?o==null&&(o=1):o=0)},r,s,10):o=mt(n)?n:n?1:0,!a&&o===1&&(a=[],Hm(function(l,c){a[c]=l!=null?l+"":""},r,s,1/0)),i=a?a.length:r===Li?s.length:s[0]?s[0].length:null}else if(e===Nr)a||(a=fx(t));else if(e===gn)a||(a=[],z(t,function(l,c){a.push(c)}));else if(e===pn){var u=Zc(t[0]);i=pe(u)&&u.length||1}return{startIndex:o,dimensionsDefine:Bm(a),dimensionsDetectedCount:i}}function fx(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ft(r)}function Bm(t){if(t){var e=He();return Xe(t,function(r,n){r=Te(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function Hm(t,e,r,n){if(e===Li)for(var a=0;a<r.length&&a<n;a++)t(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)t(i[a],a)}function hx(t){var e=t.sourceFormat;return e===Nr||e===gn}var qa,Ka,Qa,Xa,Um,zm,vx=function(){function t(e,r){var n=sx(e)?e:ux(e);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Di&&(this._offset=0,this._dimSize=r,this._data=a),zm(this,a,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;zm=function(o,s,u){var l=u.sourceFormat,c=u.seriesLayoutBy,f=u.startIndex,v=u.dimensionsDefine,h=Um[Ip(l,c)];if(ie(o,h),l===Di)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=DS(l,c);o.getItem=en(d,null,s,f,v);var y=TS(l,c);o.count=en(y,null,s,f,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,c=l*o,f=0;f<l;f++)s[f]=u[c+f];return s},n=function(o,s,u,l){for(var c=this._data,f=this._dimSize,v=0;v<f;v++){for(var h=l[v],d=h[0]==null?1/0:h[0],y=h[1]==null?-1/0:h[1],g=s-o,p=u[v],m=0;m<g;m++){var _=c[m*f+v];p[o+m]=_,_<d&&(d=_),_>y&&(y=_)}h[0]=d,h[1]=y}},a=function(){return this._data?this._data.length/this._dimSize:0};Um=(e={},e[Tt+"_"+hn]={pure:!0,appendData:i},e[Tt+"_"+Li]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Nr]={pure:!0,appendData:i},e[gn]={pure:!0,appendData:function(o){var s=this._data;z(o,function(u,l){for(var c=s[l]||(s[l]=[]),f=0;f<(u||[]).length;f++)c.push(u[f])})}},e[pn]={appendData:i},e[Di]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),cl=function(t){pe(t)||Rb("series.data or dataset.source must be an array.")};qa={},qa[Tt+"_"+hn]=cl,qa[Tt+"_"+Li]=cl,qa[Nr]=cl,qa[gn]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&Rb("dimension name must not be null/undefined.")}},qa[pn]=cl;var Wm=function(t,e,r,n){return t[n]},dx=(Ka={},Ka[Tt+"_"+hn]=function(t,e,r,n){return t[n+e]},Ka[Tt+"_"+Li]=function(t,e,r,n,a){n+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var u=o[s];i[s]=u?u[n]:null}return i},Ka[Nr]=Wm,Ka[gn]=function(t,e,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?t[s]:null;i[o]=u?u[n]:null}return i},Ka[pn]=Wm,Ka);function DS(t,e){var r=dx[Ip(t,e)];return r}var Vm=function(t,e,r){return t.length},px=(Qa={},Qa[Tt+"_"+hn]=function(t,e,r){return Math.max(0,t.length-e)},Qa[Tt+"_"+Li]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Qa[Nr]=Vm,Qa[gn]=function(t,e,r){var n=r[0].name,a=n!=null?t[n]:null;return a?a.length:0},Qa[pn]=Vm,Qa);function TS(t,e){var r=px[Ip(t,e)];return r}var bh=function(t,e,r){return t[e]},gx=(Xa={},Xa[Tt]=bh,Xa[Nr]=function(t,e,r){return t[r]},Xa[gn]=bh,Xa[pn]=function(t,e,r){var n=Zc(t);return n instanceof Array?n[e]:n},Xa[Di]=bh,Xa);function CS(t){var e=gx[t];return e}function Ip(t,e){return t===Tt?t+"_"+e:t}function dc(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=a.getDimensionProperty(o);return CS(i)(n,o,s)}else{var u=n;return i===pn&&(u=Zc(n)),u}}}}function Bl(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!mt(t)&&t!=null&&t!=="-"&&(t=+$u(t)),t==null||t===""?NaN:Number(t))}He({number:function(t){return parseFloat(t)},time:function(t){return+$u(t)},trim:function(t){return Ee(t)?Ln(t):t}});var yx=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=mt(e)?e:fc(e),a=mt(r)?r:fc(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Ee(e),u=Ee(r);s&&(n=u?e:0),u&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t}(),uf="undefined",mx=typeof Uint32Array===uf?Array:Uint32Array,_x=typeof Uint16Array===uf?Array:Uint16Array,bx=typeof Int32Array===uf?Array:Int32Array,Gm=typeof Float64Array===uf?Array:Float64Array,MS={float:Gm,int:bx,ordinal:Array,number:Array,time:Gm},Sh;function Qi(t){return t>65535?mx:_x}function Xi(){return[1/0,-1/0]}function Sx(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function jm(t,e,r,n,a){var i=MS[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==n){for(var u=new i(n),l=0;l<s;l++)u[l]=o[l];t[e]=u}}else t[e]=new i(n)}var Dx=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=He()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=Sh[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],hx(a),this._dimensions=Xe(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(e,i),this._chunks[i]=new MS[r||"float"](this._rawCount),this._rawExtent[i]=Xi(),i},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=Xi());for(var u=i[e],l=o;l<s;l++){var c=n[l]=r.parseAndCollect(n[l]);isNaN(c)||(u[0]=Math.min(c,u[0]),u[1]=Math.max(c,u[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),u=s+Math.max(e.length,r||0),l=0;l<i;l++){var c=a[l];
29jm(n,l,c.type,u,!0)}for(var f=[],v=s;v<u;v++)for(var h=v-s,d=0;d<i;d++){var c=a[d],y=Sh.arrayRows.call(this,e[h]||f,c.property,h,d);n[d][v]=y;var g=o[d];y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(e,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=Xe(o,function(m){return m.property}),c=0;c<s;c++){var f=o[c];u[c]||(u[c]=Xi()),jm(i,c,f.type,r,n)}if(a.fillStorage)a.fillStorage(e,r,i,u);else for(var v=[],h=e;h<r;h++){v=a.getItem(h,v);for(var d=0;d<s;d++){var y=i[d],g=this._dimValueGetter(v,l[d],h,d);y[h]=g;var p=u[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],a=[];if(r==null){r=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<e)a=o+1;else if(r[o]>e)i=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=r[i]}else e=new n(r.buffer,0,a)}else{var n=Qi(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Qi(n._rawCount),o=new i(a),s=[],u=e.length,l=0,c=e[0],f=n._chunks,v=0;v<a;v++){var h=void 0,d=n.getRawIndex(v);if(u===0)h=r(v);else if(u===1){var y=f[c][d];h=r(y,v)}else{for(var g=0;g<u;g++)s[g]=f[e[g]][d];s[g]=v,h=r.apply(null,s)}h&&(o[l++]=d)}return l<a&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var a=ft(e),i=a.length;if(!i)return this;var o=r.count(),s=Qi(r._rawCount),u=new s(o),l=0,c=a[0],f=e[c][0],v=e[c][1],h=r._chunks,d=!1;if(!r._indices){var y=0;if(i===1){for(var g=h[a[0]],p=0;p<n;p++){var m=g[p];(m>=f&&m<=v||isNaN(m))&&(u[l++]=y),y++}d=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],w=e[a[1]][0],b=e[a[1]][1],p=0;p<n;p++){var m=g[p],S=_[p];(m>=f&&m<=v||isNaN(m))&&(S>=w&&S<=b||isNaN(S))&&(u[l++]=y),y++}d=!0}}if(!d)if(i===1)for(var p=0;p<o;p++){var O=r.getRawIndex(p),m=h[a[0]][O];(m>=f&&m<=v||isNaN(m))&&(u[l++]=O)}else for(var p=0;p<o;p++){for(var T=!0,O=r.getRawIndex(p),M=0;M<i;M++){var D=a[M],m=h[D][O];(m<e[D][0]||m>e[D][1])&&(T=!1)}T&&(u[l++]=r.getRawIndex(p))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var a=e._chunks,i=[],o=r.length,s=e.count(),u=[],l=e._rawExtent,c=0;c<r.length;c++)l[r[c]]=Xi();for(var f=0;f<s;f++){for(var v=e.getRawIndex(f),h=0;h<o;h++)u[h]=a[r[h]][v];u[o]=f;var d=n&&n.apply(null,u);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var c=0;c<d.length;c++){var y=r[c],g=d[c],p=l[y],m=a[y];m&&(m[v]=g),g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),c,f,v,h=new(Qi(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));h[s++]=l;for(var d=1;d<o-1;d+=u){for(var y=Math.min(d+u,o-1),g=Math.min(d+u*2,o),p=(g+y)/2,m=0,_=y;_<g;_++){var w=this.getRawIndex(_),b=i[w];isNaN(b)||(m+=b)}m/=g-y;var S=d,O=Math.min(d+u,o),T=d-1,M=i[l];c=-1,v=S;for(var D=-1,P=0,_=S;_<O;_++){var w=this.getRawIndex(_),b=i[w];if(isNaN(b)){P++,D<0&&(D=w);continue}f=Math.abs((T-p)*(b-M)-(T-_)*(m-M)),f>c&&(c=f,v=w)}P>0&&P<O-S&&(h[s++]=Math.min(D,v),v=Math.max(D,v)),h[s++]=v,l=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/r),o=a[e],s=this.count(),u=new(Qi(this._rawCount))(Math.ceil(s/i)*2),l=0,c=0;c<s;c+=i){var f=c,v=o[this.getRawIndex(f)],h=c,d=o[this.getRawIndex(h)],y=i;c+i>s&&(y=s-c);for(var g=0;g<y;g++){var p=this.getRawIndex(c+g),m=o[p];m<v&&(v=m,f=c+g),m>d&&(d=m,h=c+g)}var _=this.getRawIndex(f),w=this.getRawIndex(h);f<h?(u[l++]=_,u[l++]=w):(u[l++]=w,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],u=Math.floor(1/r),l=o[e],c=this.count(),f=i._rawExtent[e]=Xi(),v=new(Qi(this._rawCount))(Math.ceil(c/u)),h=0,d=0;d<c;d+=u){u>c-d&&(u=c-d,s.length=u);for(var y=0;y<u;y++){var g=this.getRawIndex(d+y);s[y]=l[g]}var p=n(s),m=this.getRawIndex(Math.min(d+a(s,p)||0,c-1));l[m]=p,p<f[0]&&(f[0]=p),p>f[1]&&(f[1]=p),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[e[0]][s],i);break;case 2:r(a[e[0]][s],a[e[1]][s],i);break;default:for(var u=0,l=[];u<n;u++)l[u]=a[e[u]][s];l[u]=i,r.apply(null,l)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=Xi();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],u=o[1],l=0;l<a;l++){var c=this.getRawIndex(l),f=r[c];f<s&&(s=f),f>u&&(u=f)}return o=[s,u],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},t.prototype.clone=function(e,r){var n=new t,a=this._chunks,i=e&&es(e,function(s,u){return s[u]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?Sx(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ke(this._extent),e._rawExtent=ke(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,a,i){return Bl(r[i],this._dimensions[i])}Sh={arrayRows:e,objectRows:function(r,n,a,i){return Bl(r[n],this._dimensions[i])},keyedColumns:e,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return Bl(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),t}(),Hl={},Dh={},PS=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Hl),this._normalMasterList=n(Dh);function n(a,i){var o=[];return z(a,function(s,u){var l=s.create(e,r);o=o.concat(l||[])}),o}},t.prototype.update=function(e,r){z(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Hl[e]=r;return}Dh[e]=r},t.get=function(e){return Dh[e]||Hl[e]},t}();function Tx(t){return!!Hl[t]}var qm={coord:1,coord2:2},Cx=He();function Mx(t){var e=t.getShallow("coord",!0),r=qm.coord;if(e==null){var n=Cx.get(t.type);n&&n.getCoord2&&(r=qm.coord2,e=n.getCoord2(t))}return{coord:e,from:r}}var An={none:0,dataCoordSys:1,boxCoordSys:2};function Px(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),a=An.none;if(r){var i=t.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=An.dataCoordSys,i||(a=An.none)):n==="box"&&(a=An.boxCoordSys,!i&&!Tx(r)&&(a=An.none))}return{coordSysType:r,kind:a}}function rQ(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,a=t.isDefaultDataCoordSys,i=Px(e),o=i.kind,s=i.
29coordSysType;if(a&&o!==An.dataCoordSys&&(o=An.dataCoordSys,s=r),o===An.none||s!==r)return!1;var u=n(r,e);return u?(o===An.dataCoordSys?e.coordinateSystem=u:e.boxCoordinateSystem=u,!0):!1}var Ox=Math.round(Math.random()*10);function lf(t){return[t||"",Ox++].join("_")}function Ax(t){var e={};t.registerSubTypeDefaulter=function(r,n){var a=nn(r);e[a.main]=n},t.determineSubType=function(r,n){var a=n.type;if(!a){var i=nn(r).main;t.hasSubTypes(r)&&e[i]&&(a=e[i](n))}return a}}function Ex(t,e){t.topologicalTravel=function(i,o,s,u){if(!i.length)return;var l=r(o),c=l.graph,f=l.noEntryList,v={};for(z(i,function(m){v[m]=!0});f.length;){var h=f.pop(),d=c[h],y=!!v[h];y&&(s.call(u,h,d.originalDeps.slice()),delete v[h]),z(d.successor,y?p:g)}z(v,function(){var m="";throw new Error(m)});function g(m){c[m].entryCount--,c[m].entryCount===0&&f.push(m)}function p(m){v[m]=!0,g(m)}};function r(i){var o={},s=[];return z(i,function(u){var l=n(o,u),c=l.originalDeps=e(u),f=a(c,i);l.entryCount=f.length,l.entryCount===0&&s.push(u),z(f,function(v){lt(l.predecessor,v)<0&&l.predecessor.push(v);var h=n(o,v);lt(h.successor,v)<0&&h.successor.push(u)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return z(i,function(u){lt(o,u)>=0&&s.push(u)}),s}}function nQ(t,e){return yt(yt({},t,!0),e,!0)}var Ix=Math.log(2);function ld(t,e,r,n,a,i){var o=n+"-"+a,s=t.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var u=Math.round(Math.log((1<<s)-1&~a)/Ix);return t[r][u]}for(var l=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,v=0,h=0;v<s;v++){var d=1<<v;d&a||(f+=(h%2?-1:1)*t[r][v]*ld(t,e-1,c,l,a|d,i),h++)}return i[o]=f,f}function Km(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},a=ld(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*ld(r,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(u,l,c){var f=l*i[6]+c*i[7]+1;u[0]=(l*i[0]+c*i[1]+i[2])/f,u[1]=(l*i[3]+c*i[4]+i[5])/f}}}var pc="___zrEVENTSAVED",Th=[];function aQ(t,e,r,n,a){return cd(Th,e,n,a,!0)&&cd(t,r,Th[0],Th[1])}function iQ(t,e){t&&r(t),e&&r(e);function r(n){var a=n[pc];a&&(a.clearMarkers&&a.clearMarkers(),delete n[pc])}}function cd(t,e,r,n,a){if(e.getBoundingClientRect&&Le.domSupported&&!OS(e)){var i=e[pc]||(e[pc]={}),o=Lx(e,i),s=xx(o,i,a);if(s)return s(t,r,n),!0}return!1}function Lx(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,u=i%2,l=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",a[l]+":0",n[1-u]+":auto",a[1-l]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){z(r,function(c){c.parentNode&&c.parentNode.removeChild(c)})},r}function xx(t,e,r){for(var n=r?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var c=t[l].getBoundingClientRect(),f=2*l,v=c.left,h=c.top;o.push(v,h),u=u&&i&&v===i[f]&&h===i[f+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return u&&a?a:(e.srcCoords=o,e[n]=r?Km(s,o):Km(o,s))}function OS(t){return t.nodeName.toUpperCase()==="CANVAS"}var $x=/([&<>"'])/g,kx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Zt(t){return t==null?"":(t+"").replace($x,function(e,r){return kx[r]})}const Rx={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"}
29,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:". "}}}},Fx={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}
29,",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var gc="ZH",Lp="EN",bo=Lp,Ul={},xp={},AS=Le.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||bo).toUpperCase();return t.indexOf(gc)>-1?gc:bo}():bo;function ES(t,e){t=t.toUpperCase(),xp[t]=new Rt(e),Ul[t]=e}function Nx(t){if(Ee(t)){var e=Ul[t.toUpperCase()]||{};return t===gc||t===Lp?ke(e):yt(ke(e),ke(Ul[bo]),!1)}else return yt(ke(t),ke(Ul[bo]),!1)}function Yx(t){return xp[t]}function Bx(){return xp[bo]}ES(Lp,Rx);ES(gc,Fx);var Hx=null;function Ux(){return Hx}var zx=1e3,Wx=zx*60,Vx=Wx*60,Gx=Vx*24,oQ=Gx*365,jx={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})/},zl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},qx="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",fl="{yyyy}-{MM}-{dd}",sQ={year:"{yyyy}",month:"{yyyy}-{MM}",day:fl,hour:fl+" "+zl.hour,minute:fl+" "+zl.minute,second:fl+" "+zl.second,millisecond:qx},Ch=["year","month","day","hour","minute","second","millisecond"],uQ=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function lQ(t){return!Ee(t)&&!it(t)?Kx(t):t}function Kx(t){t=t||{};var e={},r=!0;return z(Ch,function(n){r&&(r=t[n]==null)}),z(Ch,function(n,a){var i=t[n];e[n]={};for(var o=null,s=a;s>=0;s--){var u=Ch[s],l=Te(i)&&!pe(i)?i[u]:i,c=void 0;pe(l)?(c=l.slice(),o=c[0]||""):Ee(l)?(o=l,c=[o]):(o==null?o=zl[n]:jx[u].test(o)||(o=e[u][u][0]+" "+o),c=[o],r&&(c[1]="{primary|"+o+"}")),e[n][u]=c}}),e}function qn(t,e){return t+="","0000".substr(0,e-t.length)+t}function Qx(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function cQ(t){return t===Qx(t)}function fQ(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function IS(t,e,r,n){var a=$u(t),i=a[Zx(r)](),o=a[LS(r)]()+1,s=Math.floor((o-1)/3)+1,u=a[xS(r)](),l=a["get"+(r?"UTC":"")+"Day"](),c=a[$S(r)](),f=(c-1)%12+1,v=a[kS(r)](),h=a[RS(r)](),d=a[FS(r)](),y=c>=12?"pm":"am",g=y.toUpperCase(),p=n instanceof Rt?n:Yx(n||AS)||Bx(),m=p.getModel("time"),_=m.get("month"),w=m.get("monthAbbr"),b=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,y+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,qn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,qn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,qn(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,b[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,qn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,qn(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,qn(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,qn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,qn(d,3)).replace(/{S}/g,d+"")}function hQ(t,e,r,n,a){var i=null;if(Ee(r))i=r;else if(it(r)){var o={time:t.time,level:t.time.level},s=Ux();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),i=r(t.value,e,o)}else{var u=t.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];i=l[Math.min(u.level,l.length-1)]||""}else{var c=Xx(t.value,a);i=r[c][c][0]}}return IS(new Date(t.value),i,a,n)}function Xx(t,e){var r=$u(t),n=r[LS(e)]()+1,a=r[xS(e)](),i=r[$S(e)](),o=r[kS(e)](),s=r[RS(e)](),u=r[FS(e)](),l=u===0,c=l&&s===0,f=c&&o===0,v=f&&i===0,h=v&&a===1,d=h&&n===1;return d?"year":h?"month":v?"day":f?"hour":c?"minute":l?"second":"millisecond"}function vQ(t,e,r){switch(e){case"year":t[Jx(r)](0);case"month":t[e$(r)](1);case"day":t[t$(r)](0);case"hour":t[r$(r)](0);case"minute":t[n$(r)](0);case"second":t[a$(r)](0)}return t}function Zx(t){return t?"getUTCFullYear":"getFullYear"}function LS(t){return t?"getUTCMonth":"getMonth"}function xS(t){return t?"getUTCDate":"getDate"}function $S(t){return t?"getUTCHours":"getHours"}function kS(t){return t?"getUTCMinutes":"getMinutes"}function RS(t){return t?"getUTCSeconds":"getSeconds"}function FS(t){return t?"getUTCMilliseconds":"getMilliseconds"}function dQ(t){return t?"setUTCFullYear":"setFullYear"}function Jx(t){return t?"setUTCMonth":"setMonth"}function e$(t){return t?"setUTCDate":"setDate"}function t$(t){return t?"setUTCHours":"setHours"}function r$(t){return t?"setUTCMinutes":"setMinutes"}function n$(t){return t?"setUTCSeconds":"setSeconds"}function a$(t){return t?"setUTCMilliseconds":"setMilliseconds"}
29function i$(t){if(!aI(t))return Ee(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function pQ(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var o$=up;function fd(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Ln(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=t instanceof Date;if(o||s){var u=o?$u(t):t;if(isNaN(+u)){if(s)return"-"}else return IS(u,n,r)}if(e==="ordinal")return xv(t)?a(t):mt(t)&&i(t)?t+"":"-";var l=fc(t);return i(l)?i$(l):xv(t)?a(t):typeof t=="boolean"?t+"":"-"}var Qm=["a","b","c","d","e","f","g"],Mh=function(t,e){return"{"+t+(e??"")+"}"};function s$(t,e,r){pe(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=Qm[i];t=t.replace(Mh(o),Mh(o,0))}for(var s=0;s<n;s++)for(var u=0;u<a.length;u++){var l=e[s][a[u]];t=t.replace(Mh(Qm[u],s),r?Zt(l):l)}return t}function u$(t,e){var r=Ee(t)?{color:t,extraCssText:e}:t||{},n=r.color,a=r.type;e=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Zt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Zt(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|}  ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function l$(t,e){return e=e||"transparent",Ee(t)?t:Te(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Wl=z,c$=["left","right","top","bottom","width","height"],hl=[["width","left","right"],["height","top","bottom"]];function NS(t,e,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(u,l){var c=u.getBoundingRect(),f=e.childAt(l+1),v=f&&f.getBoundingRect(),h,d;if(t==="horizontal"){var y=c.width+(v?-v.x+c.x:0);h=i+y,h>n||u.newline?(i=0,h=y,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(v?-v.y+c.y:0);d=o+g,d>a||u.newline?(i+=s+r,o=0,d=g,s=c.width):s=Math.max(s,c.width)}u.newline||(u.x=i,u.y=o,u.markRedraw(),t==="horizontal"?i=h+r:o=d+r)})}op(NS,"vertical");op(NS,"horizontal");function f$(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function gQ(t,e,r){r=o$(r||0);var n=e.width,a=e.height,i=ta(t.left,n),o=ta(t.top,a),s=ta(t.right,n),u=ta(t.bottom,a),l=ta(t.width,n),c=ta(t.height,a),f=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(l)&&(l=n-s-v-i),isNaN(c)&&(c=a-u-f-o),h!=null&&(isNaN(l)&&isNaN(c)&&(h>n/a?l=n*.8:c=a*.8),isNaN(l)&&(l=h*c),isNaN(c)&&(c=l/h)),isNaN(i)&&(i=n-s-l-v),isNaN(o)&&(o=a-u-c-f),t.left||t.right){case"center":i=n/2-l/2-r[3];break;case"right":i=n-l-v;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-c/2-r[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(l)&&(l=n-v-i-(s||0)),isNaN(c)&&(c=a-f-o-(u||0));var d=new Fe((e.x||0)+i+r[3],(e.y||0)+o+r[0],l,c);return d.margin=r,d}var Ph={rect:1};function yQ(t,e,r){var n,a,i,o=t.boxCoordinateSystem,s;if(o){var u=Mx(t),l=u.coord,c=u.from;if(o.dataToLayout){i=Ph.rect,s=c;var f=o.dataToLayout(l);n=f.contentRect||f.rect}}return i==null&&(i=Ph.rect),i===Ph.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function yc(t){var e=t.layoutMode||t.constructor.layoutMode;return Te(e)?e:e?{type:e}:null}function mc(t,e,r){var n=r&&r.ignoreSize;!pe(n)&&(n=[n,n]);var a=o(hl[0],0),i=o(hl[1],1);u(hl[0],t,a),u(hl[1],t,i);function o(l,c){var f={},v=0,h={},d=0,y=2;if(Wl(l,function(m){h[m]=t[m]}),Wl(l,function(m){un(e,m)&&(f[m]=h[m]=e[m]),s(f,m)&&v++,s(h,m)&&d++}),n[c])return s(e,l[1])?h[l[2]]=null:s(e,l[2])&&(h[l[1]]=null),h;if(d===y||!v)return h;if(v>=y)return f;for(var g=0;g<l.length;g++){var p=l[g];if(!un(f,p)&&un(t,p)){f[p]=t[p];break}}return f}function s(l,c){return l[c]!=null&&l[c]!=="auto"}function u(l,c,f){Wl(l,function(v){c[v]=f[v]})}}function YS(t){return h$({},t)}function h$(t,e){return e&&t&&Wl(c$,function(r){un(e,r)&&(t[r]=e[r])}),t}var v$=rr(),ut=function(t){Ae(e,t);function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.uid=lf("ec_cpt_model"),i}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=yc(this),i=a?YS(r):{},o=n.getTheme();yt(r,o.get(this.mainType)),yt(r,this.getDefaultOption()),a&&mc(r,i,a)},e.prototype.mergeOption=function(r,n){yt(this.option,r,!0);var a=yc(this);a&&mc(this.option,r,a)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!yA(r))return r.defaultOption;var n=v$(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},u=a.length-1;u>=0;u--)s=yt(s,a[u],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return ef(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return f$(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(Rt);ob(ut,Rt);cp(ut);Ax(ut);Ex(ut,d$);function d$(t){var e=[];return z(ut.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.depen
29dencies||[])}),e=Xe(e,function(r){return nn(r).main}),t!=="dataset"&&lt(e,"dataset")<=0&&e.unshift("dataset"),e}var Xm=rr();rr();var $p=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var a=Jt(this.get("color",!0)),i=this.get("colorLayer",!0);return g$(this,Xm,a,i,e,r,n)},t.prototype.clearColorPalette=function(){y$(this,Xm)},t}();function p$(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function g$(t,e,r,n,a,i,o){i=i||t;var s=e(i),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var c=o==null||!n?r:p$(n,o);if(c=c||r,!(!c||!c.length)){var f=c[u];return a&&(l[a]=f),s.paletteIdx=(u+1)%c.length,f}}function y$(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var m$=/\{@(.+?)\}/g,_$=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),a=this.getRawValue(e,r),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),u=n.getItemVisual(e,"style"),l=u&&u[n.getItemVisual(e,"drawType")||"fill"],c=u&&u.stroke,f=this.mainType,v=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:l,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,a,i,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(e,n);if(o&&(u.value=o.interpolatedValue),a!=null&&pe(u.value)&&(u.value=u.value[a]),!i){var l=s.getItemModel(e);i=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(it(i))return u.status=r,u.dimensionIndex=a,i(u);if(Ee(i)){var c=s$(i,u);return c.replace(m$,function(f,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var y=dc(s,e,d);if(o&&pe(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(y=o.interpolatedValue[g])}return y!=null?y+"":""})}},t.prototype.getRawValue=function(e,r){return dc(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function mQ(t){var e,r;return Te(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Zs(t){return new w$(t)}var w$=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,u=c(e&&e.modBy),l=e&&e.modDataCount||0;(o!==u||s!==l)&&(i="reset");function c(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=u,this._modDataCount=l;var v=e&&e.step;if(r?this._dueEnd=r._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(!n&&(f||h<d)){var y=this._progress;if(pe(y))for(var g=0;g<y.length;g++)this._doProgress(y[g],h,d,u,l);else this._doProgress(y,h,d,u,l)}this._dueIndex=d;var p=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=p}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,a,i){Zm.reset(r,n,a,i),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Zm.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),pe(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),Zm=function(){var t,e,r,n,a,i={reset:function(u,l,c,f){e=u,t=l,r=c,n=f,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var u=e%a*r+Math.ceil(e/a),l=e>=t?null:u<n?u:e;return e++,l}}
29(),b$=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Bl(e,r)},t}();function S$(t,e){var r=new b$,n=t.data,a=r.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==hn&&Xt(o);var s=[],u={},l=t.dimensionsDefine;if(l)z(l,function(y,g){var p=y.name,m={index:g,name:p,displayName:y.displayName};if(s.push(m),p!=null){var _="";un(u,p)&&Xt(_),u[p]=m}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var f=DS(a,hn);e.__isBuiltIn&&(r.getRawDataItem=function(y){return f(n,i,s,y)},r.getRawData=en(D$,null,t)),r.cloneRawData=en(T$,null,t);var v=TS(a,hn);r.count=en(v,null,n,i,s);var h=CS(a);r.retrieveValue=function(y,g){var p=f(n,i,s,y);return d(p,g)};var d=r.retrieveValueFromItem=function(y,g){if(y!=null){var p=s[g];if(p)return h(y,g,p.name)}};return r.getDimensionInfo=en(C$,null,s,u),r.cloneAllDimensionInfo=en(M$,null,s),r}function D$(t){var e=t.sourceFormat;if(!kp(e)){var r="";Xt(r)}return t.data}function T$(t){var e=t.sourceFormat,r=t.data;if(!kp(e)){var n="";Xt(n)}if(e===Tt){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(e===Nr){for(var a=[],i=0,o=r.length;i<o;i++)a.push(ie({},r[i]));return a}}function C$(t,e,r){if(r!=null){if(mt(r)||!isNaN(r)&&!un(e,r))return t[r];if(un(e,r))return e[r]}}function M$(t){return ke(t)}var BS=He();function P$(t){t=ke(t);var e=t.type,r="";e||Xt(r);var n=e.split(":");n.length!==2&&Xt(r);var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),t.__isBuiltIn=a,BS.set(e,t)}function O$(t,e,r){var n=Jt(t),a=n.length,i="";a||Xt(i);for(var o=0,s=a;o<s;o++){var u=n[o];e=A$(u,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function A$(t,e,r,n){var a="";e.length||Xt(a),Te(t)||Xt(a);var i=t.type,o=BS.get(i);o||Xt(a);var s=Xe(e,function(l){return S$(l,o)}),u=Jt(o.transform({upstream:s[0],upstreamList:s,config:ke(t.config)}));return Xe(u,function(l,c){var f="";Te(l)||Xt(f),l.data||Xt(f);var v=SS(l.data);kp(v)||Xt(f);var h,d=e[0];if(d&&c===0&&!l.dimensions){var y=d.startIndex;y&&(l.data=d.data.slice(0,y).concat(l.data)),h={seriesLayoutBy:hn,sourceHeader:y,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:hn,sourceHeader:0,dimensions:l.dimensions};return ud(l.data,h,null)})}function kp(t){return t===Tt||t===Nr}var E$=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(vl(e)){var o=e,s=void 0,u=void 0,l=void 0;if(n){var c=r[0];c.prepareSource(),l=c.getSource(),s=l.data,u=l.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),u=jt(s)?Di:pn,i=[];var f=this._getSourceMetaRawOption()||{},v=l&&l.metaRawOption||{},h=Re(f.seriesLayoutBy,v.seriesLayoutBy)||null,d=Re(f.sourceHeader,v.sourceHeader),y=Re(f.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||y;a=g?[ud(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:y},u)]:[]}else{var p=e;if(n){var m=this._applyTransform(r);a=m.sourceList,i=m.upstreamSignList}else{var _=p.get("source",!0);a=[ud(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&Jm(i)}var o,s=[],u=[];return z(e,function(l){l.prepareSource();var c=l.getSource(a||0),f="";a!=null&&!c&&Jm(f),s.push(c),u.push(l._getVersionSign())}),n?o=O$(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[lx(s[0])]),{sourceList:o,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];vl(this._sourceHost)&&u?s=u._innerGetDataStore(e,r,n):(s=new Dx,s.initData(new vx(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(vl(e)){var r=bS(e);return r?[r.getSourceManager()]:[]}else return Xe(ax(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,a;if(vl(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},t}();function vl(t){return t.mainType==="series"}function Jm(t){throw new Error(t)}var Ft={color:{},darkColor:{},size:{}},tt=Ft.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)"};ie(tt,{primary:tt.neutral80,secondary:tt.neutral70,tertiary:tt.neutral60,quaternary:tt.neutral50,disabled:tt.neutral20,border:tt.neutral30,borderTint:tt.neutral20,borderShade:tt.neutral40,background:tt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:tt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine
29:tt.neutral70,axisLineTint:tt.neutral40,axisTick:tt.neutral70,axisTickMinor:tt.neutral60,axisLabel:tt.neutral70,axisSplitLine:tt.neutral15,axisMinorSplitLine:tt.neutral05});for(var Za in tt)if(tt.hasOwnProperty(Za)){var e0=tt[Za];Za==="theme"?Ft.darkColor.theme=tt.theme.slice():Za==="highlight"?Ft.darkColor.highlight="rgba(255,231,130,0.4)":Za.indexOf("accent")===0?Ft.darkColor[Za]=zv(e0,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Ft.darkColor[Za]=zv(e0,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}Ft.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var I$="line-height:1";function HS(t){var e=t.lineHeight;return e==null?I$:"line-height:"+Zt(e+"")+"px"}function US(t,e){var r=t.color||Ft.color.tertiary,n=t.fontSize||12,a=t.fontWeight||"400",i=t.color||Ft.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Zt(n+"")+"px;color:"+Zt(r)+";font-weight:"+Zt(a+""),valueStyle:"font-size:"+Zt(o+"")+"px;color:"+Zt(i)+";font-weight:"+Zt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var L$=[0,10,20,30],x$=["",`
30`,`
31
32`,`
33
34
35`];function hd(t,e){return e.type=t,e}function vd(t){return t.type==="section"}function zS(t){return vd(t)?$$:k$}function WS(t){if(vd(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return z(t.blocks,function(a){var i=WS(a);i>=e&&(e=i+ +(n&&(!i||vd(a)&&!a.noHeader)))}),e}return 0}function $$(t,e,r,n){var a=e.noHeader,i=R$(WS(e)),o=[],s=e.blocks||[];$n(!s||pe(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(un(l,u)){var c=new yx(l[u],null);s.sort(function(y,g){return c.evaluate(y.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}z(s,function(y,g){var p=e.valueFormatter,m=zS(y)(p?ie(ie({},t),{valueFormatter:p}):t,y,g>0?i.html:0,n);m!=null&&o.push(m)});var f=t.renderMode==="richText"?o.join(i.richText):dd(n,o.join(""),a?r:i.html);if(a)return f;var v=fd(e.header,"ordinal",t.useUTC),h=US(n,t.renderMode).nameStyle,d=HS(n);return t.renderMode==="richText"?VS(t,v,h)+i.richText+f:dd(n,'<div style="'+h+";"+d+';">'+Zt(v)+"</div>"+f,r)}function k$(t,e,r,n){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,u=e.name,l=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(w){return w=pe(w)?w:[w],Xe(w,function(b,S){return fd(b,pe(h)?h[S]:h,l)})};if(!(i&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Ft.color.secondary,a),v=i?"":fd(u,"ordinal",l),h=e.valueType,d=o?[]:c(e.value,e.dataIndex),y=!s||!i,g=!s&&i,p=US(n,a),m=p.nameStyle,_=p.valueStyle;return a==="richText"?(s?"":f)+(i?"":VS(t,v,m))+(o?"":Y$(t,d,y,g,_)):dd(n,(s?"":f)+(i?"":F$(v,!s,m))+(o?"":N$(d,y,g,_)),r)}}function _Q(t,e,r,n,a,i){if(t){var o=zS(t),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}
35function R$(t){return{html:L$[t],richText:x$[t]}}function dd(t,e,r){var n='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",i=HS(t);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function F$(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Zt(t)+"</span>"}function N$(t,e,r,n){var a=r?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=pe(t)?t:[t],'<span style="'+i+";"+n+'">'+Xe(t,function(o){return Zt(o)}).join("&nbsp;&nbsp;")+"</span>"}function VS(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function Y$(t,e,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(pe(e)?e.join("  "):e,i)}function B$(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return l$(n)}function wQ(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var bQ=function(){function t(){this.richTextStyles={},this._nextStyleNameId=$b()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a=n==="richText"?this._generateStyleName():null,i=u$({color:r,type:e,renderMode:n,markerId:a});return Ee(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};pe(r)?z(r,function(i){return ie(n,i)}):ie(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t}();function H$(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),u=pe(s),l=B$(e,r),c,f,v,h;if(o>1||u&&!o){var d=U$(s,e,r,i,l);c=d.inlineValues,f=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var y=a.getDimensionInfo(i[0]);h=c=dc(a,r,i[0]),f=y.type}else h=c=u?s[0]:s;var g=Yb(e),p=g&&e.name||"",m=a.getName(r),_=n?p:m;return hd("section",{header:p,noHeader:n||!g,sortParam:h,blocks:[hd("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ln(_),value:c,valueType:f,dataIndex:r})].concat(v||[])})}function U$(t,e,r,n,a){var i=e.getData(),o=es(t,function(f,v,h){var d=i.getDimensionInfo(h);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?z(n,function(f){c(dc(i,r,f),f)}):z(t,c);function c(f,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?l.push(hd("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),u.push(h.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var Kn=rr();function dl(t,e){return t.getName(e)||t.getId(e)}var z$="__universalTransitionEnabled",hu=function(t){Ae(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Zs({count:V$,reset:G$}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=Kn(this).sourceManager=new E$(this);i.prepareSource();var o=this.getInitialData(r,a);r0(o,this),this.dataTask.context.data=o,Kn(this).dataBeforeProcessed=o,t0(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=yc(this),i=a?YS(r):{},o=this.subType;ut.hasClass(o)&&(o+="Series"),yt(r,n.getTheme().get(this.subType)),yt(r,this.getDefaultOption()),hm(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&mc(r,i,a)},e.prototype.mergeOption=function(r,n){r=yt(this.option,r,!0),this.fillDataTextStyle(r.data);var a=yc(this);a&&mc(this.option,r,a);var i=Kn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);r0(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Kn(this).dataBeforeProcessed=o,t0(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!jt(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&hm(r[a],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=pd(this);if(n){var a=n.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}
35else return Kn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=pd(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}Kn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return He(r)},e.prototype.getSourceManager=function(){return Kn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Kn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,a,i){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(a);i==null&&(i=1/0);var c=[],f=1/0,v=-1,h=0;return o.each(n,function(d,y){var g=u.dataToCoord(d),p=l-g,m=Math.abs(p);m<=i&&((m<f||m===f&&p>=0&&v<0)&&(f=m,v=p,h=0),p===v&&(c[h++]=y))}),c.length=h,c},e.prototype.formatTooltip=function(r,n,a){return H$({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Le.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=$p.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=dl(o,u);a[l]=!1,this._selectedDataIndicesMap[l]=-1}}},e.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=ft(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[dl(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[z$])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Te(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,c=0;c<u;c++){var f=n[c],v=dl(r,f);l[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[u-1],v=dl(r,h);o.selectedMap=(a={},a[v]=!0,a),this._selectedDataIndicesMap=(i={},i[v]=r.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ut.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(ut);Nn(hu,_$);Nn(hu,$p);ob(hu,ut);function t0(t){var e=t.name;Yb(t)||(t.name=W$(t)||e)}function W$(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return z(r,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function V$(t){return t.model.getRawData().count()}function G$(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),j$}function j$(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function r0(t,e){z(cA(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,op(q$,e))})}function q$(t,e){var r=pd(t);return r&&r.setOutputEnd((e||this).count()),e}function pd(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}var K$=Ke.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n+i),t.lineTo(r-a,n+i),t.closePath()}}),Q$=Ke.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n),t.lineTo(r,n+i),t.lineTo(r-a,n),t.closePath()}}),X$=Ke.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),u=n-i+o+s,l=Math.asin(s/o),c=Math.cos(l)*o,f=Math.sin(l),v=Math.cos(l),h=o*.6,d=o*.7;t.moveTo(r-c,u+s),t.arc(r,u,o,Math.PI-l,Math.PI*2+l),t.bezierCurveTo(r+c-f*h,u+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-c+f*h,u+s+v*h,r-c,u+s),t.closePath()}}),Z$=Ke.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;t.moveTo(a,i),t.lineTo(a+o,i+r),t.lineTo(a,i+r/4*3),t.lineTo(a-o,i+r),t.lineTo(a,i),t.closePath()}}),J$={line:nf,rect:fn,roundRect:fn,square:fn,circle:rf,diamond:Q$,pin:X$,arrow:Z$,triangle:K$},ek={line:function(t,e,r,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+r,a.y2=e+n/2},rect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n},roundRect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(t,e,r,n,a){var i=Math.min(r,n);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.r=Math.min(r,n)/2},diamond:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n},pin:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},arrow:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},triangle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n}},gd={};z(J$,function(t,e){gd[e]=new t});var tk=Ke.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=vb(t,e,r),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var a=gd[n];a||(n="rect",a=gd[n]),ek[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});
35function rk(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||Ft.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function nk(t,e,r,n,a,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return t.indexOf("image://")===0?u=sS(t.slice(8),new Fe(e,r,n,a),o?"center":"cover"):t.indexOf("path://")===0?u=Ep(t.slice(7),{},new Fe(e,r,n,a),o?"center":"cover"):u=new tk({shape:{symbolType:t,x:e,y:r,width:n,height:a}}),u.__isEmptyBrush=s,u.setColor=rk,i&&u.setColor(i),u}function SQ(t){return pe(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function DQ(t,e){if(t!=null)return pe(t)||(t=[t,t]),[ta(t[0],e[0])||0,ta(Re(t[1],t[0]),e[1])||0]}function ak(){var t=rr();return function(e){var r=t(e),n=e.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var GS=rr(),ik=ak(),Js=function(){function t(){this.group=new rs,this.uid=lf("viewChart"),this.renderTask=Zs({plan:ok,reset:sk}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.highlight=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&a0(i,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&a0(i,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateLayout=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){hS(this.group,e)},t.markUpdateMethod=function(e,r){GS(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function n0(t,e,r){t&&nd(t)&&(e==="emphasis"?Jv:ed)(t,r)}function a0(t,e,r){var n=Jc(t,e),a=e&&e.highlightKey!=null?YI(e.highlightKey):null;n!=null?z(Jt(n),function(i){n0(t.getItemGraphicEl(i),r,a)}):t.eachItemGraphicEl(function(i){n0(i,r,a)})}lp(Js);cp(Js);function ok(t){return ik(t.model)}function sk(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&GS(a).updateMethod,u=i?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](e,r,n,a),uk[u]}var uk={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},_c="\0__throttleOriginMethod",i0="\0__throttleRate",o0="\0__throttleType";function Rp(t,e,r){var n,a=0,i=0,o=null,s,u,l,c;e=e||0;function f(){i=new Date().getTime(),o=null,t.apply(u,l||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),u=this,l=h;var y=c||e,g=c||r;c=null,s=n-(g?a:i)-y,clearTimeout(o),g?o=setTimeout(f,y):s>=0?f():o=setTimeout(f,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){c=h},v}function TQ(t,e,r,n){var a=t[e];if(a){var i=a[_c]||a,o=a[o0],s=a[i0];if(s!==r||o!==n){if(r==null||!n)return t[e]=i;a=t[e]=Rp(i,r,n==="debounce"),a[_c]=i,a[o0]=n,a[i0]=r}return a}}function CQ(t,e){var r=t[e];r&&r[_c]&&(r.clear&&r.clear(),t[e]=r[_c])}function Zi(t,e,r,n,a){var i=t+e;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=a.selected,c=0;c<l.length;c++)if(l[c].seriesIndex===s){var f=o.getData(),v=Jc(f,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:pe(v)?f.getName(v[0]):f.getName(v),selected:Ee(u)?u:ie({},u)})}})}function lk(t,e,r){t.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Zi("map","selectchanged",e,a,n),Zi("pie","selectchanged",e,a,n)):n.fromAction==="select"?(Zi("map","selected",e,a,n),Zi("pie","selected",e,a,n)):n.fromAction==="unselect"&&(Zi("map","unselected",e,a,n),Zi("pie","unselected",e,a,n))})}var Ji=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),ck=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ji(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,e),this.handler.dispatchToElement(new Ji(r,e),"drag",e.event);var s=this.handler.findHover(n,a,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Ji(u,e),"dragleave",e.event),s&&s!==u&&this.handler.dispatchToElement(new Ji(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ji(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ji(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),fk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Oh=[],hk=Le.browser.firefox&&+Le.browser.version.split(".")[0]<39;function yd(t,e,r,n){return r=r||{},n?s0(t,e,r):hk&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):s0(t,e,r),r}function s0(t,e,r){if(Le.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(OS(t)){var i=t.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(cd(Oh,t,n,a)){r.zrX=Oh[0],r.zrY=Oh[1];return}}r.zrX=r.zrY=0}function Fp(t){return t||window.event}function Or(t,e,r){if(e=Fp(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&yd(t,o,e,r)}else{yd(t,e,e,r);var i=vk(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&fk.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function vk(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function dk(t,e,r,n){t.addEventListener(e,r,n)}function pk(t,e,r,n){t.removeEventListener(e,r,n)}var gk=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},yk=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:r,event:e},o=0,s=a.length;o<s;o++){var u=a[o],l=yd(n,u,{});i.points.push([l.zrX,l.zrY]),i.touches.push(u)}this._track.push(i)}},t.prototype._recognize=function(e){for(var r in Ah)if(Ah.hasOwnProperty(r)){var n=Ah[r](this._track,e);if(n)return n}},t}();function u0(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function mk(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Ah={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,a=(t[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=u0(n)/u0(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=mk(n);
35return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},jS="silent";function _k(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:wk}}function wk(){gk(this.event)}var bk=function(t){Ae(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Yn),_s=function(){function t(e,r){this.x=e,this.y=r}return t}(),Sk=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Eh=new Fe(0,0,0,0),qS=function(t){Ae(e,t);function e(r,n,a,i,o){var s=t.call(this)||this;return s._hovered=new _s(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new bk,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new ck(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(z(Sk,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=KS(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=i?new _s(n,a):this.findHover(n,a),l=u.target,c=this.proxy;c.setCursor&&c.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new _s(0,0)},e.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=_k(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},e.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new _s(r,n);if(l0(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,c=new Fe(r-l,n-l,u,u),f=i.length-1;f>=0;f--){var v=i[f];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Eh.copy(v.getBoundingRect()),v.transform&&Eh.applyTransform(v.transform),Eh.intersect(c)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,y=Math.PI*2,g=0;g<l;g+=h)for(var p=0;p<y;p+=d){var m=r+g*Math.cos(p),_=n+g*Math.sin(p);if(l0(s,o,m,_,a),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new yk);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);
35if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new _s;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(Yn);z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){qS.prototype[t]=function(e){var r=e.zrX,n=e.zrY,a=KS(this,r,n),i,o;if((t!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||KA(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function Dk(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?jS:!0}return!1}function l0(t,e,r,n,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=Dk(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==jS)){e.target=o;break}}}function KS(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var QS=32,ws=7;function Tk(t){for(var e=0;t>=QS;)e|=t&1,t>>=1;return t+e}function c0(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;a<r&&n(t[a],t[a-1])<0;)a++;Ck(t,e,a)}else for(;a<r&&n(t[a],t[a-1])>=0;)a++;return a-e}function Ck(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function f0(t,e,r,n,a){for(n===e&&n++;n<r;n++){for(var i=t[n],o=e,s=n,u;o<s;)u=o+s>>>1,a(i,t[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;l>0;)t[o+l]=t[o+l-1],l--}t[o]=i}}function Ih(t,e,r,n,a,i){var o=0,s=0,u=1;if(i(t,e[r+a])>0){for(s=n-a;u<s&&i(t,e[r+a+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=a,u+=a}else{for(s=a+1;u<s&&i(t,e[r+a-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=a-u,u=a-l}for(o++;o<u;){var c=o+(u-o>>>1);i(t,e[r+c])>0?o=c+1:u=c}return u}function Lh(t,e,r,n,a,i){var o=0,s=0,u=1;if(i(t,e[r+a])<0){for(s=a+1;u<s&&i(t,e[r+a-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=a-u,u=a-l}else{for(s=n-a;u<s&&i(t,e[r+a+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=a,u+=a}for(o++;o<u;){var c=o+(u-o>>>1);i(t,e[r+c])<0?u=c:o=c+1}return u}function Mk(t,e){var r=ws,n,a,i=0,o=[];n=[],a=[];function s(h,d){n[i]=h,a[i]=d,i+=1}function u(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function l(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var d=n[h],y=a[h],g=n[h+1],p=a[h+1];a[h]=y+p,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var m=Lh(t[g],t,d,y,0,e);d+=m,y-=m,y!==0&&(p=Ih(t[d+y-1],t,g,p,p-1,e),p!==0&&(y<=p?f(d,y,g,p):v(d,y,g,p)))}function f(h,d,y,g){var p=0;for(p=0;p<d;p++)o[p]=t[h+p];var m=0,_=y,w=h;if(t[w++]=t[_++],--g===0){for(p=0;p<d;p++)t[w+p]=o[m+p];return}if(d===1){for(p=0;p<g;p++)t[w+p]=t[_+p];t[w+g]=o[m];return}for(var b=r,S,O,T;;){S=0,O=0,T=!1;do if(e(t[_],o[m])<0){if(t[w++]=t[_++],O++,S=0,--g===0){T=!0;break}}else if(t[w++]=o[m++],S++,O=0,--d===1){T=!0;break}while((S|O)<b);if(T)break;
35do{if(S=Lh(t[_],o,m,d,0,e),S!==0){for(p=0;p<S;p++)t[w+p]=o[m+p];if(w+=S,m+=S,d-=S,d<=1){T=!0;break}}if(t[w++]=t[_++],--g===0){T=!0;break}if(O=Ih(o[m],t,_,g,0,e),O!==0){for(p=0;p<O;p++)t[w+p]=t[_+p];if(w+=O,_+=O,g-=O,g===0){T=!0;break}}if(t[w++]=o[m++],--d===1){T=!0;break}b--}while(S>=ws||O>=ws);if(T)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(p=0;p<g;p++)t[w+p]=t[_+p];t[w+g]=o[m]}else{if(d===0)throw new Error;for(p=0;p<d;p++)t[w+p]=o[m+p]}}function v(h,d,y,g){var p=0;for(p=0;p<g;p++)o[p]=t[y+p];var m=h+d-1,_=g-1,w=y+g-1,b=0,S=0;if(t[w--]=t[m--],--d===0){for(b=w-(g-1),p=0;p<g;p++)t[b+p]=o[p];return}if(g===1){for(w-=d,m-=d,S=w+1,b=m+1,p=d-1;p>=0;p--)t[S+p]=t[b+p];t[w]=o[_];return}for(var O=r;;){var T=0,M=0,D=!1;do if(e(o[_],t[m])<0){if(t[w--]=t[m--],T++,M=0,--d===0){D=!0;break}}else if(t[w--]=o[_--],M++,T=0,--g===1){D=!0;break}while((T|M)<O);if(D)break;do{if(T=d-Lh(o[_],t,h,d,d-1,e),T!==0){for(w-=T,m-=T,d-=T,S=w+1,b=m+1,p=T-1;p>=0;p--)t[S+p]=t[b+p];if(d===0){D=!0;break}}if(t[w--]=o[_--],--g===1){D=!0;break}if(M=g-Ih(t[m],o,0,g,g-1,e),M!==0){for(w-=M,_-=M,g-=M,S=w+1,b=_+1,p=0;p<M;p++)t[S+p]=o[b+p];if(g<=1){D=!0;break}}if(t[w--]=t[m--],--d===0){D=!0;break}O--}while(T>=ws||M>=ws);if(D)break;O<0&&(O=0),O+=2}if(r=O,r<1&&(r=1),g===1){for(w-=d,m-=d,S=w+1,b=m+1,p=d-1;p>=0;p--)t[S+p]=t[b+p];t[w]=o[_]}else{if(g===0)throw new Error;for(b=w-(g-1),p=0;p<g;p++)t[b+p]=o[p]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Vl(t,e,r,n){r||(r=0),n||(n=t.length);var a=n-r;if(!(a<2)){var i=0;if(a<QS){i=c0(t,r,n,e),f0(t,r,n,r+i,e);return}var o=Mk(t,e),s=Tk(a);do{if(i=c0(t,r,n,e),i<s){var u=a;u>s&&(u=s),f0(t,r,r+u,r+i,e),i=u}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var h0=!1;function xh(){h0||(h0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function v0(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Pk=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=v0}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,e);n.length=this._displayListLen,Vl(n,v0)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=a,c=e;l;)l.parent=c,l.updateTransform(),s[o++]=l,c=l,l=l.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var f=e.childrenRef(),v=0;v<f.length;v++){var h=f[v];e.__dirty&&(h.__dirty|=rn),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(xh(),d.z=0),isNaN(d.z2)&&(xh(),d.z2=0),isNaN(d.zlevel)&&(xh(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var y=e.getDecalElement&&e.getDecalElement();y&&this._updateAndAddDisplayable(y,s,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var a=lt(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),md;md=Le.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function ho(){return new Date().getTime()}var Ok=function(t){Ae(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=ho()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update(
35))},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(md(n),!r._paused&&r.update())}md(n)},e.prototype.start=function(){this._running||(this._time=ho(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ho(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ho()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var a=new pp(r,n.loop);return this.addAnimator(a),a},e}(Yn),Ak=300,$h=Le.domSupported,kh=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Xe(t,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:n}}(),d0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},p0=!1;function _d(t){var e=t.pointerType;return e==="pen"||e==="touch"}function Ek(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Rh(t){t&&(t.zrByTouch=!0)}function Ik(t,e){return Or(t.dom,new Lk(t,e),!0)}function XS(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var Lk=function(){function t(e,r){this.stopPropagation=mr,this.stopImmediatePropagation=mr,this.preventDefault=mr,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Ar={mousedown:function(t){t=Or(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Or(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Or(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Or(this.dom,t);var e=t.toElement||t.relatedTarget;XS(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){p0=!0,t=Or(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){p0||(t=Or(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Or(this.dom,t),Rh(t),this.__lastTouchMoment=ne
35w Date,this.handler.processGesture(t,"start"),Ar.mousemove.call(this,t),Ar.mousedown.call(this,t)},touchmove:function(t){t=Or(this.dom,t),Rh(t),this.handler.processGesture(t,"change"),Ar.mousemove.call(this,t)},touchend:function(t){t=Or(this.dom,t),Rh(t),this.handler.processGesture(t,"end"),Ar.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Ak&&Ar.click.call(this,t)},pointerdown:function(t){Ar.mousedown.call(this,t)},pointermove:function(t){_d(t)||Ar.mousemove.call(this,t)},pointerup:function(t){Ar.mouseup.call(this,t)},pointerout:function(t){_d(t)||Ar.mouseout.call(this,t)}};z(["click","dblclick","contextmenu"],function(t){Ar[t]=function(e){e=Or(this.dom,e),this.trigger(t,e)}});var wd={pointermove:function(t){_d(t)||wd.mousemove.call(this,t)},pointerup:function(t){wd.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function xk(t,e){var r=e.domHandlers;Le.pointerEventsSupported?z(kh.pointer,function(n){Gl(e,n,function(a){r[n].call(t,a)})}):(Le.touchEventsSupported&&z(kh.touch,function(n){Gl(e,n,function(a){r[n].call(t,a),Ek(e)})}),z(kh.mouse,function(n){Gl(e,n,function(a){a=Fp(a),e.touching||r[n].call(t,a)})}))}function $k(t,e){Le.pointerEventsSupported?z(d0.pointer,r):Le.touchEventsSupported||z(d0.mouse,r);function r(n){function a(i){i=Fp(i),XS(t,i.target)||(i=Ik(t,i),e.domHandlers[n].call(t,i))}Gl(e,n,a,{capture:!0})}}function Gl(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,dk(t.domTarget,e,r,n)}function Fh(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&pk(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var g0=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),kk=function(t){Ae(e,t);function e(r,n){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new g0(r,Ar),$h&&(a._globalHandlerScope=new g0(document,wd)),xk(a,a._localHandlerScope),a}return e.prototype.dispose=function(){Fh(this._localHandlerScope),$h&&Fh(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,$h&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?$k(this,n):Fh(n)}},e}(Yn);/*!
36* ZRender, a high performance 2d drawing library.
37*
38* Copyright (c) 2013, Baidu Inc.
39* All rights reserved.
40*
41* LICENSE
42* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
43*/var jl={},ZS={};function Rk(t){delete ZS[t]}function Fk(t){if(!t)return!1;if(typeof t=="string")return lc(t,1)<jv;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,a=0;a<n;a++)r+=lc(e[a].color,1);return r/=n,r<jv}return!1}var Nk=function(){function t(e,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var i=new Pk,o=n.renderer||"canvas";jl[o]||(o=ft(jl)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new jl[o](r,i,n,e),u=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var l=!Le.node&&!Le.worker&&!u?new kk(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?Le.touchEventsSupported:!!c,v=44,h;f&&(h=Re(n.pointerSize,v)),this.handler=new qS(i,s,l,s.root,h),this.animation=new Ok({stage:{update:u?null:function(){return a._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Fk(e))}
43,t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=ho();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=ho();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof rs&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Rk(this.id))},t}();function y0(t,e){var r=new Nk(eb(),t,e);return ZS[r.id]=r,r}function MQ(t,e){jl[t]=e}var JS="";typeof navigator<"u"&&(JS=navigator.platform||"");var eo="rgba(0, 0, 0, 0.2)",eD=Ft.color.theme[0],Yk=zv(eD,null,null,.9);const Bk={darkMode:"auto",colorBy:"series",color:Ft.color.theme,gradientColor:[Yk,eD],aria:{decal:{decals:[{color:eo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:eo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:eo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:eo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:eo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:eo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:JS.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 Hk=He();function Uk(t,e,r){var n=Hk.get(e);if(!n)return r;var a=n(t);return a?r.concat(a):r}var pl,bs,m0,_0="\0_ec_inner",zk=1,Np=function(t){Ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Rt(i),this._locale=new Rt(o),this._optionManager=s},e.prototype.setOption=function(r,n,a){var i=S0(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,n){return this._resetOption(r,S0(n))},e.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?m0(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}
43if(!r||r==="recreate"||r==="media"){var u=i.getMediaOption(this);u.length&&z(u,function(l){a=!0,this._mergeOption(l,n)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],u=He(),l=n&&n.replaceMergeMainTypeMap;nx(this),z(r,function(f,v){f!=null&&(ut.hasClass(v)?v&&(s.push(v),u.set(v,!0)):a[v]=a[v]==null?ke(f):yt(a[v],f,!0))}),l&&l.each(function(f,v){ut.hasClass(v)&&!u.get(v)&&(s.push(v),u.set(v,!0))}),ut.topologicalTravel(s,ut.getAllClassMainTypes(),c,this);function c(f){var v=Uk(this,f,Jt(r[f])),h=i.get(f),d=h?l&&l.get(f)?"replaceMerge":"normalMerge":"replaceAll",y=lI(h,v,d);gI(y,f,ut),a[f]=null,i.set(f,null),o.set(f,0);var g=[],p=[],m=0,_;z(y,function(w,b){var S=w.existing,O=w.newOption;if(!O)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=f==="series",M=ut.getClass(f,w.keyInfo.subType,!T);if(!M)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===M)S.name=w.keyInfo.name,S.mergeOption(O,this),S.optionUpdated(O,!1);else{var D=ie({componentIndex:b},w.keyInfo);S=new M(O,this,this,D),ie(S,D),w.brandNew&&(S.__requireNewView=!0),S.init(O,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),p.push(S),m++):(g.push(void 0),p.push(void 0))},this),a[f]=g,i.set(f,p),o.set(f,m),f==="series"&&pl(this)}this._seriesIndices||pl(this)},e.prototype.getOption=function(){var r=ke(this.option);return z(r,function(n,a){if(ut.hasClass(a)){for(var i=Jt(n),o=i.length,s=!1,u=o-1;u>=0;u--)i[u]&&!fu(i[u])?s=!0:(i[u]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[_0],r},e.prototype.setTheme=function(r){this._theme=new Rt(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return a!=null?(u=[],z(Jt(a),function(l){s[l]&&u.push(s[l])})):i!=null?u=w0("id",i,s):o!=null?u=w0("name",o,s):u=xr(s,function(l){return!!l}),b0(u,r)},e.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):xr(this._componentsMap.get(a),function(l){return!!l});return u(b0(o,r));function s(l){var c=a+"Index",f=a+"Id",v=a+"Name";return l&&(l[c]!=null||l[f]!=null||l[v]!=null)?{mainType:a,index:l[c],id:l[f],name:l[v]}:null}function u(l){return r.filter?xr(l,r.filter):l}},e.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(it(r)){var o=n,s=r;i.each(function(f,v){for(var h=0;f&&h<f.length;h++){var d=f[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var u=Ee(r)?i.get(r):Te(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var c=u[l];c&&n.call(a,c,c.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Mi(r,null);return xr(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return xr(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return xr(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){bs(this),z(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},e.prototype.eachRawSeries=function(r,n){z(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,a){bs(this),z(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,n,a){return z(this.getSeriesByType(r),n,a)},e.prototype.isSeriesFiltered=function(r){return bs(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){bs(this);var a=[];z(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=He(a)},e.prototype.restoreData=function(r){pl(this);var n=this._componentsMap,a=[];
43n.each(function(i,o){ut.hasClass(o)&&a.push(o)}),ut.topologicalTravel(a,ut.getAllClassMainTypes(),function(i){z(n.get(i),function(o){o&&(i!=="series"||!Wk(o,r))&&o.restoreData()})})},e.internalField=function(){pl=function(r){var n=r._seriesIndices=[];z(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=He(n)},bs=function(r){},m0=function(r,n){r.option={},r.option[_0]=zk,r._componentsMap=He({series:[]}),r._componentsCount=He();var a=n.aria;Te(a)&&a.enabled==null&&(a.enabled=!0),Vk(n,r._theme.option),yt(n,Bk,!1),r._mergeOption(n,null)}}(),e}(Rt);function Wk(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,a=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||a!=null&&t.name!==a}}function Vk(t,e){var r=t.color&&!t.colorLayer;z(e,function(n,a){a==="colorLayer"&&r||a==="color"&&t.color||ut.hasClass(a)||(typeof n=="object"?t[a]=t[a]?yt(t[a],n,!1):ke(n):t[a]==null&&(t[a]=n))})}function w0(t,e,r){if(pe(e)){var n=He();return z(e,function(i){if(i!=null){var o=Mi(i,null);o!=null&&n.set(i,!0)}}),xr(r,function(i){return i&&n.get(i[t])})}else{var a=Mi(e,null);return xr(r,function(i){return i&&a!=null&&i[t]===a})}}function b0(t,e){return e.hasOwnProperty("subType")?xr(t,function(r){return r&&r.subType===e.subType}):t}function S0(t){var e=He();return t&&z(Jt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Nn(Np,$p);var Gk=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],tD=function(){function t(e){z(Gk,function(r){this[r]=en(e[r],e)},this)}return t}(),jk=/^(min|max)?(.+)$/,qk=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(z(Jt(e.series),function(o){o&&o.data&&jt(o.data)&&kv(o.data)}),z(Jt(e.dataset),function(o){o&&o.source&&jt(o.source)&&kv(o.source)})),e=ke(e);var a=this._optionBackup,i=Kk(e,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ke(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(r=ke(n[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var u=0,l=a.length;u<l;u++)Qk(a[u].query,r,n)&&o.push(u);return!o.length&&i&&(o=[-1]),o.length&&!Zk(o,this._currentMediaIndices)&&(s=Xe(o,function(c){return ke(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},t}();function Kk(t,e,r){var n=[],a,i,o=t.baseOption,s=t.timeline,u=t.options,l=t.media,c=!!t.media,f=!!(u||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(t.options=t.media=null),i=t),c&&pe(l)&&z(l,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),v(i),z(u,function(h){return v(h)}),z(n,function(h){return v(h.option)});function v(h){z(e,function(d){d(h,r)})}return{baseOption:i,timelineOptions:u||[],mediaDefault:a,mediaList:n}}function Qk(t,e,r){var n={width:e,height:r,aspectratio:e/r},a=!0;return z(t,function(i,o){var s=o.match(jk);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();Xk(n[l],i,u)||(a=!1)}}),a}function Xk(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function Zk(t,e){return t.join(",")===e.join(",")}var Mr=z,vu=Te,D0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Nh(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=D0.length;r<n;r++){var a=D0[r],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?yt(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?yt(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function St(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,Nt(t[e],n)):t[e]=n),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function ks(t){St(t,"itemStyle"),St(t,"lineStyle"),St(t,"areaStyle"),St(t,"label"),St(t,"labelLine"),St(t,"upperLabel"),St(t,"edgeLabel")}function ot(t,e){var r=vu(t)&&t[e],n=vu(r)&&r.textStyle;if(n)for(var a=0,i=vm.length;a<i;a++){var o=vm[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function ur(t){t&&(ks(t),ot(t,"label"),t.emphasis&&ot(t.emphasis,"label"))}function Jk(t){if(vu(t)){Nh(t),ks(t),ot(t,"label"),ot(t,"upperLabel"),ot(t,"edgeLabel"),t.emphasis&&(ot(t.emphasis,"label"),ot(t.emphasis,"upperLabel"),ot(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Nh(e),ur(e));var r=t.markLine;r&&(Nh(r),ur(r));var n=t.markArea;n&&ur(n);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!jt(i))for(var o=0;o<i.length;o++)ur(i[o]);z(t.categories,function(l){ks(l)})}if(a&&!jt(a))for(var o=0;o<a.length;o++)ur(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;
43o++)ur(s[o]);if(r=t.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)pe(u[o])?(ur(u[o][0]),ur(u[o][1])):ur(u[o]);t.type==="gauge"?(ot(t,"axisLabel"),ot(t,"title"),ot(t,"detail")):t.type==="treemap"?(St(t.breadcrumb,"itemStyle"),z(t.levels,function(l){ks(l)})):t.type==="tree"&&ks(t.leaves)}}function bn(t){return pe(t)?t:t?[t]:[]}function T0(t){return(pe(t)?t[0]:t)||{}}function eR(t,e){Mr(bn(t.series),function(n){vu(n)&&Jk(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Mr(r,function(n){Mr(bn(t[n]),function(a){a&&(ot(a,"axisLabel"),ot(a.axisPointer,"label"))})}),Mr(bn(t.parallel),function(n){var a=n&&n.parallelAxisDefault;ot(a,"axisLabel"),ot(a&&a.axisPointer,"label")}),Mr(bn(t.calendar),function(n){St(n,"itemStyle"),ot(n,"dayLabel"),ot(n,"monthLabel"),ot(n,"yearLabel")}),Mr(bn(t.radar),function(n){ot(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Mr(bn(t.geo),function(n){vu(n)&&(ur(n),Mr(bn(n.regions),function(a){ur(a)}))}),Mr(bn(t.timeline),function(n){ur(n),St(n,"label"),St(n,"itemStyle"),St(n,"controlStyle",!0);var a=n.data;pe(a)&&z(a,function(i){Te(i)&&(St(i,"label"),St(i,"itemStyle"))})}),Mr(bn(t.toolbox),function(n){St(n,"iconStyle"),Mr(n.feature,function(a){St(a,"iconStyle")})}),ot(T0(t.axisPointer),"label"),ot(T0(t.tooltip).axisPointer,"label")}function tR(t,e){for(var r=e.split(","),n=t,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function rR(t,e,r,n){for(var a=e.split(","),i=t,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=r)}function C0(t){t&&z(nR,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var nR=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],aR=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Yh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ss(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Yh.length;r++){var n=Yh[r][1],a=Yh[r][0];e[n]!=null&&(e[a]=e[n])}}function M0(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function P0(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function iR(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function rD(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&rD(t[r].children,e)}function nD(t,e){eR(t,e),t.series=Jt(t.series),z(t.series,function(r){if(Te(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),M0(r.label);var a=r.data;if(a&&!jt(a))for(var i=0;i<a.length;i++)M0(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=tR(r,"pointer.color");o!=null&&rR(r,"itemStyle.color",o)}else if(n==="bar"){Ss(r),Ss(r.backgroundStyle),Ss(r.emphasis);var a=r.data;if(a&&!jt(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Ss(a[i]),Ss(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),P0(r),rD(r.data,P0)}else n==="graph"||n==="sankey"?iR(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Nt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),C0(r)}}),t.dataRange&&(t.visualMap=t.dataRange),z(aR,function(r){var n=t[r];n&&(pe(n)||(n=[n]),z(n,function(a){C0(a)}))})}function oR(t){var e=He();t.eachSeries(function(r){var n=r.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};
43if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&r.reverse(),z(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),sR(r)}})}function sR(t){z(t,function(e,r){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(l,c,f){var v=o.get(e.stackedDimension,f);if(isNaN(v))return a;var h,d;s?d=o.getRawIndex(f):h=o.get(e.stackedByDimension,f);for(var y=NaN,g=r-1;g>=0;g--){var p=t[g];if(s||(d=p.data.rawIndexOf(p.stackedByDimension,h)),d>=0){var m=p.data.getByRawIndex(p.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&v>=0&&m>0||u==="samesign"&&v<=0&&m<0){v=rI(v,m),y=m;break}}}return n[0]=v,n[1]=y,n})})}var Yp=function(){function t(){this.group=new rs,this.uid=lf("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();lp(Yp);cp(Yp);var O0=rr(),A0={itemStyle:su(mS,!0),lineStyle:su(yS,!0)},uR={lineStyle:"stroke",itemStyle:"fill"};function aD(t,e){var r=t.visualStyleMapper||A0[e];return r||(console.warn("Unknown style type '"+e+"'."),A0.itemStyle)}function iD(t,e){var r=t.visualDrawType||uR[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var lR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),i=aD(t,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=iD(t,n),l=o[u],c=it(l)?l:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[u]||c||f){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[u]||(o[u]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||it(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||it(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!e.isSeriesFiltered(t)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var y=t.getDataParams(d),g=ie({},o);g[u]=c(y),h.setItemVisual(d,"style",g)}}}},Ds=new Rt,cR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=aD(t,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Ds.option=u[n];var l=a(Ds),c=o.ensureUniqueItemVisual(s,"style");ie(c,l),Ds.option.decal&&(o.setItemVisual(s,"decal",Ds.option.decal),Ds.option.decal.dirty=!0),i in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},fR={performRawSeries:!0,overallReset:function(t){var e=He();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),O0(r).scope=i}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=O0(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=iD(r,s);i.each(function(l){var c=i.getRawIndex(l);a[c]=l}),n.each(function(l){var c=a[l],f=i.getItemVisual(c,"colorFromPalette");if(f){var v=i.ensureUniqueItemVisual(c,"style"),h=n.getName(l)||l+"",d=n.count();v[u]=r.getColorFromPalette(h,o,d)}})}})}},gl=Math.PI;function hR(t,e){e=e||{},Nt(e,{text:"loading",textColor:Ft.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Ft.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new rs,n=new fn({style:{fill:e.maskColor}
43,zlevel:e.zlevel,z:1e4});r.add(n);var a=new Uo({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new fn({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(i);var o;return e.showSpinner&&(o=new af({shape:{startAngle:-gl/2,endAngle:-gl/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:gl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:gl*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,u=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-u*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:u),c=t.getHeight()/2;e.showSpinner&&o.setShape({cx:l,cy:c}),i.setShape({x:l-u,y:c-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var oD=function(){function t(e,r,n,a){this._stageTaskMap=He(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),u=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=He();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;z(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";$n(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,a){a=a||{};var i=!1,o=this;z(e,function(u,l){if(!(a.visualType&&a.visualType!==u.visualType)){var c=o._stageTaskMap.get(u.uid),f=c.seriesTaskMap,v=c.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var y=o.getPerformArgs(v,a.block);d.each(function(g){g.perform(y)}),v.perform(y)&&(i=!0)}else f&&f.each(function(g,p){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!u.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(i=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=He(),u=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):u?n.eachRawSeriesByType(u,c):l&&l(n,a).each(c);function c(f){var v=f.uid,h=s.set(v,o&&o.get(v)||Zs({plan:yR,reset:mR,count:wR}));h.context={model:f,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,h)}},t.prototype._createOverallStageTask=function(e,r,n,a){var i=this,o=r.overallTask=r.overallTask||Zs({reset:vR});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,u=o.agentStubMap=He(),l=e.seriesType,c=e.getTargetSeries,f=!0,v=!1,h="";$n(!e.createOnAllSeries,h),l?n.eachRawSeriesByType(l,d):c?c(n,a).each(d):(f=!1,z(n.getSeries(),d));function d(y){var g=y.uid,p=u.set(g,s&&s.get(g)||(v=!0,Zs({reset:dR,onDirty:gR})));p.context={model:y,overallProgress:f},p.agent=o,p.__block=f,i._pipe(y,p)}v&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return it(e)&&(e={overallReset:e,seriesType:bR(e)}),e.uid=lf("stageHandler"),r&&(e.visualType=r),e},t}();function vR(t){t.overallReset(t.ecModel,t.api,t.payload)}function dR(t){return t.overallProgress&&pR}function pR(){this.agent.dirty(),this.getDownstream().dirty()}function gR(){this.agent&&this.agent.dirty()}function yR(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function mR(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Jt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Xe(e,function(r,n){return sD(n)}):_R}var _R=sD(0);function sD(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function wR(t){return t.data.count()}function bR(t){wc=null;try{t(du,uD)}catch{}return wc}var du={},uD={},wc;lD(du,Np);lD(uD,tD);du.eachSeriesByType=du.eachRawSeriesByType=function(t){wc=t};du.eachComponent=function(t){t.mainType==="series"&&t.subType&&(wc=t.subType)};function lD(t,e){for(var r in e.prototype)t[r]=mr}var J=Ft.darkColor,SR=J.background,Ts=function(){return{axisLine
43:{lineStyle:{color:J.axisLine}},splitLine:{lineStyle:{color:J.axisSplitLine}},splitArea:{areaStyle:{color:[J.backgroundTint,J.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:J.axisMinorSplitLine}},axisLabel:{color:J.axisLabel},axisName:{}}},E0={label:{color:J.secondary},itemStyle:{borderColor:J.borderTint},dividerLineStyle:{color:J.border}},cD={darkMode:!0,color:J.theme,backgroundColor:SR,axisPointer:{lineStyle:{color:J.border},crossStyle:{color:J.borderShade},label:{color:J.tertiary}},legend:{textStyle:{color:J.secondary},pageTextStyle:{color:J.tertiary}},textStyle:{color:J.secondary},title:{textStyle:{color:J.primary},subtextStyle:{color:J.quaternary}},toolbox:{iconStyle:{borderColor:J.accent50}},tooltip:{backgroundColor:J.neutral20,defaultBorderColor:J.border,textStyle:{color:J.tertiary}},dataZoom:{borderColor:J.accent10,textStyle:{color:J.tertiary},brushStyle:{color:J.backgroundTint},handleStyle:{color:J.neutral00,borderColor:J.accent20},moveHandleStyle:{color:J.accent40},emphasis:{handleStyle:{borderColor:J.accent50}},dataBackground:{lineStyle:{color:J.accent30},areaStyle:{color:J.accent20}},selectedDataBackground:{lineStyle:{color:J.accent50},areaStyle:{color:J.accent30}}},visualMap:{textStyle:{color:J.secondary},handleStyle:{borderColor:J.neutral30}},timeline:{lineStyle:{color:J.accent10},label:{color:J.tertiary},controlStyle:{color:J.accent30,borderColor:J.accent30}},calendar:{itemStyle:{color:J.neutral00,borderColor:J.neutral20},dayLabel:{color:J.tertiary},monthLabel:{color:J.secondary},yearLabel:{color:J.secondary}},matrix:{x:E0,y:E0,backgroundColor:{borderColor:J.axisLine},body:{itemStyle:{borderColor:J.borderTint}}},timeAxis:Ts(),logAxis:Ts(),valueAxis:Ts(),categoryAxis:Ts(),line:{symbol:"circle"},graph:{color:J.theme},gauge:{title:{color:J.secondary},axisLine:{lineStyle:{color:[[1,J.neutral05]]}},axisLabel:{color:J.axisLabel},detail:{color:J.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:J.background}},radar:function(){var t=Ts();return t.axisName={color:J.axisLabel},t.axisLine.lineStyle.color=J.neutral20,t}(),treemap:{breadcrumb:{itemStyle:{color:J.neutral20,textStyle:{color:J.secondary}},emphasis:{itemStyle:{color:J.neutral30}}}},sunburst:{itemStyle:{borderColor:J.background}},map:{itemStyle:{borderColor:J.border,areaColor:J.neutral10},label:{color:J.tertiary},emphasis:{label:{color:J.primary},itemStyle:{areaColor:J.highlight}},select:{label:{color:J.primary},itemStyle:{areaColor:J.highlight}}},geo:{itemStyle:{borderColor:J.border,areaColor:J.neutral10},emphasis:{label:{color:J.primary},itemStyle:{areaColor:J.highlight}},select:{label:{color:J.primary},itemStyle:{color:J.highlight}}}};cD.categoryAxis.splitLine.show=!1;var DR=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},a={};if(Ee(e)){var i=nn(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};z(e,function(u,l){for(var c=!1,f=0;f<o.length;f++){var v=o[f],h=l.lastIndexOf(v);if(h>0&&h===l.length-v.length){var d=l.slice(0,h);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=u,c=!0)}}s.hasOwnProperty(l)&&(n[l]=u,c=!0),c||(a[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return c(u,o,"mainType")&&c(u,o,"subType")&&c(u,o,"index","componentIndex")&&c(u,o,"name")&&c(u,o,"id")&&c(l,i,"name")&&c(l,i,"dataIndex")&&c(l,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,i));function c(f,v,h,d){return f[h]==null||v[d||h]===f[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),bd=["symbol","symbolSize","symbolRotate","symbolOffset"],I0=bd.concat(["symbolKeepAspect"]),TR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<bd.length;o++){var s=bd[o],u=t.get(s);it(u)?(i=!0,a[s]=u):n[s]=u}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(ie({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var l=ft(a);function c(f,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),y=0;y<l.length;y++){var g=l[y];f.setItemVisual(v,g,a[g](h,d))}}return{dataEach:i?c:null}}},CR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<I0.length;s++){var u=I0[s],l=o.getShallow(u,!0);l!=null&&a.setItemVisual(i,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function MR(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function PR(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function yl(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var OR=Math.round(Math.random()*9),AR=typeof Object.defineProperty=="function",ER=function(){function t(){this._id="__ec_inner_"+OR++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return AR?Object.defineProperty(n,this._id,{value:r,enumerable:!1,
43configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}();function oi(t){return isFinite(t)}function IR(t,e,r){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=oi(n)?n:0,a=oi(a)?a:1,i=oi(i)?i:0,o=oi(o)?o:0;var s=t.createLinearGradient(n,i,a,o);return s}function LR(t,e,r){var n=r.width,a=r.height,i=Math.min(n,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,u=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*a+r.y,u=u*i),o=oi(o)?o:.5,s=oi(s)?s:.5,u=u>=0&&oi(u)?u:.5;var l=t.createRadialGradient(o,s,0,o,s,u);return l}function L0(t,e,r){for(var n=e.type==="radial"?LR(t,e,r):IR(t,e,r),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function xR(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function ml(t){return parseInt(t,10)}function PQ(t,e,r){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[a]||ml(s[n])||ml(t.style[n]))-(ml(s[i])||0)-(ml(s[o])||0)|0}function $R(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:mt(t)?[t]:pe(t)?t:null}function fD(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&$R(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(r=Xe(r,function(i){return i/a}),n/=a)}return[r,n]}var kR=new Ho(!0);function bc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function x0(t){return typeof t=="string"&&t!=="none"}function Sc(t){var e=t.fill;return e!=null&&e!=="none"}function $0(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function k0(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function R0(t,e,r){var n=ub(e.image,e.__image,r);if(qc(n)){var a=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*fA),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function RR(t,e,r,n){var a,i=bc(r),o=Sc(r),s=r.strokePercent,u=s<1,l=!e.path;(!e.silent||u)&&l&&e.createPathProxy();var c=e.path||kR,f=e.__dirty;if(!n){var v=r.fill,h=r.stroke,d=o&&!!v.colorStops,y=i&&!!h.colorStops,g=o&&!!v.image,p=i&&!!h.image,m=void 0,_=void 0,w=void 0,b=void 0,S=void 0;(d||y)&&(S=e.getBoundingRect()),d&&(m=f?L0(t,v,S):e.__canvasFillGradient,e.__canvasFillGradient=m),y&&(_=f?L0(t,h,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(w=f||!e.__canvasFillPattern?R0(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=w),p&&(b=f||!e.__canvasStrokePattern?R0(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?t.fillStyle=m:g&&(w?t.fillStyle=w:o=!1),y?t.strokeStyle=_:p&&(b?t.strokeStyle=b:i=!1)}var O=e.getGlobalScale();c.setScale(O[0],O[1],e.segmentIgnoreThreshold);var T,M;t.setLineDash&&r.lineDash&&(a=fD(e),T=a[0],M=a[1]);var D=!0;(l||f&io)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),D=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(t,u?s:1),T&&(t.setLineDash(T),t.lineDashOffset=M),n||(r.strokeFirst?(i&&k0(t,r),o&&$0(t,r)):(o&&$0(t,r),i&&k0(t,r))),T&&t.setLineDash([])}function FR(t,e,r){var n=e.__image=ub(r.image,e.__image,e,e.onload);if(!(!n||!qc(n))){var a=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var l=r.sx||0,c=r.sy||0;t.drawImage(n,l,c,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var l=r.sx,c=r.sy,f=o-l,v=s-c;t.drawImage(n,l,c,f,v,a,i,o,s)}else t.drawImage(n,a,i,o,s)}}function NR(t,e,r){var n,a=r.text;if(a!=null&&(a+=""),a){t.font=r.font||_a,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=fD(e),i=n[0],o=n[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(bc(r)&&t.strokeText(a,r.x,r.y),Sc(r)&&t.fillText(a,r.x,r.y)):(Sc(r)&&t.fillText(a,r.x,r.y),bc(r)&&t.strokeText(a,r.x,r.y)),i&&t.setLineDash([])}}var F0=["shadowBlur","shadowOffsetX","shadowOffsetY"],N0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hD(t,e,r,n,a){var i=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Wt(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?bi.opacity:o}(n||e.blend!==r.blend)&&(i||(Wt(t,a),i=!0),t.globalCompositeOperation=e.blend||bi.blend);for(var s=0;s<F0.length;s++){var u=F0[s];(n||e[u]!==r[u])&&(i||(Wt(t,a),i=!0),t[u]=t.dpr*(e[u]||0))}return(n||e.shadowColor!==r.shadowColor)&&(i||(Wt(t,a),i=!0),t.shadowColor=e.shadowColor||bi.shadowColor),i}function Y0(t,e,r,n,a){var i=pu(e,a.inHover),o=n?null:r&&pu(r,a.inHover)||{};if(i===o)return!1;var s=hD(t,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(Wt(t,a),s=!0),x0(i.fill)&&(t.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(Wt(t,a),s=!0),x0(i.stroke)&&(t.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(Wt(t,a),s=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var u=i.lineWidth,l=u/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Wt(t,a),s=!0),t.lineWidth=l)}for(var c=0;c<N0.length;c++){var f=N0[c],v=f[0];(n||i[v]!==o[v])&&(s||(Wt(t,a),s=!0),t[v]=i[v]||f[1])}return s}function YR(t,e,r,n,a){return hD(t,pu(e,a.inHover),r&&pu(r,a.inHover),n,a)}function vD(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function BR(t,e,r){for(var n=!1,a=0;a<t.length;a++){var i=t[a];n=n||i.isZeroArea(),vD(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=n}function HR(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var B0=1,H0=2,U0=3,z0=4;function UR(t){var e=Sc(t),r=bc(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Wt(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function pu(t,e){return e&&t.__hoverStyle||t.style}
43function zR(t,e){Sd(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Sd(t,e,r,n){var a=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~rn,e.__isRendered=!1;return}var i=e.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||xR(i,o))&&(o&&o.length&&(Wt(t,r),t.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(Wt(t,r),t.save(),BR(i,t,r),s=!0),r.prevElClipPaths=i),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var c=e instanceof Ke&&e.autoBatch&&UR(e.style);s||HR(a,l.transform)?(Wt(t,r),vD(t,e)):c||Wt(t,r);var f=pu(e,r.inHover);e instanceof Ke?(r.lastDrawType!==B0&&(u=!0,r.lastDrawType=B0),Y0(t,e,l,u,r),(!c||!r.batchFill&&!r.batchStroke)&&t.beginPath(),RR(t,e,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):e instanceof cc?(r.lastDrawType!==U0&&(u=!0,r.lastDrawType=U0),Y0(t,e,l,u,r),NR(t,e,f)):e instanceof Ii?(r.lastDrawType!==H0&&(u=!0,r.lastDrawType=H0),YR(t,e,l,u,r),FR(t,e,f)):e.getTemporalDisplayables&&(r.lastDrawType!==z0&&(u=!0,r.lastDrawType=z0),WR(t,e,r)),c&&n&&Wt(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function WR(t,e,r){var n=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Sd(t,u,i,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),i.prevEl=u}for(var l=0,c=a.length;l<c;l++){var u=a[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Sd(t,u,i,l===c-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),i.prevEl=u}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Bh=new ER,W0=new Yo(100),V0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function G0(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";t.dirty&&Bh.delete(t);var i=Bh.get(t);if(i)return i;var o=Nt(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,Bh.set(t,s),t.dirty=!1,s;function u(l){for(var c=[r],f=!0,v=0;v<V0.length;++v){var h=o[V0[v]];if(h!=null&&!pe(h)&&!Ee(h)&&!mt(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var d;if(f){d=c.join(",")+(a?"-svg":"");var y=W0.get(d);y&&(a?l.svgElement=y:l.image=y)}var g=pD(o.dashArrayX),p=VR(o.dashArrayY),m=dD(o.symbol),_=GR(g),w=gD(p),b=!a&&wa.createCanvas(),S=a&&{tag:"g",attrs:{},key:"dcl",children:[]},O=M(),T;b&&(b.width=O.width*r,b.height=O.height*r,T=b.getContext("2d")),D(),f&&W0.put(d,b||S),l.image=b,l.svgElement=S,l.svgWidth=O.width,l.svgHeight=O.height;function M(){for(var P=1,L=0,R=_.length;L<R;++L)P=fm(P,_[L]);for(var I=1,L=0,R=m.length;L<R;++L)I=fm(I,m[L].length);P*=I;var A=w*_.length*m.length;return{width:Math.max(1,Math.min(P,o.maxTileWidth)),height:Math.max(1,Math.min(A,o.maxTileHeight))}}function D(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var P=0,L=0;L<p.length;++L)P+=p[L];if(P<=0)return;for(var R=-w,I=0,A=0,x=0;R<O.height;){if(I%2===0){for(var Y=A/2%m.length,U=0,q=0,N=0;U<O.width*2;){for(var Q=0,L=0;L<g[x].length;++L)Q+=g[x][L];if(Q<=0)break;if(q%2===0){var V=(1-o.symbolSize)*.5,ne=U+g[x][q]*V,ee=R+p[I]*V,ue=g[x][q]*o.symbolSize,ye=p[I]*o.symbolSize,de=N/2%m[Y].length;Me(ne,ee,ue,ye,m[Y][de])}U+=g[x][q],++N,++q,q===g[x].length&&(q=0)}++x,x===g.length&&(x=0)}R+=p[I],++A,++I,I===p.length&&(I=0)}function Me(_e,he,te,F,K){var X=a?1:r,$e=nk(K,_e*X,he*X,te*X,F*X,o.color,o.symbolKeepAspect);if(a){var Ze=n.painter.renderOneToVNode($e);Ze&&S.children.push(Ze)}else zR(T,$e)}}}}function dD(t){if(!t||t.length===0)return[["rect"]];if(Ee(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!Ee(t[r])){e=!1;break}if(e)return dD([t]);for(var n=[],r=0;r<t.length;++r)Ee(t[r])?n.push([t[r]]):n.push(t[r]);return n}function pD(t){if(!t||t.length===0)return[[0,0]];if(mt(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!mt(t[n])){r=!1;break}if(r)return pD([t]);for(var a=[],n=0;n<t.length;++n)if(mt(t[n])){var e=Math.ceil(t[n]);a.push([e,e])}else{var e=Xe(t[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function VR(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(mt(t)){var e=Math.ceil(t);return[e,e]}var r=Xe(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function GR(t){return Xe(t,function(e){return gD(e)})}function gD(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function jR(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=G0(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=G0(a,e)}}})}var Er=new Yn,yD={};function OQ(t,e){yD[t]=e}function qR(t){return yD[t]}var KR=1,QR=800,XR=900,ZR=1e3,JR=2e3,eF=5e3,mD=1e3,tF=1100,Bp=2e3,_D=3e3,rF=4e3,cf=4500,nF=4600,aF=5e3,iF=6e3,wD=7e3,AQ={PROCESSOR:{FILTER:ZR,SERIES_FILTER:QR,STATISTIC:eF},VISUAL:{LAYOUT:mD,PROGRESSIVE_LAYOUT:tF,GLOBAL:Bp,CHART:_D,POST_CHART_LAYOUT:nF,COMPONENT:rF,BRUSH:aF,CHART_ITEM:cf,ARIA:iF,DECAL:wD}},st="__flagInMainProcess",_l="__mainProcessVersion",vt="__pendingUpdate",Hh="__needsUpdateStatus",j0=/^[a-zA-Z0-9_]+$/,Uh="__connectUpdateStatus",q0=0,oF=1,sF=2;function bD(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return DD(this,t,e)}}function SD(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return DD(this,t,e)}}function DD(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Yn.prototype[e].apply(t,r)}var TD=function(t){Ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Yn),CD=TD.prototype;CD.on=SD("on");CD.off=SD("off");var Ja,zh,wl,Sn,bl,Wh,Vh,to,ro,K0,Q0,Gh,X0,Sl,Z0,MD,ir,J0,no,PD=function(t){Ae(e,t);function e(r,n,a){var i=t.call(this,new DR)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=r;var o="canvas",s="auto",u=!1;i[_l]=1,a.ssr;var l=i._zr=y0(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Re(a.useDirtyRect,u),useCoarsePointer:Re(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Rp(en(l.flush,l),17),i._updateTheme(n),i._locale=Nx(a.locale||AS),i._coordSysMgr=new PS;var c=i._api=Z0(i);function f(v,h){return v.__prio-h.__prio}
43return Vl(Tc,f),Vl(Cd,f),i._scheduler=new oD(i,c,Cd,Tc),i._messageCenter=new TD,i._initEvents(),i.resize=en(i.resize,i),l.animation.on("frame",i._onframe,i),K0(l,i),Q0(l,i),kv(i),i}return e.prototype._onframe=function(){if(!this._disposed){J0(this);var r=this._scheduler;if(this[vt]){var n=this[vt].silent;this[st]=!0,no(this);try{Ja(this),Sn.update.call(this,null,this[vt].updateParams)}catch(u){throw this[st]=!1,this[vt]=null,u}this._zr.flush(),this[st]=!1,this[vt]=null,to.call(this,n),ro.call(this,n)}else if(r.unfinished){var a=KR,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),Wh(this,i),r.performVisualTasks(i),Sl(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,a){if(!this[st]){if(this._disposed){this.id;return}var i,o,s;if(Te(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[st]=!0,no(this),!this._model||n){var u=new qk(this._api),l=this._theme,c=this._model=new Np;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Md);var f={seriesTransition:s,optionChanged:!0};if(a)this[vt]={silent:i,updateParams:f},this[st]=!1,this.getZr().wakeUp();else{try{Ja(this),Sn.update.call(this,null,f)}catch(v){throw this[vt]=null,this[st]=!1,v}this._ssr||this._zr.flush(),this[vt]=null,this[st]=!1,to.call(this,i),ro.call(this,i)}}},e.prototype.setTheme=function(r,n){if(!this[st]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[vt]&&(i==null&&(i=this[vt].silent),o=this[vt].updateParams,this[vt]=null),this[st]=!0,no(this);try{this._updateTheme(r),a.setTheme(this._theme),Ja(this),Sn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[st]=!1,s}this[st]=!1,to.call(this,i),ro.call(this,i)}}},e.prototype._updateTheme=function(r){Ee(r)&&(r=OD[r]),r&&(r=ke(r),r&&nD(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Le.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return z(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;z(n,function(u){a.eachComponent({mainType:u},function(l){var c=o._componentsMap[l.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return z(i,function(u){u.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(e1[a]){var u=s,l=s,c=-s,f=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();z(eu,function(_,w){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ke(r)),S=_.getDom().getBoundingClientRect();u=i(S.left,u),l=i(S.top,l),c=o(S.right,c),f=o(S.bottom,f),v.push({dom:b,left:S.left,top:S.top})}}),u*=h,l*=h,c*=h,f*=h;var d=c-u,y=f-l,g=wa.createCanvas(),p=y0(g,{renderer:n?"svg":"canvas"});if(p.resize({width:d,height:y}),n){var m="";return z(v,function(_){var w=_.left-u,b=_.top-l;m+='<g transform="translate('+w+","+b+')">'+_.dom+"</g>"}
43),p.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&p.painter.setBackgroundColor(r.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}else return r.connectedBackgroundColor&&p.add(new fn({shape:{x:0,y:0,width:d,height:y},style:{fill:r.connectedBackgroundColor}})),z(v,function(_){var w=new Ii({style:{x:_.left*h-u,y:_.top*h-l,image:_.dom}});p.add(w)}),p.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,a){return bl(this,"convertToPixel",r,n,a)},e.prototype.convertToLayout=function(r,n,a){return bl(this,"convertToLayout",r,n,a)},e.prototype.convertFromPixel=function(r,n,a){return bl(this,"convertFromPixel",r,n,a)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=vh(a,r);return z(o,function(s,u){u.indexOf("Models")>=0&&z(s,function(l){var c=l.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(u==="seriesModels"){var f=this._chartsMap[l.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,l))}},this)},this),!!i},e.prototype.getVisual=function(r,n){var a=this._model,i=vh(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),u=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return u!=null?MR(s,u,n):PR(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;z(uF,function(a){var i=function(o){var s=r.getModel(),u=o.target,l,c=a==="globalout";if(c?l={}:u&&yl(u,function(y){var g=_r(y);if(g&&g.dataIndex!=null){var p=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,u)||{},!0}else if(g.eventData)return l=ie({},g.eventData),!0},!0),l){var f=l.componentType,v=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",v=l.seriesIndex);var h=f&&v!=null&&s.getComponent(f,v),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=o,l.type=a,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:h,view:d},r.trigger(a,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(a,i,r)});var n=this._messageCenter;z(Td,function(a,i){n.on(i,function(o){r.trigger(i,o)})}),lk(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Hb(this.getDom(),Up,"");var n=this,a=n._api,i=n._model;z(n._componentsViews,function(o){o.dispose(i,a)}),z(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete eu[n.id]},e.prototype.resize=function(r){if(!this[st]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[vt]&&(i==null&&(i=this[vt].silent),a=!0,this[vt]=null),this[st]=!0,no(this);try{a&&Ja(this),Sn.update.call(this,{type:"resize",animation:ie({duration:0},r&&r.animation)})}catch(o){throw this[st]=!1,o}this[st]=!1,to.call(this,i),ro.call(this,i)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Te(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Pd[r]){var a=Pd[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=ie({},r);return n.type=Dd[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Te(n)||(n={silent:!!n}
43),!!Dc[r.type]&&this._model){if(this[st]){this._pendingActions.push(r);return}var a=n.silent;Vh.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&Le.browser.weChat&&this._throttledZrFlush(),to.call(this,a),ro.call(this,a)}},e.prototype.updateLabelLayout=function(){Er.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Ja=function(f){var v=f._scheduler;v.restorePipelines(f._model),v.prepareStageTasks(),zh(f,!0),zh(f,!1),v.plan()},zh=function(f,v){for(var h=f._model,d=f._scheduler,y=v?f._componentsViews:f._chartsViews,g=v?f._componentsMap:f._chartsMap,p=f._zr,m=f._api,_=0;_<y.length;_++)y[_].__alive=!1;v?h.eachComponent(function(S,O){S!=="series"&&w(O)}):h.eachSeries(w);function w(S){var O=S.__requireNewView;S.__requireNewView=!1;var T="_ec_"+S.id+"_"+S.type,M=!O&&g[T];if(!M){var D=nn(S.type),P=v?Yp.getClass(D.main,D.sub):Js.getClass(D.sub);M=new P,M.init(h,m),g[T]=M,y.push(M),p.add(M.group)}S.__viewId=M.__id=T,M.__alive=!0,M.__model=S,M.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!v&&d.prepareView(M,S,h,m)}for(var _=0;_<y.length;){var b=y[_];b.__alive?_++:(!v&&b.renderTask.dispose(),p.remove(b.group),b.dispose(h,m),y.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},wl=function(f,v,h,d,y){var g=f._model;if(g.setUpdatePayload(h),!d){z([].concat(f._componentsViews).concat(f._chartsViews),b);return}var p={};p[d+"Id"]=h[d+"Id"],p[d+"Index"]=h[d+"Index"],p[d+"Name"]=h[d+"Name"];var m={mainType:d,query:p};y&&(m.subType=y);var _=h.excludeSeriesId,w;_!=null&&(w=He(),z(Jt(_),function(S){var O=Mi(S,null);O!=null&&w.set(O,!0)})),g&&g.eachComponent(m,function(S){var O=w&&w.get(S.id)!=null;if(!O)if(Sm(h))if(S instanceof hu)h.type===Si&&!h.notBlur&&!S.get(["emphasis","disabled"])&&EI(S,h,f._api);else{var T=Sp(S.mainType,S.componentIndex,h.name,f._api),M=T.focusSelf,D=T.dispatchers;h.type===Si&&M&&!h.notBlur&&rd(S.mainType,S.componentIndex,f._api),D&&z(D,function(P){h.type===Si?Jv(P):ed(P)})}else ad(h)&&S instanceof hu&&(xI(S,h,f._api),wm(S),ir(f))},f),g&&g.eachComponent(m,function(S){var O=w&&w.get(S.id)!=null;O||b(f[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function b(S){S&&S.__alive&&S[v]&&S[v](S.__model,g,f._api,h)}},Sn={prepareAndUpdate:function(f){Ja(this),Sn.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,v){var h=this._model,d=this._api,y=this._zr,g=this._coordSysMgr,p=this._scheduler;if(h){h.setUpdatePayload(f),p.restoreData(h,f),p.performSeriesTasks(h),g.create(h,d),p.performDataProcessorTasks(h,f),Wh(this,h),g.update(h,d),n(h),p.performVisualTasks(h,f);var m=h.get("backgroundColor")||"transparent";y.setBackgroundColor(m);var _=h.get("darkMode");_!=null&&_!=="auto"&&y.setDarkMode(_),Gh(this,h,d,f,v),Er.trigger("afterupdate",h,d)}},updateTransform:function(f){var v=this,h=this._model,d=this._api;if(h){h.setUpdatePayload(f);var y=[];h.eachComponent(function(p,m){if(p!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var w=_.updateTransform(m,h,d,f);w&&w.update&&y.push(_)}else y.push(_)}});var g=He();h.eachSeries(function(p){var m=v._chartsMap[p.__viewId];if(m.updateTransform){var _=m.updateTransform(p,h,d,f);_&&_.update&&g.set(p.uid,1)}else g.set(p.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),Sl(this,h,d,f,{},g),Er.trigger("afterupdate",h,d)}},updateView:function(f){var v=this._model;v&&(v.setUpdatePayload(f),Js.markUpdateMethod(f,"updateView"),n(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0}),Gh(this,v,this._api,f,{}),Er.trigger("afterupdate",v,this._api))},updateVisual:function(f){var v=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(d){d.getData().clearAllVisual()}),Js.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,y){if(d!=="series"){var g=v.getViewOfComponentModel(y);g&&g.__alive&&g.updateVisual(y,h,v._api,f)}}),h.eachSeries(function(d){var y=v._chartsMap[d.__viewId];y.updateVisual(d,h,v._api,f)}),Er.trigger("afterupdate",h,this._api))},updateLayout:function(f){Sn.update.call(this,f)}};function r(f,v,h,d,y){if(f._disposed){f.id;return}for(var g=f._model,p=f._coordSysMgr.getCoordinateSystems(),m,_=vh(g,h),w=0;w<p.length;w++){var b=p[w];if(b[v]&&(m=b[v](g,_,d,y))!=null)return m}}bl=r,Wh=function(f,v){var h=f._chartsMap,d=f._scheduler;v.eachSeries(function(y){d.updateStreamModes(y,h[y.__viewId])})},Vh=function(f,v){var h=this,d=this.getModel(),y=f.type,g=f.escapeConnect,p=Dc[y],m=(p.update||"update").split(":"),_=m.pop(),w=m[0]!=null&&nn(m[0]);this[st]=!0,no(this);var b=[f],S=!1;f.batch&&(S=!0,b=Xe(f.batch,function(x){return x=Nt(ie({},x),f),x.batch=null,x}));var O=[],T,M=[],D=p.nonRefinedEventType,P=ad(f),L=Sm(f);if(L&&Xb(this._api),z(b,function(x){var Y=p.action(x,d,h._api);if(p.refineEvent?M.push(Y):T=Y,T=T||ie({},x),T.type=D,O.push(T),L){var U=Bb(f),q=U.queryOptionMap,N=U.mainTypeSpecified,Q=N?q.keys()[0]:"series";wl(h,_,x,Q),ir(h)}else P?(wl(h,_,x,"series"),ir(h)):w&&wl(h,_,x,w.main,w.sub)}),_!=="none"&&!L&&!P&&!w)try{this[vt]?(Ja(this),Sn.update.call(this,f),this[vt]=null):Sn[_].call(this,f)}catch(x){throw this[st]=!1,x}if(S?T={type:D,escapeConnect:g,batch:O}:T=O[0],this[st]=!1,!v){var R=void 0;if(p.refineEvent){var I=p.refineEvent(M,f,d,this._api).eventContent;$n(Te(I)),R=Nt({type:p.refinedEventType},I),R.fromAction=f.type,R.fromActionPayload=f,R.escapeConnect=!0}var A=this._messageCenter;A.trigger(T.type,T),R&&A.trigger(R.type,R)}}
43,to=function(f){for(var v=this._pendingActions;v.length;){var h=v.shift();Vh.call(this,h,f)}},ro=function(f){!f&&this.trigger("updated")},K0=function(f,v){f.on("rendered",function(h){v.trigger("rendered",h),f.animation.isFinished()&&!v[vt]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Q0=function(f,v){f.on("mouseover",function(h){var d=h.target,y=yl(d,nd);y&&(II(y,h,v._api),ir(v))}).on("mouseout",function(h){var d=h.target,y=yl(d,nd);y&&(LI(y,h,v._api),ir(v))}).on("click",function(h){var d=h.target,y=yl(d,function(m){return _r(m).dataIndex!=null},!0);if(y){var g=y.selected?"unselect":"select",p=_r(y);v._api.dispatchAction({type:g,dataType:p.dataType,dataIndexInside:p.dataIndex,seriesIndex:p.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(v){v.clearColorPalette()})}function a(f){var v=[],h=[],d=!1;if(f.eachComponent(function(m,_){var w=_.get("zlevel")||0,b=_.get("z")||0,S=_.getZLevelKey();d=d||!!S,(m==="series"?h:v).push({zlevel:w,z:b,idx:_.componentIndex,type:m,key:S})}),d){var y=v.concat(h),g,p;Vl(y,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),z(y,function(m){var _=f.getComponent(m.type,m.idx),w=m.zlevel,b=m.key;g!=null&&(w=Math.max(g,w)),b?(w===g&&b!==p&&w++,p=b):p&&(w===g&&w++,p=""),g=w,_.setZLevel(w)})}}Gh=function(f,v,h,d,y){a(v),X0(f,v,h,d,y),z(f._chartsViews,function(g){g.__alive=!1}),Sl(f,v,h,d,y),z(f._chartsViews,function(g){g.__alive||g.remove(v,h)})},X0=function(f,v,h,d,y,g){z(g||f._componentsViews,function(p){var m=p.__model;l(m,p),p.render(m,v,h,d),u(m,p),c(m,p)})},Sl=function(f,v,h,d,y,g){var p=f._scheduler;y=ie(y||{},{updatedSeries:v.getSeries()}),Er.trigger("series:beforeupdate",v,h,y);var m=!1;v.eachSeries(function(_){var w=f._chartsMap[_.__viewId];w.__alive=!0;var b=w.renderTask;p.updatePayload(b,d),l(_,w),g&&g.get(_.uid)&&b.dirty(),b.perform(p.getPerformArgs(b))&&(m=!0),w.group.silent=!!_.get("silent"),s(_,w),wm(_)}),p.unfinished=m||p.unfinished,Er.trigger("series:layoutlabels",v,h,y),Er.trigger("series:transition",v,h,y),v.eachSeries(function(_){var w=f._chartsMap[_.__viewId];u(_,w),c(_,w)}),o(f,v),Er.trigger("series:afterupdate",v,h,y)},ir=function(f){f[Hh]=!0,f.getZr().wakeUp()},no=function(f){f[_l]=(f[_l]+1)%1e3},J0=function(f){f[Hh]&&(f.getZr().storage.traverse(function(v){Xs(v)||i(v)}),f[Hh]=!1)};function i(f){for(var v=[],h=f.currentStates,d=0;d<h.length;d++){var y=h[d];y==="emphasis"||y==="blur"||y==="select"||v.push(y)}f.selected&&f.states.select&&v.push("select"),f.hoverState===_p&&f.states.emphasis?v.push("emphasis"):f.hoverState===mp&&f.states.blur&&v.push("blur"),f.useStates(v)}function o(f,v){var h=f._zr,d=h.storage,y=0;d.traverse(function(g){g.isGroup||y++}),y>v.get("hoverLayerThreshold")&&!Le.node&&!Le.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var p=f._chartsMap[g.__viewId];p.__alive&&p.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(f,v){var h=f.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function u(f,v){if(!f.preventAutoZ){var h=vS(f);v.eachRendered(function(d){return dS(d,h.z,h.zlevel),!0})}}function l(f,v){v.eachRendered(function(h){if(!Xs(h)){var d=h.getTextContent(),y=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,v){var h=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),y=h.get("duration"),g=y>0?{duration:y,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(p){if(p.states&&p.states.emphasis){if(Xs(p))return;if(p instanceof Ke&&BI(p),p.__dirty){var m=p.prevStates;m&&p.useStates(m)}if(d){p.stateTransition=g;var _=p.getTextContent(),w=p.getTextGuideLine();_&&(_.stateTransition=g),w&&(w.stateTransition=g)}p.__dirty&&i(p)}})}Z0=function(f){return new(function(v){Ae(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(y!=null)return f._model.getComponent(y.mainType,y.index);d=d.parent}},h.prototype.enterEmphasis=function(d,y){Jv(d,y),ir(f)},h.prototype.leaveEmphasis=function(d,y){ed(d,y),ir(f)},h.prototype.enterBlur=function(d){AI(d),ir(f)},h.prototype.leaveBlur=function(d){jb(d),ir(f)},h.prototype.enterSelect=function(d){qb(d),ir(f)},h.prototype.leaveSelect=function(d){Kb(d),ir(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(
43d)},h.prototype.getMainProcessVersion=function(){return f[_l]},h}(tD))(f)},MD=function(f){function v(h,d){for(var y=0;y<h.length;y++){var g=h[y];g[Uh]=d}}z(Dd,function(h,d){f._messageCenter.on(d,function(y){if(e1[f.group]&&f[Uh]!==q0){if(y&&y.escapeConnect)return;var g=f.makeActionFromEvent(y),p=[];z(eu,function(m){m!==f&&m.group===f.group&&p.push(m)}),v(p,q0),z(p,function(m){m[Uh]!==oF&&m.dispatchAction(g)}),v(p,sF)}})})}}(),e}(Yn),Hp=PD.prototype;Hp.on=bD("on");Hp.off=bD("off");Hp.one=function(t,e,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(t,a)}this.on.call(this,t,a,r)};var uF=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Dc={},Dd={},Td={},Cd=[],Md=[],Tc=[],OD={},Pd={},eu={},e1={},lF=+new Date-0,Up="_echarts_instance_";function cF(t,e,r){var n=!(r&&r.ssr);if(n){var a=fF(t);if(a)return a}var i=new PD(t,e,r);return i.id="ec_"+lF++,eu[i.id]=i,n&&Hb(t,Up,i.id),MD(i),Er.trigger("afterinit",i),i}function fF(t){return eu[_I(t,Up)]}function AD(t,e){OD[t]=e}function hF(t){lt(Md,t)<0&&Md.push(t)}function vF(t,e){zp(Cd,t,e,JR)}function EQ(t){ED("afterinit",t)}function IQ(t){ED("afterupdate",t)}function ED(t,e){Er.on(t,e)}function ku(t,e,r){var n,a,i,o,s;it(e)&&(r=e,e=""),Te(t)?(n=t.type,a=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),i=t.refineEvent):(n=t,a=e);function u(c){return c.toLowerCase()}a=u(a||n);var l=i?u(n):a;Dc[n]||($n(j0.test(n)&&j0.test(a)),i&&$n(a!==n),Dc[n]={actionType:n,refinedEventType:a,nonRefinedEventType:l,update:o,action:r,refineEvent:i},Td[a]=1,i&&s&&(Td[l]=1),Dd[l]=n)}function LQ(t,e){PS.register(t,e)}function xQ(t,e){zp(Tc,t,e,mD,"layout")}function ns(t,e){zp(Tc,t,e,_D,"visual")}var t1=[];function zp(t,e,r,n,a){if((it(e)||Te(e))&&(r=e,e=n),!(lt(t1,r)>=0)){t1.push(r);var i=oD.wrapStageHandler(r,a);i.__prio=e,i.__raw=r,t.push(i)}}function dF(t,e){Pd[t]=e}function $Q(t,e,r){var n=qR("registerMap");n&&n(t,e,r)}var kQ=P$;ns(Bp,lR);ns(cf,cR);ns(cf,fR);ns(Bp,TR);ns(cf,CR);ns(wD,jR);hF(nD);vF(XR,oR);dF("default",hR);ku({type:Si,event:Si,update:Si},mr);ku({type:Yl,event:Yl,update:Yl},mr);ku({type:hc,event:wp,update:hc,action:mr,refineEvent:Wp,publishNonRefinedEvent:!0});ku({type:Zv,event:wp,update:Zv,action:mr,refineEvent:Wp,publishNonRefinedEvent:!0});ku({type:vc,event:wp,update:vc,action:mr,refineEvent:Wp,publishNonRefinedEvent:!0});function Wp(t,e,r,n){return{eventContent:{selected:$I(r),isFromClick:e.isFromClick||!1}}}AD("default",{});AD("dark",cD);const pF=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function gF(t){function e(r){return function(...a){if(!t.value)throw new Error("ECharts is not initialized yet.");return Reflect.apply(t.value[r],t.value,a)}}return pF.reduce((r,n)=>(r[n]=e(n),r),{})}
43function yF(t,e,r){Be([r,t,e],([n,a,i],o,s)=>{let u=null;if(n&&a&&i){const{offsetWidth:l,offsetHeight:c}=n,{throttle:f=100,onResize:v}=i===!0?{}:i;let h=!1;const d=()=>{a.resize(),v==null||v()},y=f?Rp(d,f):d;u=new ResizeObserver(()=>{!h&&(h=!0,n.offsetWidth===l&&n.offsetHeight===c)||n.offsetWidth===0||n.offsetHeight===0||y()}),u.observe(n)}s(()=>{u&&(u.disconnect(),u=null)})})}const mF={autoresize:[Boolean,Object]},_F=Symbol();function wF(t,e,r){const n=yr(_F,{}),a=$(()=>({...da(n),...r==null?void 0:r.value}));Nc(()=>{const i=t.value;i&&(e.value?i.showLoading(a.value):i.hideLoading())})}const bF={loading:Boolean,loadingOptions:Object};function ID(){return typeof window<"u"&&typeof document<"u"}const SF=/^on[^a-z]/,LD=t=>SF.test(t);function DF(t){const e={};for(const r in t)LD(r)||(e[r]=t[r]);return e}function TF(t){const e=Number(t);return Number.isInteger(e)&&e>=0&&e<Math.pow(2,32)-1&&String(e)===t}function CF(t,e){const r=new Set(t),n=new Set(e);if(r.size!==n.size)return!1;for(const a of r)if(!n.has(a))return!1;return!0}function xD(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}const $D={tooltip:["tooltip","formatter"],dataView:["toolbox","feature","dataView","optionToContent"]},MF=Object.keys($D);function jh(t){return MF.some(e=>t===e||t.startsWith(e+"-"))}function PF(t,e){const r=ID()?document.createElement("div"):void 0,n=Pl({}),a=Pl({}),i=Pl({}),o=rv(!1),s=()=>o.value&&r?Ro(SC,{to:r},Object.entries(t).filter(([f])=>jh(f)).map(([f,v])=>{const h=f;return Ro("div",{ref:d=>{d instanceof HTMLElement&&(n[h]=d)},style:{display:"contents"}},a[h]?v==null?void 0:v(i[h]):void 0)})):void 0;function u(f){return f!==null&&typeof f=="object"&&!Array.isArray(f)}function l(f){const v={...f},h=(d,y)=>{const g=d[y];if(Array.isArray(g))return d[y]=[...g],d[y];if(u(g))return d[y]={...g},d[y];if(g===void 0)return d[y]=TF(y)?[]:{},d[y]};return Object.keys(t).filter(d=>jh(d)).forEach(d=>{const[y,...g]=d.split("-"),p=$D[y];if(!p)return;const m=[...g,...p];if(m.length===0)return;let _=v;for(let w=0;w<m.length-1;w++)if(_=h(_,m[w]),!_)return;_[m[m.length-1]]=w=>(a[d]=!0,i[d]=w,n[d])}),v}let c=[];return bC(()=>{const f=Object.keys(t).filter(jh);CF(f,c)||(c.forEach(v=>{f.includes(v)||(delete i[v],delete a[v],delete n[v])}),c=f,e())}),Da(()=>{o.value=!0}),Xo(()=>{r==null||r.remove()}),{teleportedSlots:s,patchOption:l}}let Qn=null;const Od="x-vue-echarts";function OF(){if(Qn!=null)return Qn;const t=globalThis.customElements;if(!ID()||!(t!=null&&t.get))return Qn=!1,Qn;if(!t.get(Od))try{class e extends HTMLElement{constructor(){super(...arguments);Tg(this,"__dispose",null)}disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}t.define(Od,e)}catch{return Qn=!1,Qn}return Qn=!0,Qn}function AF(t){if(!xD(t))return;const e=t.id;if(typeof e=="string")return e;if(typeof e=="number"&&Number.isFinite(e))return String(e)}function r1(t){const e=t,r=Array.isArray(e.options)?e.options.length:0,n=Array.isArray(e.media)?e.media.length:0,a=Object.create(null),i=[],o=[];for(const s of Object.keys(e)){if(s==="options"||s==="media")continue;const u=e[s];if(Array.isArray(u)){const l=u,c=new Set;let f=0;for(let v=0;v<l.length;v++){const h=AF(l[v]);h!==void 0?c.add(h):f++}a[s]={idsSorted:c.size>0?Array.from(c).sort():[],noIdCount:f}}else xD(u)?i.push(s):u!==void 0&&o.push(s)}return i.length>1&&i.sort(),o.length>1&&o.sort(),{optionsLength:r,mediaLength:n,arrays:a,objects:i,scalars:o}}function n1(t,e){if(t.length===0)return[];if(e.length===0)return t.slice();const r=new Set(e),n=[];for(let a=0;a<t.length;a++){const i=t[a];r.has(i)||n.push(i)}return n}function EF(t,e){if(t.length===0)return!1;if(e.length===0)return!0;const r=new Set(e);for(let n=0;n<t.length;n++)if(!r.has(t[n]))return!0;return!1}function IF(t,e){const r=r1(e);if(!t)return{option:e,signature:r,plan:{notMerge:!1}};if(r.optionsLength<t.optionsLength)return{option:e,signature:r,plan:{notMerge:!0}};if(r.mediaLength<t.mediaLength)return{option:e,signature:r,plan:{notMerge:!0}};if(n1(t.scalars,r.scalars).length>0)return{option:e,signature:r,plan:{notMerge:!0}};const n=new Set,a=new Map,i=n1(t.objects,r.objects);for(let l=0;l<i.length;l++)a.set(i[l],null);for(const l of Object.keys(t.arrays)){const c=t.arrays[l];if(!c)continue;const f=r.arrays[l];if(!f){(c.idsSorted.length>0||c.noIdCount>0)&&(a.set(l,[]),n.add(l));continue}if(EF(c.idsSorted,f.idsSorted)){n.add(l);continue}f.noIdCount<c.noIdCount&&n.add(l)}let o=e,s=r;if(a.size>0){const l={...e};a.forEach((c,f)=>{l[f]=c}),o=l,s=r1(o)}const u=n.size>0?Array.from(n).sort():void 0;return{option:o,signature:s,plan:u?{notMerge:!1,replaceMerge:u}:{notMerge:!1}}}var a1=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}
44x-vue-echarts>:first-child,x-vue-echarts>:first-child>canvas{border-radius:inherit;}
45`;if(typeof document<"u")if(Array.isArray(document.adoptedStyleSheets)&&"replaceSync"in CSSStyleSheet.prototype){const t=new CSSStyleSheet;t.replaceSync(a1),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}else{const t=document.createElement("style");t.textContent=a1,document.head.appendChild(t)}const LF=OF(),xF=Symbol(),$F=Symbol(),kF=Symbol();var RF=ze({name:"Echarts",inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...mF,...bF},emits:{},slots:Object,setup(t,{attrs:e,expose:r,slots:n}){const a=rv(),i=rv(),o=yr(xF,null),s=yr($F,null),u=yr(kF,null),{autoresize:l,manualUpdate:c,loading:f,loadingOptions:v}=Fc(t),h=$(()=>t.theme||da(o)),d=$(()=>t.initOptions||da(s)||void 0),y=$(()=>t.updateOptions||da(u)),g=$(()=>DF(e)),p={},m=new Map,{teleportedSlots:_,patchOption:w}=PF(n,()=>{!c.value&&t.option&&i.value&&O(i.value,t.option)});let b;function S(L){const R={},I=((L==null?void 0:L.replaceMerge)??[]).filter(A=>A!=null);return I.length>0&&(R.replaceMerge=[...new Set(I)]),(L==null?void 0:L.notMerge)!==void 0&&(R.notMerge=L.notMerge),R}function O(L,R,I,A=!1){const x=w(R);if(A){L.setOption(x,I??{}),b=void 0;return}if(y.value){const q=I??y.value;L.setOption(x,q),b=void 0;return}const Y=IF(b,x),U=S(Y.plan);L.setOption(Y.option,U),b=Y.signature}Object.keys(e).filter(L=>
45LD(L)).forEach(L=>{if(L.indexOf("Native:")===2){const x=`on${L.charAt(9).toUpperCase()}${L.slice(10)}`;p[x]=e[L];return}let R=L.charAt(2).toLowerCase()+L.slice(3),I;R.indexOf("zr:")===0&&(I=!0,R=R.substring(3));let A;R.substring(R.length-4)==="Once"&&(A=!0,R=R.substring(0,R.length-4)),m.set({event:R,zr:I,once:A},e[L])});function T(){if(!a.value)return;const L=i.value=cF(a.value,h.value,d.value);t.group&&(L.group=t.group),m.forEach((A,{zr:x,once:Y,event:U})=>{if(!A)return;const q=x?L.getZr():L;if(Y){const N=A;let Q=!1;A=(...V)=>{Q||(Q=!0,N(...V),q.off(U,A))}}q.on(U,A)});function R(){L&&!L.isDisposed()&&L.resize()}function I(){const{option:A}=t;if(c.value){A&&O(L,A,void 0,!0);return}A&&O(L,A)}l.value?En(()=>{R(),I()}):I()}const M=(L,R,I)=>{if(!t.manualUpdate)return;const A=typeof R=="boolean"?{notMerge:R,lazyUpdate:I}:R;i.value&&O(i.value,L,A??void 0,!0)};function D(){i.value&&(i.value.dispose(),i.value=void 0),b=void 0}Be(()=>t.option,L=>{if(!L){b=void 0;return}c.value||i.value&&O(i.value,L)},{deep:!0}),Be([c,d],()=>{D(),T()},{deep:!0}),Be(h,L=>{var R;(R=i.value)==null||R.setTheme(L||{})},{deep:!0}),Nc(()=>{t.group&&i.value&&(i.value.group=t.group)});const P=gF(i);return wF(i,f,v),yF(i,l,a),Da(()=>{T()}),wC(()=>{LF&&a.value?a.value.__dispose=D:D()}),r({setOption:M,root:a,chart:i,...P}),()=>Ro(Od,{...g.value,...p,ref:a,class:["echarts",g.value.class]},_())}}),RQ=RF;const FF=["kp3glrw7hwqdyjv","pxwrxlhyyzg7ryk"];function Vp(t){return!!t&&FF.includes(t)}const i1={Algeria:"Algeria",Argentina:"Argentina",Australia:"Úc",Austria:"Áo",Belgium:"Bỉ","Bosnia and Herzegovina":"Bosnia & Herzegovina",Brazil:"Brazil","Cabo Verde":"Cape Verde","Cape Verde":"Cape Verde",Cambodia:"Campuchia",Canada:"Canada",Colombia:"Colombia","Cote d'Ivoire":"Bờ Biển Ngà","Ivory Coast":"Bờ Biển Ngà",Croatia:"Croatia",Curacao:"Curacao",Czechia:"CH Séc","Czech Republic":"CH Séc","Democratic Republic of the Congo":"CHDC Congo","DR Congo":"CHDC Congo",Ecuador:"Ecuador",Egypt:"Ai Cập",England:"Anh",France:"Pháp",Germany:"Đức",Ghana:"Ghana",Haiti:"Haiti",Indonesia:"Indonesia","IR Iran":"Iran",Iran:"Iran",Iraq:"Iraq",Japan:"Nhật Bản",Jordan:"Jordan",Laos:"Lào",Malaysia:"Malaysia",Mexico:"Mexico",Morocco:"Maroc",Myanmar:"Myanmar",Netherlands:"Hà Lan","New Zealand":"New Zealand",Norway:"Na Uy",Panama:"Panama",Paraguay:"Paraguay",Philippines:"Philippines",Portugal:"Bồ Đào Nha",Qatar:"Qatar","Saudi Arabia":"Ả Rập Xê Út",Scotland:"Scotland",Senegal:"Senegal",Singapore:"Singapore","South Africa":"Nam Phi","South Korea":"Hàn Quốc","Korea Republic":"Hàn Quốc",Spain:"Tây Ban Nha",Sweden:"Thụy Điển",Switzerland:"Thụy Sĩ",Thailand:"Thái Lan","Timor Leste":"Đông Timor","Timor-Leste":"Đông Timor","East Timor":"Đông Timor",Tunisia:"Tunisia",Turkiye:"Thổ Nhĩ Kỳ",Türkiye:"Thổ Nhĩ Kỳ",USA:"Mỹ","United States":"Mỹ",Uruguay:"Uruguay",Uzbekistan:"Uzbekistan",Vietnam:"Việt Nam","Viet Nam":"Việt Nam"};function NF(t){const e=t.match(/^([A-L])([12])$/);if(e)return`${e[2]==="1"?"Nhất":"Nhì"} bảng ${e[1]}`;if(t.match(/^[A-L]3(?:\/[A-L]3)+$/))return`Ba bảng ${t.replace(/3/g,"")}`;const n=t.match(/^Winner R(32|16) match (\d+)$/i);if(n)return`Thắng trận ${n[2]} vòng 1/${Number(n[1])/2}`;const a=t.match(/^(Winner|Loser) (QF|SF)(\d+)$/i);if(a){const i=a[1].toLowerCase()==="winner"?"Thắng":"Thua",o=a[2].toUpperCase()==="QF"?"tứ kết":"bán kết";return`${i} ${o} ${a[3]}`}return null}function o1(t,e){return t?Object.prototype.hasOwnProperty.call(i1,t)?i1[t]:e!==void 0&&!Vp(e)?t:NF(t)??t:""}function YF(t){const e=t.sclassID??null,r=t.homeTeam?o1(t.homeTeam,e):t.homeTeam,n=t.guestTeam?o1(t.guestTeam,e):t.guestTeam;return r===t.homeTeam&&n===t.guestTeam?t:{...t,homeTeam:r,guestTeam:n}}function BF(t){return t.map(e=>{const r=e.matches.map(YF);return r.some((a,i)=>a!==e.matches[i])?{...e,matches:r}:e})}const HF={y0or5jhwp69qwzv:"Vòng bảng","2y8m4zheox4ql07":"Vòng 1/16","8yomo4h6px9q0j6":"Vòng 1/8","6ypq3nhp9eemd7o":"Tứ kết",pxwrxlh04e3ryk0:"Bán kết","3glrw7hg863qdyj":"Tranh hạng ba",vjxm8gh713lr6od:"Chung kết",vjxm8gh71wlr6od:"Xếp hạng các đội thứ ba"},UF={"Group stage":"Vòng bảng","Round of 32":"Vòng 1/16","Round of 16":"Vòng 1/8","Quarter-finals":"Tứ kết","Semi-finals":"Bán kết","Third place":"Tran
45h hạng ba",Final:"Chung kết","Ranking of third-placed teams":"Xếp hạng các đội thứ ba"},zF={"Possible Advanced":"Có thể đi tiếp","Advancing to the Round of 32":"Vào vòng 1/16","Advancing to the Round of 16":"Vào vòng 1/8","Advancing to the Quarter-finals":"Vào tứ kết","Advancing to the Semi-finals":"Vào bán kết",Relegated:"Xuống hạng","Possible Relegation":"Có thể xuống hạng"};function FQ(t,e){return t?e!==void 0&&!Vp(e)?t:zF[t]??t:""}function NQ(t,e){if(!t)return"";const r=t.name??"";return e!==void 0&&!Vp(e)?r:t.id&&HF[t.id]||UF[r]||r}var Vt="top",Sr="bottom",Dr="right",Gt="left",Gp="auto",Ru=[Vt,Sr,Dr,Gt],zo="start",gu="end",WF="clippingParents",kD="viewport",Cs="popper",VF="reference",s1=Ru.reduce(function(t,e){return t.concat([e+"-"+zo,e+"-"+gu])},[]),RD=[].concat(Ru,[Gp]).reduce(function(t,e){return t.concat([e,e+"-"+zo,e+"-"+gu])},[]),GF="beforeRead",jF="read",qF="afterRead",KF="beforeMain",QF="main",XF="afterMain",ZF="beforeWrite",JF="write",e3="afterWrite",t3=[GF,jF,qF,KF,QF,XF,ZF,JF,e3];function dn(t){return t?(t.nodeName||"").toLowerCase():null}function tr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Pi(t){var e=tr(t).Element;return t instanceof e||t instanceof Element}function wr(t){var e=tr(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function jp(t){if(typeof ShadowRoot>"u")return!1;var e=tr(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function r3(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},a=e.attributes[r]||{},i=e.elements[r];!wr(i)||!dn(i)||(Object.assign(i.style,n),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function n3(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var a=e.elements[n],i=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),s=o.reduce(function(u,l){return u[l]="",u},{});
vendor: 14,816 bytes, line 45
45!wr(a)||!dn(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(u){a.removeAttribute(u)}))})}}const a3={name:"applyStyles",enabled:!0,phase:"write",fn:r3,effect:n3,requires:["computeStyles"]};function vn(t){return t.split("-")[0]}var Ti=Math.max,Cc=Math.min,Wo=Math.round;function Ad(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function FD(){return!/^((?!chrome|android).)*safari/i.test(Ad())}function Vo(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),a=1,i=1;e&&wr(t)&&(a=t.offsetWidth>0&&Wo(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Wo(n.height)/t.offsetHeight||1);var o=Pi(t)?tr(t):window,s=o.visualViewport,u=!FD()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/a,c=(n.top+(u&&s?s.offsetTop:0))/i,f=n.width/a,v=n.height/i;return{width:f,height:v,top:c,right:l+f,bottom:c+v,left:l,x:l,y:c}}function qp(t){var e=Vo(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function ND(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&jp(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function kn(t){return tr(t).getComputedStyle(t)}function i3(t){return["table","td","th"].indexOf(dn(t))>=0}function Ma(t){return((Pi(t)?t.ownerDocument:t.document)||window.document).documentElement}function ff(t){return dn(t)==="html"?t:t.assignedSlot||t.parentNode||(jp(t)?t.host:null)||Ma(t)}function u1(t){return!wr(t)||kn(t).position==="fixed"?null:t.offsetParent}function o3(t){var e=/firefox/i.test(Ad()),r=/Trident/i.test(Ad());if(r&&wr(t)){var n=kn(t);if(n.position==="fixed")return null}var a=ff(t);for(jp(a)&&(a=a.host);wr(a)&&["html","body"].indexOf(dn(a))<0;){var i=kn(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Fu(t){for(var e=tr(t),r=u1(t);r&&i3(r)&&kn(r).position==="static";)r=u1(r);return r&&(dn(r)==="html"||dn(r)==="body"&&kn(r).position==="static")?e:r||o3(t)||e}function Kp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function tu(t,e,r){return Ti(t,Cc(e,r))}function s3(t,e,r){var n=tu(t,e,r);return n>r?r:n}function YD(){return{top:0,right:0,bottom:0,left:0}}function BD(t){return Object.assign({},YD(),t)}function HD(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var u3=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,BD(typeof e!="number"?e:HD(e,Ru))};function l3(t){var e,r=t.state,n=t.name,a=t.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,s=vn(r.placement),u=Kp(s),l=[Gt,Dr].indexOf(s)>=0,c=l?"height":"width";if(!(!i||!o)){var f=u3(a.padding,r),v=qp(i),h=u==="y"?Vt:Gt,d=u==="y"?Sr:Dr,y=r.rects.reference[c]+r.rects.reference[u]-o[u]-r.rects.popper[c],g=o[u]-r.rects.reference[u],p=Fu(i),m=p?u==="y"?p.clientHeight||0:p.clientWidth||0:0,_=y/2-g/2,w=f[h],b=m-v[c]-f[d],S=m/2-v[c]/2+_,O=tu(w,S,b),T=u;r.modifiersData[n]=(e={},e[T]=O,e.centerOffset=O-S,e)}}function c3(t){var e=t.state,r=t.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||ND(e.elements.popper,a)&&(e.elements.arrow=a))}const f3={name:"arrow",enabled:!0,phase:"main",fn:l3,effect:c3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Go(t){return t.split("-")[1]}var h3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function v3(t,e){var r=t.x,n=t.y,a=e.devicePixelRatio||1;return{x:Wo(r*a)/a||0,y:Wo(n*a)/a||0}}function l1(t){var e,r=t.popper,n=t.popperRect,a=t.placement,i=t.variation,o=t.offsets,s=t.position,u=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,f=t.isFixed,v=o.x,h=v===void 0?0:v,d=o.y,y=d===void 0?0:d,g=typeof c=="function"?c({x:h,y}):{x:h,y};h=g.x,y=g.y;var p=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),_=Gt,w=Vt,b=window;if(l){var S=Fu(r),O="clientHeight",T="clientWidth";if(S===tr(r)&&(S=Ma(r),kn(S).position!=="static"&&s==="absolute"&&(O="scrollHeight",T="scrollWidth")),S=S,a===Vt||(a===Gt||a===Dr)&&i===gu){w=Sr;var M=f&&S===b&&b.visualViewport?b.visualViewport.height:S[O];y-=M-n.height,y*=u?1:-1}if(a===Gt||(a===Vt||a===Sr)&&i===gu){_=Dr;var D=f&&S===b&&b.visualViewport?b.visualViewport.width:S[T];h-=D-n.width,h*=u?1:-1}}var P=Object.assign({position:s},l&&h3),L=c===!0?v3({x:h,y},tr(r)):{x:h,y};if(h=L.x,y=L.y,u){var R;return Object.assign({},P,(R={},R[w]=m?"0":"",R[_]=p?"0":"",R.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",R))}return Object.assign({},P,(e={},e[w]=m?y+"px":"",e[_]=p?h+"px":"",e.transform="",e))}function d3(t){var e=t.state,r=t.options,n=r.gpuAcceleration,a=n===void 0?!0:n,i=r.adaptive,o=i===void 0?!0:i,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:vn(e.placement),variation:Go(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,l1(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,l1(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const p3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:d3,data:{}};var Dl={passive:!0};function g3(t){var e=t.state,r=t.instance,n=t.options,a=n.scroll,i=a===void 0?!0:a,o=n.resize,s=o===void 0?!0:o,u=tr(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&l.forEach(function(c){c.addEventListener("scroll",r.update,Dl)}),s&&u.addEventListener("resize",r.update,Dl),function(){i&&l.forEach(function(c){c.removeEventListener("scroll",r.update,Dl)}),s&&u.removeEventListener("resize",r.update,Dl)}}const y3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:g3,data:{}};var m3={left:"right",right:"left",bottom:"top",top:"bottom"};function ql(t){return t.replace(/left|right|bottom|top/g,function(e){return m3[e]})}var _3={start:"end",end:"start"};function c1(t){return t.replace(/start|end/g,function(e){return _3[e]})}function Qp(t){var e=tr(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Xp(t){return Vo(Ma(t)).left+Qp(t).scrollLeft}function w3(t,e){var r=tr(t),n=Ma(t),a=r.visualViewport,i=n.clientWidth,o=n.clientHeight,s=0,u=0;if(a){i=a.width,o=a.height;var l=FD();(l||!l&&e==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:i,height:o,x:s+Xp(t),y:u}}function b3(t){var e,r=Ma(t),n=Qp(t),a=(e=t.ownerDocument)==null?void 0:e.body,i=Ti(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Ti(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+Xp(t),u=-n.scrollTop;return kn(a||r).direction==="rtl"&&(s+=Ti(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:u}}function Zp(t){var e=kn(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function UD(t){return["html","body","#document"].indexOf(dn(t))>=0?t.ownerDocument.body:wr(t)&&Zp(t)?t:UD(ff(t))}function ru(t,e){var r;e===void 0&&(e=[]);var n=UD(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),i=tr(n),o=a?[i].concat(i.visualViewport||[],Zp(n)?n:[]):n,s=e.concat(o);return a?s:s.concat(ru(ff(o)))}function Ed(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function S3(t,e){var r=Vo(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function f1(t,e,r){return e===kD?Ed(w3(t,r)):Pi(e)?S3(e,r):Ed(b3(Ma(t)))}function D3(t){var e=ru(ff(t)),r=["absolute","fixed"].indexOf(kn(t).position)>=0,n=r&&wr(t)?Fu(t):t;return Pi(n)?e.filter(function(a){return Pi(a)&&ND(a,n)&&dn(a)!=="body"}):[]}function T3(t,e,r,n){var a=e==="clippingParents"?D3(t):[].concat(e),i=[].concat(a,[r]),o=i[0],s=i.reduce(function(u,l){var c=f1(t,l,n);return u.top=Ti(c.top,u.top),u.right=Cc(c.right,u.right),u.bottom=Cc(c.bottom,u.bottom),u.left=Ti(c.left,u.left),u},f1(t,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function zD(t){var e=t.reference,r=t.element,n=t.placement,a=n?vn(n):null,i=n?Go(n):null,o=e.x+e.width/2-r.width/2,s=e.y+e.height/2-r.height/2,u;switch(a){case Vt:u={x:o,y:e.y-r.height};break;case Sr:u={x:o,y:e.y+e.height};break;case Dr:u={x:e.x+e.width,y:s};break;case Gt:u={x:e.x-r.width,y:s};break;default:u={x:e.x,y:e.y}}var l=a?Kp(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(i){case zo:u[l]=u[l]-(e[c]/2-r[c]/2);break;case gu:u[l]=u[l]+(e[c]/2-r[c]/2);break}}return u}function yu(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=n===void 0?t.placement:n,i=r.strategy,o=i===void 0?t.strategy:i,s=r.boundary,u=s===void 0?WF:s,l=r.rootBoundary,c=l===void 0?kD:l,f=r.elementContext,v=f===void 0?Cs:f,h=r.altBoundary,d=h===void 0?!1:h,y=r.padding,g=y===void 0?0:y,p=BD(typeof g!="number"?g:HD(g,Ru)),m=v===Cs?VF:Cs,_=t.rects.popper,w=t.elements[d?m:v],b=T3(Pi(w)?w:w.contextElement||Ma(t.elements.popper),u,c,o),S=Vo(t.elements.reference),O=zD({reference:S,element:_,placement:a}),T=Ed(Object.assign({},_,O)),M=v===Cs?T:S,D={top:b.top-M.top+p.top,bottom:M.bottom-b.bottom+p.bottom,left:b.left-M.left+p.left,right:M.right-b.right+p.right},P=t.modifiersData.offset;if(v===Cs&&P){var L=P[a];Object.keys(D).forEach(function(R){var I=[Dr,Sr].indexOf(R)>=0?1:-1,A=[Vt,Sr].indexOf(R)>=0?"y":"x";D[R]+=L[A]*I})}return D}function C3(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?RD:u,c=Go(n),f=c?s?s1:s1.filter(function(d){return Go(d)===c}):Ru,v=f.filter(function(d){return l.indexOf(d)>=0});v.length===0&&(v=f);var h=v.reduce(function(d,y){return d[y]=yu(t,{placement:y,boundary:a,rootBoundary:i,padding:o})[vn(y)],d},{});return Object.keys(h).sort(function(d,y){return h[d]-h[y]})}function M3(t){if(vn(t)===Gp)return[];var e=ql(t);return[c1(t),e,c1(e)]}function P3(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!0:o,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,v=r.altBoundary,h=r.flipVariations,d=h===void 0?!0:h,y=r.allowedAutoPlacements,g=e.options.placement,p=vn(g),m=p===g,_=u||(m||!d?[ql(g)]:M3(g)),w=[g].concat(_).reduce(function(ee,ue){return ee.concat(vn(ue)===Gp?C3(e,{placement:ue,boundary:c,rootBoundary:f,padding:l,flipVariations:d,allowedAutoPlacements:y}):ue)},[]),b=e.rects.reference,S=e.rects.popper,O=new Map,T=!0,M=w[0],D=0;D<w.length;D++){var P=w[D],L=vn(P),R=Go(P)===zo,I=[Vt,Sr].indexOf(L)>=0,A=I?"width":"height",x=yu(e,{placement:P,boundary:c,rootBoundary:f,altBoundary:v,padding:l}),Y=I?R?Dr:Gt:R?Sr:Vt;b[A]>S[A]&&(Y=ql(Y));var U=ql(Y),q=[];if(i&&q.push(x[L]<=0),s&&q.push(x[Y]<=0,x[U]<=0),q.every(function(ee){return ee})){M=P,T=!1;break}O.set(P,q)}if(T)for(var N=d?3:1,Q=function(ue){var ye=w.find(function(de){var Me=O.get(de);if(Me)return Me.slice(0,ue).every(function(_e){return _e})});if(ye)return M=ye,"break"},V=N;V>0;V--){var ne=Q(V);if(ne==="break")break}e.placement!==M&&(e.modifiersData[n]._skip=!0,e.placement=M,e.reset=!0)}}const O3={name:"flip",enabled:!0,phase:"main",fn:P3,requiresIfExists:["offset"],data:{_skip:!1}};function h1(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function v1(t){return[Vt,Dr,Sr,Gt].some(function(e){return t[e]>=0})}function A3(t){var e=t.state,r=t.name,n=e.rects.reference,a=e.rects.popper,i=e.modifiersData.preventOverflow,o=yu(e,{elementContext:"reference"}),s=yu(e,{altBoundary:!0}),u=h1(o,n),l=h1(s,a,i),c=v1(u),f=v1(l);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const E3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:A3};function I3(t,e,r){var n=vn(t),a=[Gt,Vt].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[Gt,Dr].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function L3(t){var e=t.state,r=t.options,n=t.name,a=r.offset,i=a===void 0?[0,0]:a,o=RD.reduce(function(c,f){return c[f]=I3(f,e.rects,i),c},{}),s=o[e.placement],u=s.x,l=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=l),e.modifiersData[n]=o}const x3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:L3};function $3(t){var e=t.state,r=t.name;e.modifiersData[r]=zD({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const k3={name:"popperOffsets",enabled:!0,phase:"read",fn:$3,data:{}};function R3(t){return t==="x"?"y":"x"}function F3(t){var e=t.state,r=t.options,n=t.name,a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!1:o,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,v=r.tether,h=v===void 0?!0:v,d=r.tetherOffset,y=d===void 0?0:d,g=yu(e,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),p=vn(e.placement),m=Go(e.placement),_=!m,w=Kp(p),b=R3(w),S=e.modifiersData.popperOffsets,O=e.rects.reference,T=e.rects.popper,M=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,D=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(S){if(i){var R,I=w==="y"?Vt:Gt,A=w==="y"?Sr:Dr,x=w==="y"?"height":"width",Y=S[w],U=Y+g[I],q=Y-g[A],N=h?-T[x]/2:0,Q=m===zo?O[x]:T[x],V=m===zo?-T[x]:-O[x],ne=e.elements.arrow,ee=h&&ne?qp(ne):{width:0,height:0},ue=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:YD(),ye=ue[I],de=ue[A],Me=tu(0,O[x],ee[x]),_e=_?O[x]/2-N-Me-ye-D.mainAxis:Q-Me-ye-D.mainAxis,he=_?-O[x]/2+N+Me+de+D.mainAxis:V+Me+de+D.mainAxis,te=e.elements.arrow&&Fu(e.elements.arrow),F=te?w==="y"?te.clientTop||0:te.clientLeft||0:0,K=(R=P==null?void 0:P[w])!=null?R:0,X=Y+_e-K-F,$e=Y+he-K,Ze=tu(h?Cc(U,X):U,Y,h?Ti(q,$e):q);S[w]=Ze,L[w]=Ze-Y}if(s){var Pt,zn=w==="x"?Vt:Gt,Wn=w==="x"?Sr:Dr,Yt=S[b],Tr=b==="y"?"height":"width",Cr=Yt+g[zn],je=Yt-g[Wn],We=[
vendor: 4,438 bytes, line 45
45Vt,Gt].indexOf(p)!==-1,qt=(Pt=P==null?void 0:P[b])!=null?Pt:0,Ot=We?Cr:Yt-O[Tr]-T[Tr]-qt+D.altAxis,Hr=We?Yt+O[Tr]+T[Tr]-qt-D.altAxis:je,_n=h&&We?s3(Ot,Yt,Hr):tu(h?Ot:Cr,Yt,h?Hr:je);S[b]=_n,L[b]=_n-Yt}e.modifiersData[n]=L}}const N3={name:"preventOverflow",enabled:!0,phase:"main",fn:F3,requiresIfExists:["offset"]};function Y3(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function B3(t){return t===tr(t)||!wr(t)?Qp(t):Y3(t)}function H3(t){var e=t.getBoundingClientRect(),r=Wo(e.width)/t.offsetWidth||1,n=Wo(e.height)/t.offsetHeight||1;return r!==1||n!==1}function U3(t,e,r){r===void 0&&(r=!1);var n=wr(e),a=wr(e)&&H3(e),i=Ma(e),o=Vo(t,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((dn(e)!=="body"||Zp(i))&&(s=B3(e)),wr(e)?(u=Vo(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):i&&(u.x=Xp(i))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function z3(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function a(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var u=e.get(s);u&&a(u)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||a(i)}),n}function W3(t){var e=z3(t);return t3.reduce(function(r,n){return r.concat(e.filter(function(a){return a.phase===n}))},[])}function V3(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function G3(t){var e=t.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var d1={placement:"bottom",modifiers:[],strategy:"absolute"};function p1(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function j3(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,a=e.defaultOptions,i=a===void 0?d1:a;return function(s,u,l){l===void 0&&(l=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},d1,i),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},f=[],v=!1,h={state:c,setOptions:function(p){var m=typeof p=="function"?p(c.options):p;y(),c.options=Object.assign({},i,c.options,m),c.scrollParents={reference:Pi(s)?ru(s):s.contextElement?ru(s.contextElement):[],popper:ru(u)};var _=W3(G3([].concat(n,c.options.modifiers)));return c.orderedModifiers=_.filter(function(w){return w.enabled}),d(),h.update()},forceUpdate:function(){if(!v){var p=c.elements,m=p.reference,_=p.popper;if(p1(m,_)){c.rects={reference:U3(m,Fu(_),c.options.strategy==="fixed"),popper:qp(_)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(D){return c.modifiersData[D.name]=Object.assign({},D.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var b=c.orderedModifiers[w],S=b.fn,O=b.options,T=O===void 0?{}:O,M=b.name;typeof S=="function"&&(c=S({state:c,options:T,name:M,instance:h})||c)}}}},update:V3(function(){return new Promise(function(g){h.forceUpdate(),g(c)})}),destroy:function(){y(),v=!0}};if(!p1(s,u))return h;h.setOptions(l).then(function(g){!v&&l.onFirstUpdate&&l.onFirstUpdate(g)});function d(){c.orderedModifiers.forEach(function(g){var p=g.name,m=g.options,_=m===void 0?{}:m,w=g.effect;if(typeof w=="function"){var b=w({state:c,name:p,instance:h,options:_}),S=function(){};f.push(b||S)}})}function y(){f.forEach(function(g){return g()}),f=[]}return h}}var q3=[y3,k3,p3,a3,x3,O3,N3,f3,E3],K3=j3({defaultModifiers:q3}),Q3=Object.defineProperty,X3=(t,e,r)=>e in t?Q3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ae=(t,e,r)=>(X3(t,typeof e!="symbol"?e+"":e,r),r),Tl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function WD(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Z3=Object.prototype,J3=Z3.hasOwnProperty;function eN(t,e){return t!=null&&J3.call(t,e)}var tN=eN,rN=Array.isArray,Yr=rN,nN=typeof Tl=="object"&&Tl&&Tl.Object===Object&&Tl,VD=nN,aN=VD,iN=typeof self=="object"&&self&&self.Object===Object&&self,oN=aN||iN||Function("return this")(),yn=oN,sN=yn,uN=sN.Symbol,hf=uN,g1=hf,GD=Object.prototype,lN=GD.hasOwnProperty,cN=GD.toString,Ms=g1?g1.toStringTag:void 0;
vendor: 6,898 bytes, line 45
45function fN(t){var e=lN.call(t,Ms),r=t[Ms];try{t[Ms]=void 0;var n=!0}catch{}var a=cN.call(t);return n&&(e?t[Ms]=r:delete t[Ms]),a}var hN=fN,vN=Object.prototype,dN=vN.toString;function pN(t){return dN.call(t)}var gN=pN,y1=hf,yN=hN,mN=gN,_N="[object Null]",wN="[object Undefined]",m1=y1?y1.toStringTag:void 0;function bN(t){return t==null?t===void 0?wN:_N:m1&&m1 in Object(t)?yN(t):mN(t)}var mn=bN;function SN(t){return t!=null&&typeof t=="object"}var Br=SN,DN=mn,TN=Br,CN="[object Symbol]";function MN(t){return typeof t=="symbol"||TN(t)&&DN(t)==CN}var Jp=MN,PN=Yr,ON=Jp,AN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EN=/^\w*$/;function IN(t,e){if(PN(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||ON(t)?!0:EN.test(t)||!AN.test(t)||e!=null&&t in Object(e)}var eg=IN;function LN(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Hn=LN,xN=mn,$N=Hn,kN="[object AsyncFunction]",RN="[object Function]",FN="[object GeneratorFunction]",NN="[object Proxy]";function YN(t){if(!$N(t))return!1;var e=xN(t);return e==RN||e==FN||e==kN||e==NN}var xi=YN,BN=yn,HN=BN["__core-js_shared__"],UN=HN,qh=UN,_1=function(){var t=/[^.]+$/.exec(qh&&qh.keys&&qh.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function zN(t){return!!_1&&_1 in t}var WN=zN,VN=Function.prototype,GN=VN.toString;function jN(t){if(t!=null){try{return GN.call(t)}catch{}try{return t+""}catch{}}return""}var jD=jN,qN=xi,KN=WN,QN=Hn,XN=jD,ZN=/[\\^$.*+?()[\]{}|]/g,JN=/^\[object .+?Constructor\]$/,e5=Function.prototype,t5=Object.prototype,r5=e5.toString,n5=t5.hasOwnProperty,a5=RegExp("^"+r5.call(n5).replace(ZN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function i5(t){if(!QN(t)||KN(t))return!1;var e=qN(t)?a5:JN;return e.test(XN(t))}var o5=i5;function s5(t,e){return t==null?void 0:t[e]}var u5=s5,l5=o5,c5=u5;function f5(t,e){var r=c5(t,e);return l5(r)?r:void 0}var $i=f5,h5=$i,v5=h5(Object,"create"),vf=v5,w1=vf;function d5(){this.__data__=w1?w1(null):{},this.size=0}var p5=d5;function g5(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var y5=g5,m5=vf,_5="__lodash_hash_undefined__",w5=Object.prototype,b5=w5.hasOwnProperty;function S5(t){var e=this.__data__;if(m5){var r=e[t];return r===_5?void 0:r}return b5.call(e,t)?e[t]:void 0}var D5=S5,T5=vf,C5=Object.prototype,M5=C5.hasOwnProperty;function P5(t){var e=this.__data__;return T5?e[t]!==void 0:M5.call(e,t)}var O5=P5,A5=vf,E5="__lodash_hash_undefined__";function I5(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=A5&&e===void 0?E5:e,this}var L5=I5,x5=p5,$5=y5,k5=D5,R5=O5,F5=L5;function as(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}as.prototype.clear=x5;as.prototype.delete=$5;as.prototype.get=k5;as.prototype.has=R5;as.prototype.set=F5;var N5=as;function Y5(){this.__data__=[],this.size=0}var B5=Y5;function H5(t,e){return t===e||t!==t&&e!==e}var is=H5,U5=is;function z5(t,e){for(var r=t.length;r--;)if(U5(t[r][0],e))return r;return-1}var df=z5,W5=df,V5=Array.prototype,G5=V5.splice;function j5(t){var e=this.__data__,r=W5(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():G5.call(e,r,1),--this.size,!0}var q5=j5,K5=df;function Q5(t){var e=this.__data__,r=K5(e,t);return r<0?void 0:e[r][1]}var X5=Q5,Z5=df;function J5(t){return Z5(this.__data__,t)>-1}var e4=J5,t4=df;function r4(t,e){var r=this.__data__,n=t4(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var n4=r4,a4=B5,i4=q5,o4=X5,s4=e4,u4=n4;function os(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}os.prototype.clear=a4;os.prototype.delete=i4;os.prototype.get=o4;os.prototype.has=s4;os.prototype.set=u4;var pf=os,l4=$i,c4=yn,f4=l4(c4,"Map"),tg=f4,b1=N5,h4=pf,v4=tg;function d4(){this.size=0,this.__data__={hash:new b1,map:new(v4||h4),string:new b1}}var p4=d4;function g4(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var y4=g4,m4=y4;function _4(t,e){var r=t.__data__;return m4(e)?r[typeof e=="string"?"string":"hash"]:r.map}var gf=_4,w4=gf;function b4(t){var e=w4(this,t).delete(t);return this.size-=e?1:0,e}var S4=b4,D4=gf;function T4(t){return D4(this,t).get(t)}var C4=T4,M4=gf;function P4(t){return M4(this,t).has(t)}var O4=P4,A4=gf;function E4(t,e){var r=A4(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var I4=E4,L4=p4,x4=S4,$4=C4,k4=O4,R4=I4;function ss(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ss.prototype.clear=L4;ss.prototype.delete=x4;ss.prototype.get=$4;ss.prototype.has=k4;ss.prototype.set=R4;var rg=ss,qD=rg,F4="Expected a function";function ng(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(F4);var r=function(){var n=arguments,a=e?e.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=t.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(ng.Cache||qD),r}ng.Cache=qD;var N4=ng,Y4=N4,B4=500;function H4(t){var e=Y4(t,function(n){return r.size===B4&&r.clear(),n}),r=e.cache;return e}var U4=H4,z4=U4,W4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V4=/\\(\\)?/g,G4=z4(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(W4,function(r,n,a,i){e.push(a?i.replace(V4,"$1"):n||r)}),e}),j4=G4;function q4(t,e){for(var r=-1,n=t==null?0:t.length,a=Array(n);++r<n;)a[r]=e(t[r],r,t);return a}var K4=q4,S1=hf,Q4=K4,X4=Yr,Z4=Jp,D1=S1?S1.prototype:void 0,T1=D1?D1.toString:void 0;function KD(t){if(typeof t=="string")return t;if(X4(t))return Q4(t,KD)+"";if(Z4(t))return T1?T1.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var J4=KD,eY=J4;function tY(t){return t==null?"":eY(t)}var rY=tY,nY=Yr,aY=eg,iY=j4,oY=rY;function sY(t,e){return nY(t)?t:aY(t,e)?[t]:iY(oY(t))}var QD=sY,uY=mn,lY=Br,cY="[object Arguments]";function fY(t){return lY(t)&&uY(t)==cY}var hY=fY,C1=hY,vY=Br,XD=Object.prototype,dY=XD.hasOwnProperty,pY=XD.propertyIsEnumerable,gY=C1(function(){return arguments}())?C1:function(t){return vY(t)&&dY.call(t,"callee")&&!pY.call(t,"callee")},ag=gY,yY=9007199254740991,mY=/^(?:0|[1-9]\d*)$/;function _Y(t,e){var r=typeof t;return e=e??yY,!!e&&(r=="number"||r!="symbol"&&mY.test(t))&&t>-1&&t%1==0&&t<e}var ig=_Y,wY=9007199254740991;function bY(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=wY}var og=bY,SY=Jp;function DY(t){if(typeof t=="string"||SY(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var yf=DY,TY=QD,CY=ag,MY=Yr,PY=ig,OY=og,AY=yf;function EY(t,e,r){e=TY(e,t);for(var n=-1,a=e.length,i=!1;++n<a;){var o=AY(e[n]);if(!(i=t!=null&&r(t,o)))break;t=t[o]}return i||++n!=a?i:(a=t==null?0:t.length,!!a&&OY(a)&&PY(o,a)&&(MY(t)||CY(t)))}var ZD=EY,IY=tN,LY=ZD;function xY(t,e){return t!=null&&LY(t,e,IY)}var JD=xY,$Y=mn,kY=Br,RY="[object Date]";function FY(t){return kY(t)&&$Y(t)==RY}var NY=FY;
vendor: 4,574 bytes, line 45
45function YY(t){return function(e){return t(e)}}var eT=YY,mu={},BY={get exports(){return mu},set exports(t){mu=t}};(function(t,e){var r=VD,n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();t.exports=s})(BY,mu);var HY=NY,UY=eT,M1=mu,P1=M1&&M1.isDate,zY=P1?UY(P1):HY,WY=zY,VY=mn,GY=Yr,jY=Br,qY="[object String]";function KY(t){return typeof t=="string"||!GY(t)&&jY(t)&&VY(t)==qY}var on=KY;function QY(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var tT=QY,XY=pf;function ZY(){this.__data__=new XY,this.size=0}var JY=ZY;function eB(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var tB=eB;function rB(t){return this.__data__.get(t)}var nB=rB;function aB(t){return this.__data__.has(t)}var iB=aB,oB=pf,sB=tg,uB=rg,lB=200;function cB(t,e){var r=this.__data__;if(r instanceof oB){var n=r.__data__;if(!sB||n.length<lB-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new uB(n)}return r.set(t,e),this.size=r.size,this}var fB=cB,hB=pf,vB=JY,dB=tB,pB=nB,gB=iB,yB=fB;function us(t){var e=this.__data__=new hB(t);this.size=e.size}us.prototype.clear=vB;us.prototype.delete=dB;us.prototype.get=pB;us.prototype.has=gB;us.prototype.set=yB;var sg=us,mB="__lodash_hash_undefined__";function _B(t){return this.__data__.set(t,mB),this}var wB=_B;function bB(t){return this.__data__.has(t)}var SB=bB,DB=rg,TB=wB,CB=SB;function Mc(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new DB;++e<r;)this.add(t[e])}Mc.prototype.add=Mc.prototype.push=TB;Mc.prototype.has=CB;var MB=Mc;function PB(t,e){return t.has(e)}var OB=PB,AB=MB,EB=tT,IB=OB,LB=1,xB=2;function $B(t,e,r,n,a,i){var o=r&LB,s=t.length,u=e.length;if(s!=u&&!(o&&u>s))return!1;var l=i.get(t),c=i.get(e);if(l&&c)return l==e&&c==t;var f=-1,v=!0,h=r&xB?new AB:void 0;for(i.set(t,e),i.set(e,t);++f<s;){var d=t[f],y=e[f];if(n)var g=o?n(y,d,f,e,t,i):n(d,y,f,t,e,i);if(g!==void 0){if(g)continue;v=!1;break}if(h){if(!EB(e,function(p,m){if(!IB(h,m)&&(d===p||a(d,p,r,n,i)))return h.push(m)})){v=!1;break}}else if(!(d===y||a(d,y,r,n,i))){v=!1;break}}return i.delete(t),i.delete(e),v}var rT=$B,kB=yn,RB=kB.Uint8Array,nT=RB;function FB(t){var e=-1,r=Array(t.size);return t.forEach(function(n,a){r[++e]=[a,n]}),r}var NB=FB;function YB(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var BB=YB,O1=hf,A1=nT,HB=is,UB=rT,zB=NB,WB=BB,VB=1,GB=2,jB="[object Boolean]",qB="[object Date]",KB="[object Error]",QB="[object Map]",XB="[object Number]",ZB="[object RegExp]",JB="[object Set]",eH="[object String]",tH="[object Symbol]",rH="[object ArrayBuffer]",nH="[object DataView]",E1=O1?O1.prototype:void 0,Kh=E1?E1.valueOf:void 0;function aH(t,e,r,n,a,i,o){switch(r){case nH:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case rH:return!(t.byteLength!=e.byteLength||!i(new A1(t),new A1(e)));case jB:case qB:case XB:return HB(+t,+e);case KB:return t.name==e.name&&t.message==e.message;case ZB:case eH:return t==e+"";case QB:var s=zB;case JB:var u=n&VB;if(s||(s=WB),t.size!=e.size&&!u)return!1;var l=o.get(t);if(l)return l==e;n|=GB,o.set(t,e);var c=UB(s(t),s(e),n,a,i,o);return o.delete(t),c;case tH:if(Kh)return Kh.call(t)==Kh.call(e)}return!1}var iH=aH;function oH(t,e){for(var r=-1,n=e.length,a=t.length;++r<n;)t[a+r]=e[r];return t}var sH=oH,uH=sH,lH=Yr;function cH(t,e,r){var n=e(t);return lH(t)?n:uH(n,r(t))}var fH=cH;function hH(t,e){for(var r=-1,n=t==null?0:t.length,a=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[a++]=o)}return i}var vH=hH;function dH(){return[]}var pH=dH,gH=vH,yH=pH,mH=Object.prototype,_H=mH.propertyIsEnumerable,I1=Object.getOwnPropertySymbols,wH=I1?function(t){return t==null?[]:(t=Object(t),gH(I1(t),function(e){return _H.call(t,e)}))}:yH,bH=wH;function SH(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var DH=SH,jo={},TH={get exports(){return jo},set exports(t){jo=t}};function CH(){return!1}var MH=CH;(function(t,e){var r=yn,n=MH,a=e&&!e.nodeType&&e,i=a&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===a,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;t.exports=l})(TH,jo);var PH=mn,OH=og,AH=Br,EH="[object Arguments]",IH="[object Array]",LH="[object Boolean]",xH="[object Date]",$H="[object Error]",kH="[object Function]",RH="[object Map]",FH="[object Number]",NH="[object Object]",YH="[object RegExp]",BH="[object Set]",HH="[object String]",UH="[object WeakMap]",zH="[object ArrayBuffer]",WH="[object DataView]",VH="[object Float32Array]",GH="[object Float64Array
45]",jH="[object Int8Array]",qH="[object Int16Array]",KH="[object Int32Array]",QH="[object Uint8Array]",XH="[object Uint8ClampedArray]",ZH="[object Uint16Array]",JH="[object Uint32Array]",qe={};qe[VH]=qe[GH]=qe[jH]=qe[qH]=qe[KH]=qe[QH]=qe[XH]=qe[ZH]=qe[JH]=!0;qe[EH]=qe[IH]=qe[zH]=qe[LH]=qe[WH]=qe[xH]=qe[$H]=qe[kH]=qe[RH]=qe[FH]=qe[NH]=qe[YH]=qe[BH]=qe[HH]=qe[UH]=!1;function e8(t){return AH(t)&&OH(t.length)&&!!qe[PH(t)]}var t8=e8,r8=t8,n8=eT,L1=mu,x1=L1&&L1.isTypedArray,a8=x1?n8(x1):r8,ug=a8,i8=DH,o8=ag,s8=Yr,u8=jo,l8=ig,c8=ug,f8=Object.prototype,h8=f8.hasOwnProperty;function v8(t,e){var r=s8(t),n=!r&&o8(t),a=!r&&!n&&u8(t),i=!r&&!n&&!a&&c8(t),o=r||n||a||i,s=o?i8(t.length,String):[],u=s.length;for(var l in t)(e||h8.call(t,l))&&!(o&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||l8(l,u)))&&s.push(l);return s}var aT=v8,d8=Object.prototype;function p8(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||d8;return t===r}var lg=p8;function g8(t,e){return function(r){return t(e(r))}}var iT=g8,y8=iT,m8=y8(Object.keys,Object),_8=m8,w8=lg,b8=_8,S8=Object.prototype,D8=S8.hasOwnProperty;function T8(t){if(!w8(t))return b8(t);var e=[];for(var r in Object(t))D8.call(t,r)&&r!="constructor"&&e.push(r);return e}var C8=T8,M8=xi,P8=og;function O8(t){return t!=null&&P8(t.length)&&!M8(t)}var Nu=O8,A8=aT,E8=C8,I8=Nu;function L8(t){return I8(t)?A8(t):E8(t)}var cg=L8,x8=fH,$8=bH,k8=cg;function R8(t){return x8(t,k8,$8)}var F8=R8,$1=F8,N8=1,Y8=Object.prototype,B8=Y8.hasOwnProperty;function H8(t,e,r,n,a,i){var o=r&N8,s=$1(t),u=s.length,l=$1(e),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var v=s[f];if(!(o?v in e:B8.call(e,v)))return!1}var h=i.get(t),d=i.get(e);if(h&&d)return h==e&&d==t;var y=!0;i.set(t,e),i.set(e,t);for(var g=o;++f<u;){v=s[f];var p=t[v],m=e[v];if(n)var _=o?n(m,p,v,e,t,i):n(p,m,v,t,e,i);if(!(_===void 0?p===m||a(p,m,r,n,i):_)){y=!1;break}g||(g=v=="constructor")}if(y&&!g){var w=t.constructor,b=e.constructor;w!=b&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof b=="function"&&b instanceof b)&&(y=!1)}return i.delete(t),i.delete(e),y}var U8=H8,z8=$i,W8=yn,V8=z8(W8,"DataView"),G8=V8,j8=$i,q8=yn,K8=j8(q8,"Promise"),Q8=K8,X8=$i,Z8=yn,J8=X8(Z8,"Set"),e6=J8,t6=$i,r6=yn,n6=t6(r6,"WeakMap"),a6=n6,Id=G8,Ld=tg,xd=Q8,$d=e6,kd=a6,oT=mn,ls=jD,k1="[object Map]",i6="[object Object]",R1="[object Promise]",F1="[object Set]",N1="[object WeakMap]",Y1="[object DataView]",o6=ls(Id),s6=ls(Ld),u6=ls(xd),l6=ls($d),c6=ls(kd),ei=oT;(Id&&ei(new Id(new ArrayBuffer(1)))!=Y1||Ld&&ei(new Ld)!=k1||xd&&ei(xd.resolve())!=R1||$d&&ei(new $d)!=F1||kd&&ei(new kd)!=N1)&&(ei=function(t){var e=oT(t),r=e==i6?t.constructor:void 0,n=r?ls(r):"";if(n)switch(n){case o6:return Y1;case s6:return k1;case u6:return R1;case l6:return F1;case c6:return N1}return e});var f6=ei,Qh=sg,h6=rT,v6=iH,d6=U8,B1=f6,H1=Yr,U1=jo,p6=ug,g6=1,z1="[object Arguments]",W1="[object Array]",Cl="[object Object]",y6=Object.prototype,V1=y6.hasOwnProperty;function m6(t,e,r,n,a,i){var o=H1(t),s=H1(e),u=o?W1:B1(t),l=s?W1:B1(e);u=u==z1?Cl:u,l=l==z1?Cl:l;var c=u==Cl,f=l==Cl,v=u==l;if(v&&U1(t)){if(!U1(e))return!1;o=!0,c=!1}if(v&&!c)return i||(i=new Qh),o||p6(t)?h6(t,e,r,n,a,i):v6(t,e,u,r,n,a,i);if(!(r&g6)){var h=c&&V1.call(t,"__wrapped__"),d=f&&V1.call(e,"__wrapped__");
vendor: 4,384 bytes, line 45
45if(h||d){var y=h?t.value():t,g=d?e.value():e;return i||(i=new Qh),a(y,g,r,n,i)}}return v?(i||(i=new Qh),d6(t,e,r,n,a,i)):!1}var _6=m6,w6=_6,G1=Br;function sT(t,e,r,n,a){return t===e?!0:t==null||e==null||!G1(t)&&!G1(e)?t!==t&&e!==e:w6(t,e,r,n,sT,a)}var uT=sT,b6=sg,S6=uT,D6=1,T6=2;function C6(t,e,r,n){var a=r.length,i=a,o=!n;if(t==null)return!i;for(t=Object(t);a--;){var s=r[a];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<i;){s=r[a];var u=s[0],l=t[u],c=s[1];if(o&&s[2]){if(l===void 0&&!(u in t))return!1}else{var f=new b6;if(n)var v=n(l,c,u,t,e,f);if(!(v===void 0?S6(c,l,D6|T6,n,f):v))return!1}}return!0}var M6=C6,P6=Hn;function O6(t){return t===t&&!P6(t)}var lT=O6,A6=lT,E6=cg;function I6(t){for(var e=E6(t),r=e.length;r--;){var n=e[r],a=t[n];e[r]=[n,a,A6(a)]}return e}var L6=I6;function x6(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}var cT=x6,$6=M6,k6=L6,R6=cT;function F6(t){var e=k6(t);return e.length==1&&e[0][2]?R6(e[0][0],e[0][1]):function(r){return r===t||$6(r,t,e)}}var N6=F6,Y6=QD,B6=yf;function H6(t,e){e=Y6(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[B6(e[r++])];return r&&r==n?t:void 0}var fT=H6,U6=fT;function z6(t,e,r){var n=t==null?void 0:U6(t,e);return n===void 0?r:n}var si=z6;function W6(t,e){return t!=null&&e in Object(t)}var V6=W6,G6=V6,j6=ZD;function q6(t,e){return t!=null&&j6(t,e,G6)}var K6=q6,Q6=uT,X6=si,Z6=K6,J6=eg,eU=lT,tU=cT,rU=yf,nU=1,aU=2;function iU(t,e){return J6(t)&&eU(e)?tU(rU(t),e):function(r){var n=X6(r,t);return n===void 0&&n===e?Z6(r,t):Q6(e,n,nU|aU)}}var oU=iU;function sU(t){return t}var fg=sU;function uU(t){return function(e){return e==null?void 0:e[t]}}var lU=uU,cU=fT;function fU(t){return function(e){return cU(e,t)}}var hU=fU,vU=lU,dU=hU,pU=eg,gU=yf;function yU(t){return pU(t)?vU(gU(t)):dU(t)}var mU=yU,_U=N6,wU=oU,bU=fg,SU=Yr,DU=mU;function TU(t){return typeof t=="function"?t:t==null?bU:typeof t=="object"?SU(t)?wU(t[0],t[1]):_U(t):DU(t)}var hT=TU;function CU(t){return function(e,r,n){for(var a=-1,i=Object(e),o=n(e),s=o.length;s--;){var u=o[t?s:++a];if(r(i[u],u,i)===!1)break}return e}}var MU=CU,PU=MU,OU=PU(),vT=OU,AU=vT,EU=cg;function IU(t,e){return t&&AU(t,e,EU)}var dT=IU,LU=Nu;function xU(t,e){return function(r,n){if(r==null)return r;if(!LU(r))return t(r,n);for(var a=r.length,i=e?a:-1,o=Object(r);(e?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var $U=xU,kU=dT,RU=$U,FU=RU(kU),NU=FU,YU=NU;function BU(t,e){var r;return YU(t,function(n,a,i){return r=e(n,a,i),!r}),!!r}var HU=BU,UU=is,zU=Nu,WU=ig,VU=Hn;function GU(t,e,r){if(!VU(r))return!1;var n=typeof e;return(n=="number"?zU(r)&&WU(e,r.length):n=="string"&&e in r)?UU(r[e],t):!1}var hg=GU,jU=tT,qU=hT,KU=HU,QU=Yr,XU=hg;function ZU(t,e,r){var n=QU(t)?jU:KU;return r&&XU(t,e,r)&&(e=void 0),n(t,qU(e))}var JU=ZU,ez=mn,tz=Br,rz="[object Boolean]";function nz(t){return t===!0||t===!1||tz(t)&&ez(t)==rz}var az=nz,iz=mn,oz=Br,sz="[object Number]";function uz(t){return typeof t=="number"||oz(t)&&iz(t)==sz}var Rr=uz,lz=$i,cz=function(){try{var t=lz(Object,"defineProperty");return t({},"",{}),t}catch{}}(),pT=cz,j1=pT;function fz(t,e,r){e=="__proto__"&&j1?j1(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var mf=fz,hz=mf,vz=is,dz=Object.prototype,pz=dz.hasOwnProperty;function gz(t,e,r){var n=t[e];(!(pz.call(t,e)&&vz(n,r))||r===void 0&&!(e in t))&&hz(t,e,r)}var yz=gz,mz=mf,_z=dT,wz=hT;function bz(t,e){var r={};return e=wz(e),_z(t,function(n,a,i){mz(r,a,e(n,a,i))}),r}var Sz=bz;function Dz(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var gT=Dz,Tz=gT,q1=Math.max;function Cz(t,e,r){return e=q1(e===void 0?t.length-1:e,0),function(){for(var n=arguments,a=-1,i=q1(n.length-e,0),o=Array(i);++a<i;)o[a]=n[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=n[a];return s[e]=r(o),Tz(t,this,s)}}var Mz=Cz;function Pz(t){return function(){return t}}var Oz=Pz,Az=Oz,K1=pT,Ez=fg,Iz=K1?function(t,e){return K1(t,"toString",{configurable:!0,enumerable:!1,value:Az(e),writable:!0})}:Ez,Lz=Iz,xz=800,$z=16,kz=Date.now;function Rz(t){var e=0,r=0;return function(){var n=kz(),a=$z-(n-r);if(r=n,a>0){if(++e>=xz)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Fz=Rz,Nz=Lz,Yz=Fz,Bz=Yz(Nz),Hz=Bz,Uz=fg,zz=Mz,Wz=Hz;function Vz(t,e){return Wz(zz(t,e,Uz),t+"")}var vg=Vz;function Gz(t){var e=[];
45if(t!=null)for(var r in Object(t))e.push(r);return e}var jz=Gz,qz=Hn,Kz=lg,Qz=jz,Xz=Object.prototype,Zz=Xz.hasOwnProperty;function Jz(t){if(!qz(t))return Qz(t);var e=Kz(t),r=[];for(var n in t)n=="constructor"&&(e||!Zz.call(t,n))||r.push(n);return r}var e9=Jz,t9=aT,r9=e9,n9=Nu;function a9(t){return n9(t)?t9(t,!0):r9(t)}var dg=a9,i9=vg,o9=is,s9=hg,u9=dg,yT=Object.prototype,l9=yT.hasOwnProperty,c9=i9(function(t,e){t=Object(t);var r=-1,n=e.length,a=n>2?e[2]:void 0;for(a&&s9(e[0],e[1],a)&&(n=1);++r<n;)for(var i=e[r],o=u9(i),s=-1,u=o.length;++s<u;){var l=o[s],c=t[l];(c===void 0||o9(c,yT[l])&&!l9.call(t,l))&&(t[l]=i[l])}return t}),Q1=c9,f9=mf,h9=is;function v9(t,e,r){(r!==void 0&&!h9(t[e],r)||r===void 0&&!(e in t))&&f9(t,e,r)}var mT=v9,Pc={},d9={get exports(){return Pc},set exports(t){Pc=t}};(function(t,e){var r=yn,n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,v=s?s(f):new l.constructor(f);return l.copy(v),v}t.exports=u})(d9,Pc);var X1=nT;function p9(t){var e=new t.constructor(t.byteLength);return new X1(e).set(new X1(t)),e}var g9=p9,y9=g9;function m9(t,e){var r=e?y9(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var _9=m9;function w9(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var b9=w9,S9=Hn,Z1=Object.create,D9=function(){function t(){}return function(e){if(!S9(e))return{};if(Z1)return Z1(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),T9=D9,C9=iT,M9=C9(Object.getPrototypeOf,Object),_T=M9,P9=T9,O9=_T,A9=lg;function E9(t){return typeof t.constructor=="function"&&!A9(t)?P9(O9(t)):{}}var I9=E9,L9=Nu,x9=Br;function $9(t){return x9(t)&&L9(t)}var k9=$9,R9=mn,F9=_T,N9=Br,Y9="[object Object]",B9=Function.prototype,H9=Object.prototype,wT=B9.toString,U9=H9.hasOwnProperty,z9=wT.call(Object);function W9(t){if(!N9(t)||R9(t)!=Y9)return!1;var e=F9(t);if(e===null)return!0;var r=U9.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&wT.call(r)==z9}var V9=W9;function G9(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var bT=G9,j9=yz,q9=mf;function K9(t,e,r,n){var a=!r;r||(r={});for(var i=-1,o=e.length;++i<o;){var s=e[i],u=n?n(r[s],t[s],s,r,t):void 0;u===void 0&&(u=t[s]),a?q9(r,s,u):j9(r,s,u)}return r}var Q9=K9,X9=Q9,Z9=dg;function J9(t){return X9(t,Z9(t))}var eW=J9,J1=mT,tW=Pc,rW=_9,nW=b9,aW=I9,e_=ag,t_=Yr,iW=k9,oW=jo,sW=xi,uW=Hn,lW=V9,cW=ug,r_=bT,fW=eW;function hW(t,e,r,n,a,i,o){var s=r_(t,r),u=r_(e,r),l=o.get(u);if(l){J1(t,r,l);return}var c=i?i(s,u,r+"",t,e,o):void 0,f=c===void 0;if(f){var v=t_(u),h=!v&&oW(u),d=!v&&!h&&cW(u);c=u,v||h||d?t_(s)?c=s:iW(s)?c=nW(s):h?(f=!1,c=tW(u,!0)):d?(f=!1,c=rW(u,!0)):c=[]:lW(u)||e_(u)?(c=s,e_(s)?c=fW(s):(!uW(s)||sW(s))&&(c=aW(u))):f=!1}f&&(o.set(u,c),a(c,u,n,i,o),o.delete(u)),J1(t,r,c)}var vW=hW,dW=sg,pW=mT,gW=vT,yW=vW,mW=Hn,_W=dg,wW=bT;function ST(t,e,r,n,a){t!==e&&gW(e,function(i,o){if(a||(a=new dW),mW(i))yW(t,e,o,r,ST,n,a);else{var s=n?n(wW(t,o),i,o+"",t,e,a):void 0;s===void 0&&(s=i),pW(t,o,s)}},_W)}var DT=ST,bW=DT,n_=Hn;function TT(t,e,r,n,a,i){return n_(t)&&n_(e)&&(i.set(e,t),bW(t,e,void 0,TT,i),i.delete(e)),t}var SW=TT,DW=vg,TW=hg;function CW(t){return DW(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,o&&TW(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++n<a;){var s=r[n];s&&t(e,s,n,i)}return e})}var MW=CW,PW=DT,OW=MW,AW=OW(function(t,e,r,n){PW(t,e,r,n)}),EW=AW,IW=gT,LW=vg,xW=SW,$W=EW,kW=LW(function(t){return t.push(void 0,xW),IW($W,void 0,t)}),_u=kW;function RW(t){return t&&t.length?t[0]:void 0}var CT=RW;function FW(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var vo=FW;const NW=t=>Object.prototype.toString.call(t).slice(8,-1),So=t=>WY(t)&&!isNaN(t.getTime()),Rn=t=>NW(t)==="Object",MT=JD,a_=(t,e)=>JU(e,r=>JD(t,r)),Ne=(t,e,r="0")=>{for(t=t!=null?String(t):"",e=e||2;t.length<e;)t=`${r}${t}`;return t},br=t=>Array.isArray(t),xn=t=>br(t)&&t.length>0,Oc=t=>t==null?null:document&&on(t)?document.querySelector(t):t.$el??t,ra=(t,e,r,n=void 0)=>{t.removeEventListener(e,r,n)},na=(t,e,r,n=void 0)=>
45(t.addEventListener(e,r,n),()=>ra(t,e,r,n)),Kl=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),Ml=(t,e)=>{(t.key===" "||t.key==="Enter")&&(e(t),t.preventDefault())},PT=(t,...e)=>{const r={};let n;for(n in t)e.includes(n)||(r[n]=t[n]);return r},OT=(t,e)=>{const r={};return e.forEach(n=>{n in t&&(r[n]=t[n])}),r};function YW(t,e,r){return Math.min(Math.max(t,e),r)}var Ac={},BW={get exports(){return Ac},set exports(t){Ac=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var a=Number(n);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}t.exports=e.default})(BW,Ac);const HW=WD(Ac);var Ec={},UW={get exports(){return Ec},set exports(t){Ec=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(n){var a=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return a.setUTCFullYear(n.getFullYear()),n.getTime()-a.getTime()}t.exports=e.default})(UW,Ec);const i_=WD(Ec);function zW(t,e){var r=jW(e);return r.formatToParts?VW(r,t):GW(r,t)}var WW={year:0,month:1,day:2,hour:3,minute:4,second:5};function VW(t,e){try{for(var r=t.formatToParts(e),n=[],a=0;a<r.length;a++){var i=WW[r[a].type];i>=0&&(n[i]=parseInt(r[a].value,10))}return n}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function GW(t,e){var r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var Xh={};function jW(t){if(!Xh[t]){var e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=e==="06/25/2014, 00:00:00"||e==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";Xh[t]=r?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Xh[t]}function AT(t,e,r,n,a,i,o){var s=new Date(0);return s.setUTCFullYear(t,e,r),s.setUTCHours(n,a,i,o),s}var o_=36e5,qW=6e4,Zh={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function KW(t,e,r){var n,a;if(!t||(n=Zh.timezoneZ.exec(t),n))return 0;var i;if(n=Zh.timezoneHH.exec(t),n)return i=parseInt(n[1],10),s_(i)?-(i*o_):NaN;if(n=Zh.timezoneHHMM.exec(t),n){i=parseInt(n[1],10);var o=parseInt(n[2],10);return s_(i,o)?(a=Math.abs(i)*o_+o*qW,i>0?-a:a):NaN}if(ZW(t)){e=new Date(e||Date.now());var s=QW(e),u=Rd(s,t),l=XW(e,u,t);return-l}return NaN}function QW(t){return AT(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function Rd(t,e){var r=zW(t,e),n=AT(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),a=t.getTime(),i=a%1e3;return a-=i>=0?i:1e3+i,n-a}function XW(t,e,r){var n=t.getTime(),a=n-e,i=Rd(new Date(a),r);if(e===i)return e;a-=i-e;var o=Rd(new Date(a),r);return i===o?i:Math.max(i,o)}function s_(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var u_={};function ZW(t){if(u_[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),u_[t]=!0,!0}catch{return!1}}var JW=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const eV=JW;var Jh=36e5,l_=6e4,tV=2,kt={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:eV};function rV(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);var r=e||{},n=r.additionalDigits==null?tV:HW(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var a=nV(t),i=aV(a.date,n),o=i.year,s=i.restDateString,u=iV(s,o);if(isNaN(u))return new Date(NaN);if(u){var l=u.getTime(),c=0,f;if(a.time&&(c=oV(a.time),isNaN(c)))return new Date(NaN);if(a.timeZone||r.timeZone){if(f=KW(a.timeZone||r.timeZone,new Date(l+c)),isNaN(f))return new Date(NaN)}else f=i_(new Date(l+c)),f=i_(new Date(l+c+f));return new Date(l+c+f)}else return new Date(NaN)}function nV(t){var e={},r=kt.dateTimePattern.exec(t),n;if(r?(e.date=r[1],n=r[3]):(r=kt.datePattern.exec(t),r?(e.date=r[1],n=r[2]):(e.date=null,n=t)),n){var a=kt.timeZone.exec(n);a?(e.time=n.replace(a[1],""),e.timeZone=a[1].trim()):e.time=n}return e}function aV(t,e){var r=kt.YYY[e],n=kt.YYYYY[e],a;if(a=kt.YYYY.exec(t)||n.exec(t),a){var i=a[1];return{year:parseInt(i,10),restDateString:t.slice(i.length)}}if(a=kt.YY.exec(t)||r.exec(t),a){var o=a[1];return{year:parseInt(o,10)*100,restDateString:t.slice(o.length)}}return{year:null}}function iV(t,e){if(e===null)return null;var r,n,a,i;if(t.length===0)return n=new Date(0),n.setUTCFullYear(e),n;if(r=kt.MM.exec(t),r)return n=new Date(0),a=parseInt(r[1],10)-1,f_(e,a)?(n.setUTCFullYear(e,a),n):new Date(NaN);if(r=kt.DDD.exec(t),r){n=new Date(0);var o=parseInt(r[1],10);return lV(e,o)?(n.setUTCFullYear(e,0,o),n):new Date(NaN)}if(r=kt.MMDD.exec(t),r){n=new Date(0),a=parseInt(r[1],10)-1;var s=parseInt(r[2],10);return f_(e,a,s)?(n.setUTCFullYear(e,a,s),n):new Date(NaN)}if(r=kt.Www.exec(t),r)return i=parseInt(r[1],10)-1,h_(e,i)?c_(e,i):new Date(NaN);if(r=kt.WwwD.exec(t),r){i=parseInt(r[1],10)-1;var u=parseInt(r[2],10)-1;return h_(e,i,u)?c_(e,i,u):new Date(NaN)}return null}function oV(t){var e,r,n;if(e=kt.HH.exec(t),e)return r=parseFloat(e[1].replace(",",".")),ev(r)?r%24*Jh:NaN;if(e=kt.HHMM.exec(t),e)return r=parseInt(e[1],10),n=parseFloat(e[2].replace(",",".")),ev(r,n)?r%24*Jh+n*l_:NaN;if(e=kt.HHMMSS.exec(t),e){r=parseInt(e[1],10),n=parseInt(e[2],10);var a=parseFloat(e[3].replace(",","."));return ev(r,n,a)?r%24*Jh+n*l_+a*1e3:NaN}return null}function c_(t,e,r){e=e||0,r=r||0;var n=new Date(0);n.setUTCFullYear(t,0,4);var a=n.getUTCDay()||7,i=e*7+r+1-a;return n.setUTCDate(n.getUTCDate()+i),n}var sV=[31,28,31,30,31,30,31,31,30,31,30,31],uV=[31,29,31,30,31,30,31,31,30,31,30,31];function ET(t){return t%400===0||t%4===0&&t%100!==0}function f_(t,e,r){if(e<0||e>11)return!1;if(r!=null){if(r<1)return!1;var n=ET(t);if(n&&r>uV[e]||!n&&r>sV[e])return!1}return!0}function lV(t,e){if(e<1)return!1;var r=ET(t);return!(r&&e>366||!r&&e>365)}function h_(t,e,r){return!(e<0||e>52||r!=null&&(r<0||r>6))}function ev(t,e,r){return!(t!=null&&(t<0||t>=25)||e!=null&&(e<0||e>=60)||r!=null&&(r<0||r>=60))}function Mt(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Ql(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ql=function(r){return typeof r}:Ql=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ql(t)}function Un(t){Mt(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Ql(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.
451 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function cs(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}var cV={};function pg(){return cV}function Oi(t,e){var r,n,a,i,o,s,u,l;Mt(1,arguments);var c=pg(),f=cs((r=(n=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=Un(t),h=v.getDay(),d=(h<f?7:0)+h-f;return v.setDate(v.getDate()-d),v.setHours(0,0,0,0),v}function v_(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var fV=6048e5;function hV(t,e,r){Mt(2,arguments);var n=Oi(t,r),a=Oi(e,r),i=n.getTime()-v_(n),o=a.getTime()-v_(a);return Math.round((i-o)/fV)}function vV(t){Mt(1,arguments);var e=Un(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(0,0,0,0),e}function dV(t){Mt(1,arguments);var e=Un(t);return e.setDate(1),e.setHours(0,0,0,0),e}function pV(t,e){return Mt(1,arguments),hV(vV(t),dV(t),e)+1}function gV(t,e){var r,n,a,i,o,s,u,l;Mt(1,arguments);var c=Un(t),f=c.getFullYear(),v=pg(),h=cs((r=(n=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:v.firstWeekContainsDate)!==null&&n!==void 0?n:(u=v.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setFullYear(f+1,0,h),d.setHours(0,0,0,0);var y=Oi(d,e),g=new Date(0);g.setFullYear(f,0,h),g.setHours(0,0,0,0);var p=Oi(g,e);return c.getTime()>=y.getTime()?f+1:c.getTime()>=p.getTime()?f:f-1}function yV(t,e){var r,n,a,i,o,s,u,l;Mt(1,arguments);var c=pg(),f=cs((r=(n=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),v=gV(t,e),h=new Date(0);h.setFullYear(v,0,f),h.setHours(0,0,0,0);var d=Oi(h,e);return d}var mV=6048e5;function _V(t,e){Mt(1,arguments);var r=Un(t),n=Oi(r,e).getTime()-yV(r,e).getTime();return Math.round(n/mV)+1}function Ic(t){return Mt(1,arguments),Oi(t,{weekStartsOn:1})}function wV(t){Mt(1,arguments);var e=Un(t),r=e.getFullYear(),n=new Date(0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);var a=Ic(n),i=new Date(0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);var o=Ic(i);return e.getTime()>=a.getTime()?r+1:e.getTime()>=o.getTime()?r:r-1}function bV(t){Mt(1,arguments);var e=wV(t),r=new Date(0);r.setFullYear(e,0,4),r.setHours(0,0,0,0);var n=Ic(r);return n}var SV=6048e5;function DV(t){Mt(1,arguments);var e=Un(t),r=Ic(e).getTime()-bV(e).getTime();return Math.round(r/SV)+1}function $t(t,e){Mt(2,arguments);var r=Un(t),n=cs(e);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Lc(t,e){Mt(2,arguments);var r=Un(t),n=cs(e);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var o=i.getDate();return a>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}function d_(t,e){Mt(2,arguments);var r=cs(e);return Lc(t,r*12)}const TV={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function CV({monthComps:t,prevMonthComps:e,nextMonthComps:r},n){const a=[],{firstDayOfWeek:i,firstWeekday:o,isoWeeknumbers:s,weeknumbers:u,numDays:l,numWeeks:c}=t,f=o+(o<i?bt:0)-i;let v=!0,h=!1,d=!1,y=0;const g=new Intl.DateTimeFormat(n.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let p=e.numDays-f+1,m=e.numDays-p+1,_=Math.floor((p-1)/bt+1),w=1,b=e.numWeeks,S=1,O=e.month,T=e.year;const M=new Date,D=M.getDate(),P=M.getMonth()+1,L=M.getFullYear();for(let R=1;R<=y7;R++){for(let I=1,A=i;I<=bt;I++,A+=A===bt?1-bt:1){v&&A===o&&(p=1,m=t.numDays,_=Math.floor((p-1)/bt+1),w=Math.floor((l-p)/bt+1),b=1,S=c,O=t.month,T=t.year,v=!1,h=!0);const x=n.getDateFromParams(T,O,p,0,0,0,0),Y=n.getDateFromParams(T,O,p,12,0,0,0),U=n.getDateFromParams(T,O,p,23,59,59,999),q=x,N=`${Ne(T,4)}-${Ne(O,2)}-${Ne(p,2)}
45`,Q=I,V=bt-I,ne=u[R-1],ee=s[R-1],ue=p===D&&O===P&&T===L,ye=h&&p===1,de=h&&p===l,Me=R===1,_e=R===c,he=I===1,te=I===bt,F=UT(T,O,p);a.push({locale:n,id:N,position:++y,label:p.toString(),ariaLabel:g.format(new Date(T,O-1,p)),day:p,dayFromEnd:m,weekday:A,weekdayPosition:Q,weekdayPositionFromEnd:V,weekdayOrdinal:_,weekdayOrdinalFromEnd:w,week:b,weekFromEnd:S,weekPosition:R,weeknumber:ne,isoWeeknumber:ee,month:O,year:T,date:q,startDate:x,endDate:U,noonDate:Y,dayIndex:F,isToday:ue,isFirstDay:ye,isLastDay:de,isDisabled:!h,isFocusable:!h,isFocused:!1,inMonth:h,inPrevMonth:v,inNextMonth:d,onTop:Me,onBottom:_e,onLeft:he,onRight:te,classes:[`id-${N}`,`day-${p}`,`day-from-end-${m}`,`weekday-${A}`,`weekday-position-${Q}`,`weekday-ordinal-${_}`,`weekday-ordinal-from-end-${w}`,`week-${b}`,`week-from-end-${S}`,{"is-today":ue,"is-first-day":ye,"is-last-day":de,"in-month":h,"in-prev-month":v,"in-next-month":d,"on-top":Me,"on-bottom":_e,"on-left":he,"on-right":te}]}),h&&de?(h=!1,d=!0,p=1,m=l,_=1,w=Math.floor((l-p)/bt+1),b=1,S=r.numWeeks,O=r.month,T=r.year):(p++,m--,_=Math.floor((p-1)/bt+1),w=Math.floor((l-p)/bt+1))}b++,S--}return a}function MV(t,e,r,n){const a=t.reduce((i,o,s)=>{const u=Math.floor(s/7);let l=i[u];return l||(l={id:`week-${u+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDis
45play:e?o.weeknumber:r?o.isoWeeknumber:void 0,days:[]},i[u]=l),l.days.push(o),i},Array(t.length/bt));return a.forEach(i=>{const o=i.days[0],s=i.days[i.days.length-1];o.month===s.month?i.title=`${n.formatDate(o.date,"MMMM YYYY")}`:o.year===s.year?i.title=`${n.formatDate(o.date,"MMM")} - ${n.formatDate(s.date,"MMM YYYY")}`:i.title=`${n.formatDate(o.date,"MMM YYYY")} - ${n.formatDate(s.date,"MMM YYYY")}`}),a}function PV(t,e){return t.days.map(r=>({label:e.formatDate(r.date,e.masks.weekdays),weekday:r.weekday}))}function OV(t,e){return`${e}.${Ne(t,2)}`}function IT(t,e,r){return OT(r.getDateParts(r.toDate(t)),TV[e])}function LT({day:t,week:e,month:r,year:n},a,i,o){if(i==="daily"&&t){const s=new Date(n,r-1,t),u=$t(s,a);return{day:u.getDate(),month:u.getMonth()+1,year:u.getFullYear()}}else if(i==="weekly"&&e){const u=o.getMonthParts(r,n).firstDayOfMonth,l=$t(u,(e-1+a)*7),c=o.getDateParts(l);return{week:c.week,month:c.month,year:c.year}}else{const s=new Date(n,r-1,1),u=Lc(s,a);return{month:u.getMonth()+1,year:u.getFullYear()}}}function sn(t){return t!=null&&t.month!=null&&t.year!=null}function Fd(t,e){return!sn(t)||!sn(e)?!1:(t=t,e=e,t.year!==e.year?t.year<e.year:t.month&&e.month&&t.month!==e.month?t.month<e.month:t.week&&e.week&&t.week!==e.week?t.week<e.week:t.day&&e.day&&t.day!==e.day?t.day<e.day:!1)}function xc(t,e){return!sn(t)||!sn(e)?!1:(t=t,e=e,t.year!==e.year?t.year>e.year:t.month&&e.month&&t.month!==e.month?t.month>e.month:t.week&&e.week&&t.week!==e.week?t.week>e.week:t.day&&e.day&&t.day!==e.day?t.day>e.day:!1)}function AV(t,e,r){return(t||!1)&&!Fd(t,e)&&!xc(t,r)}function EV(t,e){return!t&&e||t&&!e?!1:!t&&!e?!0:(t=t,e=e,t.year===e.year&&t.month===e.month&&t.week===e.week&&t.day===e.day)}function IV(t,e,r,n){if(!sn(t)||!sn(e))return[];const a=[];for(;!xc(t,e);)a.push(t),t=LT(t,1,r,n);return a}function xT(t){const{day:e,week:r,month:n,year:a}=t;let i=`${a}-${Ne(n,2)}`;return r&&(i=`${i}-w${r}`),e&&(i=`${i}-${Ne(e,2)}`),i}function LV(t,e){const{month:r,year:n,showWeeknumbers:a,showIsoWeeknumbers:i}=t,o=new Date(n,r-1,15),s=e.getMonthParts(r,n),u=e.getPrevMonthParts(r,n),l=e.getNextMonthParts(r,n),c=CV({monthComps:s,prevMonthComps:u,nextMonthComps:l},e),f=MV(c,a,i,e),v=PV(f[0],e);return{id:xT(t),month:r,year:n,monthTitle:e.formatDate(o,e.masks.title),shortMonthLabel:e.formatDate(o,"MMM"),monthLabel:e.formatDate(o,"MMMM"),shortYearLabel:n.toString().substring(2),yearLabel:n.toString(),monthComps:s,prevMonthComps:u,nextMonthComps:l,days:c,weeks:f,weekdays:v}}function xV(t,e){const{day:r,week:n,view:a,trimWeeks:i}=t,o={...e,...t,title:"",viewDays:[],viewWeeks:[]};switch(a){case"daily":{let s=o.days.find(l=>l.inMonth);r?s=o.days.find(l=>l.day===r&&l.inMonth)||s:n&&(s=o.days.find(l=>l.week===n&&l.inMonth));const u=o.weeks[s.week-1];o.viewWeeks=[u],o.viewDays=[s],o.week=s.week,o.weekTitle=u.title,o.day=s.day,o.dayTitle=s.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=n||1;const s=o.weeks[o.week-1];o.viewWeeks=[s],o.viewDays=s.days,o.weekTitle=s.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,i?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class p_{constructor(e,r,n){ae(this,"keys",[]),ae(this,"store",{}),this.size=e,this.createKey=r,this.createItem=n}get(...e){const r=this.createKey(...e);return this.store[r]}getOrSet(...e){const r=this.createKey(...e);if(this.store[r])return this.store[r];const n=this.createItem(...e);if(this.keys.length>=this.size){const a=this.keys.shift();a!=null&&delete this.store[a]}return this.keys.push(r),this.store[r]=n,n}}class Do{constructor(e,r=new $c){ae(this,"order"),ae(this,"locale"),ae(this,"start",null),ae(this,"end",null),ae(this,"repeat",null);var n;this.locale=r;const{start:a,end:i,span:o,order:s,repeat:u}=e;So(a)&&(this.start=r.getDateParts(a)),So(i)?this.end=r.getDateParts(i):this.start!=null&&o&&(this.end=r.getDateParts($t(this.start.date,o-1))),this.order=s??0,u&&(this.repeat=new kc({from:(n=this.start)==null?void 0:n.date,...u},{locale:this.locale}))}static fromMany(e,r){return(br(e)?e:[e]).filter(n=>n).map(n=>Do.from(n,r))}static from(e,r){if(e instanceof Do)return e;const n={start:null,end:null};
45return e!=null&&(br(e)?(n.start=e[0]??null,n.end=e[1]??null):Rn(e)?Object.assign(n,e):(n.start=e,n.end=e)),n.start!=null&&(n.start=new Date(n.start)),n.end!=null&&(n.end=new Date(n.end)),new Do(n,r)}get opts(){const{order:e,locale:r}=this;return{order:e,locale:r}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:e,end:r}=this;return e&&r&&e.year===r.year&&e.month===r.month&&e.day===r.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(e){var r,n;return((r=this.start)==null?void 0:r.dayIndex)===e.dayIndex||!!((n=this.repeat)!=null&&n.passes(e))}intersectsDay(e){return this.intersectsDayRange(e,e)}intersectsRange(e){var r,n;return this.intersectsDayRange(((r=e.start)==null?void 0:r.dayIndex)??-1/0,((n=e.end)==null?void 0:n.dayIndex)??1/0)}intersectsDayRange(e,r){return!(this.start&&this.start.dayIndex>r||this.end&&this.end.dayIndex<e)}}class $V{constructor(){ae(this,"records",{})}render(e,r,n){var a,i,o,s;let u=null;const l=n[0].dayIndex,c=n[n.length-1].dayIndex;
45return r.hasRepeat?n.forEach(f=>{var v,h;if(r.startsOnDay(f)){const d=r.daySpan<1/0?r.daySpan:1;u={startDay:f.dayIndex,startTime:((v=r.start)==null?void 0:v.time)??0,endDay:f.dayIndex+d-1,endTime:((h=r.end)==null?void 0:h.time)??Xl},this.getRangeRecords(e).push(u)}}):r.intersectsDayRange(l,c)&&(u={startDay:((a=r.start)==null?void 0:a.dayIndex)??-1/0,startTime:((i=r.start)==null?void 0:i.time)??-1/0,endDay:((o=r.end)==null?void 0:o.dayIndex)??1/0,endTime:((s=r.end)==null?void 0:s.time)??1/0},this.getRangeRecords(e).push(u)),u}getRangeRecords(e){let r=this.records[e.key];return r||(r={ranges:[],data:e},this.records[e.key]=r),r.ranges}getCell(e,r){return this.getCells(r).find(i=>i.data.key===e)}cellExists(e,r){const n=this.records[e];return n==null?!1:n.ranges.some(a=>a.startDay<=r&&a.endDay>=r)}getCells(e){const r=Object.values(this.records),n=[],{dayIndex:a}=e;return r.forEach(({data:i,ranges:o})=>{o.filter(s=>s.startDay<=a&&s.endDay>=a).forEach(s=>{const u=a===s.startDay,l=a===s.endDay,c=u?s.startTime:0,f=new Date(e.startDate.getTime()+c),v=l?s.endTime:Xl,h=new Date(e.endDate.getTime()+v),d=c===0&&v===Xl,y=i.order||0;n.push({...s,data:i,onStart:u,onEnd:l,startTime:c,startDate:f,endTime:v,endDate:h,allDay:d,order:y})})}),n.sort((i,o)=>i.order-o.order),n}}const Fn={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"}
45,pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};Fn.en=Fn["en-US"];Fn.es=Fn["es-ES"];Fn.no=Fn.nb;Fn.zh=Fn["zh-CN"];const kV=Object.entries(Fn).reduce((t,[e,{dow:r,L:n}])=>(t[e]={id:e,firstDayOfWeek:r,masks:{L:n}},t),{}),RV="MMMM YYYY",FV="W",NV="MMM",YV="h A",BV=["L","YYYY-MM-DD","YYYY/MM/DD"],HV=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],UV=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],zV=["h:mm A"],WV=["HH:mm"],VV="WWW, MMM D, YYYY",GV=["L","YYYY-MM-DD","YYYY/MM/DD"],jV="iso",qV="YYYY-MM-DDTHH:mm:ss.SSSZ",KV={title:RV,weekdays:FV,navMonths:NV,hours:YV,input:BV,inputDateTime:HV,inputDateTime24hr:UV,inputTime:zV,inputTime24hr:WV,dayPopover:VV,data:GV,model:jV,iso:qV},QV=300,XV=60,ZV=80,JV={maxSwipeTime:QV,minHorizontalSwipeDistance:XV,maxVerticalSwipeDistance:ZV},e7={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:JV,masks:KV,locales:kV,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},Nd=Qo(e7),t7=$(()=>Sz(Nd.locales,t=>(t.masks=_u(t.masks,Nd.masks),t))),Sa=t=>typeof window<"u"&&MT(window.__vcalendar__,t)?si(window.__vcalendar__,t):si(Nd,t),r7=12,n7=5;function a7(t,e){const r=new Intl.DateTimeFormat().resolvedOptions().locale;let n;on(t)?n=t:MT(t,"id")&&(n=t.id),n=(n||r).toLowerCase();const a=Object.keys(e),i=u=>a.find(l=>l.toLowerCase()===u);n=i(n)||i(n.substring(0,2))||r;const o={...e["en-IE"],...e[n],id:n,monthCacheSize:r7,pageCacheSize:n7};return Rn(t)?_u(t,o):o}class $c{constructor(e=void 0,r){ae(this,"id"),ae(this,"daysInWeek"),ae(this,"firstDayOfWeek"),ae(this,"masks"),ae(this,"timezone"),ae(this,"hourLabels"),ae(this,"dayNames"),ae(this,"dayNamesShort"),ae(this,"dayNamesShorter"),ae(this,"dayNamesNarrow"),ae(this,"monthNames"),ae(this,"monthNamesShort"),ae(this,"relativeTimeNames"),ae(this,"amPm",["am","pm"]),ae(this,"monthCache"),ae(this,"pageCache");const{id:n,firstDayOfWeek:a,masks:i,monthCacheSize:o,pageCacheSize:s}=a7(e,t7.value);this.monthCache=new p_(o,M7,P7),this.pageCache=new p_(s,xT,LV),this.id=n,this.daysInWeek=bt,this.firstDayOfWeek=YW(a,1,bt),this.masks=i,this.timezone=r||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=tv("long",this.id),this.dayNamesShort=tv("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(u=>u.substring(0,2)),this.dayNamesNarrow=tv("narrow",this.id),this.monthNames=b_("long",this.id),this.monthNamesShort=b_("short",this.id),this.relativeTimeNames=E7(this.id)}formatDate(e,r){return k7(e,r,this)}parseDate(e,r){return S_(e,r,this)}toDate(e,r={}){const n=new Date(NaN);let a=n;const{fillDate:i,mask:o,patch:s,rules:u}=r;if(Rr(e)?(r.type="number",a=new Date(+e)):on(e)?(r.type="string",a=e?S_(e,o||"iso",this):n):So(e)?(r.type="date",a=new Date(e.getTime())):gg(e)&&(r.type="object",a=this.getDateFromParts(e)),a&&(s||u)){let l=this.getDateParts(a);if(s&&i!=null){const c=this.getDateParts(this.toDate(i));l=this.getDateParts(this.toDate({...c,...OT(l,g7[s])}))}u&&(l=$7(l,u)),a=this.getDateFromParts(l)}return a||n}toDateOrNull(e,r={}){const n=this.toDate(e,r);return isNaN(n.getTime())?null:n}fromDate(e,{type:r,mask:n}={}){switch(r){case"number":return e?e.getTime():NaN;case"string":return e?this.formatDate(e,n||"iso"):"";case"object":return e?this.getDateParts(e):null;default:return e?new Date(e):null}}range(e){return Do.from(e,this)}ranges(e){return Do.fromMany(e,this)}getDateParts(e){return C7(e,this)}getDateFromParts(e){return WT(e,this.timezone)}getDateFromParams(e,r,n,a,i,o,s){return this.getDateFromParts({year:e,month:r,day:n,hours:a,minutes:i,seconds:o,milliseconds:s})}getPage(e){const r=this.pageCache.getOrSet(e,this);return xV(e,r)}getMonthParts(e,r){const{firstDayOfWeek:n}=this;return this.monthCache.getOrSet(e,r,n)}getThisMonthParts(){const e=new Date;return this.getMonthParts(e.getMonth()+1,e.getFullYear())}getPrevMonthParts(e,r){return e===1?this.getMonthParts(12,r-1):this.getMonthParts(e-1,r)}getNextMonthParts(e,r){return e===12?this.getMonthParts(1,r+1):this.getMonthParts(e+1,r)}getHourLabels(){return A7().map(e=>this.formatDate(e,this.masks.hours))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var oo=(t=>(t.Any="any",t.All="all",t))(oo||{}),$T=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))($T||{}),kT=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(kT||{}),RT=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(RT||{});class i7{constructor(e,r,n){ae(this,"validated",!0),this.type=e,this.interval=r,this.from=n,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(e){if(!this.validated)return!0;const{date:r}=e;switch(this.type){case"days":return yg(this.from.date,r)%this.interval===0;case"weeks":return D7(this.from.date,r)%this.interval===0;case"months":return T7(this.from.date,r)%this.interval===0;case"years":return zT(this.from.date,r)%this.interval===0;default:return!1}}}class fs{constructor(e,r,n,a){ae(this,"components",[]),this.type=e,this.validator=n,this.getter=a,this.components=this.normalizeComponents(r)}static create(e,r){switch(e){case"days":return new o7(r);case"weekdays":return new s7(r);case"weeks":return new u7(r);case"months":return new l7(r);case"years":return new c7(r)}}normalizeComponents(e){if(this.validator(e))return[e];if(!br(e))return[];const r=[];return e.forEach(n=>{if(!this.validator(n)){console.error(`Component value ${n}
45 in invalid for "${this.type}" rule. This rule will be skipped.`);return}r.push(n)}),r}passes(e){return this.getter(e).some(a=>this.components.includes(a))}}class o7 extends fs{constructor(e){super("days",e,v7,({day:r,dayFromEnd:n})=>[r,-n])}}class s7 extends fs{constructor(e){super("weekdays",e,Yd,({weekday:r})=>[r])}}class u7 extends fs{constructor(e){super("weeks",e,d7,({week:r,weekFromEnd:n})=>[r,-n])}}class l7 extends fs{constructor(e){super("months",e,p7,({month:r})=>[r])}}class c7 extends fs{constructor(e){super("years",e,Rr,({year:r})=>[r])}}class f7{constructor(e,r){ae(this,"components"),this.type=e,this.components=this.normalizeComponents(r)}normalizeArrayConfig(e){const r=[];return e.forEach((n,a)=>{if(Rr(n)){if(a===0)return;if(!g_(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Yd(n)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}r.push([e[0],n])}else br(n)&&r.push(...this.normalizeArrayConfig(n))}),r}normalizeComponents(e){const r=[];return e.forEach((n,a)=>
45{if(Rr(n)){if(a===0)return;if(!g_(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Yd(n)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}r.push([e[0],n])}else br(n)&&r.push(...this.normalizeArrayConfig(n))}),r}passes(e){const{weekday:r,weekdayOrdinal:n,weekdayOrdinalFromEnd:a}=e;return this.components.some(([i,o])=>(i===n||i===-a)&&r===o)}}class h7{constructor(e){ae(this,"type","function"),ae(this,"validated",!0),this.fn=e,xi(e)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(e){return this.validated?this.fn(e):!0}}class kc{constructor(e,r={},n){ae(this,"validated",!0),ae(this,"config"),ae(this,"type",oo.Any),ae(this,"from"),ae(this,"until"),ae(this,"rules",[]),ae(this,"locale",new $c),this.parent=n,r.locale&&(this.locale=r.locale),this.config=e,xi(e)?(this.type=oo.All,this.rules=[new h7(e)]):br(e)?(this.type=oo.Any,this.rules=e.map(a=>new kc(a,r,this))):Rn(e)?(this.type=oo.All,this.from=e.from?this.locale.getDateParts(e.from):n==null?void 0:n.from,this.until=e.until?this.locale.getDateParts(e.until):n==null?void 0:n.until,this.rules=this.getObjectRules(e)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(e){const r=[];if(e.every&&(on(e.every)&&(e.every=[1,`${e.every}s`]),br(e.every))){const[n=1,a=$T.Days]=e.every;r.push(new i7(a,n,this.from))}return Object.values(kT).forEach(n=>{n in e&&r.push(fs.create(n,e[n]))}),Object.values(RT).forEach(n=>{n in e&&r.push(new f7(n,e[n]))}),e.on!=null&&(br(e.on)||(e.on=[e.on]),r.push(new kc(e.on,{locale:this.locale},this.parent))),r}passes(e){return this.validated?this.from&&e.dayIndex<=this.from.dayIndex||this.until&&e.dayIndex>=this.until.dayIndex?!1:this.type===oo.Any?this.rules.some(r=>r.passes(e)):this.rules.every(r=>r.passes(e)):!0}}function v7(t){return Rr(t)?t>=1&&t<=31:!1}function Yd(t){return Rr(t)?t>=1&&t<=7:!1}function d7(t){return Rr(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function p7(t){return Rr(t)?t>=1&&t<=12:!1}function g_(t){return!(!Rr(t)||t<-5||t>5||t===0)}const g7={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},bt=7,y7=6,FT=1e3,NT=FT*60,YT=NT*60,Xl=YT*24,m7=[31,28,31,30,31,30,31,31,30,31,30,31],_7=["L","iso"],Rs={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},BT=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,w7=/\[([^]*?)\]/gm,y_={D(t){return t.day},DD(t){return Ne(t.day,2)},d(t){return t.weekday-1},dd(t){return Ne(t.weekday-1,2)},W(t,e){return e.dayNamesNarrow[t.weekday-1]},WW(t,e){return e.dayNamesShorter[t.weekday-1]},WWW(t,e){return e.dayNamesShort[t.weekday-1]},WWWW(t,e){return e.dayNames[t.weekday-1]},M(t){return t.month},MM(t){return Ne(t.month,2)},MMM(t,e){return e.monthNamesShort[t.month-1]},MMMM(t,e){return e.monthNames[t.month-1]},YY(t){return String(t.year).substr(2)},YYYY(t){return Ne(t.year,4)},h(t){return t.hours%12||12},hh(t){return Ne(t.hours%12||12,2)},H(t){return t.hours},HH(t){return Ne(t.hours,2)},m(t){return t.minutes},mm(t){return Ne(t.minutes,2)},s(t){return t.seconds},ss(t){return Ne(t.seconds,2)},S(t){return Math.round(t.milliseconds/100)},SS(t){return Ne(Math.round(t.milliseconds/10),2)},SSS(t){return Ne(t.milliseconds,3)},a(t,e){return t.hours<12?e.amPm[0]:e.amPm[1]},A(t,e){return t.hours<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${Ne(Math.floor(Math.abs(e)/60),2)}`},ZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${Ne(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)}`},ZZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${Ne(Math.floor(Math.abs(e)/60),2)}:${Ne(Math.abs(e)%60,2)}`}},Xn=/\d\d?/,b7=/\d{3}/,S7=/\d{4}/,Ps=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,m_=()=>{},__=t=>(e,r,n)=>{const a=n[t].indexOf(r.charAt(0).toUpperCase()+r.substr(1).toLowerCase());~a&&(e.month=a)},Ue={D:[Xn,(t,e)=>{t.day=e}],Do:[new RegExp(Xn.source+Ps.source),(t,e)=>{t.day=parseInt(e,10)}],d:[Xn,m_],W:[Ps,m_],M:[Xn,(t,e)=>{t.month=e-1}],MMM:[Ps,__("monthNamesShort")],MMMM:[Ps,__("monthNames")],YY:[Xn,(t,e)=>{const n=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?n-1:n}${e}`}],YYYY:[S7,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[b7,(t,e)=>{t.milliseconds=e}],h:[Xn,(t,e)=>{t.hours=e}],m:[Xn,(t,e)=>{t.minutes=e}],s:[Xn,(t,e)=>{t.seconds=e}],a:[Ps,(t,e,r)=>{const n=e.toLowerCase();n===r.amPm[0]?t.isPm=!1:n===r.amPm[1]&&(t.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(t,e)=>{e==="Z"&&(e="+00:00");const r=`${e}`.match(/([+-]|\d\d)/gi);if(r){const n=+r[1]*60+parseInt(r[2],10);
45t.timezoneOffset=r[0]==="+"?n:-n}}]};Ue.DD=Ue.D;Ue.dd=Ue.d;Ue.WWWW=Ue.WWW=Ue.WW=Ue.W;Ue.MM=Ue.M;Ue.mm=Ue.m;Ue.hh=Ue.H=Ue.HH=Ue.h;Ue.ss=Ue.s;Ue.A=Ue.a;Ue.ZZZZ=Ue.ZZZ=Ue.ZZ=Ue.Z;function HT(t,e){return(xn(t)&&t||[on(t)&&t||"YYYY-MM-DD"]).map(r=>_7.reduce((n,a)=>n.replace(a,e.masks[a]||""),r))}function gg(t){return Rn(t)&&"year"in t&&"month"in t&&"day"in t}function w_(t,e=1){const r=t.getDay()+1,n=r>=e?e-r:-(7-(e-r));return $t(t,n)}function UT(t,e,r){const n=Date.UTC(t,e-1,r);return yg(new Date(0),new Date(n))}function yg(t,e){return Math.round((e.getTime()-t.getTime())/Xl)}function D7(t,e){return Math.ceil(yg(w_(t),w_(e))/7)}function zT(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function T7(t,e){return zT(t,e)*12+(e.getMonth()-t.getMonth())}function WT(t,e=""){const r=new Date,{year:n=r.getFullYear(),month:a=r.getMonth()+1,day:i=r.getDate(),hours:o=0,minutes:s=0,seconds:u=0,milliseconds:l=0}=t;if(e){const c=`${Ne(n,4)}-${Ne(a,2)}-${Ne(i,2)}T${Ne(o,2)}:${Ne(s,2)}:${Ne(u,2)}.${Ne(l,3)}`;return rV(c,{timeZone:e})}return new Date(n,a-1,i,o,s,u,l)}function C7(t,e){let r=new Date(t.getTime());e.timezone&&(r=new Date(t.toLocaleString("en-US",{timeZone:e.timezone})),r.setMilliseconds(t.getMilliseconds()));const n=r.getMilliseconds(),a=r.getSeconds(),i=r.getMinutes(),o=r.getHours(),s=n+a*FT+i*NT+o*YT,u=r.getMonth()+1,l=r.getFullYear(),c=e.getMonthParts(u,l),f=r.getDate(),v=c.numDays-f+1,h=r.getDay()+1,d=Math.floor((f-1)/7+1),y=Math.floor((c.numDays-f)/7+1),g=Math.ceil((f+Math.abs(c.firstWeekday-c.firstDayOfWeek))/7),p=c.numWeeks-g+1,m=c.weeknumbers[g],_=UT(l,u,f);return{milliseconds:n,seconds:a,minutes:i,hours:o,time:s,day:f,dayFromEnd:v,weekday:h,weekdayOrdinal:d,weekdayOrdinalFromEnd:y,week:g,weekFromEnd:p,weeknumber:m,month:u,year:l,date:r,dateTime:r.getTime(),dayIndex:_,timezoneOffset:0,isValid:!0}}function M7(t,e,r){return`${e}-${t}-${r}`}function P7(t,e,r){const n=e%4===0&&e%100!==0||e%400===0,a=new Date(e,t-1,1),i=a.getDay()+1,o=t===2&&n?29:m7[t-1],s=r-1,u=pV(a,{weekStartsOn:s}),l=[],c=[];for(let f=0;f<u;f++){const v=$t(a,f*7);l.push(_V(v,{weekStartsOn:s})),c.push(DV(v))}return{firstDayOfWeek:r,firstDayOfMonth:a,inLeapYear:n,firstWeekday:i,numDays:o,numWeeks:u,month:t,year:e,weeknumbers:l,isoWeeknumbers:c}}function O7(){const t=[];for(let a=0;a<bt;a++)t.push(WT({year:2020,month:1,day:5+a,hours:12}));return t}function tv(t,e=void 0){const r=new Intl.DateTimeFormat(e,{weekday:t});return O7().map(n=>r.format(n))}function A7(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function E7(t=void 0){const e=["second","minute","hour","day","week","month","quarter","year"],r=new Intl.RelativeTimeFormat(t);return e.reduce((n,a)=>{const i=r.formatToParts(100,a);return n[a]=i[1].unit,n},{})}function VT(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function b_(t,e=void 0){const r=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return VT().map(n=>r.format(n))}function I7(t,e,r){return Rr(e)?e===t:br(e)?e.includes(t):xi(e)?e(t,r):!(e.min!=null&&e.min>t||e.max!=null&&e.max<t||e.interval!=null&&t%e.interval!==0)}function Fs(t,e,r){const n=[],[a,i,o]=e;for(let s=a;s<=i;s++)(r==null||I7(s,r,t))&&n.push({value:s,label:Ne(s,o)});return n}function L7(t,e){return{milliseconds:Fs(t,Rs.milliseconds,e.milliseconds),seconds:Fs(t,Rs.seconds,e.seconds),minutes:Fs(t,Rs.minutes,e.minutes),hours:Fs(t,Rs.hours,e.hours)}}function x7(t,e,r,n){const i=Fs(t,e,n).reduce((o,s)=>{if(s.disabled)return o;if(isNaN(o))return s.value;const u=Math.abs(o-r);return Math.abs(s.value-r)<u?s.value:o},NaN);return isNaN(i)?r:i}function $7(t,e){const r={...t};return Object.entries(e).forEach(([n,a])=>{const i=Rs[n],o=t[n];r[n]=x7(t,i,o,a)}),r}function S_(t,e,r){return HT(e,r).map(a=>{if(typeof a!="string")throw new Error("Invalid mask");let i=t;if(i.length>1e3)return!1;let o=!0;const s={};if(a.replace(BT,c=>{if(Ue[c]){const f=Ue[c],v=i.search(f[0]);~v?i.replace(f[0],h=>(f[1](s,h,r),i=i.substr(v+h.length),h)):o=!1}return Ue[c]?"":c.slice(1,c.length-1)}),!o)return!1;const u=new Date;s.hours!=null&&(s.isPm===!0&&+s.hours!=12?s.hours=+s.hours+12:s.isPm===!1&&+s.hours==12&&(s.hours=0));let l;return s.timezoneOffset!=null?(s.minutes=+(s.minutes||0)-+s.timezoneOffset,l=new Date(Date.UTC(s.year||u.getFullYear(),s.month||0,s.day||1,s.hours||0,s.minutes||0,s.seconds||0,s.milliseconds||0))):l=r.getDateFromParts({year:s.year||u.getFullYear(),month:(s.month||0)+1,day:s.day||1,hours:s.hours||0,minutes:s.minutes||0,seconds:s.seconds||0,milliseconds:s.milliseconds||0}),l}).find(a=>a)||new Date(t)}function k7(t,e,r){if(t==null)return"";let n=HT(e,r)[0];/Z$/.test(n)&&(r.timezone="utc");const a=[];
45n=n.replace(w7,(o,s)=>(a.push(s),"??"));const i=r.getDateParts(t);return n=n.replace(BT,o=>o in y_?y_[o](i,r):o.slice(1,o.length-1)),n.replace(/\?\?/g,()=>a.shift())}let R7=0;class GT{constructor(e,r,n){ae(this,"key",""),ae(this,"hashcode",""),ae(this,"highlight",null),ae(this,"content",null),ae(this,"dot",null),ae(this,"bar",null),ae(this,"event",null),ae(this,"popover",null),ae(this,"customData",null),ae(this,"ranges"),ae(this,"hasRanges",!1),ae(this,"order",0),ae(this,"pinPage",!1),ae(this,"maxRepeatSpan",0),ae(this,"locale");const{dates:a}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},e);this.key||(this.key=++R7),this.locale=n,r.normalizeGlyphs(this),this.ranges=n.ranges(a??[]),this.hasRanges=!!xn(this.ranges),this.maxRepeatSpan=this.ranges.filter(i=>i.hasRepeat).map(i=>i.daySpan).reduce((i,o)=>Math.max(i,o),0)}intersectsRange({start:e,end:r}){if(e==null||r==null)return!1;const n=this.ranges.filter(o=>!o.hasRepeat);for(const o of n)if(o.intersectsDayRange(e.dayIndex,r.dayIndex))return!0;const a=this.ranges.filter(o=>o.hasRepeat);if(!a.length)return!1;let i=e;for(this.maxRepeatSpan>1&&(i=this.locale.getDateParts($t(i.date,-this.maxRepeatSpan)));i.dayIndex<=r.dayIndex;){for(const o of a)if(o.startsOnDay(i))return!0;i=this.locale.getDateParts($t(i.date,1))}return!1}}function Bd(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function wu(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function jT(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function qT(t){const{visibility:e}=t,r=e==="click",n=e==="hover",a=e==="hover-focus",i=e==="focus";t.autoHide=!r;let o=!1,s=!1;const u=d=>{r&&(jT({...t,target:t.target||d.currentTarget}),d.stopPropagation())},l=d=>{o||(o=!0,(n||a)&&Bd({...t,target:t.target||d.currentTarget}))},c=()=>{o&&(o=!1,(n||a&&!s)&&wu(t))},f=d=>{s||(s=!0,(i||a)&&Bd({...t,target:t.target||d.currentTarget}))},v=d=>{s&&!Kl(d.currentTarget,d.relatedTarget)&&(s=!1,(i||a&&!o)&&wu(t))},h={};switch(t.visibility){case"click":h.click=u;break;case"hover":h.mousemove=l,h.mouseleave=c;break;case"focus":h.focusin=f,h.focusout=v;break;case"hover-focus":h.mousemove=l,h.mouseleave=c,h.focusin=f,h.focusout=v;break}return h}const D_=t=>{const e=Oc(t);if(e==null)return;const r=e.popoverHandlers;!r||!r.length||(r.forEach(n=>n()),delete e.popoverHandlers)},T_=(t,e)=>{const r=Oc(t);if(r==null)return;const n=[],a=qT(e);Object.entries(a).forEach(([i,o])=>{n.push(na(r,i,o))}),r.popoverHandlers=n},KT={mounted(t,e){const{value:r}=e;r&&T_(t,r)},updated(t,e){const{oldValue:r,value:n}=e,a=r==null?void 0:r.visibility,i=n==null?void 0:n.visibility;a!==i&&(a&&(D_(t),i||wu(r)),i&&T_(t,n))},unmounted(t){D_(t)}},F7=(t,e,{maxSwipeTime:r,minHorizontalSwipeDistance:n,maxVerticalSwipeDistance:a})=>{if(!t||!t.addEventListener||!xi(e))return null;let i=0,o=0,s=null,u=!1;function l(f){const v=f.changedTouches[0];i=v.screenX,o=v.screenY,s=new Date().getTime(),u=!0}function c(f){if(!u||!s)return;u=!1;const v=f.changedTouches[0],h=v.screenX-i,d=v.screenY-o;if(new Date().getTime()-s<r&&Math.abs(h)>=n&&Math.abs(d)<=a){const g={toLeft:!1,toRight:!1};h<0?g.toLeft=!0:g.toRight=!0,e(g)}}return na(t,"touchstart",l,{passive:!0}),na(t,"touchend",c,{passive:!0}),()=>{ra(t,"touchstart",l),ra(t,"touchend",c)}},Zl={},N7=(t,e=10)=>{Zl[t]=Date.now()+e},Y7=(t,e)=>{if(t in Zl){const r=Zl[t];if(Date.now()<r)return;delete Zl[t]}e()};function QT(){return typeof window<"u"}function B7(t){return QT()&&t in window}function H7(t){const e=se(!1),r=$(()=>e.value?"dark":"light");let n,a;function i(h){e.value=h.matches}function o(){B7("matchMedia")&&(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",i),e.value=n.matches)}function s(){const{selector:h=":root",darkClass:d="dark"}=t.value,y=document.querySelector(h);e.value=y.classList.contains(d)}function u(h){const{selector:d=":root",darkClass:y="dark"}=h;if(QT()&&d&&y){const g=document.querySelector(d);g&&(a=new MutationObserver(s),a.observe(g,{attributes:!0,attributeFilter:["class"]}),e.value=g.classList.contains(y))}}function l(){f();const h=typeof t.value;h==="string"&&t.value.toLowerCase()==="system"?o():h==="object"?u(t.value):e.value=!!t.value}const c=Be(()=>t.value,()=>l(),{immediate:!0});
45function f(){n&&(n.removeEventListener("change",i),n=void 0),a&&(a.disconnect(),a=void 0)}function v(){f(),c()}return Xo(()=>v()),{isDark:e,displayMode:r,cleanup:v}}const U7=["base","start","end","startEnd"],z7=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],W7={base:{},start:{},end:{}};function mg(t,e,r=W7){let n=t,a={};e===!0||on(e)?(n=on(e)?e:n,a={...r}):Rn(e)&&(a_(e,U7)?a={...e}:a={base:{...e},start:{...e},end:{...e}});const i=_u(a,{start:a.startEnd,end:a.startEnd},r);return Object.entries(i).forEach(([o,s])=>{let u=n;s===!0||on(s)?(u=on(s)?s:u,i[o]={color:u}):Rn(s)&&(a_(s,z7)?i[o]={...s}:i[o]={}),_u(i[o],{color:u})}),i}class V7{constructor(){ae(this,"type","highlight")}normalizeConfig(e,r){return mg(e,r,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(e){e.highlights=[],e.content||(e.content=[])}render({data:e,onStart:r,onEnd:n},a){const{key:i,highlight:o}=e;if(!o)return;const{highlights:s}=a,{base:u,start:l,end:c}=o;r&&n?s.push({...l,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]}):r?(s.push({...u,key:`${i}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${u.fillMode}`,u.class]}),s.push({...l,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]})):n?(s.push({...u,key:`${i}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${u.fillMode}`,u.class]}),s.push({...c,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-bg-${c.fillMode}`,c.class],contentClass:[`vc-attr vc-highlight-content-${c.fillMode} vc-${c.color}`,c.contentClass]})):s.push({...u,key:`${i}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${u.fillMode}`,u.class],contentClass:[`vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,u.contentClass]})}}class _g{constructor(e,r){ae(this,"type",""),ae(this,"collectionType",""),this.type=e,this.collectionType=r}normalizeConfig(e,r){return mg(e,r)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:r,onEnd:n},a){const{key:i}=e,o=e[this.type];if(!i||!o)return;const s=a[this.collectionType],{base:u,start:l,end:c}=o;r?s.push({...l,key:i,class:[`vc-${this.type} vc-${this.type}-start vc-${l.color} vc-attr`,l.class]}):n?s.push({...c,key:i,class:[`vc-${this.type} vc-${this.type}-end vc-${c.color} vc-attr`,c.class]}):s.push({...u,key:i,class:[`vc-${this.type} vc-${this.type}-base vc-${u.color} vc-attr`,u.class]})}}class G7 extends _g{constructor(){super("content","content")}normalizeConfig(e,r){return mg("base",r)}}class j7 extends _g{constructor(){super("dot","dots")}}class q7 extends _g{constructor(){super("bar","bars")}}class K7{constructor(e){ae(this,"color"),ae(this,"renderers",[new G7,new V7,new j7,new q7]),this.color=e}normalizeGlyphs(e){this.renderers.forEach(r=>{const n=r.type;e[n]!=null&&(e[n]=r.normalizeConfig(this.color,e[n]))})}prepareRender(e={}){return this.renderers.forEach(r=>{r.prepareRender(e)}),e}render(e,r){this.renderers.forEach(n=>{n.render(e,r)})}}const XT=Symbol("__vc_base_context__"),ZT={color:{type:String,default:()=>Sa("color")},isDark:{type:[Boolean,String,Object],default:()=>Sa("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function JT(t){const e=$(()=>t.color??""),r=$(()=>t.isDark??!1),{displayMode:n}=H7(r),a=$(()=>new K7(e.value)),i=$(()=>{if(t.locale instanceof $c)return t.locale;const v=Rn(t.locale)?t.locale:{id:t.locale,firstDayOfWeek:t.firstDayOfWeek,masks:t.masks};return new $c(v,t.timezone)}),o=$(()=>i.value.masks),s=$(()=>t.minDate),u=$(()=>t.maxDate),l=$(()=>{const v=t.disabledDates?[...t.disabledDates]:[];return s.value!=null&&v.push({start:null,end:$t(i.value.toDate(s.value),-1)}),u.value!=null&&v.push({start:$t(i.value.toDate(u.value),1),end:null}),i.value.ranges(v)}),c=$(()=>new GT({key:"disabled",dates:l.value,order:100},a.value,i.value)),f={color:e,isDark:r,displayMode:n,theme:a,locale:i,masks:o,minDate:s,maxDate:u,disabledDates:l,disabledAttribute:c};return Pu(XT,f),f}function Q7(t){return yr(XT,()=>JT(t),!0)}function eC(t){return`__vc_slot_${t}__`}function tC(t,e={}){Object.keys(t).forEach(r=>{Pu(eC(e[r]??r),t[r])})}function rC(t){return yr(eC(t),null)}const X7={...ZT,view:{type:String,default:"monthly",validator(t){return["daily","weekly","monthly"].includes(t)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>Sa("titlePosition")},navVisibility:{type:String,default:()=>Sa("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],exp
45anded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},Z7=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],nC=Symbol("__vc_calendar_context__");function J7(t,{slots:e,emit:r}){const n=se(null),a=se(null),i=se(new Date().getDate()),o=se(!1),s=se(Symbol()),u=se(Symbol()),l=se(t.view),c=se([]),f=se("");let v=null,h=null;tC(e);const{theme:d,color:y,displayMode:g,locale:p,masks:m,minDate:_,maxDate:w,disabledAttribute:b,disabledDates:S}=Q7(t),O=$(()=>t.rows*t.columns),T=$(()=>t.step||O.value),M=$(()=>CT(c.value)??null),D=$(()=>vo(c.value)??null),P=$(()=>t.minPage||(_.value?V(_.value):null)),L=$(()=>t.maxPage||(w.value?V(w.value):null)),R=$(()=>t.navVisibility),I=$(()=>!!t.showWeeknumbers),A=$(()=>!!t.showIsoWeeknumbers),x=$(()=>l.value==="monthly"),Y=$(()=>l.value==="weekly"),U=$(()=>l.value==="daily"),q=()=>{o.value=!0,r("transition-start")},N=()=>{o.value=!1,r("transition-end"),v&&(v.resolve(!0),v=null)},Q=(j,C,W=l.value)=>LT(j,C,W,p.value),V=j=>IT(j,l.value,p.value),ne=j=>{!b.value||!_e.value||(j.isDisabled=_e.value.cellExists(b.value.key,j.dayIndex))},ee=j=>{j.isFocusable=j.inMonth&&j.day===i.value},ue=(j,C)=>{for(const W of j)for(const Z of W.days)if(C(Z)===!1)return},ye=$(()=>c.value.reduce((j,C)=>(j.push(...C.viewDays),j),[])),de=$(()=>{const j=[];return(t.attributes||[]).forEach((C,W)=>{!C||!C.dates||j.push(new GT({...C,order:C.order||0},d.value,p.value))}),b.value&&j.push(b.value),j}),Me=$(()=>xn(de.value)),_e=$(()=>{const j=new $V;return de.value.forEach(C=>{C.ranges.forEach(W=>{j.render(C,W,ye.value)})}),j}),he=$(()=>ye.value.reduce((j,C)=>(j[C.dayIndex]={day:C,cells:[]},j[C.dayIndex].cells.push(..._e.value.getCells(C)),j),{})),te=(j,C)=>{const W=t.showWeeknumbers||t.showIsoWeeknumbers;return W==null?"":az(W)?W?"left":"":W.startsWith("right")?C>1?"right":W:j>1?"left":W},F=()=>{var j,C;if(!Me.value)return null;const W=de.value.find(Ve=>Ve.pinPage)||de.value[0];if(!W||!W.hasRanges)return null;const[Z]=W.ranges,fe=((j=Z.start)==null?void 0:j.date)||((C=Z.end)==null?void 0:C.date);return fe?V(fe):null},K=()=>
45{if(sn(M.value))return M.value;const j=F();return sn(j)?j:V(new Date)},X=(j,C={})=>{const{view:W=l.value,position:Z=1,force:fe}=C,Ve=Z>0?1-Z:-(O.value+Z);let At=Q(j,Ve,W),Kt=Q(At,O.value-1,W);return fe||(Fd(At,P.value)?At=P.value:xc(Kt,L.value)&&(At=Q(L.value,1-O.value)),Kt=Q(At,O.value-1)),{fromPage:At,toPage:Kt}},$e=(j,C,W="")=>{if(W==="none"||W==="fade")return W;if((j==null?void 0:j.view)!==(C==null?void 0:C.view))return"fade";const Z=xc(C,j),fe=Fd(C,j);return!Z&&!fe?"fade":W==="slide-v"?fe?"slide-down":"slide-up":fe?"slide-right":"slide-left"},Ze=(j={})=>new Promise((C,W)=>{const{position:Z=1,force:fe=!1,transition:Ve}=j,At=sn(j.page)?j.page:K(),{fromPage:Kt}=X(At,{position:Z,force:fe}),Ni=[];for(let Yi=0;Yi<O.value;Yi++){const _f=Q(Kt,Yi),Bt=Yi+1,wf=Math.ceil(Bt/t.columns),Yu=t.rows-wf+1,hs=Bt%t.columns||t.columns,vs=t.columns-hs+1,vC=te(hs,vs);Ni.push(p.value.getPage({..._f,view:l.value,titlePosition:t.titlePosition,trimWeeks:t.trimWeeks,position:Bt,row:wf,rowFromEnd:Yu,column:hs,columnFromEnd:vs,showWeeknumbers:I.value,showIsoWeeknumbers:A.value,weeknumberPosition:vC}))}f.value=$e(c.value[0],Ni[0],Ve),c.value=Ni,f.value&&f.value!=="none"?v={resolve:C,reject:W}:C(!0)}),Pt=j=>{const C=M.value??V(new Date);return Q(C,j)},zn=(j,C={})=>{const W=sn(j)?j:V(j);return Object.assign(C,X(W,{...C,force:!0})),IV(C.fromPage,C.toPage,l.value,p.value).map(fe=>AV(fe,P.value,L.value)).some(fe=>fe)},Wn=(j,C={})=>zn(Pt(j),C),Yt=$(()=>Wn(-T.value)),Tr=$(()=>Wn(T.value)),Cr=async(j,C={})=>!C.force&&!zn(j,C)?!1:(C.fromPage&&!EV(C.fromPage,M.value)&&(wu({id:s.value,hideDelay:0}),C.view&&(N7("view",10),l.value=C.view),await Ze({...C,page:C.fromPage,position:1,force:!0}),r("did-move",c.value)),!0),je=(j,C={})=>Cr(Pt(j),C),We=()=>je(-T.value),qt=()=>je(T.value),Ot=j=>{const C=x.value?".in-month":"",W=`.id-${p.value.getDayId(j)}${C}`,Z=`${W}.vc-focusable, ${W} .vc-focusable`,fe=n.value;if(fe){const Ve=fe.querySelector(Z);if(Ve)return Ve.focus(),!0}return!1},Hr=async(j,C={})=>Ot(j)?!0:(await Cr(j,C),Ot(j)),_n=(j,C)=>{i.value=j.day,r("dayclick",j,C)},Ri=(j,C)=>{r("daymouseenter",j,C)},Vn=(j,C)=>{r("daymouseleave",j,C)},Fi=(j,C)=>{i.value=j.day,a.value=j,j.isFocused=!0,r("dayfocusin",j,C)},Oa=(j,C)=>{a.value=null,j.isFocused=!1,r("dayfocusout",j,C)},Aa=(j,C)=>{r("daykeydown",j,C);const W=j.noonDate;let Z=null;switch(C.key){case"ArrowLeft":{Z=$t(W,-1);break}case"ArrowRight":{Z=$t(W,1);break}case"ArrowUp":{Z=$t(W,-7);break}case"ArrowDown":{Z=$t(W,7);break}case"Home":{Z=$t(W,-j.weekdayPosition+1);break}case"End":{Z=$t(W,j.weekdayPositionFromEnd);break}case"PageUp":{C.altKey?Z=d_(W,-1):Z=Lc(W,-1);break}case"PageDown":{C.altKey?Z=d_(W,1):Z=Lc(W,1);break}}Z&&(C.preventDefault(),Hr(Z).catch())},Ea=j=>{const C=a.value;C!=null&&Aa(C,j)},nr=(j,C)=>{r("weeknumberclick",j,C)};Ze({page:t.initialPage,position:t.initialPagePosition}),Da(()=>{!t.disablePageSwipe&&n.value&&(h=F7(n.value,({toLeft:j=!1,toRight:C=!1})=>{j?qt():C&&We()},Sa("touch")))}),Xo(()=>{c.value=[],h&&h()}),Be(()=>p.value,()=>{Ze()}),Be(()=>O.value,()=>Ze()),Be(()=>t.view,()=>l.value=t.view),Be(()=>l.value,()=>{Y7("view",()=>{Ze()}),r("update:view",l.value)}),Be(()=>i.value,()=>{ue(c.value,j=>ee(j))}),Nc(()=>{r("update:pages",c.value),ue(c.value,j=>{ne(j),ee(j)})});const ar={emit:r,containerRef:n,focusedDay:a,inTransition:o,navPopoverId:s,dayPopoverId:u,view:l,pages:c,transitionName:f,theme:d,color:y,displayMode:g,locale:p,masks:m,attributes:de,disabledAttribute:b,disabledDates:S,attributeContext:_e,days:ye,dayCells:he,count:O,step:T,firstPage:M,lastPage:D,canMovePrev:Yt,canMoveNext:Tr,minPage:P,maxPage:L,isMonthly:x,isWeekly:Y,isDaily:U,navVisibility:R,showWeeknumbers:I,showIsoWeeknumbers:A,getDateAddress:V,canMove:zn,canMoveBy:Wn,move:Cr,moveBy:je,movePrev:We,moveNext:qt,onTransitionBeforeEnter:q,onTransitionAfterEnter:N,tryFocusDate:Ot,focusDate:Hr,onKeydown:Ea,onDayKeydown:Aa,onDayClick:_n,onDayMouseenter:Ri,onDayMouseleave:Vn,onDayFocusin:Fi,onDayFocusout:Oa,onWeeknumberClick:nr};return Pu(nC,ar),ar}function ki(){const t=yr(nC);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const eG=ze({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110}
45,boundarySelector:{type:String}},setup(t,{emit:e}){let r;const n=se();let a=null,i=null;const o=Qo({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function s(N){N&&(o.direction=N.split("-")[0])}function u({placement:N,options:Q}){s(N||(Q==null?void 0:Q.placement))}const l=$(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:u},...o.modifiers||[]],onFirstUpdate:u})),c=$(()=>{const N=o.direction==="left"||o.direction==="right";let Q="";if(o.placement){const V=o.placement.split("-");V.length>1&&(Q=V[1])}return["start","top","left"].includes(Q)?N?"top":"left":["end","bottom","right"].includes(Q)?N?"bottom":"right":N?"middle":"center"});function f(){i&&(i.destroy(),i=null)}function v(){En(()=>{const N=Oc(o.target);!N||!n.value||(i&&i.state.elements.reference!==N&&f(),i?i.update():i=K3(N,n.value,l.value))})}function h(N){Object.assign(o,PT(N,"force"))}function d(N,Q){clearTimeout(r),N>0?r=setTimeout(Q,N):Q()}function y(N){return!N||!i?!1:Oc(N)===i.state.elements.reference}async function g(N={}){o.force||(N.force&&(o.force=!0),d(N.showDelay??t.showDelay,()=>{o.isVisible&&(o.force=!1),h({...N,isVisible:!0}),v()}))}function p(N={}){i&&(N.target&&!y(N.target)||o.force||(N.force&&(o.force=!0),d(N.hideDelay??t.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1})))}function m(N={}){N.target!=null&&(o.isVisible&&y(N.target)?p(N):g(N))}function _(N){if(!i)return;const Q=i.state.elements.reference;if(!n.value||!Q)return;const V=N.target;Kl(n.value,V)||Kl(Q,V)||p({force:!0})}function w(N){(N.key==="Esc"||N.key==="Escape")&&p()}function b({detail:N}){!N.id||N.id!==t.id||g(N)}function S({detail:N}){!N.id||N.id!==t.id||p(N)}function O({detail:N}){!N.id||N.id!==t.id||m(N)}function T(){na(document,"keydown",w),na(document,"click",_),na(document,"show-popover",b),na(document,"hide-popover",S),na(document,"toggle-popover",O)}function M(){ra(document,"keydown",w),ra(document,"click",_),ra(document,"show-popover",b),ra(document,"hide-popover",S),ra(document,"toggle-popover",O)}function D(N){e("before-show",N)}function P(N){o.force=!1,e("after-show",N)}function L(N){e("before-hide",N)}function R(N){o.force=!1,f(),e("after-hide",N)}function I(N){N.stopPropagation()}function A(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&g()}function x(){if(o.isHovered=!1,!i)return;const N=i.state.elements.reference;o.autoHide&&!o.isFocused&&(!N||N!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&p()}function Y(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&g()}function U(N){["focus","hover-focus"].includes(o.visibility)&&(!N.relatedTarget||!Kl(n.value,N.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&p())}function q(){a!=null&&(a.disconnect(),a=null)}return Be(()=>n.value,N=>{q(),N&&(a=new ResizeObserver(()=>{i&&i.update()}),a.observe(N))}),Be(()=>o.placement,s,{immediate:!0}),Da(()=>{T()}),Xo(()=>{f(),q(),M()}),{...Fc(o),popoverRef:n,alignment:c,hide:p,setupPopper:v,beforeEnter:D,afterEnter:P,beforeLeave:L,afterLeave:R,onClick:I,onMouseOver:A,onMouseLeave:x,onFocusIn:Y,onFocusOut:U}}}),Pa=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r};function tG(t,e,r,n,a,i){return B(),G("div",{class:be(["vc-popover-content-wrapper",{"is-interactive":t.isInteractive}]),ref:"popoverRef",onClick:e[0]||(e[0]=(...o)=>t.onClick&&t.onClick(...o)),onMouseover:e[1]||(e[1]=(...o)=>t.onMouseOver&&t.onMouseOver(...o)),onMouseleave:e[2]||(e[2]=(...o)=>t.onMouseLeave&&t.onMouseLeave(...o)),onFocusin:e[3]||(e[3]=(...o)=>t.onFocusIn&&t.onFocusIn(...o)),onFocusout:e[4]||(e[4]=(...o)=>t.onFocusOut&&t.onFocusOut(...o))},[ge(Ud,{name:`vc-${t.transition}`,appear:"",onBeforeEnter:t.beforeEnter,onAfterEnter:t.afterEnter,onBeforeLeave:t.beforeLeave,onAfterLeave:t.afterLeave},{default:nt(()=>[t.isVisible?(B(),G("div",Ta({key:0,tabindex:"-1",class:`vc-popover-content direction-${t.direction}`},t.$attrs),[Mu(t.$slots,"default",{direction:t.direction,alignment:t.alignment,data:t.data,hide:t.hide},()=>
45[pa(ce(t.data),1)]),H("span",{class:be(["vc-popover-caret",`direction-${t.direction}`,`align-${t.alignment}`])},null,2)],16)):Se("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const wg=Pa(eG,[["render",tG]]),rG={class:"vc-day-popover-row"},nG={key:0,class:"vc-day-popover-row-indicator"},aG={class:"vc-day-popover-row-label"},iG=ze({__name:"PopoverRow",props:{attribute:null},setup(t){const e=t,r=$(()=>{const{content:n,highlight:a,dot:i,bar:o,popover:s}=e.attribute;return s&&s.hideIndicator?null:n?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${n.base.color}`}:a?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${a.base.color}`}:i?{class:`vc-dot vc-attr vc-${i.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(n,a)=>(B(),G("div",rG,[k(r)?(B(),G("div",nG,[H("span",{class:be(k(r).class)},null,2)])):Se("",!0),H("div",aG,[Mu(n.$slots,"default",{},()=>[pa(ce(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])]))}}),oG={inheritAttrs:!1},gr=ze({...oG,__name:"CalendarSlot",props:{name:null},setup(t){const r=rC(t.name);return(n,a)=>k(r)?(B(),me(Q_(k(r)),Ns(Ta({key:0},n.$attrs)),null,16)):Mu(n.$slots,"default",{key:1})}}),sG={class:"vc-day-popover-container"},uG={key:0,class:"vc-day-popover-header"},lG=ze({__name:"CalendarDayPopover",setup(t){const{dayPopoverId:e,displayMode:r,color:n,masks:a,locale:i}=ki();function o(u,l){return i.value.formatDate(u,l)}function s(u){return i.value.formatDate(u.date,a.value.dayPopover)}return(u,l)=>(B(),me(wg,{id:k(e),class:be([`vc-${k(n)}`,`vc-${k(r)}`])},{default:nt(({data:{day:c,attributes:f},hide:v})=>[ge(gr,{name:"day-popover",day:c,"day-title":s(c),attributes:f,format:o,masks:k(a),hide:v},{default:nt(()=>[H("div",sG,[k(a).dayPopover?(B(),G("div",uG,ce(s(c)),1)):Se("",!0),(B(!0),G(Ce,null,at(f,h=>(B(),me(iG,{key:h.key,attribute:h},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),cG={},fG={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},hG=H("polyline",{points:"9 18 15 12 9 6"},null,-1),vG=[hG];function dG(t,e){return B(),G("svg",fG,vG)}const pG=Pa(cG,[["render",dG]]),gG={},yG={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},mG=H("polyline",{points:"15 18 9 12 15 6"},null,-1),_G=[mG];function wG(t,e){return B(),G("svg",yG,_G)}const bG=Pa(gG,[["render",wG]]),SG={},DG={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},TG=H("polyline",{points:"6 9 12 15 18 9"},null,-1),CG=[TG];function MG(t,e){return B(),G("svg",DG,CG)}const PG=Pa(SG,[["render",MG]]),OG={},AG={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},EG=H("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),IG=[EG];function LG(t,e){return B(),G("svg",AG,IG)}const xG=Pa(OG,[["render",LG]]),$G=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:PG,IconChevronLeft:bG,IconChevronRight:pG,IconClock:xG},Symbol.toStringTag,{value:"Module"})),qo=ze({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(t){const e=t,r=$(()=>e.width||e.size),n=$(()=>e.height||e.size),a=$(()=>$G[`Icon${e.name}`]);return(i,o)=>(B(),me(Q_(k(a)),{width:k(r),height:k(n),class:"vc-base-icon"},null,8,["width","height"]))}}),kG=["disabled"],RG={key:1,class:"vc-title-wrapper"},FG={type:"button",class:"vc-title"},NG=["disabled"],aC=ze({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(t){const e=t,{navPopoverId:r,navVisibility:n,canMovePrev:a,movePrev:i,canMoveNext:o,moveNext:s}=ki(),u=$(()=>{switch(e.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),l=$(()=>{const{page:y}=e;return{id:r.value,visibility:n.value,placement:u.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:y},isInteractive:!0}}),c=$(()=>e.page.titlePosition.includes("left")),f=$(()=>e.page.titlePosition.includes("right")),v=$(()=>e.layout?e.layout:c.value?"tu-pn":f.value?"pn-tu":"p-tu-n;"),h=$(()=>({prev:v.value.includes("p")&&!e.hideArrows,title:v.value.includes("t")&&!e.hideTitle,next:v.value.includes("n")&&!e.hideArrows})),d=$(()=>({gridTemplateColumns:v.value.split("").map(g=>{switch(g){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(y,g)=>(B(),G("div",{class:be(["vc-header",{"is-lg":t.isLg,"is-xl":t.isXl,"is-2xl":t.is2xl}]),style:In(k(d))}
45,[k(h).prev?(B(),G("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!k(a),onClick:g[0]||(g[0]=(...p)=>k(i)&&k(i)(...p)),onKeydown:g[1]||(g[1]=Cg((...p)=>k(i)&&k(i)(...p),["space","enter"]))},[ge(gr,{name:"header-prev-button",disabled:!k(a)},{default:nt(()=>[ge(qo,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,kG)):Se("",!0),k(h).title?(B(),G("div",RG,[ge(gr,{name:"header-title-wrapper"},{default:nt(()=>[zd((B(),G("button",FG,[ge(gr,{name:"header-title",title:t.page.title},{default:nt(()=>[H("span",null,ce(t.page.title),1)]),_:1},8,["title"])])),[[k(KT),k(l)]])]),_:1})])):Se("",!0),k(h).next?(B(),G("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!k(o),onClick:g[2]||(g[2]=(...p)=>k(s)&&k(s)(...p)),onKeydown:g[3]||(g[3]=Cg((...p)=>k(s)&&k(s)(...p),["space","enter"]))},[ge(gr,{name:"header-next-button",disabled:!k(o)},{default:nt(()=>[ge(qo,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,NG)):Se("",!0)],6))}}),iC=Symbol("__vc_page_context__");function YG(t){const{locale:e,getDateAddress:r,canMove:n}=ki();function a(s,u){const{month:l,year:c}=r(new Date);return VT().map((f,v)=>{const h=v+1;return{month:h,year:s,id:OV(h,s),label:e.value.formatDate(f,u),ariaLabel:e.value.formatDate(f,"MMMM"),isActive:h===t.value.month&&s===t.value.year,isCurrent:h===l&&s===c,isDisabled:!n({month:h,year:s},{position:t.value.position})}})}function i(s,u){const{year:l}=r(new Date),{position:c}=t.value,f=[];for(let v=s;v<=u;v+=1){const h=[...Array(12).keys()].some(d=>n({month:d+1,year:v},{position:c}));f.push({year:v,id:v.toString(),label:v.toString(),ariaLabel:v.toString(),isActive:v===t.value.year,isCurrent:v===l,isDisabled:!h})}return f}const o={page:t,getMonthItems:a,getYearItems:i};return Pu(iC,o),o}function oC(){const t=yr(iC);if(t)return t;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const BG={class:"vc-nav-header"},HG=["disabled"],UG=["disabled"],zG={class:"vc-nav-items"},WG=["data-id","aria-label","disabled","onClick","onKeydown"],VG=ze({__name:"CalendarNav",setup(t){const{masks:e,move:r}=ki(),{page:n,getMonthItems:a,getYearItems:i}=oC(),o=se(!0),s=12,u=se(n.value.year),l=se(v(n.value.year)),c=se(null);function f(){setTimeout(()=>{if(c.value==null)return;const V=c.value.querySelector(".vc-nav-item:not(:disabled)");V&&V.focus()},10)}function v(V){return Math.floor(V/s)}function h(){o.value=!o.value}function d(V){return V*s}function y(V){return s*(V+1)-1}function g(){Y.value&&(o.value&&m(),w())}function p(){U.value&&(o.value&&_(),b())}function m(){u.value--}function _(){u.value++}function w(){l.value--}function b(){l.value++}const S=$(()=>a(u.value,e.value.navMonths).map(V=>({...V,click:()=>r({month:V.month,year:V.year},{position:n.value.position})}))),O=$(()=>a(u.value-1,e.value.navMonths)),T=$(()=>O.value.some(V=>!V.isDisabled)),M=$(()=>a(u.value+1,e.value.navMonths)),D=$(()=>M.value.some(V=>!V.isDisabled)),P=$(()=>i(d(l.value),y(l.value)).map(V=>({...V,click:()=>{u.value=V.year,o.value=!0,f()}}))),L=$(()=>i(d(l.value-1),y(l.value-1))),R=$(()=>L.value.some(V=>!V.isDisabled)),I=$(()=>i(d(l.value+1),y(l.value+1))),A=$(()=>I.value.some(V=>!V.isDisabled)),x=$(()=>o.value?S.value:P.value),Y=$(()=>o.value?T.value:R.value),U=$(()=>o.value?D.value:A.value),q=$(()=>CT(P.value.map(V=>V.year))),N=$(()=>vo(P.value.map(V=>V.year))),Q=$(()=>o.value?u.value:`${q.value} - ${N.value}`);return Nc(()=>{u.value=n.value.year,f()}),Be(()=>u.value,V=>l.value=v(V)),Da(()=>f()),(V,ne)=>(B(),G("div",{class:"vc-nav-container",ref_key:"navContainer",ref:c},[H("div",BG,[H("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!k(Y),onClick:g,onKeydown:ne[0]||(ne[0]=ee=>k(Ml)(ee,g))},[ge(gr,{name:"nav-prev-button",move:g,disabled:!k(Y)},{default:nt(()=>[ge(qo,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,HG),H("button",{type:"button",class:"vc-nav-title vc-focus",onClick:h,onKeydown:ne[1]||(ne[1]=ee=>k(Ml)(ee,h))},ce(k(Q)),33),H("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!k(U),onClick:p,onKeydown:ne[2]||(ne[2]=ee=>k(Ml)(ee,p))},[ge(gr,{name:"nav-next-button",move:p,disabled:!k(U)},{default:nt(()=>[ge(qo,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,UG)]),H("div",zG,[(B(!0),G(Ce,null,at(k(x),ee=>(B(),G("button",{key:ee.label,type:"button","data-id":ee.id,"aria-label":ee.ariaLabel,class:be(["vc-nav-item vc-focus",[ee.isActive?"is-active":ee.isCurrent?"is-current":""]]),disabled:ee.isDisabled,onClick:ee.click,onKeydown:ue=>k(Ml)(ue,ee.click)},ce(ee.label),43,WG))),128))])],512))}}),sC=ze({__name:"CalendarPageProvider",props:{page:null},setup(t){return YG(Ol(t,"page")),(r,n)=>Mu(r.$slots,"default")}}),GG=ze({__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:r,displayMode:n}=ki();return(a,i)=>(B(),me(wg,{id:k(e),class:be(["vc-nav-popover-container",`vc-${k(r)}`,`vc-${k(n)}`])},{default:nt(({data:o})=>[ge(sC,{page:o.page},{default:nt(()=>[ge(gr,{name:"nav"},{default:nt(()=>[ge(VG)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),jG=ze({directives:{popover:KT},components:{CalendarSlot:gr},props:{day:{type:Object,required:!0}},setup(t){const{locale:e,theme:r,attributeContext:n,dayPopoverId:a,onDayCl
45ick:i,onDayMouseenter:o,onDayMouseleave:s,onDayFocusin:u,onDayFocusout:l,onDayKeydown:c}=ki(),f=$(()=>t.day),v=$(()=>n.value.getCells(f.value)),h=$(()=>v.value.map(A=>A.data)),d=$(()=>({...f.value,attributes:h.value,attributeCells:v.value}));function y({data:A},{popovers:x}){const{key:Y,customData:U,popover:q}=A;if(!q)return;const N=Q1({key:Y,customData:U,attribute:A},{...q},{visibility:q.label?"hover":"click",placement:"bottom",isInteractive:!q.label});x.splice(0,0,N)}const g=$(()=>{const A={...r.value.prepareRender({}),popovers:[]};return v.value.forEach(x=>{r.value.render(x,A),y(x,A)}),A}),p=$(()=>g.value.highlights),m=$(()=>!!xn(p.value)),_=$(()=>g.value.content),w=$(()=>g.value.dots),b=$(()=>!!xn(w.value)),S=$(()=>g.value.bars),O=$(()=>!!xn(S.value)),T=$(()=>g.value.popovers),M=$(()=>T.value.map(A=>A.attribute)),D=rC("day-content"),P=$(()=>["vc-day",...f.value.classes,{"vc-day-box-center-center":!D},{"is-not-in-month":!t.day.inMonth}]),L=$(()=>{let A;f.value.isFocusable?A="0":A="-1";const x=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":f.value.isDisabled},si(vo(p.value),"contentClass"),si(vo(_.value),"class")||""],Y={...si(vo(p.value),"contentStyle"),...si(vo(_.value),"style")};return{class:x,style:Y,tabindex:A,"aria-label":f.value.ariaLabel,"aria-disabled":!!f.value.isDisabled,role:"button"}}),R=$(()=>({click(A){i(d.value,A)},mouseenter(A){o(d.value,A)},mouseleave(A){s(d.value,A)},focusin(A){u(d.value,A)},focusout(A){l(d.value,A)},keydown(A){c(d.value,A)}})),I=$(()=>xn(T.value)?Q1({id:a.value,data:{day:f,attributes:M.value}},...T.value):null);return{attributes:h,attributeCells:v,bars:S,dayClasses:P,dayContentProps:L,dayContentEvents:R,dayPopover:I,glyphs:g,dots:w,hasDots:b,hasBars:O,highlights:p,hasHighlights:m,locale:e,popovers:T}}}),qG={key:0,class:"vc-highlights vc-day-layer"},KG={key:1,class:"vc-day-layer vc-day-box-center-bottom"},QG={class:"vc-dots"},XG={key:2,class:"vc-day-layer vc-day-box-center-bottom"},ZG={class:"vc-bars"};function JG(t,e,r,n,a,i){const o=Mn("CalendarSlot"),s=DC("popover");return B(),G("div",{class:be(t.dayClasses)},[t.hasHighlights?(B(),G("div",qG,[(B(!0),G(Ce,null,at(t.highlights,({key:u,wrapperClass:l,class:c,style:f})=>(B(),G("div",{key:u,class:be(l)},[H("div",{class:be(c),style:In(f)},null,6)],2))),128))])):Se("",!0),ge(o,{name:"day-content",day:t.day,attributes:t.attributes,"attribute-cells":t.attributeCells,dayProps:t.dayContentProps,dayEvents:t.dayContentEvents,locale:t.locale},{default:nt(()=>[zd((B(),G("div",Ta(t.dayContentProps,Wd(t.dayContentEvents,!0)),[pa(ce(t.day.label),1)],16)),[[s,t.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),t.hasDots?(B(),G("div",KG,[H("div",QG,[(B(!0),G(Ce,null,at(t.dots,({key:u,class:l,style:c})=>(B(),G("span",{key:u,class:be(l),style:In(c)},null,6))),128))])])):Se("",!0),t.hasBars?(B(),G("div",XG,[H("div",ZG,[(B(!0),G(Ce,null,at(t.bars,({key:u,class:l,style:c})=>(B(),G("span",{key:u,class:be(l),style:In(c)},null,6))),128))])])):Se("",!0)],2)}const ej=Pa(jG,[["render",JG]]),tj={class:"vc-weekdays"},rj=["onClick"],nj={inheritAttrs:!1},aj=ze({...nj,__name:"CalendarPage",setup(t){const{page:e}=oC(),{onWeeknumberClick:r}=ki();return(n,a)=>(B(),G("div",{class:be(["vc-pane",`row-${k(e).row}`,`row-from-end-${k(e).rowFromEnd}`,`column-${k(e).column}`,`column-from-end-${k(e).columnFromEnd}`]),ref:"pane"},[ge(aC,{page:k(e),"is-lg":"","hide-arrows":""},null,8,["page"]),H("div",{class:be(["vc-weeks",{[`vc-show-weeknumbers-${k(e).weeknumberPosition}`]:k(e).weeknumberPosition}])},[H("div",tj,[(B(!0),G(Ce,null,at(k(e).weekdays,({weekday:i,label:o},s)=>(B(),G("div",{key:s,class:be(`vc-weekday vc-weekday-${i}`)},ce(o),3))),128))]),(B(!0),G(Ce,null,at(k(e).viewWeeks,i=>(B(),G("div",{key:`weeknumber-${i.weeknumber}`,class:"vc-week"},[k(e).weeknumberPosition?(B(),G("div",{key:0,class:be(["vc-weeknumber",`is-${k(e).weeknumberPosition}`])},[H("span",{class:be(["vc-weeknumber-content"]),onClick:o=>k(r)(i,o)}
45,ce(i.weeknumberDisplay),9,rj)],2)):Se("",!0),(B(!0),G(Ce,null,at(i.days,o=>(B(),me(ej,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),ij=ze({components:{CalendarHeader:aC,CalendarPage:aj,CalendarNavPopover:GG,CalendarDayPopover:lG,CalendarPageProvider:sC,CalendarSlot:gr},props:X7,emit:Z7,setup(t,{emit:e,slots:r}){return J7(t,{emit:e,slots:r})}}),oj={class:"vc-pane-header-wrapper"};function sj(t,e,r,n,a,i){const o=Mn("CalendarHeader"),s=Mn("CalendarPage"),u=Mn("CalendarSlot"),l=Mn("CalendarPageProvider"),c=Mn("CalendarDayPopover"),f=Mn("CalendarNavPopover");return B(),G(Ce,null,[H("div",Ta({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},t.$attrs,{class:["vc-container",`vc-${t.view}`,`vc-${t.color}`,`vc-${t.displayMode}`,{"vc-expanded":t.expanded,"vc-bordered":!t.borderless,"vc-transparent":t.transparent}],onMouseup:e[0]||(e[0]=po(()=>{},["prevent"])),ref:"containerRef"}),[H("div",{class:be(["vc-pane-container",{"in-transition":t.inTransition}])},[H("div",oj,[t.firstPage?(B(),me(o,{key:0,page:t.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):Se("",!0)]),ge(Ud,{name:`vc-${t.transitionName}`,onBeforeEnter:t.onTransitionBeforeEnter,onAfterEnter:t.onTransitionAfterEnter},{default:nt(()=>[(B(),G("div",{key:t.pages[0].id,class:"vc-pane-layout",style:In({gridTemplateColumns:`repeat(${t.columns}, 1fr)`})},[(B(!0),G(Ce,null,at(t.pages,v=>(B(),me(l,{key:v.id,page:v},{default:nt(()=>[ge(u,{name:"page",page:v},{default:nt(()=>[ge(s)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),ge(u,{name:"footer"})],2)],16),ge(c),ge(f)],64)}const uj=Pa(ij,[["render",sj]]),uC=Symbol("__vc_date_picker_context__"),lj={...ZT,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>Sa("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>Sa("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},cj=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function fj(t,{emit:e,slots:r}){tC(r,{footer:"dp-footer"});const n=JT(t),{locale:a,masks:i,disabledAttribute:o}=n,s=se(!1),u=se(Symbol()),l=se(null),c=se(null),f=se(["",""]),v=se(null),h=se(null);let d,y,g=!0;const p=$(()=>t.isRange||t.modelModifiers.range===!0),m=$(()=>p.value&&l.value!=null?l.value.start:null),_=$(()=>p.value&&l.value!=null?l.value.end:null),w=$(()=>t.mode.toLowerCase()==="date"),b=$(()=>t.mode.toLowerCase()==="datetime"),S=$(()=>t.mode.toLowerCase()==="time"),O=$(()=>!!c.value),T=$(()=>{let C="date";t.modelModifiers.number&&(C="number"),t.modelModifiers.string&&(C="string");const W=i.value.modelValue||"iso";return ne({type:C,mask:W})}),M=$(()=>Wn(c.value??l.value)),D=$(()=>S.value?t.is24hr?i.value.inputTime24hr:i.value.inputTime:b.value?t.is24hr?i.value.inputDateTime24hr:i.value.inputDateTime:i.value.input),P=$(()=>/[Hh]/g.test(D.value)),L=$(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(D.value)),R=$(()=>{if(P.value&&L.value)return"dateTime";if(L.value)return"date";if(P.value)return"time"}),I=$(()=>{var C;const W=((C=v.value)==null?void 0:C.$el.previousElementSibling)??void 0;return _u({},t.popover,Sa("datePicker.popover"),{target:W})}),A=$(()=>qT({...I.value,id:u.value})),x=$(()=>p.value?{start:f.value[0],end:f.value[1]}:f.value[0]),Y=$(()=>{const C=["start","end"].map(W=>({input:Ze(W),change:Pt(W),keyup:zn,...t.popover&&A.value}));return p.value?{start:C[0],end:C[1]}:C[0]}),U=$(()=>{if(!de(l.value))return null;const C={key:"select-drag",...t.selectAttribute,dates:l.value,pinPage:!0},{dot:W,bar:Z,highlight:fe,content:Ve}=C;return!W&&!Z&&!fe&&!Ve&&(C.highlight=!0),C}),q=$(()=>{if(!p.value||!de(c.value))return null;const C={key:"select-drag",...t.dragAttribute,dates:c.value},{dot:W,bar:Z,highlight:fe,content:Ve}=C;return!W&&!Z&&!fe&&!Ve&&(C.highlight={startEnd:{fillMode:"outline"}}
45),C}),N=$(()=>{const C=br(t.attributes)?[...t.attributes]:[];return q.value?C.unshift(q.value):U.value&&C.unshift(U.value),C}),Q=$(()=>ne(t.rules==="auto"?V():t.rules??{}));function V(){const C={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},W=w.value?0:t.timeAccuracy;return[0,1].map(Z=>{switch(W){case 0:return{hours:C.hr[Z],minutes:C.min[Z],seconds:C.sec[Z],milliseconds:C.ms[Z]};case 1:return{minutes:C.min[Z],seconds:C.sec[Z],milliseconds:C.ms[Z]};case 3:return{milliseconds:C.ms[Z]};case 4:return{};default:return{seconds:C.sec[Z],milliseconds:C.ms[Z]}}})}function ne(C){return br(C)?C.length===1?[C[0],C[0]]:C:[C,C]}function ee(C){return ne(C).map((W,Z)=>({...W,rules:Q.value[Z]}))}function ue(C){return C==null?!1:Rr(C)?!isNaN(C):So(C)?!isNaN(C.getTime()):on(C)?C!=="":gg(C)}function ye(C){return Rn(C)&&"start"in C&&"end"in C&&ue(C.start??null)&&ue(C.end??null)}function de(C){return ye(C)||ue(C)}function Me(C,W){if(C==null&&W==null)return!0;if(C==null||W==null)return!1;const Z=So(C),fe=So(W);return Z&&fe?C.getTime()===W.getTime():Z||fe?!1:Me(C.start,W.start)&&Me(C.end,W.end)}function _e(C){return!de(C)||!o.value?!1:o.value.intersectsRange(a.value.range(C))}function he(C,W,Z,fe){if(!de(C))return null;if(ye(C)){const Ve=a.value.toDate(C.start,{...W[0],fillDate:m.value??void 0,patch:Z}),At=a.value.toDate(C.end,{...W[1],fillDate:_.value??void 0,patch:Z});return Oa({start:Ve,end:At},fe)}return a.value.toDateOrNull(C,{...W[0],fillDate:l.value,patch:Z})}function te(C,W){return ye(C)?{start:a.value.fromDate(C.start,W[0]),end:a.value.fromDate(C.end,W[1])}:p.value?null:a.value.fromDate(C,W[0])}function F(C,W={}){return clearTimeout(d),new Promise(Z=>{const{debounce:fe=0,...Ve}=W;fe>0?d=window.setTimeout(()=>{Z(K(C,Ve))},fe):Z(K(C,Ve))})}function K(C,{config:W=T.value,patch:Z="dateTime",clearIfEqual:fe=!1,formatInput:Ve=!0,hidePopover:At=!1,dragging:Kt=O.value,targetPriority:Ni,moveToValue:Yi=!1}={}){const _f=ee(W);let Bt=he(C,_f,Z,Ni);if(_e(Bt)){if(Kt)return null;Bt=l.value,At=!1}else Bt==null&&t.isRequired?Bt=l.value:Bt!=null&&Me(l.value,Bt)&&fe&&(Bt=null);const Yu=Kt?c:l,hs=!Me(Yu.value,Bt);Yu.value=Bt,Kt||(c.value=null);const vs=te(Bt,T.value);return hs&&(g=!1,e(Kt?"drag":"update:modelValue",vs),En(()=>g=!0)),At&&!Kt&&Vn(),Ve&&X(),Yi&&En(()=>nr(Ni??"start")),vs}function X(){En(()=>{const C=ee({type:"string",mask:D.value}),W=te(c.value??l.value,C);p.value?f.value=[W&&W.start,W&&W.end]:f.value=[W,""]})}function $e(C,W,Z){f.value.splice(W==="start"?0:1,1,C);const fe=p.value?{start:f.value[0],end:f.value[1]||f.value[0]}:C,Ve={type:"string",mask:D.value};F(fe,{...Z,config:Ve,patch:R.value,targetPriority:W,moveToValue:!0})}function Ze(C){return W=>{t.updateOnInput&&$e(W.currentTarget.value,C,{formatInput:!1,hidePopover:!1,debounce:t.inputDebounce})}}function Pt(C){return W=>{$e(W.currentTarget.value,C,{formatInput:!0,hidePopover:!1})}}function zn(C){C.key==="Escape"&&F(l.value,{formatInput:!0,hidePopover:!0})}function Wn(C){return p.value?[C&&C.start?a.value.getDateParts(C.start):null,C&&C.end?a.value.getDateParts(C.end):null]:[C?a.value.getDateParts(C):null]}function Yt(){c.value=null,X()}function Tr(C){e("popover-will-show",C)}function Cr(C){e("popover-did-show",C)}function je(C){Yt(),e("popover-will-hide",C)}function We(C){e("popover-did-hide",C)}function qt(C){const W={patch:"date",formatInput:!0,hidePopover:!0};if(p.value){const Z=!O.value;Z?y={start:C.startDate,end:C.endDate}:y!=null&&(y.end=C.date),F(y,{...W,dragging:Z})}else F(C.date,{...W,clearIfEqual:!t.isRequired})}function Ot(C,W){qt(C),e("dayclick",C,W)}function Hr(C,W){switch(W.key){case" ":case"Enter":{qt(C),W.preventDefault();break}case"Escape":Vn()}e("daykeydown",C,W)}function _n(C,W){!O.value||y==null||(y.end=C.date,F(Oa(y),{patch:"date",formatInput:!0}))}function Ri(C={}){Bd({...I.value,...C,isInteractive:!0,id:u.value})}function Vn(C={}){wu({hideDelay:10,force:!0,...I.value,...C,id:u.value})}function Fi(C){jT({...I.value,...C,isInteractive:!0,id:u.value})}function Oa(C,W){const{start:Z,end:fe}=C;if(Z>fe)switch(W){case"start":return{start:Z,end:Z};case"end":return{start:fe,end:fe};default:return{start:fe,end:Z}}return{start:Z,end:fe}}async function Aa(C,W={}){return h.value==null?!1:h.value.move(C,W)}async function Ea(C,W={}){return h.value==null?!1:h.value.moveBy(C,W)}async function nr(C,W={}){const Z=l.value;if(h.value==null||!de(Z))return!1;const fe=C!=="end",Ve=fe?1:-1,At=ye(Z)?fe?Z.start:Z.end:Z,Kt=IT(At,"monthly",a.value);return h.value.move(Kt,{position:Ve,...W})}Be(()=>t.isRange,C=>
45{C&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),Be(()=>p.value,()=>{K(null,{formatInput:!0})}),Be(()=>D.value,()=>X()),Be(()=>t.modelValue,C=>{g&&K(C,{formatInput:!0,hidePopover:!1})}),Be(()=>Q.value,()=>{Rn(t.rules)&&K(t.modelValue,{formatInput:!0,hidePopover:!1})}),Be(()=>t.timezone,()=>{K(l.value,{formatInput:!0})});const ar=ne(T.value);l.value=he(t.modelValue??null,ar,"dateTime"),Da(()=>{K(t.modelValue,{formatInput:!0,hidePopover:!1})}),En(()=>s.value=!0);const j={...n,showCalendar:s,datePickerPopoverId:u,popoverRef:v,popoverEvents:A,calendarRef:h,isRange:p,isTimeMode:S,isDateTimeMode:b,is24hr:Ol(t,"is24hr"),hideTimeHeader:Ol(t,"hideTimeHeader"),timeAccuracy:Ol(t,"timeAccuracy"),isDragging:O,inputValue:x,inputEvents:Y,dateParts:M,attributes:N,rules:Q,move:Aa,moveBy:Ea,moveToValue:nr,updateValue:F,showPopover:Ri,hidePopover:Vn,togglePopover:Fi,onDayClick:Ot,onDayKeydown:Hr,onDayMouseEnter:_n,onPopoverBeforeShow:Tr,onPopoverAfterShow:Cr,onPopoverBeforeHide:je,onPopoverAfterHide:We};return Pu(uC,j),j}function bg(){const t=yr(uC);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const hj=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],vj=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function dj(t){const e=bg(),{locale:r,isRange:n,isTimeMode:a,dateParts:i,rules:o,is24hr:s,hideTimeHeader:u,timeAccuracy:l,updateValue:c}=e;function f(L){L=Object.assign(h.value,L);let R=null;if(n.value){const I=v.value?L:i.value[0],A=v.value?i.value[1]:L;R={start:I,end:A}}else R=L;c(R,{patch:"time",targetPriority:v.value?"start":"end",moveToValue:!0})}const v=$(()=>t.position===0),h=$(()=>i.value[t.position]||{isValid:!1}),d=$(()=>gg(h.value)),y=$(()=>!!h.value.isValid),g=$(()=>!u.value&&y.value),p=$(()=>{if(!d.value)return null;let L=r.value.toDate(h.value);return h.value.hours===24&&(L=new Date(L.getTime()-1)),L}),m=$({get(){return h.value.hours},set(L){f({hours:L})}}),_=$({get(){return h.value.minutes},set(L){f({minutes:L})}}),w=$({get(){return h.value.seconds},set(L){f({seconds:L})}}),b=$({get(){return h.value.milliseconds},set(L){f({milliseconds:L})}}),S=$({get(){return h.value.hours<12},set(L){L=String(L).toLowerCase()=="true";let R=m.value;L&&R>=12?R-=12:!L&&R<12&&(R+=12),f({hours:R})}}),O=$(()=>L7(h.value,o.value[t.position])),T=$(()=>hj.filter(L=>O.value.hours.some(R=>R.value===L.value))),M=$(()=>vj.filter(L=>O.value.hours.some(R=>R.value===L.value))),D=$(()=>s.value?O.value.hours:S.value?T.value:M.value),P=$(()=>{const L=[];return xn(T.value)&&L.push({value:!0,label:"AM"}),xn(M.value)&&L.push({value:!1,label:"PM"}),L});return{...e,showHeader:g,timeAccuracy:l,parts:h,isValid:y,date:p,hours:m,minutes:_,seconds:w,milliseconds:b,options:O,hourOptions:D,isAM:S,isAMOptions:P,is24hr:s}}const pj=["value"],gj=["value","disabled"],yj={key:1,class:"vc-base-sizer","aria-hidden":"true"},mj={inheritAttrs:!1},Os=ze({...mj,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(t){const e=t,r=$(()=>{const n=e.options.find(a=>a.value===e.modelValue);return n==null?void 0:n.label});return(n,a)=>(B(),G("div",{class:be(["vc-base-select",{"vc-fit-content":t.fitContent,"vc-has-icon":t.showIcon}])},[H("select",Ta(n.$attrs,{value:t.modelValue,class:["vc-focus",{"vc-align-right":t.alignRight,"vc-align-left":t.alignLeft}],onChange:a[0]||(a[0]=i=>n.$emit("update:modelValue",i.target.value))}),[(B(!0),G(Ce,null,at(t.options,i=>(B(),G("option",{key:i.value,value:i.value,disabled:i.disabled},ce(i.label),9,gj))),128))],16,pj),t.showIcon?(B(),me(qo,{key:0,name:"ChevronDown",size:"18"})):Se("",!0),t.fitContent?(B(),G("div",yj,ce(k(r)),1)):Se("",!0)],2))}}),_j={key:0,class:"vc-time-header"},wj={class:"vc-time-weekday"},bj={class:"vc-time-month"},Sj={class:"vc-time-day"},Dj={class:"vc-time-year"},Tj={class:"vc-time-select-group"},Cj=H("span",{class:"vc-time-colon"},":",-1),Mj=H("span",{class:"vc-time-colon"},":",-1),Pj=H("span",{class:"vc-time-decimal"},".",-1),C_=ze({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const n=dj(t);e(n);const{locale:a,isValid:i,date:o,hours:s,minutes:u,seconds:l,milliseconds:c,options:f,hourOptions:v,isTimeMode:h,isAM:d,isAMOptions:y,is24hr:g,showHeader:p,timeAccuracy:m}=n;return(_,w)=>(B(),G("div",{class:be(["vc-time-picker",[{"vc-invalid":!k(i),"vc-attached":!k(h)}]])},[ge(gr,{name:"time-header"},{default:nt(()=>[k(p)&&k(o)?(B(),G("div",_j,[H("span",wj,ce(k(a).formatDate(k(o),"WWW")),1),H("span",bj,ce(k(a).formatDate(k(o),"MMM")),1),H("span",Sj,ce(k(a).formatDate(k(o),"D")),1
45),H("span",Dj,ce(k(a).formatDate(k(o),"YYYY")),1)])):Se("",!0)]),_:1}),H("div",Tj,[ge(qo,{name:"Clock",size:"17"}),ge(Os,{modelValue:k(s),"onUpdate:modelValue":w[0]||(w[0]=b=>$r(s)?s.value=b:null),modelModifiers:{number:!0},options:k(v),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),k(m)>1?(B(),G(Ce,{key:0},[Cj,ge(Os,{modelValue:k(u),"onUpdate:modelValue":w[1]||(w[1]=b=>$r(u)?u.value=b:null),modelModifiers:{number:!0},options:k(f).minutes,class:"vc-time-select-minutes","align-left":k(m)===2},null,8,["modelValue","options","align-left"])],64)):Se("",!0),k(m)>2?(B(),G(Ce,{key:1},[Mj,ge(Os,{modelValue:k(l),"onUpdate:modelValue":w[2]||(w[2]=b=>$r(l)?l.value=b:null),modelModifiers:{number:!0},options:k(f).seconds,class:"vc-time-select-seconds","align-left":k(m)===3},null,8,["modelValue","options","align-left"])],64)):Se("",!0),k(m)>3?(B(),G(Ce,{key:2},[Pj,ge(Os,{modelValue:k(c),"onUpdate:modelValue":w[3]||(w[3]=b=>$r(c)?c.value=b:null),modelModifiers:{number:!0},options:k(f).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):Se("",!0),k(g)?Se("",!0):(B(),me(Os,{key:3,modelValue:k(d),"onUpdate:modelValue":w[4]||(w[4]=b=>$r(d)?d.value=b:null),options:k(y)},null,8,["modelValue","options"]))])],2))}}),lC=ze({__name:"DatePickerBase",setup(t){const{attributes:e,calendarRef:r,color:n,displayMode:a,isDateTimeMode:i,isTimeMode:o,isRange:s,onDayClick:u,onDayMouseEnter:l,onDayKeydown:c}=bg(),f=s.value?[0,1]:[0];return(v,h)=>k(o)?(B(),G("div",{key:0,class:be(`vc-container vc-bordered vc-${k(n)} vc-${k(a)}`)},[(B(!0),G(Ce,null,at(k(f),d=>(B(),me(C_,{key:d,position:d},null,8,["position"]))),128))],2)):(B(),me(uj,{key:1,attributes:k(e),ref_key:"calendarRef",ref:r,onDayclick:k(u),onDaymouseenter:k(l),onDaykeydown:k(c)},{footer:nt(()=>[k(i)?(B(!0),G(Ce,{key:0},at(k(f),d=>(B(),me(C_,{key:d,position:d},null,8,["position"]))),128)):Se("",!0),ge(gr,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),Oj={inheritAttrs:!1},Aj=ze({...Oj,__name:"DatePickerPopover",setup(t){const{datePickerPopoverId:e,color:r,displayMode:n,popoverRef:a,onPopoverBeforeShow:i,onPopoverAfterShow:o,onPopoverBeforeHide:s,onPopoverAfterHide:u}=bg();return(l,c)=>(B(),me(wg,{id:k(e),placement:"bottom-start",class:be(`vc-date-picker-content vc-${k(r)} vc-${k(n)}`),ref_key:"popoverRef",ref:a,onBeforeShow:k(i),onAfterShow:k(o),onBeforeHide:k(s),onAfterHide:k(u)},{default:nt(()=>[ge(lC,Ns(nv(l.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),Ej=ze({inheritAttrs:!1,emits:cj,props:lj,components:{DatePickerBase:lC,DatePickerPopover:Aj},setup(t,e){const r=fj(t,e),n=Qo(PT(r,"calendarRef","popoverRef"));return{...r,slotCtx:n}}});function Ij(t,e,r,n,a,i){const o=Mn("DatePickerPopover"),s=Mn("DatePickerBase");return t.$slots.default?(B(),G(Ce,{key:0},[Mu(t.$slots,"default",Ns(nv(t.slotCtx))),ge(o,Ns(nv(t.$attrs)),null,16)],64)):(B(),me(s,Ns(Ta({key:1},t.$attrs)),null,16))}const Lj=Pa(Ej,[["render",Ij]]),xj={gray:[107,114,128],red:[239,68,68],orange:[249,115,22],yellow:[234,179,8],green:[34,197,94],teal:[20,184,166],blue:[59,130,246],indigo:[99,102,241],purple:[168,85,247],pink:[236,72,153]};function $j(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:null}function kj(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function Rj(t){const e=$j(t);if(!e)return"red";let r=1/0,n="red";for(const[a,i]of Object.entries(xj)){const o=kj(e,i);o<r&&(r=o,n=a)}return n}const Fj=(t,e)=>{const r=e||document.documentElement;return getComputedStyle(r).getPropertyValue(t)},Nj=60*1e3;function cC(t){const e=()=>fC(t());return{mouseenter:e,focus:e,touchstart:e}}function Yj(...t){var r;const e=t.filter(n=>!!n);return{chunk:(r=e.find(n=>n.chunk))==null?void 0:r.chunk,queries:e.flatMap(n=>n.queries??[])}}function fC(t){if(t&&(t.chunk&&t.chunk().catch(()=>{}),t.queries))for(const e of t.queries)lw.prefetchQuery({queryKey:[...e.queryKey],queryFn:e.queryFn,staleTime:e.staleTime??Nj})}const Rc={matchesByFilters:t=>t.date?{queries:[{queryKey:[Qe.MATCHES,t],queryFn:()=>qw(t)}]}:null,matchDetail:t=>t?{chunk:()=>_t(()=>
45import("./MatchDetailPage-Dja0EwLr.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),queries:[{queryKey:[Qe.MATCH_DETAIL.INFO,t],queryFn:()=>Xw(t)}]}:null,matchDetailTab:(t,e,r={})=>{if(!e)return null;switch(t){case"overview":return{queries:[{queryKey:[Qe.MATCH_DETAIL.HISTORY,e],queryFn:()=>Iv(e)},{queryKey:[Qe.MATCH_DETAIL.TREND,e],queryFn:()=>WO(e)}]};case"h2h":return{queries:[{queryKey:[Qe.MATCH_DETAIL.H2H,e],queryFn:()=>UO(e)}]};case"lineup":return{queries:[{queryKey:[Qe.MATCH_DETAIL.LINEUP,e],queryFn:()=>zO(e)}]};case"stats":return{queries:[{queryKey:[Qe.MATCH_DETAIL.HISTORY,e],queryFn:()=>Iv(e)}]};case"standings":return r.seasonId?{queries:[{queryKey:[Qe.LEAGUE_DETAIL.STANDINGS,r.seasonId],queryFn:()=>zf(r.seasonId)}]}:null}},leagueDetail:t=>t?{chunk:()=>_t(()=>import("./LeaguePage-DdEfn0Zz.js"),__vite__mapDeps([6,4,7,1,8,9,2,3,10,11,12,13,14,15,16]),import.meta.url),queries:[{queryKey:[Qe.LEAGUE_DETAIL.INFO,t],queryFn:()=>FO(t)}]}:null,leagueDetailTab:(t,e)=>{switch(t){case"overview":return e.seasonId?{queries:[{queryKey:[Qe.LEAGUE_DETAIL.SCHEDULE,e.seasonId],queryFn:()=>by(e.seasonId)},{queryKey:[Qe.LEAGUE_DETAIL.STANDINGS,e.seasonId],queryFn:()=>zf(e.seasonId)},{queryKey:[Qe.LEAGUE_DETAIL.STATS,e.seasonId],queryFn:()=>_y(e.seasonId)},{queryKey:[Qe.LEAGUE_DETAIL.TOP_PLAYERS,e.seasonId],queryFn:()=>wy(e.seasonId)}]}:null;case"matches":case"results":return e.seasonId?{queries:[{queryKey:[Qe.LEAGUE_DETAIL.SCHEDULE,e.seasonId],queryFn:()=>by(e.seasonId)}]}:null;case"table":return e.seasonId?{queries:[{queryKey:[Qe.LEAGUE_DETAIL.STANDINGS,e.seasonId],queryFn:()=>zf(e.seasonId)}]}:null;case"stats":return e.seasonId?{queries:[{queryKey:[Qe.LEAGUE_DETAIL.STATS,e.seasonId],queryFn:()=>_y(e.seasonId)},{queryKey:[Qe.LEAGUE_DETAIL.TOP_PLAYERS,e.seasonId],queryFn:()=>wy(e.seasonId)}]}:null;case"teams":return e.leagueId?{queries:[{queryKey:[Qe.LEAGUE_DETAIL.TEAMS,e.leagueId],queryFn:()=>NO(e.leagueId)}]}:null;default:return null}}},Bj={key:0,class:"select-leagues-dropdown"},Hj={class:"category-tabs"},Uj={class:"search-input-wrapper"},zj={class:"league-list"},Wj={class:"country-header"},Vj=["onClick"],Gj={key:0,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"white","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},jj={class:"league-name"},qj={class:"league-count"},Kj={class:"dropdown-footer"},Qj={class:"footer-count"},Xj=ze({__name:"SelectLeaguesModal",props:{visible:{type:Boolean},countriesWithLeagues:{},currentFilteredLeagues:{}},emits:["confirm","close"],setup(t,{emit:e}){const r=t,n=e,a=se("all"),i=se(new Set),o=se("");Be(()=>r.visible,g=>{g&&(r.currentFilteredLeagues.length>0?i.value=new Set(r.currentFilteredLeagues):h())});const s=$(()=>{let g=0;for(const p of r.countriesWithLeagues)for(const m of p.leagues)g+=m.matches.length;return g}),u=$(()=>{let g=0;for(const p of r.countriesWithLeagues)for(const m of p.leagues)i.value.has(m.sclassID)&&(g+=m.matches.length);return g});function l(){a.value="all",h()}function c(){a.value="hot";const g=new Set;for(const p of r.countriesWithLeagues)for(const m of p.leagues)m.isHot===1&&g.add(m.sclassID);i.value=g}const f=$(()=>{const g=o.value.trim().toLowerCase();return g?r.countriesWithLeagues.map(p=>({...p,leagues:p.leagues.filter(m=>m.leagueName.toLowerCase().includes(g)||p.Name.toLowerCase().includes(g))})).filter(p=>p.leagues.length>0):r.countriesWithLeagues});function v(g){const p=new Set(i.value);p.has(g)?p.delete(g):p.add(g),i.value=p}function h(){const g=new Set;for(const p of r.countriesWithLeagues)for(const m of p.leagues)g.add(m.sclassID);i.value=g}function d(){const g=new Set(i.value);for(const p of r.countriesWithLeagues)for(const m of p.leagues)g.has(m.sclassID)?g.delete(m.sclassID):g.add(m.sclassID);i.value=g}function y(){const g=Array.from(i.value),p=r.countriesWithLeagues.flatMap(m=>m.leagues.map(_=>_.sclassID));g.length>=p.length?n("confirm",[]):n("confirm",g)}return(g,p)=>(B(),me(Ud,{name:"dropdown-fade"},{default:nt(()=>[t.visible?(B(),G("div",Bj,[p[4]||(p[4]=H("div",{class:"dropdown-header"},[H("span",{class:"dropdown-title"},"Select Leagues")],-1)),H("div",Hj,[H("button",{class:be(["category-btn",{active:a.value==="all"}]),onClick:l}," All ",2),H("button",{class:be(["category-btn",{active:a.value==="hot"}]),onClick:c}," HOT ",2),H("div",Uj,[p[1]||(p[1]=H("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"search-icon"},[H("circle",{cx:"11",cy:"11",r:"8"}),H("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})],-1)),zd(H("input",{"onUpdate:modelValue":p[0]||(p[0]=m=>o.value=m),type:"text",class:"search-input",placeholder:"Search..."},null,512),[[TC,o.value]])])]),H("div",zj,[(B(!0),G(Ce,null,at(f.value,m=>(B(),G(Ce,{key:m.CountryID},[H("div",Wj,ce(m.Name),1),(B(!0),G(Ce,null,at(m.leagues,_=>(B(),G("div",{key:_.sclassID,class:"league-row",onClick:w=>v(_.sclassID)},[H("span",{class:be(["league-checkbox",{checked:i.value.has(_.sclassID)}])},[i.value.has(_.sclassID)?(B(),G("svg",Gj,[...p[2]||(p[2]=[H("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):Se("",!0)],2),H("span",jj,ce(_.leagueName),1),H("span",qj,ce(_.matches.length),1)],8,Vj))),128))],64))),128))]),H("div",Kj,[H("div",{class:"footer-actions"},[H("button",{class:"footer-link",onClick:h},"Select all"),p[3]||(p[3]=H("span",{class:"footer-divider"},"|",-1)),H("button",{class:"footer-link",onClick:d},"Inverse")]),H("span",Qj,ce(u.value)+"/"+ce(s.value),1),H("button",{class:"save-btn",onClick:y},"Save")])])):Se("",!0)]),_:1}))}}),Zj=Ai(Xj,[["__scopeId","data-v-dc5179be"]]),Jj={class:"filter-tabs"},eq=["onClick"],tq={class:"right-side"},rq={class:"date-picker-wrapper"},nq=["onClick"],aq={class:"vc-footer-container"},iq=ze({__name:"FilterTabs",props:{countriesWithLeagues:{},hideLivestream:{type:Boolean}},setup(t){const e=Zo(),{onclickLivestream:r}=_w(),n=se(!1),a=se(null),i=$(()=>e.clientFilters.filterByLeagues.length>0);function o(M){e.setFilterByLeagues(M),n.value=!1}function s(){n.value=!n.value}
45function u(M){n.value&&a.value&&!a.value.contains(M.target)&&(n.value=!1)}const l=$(()=>e.clientFilters.matchType),c=$(()=>e.apiFilters.date),f=[{label:"Tất cả",value:"all"},{label:"Live",value:"live"},{label:"Kết thúc",value:"result"},{label:"Sắp tới",value:"early"}],v=M=>{e.setMatchType(M),M==="live"&&(e.setApiFilters({date:Ye().format("YYYY-MM-DD")}),En(()=>{e.setMatchType("live")}))};Xo(()=>{document.removeEventListener("click",u,!0)});const h=se(null),d=se("red");Da(()=>{document.addEventListener("click",u,!0);const M=document.getElementById("wp-sport-app");if(M){const D=Fj("--wpsport-primary",M);D&&(d.value=Rj(D))}});const y=$({get:()=>Ye(c.value).toDate(),set:M=>{const D=Ye(M);e.setMatchType("all"),e.setApiFilters({timeRange:"all",date:D.format("YYYY-MM-DD")})}}),g=$(()=>Ye(c.value).format("YYYY-MM-DD")),p=$(()=>[{key:"today",dot:!0,dates:new Date}]);function m(){e.setMatchType("all");const M=Ye(e.apiFilters.date).subtract(1,"days");e.setApiFilters({timeRange:"all",date:M.format("YYYY-MM-DD")})}function _(){e.setMatchType("all");const M=Ye(e.apiFilters.date).add(1,"days");e.setApiFilters({timeRange:"all",date:M.format("YYYY-MM-DD")})}function w(){e.setMatchType("all"),e.setApiFilters({timeRange:"all",date:Ye().format("YYYY-MM-DD")}),h.value}function b(M){const{companyid:D,...P}=e.apiFilters;fC(Rc.matchesByFilters({...P,...M}))}const S=$(()=>Ye(e.apiFilters.date).subtract(1,"days").format("YYYY-MM-DD")),O=$(()=>Ye(e.apiFilters.date).add(1,"days").format("YYYY-MM-DD")),T=$(()=>Ye().format("YYYY-MM-DD"));return(M,D)=>(B(),G("div",Jj,[(B(),G(Ce,null,at(f,P=>H("button",{key:P.value,onClick:L=>v(P.value),class:be(["tab-button",{active:l.value===P.value}])},[P.value==="live"?(B(),G("i",{key:0,class:be(["home_filterbar-live",d.value])},null,2)):Se("",!0),pa(" "+ce(P.label),1)],10,eq)),64)),t.hideLivestream?Se("",!0):(B(),G("button",{key:0,onClick:D[0]||(D[0]=(...P)=>k(r)&&k(r)(...P)),class:be(["tab-button","active","blink-animation"])},[...D[11]||(D[11]=[H("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[H("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.64329 2.92805C3.83836 3.12351 3.83804 3.44009 3.64258 3.63516C2.52351 4.752 1.83203 6.29478 1.83203 8.00002C1.83203 9.72519 2.53979 11.2841 3.68205 12.4039C3.87925 12.5972 3.88239 12.9138 3.68908 13.111C3.49577 13.3082 3.1792 13.3113 2.98201 13.118C1.65579 11.8179 0.832031 10.0047 0.832031 8.00002C0.832031 6.01855 1.63684 4.2241 2.93618 2.92734C3.13164 2.73228 3.44822 2.73259 3.64329 2.92805ZM12.4096 2.97631C12.6068 2.78299 12.9234 2.78614 13.1167 2.98333C14.3834 4.27551 15.1654 6.04695 15.1654 8.00002C15.1654 9.97631 14.3648 11.7666 13.0714 13.0625C12.8763 13.258 12.5597 13.2583 12.3643 13.0632C12.1688 12.8682 12.1685 12.5516 12.3636 12.3561C13.4775 11.24 14.1654 9.70082 14.1654 8.00002C14.1654 6.31915 13.4935 4.7962 12.4026 3.68338C12.2093 3.48618 12.2124 3.16962 12.4096 2.97631ZM5.53819 4.99171C5.72687 5.19334 5.71638 5.50975 5.51475 5.69843C4.88215 6.29043 4.4987 7.10016 4.4987 7.98816C4.4987 8.88648 4.89116 9.70485 5.53707 10.2986C5.74037 10.4855 5.75368 10.8018 5.56681 11.0051C5.37993 11.2084 5.06363 11.2217 4.86033 11.0348C4.02515 10.2671 3.4987 9.18827 3.4987 7.98816C3.4987 6.802 4.01302 5.73419 4.83147 4.96828C5.03309 4.77959 5.3495 4.79009 5.53819 4.99171ZM10.4939 5.01706C10.6848 4.81751 11.0013 4.81047 11.2009 5.00134C11.999 5.76476 12.4987 6.81906 12.4987 7.98816C12.4987 9.1712 11.9871 10.2366 11.1723 11.002C10.9711 11.1911 10.6546 11.1813 10.4656 10.98C10.2765 10.7788 10.2863 10.4623 10.4876 10.2732C11.1172 9.68165 11.4987 8.87385 11.4987 7.98816C11.4987 7.11279 11.1261 6.31364 10.5097 5.72399C10.3101 5.53312 10.3031 5.21662 10.4939 5.01706Z",fill:"white"}),H("path",{d:"M9.10293 6.96744C9.70011 7.40588 9.9987 7.6251 9.9987 8.00004C9.9987 8.37498 9.70011 8.5942 9.10293 9.03264C8.93807 9.15367 8.77456 9.26762 8.62431 9.36258C8.4925 9.44588 8.34322 9.53205 8.18866 9.61664C7.59288 9.94271 7.29499 10.1057 7.02782 9.92524C6.76064 9.74473 6.73636 9.36686 6.6878 8.61111C6.67406 8.39739 6.66536 8.18787 6.66536 8.00004C6.66536 7.81221 6.67406 7.60269 6.6878 7.38896C6.73636 6.63322 6.76064 6.25534 7.02782 6.07484C7.29499 5.89433 7.59288 6.05737 8.18866 6.38343C8.34322 6.46802 8.4925 6.55419 8.62431 6.6375C8.77456 6.73245 8.93807 6.84641 9.10293 6.96744Z",fill:"white"})],-1),H("span",{class:"livestream-text"},"Xem bóng",-1)])])),H("div",tq,[H("div",{class:"filter-leagues-wrapper",ref_key:"filterWrapperRef",ref:
45a},[H("button",{class:be(["filter-leagues-btn",{"has-filter":i.value}]),onClick:s,title:"Filter Leagues"},[...D[12]||(D[12]=[H("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[H("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})],-1)])],2),ge(Zj,{visible:n.value,"countries-with-leagues":t.countriesWithLeagues,"current-filtered-leagues":k(e).clientFilters.filterByLeagues,onConfirm:o,onClose:D[1]||(D[1]=P=>n.value=!1)},null,8,["visible","countries-with-leagues","current-filtered-leagues"])],512),H("div",rq,[H("button",{class:"date-nav-btn",onClick:m,onMouseenter:D[2]||(D[2]=P=>b({timeRange:"all",date:S.value})),onFocus:D[3]||(D[3]=P=>b({timeRange:"all",date:S.value})),onTouchstartPassive:D[4]||(D[4]=P=>b({timeRange:"all",date:S.value})),title:"Previous day"},[...D[13]||(D[13]=[H("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[H("polyline",{points:"15 18 9 12 15 6"})],-1)])],32),ge(k(Lj),{ref_key:"datePicker",ref:h,modelValue:y.value,"onUpdate:modelValue":D[7]||(D[7]=P=>y.value=P),popover:{visibility:"click"},attributes:p.value,color:d.value},{default:nt(({togglePopover:P})=>[H("button",{class:"date-display-btn",onClick:P},[D[14]||(D[14]=H("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[H("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),H("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),H("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),H("line",{x1:"3",y1:"10",x2:"21",y2:"10"})],-1)),H("span",null,ce(g.value),1)],8,nq)]),footer:nt(()=>[H("div",aq,[H("button",{class:"vc-footer-btn",onClick:w,onMouseenter:D[5]||(D[5]=P=>b({timeRange:"all",date:T.value})),onFocus:D[6]||(D[6]=P=>b({timeRange:"all",date:T.value}))}," Go to today ",32)])]),_:1},8,["modelValue","attributes","color"]),H("button",{class:"date-nav-btn",onClick:_,onMouseenter:D[8]||(D[8]=P=>b({timeRange:"all",date:O.value})),onFocus:D[9]||(D[9]=P=>b({timeRange:"all",date:O.value})),onTouchstartPassive:D[10]||(D[10]=P=>b({timeRange:"all",date:O.value})),title:"Next day"},[...D[15]||(D[15]=[H("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[H("polyline",{points:"9 18 15 12 9 6"})],-1)])],32)])])]))}}),oq=Ai(iq,[["__scopeId","data-v-0942c2b7"]]),Sg=pw("navigation",()=>{const t=se("livescore"),e=se(""),r=se(""),n=se(""),a=se(""),i=se("overview"),o=se([]),s=(p,m)=>{t.value=p,e.value=m.matchId||"",r.value=m.teamId||"",n.value=m.leagueId||"",a.value=m.playerId||"",i.value=m.activeTab||"",o.value=[{page:p,matchId:e.value,teamId:r.value,leagueId:n.value,playerId:a.value,activeTab:i.value}]},u=()=>{o.value.push({page:t.value,matchId:e.value,teamId:r.value,leagueId:n.value,playerId:a.value,activeTab:i.value})};return{currentPage:t,matchId:e,teamId:r,leagueId:n,playerId:a,activeTab:i,initFromDataAttrs:s,goToMatchDetail:(p,m="overview")=>{u(),t.value="matchdetail",e.value=p,i.value=m},goToTeam:p=>{u(),t.value="team",r.value=p},goToLeague:(p,m="overview")=>{u(),t.value="league",n.value=p,i.value=m},goToLeagueList:()=>{u(),t.value="league-list"},goToPlayer:p=>{u(),t.value="player",a.value=p},goToLivescore:()=>{u(),t.value="livescore"},goBack:()=>{if(o.value.length>1){o.value.pop();const p=o.value[o.value.length-1];t.value=p.page,e.value=p.matchId,r.value=p.teamId,n.value=p.leagueId,a.value=p.playerId,i.value=p.activeTab}},canGoBack:()=>o.value.length>1}}),sq=""+new URL("teamPlaceholder-BAWG0WQ4.png",import.meta.url).href,uq=["src","alt","loading"],Ko=ze({__name:"AppImage",props:{src:{},alt:{default:""},fallback:{},loading:{default:"lazy"},imageSize:{}},setup(t){const e=t,r=se(!1),n=(o,s)=>{const u=o.indexOf("#"),l=u===-1?o:o.slice(0,u),c=u===-1?"":o.slice(u),f=encodeURIComponent(s);return/([?&])size=[^&#]*/.test(l)?`${l.replace(/([?&])size=[^&#]*/,`$1size=${f}`)}${c}`:`${l}${l.includes("?")?"&":"?"}size=${f}${c}`},a=$(()=>r.value||!e.src?e.fallback||sq:e.imageSize?n(e.src,e.imageSize):e.src),i=()=>{r.value=!0};return(o,s)=>(B(),G("img",{src:a.value,alt:t.alt,loading:t.loading,onError:i},null,40,uq))}});/**
46 * @license lucide-vue-next v0.563.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */const lq=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/**
51 * @license lucide-vue-next v0.563.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const M_=t=>t==="";/**
56 * @license lucide-vue-next v0.563.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const cq=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
61 * @license lucide-vue-next v0.563.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const P_=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
66 * @license lucide-vue-next v0.563.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const fq=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,n)=>n?n.toUpperCase():r.toLowerCase());/**
71 * @license lucide-vue-next v0.563.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const hq=t=>{const e=fq(t);return e.charAt(0).toUpperCase()+e.slice(1)};/**
76 * @license lucide-vue-next v0.563.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */var As={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
81 * @license lucide-vue-next v0.563.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const vq=({name:t,iconNode:e,absoluteStrokeWidth:r,"absolute-stroke-width":n,strokeWidth:a,"stroke-width":i,size:o=As.width,color:s=As.stroke,...u},{slots:l})=>Ro("svg",{...As,...u,width:o,height:o,stroke:s,"stroke-width":M_(r)||M_(n)||r===!0||n===!0?Number(a||i||As["stroke-width"])*24/Number(o):a||i||As["stroke-width"],class:cq("lucide",u.class,...t?[`lucide-${P_(hq(t))}-icon`,`lucide-${P_(t)}`]:["lucide-icon"]),...!l.default&&!lq(u)&&{"aria-hidden":"true"}},[...e.map(c=>Ro(...c)),...l.default?[l.default()]:[]]);/**
86 * @license lucide-vue-next v0.563.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const dq=(t,e)=>(r,{slots:n,attrs:a})=>Ro(vq,{...a,...r,iconNode:e,name:t},n);/**
91 * @license lucide-vue-next v0.563.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const pq=dq("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7
95a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),gq={class:"league-info"},yq={key:0,class:"country-name"},mq=ze({__name:"LeagueGroup",props:{league:{},countries:{},expanded:{type:Boolean}},emits:["toggle"],setup(t,{emit:e}){const r=t,n=e,a=Zo(),i=Sg(),o=cC(()=>Rc.leagueDetail(r.league.sclassID)),s=$(()=>r.countries.find(l=>l.CountryID===r.league.CountryID)),u=()=>{a.toggleFavoriteLeague(r.league.sclassID)};return(l,c)=>{var f,v;return B(),G("div",{class:"league-header",onClick:c[1]||(c[1]=h=>n("toggle"))},[H("div",gq,[H("button",{onClick:po(u,["stop"]),class:be(["btn-favorite",{pinned:t.league.isFavorite}])},[ge(k(pq),{size:16})],2),(f=s.value)!=null&&f.FlagPic?(B(),me(Ko,{key:0,src:s.value.FlagPic,"image-size":"xs",class:"country-flag"},null,8,["src"])):t.league.logo?(B(),me(Ko,{key:1,src:t.league.logo,"image-size":"xs",class:"league-logo"},null,8,["src"])):Se("",!0),H("div",Ta({class:"league-name"},Wd(k(o)),{onClick:c[0]||(c[0]=po(h=>k(i).goToLeague(t.league.sclassID),["stop"]))}),[(v=s.value)!=null&&v.Name?(B(),G("span",yq,ce(s.value.Name)+": ",1)):Se("",!0),pa(" "+ce(t.league.leagueName),1)],16)]),H("div",{class:be(["chevron-wrapper",{expanded:t.expanded}])},[...c[2]||(c[2]=[H("svg",{xmlns:"http://www.w3.org/2000/svg",class:"chevron-icon",viewBox:"0 0 20 20",fill:"currentColor"},[H("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])],2)])}}}),_q=Ai(mq,[["__scopeId","data-v-5168da38"]]),wq={},bq={viewBox:"0 0 1024 1024",class:"icon svg-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"};function Sq(t,e){return B(),G("svg",bq,[...e[0]||(e[0]=[H("path",{d:"M512 972.8A460.8 460.8 0 1 0 512 51.2a460.8 460.8 0 0 0 0 921.6z",fill:"#FFFFFF"},null,-1),H("path",{d:"M768.15 880.64l-130.19-49.96-44.03-138.97 95.23-153.01 163.84 8.78 77.68 126.9a445.73 445.73 0 0 1-162.53 206.26zm-501.03-121.86l104.59-97.28 170.79 42.06 46.67 147.46L500.3 961.1a456.63 456.63 0 0 1-96.18-12.43c-43.37-10.61-82.43-29.04-119.22-50.61l-17.78-139.27zm296.96-593.48l-45.06 183.81-156.38 63.56-145.26-67-18.29-155.72A446.54 446.54 0 0 1 477.99 64.88l86.09 100.42zm306.98 330.53L680.3 485.67l-108.98-129.02 42.42-172.76 131.15-54.42a445.44 445.44 0 0 1 152.5 149.8c24.14 39.94 39.5 82.94 50.32 126.98l-76.65 89.6zM71.46 426.72l98.16-45.2 169.1 77.97 10.98 150.67L219.36 731.43l-108.69-20.33a444.93 444.93 0 0 1-39.13-284.38zm563.2-411.79A512.44 512.44 0 0 0 3.8 450.56a512 512 0 0 0 508.56 573.37 512.29 512.29 0 0 0 125.95-17.85l.15.29 11.56-3.66c194.63-55 344.87-220.09 370.1-429.28A512 512 0 0 0 634.73 14.92z",fill:"#007CEF"},null,-1)])])}const O_=Ai(wq,[["render",Sq]]),Dq={class:"popup-header"},Tq={class:"team-name home"},Cq={class:"team-name away"},Mq={key:0,class:"goals-section"},Pq={class:"goal-side home"},Oq={class:"goal-minute"},Aq={class:"goal-side away"},Eq={class:"stats-section"},Iq={class:"stat-row"},Lq={class:"stat-value home"},xq={class:"stat-title"},$q={class:"stat-value away"},kq={key:0,class:"progress-bar-container"},Rq=ze({__name:"MatchScorePopup",props:{matchId:{},homeTeam:{},awayTeam:{},homeLogo:{},awayLogo:{},positionX:{},positionY:{}},setup(t){const e=t,{data:r,isLoading:n}=jO(e.matchId),a=$(()=>{var l;return(l=r.value)!=null&&l.incidents?r.value.incidents.filter(c=>c.type===qr.Goal||c.type===qr.OwnGoal).sort((c,f)=>c.time-f.time):[]}),i=[qr.BallPossession,qr.Corner,qr.YellowCard,qr.ShotsOnTarget,qr.ShotsOffTarget],o=$(()=>{var c,f;const l=new Map;if(!((f=(c=r.value)==null?void 0:c.half_team_stats)!=null&&f.ft))return l;for(const v of r.value.half_team_stats.ft)l.set(v.type,{home:v.home,away:v.away});return l});function s(l,c){const f=l+c;if(f===0)return{a:"0%",b:"0%",aNum:0,bNum:0};const v=Math.round(l/f*100),h=Math.round(c/f*100);return{a:`${v}%`,b:`${h}%`,aNum:v,bNum:h}}const u=$(()=>i.map(l=>{const c=o.value.get(l),f=(c==null?void 0:c.home)??0,v=(c==null?void 0:c.away)??0,h=s(f,v),d=l===qr.BallPossession;return{type:l,title:Kw[l]??"",homeValue:d?h.a:f,awayValue:d?h.b:v,homePercent:h.aNum,awayPercent:h.bNum,showProgressBar:l===qr.BallPossession}}).filter(l=>l.title));return(l,c)=>!k(n)&&k(r)?(B(),G("div",{key:0,class:"score-popup",style:In({left:t.positionX+"px",top:t.positionY+"px"})},[H("div",Dq,[ge(Ko,{src:t.homeLogo,"image-size":"sm",class:"team-logo"},null,8,["src"]),H("span",Tq,ce(t.homeTeam),1),H("span",Cq,ce(t.awayTeam),1),ge(Ko,{src:t.awayLogo,"image-size":"sm",class:"team-logo"},null,8,["src"])]),a.value.length>0?(B(),G("div",Mq,[(B(!0),G(Ce,null,at(a.value,f=>(B(),G("div",{class:"goals-row",key:`${f.time}-${f.position}`},[H("div",Pq,[f.position===1?(B(),me(O_,{key:0,class:"goal-icon home-icon"})):Se("",!0)]),H("span",Oq,ce(f.time)+"'",1),H("div",Aq,[f.position===2?(B(),me(O_,{key:0,class:"goal-icon away-icon"})):Se("",!0)])]))),128))])):Se("",!0),H("div",Eq,[(B(!0),G(Ce,null,at(u.value,f=>(B(),G(Ce,{key:f.type},[H("div",Iq,[H("span",Lq,ce(f.homeValue),1),H("span",xq,ce(f.title),
951),H("span",$q,ce(f.awayValue),1)]),f.showProgressBar?(B(),G("div",kq,[H("div",{class:"progress-bar home",style:In({width:f.homePercent+"%"})},null,4),H("div",{class:"progress-bar away",style:In({width:f.awayPercent+"%"})},null,4)])):Se("",!0)],64))),128))])],4)):k(n)?(B(),G("div",{key:1,class:"score-popup loading",style:In({left:t.positionX+"px",top:t.positionY+"px"})},[...c[0]||(c[0]=[H("span",null,"Đang tải...",-1)])],4)):Se("",!0)}}),Fq=Ai(Rq,[["__scopeId","data-v-5770c4f2"]]),Nq={class:"match-favorite"},Yq={key:0,xmlns:"http://www.w3.org/2000/svg",class:"icon-star active",viewBox:"0 0 20 20",fill:"currentColor"},Bq={key:1,xmlns:"http://www.w3.org/2000/svg",class:"icon-star",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},Hq={class:"match-time-status"},Uq={class:"match-time"},zq={key:0,class:"match-date-prefix"},Wq={class:"match-status"},Vq={key:0},Gq={key:1},jq={key:2,class:"live_icon_wrapper"},qq={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kq=["fill"],Qq={class:"live_icon_popup"},Xq=["href"],Zq=["src"],Jq={style:{"line-height":"16px"}},eK={class:"match-content"},tK={class:"team team-home"},rK={class:"team-name"},nK={class:"team team-guest"},aK={class:"team-name guest-team-name"},iK={class:"match-score mobile-score"},oK={class:"match-odds"},sK={class:"half-time-score"},uK={key:0,class:"match-row match-note"},lK=ze({__name:"MatchRow",props:{match:{}},setup(t){var I;const e=t,{data:r,getMatchLink:n}=_w(),a=Zo(),i=Sg(),o=()=>{a.toggleFavoriteMatch(e.match.ScheduleID)},s=()=>{const A=e.match.MatchState===ve.NotStarted?"h2h":"lineup";i.goToMatchDetail(e.match.ScheduleID,A)},u=()=>e.match.MatchState===ve.NotStarted?"h2h":"lineup",l=cC(()=>Yj(Rc.matchDetail(e.match.ScheduleID),Rc.matchDetailTab(u(),e.match.ScheduleID))),c=((I=window.wp_sport_advanced)==null?void 0:I.matchSlug)||"/tran-dau",f=()=>{const A=e.match.MatchState===ve.NotStarted?"h2h":"lineup",x=my(e.match.homeTeam),Y=my(e.match.guestTeam),U=`${c}/${x}-vs-${Y}-${e.match.ScheduleID}?view=${A}`;window.open(U,"_blank")},v=$(()=>Ye.utc(e.match.matchTime).local()),h=$(()=>v.value.format("HH:mm")),d=$(()=>v.value.isSame(Ye(),"day")?"":v.value.format("DD/MM")),y=$(()=>{const A=Ye();switch(e.match.MatchState){case ve.NotStarted:return"";case ve.Finished:return"FT";case ve.FirstHalf:{const x=Ye.utc(e.match.matchTime).local(),Y=Math.floor(A.diff(x,"minute"));return Y>45?`45+${Y-45}'`:Y>0?`${Y}'`:"Hiệp 1"}case ve.HalfTimeBreak:return"HT";case ve.SecondHalf:{const x=Ye.utc(e.match.matchTime2).local(),Y=Math.floor(A.diff(x,"minute"))+45;return Y>90?`90+${Y-90}'`:Y>45?`${Y}'`:"Hiệp 2"}case ve.ExtraTime:return"Hiệp phụ";case ve.Penalty:return"Pen";case ve.Postponed:case ve.Cancelled:case ve.TBD:case ve.Interrupted:case ve.Terminated:return"Hoãn";default:return""}}),g=$(()=>y.value.includes("'")),p=$(()=>{var A;return(A=e.match.odds)==null?void 0:A["1x2"]}),m=A=>A==null?"-":Number(A).toFixed(2),_=$(()=>e.match.MatchState===ve.NotStarted?null:`HT ${e.match.HomeHalfScore}-${e.match.GuestHalfScore}`),w=$(()=>e.match.MatchState===ve.NotStarted?!1:Number(e.match.HomeScore)<Number(e.match.GuestScore)),b=$(()=>e.match.MatchState===ve.NotStarted?!1:Number(e.match.GuestScore)<Number(e.match.HomeScore)),S=$(()=>e.match.MatchState===ve.NotStarted?!1:Number(e.match.HomeScore)>Number(e.match.GuestScore)),O=$(()=>e.match.MatchState===ve.NotStarted?!1:Number(e.match.GuestScore)>Number(e.match.HomeScore)),T=$(()=>e.match.MatchState===ve.NotStarted?!1:Number(e.match.HomeScore)===Number(e.match.GuestScore)),M=se(!1),D=se({x:0,y:0});let P=null;const L=A=>{if(e.match.MatchState===ve.NotStarted)return;const x=A.currentTarget;P=setTimeout(()=>{const Y=x.getBoundingClientRect();D.value={x:Y.left+Y.width/2-140,y:Y.bottom+8},M.value=!0},200)},R=()=>{P&&(clearTimeout(P),P=null),M.value=!1};return(A,x)=>(B(),G(Ce,null,[H("div",Ta({class:"match-row"},Wd(k(l)),{onClick:s}),[H("div",Nq,[H("button",{onClick:po(o,["stop"]),class:"btn-favorite"},[t.match.isFavorite?(B(),G("svg",Yq,[...x[1]||(x[1]=[H("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"},null,-1)])])):(B(),G("svg",Bq,[...x[2]||(x[2]=[H("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)])]))])]),H("div",Hq,[H("div",Uq,[d.value?(B(),G("span",zq,ce(d.value),1)):Se("",!0),pa(" "+ce(h.value),1)]),H("div",Wq,[g.value?(B(),G("span",Vq,[pa(ce(y.value.replace("'","")),1),x[3]||(x[3]=H("span",{class:"minute-symbol"},"'",-1))])):(B(),G("span",Gq,ce(y.value),1)),Number(t.match.MatchState)>0?(B(),G("div",jq,[(B(),G("svg",qq,[H("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM10.6935 15.8458L15.4137 13.059C16.1954 12.5974 16.1954 11.4026 15.4137 10.941L10.6935 8.15419C9.93371 7.70561 9 8.28947 9 9.21316V14.7868C9 15.7105 9.93371 16.2944 10.6935 15.8458Z",fill:t.match.RapidEventID?"#e8503a":"#09B363"},null,8,Kq)])),H("div",Qq,[(B(!0),G(Ce,null,at(k(r),(Y,U)=>(B(),G("a",{key:Y+"-"+U,class:"live_icon_popup--item",onClick:x[0]||(x[0]=po(()=>{},["stop"])),href:k(n)(Y.name,Y.domain,t.match.RapidEventID,t.match.ScheduleID,t.match.homeTeam,t.match.guestTeam),target:"_blank",rel:"nofollow noopener noreferrer"},[H("img",{src:Y.logo,alt:"",width:"36",height:"16",style:{"background-color":"black","margin-right":"4px"}},null,8,Zq),H("span",Jq,ce(Y.name),1)],8,Xq))),128))])])):Se("",!0)])]),H("div",eK,[H("div",tK,[ge(Ko,{src:t.match.HomeImage,"image-size":"sm",class:"team-logo"},null,8,["src"]),H("span",rK,ce(t.match.homeTeam),1)]),H("div",{class:"match-score desktop-score",onMouseenter:L,onMouseleave:R},[t.match.MatchState===k(ve).NotStarted?(B(),G(Ce,{key:0},[pa(" - ")],64)):(B(),G(Ce,{key:1},[H("span",{class:be({"score-lose":w.value})},ce(t.match.HomeScore),3),x[4]||(x[4]=H("span",{class:"score-separator"}," - ",-1)),H("span",{class:be({"score-lose":b.value})},ce(t.match.GuestScore),3)],64)),M.value?(B(),me(Fq,{key:2,matchId:t.match.ScheduleID,homeTeam:t.match.homeTeam,awayTeam:t.match.guestTeam,homeLogo:t.match.HomeImage,awayLogo:t.match.GuestImage,positionX:D.value.x,positionY:D.value.y},null,8,["matchId","homeTeam","awayTeam","homeLogo","awayLogo","positionX","positionY"])):Se("",!0)],32),H("div",nK,[ge(Ko,{src:t.match.GuestImage,"image-size":"sm",class:"team-logo"},null,8,["src"]),H("span",aK,ce(t.match.guestTeam),1)])]),H("div",iK,[t.match.MatchState===k(ve).NotStarted?(B(),G(Ce,{key:0},[],64)):(B(),G(Ce,{key:1},[H("div",{class:be(["score-home",{"score-lose":w.value}])},ce(t.match.HomeScore),3),H("div",{class:be(["score-guest",{"score-lose":b.value}])},ce(t.match.GuestScore),3)],64))]),H("div",oK,[p.value?(B(),G(Ce,{key:0},[H("div",{class:be(["odd-box",{highlight:S.value}])},ce(m(t.match.MatchState===k(ve).Finished?p.value.FirstUpodds:p.value.UpOdds)),3),H("div",{class:be(["odd-box",{highlight:T.value}])},ce(m(t.match.MatchState===k(ve).Finished?p.value.FirstGoal:p.value.Goal)),3),H("div",{class:be(["odd-box",{highlight:O.value}])},ce(m(t.match.MatchState===k(ve).Finished?p.value.FirstDownodds:p.value.DownOdds)),3)],64)):Se("",!0),H("img",{onClick:po(f,["stop"]),style:{"margin-left":"4px"},src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzU4ODFfMTI0NDApIj4KPHBhdGggZD0iTTMuNDUzMTIgMTAuMTkwNlY1Ljg5NTU1SDUuMDI1NDFWMTAuMTkwNkgzLjQ1MzEyWk04LjgyMTg5IDYuOTY5MzFWMTAuMTkwNkgxMC4zNzVWNi45NjkzMUg4LjgyMTg5Wk02LjEzNzUxIDMuNzQ4MDVWMTAuMTkwNkg3LjgwNTY2VjMuNzQ4MDVINi4xMzc1MVoiIGZpbGw9IiNGRjAxMDAiLz4KPHBhdGggZD0iTTcgMEM4Ljg1NjUyIDAgMTAuNjM3IDAuNzM3NDk4IDExLjk0OTcgMi4wNTAyNUMxMy4yNjI1I
95DMuMzYzMDEgMTQgNS4xNDM0OCAxNCA3QzE0IDguODU2NTIgMTMuMjYyNSAxMC42MzcgMTEuOTQ5NyAxMS45NDk3QzEwLjYzNyAxMy4yNjI1IDguODU2NTIgMTQgNyAxNEM1LjE0MzQ4IDE0IDMuMzYzMDEgMTMuMjYyNSAyLjA1MDI1IDExLjk0OTdDMC43Mzc0OTggMTAuNjM3IDAgOC44NTY1MiAwIDdDMCA1LjE0MzQ4IDAuNzM3NDk4IDMuMzYzMDEgMi4wNTAyNSAyLjA1MDI1QzMuMzYzMDEgMC43Mzc0OTggNS4xNDM0OCAwIDcgMFpNNyAwLjg3NUM1LjM3NTU1IDAuODc1IDMuODE3NjMgMS41MjAzMSAyLjY2ODk3IDIuNjY4OTdDMS41MjAzMSAzLjgxNzYzIDAuODc1IDUuMzc1NTUgMC44NzUgN0MwLjg3NSA4LjYyNDQ1IDEuNTIwMzEgMTAuMTgyNCAyLjY2ODk3IDExLjMzMUMzLjgxNzYzIDEyLjQ3OTcgNS4zNzU1NSAxMy4xMjUgNyAxMy4xMjVDOC42MjQ0NSAxMy4xMjUgMTAuMTgyNCAxMi40Nzk3IDExLjMzMSAxMS4zMzFDMTIuNDc5NyAxMC4xODI0IDEzLjEyNSA4LjYyNDQ1IDEzLjEyNSA3QzEzLjEyNSA1LjM3NTU1IDEyLjQ3OTcgMy44MTc2MyAxMS4zMzEgMi42Njg5N0MxMC4xODI0IDEuNTIwMzEgOC42MjQ0NSAwLjg3NSA3IDAuODc1WiIgZmlsbD0iI0ZGMDEwMCIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzU4ODFfMTI0NDAiPgo8cmVjdCB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",alt:"match-icon"}),H("div",sK,ce(_.value),1)])],16),t.match.note?(B(),G("div",uK,ce(t.match.note),1)):Se("",!0)],64))}}),cK=Ai(lK,[["__scopeId","data-v-11c2e0a9"]]),fK={class:"wpsport-skeleton"},hK={key:0,class:"wpsport-skeleton__tabs"},vK={class:"wpsport-skeleton__content"},dK={class:"wpsport-skeleton__league"},pK={class:"wpsport-skeleton__league"},hC=ze({__name:"SkeletonLoader",props:{rows:{},showTabs:{type:Boolean}},setup(t){return(e,r)=>(B(),G("div",fK,[t.showTabs?(B(),G("div",hK,[...r[0]||(r[0]=[CC('<div class="wpsport-skeleton__tab"></div><div class="wpsport-skeleton__tab"></div><div class="wpsport-skeleton__tab"></div><div class="wpsport-skeleton__tab"></div><div class="wpsport-skeleton__tab"></div>',5)])])):Se("",!0),H("div",vK,[H("div",dK,[r[1]||(r[1]=H("div",{class:"wpsport-skeleton__league-header"},null,-1)),(B(!0),G(Ce,null,at(t.rows||3,n=>(B(),G("div",{key:n,class:"wpsport-skeleton__match"}))),128))]),H("div",pK,[r[2]||(r[2]=H("div",{class:"wpsport-skeleton__league-header"},null,-1)),(B(!0),G(Ce,null,at(Math.max(1,(t.rows||3)-1),n=>(B(),G("div",{key:n,class:"wpsport-skeleton__match"}))),128))])])]))}}),YQ="v2y8m4zhodql074",A_=5,gK=5,BQ=30,HQ=20,yK={class:"sport-live-container"},mK={key:1,class:"state-message error"},_K={key:2,class:"state-message"},wK=ze({__name:"LiveScorePage",props:{hideLivestream:{type:Boolean}},setup(t){const e=Zo(),{data:r,dataRaw:n,isLoading:a,isError:i}=RO(),o=se(null),s=se(A_),u=$(()=>{const m=e.clientFilters.matchType,_=(()=>{switch(m){case"live":return r.groupedByLeagueLive.value;case"result":return r.groupedByLeagueFT.value;case"early":return r.groupedByLeagueSchedule.value;case"all":default:return r.groupedByLeague.value}})();return BF(_)}),l=$(()=>u.value.slice(0,s.value)),c=$(()=>s.value<u.value.length);let f=null;const v=se(null),h=()=>{c.value&&(s.value=Math.min(s.value+gK,u.value.length))};Da(()=>{f=new IntersectionObserver(m=>{m[0].isIntersecting&&h()},{rootMargin:"200px"}),v.value&&f.observe(v.value)}),Xo(()=>{f==null||f.disconnect()}),Be(()=>e.clientFilters.matchType,()=>{s.value=A_,o.value&&(o.value.scrollTop=0)}),Be(v,m=>{m&&f&&(f.disconnect(),f.observe(m))});const d=$(()=>i.matches.value),y=Qo(new Set),g=m=>y.has(m),p=m=>{y.has(m)?y.delete(m):y.add(m)};return(m,_)=>(B(),G("div",yK,[ge(oq,{"countries-with-leagues":k(r).countriesWithLeagues.value,hideLivestream:t.hideLivestream},null,8,["countries-with-leagues","hideLivestream"]),k(a).matches.value?(B(),me(hC,{key:0})):d.value?(B(),G("div",mK,"Lỗi khi tải trận đấu. Thử lại sau.")):u.value.length===0?(B(),G("div",_K," Không tìm thấy trận đấu phù hợp. ")):(B(),G("div",{key:3,ref_key:"containerRef",ref:o,class:"match-list-scroll"},[(B(!0),G(Ce,null,at(l.value,w=>(B(),G(Ce,{key:w.sclassID},[ge(_q,{league:w,countries:k(n).countries.value,expanded:!g(w.sclassID),onToggle:b=>p(w.sclassID)},null,8,["league","countries","expanded","onToggle"]),g(w.sclassID)?Se("",!0):(B(!0),G(Ce,{key:0},at(w.matches,b=>(B(),me(cK,{key:b.ScheduleID,match:b},null,8,["match"]))),128))],64))),128)),c.value?(B(),G("div",{key:0,ref_key:"loadMoreTrigger",ref:v,class:"load-more-trigger"},[..._[0]||(_[0]=[H("span",{class:"loading-text"},"Loading more...",-1)])],512)):Se("",!0)],512))]))}}),E_=Ai(wK,[["__scopeId","data-v-ba9ec2d8"]]),bK={id:"wp-sport-app"},SK=ze({__name:"App",setup(t){const e=ye=>MC({loader:ye,loadingComponent:hC,delay:100}),r=e(()=>_t(()=>
95import("./MatchDetailPage-Dja0EwLr.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),n=e(()=>_t(()=>import("./LeaguePage-DdEfn0Zz.js"),__vite__mapDeps([6,4,7,1,8,9,2,3,10,11,12,13,14,15,16]),import.meta.url)),a=e(()=>_t(()=>import("./LeagueListPage-DrQg-oeR.js"),__vite__mapDeps([17,1,15,18]),import.meta.url)),i=e(()=>_t(()=>import("./TeamPage-DTXkNhJ9.js"),__vite__mapDeps([19,1,20]),import.meta.url)),o=e(()=>_t(()=>import("./PlayerPage-BjtH9aMK.js"),__vite__mapDeps([21,1,22]),import.meta.url)),s=e(()=>_t(()=>import("./SixInOnePage-DSpiTVQW.js"),__vite__mapDeps([23,1,12,13,14,24]),import.meta.url)),u=e(()=>_t(()=>import("./LiveSliderPage-BLtclb-3.js"),__vite__mapDeps([25,1,26]),import.meta.url)),l=e(()=>_t(()=>import("./LivescoreBongdakoPage-1qflMh0z.js"),__vite__mapDeps([27,1,28]),import.meta.url)),c=e(()=>_t(()=>import("./HotPickLeaguePage-CBeLBZX0.js"),__vite__mapDeps([29,7,1,30,11,9,14,31,32,8,4,33,34,3,35,36,37,38]),import.meta.url)),f=e(()=>_t(()=>import("./HotPickCarouselPage-C74EZb-L.js"),__vite__mapDeps([39,7,1,30,11,9,14,31,40]),import.meta.url)),v=e(()=>_t(()=>import("./HotPickSchedulePage-Bin0zWs2.js"),__vite__mapDeps([41,7,1,32,8,9,4,33,42]),import.meta.url)),h=e(()=>_t(()=>import("./HotPickStandingsPage-0FSQQj9M.js"),__vite__mapDeps([43,7,1,34,3,4,35,44]),import.meta.url)),d=e(()=>_t(()=>import("./HotPickResultsPage-BenFAt0S.js"),__vite__mapDeps([45,7,1,36,8,9,4,37,46]),import.meta.url)),y=e(()=>_t(()=>
95import("./HotMatchesPage-D8Vm31Za.js"),__vite__mapDeps([47,10,1,48]),import.meta.url)),g=e(()=>_t(()=>import("./BxhFifaPage-87_cxSPc.js"),__vite__mapDeps([49,1,50]),import.meta.url)),p=Sg(),m=Zo(),_=yr("containerEl"),w=(_==null?void 0:_.dataset.page)||"livescore",b=(_==null?void 0:_.dataset.matchId)||"",S=(_==null?void 0:_.dataset.teamId)||"",O=(_==null?void 0:_.dataset.leagueId)||"",T=(_==null?void 0:_.dataset.playerId)||"",M=(_==null?void 0:_.dataset.topLeagues)||"",D=(_==null?void 0:_.dataset.sections)||"",P=(_==null?void 0:_.dataset.hideInfo)==="1",L=(_==null?void 0:_.dataset.tabs)||"",R=(_==null?void 0:_.dataset.leagues)||"",I=(_==null?void 0:_.dataset.leaguesNamed)||"",A=(_==null?void 0:_.dataset.groupByDate)==="1",x=(_==null?void 0:_.dataset.hideLivestream)==="1",Y=(_==null?void 0:_.dataset.activeTab)||"",U=(_==null?void 0:_.dataset.iframeProfile)||"",q=(_==null?void 0:_.dataset.initialStatus)||"all",N=Number(_==null?void 0:_.dataset.cupColumns)||1,Q=(_==null?void 0:_.dataset.betLink)||"",V=(_==null?void 0:_.dataset.viewAllLink)||"",ne=(_==null?void 0:_.dataset.viewAllScheduleLink)||V,ee=(_==null?void 0:_.dataset.viewAllStandingsLink)||V,ue=(_==null?void 0:_.dataset.viewAllResultsLink)||V;return p.initFromDataAttrs(w,{matchId:b,teamId:S,leagueId:O,playerId:T,activeTab:Y}),q!=="all"&&m.setMatchType(q),(ye,de)=>(B(),G("div",bK,[k(p).currentPage==="livescore"?(B(),me(E_,{key:0,hideLivestream:x})):k(p).currentPage==="matchdetail"?(B(),me(k(r),{key:1,matchId:k(p).matchId,activeTab:k(p).activeTab},null,8,["matchId","activeTab"])):k(p).currentPage==="league"?(B(),me(k(n),{key:2,leagueId:k(p).leagueId,activeTab:k(p).activeTab,hideInfo:P,visibleTabs:k(L),leagueIds:k(R),leaguesNamed:k(I),groupByDate:A,cupColumns:k(N)},null,8,["leagueId","activeTab","visibleTabs","leagueIds","leaguesNamed","cupColumns"])):k(p).currentPage==="league-list"?(B(),me(k(a),{key:3,topLeagueIds:k(M)},null,8,["topLeagueIds"])):k(p).currentPage==="team"?(B(),me(k(i),{key:4,teamId:k(p).teamId},null,8,["teamId"])):k(p).currentPage==="player"?(B(),me(k(o),{key:5,playerId:k(p).playerId},null,8,["playerId"])):k(p).currentPage==="six-in-one"?(B(),me(k(s),{key:6,sections:k(D),hideLivestream:x,leagues:k(R)},null,8,["sections","leagues"])):k(p).currentPage==="live-slider"?(B(),me(k(u),{key:7,iframeProfile:k(U)},null,8,["iframeProfile"])):k(p).currentPage==="livescore-bongdako"?(B(),me(k(l),{key:8})):k(p).currentPage==="hot-matches"?(B(),me(k(y),{key:9})):k(p).currentPage==="bxh-fifa"?(B(),me(k(g),{key:10})):k(p).currentPage==="hot-pick-league"||k(p).currentPage==="hot-pick-worldcup"?(B(),me(k(c),{key:11,leagueId:k(p).leagueId,betLink:k(Q)||void 0,viewAllScheduleLink:k(ne)||void 0,viewAllStandingsLink:k(ee)||void 0,viewAllResultsLink:k(ue)||void 0},null,8,["leagueId","betLink","viewAllScheduleLink","viewAllStandingsLink","viewAllResultsLink"])):k(p).currentPage==="hotpick-carousel"?(B(),me(k(f),{key:12,leagueId:k(p).leagueId,betLink:k(Q)||void 0},null,8,["leagueId","betLink"])):k(p).currentPage==="hotpick-schedule"?(B(),me(k(v),{key:13,leagueId:k(p).leagueId,betLink:k(Q)||void 0,viewAllScheduleLink:k(ne)||void 0},null,8,["leagueId","betLink","viewAllScheduleLink"])):k(p).currentPage==="hotpick-standings"?(B(),me(k(h),{key:14,leagueId:k(p).leagueId,viewAllStandingsLink:k(ee)||void 0},null,8,["leagueId","viewAllStandingsLink"])):k(p).currentPage==="hotpick-results"?(B(),me(k(d),{key:15,leagueId:k(p).leagueId,betLink:k(Q)||void 0,viewAllResultsLink:k(ue)||void 0},null,8,["leagueId","betLink","viewAllResultsLink"])):(B(),me(E_,{key:16,hideLivestream:x}))]))}}),DK=document.querySelectorAll(".wp-sport-app");DK.forEach(t=>{const e=PC(SK);e.use(fM()),e.use(iM,{queryClient:lw}),e.provide("containerEl",t),e.mount(t)});export{DQ as $,ke as A,pn as B,ux as C,vx as D,bx as E,Jt as F,Nt as G,ix as H,sr as I,gp as J,op as K,tQ as L,Rt as M,PS as N,Zc as O,dc as P,Qe as Q,nk as R,Di as S,Jv as T,ed as U,eQ as V,iS as W,KK as X,wL as Y,ZK as Z,Ae as _,GO as a,Qx as a$,Ii as a0,XK as a1,jK as a2,_r as a3,oS as a4,SQ as a5,rs as a6,hS as a7,eI as a8,Tp as a9,$Q as aA,dF as aB,kQ as aC,ns as aD,xQ as aE,LQ as aF,ku as aG,ED as aH,I
95Q as aI,EQ as aJ,vF as aK,hF as aL,MQ as aM,YS as aN,mc as aO,Nn as aP,yt as aQ,yc as aR,cm as aS,zK as aT,xb as aU,cp as aV,Ux as aW,i$ as aX,IS as aY,sQ as aZ,fQ as a_,fn as aa,ak as ab,ta as ac,hu as ad,nQ as ae,Ft as af,Ke as ag,vb as ah,uu as ai,bL as aj,gS as ak,Js as al,JK as am,qK as an,Rp as ao,VL as ap,WL as aq,zL as ar,Ym as as,HL as at,pL as au,lt as av,Yp as aw,ut as ax,AQ as ay,OQ as az,zO as b,CQ as b$,hQ as b0,Xx as b1,Ch as b2,Gx as b3,zx as b4,Wx as b5,Vx as b6,oQ as b7,$u as b8,uQ as b9,Ws as bA,rt as bB,BK as bC,OA as bD,yo as bE,kK as bF,Uo as bG,xm as bH,UL as bI,nf as bJ,AL as bK,XA as bL,lb as bM,kl as bN,HK as bO,yQ as bP,gQ as bQ,rQ as bR,xK as bS,SL as bT,DL as bU,kr as bV,JE as bW,kL as bX,QK as bY,NL as bZ,TQ as b_,cQ as ba,xr as bb,vQ as bc,FS as bd,a$ as be,RS as bf,n$ as bg,kS as bh,r$ as bi,$S as bj,t$ as bk,xS as bl,e$ as bm,LS as bn,Jx as bo,Zx as bp,dQ as bq,UK as br,oA as bs,lQ as bt,fp as bu,Fe as bv,_o as bw,FK as bx,YK as by,NK as bz,WO as c,LK as c$,gk as c0,Cy as c1,cS as c2,o$ as c3,Le as c4,Jc as c5,pQ as c6,$v as c7,Or as c8,aQ as c9,Yn as cA,qy as cB,wa as cC,sp as cD,L0 as cE,$K as cF,R0 as cG,Sd as cH,zR as cI,md as cJ,tb as cK,PQ as cL,jO as cM,VO as cN,qr as cO,Kw as cP,RQ as cQ,dq as cR,Sg as cS,YF as cT,Ye as cU,Fj as cV,ve as cW,Ko as cX,O_ as cY,o1 as cZ,FQ as c_,l$ as ca,iQ as cb,wQ as cc,Xt as cd,VK as ce,yl as cf,hd as cg,Ln as ch,bQ as ci,mQ as cj,_Q as ck,Zt as cl,s$ as cm,Bb as cn,ef as co,mr as cp,_$ as cq,hm as cr,Bl as cs,AI as ct,jb as cu,vS as cv,dS as cw,PR as cx,RK as cy,rn as cz,He as d,cC as d0,Rc as d1,Ct as d2,ct as d3,NO as d4,_y as d5,wy as d6,wM as d7,Zo as d8,Yc as d9,zf as dA,mw as da,hC as db,NQ as dc,Vp as dd,fC as de,lw as df,FO as dg,pq as dh,my as di,_w as dj,Rj as dk,pw as dl,RO as dm,EK as dn,AK as dp,Hg as dq,IK as dr,Yj as ds,BQ as dt,HQ as du,BF as dv,A_ as dw,gK as dx,YQ as dy,by as dz,z as e,UO as f,ie as g,rr as h,Te as i,Ee as j,mt as k,sx as l,Xe as m,er as n,Dx as o,WK as p,Mi as q,Re as r,hx as s,pe as t,so as u,en as v,ft as w,GK as x,it as y,rb as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.