79 lines
1.1 MiB
79 lines
1.1 MiB
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/blank-CMTlG4KS.js","assets/_plugin-vue_export-helper-B2no-pU9.js","assets/vue.runtime.esm-bundler-DQjudA8G.js","assets/default-BZC6m2oi.js","assets/iconify-B5QdRg7l.js","assets/dist-t_U6YImb.js","assets/Teleport-CLYBkdRb.js","assets/useForwardProps-B-1JXcFn.js","assets/createContext-BefgL9WT.js","assets/Presence-C1RtYpyR.js","assets/Primitive-jhoGcsVx.js","assets/useForwardPropsEmits-ixfQllIc.js","assets/useForwardExpose-OKJAPp5E.js","assets/monisuo-admin.api-BMEy8kfy.js","assets/useMutation-Do6Zc9nc.js","assets/Button-2mdP_ygs.js","assets/utils-BB02OBq2.js","assets/createLucideIcon-BpvmDsEE.js","assets/badge-check-BijlgjzK.js","assets/use-sidebar-jlDzOsxR.js","assets/chevron-right-7JHpBKZy.js","assets/chevrons-up-down-BK2WDZKi.js","assets/toggle-theme-CegtD1Vn.js","assets/DropdownMenuTrigger-DwFmoisn.js","assets/PopperContent-BHqsUegM.js","assets/Collection-CEQN_ElG.js","assets/usePrimitiveElement-BKQPgqfD.js","assets/RovingFocusGroup-BI5E2MOD.js","assets/useArrowNavigation-Cq05LxDE.js","assets/useId-C1k6kJxi.js","assets/DropdownMenuLabel-DVsXbHnu.js","assets/DropdownMenuRadioItem-BUJVkN3D.js","assets/circle-C6c1ynCZ.js","assets/plus-Bv8BsAKJ.js","assets/PopoverTrigger-BfM2baJk.js","assets/useFormControl-CyMrrgSu.js","assets/DialogContent-BgxXKbvY.js","assets/DialogTitle-C0_ATj0B.js","assets/DialogDescription-BubwK6c2.js","assets/Separator-5drwYWrN.js","assets/VisuallyHiddenInput-syf01z94.js","assets/VisuallyHidden-CP6GE8eS.js","assets/sparkles-uRRS0EzZ.js","assets/AvatarFallback-DRYGIWWm.js","assets/AvatarImage-BMo9jZco.js","assets/DialogTrigger-B1p_n6lc.js","assets/DropdownMenuGroup-DBb9420y.js","assets/Label-D9NotKz_.js","assets/TooltipTrigger-Lz7dAK20.js","assets/DropdownMenuShortcut-Tsorc8bI.js","assets/empty-BqwW8_CX.js","assets/use-auth-CYWl8dOd.js","assets/marketing-CblqIyi4.js","assets/sign-up-button-BuZSae5V.js","assets/marketing-DyYEH4ET.css","assets/pages-Dv-ehIUk.js","assets/route-block-B_uS4-sj.js","assets/_...path_--hBBhOWH.js","assets/custom-error-EOQ3J3gP.js","assets/ai-talk-Dzzgvb7m.js","assets/arrow-up-Caf_Ub-R.js","assets/refresh-ccw-B1pGpJZm.js","assets/RovingFocusItem-4bA-dcrz.js","assets/isValueEqualOrExist-CCbNmJVe.js","assets/lib-Cz3jviUu.js","assets/Textarea-DpC456Mi.js","assets/TooltipProvider-yfPVkQ8B.js","assets/apps-DZpITRQ7.js","assets/SelectContent-Bb2H68dj.js","assets/check-igezbCYp.js","assets/chevron-down-BUUuPGpi.js","assets/global-layout-BuXj6D-T.js","assets/Card-Cv6HQPiQ.js","assets/CardContent-cvoMlP3H.js","assets/CardHeader-JyQWjCMQ.js","assets/Input-dHyiQP9I.js","assets/auth-BtCfhGjJ.js","assets/auth-B4ff_GWT.js","assets/forgot-password-amCfawsw.js","assets/CardFooter-BXCq_TYq.js","assets/auth-title-CWjARZIA.js","assets/monisuo-sign-in-B3wOhg65.js","assets/Spinner-BbvbfTgK.js","assets/Checkbox-DtKJOwrj.js","assets/otp-RmrxEFFV.js","assets/sign-in-w56jdFeb.js","assets/terms-of-service-button-CSuAJAmJ.js","assets/login-form-BfzTr-Ak.js","assets/sign-in-2-BjlOMZz3.js","assets/sign-up-CEiP85AD.js","assets/billing-Ba3Gt545.js","assets/data-table-CPfS6m9C.js","assets/circle-plus-NNqJGb9c.js","assets/arrow-left-CsmuzRTg.js","assets/arrow-right-CS4G_pjU.js","assets/chevron-left-C-v31YiE.js","assets/Badge-Df1MwAP1.js","assets/TableHeader-Ma-zEBcz.js","assets/data-BslsFGOd.js","assets/modal-DVNHdNcC.js","assets/DialogFooter-k3s4IxA-.js","assets/dashboard-CnaOJdkw.js","assets/TabsTrigger-CSBrc3A_.js","assets/errors-D5EVPI9N.js","assets/errors-DogkSAwy.js","assets/401-1hBBRNHs.js","assets/403-C9Bm6JLD.js","assets/404-DWkZxnwT.js","assets/500-D_eEsISP.js","assets/503-TOQI2p6_.js","assets/help-center-dlbizL7O.js","assets/alert-BBGd1zjy.js","assets/marketing-DPFj0wnl.js","assets/marketing-BiAqvMPK.css","assets/hello-HvpjFX2g.js","assets/analytics-6feOrkzj.js","assets/coins-0eWuEPsE.js","assets/dashboard-Bg07rgRO.js","assets/orders-BMSnsW_u.js","assets/users-BzlTGk87.js","assets/prop-components-Ox-FRmTX.js","assets/settings-Dk3H9hkV.js","assets/FormMessage-DO2c5bWz.js","assets/SelectGroup-CFM1aDq9.js","assets/FormDescription-DwQJgDgd.js","assets/settings-layout-DVMhlnCW.js","assets/account-CM76XAov.js","assets/appearance-EX9f5qtw.js","assets/RadioGroupItem-DnFkEnO6.js","assets/display-DuU_Wjhi.js","assets/notifications-DMwOhSyp.js","assets/tasks-1TGSN81P.js","assets/task-resource-dialog-CsKVJ_cH.js","assets/users-C38xL-P1.js","assets/user-resource-B89-tw-N.js"])))=>i.map(i=>d[i]);
|
||
import{$ as e,At as t,B as n,Ct as r,D as i,F as a,I as o,L as s,Mt as c,N as l,O as u,P as d,Q as f,R as p,S as m,T as h,U as g,W as _,Z as v,_ as y,_t as b,b as x,bt as S,ct as C,d as w,dt as T,f as E,ft as D,g as O,ht as k,jt as A,k as j,lt as ee,m as te,mt as ne,n as re,nt as ie,ot as ae,p as oe,st as se,t as ce,ut as le,v as ue,vt as de,w as fe,xt as pe,yt as M,z as me}from"./vue.runtime.esm-bundler-DQjudA8G.js";import{t as he}from"./createLucideIcon-BpvmDsEE.js";import{n as ge,t as _e}from"./Spinner-BbvbfTgK.js";import{t as ve}from"./utils-BB02OBq2.js";import{t as ye}from"./_plugin-vue_export-helper-B2no-pU9.js";import{n as be,t as xe}from"./lib-Cz3jviUu.js";import{p as Se}from"./dist-t_U6YImb.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Ce=he(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),we=he(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Te=he(`move-horizontal`,[[`path`,{d:`m18 8 4 4-4 4`,key:`1ak13k`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}]]),Ee=he(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),De=he(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Oe=he(`unfold-horizontal`,[[`path`,{d:`M16 12h6`,key:`15xry1`}],[`path`,{d:`M8 12H2`,key:`1jqql6`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m19 15 3-3-3-3`,key:`wjy7rq`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}]]),ke=he(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Ae={};function je(e,t){let n=_e;return me(),ue(n,{class:`w-24 h-24 animate-spin`})}var Me=ye(Ae,[[`render`,je]]),Ne=fe({__name:`Sonner`,props:{id:{},invert:{type:Boolean},theme:{},position:{},closeButtonPosition:{},hotkey:{},richColors:{type:Boolean},expand:{type:Boolean},duration:{},gap:{},visibleToasts:{},closeButton:{type:Boolean},toastOptions:{},class:{},style:{},offset:{},mobileOffset:{},dir:{},swipeDirections:{},icons:{},containerAriaLabel:{}},setup(e){let t=e;return(e,n)=>(me(),ue(r(xe),l({class:r(ve)(`toaster group`,t.class),style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`}},t),{"success-icon":ie(()=>[m(r(Ce),{class:`size-4`})]),"info-icon":ie(()=>[m(r(we),{class:`size-4`})]),"warning-icon":ie(()=>[m(r(De),{class:`size-4`})]),"error-icon":ie(()=>[m(r(Ee),{class:`size-4`})]),"loading-icon":ie(()=>[y(`div`,null,[m(r(ge),{class:`size-4 animate-spin`})])]),"close-icon":ie(()=>[m(r(ke),{class:`size-4`})]),_:1},16,[`class`]))}}),Pe=typeof window<`u`,Fe,Ie=e=>Fe=e,Le=Symbol();function Re(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var ze;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(ze||={});var Be=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Ve(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function He(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){qe(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Ue(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function We(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var Ge=typeof navigator==`object`?navigator:{userAgent:``},Ke=/Macintosh/.test(Ge.userAgent)&&/AppleWebKit/.test(Ge.userAgent)&&!/Safari/.test(Ge.userAgent),qe=Pe?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Ke?Je:`msSaveOrOpenBlob`in Ge?Ye:Xe:()=>{};function Je(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?We(r):Ue(r.href)?He(e,t,n):(r.target=`_blank`,We(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){We(r)},0))}function Ye(e,t=`download`,n){if(typeof e==`string`)if(Ue(e))He(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){We(t)})}else navigator.msSaveOrOpenBlob(Ve(e,n),t)}function Xe(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return He(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Be.HTMLElement))||`safari`in Be,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||Ke)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Ze}=Object;function Qe(){let e=ae(!0),t=e.run(()=>ne({})),n=[],r=[],i=le({install(e){Ie(i),i._a=e,e.provide(Le,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var $e=()=>{};function et(e,t,n,r=$e){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&se()&&T(i),i}function tt(e,...t){e.forEach(e=>{e(...t)})}var nt=e=>e(),rt=Symbol(),it=Symbol();function at(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];Re(i)&&Re(r)&&e.hasOwnProperty(n)&&!ee(r)&&!C(r)?e[n]=at(i,r):e[n]=r}return e}var ot=Symbol();function st(e){return!Re(e)||!Object.prototype.hasOwnProperty.call(e,ot)}var{assign:ct}=Object;function lt(e){return!!(ee(e)&&e.effect)}function ut(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),ct(S(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=le(O(()=>{Ie(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=dt(e,l,t,n,r,!0),c}function dt(e,t,n={},r,i,a){let o,s=ct({actions:{}},n),c={deep:!0},l,u,p=new Set,m=new Set,h=r.state.value[e];!a&&!h&&(r.state.value[e]={}),ne({});let g;function _(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:ze.patchFunction,storeId:e,events:void 0}):(at(r.state.value[e],t),n={type:ze.patchObject,payload:t,storeId:e,events:void 0});let i=g=Symbol();d().then(()=>{g===i&&(l=!0)}),u=!0,tt(p,n,r.state.value[e])}let v=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{ct(e,t)})}:$e;function y(){o.stop(),p.clear(),m.clear(),r._s.delete(e)}let b=(t,n=``)=>{if(rt in t)return t[it]=n,t;let i=function(){Ie(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}tt(m,{args:n,name:i[it],store:x,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:x,n)}catch(e){throw tt(o,e),e}return l instanceof Promise?l.then(e=>(tt(a,e),e)).catch(e=>(tt(o,e),Promise.reject(e))):(tt(a,l),l)};return i[rt]=!0,i[it]=n,i},x=D({_p:r,$id:e,$onAction:et.bind(null,m),$patch:_,$reset:v,$subscribe(t,n={}){let i=et(p,t,n.detached,()=>a()),a=o.run(()=>f(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:ze.direct,events:void 0},r)},ct({},c,n)));return i},$dispose:y});r._s.set(e,x);let S=(r._a&&r._a.runWithContext||nt)(()=>r._e.run(()=>(o=ae()).run(()=>t({action:b}))));for(let t in S){let n=S[t];ee(n)&&!lt(n)||C(n)?a||(h&&st(n)&&(ee(n)?n.value=h[t]:at(n,h[t])),r.state.value[e][t]=n):typeof n==`function`&&(S[t]=b(n,t),s.actions[t]=n)}return ct(x,S),ct(de(x),S),Object.defineProperty(x,`$state`,{get:()=>r.state.value[e],set:e=>{_(t=>{ct(t,e)})}}),r._p.forEach(e=>{ct(x,o.run(()=>e({store:x,app:r._a,pinia:r,options:s})))}),h&&a&&n.hydrate&&n.hydrate(x.$state,h),l=!0,u=!0,x}function ft(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=u();return n||=o?j(Le,null):null,n&&Ie(n),n=Fe,n._s.has(e)||(i?dt(e,t,r,n):ut(e,r,n)),n._s.get(e)}return a.$id=e,a}function pt(e){let t=de(e),n={};for(let r in t){let i=t[r];i.effect?n[r]=O({get:()=>e[r],set(t){e[r]=t}}):(ee(i)||C(i))&&(n[r]=M(e,r))}return n}var mt=[`zinc`,`red`,`rose`,`orange`,`green`,`blue`,`yellow`,`violet`],ht=[{theme:`zinc`,primaryColor:`oklch(44.2% 0.017 285.786)`},{theme:`red`,primaryColor:`oklch(57.7% 0.245 27.325)`},{theme:`rose`,primaryColor:`oklch(0.645 0.246 16.439)`},{theme:`orange`,primaryColor:`oklch(0.705 0.213 47.604)`},{theme:`green`,primaryColor:`oklch(0.723 0.219 149.579)`},{theme:`blue`,primaryColor:`oklch(48.8% 0.243 264.376)`},{theme:`yellow`,primaryColor:`oklch(68.1% 0.162 75.834)`},{theme:`violet`,primaryColor:`oklch(0.606 0.25 292.717)`}],gt=[0,.25,.5,.75,1],_t=[{label:`Full`,value:`full`,icon:Oe},{label:`Centered`,value:`centered`,icon:Te}],vt=ft(`system-config`,()=>{let e=ne(.5);function t(t){e.value=t}let n=ne(`zinc`);function r(e){n.value=e}let i=ne(`centered`);function a(e){i.value=e}return{radius:e,setRadius:t,theme:n,setTheme:r,contentLayout:i,setContentLayout:a}},{persist:!0});function yt(){let e=vt(),{setTheme:t,setRadius:n}=e,{theme:r,radius:i}=pt(e);return typeof document<`u`&&(f(r,e=>{document.documentElement.classList.remove(...mt.map(e=>`theme-${e}`)),document.documentElement.classList.add(`theme-${e}`)},{immediate:!0}),f(i,e=>{document.documentElement.style.setProperty(`--radius`,`${e}rem`)},{immediate:!0})),{theme:r,radius:i,setTheme:t,setRadius:n}}var bt=fe({__name:`App`,setup(e){return yt(),(e,t)=>{let n=g(`router-view`);return me(),x(w,null,[m(r(Ne)),(me(),ue(E,null,{fallback:ie(()=>[m(Me)]),default:ie(()=>[m(n,null,{default:ie(({Component:e,route:t})=>[(me(),ue(_(e),{key:t}))]),_:1})]),_:1}))],64)}}}),xt=new Set,St=new WeakMap,Ct=new WeakMap,wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap,Dt=new WeakMap,Ot=new WeakMap,kt=new WeakMap,At=new WeakSet,jt,Mt=0,Nt=0,Pt=`__aa_tgt`,Ft=`__aa_del`,It=`__aa_new`,Lt=e=>{let t=qt(e);t&&t.forEach(e=>Yt(e))},Rt=e=>{e.forEach(e=>{e.target===jt&&Ht(),St.has(e.target)&&Vt(e.target)})};function zt(e){let t=e.getBoundingClientRect(),n=jt?.clientWidth||0,r=jt?.clientHeight||0;return t.bottom<0||t.top>r||t.right<0||t.left>n}function Bt(e){Tt.get(e)?.disconnect();let t=St.get(e),n=0;t||(t=Qt(e),St.set(e,t));let{offsetWidth:r,offsetHeight:i}=jt,a=[t.top-5,r-(t.left+5+t.width),i-(t.top+5+t.height),t.left-5].map(e=>`${-1*Math.floor(e)}px`).join(` `),o=new IntersectionObserver(()=>{++n>1&&Vt(e)},{root:jt,threshold:1,rootMargin:a});o.observe(e),Tt.set(e,o)}function Vt(e,t=!0){clearTimeout(kt.get(e));let n=en(e),r=t?on(n)?500:n.duration:0;kt.set(e,setTimeout(async()=>{let t=wt.get(e);try{await t?.finished,St.set(e,Qt(e)),Bt(e)}catch{}},r))}function Ht(){clearTimeout(kt.get(jt)),kt.set(jt,setTimeout(()=>{xt.forEach(e=>rn(e,e=>Wt(()=>Vt(e))))},100))}function Ut(e){setTimeout(()=>{Dt.set(e,setInterval(()=>Wt(Vt.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function Wt(e){typeof requestIdleCallback==`function`?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}var Gt,Kt=typeof window<`u`&&`ResizeObserver`in window;Kt&&(jt=document.documentElement,new MutationObserver(Lt),Gt=new ResizeObserver(Rt),window.addEventListener(`scroll`,()=>{Nt=window.scrollY,Mt=window.scrollX}),Gt.observe(jt));function qt(e){return e.reduce((e,t)=>[...e,...Array.from(t.addedNodes),...Array.from(t.removedNodes)],[]).every(e=>e.nodeName===`#comment`)?!1:e.reduce((e,t)=>{if(e===!1)return!1;if(t.target instanceof Element){if(Jt(t.target),!e.has(t.target)){e.add(t.target);for(let n=0;n<t.target.children.length;n++){let r=t.target.children.item(n);if(r){if(Ft in r)return!1;Jt(t.target,r),e.add(r)}}}if(t.removedNodes.length)for(let n=0;n<t.removedNodes.length;n++){let r=t.removedNodes[n];if(Ft in r)return!1;r instanceof Element&&(e.add(r),Jt(t.target,r),Ct.set(r,[t.previousSibling,t.nextSibling]))}}return e},new Set)}function Jt(e,t){!t&&!(Pt in e)?Object.defineProperty(e,Pt,{value:e}):t&&!(Pt in t)&&Object.defineProperty(t,Pt,{value:e})}function Yt(e){var t;let n=e.isConnected,r=St.has(e);n&&Ct.has(e)&&Ct.delete(e),wt.get(e)?.playState!==`finished`&&((t=wt.get(e))==null||t.cancel()),It in e?cn(e):r&&n?sn(e):r&&!n?un(e):cn(e)}function Xt(e){return Number(e.replace(/[^0-9.\-]/g,``))}function Zt(e){let t=e.parentElement;for(;t;){if(t.scrollLeft||t.scrollTop)return{x:t.scrollLeft,y:t.scrollTop};t=t.parentElement}return{x:0,y:0}}function Qt(e){let t=e.getBoundingClientRect(),{x:n,y:r}=Zt(e);return{top:t.top+r,left:t.left+n,width:t.width,height:t.height}}function $t(e,t,n){let r=t.width,i=t.height,a=n.width,o=n.height,s=getComputedStyle(e);if(s.getPropertyValue(`box-sizing`)===`content-box`){let e=Xt(s.paddingTop)+Xt(s.paddingBottom)+Xt(s.borderTopWidth)+Xt(s.borderBottomWidth),t=Xt(s.paddingLeft)+Xt(s.paddingRight)+Xt(s.borderRightWidth)+Xt(s.borderLeftWidth);r-=t,a-=t,i-=e,o-=e}return[r,a,i,o].map(Math.round)}function en(e){return Pt in e&&Ot.has(e[Pt])?Ot.get(e[Pt]):{duration:250,easing:`ease-in-out`}}function tn(e){if(Pt in e)return e[Pt]}function nn(e){let t=tn(e);return t?At.has(t):!1}function rn(e,...t){t.forEach(t=>t(e,Ot.has(e)));for(let n=0;n<e.children.length;n++){let r=e.children.item(n);r&&t.forEach(e=>e(r,Ot.has(r)))}}function an(e){return Array.isArray(e)?e:[e]}function on(e){return typeof e==`function`}function sn(e){let t=St.get(e),n=Qt(e);if(!nn(e))return St.set(e,n);if(zt(e)){St.set(e,n),Bt(e);return}let r;if(!t)return;let i=en(e);if(typeof i!=`function`){let a=t.left-n.left,o=t.top-n.top,s=t.left+t.width-(n.left+n.width);t.top+t.height-(n.top+n.height)==0&&(o=0),s==0&&(a=0);let[c,l,u,d]=$t(e,t,n),f={transform:`translate(${a}px, ${o}px)`},p={transform:`translate(0, 0)`};c!==l&&(f.width=`${c}px`,p.width=`${l}px`),u!==d&&(f.height=`${u}px`,p.height=`${d}px`),r=e.animate([f,p],{duration:i.duration,easing:i.easing})}else{let[a]=an(i(e,`remain`,t,n));r=new Animation(a),r.play()}wt.set(e,r),St.set(e,n),r.addEventListener(`finish`,Vt.bind(null,e,!1),{once:!0})}function cn(e){It in e&&delete e[It];let t=Qt(e);St.set(e,t);let n=en(e);if(!nn(e))return;if(zt(e)){Bt(e);return}let r;if(typeof n!=`function`)r=e.animate([{transform:`scale(.98)`,opacity:0},{transform:`scale(0.98)`,opacity:0,offset:.5},{transform:`scale(1)`,opacity:1}],{duration:n.duration*1.5,easing:`ease-in`});else{let[i]=an(n(e,`add`,t));r=new Animation(i),r.play()}wt.set(e,r),r.addEventListener(`finish`,Vt.bind(null,e,!1),{once:!0})}function ln(e,t){var n;e.remove(),St.delete(e),Ct.delete(e),wt.delete(e),(n=Tt.get(e))==null||n.disconnect(),setTimeout(()=>{if(Ft in e&&delete e[Ft],Object.defineProperty(e,It,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(let n in t)e.style[n]=``},0)}function un(e){var t;if(!Ct.has(e)||!St.has(e))return;let[n,r]=Ct.get(e);Object.defineProperty(e,Ft,{value:!0,configurable:!0});let i=window.scrollX,a=window.scrollY;if(r&&r.parentNode&&r.parentNode instanceof Element?r.parentNode.insertBefore(e,r):n&&n.parentNode?n.parentNode.appendChild(e):(t=tn(e))==null||t.appendChild(e),!nn(e))return ln(e);let[o,s,c,l]=fn(e),u=en(e),d=St.get(e);(i!==Mt||a!==Nt)&&dn(e,i,a,u);let f,p={position:`absolute`,top:`${o}px`,left:`${s}px`,width:`${c}px`,height:`${l}px`,margin:`0`,pointerEvents:`none`,transformOrigin:`center`,zIndex:`100`};if(!on(u))Object.assign(e.style,p),f=e.animate([{transform:`scale(1)`,opacity:1},{transform:`scale(.98)`,opacity:0}],{duration:u.duration,easing:`ease-out`});else{let[t,n]=an(u(e,`remove`,d));n?.styleReset!==!1&&(p=n?.styleReset||p,Object.assign(e.style,p)),f=new Animation(t),f.play()}wt.set(e,f),f.addEventListener(`finish`,()=>ln(e,p),{once:!0})}function dn(e,t,n,r){let i=Mt-t,a=Nt-n,o=document.documentElement.style.scrollBehavior;if(getComputedStyle(jt).scrollBehavior===`smooth`&&(document.documentElement.style.scrollBehavior=`auto`),window.scrollTo(window.scrollX+i,window.scrollY+a),!e.parentElement)return;let s=e.parentElement,c=s.clientHeight,l=s.clientWidth,u=performance.now();function d(){requestAnimationFrame(()=>{if(!on(r)){let e=c-s.clientHeight,t=l-s.clientWidth;u+r.duration>performance.now()?(window.scrollTo({left:window.scrollX-t,top:window.scrollY-e}),c=s.clientHeight,l=s.clientWidth,d()):document.documentElement.style.scrollBehavior=o}})}d()}function fn(e){let t=St.get(e),[n,,r]=$t(e,t,Qt(e)),i=e.parentElement;for(;i&&(getComputedStyle(i).position===`static`||i instanceof HTMLBodyElement);)i=i.parentElement;i||=document.body;let a=getComputedStyle(i),o=!wt.has(e)||wt.get(e)?.playState===`finished`?Qt(i):St.get(i);return[Math.round(t.top-o.top)-Xt(a.borderTopWidth),Math.round(t.left-o.left)-Xt(a.borderLeftWidth),n,r]}function pn(e,t={}){if(Kt&&Gt&&!(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&!on(t)&&!t.disrespectUserMotionPreference)){At.add(e),getComputedStyle(e).position===`static`&&Object.assign(e.style,{position:`relative`}),rn(e,Vt,Ut,e=>Gt?.observe(e)),on(t)?Ot.set(e,t):Ot.set(e,{duration:250,easing:`ease-in-out`,...t});let n=new MutationObserver(Lt);n.observe(e,{childList:!0}),Et.set(e,n),xt.add(e)}return Object.freeze({parent:e,enable:()=>{At.add(e)},disable:()=>{At.delete(e),rn(e,e=>{let t=wt.get(e);try{t?.cancel()}catch{}wt.delete(e);let n=kt.get(e);n&&clearTimeout(n),kt.delete(e);let r=Dt.get(e);r&&clearInterval(r),Dt.delete(e)})},isEnabled:()=>At.has(e),destroy:()=>{At.delete(e),xt.delete(e),Ot.delete(e),Et.get(e)?.disconnect(),Et.delete(e),rn(e,e=>{Gt?.unobserve(e);let t=wt.get(e);try{t?.cancel()}catch{}wt.delete(e),Tt.get(e)?.disconnect(),Tt.delete(e);let n=Dt.get(e);n&&clearInterval(n),Dt.delete(e);let r=kt.get(e);r&&clearTimeout(r),kt.delete(e),St.delete(e),Ct.delete(e)})}})}function mn(e){return{mounted(t,n){let r={},i=n.value;r=typeof i==`function`?i:typeof e==`function`?e:{...e||{},...i||{}};let a=pn(t,r);Object.defineProperty(t,`__aa_ctl`,{value:a,configurable:!0})},unmounted(e){var t;let n=e.__aa_ctl;(t=n?.destroy)==null||t.call(n);try{delete e.__aa_ctl}catch{}},getSSRProps:()=>({})}}var hn={install(e,t){e.directive(`auto-animate`,mn(t))}};function gn(e){e.use(hn)}var _n=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),vn=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){return function(e,t,n){e||={};var r=t.prototype,i={future:`in %s`,past:`%s ago`,s:`a few seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`};function a(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,a,o,s){for(var c,l,u,d=a.$locale().relativeTime||i,f=e.thresholds||[{l:`s`,r:44,d:`second`},{l:`m`,r:89},{l:`mm`,r:44,d:`minute`},{l:`h`,r:89},{l:`hh`,r:21,d:`hour`},{l:`d`,r:35},{l:`dd`,r:25,d:`day`},{l:`M`,r:45},{l:`MM`,r:10,d:`month`},{l:`y`,r:17},{l:`yy`,d:`year`}],p=f.length,m=0;m<p;m+=1){var h=f[m];h.d&&(c=o?n(t).diff(a,h.d,!0):a.diff(t,h.d,!0));var g=(e.rounding||Math.round)(Math.abs(c));if(u=c>0,g<=h.r||!h.r){g<=1&&m>0&&(h=f[m-1]);var _=d[h.l];s&&(g=s(``+g)),l=typeof _==`string`?_.replace(`%d`,g):_(g,r,h.l,u);break}}if(r)return l;var v=u?d.future:d.past;return typeof v==`function`?v(l):v.replace(`%s`,l)},r.to=function(e,t){return a(e,t,this,!0)},r.from=function(e,t){return a(e,t,this)};var o=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(o(this),e)},r.fromNow=function(e){return this.from(o(this),e)}}}))})),yn=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(_n()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_zh_cn=r(n.dayjs)})(e,(function(e){function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`zh-cn`,weekdays:`星期日_星期一_星期二_星期三_星期四_星期五_星期六`.split(`_`),weekdaysShort:`周日_周一_周二_周三_周四_周五_周六`.split(`_`),weekdaysMin:`日_一_二_三_四_五_六`.split(`_`),months:`一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月`.split(`_`),monthsShort:`1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月`.split(`_`),ordinal:function(e,t){return t===`W`?e+`周`:e+`日`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`YYYY/MM/DD`,LL:`YYYY年M月D日`,LLL:`YYYY年M月D日Ah点mm分`,LLLL:`YYYY年M月D日ddddAh点mm分`,l:`YYYY/M/D`,ll:`YYYY年M月D日`,lll:`YYYY年M月D日 HH:mm`,llll:`YYYY年M月D日dddd HH:mm`},relativeTime:{future:`%s内`,past:`%s前`,s:`几秒`,m:`1 分钟`,mm:`%d 分钟`,h:`1 小时`,hh:`%d 小时`,d:`1 天`,dd:`%d 天`,M:`1 个月`,MM:`%d 个月`,y:`1 年`,yy:`%d 年`},meridiem:function(e,t){var n=100*e+t;return n<600?`凌晨`:n<900?`早上`:n<1100?`上午`:n<1300?`中午`:n<1800?`下午`:`晚上`}};return n.default.locale(r,null,!0),r}))})),bn=c(_n(),1),xn=c(vn(),1);yn();function Sn(){bn.default.locale(`zh-cn`),bn.default.extend(xn.default)}var Cn=function(e,t){return Cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Cn(e,t)};function N(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Cn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var wn=`12px sans-serif`,Tn=20,En=100,Dn=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function On(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-Tn)/En}return t}var kn=On(Dn),An={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=An.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=kn[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},jn=Zn([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),Mn=Zn([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),Nn=Object.prototype.toString,Pn=Array.prototype,Fn=Pn.forEach,In=Pn.filter,Ln=Pn.slice,Rn=Pn.map,zn=function(){}.constructor,Bn=zn?zn.prototype:null,Vn=`__proto__`,Hn=2311;function Un(){return Hn++}function Wn(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function P(e){if(typeof e!=`object`||!e)return e;var t=e,n=Nn.call(e);if(n===`[object Array]`){if(!br(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=P(e[r])}}else if(Mn[n]){if(!br(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!jn[n]&&!br(e)&&!sr(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==Vn&&(t[o]=P(e[o]));return t}function Gn(e,t,n){if(!H(t)||!H(e))return n?P(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Vn){var i=e[r],a=t[r];H(a)&&H(i)&&!z(a)&&!z(i)&&!sr(a)&&!sr(i)&&!ar(a)&&!ar(i)&&!br(a)&&!br(i)?Gn(i,a,n):(n||!(r in e))&&(e[r]=P(t[r]))}return e}function F(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Vn&&(e[n]=t[n]);return e}function Kn(e,t,n){for(var r=er(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}An.createCanvas;function qn(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function Jn(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function Yn(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else Kn(e,t,n)}function Xn(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function I(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Fn)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function L(e,t,n){if(!e)return[];if(!t)return mr(e);if(e.map&&e.map===Rn)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function Zn(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function Qn(e,t,n){if(!e)return[];if(!t)return mr(e);if(e.filter&&e.filter===In)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function $n(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function er(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function tr(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(Ln.call(arguments)))}}var R=Bn&&B(Bn.bind)?Bn.call.bind(Bn.bind):tr;function nr(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(Ln.call(arguments)))}}function z(e){return Array.isArray?Array.isArray(e):Nn.call(e)===`[object Array]`}function B(e){return typeof e==`function`}function V(e){return typeof e==`string`}function rr(e){return Nn.call(e)===`[object String]`}function ir(e){return typeof e==`number`}function H(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function ar(e){return!!jn[Nn.call(e)]}function or(e){return!!Mn[Nn.call(e)]}function sr(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function cr(e){return e.colorStops!=null}function lr(e){return e.image!=null}function ur(e){return Nn.call(e)===`[object RegExp]`}function dr(e){return e!==e}function fr(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function U(e,t){return e??t}function pr(e,t,n){return e??t??n}function mr(e){var t=[...arguments].slice(1);return Ln.apply(e,t)}function hr(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function gr(e,t){if(!e)throw Error(t)}function _r(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var vr=`__ec_primitive__`;function yr(e){e[vr]=!0}function br(e){return e[vr]}var xr=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return er(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Sr=typeof Map==`function`;function Cr(){return Sr?new Map:new xr}var wr=function(){function e(t){var n=z(t);this.data=Cr();var r=this;t instanceof e?t.each(i):t&&I(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Sr?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function W(e){return new wr(e)}function Tr(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Er(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&F(n,t),n}function Dr(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function G(e,t){return e.hasOwnProperty(t)}function Or(){}var kr=180/Math.PI,Ar=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),jr=new(function(){function e(){this.browser=new Ar,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(jr.wxa=!0,jr.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?jr.worker=!0:!jr.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(jr.node=!0,jr.svgSupported=!0):Mr(navigator.userAgent,jr);function Mr(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var Nr=`.`,Pr=`___EC__COMPONENT__CONTAINER___`,Fr=`___EC__EXTENDED_CLASS___`;function Ir(e){var t={main:``,sub:``};if(e){var n=e.split(Nr);t.main=n[0]||``,t.sub=n[1]||``}return t}function Lr(e){gr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Rr(e){return!!(e&&e[Fr])}function zr(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Br(t)?n=function(e){N(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},Jn(n,this)),F(n.prototype,e),n[Fr]=!0,n.extend=this.extend,n.superCall=Wr,n.superApply=Gr,n.superClass=t,n}}function Br(e){return B(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Vr(e,t){e.extend=t.extend}var Hr=Math.round(Math.random()*10);function Ur(e){var t=[`__\0is_clz`,Hr++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Wr(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Gr(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Kr(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Lr(r),e.prototype.type=r;var i=Ir(r);if(!i.sub)t[i.main]=e;else if(i.sub!==Pr){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Pr]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Ir(e),r=[],i=t[n.main];return i&&i[Pr]?I(i,function(e,t){t!==Pr&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Ir(e).main]},e.getAllClassMainTypes=function(){var e=[];return I(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Ir(e).main];return n&&n[Pr]};function n(e){var n=t[e.main];return(!n||!n[Pr])&&(n=t[e.main]={},n[Pr]=!0),n}}function qr(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&qn(r,s)>=0||i&&qn(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Jr=qr([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Yr=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Jr(this,e,t)},e}(),Xr=function(){function e(e){this.value=e}return e}(),Zr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Xr(e);return this.insertEntry(t),t},e.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++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Qr=function(){function e(e){this._list=new Zr,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new Xr(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),$r=new Qr(50);function ei(e){if(typeof e==`string`){var t=$r.get(e);return t&&t.image}else return e}function ti(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=$r.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!ri(t)&&a.pending.push(o)):(t=An.loadImage(e,ni,ni),t.__zrImageSrc=e,$r.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function ni(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function ri(e){return e&&e.width&&e.height}function ii(){return[1,0,0,1,0,0]}function ai(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function oi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function si(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function ci(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function li(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function ui(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function di(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}var fi=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),pi=Math.min,mi=Math.max,hi=Math.abs,gi=[`x`,`y`],_i=[`width`,`height`],vi=new fi,yi=new fi,bi=new fi,xi=new fi,Si=Ai(),Ci=Si.minTv,wi=Si.maxTv,Ti=[0,0],Ei=function(){function e(t,n,r,i){e.set(this,t,n,r,i)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=pi(e.x,this.x),n=pi(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mi(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=mi(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=ii();return ci(i,i,[-t.x,-t.y]),ui(i,i,[n,r]),ci(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&fi.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=e.set(Di,t.x,t.y,t.width,t.height)),n instanceof e||(n=e.set(Oi,n.x,n.y,n.width,n.height));var s=!!r;Si.reset(i,s);var c=Si.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Ti[0]=1/0,Ti[1]=0,ki(l,u,p,m,0,s,a,o),ki(d,f,h,g,1,s,a,o),s&&fi.copy(r,_?Si.useDir?Si.dirMinTv:Ci:wi)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}vi.x=bi.x=n.x,vi.y=xi.y=n.y,yi.x=xi.x=n.x+n.width,yi.y=bi.y=n.y+n.height,vi.transform(r),xi.transform(r),yi.transform(r),bi.transform(r),t.x=pi(vi.x,yi.x,bi.x,xi.x),t.y=pi(vi.y,yi.y,bi.y,xi.y);var c=mi(vi.x,yi.x,bi.x,xi.x),l=mi(vi.y,yi.y,bi.y,xi.y);t.width=c-t.x,t.height=l-t.y},e}(),Di=new Ei(0,0,0,0),Oi=new Ei(0,0,0,0);function ki(e,t,n,r,i,a,o,s){var c=hi(t-n),l=hi(r-e),u=pi(c,l),d=gi[i],f=gi[1-i],p=_i[i];t<n||r<e?c<l?(a&&(wi[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(wi[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=mi(e,n),o[p]=pi(t,r)-o[d]),a&&(u<Ti[0]||Si.useDir)&&(Ti[0]=pi(u,Ti[0]),(c<l||!Si.bidirectional)&&(Ci[d]=c,Ci[f]=0,Si.useDir&&Si.calcDirMTV()),(c>=l||!Si.bidirectional)&&(Ci[d]=-l,Ci[f]=0,Si.useDir&&Si.calcDirMTV())))}function Ai(){var e=0,t=new fi,n=new fi,r={minTv:new fi,maxTv:new fi,useDir:!1,dirMinTv:new fi,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=mi(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return hi(e)<1e-10}return r}function ji(e){Mi||=new Qr(100),e||=`12px sans-serif`;var t=Mi.get(e);return t||(t={font:e,strWidthCache:new Qr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:An.measureText(`国`,e).width,asciiCharWidth:An.measureText(`a`,e).width},Mi.put(e,t)),t}var Mi;function Ni(e){if(!(Pi>=Fi)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=An.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Pi=Fi:i>2&&Pi++,t}}var Pi=0,Fi=5;function Ii(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=Ni(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Li(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=An.measureText(t,e.font).width,n.put(t,r)),r}function Ri(e,t,n,r){var i=Li(ji(t),e),a=Hi(t);return new Ei(Bi(0,i,n),Vi(0,a,r),i,a)}function zi(e,t,n,r){var i=((e||``)+``).split(`
|
||
`);if(i.length===1)return Ri(i[0],t,n,r);for(var a=new Ei(0,0,0,0),o=0;o<i.length;o++){var s=Ri(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function Bi(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function Vi(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function Hi(e){return ji(e).stWideCharWidth}function Ui(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Wi(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Ui(r[0],n.width),l+=Ui(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Gi=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ki(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
||
`);a=qi(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)Ji(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
||
`),e.isTruncated=s}function qi(e,t,n,r){r||={};var i=F({},r);n=U(n,`...`),i.maxIterations=U(r.maxIterations,2);var a=i.minChar=U(r.minChar,0),o=i.fontMeasureInfo=ji(t),s=o.asciiCharWidth;i.placeholder=U(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=Li(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function Ji(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=Li(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Yi(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Li(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Yi(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=Ii(n,e.charCodeAt(i));return i}function Xi(e,t,n,r){var i=la(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=Hi(l),f=U(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?aa(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
|
||
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=qi(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Ji(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=ji(l),S=0;S<_.length;S++)w=Math.max(Li(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var Zi=function(){function e(){}return e}(),Qi=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),$i=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function ea(e,t,n,r,i){var a=new $i,o=la(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=Gi.lastIndex=0,h;(h=Gi.exec(o))!=null;){var g=h.index;g>m&&ta(a,o.substring(m,g),t,p),ta(a,h[2],t,p,h[1]),m=Gi.lastIndex}m<o.length&&ta(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,ee=j?j[1]+j[3]:0,te=k.font=A.font||t.font;k.contentHeight=Hi(te);var ne=U(A.height,k.contentHeight);if(k.innerHeight=ne,j&&(ne+=j[0]+j[2]),k.height=ne,k.lineHeight=pr(A.lineHeight,t.lineHeight,ne),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var re=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<re;break outer}var ie=A.width,ae=ie==null||ie===`auto`;if(typeof ie==`string`&&ie.charAt(ie.length-1)===`%`)k.percentWidth=ie,_.push(k),k.contentWidth=Li(ji(te),k.text);else{if(ae){var oe=A.backgroundColor,se=oe&&oe.image;se&&(se=ei(se),ri(se)&&(k.width=Math.max(k.width,se.width*ne/se.height)))}var ce=b&&u!=null?u-D:null;ce!=null&&ce<k.width?!ae||ce<ee?(k.text=``,k.width=k.contentWidth=0):(Ki(S,k.text,ce-ee,te,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=Li(ji(te),k.text)):k.contentWidth=Li(ji(te),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=U(u,y),a.outerHeight=a.height=U(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],le=k.percentWidth;k.width=parseInt(le,10)/100*a.width}return a}function ta(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=Ui(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
||
`),l=!0),r.accumWidth=m}else{var h=aa(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
|
||
`);for(var g=ji(c),_=0;_<u.length;_++){var v=u[_],y=new Zi;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:Li(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new Qi)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new Qi([y]))}}function na(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var ra=Zn(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function ia(e){return na(e)?!!ra[e]:!0}function aa(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=ji(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
|
||
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=Ii(d,p.charCodeAt(0)),h=r?!1:!ia(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function oa(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;Ei.set(sa,Bi(n,o,i),Vi(r,s,a),o,s),Ei.intersect(t,sa,null,ca);var c=ca.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Bi(c.x,c.width,i,!0),e.baseY=Vi(c.y,c.height,a,!0)}}var sa=new Ei(0,0,0,0),ca={outIntersectRect:{},clamp:!0};function la(e){return e==null?e=``:e+=``}function ua(e){var t=la(e.text),n=e.font;return da(e,Li(ji(n),t),Hi(n),null)}function da(e,t,n,r){var i=new Ei(Bi(e.x||0,t,e.textAlign),Vi(e.y||0,n,e.textBaseline),t,n),a=r??(fa(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function fa(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}function pa(e,t){return e??=0,t??=0,[e,t]}function ma(e){return[e[0],e[1]]}function ha(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function ga(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function _a(e){return Math.sqrt(va(e))}function va(e){return e[0]*e[0]+e[1]*e[1]}function ya(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function ba(e,t){var n=_a(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function xa(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Sa=xa;function Ca(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var wa=Ca;function Ta(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Ea(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Da(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Oa(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var ka=ai,Aa=5e-5;function ja(e){return e>Aa||e<-Aa}var Ma=[],Na=[],Pa=ii(),Fa=Math.abs,Ia=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ja(this.rotation)||ja(this.x)||ja(this.y)||ja(this.scaleX-1)||ja(this.scaleY-1)||ja(this.skewX)||ja(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(ka(n),this.invTransform=null);return}n||=ii(),t?this.getLocalTransform(n):ka(n),e&&(t?si(n,e,n):oi(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ma);var n=Ma[0]<0?-1:1,r=Ma[1]<0?-1:1,i=((Ma[0]-n)*t+n)/Ma[0]||0,a=((Ma[1]-r)*t+r)/Ma[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||ii(),di(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ii(),si(Na,e.invTransform,t),t=Na);var n=this.originX,r=this.originY;(n||r)&&(Pa[4]=n,Pa[5]=r,si(Na,t,Pa),Na[4]-=n,Na[5]-=r,t=Na),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Ea(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Ea(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Fa(e[0]-1)>1e-10&&Fa(e[3]-1)>1e-10?Math.sqrt(Fa(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Ra(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&li(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),La=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Ra(e,t){for(var n=0;n<La.length;n++){var r=La[n];e[r]=t[r]}}var za={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-za.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?za.bounceIn(e*2)*.5:za.bounceOut(e*2-1)*.5+.5}},Ba=Math.pow,Va=Math.sqrt,Ha=1e-8,Ua=1e-4,Wa=Va(3),Ga=1/3,Ka=pa(),qa=pa(),Ja=pa();function Ya(e){return e>-Ha&&e<Ha}function Xa(e){return e>Ha||e<-Ha}function Za(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Qa(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function $a(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Ya(u)&&Ya(d))if(Ya(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(Ya(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Va(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Ba(-y,Ga):Ba(y,Ga),b=b<0?-Ba(-b,Ga):Ba(b,Ga);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Va(u*u*u)),S=Math.acos(x)/3,C=Va(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Wa*Math.sin(S)))/(3*o),T=(-s+C*(w-Wa*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function eo(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Ya(o)){if(Xa(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Ya(u))i[0]=-a/(2*o);else if(u>0){var d=Va(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function to(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function no(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Ka[0]=c,Ka[1]=l;for(var v=0;v<1;v+=.05)qa[0]=Za(e,n,i,o,v),qa[1]=Za(t,r,a,s,v),g=wa(Ka,qa),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Ua);y++)m=d-f,h=d+f,qa[0]=Za(e,n,i,o,m),qa[1]=Za(t,r,a,s,m),g=wa(qa,Ka),m>=0&&g<p?(d=m,p=g):(Ja[0]=Za(e,n,i,o,h),Ja[1]=Za(t,r,a,s,h),_=wa(Ja,Ka),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Za(e,n,i,o,d),u[1]=Za(t,r,a,s,d)),Va(p)}function ro(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Za(e,n,i,o,m),g=Za(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function io(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function ao(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function oo(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Ya(a)){if(Xa(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Ya(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Va(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function so(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function co(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function lo(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Ka[0]=o,Ka[1]=s;for(var f=0;f<1;f+=.05){qa[0]=io(e,n,i,f),qa[1]=io(t,r,a,f);var p=wa(Ka,qa);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Ua);m++){var h=l-u,g=l+u;qa[0]=io(e,n,i,h),qa[1]=io(t,r,a,h);var p=wa(qa,Ka);if(h>=0&&p<d)l=h,d=p;else{Ja[0]=io(e,n,i,g),Ja[1]=io(t,r,a,g);var _=wa(Ja,Ka);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=io(e,n,i,l),c[1]=io(t,r,a,l)),Va(d)}function uo(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=io(e,n,i,f),m=io(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var fo=/cubic-bezier\(([0-9,\.e ]+)\)/;function po(e){var t=e&&fo.exec(e);if(t){var n=t[1].split(`,`),r=+_r(n[0]),i=+_r(n[1]),a=+_r(n[2]),o=+_r(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:$a(0,r,a,1,e,s)&&Za(0,i,o,1,s[0])}}}var mo=function(){function e(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||Or,this.ondestroy=e.ondestroy||Or,this.onrestart=e.onrestart||Or,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop)this._startTime=e-r%n,this._pausedTime=0,this.onrestart();else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=B(e)?e:za[e]||po(e)},e}(),ho={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 go(e){return e=Math.round(e),e<0?0:e>255?255:e}function _o(e){return e=Math.round(e),e<0?0:e>360?360:e}function vo(e){return e<0?0:e>1?1:e}function yo(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?go(parseFloat(t)/100*255):go(parseInt(t,10))}function bo(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?vo(parseFloat(t)/100):vo(parseFloat(t))}function xo(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function So(e,t,n){return e+(t-e)*n}function Co(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function wo(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var To=new Qr(20),Eo=null;function Do(e,t){Eo&&wo(Eo,t),Eo=To.put(e,Eo||t.slice())}function Oo(e,t){if(e){t||=[];var n=To.get(e);if(n)return wo(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in ho)return wo(t,ho[r]),Do(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Co(t,0,0,0,1);return}return Co(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Do(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Co(t,0,0,0,1);return}return Co(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Do(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Co(t,+l[0],+l[1],+l[2],1):Co(t,0,0,0,1);u=bo(l.pop());case`rgb`:if(l.length>=3)return Co(t,yo(l[0]),yo(l[1]),yo(l[2]),l.length===3?u:bo(l[3])),Do(e,t),t;Co(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Co(t,0,0,0,1);return}return l[3]=bo(l[3]),ko(l,t),Do(e,t),t;case`hsl`:if(l.length!==3){Co(t,0,0,0,1);return}return ko(l,t),Do(e,t),t;default:return}}Co(t,0,0,0,1)}}function ko(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=bo(e[1]),i=bo(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Co(t,go(xo(o,a,n+1/3)*255),go(xo(o,a,n)*255),go(xo(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ao(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function jo(e,t){var n=Oo(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Io(n,n.length===4?`rgba`:`rgb`)}}function Mo(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=go(So(o[0],s[0],c)),n[1]=go(So(o[1],s[1],c)),n[2]=go(So(o[2],s[2],c)),n[3]=vo(So(o[3],s[3],c)),n}}function No(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Oo(t[i]),s=Oo(t[a]),c=r-i,l=Io([go(So(o[0],s[0],c)),go(So(o[1],s[1],c)),go(So(o[2],s[2],c)),vo(So(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Po(e,t,n,r){var i=Oo(e);if(e)return i=Ao(i),t!=null&&(i[0]=_o(B(t)?t(i[0]):t)),n!=null&&(i[1]=bo(B(n)?n(i[1]):n)),r!=null&&(i[2]=bo(B(r)?r(i[2]):r)),Io(ko(i),`rgba`)}function Fo(e,t){var n=Oo(e);if(n&&t!=null)return n[3]=vo(t),Io(n,`rgba`)}function Io(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Lo(e,t){var n=Oo(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Ro=new Qr(100);function zo(e){if(V(e)){var t=Ro.get(e);return t||(t=jo(e,-.1),Ro.put(e,t)),t}else if(cr(e)){var n=F({},e);return n.colorStops=L(e.colorStops,function(e){return{offset:e.offset,color:jo(e.color,-.1)}}),n}return e}function Bo(e){return e.type===`linear`}function Vo(e){return e.type===`radial`}(function(){return jr.hasGlobalWindow&&B(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<`u`?function(e){return Buffer.from(e).toString(`base64`)}:function(e){return null}})();var Ho=Array.prototype.slice;function Uo(e,t,n){return(t-e)*n+e}function Wo(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Uo(t[a],n[a],r);return e}function Go(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Uo(t[o][s],n[o][s],r)}return e}function Ko(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function qo(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Jo(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Yo(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Ho.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Xo(e){if(Xn(e)){var t=e.length;if(Xn(e[0])){for(var n=[],r=0;r<t;r++)n.push(Ho.call(e[r]));return n}return Ho.call(e)}return e}function Zo(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Qo(e){return Xn(e&&e[0])?2:1}var $o=0,es=1,ts=2,ns=3,rs=4,is=5,as=6;function os(e){return e===rs||e===is}function ss(e){return e===es||e===ts}var cs=[0,0,0,0],ls=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=as,s=t;if(Xn(t)){var c=Qo(t);o=c,(c===1&&!ir(t[0])||c===2&&!ir(t[0][0]))&&(a=!0)}else if(ir(t)&&!dr(t))o=$o;else if(V(t))if(!isNaN(+t))o=$o;else{var l=Oo(t);l&&(s=l,o=ns)}else if(cr(t)){var u=F({},s);u.colorStops=L(t.colorStops,function(e){return{offset:e.offset,color:Oo(e.color)}}),Bo(t)?o=rs:Vo(t)&&(o=is),s=u}i===0?this.valType=o:(o!==this.valType||o===as)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=B(n)?n:za[n]||po(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=ss(r),c=os(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Yo(d,f,r):c&&Jo(d.colorStops,f.colorStops))}if(!o&&r!==is&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===$o?n[l].additiveValue=n[l].value-p:r===ns?n[l].additiveValue=Ko([],n[l].value,p,-1):ss(r)&&(n[l].additiveValue=r===es?Ko([],n[l].value,p,-1):qo([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===ns,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?cs:e[s];if((ss(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(ss(i))i===es?Wo(g,f[r],p[r],h):Go(g,f[r],p[r],h);else if(os(i)){var _=f[r],v=p[r],y=i===rs;e[s]={type:y?`linear`:`radial`,x:Uo(_.x,v.x,h),y:Uo(_.y,v.y,h),colorStops:L(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Uo(e.offset,n.offset,h),color:Zo(Wo([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Uo(_.x2,v.x2,h),e[s].y2=Uo(_.y2,v.y2,h)):e[s].r=Uo(_.r,v.r,h)}else if(c)Wo(g,f[r],p[r],h),n||(e[s]=Zo(g));else{var b=Uo(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===$o?e[n]=e[n]+r:t===ns?(Oo(e[n],cs),Ko(cs,cs,r,1),e[n]=Zo(cs)):t===es?Ko(e[n],e[n],r,1):t===ts&&qo(e[n],e[n],r,1)},e}(),us=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){Wn(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,er(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new ls(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===ns&&c&&(c=Zo(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Xo(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Xo(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new mo({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return L(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Xo(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=er(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),ds=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),fs=1;jr.hasGlobalWindow&&(fs=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ps=fs,ms=.4,hs=`#333`,gs=`#ccc`,_s=`#eee`,vs=`__zr_normal__`,ys=La.concat([`ignore`]),bs=Zn(La,function(e,t){return e[t]=!0,e},{ignore:!1}),xs={},Ss=new Ei(0,0,0,0),Cs=[],ws=function(){function e(e){this.id=Un(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Ss,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(xs,n,d):Wi(xs,n,d),i.x=xs.x,i.y=xs.y,a=xs.align,o=xs.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=Ui(f[0],d.width),m=Ui(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new Ei(0,0,0,0);i.getLocalTransform(Cs),di(Cs,Cs),Ei.copy(_,d),_.applyTransform(Cs)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?gs:hs},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Oo(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Io(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},F(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(H(e))for(var n=er(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,ys)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(vs,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===vs;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(qn(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){Wn(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(`,`),f,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=qn(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=qn(r,e),a=qn(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];F(t,i),i.textConfig&&(n||={},F(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=F({},r?this.textConfig:n.textConfig),F(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<ys.length;l++){var u=ys[l],d=i&&bs[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)},e.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Ia,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},F(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new us(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=qn(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Ts(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Ts(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Ts(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();Yn(ws,ds),Yn(ws,Ia);function Ts(e,t,n,r,i){n||={};var a=[];js(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function Es(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ds(e){return Xn(e[0])}function Os(e,t,n){if(Xn(t[n]))if(Xn(e[n])||(e[n]=[]),or(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Es(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Ds(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?Es(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Es(a,i,o);a.length=i.length}else e[n]=t[n]}function ks(e,t){return e===t||Xn(e)&&Xn(t)&&As(e,t)}function As(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function js(e,t,n,r,i,a,o,s){for(var c=er(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!H(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(H(v)&&!Xn(v)&&!cr(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}js(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=qn(m,x);m.splice(S,1)}}if(i.force||(h=Qn(h,function(e){return!ks(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=Xo(n[_]),Os(n,r,_)}}var x=new us(n,!1,!1,d?Qn(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}var Ms=`__zr_style_`+Math.round(Math.random()*10),Ns={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ps={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ns[Ms]=!0;var Fs=[`z`,`z2`,`invisible`],Is=[`invisible`],Ls=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=er(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Bs(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Ei(0,0,0,0),t?Ei.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Ei(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:F(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Er(Ns,e)},t.prototype.useStyle=function(e){e[Ms]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Ms]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Fs)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c)if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=er(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=er(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c);for(var m=this.__inHover?Is:Fs,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return F(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ps},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(ws),Rs=new Ei(0,0,0,0),zs=new Ei(0,0,0,0);function Bs(e,t,n){return Rs.copy(e.getBoundingRect()),e.transform&&Rs.applyTransform(e.transform),zs.width=t,zs.height=n,!Rs.intersect(zs)}var Vs=Math.min,Hs=Math.max,Us=Math.sin,Ws=Math.cos,Gs=Math.PI*2,Ks=pa(),qs=pa(),Js=pa();function Ys(e,t,n,r,i,a){i[0]=Vs(e,n),i[1]=Vs(t,r),a[0]=Hs(e,n),a[1]=Hs(t,r)}var Xs=[],Zs=[];function Qs(e,t,n,r,i,a,o,s,c,l){var u=eo,d=Za,f=u(e,n,i,o,Xs);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Xs[p]);c[0]=Vs(m,c[0]),l[0]=Hs(m,l[0])}f=u(t,r,a,s,Zs);for(var p=0;p<f;p++){var h=d(t,r,a,s,Zs[p]);c[1]=Vs(h,c[1]),l[1]=Hs(h,l[1])}c[0]=Vs(e,c[0]),l[0]=Hs(e,l[0]),c[0]=Vs(o,c[0]),l[0]=Hs(o,l[0]),c[1]=Vs(t,c[1]),l[1]=Hs(t,l[1]),c[1]=Vs(s,c[1]),l[1]=Hs(s,l[1])}function $s(e,t,n,r,i,a,o,s){var c=so,l=io,u=Hs(Vs(c(e,n,i),1),0),d=Hs(Vs(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Vs(e,i,f),o[1]=Vs(t,a,p),s[0]=Hs(e,i,f),s[1]=Hs(t,a,p)}function ec(e,t,n,r,i,a,o,s,c){var l=Da,u=Oa,d=Math.abs(i-a);if(d%Gs<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Ks[0]=Ws(i)*n+e,Ks[1]=Us(i)*r+t,qs[0]=Ws(a)*n+e,qs[1]=Us(a)*r+t,l(s,Ks,qs),u(c,Ks,qs),i%=Gs,i<0&&(i+=Gs),a%=Gs,a<0&&(a+=Gs),i>a&&!o?a+=Gs:i<a&&o&&(i+=Gs),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Js[0]=Ws(p)*n+e,Js[1]=Us(p)*r+t,l(s,Js,s),u(c,Js,c))}var tc={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},nc=[],rc=[],ic=[],ac=[],oc=[],sc=[],cc=Math.min,lc=Math.max,uc=Math.cos,dc=Math.sin,fc=Math.abs,pc=Math.PI,mc=pc*2,hc=typeof Float32Array<`u`,gc=[];function _c(e){return Math.round(e/pc*1e8)/1e8%2*pc}function vc(e,t){var n=_c(e[0]);n<0&&(n+=mc);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=mc?i=n+mc:t&&n-i>=mc?i=n-mc:!t&&n>i?i=n+(mc-_c(n-i)):t&&n<i&&(i=n-(mc-_c(i-n))),e[0]=n,e[1]=i}var yc=function(){function e(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 e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=fc(n/ps/e)||0,this._uy=fc(n/ps/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(tc.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=fc(e-this._xi),r=fc(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(tc.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(tc.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(tc.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),gc[0]=r,gc[1]=i,vc(gc,a),r=gc[0],i=gc[1];var o=i-r;return this.addData(tc.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=uc(i)*n+e,this._yi=dc(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(tc.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(tc.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&hc&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(hc&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,hc&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ic[0]=ic[1]=oc[0]=oc[1]=Number.MAX_VALUE,ac[0]=ac[1]=sc[0]=sc[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case tc.M:t=r=e[a++],n=i=e[a++],oc[0]=r,oc[1]=i,sc[0]=r,sc[1]=i;break;case tc.L:Ys(t,n,e[a],e[a+1],oc,sc),t=e[a++],n=e[a++];break;case tc.C:Qs(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],oc,sc),t=e[a++],n=e[a++];break;case tc.Q:$s(t,n,e[a++],e[a++],e[a],e[a+1],oc,sc),t=e[a++],n=e[a++];break;case tc.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=uc(f)*u+c,i=dc(f)*d+l),ec(c,l,u,d,f,p,m,oc,sc),t=uc(p)*u+c,n=dc(p)*d+l;break;case tc.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Ys(r,i,r+h,i+g,oc,sc);break;case tc.Z:t=r,n=i;break}Da(ic,ic,oc),Oa(ac,ac,sc)}return a===0&&(ic[0]=ic[1]=ac[0]=ac[1]=0),new Ei(ic[0],ic[1],ac[0]-ic[0],ac[1]-ic[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case tc.M:i=o=e[d++],a=s=e[d++];break;case tc.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(fc(_)>n||fc(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case tc.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=ro(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case tc.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=uo(i,a,y,b,h,g,10),i=h,a=g;break;case tc.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=uc(D)*T+C,s=dc(D)*E+w),m=lc(T,E)*cc(mc,Math.abs(O)),i=uc(k)*T+C,a=dc(k)*E+w;break;case tc.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case tc.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==tc.L&&v>0&&(e.lineTo(y,b),v=0),S){case tc.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case tc.L:u=n[x++],d=n[x++];var w=fc(u-c),T=fc(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case tc.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],ne=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;to(c,k,j,te,D,nc),to(l,A,ee,ne,D,rc),e.bezierCurveTo(nc[1],rc[1],nc[2],rc[2],nc[3],rc[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,ne),c=te,l=ne;break;case tc.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;co(c,k,j,D,nc),co(l,A,ee,D,rc),e.quadraticCurveTo(nc[1],rc[1],nc[2],rc[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case tc.A:var re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=n[x++],ue=!n[x++],de=ae>oe?ae:oe,fe=fc(ae-oe)>.001,pe=se+ce,M=!1;if(f){var E=p[g++];h+E>_&&(pe=se+ce*(_-h)/E,M=!0),h+=E}if(fe&&e.ellipse?e.ellipse(re,ie,ae,oe,le,se,pe,ue):e.arc(re,ie,de,se,pe,ue),M)break lo;C&&(o=uc(se)*ae+re,s=dc(se)*oe+ie),c=uc(pe)*ae+re,l=dc(pe)*oe+ie;break;case tc.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var me=n[x++],he=n[x++];if(f){var E=p[g++];if(h+E>_){var ge=_-h;e.moveTo(u,d),e.lineTo(u+cc(ge,me),d),ge-=me,ge>0&&e.lineTo(u+me,d+cc(ge,he)),ge-=he,ge>0&&e.lineTo(u+lc(me-ge,0),d+he),ge-=me,ge>0&&e.lineTo(u,d+lc(he-ge,0));break lo}h+=E}e.rect(u,d,me,he);break;case tc.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=tc,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function bc(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function xc(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:no(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function Sc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:lo(e,t,n,r,i,a,s,c,null)<=l/2}var Cc=Math.PI*2;function wc(e){return e%=Cc,e<0&&(e+=Cc),e}var Tc=Math.PI*2;function Ec(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%Tc<1e-4)return!0;if(a){var d=r;r=wc(i),i=wc(d)}else r=wc(r),i=wc(i);r>i&&(i+=Tc);var f=Math.atan2(c,s);return f<0&&(f+=Tc),f>=r&&f<=i||f+Tc>=r&&f+Tc<=i}function Dc(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var Oc=yc.CMD,kc=Math.PI*2,Ac=1e-4;function jc(e,t){return Math.abs(e-t)<Ac}var Mc=[-1,-1,-1],Nc=[-1,-1];function Pc(){var e=Nc[0];Nc[0]=Nc[1],Nc[1]=e}function Fc(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=$a(t,r,a,s,l,Mc);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Mc[h],_=g===0||g===1?.5:1;Za(e,n,i,o,g)<c||(f<0&&(f=eo(t,r,a,s,Nc),Nc[1]<Nc[0]&&f>1&&Pc(),p=Za(t,r,a,s,Nc[0]),f>1&&(m=Za(t,r,a,s,Nc[1]))),f===2?g<Nc[0]?d+=p<t?_:-_:g<Nc[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Nc[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Ic(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=oo(t,r,a,s,Mc);if(c===0)return 0;var l=so(t,r,a);if(l>=0&&l<=1){for(var u=0,d=io(t,r,a,l),f=0;f<c;f++){var p=Mc[f]===0||Mc[f]===1?.5:1,m=io(e,n,i,Mc[f]);m<o||(Mc[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=Mc[0]===0||Mc[0]===1?.5:1,m=io(e,n,i,Mc[0]);return m<o?0:a<t?p:-p}}function Lc(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Mc[0]=-c,Mc[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=kc-1e-4){r=0,i=kc;var u=a?1:-1;return o>=Mc[0]+e&&o<=Mc[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=kc,i+=kc);for(var f=0,p=0;p<2;p++){var m=Mc[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=kc+h),(h>=r&&h<=i||h+kc>=r&&h+kc<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Rc(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===Oc.M&&m>1&&(n||(s+=Dc(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case Oc.M:u=a[m++],d=a[m++],c=u,l=d;break;case Oc.L:if(n){if(bc(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Dc(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Oc.C:if(n){if(xc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Fc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Oc.Q:if(n){if(Sc(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Ic(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Oc.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=Dc(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Ec(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Lc(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case Oc.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(bc(u,d,f,d,t,r,i)||bc(f,d,f,p,t,r,i)||bc(f,p,u,p,t,r,i)||bc(u,p,u,d,t,r,i))return!0}else s+=Dc(f,d,f,p,r,i),s+=Dc(u,p,u,d,r,i);break;case Oc.Z:if(n){if(bc(c,l,u,d,t,r,i))return!0}else s+=Dc(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!jc(l,d)&&(s+=Dc(c,l,u,d,r,i)||0),s!==0}function zc(e,t,n){return Rc(e,0,!1,t,n)}function Bc(e,t,n,r){return Rc(e,t,!0,n,r)}var Vc=Kn({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ns),Hc={style:Kn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ps.style)},Uc=La.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Wc=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Uc.length;++s)i[Uc[s]]=this[Uc[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=er(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?F(this.style,o):this.useStyle(o):a===`shape`?F(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(V(e)){var t=Lo(e,0);return t>.5?hs:t>.2?_s:gs}else if(e)return gs}return hs},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(V(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Lo(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new yc(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Bc(a,o/s,e,t)))return!0}if(this.hasFill())return zc(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:F(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Er(Vc,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=F({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=F({},r.shape),F(c,n.shape)):(c=F({},i?this.shape:r.shape),F(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=F({},this.shape);for(var l={},u=er(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Hc},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){N(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return P(e.style)},n.prototype.getDefaultShape=function(){return P(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Ls),Gc=Kn({strokeFirst:!0,font:wn,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Vc),Kc=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return fa(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Er(Gc,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=ua(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Ls);Kc.prototype.type=`tspan`;var qc=Kn({x:0,y:0},Ns),Jc={style:Kn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ps.style)};function Yc(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Xc=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Er(qc,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Yc(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Jc},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Ei(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Ls);Xc.prototype.type=`image`;function Zc(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Qc=Math.round;function $c(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Qc(r*2)===Qc(i*2)&&(e.x1=e.x2=tl(r,s,!0)),Qc(a*2)===Qc(o*2)&&(e.y1=e.y2=tl(a,s,!0)),e):e}}function el(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=tl(r,s,!0),e.y=tl(i,s,!0),e.width=Math.max(tl(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(tl(i+o,s,!1)-e.y,o===0?0:1),e):e}}function tl(e,t,n){if(!t)return e;var r=Qc(e*2);return(r+Qc(t))%2==0?r/2:(r+(n?1:-1))/2}var nl=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),rl={},il=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new nl},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=el(rl,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Zc(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Wc);il.prototype.type=`rect`;var al={fill:`#000`},ol=2,sl={},cl={style:Kn({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},Ps.style)},ll=function(e){N(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=al,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,gl(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Ei(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||al},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return F(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=er(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},F(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return cl},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;oa(sl,r.overflowRect,i,a,o,s),i=sl.baseX,a=sl.baseY;var c=Xi(xl(e),e,sl.outerWidth,sl.outerHeight),l=Sl(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=Vi(a,c.contentHeight,s);if(l||n){var _=Bi(i,f,o),v=Vi(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=bl(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=yl(`fill`in e?e.fill:(x=!0,r.fill)),C=vl(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=ol,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Kc),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,ml(D,e),g+=m,E.setBoundingRect(da(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;oa(sl,t.overflowRect,i,a,n,r),i=sl.baseX,a=sl.baseY;var o=ea(xl(e),e,sl.outerWidth,sl.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=Bi(i,c,n),f=Vi(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Sl(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&Sl(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=bl(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Kc),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=yl(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=vl(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=ol,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=pr(s.opacity,t.opacity,1),ml(p,s),y&&(p.lineWidth=pr(s.lineWidth,t.lineWidth,g),p.lineDash=U(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(da(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(il),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=U(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Xc),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=U(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=pr(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return hl(e)&&(t=[e.fontStyle,e.fontWeight,pl(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&_r(t)||e.textFont||e.font},t}(Ls),ul={left:!0,right:1,center:1},dl={top:1,bottom:1,middle:1},fl=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function pl(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function ml(e,t){for(var n=0;n<fl.length;n++){var r=fl[n],i=t[r];i!=null&&(e[r]=i)}}function hl(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function gl(e){return _l(e),I(e.rich,_l),e}function _l(e){if(e){e.font=ll.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||ul[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||dl[n]?n:`top`,e.padding&&=hr(e.padding)}}function vl(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function yl(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function bl(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function xl(e){var t=e.text;return t!=null&&(t+=``),t}function Sl(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Cl=1e-4,wl=20;function Tl(e){return e.replace(/^\s+|\s+$/g,``)}var El=Math.min,Dl=Math.max,Ol=Math.abs;function kl(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var Al=jl;function jl(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return Ml(e,t,n)}function Ml(e,t,n){return V(e)?Tl(e).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Nl(e,t,n){return t??=10,t=Math.min(Math.max(0,t),wl),e=(+e).toFixed(t),n?e:+e}function Pl(e){return e.sort(function(e,t){return e-t}),e}function Fl(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Il(e)}function Il(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function Ll(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Ol(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Rl(e,t){var n=Zn(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=L(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=L(i,function(e){return Math.floor(e)}),s=Zn(o,function(e,t){return e+t},0),c=L(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return L(o,function(e){return e/r})}function zl(e,t){var n=Math.max(Fl(e),Fl(t)),r=e+t;return n>wl?r:Nl(r,n)}function Bl(e){var t=Math.PI*2;return(e%t+t)%t}function Vl(e){return e>-Cl&&e<Cl}var Hl=/^(?:(\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 Ul(e){if(e instanceof Date)return e;if(V(e)){var t=Hl.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function Wl(e){return 10**Gl(e)}function Gl(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/10**t>=10&&t++,t}function Kl(e,t){var n=Gl(e),r=10**n,i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function ql(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function Jl(e){var t=parseFloat(e);return t==e&&(t!==0||!V(e)||e.indexOf(`x`)<=0)?t:NaN}function Yl(e){return!isNaN(Jl(e))}function Xl(){return Math.round(Math.random()*9)}function Zl(e,t){return t===0?e:Zl(t,e%t)}function Ql(e,t){return e==null?t:t==null?e:e*t/Zl(e,t)}var $l=`[ECharts] `,eu={},tu=typeof console<`u`&&console.warn&&console.log;function nu(e,t,n){if(tu){if(n){if(eu[t])return;eu[t]=!0}console[e]($l+t)}}function ru(e,t){nu(`error`,e,t)}function iu(e){throw Error(e)}function au(e,t,n){return(t-e)*n+e}var ou=`series\0`,su=`\0_ec_\0`;function cu(e){return e instanceof Array?e:e==null?[]:[e]}function lu(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var uu=`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`.split(`.`);function du(e){return H(e)&&!z(e)&&!(e instanceof Date)?e.value:e}function fu(e){return H(e)&&!(e instanceof Array)}function pu(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=W();I(t,function(e,n){if(!H(e)){t[n]=null;return}});var s=mu(e,o,n);return(r||i)&&hu(s,e,o,t),r&&gu(s,t),r||i?_u(s,t,i):a&&vu(s,t),yu(s),s}function mu(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||wu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function hu(e,t,n,r){I(r,function(i,a){if(!(!i||i.id==null)){var o=xu(i.id),s=n.get(o);if(s!=null){var c=e[s];gr(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function gu(e,t){I(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!wu(n)&&!wu(a)&&bu(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function _u(e,t,n){I(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||wu(r.existing)||r.existing&&t.id!=null&&!bu(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function vu(e,t){I(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function yu(e){var t=W();I(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),I(e,function(e){var n=e.newOption;gr(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),I(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(H(i)){if(a.name=i.name==null?r?r.name:ou+n:xu(i.name),r)a.id=xu(r.id);else if(i.id!=null)a.id=xu(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+ o++;while(t.get(a.id))}t.set(a.id,e)}})}function bu(e,t,n){var r=Su(t[e],null),i=Su(n[e],null);return r!=null&&i!=null&&r===i}function xu(e){return Su(e,``)}function Su(e,t){return e==null?t:V(e)?e:ir(e)||rr(e)?e+``:t}function Cu(e){var t=e.name;return!!(t&&t.indexOf(ou))}function wu(e){return e&&e.id!=null&&xu(e.id).indexOf(su)===0}function Tu(e){return su+e}function Eu(e,t,n){I(e,function(e){var r=e.newOption;H(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Du(t,r,e.existing,n))})}function Du(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Ou(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=Su(e[r].seriesId,null);if(a==null)return;for(var o=cu(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null)if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function ku(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return z(t.dataIndex)?L(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return z(t.name)?L(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Au(){var e=`__ec_inner_`+ ju++;return function(t){return t[e]||(t[e]={})}}var ju=Xl();function Mu(e,t,n){var r=Nu(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=Iu(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function Nu(e,t){var n;if(V(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=W(),a={},o=!1;return I(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&qn(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Pu={useDefault:!0,enableAll:!1,enableNone:!1},Fu={useDefault:!1,enableAll:!0,enableNone:!0};function Iu(e,t,n,r){r||=Pu;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function Lu(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Ru(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function zu(e){return e===`auto`?jr.domSupported?`html`:`richText`:e||`html`}function Bu(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(ir(r)){var o=au(n||0,r,i);return Nl(o,a?Math.max(Fl(n||0),Fl(r)):t)}else if(V(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=au(p,m,i);s[d]=Nl(o,a?Math.max(Fl(p),Fl(m)):t)}}return s}}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e})();var Vu=Au(),Hu=function(e,t,n,r){if(r){var i=Vu(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Vu(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Uu=1,Wu={},Gu=Au(),Ku=Au(),qu=[`emphasis`,`blur`,`select`],Ju=[`normal`,`emphasis`,`blur`,`select`],Yu=`highlight`,Xu=`downplay`,Zu=`select`,Qu=`unselect`,$u=`toggleSelect`,ed=`selectchanged`;function td(e){return e!=null&&e!==`none`}function nd(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function rd(e){nd(e,`emphasis`,2)}function id(e){e.hoverState===2&&nd(e,`normal`,0)}function ad(e){nd(e,`blur`,1)}function od(e){e.hoverState===1&&nd(e,`normal`,0)}function sd(e){e.selected=!0}function cd(e){e.selected=!1}function ld(e,t,n){t(e,n)}function ud(e,t,n){ld(e,t,n),e.isGroup&&e.traverse(function(e){ld(e,t,n)})}function dd(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function fd(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function pd(e,t,n,r){var i=n&&qn(n,`select`)>=0,a=!1;if(e instanceof Wc){var o=Gu(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(td(s)||td(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=F({},r),l=F({},l),l.fill=s):!td(l.fill)&&td(s)?(a=!0,r=F({},r),l=F({},l),l.fill=zo(s)):!td(l.stroke)&&td(c)&&(a||(r=F({},r),l=F({},l)),l.stroke=zo(c)),r.style=l}}if(r&&r.z2==null){a||(r=F({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function md(e,t,n){if(n&&n.z2==null){n=F({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function hd(e,t,n){var r=qn(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:fd(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=F({},n),o=F({opacity:r?i:a.opacity*.1},o),n.style=o),n}function gd(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return pd(this,e,t,n);if(e===`blur`)return hd(this,e,n);if(e===`select`)return md(this,e,n)}return n}function _d(e){e.stateProxy=gd;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=gd),n&&(n.stateProxy=gd)}function vd(e,t){!Ed(e,t)&&!e.__highByOuter&&ud(e,rd)}function yd(e,t){!Ed(e,t)&&!e.__highByOuter&&ud(e,id)}function bd(e,t){e.__highByOuter|=1<<(t||0),ud(e,rd)}function xd(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ud(e,id)}function Sd(e){ud(e,ad)}function Cd(e){ud(e,od)}function wd(e){ud(e,sd)}function Td(e){ud(e,cd)}function Ed(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Dd(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Ku(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){od(e)}),o&&n.push(i)),a.isBlured=!1}),I(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Od(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Cd(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||ad(e)}),Xn(t))a(e.getData(),t);else if(H(t))for(var u=er(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Ku(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function kd(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){Ku(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){ad(e)})}}}function Ad(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=ku(i,t);a=(z(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=Vu(o);Od(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Od(r,u,d,n)}}}function jd(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(Vu(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Md(e,t,n){var r=Vu(e),i=jd(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&kd(r.componentMainType,r.componentIndex,n),I(a,function(e){return vd(e,t)})):(Od(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&kd(r.componentMainType,r.componentIndex,n),vd(e,t))}function Nd(e,t,n){Dd(n);var r=Vu(e),i=jd(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?I(i,function(e){return yd(e,t)}):yd(e,t)}function Pd(e,t,n){if(qd(t)){var r=t.dataType,i=ku(e.getData(r),t);z(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Fd(e){I(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?wd(t):Td(t)})})}function Id(e){var t=[];return e.eachSeries(function(e){I(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Ld(e,t,n){Wd(e,!0),ud(e,_d),Bd(e,t,n)}function Rd(e){Wd(e,!1)}function zd(e,t,n,r){r?Rd(e):Ld(e,t,n)}function Bd(e,t,n){var r=Vu(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var Vd=[`emphasis`,`blur`,`select`],Hd={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Ud(e,t,n,r){n||=`itemStyle`;for(var i=0;i<Vd.length;i++){var a=Vd[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[Hd[n]]()}}function Wd(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Gd(e){return!!(e&&e.__highDownDispatcher)}function Kd(e){var t=Wu[e];return t==null&&Uu<=32&&(t=Wu[e]=Uu++),t}function qd(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Jd(e){var t=e.type;return t===`highlight`||t===`downplay`}function Yd(e){var t=Gu(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Xd=yc.CMD,Zd=[[],[],[]],Qd=Math.sqrt,$d=Math.atan2;function ef(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Xd.M,d=Xd.C,f=Xd.L,p=Xd.R,m=Xd.A,h=Xd.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=Qd(t[0]*t[0]+t[1]*t[1]),y=Qd(t[2]*t[2]+t[3]*t[3]),b=$d(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],Ea(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Ea(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Zd[c];x[0]=n[o++],x[1]=n[o++],Ea(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var tf=Math.sqrt,nf=Math.sin,rf=Math.cos,af=Math.PI;function of(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function sf(e,t){return(e[0]*t[0]+e[1]*t[1])/(of(e)*of(t))}function cf(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(sf(e,t))}function lf(e,t,n,r,i,a,o,s,c,l,u){var d=af/180*c,f=rf(d)*(e-n)/2+nf(d)*(t-r)/2,p=-1*nf(d)*(e-n)/2+rf(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=tf(m),s*=tf(m));var h=(i===a?-1:1)*tf((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+rf(d)*g-nf(d)*_,y=(t+r)/2+nf(d)*g+rf(d)*_,b=cf([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=cf(x,S);if(sf(x,S)<=-1&&(C=af),sf(x,S)>=1&&(C=0),C<0){var w=Math.round(C/af*1e6)/1e6;C=af*2+w%2*af}u.addData(l,v,y,o,s,b,C,d,a)}var uf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,df=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ff(e){var t=new yc;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=yc.CMD,c=e.match(uf);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(df)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,lf(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,lf(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var pf=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Wc);function mf(e){return e.setData!=null}function hf(e,t){var n=ff(e),r=F({},t);return r.buildPath=function(e){var t=mf(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){ef(n,e),this.dirtyShape()},r}function gf(e,t){return new pf(hf(e,t))}function _f(e,t){var n=hf(e,t);return function(e){N(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(pf)}function vf(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Wc(t);return o.createPathProxy(),o.buildPath=function(e){if(mf(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var yf=function(e){N(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=qn(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=qn(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Ei(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(Ei.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(ws);yf.prototype.type=`group`;var bf=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),xf=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new bf},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Wc);xf.prototype.type=`circle`;var Sf=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Cf=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Sf},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Wc);Cf.prototype.type=`ellipse`;var wf=Math.PI,Tf=wf*2,Ef=Math.sin,Df=Math.cos,Of=Math.acos,kf=Math.atan2,Af=Math.abs,jf=Math.sqrt,Mf=Math.max,Nf=Math.min,Pf=1e-4;function Ff(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<Pf))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function If(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/jf(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*jf(Mf(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Lf(e){var t;if(z(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Rf(e,t){var n,r=Mf(t.r,0),i=Mf(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Af(c-s),p=f>Tf&&f%Tf;if(p>Pf&&(f=p),!(r>Pf))e.moveTo(l,u);else if(f>Tf-Pf)e.moveTo(l+r*Df(s),u+r*Ef(s)),e.arc(l,u,r,s,c,!d),i>Pf&&(e.moveTo(l+i*Df(c),u+i*Ef(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Df(s),j=r*Ef(s),ee=i*Df(c),te=i*Ef(c),ne=f>Pf;if(ne){var re=t.cornerRadius;re&&(n=Lf(re),m=n[0],h=n[1],g=n[2],_=n[3]);var ie=Af(r-i)/2;if(v=Nf(ie,g),y=Nf(ie,_),b=Nf(ie,m),x=Nf(ie,h),w=S=Mf(v,y),T=C=Mf(b,x),(S>Pf||C>Pf)&&(E=r*Df(c),D=r*Ef(c),O=i*Df(s),k=i*Ef(s),f<wf)){var ae=Ff(A,j,O,k,E,D,ee,te);if(ae){var oe=A-ae[0],se=j-ae[1],ce=E-ae[0],le=D-ae[1],ue=1/Ef(Of((oe*ce+se*le)/(jf(oe*oe+se*se)*jf(ce*ce+le*le)))/2),de=jf(ae[0]*ae[0]+ae[1]*ae[1]);w=Nf(S,(r-de)/(ue+1)),T=Nf(C,(i-de)/(ue-1))}}}if(!ne)e.moveTo(l+A,u+j);else if(w>Pf){var fe=Nf(g,w),pe=Nf(_,w),M=If(O,k,A,j,r,fe,d),me=If(E,D,ee,te,r,pe,d);e.moveTo(l+M.cx+M.x0,u+M.cy+M.y0),w<S&&fe===pe?e.arc(l+M.cx,u+M.cy,w,kf(M.y0,M.x0),kf(me.y0,me.x0),!d):(fe>0&&e.arc(l+M.cx,u+M.cy,fe,kf(M.y0,M.x0),kf(M.y1,M.x1),!d),e.arc(l,u,r,kf(M.cy+M.y1,M.cx+M.x1),kf(me.cy+me.y1,me.cx+me.x1),!d),pe>0&&e.arc(l+me.cx,u+me.cy,pe,kf(me.y1,me.x1),kf(me.y0,me.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Pf)||!ne)e.lineTo(l+ee,u+te);else if(T>Pf){var fe=Nf(m,T),pe=Nf(h,T),M=If(ee,te,E,D,i,-pe,d),me=If(A,j,O,k,i,-fe,d);e.lineTo(l+M.cx+M.x0,u+M.cy+M.y0),T<C&&fe===pe?e.arc(l+M.cx,u+M.cy,T,kf(M.y0,M.x0),kf(me.y0,me.x0),!d):(pe>0&&e.arc(l+M.cx,u+M.cy,pe,kf(M.y0,M.x0),kf(M.y1,M.x1),!d),e.arc(l,u,i,kf(M.cy+M.y1,M.cx+M.x1),kf(me.cy+me.y1,me.cx+me.x1),d),fe>0&&e.arc(l+me.cx,u+me.cy,fe,kf(me.y1,me.x1),kf(me.y0,me.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var zf=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Bf=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new zf},t.prototype.buildPath=function(e,t){Rf(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Wc);Bf.prototype.type=`sector`;var Vf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Hf=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Vf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Wc);Hf.prototype.type=`ring`;function Uf(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Da(u,u,e[f]),Oa(d,d,e[f]);Da(u,u,r[0]),Oa(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(ma(e[f]));continue}else c=e[f-1],l=e[f+1];ga(a,l,c),ya(a,a,t);var h=xa(m,c),g=xa(m,l),_=h+g;_!==0&&(h/=_,g/=_),ya(o,a,-h),ya(s,a,g);var v=ha([],m,o),y=ha([],m,s);r&&(Oa(v,v,u),Da(v,v,d),Oa(y,y,u),Da(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Wf(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Uf(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Gf=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Kf=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Gf},t.prototype.buildPath=function(e,t){Wf(e,t,!0)},t}(Wc);Kf.prototype.type=`polygon`;var qf=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Jf=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new qf},t.prototype.buildPath=function(e,t){Wf(e,t,!1)},t}(Wc);Jf.prototype.type=`polyline`;var Yf={},Xf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Zf=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Xf},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=$c(Yf,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Wc);Zf.prototype.type=`line`;var Qf=[],$f=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function ep(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Qa:Za)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Qa:Za)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?ao:io)(e.x1,e.cpx1,e.x2,t),(n?ao:io)(e.y1,e.cpy1,e.y2,t)]}var tp=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new $f},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(co(n,o,i,u,Qf),o=Qf[1],i=Qf[2],co(r,s,a,u,Qf),s=Qf[1],a=Qf[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(to(n,o,c,i,u,Qf),o=Qf[1],c=Qf[2],i=Qf[3],to(r,s,l,a,u,Qf),s=Qf[1],l=Qf[2],a=Qf[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return ep(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=ep(this.shape,e,!0);return ba(t,t)},t}(Wc);tp.prototype.type=`bezier-curve`;var np=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),rp=function(e){N(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new np},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Wc);rp.prototype.type=`arc`;var ip=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Wc.prototype.getBoundingRect.call(this)},t}(Wc),ap=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),op=function(e){N(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(ap),sp=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(ap),cp=Math.min,lp=Math.max,up=Math.abs,dp=[0,0],fp=[0,0],pp=Ai(),mp=pp.minTv,hp=pp.maxTv,gp=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new fi;for(var n=0;n<2;n++)this._axes[n]=new fi;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);fi.sub(r[0],n[1],n[0]),fi.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&fi.set(t,0,0),pp.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!pp.negativeSize&&fi.copy(t,r?pp.useDir?pp.dirMinTv:mp:hp),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,dp),e._getProjMinMaxOnAxis(a,t._corners,fp),pp.negativeSize||dp[1]<fp[0]||dp[0]>fp[1]){if(i=!1,pp.negativeSize||n)return i;var s=up(fp[0]-dp[1]),c=up(dp[0]-fp[1]);cp(s,c)>hp.len()&&(s<c?fi.scale(hp,o,-s*r):fi.scale(hp,o,c*r))}else if(!n){var s=up(fp[0]-dp[1]),c=up(dp[0]-fp[1]);(pp.useDir||cp(s,c)<mp.len())&&((s<c||!pp.bidirectional)&&(fi.scale(mp,o,s*r),pp.useDir&&pp.calcDirMTV()),(s>=c||!pp.bidirectional)&&(fi.scale(mp,o,-c*r),pp.useDir&&pp.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=cp(l,o),s=lp(l,s)}n[0]=o+pp.touchThreshold,n[1]=s-pp.touchThreshold,pp.negativeSize=n[1]<n[0]},e}(),_p=[],vp=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Ei(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(_p)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Ls),yp=Au();function bp(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=U(r.duration,200),u=U(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),B(d)&&(d=d(n,i)),B(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function xp(e,t,n,r,i,a,o){var s=!1,c;B(i)?(o=a,a=i,i=null):H(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=bp(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Sp(e,t,n,r,i,a){xp(`update`,e,t,n,r,i,a)}function Cp(e,t,n,r,i,a){xp(`enter`,e,t,n,r,i,a)}function wp(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function Tp(e,t,n,r,i,a){wp(e)||xp(`leave`,e,t,n,r,i,a)}function Ep(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Tp(e,{style:{opacity:0}},t,n,r)}function Dp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Ep(e,t,n,r)}):Ep(e,t,n,r)}function Op(e){yp(e).oldStyle=e.style}var kp=A({Arc:()=>rp,BezierCurve:()=>tp,BoundingRect:()=>Ei,Circle:()=>xf,CompoundPath:()=>ip,Ellipse:()=>Cf,Group:()=>yf,Image:()=>Xc,IncrementalDisplayable:()=>vp,Line:()=>Zf,LinearGradient:()=>op,OrientedBoundingRect:()=>gp,Path:()=>Wc,Point:()=>fi,Polygon:()=>Kf,Polyline:()=>Jf,RadialGradient:()=>sp,Rect:()=>il,Ring:()=>Hf,Sector:()=>Bf,Text:()=>ll,WH:()=>Mp,XY:()=>jp,applyTransform:()=>qp,calcZ2Range:()=>gm,clipPointsByRect:()=>Qp,clipRectByRect:()=>$p,createIcon:()=>em,ensureCopyRect:()=>pm,ensureCopyTransform:()=>mm,expandOrShrinkRect:()=>am,extendPath:()=>Fp,extendShape:()=>Np,getShapeClass:()=>Lp,getTransform:()=>Kp,groupTransition:()=>Zp,initProps:()=>Cp,isBoundingRectAxisAligned:()=>dm,isElementRemoved:()=>wp,lineLineIntersect:()=>nm,linePolygonIntersect:()=>tm,makeImage:()=>zp,makePath:()=>Rp,mergePath:()=>Vp,registerShape:()=>Ip,removeElement:()=>Tp,removeElementWithFadeOut:()=>Dp,resizePath:()=>Hp,retrieveZInfo:()=>hm,setTooltipConfig:()=>cm,subPixelOptimize:()=>Gp,subPixelOptimizeLine:()=>Up,subPixelOptimizeRect:()=>Wp,transformDirection:()=>Jp,traverseElements:()=>um,traverseUpdateZ:()=>_m,updateProps:()=>Sp}),Ap={},jp=[`x`,`y`],Mp=[`width`,`height`];function Np(e){return Wc.extend(e)}var Pp=_f;function Fp(e,t){return Pp(e,t)}function Ip(e,t){Ap[e]=t}function Lp(e){if(Ap.hasOwnProperty(e))return Ap[e]}function Rp(e,t,n,r){var i=gf(e,t);return n&&(r===`center`&&(n=Bp(n,i.getBoundingRect())),Hp(i,n)),i}function zp(e,t,n){var r=new Xc({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(Bp(t,i))}}});return r}function Bp(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var Vp=vf;function Hp(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Up(e,t){return $c(e,e,{lineWidth:t}),e}function Wp(e,t){return el(e,e,t),e}var Gp=tl;function Kp(e,t){for(var n=ai([]);e&&e!==t;)si(n,e.getLocalTransform(),n),e=e.parent;return n}function qp(e,t,n){return t&&!Xn(t)&&(t=Ia.getLocalTransform(t)),n&&(t=di([],t)),Ea([],e,t)}function Jp(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Ol(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Ol(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=qp(a,t,n),Ol(a[0])>Ol(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Yp(e){return!e.isGroup}function Xp(e){return e.shape!=null}function Zp(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Yp(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Xp(e)&&(t.shape=P(e.shape)),t}var a=r(e);t.traverse(function(e){if(Yp(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Sp(e,r,n,Vu(e).dataIndex)}}})}function Qp(e,t){return L(e,function(e){var n=e[0];n=Dl(n,t.x),n=El(n,t.x+t.width);var r=e[1];return r=Dl(r,t.y),r=El(r,t.y+t.height),[n,r]})}function $p(e,t){var n=Dl(e.x,t.x),r=El(e.x+e.width,t.x+t.width),i=Dl(e.y,t.y),a=El(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function em(e,t,n){var r=F({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),Kn(i,n),new Xc(r)):Rp(e.replace(`path://`,``),r,n,`center`)}function tm(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(nm(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function nm(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=rm(u,d,c,l);if(im(f))return!1;var p=e-i,m=t-a,h=rm(p,m,c,l)/f;if(h<0||h>1)return!1;var g=rm(p,m,u,d)/f;return!(g<0||g>1)}function rm(e,t,n,r){return e*r-n*t}function im(e){return e<=1e-6&&e>=-1e-6}function am(e,t,n,r,i){return t==null?e:(ir(t)?om[0]=om[1]=om[2]=om[3]=t:(om[0]=t[0],om[1]=t[1],om[2]=t[2],om[3]=t[3]),r&&(om[0]=Dl(0,om[0]),om[1]=Dl(0,om[1]),om[2]=Dl(0,om[2]),om[3]=Dl(0,om[3])),n&&(om[0]=-om[0],om[1]=-om[1],om[2]=-om[2],om[3]=-om[3]),sm(e,om,`x`,`width`,3,1,i&&i[0]||0),sm(e,om,`y`,`height`,0,2,i&&i[1]||0),e)}var om=[0,0,0,0];function sm(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=Dl(0,El(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:Ol(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function cm(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=V(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&I(er(c),function(e){G(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Vu(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:Kn({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function lm(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function um(e,t){if(e)if(z(e))for(var n=0;n<e.length;n++)lm(e[n],t);else lm(e,t)}function dm(e){return!e||Ol(e[1])<fm&&Ol(e[2])<fm||Ol(e[0])<fm&&Ol(e[3])<fm}var fm=1e-5;function pm(e,t){return e?Ei.copy(e,t):t.clone()}function mm(e,t){return t?oi(e||ii(),t):void 0}function hm(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function gm(e){var t=-1/0,n=1/0;lm(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function _m(e,t,n){vm(e,t,n,-1/0)}function vm(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=Dl(vm(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=Dl(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}Ip(`circle`,xf),Ip(`ellipse`,Cf),Ip(`sector`,Bf),Ip(`ring`,Hf),Ip(`polygon`,Kf),Ip(`polyline`,Jf),Ip(`rect`,il),Ip(`line`,Zf),Ip(`bezierCurve`,tp),Ip(`arc`,rp);var ym={};function bm(e,t){for(var n=0;n<qu.length;n++){var r=qu[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function xm(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=B(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<qu.length;l++){var u=qu[l],d=t[u];c[u]=U(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Sm(e,t,n,r){n||=ym;for(var i=e instanceof ll,a=!1,o=0;o<Ju.length;o++){var s=t[Ju[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new ll,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=xm(n,t),u=t.normal,d=!!u.getShallow(`show`),f=wm(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(Tm(u,n,!1));for(var o=0;o<qu.length;o++){var p=qu[o],s=t[p];if(s){var m=c.ensureState(p),h=!!U(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=wm(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=Tm(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(Nm(c).setLabelText=function(e){var r=xm(n,t,e);bm(c,r)})}else c&&(c.ignore=!0);e.dirty()}function Cm(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<qu.length;r++){var i=qu[r];n[i]=e.getModel([i,t])}return n}function wm(e,t,n,r,i){var a={};return Em(a,e,n,r,i),t&&F(a,t),a}function Tm(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=U(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function Em(e,t,n,r,i){n||=ym;var a=t.ecModel,o=a&&a.option.textStyle,s=Dm(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=U(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);jm(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=ir(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Im.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=hr(_),h.__marginType=Im.textMargin)}jm(e,t,o,null,null,n,r,i,!0,!1)}function Dm(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||ym).rich;if(n){t||={};for(var r=er(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var Om=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],km=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],Am=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function jm(e,t,n,r,i,a,o,s,c,l){n=!o&&n||ym;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=U(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=U(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=U(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=U(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<Om.length;_++){var v=Om[_],y=i!==!1&&r?pr(t.getShallow(v),r.getShallow(v),n[v]):U(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<km.length;_++){var v=km[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<Am.length;_++){var v=Am[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function Mm(e,t){var n=t&&t.getModel(`textStyle`);return _r([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var Nm=Au();function Pm(e,t,n,r){if(e){var i=Nm(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function Fm(e,t,n,r,i){var a=Nm(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=U(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=Bu(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,bm(e,xm({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?Cp:Sp)(e,{percent:1},r,t,null,l)}var Im={minMargin:1,textMargin:2},Lm=[`textStyle`,`color`],Rm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],zm=new ll,Bm=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Lm):null)},e.prototype.getFont=function(){return Mm({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<Rm.length;n++)t[Rm[n]]=this.getShallow(Rm[n]);return zm.useStyle(t),zm.update(),zm.getBoundingRect()},e}(),Vm=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Hm=qr(Vm),Um=function(){function e(){}return e.prototype.getLineStyle=function(e){return Hm(this,e)},e}(),Wm=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Gm=qr(Wm),Km=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Gm(this,e,t)},e}(),qm=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){Gn(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(P(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!jr.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();zr(qm),Ur(qm),Yn(qm,Um),Yn(qm,Km),Yn(qm,Yr),Yn(qm,Bm);function Jm(e){return e==null?0:e.length||1}function Ym(e){return e}var Xm=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||Ym,this._newKeyGetter=r||Ym,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=Jm(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=Jm(c),d=Jm(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=Jm(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=Jm(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),Zm=W([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Qm=`original`,$m=`arrayRows`,eh=`objectRows`,th=`keyedColumns`,nh=`typedArray`,rh=`unknown`,ih=`column`,ah={Must:1,Might:2,Not:3},oh=Au();function sh(e){oh(e).datasetMap=W()}function ch(e,t,n){var r={},i=uh(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=oh(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),I(e,function(t,n){var i=H(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});I(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function lh(e,t,n){var r={};if(!uh(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&I(a,function(e,t){(H(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=ph(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===ah.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===ah.Not)&&(e.n=c),f(e)&&s[e.n]!==ah.Not)return e;d||(u===ah.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function uh(e){if(!e.get(`data`,!0))return Iu(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},Pu).models[0]}function dh(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Iu(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},Pu).models}function fh(e,t){return ph(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function ph(e,t,n,r,i,a){var o,s=5;if(or(e))return ah.Not;var c,l;if(r){var u=r[a];H(u)?(c=u.name,l=u.type):V(u)&&(c=u)}if(l!=null)return l===`ordinal`?ah.Must:ah.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return ah.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return ah.Not;var f=_[c];if(!f||or(f))return ah.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=du(g);if(!z(y))return ah.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=V(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?ah.Might:ah.Not;if(t&&e!==`-`)return ah.Must}return ah.Not}var mh=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&fh(this,n)===ah.Must&&(r.type=`ordinal`)}}return e}();function hh(e){return e instanceof mh}function gh(e,t,n){n||=yh(e);var r=t.seriesLayoutBy,i=bh(e,n,r,t.sourceHeader,t.dimensions);return new mh({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:P(t)})}function _h(e){return new mh({data:e,sourceFormat:or(e)?nh:Qm})}function vh(e){return new mh({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:P(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function yh(e){var t=rh;if(or(e))t=nh;else if(z(e)){e.length===0&&(t=$m);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(z(i)||or(i)){t=$m;break}else if(H(i)){t=eh;break}}}}else if(H(e)){for(var a in e)if(G(e,a)&&Xn(e[a])){t=th;break}}return t}function bh(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Sh(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?Ch(function(e){e!=null&&e!==`-`&&(V(e)?o??=1:o=0)},n,s,10):o=ir(r)?r:r?1:0,!i&&o===1&&(i=[],Ch(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=xh(e);else if(t===`keyedColumns`)i||(i=[],I(e,function(e,t){i.push(t)}));else if(t===`original`){var c=du(e[0]);a=z(c)&&c.length||1}return{startIndex:o,dimensionsDefine:Sh(i),dimensionsDetectedCount:a}}function xh(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return er(n)}function Sh(e){if(e){var t=W();return L(e,function(e,n){e=H(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+ i.count++:t.set(r.name,{count:1}),r})}}function Ch(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function wh(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var Th,Eh,Dh,Oh,kh,Ah,jh=function(){function e(e,t){var n=hh(e)?e:_h(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),Ah(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Ah=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=kh[Hh(o,s)];F(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=R(Fh(o,s),null,i,c,l),e.count=R(Rh(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};kh=(e={},e[$m+`_`+ih]={pure:!0,appendData:i},e[$m+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[eh]={pure:!0,appendData:i},e[th]={pure:!0,appendData:function(e){var t=this._data;I(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Qm]={appendData:i},e[nh]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),Mh=function(e){z(e)||ru(`series.data or dataset.source must be an array.`)};Th={},Th[$m+`_`+ih]=Mh,Th[$m+`_row`]=Mh,Th[eh]=Mh,Th[th]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??ru(`dimension name must not be null/undefined.`)},Th[Qm]=Mh;var Nh=function(e,t,n,r){return e[r]},Ph=(Eh={},Eh[$m+`_`+ih]=function(e,t,n,r){return e[r+t]},Eh[$m+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Eh[eh]=Nh,Eh[th]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},Eh[Qm]=Nh,Eh);function Fh(e,t){return Ph[Hh(e,t)]}var Ih=function(e,t,n){return e.length},Lh=(Dh={},Dh[$m+`_`+ih]=function(e,t,n){return Math.max(0,e.length-t)},Dh[$m+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Dh[eh]=Ih,Dh[th]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},Dh[Qm]=Ih,Dh);function Rh(e,t){return Lh[Hh(e,t)]}var zh=function(e,t,n){return e[t]},Bh=(Oh={},Oh[$m]=zh,Oh[eh]=function(e,t,n){return e[n]},Oh[th]=zh,Oh[Qm]=function(e,t,n){var r=du(e);return r instanceof Array?r[t]:r},Oh[nh]=zh,Oh);function Vh(e){return Bh[e]}function Hh(e,t){return e===`arrayRows`?e+`_`+t:e}function Uh(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return Vh(a)(r,o,s)}else{var c=r;return a===`original`&&(c=du(r)),c}}}}var Wh=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function Gh(e,t){var n={},r=n.encode={},i=W(),a=[],o=[],s={};I(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;Kh(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),Jh(n.type)&&(a[0]=t),Kh(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Zm.each(function(e,t){var i=Kh(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=L(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new Wh(s,t),n}function Kh(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function qh(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function Jh(e){return!(e===`ordinal`||e===`time`)}var Yh=function(){function e(e){this.otherDims={},e!=null&&F(this,e)}return e}();function Xh(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!ir(e)&&e!=null&&e!==`-`&&(e=+Ul(e)),e==null||e===``?NaN:Number(e))}var Zh=W({number:function(e){return parseFloat(e)},time:function(e){return+Ul(e)},trim:function(e){return V(e)?_r(e):e}});function Qh(e){return Zh.get(e)}var $h={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},eg=function(){function e(e,t){ir(t)||iu(``),this._opFn=$h[e],this._rvalFloat=Jl(t)}return e.prototype.evaluate=function(e){return ir(e)?this._opFn(e,this._rvalFloat):this._opFn(Jl(e),this._rvalFloat)},e}(),tg=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ir(e)?e:Jl(e),r=ir(t)?t:Jl(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=V(e),s=V(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),ng=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Jl(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Jl(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function rg(e,t){return e===`eq`||e===`ne`?new ng(e===`eq`,t):G($h,e)?new eg(e,t):null}var ig=`undefined`,ag=typeof Uint32Array===ig?Array:Uint32Array,og=typeof Uint16Array===ig?Array:Uint16Array,sg=typeof Int32Array===ig?Array:Int32Array,cg=typeof Float64Array===ig?Array:Float64Array,lg={float:cg,int:sg,ordinal:Array,number:Array,time:cg},ug;function dg(e){return e>65535?ag:og}function fg(){return[1/0,-1/0]}function pg(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function mg(e,t,n,r,i){var a=lg[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var hg=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=W()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=ug[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],wh(r),this._dimensions=L(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new lg[t||`float`](this._rawCount),this._rawExtent[i]=fg(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=fg());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];mg(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=ug.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=L(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=fg()),mg(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=dg(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(dg(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=er(e),i=r.length;if(!i)return this;var a=t.count(),o=new(dg(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=fg();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(dg(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(dg(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=fg(),d=new(dg(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=fg();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&Zn(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?pg(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=P(this._extent),e._rawExtent=P(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Xh(e[r],this._dimensions[r])}ug={arrayRows:e,objectRows:function(e,t,n,r){return Xh(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Xh(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),gg=Au(),_g={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},vg=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=xg(this.source))},e.prototype.getSourceDimensionIndex=function(e){return U(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=wh(this.source),n=!Sg(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=_g[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function yg(e){return e instanceof vg}function bg(e){for(var t=W(),n=0;n<(e||[]).length;n++){var r=e[n],i=H(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function xg(e){var t=gg(e);return t.dimNameMap||=bg(e.dimensionsDefine)}function Sg(e){return e>30}var Cg=H,wg=L,Tg=typeof Int32Array>`u`?Array:Int32Array,Eg=`e\0\0`,Dg=-1,Og=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],kg=[`_approximateExtent`],Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;yg(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=V(u)?new Yh({name:u}):u instanceof Yh?u:new Yh(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]);var m=l;ir(d.storeDimIndex)&&(m=d.storeDimIndex),p.itemName===0&&(this._nameDimIdx=m),p.itemId===0&&(this._idDimIdx=m),r&&(d.storeDimIndex=l)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var h=this._dimIdxToName=W();I(a,function(e){h.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(ir(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof hg&&(i=e),!i){var a=this.dimensions,o=hh(e)||Xn(e)?new jh(e,a.length):e;i=new hg;var s=wg(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Gh(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&Ig(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&fu(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Su(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Su(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)Ig(this,o);Ag(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){Cg(e)?F(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Mg(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return jg(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return z(e)?r.getValues(wg(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?Dg:r},e.prototype.each=function(e,t,n){B(e)&&(n=t,t=e,e=[]);var r=n||this,i=wg(Ng(e),this._getStoreDimIndex,this);this._store.each(i,r?R(t,r):t)},e.prototype.filterSelf=function(e,t,n){B(e)&&(n=t,t=e,e=[]);var r=n||this,i=wg(Ng(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?R(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=er(e),i=[];return I(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){B(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=wg(Ng(e),this._getStoreDimIndex,this),o=Fg(this);return o._store=this._store.map(a,i?R(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=wg(Ng(e),this._getStoreDimIndex,this);this._store.modify(a,i?R(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=Fg(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=Fg(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=Fg(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new qm(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new Xm(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return jg(e,t)},function(e){return jg(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},Cg(e)?F(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),z(i)?i=i.slice():Cg(i)&&(i=F({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Cg(t)?F(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Cg(e)?F(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?F(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Hu(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){I(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:wg(this.dimensions,this._getDimInfo,this),this.hostModel),Pg(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];B(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(mr(arguments)))})},e.internalField=function(){Ag=function(e){var t=e._invertedIndicesMap;I(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Tg(a.categories.length);for(var s=0;s<n.length;s++)n[s]=Dg;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},Mg=function(e,t,n){return Su(e._getCategory(t,n),null)},jg=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Mg(e,e._idDimIdx,t)),n??=Eg+t,n},Ng=function(e){return z(e)||(e=e==null?[]:[e]),e},Fg=function(t){var n=new e(t._schema?t._schema:wg(t.dimensions,t._getDimInfo,t),t.hostModel);return Pg(n,t),n},Pg=function(e,t){I(Og.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,I(kg,function(n){e[n]=P(t[n])}),e._calculationInfo=F({},t._calculationInfo)},Ig=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=Mg(e,i,t)),s==null&&a!=null&&(r[t]=s=Mg(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Rg(e,t){hh(e)||(e=_h(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=W(),a=[],o=Bg(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Sg(o),c=r===e.dimensionsDefine,l=c?xg(e):bg(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=W(u),f=new sg(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=H(n)?n:{name:n},o=new Yh,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=cu(e).slice();if(n.length===1&&!V(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);I(n,function(e,n){var i=V(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;I(n,function(e){var t,n,r,i;if(V(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=F({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=cu(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}I(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(Kn(o,i),t,a),o.name==null&&n){var s=n[a];!H(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&Kn(o.otherDims,r)})}});function g(e,t,n){Zm.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)I(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=Vg(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(fh(e,S)===ah.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return zg(a),new vg({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function zg(e){for(var t=W(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function Bg(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return I(t,function(e){var t;H(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Vg(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Hg={},Ug={},Wg=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Hg,!0),this._normalMasterList=n(Ug,!1);function n(n,r){var i=[];return I(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){I(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Hg[e]=t;return}Ug[e]=t},e.get=function(e){return Ug[e]||Hg[e]},e}();function Gg(e){return!!Hg[e]}var Kg={coord:1,coord2:2};function qg(e){Jg.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Jg=W();function Yg(e){var t=e.getShallow(`coord`,!0),n=Kg.coord;if(t==null){var r=Jg.get(e.type);r&&r.getCoord2&&(n=Kg.coord2,t=r.getCoord2(e))}return{coord:t,from:n}}var Xg={none:0,dataCoordSys:1,boxCoordSys:2};function Zg(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=Xg.none;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=Xg.dataCoordSys,a||(i=Xg.none)):r===`box`&&(i=Xg.boxCoordSys,!a&&!Gg(n)&&(i=Xg.none))}return{coordSysType:n,kind:i}}function Qg(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=Zg(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==Xg.dataCoordSys&&(o=Xg.dataCoordSys,s=n),o===Xg.none||s!==n)return!1;var c=r(n,t);return c?(o===Xg.dataCoordSys?t.coordinateSystem=c:t.boxCoordinateSystem=c,!0):!1}var $g=function(){function e(e){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=e}return e}();function e_(e){var t=e.get(`coordinateSystem`),n=new $g(t),r=t_[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var t_={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Pu).models[0],a=e.getReferringComponents(`yAxis`,Pu).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),n_(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),n_(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Pu).models[0];t.coordSysDims=[`single`],n.set(`single`,i),n_(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Pu).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),n_(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),n_(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),n_(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Pu).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function n_(e){return e.get(`type`)===`category`}function r_(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;i_(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f;if(I(a,function(e,t){V(e)&&(a[t]=e={name:e}),c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&e.type!==`ordinal`&&e.type!==`time`&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,m=u.type,h=0;I(a,function(e){e.coordDim===p&&h++});var g={name:d,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:f,coordDim:f,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),o.appendCalculationDimension(g),o.appendCalculationDimension(_)):(a.push(g),a.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function i_(e){return!yg(e.schema)}function a_(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function o_(e,t){return a_(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function s_(e,t){var n=e.get(`coordinateSystem`),r=Wg.get(n),i;return t&&t.coordSysDims&&(i=L(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=qh(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function c_(e,t,n){var r,i;return n&&I(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function l_(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=_h(e)):(i=r.getSource(),a=i.sourceFormat===Qm);var o=e_(t),s=s_(t,o),c=n.useEncodeDefaulter,l=B(c)?c:c?nr(ch,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Rg(i,u),f=c_(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=r_(t,{schema:d,store:p}),h=new Lg(d,t);h.setCalculationInfo(m);var g=f!=null&&u_(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function u_(e){if(e.sourceFormat===`original`)return!z(du(d_(e.data||[])))}function d_(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var f_=Math.round(Math.random()*10);function p_(e){return[e||``,f_++].join(`_`)}function m_(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Ir(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Ir(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function h_(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(I(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),I(u.successor,d?p:f)}I(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return I(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),I(c,function(e){qn(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);qn(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return I(e,function(e){qn(t,e)>=0&&n.push(e)}),n}}function g_(e,t){return Gn(Gn({},e,!0),t,!0)}var __=Math.log(2);function v_(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/__);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*v_(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function y_(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=v_(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*v_(n,7,o===0?1:0,1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var b_=`___zrEVENTSAVED`,x_=[];function S_(e,t,n,r,i){return w_(x_,t,r,i,!0)&&w_(e,n,x_[0],x_[1])}function C_(e,t){e&&n(e),t&&n(t);function n(e){var t=e[b_];t&&(t.clearMarkers&&t.clearMarkers(),delete e[b_])}}function w_(e,t,n,r,i){if(t.getBoundingClientRect&&jr.domSupported&&!D_(t)){var a=t[b_]||(t[b_]={}),o=E_(T_(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function T_(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){I(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function E_(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?y_(s,o):y_(o,s))}function D_(e){return e.nodeName.toUpperCase()===`CANVAS`}var O_=/([&<>"'])/g,k_={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function A_(e){return e==null?``:(e+``).replace(O_,function(e,t){return k_[t]})}var j_={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},M_={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},N_=`ZH`,P_=`EN`,F_=P_,I_={},L_={},R_=jr.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||F_).toUpperCase().indexOf(N_)>-1?N_:F_}():F_;function z_(e,t){e=e.toUpperCase(),L_[e]=new qm(t),I_[e]=t}function B_(e){if(V(e)){var t=I_[e.toUpperCase()]||{};return e===N_||e===P_?P(t):Gn(P(t),P(I_[F_]),!1)}else return Gn(P(e),P(I_[F_]),!1)}function V_(e){return L_[e]}function H_(){return L_[F_]}z_(P_,j_),z_(N_,M_);var U_=null;function W_(){return U_}var G_=1e3,K_=G_*60,q_=K_*60,J_=q_*24,Y_=J_*365,X_={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})/},Z_={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},Q_=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,$_=`{yyyy}-{MM}-{dd}`,ev={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:$_,hour:$_+` `+Z_.hour,minute:$_+` `+Z_.minute,second:$_+` `+Z_.second,millisecond:Q_},tv=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],nv=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function rv(e){return!V(e)&&!B(e)?iv(e):e}function iv(e){e||={};var t={},n=!0;return I(tv,function(t){n&&=e[t]==null}),I(tv,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=tv[s],l=H(a)&&!z(a)?a[c]:a,u=void 0;z(l)?(u=l.slice(),o=u[0]||``):V(l)?(o=l,u=[o]):(o==null?o=Z_[r]:X_[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function av(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function ov(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function sv(e){return e===ov(e)}function cv(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function lv(e,t,n,r){var i=Ul(e),a=i[pv(n)](),o=i[mv(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[hv(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[gv(n)](),d=(u-1)%12+1,f=i[_v(n)](),p=i[vv(n)](),m=i[yv(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof qm?r:V_(r||R_)||H_()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,av(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,av(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,av(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,av(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,av(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,av(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,av(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,av(m,3)).replace(/{S}/g,m+``)}function uv(e,t,n,r,i){var a=null;if(V(n))a=n;else if(B(n)){var o={time:e.time,level:e.time.level},s=W_();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=dv(e.value,i);a=n[u][u][0]}}return lv(new Date(e.value),a,i,r)}function dv(e,t){var n=Ul(e),r=n[mv(t)]()+1,i=n[hv(t)](),a=n[gv(t)](),o=n[_v(t)](),s=n[vv(t)](),c=n[yv(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function fv(e,t,n){switch(t){case`year`:e[xv(n)](0);case`month`:e[Sv(n)](1);case`day`:e[Cv(n)](0);case`hour`:e[wv(n)](0);case`minute`:e[Tv(n)](0);case`second`:e[Ev(n)](0)}return e}function pv(e){return e?`getUTCFullYear`:`getFullYear`}function mv(e){return e?`getUTCMonth`:`getMonth`}function hv(e){return e?`getUTCDate`:`getDate`}function gv(e){return e?`getUTCHours`:`getHours`}function _v(e){return e?`getUTCMinutes`:`getMinutes`}function vv(e){return e?`getUTCSeconds`:`getSeconds`}function yv(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function bv(e){return e?`setUTCFullYear`:`setFullYear`}function xv(e){return e?`setUTCMonth`:`setMonth`}function Sv(e){return e?`setUTCDate`:`setDate`}function Cv(e){return e?`setUTCHours`:`setHours`}function wv(e){return e?`setUTCMinutes`:`setMinutes`}function Tv(e){return e?`setUTCSeconds`:`setSeconds`}function Ev(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Dv(e){if(!Yl(e))return V(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Ov(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var kv=hr;function Av(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&_r(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Ul(e):e;if(!isNaN(+c))return lv(c,r,n);if(s)return`-`}if(t===`ordinal`)return rr(e)?i(e):ir(e)&&a(e)?e+``:`-`;var l=Jl(e);return a(l)?Dv(l):rr(e)?i(e):typeof e==`boolean`?e+``:`-`}var jv=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Mv=function(e,t){return`{`+e+(t??``)+`}`};function Nv(e,t,n){z(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=jv[a];e=e.replace(Mv(o),Mv(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Mv(jv[c],s),n?A_(l):l)}return e}function Pv(e,t){var n=V(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+A_(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+A_(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Fv(e,t){return t||=`transparent`,V(e)?e:H(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Iv(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Lv=I,Rv=[`left`,`right`,`top`,`bottom`,`width`,`height`],zv=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Bv(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var Vv=Bv;nr(Bv,`vertical`),nr(Bv,`horizontal`);function Hv(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function Uv(e,t){var n=qv(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===Kv.point)a=n.refPoint,i=Gv(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=z(o)?o:[o,o];i=Gv(r,n.refContainer),a=n.boxCoordFrom===Kg.coord2?n.refPoint:[Al(s[0],i.width)+i.x,Al(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function Wv(e,t){var n=Uv(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);z(a)||(a=[0,a]);var o=Al(r.width,t.getWidth()),s=Al(r.height,t.getHeight()),c=Math.min(o,s),l=Al(a[0],c/2),u=Al(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function Gv(e,t,n){n=kv(n||0);var r=t.width,i=t.height,a=Al(e.left,r),o=Al(e.top,i),s=Al(e.right,r),c=Al(e.bottom,i),l=Al(e.width,r),u=Al(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Ei((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var Kv={rect:1,point:2};function qv(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Yg(e),l=c.coord,u=c.from;if(o.dataToLayout){a=Kv.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Kv.point,s=u,i=o.dataToPoint(l))}return a??=Kv.rect,a===Kv.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function Jv(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new Ei(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=Gv(Kn({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Yv(e){var t=e.layoutMode||e.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Xv(e,t,n){var r=n&&n.ignoreSize;!z(r)&&(r=[r,r]);var i=o(zv[0],0),a=o(zv[1],1);c(zv[0],e,i),c(zv[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(Lv(n,function(t){c[t]=e[t]}),Lv(n,function(e){G(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!G(a,f)&&G(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){Lv(e,function(e){t[e]=n[e]})}}function Zv(e){return Qv({},e)}function Qv(e,t){return t&&e&&Lv(Rv,function(n){G(t,n)&&(e[n]=t[n])}),e}var $v=Au(),ey=function(e){N(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=p_(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Yv(this),r=n?Zv(e):{};Gn(e,t.getTheme().get(this.mainType)),Gn(e,this.getDefaultOption()),n&&Xv(e,r,n)},t.prototype.mergeOption=function(e,t){Gn(this.option,e,!0);var n=Yv(this);n&&Xv(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Rr(e))return e.defaultOption;var t=$v(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=Gn(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Iu(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Hv(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(qm);Vr(ey,qm),Kr(ey),m_(ey),h_(ey,ty);function ty(e){var t=[];return I(ey.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=L(t,function(e){return Ir(e).main}),e!==`dataset`&&qn(t,`dataset`)<=0&&t.unshift(`dataset`),t}var ny=Au();Au();var ry=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=cu(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return ay(this,ny,r,i,e,t,n)},e.prototype.clearColorPalette=function(){oy(this,ny)},e}();function iy(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function ay(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:iy(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function oy(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var sy=/\{@(.+?)\}/g,cy=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&z(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),B(i))return s.status=t,s.dimensionIndex=r,i(s);if(V(i))return Nv(i,s).replace(sy,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=Uh(o,e,i);if(a&&z(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return Uh(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function ly(e){var t,n;return H(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function uy(e){return new dy(e)}var dy=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(z(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p,this._outputDueEnd=this._settedOutputEnd==null?p:this._settedOutputEnd}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){fy.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:fy.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),z(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),fy=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}(),py=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Xh(e,t)},e}();function my(e,t){var n=new py,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&iu(``);var o=[],s={},c=e.dimensionsDefine;if(c)I(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(G(s,n)&&iu(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=Fh(i,ih);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=R(hy,null,e)),n.cloneRawData=R(gy,null,e),n.count=R(Rh(i,ih),null,r,a,o);var d=Vh(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=R(_y,null,o,s),n.cloneAllDimensionInfo=R(vy,null,o),n}function hy(e){var t=e.sourceFormat;return Cy(t)||iu(``),e.data}function gy(e){var t=e.sourceFormat,n=e.data;if(Cy(t)||iu(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(F({},n[i]));return r}}function _y(e,t,n){if(n!=null){if(ir(n)||!isNaN(n)&&!G(t,n))return e[n];if(G(t,n))return t[n]}}function vy(e){return P(e)}var yy=W();function by(e){e=P(e);var t=e.type,n=``;t||iu(n);var r=t.split(`:`);r.length!==2&&iu(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,yy.set(t,e)}function xy(e,t,n){var r=cu(e),i=r.length;i||iu(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=Sy(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function Sy(e,t,n,r){var i=``;t.length||iu(i),H(e)||iu(i);var a=e.type,o=yy.get(a);o||iu(i);var s=L(t,function(e){return my(e,o)});return L(cu(o.transform({upstream:s[0],upstreamList:s,config:P(e.config)})),function(e,n){var r=``;H(e)||iu(r),e.data||iu(r),Cy(yh(e.data))||iu(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:ih,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:ih,sourceHeader:0,dimensions:e.dimensions};return gh(e.data,i,null)})}function Cy(e){return e===`arrayRows`||e===`objectRows`}var wy=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Ey(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=or(o)?nh:Qm,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=U(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=U(u.sourceHeader,d.sourceHeader),m=U(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[gh(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[gh(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Dy(``);var i,a=[],o=[];return I(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Dy(``),a.push(t),o.push(e._getVersionSign())}),n?i=xy(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[vh(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Ey(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new hg,o.initData(new jh(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ey(e)){var t=uh(e);return t?[t.getSourceManager()]:[]}else return L(dh(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Ey(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Ty(e){e.option.transform&&yr(e.option.transform)}function Ey(e){return e.mainType===`series`}function Dy(e){throw Error(e)}var K={color:{},darkColor:{},size:{}},Oy=K.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)`};for(var ky in F(Oy,{primary:Oy.neutral80,secondary:Oy.neutral70,tertiary:Oy.neutral60,quaternary:Oy.neutral50,disabled:Oy.neutral20,border:Oy.neutral30,borderTint:Oy.neutral20,borderShade:Oy.neutral40,background:Oy.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Oy.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Oy.neutral70,axisLineTint:Oy.neutral40,axisTick:Oy.neutral70,axisTickMinor:Oy.neutral60,axisLabel:Oy.neutral70,axisSplitLine:Oy.neutral15,axisMinorSplitLine:Oy.neutral05}),Oy)if(Oy.hasOwnProperty(ky)){var Ay=Oy[ky];ky===`theme`?K.darkColor.theme=Oy.theme.slice():ky===`highlight`?K.darkColor.highlight=`rgba(255,231,130,0.4)`:ky.indexOf(`accent`)===0?K.darkColor[ky]=Po(Ay,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):K.darkColor[ky]=Po(Ay,null,function(e){return e*.9},function(e){return 1-e**1.5})}K.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var jy=`line-height:1`;function My(e){var t=e.lineHeight;return t==null?jy:`line-height:`+A_(t+``)+`px`}function Ny(e,t){var n=e.color||K.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||K.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+A_(r+``)+`px;color:`+A_(n)+`;font-weight:`+A_(i+``),valueStyle:`font-size:`+A_(o+``)+`px;color:`+A_(a)+`;font-weight:`+A_(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Py=[0,10,20,30],Fy=[``,`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function Iy(e,t){return t.type=e,t}function Ly(e){return e.type===`section`}function Ry(e){return Ly(e)?By:Vy}function zy(e){if(Ly(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return I(e.blocks,function(e){var n=zy(e);n>=t&&(t=n+ +(r&&(!n||Ly(e)&&!e.noHeader)))}),t}return 0}function By(e,t,n,r){var i=t.noHeader,a=Uy(zy(t)),o=[],s=t.blocks||[];gr(!s||z(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(G(l,c)){var u=new tg(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}I(s,function(n,i){var s=t.valueFormatter,c=Ry(n)(s?F(F({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):Wy(r,o.join(``),i?n:a.html);if(i)return d;var f=Av(t.header,`ordinal`,e.useUTC),p=Ny(r,e.renderMode).nameStyle,m=My(r);return e.renderMode===`richText`?qy(e,f,p)+a.richText+d:Wy(r,`<div style="`+p+`;`+m+`;">`+A_(f)+`</div>`+d,n)}function Vy(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=z(e)?e:[e],L(e,function(e,t){return Av(e,z(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||K.color.secondary,i),f=a?``:Av(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.dataIndex),h=!s||!a,g=!s&&a,_=Ny(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:qy(e,f,v))+(o?``:Jy(e,m,h,g,y)):Wy(r,(s?``:d)+(a?``:Gy(f,!s,v))+(o?``:Ky(m,h,g,y)),n)}}function Hy(e,t,n,r,i,a){if(e)return Ry(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Uy(e){return{html:Py[e],richText:Fy[e]}}function Wy(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=My(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function Gy(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+A_(e)+`</span>`}function Ky(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=z(e)?e:[e],`<span style="`+i+`;`+r+`">`+L(e,function(e){return A_(e)}).join(` `)+`</span>`}function qy(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Jy(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(` `):t,a)}function Yy(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Fv(n)}function Xy(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var Zy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Xl()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+ this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Pv({color:t,type:e,renderMode:n,markerId:r});return V(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};z(t)?I(t,function(e){return F(n,e)}):F(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Qy(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=z(s),l=Yy(t,n),u,d,f,p;if(o>1||c&&!o){var m=$y(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=Uh(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Cu(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Iy(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Iy(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!_r(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function $y(e,t,n,r,i){var a=t.getData(),o=Zn(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?I(r,function(e){u(Uh(a,n,e),e)}):I(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Iy(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var eb=Au();function tb(e,t){return e.getName(t)||e.getId(t)}var nb=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=uy({count:ab,reset:ob}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(eb(this).sourceManager=new wy(this)).prepareSource();var r=this.getInitialData(e,n);cb(r,this),this.dataTask.context.data=r,eb(this).dataBeforeProcessed=r,rb(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Yv(this),r=n?Zv(e):{},i=this.subType;ey.hasClass(i)&&(i+=`Series`),Gn(e,t.getTheme().get(this.subType)),Gn(e,this.getDefaultOption()),lu(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Xv(e,r,n)},t.prototype.mergeOption=function(e,t){e=Gn(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Yv(this);n&&Xv(this.option,e,n);var r=eb(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);cb(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,eb(this).dataBeforeProcessed=i,rb(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!or(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&lu(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=ub(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return eb(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=ub(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}eb(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return W(e)},t.prototype.getSourceManager=function(){return eb(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return eb(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;var c=[],l=1/0,u=-1,d=0;return i.each(t,function(e,t){var n=s-o.dataToCoord(e),i=Math.abs(n);i<=r&&((i<l||i===l&&n>=0&&u<0)&&(l=i,u=n,d=0),n===u&&(c[d++]=t))}),c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return Qy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(jr.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=ry.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=tb(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=er(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[tb(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){H(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=tb(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=tb(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return ey.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(ey);Yn(nb,cy),Yn(nb,ry),Vr(nb,ey);function rb(e){var t=e.name;Cu(e)||(e.name=ib(e)||t)}function ib(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return I(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function ab(e){return e.model.getRawData().count()}function ob(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),sb}function sb(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function cb(e,t){I(Tr(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,nr(lb,t))})}function lb(e,t){var n=ub(e);return n&&n.setOutputEnd((t||this).count()),t}function ub(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var db=Wc.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),fb={line:Zf,rect:il,roundRect:il,square:il,circle:xf,diamond:Wc.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:Wc.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:Wc.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:db},pb={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},mb={};I(fb,function(e,t){mb[t]=new e});var hb=Wc.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Wi(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=mb[r];i||=(r=`rect`,mb[r]),pb[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function gb(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||K.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function _b(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?zp(e.slice(8),new Ei(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Rp(e.slice(7),{},new Ei(t,n,r,i),o?`center`:`cover`):new hb({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=gb,a&&c.setColor(a),c}function vb(e){return z(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function yb(e,t){if(e!=null)return z(e)||(e=[e,e]),[Al(e[0],t[0])||0,Al(U(e[1],e[0]),t[1])||0]}var bb=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return l_(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new yf,n=_b(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=_b(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=K.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1},t}(nb);function xb(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=Uh(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(Uh(e,t,n[o]));return a.join(` `)}}function Sb(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!z(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var Cb=function(e){N(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=_b(e,-1,-1,2,2,null,a);o.attr({z2:U(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=wb,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){bd(this.childAt(0))},t.prototype.downplay=function(){xd(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):Sp(f,p,o,n),Op(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Cp(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=Cm(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=yb(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Xc){var S=a.style;a.useStyle(F({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(F({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;Sm(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):xb(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),zd(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Vu(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&Tp(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Tp(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return vb(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(yf);function wb(e,t){this.parent.drift(e,t)}function Tb(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function Eb(e){return e!=null&&!H(e)&&(e={isIgnore:e}),e||{}}function Db(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:Cm(t),cursorStyle:t.get(`cursor`)}}var Ob=function(){function e(e){this.group=new yf,this._SymbolCtor=e||Cb}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=Eb(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=Db(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);if(Tb(e,i,r,t)){var o=new a(e,r,s,c);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!Tb(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):Sp(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Db(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=Eb(n);function r(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(Tb(t,a,i,n)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.eachRendered=function(e){um(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function kb(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=Ab(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=s===`x`||s===`radius`?1:0,d=L(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return a_(t,d[0])&&(f=!0,d[0]=p),a_(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function Ab(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:ir(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function jb(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}var Mb=typeof Float32Array<`u`,Nb=Mb?Float32Array:Array;function Pb(e){return z(e)?Mb?new Float32Array(e):e:new Nb(e)}function Fb(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function Ib(e,t,n,r,i,a,o,s){for(var c=Fb(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=kb(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=jb(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var ee=l.length,te=Pb(ee),ne=Pb(ee),re=Pb(ee),ie=Pb(ee),ae=[],y=0;y<m.length;y++){var oe=m[y],se=y*2,ce=oe*2;te[se]=l[ce],te[se+1]=l[ce+1],ne[se]=u[ce],ne[se+1]=u[ce+1],re[se]=d[ce],re[se+1]=d[ce+1],ie[se]=f[ce],ie[se+1]=f[ce+1],ae[y]=p[oe]}return{current:te,next:ne,stackedOnCurrent:re,stackedOnNext:ie,status:ae}}var Lb=Math.min,Rb=Math.max;function zb(e,t){return isNaN(e)||isNaN(t)}function Bb(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(zb(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;zb(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||zb(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,te=C-v,ne=void 0,re=void 0;if(s===`x`){ne=Math.abs(A),re=Math.abs(j);var ie=E>0?1:-1;p=_-ie*ne*o,m=v,O=_+ie*re*o,k=v}else if(s===`y`){ne=Math.abs(ee),re=Math.abs(te);var ae=D>0?1:-1;p=_,m=v-ae*ne*o,O=_,k=v+ae*re*o}else ne=Math.sqrt(A*A+ee*ee),re=Math.sqrt(j*j+te*te),T=re/(re+ne),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=Lb(O,Rb(S,_)),k=Lb(k,Rb(C,v)),O=Rb(O,Lb(S,_)),k=Rb(k,Lb(C,v)),E=O-_,D=k-v,p=_-E*ne/re,m=v-D*ne/re,p=Lb(p,Rb(l,_)),m=Lb(m,Rb(u,v)),p=Rb(p,Lb(l,_)),m=Rb(m,Lb(u,v)),E=_-p,D=v-m,O=_+E*re/ne,k=v+D*re/ne}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var Vb=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Hb=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:K.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Vb},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&zb(n[i*2-2],n[i*2-1]);i--);for(;r<i&&zb(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=Bb(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=yc.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?$a(i,u,f,m,e,s):$a(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?Za(a,d,p,h,b):Za(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(Wc),Ub=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Vb),Wb=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new Ub},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&zb(n[a*2-2],n[a*2-1]);a--);for(;i<a&&zb(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=Bb(e,n,i,a,a,1,t.smooth,o,t.connectNulls);Bb(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(Wc);function Gb(){var e=Au();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var Kb=Au(),qb=Gb(),Jb=function(){function e(){this.group=new yf,this.uid=p_(`viewChart`),this.renderTask=uy({plan:Zb,reset:Qb}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Xb(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Xb(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){um(this.group,e)},e.markUpdateMethod=function(e,t){Kb(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Yb(e,t,n){e&&Gd(e)&&(t===`emphasis`?bd:xd)(e,n)}function Xb(e,t,n){var r=ku(e,t),i=t&&t.highlightKey!=null?Kd(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Yb(e,n,i)}):I(cu(r),function(t){Yb(e.getItemGraphicEl(t),n,i)})}zr(Jb,[`dispose`]),Kr(Jb);function Zb(e){return qb(e.model)}function Qb(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Kb(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),$b[c]}var $b={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function ex(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new il({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=B(i)?function(e){i(e,d)}:null;Cp(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function tx(e,t,n){var r=e.getArea(),i=Nl(r.r0,1),a=Nl(r.r,1),o=new Bf({shape:{cx:Nl(e.cx,1),cy:Nl(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,Cp(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function nx(e,t,n,r,i){return e?e.type===`polar`?tx(e,t,n):e.type===`cartesian2d`?ex(e,t,n,r,i):null:null}function rx(e,t){return e.type===t}function ix(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function ax(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function ox(e,t){var n=ax(e),r=n[0],i=n[1],a=ax(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function sx(e){return ir(e)?e:e?.5:0}function cx(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=Pb(r*2),a=0;a<r;a++){var o=jb(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function lx(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;!isNaN(p[c])&&!isNaN(p[c+1])&&f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function ux(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:No((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function dx(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=L(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=ux(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;I(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new op(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function fx(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&px(a,t))){var o=t.mapDimension(a.dim),s={};return I(a.getViewLabels(),function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function px(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Cb.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function mx(e,t){return isNaN(e)||isNaN(t)}function hx(e){for(var t=e.length/2;t>0&&mx(e[t*2-2],e[t*2-1]);t--);return t-1}function gx(e,t){return[e[t*2],e[t*2+1]]}function _x(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!(isNaN(o)||isNaN(e[l*2+1-i]))){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function vx(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<qu.length;t++)if(e.get([qu[t],`endLabel`,`show`]))return!0;return!1}function yx(e,t,n,r){if(rx(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=vx(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=ex(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return tx(t,n,r)}function bx(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var xx=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new yf,t=new Ob;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=R(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=kb(r,a,_),y=g&&cx(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&fx(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=l?!1:e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=dx(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=lx(y,c,r,w,x),c=lx(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Fv(E)),m.setClipPath(yx(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Fv(E));var D=m.getClipPath();D?Cp(D,{shape:yx(this,r,!1,e).shape},e):m.setClipPath(yx(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!ix(this._stackedOnPoints,y)||!ix(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=lx(y,c,r,w,x),c=lx(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(Kn(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),Ud(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}Vu(f).seriesIndex=e.seriesIndex,zd(f,k,A,j);var te=sx(e.get(`smooth`)),ne=e.get(`smoothMonotone`);if(f.setShape({smooth:te,smoothMonotone:ne,connectNulls:x}),p){var re=a.getCalculationInfo(`stackedOnSeries`),ie=0;p.useStyle(Kn(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),re&&(ie=sx(re.get(`smooth`))),p.setShape({smooth:te,stackedOnSmooth:ie,smoothMonotone:ne,connectNulls:x}),Ud(p,e,`areaStyle`),Vu(p).seriesIndex=e.seriesIndex,zd(p,k,A,j)}var ae=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_,e.get(`triggerLineEvent`)&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Vu(t).eventData={componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=ku(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(isNaN(c)||isNaN(l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new Cb(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Jb.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=ku(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else Jb.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;dd(this._polyline,e),t&&dd(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Hb({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Wb({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);B(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=B(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=B(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(vx(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new ll({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=hx(o);c>=0&&(Sm(a,Cm(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?xb(i,e):Sb(i,n)},enableTextSetter:!0},bx(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=_x(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=gx(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=Bu(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=gx(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=Nm(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=Ib(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=lx(u.stackedOnCurrent,u.current,n,i,o),d=lx(u.current,null,n,i,o),m=lx(u.stackedOnNext,u.next,n,i,o),p=lx(u.next,null,n,i,o)),ox(d,p)>3e3||c&&ox(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),Sp(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),Sp(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(Jb);function Sx(e,t){return{seriesType:e,plan:Gb(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=L(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);a_(n,o[0])&&(o[0]=c),a_(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&Pb(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&t.setLayout(`points`,i)}}}}}}var Cx={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Tx=function(e){return Math.round(e.length/2)};function Ex(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;V(i)?p=Cx[i]:B(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,Tx))}}}}}function Dx(e){e.registerChartView(xx),e.registerSeriesModel(bb),e.registerLayout(Sx(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ex(`line`))}var Ox=`__ec_stack_`;function kx(e){return e.get(`stack`)||Ox+e.seriesIndex}function Ax(e){return e.dim+e.index}function jx(e,t){var n=[];return t.eachSeriesByType(e,function(e){Rx(e)&&n.push(e)}),n}function Mx(e){var t={};I(e,function(e){var n=e.coordinateSystem.getBaseAxis();if(!(n.type!==`time`&&n.type!==`value`))for(var r=e.getData(),i=n.dim+`_`+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),o=r.getStore(),s=0,c=o.count();s<c;++s){var l=o.get(a,s);t[i]?t[i].push(l):t[i]=[l]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}n[r]=a}}return n}function Nx(e){var t=Mx(e),n=[];return I(e,function(e){var r=e.coordinateSystem.getBaseAxis(),i=r.getExtent(),a;if(r.type===`category`)a=r.getBandWidth();else if(r.type===`value`||r.type===`time`){var o=t[r.dim+`_`+r.index],s=Math.abs(i[1]-i[0]),c=r.scale.getExtent(),l=Math.abs(c[1]-c[0]);a=o?s/l*o:s}else{var u=e.getData();a=Math.abs(i[1]-i[0])/u.count()}var d=Al(e.get(`barWidth`),a),f=Al(e.get(`barMaxWidth`),a),p=Al(e.get(`barMinWidth`)||(zx(e)?.5:1),a),m=e.get(`barGap`),h=e.get(`barCategoryGap`),g=e.get(`defaultBarGap`);n.push({bandWidth:a,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:m,barCategoryGap:h,defaultBarGap:g,axisKey:Ax(r),stackId:kx(e)})}),Px(n)}function Px(e){var t={};I(e,function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:e.defaultBarGap||0,stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var c=e.barWidth;c&&!o[s].width&&(o[s].width=c,c=Math.min(a.remainedWidth,c),a.remainedWidth-=c);var l=e.barMaxWidth;l&&(o[s].maxWidth=l);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;d!=null&&(a.gap=d);var f=e.barCategoryGap;f!=null&&(a.categoryGap=f)});var n={};return I(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(a==null){var o=er(r).length;a=Math.max(35-o*4,15)+`%`}var s=Al(a,i),c=Al(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-s)/(u+(u-1)*c);d=Math.max(d,0),I(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){var r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,l-=r+c*r,u--}else{var r=d;t&&t<r&&(r=Math.min(t,l)),n&&n>r&&(r=n),r!==d&&(e.width=r,l-=r+c*r,u--)}}),d=(l-s)/(u+(u-1)*c),d=Math.max(d,0);var f=0,p;I(r,function(e,t){e.width||=d,p=e,f+=e.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;I(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+c)})}),n}function Fx(e,t,n){if(e&&t){var r=e[Ax(t)];return r!=null&&n!=null?r[kx(n)]:r}}function Ix(e,t){var n=jx(e,t),r=Nx(n);I(n,function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=kx(e),a=r[Ax(n)][i],o=a.offset,s=a.width;t.setLayout({bandWidth:a.bandWidth,offset:o,size:s})})}function Lx(e){return{seriesType:e,plan:Gb(),reset:function(e){if(Rx(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=a_(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=Bx(r,i),p=zx(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&Pb(r*3),c=p&&s&&Pb(r*3),l=p&&Pb(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);if(u){var ee=n.dataToPoint([E,w]);T=ee[0]}D=T,O=j[1]+_,k=j[0]-T,A=g,Math.abs(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);if(u){var ee=n.dataToPoint([w,E]);T=ee[1]}D=j[0]+_,O=T,k=g,A=j[1]-T,Math.abs(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function Rx(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function zx(e){return e.pipelineContext&&e.pipelineContext.large}function Bx(e,t){var n=t.model.get(`startValue`);return n||=0,t.toGlobalCoord(t.dataToCoord(t.type===`log`?n>0?n:1:n))}var Vx=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return l_(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)I(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[c?1:0]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=r.getBaseAxis().isHorizontal()?0:1;a[l]+=s+c/2}return a}return[NaN,NaN]},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(nb);nb.registerClass(Vx);var Hx=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return l_(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get(`progressiveThreshold`),t=this.get(`largeThreshold`);return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=g_(Vx.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:K.color.primary,borderWidth:2}},realtimeSort:!1}),t}(Vx),Ux=`\0__throttleOriginMethod`,Wx=`\0__throttleRate`,Gx=`\0__throttleType`;function Kx(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function qx(e,t,n,r){var i=e[t];if(i){var a=i[Ux]||i,o=i[Gx];if(i[Wx]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Kx(a,n,r===`debounce`),i[Ux]=a,i[Gx]=r,i[Wx]=n}return i}}function Jx(e,t){var n=e[t];n&&n[Ux]&&(n.clear&&n.clear(),e[t]=n[Ux])}var Yx=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Xx=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new Yx},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(Wc);function Zx(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return Wi(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+$x(m,s+_,!1),x=u+p*y(m)+eS(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+$x(m,-s+_,!1),x=u+p*y(m)+eS(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+$x(h,s+_,!0),x=u+p*y(h)+eS(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+$x(h,-s+_,!0),x=u+p*y(h)+eS(h,-s+_,!0),S=`right`,C=`middle`;break;default:return Wi(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function Qx(e,t,n,r){if(ir(r)){e.setTextConfig({rotation:r});return}else if(z(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function $x(e,t,n){return t*Math.sin(e)*(n?-1:1)}function eS(e,t,n){return t*Math.cos(e)*(n?1:-1)}function tS(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;z(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:L(r,function(e){return Ui(e,i)})}}var nS=Math.max,rS=Math.min;function iS(e,t){var n=e.getArea&&e.getArea();if(rx(e,`cartesian2d`)){var r=e.getBaseAxis();if(r.type!==`category`||!r.onBand){var i=t.getLayout(`bandWidth`);r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var aS=function(e){N(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){um(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=cS(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=iS(s,a);i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=mS[s.type](a,e);if(!t)return null;var n=TS(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=mS[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!pS[s.type](r)))){var o=!1;f&&(o=oS[s.type](p,r));var g=sS[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),_S(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?lS(d,u,g,r,t,l,!1,!1):Cp(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=mS[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=mS[s.type](a,t),E=wS(l,T,s);Sp(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!pS[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=oS[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&Dp(D,e,n),D=null),D?Op(D):D=sS[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=Nm(k);A.prevValue!=null&&(A.prevValue=A.value)}}else _S(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?lS(d,u,D,C,t,l,!0,x):Sp(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&Dp(n,e,t)}).execute();var C=this._backgroundGroup||=new yf;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),xS(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),xS(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&nx(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:L(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Dp(t,e,Vu(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Jb),oS={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=nS(t.x,e.x),s=rS(t.x+t.width,i),c=nS(t.y,e.y),l=rS(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=rS(t.r,e.r),a=nS(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},sS={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new il({shape:F({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?Xx:Bf,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=Zx(gS(i),{isRoundCap:l===Xx}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Sp:Cp)(u,{shape:p},a)}return u}};function cS(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function lS(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Sp:Cp)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Sp:Cp)(n,{shape:l},u,i)}function uS(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var dS=[`x`,`y`,`width`,`height`],fS=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],pS={cartesian2d:function(e){return!uS(e,dS)},polar:function(e){return!uS(e,fS)}},mS={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?vS(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function hS(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function gS(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function _S(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;F(u,tS(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?i.height>=0?`bottom`:`top`:i.width>=0?`right`:`left`,p=Cm(r);Sm(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:xb(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,Qx(e,h===`outside`?f:h,gS(o),r.get([`label`,`rotate`]))}Pm(m,p,a.getRawValue(n),function(e){return Sb(t,e)});var g=r.getModel([`emphasis`]);zd(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Ud(e,r),hS(i)&&(e.style.fill=`none`,e.style.stroke=`none`,I(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function vS(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var yS=function(){function e(){}return e}(),bS=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new yS},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(Wc);function xS(e,t,n,r){var i=e.getData(),a=i.getLayout(`valueAxisHorizontal`)?1:0,o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`);if(l){var u=new bS({shape:{points:l},incremental:!!r,silent:!0,z2:0});u.baseDimIdx=a,u.largeDataIndices=o,u.barWidth=s,u.useStyle(c.getItemStyle()),t.add(u),n&&n.push(u)}var d=new bS({shape:{points:i.getLayout(`largePoints`)},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(i.getVisual(`style`)),d.style.stroke=null,Vu(d).seriesIndex=e.seriesIndex,e.get(`silent`)||(d.on(`mousedown`,SS),d.on(`mousemove`,SS)),n&&n.push(d)}var SS=Kx(function(e){var t=this,n=CS(t,e.offsetX,e.offsetY);Vu(t).dataIndex=n>=0?n:null},30,!1);function CS(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function wS(e,t,n){if(rx(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function TS(e,t,n){return new(e.type===`polar`?Bf:il)({shape:wS(t,n,e),silent:!0,z2:0})}function ES(e){e.registerChartView(aS),e.registerSeriesModel(Hx),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,nr(Ix,`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Lx(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ex(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})}function DS(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}I([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=F({},t),i.dispatchAction(F(t,{type:e[1],seriesIndex:n(r,t)}))})})}function OS(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=ku(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:z(l)?c.getName(l[0]):c.getName(l),selected:V(r)?r:F({},r)})}})}function kS(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(OS(`map`,`selectchanged`,t,r,e),OS(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(OS(`map`,`selected`,t,r,e),OS(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(OS(`map`,`unselected`,t,r,e),OS(`pie`,`unselected`,t,r,e))})}var AS=Math.PI*2,jS=Math.PI/180;function MS(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension(`value`),i=Wv(e,n),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*jS,d=e.get(`endAngle`),f=e.get(`padAngle`)*jS;d=d===`auto`?u-AS:-d*jS;var p=e.get(`minAngle`)*jS+f,m=0;t.each(r,function(e){!isNaN(e)&&m++});var h=t.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=t.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;vc(S,!_),u=S[0],d=S[1];var w=NS(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(t.setLayout({viewRect:l,r:s}),t.each(r,function(e,n){var r;if(isNaN(e)){t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),t.setItemLayout(n,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?kl(e,b,[c,s]):s}),O=i}),E<AS&&m)if(E<=.001){var k=T/m;t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=k;var i=0,a=0;k<f?(i=u+x*(n+1/2)*k,a=i):(i=u+x*n*k+C,a=u+x*(n+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var NS=Au();function PS(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}Math.PI*2,yc.CMD;function FS(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}var IS=new fi,LS=new fi,RS=new fi,zS=new fi,BS=new fi,VS=[],HS=new fi;function US(e,t){if(t<=180&&t>0){t=t/180*Math.PI,IS.fromArray(e[0]),LS.fromArray(e[1]),RS.fromArray(e[2]),fi.sub(zS,IS,LS),fi.sub(BS,RS,LS);var n=zS.len(),r=BS.len();if(!(n<.001||r<.001)){zS.scale(1/n),BS.scale(1/r);var i=zS.dot(BS);if(Math.cos(t)<i){var a=FS(LS.x,LS.y,RS.x,RS.y,IS.x,IS.y,VS,!1);HS.fromArray(VS),HS.scaleAndAdd(BS,a/Math.tan(Math.PI-t));var o=RS.x===LS.x?(HS.y-LS.y)/(RS.y-LS.y):(HS.x-LS.x)/(RS.x-LS.x);if(isNaN(o))return;o<0?fi.copy(HS,LS):o>1&&fi.copy(HS,RS),HS.toArray(e[1])}}}}function WS(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,IS.fromArray(e[0]),LS.fromArray(e[1]),RS.fromArray(e[2]),fi.sub(zS,LS,IS),fi.sub(BS,RS,LS);var r=zS.len(),i=BS.len();if(!(r<.001||i<.001)&&(zS.scale(1/r),BS.scale(1/i),zS.dot(t)<Math.cos(n))){var a=FS(LS.x,LS.y,RS.x,RS.y,IS.x,IS.y,VS,!1);HS.fromArray(VS);var o=Math.PI/2,s=o+Math.acos(BS.dot(t))-n;if(s>=o)fi.copy(HS,RS);else{HS.scaleAndAdd(BS,a/Math.tan(Math.PI/2-s));var c=RS.x===LS.x?(HS.y-LS.y)/(RS.y-LS.y):(HS.x-LS.x)/(RS.x-LS.x);if(isNaN(c))return;c<0?fi.copy(HS,LS):c>1&&fi.copy(HS,RS)}HS.toArray(e[1])}}}function GS(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function KS(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Sa(r[0],r[1]),a=Sa(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=Ta([],r[1],r[0],o/i),c=Ta([],r[1],r[2],o/a),l=Ta([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function qS(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<Ju.length;c++){var l=Ju[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:U(i.states[l]&&i.states[l].ignore,s))||!U(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&GS(r,!0,l,u);continue}r||(r=new Jf,e.setTextGuideLine(r),!d&&(s||!o)&&GS(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),GS(r,!1,l,u)}}if(r){Kn(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=KS}}function JS(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<qu.length;r++){var i=qu[r];n[i]=e.getModel([i,t])}return n}var YS=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],XS=1,ZS=2,QS=XS|ZS;function $S(e,t,n){n||=QS,t?e.dirty|=n:e.dirty&=~n}function eC(e,t){return t||=QS,e.dirty==null||!!(e.dirty&t)}function tC(e){if(e)return eC(e)&&nC(e,e.label,e),e}function nC(e,t,n){var r=t.getComputedTransform();e.transform=mm(e.transform,r);var i=e.localRect=pm(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=Im.textMargin);for(var d=0;d<4;d++)rC[d]=u===Im.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Im.textMargin&&am(i,rC,!1,!1);var f=e.rect=pm(e.rect,i);return r&&f.applyTransform(r),u===Im.minMargin&&am(f,rC,!1,!1),e.axisAligned=dm(r),(e.label=e.label||{}).ignore=t.ignore,$S(e,!1),$S(e,!0,ZS),e}var rC=[0,0,0,0];function iC(e,t,n){return e.transform=mm(e.transform,n),e.localRect=pm(e.localRect,t),e.rect=pm(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=dm(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function aC(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function oC(e,t){for(var n=0;n<YS.length;n++){var r=YS[n];e[r]??(e[r]=t[r])}return tC(e)}function sC(e){var t=e.obb;return(!t||eC(e,ZS))&&(e.obb=t||=new gp,t.fromBoundingRect(e.localRect,e.transform),$S(e,!1,ZS)),t}function cC(e,t,n,r,i){var a=e.length,o=jp[t],s=Mp[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function lC(e){var t=[];e.sort(function(e,t){return(t.suggestIgnore?1:0)-(e.suggestIgnore?1:0)||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=tC(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(uC(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function uC(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:sC(e).intersect(sC(t),n,r)}var dC=Math.PI/180;function fC(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;mC(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}cC(e,1,c,c+o)&&d(e)}function pC(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;vC(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!vC(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,mC(m,g,!1)}}fC(l,t,n,r,1,i,a,o,s,d),fC(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!vC(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function mC(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}hC(a,r)}}}function hC(e,t){_C.rect=e,nC(_C,t,gC)}var gC={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},_C={};function vC(e){return e.position===`center`}function yC(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*dC,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=Al(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=Al(T,l);var E=w.get(`length2`);if(E=Al(E,l),Math.abs(d.endAngle-d.startAngle)<o){I(h.states,p),h.ignore=!0,g&&(I(g.states,p),g.ignore=!0);return}if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,ee,te;r=d.cx,i=d.cy;var ne=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,te=`center`;else{var re=(ne?(d.r+d.r0)/2*O:d.r*O)+r,ie=(ne?(d.r+d.r0)/2*k:d.r*k)+i;if(A=re+O*3,j=ie+k*3,!ne){var ae=re+O*(T+c-d.r),oe=ie+k*(T+c-d.r),se=ae+(O<0?-1:1)*E,ce=oe;A=x===`edge`?O<0?u+S:u+l-S:se+(O<0?-b:b),j=ce,ee=[[re,ie],[ae,oe],[se,ce]]}te=ne?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var le=Math.PI,ue=0,de=v.get(`rotate`);if(ir(de))ue=le/180*de;else if(y===`center`)ue=0;else if(de===`radial`||de===!0)ue=O<0?-D+le:-D;else if(de===`tangential`&&y!==`outside`&&y!==`outer`){var fe=Math.atan2(O,k);fe<0&&(fe=le*2+fe),k>0&&(fe=le+fe),ue=fe-le}if(a=!!ue,h.x=A,h.y=j,h.rotation=ue,h.setStyle({verticalAlign:`middle`}),ne){h.setStyle({align:te});var pe=h.states.select;pe&&(pe.x+=h.x,pe.y+=h.y)}else{var M=new Ei(0,0,0,0);hC(M,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new fi(O,k),linePoints:ee,textAlign:te,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:M,unconstrainedWidth:M.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:ne})}}),!a&&e.get(`avoidLabelOverlap`)&&pC(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(I(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(I(v.states,p),v.ignore=!0):(US(x,g.minTurnAngle),WS(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new fi(x[0][0],x[0][1])})}}}var bC=function(e){N(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new ll;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=F(tS(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(Cp(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,Cp(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,Sp(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),Cp(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else Op(i),Sp(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),Ud(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=F({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},tS(s.getModel(`itemStyle`),c)),F(i.ensureState(`select`),{x:p,y:m,shape:tS(o.getModel([`select`,`itemStyle`]),c)}),F(i.ensureState(`blur`),{shape:tS(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&F(g.ensureState(`select`),{x:p,y:m}),F(_.ensureState(`select`),{x:p,y:m}),zd(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;Sm(r,Cm(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Jf,this.setTextGuideLine(d)),qS(this,JS(i),{stroke:s,opacity:pr(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(Bf),xC=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new Bf({shape:P(NS(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new bC(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){Dp(a.getItemGraphicEl(t),e,t)}).execute(),yC(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(Jb);function SC(e,t,n){t=z(t)&&{coordDimensions:t}||F({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Rg(r,t).dimensions,a=new Lg(i,e);return a.initData(r,n),a}var CC=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),wC=Au(),TC=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new CC(R(this.getData,this),R(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return SC(this,{coordDimensions:[`value`],encodeDefaulter:nr(lh,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=wC(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=Rl(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){lu(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(nb);qg({fullType:TC.type,getCoord2:function(e){return e.getShallow(`center`)}});function EC(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(ir(r)&&!isNaN(r)&&r<0)})}}}function DC(e){e.registerChartView(xC),e.registerSeriesModel(TC),DS(`pie`,e.registerAction),e.registerLayout(nr(MS,`pie`)),e.registerProcessor(PS(`pie`)),e.registerProcessor(EC(`pie`))}var OC=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),kC=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new OC(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new OC(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new OC(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new OC(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new OC(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new OC(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),AC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,jC=[],MC=jr.browser.firefox&&+jr.browser.version.split(`.`)[0]<39;function NC(e,t,n,r){return n||={},r?PC(e,t,n):MC&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?PC(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function PC(e,t,n){if(jr.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(D_(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(w_(jC,e,r,i)){n.zrX=jC[0],n.zrY=jC[1];return}}n.zrX=n.zrY=0}function FC(e){return e||window.event}function IC(e,t,n){if(t=FC(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&NC(e,i,t,n)}else{NC(e,t,t,n);var a=LC(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&AC.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function LC(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=r===0?Math.abs(n):Math.abs(r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function RC(e,t,n,r){e.addEventListener(t,n,r)}function zC(e,t,n,r){e.removeEventListener(t,n,r)}var BC=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function VC(e){return e.which===2||e.which===3}var HC=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=NC(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in GC)if(GC.hasOwnProperty(t)){var n=GC[t](this._track,e);if(n)return n}},e}();function UC(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function WC(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var GC={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=UC(r)/UC(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=WC(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},KC=`silent`;function qC(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:JC}}function JC(){BC(this.event)}var YC=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ds),XC=function(){function e(e,t){this.x=e,this.y=t}return e}(),ZC=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],QC=new Ei(0,0,0,0),$C=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new XC(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new YC,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new kC(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(ZC,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=nw(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new XC(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new XC(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=qC(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new XC(e,t);if(tw(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Ei(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(QC.copy(u.getBoundingRect()),u.transform&&QC.applyTransform(u.transform),QC.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(tw(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new HC;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new XC;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(ds);I([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){$C.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=nw(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||Sa(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function ew(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return i?KC:!0}return!1}function tw(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=ew(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==KC)){t.target=o;break}}}function nw(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var rw=32,iw=7;function aw(e){for(var t=0;e>=rw;)t|=e&1,e>>=1;return e+t}function ow(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;sw(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function sw(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function cw(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function lw(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function uw(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function dw(e,t){var n=iw,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=uw(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=lw(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=uw(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=lw(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=iw||m>=iw);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-uw(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-lw(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=iw||g>=iw);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function fw(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<rw){a=ow(e,n,r,t),cw(e,n,r,n+a,t);return}var o=dw(e,t),s=aw(i);do{if(a=ow(e,n,r,t),a<s){var c=i;c>s&&(c=s),cw(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var pw=!1;function mw(){pw||(pw=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function hw(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var gw=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hw}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,fw(n,hw)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(mw(),p.z=0),isNaN(p.z2)&&(mw(),p.z2=0),isNaN(p.zlevel)&&(mw(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=qn(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),_w=jr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function vw(){return new Date().getTime()}var yw=function(e){N(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=vw()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(_w(t),!e._paused&&e.update())}_w(t)},t.prototype.start=function(){this._running||(this._time=vw(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=vw(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=vw()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new us(e,t.loop);return this.addAnimator(n),n},t}(ds),bw=300,xw=jr.domSupported,Sw=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:L(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Cw={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},ww=!1;function Tw(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Ew(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Dw(e){e&&(e.zrByTouch=!0)}function Ow(e,t){return IC(e.dom,new Aw(e,t),!0)}function kw(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Aw=function(){function e(e,t){this.stopPropagation=Or,this.stopImmediatePropagation=Or,this.preventDefault=Or,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),jw={mousedown:function(e){e=IC(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=IC(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=IC(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=IC(this.dom,e);var t=e.toElement||e.relatedTarget;kw(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){ww=!0,e=IC(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){ww||(e=IC(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=IC(this.dom,e),Dw(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),jw.mousemove.call(this,e),jw.mousedown.call(this,e)},touchmove:function(e){e=IC(this.dom,e),Dw(e),this.handler.processGesture(e,`change`),jw.mousemove.call(this,e)},touchend:function(e){e=IC(this.dom,e),Dw(e),this.handler.processGesture(e,`end`),jw.mouseup.call(this,e),new Date-+this.__lastTouchMoment<bw&&jw.click.call(this,e)},pointerdown:function(e){jw.mousedown.call(this,e)},pointermove:function(e){Tw(e)||jw.mousemove.call(this,e)},pointerup:function(e){jw.mouseup.call(this,e)},pointerout:function(e){Tw(e)||jw.mouseout.call(this,e)}};I([`click`,`dblclick`,`contextmenu`],function(e){jw[e]=function(t){t=IC(this.dom,t),this.trigger(e,t)}});var Mw={pointermove:function(e){Tw(e)||Mw.mousemove.call(this,e)},pointerup:function(e){Mw.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function Nw(e,t){var n=t.domHandlers;jr.pointerEventsSupported?I(Sw.pointer,function(r){Fw(t,r,function(t){n[r].call(e,t)})}):(jr.touchEventsSupported&&I(Sw.touch,function(r){Fw(t,r,function(i){n[r].call(e,i),Ew(t)})}),I(Sw.mouse,function(r){Fw(t,r,function(i){i=FC(i),t.touching||n[r].call(e,i)})}))}function Pw(e,t){jr.pointerEventsSupported?I(Cw.pointer,n):jr.touchEventsSupported||I(Cw.mouse,n);function n(n){function r(r){r=FC(r),kw(e,r.target)||(r=Ow(e,r),t.domHandlers[n].call(e,r))}Fw(t,n,r,{capture:!0})}}function Fw(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,RC(e.domTarget,t,n,r)}function Iw(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&zC(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Lw=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Rw=function(e){N(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Lw(t,jw),xw&&(r._globalHandlerScope=new Lw(document,Mw)),Nw(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Iw(this._localHandlerScope),xw&&Iw(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,xw&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Pw(this,t):Iw(t)}},t}(ds),zw={},Bw={};function Vw(e){delete Bw[e]}function Hw(e){if(!e)return!1;if(typeof e==`string`)return Lo(e,1)<ms;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Lo(t[i].color,1);return n/=r,n<ms}return!1}var Uw=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new gw,a=n.renderer||`canvas`;zw[a]||(a=er(zw)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new zw[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!jr.node&&!jr.worker&&!s?new Rw(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?jr.touchEventsSupported:!!l,d=44,f;u&&(f=U(n.pointerSize,d)),this.handler=new $C(i,o,c,o.root,f),this.animation=new yw({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Hw(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=vw();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=vw();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()===`canvas`&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof yf&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Vw(this.id))},e}();function Ww(e,t){var n=new Uw(Un(),e,t);return Bw[n.id]=n,n}function Gw(e,t){zw[e]=t}var Kw=``;typeof navigator<`u`&&(Kw=navigator.platform||``);var qw=`rgba(0, 0, 0, 0.2)`,Jw=K.color.theme[0],Yw=Po(Jw,null,null,.9),Xw={darkMode:`auto`,colorBy:`series`,color:K.color.theme,gradientColor:[Yw,Jw],aria:{decal:{decals:[{color:qw,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:qw,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:qw,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:qw,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:qw,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:qw,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Kw.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},Zw=W();function Qw(e,t){gr(Zw.get(e)==null&&t),Zw.set(e,t)}function $w(e,t,n){var r=Zw.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var eT,tT,nT,rT=`\0_ec_inner`,iT=1,aT=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new qm(r),this._locale=new qm(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=uT(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,uT(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?nT(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&I(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=W(),s=t&&t.replaceMergeMainTypeMap;sh(this),I(e,function(e,t){e!=null&&(ey.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?P(e):Gn(n[t],e,!0))}),s&&s.each(function(e,t){ey.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),ey.topologicalTravel(a,ey.getAllClassMainTypes(),c,this);function c(t){var a=$w(this,t,cu(e[t])),o=r.get(t),c=pu(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Eu(c,t,ey),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;I(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=ey.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=F({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),F(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&eT(this)}this._seriesIndices||eT(this)},t.prototype.getOption=function(){var e=P(this.option);return I(e,function(t,n){if(ey.hasClass(n)){for(var r=cu(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!wu(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[rT],e},t.prototype.setTheme=function(e){this._theme=new qm(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?Qn(a,function(e){return!!e}):cT(`name`,i,a):cT(`id`,r,a):(o=[],I(cu(n),function(e){a[e]&&o.push(a[e])})),lT(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(lT(r?this.queryComponents(r):Qn(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?Qn(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(B(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=V(e)?r.get(e):H(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Su(e,null);return Qn(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return Qn(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return Qn(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){tT(this),I(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){I(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){tT(this),I(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return I(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return tT(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){tT(this);var n=[];I(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=W(n)},t.prototype.restoreData=function(e){eT(this);var t=this._componentsMap,n=[];t.each(function(e,t){ey.hasClass(t)&&n.push(t)}),ey.topologicalTravel(n,ey.getAllClassMainTypes(),function(n){I(t.get(n),function(t){t&&(n!==`series`||!oT(t,e))&&t.restoreData()})})},t.internalField=function(){eT=function(e){var t=e._seriesIndices=[];I(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=W(t)},tT=function(e){},nT=function(e,t){e.option={},e.option[rT]=iT,e._componentsMap=W({series:[]}),e._componentsCount=W();var n=t.aria;H(n)&&n.enabled==null&&(n.enabled=!0),sT(t,e._theme.option),Gn(t,Xw,!1),e._mergeOption(t,null)}}(),t}(qm);function oT(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function sT(e,t){var n=e.color&&!e.colorLayer;I(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||ey.hasClass(r)||(typeof t==`object`?e[r]=e[r]?Gn(e[r],t,!1):P(t):e[r]??(e[r]=t))})}function cT(e,t,n){if(z(t)){var r=W();return I(t,function(e){e!=null&&Su(e,null)!=null&&r.set(e,!0)}),Qn(n,function(t){return t&&r.get(t[e])})}else{var i=Su(t,null);return Qn(n,function(t){return t&&i!=null&&t[e]===i})}}function lT(e,t){return t.hasOwnProperty(`subType`)?Qn(e,function(e){return e&&e.subType===t.subType}):e}function uT(e){var t=W();return e&&I(cu(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Yn(aT,ry);var dT=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],fT=function(){function e(e){I(dT,function(t){this[t]=R(e[t],e)},this)}return e}(),pT=/^(min|max)?(.+)$/,mT=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(I(cu(e.series),function(e){e&&e.data&&or(e.data)&&yr(e.data)}),I(cu(e.dataset),function(e){e&&e.source&&or(e.source)&&yr(e.source)})),e=P(e);var r=this._optionBackup,i=hT(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],P(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=P(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)gT(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!vT(a,this._currentMediaIndices)&&(o=L(a,function(e){return P(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function hT(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||=s):((d||u)&&(e.options=e.media=null),a=e),u&&z(l)&&I(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),I(c,function(e){return f(e)}),I(r,function(e){return f(e.option)});function f(e){I(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function gT(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return I(e,function(e,t){var n=t.match(pT);if(!(!n||!n[1]||!n[2])){var a=n[1];_T(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function _T(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function vT(e,t){return e.join(`,`)===t.join(`,`)}var yT=I,bT=H,xT=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function ST(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=xT.length;n<r;n++){var i=xT[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?Gn(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?Gn(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function CT(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,Kn(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function wT(e){CT(e,`itemStyle`),CT(e,`lineStyle`),CT(e,`areaStyle`),CT(e,`label`),CT(e,`labelLine`),CT(e,`upperLabel`),CT(e,`edgeLabel`)}function TT(e,t){var n=bT(e)&&e[t],r=bT(n)&&n.textStyle;if(r)for(var i=0,a=uu.length;i<a;i++){var o=uu[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function ET(e){e&&(wT(e),TT(e,`label`),e.emphasis&&TT(e.emphasis,`label`))}function DT(e){if(bT(e)){ST(e),wT(e),TT(e,`label`),TT(e,`upperLabel`),TT(e,`edgeLabel`),e.emphasis&&(TT(e.emphasis,`label`),TT(e.emphasis,`upperLabel`),TT(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(ST(t),ET(t));var n=e.markLine;n&&(ST(n),ET(n));var r=e.markArea;r&&ET(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!or(a))for(var o=0;o<a.length;o++)ET(a[o]);I(e.categories,function(e){wT(e)})}if(i&&!or(i))for(var o=0;o<i.length;o++)ET(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ET(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)z(c[o])?(ET(c[o][0]),ET(c[o][1])):ET(c[o]);e.type===`gauge`?(TT(e,`axisLabel`),TT(e,`title`),TT(e,`detail`)):e.type===`treemap`?(CT(e.breadcrumb,`itemStyle`),I(e.levels,function(e){wT(e)})):e.type===`tree`&&wT(e.leaves)}}function OT(e){return z(e)?e:e?[e]:[]}function kT(e){return(z(e)?e[0]:e)||{}}function AT(e,t){yT(OT(e.series),function(e){bT(e)&&DT(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),yT(n,function(t){yT(OT(e[t]),function(e){e&&(TT(e,`axisLabel`),TT(e.axisPointer,`label`))})}),yT(OT(e.parallel),function(e){var t=e&&e.parallelAxisDefault;TT(t,`axisLabel`),TT(t&&t.axisPointer,`label`)}),yT(OT(e.calendar),function(e){CT(e,`itemStyle`),TT(e,`dayLabel`),TT(e,`monthLabel`),TT(e,`yearLabel`)}),yT(OT(e.radar),function(e){TT(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),yT(OT(e.geo),function(e){bT(e)&&(ET(e),yT(OT(e.regions),function(e){ET(e)}))}),yT(OT(e.timeline),function(e){ET(e),CT(e,`label`),CT(e,`itemStyle`),CT(e,`controlStyle`,!0);var t=e.data;z(t)&&I(t,function(e){H(e)&&(CT(e,`label`),CT(e,`itemStyle`))})}),yT(OT(e.toolbox),function(e){CT(e,`iconStyle`),yT(e.feature,function(e){CT(e,`iconStyle`)})}),TT(kT(e.axisPointer),`label`),TT(kT(e.tooltip).axisPointer,`label`)}function jT(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function MT(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function NT(e){e&&I(PT,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var PT=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],FT=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],IT=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function LT(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<IT.length;n++){var r=IT[n][1],i=IT[n][0];t[r]!=null&&(t[i]=t[r])}}function RT(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function zT(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function BT(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function VT(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&VT(e[n].children,t)}function HT(e,t){AT(e,t),e.series=cu(e.series),I(e.series,function(e){if(H(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),RT(e.label);var n=e.data;if(n&&!or(n))for(var r=0;r<n.length;r++)RT(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=jT(e,`pointer.color`);i!=null&&MT(e,`itemStyle.color`,i)}else if(t===`bar`){LT(e),LT(e.backgroundStyle),LT(e.emphasis);var n=e.data;if(n&&!or(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(LT(n[r]),LT(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),zT(e),VT(e.data,zT)}else t===`graph`||t===`sankey`?BT(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Kn(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),NT(e)}}),e.dataRange&&(e.visualMap=e.dataRange),I(FT,function(t){var n=e[t];n&&(z(n)||(n=[n]),I(n,function(e){NT(e)}))})}function UT(e){var t=W();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),I(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),WT(e))})}function WT(e){I(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=zl(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var GT=function(){function e(){this.group=new yf,this.uid=p_(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();zr(GT),Kr(GT);var KT=Au(),qT={itemStyle:qr(Wm,!0),lineStyle:qr(Vm,!0)},JT={lineStyle:`stroke`,itemStyle:`fill`};function YT(e,t){return e.visualStyleMapper||qT[t]||(console.warn(`Unknown style type '`+t+`'.`),qT.itemStyle)}function XT(e,t){return e.visualDrawType||JT[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var ZT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=YT(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=XT(e,r),c=a[s],l=B(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||B(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||B(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=F({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},QT=new qm,$T={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=YT(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){QT.option=n[r];var o=i(QT);F(e.ensureUniqueItemVisual(t,`style`),o),QT.option.decal&&(e.setItemVisual(t,`decal`,QT.option.decal),QT.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},eE={performRawSeries:!0,overallReset:function(e){var t=W();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+`-`+n,i=t.get(r);i||(i={},t.set(r,i)),KT(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=KT(t).scope,o=XT(t,t.visualStyleAccessPath||`itemStyle`);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var s=r[e];if(i.getItemVisual(s,`colorFromPalette`)){var c=i.ensureUniqueItemVisual(s,`style`),l=n.getName(e)||e+``,u=n.count();c[o]=t.getColorFromPalette(l,a,u)}})}})}},tE=Math.PI;function nE(e,t){t||={},Kn(t,{text:`loading`,textColor:K.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:K.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new yf,r=new il({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new ll({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new il({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new rp({shape:{startAngle:-tE/2,endAngle:-tE/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:tE*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:tE*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var rE=function(){function e(e,t,n,r){this._stageTaskMap=W(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get(`large`)&&r>=e.get(`largeThreshold`);e.pipelineContext=n.context={progressiveRender:i,modDataCount:e.get(`progressiveChunkMode`)===`mod`?r:null,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=W();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;I(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});gr(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;I(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=W(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||uy({plan:cE,reset:lE,count:fE}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||uy({reset:iE});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=W(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1;gr(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):(u=!1,I(n.getSeries(),f));function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,uy({reset:aE,onDirty:sE})));n.context={model:e,overallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return B(e)&&(e={overallReset:e,seriesType:pE(e)}),e.uid=p_(`stageHandler`),t&&(e.visualType=t),e},e}();function iE(e){e.overallReset(e.ecModel,e.api,e.payload)}function aE(e){return e.overallProgress&&oE}function oE(){this.agent.dirty(),this.getDownstream().dirty()}function sE(){this.agent&&this.agent.dirty()}function cE(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function lE(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=cu(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?L(t,function(e,t){return dE(t)}):uE}var uE=dE(0);function dE(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function fE(e){return e.data.count()}function pE(e){gE=null;try{e(mE,hE)}catch{}return gE}var mE={},hE={},gE;_E(mE,aT),_E(hE,fT),mE.eachSeriesByType=mE.eachRawSeriesByType=function(e){gE=e},mE.eachComponent=function(e){e.mainType===`series`&&e.subType&&(gE=e.subType)};function _E(e,t){for(var n in t.prototype)e[n]=Or}var q=K.darkColor,vE=q.background,yE=function(){return{axisLine:{lineStyle:{color:q.axisLine}},splitLine:{lineStyle:{color:q.axisSplitLine}},splitArea:{areaStyle:{color:[q.backgroundTint,q.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:q.axisMinorSplitLine}},axisLabel:{color:q.axisLabel},axisName:{}}},bE={label:{color:q.secondary},itemStyle:{borderColor:q.borderTint},dividerLineStyle:{color:q.border}},xE={darkMode:!0,color:q.theme,backgroundColor:vE,axisPointer:{lineStyle:{color:q.border},crossStyle:{color:q.borderShade},label:{color:q.tertiary}},legend:{textStyle:{color:q.secondary},pageTextStyle:{color:q.tertiary}},textStyle:{color:q.secondary},title:{textStyle:{color:q.primary},subtextStyle:{color:q.quaternary}},toolbox:{iconStyle:{borderColor:q.accent50}},tooltip:{backgroundColor:q.neutral20,defaultBorderColor:q.border,textStyle:{color:q.tertiary}},dataZoom:{borderColor:q.accent10,textStyle:{color:q.tertiary},brushStyle:{color:q.backgroundTint},handleStyle:{color:q.neutral00,borderColor:q.accent20},moveHandleStyle:{color:q.accent40},emphasis:{handleStyle:{borderColor:q.accent50}},dataBackground:{lineStyle:{color:q.accent30},areaStyle:{color:q.accent20}},selectedDataBackground:{lineStyle:{color:q.accent50},areaStyle:{color:q.accent30}}},visualMap:{textStyle:{color:q.secondary},handleStyle:{borderColor:q.neutral30}},timeline:{lineStyle:{color:q.accent10},label:{color:q.tertiary},controlStyle:{color:q.accent30,borderColor:q.accent30}},calendar:{itemStyle:{color:q.neutral00,borderColor:q.neutral20},dayLabel:{color:q.tertiary},monthLabel:{color:q.secondary},yearLabel:{color:q.secondary}},matrix:{x:bE,y:bE,backgroundColor:{borderColor:q.axisLine},body:{itemStyle:{borderColor:q.borderTint}}},timeAxis:yE(),logAxis:yE(),valueAxis:yE(),categoryAxis:yE(),line:{symbol:`circle`},graph:{color:q.theme},gauge:{title:{color:q.secondary},axisLine:{lineStyle:{color:[[1,q.neutral05]]}},axisLabel:{color:q.axisLabel},detail:{color:q.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:q.background}},radar:function(){var e=yE();return e.axisName={color:q.axisLabel},e.axisLine.lineStyle.color=q.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:q.neutral20,textStyle:{color:q.secondary}},emphasis:{itemStyle:{color:q.neutral30}}}},sunburst:{itemStyle:{borderColor:q.background}},map:{itemStyle:{borderColor:q.border,areaColor:q.neutral10},label:{color:q.tertiary},emphasis:{label:{color:q.primary},itemStyle:{areaColor:q.highlight}},select:{label:{color:q.primary},itemStyle:{areaColor:q.highlight}}},geo:{itemStyle:{borderColor:q.border,areaColor:q.neutral10},emphasis:{label:{color:q.primary},itemStyle:{areaColor:q.highlight}},select:{label:{color:q.primary},itemStyle:{color:q.highlight}}}};xE.categoryAxis.splitLine.show=!1;var SE=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(V(e)){var i=Ir(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};I(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),CE=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],wE=CE.concat([`symbolKeepAspect`]),TE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<CE.length;o++){var s=CE[o],c=e.get(s);B(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(F({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=er(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},EE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<wE.length;r++){var i=wE[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function DE(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:}}function OE(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:}}function kE(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r);break;default:}}function AE(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var jE=Math.round(Math.random()*9),ME=typeof Object.defineProperty==`function`,NE=function(){function e(){this._id=`__ec_inner_`+ jE++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return ME?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}();function PE(e){return isFinite(e)}function FE(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=PE(r)?r:0,i=PE(i)?i:1,a=PE(a)?a:0,o=PE(o)?o:0,e.createLinearGradient(r,a,i,o)}function IE(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=PE(o)?o:.5,s=PE(s)?s:.5,c=c>=0&&PE(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function LE(e,t,n){for(var r=t.type===`radial`?IE(e,t,n):FE(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function RE(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function zE(e){return parseInt(e,10)}function BE(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||zE(s[r])||zE(e.style[r]))-(zE(s[a])||0)-(zE(s[o])||0)|0}function VE(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ir(e)?[e]:z(e)?e:null}function HE(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&VE(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=L(n,function(e){return e/i}),r/=i)}return[n,r]}var UE=new yc(!0);function WE(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function GE(e){return typeof e==`string`&&e!==`none`}function KE(e){var t=e.fill;return t!=null&&t!==`none`}function qE(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function JE(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function YE(e,t,n){var r=ti(t.image,t.__image,n);if(ri(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*kr),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function XE(e,t,n,r){var i,a=WE(n),o=KE(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||UE,d=t.__dirty;if(!r){var f=n.fill,p=n.stroke,m=o&&!!f.colorStops,h=a&&!!p.colorStops,g=o&&!!f.image,_=a&&!!p.image,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;(m||h)&&(S=t.getBoundingRect()),m&&(v=d?LE(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?LE(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?YE(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?YE(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),m?e.fillStyle=v:g&&(b?e.fillStyle=b:o=!1),h?e.strokeStyle=y:_&&(x?e.strokeStyle=x:a=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var w,T;e.setLineDash&&n.lineDash&&(i=HE(t),w=i[0],T=i[1]);var E=!0;(l||d&4)&&(u.setDPR(e.dpr),c?u.setContext(null):(u.setContext(e),E=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),E&&u.rebuildPath(e,c?s:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r||(n.strokeFirst?(a&&JE(e,n),o&&qE(e,n)):(o&&qE(e,n),a&&JE(e,n))),w&&e.setLineDash([])}function ZE(e,t,n){var r=t.__image=ti(n.image,t.__image,t,t.onload);if(!(!r||!ri(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function QE(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=HE(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(WE(n)&&e.strokeText(i,n.x,n.y),KE(n)&&e.fillText(i,n.x,n.y)):(KE(n)&&e.fillText(i,n.x,n.y),WE(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var $E=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],eD=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function tD(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){fD(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Ns.opacity:o}(r||t.blend!==n.blend)&&(a||=(fD(e,i),!0),e.globalCompositeOperation=t.blend||Ns.blend);for(var s=0;s<$E.length;s++){var c=$E[s];(r||t[c]!==n[c])&&(a||=(fD(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(fD(e,i),!0),e.shadowColor=t.shadowColor||Ns.shadowColor),a}function nD(e,t,n,r,i){var a=pD(t,i.inHover),o=r?null:n&&pD(n,i.inHover)||{};if(a===o)return!1;var s=tD(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(fD(e,i),!0),GE(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(fD(e,i),!0),GE(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(fD(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(fD(e,i),!0),e.lineWidth=c)}for(var l=0;l<eD.length;l++){var u=eD[l],d=u[0];(r||a[d]!==o[d])&&(s||=(fD(e,i),!0),e[d]=a[d]||u[1])}return s}function rD(e,t,n,r,i){return tD(e,pD(t,i.inHover),n&&pD(n,i.inHover),r,i)}function iD(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function aD(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),iD(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function oD(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var sD=1,cD=2,lD=3,uD=4;function dD(e){var t=KE(e),n=WE(e);return!(e.lineDash||!(t^+n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function fD(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill=``,t.batchStroke=``}function pD(e,t){return t&&e.__hoverStyle||e.style}function mD(e,t){hD(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function hD(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,c=!1;if((!o||RE(a,o))&&(o&&o.length&&(fD(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(fD(e,n),e.save(),aD(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Wc&&t.autoBatch&&dD(t.style);s||oD(i,l.transform)?(fD(e,n),iD(e,t)):u||fD(e,n);var d=pD(t,n.inHover);t instanceof Wc?(n.lastDrawType!==sD&&(c=!0,n.lastDrawType=sD),nD(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),XE(e,t,d,u),u&&(n.batchFill=d.fill||``,n.batchStroke=d.stroke||``)):t instanceof Kc?(n.lastDrawType!==lD&&(c=!0,n.lastDrawType=lD),nD(e,t,l,c,n),QE(e,t,d)):t instanceof Xc?(n.lastDrawType!==cD&&(c=!0,n.lastDrawType=cD),rD(e,t,l,c,n),ZE(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==uD&&(c=!0,n.lastDrawType=uD),gD(e,t,n)),u&&r&&fD(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function gD(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),hD(e,c,a,o===s-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),hD(e,c,a,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var _D=new NE,vD=new Qr(100),yD=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function bD(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&_D.delete(e);var a=_D.get(e);if(a)return a;var o=Kn(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,_D.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<yD.length;++s){var c=o[yD[s]];if(c!=null&&!z(c)&&!V(c)&&!ir(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=vD.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=SD(o.dashArrayX),f=CD(o.dashArrayY),p=xD(o.symbol),m=wD(d),h=TD(f),g=!i&&An.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&vD.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=Ql(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=Ql(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=_b(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else mD(y,u)}}}}function xD(e){if(!e||e.length===0)return[[`rect`]];if(V(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!V(e[n])){t=!1;break}if(t)return xD([e]);for(var r=[],n=0;n<e.length;++n)V(e[n])?r.push([e[n]]):r.push(e[n]);return r}function SD(e){if(!e||e.length===0)return[[0,0]];if(ir(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!ir(e[r])){n=!1;break}if(n)return SD([e]);for(var i=[],r=0;r<e.length;++r)if(ir(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=L(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function CD(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(ir(e)){var t=Math.ceil(e);return[t,t]}var n=L(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function wD(e){return L(e,function(e){return TD(e)})}function TD(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}function ED(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=bD(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=bD(i,t)}}})}var DD=new ds,OD={};function kD(e,t){OD[e]=t}function AD(e){return OD[e]}var jD={};function MD(e,t){jD[e]=t}var ND=1,PD=800,FD=900,ID=1e3,LD=2e3,RD=5e3,zD=1e3,BD=1100,VD=2e3,HD=3e3,UD=4e3,WD=4500,GD=4600,KD=5e3,qD=6e3,JD=7e3,YD={PROCESSOR:{FILTER:ID,SERIES_FILTER:PD,STATISTIC:RD},VISUAL:{LAYOUT:zD,PROGRESSIVE_LAYOUT:BD,GLOBAL:VD,CHART:HD,POST_CHART_LAYOUT:GD,COMPONENT:UD,BRUSH:KD,CHART_ITEM:WD,ARIA:qD,DECAL:JD}},XD=`__flagInMainProcess`,ZD=`__mainProcessVersion`,QD=`__pendingUpdate`,$D=`__needsUpdateStatus`,eO=/^[a-zA-Z0-9_]+$/,tO=`__connectUpdateStatus`,nO=0,rO=1,iO=2;function aO(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return sO(this,e,t)}}function oO(e){return function(){return sO(this,e,[...arguments])}}function sO(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ds.prototype[t].apply(e,n)}var cO=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ds),lO=cO.prototype;lO.on=oO(`on`),lO.off=oO(`off`);var uO,dO,fO,pO,mO,hO,gO,_O,vO,yO,bO,xO,SO,CO,wO,TO,EO,DO,OO,kO=function(e){N(t,e);function t(t,n,r){var i=e.call(this,new SE)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[ZD]=1,r.ssr;var c=i._zr=Ww(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:U(r.useDirtyRect,s),useCoarsePointer:U(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Kx(R(c.flush,c),17),i._updateTheme(n),i._locale=B_(r.locale||R_),i._coordSysMgr=new Wg;var l=i._api=wO(i);function u(e,t){return e.__prio-t.__prio}return fw(LO,u),fw(FO,u),i._scheduler=new rE(i,l,FO,LO),i._messageCenter=new cO,i._initEvents(),i.resize=R(i.resize,i),c.animation.on(`frame`,i._onframe,i),yO(c,i),bO(c,i),yr(i),i}return t.prototype._onframe=function(){if(!this._disposed){DO(this);var e=this._scheduler;if(this[QD]){var t=this[QD].silent;this[XD]=!0,OO(this);try{uO(this),pO.update.call(this,null,this[QD].updateParams)}catch(e){throw this[XD]=!1,this[QD]=null,e}this._zr.flush(),this[XD]=!1,this[QD]=null,_O.call(this,t),vO.call(this,t)}else if(e.unfinished){var n=ND,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),hO(this,r),e.performVisualTasks(r),CO(this,this._model,i,`remain`,{}),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[XD]){if(this._disposed){this.id;return}var r,i,a;if(H(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[XD]=!0,OO(this),!this._model||t){var o=new mT(this._api),s=this._theme,c=this._model=new aT;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},IO);var l={seriesTransition:a,optionChanged:!0};if(n)this[QD]={silent:r,updateParams:l},this[XD]=!1,this.getZr().wakeUp();else{try{uO(this),pO.update.call(this,null,l)}catch(e){throw this[QD]=null,this[XD]=!1,e}this._ssr||this._zr.flush(),this[QD]=null,this[XD]=!1,_O.call(this,r),vO.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[XD]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[QD]&&(r??=this[QD].silent,i=this[QD].updateParams,this[QD]=null),this[XD]=!0,OO(this);try{this._updateTheme(e),n.setTheme(this._theme),uO(this),pO.update.call(this,{type:`setTheme`},i)}catch(e){throw this[XD]=!1,e}this[XD]=!1,_O.call(this,r),vO.call(this,r)}}},t.prototype._updateTheme=function(e){V(e)&&(e=RO[e]),e&&(e=P(e),e&&HT(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||jr.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return I(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;I(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return I(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(VO[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();I(BO,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(P(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=An.createCanvas(),h=Ww(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return I(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new il({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),I(u,function(e){var t=new Xc({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return mO(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return mO(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return mO(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return I(Mu(n,e),function(e,n){n.indexOf(`Models`)>=0&&I(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Mu(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?OE(i,t):DE(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;I(jO,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&AE(i,function(e){var t=Vu(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=F({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;I(PO,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),kS(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&Lu(this.getDom(),UO,``);var e=this,t=e._api,n=e._model;I(e._componentsViews,function(e){e.dispose(n,t)}),I(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete BO[e.id]},t.prototype.resize=function(e){if(!this[XD]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[QD]&&(r??=this[QD].silent,n=!0,this[QD]=null),this[XD]=!0,OO(this);try{n&&uO(this),pO.update.call(this,{type:`resize`,animation:F({duration:0},e&&e.animation)})}catch(e){throw this[XD]=!1,e}this[XD]=!1,_O.call(this,r),vO.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(H(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),zO[e]){var n=zO[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=F({},e);return t.type=NO[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(H(t)||(t={silent:!!t}),MO[e.type]&&this._model){if(this[XD]){this._pendingActions.push(e);return}var n=t.silent;gO.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&jr.browser.weChat&&this._throttledZrFlush(),_O.call(this,n),vO.call(this,n)}},t.prototype.updateLabelLayout=function(){DD.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){uO=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),dO(e,!0),dO(e,!1),t.plan()},dO=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=Ir(e.type);u=new(t?GT.getClass(d.main,d.sub):Jb.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},fO=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){I([].concat(e._componentsViews,e._chartsViews),u);return}var o={};o[r+`Id`]=n[r+`Id`],o[r+`Index`]=n[r+`Index`],o[r+`Name`]=n[r+`Name`];var s={mainType:r,query:o};i&&(s.subType=i);var c=n.excludeSeriesId,l;c!=null&&(l=W(),I(cu(c),function(e){var t=Su(e,null);t!=null&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!(l&&l.get(t.id)!=null))if(Jd(n))if(t instanceof nb)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Ad(t,n,e._api);else{var r=jd(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&kd(t.mainType,t.componentIndex,e._api),a&&I(a,function(e){n.type===`highlight`?bd(e):xd(e)})}else qd(n)&&t instanceof nb&&(Pd(t,n,e._api),Fd(t),EO(e))},e),a&&a.eachComponent(s,function(t){l&&l.get(t.id)!=null||u(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},pO={prepareAndUpdate:function(e){uO(this),pO.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,e),hO(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),xO(this,r,i,e,n),DD.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var a=[];r.eachComponent(function(t,o){if(t!==`series`){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,r,i,e);c&&c.update&&a.push(s)}else a.push(s)}});var o=W();r.eachSeries(function(t){var a=n._chartsMap[t.__viewId];if(a.updateTransform){var s=a.updateTransform(t,r,i,e);s&&s.update&&o.set(t.uid,1)}else o.set(t.uid,1)}),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:o}),CO(this,r,i,e,{},o),DD.trigger(`afterupdate`,r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Jb.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),xO(this,n,this._api,e,{}),DD.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),Jb.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),DD.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){pO.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=Mu(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}mO=e,hO=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},gO=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=MO[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Ir(s[0]);this[XD]=!0,OO(this);var u=[e],d=!1;e.batch&&(d=!0,u=L(e.batch,function(t){return t=Kn(F({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=qd(e),_=Jd(e);if(_&&Dd(this._api),I(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=F({},t),p.type=h,f.push(p),_){var a=Nu(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;fO(n,c,t,u),EO(n)}else g?(fO(n,c,t,`series`),EO(n)):l&&fO(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[QD]?(uO(this),pO.update.call(this,e),this[QD]=null):pO[c].call(this,e)}catch(e){throw this[XD]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[XD]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;gr(H(y)),v=Kn({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},_O=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();gO.call(this,n,e)}},vO=function(e){!e&&this.trigger(`updated`)},yO=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[QD]&&!t._scheduler.unfinished&&!t._pendingActions.length&&t.trigger(`finished`)})},bO=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=AE(n,Gd);r&&(Md(r,e,t._api),EO(t))}).on(`mouseout`,function(e){var n=e.target,r=AE(n,Gd);r&&(Nd(r,e,t._api),EO(t))}).on(`click`,function(e){var n=e.target,r=AE(n,function(e){return Vu(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Vu(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;fw(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),I(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}xO=function(e,t,r,i,a){n(t),SO(e,t,r,i,a),I(e._chartsViews,function(e){e.__alive=!1}),CO(e,t,r,i,a),I(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},SO=function(e,t,n,r,i,a){I(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},CO=function(e,t,n,r,l,u){var d=e._scheduler;l=F(l||{},{updatedSeries:t.getSeries()}),DD.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Fd(t)}),d.unfinished=f||d.unfinished,DD.trigger(`series:layoutlabels`,t,n,l),DD.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),DD.trigger(`series:afterupdate`,t,n,l)},EO=function(e){e[$D]=!0,e.getZr().wakeUp()},OO=function(e){e[ZD]=(e[ZD]+1)%1e3},DO=function(e){e[$D]&&(e.getZr().storage.traverse(function(e){wp(e)||r(e)}),e[$D]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get(`hoverLayerThreshold`)&&!jr.node&&!jr.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=hm(e);t.eachRendered(function(e){return _m(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!wp(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(wp(e))return;if(e instanceof Wc&&Yd(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}wO=function(e){return new(function(t){N(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){bd(t,n),EO(e)},n.prototype.leaveEmphasis=function(t,n){xd(t,n),EO(e)},n.prototype.enterBlur=function(t){Sd(t),EO(e)},n.prototype.leaveBlur=function(t){Cd(t),EO(e)},n.prototype.enterSelect=function(t){wd(t),EO(e)},n.prototype.leaveSelect=function(t){Td(t),EO(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getMainProcessVersion=function(){return e[ZD]},n}(fT))(e)},TO=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[tO]=t}}I(NO,function(n,r){e._messageCenter.on(r,function(n){if(VO[e.group]&&e[tO]!==nO){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];I(BO,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,nO),I(i,function(e){e[tO]!==rO&&e.dispatchAction(r)}),t(i,iO)}})})}}(),t}(ds),AO=kO.prototype;AO.on=aO(`on`),AO.off=aO(`off`),AO.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var jO=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],MO={},NO={},PO={},FO=[],IO=[],LO=[],RO={},zO={},BO={},VO={},HO=new Date-0;new Date-0;var UO=`_echarts_instance_`;function WO(e,t,n){var r=!(n&&n.ssr);if(r){var i=GO(e);if(i)return i}var a=new kO(e,t,n);return a.id=`ec_`+ HO++,BO[a.id]=a,r&&Lu(e,UO,a.id),TO(a),DD.trigger(`afterinit`,a),a}function GO(e){return BO[Ru(e,UO)]}function KO(e,t){RO[e]=t}function qO(e){qn(IO,e)<0&&IO.push(e)}function JO(e,t){rk(FO,e,t,LD)}function YO(e){ZO(`afterinit`,e)}function XO(e){ZO(`afterupdate`,e)}function ZO(e,t){DD.on(e,t)}function QO(e,t,n){var r,i,a,o,s;B(t)&&(n=t,t=``),H(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;MO[r]||(gr(eO.test(r)&&eO.test(i)),a&&gr(i!==r),MO[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},PO[i]=1,a&&s&&(PO[l]=1),NO[l]=r)}function $O(e,t){Wg.register(e,t)}function ek(e,t){rk(LO,e,t,zD,`layout`)}function tk(e,t){rk(LO,e,t,HD,`visual`)}var nk=[];function rk(e,t,n,r,i){if((B(t)||H(t))&&(n=t,t=r),!(qn(nk,n)>=0)){nk.push(n);var a=rE.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function ik(e,t){zO[e]=t}function ak(e,t,n){var r=AD(`registerMap`);r&&r(e,t,n)}var ok=by;tk(VD,ZT),tk(WD,$T),tk(WD,eE),tk(VD,TE),tk(WD,EE),tk(JD,ED),qO(HT),JO(FD,UT),ik(`default`,nE),QO({type:Yu,event:Yu,update:Yu},Or),QO({type:Xu,event:Xu,update:Xu},Or),QO({type:Zu,event:ed,update:Zu,action:Or,refineEvent:sk,publishNonRefinedEvent:!0}),QO({type:Qu,event:ed,update:Qu,action:Or,refineEvent:sk,publishNonRefinedEvent:!0}),QO({type:$u,event:ed,update:$u,action:Or,refineEvent:sk,publishNonRefinedEvent:!0});function sk(e,t,n,r){return{eventContent:{selected:Id(n),isFromClick:t.isFromClick||!1}}}KO(`default`,{}),KO(`dark`,xE);var ck=[],lk={registerPreprocessor:qO,registerProcessor:JO,registerPostInit:YO,registerPostUpdate:XO,registerUpdateLifecycle:ZO,registerAction:QO,registerCoordinateSystem:$O,registerLayout:ek,registerVisual:tk,registerTransform:ok,registerLoading:ik,registerMap:ak,registerImpl:kD,PRIORITY:YD,ComponentModel:ey,ComponentView:GT,SeriesModel:nb,ChartView:Jb,registerComponentModel:function(e){ey.registerClass(e)},registerComponentView:function(e){GT.registerClass(e)},registerSeriesModel:function(e){nb.registerClass(e)},registerChartView:function(e){Jb.registerClass(e)},registerCustomSeries:function(e,t){MD(e,t)},registerSubTypeDefaulter:function(e,t){ey.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Gw(e,t)}};function uk(e){if(z(e)){I(e,function(e){uk(e)});return}qn(ck,e)>=0||(ck.push(e),B(e)&&(e={install:e}),e.install(lk))}var dk={left:0,right:0,top:0,bottom:0},fk=[`25%`,`25%`],pk=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=Zv(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&Xv(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Xv(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:dk,outerBoundsContain:`all`,outerBoundsClampWidth:fk[0],outerBoundsClampHeight:fk[1],backgroundColor:K.color.transparent,borderWidth:1,borderColor:K.color.neutral30},t}(ey),mk=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),hk=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Pu).models[0]},t.type=`cartesian2dAxis`,t}(ey);Yn(hk,mk);var gk={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:K.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:K.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:K.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[K.color.backgroundTint,K.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:K.color.neutral00,borderColor:K.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},_k=Gn({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},gk),vk=Gn({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:K.color.axisMinorSplitLine,width:1}}},gk),yk={category:_k,value:vk,time:Gn({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},vk),log:Kn({logBase:10},vk)},bk=0,xk=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++bk,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&L(r,Sk);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!V(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=W(this.categories)},e}();function Sk(e){return H(e)&&e.value!=null?e.value:e+``}var Ck={value:1,category:1,time:1,log:1},wk=null;function Tk(){return wk}function Ek(e,t,n,r){I(Ck,function(i,a){var o=Gn(Gn({},yk[a],!0),r,!0),s=function(e){N(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=Yv(this),r=n?Zv(e):{};Gn(e,t.getTheme().get(a+`Axis`)),Gn(e,this.getDefaultOption()),e.type=Dk(e),n&&Xv(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=xk.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=Tk();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,Dk)}function Dk(e){return e.type||(e.data?`category`:`value`)}function Ok(e){return e.type===`interval`||e.type===`log`}function kk(e,t,n,r,i){var a={},o=a.interval=Kl(t/n,!0);r!=null&&o<r&&(o=a.interval=r),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=jk(o);return Nk(a.niceTickExtent=[Nl(Math.ceil(e[0]/o)*o,s),Nl(Math.floor(e[1]/o)*o,s)],e),a}function Ak(e){var t=10**Gl(e),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Nl(n*t)}function jk(e){return Fl(e)+2}function Mk(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Nk(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Mk(e,0,t),Mk(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Pk(e,t){return e>=t[0]&&e<=t[1]}var Fk=function(){function e(){this.normalize=Ik,this.scale=Lk}return e.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=R(e.normalize,e),this.scale=R(e.scale,e)):(this.normalize=Ik,this.scale=Lk)},e}();function Ik(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Lk(e,t){return e*(t[1]-t[0])+t[0]}function Rk(e,t,n){var r=Math.log(e);return[Math.log(n?t[0]:Math.max(0,t[0]))/r,Math.log(n?t[1]:Math.max(0,t[1]))/r]}var zk=function(){function e(e){this._calculator=new Fk,this._setting=e||{},this._extent=[1/0,-1/0];var t=W_();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},e.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},e.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(e){var t=W_();t&&this._innerSetBreak(t.parseAxisBreakOption(e,R(this.parse,this)))},e.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Kr(zk);var Bk=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;n.type=`ordinal`;var r=n.getSetting(`ordinalMeta`);return r||=new xk({}),z(r)&&(r=new xk({categories:L(r,function(e){return H(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting(`extent`)||[0,r.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:V(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return Pk(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n.push(c),r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type=`ordinal`,t}(zk);zk.registerClass(Bk);var Vk=Nl,Hk=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`interval`,t._interval=0,t._intervalPrecision=2,t}return t.prototype.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.contain=function(e){return Pk(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=jk(e)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=W_(),o=[];if(!t)return o;if(e.breakTicks===`only_break`&&a)return a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var s=1e4;n[0]<r[0]&&(e.expandToNicedExtent?o.push({value:Vk(r[0]-t,i)}):o.push({value:n[0]}));for(var c=function(e,n){return Math.round((n-e)/t)},l=r[0];l<=r[1];){if(o.push({value:l}),l=Vk(l+t,i),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,c);u>=0&&(l=Vk(l+u*t,i))}if(o.length>0&&l===o[o.length-1].value)break;if(o.length>s)return[]}var d=o.length?o[o.length-1].value:r[1];return n[1]>d&&(e.expandToNicedExtent?o.push({value:Vk(d+t,i)}):o.push({value:n[1]})),a&&a.pruneTicksByBreak(e.pruneByBreak,o,this._brkCtx.breaks,function(e){return e.value},this._interval,this._extent),e.breakTicks!==`none`&&a&&a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks({expandToNicedExtent:!0}),n=[],r=this.getExtent(),i=1;i<t.length;i++){var a=t[i],o=t[i-1];if(!(o.break||a.break)){for(var s=0,c=[],l=(a.value-o.value)/e,u=jk(l);s<e-1;){var d=Vk(o.value+(s+1)*l,u);d>r[0]&&d<r[1]&&c.push(d),s++}var f=W_();f&&f.pruneTicksByBreak(`auto`,c,this._getNonTransBreaks(),function(e){return e},this._interval,r),n.push(c)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Fl(e.value)||0:n===`auto`&&(n=this._intervalPrecision),Dv(Vk(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e||=5;var r=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)){i<0&&(i=-i,r.reverse(),this._innerSetExtent(r[0],r[1]),r=this._extent.slice());var a=kk(r,i,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent.slice();if(t[0]===t[1])if(t[0]!==0){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this._innerSetExtent(t[0],t[1]),t=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval,a=this._intervalPrecision;e.fixMin||(t[0]=Vk(Math.floor(t[0]/i)*i,a)),e.fixMax||(t[1]=Vk(Math.ceil(t[1]/i)*i,a)),this._innerSetExtent(t[0],t[1])},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type=`interval`,t}(zk);zk.registerClass(Hk);var Uk=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Wk=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`time`,n}return t.prototype.getLabel=function(e){var t=this.getSetting(`useUTC`);return lv(e.value,ev[cv(ov(this._minLevelUnit))]||ev.second,t,this.getSetting(`locale`))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting(`useUTC`);return uv(e,t,n,this.getSetting(`locale`),r)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=W_(),i=[];if(!t)return i;var a=this.getSetting(`useUTC`);if(r&&e.breakTicks===`only_break`)return W_().addBreaksToTicks(i,this._brkCtx.breaks,this._extent),i;var o=dv(n[1],a);i.push({value:n[0],time:{level:0,upperTimeUnit:o,lowerTimeUnit:o}});var s=eA(this._minLevelUnit,this._approxInterval,a,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(s);var c=dv(n[1],a);i.push({value:n[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}});var l=this.getSetting(`useUTC`),u=tv.length-1,d=0;return I(i,function(e){u=Math.min(u,qn(tv,e.time.upperTimeUnit)),d=Math.max(d,e.time.level)}),r&&W_().pruneTicksByBreak(e.pruneByBreak,i,this._brkCtx.breaks,function(e){return e.value},this._approxInterval,this._extent),r&&e.breakTicks!==`none`&&W_().addBreaksToTicks(i,this._brkCtx.breaks,this._extent,function(e){for(var t=Math.max(qn(tv,dv(e.vmin,l)),qn(tv,dv(e.vmax,l))),n=0,r=0;r<tv.length;r++)if(!Kk(tv[r],e.vmin,e.vmax,l)){n=r;break}var i=Math.min(n,u);return{level:d,lowerTimeUnit:tv[Math.max(i,t)],upperTimeUnit:tv[i]}}),i},t.prototype.calcNiceExtent=function(e){var t=this.getExtent();if(t[0]===t[1]&&(t[0]-=J_,t[1]+=J_),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-J_}this._innerSetExtent(t[0],t[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e||=10,this._approxInterval=this._getExtentSpanWithBreaks()/e,t!=null&&this._approxInterval<t&&(this._approxInterval=t),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var r=Gk.length,i=Math.min(Uk(Gk,this._approxInterval,0,r),r-1);this._interval=Gk[i][1],this._intervalPrecision=jk(this._interval),this._minLevelUnit=Gk[Math.max(i-1,0)][0]},t.prototype.parse=function(e){return ir(e)?e:+Ul(e)},t.prototype.contain=function(e){return Pk(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type=`time`,t}(Hk),Gk=[[`second`,G_],[`minute`,K_],[`hour`,q_],[`quarter-day`,q_*6],[`half-day`,q_*12],[`day`,J_*1.2],[`half-week`,J_*3.5],[`week`,J_*7],[`month`,J_*31],[`quarter`,J_*95],[`half-year`,Y_/2],[`year`,Y_]];function Kk(e,t,n,r){return fv(new Date(t),e,r).getTime()===fv(new Date(n),e,r).getTime()}function qk(e,t){return e/=J_,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Jk(e){var t=30*J_;return e/=t,e>6?6:e>3?3:e>2?2:1}function Yk(e){return e/=q_,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Xk(e,t){return e/=t?K_:G_,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Zk(e){return Kl(e,!0)}function Qk(e,t,n){var r=Math.max(0,qn(tv,t)-1);return fv(new Date(e),tv[r],n).getTime()}function $k(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function eA(e,t,n,r,i,a){var o=1e4,s=nv,c=0;function l(e,t,n,i,s,l,u){for(var d=$k(s,e),f=t,p=new Date(f);f<n&&f<=r[1]&&(u.push({value:f}),!(c++>o));)if(p[s](p[i]()+e),f=p.getTime(),a){var m=a.calcNiceTickMultiple(f,d);m>0&&(p[s](p[i]()+m*e),f=p.getTime())}u.push({value:f,notAdd:!0})}function u(e,i,a){var o=[],s=!i.length;if(!Kk(ov(e),r[0],r[1],n)){s&&(i=[{value:Qk(r[0],e,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var u=i[c].value,d=i[c+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/J_/365)),p=pv(n),m=bv(n);break;case`half-year`:case`quarter`:case`month`:f=Jk(t),p=mv(n),m=xv(n);break;case`week`:case`half-week`:case`day`:f=qk(t,31),p=hv(n),m=Sv(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Yk(t),p=gv(n),m=Cv(n);break;case`minute`:f=Xk(t,!0),p=_v(n),m=wv(n);break;case`second`:f=Xk(t,!1),p=vv(n),m=Tv(n);break;case`millisecond`:f=Zk(t),p=yv(n),m=Ev(n);break}d>=r[0]&&u<=r[1]&&l(f,u,d,p,m,h,o),e===`year`&&a.length>1&&c===0&&a.unshift({value:a[0].value-f})}}for(var c=0;c<o.length;c++)a.push(o[c])}}for(var d=[],f=[],p=0,m=0,h=0;h<s.length;++h){var g=ov(s[h]);if(sv(s[h])&&(u(s[h],d[d.length-1]||[],f),g!==(s[h+1]?ov(s[h+1]):null))){if(f.length){m=p,f.sort(function(e,t){return e.value-t.value});for(var _=[],v=0;v<f.length;++v){var y=f[v].value;(v===0||f[v-1].value!==y)&&(_.push(f[v]),y>=r[0]&&y<=r[1]&&p++)}var b=i/t;if(p>b*1.5&&m>b/1.5||(d.push(_),p>b||e===s[h]))break}f=[]}}for(var x=Qn(L(d,function(e){return Qn(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),S=[],C=x.length-1,h=0;h<x.length;++h)for(var w=x[h],T=0;T<w.length;++T){var E=dv(w[T].value,n);S.push({value:w[T].value,time:{level:C-h,upperTimeUnit:E,lowerTimeUnit:E}})}S.sort(function(e,t){return e.value-t.value});for(var D=[],h=0;h<S.length;++h)(h===0||S[h].value!==S[h-1].value)&&D.push(S[h]);return D}zk.registerClass(Wk);var tA=Nl,nA=Math.floor,rA=Math.ceil,iA=Math.pow,aA=Math.log,oA=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`log`,t.base=10,t._originalScale=new Hk,t}return t.prototype.getTicks=function(t){t||={};var n=this._extent.slice(),r=this._originalScale.getExtent(),i=e.prototype.getTicks.call(this,t),a=this.base,o=this._originalScale._innerGetBreaks(),s=W_();return L(i,function(e){var t=e.value,i=null,c=iA(a,t);t===n[0]&&this._fixMin?i=r[0]:t===n[1]&&this._fixMax&&(i=r[1]);var l;if(s){var u=s.getTicksLogTransformBreak(e,a,o,sA);l=u.vBreak,i??=u.brkRoundingCriterion}return i!=null&&(c=sA(c,i)),{value:c,break:l}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(t,n){this._originalScale.setExtent(t,n);var r=Rk(this.base,[t,n]);e.prototype.setExtent.call(this,r[0],r[1])},t.prototype.getExtent=function(){var t=this.base,n=e.prototype.getExtent.call(this);n[0]=iA(t,n[0]),n[1]=iA(t,n[1]);var r=this._originalScale.getExtent();return this._fixMin&&(n[0]=sA(n[0],r[0])),this._fixMax&&(n[1]=sA(n[1],r[1])),n},t.prototype.unionExtentFromData=function(e,t){this._originalScale.unionExtentFromData(e,t);var n=Rk(this.base,e.getApproximateExtent(t),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e||=10;var t=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var r=Wl(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[tA(rA(t[0]/r)*r),tA(nA(t[1]/r)*r)];this._interval=r,this._intervalPrecision=jk(r),this._niceExtent=i}},t.prototype.calcNiceExtent=function(t){e.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},t.prototype.contain=function(t){return t=aA(t)/aA(this.base),e.prototype.contain.call(this,t)},t.prototype.normalize=function(t){return t=aA(t)/aA(this.base),e.prototype.normalize.call(this,t)},t.prototype.scale=function(t){return t=e.prototype.scale.call(this,t),iA(this.base,t)},t.prototype.setBreaksFromOption=function(e){var t=W_();if(t){var n=t.logarithmicParseBreaksFromOption(e,this.base,R(this.parse,this)),r=n.parsedOriginal,i=n.parsedLogged;this._originalScale._innerSetBreak(r),this._innerSetBreak(i)}},t.type=`log`,t}(Hk);function sA(e,t){return tA(e,Fl(t))}zk.registerClass(oA);var cA=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal=e.type===`ordinal`;this._needCrossZero=e.type===`interval`&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get(`min`,!0);i??=t.get(`startValue`,!0);var a=this._modelMinRaw=i;B(a)?this._modelMinNum=fA(e,a({min:n[0],max:n[1]})):a!==`dataMin`&&(this._modelMinNum=fA(e,a));var o=this._modelMaxRaw=t.get(`max`,!0);if(B(o)?this._modelMaxNum=fA(e,o({min:n[0],max:n[1]})):o!==`dataMax`&&(this._modelMaxNum=fA(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get(`boundaryGap`),c=z(s)?s:[s||0,s||0];typeof c[0]==`boolean`||typeof c[1]==`boolean`?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ui(c[0],1),Ui(c[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),o=this._modelMinRaw===`dataMin`?t:this._modelMinNum,s=this._modelMaxRaw===`dataMax`?n:this._modelMaxNum,c=o!=null,l=s!=null;o??=e?r?0:NaN:t-i[0]*a,s??=e?r?r-1:NaN:n+i[1]*a,(o==null||!isFinite(o))&&(o=NaN),(s==null||!isFinite(s))&&(s=NaN);var u=dr(o)||dr(s)||e&&!r;this._needCrossZero&&(o>0&&s>0&&!c&&(o=0),o<0&&s<0&&!l&&(s=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(o=d,c=!0),f!=null&&(s=f,l=!0),{min:o,max:s,minFixed:c,maxFixed:l,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[uA[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=lA[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),lA={min:`_determinedMin`,max:`_determinedMax`},uA={min:`_dataMin`,max:`_dataMax`};function dA(e,t,n){var r=e.rawExtentInfo;return r||(r=new cA(e,t,n),e.rawExtentInfo=r,r)}function fA(e,t){return t==null?null:dr(t)?NaN:e.parse(t)}function pA(e,t){var n=e.type,r=dA(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&n===`time`){var s=jx(`bar`,o),c=!1;if(I(s,function(e){c||=e.getBaseAxis()===t.axis}),c){var l=Nx(s),u=mA(i,a,t,l);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function mA(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=Fx(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;I(o,function(e){s=Math.min(e.offset,s)});var c=-1/0;I(o,function(e){c=Math.max(e.offset+e.width,c)}),s=Math.abs(s),c=Math.abs(c);var l=s+c,u=t-e,d=u/(1-(s+c)/a)-u;return t+=c/l*d,e-=s/l*d,{min:e,max:t}}function hA(e,t){var n=t,r=pA(e,n),i=r.extent,a=n.get(`splitNumber`);e instanceof oA&&(e.base=n.get(`logBase`));var o=e.type,s=n.get(`interval`),c=o===`interval`||o===`time`;e.setBreaksFromOption(EA(n)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get(`minInterval`):null,maxInterval:c?n.get(`maxInterval`):null}),s!=null&&e.setInterval&&e.setInterval(s)}function gA(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new Bk({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new Wk({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new((zk.getClass(t))||Hk)}}function _A(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function vA(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=rv(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(V(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(B(t)){if(e.type===`category`)return function(n,r){return t(yA(e,n),n.value-e.scale.getExtent()[0],null)};var r=W_();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(yA(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function yA(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function bA(e){return e.get(`interval`)??`auto`}function xA(e){return e.type===`category`&&bA(e.getLabelModel())===0}function SA(e,t){var n={};return I(e.mapDimensionsAll(t),function(t){n[o_(e,t)]=!0}),er(n)}function CA(e,t,n){t&&I(SA(t,n),function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])})}function wA(e){return e===`middle`||e===`center`}function TA(e){return e.getShallow(`show`)}function EA(e){var t=e.get(`breaks`,!0);if(t!=null)return!W_()||!DA(e.axis)?void 0:t}function DA(e){return(e.dim===`x`||e.dim===`y`||e.dim===`z`||e.dim===`single`)&&e.type!==`category`}var OA=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return L(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Qn(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),kA=[`x`,`y`];function AA(e){return(e.type===`interval`||e.type===`time`)&&!e.hasBreaks()}var jA=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`cartesian2d`,t.dimensions=kA,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!AA(e)||!AA(t))){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s;this._invTransform=di([],this._transform=[c,0,0,l,i[0]-n[0]*c,i[1]-r[0]*l])}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new Ei(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Ea(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Ea(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new Ei(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(OA),MA=Au(),NA=Au(),PA={estimate:1,determine:2};function FA(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function IA(e,t){var n=L(t,function(t){return e.scale.parse(t)});return e.type===`time`&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function LA(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=vA(e),i=e.scale.getExtent();return{labels:L(Qn(IA(e,n),function(e){return e>=i[0]&&e<=i[1]}),function(t){var n={value:t};return{formattedLabel:r(n),rawLabel:e.scale.getLabel(n),tickValue:t,time:void 0,break:void 0}})}}return e.type===`category`?zA(e,t):HA(e)}function RA(e,t,n){var r=e.getTickModel().get(`customValues`);if(r){var i=e.scale.getExtent();return{ticks:Qn(IA(e,r),function(e){return e>=i[0]&&e<=i[1]})}}return e.type===`category`?VA(e,t):{ticks:L(e.scale.getTicks(n),function(e){return e.value})}}function zA(e,t){var n=e.getLabelModel(),r=BA(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function BA(e,t,n){var r=WA(e),i=bA(t),a=n.kind===PA.estimate;if(!a){var o=KA(r,i);if(o)return o}var s,c;B(i)?s=ej(e,i):(c=i===`auto`?JA(e,n):i,s=$A(e,c));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return qA(r,i,l),!0}):qA(r,i,l),l}function VA(e,t){var n=UA(e),r=bA(t),i=KA(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),B(r))a=ej(e,r,!0);else if(r===`auto`){var s=BA(e,e.getLabelModel(),FA(PA.determine));o=s.labelCategoryInterval,a=L(s.labels,function(e){return e.tickValue})}else o=r,a=$A(e,o,!0);return qA(n,r,{ticks:a,tickCategoryInterval:o})}function HA(e){var t=e.scale.getTicks(),n=vA(e);return{labels:L(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})}}var UA=GA(`axisTick`),WA=GA(`axisLabel`);function GA(e){return function(t){return NA(t)[e]||(NA(t)[e]={list:[]})}}function KA(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function qA(e,t,n){return e.list.push({key:t,value:n}),n}function JA(e,t){if(t.kind===PA.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return NA(e).autoInterval=n,!0}),n}return NA(e).autoInterval??(NA(e).autoInterval=e.calculateCategoryInterval(t))}function YA(e,t){var n=t.kind,r=QA(e),i=vA(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=zi(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===PA.estimate?(t.out.noPxChangeTryDetermine.push(R(XA,null,e,S,c)),S):ZA(e,S,c)??S}function XA(e,t,n){return ZA(e,t,n)==null}function ZA(e,t,n){var r=MA(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function QA(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function $A(e,t,n){var r=vA(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),l=a[0],u=i.count();l!==0&&c>1&&u/c>2&&(l=Math.round(Math.ceil(l/c)*c));var d=xA(e),f=o.get(`showMinLabel`)||d,p=o.get(`showMaxLabel`)||d;f&&l!==a[0]&&h(a[0]);for(var m=l;m<=a[1];m+=c)h(m);p&&m-c!==a[1]&&h(a[1]);function h(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e,time:void 0,break:void 0})}return s}function ej(e,t,n){var r=e.scale,i=vA(e),a=[];return I(r.getTicks(),function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s,time:void 0,break:void 0})}),a}var tj=[0,1],nj=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Ll(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(r.parse(e)),this.onBand&&r.type===`ordinal`&&(n=n.slice(),rj(n,r.count())),kl(e,tj,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&r.type===`ordinal`&&(n=n.slice(),rj(n,r.count()));var i=kl(e,n,tj,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=RA(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,r=L(n,function(e){return{coord:this.dataToCoord(this.scale.type===`ordinal`?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this),i=t.get(`alignWithLabel`);return ij(this,r,i,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if(this.scale.type===`ordinal`)return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),L(this.scale.getMinorTicks(e),function(e){return L(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=FA(PA.determine),LA(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(e){return e||=FA(PA.determine),YA(this,e)},e}();function rj(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}function ij(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var c=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/c;I(t,function(e){e.coord-=l/2,e.onBand=!0});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:u[1]+1,onBand:!0},t.push(o)}var d=a[0]>a[1];f(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&f(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),f(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&f(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function f(e,t){return e=Nl(e),t=Nl(t),d?e>t:e<t}}var aj=function(e){N(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(nj),oj=`expandAxisBreak`,sj=Math.PI,cj=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],lj=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],uj=Au(),dj=Au(),fj=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function pj(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=Lj(e.axisName)&&wA(e.nameLocation);I(r,function(e){var t=tC(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?di(mj,n.transform):ai(mj),t.transform&&si(mj,mj,t.transform),Ei.copy(hj,t.localRect),hj.applyTransform(mj),s?s.union(hj):Ei.copy(s=new Ei(0,0,0,0),hj))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new Ei(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var mj=ii(),hj=new Ei(0,0,0,0),gj=function(e,t,n,r,i,a){if(wA(e.nameLocation)){var o=a.stOccupiedRect;o&&_j(iC({},o,a.transGroup.transform),r,i)}else vj(a.labelInfoList,a.dirVec,r,i)};function _j(e,t,n){var r=new fi;uC(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&aC(t,r)}function vj(e,t,n,r){for(var i=fi.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||_j(s,n,r)}}var yj=function(){function e(e,t,n,r){this.group=new yf,this._axisModel=e,this._api=t,this._local={},this._shared=r||new fj(gj),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=U(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=U(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:U(e.nameDirection,1),tickDirection:U(e.tickDirection,1),labelDirection:U(e.labelDirection,1),labelOffset:U(e.labelOffset,0),silent:U(e.silent,!0),axisName:r,nameLocation:pr(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:Lj(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new yf({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new fi(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},I(bj,function(r){e[r]&&xj[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=Bl(t-e),i,a;return Vl(r)?(a=n>0?`top`:`bottom`,i=`center`):Vl(r-sj)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<sj?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),bj=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],xj={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Ea(u,u,l),Ea(d,d,l));var p=F({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&r.axis.scale.hasBreaks())Tk().buildAxisBreakLine(r,i,a,m);else{var h=new Zf(F({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));Up(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);V(g)&&(g=[g,g]),(V(_)||ir(_))&&(_=[_,_]);var v=yb(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];I([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=_b(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){Aj(t,i,s)&&Sj(e,t,n,r,i,a,o,PA.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){Aj(t,i,s)&&Sj(e,t,n,r,i,a,o,PA.determine);var c=Oj(e,i,a,r);Tj(e,t.labelLayoutList,c),kj(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(Lj(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new fi(0,0),_=new fi(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=ii();_.transform(li(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*sj/180);var b,x;wA(u)?b=yj.innerTextLayout(e.rotation,y??e.rotation,d):(b=Cj(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=fr(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new ll({x:g.x,y:g.y,rotation:b.rotation,silent:yj.isLabelSilent(r),style:wm(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(cm({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=yj.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Vu(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=tC({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:wA(u)?cj[E]:lj[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function Sj(e,t,n,r,i,a,o,s){Mj(t)||jj(e,t,i,s,r,o);var c=t.labelLayoutList;Pj(e,r,c,a),zj(r,e.rotation,c);var l=e.optionHideOverlap;wj(r,c,l),l&&lC(Qn(c,function(e){return e&&!e.label.ignore})),pj(e,n,r,c)}function Cj(e,t,n,r){var i=Bl(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Vl(i-sj/2)?(o=c?`bottom`:`top`,a=`center`):Vl(i-sj*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<sj*1.5&&i>sj/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function wj(e,t,n){if(xA(e.axis))return;function r(e,r,i){var a=tC(t[r]),o=tC(t[i]);if(!(!a||!o)){if(e===!1||a.suggestIgnore){Ej(a.label);return}if(o.suggestIgnore){Ej(o.label);return}var s=.1;if(!n){var c=[0,0,0,0];a=oC({marginForce:c},a),o=oC({marginForce:c},o)}uC(a,o,null,{touchThreshold:s})&&Ej(e?o.label:a.label)}}var i=e.get([`axisLabel`,`showMinLabel`]),a=e.get([`axisLabel`,`showMaxLabel`]),o=t.length;r(i,0,1),r(a,o-1,o-2)}function Tj(e,t,n){e.showMinorTicks||I(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=dj(r),a=uj(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.tickValue){Ej(r);return}}})}function Ej(e){e&&(e.ignore=!0)}function Dj(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(Ea(o,o,t),Ea(s,s,t));var u=new Zf({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Up(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=dj(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function Oj(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=Dj(i.getTicksCoords(),n.transform,c,Kn(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function kj(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=Kn(c.getLineStyle(),Kn(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=Dj(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function Aj(e,t,n){if(Mj(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),Nj(e,null,null,null))}return!0}function jj(e,t,n,r,i,a){var o=i.axis,s=fr(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new yf;n.add(c);var l=FA(r);if(!s||o.scale.isBlank()){Nj(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(fr(e.raw.labelRotate,u.get(`rotate`))||0)*sj/180,p=yj.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;I(d,function(e,t){var n=o.scale.type===`ordinal`?o.scale.getRawOrdinalNumber(e.tickValue):e.tickValue,r=e.formattedLabel,s=e.rawLabel,l=u;if(m&&m[n]){var f=m[n];H(f)&&f.textStyle&&(l=new qm(f.textStyle,u,i.ecModel))}var y=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),b=l.getShallow(`align`,!0)||p.textAlign,x=U(l.getShallow(`alignMinLabel`,!0),b),S=U(l.getShallow(`alignMaxLabel`,!0),b),C=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,w=U(l.getShallow(`verticalAlignMinLabel`,!0),C),T=U(l.getShallow(`verticalAlignMaxLabel`,!0),C),E=10+(e.time?.level||0);_=Math.min(_,E),v=Math.max(v,E);var D=new ll({x:0,y:0,rotation:0,silent:yj.isLabelSilent(i),z2:E,style:wm(l,{text:r,align:t===0?x:t===d.length-1?S:b,verticalAlign:t===0?w:t===d.length-1?T:C,fill:B(y)?y(o.type===`category`?s:o.type===`value`?n+``:n,t):y})});D.anid=`label_`+n;var O=uj(D);if(O.break=e.break,O.tickValue=n,O.layoutRotation=p.rotation,cm({el:D,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:s,tickIndex:t}}),g){var k=yj.makeAxisEventDataBase(i);k.targetType=`axisLabel`,k.value=s,k.tickIndex=t,e.break&&(k.break={start:e.break.parsedBreak.vmin,end:e.break.parsedBreak.vmax}),o.type===`category`&&(k.dataIndex=n),Vu(D).eventData=k,e.break&&Rj(i,a,D,e.break)}h.push(D),c.add(D)}),Nj(t,L(h,function(e){return{label:e,priority:uj(e).break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function Mj(e){return!!e.labelLayoutList}function Nj(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function Pj(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);I(n,function(n,a){var o=tC(n);if(o){var s=o.label,c=uj(s);o.suggestIgnore=s.ignore,s.ignore=!1,Ra(Fj,Ij),Fj.x=t.axis.dataToCoord(c.tickValue),Fj.y=e.labelOffset+e.labelDirection*i,Fj.rotation=c.layoutRotation,r.add(Fj),Fj.updateTransform(),r.remove(Fj),Fj.decomposeTransform(),Ra(s,Fj),s.markRedraw(),$S(o,!0),tC(o)}})}var Fj=new il,Ij=new il;function Lj(e){return!!e}function Rj(e,t,n,r){n.on(`click`,function(n){var i={type:oj,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function zj(e,t,n){var r=W_();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&uj(e.label).break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&I(i,function(r){Tk().adjustBreakLabelPair(e.axis.inverse,t,[tC(n[r[0]]),tC(n[r[1]])])})}}function Bj(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),fr(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function Vj(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function Hj(e){var t={xAxisModel:null,yAxisModel:null};return I(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,Pu).models[0]}),t}function Uj(e,t,n,r,i,a){for(var o=Bj(e,n),s=!1,c=!1,l=0;l<t.length;l++)Ok(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new yj(n,r,o,i)}function Wj(e,t,n){var r=Bj(t,n);e.updateCfg(r)}function Gj(e,t,n){var r=Hk.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,{expandToNicedExtent:!0}),o=i.length-1,s=r.getInterval.call(n),c=pA(e,t),l=c.extent,u=c.fixMin,d=c.fixMax;e.type===`log`&&(l=Rk(e.base,l,!0)),e.setBreaksFromOption(EA(t)),e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:d});var f=r.getExtent.call(e);u&&(l[0]=f[0]),d&&(l[1]=f[1]);var p=r.getInterval.call(e),m=l[0],h=l[1];if(u&&d)p=(h-m)/o;else if(u)for(h=l[0]+p*o;h<l[1]&&isFinite(h)&&isFinite(l[1]);)p=Ak(p),h=l[0]+p*o;else if(d)for(m=l[1]-p*o;m>l[0]&&isFinite(m)&&isFinite(l[0]);)p=Ak(p),m=l[1]-p*o;else{e.getTicks().length-1>o&&(p=Ak(p));var g=p*o;h=Math.ceil(l[1]/p)*p,m=Nl(h-g),m<0&&l[0]>=0?(m=0,h=Nl(g)):h>0&&l[1]<=0&&(h=0,m=-Nl(g))}var _=(i[0].value-a[0].value)/s,v=(i[o].value-a[o].value)/s;r.setExtent.call(e,m+p*_,h+p*v),r.setInterval.call(e,p),(_||v)&&r.setNiceExtent.call(e,m+p,h-p)}var Kj=[[3,1],[0,2]],qj=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kA,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function r(e){var t,n=er(e),r=n.length;if(r){for(var i=[],a=r-1;a>=0;a--){var o=e[+n[a]],s=o.model,c=o.scale;Ok(c)&&s.get(`alignTicks`)&&s.get(`interval`)==null?i.push(o):(hA(c,s),Ok(c)&&(t=o))}i.length&&(t||(t=i.pop(),hA(t.scale,t.model)),I(i,function(e){Gj(e.scale,e.model,t.scale)}))}}r(n.x),r(n.y);var i={};I(n.x,function(e){Yj(n,`y`,e,i)}),I(n.y,function(e){Yj(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=qv(e,t),i=this._rect=Gv(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(Qj(a,i),!n){var c=nM(i,o,a,s,t),l=void 0;if(s)eM?(eM(this._axesList,i),Qj(a,i)):l=tM(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=iM(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=tM(d,f,p,i,a,c,r))}rM(i,a,PA.determine,null,l,r)}I(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}H(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,Pu).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,Pu).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,qn(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,I(o.x,function(t,n){I(o.y,function(i,a){var o=`x`+n+`y`+a,s=new jA(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})});function c(t){return function(n,r){if(Jj(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=new aj(t,gA(n),[0,0],n.get(`type`),c);l.onBand=l.type===`category`&&n.get(`boundaryGap`),l.inverse=n.get(`inverse`),n.axis=l,l.model=n,l.grid=i,l.index=r,i._axesList.push(l),o[t][r]=l,s[t]++}}}},e.prototype._updateScale=function(e,t){I(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),e.type===`category`){var t=e.model.get(`categorySortInfo`);e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(Vj(e)){var r=Hj(e),i=r.xAxisModel,a=r.yAxisModel;if(!Jj(i,t)||!Jj(a,t))return;var o=this.getCartesian(i.componentIndex,a.componentIndex),s=e.getData(),c=o.getAxis(`x`),l=o.getAxis(`y`);n(s,c),n(s,l)}},this);function n(e,t){I(SA(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return I(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);qn(t,i)<0&&t.push(i),qn(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)}),t.eachSeries(function(e){Qg({targetModel:e,coordSysType:`cartesian2d`,coordSysProvider:t});function t(){var t=Hj(e),n=t.xAxisModel,r=t.yAxisModel;return n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=kA,e}();function Jj(e,t){return e.getCoordSysModel()===t}function Yj(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)Xj(i[c])&&(a=i[c]);else for(var l in i)if(i.hasOwnProperty(l)&&Xj(i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function Xj(e){return e&&e.type!==`category`&&e.type!==`time`&&_A(e)}function Zj(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function Qj(e,t){I(e.x,function(e){return $j(e,t.x,t.width)}),I(e.y,function(e){return $j(e,t.y,t.height)})}function $j(e,t,n){var r=[0,n],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),Zj(e,t)}var eM;function tM(e,t,n,r,i,a,o){rM(r,i,PA.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=$n(s,function(e){return e>0})==null;return am(r,s,!0,!0,n),Qj(i,r),c;function l(e){I(i[jp[e]],function(t){if(TA(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(uj(o.label).tickValue);s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=wA(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[jp[n]]-t[jp[n]],a=t[Mp[n]]+t[jp[n]]-(e[Mp[n]]+e[jp[n]]);i=d(i,1-r),a=d(a,r);var o=Kj[n][0],c=Kj[n][1];s[o]=Dl(s[o],i),s[c]=Dl(s[c],a)}function d(e,t){return e>0&&!dr(t)&&t>1e-4&&(e/=t),e}}function nM(e,t,n,r,i){var a=new fj(aM);return I(n,function(n){return I(n,function(n){if(TA(n.model)){var o=!r;n.axisBuilder=Uj(e,t,n.model,i,a,o)}})}),a}function rM(e,t,n,r,i,a){var o=n===PA.determine;I(t,function(t){return I(t,function(t){TA(t.model)&&(Wj(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[jp[1-t]]=e[Mp[t]]<=a.refContainer[Mp[t]]*.5?0:1-t==1?2:1}I(t,function(e,t){return I(e,function(e){TA(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function iM(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=Gv(e.get(`outerBounds`,!0)||dk,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||qn([`all`,`axisLabel`],a)<0?`all`:a,s=[Ml(U(e.get(`outerBoundsClampWidth`,!0),fk[0]),t.width),Ml(U(e.get(`outerBoundsClampHeight`,!0),fk[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var aM=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;gj(e,t,n,r,i,a),wA(e.nameLocation)||I(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&vj(e.labelInfoList,e.dirVec,r,i)})};function oM(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return sM(n,e,t),n.seriesInvolved&&lM(n,e),n}function sM(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];I(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=gM(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(I(n.getAxes(),nr(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&I(f.baseAxes,nr(p,d?`cross`:!0,u)),d&&I(f.otherAxes,nr(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!hM(d))){s??=d.get(`triggerTooltip`),d=r?cM(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=gM(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:hM(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=uM(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function cM(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};I(s,function(e){c[e]=P(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&Kn(l,u.textStyle)}return e.model.getModel(`axisPointer`,new qm(c,n,r))}function lM(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||I(e.coordSysAxesInfo[gM(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function uM(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(dM(a[r+`AxisId`],n.id)||dM(a[r+`AxisIndex`],n.componentIndex)||dM(a[r+`AxisName`],n.name))return i}}function dM(e,t){return e===`all`||z(e)&&qn(e,t)>=0||e===t}function fM(e){var t=pM(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=hM(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function pM(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[gM(e)]}function mM(e){var t=pM(e);return t&&t.axisPointerModel}function hM(e){return!!e.get([`handle`,`show`])}function gM(e){return e.type+`||`+e.id}var _M={},vM=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&fM(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=mM(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){_M[e]=t},t.getAxisPointerClass=function(e){return e&&_M[e]},t.type=`axis`,t}(GT),yM=Au();function bM(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=yM(e).splitAreaColors,f=W(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=z(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new il({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:Kn({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}yM(e).splitAreaColors=f}}}function xM(e){yM(e).splitAreaColors=null}var SM=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],CM=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new yf,this.group.add(this._axisGroup),TA(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),I(SM,function(e){t.get([e,`show`])&&wM[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Zp(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){xM(this)},t.type=`cartesianAxis`,t}(vM),wM={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=z(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new Zf({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:Kn({stroke:c[x]},_),silent:!0});Up(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new Zf({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});Up(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){bM(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=Tk(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},TM=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(CM),EM=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=TM.type,t}return t.type=`yAxis`,t}(CM),DM=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new il({shape:e.coordinateSystem.getRect(),style:Kn({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(GT),OM={offset:0};function kM(e){e.registerComponentView(DM),e.registerComponentModel(pk),e.registerCoordinateSystem(`cartesian2d`,qj),Ek(e,`x`,hk,OM),Ek(e,`y`,hk,OM),e.registerComponentView(TM),e.registerComponentView(EM),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function AM(e){e.eachSeriesByType(`radar`,function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();I(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=jM(i)?i:MM(r)})}),t.each(function(e){var i=$n(n[e],function(e){return jM(e)})||MM(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function jM(e){return!isNaN(e[0])&&!isNaN(e[1])}function MM(e){return[e.cx,e.cy]}function NM(e){var t=e.polar;if(t){z(t)||(t=[t]);var n=[];I(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],z(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}I(e.series,function(e){e&&e.type===`radar`&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var PM=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,`symbol`)||`circle`;if(n!==`none`){var r=vb(e.getItemVisual(t,`symbolSize`)),i=_b(n,-1,-1,2,2),a=e.getItemVisual(t,`symbolRotate`)||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var c=0;c<n.length-1;c++){var l=s(i,a);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),kp[o?`initProps`:`updateProps`](l,{x:n[c][0],y:n[c][1]},e,a)):l.setPosition(n[c]),r.add(l))}}function l(e){return L(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new Kf,i=new Jf,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),Cp(r,o,e,t),Cp(i,o,e,t);var s=new yf,u=new yf;s.add(i),s.add(r),s.add(u),c(i.shape.points,n,u,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),Op(s),Op(i),Sp(i,u,e),Sp(s,u,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),c=a.getItemVisual(t,`style`),l=c.fill;i.add(e),r.useStyle(Kn(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),Ud(r,n,`lineStyle`),Ud(o,n,`areaStyle`);var u=n.getModel(`areaStyle`),d=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=d,I([`emphasis`,`select`,`blur`],function(e){var t=n.getModel([e,`areaStyle`]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&d;var a=n.getModel([e,`lineStyle`]).getLineStyle();r.ensureState(e).style=a;var c=t.getAreaStyle();o.ensureState(e).style=c;var l=n.getModel([e,`itemStyle`]).getItemStyle();s.eachChild(function(t){t.ensureState(e).style=P(l)})}),o.useStyle(Kn(n.getModel(`areaStyle`).getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`);s.eachChild(function(e){if(e instanceof Xc){var r=e.style;e.useStyle(F({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},c))}else e.useStyle(c),e.setColor(l),e.style.strokeNoScale=!0;var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(i==null||isNaN(i))&&(i=``),Sm(e,Cm(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:c.opacity})}),zd(e,f.get(`focus`),f.get(`blurScope`),f.get(`disabled`))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=`radar`,t}(Jb),FM=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new CC(R(this.getData,this),R(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return SC(this,{generateCoord:`indicator_`,generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=a===``?this.name:a,s=Yy(this,e);return Iy(`section`,{header:o,sortBlocks:!0,blocks:L(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return Iy(`nameValue`,{markerType:`subItem`,markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(L(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}}},t.type=`series.radar`,t.dependencies=[`radar`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`radar`,legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:`solid`,join:`round`},label:{position:`top`},symbolSize:8},t}(nb),IM=yk.value;function LM(e,t){return Kn({show:t},e)}var RM=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this.get(`boundaryGap`),t=this.get(`splitNumber`),n=this.get(`scale`),r=this.get(`axisLine`),i=this.get(`axisTick`),a=this.get(`axisLabel`),o=this.get(`axisName`),s=this.get([`axisName`,`show`]),c=this.get([`axisName`,`formatter`]),l=this.get(`axisNameGap`),u=this.get(`triggerEvent`);this._indicatorModels=L(this.get(`indicator`)||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var f=o;d.color!=null&&(f=Kn({color:d.color},o));var p=Gn(P(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:d.text,showName:s,nameLocation:`end`,nameGap:l,nameTextStyle:f,triggerEvent:u},!1);if(V(c)){var m=p.name;p.name=c.replace(`{value}`,m??``)}else B(c)&&(p.name=c(p.name,p));var h=new qm(p,null,this.ecModel);return Yn(h,mk.prototype),h.mainType=`radar`,h.componentIndex=this.componentIndex,h},this)},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=`radar`,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,axisName:{show:!0,color:K.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:Gn({lineStyle:{color:K.color.neutral20}},IM.axisLine),axisLabel:LM(IM.axisLabel,!1),axisTick:LM(IM.axisTick,!1),splitLine:LM(IM.splitLine,!0),splitArea:LM(IM.splitArea,!0),indicator:[]},t}(ey),zM=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;I(L(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new yj(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=z(u)?u:[u],p=z(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new xf({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new Hf({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=L(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),L(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E<n.length;E++)T.push(C[E][b]);if(T[0]&&T.push(T[0].slice()),c){var x=g(m,f,b);m[x].push(new Jf({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new Kf({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();I(h,function(e,t){this.group.add(Vp(e,{style:Kn({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),I(m,function(e,t){this.group.add(Vp(e,{style:Kn({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(GT),BM=function(e){N(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type=`value`,i.angle=0,i.name=``,i}return t}(nj),VM=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=L(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new BM(n,new Hk);return r.name=e.get(`name`),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i=Math.atan2(-n,t),a=1/0,o,s=-1,c=0;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],u=Math.abs(i-l.angle);u<a&&(o=l,s=c,a=u)}return[s,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=qv(e,t).refContainer,r=e.get(`center`),i=Math.min(n.width,n.height)/2;this.cx=Al(r[0],n.width)+n.x,this.cy=Al(r[1],n.height)+n.y,this.startAngle=e.get(`startAngle`)*Math.PI/180;var a=e.get(`radius`);(V(a)||ir(a))&&(a=[0,a]),this.r0=Al(a[0],i),this.r=Al(a[1],i),I(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;I(n,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType(`radar`,function(t,i){if(!(t.get(`coordinateSystem`)!==`radar`||e.getComponent(`radar`,t.get(`radarIndex`))!==r)){var a=t.getData();I(n,function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))})}},this);var i=r.get(`splitNumber`),a=new Hk;a.setExtent(0,i),a.setInterval(1),I(n,function(e,t){Gj(e.scale,e.model,a)})},e.prototype.convertToPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.create=function(t,n){var r=[];return t.eachComponent(`radar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(`radar`,function(e){e.get(`coordinateSystem`)===`radar`&&(e.coordinateSystem=r[e.get(`radarIndex`)||0])}),r},e.dimensions=[],e}();function HM(e){e.registerCoordinateSystem(`radar`,VM),e.registerComponentModel(RM),e.registerComponentView(zM),e.registerVisual({seriesType:`radar`,reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,`legendIcon`,`roundRect`)}),t.setVisual(`legendIcon`,`roundRect`)}})}function UM(e){uk(HM),e.registerChartView(PM),e.registerSeriesModel(FM),e.registerLayout(AM),e.registerProcessor(PS(`radar`)),e.registerPreprocessor(NM)}var WM=Au();function GM(e,t,n){WM(e)[t]=n}function KM(e,t,n){var r=WM(e);r[t]===n&&(r[t]=null)}function qM(e,t){return!!WM(e)[t]}QO({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},Or);var JM={axisPointer:1,tooltip:1,brush:1};function YM(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||JM.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=hm(r),o=hm(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var XM=function(e){N(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=R(n._mousedownHandler,n),i=R(n._mousemoveHandler,n),a=R(n._mouseupHandler,n),o=R(n._mousewheelHandler,n),s=R(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=hm(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:U(c.z2,-1/0)},p=F({},n.triggerInfo);this._opt=Kn(F({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p}),e??=!0,(!this._enabled||this._controlType!==e)&&(this._enabled=!0,this.disable(),(e===!0||e===`move`||e===`pan`)&&(eN(t,`mousedown`,r,f),eN(t,`mousemove`,i,f),eN(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(eN(t,`mousewheel`,o,f),eN(t,`pinch`,s,f)))},n.disable=function(){this._enabled=!1,tN(t,`mousedown`,r),tN(t,`mousemove`,i),tN(t,`mouseup`,a),tN(t,`mousewheel`,o),tN(t,`pinch`,s)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if(YM(e,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return o===`global`&&(s=!0),s||=a.isInSelf(e,t,n),s&&a.isInClip&&!a.isInClip(e,t,n)&&(s=!1),s},t.prototype._decideCursorStyle=function(e,t,n,r){var i=e.target;if(!i&&this._checkPointer(e,t,n))return`grab`;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(VC(e)||ZM(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||qM(t,`globalPan`)||ZM(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!aN(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(`grabbing`);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&BC(e.event),e.__ecRoamConsumed=!0,iN(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!ZM(e)){var t=this._zr;if(!VC(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!ZM(e)){var t=aN(`zoomOnMouseWheel`,e,this._opt),n=aN(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(!(r===0||!t&&!n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(qM(this._zr,`globalPan`)||ZM(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(BC(r.event),r.__ecRoamConsumed=!0,iN(e,t,n,r,i))},t}(ds);function ZM(e){return e.__ecRoamConsumed}var QM=Au();function $M(e){var t=QM(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function eN(e,t,n,r){for(var i=$M(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),nN(e,t)}function tN(e,t,n){for(var r=$M(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||rN(e,t);return}}function nN(e,t){var n=$M(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function rN(e,t){var n=$M(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function iN(e,t,n,r,i){i.isAvailableBehavior=R(aN,null,n,r),e.trigger(t,i)}function aN(e,t,n){var r=n[e];return!e||r&&(!V(r)||t.event[r+`Key`])}var oN=I,sN=H,cN=-1,lN=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=P(t);this.type=r,this.mappingMethod=n,this._normalizeData=xN[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(fN(i),uN(i)):n===`category`?i.categories?dN(i):fN(i,!0):(gr(n!==`linear`||i.dataExtent),fN(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return R(this._normalizeData,this)},e.listVisualTypes=function(){return er(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){H(e)?I(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=z(t)?[]:H(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&oN(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(sN(e)){var t=[];oN(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||V(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(SN(u[1],e,l[1]))return a}else if(l[1]===1/0){if(SN(u[0],l[0],e))return a}else if(SN(u[0],l[0],e)&&SN(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:hN(`color`),getColorMapper:function(){var e=this.option;return R(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),gN.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Mo(t,e.parsedVisual,r),i?r:Io(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return Io(Mo(e,this.option.parsedVisual),`rgba`)},category:gN,piecewise:function(e,t){var n=yN.call(this,t);return n??=Io(Mo(e,this.option.parsedVisual),`rgba`),n},fixed:_N}},colorHue:pN(function(e,t){return Po(e,t)}),colorSaturation:pN(function(e,t){return Po(e,null,t)}),colorLightness:pN(function(e,t){return Po(e,null,null,t)}),colorAlpha:pN(function(e,t){return Fo(e,t)}),decal:{applyVisual:hN(`decal`),_normalizedToVisual:{linear:null,category:gN,piecewise:null,fixed:null}},opacity:{applyVisual:hN(`opacity`),_normalizedToVisual:vN([0,1])},liftZ:{applyVisual:hN(`liftZ`),_normalizedToVisual:{linear:_N,category:_N,piecewise:_N,fixed:_N}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:mN,category:gN,piecewise:function(e,t){var n=yN.call(this,t);return n??=mN.call(this,e),n},fixed:_N}},symbolSize:{applyVisual:hN(`symbolSize`),_normalizedToVisual:vN([0,1])}},e}();function uN(e){var t=e.pieceList;e.hasSpecialVisual=!1,I(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function dN(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(oN(t,function(e,t){n[e]=t}),!z(r)){var i=[];H(r)?oN(r,function(e,t){var r=n[t];i[r??cN]=e}):i[cN]=r,r=bN(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function fN(e,t){var n=e.visual,r=[];H(n)?oN(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),bN(e,r)}function pN(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:vN([0,1])}}function mN(e){var t=this.option.visual;return t[Math.round(kl(e,[0,1],[0,t.length-1],!0))]||{}}function hN(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function gN(e){var t=this.option.visual;return t[this.option.loop&&e!==cN?e%t.length:e]}function _N(){return this.option.visual[0]}function vN(e){return{linear:function(t){return kl(t,e,this.option.visual,!0)},category:gN,piecewise:function(t,n){var r=yN.call(this,n);return r??=kl(t,e,this.option.visual,!0),r},fixed:_N}}function yN(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[lN.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function bN(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=L(t,function(e){return Oo(e)||[0,0,0,1]})),t}var xN={linear:function(e){return kl(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=lN.findPieceIndex(e,t,!0);if(n!=null)return kl(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??cN},fixed:Or};function SN(e,t,n){return e?t<=n:t<n}var CN=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),wN=function(e){N(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new CN},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(Wc);function TN(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:Al(n[0],t.getWidth()),cy:Al(n[1],t.getHeight()),r:Al(e.get(`radius`),a/2)}}function EN(e,t){var n=e==null?``:e+``;return t&&(V(t)?n=t.replace(`{value}`,n):B(t)&&(n=t(e))),n}var DN=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get([`axisLine`,`lineStyle`,`color`]),i=TN(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get(`clockwise`),s=-e.get(`startAngle`)/180*Math.PI,c=-e.get(`endAngle`)/180*Math.PI,l=e.getModel(`axisLine`),u=l.get(`roundCap`)?Xx:Bf,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];vc(m,!o),s=m[0],c=m[1];for(var h=c-s,g=s,_=[],v=0;d&&v<r.length;v++){var y=Math.min(Math.max(r[v][0],0),1);c=s+h*y;var b=new u({shape:{startAngle:g,endAngle:c,cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-p,r:i.r},silent:!0});b.setStyle({fill:r[v][1]}),b.setStyle(f.getLineStyle([`color`,`width`])),_.push(b),g=c}_.reverse(),I(_,function(e){return a.add(e)});var x=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(t===0?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,x,i,s,c,o,p),this._renderTitleAndDetail(e,t,n,x,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,x,i,s,c,o,p)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,s,c){for(var l=this.group,u=i.cx,d=i.cy,f=i.r,p=+e.get(`min`),m=+e.get(`max`),h=e.getModel(`splitLine`),g=e.getModel(`axisTick`),_=e.getModel(`axisLabel`),v=e.get(`splitNumber`),y=g.get(`splitNumber`),b=Al(h.get(`length`),f),x=Al(g.get(`length`),f),S=a,C=(o-a)/v,w=C/y,T=h.getModel(`lineStyle`).getLineStyle(),E=g.getModel(`lineStyle`).getLineStyle(),D=h.get(`distance`),O,k,A=0;A<=v;A++){if(O=Math.cos(S),k=Math.sin(S),h.get(`show`)){var j=D?D+c:c,ee=new Zf({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-b-j)+u,y2:k*(f-b-j)+d},style:T,silent:!0});T.stroke===`auto`&&ee.setStyle({stroke:r(A/v)}),l.add(ee)}if(_.get(`show`)){var j=_.get(`distance`)+D,te=EN(Nl(A/v*(m-p)+p),_.get(`formatter`)),ne=r(A/v),re=O*(f-b-j)+u,ie=k*(f-b-j)+d,ae=_.get(`rotate`),oe=0;ae===`radial`?(oe=-S+2*Math.PI,oe>Math.PI/2&&(oe+=Math.PI)):ae===`tangential`?oe=-S-Math.PI/2:ir(ae)&&(oe=ae*Math.PI/180),oe===0?l.add(new ll({style:wm(_,{text:te,x:re,y:ie,verticalAlign:k<-.8?`top`:k>.8?`bottom`:`middle`,align:O<-.4?`left`:O>.4?`right`:`center`},{inheritColor:ne}),silent:!0})):l.add(new ll({style:wm(_,{text:te,x:re,y:ie,verticalAlign:`middle`,align:`center`},{inheritColor:ne}),silent:!0,originX:re,originY:ie,rotation:oe}))}if(g.get(`show`)&&A!==v){var j=g.get(`distance`);j=j?j+c:c;for(var se=0;se<=y;se++){O=Math.cos(S),k=Math.sin(S);var ce=new Zf({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-x-j)+u,y2:k*(f-x-j)+d},silent:!0,style:E});E.stroke===`auto`&&ce.setStyle({stroke:r((A+se/y)/v)}),l.add(ce),S+=w}S-=w}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,c){var l=this.group,u=this._data,d=this._progressEls,f=[],p=e.get([`pointer`,`show`]),m=e.getModel(`progress`),h=m.get(`show`),g=e.getData(),_=g.mapDimension(`value`),v=+e.get(`min`),y=+e.get(`max`),b=[v,y],x=[a,o];function S(t,n){var r=g.getItemModel(t).getModel(`pointer`),a=Al(r.get(`width`),i.r),o=Al(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=Al(c[0],i.r),u=Al(c[1],i.r),d=r.get(`keepAspect`),f=s?_b(s,l-a/2,u-o,a,o,null,d):new wN({shape:{angle:-Math.PI/2,width:a,r:o,x:l,y:u}});return f.rotation=-(n+Math.PI/2),f.x=i.cx,f.y=i.cy,f}function C(e,t){var n=m.get(`roundCap`)?Xx:Bf,r=m.get(`overlap`),o=r?m.get(`width`):c/g.count(),l=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:u}});return r&&(d.z2=kl(g.get(_,e),[v,y],[100,0],!0)),d}(h||p)&&(g.diff(u).add(function(t){var n=g.get(_,t);if(p){var r=S(t,a);Cp(r,{rotation:-((isNaN(+n)?x[0]:kl(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);Cp(i,{shape:{endAngle:kl(n,b,x,m.get(`clip`))}},e),l.add(i),Hu(e.seriesIndex,g.dataType,t,i),f[t]=i}}).update(function(t,n){var r=g.get(_,t);if(p){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,Sp(s,{rotation:-((isNaN(+r)?x[0]:kl(r,b,x,!0))+Math.PI/2)},e),l.add(s),g.setItemGraphicEl(t,s)}if(h){var c=d[n],v=C(t,c?c.shape.endAngle:a);Sp(v,{shape:{endAngle:kl(r,b,x,m.get(`clip`))}},e),l.add(v),Hu(e.seriesIndex,g.dataType,t,v),f[t]=v}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel(`emphasis`),i=n.get(`focus`),a=n.get(`blurScope`),o=n.get(`disabled`);if(p){var s=g.getItemGraphicEl(e),c=g.getItemVisual(e,`style`),l=c.fill;if(s instanceof Xc){var u=s.style;s.useStyle(F({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},c))}else s.useStyle(c),s.type!==`pointer`&&s.setColor(l);s.setStyle(t.getModel([`pointer`,`itemStyle`]).getItemStyle()),s.style.fill===`auto`&&s.setStyle(`fill`,r(kl(g.get(_,e),b,[0,1],!0))),s.z2EmphasisLift=0,Ud(s,t),zd(s,i,a,o)}if(h){var d=f[e];d.useStyle(g.getItemVisual(e,`style`)),d.setStyle(t.getModel([`progress`,`itemStyle`]).getItemStyle()),d.z2EmphasisLift=0,Ud(d,t),zd(d,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel(`anchor`);if(n.get(`show`)){var r=n.get(`size`),i=n.get(`icon`),a=n.get(`offsetCenter`),o=n.get(`keepAspect`),s=_b(i,t.cx-r/2+Al(a[0],t.r),t.cy-r/2+Al(a[1],t.r),r,r,null,o);s.z2=n.get(`showAbove`)?1:0,s.setStyle(n.getModel(`itemStyle`).getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension(`value`),c=+e.get(`min`),l=+e.get(`max`),u=new yf,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new ll({silent:!0}),f[e]=new ll({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),h=new yf,g=r(kl(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+Al(v[0],i.r),b=i.cy+Al(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:wm(_,{x:y,y:b,text:o.getName(t),align:`center`,verticalAlign:`middle`},{inheritColor:g})}),h.add(x)}var S=n.getModel(`detail`);if(S.get(`show`)){var C=S.get(`offsetCenter`),w=i.cx+Al(C[0],i.r),T=i.cy+Al(C[1],i.r),E=Al(S.get(`width`),i.r),D=Al(S.get(`height`),i.r),O=e.get([`progress`,`show`])?o.getItemVisual(t,`style`).fill:g,x=f[t],k=S.get(`formatter`);x.attr({z2:m?0:2,style:wm(S,{x:w,y:T,text:EN(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),Pm(x,{normal:S},a,function(e){return EN(e,k)}),p&&Fm(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return EN(o?o.interpolatedValue:a,k)}}),h.add(x)}u.add(h)}),this.group.add(u),this._titleEls=d,this._detailEls=f},t.type=`gauge`,t}(Jb),ON=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`itemStyle`,n}return t.prototype.getInitialData=function(e,t){return SC(this,[`value`])},t.type=`series.gauge`,t.defaultOption={z:2,colorBy:`data`,center:[`50%`,`50%`],legendHoverLink:!0,radius:`75%`,startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,K.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:K.color.axisTick,width:3,type:`solid`}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:K.color.axisTickMinor,width:1,type:`solid`}},axisLabel:{show:!0,distance:15,color:K.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:`60%`,width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:`circle`,offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:K.color.neutral00,borderWidth:0,borderColor:K.color.theme[0]}},title:{show:!0,offsetCenter:[0,`20%`],color:K.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:K.color.transparent,borderWidth:0,borderColor:K.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,`40%`],color:K.color.primary,fontSize:30,fontWeight:`bold`,lineHeight:30,valueAnimation:!1}},t}(nb);function kN(e){e.registerChartView(DN),e.registerSeriesModel(ON)}function AN(e,t,n,r,i,a){e||=0;var o=n[1]-n[0];if(i!=null&&(i=MN(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(t[1]-t[0]);s=MN(s,[0,o]),i=a=MN(s,[i,a]),r=0}t[0]=MN(t[0],n),t[1]=MN(t[1],n);var c=jN(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=MN(t[r],u);var d=jN(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=t[r]+c.sign*i),d=jN(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function jN(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function MN(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var NN=!0,PN=Math.min,FN=Math.max,IN=Math.pow,LN=1e4,RN=6,zN=6,BN=`globalPan`,VN={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},HN={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},UN={brushStyle:{lineWidth:2,stroke:K.color.backgroundTint,fill:K.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},WN=0,GN=function(e){N(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new yf,n._uid=`brushController_`+ WN++,I(CP,function(e,t){this._handlers[t]=R(e,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||GM(t,BN,this._uid),I(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=Gn(P(UN),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;KM(e,BN,this._uid),I(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};I(e,function(e){t[e.panelId]=P(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=L(e,function(e){return Gn(P(UN),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new Xm(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:XN(i,r[t]=o==null?qN(i,KN(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),eP(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ds);function KN(e,t){var n=EP[t.brushType].createCover(e,t);return n.__brushOption=t,YN(n,t),e.group.add(n),n}function qN(e,t){var n=ZN(t);return n.endCreating&&(n.endCreating(e,t),YN(t,t.__brushOption)),t}function JN(e,t){var n=t.__brushOption;ZN(t).updateCoverShape(e,t,n.range,n)}function YN(e,t){var n=t.z;n??=LN,e.traverse(function(e){e.z=n,e.z2=n})}function XN(e,t){ZN(t).updateCommon(e,t),JN(e,t)}function ZN(e){return EP[e.__brushOption.brushType]}function QN(e,t,n){var r=e._panels;if(!r)return NN;var i,a=e._transform;return I(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function $N(e,t){var n=e._panels;if(!n)return NN;var r=t.__brushOption.panelId;return r==null?NN:n[r]}function eP(e){var t=e._covers,n=t.length;return I(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function tP(e,t){var n=L(e._covers,function(e){var t=e.__brushOption,n=P(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function nP(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return IN(i*i+a*a,.5)>RN}function rP(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function iP(e,t,n,r){var i=new yf;return i.add(new il({name:`main`,style:cP(n),silent:!0,draggable:!0,cursor:`move`,drift:nr(pP,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:nr(tP,t,{isEnd:!0})})),I(r,function(n){i.add(new il({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:nr(pP,e,t,i,n),ondragend:nr(tP,t,{isEnd:!0})}))}),i}function aP(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=FN(i,zN),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;sP(e,t,`main`,o,s,m,h),r.transformable&&(sP(e,t,`w`,c,l,a,_),sP(e,t,`e`,f,l,a,_),sP(e,t,`n`,c,l,g,a),sP(e,t,`s`,c,p,g,a),sP(e,t,`nw`,c,l,a,a),sP(e,t,`ne`,f,l,a,a),sP(e,t,`sw`,c,p,a,a),sP(e,t,`se`,f,p,a,a))}function oP(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(cP(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),I([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?dP(e,n[0]):fP(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?HN[a]+`-resize`:null})})}function sP(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(_P(gP(e,t,[[r,i],[r+a,i+o]])))}function cP(e){return Kn({strokeNoScale:!0},e.brushStyle)}function lP(e,t,n,r){var i=[PN(e,n),PN(t,r)],a=[FN(e,n),FN(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function uP(e){return Kp(e.group)}function dP(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[Jp({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],uP(e))]}function fP(e,t){var n=[dP(e,t[0]),dP(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function pP(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=hP(t,i,a);I(r,function(e){var t=VN[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(lP(s[0][0],s[1][0],s[0][1],s[1][1])),XN(t,n),tP(t,{isEnd:!1})}function mP(e,t,n,r){var i=t.__brushOption.range,a=hP(e,n,r);I(i,function(e){e[0]+=a[0],e[1]+=a[1]}),XN(e,t),tP(e,{isEnd:!1})}function hP(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function gP(e,t,n){var r=$N(e,t);return r&&r!==NN?r.clipPath(n,e._transform):P(n)}function _P(e){var t=PN(e[0][0],e[1][0]),n=PN(e[0][1],e[1][1]),r=FN(e[0][0],e[1][0]),i=FN(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function vP(e,t,n){if(!(!e._brushType||TP(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=QN(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===NN||s.panelId===a.panelId)&&EP[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function yP(e){var t=e.event;t.preventDefault&&t.preventDefault()}function bP(e,t,n){return e.childOfName(`main`).contain(t,n)}function xP(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),nP(e)||i){if(a&&!i){o.brushMode===`single`&&eP(e);var c=P(o);c.brushType=SP(c.brushType,a),c.panelId=a===NN?null:a.panelId,i=e._creatingCover=KN(e,c),e._covers.push(i)}if(i){var l=EP[SP(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(gP(e,i,e._track)),r&&(qN(e,i),l.updateCommon(e,i)),JN(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&QN(e,t,n)&&eP(e)&&(s={isEnd:r,removeOnClick:!0});return s}function SP(e,t){return e===`auto`?t.defaultBrushType:e}var CP={mousedown:function(e){if(this._dragging)wP(this,e);else if(!e.target||!e.target.draggable){yP(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=QN(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(vP(this,e,r),this._dragging){yP(e);var i=xP(this,e,r,!1);i&&tP(this,i)}},mouseup:function(e){wP(this,e)}};function wP(e,t){if(e._dragging){yP(t);var n=t.offsetX,r=t.offsetY,i=xP(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&tP(e,i)}}function TP(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var EP={lineX:DP(0),lineY:DP(1),rect:{createCover:function(e,t){function n(e){return e}return iP({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=rP(e);return lP(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){aP(e,t,n,r)},updateCommon:oP,contain:bP},polygon:{createCover:function(e,t){var n=new yf;return n.add(new Jf({name:`main`,style:cP(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Kf({name:`main`,draggable:!0,drift:nr(mP,e,t),ondragend:nr(tP,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:gP(e,t,n)})},updateCommon:oP,contain:bP}};function DP(e){return{createCover:function(t,n){return iP({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=rP(t);return[PN(n[0][e],n[1][e]),FN(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=$N(t,n);if(o!==NN&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),aP(t,n,c,i)},updateCommon:oP,contain:bP}}function OP(e){return e=jP(e),function(t){return Qp(t,e)}}function kP(e,t){return e=jP(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function AP(e,t,n){var r=jP(e);return function(e,i){return r.contain(i[0],i[1])&&!YM(e,t,n)}}function jP(e){return Ei.create(e)}function MP(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||G(e,`text`)))}function NP(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},G(r,`text`)&&(o.text=r.text),G(r,`rich`)&&(o.rich=r.rich),G(r,`textFill`)&&(o.fill=r.textFill),G(r,`textStroke`)&&(o.stroke=r.textStroke),G(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),G(r,`fontSize`)&&(o.fontSize=r.fontSize),G(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),G(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=G(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),G(r,`textPosition`)&&(i.position=r.textPosition),G(r,`textOffset`)&&(i.offset=r.textOffset),G(r,`textRotation`)&&(i.rotation=r.textRotation),G(r,`textDistance`)&&(i.distance=r.textDistance)}return PP(o,e),I(o.rich,function(e){PP(e,e)}),{textConfig:i,textContent:a}}function PP(e,t){t&&(t.font=t.textFont||t.font,G(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),G(t,`textAlign`)&&(e.align=t.textAlign),G(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),G(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),G(t,`textWidth`)&&(e.width=t.textWidth),G(t,`textHeight`)&&(e.height=t.textHeight),G(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),G(t,`textPadding`)&&(e.padding=t.textPadding),G(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),G(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),G(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),G(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),G(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),G(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),G(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}var FP={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},IP=er(FP);Zn(La,function(e,t){return e[t]=1,e},{}),La.join(`, `);var LP=[``,`style`,`shape`,`extra`],RP=Au();function zP(e,t,n,r,i){var a=e+`Animation`,o=bp(e,r,i)||{},s=RP(t).userDuring;return o.duration>0&&(o.during=s?R(YP,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),F(o,n[a]),o}function BP(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=RP(e),l=t.style;c.userDuring=t.during;var u={},d={};if($P(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++){var h=p[m];ZP(`shape`,h,f[m])}else ZP(`shape`,t,d),ZP(`extra`,t,d);if(!a&&s&&(QP(e,t,u),XP(`shape`,e,t,u),XP(`extra`,e,t,u),eF(e,t,l,u)),d.style=l,WP(e,d,o),KP(e,t),s)if(a){var g={};I(LP,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),F(e?g[e]:g,n.enterFrom))});var _=zP(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else GP(e,t,i||0,n,u);VP(e,t),l?e.dirty():e.markRedraw()}function VP(e,t){for(var n=RP(e).leaveToProps,r=0;r<LP.length;r++){var i=LP[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=RP(e).leaveToProps={},i&&(n[i]=n[i]||{}),F(i?n[i]:n,a.leaveTo))}}function HP(e,t,n,r){if(e){var i=e.parent,a=RP(e).leaveToProps;if(a){var o=zP(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function UP(e){return e===`all`}function WP(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function GP(e,t,n,r,i){if(i){var a=zP(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function KP(e,t){G(t,`silent`)&&(e.silent=t.silent),G(t,`ignore`)&&(e.ignore=t.ignore),e instanceof Ls&&G(t,`invisible`)&&(e.invisible=t.invisible),e instanceof Wc&&G(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var qP={},JP={setTransform:function(e,t){return qP.el[e]=t,this},getTransform:function(e){return qP.el[e]},setShape:function(e,t){var n=qP.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=qP.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=qP.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=qP.el.style;if(t)return t[e]},setExtra:function(e,t){var n=qP.el.extra||(qP.el.extra={});return n[e]=t,this},getExtra:function(e){var t=qP.el.extra;if(t)return t[e]}};function YP(){var e=this,t=e.el;if(t){var n=RP(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}qP.el=t,r(JP)}}function XP(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),UP(c))F(o,a);else for(var l=cu(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(UP(s)||qn(s,e)>=0){!o&&(o=r[e]={});for(var p=er(a),u=0;u<p.length;u++){var d=p[u],f=a[d];tF(i[d],f)&&(o[d]=f)}}}}}function ZP(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=er(r),o=0;o<a.length;o++){var s=a[o];i[s]=Xo(r[s])}}function QP(e,t,n){for(var r=t.transition,i=UP(r)?La:cu(r||[]),a=0;a<i.length;a++){var o=i[a];o===`style`||o===`shape`||o===`extra`||(n[o]=e[o])}}function $P(e,t,n){for(var r=0;r<IP.length;r++){var i=IP[r],a=FP[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<La.length;r++){var s=La[r];t[s]!=null&&(n[s]=t[s])}}function eF(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!UP(o)){var c=cu(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(UP(s)||UP(o)||qn(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=er(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function tF(e,t){return Xn(e)?e!==t:e!=null&&isFinite(e)}var nF=Au(),rF=[`percent`,`easing`,`shape`,`style`,`extra`];function iF(e){e.stopAnimation(`keyframe`),e.attr(nF(e))}function aF(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(z(t)){I(t,function(t){aF(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=bp(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=nF(e);I(LP,function(n){if(!(n&&!e[n])){var a;r.sort(function(e,t){return e.percent-t.percent}),I(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=er(c);if(n||(l=Qn(l,function(e){return qn(rF,e)<0})),l.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;I(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing)}})}}}var oF=Au(),sF=P,cF=R,lF=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new yf,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=nr(uF,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}mF(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;if(a){var s=pM(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=oF(e).pointerEl=new kp[i.type](sF(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=oF(e).labelEl=new ll(sF(t.label));e.add(i),fF(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=oF(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=oF(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),fF(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=em(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){BC(e.event)},onmousedown:cF(this._onHandleDragMove,this,0,0),drift:cF(this._onHandleDragMove,this),ondragend:cF(this._onHandleDragEnd,this)}),n.add(r)),mF(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);z(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,qx(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){uF(this._axisPointerModel,!t&&this._moveAnimation,this._handle,pF(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(pF(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(pF(r)),oF(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Jx(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function uF(e,t,n,r){dF(oF(n).lastProp,r)||(oF(n).lastProp=r,t?Sp(n,r,e):(n.stopAnimation(),n.attr(r)))}function dF(e,t){if(H(e)&&H(t)){var n=!0;return I(t,function(t,r){n&&=dF(e[r],t)}),!!n}else return e===t}function fF(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function pF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function mF(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function hF(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function gF(e,t,n,r,i){var a=vF(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=kv(o.get(`padding`)||0),c=o.getFont(),l=zi(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),_F(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:wm(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function _F(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function vF(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:yA(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};I(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),V(o)?a=o.replace(`{value}`,a):B(o)&&(a=o(s))}return a}function yF(e,t,n){var r=ii();return li(r,r,n.rotation),ci(r,r,n.position),qp([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function bF(e,t,n,r,i,a){var o=yj.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),gF(t,r,i,a,{position:yF(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function xF(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function SF(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var CF=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=wF(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=hF(r),d=TF[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}bF(t,e,Bj(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=Bj(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=yF(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=wF(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Math.min(o[1],l[c]),l[c]=Math.max(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(lF);function wF(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var TF={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:xF([t,n[0]],[t,n[1]],EF(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:SF([t-r/2,n[0]],[r,i],EF(e))}}};function EF(e){return e.dim===`x`?0:1}var DF=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:K.color.border,width:1,type:`dashed`},shadowStyle:{color:K.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:K.color.neutral00,padding:[5,7,5,7],backgroundColor:K.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:K.color.accent40,throttle:40}},t}(ey),OF=Au(),kF=I;function AF(e,t,n){if(!jr.node){var r=t.getZr();OF(r).records||(OF(r).records={}),jF(r,t);var i=OF(r).records[e]||(OF(r).records[e]={});i.handler=n}}function jF(e,t){if(OF(e).initialized)return;OF(e).initialized=!0,n(`click`,nr(PF,`click`)),n(`mousemove`,nr(PF,`mousemove`)),n(`globalout`,NF);function n(n,r){e.on(n,function(n){var i=FF(t);kF(OF(e).records,function(e){e&&r(e,n,i.dispatchAction)}),MF(i.pendings,t)})}}function MF(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function NF(e,t,n){e.handler(`leave`,null,n)}function PF(e,t,n,r){t.handler(e,n,r)}function FF(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function IF(e,t){if(!jr.node){var n=t.getZr();(OF(n).records||{})[e]&&(OF(n).records[e]=null)}}var LF=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click`;AF(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){IF(`axisPointer`,t)},t.prototype.dispose=function(e,t){IF(`axisPointer`,t)},t.type=`axisPointer`,t}(GT);function RF(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=ku(a,e);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=u===`x`||u===`radius`?1:0,p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(L(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var zF=Au();function BF(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||R(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){XF(i)&&(i=RF({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=XF(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||XF(i),f={},p={},m={list:[],map:{}},h={showPointer:nr(UF,p),showTooltip:nr(WF,m)};I(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);I(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=JF(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&VF(e,o,h,!1,f)}})});var g={};return I(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&I(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,YF(t),YF(e)))),g[e.key]=a}})}),I(g,function(e,t){VF(u[t],e,h,!0,f)}),GF(p,u,f),KF(m,i,e,o),qF(u,o,n),f}}function VF(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=HF(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&F(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function HF(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return I(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(!(u==null||!isFinite(u))){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),I(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function UF(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function WF(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=gM(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function GF(e,t,n){var r=n.axesInfo=[];I(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function KF(e,t,n,r){if(XF(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function qF(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=zF(r)[i]||{},o=zF(r)[i]={};I(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&I(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];I(a,function(e,t){!o[t]&&c.push(e)}),I(o,function(e,t){!a[t]&&s.push(e)}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function JF(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function YF(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function XF(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function ZF(e){vM.registerAxisPointerClass(`CartesianAxisPointer`,CF),e.registerComponentModel(DF),e.registerComponentView(LF),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=oM(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},BF)}function QF(e){uk(kM),uk(ZF)}function $F(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function eI(e,t){var n;return I(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function tI(e,t,n){var r=F({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(Gn(i,r,!0),Xv(i,r,{ignoreSize:!0}),Qv(n,i),iI(n,i),iI(n,i,`shape`),iI(n,i,`style`),iI(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var nI=[`transition`,`enterFrom`,`leaveTo`],rI=nI.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function iI(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?nI:rI,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function aI(e,t){if(e&&(e.hv=t.hv=[eI(t,[`left`,`right`]),eI(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var oI=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=pu(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];I(o,function(e,t){var n=e.newOption;n&&(s.push(n),$F(e,n),tI(i,t,n),aI(i[t],n))},this),n.elements=Qn(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){I(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(ey),sI={path:null,compoundPath:null,group:yf,image:Xc,text:ll},cI=Au(),lI=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=W()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);I(t,function(t){var o=Su(t.id,null),s=o==null?null:n.get(o),c=Su(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&MP(d,u,!!p,!!f)){var m=NP(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=mI(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=dI(o,l,t.type,n):(b&&(cI(b).isNew=!1),iF(b)),b&&(BP(b,h,e,{isInit:y}),pI(b,t,i,a))}else if(v){fI(s,t,n,e);var x=dI(o,l,t.type,n);x&&(BP(x,h,e,{isInit:!0}),pI(x,t,i,a))}else g===`remove`&&(VP(s,t),fI(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new ll(f))}else v&&S.setTextContent(new ll(f));if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||cI(D).type!==T,E=y?uI(T):D}else v&&(y=!0,E=uI(T));S.setClipPath(E),BP(E,w,e,{isInit:y}),aF(E,w.keyframeAnimation,e)}var O=cI(S);S.setTextConfig(p),O.option=t,hI(S,e,t),cm({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),aF(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=Su(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=cI(d),h=cI(f);m.width=Al(m.option.width,p?a:h.width)||0,m.height=Al(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=Su(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=cI(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=Jv(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!cI(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(UP(y)||qn(y,S)>=0)?b[S]=C:d[S]=C}Sp(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){fI(n,cI(n).option,t,e._lastGraphicModel)}),this._elMap=W()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(GT);function uI(e){var t=new(G(sI,e)?sI[e]:Lp(e))({});return cI(t).type=e,t}function dI(e,t,n,r){var i=uI(n);return t.add(i),r.set(e,i),cI(i).id=e,cI(i).isNew=!0,i}function fI(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){fI(e,t,n,r)}),HP(e,t,r),n.removeKey(cI(e).id))}function pI(e,t,n,r){e.isGroup||I([[`cursor`,Ls.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];G(t,r)?e[r]=U(t[r],n[1]):e[r]??(e[r]=n[1])}),I(er(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=B(r)?r:null}}),G(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function mI(e){return e=F({},e),I([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(Rv),function(t){delete e[t]}),e}function hI(e,t,n){var r=Vu(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Vu(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function gI(e){e.registerComponentModel(oI),e.registerComponentView(lI),e.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var _I=[`x`,`y`,`radius`,`angle`,`single`],vI=[`cartesian2d`,`polar`,`singleAxis`];function yI(e){return qn(vI,e.get(`coordinateSystem`))>=0}function bI(e){return e+`Axis`}function xI(e,t){var n=W(),r=[],i=W();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function SI(e){var t=e.ecModel,n={infoList:[],infoMap:W()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(bI(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}var CI=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),wI=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=TI(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=TI(e);Gn(this.option,e,!0),Gn(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;I([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=W();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return I(_I,function(n){var r=this.getReferringComponents(bI(n),Fu);if(r.specified){t=!0;var i=new CI;I(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new CI;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,Pu).models[0];o&&I(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,Pu).models[0]&&a.add(e.componentIndex)})}}}r&&I(_I,function(t){if(r){var i=n.findComponents({mainType:bI(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new CI;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);I([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(bI(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){I(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(bI(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;I([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;I([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,t).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(ey);function TI(e){var t={};return I([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var EI=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(wI),DI=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(GT),OI=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(DI),kI=I,AI=Pl,jI=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(yI(t)){var n=bI(this._dimName),r=t.getReferringComponents(n,Pu).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return P(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),i=[0,100],a=[],o=[],s;kI([`start`,`end`],function(c,l){var u=e[c],d=e[c+`Value`];r[l]===`percent`?(u??=i[l],d=n.parse(kl(u,i,t))):(s=!0,d=d==null?t[l]:n.parse(d),u=kl(d,t,i)),o[l]=d==null||isNaN(d)?t[l]:d,a[l]=u==null||isNaN(u)?i[l]:u}),AI(o),AI(a);var c=this._minMaxSpan;s?l(o,a,t,i,!1):l(a,o,i,t,!0);function l(e,t,r,i,a){var o=a?`Span`:`ValueSpan`;AN(0,e,r,`all`,c[`min`+o],c[`max`+o]);for(var s=0;s<2;s++)t[s]=kl(e[s],r,i,!0),a&&(t[s]=n.parse(t[s]))}return{valueWindow:o,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=MI(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._valueWindow;if(i===`none`)return;kI(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=L(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else kI(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});kI(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;kI([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=kl(i,[0,100],n,!0)-n[0]):i=kl(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Ll(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax(`min`,+n[0].toFixed(r)),t[1]!==100&&i.setDeterminedMinMax(`max`,+n[1].toFixed(r)),i.freeze()}},e}();function MI(e,t,n){var r=[1/0,-1/0];kI(n,function(e){CA(r,e.getData(),t)});var i=e.getAxisModel(),a=dA(i.axis.scale,i,r).calculate();return[a.min,a.max]}var NI={getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(bI(r),i),n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new jI(t,r,a,e),n.push(i.__dzAxisProxy))});var r=W();return I(n,function(e){I(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};function PI(e){e.registerAction(`dataZoom`,function(e,t){I(xI(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var FI=!1;function II(e){FI||(FI=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,NI),PI(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`}))}function LI(e){e.registerComponentModel(EI),e.registerComponentView(OI),II(e)}var RI=function(){function e(){}return e}(),zI={};function BI(e,t){zI[e]=t}function VI(e){return zI[e]}var HI=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;I(this.option.feature,function(e,n){var r=VI(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),Gn(e,r.defaultOption))})},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:K.color.border,borderRadius:0,borderWidth:0,padding:K.size.m,itemSize:15,itemGap:K.size.s,showTitle:!0,iconStyle:{borderColor:K.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:K.color.accent50}},tooltip:{show:!1,position:`bottom`}},t}(ey);function UI(e,t){var n=kv(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new il({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var WI=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||={},l=[];I(s,function(e,t){l.push(t)}),new Xm(this._featureNames||[],l).add(u).update(u).remove(nr(u,null)).execute(),this._featureNames=l;function u(i,a){var o=l[i],u=l[a],f=s[o],p=new qm(f,e,e.ecModel),m;if(r&&r.newTitle!=null&&r.featureName===o&&(f.title=r.newTitle),o&&!u){if(GI(o))m={onclick:p.option.onclick,featureName:o};else{var h=VI(o);if(!h)return;m=new h}c[o]=m}else if(m=c[u],!m)return;m.uid=p_(`toolbox-feature`),m.model=p,m.ecModel=t,m.api=n;var g=m instanceof RI;if(!o&&u){g&&m.dispose&&m.dispose(t,n);return}if(!p.get(`show`)||g&&m.unusable){g&&m.remove&&m.remove(t,n);return}d(p,m,o),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?bd:xd)(r[e])},m instanceof RI&&m.render&&m.render(p,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof RI&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;V(d)?(p={},p[c]=d):p=d,V(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};I(p,function(c,d){var f=em(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new ll({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:Mm({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),cm({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||K.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?bd:xd)(f),i.add(f),f.on(`click`,R(s.onclick,s,t,n,d)),h[d]=f})}var f=qv(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=Gv(p,f,m);Vv(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),Jv(i,p,f,m),i.add(UI(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!B(c)&&t){var l=c.style||={},u=zi(t,ll.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){I(this._features,function(e){e instanceof RI&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){I(this._features,function(n){n instanceof RI&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){I(this._features,function(n){n instanceof RI&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(GT);function GI(e){return e.indexOf(`my`)===0}var KI=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||K.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=jr.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(b&&b[0]||``)+`" /></body>`,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:K.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(RI),qI=`__ec_magicType_stack__`,JI=[[`line`,`bar`],[`stack`]],YI=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return I(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(XI[n]){var a={series:[]};I(JI,function(e){qn(e,n)>=0&&I(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=XI[n](t,i,e,r);o&&(Kn(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,Pu).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=Gn({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(RI),XI={line:function(e,t,n,r){if(e===`bar`)return Gn({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return Gn({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===qI;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),Gn({id:t,stack:i?``:qI},r.get([`option`,`stack`])||{},!0)}};QO({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var ZI=Array(60).join(`-`),QI=` `;function $I(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=a.dim+`_`+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function eL(e){var t=[];return I(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(L(e.series,function(e){return e.name})),o=[r.model.getCategories()];I(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(QI)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(QI))}t.push(s.join(`
|
||
`))}),t.join(`
|
||
|
||
`+ZI+`
|
||
|
||
`)}function tL(e){return L(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+QI:``)+r.join(QI))}),n.join(`
|
||
`)}).join(`
|
||
|
||
`+ZI+`
|
||
|
||
`)}function nL(e){var t=$I(e);return{value:Qn([eL(t.seriesGroupByCategoryAxis),tL(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
|
||
|
||
`+ZI+`
|
||
|
||
`),meta:t.meta}}function rL(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function iL(e){if(e.slice(0,e.indexOf(`
|
||
`)).indexOf(QI)>=0)return!0}var aL=RegExp(`[`+QI+`]+`,`g`);function oL(e){for(var t=e.split(/\n+/g),n=rL(t.shift()).split(aL),r=[],i=L(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=rL(t[a]).split(aL);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function sL(e){for(var t=e.split(/\n+/g),n=rL(t.shift()),r=[],i=0;i<t.length;i++){var a=rL(t[i]);if(a){var o=a.split(aL),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function cL(e,t){var n=e.split(RegExp(`
|
||
*`+ZI+`
|
||
*`,`g`)),r={series:[]};return I(n,function(e,n){if(iL(e)){var i=oL(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=sL(e);r.series.push(i)}}),r}var lL=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||K.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=nL(e);if(B(l)){var f=l(t.getOption());V(f)?s.innerHTML=f:sr(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}RC(_,`click`,b),RC(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){b();return}var e;try{e=B(u)?u(s,t.getOption()):cL(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:K.color.background,textColor:K.color.primary,textareaColor:K.color.background,textareaBorderColor:K.color.border,buttonColor:K.color.accent50,buttonTextColor:K.color.neutral00}},t}(RI);function uL(e,t){return L(e,function(e,n){var r=t&&t[n];if(H(r)&&!z(r)){H(e)&&!z(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=Kn(e,r),i&&delete e.name,e}else return e})}QO({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];I(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(F({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:uL(e.data,i)})}}),t.mergeOption(Kn({series:n},e.newOption))});var dL=I,fL=Au();function pL(e,t){var n=_L(e);dL(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function mL(e){var t=_L(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return dL(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function hL(e){fL(e).snapshots=null}function gL(e){return _L(e).length}function _L(e){var t=fL(e);return t.snapshots||=[{}],t.snapshots}var vL=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){hL(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(RI);QO({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var yL=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],bL=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=SL(t,e);I(CL,function(e,t){(!n||!n.include||qn(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=EL[e.brushType](0,n,t);e.__rangeOffset={offset:OL[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){I(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&I(r.coordSyses,function(r){n(e,EL[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){I(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=EL[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?OL[e.brushType](r.values,i.offset,AL(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return L(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:OP(r),isTargetByCursor:AP(r,e,n.coordSysModel),getLinearBrushOtherExtent:kP(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&qn(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=SL(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<wL.length;s++)if(wL[s](r,a))return a}return!0},e}();function xL(e){return e[0]>e[1]&&e.reverse(),e}function SL(e,t){return Mu(e,t,{includeMainTypes:yL})}var CL={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=W(),o={},s={};!n&&!r&&!i||(I(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),I(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),I(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];I(i.getCartesians(),function(e,t){(qn(n,e.getAxis(`x`).model)>=0||qn(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:TL.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){I(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:TL.geo})})}},wL=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],TL={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Kp(e)),t}},EL={lineX:nr(DL,0),lineY:nr(DL,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[xL([i[0],a[0]]),xL([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:L(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function DL(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=xL(L([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var OL={lineX:nr(kL,0),lineY:nr(kL,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return L(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function kL(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function AL(e,t){var n=jL(e),r=jL(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function jL(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var ML=I,NL=Tu(`toolbox-dataZoom_`),PL=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new GN(n.getZr()),this._brushController.on(`brush`,R(this._onBrush,this)).mount()),RL(e,t,this,r,n),LL(e,t)},t.prototype.onclick=function(e,t,n){FL[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new bL(IL(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=e.brushType;r===`rect`?(i(`x`,n,t[0]),i(`y`,n,t[1])):i({lineX:`x`,lineY:`y`}[r],n,t)}}),pL(r,n),this._dispatchZoomAction(n);function i(e,t,i){var o=t.getAxis(e),s=o.model,c=a(e,s,r),l=c.findRepresentativeAxisProxy(s).getMinMaxSpan();(l.minValueSpan!=null||l.maxValueSpan!=null)&&(i=AN(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),c&&(n[c.id]={dataZoomId:c.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];ML(e,function(e,n){t.push(P(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:K.color.backgroundTint}}},t}(RI),FL={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(mL(this.ecModel))}};function IL(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function LL(e,t){e.setIconStatus(`back`,gL(t)>1?`emphasis`:`normal`)}function RL(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`?r.dataZoomSelectActive:!1),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new bL(IL(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}Qw(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=Mu(e,IL(r));ML(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),ML(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:NL+t+a};o[n]=a,i.push(o)}return i});function zL(e){e.registerComponentModel(HI),e.registerComponentView(WI),BI(`saveAsImage`,KI),BI(`magicType`,YI),BI(`dataView`,lL),BI(`dataZoom`,PL),BI(`restore`,vL),uk(LI)}var BL=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:K.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:K.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:K.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:K.color.tertiary,fontSize:14}},t}(ey);function VL(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function HL(e){if(jr.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var UL=HL([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),WL=HL([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function GL(e,t){if(!e)return t;t=Ov(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function KL(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var qL=GL(WL,`transition`),JL=GL(UL,`transform`),YL=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(jr.transform3dSupported?`will-change:transform;`:``);function XL(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function ZL(e,t,n){if(!V(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Fv(t);var a=XL(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=JL+`:`,l;qn([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function QL(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(jr.transformSupported?``+JL+i:`,left`+i+`,top`+i)),qL+`:`+a}function $L(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!jr.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=jr.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+JL+`:`+o+`;`:[[`top`,0],[`left`,0],[UL,o]]}function eR(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=U(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),I([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function tR(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=Xy(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(QL(a,n,r)),o&&i.push(`background-color:`+o),I([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Ov(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(eR(d)),f!=null&&i.push(`padding:`+kv(f).join(`px `)+`px`),i.join(`;`)+`;`}function nR(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&S_(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var rR=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,jr.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(V(i)?document.querySelector(i):sr(i)?i:B(i)&&i(e.getDom()));nR(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;IC(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=KL(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=YL+tR(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+$L(i[0],i[1],!0)+(`border-color:`+Fv(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(V(i)&&n.get(`trigger`)===`item`&&!VL(n)&&(o=ZL(n,r,i)),V(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,z(e)||(e=[e]);for(var s=0;s<e.length;s++)sr(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(nR(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;I($L(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,jr.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;C_(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),iR=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),sR(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;H(e)&&iu(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new ll({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:Xy(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),I([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),I([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=oR(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;sR(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=aR(i.borderWidth||0),o=oR(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function aR(e){return Math.max(0,e)}function oR(e){var t=aR(e.shadowBlur||0),n=aR(e.shadowOffsetX||0),r=aR(e.shadowOffsetY||0);return{left:aR(t-n),right:aR(t+n),top:aR(t-r),bottom:aR(t+r)}}function sR(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var cR=new il({shape:{x:-1,y:-1,width:2,height:2}}),lR=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(jr.node||!t.getDom())){var n=e.getComponent(`tooltip`);this._tooltipContent=(this._renderMode=zu(n.get(`renderMode`)))===`richText`?new iR(t):new rR(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(jr.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?qx(this,`_updatePosition`,50,`fixRate`):Jx(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);AF(`itemTooltip`,this._api,R(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||jr.node||!n.getDom())){var i=dR(r,n);this._ticket=``;var a=r.dataByCoordSys,o=gR(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=cR;c.x=r.x,c.y=r.y,c.update(),Vu(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=RF(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(dR(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&uR([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Vu(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;AE(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Vu(e).dataIndex==null?Vu(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=R(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=uR([t.tooltipOption],r),o=this._renderMode,s=[],c=Iy(`section`,{blocks:[],noHeader:!0}),l=[],u=new Zy;I(e,function(e){I(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=vF(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Iy(`section`,{header:a,noHeader:!_r(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),I(e.seriesDataIndices,function(c){var f=n.getSeriesByIndex(c.seriesIndex),p=c.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=yA(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,Fv(m.color),o);var h=ly(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=uR([f],r).get(`valueFormatter`);d.blocks.push(_?F({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=Hy(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
||
|
||
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Vu(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=uR([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new Zy;h.marker=g.makeTooltipMarker(`item`,Fv(h.color),d);var _=ly(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Hy(y?F({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Vu(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(V(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=P(a),a.content=A_(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=uR(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new Zy;this._showOrMove(d,function(){var n=P(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(V(u)){var p=e.ecModel.get(`useUTC`),m=z(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=lv(m.axisValue,d,p)),d=Nv(d,n,!0)}else if(B(u)){var g=R(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||z(t))return{color:r||i};if(!z(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),B(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),z(t))n=Al(t[0],s),r=Al(t[1],c);else if(H(t)){var p=t;p.width=l[0],p.height=l[1];var m=Gv(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(V(t)&&o){var h=mR(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=fR(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=hR(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=hR(d)?l[1]/2:d===`bottom`?l[1]:0),VL(e)){var h=pR(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&I(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&I(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&I(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&I(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){jr.node||!t.getDom()||(Jx(this,`_updatePosition`),this._tooltipContent.dispose(),IF(`itemTooltip`,t))},t.type=`tooltip`,t}(GT);function uR(e,t,n){var r=t.ecModel,i;n?(i=new qm(n,r,r),i=new qm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof qm&&(o=o.get(`tooltip`,!0)),V(o)&&(o={formatter:o}),o&&(i=new qm(o,i,r)))}return i}function dR(e,t){return e.dispatchAction||R(t.dispatchAction,t)}function fR(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function pR(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function mR(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function hR(e){return e===`center`||e===`middle`}function gR(e,t,n){var r=Nu(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Iu(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Vu(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function _R(e){uk(ZF),e.registerComponentModel(BL),e.registerComponentView(lR),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Or),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Or)}var vR=I;function yR(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function bR(e,t,n){var r={};return vR(t,function(t){var a=r[t]=i();vR(e[t],function(e,r){if(lN.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new lN(i),r===`opacity`&&(i=P(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new lN(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function xR(e,t,n){var r;I(n,function(e){t.hasOwnProperty(e)&&yR(t[e])&&(r=!0)}),r&&I(n,function(n){t.hasOwnProperty(n)&&yR(t[n])?e[n]=P(t[n]):delete e[n]})}function SR(e,t,n,r){var i={};return I(e,function(e){i[e]=lN.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return DE(a,l,e)}function c(e,t){kE(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var CR=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:K.size.m,backgroundColor:K.color.transparent,borderColor:K.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:K.color.primary},subtextStyle:{fontSize:12,color:K.color.quaternary}},t}(ey),wR=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=U(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new ll({style:wm(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new ll({style:wm(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){Iv(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Iv(p,`_`+e.get(`subtarget`))}),Vu(c).eventData=Vu(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=Gv(g,qv(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new il({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(GT);function TR(e){e.registerComponentModel(CR),e.registerComponentView(wR)}var ER=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},DR=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),z(t)&&I(t,function(e,r){V(e)&&(e={type:e}),t[r]=Gn(e,ER(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&Cu(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=W();this._data=Qn(L(r,function(e){return(V(e)||ir(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new qm(e,this,this.ecModel))},this),function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;I(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;I(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;I(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&qn(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:K.size.m,align:`auto`,backgroundColor:K.color.transparent,borderColor:K.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:K.color.disabled,inactiveBorderColor:K.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:K.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:K.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:K.color.tertiary,borderWidth:1,borderColor:K.color.border},emphasis:{selectorLabel:{show:!0,color:K.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(ey),OR=nr,kR=I,AR=yf,jR=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new AR),this.group.add(this._selectorGroup=new AR),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=qv(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Gv(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Gv(Kn({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=UI(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=W(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),kR(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
|
||
`)){var p=new AR;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,OR(PR,f,null,r,d)).on(`mouseover`,OR(IR,m.name,null,r,d)).on(`mouseout`,OR(LR,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Vu(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Oo(h.fill);_&&_[3]===0&&(_[3]=.2,h=F(F({},h),{fill:Io(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,OR(PR,null,f,r,d)).on(`mouseover`,OR(IR,null,f,r,d)).on(`mouseout`,OR(LR,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Vu(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Vu(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();kR(e,function(e){var r=e.type,i=new ll({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Sm(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),Ld(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=MR(c,r,o,s,d,m,u),y=new AR,b=r.getModel(`textStyle`);if(B(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(NR({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;V(w)&&w?T=w.replace(`{name}`,t??``):B(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new ll({style:wm(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new il({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&cm({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),Ld(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Vv(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Vv(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(GT);function MR(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),kR(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:bD(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function NR(e){var t=e.icon||`roundRect`,n=_b(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=K.color.neutral00,n.style.lineWidth=2),n}function PR(e,t,n,r){LR(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),IR(e,t,n,r)}function FR(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function IR(e,t,n,r){FR(n)||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function LR(e,t,n,r){FR(n)||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function RR(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function zR(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),BR(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){I(i,function(t,n){e[t?`select`:`unSelect`](n)}),BR(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function BR(e,t){var n=t||{};return I(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
|
||
`||r===``)){var i=e.isSelected(r);G(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function VR(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,nr(zR,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,nr(zR,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,nr(zR,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,nr(zR,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,nr(zR,`unSelect`))}function HR(e){e.registerComponentModel(DR),e.registerComponentView(jR),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,RR),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),VR(e)}var UR=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Zv(t);e.prototype.init.call(this,t,n,r),WR(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),WR(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=g_(DR.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:K.color.accent50,pageIconInactiveColor:K.color.accent10,pageIconSize:15,pageTextStyle:{color:K.color.tertiary},animationDurationUpdate:800}),t}(DR);function WR(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,Xv(t,n,{type:`box`,ignoreSize:!!i})}var GR=yf,KR=[`width`,`height`],qR=[`x`,`y`],JR=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new GR),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new GR)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=z(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new ll({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=em(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:R(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=KR[s],l=qR[s],u=KR[1-s],d=qR[1-s];i&&Vv(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=P(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;Vv(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),Vv(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=U(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new il({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Sp(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;I([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,V(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=KR[i],o=qR[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=u?1:0,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(jR);function YR(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function XR(e){uk(HR),e.registerComponentModel(UR),e.registerComponentView(JR),YR(e)}function ZR(e){uk(HR),uk(XR)}var QR=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=g_(wI.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(wI),$R=Au();function ez(e,t,n){$R(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function tz(e,t){for(var n=$R(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||nz(n,o))}}}function nz(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function rz(e,t){var n={model:t,containsPoint:nr(az,t),dispatchAction:nr(iz,e),dataZoomInfoMap:null,controller:null},r=n.controller=new XM(e.getZr());return I([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function iz(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function az(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function oz(e,t,n){var r,i=`type_`,a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each(function(e){var t=e.model,n=t.get(`disabled`,!0)?!1:t.get(`zoomLock`,!0)?`move`:!0;a[i+n]>a[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function sz(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=$R(t),r=n.coordSysRecordMap||=W();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){I(SI(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,rz(t,n.model));(a.dataZoomInfoMap||=W()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){nz(r,e);return}var s=oz(a,e,t);n.enable(s.controlType,s.opt),qx(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var cz=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),ez(r,t,{pan:R(lz.pan,this),zoom:R(lz.zoom,this),scrollMove:R(lz.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){tz(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(DI),lz={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=dz[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(AN(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:uz(function(e,t,n,r,i,a){var o=dz[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:uz(function(e,t,n,r,i,a){return dz[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function uz(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(AN(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var dz={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function fz(e){II(e),e.registerComponentModel(QR),e.registerComponentView(cz),sz(e)}var pz=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=g_(wI.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:K.color.accent10,borderRadius:0,backgroundColor:K.color.transparent,dataBackground:{lineStyle:{color:K.color.accent30,width:.5},areaStyle:{color:K.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:K.color.accent40,width:.5},areaStyle:{color:K.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:K.color.neutral00,borderColor:K.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:K.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:K.color.tertiary},brushSelect:!0,brushStyle:{color:K.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:K.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(wI),mz=il,hz=1,gz=30,_z=7,vz=`horizontal`,yz=`vertical`,bz=5,xz=[`line`,`bar`,`candlestick`,`scatter`],Sz={easing:`cubicOut`,duration:100,delay:0},Cz=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=R(this._onBrush,this),this._onBrushEnd=R(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),qx(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Jx(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new yf;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?_z:0,r=qv(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===vz?{right:r.width-i.x-i.width,top:r.height-gz-a-n,width:i.width,height:gz}:{right:a,top:i.y,width:gz,height:i.height},s=Zv(e.option);I([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=Gv(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===yz&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===vz&&!i?{scaleY:o?1:-1,scaleX:1}:n===vz&&i?{scaleY:o?1:-1,scaleX:-1}:n===yz&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new mz({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new mz({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:R(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:kl(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new yf,r=new Kf({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new Jf({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){I(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&qn(xz,e.get(`type`))<0)){var o=r.getComponent(bI(i),a).axis,s=wz(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new mz({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new mz({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:hz,fill:K.color.transparent}})),I([0,1],function(t){var a=o.get(`handleIcon`);!mb[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=_b(a,-1,0,2,2,null,!0);s.attr({cursor:Tz(this._orient),draggable:!0,drift:R(this._onDragMove,this,t),ondragend:R(this._onDragEnd,this),onmouseover:R(this._showDataInfo,this,!0),onmouseout:R(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect();this._handleHeight=Al(o.get(`handleSize`),this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),Ld(s);var l=o.get(`handleColor`);l!=null&&(s.style.fill=l),i.add(n[t]=s);var u=o.getModel(`textStyle`),d=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new ll({silent:!0,invisible:!d,style:wm(u,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:u.getTextColor(),font:u.getFont()}),z2:10}))},this);var d=u;if(l){var f=Al(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new il({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=_b(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,K.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new il({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`default`,drift:R(this._onDragMove,this,`all`),ondragstart:R(this._showDataInfo,this,!0),ondragend:R(this._onDragEnd,this),onmouseover:R(this._showDataInfo,this,!0),onmouseout:R(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[kl(e[0],[0,100],t,!0),kl(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];AN(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:kl(a.minSpan,o,i,!0),a.maxSpan==null?null:kl(a.maxSpan,o,i,!0));var s=this._range,c=this._range=Pl([kl(r[0],i,o,!0),kl(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Pl(n.slice()),i=this._size;I([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new il,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,c=this._range,l=e?o.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var u=Pl(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(e){var t=Kp(n.handles[e].parent,this.group),o=Jp(e===0?`right`:`left`,t),s=this._handleWidth/2+bz,c=qp([u[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===vz?`middle`:o,align:i===vz?o:`center`,text:a[e]})}},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get(`labelFormatter`),i=n.get(`labelPrecision`);(i==null||i===`auto`)&&(i=t.getPixelPrecision());var a=e==null||isNaN(e)?``:t.type===`category`||t.type===`time`?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return B(r)?r(e,a):V(r)?r.replace(`{value}`,a):a},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,BC(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=qp([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new fi(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();AN(0,a,r,0,o.minSpan==null?null:kl(o.minSpan,i,r,!0),o.maxSpan==null?null:kl(o.maxSpan,i,r,!0)),this._range=Pl([kl(a[0],r,i,!0),kl(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(BC(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new mz({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Sz:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=SI(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(DI);function wz(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function Tz(e){return e===`vertical`?`ns-resize`:`ew-resize`}function Ez(e){e.registerComponentModel(pz),e.registerComponentView(Cz),II(e)}function Dz(e){uk(fz),uk(Ez)}var Oz={get:function(e,t,n){var r=P((kz[e]||{})[t]);return n&&z(r)?r[r.length-1]:r}},kz={color:{active:[`#006edd`,`#e0ffff`],inactive:[K.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},Az=lN.mapVisual,jz=lN.eachVisual,Mz=z,Nz=I,Pz=Pl,Fz=kl,Iz=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&xR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=R(e,this),this.controllerVisuals=bR(this.option.controller,t,e),this.targetVisuals=bR(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,t=this.option.seriesIndex;t==null&&e==null&&(t=`all`);var n=Iu(this.ecModel,`series`,{index:t,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return L(n,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){I(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],z(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(V(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(B(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option;this._dataExtent=Pz([e.min,e.max])},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(t!=null)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};Gn(r,n),Gn(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){Mz(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},Nz(r,function(e,t){if(lN.isValidType(t)){var n=Oz.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;Nz(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&P(t)||(a?i:[i]),c.symbolSize??=n&&P(n)||(a?s[0]:[s[0],s[0]]),c.symbol=Az(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;jz(l,function(e){e>u&&(u=e)}),c.symbolSize=Az(l,function(e){return Fz(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:K.color.transparent,borderColor:K.color.borderTint,contentColor:K.color.theme[0],inactiveColor:K.color.disabled,borderWidth:0,padding:K.size.m,textGap:10,precision:0,textStyle:{color:K.color.secondary}},t}(ey),Lz=[20,140],Rz=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Lz[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Lz[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):z(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),I(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Pl((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent(),r=U(this.option.unboundedRange,!0);return(r&&t[0]<=n[0]||t[0]<=e)&&(r&&t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=zz(this,`outOfRange`,this.getExtent()),n=zz(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=g_(Iz.defaultOption,{align:`auto`,calculable:!1,hoverLink:!0,realtime:!0,handleIcon:`path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z`,handleSize:`120%`,handleStyle:{borderColor:K.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:K.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:K.color.shadow}}),t}(Iz);function zz(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var Bz=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=kv(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new il({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return I(lN.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),lN.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=qv(t,n).refContainer;Jv(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(GT),Vz=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function Hz(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=r.orient===`horizontal`?1:0,s=Vz[o],c=[0,null,10],l={},u=0;u<3;u++)l[Vz[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=Gv(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function Uz(e,t){return I(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}var Wz=kl,Gz=I,Kz=Math.min,qz=Math.max,Jz=12,Yz=6,Xz=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=R(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=R(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new ll({style:wm(d,{x:c[0],y:c[1],verticalAlign:d.get(`verticalAlign`)||(u===`horizontal`?`middle`:l),align:d.get(`align`)||(u===`horizontal`?l:`center`),text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=Hz(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new yf;s.add(c),c.add(n.outOfRange=Zz()),c.add(n.inRange=Zz(null,a?eB(this._orient):null,R(this._dragHandle,this,`all`,!1),R(this._dragHandle,this,`all`,!0))),c.setClipPath(new il({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=qz(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=R(this._dragHandle,this,n,!1),s=R(this._dragHandle,this,n,!0),c=Ui(e.get(`handleSize`),r[0]),l=_b(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=eB(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){BC(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),Wd(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new ll({cursor:u,draggable:!0,drift:o,onmousemove:function(e){BC(e.event)},ondragend:s,style:wm(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=Ui(e.get(`indicatorSize`),n[0]),o=_b(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof Xc){var c=o.style;o.useStyle(F({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new ll({silent:!0,invisible:!0,style:wm(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:Yz)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():$z(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[Wz(t[0],n,r,!0),Wz(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];AN(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[Wz(r[0],i,a,!0),Wz(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new op(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new yf(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);Gz([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=Wz(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=qp(n.handleLabelPoints[l],Kp(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=Wz(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=qp(c.indicatorLabelPoint,Kp(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=Kz(qz(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=Kz(qz(i[0],e),i[1]);var o=Qz(n,a,i),s=[e-o,e+o],c=Wz(e,i,a,!0),l=[Wz(s[0],i,a,!0),Wz(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||$z(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=Ou(u,d);this._dispatchHighDown(`downplay`,Uz(f[0],n)),this._dispatchHighDown(`highlight`,Uz(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(AE(e.target,function(e){var n=Vu(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,Uz(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=Kp(t,r?null:this.group);return z(e)?qp(e,i,n):Jp(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}(Bz);function Zz(e,t,n,r){return new Kf({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){BC(e.event)},ondragend:r})}function Qz(e,t,n){var r=Jz/2,i=e.get(`hoverLinkDataSize`);return i&&(r=Wz(i,t,n,!0)/2),r}function $z(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function eB(e){return e===`vertical`?`ns-resize`:`ew-resize`}var tB={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},nB=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},rB=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(SR(t.stateList,t.targetVisuals,R(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(R(iB,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function iB(e,t,n,r){for(var i=t.targetVisuals[r],a=lN.prepareVisualTypes(i),o={color:OE(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}var aB=I;function oB(e){var t=e&&e.visualMap;z(t)||(t=t?[t]:[]),aB(t,function(e){if(e){sB(e,`splitList`)&&!sB(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&z(t)&&aB(t,function(e){H(e)&&(sB(e,`start`)&&!sB(e,`min`)&&(e.min=e.start),sB(e,`end`)&&!sB(e,`max`)&&(e.max=e.end))})}})}function sB(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var cB=!1;function lB(e){cB||(cB=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(tB,nB),I(rB,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(oB))}function uB(e){e.registerComponentModel(Rz),e.registerComponentView(Xz),lB(e)}var dB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],fB[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=P(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=L(this._pieceList,function(e){return e=P(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=lN.listVisualTypes(),i=this.isCategory();I(t.pieces,function(e){I(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),I(n,function(e,n){var r=!1;I(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&I(this.stateList,function(e){(t[e]||(t[e]={}))[n]=Oz.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,I(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;I(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=P(e)},t.prototype.getValueState=function(e){var t=lN.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){lN.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return I(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=g_(Iz.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(Iz),fB={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),ql(e),I(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;I(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),pB(t,e)},pieces:function(e){var t=this.option;I(t.pieces,function(t,n){H(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=lN.retrieveVisuals(t),e.push(r)},this),pB(t,e),ql(e),I(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function pB(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var mB=function(e){N(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=fr(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),I(o.viewPieceList,function(o){var s=o.piece,u=new yf;u.onclick=R(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new ll({style:wm(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:U(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Vv(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:Uz(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return Hz(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new yf,o=this.visualMapModel.textStyleModel;a.add(new ll({style:wm(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=L(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=_b(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=P(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,I(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(Bz);function hB(e){e.registerComponentModel(dB),e.registerComponentView(mB),lB(e)}function gB(e){uk(uB),uk(hB)}var _B={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},vB=function(){function e(e){(this._condVal=V(e)?new RegExp(e):ur(e)?e:null)??iu(``)}return e.prototype.evaluate=function(e){var t=typeof e;return V(t)?this._condVal.test(e):ir(t)?this._condVal.test(e+``):!1},e}(),yB=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),bB=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),xB=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),SB=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),CB=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function wB(e,t){if(e===!0||e===!1){var n=new yB;return n.value=e,n}return OB(e)||iu(``),e.and?TB(`and`,e,t):e.or?TB(`or`,e,t):e.not?EB(e,t):DB(e,t)}function TB(e,t,n){var r=t[e],i=``;z(r)||iu(i),r.length||iu(i);var a=e===`and`?new bB:new xB;return a.children=L(r,function(e){return wB(e,n)}),a.children.length||iu(i),a}function EB(e,t){var n=e.not,r=``;OB(n)||iu(r);var i=new SB;return i.child=wB(n,t),i.child||iu(r),i}function DB(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=er(e),o=e.parser,s=o?Qh(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=G(_B,l)?_B[l]:l,d=e[l],f=s?s(d):d,p=rg(u,f)||u===`reg`&&new vB(f);p||iu(n),i.push(p)}}i.length||iu(n);var m=new CB;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function OB(e){return H(e)&&!Xn(e)}var kB=function(){function e(e,t){this._cond=wB(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function AB(e,t){return new kB(e,t)}var jB={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=AB(e.config,{valueGetterAttrMap:W({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;G(e,`dimension`)||iu(n);var i=t.getDimensionInfo(r);return i||iu(n),{dimIdx:i.index}},getValue:function(e){return t.retrieveValueFromItem(n,e.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)n=t.getRawDataItem(a),r.evaluate()&&i.push(n);return{data:i}}},MB={type:`echarts:sort`,transform:function(e){var t=e.upstream,n=e.config,r=``,i=cu(n);i.length||iu(r);var a=[];I(i,function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;n??iu(r),i!==`asc`&&i!==`desc`&&iu(r),s&&s!==`min`&&s!==`max`&&iu(``),i!==`asc`&&i!==`desc`&&iu(``);var c=t.getDimensionInfo(n);c||iu(r);var l=o?Qh(o):null;o&&!l&&iu(r),a.push({dimIdx:c.index,parser:l,comparator:new tg(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&iu(r);for(var s=[],c=0,l=t.count();c<l;c++)s.push(t.getRawDataItem(c));return s.sort(function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var c=i.comparator.evaluate(o,s);if(c!==0)return c}return 0}),{data:s}}};function NB(e){e.registerTransform(jB),e.registerTransform(MB)}var PB=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new wy(this),Ty(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Ty(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:ih},t}(ey),FB=function(e){N(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(GT);function IB(e){e.registerComponentModel(PB),e.registerComponentView(FB)}function LB(e,t,n){var r=An.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}var RB=function(e){N(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var a;r||=ps,typeof t==`string`?a=LB(t,n,r):H(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Dr(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=LB(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new Ei(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new Ei(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new Ei(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new Ei(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=this.__startIndex;l<this.__endIndex;++l){var u=e[l];if(u){var d=u.shouldBePainted(n,r,!0,!0),f=u.__isRendered&&(u.__dirty&1||!d)?u.getPrevPaintRect():null;f&&c(f);var p=d&&(u.__dirty&1||!u.__isRendered)?u.getPaintRect():null;p&&c(p)}}for(var l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var u=t[l],d=u&&u.shouldBePainted(n,r,!0,!0);if(u&&(!d||!u.__zr)&&u.__isRendered){var f=u.getPrevPaintRect();f&&c(f)}}var m;do{m=!1;for(var l=0;l<i.length;){if(i[l].isZero()){i.splice(l,1);continue}for(var h=l+1;h<i.length;)i[l].intersect(i[h])?(m=!0,i[l].union(i[h]),i.splice(h,1)):h++;l++}}while(m);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;cr(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||LE(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):lr(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=YE(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&I(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(ds),zB=1e5,BB=314159,VB=.01,HB=.001;function UB(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function WB(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}var GB=function(){function e(e,t,n,r){this.type=`canvas`,this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`;var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;this._opts=n=F({},n||{}),this.dpr=n.devicePixelRatio||ps,this._singleCanvas=i,this.root=e,e.style&&(Dr(e),e.innerHTML=``),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e,c=s.width,l=s.height;n.width!=null&&(c=n.width),n.height!=null&&(l=n.height),this.dpr=n.devicePixelRatio||1,s.width=c*this.dpr,s.height=l*this.dpr,this._width=c,this._height=l;var u=new RB(s,this,this.dpr);u.__builtin__=!0,u.initContext(),o[BB]=u,u.zlevel=BB,a.push(BB),this._domRoot=e}else{this._width=BE(e,0,n),this._height=BE(e,1,n);var d=this._domRoot=WB(this._width,this._height);e.appendChild(d)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=i===0?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,a=0;a<t;a++){var o=e[a];o.__inHover&&(n||=this._hoverlayer=this.getLayer(zB),i||(i=n.ctx,i.save()),hD(i,o,r,a===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(zB)},e.prototype.paintOne=function(e,t){mD(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n||=!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;_w(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(BB).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],c=this._layers[s];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&i.push(c)}for(var l=!0,u=!1,d=function(o){var s=i[o],c=s.ctx,d=a&&s.createRepaintRects(e,t,f._width,f._height),p=n?s.__startIndex:s.__drawIndex,m=!n&&s.incremental&&Date.now,h=m&&Date.now(),g=s.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,g,d);else if(p===s.__startIndex){var _=e[p];(!_.incremental||!_.notClear||n)&&s.clear(!1,g,d)}p===-1&&(console.error(`For some unknown reason. drawIndex is -1`),p=s.__startIndex);var v,y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(v=p;v<s.__endIndex;v++){var i=e[v];if(i.__inHover&&(u=!0),r._doPaintEl(i,s,a,t,n,v===s.__endIndex-1),m&&Date.now()-h>15)break}n.prevElClipPaths&&c.restore()};if(d)if(d.length===0)v=s.__endIndex;else for(var b=f.dpr,x=0;x<d.length;++x){var S=d[x];c.save(),c.beginPath(),c.rect(S.x*b,S.y*b,S.width*b,S.height*b),c.clip(),y(S),c.restore()}else c.save(),y(),c.restore();s.__drawIndex=v,s.__drawIndex<s.__endIndex&&(l=!1)},f=this,p=0;p<i.length;p++)d(p);return jr.wxa&&I(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:l,needsRefreshHover:u}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(hD(o,e,i,a),e.setPrevPaintRect(s))}else hD(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=BB);var n=this._layers[e];return n||(n=new RB(`zr_`+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Gn(n,this._layerConfig[e],!0):this._layerConfig[e-VB]&&Gn(n,this._layerConfig[e-VB],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(!n[e]&&UB(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?a.insertBefore(t.dom,c.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1});function t(e){i&&(i.__endIndex!==e&&(i.__dirty=!0),i.__endIndex=e)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i=null,a=0,o,s;for(s=0;s<e.length;s++){var r=e[s],c=r.zlevel,l=void 0;o!==c&&(o=c,a=0),r.incremental?(l=this.getLayer(c+HB,this._needsManuallyCompositing),l.incremental=!0,a=1):l=this.getLayer(c+(a>0?VB:0),this._needsManuallyCompositing),l.__builtin__||Wn(`ZLevel `+c+` has been used by unkown layer `+l.id),l!==i&&(l.__used=!0,l.__startIndex!==s&&(l.__dirty=!0),l.__startIndex=s,l.incremental?l.__drawIndex=-1:l.__drawIndex=s,t(s),i=l),r.__dirty&1&&!r.__inHover&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=s))}t(s),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,I(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Gn(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+VB){var a=this._layers[i];Gn(a,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(qn(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;if(e!=null&&(r.width=e),t!=null&&(r.height=t),e=BE(i,0,r),t=BE(i,1,r),n.style.display=``,this._width!==e||t!==this._height){for(var a in n.style.width=e+`px`,n.style.height=t+`px`,this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(BB).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._layers[BB].dom;var t=new RB(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];hD(n,l,a,s===c-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function KB(e){e.registerPainter(`canvas`,GB)}var qB=[`getWidth`,`getHeight`,`getDom`,`getOption`,`resize`,`dispatchAction`,`convertToPixel`,`convertFromPixel`,`containPixel`,`getDataURL`,`getConnectedDataURL`,`appendData`,`clear`,`isDisposed`,`dispose`];function JB(e){function t(t){return function(...n){if(!e.value)throw Error(`ECharts is not initialized yet.`);return Reflect.apply(e.value[t],e.value,n)}}return qB.reduce((e,n)=>(e[n]=t(n),e),{})}function YB(e,t,n){f([n,e,t],([e,t,n],r,i)=>{let a=null;if(e&&t&&n){let{offsetWidth:r,offsetHeight:i}=e,{throttle:o=100,onResize:s}=n===!0?{}:n,c=!1,l=()=>{t.resize(),s?.()},u=o?Kx(l,o):l;a=new ResizeObserver(()=>{!c&&(c=!0,e.offsetWidth===r&&e.offsetHeight===i)||e.offsetWidth===0||e.offsetHeight===0||u()}),a.observe(e)}i(()=>{a&&=(a.disconnect(),null)})})}var XB={autoresize:[Boolean,Object]},ZB=Symbol();function QB(t,n,r){let i=j(ZB,{}),a=O(()=>({...pe(i),...r?.value}));e(()=>{let e=t.value;e&&(n.value?e.showLoading(a.value):e.hideLoading())})}var $B={loading:Boolean,loadingOptions:Object};function eV(){return typeof window<`u`&&typeof document<`u`}var tV=/^on[^a-z]/,nV=e=>tV.test(e);function rV(e){let t={};for(let n in e)nV(n)||(t[n]=e[n]);return t}function iV(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&t<2**32-1&&String(t)===e}function aV(e,t){let n=new Set(e),r=new Set(t);if(n.size!==r.size)return!1;for(let e of n)if(!r.has(e))return!1;return!0}function oV(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var sV=`[vue-echarts]`;function cV(e){v(`${sV} ${e}`)}var lV={tooltip:[`tooltip`,`formatter`],dataView:[`toolbox`,`feature`,`dataView`,`optionToContent`]},uV=Object.keys(lV);function dV(e){return uV.some(t=>e===t||e.startsWith(t+`-`))}function fV(e,t){let n=eV()?document.createElement(`div`):void 0,r=k({}),a=k({}),c=k({}),l=b(!1),u=()=>l.value&&n?i(oe,{to:n},Object.entries(e).filter(([e])=>dV(e)).map(([e,t])=>{let n=e;return i(`div`,{ref:e=>{e instanceof HTMLElement&&(r[n]=e)},style:{display:`contents`}},a[n]?t?.(c[n]):void 0)})):void 0;function d(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function f(t){let n={...t},i=(e,t)=>{let n=e[t];if(Array.isArray(n))return e[t]=[...n],e[t];if(d(n))return e[t]={...n},e[t];if(n===void 0)return e[t]=iV(t)?[]:{},e[t]};return Object.keys(e).filter(e=>{let t=dV(e);return t||cV(`Invalid slot name: ${e}`),t}).forEach(e=>{let[t,...o]=e.split(`-`),s=lV[t];if(!s)return;let l=[...o,...s];if(l.length===0)return;let u=n;for(let e=0;e<l.length-1;e++)if(u=i(u,l[e]),!u)return;u[l[l.length-1]]=t=>(a[e]=!0,c[e]=t,r[e])}),n}let m=[];return p(()=>{let n=Object.keys(e).filter(dV);aV(n,m)||(m.forEach(e=>{n.includes(e)||(delete c[e],delete a[e],delete r[e])}),m=n,t())}),o(()=>{l.value=!0}),s(()=>{n?.remove()}),{teleportedSlots:u,patchOption:f}}var pV=null,mV=`x-vue-echarts`;function hV(){if(pV!=null)return pV;let e=globalThis.customElements;if(!eV()||!e?.get)return pV=!1,pV;if(!e.get(mV))try{class t extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&=(this.__dispose(),null)}}e.define(mV,t)}catch{return pV=!1,pV}return pV=!0,pV}function gV(e){if(!oV(e))return;let t=e.id;if(typeof t==`string`)return t;if(typeof t==`number`&&Number.isFinite(t))return String(t)}function _V(e){let t=e,n=Array.isArray(t.options)?t.options.length:0,r=Array.isArray(t.media)?t.media.length:0,i=Object.create(null),a=[],o=[];for(let e of Object.keys(t)){if(e===`options`||e===`media`)continue;let n=t[e];if(Array.isArray(n)){let t=n,r=new Set,a=0;for(let e=0;e<t.length;e++){let n=gV(t[e]);n===void 0?a++:r.add(n)}i[e]={idsSorted:r.size>0?Array.from(r).sort():[],noIdCount:a}}else oV(n)?a.push(e):n!==void 0&&o.push(e)}return a.length>1&&a.sort(),o.length>1&&o.sort(),{optionsLength:n,mediaLength:r,arrays:i,objects:a,scalars:o}}function vV(e,t){if(e.length===0)return[];if(t.length===0)return e.slice();let n=new Set(t),r=[];for(let t=0;t<e.length;t++){let i=e[t];n.has(i)||r.push(i)}return r}function yV(e,t){if(e.length===0)return!1;if(t.length===0)return!0;let n=new Set(t);for(let t=0;t<e.length;t++)if(!n.has(e[t]))return!0;return!1}function bV(e,t){let n=_V(t);if(!e)return{option:t,signature:n,plan:{notMerge:!1}};if(n.optionsLength<e.optionsLength||n.mediaLength<e.mediaLength||vV(e.scalars,n.scalars).length>0)return{option:t,signature:n,plan:{notMerge:!0}};let r=new Set,i=new Map,a=vV(e.objects,n.objects);for(let e=0;e<a.length;e++)i.set(a[e],null);for(let t of Object.keys(e.arrays)){let a=e.arrays[t];if(!a)continue;let o=n.arrays[t];if(!o){(a.idsSorted.length>0||a.noIdCount>0)&&(i.set(t,[]),r.add(t));continue}if(yV(a.idsSorted,o.idsSorted)){r.add(t);continue}o.noIdCount<a.noIdCount&&r.add(t)}let o=t,s=n;if(i.size>0){let e={...t};i.forEach((t,n)=>{e[n]=t}),o=e,s=_V(o)}let c=r.size>0?Array.from(r).sort():void 0;return{option:o,signature:s,plan:c?{notMerge:!1,replaceMerge:c}:{notMerge:!1}}}var xV=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}
|
||
x-vue-echarts>:first-child,x-vue-echarts>:first-child>canvas{border-radius:inherit;}
|
||
`;if(typeof document<`u`)if(Array.isArray(document.adoptedStyleSheets)&&`replaceSync`in CSSStyleSheet.prototype){let e=new CSSStyleSheet;e.replaceSync(xV),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}else{let e=document.createElement(`style`);e.textContent=xV,document.head.appendChild(e)}var SV=hV(),CV=Symbol(),wV=Symbol(),TV=Symbol(),EV=fe({name:`Echarts`,inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...XB,...$B},emits:{},slots:Object,setup(t,{attrs:n,expose:r,slots:s}){let c=b(),l=b(),u=j(CV,null),p=j(wV,null),m=j(TV,null),{autoresize:h,manualUpdate:g,loading:_,loadingOptions:v}=S(t),y=O(()=>t.theme||pe(u)),x=O(()=>t.initOptions||pe(p)||void 0),C=O(()=>t.updateOptions||pe(m)),w=O(()=>rV(n)),T={},E=new Map,{teleportedSlots:D,patchOption:k}=fV(s,()=>{!g.value&&t.option&&l.value&&te(l.value,t.option)}),A;function ee(e){let t={},n=(e?.replaceMerge??[]).filter(e=>e!=null);return n.length>0&&(t.replaceMerge=[...new Set(n)]),e?.notMerge!==void 0&&(t.notMerge=e.notMerge),t}function te(e,t,n,r=!1){let i=k(t);if(r){e.setOption(i,n??{}),A=void 0;return}if(C.value){let t=n??C.value;e.setOption(i,t),A=void 0;return}let a=bV(A,i),o=ee(a.plan);e.setOption(a.option,o),A=a.signature}Object.keys(n).filter(e=>nV(e)).forEach(e=>{if(e.indexOf(`Native:`)===2){let t=`on${e.charAt(9).toUpperCase()}${e.slice(10)}`;T[t]=n[e];return}let t=e.charAt(2).toLowerCase()+e.slice(3),r;t.indexOf(`zr:`)===0&&(r=!0,t=t.substring(3));let i;t.substring(t.length-4)===`Once`&&(i=!0,t=t.substring(0,t.length-4)),E.set({event:t,zr:r,once:i},n[e])});function ne(){if(!c.value)return;let e=l.value=WO(c.value,y.value,x.value);t.group&&(e.group=t.group),E.forEach((t,{zr:n,once:r,event:i})=>{if(!t)return;let a=n?e.getZr():e;if(r){let e=t,n=!1;t=(...r)=>{n||(n=!0,e(...r),a.off(i,t))}}a.on(i,t)});function n(){e&&!e.isDisposed()&&e.resize()}function r(){let{option:n}=t;if(g.value){n&&te(e,n,void 0,!0);return}n&&te(e,n)}h.value?d(()=>{n(),r()}):r()}let re=(e,n,r)=>{if(!t.manualUpdate){cV("`setOption` is only available when `manual-update` is `true`.");return}let i=typeof n==`boolean`?{notMerge:n,lazyUpdate:r}:n;l.value&&te(l.value,e,i??void 0,!0)};function ie(){l.value&&=(l.value.dispose(),void 0),A=void 0}f(()=>t.option,e=>{if(!e){A=void 0;return}if(g.value){cV("`option` prop changes are ignored when `manual-update` is `true`.");return}l.value&&te(l.value,e)},{deep:!0}),f([g,x],()=>{ie(),ne()},{deep:!0}),f(y,e=>{l.value?.setTheme(e||{})},{deep:!0}),e(()=>{t.group&&l.value&&(l.value.group=t.group)});let ae=JB(l);return QB(l,_,v),YB(l,h,c),o(()=>{ne()}),a(()=>{SV&&c.value?c.value.__dispose=ie:ie()}),r({setOption:re,root:c,chart:l,...ae}),(()=>i(mV,{...w.value,...T,ref:c,class:[`echarts`,w.value.class]},D()))}});uk([KB,Dx,ES,DC,UM,kN,TR,_R,ZR,QF,IB,NB,zL,Dz,gB,gI]);var DV={install(e){e.component(`VChart`,EV)}};function OV(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}var kV=typeof window<`u`,AV=(e,t=!1)=>t?Symbol.for(e):Symbol(e),jV=(e,t,n)=>MV({l:e,k:t,s:n}),MV=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),NV=e=>typeof e==`number`&&isFinite(e),PV=e=>$V(e)===`[object Date]`,FV=e=>$V(e)===`[object RegExp]`,IV=e=>eH(e)&&Object.keys(e).length===0,LV=Object.assign,RV=Object.create,zV=(e=null)=>RV(e),BV,VV=()=>BV||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:zV();function HV(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function UV(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function WV(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${UV(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${UV(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1on$3`)),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(t=>{e=e.replace(t,`$1javascript:`)}),e}var GV=Object.prototype.hasOwnProperty;function KV(e,t){return GV.call(e,t)}var qV=Array.isArray,JV=e=>typeof e==`function`,J=e=>typeof e==`string`,YV=e=>typeof e==`boolean`,XV=e=>typeof e==`object`&&!!e,ZV=e=>XV(e)&&JV(e.then)&&JV(e.catch),QV=Object.prototype.toString,$V=e=>QV.call(e),eH=e=>$V(e)===`[object Object]`,tH=e=>e==null?``:qV(e)||eH(e)&&e.toString===QV?JSON.stringify(e,null,2):String(e);function nH(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}var rH=e=>!XV(e)||qV(e);function iH(e,t){if(rH(e)||rH(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(XV(e[r])&&!XV(t[r])&&(t[r]=Array.isArray(e[r])?[]:zV()),rH(t[r])||rH(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function aH(e,t,n){return{line:e,column:t,offset:n}}function oH(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var sH={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};sH.EXPECTED_TOKEN,sH.INVALID_TOKEN_IN_PLACEHOLDER,sH.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,sH.UNKNOWN_ESCAPE_SEQUENCE,sH.INVALID_UNICODE_ESCAPE_SEQUENCE,sH.UNBALANCED_CLOSING_BRACE,sH.UNTERMINATED_CLOSING_BRACE,sH.EMPTY_PLACEHOLDER,sH.NOT_ALLOW_NEST_PLACEHOLDER,sH.INVALID_LINKED_FORMAT,sH.MUST_HAVE_MESSAGES_IN_PLURAL,sH.UNEXPECTED_EMPTY_LINKED_MODIFIER,sH.UNEXPECTED_EMPTY_LINKED_KEY,sH.UNEXPECTED_LEXICAL_ANALYSIS,sH.UNHANDLED_CODEGEN_NODE_TYPE,sH.UNHANDLED_MINIFIER_NODE_TYPE;function cH(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=e,s=SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function lH(e){throw e}var uH=` `,dH=`\r`,fH=`
|
||
`,pH=`\u2028`,mH=`\u2029`;function hH(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===dH&&t[e+1]===fH,s=e=>t[e]===fH,c=e=>t[e]===mH,l=e=>t[e]===pH,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?fH:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var gH=void 0,_H=`'`,vH=`tokenizer`;function yH(e,t={}){let n=t.location!==!1,r=hH(e),i=()=>r.index(),a=()=>aH(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();t.column+=r,t.offset+=r,u&&u(cH(e,n?oH(a.startLoc,t):null,{domain:vH,args:i}))}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=oH(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(sH.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===uH||e.currentPeek()===fH;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===gH)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===gH)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===_H;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(!(n===7||n===11))return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===uH||!t?!1:t===fH?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?!(r===uH||r===fH):i===uH?(e.peek(),n(!0,uH)):i===fH?(e.peek(),n(!0,fH)):!0},r=n();return t&&e.resetPeek(),r}function O(e,t){let n=e.currentChar();return n===gH?gH:t(n)?(e.next(),n):null}function k(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function A(e){return O(e,k)}function j(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function ee(e){return O(e,j)}function te(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function ne(e){return O(e,te)}function re(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function ie(e){return O(e,re)}function ae(e){let t=``,n=``;for(;t=ne(e);)n+=t;return n}function oe(e){let t=``;for(;;){let n=e.currentChar();if(n===`\\`){let r=e.peek();r===`{`||r===`}`||r===`@`||r===`|`||r===`\\`?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;else if(n===uH||n===fH)if(D(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next();else t+=n,e.next()}return t}function se(e){g(e);let t=``,n=``;for(;t=ee(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==gH&&r!==uH&&r!==fH&&r!==` `){let t=M(e);return d(sH.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===gH&&d(sH.UNTERMINATED_CLOSING_BRACE,a(),0),n}function ce(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${ae(e)}`):t+=ae(e),e.currentChar()===gH&&d(sH.UNTERMINATED_CLOSING_BRACE,a(),0),t}function le(e){return e!==_H&&e!==fH}function ue(e){g(e),m(e,`'`);let t=``,n=``;for(;t=O(e,le);)t===`\\`?n+=de(e):n+=t;let r=e.currentChar();return r===fH||r===gH?(d(sH.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===fH&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function de(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return fe(e,t,4);case`U`:return fe(e,t,6);default:return d(sH.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function fe(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=ie(e);if(!n){d(sH.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function pe(e){return e!==`{`&&e!==`}`&&e!==uH&&e!==fH}function M(e){g(e);let t=``,n=``;for(;t=O(e,pe);)n+=t;return n}function me(e){let t=``,n=``;for(;t=A(e);)n+=t;return n}function he(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===uH?n:(n+=r,e.next(),t(n))};return t(``)}function ge(e){g(e);let t=m(e,`|`);return g(e),t}function _e(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(sH.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(sH.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(sH.UNTERMINATED_CLOSING_BRACE,a(),0),n=ve(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(sH.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,ge(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(sH.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,ye(e,t);if(r=y(e,t))return n=f(t,4,se(e)),g(e),n;if(i=b(e,t))return n=f(t,5,ce(e)),g(e),n;if(o=x(e,t))return n=f(t,6,ue(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,M(e)),d(sH.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function ve(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===fH||i===uH)&&d(sH.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,ge(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),ve(e,t)):C(e,t)?(g(e),f(t,11,me(e))):T(e,t)?(g(e),i===`{`?_e(e,t)||r:f(t,10,he(e))):(n===7&&d(sH.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,ye(e,t))}}function ye(e,t){let n={type:13};if(t.braceNest>0)return _e(e,t)||p(t);if(t.inLinked)return ve(e,t)||p(t);switch(e.currentChar()){case`{`:return _e(e,t)||p(t);case`}`:return d(sH.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return ve(e,t)||p(t);default:if(E(e))return n=f(t,1,ge(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,oe(e));break}return n}function be(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===gH?f(c,13):ye(r,c)}return{nextToken:be,currentOffset:i,currentPosition:a,context:l}}var bH=`parser`,xH=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,SH=/\\([\\@{}|])/g;function CH(e,t){return t}function wH(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`<60>`}}}function TH(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();s.offset+=a,s.column+=a,n&&n(cH(r,t?oH(i,s):null,{domain:bH,args:o}))}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t.replace(SH,CH),a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(xH,wH),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,sH.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,EH(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,sH.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,sH.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,EH(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,sH.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,EH(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,sH.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,EH(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,sH.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,EH(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,sH.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,EH(o)),n.key=l(e,o.value||``);break;default:{r(e,sH.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,sH.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,EH(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,sH.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,EH(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,sH.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,EH(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,sH.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,EH(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,sH.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=yH(n,LV({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,sH.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function EH(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function DH(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function OH(e,t){for(let n=0;n<e.length;n++)kH(e[n],t)}function kH(e,t){switch(e.type){case 1:OH(e.cases,t),t.helper(`plural`);break;case 2:OH(e.items,t);break;case 6:kH(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`);break}}function AH(e,t={}){let n=DH(e);n.helper(`normalize`),e.body&&kH(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function jH(e){let t=e.body;return t.type===2?MH(t):t.cases.forEach(e=>MH(e)),e}function MH(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=nH(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}function NH(e){switch(e.t=e.type,e.type){case 0:{let t=e;NH(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)NH(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)NH(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;NH(t.key),t.k=t.key,delete t.key,t.modifier&&(NH(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}default:}delete e.type}function PH(e,t){let{sourceMap:n,filename:r,breakLineCode:i,needIndent:a}=t,o=t.location!==!1,s={filename:r,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:a,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);let c=()=>s;function l(e,t){s.code+=e}function u(e,t=!0){let n=t?i:``;l(a?n+` `.repeat(e):n)}function d(e=!0){let t=++s.indentLevel;e&&u(t)}function f(e=!0){let t=--s.indentLevel;e&&u(t)}function p(){u(s.indentLevel)}return{context:c,push:l,indent:d,deindent:f,newline:p,helper:e=>`_${e}`,needIndent:()=>s.needIndent}}function FH(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),zH(e,t.key),t.modifier?(e.push(`, `),zH(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function IH(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(zH(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function LH(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(zH(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function RH(e,t){t.body?zH(e,t.body):e.push(`null`)}function zH(e,t){let{helper:n}=e;switch(t.type){case 0:RH(e,t);break;case 1:LH(e,t);break;case 2:IH(e,t);break;case 6:FH(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n(`interpolate`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`named`)}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:}}var BH=(e,t={})=>{let n=J(t.mode)?t.mode:`normal`,r=J(t.filename)?t.filename:`message.intl`,i=!!t.sourceMap,a=t.breakLineCode==null?n===`arrow`?`;`:`
|
||
`:t.breakLineCode,o=t.needIndent?t.needIndent:n!==`arrow`,s=e.helpers||[],c=PH(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});c.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),c.indent(o),s.length>0&&(c.push(`const { ${nH(s.map(e=>`${e}: _${e}`),`, `)} } = ctx`),c.newline()),c.push(`return `),zH(c,e),c.deindent(o),c.push(`}`),delete e.helpers;let{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function VH(e,t={}){let n=LV({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=TH(n).parse(e);return r?(a&&jH(o),i&&NH(o),{ast:o,code:``}):(AH(o,n),BH(o,n))}function HH(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(VV().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(VV().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function UH(e){return XV(e)&&$H(e)===0&&(KV(e,`b`)||KV(e,`body`))}var WH=[`b`,`body`];function GH(e){return oU(e,WH)}var KH=[`c`,`cases`];function qH(e){return oU(e,KH,[])}var JH=[`s`,`static`];function YH(e){return oU(e,JH)}var XH=[`i`,`items`];function ZH(e){return oU(e,XH,[])}var QH=[`t`,`type`];function $H(e){return oU(e,QH)}var eU=[`v`,`value`];function tU(e,t){let n=oU(e,eU);if(n!=null)return n;throw cU(t)}var nU=[`m`,`modifier`];function rU(e){return oU(e,nU)}var iU=[`k`,`key`];function aU(e){let t=oU(e,iU);if(t)return t;throw cU(6)}function oU(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(KV(e,r)&&e[r]!=null)return e[r]}return n}var sU=[...WH,...KH,...JH,...XH,...iU,...nU,...eU,...QH];function cU(e){return Error(`unhandled node type: ${e}`)}function lU(e){return t=>uU(t,e)}function uU(e,t){let n=GH(t);if(n==null)throw cU(0);if($H(n)===1){let t=qH(n);return e.plural(t.reduce((t,n)=>[...t,dU(e,n)],[]))}else return dU(e,n)}function dU(e,t){let n=YH(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=ZH(t).reduce((t,n)=>[...t,fU(e,n)],[]);return e.normalize(n)}}function fU(e,t){let n=$H(t);switch(n){case 3:return tU(t,n);case 9:return tU(t,n);case 4:{let r=t;if(KV(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(KV(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw cU(n)}case 5:{let r=t;if(KV(r,`i`)&&NV(r.i))return e.interpolate(e.list(r.i));if(KV(r,`index`)&&NV(r.index))return e.interpolate(e.list(r.index));throw cU(n)}case 6:{let n=t,r=rU(n),i=aU(n);return e.linked(fU(e,i),r?fU(e,r):void 0,e.type)}case 7:return tU(t,n);case 8:return tU(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var pU=e=>e,mU=zV();function hU(e,t={}){let n=!1,r=t.onError||lH;return t.onError=e=>{n=!0,r(e)},{...VH(e,t),detectError:n}}function gU(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&J(e)){YV(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||pU)(e),r=mU[n];if(r)return r;let{ast:i,detectError:a}=hU(e,{...t,location:!1,jit:!0}),o=lU(i);return a?o:mU[n]=o}else{let t=e.cacheKey;return t?mU[t]||(mU[t]=lU(e)):lU(e)}}var _U=null;function vU(e){_U=e}function yU(e,t,n){_U&&_U.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var bU=xU(`function:translate`);function xU(e){return t=>_U&&_U.emit(e,t)}var SU={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function CU(e){return cH(e,null,void 0)}SU.INVALID_ARGUMENT,SU.INVALID_DATE_ARGUMENT,SU.INVALID_ISO_DATE_ARGUMENT,SU.NOT_SUPPORT_NON_STRING_MESSAGE,SU.NOT_SUPPORT_LOCALE_PROMISE_VALUE,SU.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,SU.NOT_SUPPORT_LOCALE_TYPE;function wU(e,t){return t.locale==null?EU(e.locale):EU(t.locale)}var TU;function EU(e){if(J(e))return e;if(JV(e)){if(e.resolvedOnce&&TU!=null)return TU;if(e.constructor.name===`Function`){let t=e();if(ZV(t))throw CU(SU.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return TU=t}else throw CU(SU.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw CU(SU.NOT_SUPPORT_LOCALE_TYPE)}function DU(e,t,n){return[...new Set([n,...qV(t)?t:XV(t)?Object.keys(t):J(t)?[t]:[n]])]}function OU(e,t,n){let r=J(n)?n:WU,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;qV(e);)e=kU(a,e,t);let o=qV(t)||!eH(t)?t:t.default?t.default:null;e=J(o)?[o]:o,qV(e)&&kU(a,e,!1),i.__localeChainCache.set(r,a)}return a}function kU(e,t,n){let r=!0;for(let i=0;i<t.length&&YV(r);i++){let a=t[i];J(a)&&(r=AU(e,t[i],n))}return r}function AU(e,t,n){let r,i=t.split(`-`);do r=jU(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function jU(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(qV(n)||eH(n))&&n[i]&&(r=n[i])}return r}var MU=[];MU[0]={w:[0],i:[3,0],"[":[4],o:[7]},MU[1]={w:[1],".":[2],"[":[4],o:[7]},MU[2]={w:[2],i:[3,0],0:[3,0]},MU[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},MU[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},MU[5]={"'":[4,0],o:8,l:[5,0]},MU[6]={'"':[4,0],o:8,l:[6,0]};var NU=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function PU(e){return NU.test(e)}function FU(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function IU(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function LU(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:PU(t)?FU(t):`*`+t}function RU(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=LU(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=IU(a),d=MU[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var zU=new Map;function BU(e,t){return XV(e)?e[t]:null}function VU(e,t){if(!XV(e))return null;let n=zU.get(t);if(n||(n=RU(t),n&&zU.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(sU.includes(e)&&UH(i)||!XV(i)||!KV(i,e))return null;let t=i[e];if(t===void 0||JV(i))return null;i=t,a++}return i}var HU={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9};HU.NOT_FOUND_KEY,HU.FALLBACK_TO_TRANSLATE,HU.CANNOT_FORMAT_NUMBER,HU.FALLBACK_TO_NUMBER_FORMAT,HU.CANNOT_FORMAT_DATE,HU.FALLBACK_TO_DATE_FORMAT,HU.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER,HU.INVALID_NUMBER_ARGUMENT,HU.INVALID_DATE_ARGUMENT;var UU=`11.3.0`,WU=`en-US`,GU=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function KU(){return{upper:(e,t)=>t===`text`&&J(e)?e.toUpperCase():t===`vnode`&&XV(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&J(e)?e.toLowerCase():t===`vnode`&&XV(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&J(e)?GU(e):t===`vnode`&&XV(e)&&`__v_isVNode`in e?GU(e.children):e}}var qU;function JU(e){qU=e}var YU;function XU(e){YU=e}var ZU;function QU(e){ZU=e}var $U=null,eW=e=>{$U=e},tW=()=>$U,nW=null,rW=e=>{nW=e},iW=()=>nW,aW=0;function oW(e={}){let t=JV(e.onWarn)?e.onWarn:OV,n=J(e.version)?e.version:UU,r=J(e.locale)||JV(e.locale)?e.locale:WU,i=JV(r)?WU:r,a=qV(e.fallbackLocale)||eH(e.fallbackLocale)||J(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=eH(e.messages)?e.messages:sW(i),s=eH(e.datetimeFormats)?e.datetimeFormats:sW(i),c=eH(e.numberFormats)?e.numberFormats:sW(i),l=LV(zV(),e.modifiers,KU()),u=e.pluralRules||zV(),d=JV(e.missing)?e.missing:null,f=YV(e.missingWarn)||FV(e.missingWarn)?e.missingWarn:!0,p=YV(e.fallbackWarn)||FV(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=JV(e.postTranslation)?e.postTranslation:null,_=eH(e.processor)?e.processor:null,v=YV(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=JV(e.messageCompiler)?e.messageCompiler:qU,x=JV(e.messageResolver)?e.messageResolver:YU||BU,S=JV(e.localeFallbacker)?e.localeFallbacker:ZU||DU,C=XV(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=XV(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=XV(w.__numberFormatters)?w.__numberFormatters:new Map,D=XV(w.__meta)?w.__meta:{};aW++;let O={version:n,cid:aW,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:D};return O.datetimeFormats=s,O.numberFormats=c,O.__datetimeFormatters=T,O.__numberFormatters=E,__INTLIFY_PROD_DEVTOOLS__&&yU(O,n,D),O}var sW=e=>({[e]:zV()});function cW(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return J(r)?r:t}else return t}function lW(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function uW(e,t){return e===t?!1:e.split(`-`)[0]===t.split(`-`)[0]}function dW(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(uW(e,t[r]))return!0;return!1}var fW=typeof Intl<`u`;fW&&Intl.DateTimeFormat,fW&&Intl.NumberFormat;function pW(e,...t){let{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e;if(!J(t[0])&&!PV(t[0])&&!NV(t[0]))return``;let[c,l,u,d]=hW(...t),f=YV(u.missingWarn)?u.missingWarn:e.missingWarn;YV(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let p=!!u.part,m=wU(e,u),h=o(e,i,m);if(!J(c)||c===``)return new Intl.DateTimeFormat(m.replace(/!/g,``),d).format(l);let g={},_,v=null;for(let t=0;t<h.length&&(_=h[t],g=n[_]||{},v=g[c],!eH(v));t++)cW(e,c,_,f,`datetime format`);if(!eH(v)||!J(_))return r?-1:c;let y=`${_}__${c}`;IV(d)||(y=`${y}__${JSON.stringify(d)}`);let b=s.get(y);return b||(b=new Intl.DateTimeFormat(_,LV({},v,d)),s.set(y,b)),p?b.formatToParts(l):b.format(l)}var mW=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function hW(...e){let[t,n,r,i]=e,a=zV(),o=zV(),s;if(J(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw CU(SU.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw CU(SU.INVALID_ISO_DATE_ARGUMENT)}}else if(PV(t)){if(isNaN(t.getTime()))throw CU(SU.INVALID_DATE_ARGUMENT);s=t}else if(NV(t))s=t;else throw CU(SU.INVALID_ARGUMENT);return J(n)?a.key=n:eH(n)&&Object.keys(n).forEach(e=>{mW.includes(e)?o[e]=n[e]:a[e]=n[e]}),J(r)?a.locale=r:eH(r)&&(o=r),eH(i)&&(o=i),[a.key||``,s,a,o]}function gW(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function _W(e,...t){let{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e;if(!NV(t[0]))return``;let[c,l,u,d]=yW(...t),f=YV(u.missingWarn)?u.missingWarn:e.missingWarn;YV(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let p=!!u.part,m=wU(e,u),h=o(e,i,m);if(!J(c)||c===``)return new Intl.NumberFormat(m.replace(/!/g,``),d).format(l);let g={},_,v=null;for(let t=0;t<h.length&&(_=h[t],g=n[_]||{},v=g[c],!eH(v));t++)cW(e,c,_,f,`number format`);if(!eH(v)||!J(_))return r?-1:c;let y=`${_}__${c}`;IV(d)||(y=`${y}__${JSON.stringify(d)}`);let b=s.get(y);return b||(b=new Intl.NumberFormat(_,LV({},v,d)),s.set(y,b)),p?b.formatToParts(l):b.format(l)}var vW=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function yW(...e){let[t,n,r,i]=e,a=zV(),o=zV();if(!NV(t))throw CU(SU.INVALID_ARGUMENT);let s=t;return J(n)?a.key=n:eH(n)&&Object.keys(n).forEach(e=>{vW.includes(e)?o[e]=n[e]:a[e]=n[e]}),J(r)?a.locale=r:eH(r)&&(o=r),eH(i)&&(o=i),[a.key||``,s,a,o]}function bW(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}var xW=e=>e,SW=e=>``,CW=`text`,wW=e=>e.length===0?``:nH(e),TW=tH;function EW(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function DW(e){let t=NV(e.pluralIndex)?e.pluralIndex:-1;return NV(e.named?.count)?e.named.count:NV(e.named?.n)?e.named.n:t}function OW(e={}){let t=e.locale,n=DW(e),r=J(t)&&JV(e.pluralRules?.[t])?e.pluralRules[t]:EW,i=r===EW?void 0:EW,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||zV();NV(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);let l=e=>c[e];function u(t,n){return(JV(e.messages)?e.messages(t,!!n):XV(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):SW)}let d=t=>e.modifiers?e.modifiers[t]:xW,f=JV(e.processor?.normalize)?e.processor.normalize:wW,p=JV(e.processor?.interpolate)?e.processor.interpolate:TW,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?XV(n)?(a=n.modifier||a,i=n.type||i):J(n)&&(a=n||a):t.length===2&&(J(n)&&(a=n||a),J(r)&&(i=r||i));let o=u(e,!0)(m),s=o===``||o===void 0?e:o,c=i===`vnode`&&qV(s)&&a?s[0]:s;return a?d(a)(c,i):c},message:u,type:J(e.processor?.type)?e.processor.type:CW,interpolate:p,normalize:f,values:LV(zV(),o,c)};return m}var kW=()=>``,AW=e=>JV(e);function jW(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=IW(...t),u=YV(l.missingWarn)?l.missingWarn:e.missingWarn,d=YV(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=YV(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=J(l.default)||YV(l.default)?YV(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(J(m)||JV(m)),g=wU(e,l);f&&MW(l);let[_,v,y]=p?[c,g,s[g]||zV()]:NW(e,c,g,o,d,u),b=_,x=c;if(!p&&!(J(b)||UH(b)||AW(b))&&h&&(b=m,x=b),!p&&(!(J(b)||UH(b)||AW(b))||!J(v)))return i?-1:c;let S=!1,C=AW(b)?b:PW(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=FW(e,C,OW(RW(e,v,y,l))),T=r?r(w,c):w;if(f&&J(T)&&(T=WV(T)),__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:J(c)?c:AW(b)?b.key:``,locale:v||(AW(b)?b.locale:``),format:J(b)?b:AW(b)?b.source:``,message:T};t.meta=LV({},e.__meta,tW()||{}),bU(t)}return T}function MW(e){qV(e.list)?e.list=e.list.map(e=>J(e)?HV(e):e):XV(e.named)&&Object.keys(e.named).forEach(t=>{J(e.named[t])&&(e.named[t]=HV(e.named[t]))})}function NW(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=zV(),f,p=null;for(let n=0;n<u.length&&(f=u[n],d=o[f]||zV(),(p=c(d,t))===null&&(p=d[t]),!(J(p)||UH(p)||AW(p)));n++)if(!dW(f,u)){let n=cW(e,t,f,a,`translate`);n!==t&&(p=n)}return[p,f,d]}function PW(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(AW(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=o(r,LW(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function FW(e,t,n){return t(n)}function IW(...e){let[t,n,r]=e,i=zV();if(!J(t)&&!NV(t)&&!AW(t)&&!UH(t))throw CU(SU.INVALID_ARGUMENT);let a=NV(t)?String(t):(AW(t),t);return NV(n)?i.plural=n:J(n)?i.default=n:eH(n)&&!IV(n)?i.named=n:qV(n)&&(i.list=n),NV(r)?i.plural=r:J(r)?i.default=r:eH(r)&&LV(i,r),[a,i]}function LW(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>jV(t,n,e)}}function RW(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[,,n]=NW(u||e,r,t,s,c,l);a=o(n,r)}if(J(a)||UH(a)){let n=!1,i=PW(e,r,t,a,r,()=>{n=!0});return n?kW:i}else if(AW(a))return a;else return kW}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),NV(r.plural)&&(d.pluralIndex=r.plural),d}HH();var zW=`11.3.0`;function BW(){typeof __VUE_I18N_FULL_INSTALL__!=`boolean`&&(VV().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!=`boolean`&&(VV().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(VV().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(VV().__INTLIFY_PROD_DEVTOOLS__=!1)}var VW={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function HW(e,...t){return cH(e,null,void 0)}VW.UNEXPECTED_RETURN_TYPE,VW.INVALID_ARGUMENT,VW.MUST_BE_CALL_SETUP_TOP,VW.NOT_INSTALLED,VW.UNEXPECTED_ERROR,VW.REQUIRED_VALUE,VW.INVALID_VALUE,VW.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,VW.NOT_INSTALLED_WITH_PROVIDE,VW.NOT_COMPATIBLE_LEGACY_VUE_I18N,VW.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;var UW=AV(`__translateVNode`),WW=AV(`__datetimeParts`),GW=AV(`__numberParts`),KW=AV(`__setPluralRules`);AV(`__intlifyMeta`);var qW=AV(`__injectWithOption`),JW=AV(`__dispose`),YW={FALLBACK_TO_ROOT:10,NOT_FOUND_PARENT_SCOPE:11,IGNORE_OBJ_FLATTEN:12,DEPRECATE_LEGACY_MODE:13,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:14,DUPLICATE_USE_I18N_CALLING:15};YW.FALLBACK_TO_ROOT,YW.NOT_FOUND_PARENT_SCOPE,YW.IGNORE_OBJ_FLATTEN,YW.DEPRECATE_LEGACY_MODE,YW.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,YW.DUPLICATE_USE_I18N_CALLING;function XW(e){if(!XV(e)||UH(e))return e;for(let t in e)if(KV(e,t))if(!t.includes(`.`))XV(e[t])&&XW(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=zV()),!XV(i[n[e]])){a=!0;break}i=i[n[e]]}if(a||(UH(i)?sU.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!UH(i)){let e=i[n[r]];XV(e)&&XW(e)}}return e}function ZW(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=eH(n)?n:qV(r)?zV():{[e]:zV()};if(qV(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||zV(),iH(n,o[t])):iH(n,o)}else J(e)&&iH(JSON.parse(e),o)}),i==null&&a)for(let e in o)KV(o,e)&&XW(o[e]);return o}function QW(e){return e.type}function $W(e,t,n){let r=XV(t.messages)?t.messages:zV();`__i18nGlobal`in n&&(r=ZW(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),XV(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(XV(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function eG(e){return m(te,null,e,0)}function tG(){let e=`currentInstance`;return e in ce?ce[e]:h()}var nG=`__INTLIFY_META__`,rG=()=>[],iG=()=>!1,aG=0;function oG(e){return((t,n,r,i)=>e(n,r,tG()||void 0,i))}var sG=()=>{let e=tG(),t=null;return e&&(t=QW(e)[nG])?{[nG]:t}:null};function cG(e={}){let{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=kV?ne:b,o=YV(e.inheritLocale)?e.inheritLocale:!0,s=a(t&&o?t.locale.value:J(e.locale)?e.locale:WU),c=a(t&&o?t.fallbackLocale.value:J(e.fallbackLocale)||qV(e.fallbackLocale)||eH(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),l=a(ZW(s.value,e)),u=a(eH(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=a(eH(e.numberFormats)?e.numberFormats:{[s.value]:{}}),p=t?t.missingWarn:YV(e.missingWarn)||FV(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:YV(e.fallbackWarn)||FV(e.fallbackWarn)?e.fallbackWarn:!0,h=t?t.fallbackRoot:YV(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,_=JV(e.missing)?e.missing:null,v=JV(e.missing)?oG(e.missing):null,y=JV(e.postTranslation)?e.postTranslation:null,x=t?t.warnHtmlMessage:YV(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,C=t?t.modifiers:eH(e.modifiers)?e.modifiers:{},w=e.pluralRules||t&&t.pluralRules,T;T=(()=>{r&&rW(null);let t={version:zW,locale:s.value,fallbackLocale:c.value,messages:l.value,modifiers:C,pluralRules:w,missing:v===null?void 0:v,missingWarn:p,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:x,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=u.value,t.numberFormats=d.value,t.__datetimeFormatters=eH(T)?T.__datetimeFormatters:void 0,t.__numberFormatters=eH(T)?T.__numberFormatters:void 0;let n=oW(t);return r&&rW(n),n})(),lW(T,s.value,c.value);function E(){return[s.value,c.value,l.value,u.value,d.value]}let D=O({get:()=>s.value,set:e=>{T.locale=e,s.value=e}}),k=O({get:()=>c.value,set:e=>{T.fallbackLocale=e,c.value=e,lW(T,s.value,e)}}),A=O(()=>l.value),j=O(()=>u.value),ee=O(()=>d.value);function te(){return JV(y)?y:null}function re(e){y=e,T.postTranslation=e}function ie(){return _}function ae(e){e!==null&&(v=oG(e)),_=e,T.missing=v}let oe=(e,n,i,a,o,s)=>{E();let c;try{__INTLIFY_PROD_DEVTOOLS__&&eW(sG()),r||(T.fallbackContext=t?iW():void 0),c=e(T)}finally{__INTLIFY_PROD_DEVTOOLS__&&eW(null),r||(T.fallbackContext=void 0)}if(i!==`translate exists`&&NV(c)&&c===-1||i===`translate exists`&&!c){let[e,r]=n();return t&&h?a(t):o(e)}else if(s(c))return c;else throw HW(VW.UNEXPECTED_RETURN_TYPE)};function se(...e){return oe(t=>Reflect.apply(jW,null,[t,...e]),()=>IW(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>J(e))}function ce(...e){let[t,n,r]=e;if(r&&!XV(r))throw HW(VW.INVALID_ARGUMENT);return se(t,n,LV({resolvedMessage:!0},r||{}))}function le(...e){return oe(t=>Reflect.apply(pW,null,[t,...e]),()=>hW(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>J(e)||qV(e))}function ue(...e){return oe(t=>Reflect.apply(_W,null,[t,...e]),()=>yW(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>J(e)||qV(e))}function de(e){return e.map(e=>J(e)||NV(e)||YV(e)?eG(String(e)):e)}let fe={normalize:de,interpolate:e=>e,type:`vnode`};function pe(...e){return oe(t=>{let n,r=t;try{r.processor=fe,n=Reflect.apply(jW,null,[r,...e])}finally{r.processor=null}return n},()=>IW(...e),`translate`,t=>t[UW](...e),e=>[eG(e)],e=>qV(e))}function M(...e){return oe(t=>Reflect.apply(_W,null,[t,...e]),()=>yW(...e),`number format`,t=>t[GW](...e),rG,e=>J(e)||qV(e))}function me(...e){return oe(t=>Reflect.apply(pW,null,[t,...e]),()=>hW(...e),`datetime format`,t=>t[WW](...e),rG,e=>J(e)||qV(e))}function he(e){w=e,T.pluralRules=w}function ge(e,t){return oe(()=>{if(!e)return!1;let n=J(t)?t:s.value,r=J(t)?[n]:OU(T,c.value,n);for(let t=0;t<r.length;t++){let n=ye(r[t]),i=T.messageResolver(n,e);if(i===null&&(i=n[e]),UH(i)||AW(i)||J(i))return!0}return!1},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),iG,e=>YV(e))}function _e(e){let t=null,n=OU(T,c.value,s.value);for(let r=0;r<n.length;r++){let i=l.value[n[r]]||{},a=T.messageResolver(i,e);if(a!=null){t=a;break}}return t}function ve(e){return _e(e)??(t&&t.tm(e)||{})}function ye(e){return l.value[e]||{}}function be(e,t){if(i){let n={[e]:t};for(let e in n)KV(n,e)&&XW(n[e]);t=n[e]}l.value[e]=t,T.messages=l.value}function xe(e,t){l.value[e]=l.value[e]||{};let n={[e]:t};if(i)for(let e in n)KV(n,e)&&XW(n[e]);t=n[e],iH(t,l.value[e]),T.messages=l.value}function Se(e){return u.value[e]||{}}function Ce(e,t){u.value[e]=t,T.datetimeFormats=u.value,gW(T,e,t)}function we(e,t){u.value[e]=LV(u.value[e]||{},t),T.datetimeFormats=u.value,gW(T,e,t)}function Te(e){return d.value[e]||{}}function Ee(e,t){d.value[e]=t,T.numberFormats=d.value,bW(T,e,t)}function De(e,t){d.value[e]=LV(d.value[e]||{},t),T.numberFormats=d.value,bW(T,e,t)}aG++,t&&kV&&(f(t.locale,e=>{o&&(s.value=e,T.locale=e,lW(T,s.value,c.value))}),f(t.fallbackLocale,e=>{o&&(c.value=e,T.fallbackLocale=e,lW(T,s.value,c.value))}));let Oe={id:aG,locale:D,fallbackLocale:k,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,lW(T,s.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:A,get modifiers(){return C},get pluralRules(){return w||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(e){p=e,T.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(e){m=e,T.fallbackWarn=m},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return g},set fallbackFormat(e){g=e,T.fallbackFormat=g},get warnHtmlMessage(){return x},set warnHtmlMessage(e){x=e,T.warnHtmlMessage=e},get escapeParameter(){return S},set escapeParameter(e){S=e,T.escapeParameter=e},t:se,getLocaleMessage:ye,setLocaleMessage:be,mergeLocaleMessage:xe,getPostTranslationHandler:te,setPostTranslationHandler:re,getMissingHandler:ie,setMissingHandler:ae,[KW]:he};return Oe.datetimeFormats=j,Oe.numberFormats=ee,Oe.rt=ce,Oe.te=ge,Oe.tm=ve,Oe.d=le,Oe.n=ue,Oe.getDateTimeFormat=Se,Oe.setDateTimeFormat=Ce,Oe.mergeDateTimeFormat=we,Oe.getNumberFormat=Te,Oe.setNumberFormat=Ee,Oe.mergeNumberFormat=De,Oe[qW]=n,Oe[UW]=pe,Oe[WW]=me,Oe[GW]=M,Oe}function lG(e){let t=J(e.locale)?e.locale:WU,n=J(e.fallbackLocale)||qV(e.fallbackLocale)||eH(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=JV(e.missing)?e.missing:void 0,i=YV(e.silentTranslationWarn)||FV(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=YV(e.silentFallbackWarn)||FV(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=YV(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=eH(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=JV(e.postTranslation)?e.postTranslation:void 0,d=J(e.warnHtmlInMessage)?e.warnHtmlInMessage!==`off`:!0,f=!!e.escapeParameterHtml,p=YV(e.sync)?e.sync:!0,m=e.messages;if(eH(e.sharedMessages)){let t=e.sharedMessages;m=Object.keys(t).reduce((e,n)=>(LV(e[n]||(e[n]={}),t[n]),e),m||{})}let{__i18n:h,__root:g,__injectWithOption:_}=e,v=e.datetimeFormats,y=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:b,datetimeFormats:v,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:h,__root:g,__injectWithOption:_}}function uG(e={}){let t=cG(lG(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return YV(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=YV(e)?!e:e},get silentFallbackWarn(){return YV(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=YV(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?`warn`:`off`},set warnHtmlInMessage(e){t.warnHtmlMessage=e!==`off`},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,r}function dG(e,t,n){return{beforeCreate(){let r=tG();if(!r)throw HW(VW.UNEXPECTED_ERROR);let i=this.$options;if(i.i18n){let r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=fG(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=uG(r);let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=fG(e,i);else{this.$i18n=uG({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&$W(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){let e=tG();if(!e)throw HW(VW.UNEXPECTED_ERROR);let t=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function fG(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[KW](t.pluralizationRules||e.pluralizationRules);let n=ZW(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}var pG={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function mG({slots:e},t){return t.length===1&&t[0]===`default`?(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===w?t.children:[t]],[]):t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},zV())}function hG(){return w}var gG=fe({name:`i18n-t`,props:LV({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>NV(e)||!isNaN(e)}},pG),setup(e,t){let{slots:n,attrs:r}=t,a=e.i18n||DG({useScope:e.scope,__useComponent:!0});return()=>{let o=Object.keys(n).filter(e=>e[0]!==`_`),s=zV();e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=J(e.plural)?+e.plural:e.plural);let c=mG(t,o),l=a[UW](e.keypath,c,s),u=LV(zV(),r);return i(J(e.tag)||XV(e.tag)?e.tag:hG(),u,l)}}});function _G(e){return qV(e)&&!J(e[0])}function vG(e,t,n,r){let{slots:a,attrs:o}=t;return()=>{let t={part:!0},s=zV();e.locale&&(t.locale=e.locale),J(e.format)?t.key=e.format:XV(e.format)&&(J(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce((t,r)=>n.includes(r)?LV(zV(),t,{[r]:e.format[r]}):t,zV()));let c=r(e.value,t,s),l=[t.key];qV(c)?l=c.map((e,t)=>{let n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];return _G(r)&&(r[0].key=`${e.type}-${t}`),r}):J(c)&&(l=[c]);let u=LV(zV(),o);return i(J(e.tag)||XV(e.tag)?e.tag:hG(),u,l)}}var yG=fe({name:`i18n-n`,props:LV({value:{type:Number,required:!0},format:{type:[String,Object]}},pG),setup(e,t){let n=e.i18n||DG({useScope:e.scope,__useComponent:!0});return vG(e,t,vW,(...e)=>n[GW](...e))}});function bG(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function xG(e){let t=t=>{let{instance:n,value:r}=t;if(!n||!n.$)throw HW(VW.UNEXPECTED_ERROR);let i=bG(e,n.$),a=SG(r);return[Reflect.apply(i.t,i,[...CG(a)]),i]};return{created:(e,n)=>{let[r,i]=t(n);kV&&(e.__i18nWatcher=f(i.locale,()=>{n.instance&&n.instance.$forceUpdate()})),e.__composer=i,e.textContent=r},unmounted:e=>{kV&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=SG(t);e.textContent=Reflect.apply(n.t,n,[...CG(r)])}},getSSRProps:e=>{let[n]=t(e);return{textContent:n}}}}function SG(e){if(J(e))return{path:e};if(eH(e)){if(!(`path`in e))throw HW(VW.REQUIRED_VALUE,`path`);return e}else throw HW(VW.INVALID_VALUE)}function CG(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return J(n)&&(o.locale=n),NV(i)&&(o.plural=i),NV(a)&&(o.plural=a),[t,s,o]}function wG(e,t,...n){let r=eH(n[0])?n[0]:{};(!YV(r.globalInstall)||r.globalInstall)&&([gG.name,`I18nT`].forEach(t=>e.component(t,gG)),[yG.name,`I18nN`].forEach(t=>e.component(t,yG)),[RG.name,`I18nD`].forEach(t=>e.component(t,RG))),e.directive(`t`,xG(t))}var TG=AV(`global-vue-i18n`);function EG(e={}){let t=__VUE_I18N_LEGACY_API__&&YV(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=YV(e.globalInjection)?e.globalInjection:!0,r=new Map,[i,a]=OG(e,t),o=AV(``);function s(e){return r.get(e)||null}function c(e,t){r.set(e,t)}function l(e){r.delete(e)}let u={get mode(){return __VUE_I18N_LEGACY_API__&&t?`legacy`:`composition`},async install(e,...r){if(e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,u),eH(r[0])){let e=r[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let i=null;!t&&n&&(i=LG(e,u.global)),__VUE_I18N_FULL_INSTALL__&&wG(e,u,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(dG(a,a.__composer,u));let s=e.unmount;e.unmount=()=>{i&&i(),u.dispose(),s()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:s,__setInstance:c,__deleteInstance:l};return u}function DG(e={}){let t=tG();if(t==null)throw HW(VW.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw HW(VW.NOT_INSTALLED);let n=kG(t),r=jG(n),i=QW(t),a=AG(e,i);if(a===`global`)return $W(r,e,i),r;if(a===`parent`){let i=MG(n,t,e.__useComponent);return i??=r,i}let o=n,s=o.__getInstance(t);if(s==null){let n=LV({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=cG(n),o.__composerExtend&&(s[JW]=o.__composerExtend(s)),PG(o,t,s),o.__setInstance(t,s)}return s}function OG(e,t){let n=ae(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>uG(e)):n.run(()=>cG(e));if(r==null)throw HW(VW.UNEXPECTED_ERROR);return[n,r]}function kG(e){let t=j(e.isCE?TG:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw HW(e.isCE?VW.NOT_INSTALLED_WITH_PROVIDE:VW.UNEXPECTED_ERROR);return t}function AG(e,t){return IV(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function jG(e){return e.mode===`composition`?e.global:e.global.__composer}function MG(e,t,n=!1){let r=null,i=t.root,a=NG(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){let e=t.__getInstance(a);e!=null&&(r=e.__composer,n&&r&&!r[qW]&&(r=null))}if(r!=null||i===a)break;a=a.parent}return r}function NG(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function PG(e,t,n){o(()=>{},t),s(()=>{let r=n;e.__deleteInstance(t);let i=r[JW];i&&(i(),delete r[JW])},t)}var FG=[`locale`,`fallbackLocale`,`availableLocales`],IG=[`t`,`rt`,`d`,`n`,`tm`,`te`];function LG(e,t){let n=Object.create(null);return FG.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw HW(VW.UNEXPECTED_ERROR);let i=ee(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,IG.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw HW(VW.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,IG.forEach(t=>{delete e.config.globalProperties[`$${t}`]})}}var RG=fe({name:`i18n-d`,props:LV({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pG),setup(e,t){let n=e.i18n||DG({useScope:e.scope,__useComponent:!0});return vG(e,t,mW,(...e)=>n[WW](...e))}});if(BW(),JU(gU),XU(VU),QU(OU),__INTLIFY_PROD_DEVTOOLS__){let e=VV();e.__INTLIFY__=!0,vU(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var zG=new Set([`en`,`zh`]),BG=Se(`app-locale`,`en`);f(BG,e=>{zG.has(e)||(BG.value=`en`)},{immediate:!0});var VG={premium:{premium:`premium`,UpgradeNow:`Upgrade Now`},marketing:{hero:{learnPeople:`More than 1K+ people joined`,getMore:`Get more`,title:`Do you dare to use 365 days to witness a complete transformation?`,subtitle:`The hourglass of time is bursting with thunder. When the quantitative change breaks through the critical point, every morning and evening you work hard will turn into a sea of stars!`},features:{title:`Features`,feature1:{title:`Use modern technology`,description:`More modern component library, free to customize each component`},feature2:{title:`Easy to deploy`,description:`One-click deployment to your server, no complicated configuration required`},feature3:{title:`Open source code`,description:`Every line of code is open source, you can modify and extend it freely`},feature4:{title:`Community support`,description:`You can find help in the community and share your experience`}},evaluation:{title:`Evaluation`,subtitle:`These evaluations are simulated data, not actual data`},pricingPlans:{title:`Pricing Plans`,subtitle:`Choose the plan that suits you`,buy:`Get it now`,hobby:{title:`Hobby`,description:`Suitable for beginners`,price:`399`,discount:`599`,unit:`$`,billing:{cycle:``,period:``},features:{feature1:`Use part of the website code`,feature2:`Get the latest technology updates`,feature3:`More than 100 components`,feature4:`More than 100 pages`}},starter:{title:`Starter`,description:`Suitable for beginners`,price:`599`,discount:`899`,unit:`$`,billing:{cycle:``,period:``},features:{feature1:`Use the entire site's code`,feature2:`Read the excellent online documentation`,feature3:`Get the latest technical updates`,feature4:`Over 200 components`,feature5:`Over 200 pages`}},business:{title:`Business`,description:`Suitable for beginners`,price:`199`,discount:`399`,unit:`$`,billing:{cycle:``,period:``},features:{feature1:`Use the entire site's code`,feature2:`Read the excellent online documentation`,feature3:`Get the latest technical updates`,feature4:`Over 200 components`,feature5:`Over 200 pages`,feature6:`Private assistant support`}}},setup:{title:`Setup`,subtitle:`Just 3 minutes to start using`}},login:`Login`,email:`Email`,password:`Password`,download:`Download`,logout:`Log out`,forgotPassword:`Forgot password?`,register:`Register`,language:`English`,forgotPasswordPage:{continue:`continue`},homePage:{searchKeyWords:`Search Menu`},changeLanguage:`Change Language`},HG={premium:{premium:`会员计划`,UpgradeNow:`现在升级`},marketing:{hero:{learnPeople:`超过 1K+ 人加入`,getMore:`获取更多`,title:`每个0.01%的进化都在熔铸命运的质变,敢不敢用365天见证脱胎换骨?`,subtitle:`时光沙漏正迸发着惊雷,当量变冲破临界点,你埋首耕耘的每个晨昏都将化作星辰大海!`},features:{title:`功能`,feature1:{title:`使用现代技术`,description:`更加现代化的组件库,自由定制每一个组件`},feature2:{title:`部署简单`,description:`一键部署到您的服务器,无需复杂的配置`},feature3:{title:`代码开源`,description:`每一行代码都是开源的,您可以自由地修改和扩展`},feature4:{title:`社区支持`,description:`你可以在社区中找到帮助,也可以分享你的经验`}},evaluation:{title:`评价`,subtitle:`这些评价都是模拟数据,并非实际数据`},pricingPlans:{title:`定价计划`,subtitle:`选择最适合你的计划`,buy:`立即购买`,hobby:{title:`业余爱好者`,description:`三年提高技能`,price:`399`,discount:`599`,unit:`¥`,billing:{cycle:``,period:``},features:{feature1:`使用网站部分代码`,feature2:`获取最新的技术更新`,feature3:`超过 100 个组件`,feature4:`超过 100 个页面`}},starter:{title:`入门计划`,description:`五年提高技能`,price:`599`,discount:`899`,unit:`¥`,billing:{cycle:``,period:``},features:{feature1:`使用网站全部代码`,feature2:`阅读精彩的在线文档`,feature3:`获取最新的技术更新`,feature4:`超过 200 个组件`,feature5:`超过 200 个页面`}},business:{title:`商务计划`,description:`十年提高技能`,price:`199`,discount:`399`,unit:`$`,billing:{cycle:``,period:``},features:{feature1:`使用网站全部代码`,feature2:`阅读精彩的在线文档`,feature3:`获取最新的技术更新`,feature4:`超过 200 个组件`,feature5:`超过 200 个页面`,feature6:`私人助理支持`}}},setup:{title:`快速开始`,subtitle:`只需 3 分钟即可开始使用`}},login:`登录`,email:`邮箱`,password:`密码`,download:`下载`,logout:`退出`,forgotPassword:`忘记密码?`,register:`注册`,language:`中文`,forgotPasswordPage:{continue:`下一步`},homePage:{searchKeyWords:`搜索菜单`},changeLanguage:`语言切换`};function UG(e){let t=EG({legacy:!1,locale:BG.value,fallbackLocale:`en`,messages:{zh:HG,en:VG}});e.use(t)}var WG=c(t(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(r):typeof e==`object`?t.exports=r():n.NProgress=r()})(e,function(){var e={};e.version=`0.2.0`;var t=e.settings={minimum:.08,easing:`ease`,positionUsing:``,speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:`[role="bar"]`,spinnerSelector:`[role="spinner"]`,parent:`body`,template:`<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>`};e.configure=function(e){var n,r;for(n in e)r=e[n],r!==void 0&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=r===1?null:r;var c=e.render(!s),l=c.querySelector(t.barSelector),u=t.speed,d=t.easing;return c.offsetWidth,a(function(n){t.positionUsing===``&&(t.positionUsing=e.getPositioningCSS()),o(l,i(r,u,d)),r===1?(o(c,{transition:`none`,opacity:1}),c.offsetWidth,setTimeout(function(){o(c,{transition:`all `+u+`ms linear`,opacity:0}),setTimeout(function(){e.remove(),n()},u)},u)):setTimeout(n,u)}),this},e.isStarted=function(){return typeof e.status==`number`},e.start=function(){e.status||e.set(0);var n=function(){setTimeout(function(){e.status&&(e.trickle(),n())},t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return!t&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(t){var r=e.status;return r?(typeof t!=`number`&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},(function(){var t=0,n=0;e.promise=function(r){return!r||r.state()===`resolved`?this:(n===0&&e.start(),t++,n++,r.always(function(){n--,n===0?(t=0,e.done()):e.set((t-n)/t)}),this)}})(),e.render=function(n){if(e.isRendered())return document.getElementById(`nprogress`);c(document.documentElement,`nprogress-busy`);var i=document.createElement(`div`);i.id=`nprogress`,i.innerHTML=t.template;var a=i.querySelector(t.barSelector),s=n?`-100`:r(e.status||0),l=document.querySelector(t.parent),u;return o(a,{transition:`all 0 linear`,transform:`translate3d(`+s+`%,0,0)`}),t.showSpinner||(u=i.querySelector(t.spinnerSelector),u&&d(u)),l!=document.body&&c(l,`nprogress-custom-parent`),l.appendChild(i),i},e.remove=function(){l(document.documentElement,`nprogress-busy`),l(document.querySelector(t.parent),`nprogress-custom-parent`);var e=document.getElementById(`nprogress`);e&&d(e)},e.isRendered=function(){return!!document.getElementById(`nprogress`)},e.getPositioningCSS=function(){var e=document.body.style,t=`WebkitTransform`in e?`Webkit`:`MozTransform`in e?`Moz`:`msTransform`in e?`ms`:`OTransform`in e?`O`:``;return t+`Perspective`in e?`translate3d`:t+`Transform`in e?`translate`:`margin`};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return(-1+e)*100}function i(e,n,i){var a=t.positionUsing===`translate3d`?{transform:`translate3d(`+r(e)+`%,0,0)`}:t.positionUsing===`translate`?{transform:`translate(`+r(e)+`%,0)`}:{"margin-left":r(e)+`%`};return a.transition=`all `+n+`ms `+i,a}var a=(function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),e.length==1&&t()}})(),o=(function(){var e=[`Webkit`,`O`,`Moz`,`ms`],t={};function n(e){return e.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}function r(t){var n=document.body.style;if(t in n)return t;for(var r=e.length,i=t.charAt(0).toUpperCase()+t.slice(1),a;r--;)if(a=e[r]+i,a in n)return a;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n=arguments,r,i;if(n.length==2)for(r in t)i=t[r],i!==void 0&&t.hasOwnProperty(r)&&a(e,r,i);else a(e,n[1],n[2])}})();function s(e,t){return(typeof e==`string`?e:u(e)).indexOf(` `+t+` `)>=0}function c(e,t){var n=u(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function l(e,t){var n=u(e),r;s(e,t)&&(r=n.replace(` `+t+` `,` `),e.className=r.substring(1,r.length-1))}function u(e){return(` `+(e.className||``)+` `).replace(/\s+/gi,` `)}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})}))(),1);function GG(){WG.default.configure({showSpinner:!0,speed:500,trickleSpeed:200})}function KG(e,t){if(e==null)return;let n=e;for(let e=0;e<t.length;e++){if(n===void 0||n[t[e]]===void 0)return;if(n===null||n[t[e]]===null)return null;n=n[t[e]]}return n}function qG(e,t,n){if(n.length===0)return t;let r=n[0];return n.length>1&&(t=qG(typeof e!=`object`||!e||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function JG(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);let n={};for(let t in e)n[t]=e[t];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);let n={};for(let t in e)n[t]=e[t];return n}return qG(e,JG(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function YG(e,t){return t.map(e=>e.split(`.`)).map(t=>[t,KG(e,t)]).filter(e=>e[1]!==void 0).reduce((e,t)=>qG(e,t[1],t[0]),{})}function XG(e,t){return t.map(e=>e.split(`.`)).reduce((e,t)=>JG(e,t),e)}function ZG(e,{storage:t,serializer:n,key:r,debug:i,pick:a,omit:o,beforeHydrate:s,afterHydrate:c},l,u=!0){try{u&&s?.(l);let i=t.getItem(r);if(i){let t=n.deserialize(i),r=a?YG(t,a):t,s=o?XG(r,o):r;e.$patch(s)}u&&c?.(l)}catch(e){i&&console.error(`[pinia-plugin-persistedstate]`,e)}}function QG(e,{storage:t,serializer:n,key:r,debug:i,pick:a,omit:o}){try{let i=a?YG(e,a):e,s=o?XG(i,o):i,c=n.serialize(s);t.setItem(r,c)}catch(e){i&&console.error(`[pinia-plugin-persistedstate]`,e)}}function $G(e,t){return typeof e==`function`?e(t):typeof e==`string`?e:t}function eK(e,t,n){let{pinia:r,store:i,options:{persist:a=n}}=e;if(!a)return;if(!(i.$id in r.state.value)){let e=r._s.get(i.$id.replace(`__hot:`,``));e&&Promise.resolve().then(()=>e.$persist());return}let o=(Array.isArray(a)?a:a===!0?[{}]:[a]).map(t);i.$hydrate=({runHooks:t=!0}={})=>{o.forEach(n=>{ZG(i,n,e,t)})},i.$persist=()=>{o.forEach(e=>{QG(i.$state,e)})},o.forEach(t=>{ZG(i,t,e),i.$subscribe((e,n)=>QG(n,t),{detached:!0})})}function tK(e={}){return function(t){eK(t,n=>{let r=$G(n.key,t.store.$id);return{key:(e.key?e.key:e=>e)(r),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:e=>JSON.stringify(e),deserialize:e=>JSON.parse(e)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate??e.beforeHydrate,afterHydrate:n.afterHydrate??e.afterHydrate,pick:n.pick,omit:n.omit}},e.auto??!1)}}var nK=Qe(),rK=tK({storage:sessionStorage});nK.use(rK);function iK(e){e.use(nK)}var aK=`modulepreload`,oK=function(e){return`/`+e},sK={},cK=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=oK(t,n),t in sK)return;sK[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:aK,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},lK=e=>{let t={},n=Object.assign({"/src/layouts/blank.vue":()=>cK(()=>import(`./blank-CMTlG4KS.js`),__vite__mapDeps([0,1,2])),"/src/layouts/default.vue":()=>cK(()=>import(`./default-BZC6m2oi.js`),__vite__mapDeps([3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),"/src/layouts/marketing.vue":()=>cK(()=>import(`./marketing-CblqIyi4.js`),__vite__mapDeps([52,1,2,4,5,6,7,8,9,10,11,12,15,16,22,17,23,24,25,26,27,28,29,30,31,32,44,53,54]))});Object.entries(n).forEach(([e,n])=>{let r=e.replace(`/src/layouts/`,``).replace(`.vue`,``);t[r]=n});function r(e,n=!0){return e.map(e=>{if(e.children?.length>0&&(e.children=r(e.children,!1)),n){if(!e.component&&e.children?.find(e=>(e.path===``||e.path===`/`)&&e.meta?.isLayout))return e;if(e.meta?.layout!==!1)return{path:e.path,component:t[e.meta?.layout||`default`],children:e.path===`/`?[e]:[{...e,path:``}],meta:{isLayout:!0}}}return e.meta?.layout?{path:e.path,component:t[e.meta?.layout],children:[{...e,path:``}],meta:{isLayout:!0}}:e})}return r(e)},uK=typeof document<`u`;function dK(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function fK(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&dK(e.default)}var pK=Object.assign;function mK(e,t){let n={};for(let r in t){let i=t[r];n[r]=gK(i)?i.map(e):e(i)}return n}var hK=()=>{},gK=Array.isArray;function _K(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var vK=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),yK=Symbol(``);vK.MATCHER_NOT_FOUND,vK.NAVIGATION_GUARD_REDIRECT,vK.NAVIGATION_ABORTED,vK.NAVIGATION_CANCELLED,vK.NAVIGATION_DUPLICATED;function bK(e,t){return pK(Error(),{type:e,[yK]:!0},t)}function xK(e,t){return e instanceof Error&&yK in e&&(t==null||!!(e.type&t))}var SK=Symbol(``),CK=Symbol(``),wK=Symbol(``),TK=Symbol(``),EK=Symbol(``);function DK(){return j(wK)}function OK(e){return j(TK)}var kK=/#/g,AK=/&/g,jK=/\//g,MK=/=/g,NK=/\?/g,PK=/\+/g,FK=/%5B/g,IK=/%5D/g,LK=/%5E/g,RK=/%60/g,zK=/%7B/g,BK=/%7C/g,VK=/%7D/g,HK=/%20/g;function UK(e){return e==null?``:encodeURI(``+e).replace(BK,`|`).replace(FK,`[`).replace(IK,`]`)}function WK(e){return UK(e).replace(zK,`{`).replace(VK,`}`).replace(LK,`^`)}function GK(e){return UK(e).replace(PK,`%2B`).replace(HK,`+`).replace(kK,`%23`).replace(AK,`%26`).replace(RK,"`").replace(zK,`{`).replace(VK,`}`).replace(LK,`^`)}function KK(e){return GK(e).replace(MK,`%3D`)}function qK(e){return UK(e).replace(kK,`%23`).replace(NK,`%3F`)}function JK(e){return qK(e).replace(jK,`%2F`)}function YK(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var XK=/\/$/,ZK=e=>e.replace(XK,``);function QK(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=oq(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:YK(o)}}function $K(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function eq(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function tq(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&nq(t.matched[r],n.matched[i])&&rq(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function nq(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rq(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!iq(e[n],t[n]))return!1;return!0}function iq(e,t){return gK(e)?aq(e,t):gK(t)?aq(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function aq(e,t){return gK(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function oq(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var sq={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},cq=function(e){return e.pop=`pop`,e.push=`push`,e}({}),lq=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function uq(e){if(!e)if(uK){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),ZK(e)}var dq=/^[^#]+#/;function fq(e,t){return e.replace(dq,`#`)+t}function pq(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var mq=()=>({left:window.scrollX,top:window.scrollY});function hq(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=pq(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function gq(e,t){return(history.state?history.state.position-t:-1)+e}var _q=new Map;function vq(e,t){_q.set(e,t)}function yq(e){let t=_q.get(e);return _q.delete(e),t}function bq(e){return typeof e==`string`||e&&typeof e==`object`}function xq(e){return typeof e==`string`||typeof e==`symbol`}function Sq(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(PK,` `),i=r.indexOf(`=`),a=YK(i<0?r:r.slice(0,i)),o=i<0?null:YK(r.slice(i+1));if(a in t){let e=t[a];gK(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Cq(e){let t=``;for(let n in e){let r=e[n];if(n=KK(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(gK(r)?r.map(e=>e&&GK(e)):[r&&GK(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function wq(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=gK(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Tq(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Eq(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(bK(vK.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):bq(e)?c(bK(vK.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Dq(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(dK(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Eq(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=fK(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Eq(c,n,r,o,e,i)()}))}}return a}function Oq(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>nq(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>nq(e,s))||i.push(s))}return[n,r,i]}var kq=()=>location.protocol+`//`+location.host;function Aq(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),eq(n,``)}return eq(n,e)+r+i}function jq(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Aq(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:cq.pop,direction:u?u>0?lq.forward:lq.back:lq.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(pK({},e.state,{scroll:mq()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Mq(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?mq():null}}function Nq(e){let{history:t,location:n}=window,r={value:Aq(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:kq()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,pK({},t.state,Mq(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=pK({},i.value,t.state,{forward:e,scroll:mq()});a(o.current,o,!0),a(e,pK({},Mq(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Pq(e){e=uq(e);let t=Nq(e),n=jq(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=pK({location:``,base:e,go:r,createHref:fq.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}var Fq=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Iq=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Iq||{}),Lq={type:Fq.Static,value:``},Rq=/[a-zA-Z0-9_]/;function zq(e){if(!e)return[[]];if(e===`/`)return[[Lq]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Iq.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Iq.Static?a.push({type:Fq.Static,value:l}):n===Iq.Param||n===Iq.ParamRegExp||n===Iq.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Fq.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Iq.ParamRegExp){r=n,n=Iq.EscapeNext;continue}switch(n){case Iq.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Iq.Param):f();break;case Iq.EscapeNext:f(),n=r;break;case Iq.Param:c===`(`?n=Iq.ParamRegExp:Rq.test(c)?f():(d(),n=Iq.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Iq.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Iq.ParamRegExpEnd:u+=c;break;case Iq.ParamRegExpEnd:d(),n=Iq.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Iq.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Bq=`[^/]+?`,Vq={sensitive:!1,strict:!1,start:!0,end:!0},Hq=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(Hq||{}),Uq=/[.+*?^${}()[\]/\\]/g;function Wq(e,t){let n=pK({},Vq,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[Hq.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=Hq.Segment+(n.sensitive?Hq.BonusCaseSensitive:0);if(o.type===Fq.Static)r||(i+=`/`),i+=o.value.replace(Uq,`\\$&`),s+=Hq.Static;else if(o.type===Fq.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Bq;if(u!==Bq){s+=Hq.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=Hq.Dynamic,c&&(s+=Hq.BonusOptional),n&&(s+=Hq.BonusRepeatable),u===`.*`&&(s+=Hq.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=Hq.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Fq.Static)n+=e.value;else if(e.type===Fq.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(gK(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=gK(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Gq(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Hq.Static+Hq.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Hq.Static+Hq.Segment?1:-1:0}function Kq(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Gq(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(qq(r))return 1;if(qq(i))return-1}return i.length-r.length}function qq(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Jq={strict:!1,end:!0,sensitive:!1};function Yq(e,t,n){let r=pK(Wq(zq(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Xq(e,t){let n=[],r=new Map;t=_K(Jq,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Qq(e);s.aliasOf=r&&r.record;let l=_K(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Qq(pK({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Yq(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!eJ(d)&&o(e.name)),iJ(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:hK}function o(e){if(xq(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=nJ(e,n);n.splice(t,0,e),e.record.name&&!eJ(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw bK(vK.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=pK(Zq(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Zq(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw bK(vK.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=pK({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:tJ(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Zq(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Qq(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:$q(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function $q(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function eJ(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tJ(e){return e.reduce((e,t)=>pK(e,t.meta),{})}function nJ(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Kq(e,t[i])<0?r=i:n=i+1}let i=rJ(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function rJ(e){let t=e;for(;t=t.parent;)if(iJ(t)&&Kq(e,t)===0)return t}function iJ({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function aJ(e){let t=j(wK),n=j(TK),i=O(()=>{let n=r(e.to);return t.resolve(n)}),a=O(()=>{let{matched:e}=i.value,{length:t}=e,r=e[t-1],a=n.matched;if(!r||!a.length)return-1;let o=a.findIndex(nq.bind(null,r));if(o>-1)return o;let s=uJ(e[t-2]);return t>1&&uJ(r)===s&&a[a.length-1].path!==s?a.findIndex(nq.bind(null,e[t-2])):o}),o=O(()=>a.value>-1&&lJ(n.params,i.value.params)),s=O(()=>a.value>-1&&a.value===n.matched.length-1&&rq(n.params,i.value.params));function c(n={}){if(cJ(n)){let n=t[r(e.replace)?`replace`:`push`](r(e.to)).catch(hK);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:i,href:O(()=>i.value.href),isActive:o,isExactActive:s,navigate:c}}function oJ(e){return e.length===1?e[0]:e}var sJ=fe({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:aJ,setup(e,{slots:t}){let n=D(aJ(e)),{options:r}=j(wK),a=O(()=>({[dJ(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[dJ(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&oJ(t.default(n));return e.custom?r:i(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},r)}}});function cJ(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function lJ(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!gK(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function uJ(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var dJ=(e,t,n)=>e??t??n,fJ=fe({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:a}){let o=j(EK),s=O(()=>e.route||o.value),c=j(CK,0),l=O(()=>{let e=r(c),{matched:t}=s.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),u=O(()=>s.value.matched[l.value]);n(CK,O(()=>l.value+1)),n(SK,u),n(EK,s);let d=ne();return f(()=>[d.value,u.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!nq(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let n=s.value,r=e.name,o=u.value,c=o&&o.components[r];if(!c)return pJ(a.default,{Component:c,route:n});let l=o.props[r],f=i(c,pK({},l?l===!0?n.params:typeof l==`function`?l(n):l:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[r]=null)},ref:d}));return pJ(a.default,{Component:f,route:n})||f}}});function pJ(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var mJ=fJ;function hJ(e){let t=Xq(e.routes,e),n=e.parseQuery||Sq,i=e.stringifyQuery||Cq,a=e.history,o=Tq(),s=Tq(),c=Tq(),l=b(sq),u=sq;uK&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let f=mK.bind(null,e=>``+e),p=mK.bind(null,JK),m=mK.bind(null,YK);function h(e,n){let r,i;return xq(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function g(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function _(){return t.getRoutes().map(e=>e.record)}function v(e){return!!t.getRecordMatcher(e)}function y(e,r){if(r=pK({},r||l.value),typeof e==`string`){let i=QK(n,e,r.path),o=t.resolve({path:i.path},r),s=a.createHref(i.fullPath);return pK(i,o,{params:m(o.params),hash:YK(i.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=pK({},e,{path:QK(n,e.path,r.path).path});else{let t=pK({},e.params);for(let e in t)t[e]??delete t[e];o=pK({},e,{params:p(t)}),r.params=p(r.params)}let s=t.resolve(o,r),c=e.hash||``;s.params=f(m(s.params));let u=$K(i,pK({},e,{hash:WK(c),path:s.path})),d=a.createHref(u);return pK({fullPath:u,hash:c,query:i===Cq?wq(e.query):e.query||{}},s,{redirectedFrom:void 0,href:d})}function x(e){return typeof e==`string`?QK(n,e,l.value.path):pK({},e)}function S(e,t){if(u!==e)return bK(vK.NAVIGATION_CANCELLED,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(pK(x(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=x(i):{path:i},i.params={}),pK({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=u=y(e),r=l.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,r);if(c)return E(pK(x(c),{state:typeof c==`object`?pK({},a,c.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&tq(i,r,n)&&(f=bK(vK.NAVIGATION_DUPLICATED,{to:d,from:r}),le(r,r,!0,!1)),(f?Promise.resolve(f):A(d,r)).catch(e=>xK(e)?xK(e,vK.NAVIGATION_GUARD_REDIRECT)?e:ce(e):oe(e,d,r)).then(e=>{if(e){if(xK(e,vK.NAVIGATION_GUARD_REDIRECT))return E(pK({replace:s},x(e.to),{state:typeof e.to==`object`?pK({},a,e.to.state):a,force:o}),t||d)}else e=ee(d,r,!0,s,a);return j(d,r,e),e})}function D(e,t){let n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function O(e){let t=fe.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function A(e,t){let n,[r,i,a]=Oq(e,t);n=Dq(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Eq(r,e,t))});let c=D.bind(null,e,t);return n.push(c),M(n).then(()=>{n=[];for(let r of o.list())n.push(Eq(r,e,t));return n.push(c),M(n)}).then(()=>{n=Dq(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Eq(r,e,t))});return n.push(c),M(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(gK(r.beforeEnter))for(let i of r.beforeEnter)n.push(Eq(i,e,t));else n.push(Eq(r.beforeEnter,e,t));return n.push(c),M(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Dq(a,`beforeRouteEnter`,e,t,O),n.push(c),M(n))).then(()=>{n=[];for(let r of s.list())n.push(Eq(r,e,t));return n.push(c),M(n)}).catch(e=>xK(e,vK.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function j(e,t,n){c.list().forEach(r=>O(()=>r(e,t,n)))}function ee(e,t,n,r,i){let o=S(e,t);if(o)return o;let s=t===sq,c=uK?history.state:{};n&&(r||s?a.replace(e.fullPath,pK({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,le(e,t,n,s),ce()}let te;function ne(){te||=a.listen((e,t,n)=>{if(!pe.listening)return;let r=y(e),i=T(r,pe.currentRoute.value);if(i){E(pK(i,{replace:!0,force:!0}),r).catch(hK);return}u=r;let o=l.value;uK&&vq(gq(o.fullPath,n.delta),mq()),A(r,o).catch(e=>xK(e,vK.NAVIGATION_ABORTED|vK.NAVIGATION_CANCELLED)?e:xK(e,vK.NAVIGATION_GUARD_REDIRECT)?(E(pK(x(e.to),{force:!0}),r).then(e=>{xK(e,vK.NAVIGATION_ABORTED|vK.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===cq.pop&&a.go(-1,!1)}).catch(hK),Promise.reject()):(n.delta&&a.go(-n.delta,!1),oe(e,r,o))).then(e=>{e||=ee(r,o,!1),e&&(n.delta&&!xK(e,vK.NAVIGATION_CANCELLED)?a.go(-n.delta,!1):n.type===cq.pop&&xK(e,vK.NAVIGATION_ABORTED|vK.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),j(r,o,e)}).catch(hK)})}let re=Tq(),ie=Tq(),ae;function oe(e,t,n){ce(e);let r=ie.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function se(){return ae&&l.value!==sq?Promise.resolve():new Promise((e,t)=>{re.add([e,t])})}function ce(e){return ae||(ae=!e,ne(),re.list().forEach(([t,n])=>e?n(e):t()),re.reset()),e}function le(t,n,r,i){let{scrollBehavior:a}=e;if(!uK||!a)return Promise.resolve();let o=!r&&yq(gq(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return d().then(()=>a(t,n,o)).then(e=>e&&hq(e)).catch(e=>oe(e,t,n))}let ue=e=>a.go(e),de,fe=new Set,pe={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:_,resolve:y,options:e,push:C,replace:w,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:ie.add,isReady:se,install(e){e.component(`RouterLink`,sJ),e.component(`RouterView`,mJ),e.config.globalProperties.$router=pe,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>r(l)}),uK&&!de&&l.value===sq&&(de=!0,C(a.location).catch(e=>{}));let t={};for(let e in sq)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(wK,pe),e.provide(TK,k(t)),e.provide(EK,l);let n=e.unmount;fe.add(e),e.unmount=function(){fe.delete(e),fe.size<1&&(u=sq,te&&te(),te=null,l.value=sq,de=!1,ae=!1),n()}}};function M(e){return e.reduce((e,t)=>e.then(()=>O(t)),Promise.resolve())}return pe}var gJ=[{path:`/`,name:`/`,component:()=>cK(()=>import(`./pages-Dv-ehIUk.js`),__vite__mapDeps([55,2,56])),meta:{layout:!1}},{path:`/:path(.*)`,name:`/[...path]`,component:()=>cK(()=>import(`./_...path_--hBBhOWH.js`),__vite__mapDeps([57,2,56,15,16,10,58])),meta:{layout:!1}},{path:`/ai-talk`,children:[{path:``,name:`/ai-talk/`,component:()=>cK(()=>import(`./ai-talk-Dzzgvb7m.js`),__vite__mapDeps([59,1,2,5,6,7,8,9,10,11,12,15,16,17,60,61,42,35,43,44,23,24,25,26,27,28,29,48,41,62,39,40,63,64,65,66]))}]},{path:`/apps`,children:[{path:``,name:`/apps/`,component:()=>cK(()=>import(`./apps-DZpITRQ7.js`),__vite__mapDeps([67,2,56,4,6,5,7,8,9,10,11,12,15,16,17,68,24,69,70,35,25,26,41,29,71,21,23,27,28,72,73,74,75])),meta:{auth:!0}}]},{path:`/auth`,name:`/auth`,component:()=>cK(()=>import(`./auth-BtCfhGjJ.js`),__vite__mapDeps([76,1,2,56])),children:[{path:``,name:`/auth/`,component:()=>cK(()=>import(`./auth-B4ff_GWT.js`),__vite__mapDeps([77,2]))},{path:`forgot-password`,name:`/auth/forgot-password`,component:()=>cK(()=>import(`./forgot-password-amCfawsw.js`),__vite__mapDeps([78,2,15,16,10,47,5,12,72,73,74,79,75,80]))},{path:`monisuo-sign-in`,name:`/auth/monisuo-sign-in`,component:()=>cK(()=>import(`./monisuo-sign-in-B3wOhg65.js`),__vite__mapDeps([81,2,4,13,14,15,16,10,82,17,83,5,69,35,9,62,25,26,7,8,27,11,29,40,41,63,12,47,64,72,73,74,79,75,51]))},{path:`otp`,name:`/auth/otp`,component:()=>cK(()=>import(`./otp-RmrxEFFV.js`),__vite__mapDeps([84,2,5,15,16,10,7,8,26,40,41,11,28,12,72,73,74,79,80]))},{path:`sign-in`,name:`/auth/sign-in`,component:()=>cK(()=>import(`./sign-in-w56jdFeb.js`),__vite__mapDeps([85,2,4,13,14,15,16,10,51,80,5,86,1,87,82,17,47,12,39,72,73,74,75]))},{path:`sign-in-2`,name:`/auth/sign-in-2`,component:()=>cK(()=>import(`./sign-in-2-BjlOMZz3.js`),__vite__mapDeps([88,2,4,13,14,15,16,10,51,80,5,86,1,87,82,17,47,12,39,72,73,74,75]))},{path:`sign-up`,name:`/auth/sign-up`,component:()=>cK(()=>import(`./sign-up-CEiP85AD.js`),__vite__mapDeps([89,2,4,15,16,10,47,5,12,39,72,73,74,75,80,86,1]))}],meta:{layout:!1}},{path:`/billing`,children:[{path:``,name:`/billing/`,component:()=>cK(()=>import(`./billing-Ba3Gt545.js`),__vite__mapDeps([90,1,2,91,5,6,7,8,9,10,11,12,15,16,17,92,93,94,60,69,95,20,68,24,70,35,25,26,41,29,21,32,82,61,34,36,37,38,27,39,40,83,62,63,23,28,30,48,96,50,97,18,98,46,99,45,100,71,72,73,74,79]))}]},{path:`/dashboard`,children:[{path:``,name:`/dashboard/`,component:()=>cK(()=>import(`./dashboard-CnaOJdkw.js`),__vite__mapDeps([101,2,5,6,7,8,9,10,11,12,15,16,68,24,17,69,70,35,25,26,41,29,43,44,102,27,62,64,71,21,23,28,72,73,74]))}]},{path:`/errors`,name:`/errors`,component:()=>cK(()=>import(`./errors-D5EVPI9N.js`),__vite__mapDeps([103,1,2,56])),children:[{path:``,name:`/errors/`,component:()=>cK(()=>import(`./errors-DogkSAwy.js`),__vite__mapDeps([104,2]))},{path:`401`,name:`/errors/401`,component:()=>cK(()=>import(`./401-1hBBRNHs.js`),__vite__mapDeps([105,2,56,15,16,10,58])),meta:{layout:`blank`}},{path:`403`,name:`/errors/403`,component:()=>cK(()=>import(`./403-C9Bm6JLD.js`),__vite__mapDeps([106,2,56,15,16,10,58])),meta:{layout:`blank`}},{path:`404`,name:`/errors/404`,component:()=>cK(()=>import(`./404-DWkZxnwT.js`),__vite__mapDeps([107,2,56,15,16,10,58])),meta:{layout:`blank`}},{path:`500`,name:`/errors/500`,component:()=>cK(()=>import(`./500-D_eEsISP.js`),__vite__mapDeps([108,2,56,15,16,10,58])),meta:{layout:`blank`}},{path:`503`,name:`/errors/503`,component:()=>cK(()=>import(`./503-TOQI2p6_.js`),__vite__mapDeps([109,2,56,15,16,10,58])),meta:{layout:`blank`}}],meta:{layout:!1}},{path:`/help-center`,name:`/help-center`,component:()=>cK(()=>import(`./help-center-dlbizL7O.js`),__vite__mapDeps([110,2,6,5,7,8,9,10,11,12,15,16,71,21,17,23,24,25,26,27,28,29,111]))},{path:`/marketing`,children:[{path:``,name:`/marketing/`,component:()=>cK(()=>import(`./marketing-DPFj0wnl.js`),__vite__mapDeps([112,1,2,56,4,5,15,16,10,93,17,94,44,8,12,53,72,113])),meta:{layout:`marketing`}},{path:`hello`,name:`/marketing/hello`,component:()=>cK(()=>import(`./hello-HvpjFX2g.js`),__vite__mapDeps([114,1,2]))}]},{path:`/monisuo`,children:[{path:`analytics`,name:`/monisuo/analytics`,component:()=>cK(()=>import(`./analytics-6feOrkzj.js`),__vite__mapDeps([115,2,4,6,5,7,8,9,10,11,12,13,14,15,16,82,17,71,21,23,24,25,26,27,28,29,96,72,73]))},{path:`coins`,name:`/monisuo/coins`,component:()=>cK(()=>import(`./coins-0eWuEPsE.js`),__vite__mapDeps([116,2,4,6,5,7,8,9,10,11,12,13,14,15,16,68,24,17,69,70,35,25,26,41,29,82,36,37,47,64,71,21,23,27,28,96,72,100,75,97]))},{path:`dashboard`,name:`/monisuo/dashboard`,component:()=>cK(()=>import(`./dashboard-Bg07rgRO.js`),__vite__mapDeps([117,2,4,6,5,7,8,9,10,11,12,13,14,15,16,82,17,71,21,23,24,25,26,27,28,29,72,73]))},{path:`orders`,name:`/monisuo/orders`,component:()=>cK(()=>import(`./orders-BMSnsW_u.js`),__vite__mapDeps([118,2,4,6,5,7,8,9,10,11,12,13,14,15,16,68,24,17,69,70,35,25,26,41,29,82,36,37,47,102,27,62,64,71,21,23,28,96,72,100,75,97]))},{path:`users`,name:`/monisuo/users`,component:()=>cK(()=>import(`./users-BzlTGk87.js`),__vite__mapDeps([119,2,4,6,5,7,8,9,10,11,12,13,14,15,16,68,24,17,69,70,35,25,26,41,29,82,36,37,47,64,71,21,23,27,28,96,72,100,75,97]))}]},{path:`/prop-components`,children:[{path:``,name:`/prop-components/`,component:()=>cK(()=>import(`./prop-components-Ox-FRmTX.js`),__vite__mapDeps([120,2,6,5,7,8,9,10,11,12,15,16,17,18,20,71,21,23,24,25,26,27,28,29]))}]},{path:`/settings`,children:[{path:``,name:`/settings/`,component:()=>cK(()=>import(`./settings-Dk3H9hkV.js`),__vite__mapDeps([121,2,122,16,47,5,10,12,29,7,8,6,9,11,15,68,24,17,69,70,35,25,26,41,123,39,64,71,21,23,27,28,124,75,65,125,19]))},{path:`account`,name:`/settings/account`,component:()=>cK(()=>import(`./account-CM76XAov.js`),__vite__mapDeps([126,2,122,16,47,5,10,12,29,7,8,6,9,11,15,17,69,70,95,20,21,34,24,35,25,26,36,37,38,27,39,40,41,64,71,23,28,124,75,125,19]))},{path:`appearance`,name:`/settings/appearance`,component:()=>cK(()=>import(`./appearance-EX9f5qtw.js`),__vite__mapDeps([127,2,14,122,16,47,5,10,12,29,7,8,6,9,11,15,68,24,17,69,70,35,25,26,41,82,128,32,27,62,40,123,39,64,71,21,23,28,124,125,19]))},{path:`display`,name:`/settings/display`,component:()=>cK(()=>import(`./display-DuU_Wjhi.js`),__vite__mapDeps([129,2,122,16,47,5,10,12,29,7,8,6,9,11,15,83,69,17,35,62,25,26,27,40,41,63,39,64,71,21,23,24,28,124,125,19]))},{path:`notifications`,name:`/settings/notifications`,component:()=>cK(()=>import(`./notifications-DMwOhSyp.js`),__vite__mapDeps([130,2,122,16,47,5,10,12,29,7,8,6,9,11,15,35,83,69,17,62,25,26,27,40,41,63,128,32,39,64,71,21,23,24,28,124,125,19]))}]},{path:`/tasks`,children:[{path:``,name:`/tasks/`,component:()=>cK(()=>import(`./tasks-1TGSN81P.js`),__vite__mapDeps([131,2,24,5,10,8,11,7,12,91,1,6,9,15,16,17,92,93,94,60,69,95,20,68,70,35,25,26,41,29,21,32,82,61,34,36,37,38,27,39,40,83,62,63,23,28,30,48,96,50,97,132,122,47,128,123,99,45,100,64,124,75,33,31,71,111,49]))}]},{path:`/users`,children:[{path:``,name:`/users/`,component:()=>cK(()=>import(`./users-C38xL-P1.js`),__vite__mapDeps([133,2,91,1,5,6,7,8,9,10,11,12,15,16,17,92,93,94,60,69,95,20,68,24,70,35,25,26,41,29,21,32,82,61,34,36,37,38,27,39,40,83,62,63,23,28,30,48,96,50,97,122,47,123,99,45,100,64,71,49,75,65,66,134]))}]}],_J=ft(`auth`,()=>{let e=ne(!1),t=ne(localStorage.getItem(`admin_token`)),n=ne(localStorage.getItem(`admin_info`)?JSON.parse(localStorage.getItem(`admin_info`)):null);t.value&&(e.value=!0);function r(n){t.value=n,localStorage.setItem(`admin_token`,n),e.value=!0}function i(e){n.value=e,localStorage.setItem(`admin_info`,JSON.stringify(e))}function a(){t.value=null,n.value=null,e.value=!1,localStorage.removeItem(`admin_token`),localStorage.removeItem(`admin_info`)}return{isLogin:e,token:t,adminInfo:n,setToken:r,setAdminInfo:i,logout:a}}),vJ=[`/monisuo/`];function yJ(e){e.beforeEach((e,t)=>{let{isLogin:n}=pt(_J(nK)),i=vJ.some(t=>e.path.startsWith(t));if((e.meta.auth||i)&&!r(n)){if(i&&e.name!==`/auth/monisuo-sign-in`)return{name:`/auth/monisuo-sign-in`,query:{redirect:e.fullPath}};if(e.meta.auth&&e.name!==`/auth/sign-in`)return{name:`/auth/sign-in`,query:{redirect:e.fullPath}}}})}function bJ(e){e.beforeEach(()=>(WG.default.start(),!0)),e.afterEach(()=>(WG.default.done(),!0))}function xJ(e){bJ(e),yJ(e)}var SJ=hJ({history:Pq(),routes:lK(gJ),scrollBehavior(){return{left:0,top:0,behavior:`smooth`}}});xJ(SJ);function CJ(e){e.use(SJ)}var wJ=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},TJ={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},EJ=new class{#e=TJ;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function DJ(e){setTimeout(e,0)}var OJ=typeof window>`u`||`Deno`in globalThis;function kJ(){}function AJ(e,t){return typeof e==`function`?e(t):e}function jJ(e){return typeof e==`number`&&e>=0&&e!==1/0}function MJ(e,t){return Math.max(e+(t||0)-Date.now(),0)}function NJ(e,t){return typeof e==`function`?e(t):e}function PJ(e,t){return typeof e==`function`?e(t):e}function FJ(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==LJ(o,t.options))return!1}else if(!zJ(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function IJ(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(RJ(t.options.mutationKey)!==RJ(a))return!1}else if(!zJ(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function LJ(e,t){return(t?.queryKeyHashFn||RJ)(e)}function RJ(e){return JSON.stringify(e,(e,t)=>WJ(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function zJ(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>zJ(e[n],t[n])):!1}var BJ=Object.prototype.hasOwnProperty;function VJ(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=UJ(e)&&UJ(t);if(!r&&!(WJ(e)&&WJ(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:BJ.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=VJ(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function HJ(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function UJ(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function WJ(e){if(!GJ(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!GJ(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function GJ(e){return Object.prototype.toString.call(e)===`[object Object]`}function KJ(e){return new Promise(t=>{EJ.setTimeout(t,e)})}function qJ(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:VJ(e,t)}function JJ(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function YJ(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var XJ=Symbol();function ZJ(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===XJ?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function QJ(e,t){return typeof e==`function`?e(...t):!!e}function $J(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var eY=new class extends wJ{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!OJ&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}};function tY(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var nY=DJ;function rY(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=nY,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var iY=rY(),aY=new class extends wJ{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!OJ&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function oY(e){return Math.min(1e3*2**e,3e4)}function sY(e){return(e??`online`)===`online`?aY.isOnline():!0}var cY=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function lY(e){let t=!1,n=0,r,i=tY(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new cY(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>eY.isFocused()&&(e.networkMode===`always`||aY.isOnline())&&e.canRun(),u=()=>sY(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(OJ?0:3),o=e.retryDelay??oY,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),KJ(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var uY=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jJ(this.gcTime)&&(this.#e=EJ.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(OJ?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(EJ.clearTimeout(this.#e),void 0)}},dY=class extends uY{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=mY(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=mY(this.options);e.data!==void 0&&(this.setState(pY(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=qJ(this.state.data,e,this.options);return this.#s({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(kJ).catch(kJ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>PJ(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===XJ||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>NJ(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:!MJ(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=ZJ(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#s({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=lY({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof cY&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#s({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#s({type:`pause`})},onContinue:()=>{this.#s({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof cY){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#s({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...fY(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...pY(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),iY.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function fY(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sY(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function pY(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function mY(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}function hY(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{$J(e,()=>t.signal,()=>n=!0)},u=ZJ(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?YJ:JJ;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?_Y:gY,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:gY(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function gY(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function _Y(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var vY=class extends uY{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||yY(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=lY({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,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{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),iY.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function yY(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var bY=class extends wJ{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new vY({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=xY(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=xY(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=xY(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=xY(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){iY.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>IJ(t,e))}findAll(e={}){return this.getAll().filter(t=>IJ(e,t))}notify(e){iY.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return iY.batch(()=>Promise.all(e.map(e=>e.continue().catch(kJ))))}};function xY(e){return e.options.scope?.id}var SY=class extends wJ{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??LJ(r,t),a=this.get(i);return a||(a=new dY({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){iY.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>FJ(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>FJ(e,t)):t}notify(e){iY.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){iY.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){iY.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},CY=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new SY,this.#t=e.mutationCache||new bY,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=eY.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=aY.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(NJ(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=AJ(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return iY.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;iY.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return iY.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=iY.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(kJ).catch(kJ)}invalidateQueries(e,t={}){return iY.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=iY.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(kJ)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(kJ)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(NJ(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kJ).catch(kJ)}fetchInfiniteQuery(e){return e.behavior=hY(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kJ).catch(kJ)}ensureInfiniteQueryData(e){return e.behavior=hY(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return aY.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(RJ(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{zJ(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(RJ(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{zJ(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=LJ(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===XJ&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},wY=`VUE_QUERY_CLIENT`;function TY(e){return`${wY}${e?`:${e}`:``}`}function EY(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function DY(e,t,n=``,r=0){if(t){let i=t(e,n,r);if(i===void 0&&ee(e)||i!==void 0)return i}if(Array.isArray(e))return e.map((e,n)=>DY(e,t,String(n),r+1));if(typeof e==`object`&&AY(e)){let n=Object.entries(e).map(([e,n])=>[e,DY(n,t,e,r+1)]);return Object.fromEntries(n)}return e}function OY(e,t){return DY(e,t)}function kY(e,t=!1){return OY(e,(e,n,i)=>{if(i===1&&n===`queryKey`)return kY(e,!0);if(t&&jY(e))return kY(e(),t);if(ee(e))return kY(r(e),t)})}function AY(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function jY(e){return typeof e==`function`}var MY=class extends SY{find(e){return super.find(kY(e))}findAll(e={}){return super.findAll(kY(e))}},NY=class extends bY{find(e){return super.find(kY(e))}findAll(e={}){return super.findAll(kY(e))}},PY=class extends CY{constructor(e={}){let t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new MY,mutationCache:e.mutationCache||new NY};super(t),this.isRestoring=ne(!1)}isFetching(e={}){return super.isFetching(kY(e))}isMutating(e={}){return super.isMutating(kY(e))}getQueryData(e){return super.getQueryData(kY(e))}ensureQueryData(e){return super.ensureQueryData(kY(e))}getQueriesData(e){return super.getQueriesData(kY(e))}setQueryData(e,t,n={}){return super.setQueryData(kY(e),t,kY(n))}setQueriesData(e,t,n={}){return super.setQueriesData(kY(e),t,kY(n))}getQueryState(e){return super.getQueryState(kY(e))}removeQueries(e={}){return super.removeQueries(kY(e))}resetQueries(e={},t={}){return super.resetQueries(kY(e),kY(t))}cancelQueries(e={},t={}){return super.cancelQueries(kY(e),kY(t))}invalidateQueries(e={},t={}){let n=kY(e),r=kY(t);if(super.invalidateQueries({...n,refetchType:`none`},r),n.refetchType===`none`)return Promise.resolve();let i={...n,type:n.refetchType??n.type??`active`};return d().then(()=>super.refetchQueries(i,r))}refetchQueries(e={},t={}){return super.refetchQueries(kY(e),kY(t))}fetchQuery(e){return super.fetchQuery(kY(e))}prefetchQuery(e){return super.prefetchQuery(kY(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(kY(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(kY(e))}setDefaultOptions(e){super.setDefaultOptions(kY(e))}setQueryDefaults(e,t){super.setQueryDefaults(kY(e),kY(t))}getQueryDefaults(e){return super.getQueryDefaults(kY(e))}setMutationDefaults(e,t){super.setMutationDefaults(kY(e),kY(t))}getMutationDefaults(e){return super.getMutationDefaults(kY(e))}},FY={install:(e,t={})=>{let n=TY(t.queryClientKey),r;r=`queryClient`in t&&t.queryClient?t.queryClient:new PY(`queryClientConfig`in t?t.queryClientConfig:void 0),OJ||r.mount();let i=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);let[e,n]=t.clientPersister(r);i=e,n.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),t.clientPersisterOnSuccess?.(r)})}let a=()=>{r.unmount(),i()};if(e.onUnmount)e.onUnmount(a);else{let t=e.unmount;e.unmount=function(){a(),t()}}e.provide(n,r)}},IY=new PY({defaultOptions:{queries:{staleTime:1e3*60*5}}});function LY(e){e.use(FY,{enableDevtoolsV6Plugin:!0,queryClient:IY})}function RY(e){Sn(),GG(),gn(e),LY(e),UG(e),iK(e),CJ(e),e.use(DV)}var zY=Object.freeze({status:`aborted`});function Y(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var BY=Symbol(`zod_brand`),VY=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},HY=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},UY={};function WY(e){return e&&Object.assign(UY,e),UY}var GY=A({BIGINT_FORMAT_RANGES:()=>OX,Class:()=>ZX,NUMBER_FORMAT_RANGES:()=>DX,aborted:()=>IX,allowsEval:()=>gX,assert:()=>XY,assertEqual:()=>KY,assertIs:()=>JY,assertNever:()=>YY,assertNotEqual:()=>qY,assignProp:()=>oX,base64ToUint8Array:()=>GX,base64urlToUint8Array:()=>qX,cached:()=>$Y,captureStackTrace:()=>mX,cleanEnum:()=>WX,cleanRegex:()=>tX,clone:()=>wX,cloneDef:()=>cX,createTransparentProxy:()=>TX,defineLazy:()=>iX,esc:()=>fX,escapeRegex:()=>CX,extend:()=>jX,finalizeIssue:()=>zX,floatSafeRemainder:()=>nX,getElementAtPath:()=>lX,getEnumValues:()=>ZY,getLengthableOrigin:()=>VX,getParsedType:()=>bX,getSizableOrigin:()=>BX,hexToUint8Array:()=>YX,isObject:()=>hX,isPlainObject:()=>_X,issue:()=>UX,joinValues:()=>X,jsonStringifyReplacer:()=>QY,merge:()=>NX,mergeDefs:()=>sX,normalizeParams:()=>Z,nullish:()=>eX,numKeys:()=>yX,objectClone:()=>aX,omit:()=>AX,optionalKeys:()=>EX,parsedType:()=>HX,partial:()=>PX,pick:()=>kX,prefixIssues:()=>LX,primitiveTypes:()=>SX,promiseAllObject:()=>uX,propertyKeyTypes:()=>xX,randomString:()=>dX,required:()=>FX,safeExtend:()=>MX,shallowClone:()=>vX,slugify:()=>pX,stringifyPrimitive:()=>Q,uint8ArrayToBase64:()=>KX,uint8ArrayToBase64url:()=>JX,uint8ArrayToHex:()=>XX,unwrapMessage:()=>RX});function KY(e){return e}function qY(e){return e}function JY(e){}function YY(e){throw Error(`Unexpected value in exhaustive check`)}function XY(e){}function ZY(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function X(e,t=`|`){return e.map(e=>Q(e)).join(t)}function QY(e,t){return typeof t==`bigint`?t.toString():t}function $Y(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function eX(e){return e==null}function tX(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function nX(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var rX=Symbol(`evaluating`);function iX(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==rX)return r===void 0&&(r=rX,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function aX(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function oX(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function sX(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function cX(e){return sX(e._zod.def)}function lX(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function uX(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function dX(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function fX(e){return JSON.stringify(e)}function pX(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var mX=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function hX(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var gX=$Y(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function _X(e){if(hX(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(hX(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function vX(e){return _X(e)?{...e}:Array.isArray(e)?[...e]:e}function yX(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var bX=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},xX=new Set([`string`,`number`,`symbol`]),SX=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]);function CX(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function wX(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Z(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function TX(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function Q(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function EX(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var DX={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},OX={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function kX(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return wX(e,sX(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return oX(this,`shape`,e),e},checks:[]}))}function AX(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return wX(e,sX(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return oX(this,`shape`,r),r},checks:[]}))}function jX(e,t){if(!_X(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return wX(e,sX(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return oX(this,`shape`,n),n}}))}function MX(e,t){if(!_X(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return wX(e,sX(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return oX(this,`shape`,n),n}}))}function NX(e,t){return wX(e,sX(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return oX(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function PX(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return wX(t,sX(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return oX(this,`shape`,i),i},checks:[]}))}function FX(e,t,n){return wX(t,sX(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return oX(this,`shape`,i),i}}))}function IX(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function LX(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function RX(e){return typeof e==`string`?e:e?.message}function zX(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=RX(e.inst?._zod.def?.error?.(e))??RX(t?.error?.(e))??RX(n.customError?.(e))??RX(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function BX(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function VX(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function HX(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function UX(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function WX(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function GX(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function KX(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function qX(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return GX(t+`=`.repeat((4-t.length%4)%4))}function JX(e){return KX(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function YX(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function XX(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var ZX=class{constructor(...e){}},QX=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,QY,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},$X=Y(`$ZodError`,QX),eZ=Y(`$ZodError`,QX,{Parent:Error});function tZ(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function nZ(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}function rZ(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},s.path));else if(s.code===`invalid_key`)r({issues:s.issues},s.path);else if(s.code===`invalid_element`)r({issues:s.issues},s.path);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??={},(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??=[],(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function iZ(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function aZ(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${iZ(e.path)}`);return t.join(`
|
||
`)}var oZ=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new VY;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>zX(e,a,WY())));throw mX(t,i?.callee),t}return o.value},sZ=oZ(eZ),cZ=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>zX(e,a,WY())));throw mX(t,i?.callee),t}return o.value},lZ=cZ(eZ),uZ=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new VY;return a.issues.length?{success:!1,error:new(e??$X)(a.issues.map(e=>zX(e,i,WY())))}:{success:!0,data:a.value}},dZ=uZ(eZ),fZ=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>zX(e,i,WY())))}:{success:!0,data:a.value}},pZ=fZ(eZ),mZ=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return oZ(e)(t,n,i)},hZ=mZ(eZ),gZ=e=>(t,n,r)=>oZ(e)(t,n,r),_Z=gZ(eZ),vZ=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return cZ(e)(t,n,i)},yZ=vZ(eZ),bZ=e=>async(t,n,r)=>cZ(e)(t,n,r),xZ=bZ(eZ),SZ=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return uZ(e)(t,n,i)},CZ=SZ(eZ),wZ=e=>(t,n,r)=>uZ(e)(t,n,r),TZ=wZ(eZ),EZ=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return fZ(e)(t,n,i)},DZ=EZ(eZ),OZ=e=>async(t,n,r)=>fZ(e)(t,n,r),kZ=OZ(eZ),AZ=A({base64:()=>rQ,base64url:()=>iQ,bigint:()=>mQ,boolean:()=>_Q,browserEmail:()=>YZ,cidrv4:()=>tQ,cidrv6:()=>nQ,cuid:()=>jZ,cuid2:()=>MZ,date:()=>lQ,datetime:()=>fQ,domain:()=>oQ,duration:()=>LZ,e164:()=>sQ,email:()=>WZ,emoji:()=>ZZ,extendedDuration:()=>RZ,guid:()=>zZ,hex:()=>SQ,hostname:()=>aQ,html5Email:()=>GZ,idnEmail:()=>JZ,integer:()=>hQ,ipv4:()=>QZ,ipv6:()=>$Z,ksuid:()=>FZ,lowercase:()=>bQ,mac:()=>eQ,md5_base64:()=>EQ,md5_base64url:()=>DQ,md5_hex:()=>TQ,nanoid:()=>IZ,null:()=>vQ,number:()=>gQ,rfc5322Email:()=>KZ,sha1_base64:()=>kQ,sha1_base64url:()=>AQ,sha1_hex:()=>OQ,sha256_base64:()=>MQ,sha256_base64url:()=>NQ,sha256_hex:()=>jQ,sha384_base64:()=>FQ,sha384_base64url:()=>IQ,sha384_hex:()=>PQ,sha512_base64:()=>RQ,sha512_base64url:()=>zQ,sha512_hex:()=>LQ,string:()=>pQ,time:()=>dQ,ulid:()=>NZ,undefined:()=>yQ,unicodeEmail:()=>qZ,uppercase:()=>xQ,uuid:()=>BZ,uuid4:()=>VZ,uuid6:()=>HZ,uuid7:()=>UZ,xid:()=>PZ}),jZ=/^[cC][^\s-]{8,}$/,MZ=/^[0-9a-z]+$/,NZ=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,PZ=/^[0-9a-vA-V]{20}$/,FZ=/^[A-Za-z0-9]{27}$/,IZ=/^[a-zA-Z0-9_-]{21}$/,LZ=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,RZ=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,zZ=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,BZ=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,VZ=BZ(4),HZ=BZ(6),UZ=BZ(7),WZ=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,GZ=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,KZ=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,qZ=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,JZ=qZ,YZ=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,XZ=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function ZZ(){return new RegExp(XZ,`u`)}var QZ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,$Z=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,eQ=e=>{let t=CX(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},tQ=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,nQ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rQ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,iQ=/^[A-Za-z0-9_-]*$/,aQ=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,oQ=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,sQ=/^\+[1-9]\d{6,14}$/,cQ=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,lQ=RegExp(`^${cQ}$`);function uQ(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function dQ(e){return RegExp(`^${uQ(e)}$`)}function fQ(e){let t=uQ({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${cQ}T(?:${r})$`)}var pQ=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},mQ=/^-?\d+n?$/,hQ=/^-?\d+$/,gQ=/^-?\d+(?:\.\d+)?$/,_Q=/^(?:true|false)$/i,vQ=/^null$/i,yQ=/^undefined$/i,bQ=/^[^A-Z]*$/,xQ=/^[^a-z]*$/,SQ=/^[0-9a-fA-F]*$/;function CQ(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function wQ(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var TQ=/^[0-9a-fA-F]{32}$/,EQ=CQ(22,`==`),DQ=wQ(22),OQ=/^[0-9a-fA-F]{40}$/,kQ=CQ(27,`=`),AQ=wQ(27),jQ=/^[0-9a-fA-F]{64}$/,MQ=CQ(43,`=`),NQ=wQ(43),PQ=/^[0-9a-fA-F]{96}$/,FQ=CQ(64,``),IQ=wQ(64),LQ=/^[0-9a-fA-F]{128}$/,RQ=CQ(86,`==`),zQ=wQ(86),BQ=Y(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),VQ={number:`number`,bigint:`bigint`,object:`date`},HQ=Y(`$ZodCheckLessThan`,(e,t)=>{BQ.init(e,t);let n=VQ[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),UQ=Y(`$ZodCheckGreaterThan`,(e,t)=>{BQ.init(e,t);let n=VQ[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),WQ=Y(`$ZodCheckMultipleOf`,(e,t)=>{BQ.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):nX(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),GQ=Y(`$ZodCheckNumberFormat`,(e,t)=>{BQ.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=DX[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=hQ)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),KQ=Y(`$ZodCheckBigIntFormat`,(e,t)=>{BQ.init(e,t);let[n,r]=OX[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),qQ=Y(`$ZodCheckMaxSize`,(e,t)=>{var n;BQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eX(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:BX(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),JQ=Y(`$ZodCheckMinSize`,(e,t)=>{var n;BQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eX(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:BX(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),YQ=Y(`$ZodCheckSizeEquals`,(e,t)=>{var n;BQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eX(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:BX(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),XQ=Y(`$ZodCheckMaxLength`,(e,t)=>{var n;BQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eX(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=VX(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ZQ=Y(`$ZodCheckMinLength`,(e,t)=>{var n;BQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eX(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=VX(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),QQ=Y(`$ZodCheckLengthEquals`,(e,t)=>{var n;BQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eX(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=VX(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),$Q=Y(`$ZodCheckStringFormat`,(e,t)=>{var n,r;BQ.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),e$=Y(`$ZodCheckRegex`,(e,t)=>{$Q.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),t$=Y(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=bQ,$Q.init(e,t)}),n$=Y(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=xQ,$Q.init(e,t)}),r$=Y(`$ZodCheckIncludes`,(e,t)=>{BQ.init(e,t);let n=CX(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),i$=Y(`$ZodCheckStartsWith`,(e,t)=>{BQ.init(e,t);let n=RegExp(`^${CX(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),a$=Y(`$ZodCheckEndsWith`,(e,t)=>{BQ.init(e,t);let n=RegExp(`.*${CX(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function o$(e,t,n){e.issues.length&&t.issues.push(...LX(n,e.issues))}var s$=Y(`$ZodCheckProperty`,(e,t)=>{BQ.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>o$(n,e,t.property));o$(n,e,t.property)}}),c$=Y(`$ZodCheckMimeType`,(e,t)=>{BQ.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),l$=Y(`$ZodCheckOverwrite`,(e,t)=>{BQ.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),u$=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
||
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
||
`))}},d$={major:4,minor:3,patch:6},f$=Y(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=d$;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=IX(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new VY;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=IX(e,t))});else{if(e.issues.length===t)continue;r||=IX(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(IX(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new VY;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new VY;return o.then(e=>t(e,r,a))}return t(o,r,a)}}iX(e,`~standard`,()=>({validate:t=>{try{let n=dZ(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return pZ(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),p$=Y(`$ZodString`,(e,t)=>{f$.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??pQ(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),m$=Y(`$ZodStringFormat`,(e,t)=>{$Q.init(e,t),p$.init(e,t)}),h$=Y(`$ZodGUID`,(e,t)=>{t.pattern??=zZ,m$.init(e,t)}),g$=Y(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=BZ(e)}else t.pattern??=BZ();m$.init(e,t)}),_$=Y(`$ZodEmail`,(e,t)=>{t.pattern??=WZ,m$.init(e,t)}),v$=Y(`$ZodURL`,(e,t)=>{m$.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),y$=Y(`$ZodEmoji`,(e,t)=>{t.pattern??=ZZ(),m$.init(e,t)}),b$=Y(`$ZodNanoID`,(e,t)=>{t.pattern??=IZ,m$.init(e,t)}),x$=Y(`$ZodCUID`,(e,t)=>{t.pattern??=jZ,m$.init(e,t)}),S$=Y(`$ZodCUID2`,(e,t)=>{t.pattern??=MZ,m$.init(e,t)}),C$=Y(`$ZodULID`,(e,t)=>{t.pattern??=NZ,m$.init(e,t)}),w$=Y(`$ZodXID`,(e,t)=>{t.pattern??=PZ,m$.init(e,t)}),T$=Y(`$ZodKSUID`,(e,t)=>{t.pattern??=FZ,m$.init(e,t)}),E$=Y(`$ZodISODateTime`,(e,t)=>{t.pattern??=fQ(t),m$.init(e,t)}),D$=Y(`$ZodISODate`,(e,t)=>{t.pattern??=lQ,m$.init(e,t)}),O$=Y(`$ZodISOTime`,(e,t)=>{t.pattern??=dQ(t),m$.init(e,t)}),k$=Y(`$ZodISODuration`,(e,t)=>{t.pattern??=LZ,m$.init(e,t)}),A$=Y(`$ZodIPv4`,(e,t)=>{t.pattern??=QZ,m$.init(e,t),e._zod.bag.format=`ipv4`}),j$=Y(`$ZodIPv6`,(e,t)=>{t.pattern??=$Z,m$.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),M$=Y(`$ZodMAC`,(e,t)=>{t.pattern??=eQ(t.delimiter),m$.init(e,t),e._zod.bag.format=`mac`}),N$=Y(`$ZodCIDRv4`,(e,t)=>{t.pattern??=tQ,m$.init(e,t)}),P$=Y(`$ZodCIDRv6`,(e,t)=>{t.pattern??=nQ,m$.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function F$(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var I$=Y(`$ZodBase64`,(e,t)=>{t.pattern??=rQ,m$.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{F$(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function L$(e){if(!iQ.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return F$(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var R$=Y(`$ZodBase64URL`,(e,t)=>{t.pattern??=iQ,m$.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{L$(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),z$=Y(`$ZodE164`,(e,t)=>{t.pattern??=sQ,m$.init(e,t)});function B$(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var V$=Y(`$ZodJWT`,(e,t)=>{m$.init(e,t),e._zod.check=n=>{B$(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),H$=Y(`$ZodCustomStringFormat`,(e,t)=>{m$.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),U$=Y(`$ZodNumber`,(e,t)=>{f$.init(e,t),e._zod.pattern=e._zod.bag.pattern??gQ,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),W$=Y(`$ZodNumberFormat`,(e,t)=>{GQ.init(e,t),U$.init(e,t)}),G$=Y(`$ZodBoolean`,(e,t)=>{f$.init(e,t),e._zod.pattern=_Q,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),K$=Y(`$ZodBigInt`,(e,t)=>{f$.init(e,t),e._zod.pattern=mQ,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),q$=Y(`$ZodBigIntFormat`,(e,t)=>{KQ.init(e,t),K$.init(e,t)}),J$=Y(`$ZodSymbol`,(e,t)=>{f$.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),Y$=Y(`$ZodUndefined`,(e,t)=>{f$.init(e,t),e._zod.pattern=yQ,e._zod.values=new Set([void 0]),e._zod.optin=`optional`,e._zod.optout=`optional`,e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),X$=Y(`$ZodNull`,(e,t)=>{f$.init(e,t),e._zod.pattern=vQ,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Z$=Y(`$ZodAny`,(e,t)=>{f$.init(e,t),e._zod.parse=e=>e}),Q$=Y(`$ZodUnknown`,(e,t)=>{f$.init(e,t),e._zod.parse=e=>e}),$$=Y(`$ZodNever`,(e,t)=>{f$.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),e1=Y(`$ZodVoid`,(e,t)=>{f$.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),t1=Y(`$ZodDate`,(e,t)=>{f$.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}});function n1(e,t,n){e.issues.length&&t.issues.push(...LX(n,e.issues)),t.value[n]=e.value}var r1=Y(`$ZodArray`,(e,t)=>{f$.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>n1(t,n,e))):n1(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function i1(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...LX(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function a1(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=EX(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function o1(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>i1(e,n,i,t,u))):i1(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var s1=Y(`$ZodObject`,(e,t)=>{if(f$.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=$Y(()=>a1(t));iX(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=hX,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>i1(n,t,e,s,r))):i1(i,t,e,s,r)}return i?o1(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),c1=Y(`$ZodObjectJIT`,(e,t)=>{s1.init(e,t);let n=e._zod.parse,r=$Y(()=>a1(t)),i=e=>{let t=new u$([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=fX(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=fX(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
|
||
if (${n}.issues.length) {
|
||
if (${o} in input) {
|
||
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
||
...iss,
|
||
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
||
})));
|
||
}
|
||
}
|
||
|
||
if (${n}.value === undefined) {
|
||
if (${o} in input) {
|
||
newResult[${o}] = undefined;
|
||
}
|
||
} else {
|
||
newResult[${o}] = ${n}.value;
|
||
}
|
||
|
||
`):t.write(`
|
||
if (${n}.issues.length) {
|
||
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
||
...iss,
|
||
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
||
})));
|
||
}
|
||
|
||
if (${n}.value === undefined) {
|
||
if (${o} in input) {
|
||
newResult[${o}] = undefined;
|
||
}
|
||
} else {
|
||
newResult[${o}] = ${n}.value;
|
||
}
|
||
|
||
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=hX,s=!UY.jitless,c=s&&gX.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?o1([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function l1(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!IX(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>zX(e,r,WY())))}),t)}var u1=Y(`$ZodUnion`,(e,t)=>{f$.init(e,t),iX(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),iX(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),iX(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),iX(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>tX(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>l1(t,i,e,a)):l1(s,i,e,a)}});function d1(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>zX(e,r,WY())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}var f1=Y(`$ZodXor`,(e,t)=>{u1.init(e,t),t.inclusive=!1;let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);t instanceof Promise?(s.push(t),o=!0):s.push(t)}return o?Promise.all(s).then(t=>d1(t,i,e,a)):d1(s,i,e,a)}}),p1=Y(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,u1.init(e,t);let n=e._zod.parse;iX(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=$Y(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!hX(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),m1=Y(`$ZodIntersection`,(e,t)=>{f$.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>g1(e,t,n)):g1(e,i,a)}});function h1(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(_X(e)&&_X(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=h1(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=h1(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function g1(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),IX(e))return e;let o=h1(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var _1=Y(`$ZodTuple`,(e,t)=>{f$.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=[...n].reverse().findIndex(e=>e._zod.optin!==`optional`),c=s===-1?0:n.length-s;if(!t.rest){let t=a.length>n.length,i=a.length<c-1;if(t||i)return r.issues.push({...t?{code:`too_big`,maximum:n.length,inclusive:!0}:{code:`too_small`,minimum:n.length},input:a,inst:e,origin:`array`}),r}let l=-1;for(let e of n){if(l++,l>=a.length&&l>=c)continue;let t=e._zod.run({value:a[l],issues:[]},i);t instanceof Promise?o.push(t.then(e=>v1(e,r,l))):v1(t,r,l)}if(t.rest){let e=a.slice(n.length);for(let n of e){l++;let e=t.rest._zod.run({value:n,issues:[]},i);e instanceof Promise?o.push(e.then(e=>v1(e,r,l))):v1(e,r,l)}}return o.length?Promise.all(o).then(()=>r):r}});function v1(e,t,n){e.issues.length&&t.issues.push(...LX(n,e.issues)),t.value[n]=e.value}var y1=Y(`$ZodRecord`,(e,t)=>{f$.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!_X(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...LX(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...LX(e,o.issues)),n.value[e]=o.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&gQ.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>zX(e,r,WY())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...LX(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...LX(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),b1=Y(`$ZodMap`,(e,t)=>{f$.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{x1(t,a,n,o,i,e,r)})):x1(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}});function x1(e,t,n,r,i,a,o){e.issues.length&&(xX.has(typeof r)?n.issues.push(...LX(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>zX(e,o,WY()))})),t.issues.length&&(xX.has(typeof r)?n.issues.push(...LX(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>zX(e,o,WY()))})),n.value.set(e.value,t.value)}var S1=Y(`$ZodSet`,(e,t)=>{f$.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>C1(e,n))):C1(i,n)}return a.length?Promise.all(a).then(()=>n):n}});function C1(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var w1=Y(`$ZodEnum`,(e,t)=>{f$.init(e,t);let n=ZY(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>xX.has(typeof e)).map(e=>typeof e==`string`?CX(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),T1=Y(`$ZodLiteral`,(e,t)=>{if(f$.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?CX(e):e?CX(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),E1=Y(`$ZodFile`,(e,t)=>{f$.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),D1=Y(`$ZodTransform`,(e,t)=>{f$.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new HY(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new VY;return n.value=i,n}});function O1(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var k1=Y(`$ZodOptional`,(e,t)=>{f$.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,iX(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),iX(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${tX(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>O1(t,e.value)):O1(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),A1=Y(`$ZodExactOptional`,(e,t)=>{k1.init(e,t),iX(e._zod,`values`,()=>t.innerType._zod.values),iX(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),j1=Y(`$ZodNullable`,(e,t)=>{f$.init(e,t),iX(e._zod,`optin`,()=>t.innerType._zod.optin),iX(e._zod,`optout`,()=>t.innerType._zod.optout),iX(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${tX(e.source)}|null)$`):void 0}),iX(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),M1=Y(`$ZodDefault`,(e,t)=>{f$.init(e,t),e._zod.optin=`optional`,iX(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>N1(e,t)):N1(r,t)}});function N1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var P1=Y(`$ZodPrefault`,(e,t)=>{f$.init(e,t),e._zod.optin=`optional`,iX(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),F1=Y(`$ZodNonOptional`,(e,t)=>{f$.init(e,t),iX(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>I1(t,e)):I1(i,e)}});function I1(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var L1=Y(`$ZodSuccess`,(e,t)=>{f$.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new HY(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),R1=Y(`$ZodCatch`,(e,t)=>{f$.init(e,t),iX(e._zod,`optin`,()=>t.innerType._zod.optin),iX(e._zod,`optout`,()=>t.innerType._zod.optout),iX(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>zX(e,n,WY()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>zX(e,n,WY()))},input:e.value}),e.issues=[]),e)}}),z1=Y(`$ZodNaN`,(e,t)=>{f$.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),B1=Y(`$ZodPipe`,(e,t)=>{f$.init(e,t),iX(e._zod,`values`,()=>t.in._zod.values),iX(e._zod,`optin`,()=>t.in._zod.optin),iX(e._zod,`optout`,()=>t.out._zod.optout),iX(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>V1(e,t.in,n)):V1(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>V1(e,t.out,n)):V1(r,t.out,n)}});function V1(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var H1=Y(`$ZodCodec`,(e,t)=>{f$.init(e,t),iX(e._zod,`values`,()=>t.in._zod.values),iX(e._zod,`optin`,()=>t.in._zod.optin),iX(e._zod,`optout`,()=>t.out._zod.optout),iX(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>U1(e,t,n)):U1(r,t,n)}else{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>U1(e,t,n)):U1(r,t,n)}}});function U1(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>W1(e,r,t.out,n)):W1(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>W1(e,r,t.in,n)):W1(e,r,t.in,n)}}function W1(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var G1=Y(`$ZodReadonly`,(e,t)=>{f$.init(e,t),iX(e._zod,`propValues`,()=>t.innerType._zod.propValues),iX(e._zod,`values`,()=>t.innerType._zod.values),iX(e._zod,`optin`,()=>t.innerType?._zod?.optin),iX(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(K1):K1(r)}});function K1(e){return e.value=Object.freeze(e.value),e}var q1=Y(`$ZodTemplateLiteral`,(e,t)=>{f$.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=t.startsWith(`^`)?1:0,i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||SX.has(typeof e))n.push(CX(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),J1=Y(`$ZodFunction`,(e,t)=>(f$.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?sZ(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?sZ(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await lZ(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await lZ(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(e._def.output&&e._def.output._zod.def.type===`promise`?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new _1({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),Y1=Y(`$ZodPromise`,(e,t)=>{f$.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),X1=Y(`$ZodLazy`,(e,t)=>{f$.init(e,t),iX(e._zod,`innerType`,()=>t.getter()),iX(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),iX(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),iX(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),iX(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Z1=Y(`$ZodCustom`,(e,t)=>{BQ.init(e,t),f$.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Q1(t,n,r,e));Q1(i,n,r,e)}});function Q1(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(UX(e))}}var $1=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Q(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${X(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}};function e0(){return{localeError:$1()}}var t0=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${Q(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}};function n0(){return{localeError:t0()}}function r0(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}var i0=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${Q(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=r0(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=r0(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}};function a0(){return{localeError:i0()}}var o0=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${Q(e.values[0])}`:`Невалидна опция: очаквано едно от ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}};function s0(){return{localeError:o0()}}var c0=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${Q(e.values[0])}`:`Opció invàlida: s'esperava una de ${X(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}};function l0(){return{localeError:c0()}}var u0=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${Q(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${X(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}};function d0(){return{localeError:u0()}}var f0=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${Q(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}};function p0(){return{localeError:f0()}}var m0=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${Q(e.values[0])}`:`Ungültige Option: erwartet eine von ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}};function h0(){return{localeError:m0()}}var g0=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Q(e.values[0])}`:`Invalid option: expected one of ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function _0(){return{localeError:g0()}}var v0=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${Q(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}};function y0(){return{localeError:v0()}}var b0=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${Q(e.values[0])}`:`Opción inválida: se esperaba una de ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}};function x0(){return{localeError:b0()}}var S0=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: میبایست instanceof ${e.expected} میبود، ${i} دریافت شد`:`ورودی نامعتبر: میبایست ${t} میبود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: میبایست ${Q(e.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${X(e.values,`|`)} میبود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${X(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}};function C0(){return{localeError:S0()}}var w0=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${Q(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}};function T0(){return{localeError:w0()}}var E0=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`,number:`nombre`,array:`tableau`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${Q(e.values[0])} attendu`:`Option invalide : une valeur parmi ${X(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Trop grand : ${e.origin??`valeur`} doit ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`élément(s)`}`:`Trop grand : ${e.origin??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Trop petit : ${e.origin} doit ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : ${e.origin} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${X(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}};function D0(){return{localeError:E0()}}var O0=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${Q(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${X(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}};function k0(){return{localeError:O0()}}var A0=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=HX(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${Q(t.values[0])}`;let e=t.values.map(e=>Q(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${X(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}};function j0(){return{localeError:A0()}}var M0=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${Q(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}};function N0(){return{localeError:M0()}}function P0(e,t,n){return Math.abs(e)===1?t:n}function F0(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}var I0=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${Q(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=P0(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${F0(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${F0(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=P0(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${F0(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${F0(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${X(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${F0(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${F0(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}};function L0(){return{localeError:I0()}}var R0=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${Q(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}};function z0(){return{localeError:R0()}}var B0=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${Q(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}};function V0(){return{localeError:B0()}}var H0=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${Q(e.values[0])}`:`Opzione non valida: atteso uno tra ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}};function U0(){return{localeError:H0()}}var W0=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${Q(e.values[0])}が期待されました`:`無効な選択: ${X(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${X(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}};function G0(){return{localeError:W0()}}var K0=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული სტრინგი`,base64url:`base64url-კოდირებული სტრინგი`,json_string:`JSON სტრინგი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`სტრინგი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Q(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${X(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}};function q0(){return{localeError:K0()}}var J0=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Q(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${X(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}};function Y0(){return{localeError:J0()}}function X0(){return Y0()}var Z0=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${Q(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${X(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${X(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}};function Q0(){return{localeError:Z0()}}var $0=e=>e.charAt(0).toUpperCase()+e.slice(1);function e2(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}var t2=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${Q(e.values[0])}`:`Privalo būti vienas iš ${X(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,e2(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${$0(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${$0(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,e2(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${$0(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${$0(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:return`${$0(r[e.origin]??e.origin??e.origin??`reikšmė`)} turi klaidingą įvestį`;default:return`Klaidinga įvestis`}}};function n2(){return{localeError:t2()}}var r2=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Q(e.values[0])}`:`Грешана опција: се очекува една ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}};function i2(){return{localeError:r2()}}var a2=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${Q(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${X(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}};function o2(){return{localeError:a2()}}var s2=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${Q(e.values[0])}`:`Ongeldige optie: verwacht één van ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}};function c2(){return{localeError:s2()}}var l2=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${Q(e.values[0])}`:`Ugyldig valg: forventet en av ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}};function u2(){return{localeError:l2()}}var d2=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${Q(e.values[0])}`:`Fâsit tercih: mûteberler ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}};function f2(){return{localeError:d2()}}var p2=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${Q(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${X(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}};function m2(){return{localeError:p2()}}var h2=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Q(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}};function g2(){return{localeError:h2()}}var _2=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${Q(e.values[0])}`:`Opção inválida: esperada uma das ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}};function v2(){return{localeError:_2()}}function y2(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}var b2=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${Q(e.values[0])}`:`Неверный вариант: ожидалось одно из ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=y2(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=y2(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}};function x2(){return{localeError:b2()}}var S2=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${Q(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}};function C2(){return{localeError:S2()}}var w2=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${Q(e.values[0])}`:`Ogiltigt val: förväntade en av ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}};function T2(){return{localeError:w2()}}var E2=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Q(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${X(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}};function D2(){return{localeError:E2()}}var O2=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Q(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${X(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}};function k2(){return{localeError:O2()}}var A2=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${Q(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}};function j2(){return{localeError:A2()}}var M2=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${Q(e.values[0])}`:`Неправильна опція: очікується одне з ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}};function N2(){return{localeError:M2()}}function P2(){return N2()}var F2=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${Q(e.values[0])} متوقع تھا`:`غلط آپشن: ${X(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${X(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}};function I2(){return{localeError:F2()}}var L2=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${Q(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${X(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}};function R2(){return{localeError:L2()}}var z2=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Q(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${X(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}};function B2(){return{localeError:z2()}}var V2=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${Q(e.values[0])}`:`无效选项:期望以下之一 ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${X(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}};function H2(){return{localeError:V2()}}var U2=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${Q(e.values[0])}`:`無效的選項:預期為以下其中之一 ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${X(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}};function W2(){return{localeError:U2()}}var G2=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=HX(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Q(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${X(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${X(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}};function K2(){return{localeError:G2()}}var q2=A({ar:()=>e0,az:()=>n0,be:()=>a0,bg:()=>s0,ca:()=>l0,cs:()=>d0,da:()=>p0,de:()=>h0,en:()=>_0,eo:()=>y0,es:()=>x0,fa:()=>C0,fi:()=>T0,fr:()=>D0,frCA:()=>k0,he:()=>j0,hu:()=>N0,hy:()=>L0,id:()=>z0,is:()=>V0,it:()=>U0,ja:()=>G0,ka:()=>q0,kh:()=>X0,km:()=>Y0,ko:()=>Q0,lt:()=>n2,mk:()=>i2,ms:()=>o2,nl:()=>c2,no:()=>u2,ota:()=>f2,pl:()=>g2,ps:()=>m2,pt:()=>v2,ru:()=>x2,sl:()=>C2,sv:()=>T2,ta:()=>D2,th:()=>k2,tr:()=>j2,ua:()=>P2,uk:()=>N2,ur:()=>I2,uz:()=>R2,vi:()=>B2,yo:()=>K2,zhCN:()=>H2,zhTW:()=>W2}),J2,Y2=Symbol(`ZodOutput`),X2=Symbol(`ZodInput`),Z2=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Q2(){return new Z2}(J2=globalThis).__zod_globalRegistry??(J2.__zod_globalRegistry=Q2());var $2=globalThis.__zod_globalRegistry;function e4(e,t){return new e({type:`string`,...Z(t)})}function t4(e,t){return new e({type:`string`,coerce:!0,...Z(t)})}function n4(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Z(t)})}function r4(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Z(t)})}function i4(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Z(t)})}function a4(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Z(t)})}function o4(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Z(t)})}function s4(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Z(t)})}function c4(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Z(t)})}function l4(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Z(t)})}function u4(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Z(t)})}function d4(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Z(t)})}function f4(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Z(t)})}function p4(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Z(t)})}function m4(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Z(t)})}function h4(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Z(t)})}function g4(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Z(t)})}function _4(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Z(t)})}function v4(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...Z(t)})}function y4(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Z(t)})}function b4(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Z(t)})}function x4(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Z(t)})}function S4(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Z(t)})}function C4(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Z(t)})}function w4(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Z(t)})}var T4={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function E4(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Z(t)})}function D4(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Z(t)})}function O4(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Z(t)})}function k4(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Z(t)})}function A4(e,t){return new e({type:`number`,checks:[],...Z(t)})}function j4(e,t){return new e({type:`number`,coerce:!0,checks:[],...Z(t)})}function M4(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Z(t)})}function N4(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...Z(t)})}function P4(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...Z(t)})}function F4(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...Z(t)})}function I4(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...Z(t)})}function L4(e,t){return new e({type:`boolean`,...Z(t)})}function R4(e,t){return new e({type:`boolean`,coerce:!0,...Z(t)})}function z4(e,t){return new e({type:`bigint`,...Z(t)})}function B4(e,t){return new e({type:`bigint`,coerce:!0,...Z(t)})}function V4(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...Z(t)})}function H4(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...Z(t)})}function U4(e,t){return new e({type:`symbol`,...Z(t)})}function W4(e,t){return new e({type:`undefined`,...Z(t)})}function G4(e,t){return new e({type:`null`,...Z(t)})}function K4(e){return new e({type:`any`})}function q4(e){return new e({type:`unknown`})}function J4(e,t){return new e({type:`never`,...Z(t)})}function Y4(e,t){return new e({type:`void`,...Z(t)})}function X4(e,t){return new e({type:`date`,...Z(t)})}function Z4(e,t){return new e({type:`date`,coerce:!0,...Z(t)})}function Q4(e,t){return new e({type:`nan`,...Z(t)})}function $4(e,t){return new HQ({check:`less_than`,...Z(t),value:e,inclusive:!1})}function e3(e,t){return new HQ({check:`less_than`,...Z(t),value:e,inclusive:!0})}function t3(e,t){return new UQ({check:`greater_than`,...Z(t),value:e,inclusive:!1})}function n3(e,t){return new UQ({check:`greater_than`,...Z(t),value:e,inclusive:!0})}function r3(e){return t3(0,e)}function i3(e){return $4(0,e)}function a3(e){return e3(0,e)}function o3(e){return n3(0,e)}function s3(e,t){return new WQ({check:`multiple_of`,...Z(t),value:e})}function c3(e,t){return new qQ({check:`max_size`,...Z(t),maximum:e})}function l3(e,t){return new JQ({check:`min_size`,...Z(t),minimum:e})}function u3(e,t){return new YQ({check:`size_equals`,...Z(t),size:e})}function d3(e,t){return new XQ({check:`max_length`,...Z(t),maximum:e})}function f3(e,t){return new ZQ({check:`min_length`,...Z(t),minimum:e})}function p3(e,t){return new QQ({check:`length_equals`,...Z(t),length:e})}function m3(e,t){return new e$({check:`string_format`,format:`regex`,...Z(t),pattern:e})}function h3(e){return new t$({check:`string_format`,format:`lowercase`,...Z(e)})}function g3(e){return new n$({check:`string_format`,format:`uppercase`,...Z(e)})}function _3(e,t){return new r$({check:`string_format`,format:`includes`,...Z(t),includes:e})}function v3(e,t){return new i$({check:`string_format`,format:`starts_with`,...Z(t),prefix:e})}function y3(e,t){return new a$({check:`string_format`,format:`ends_with`,...Z(t),suffix:e})}function b3(e,t,n){return new s$({check:`property`,property:e,schema:t,...Z(n)})}function x3(e,t){return new c$({check:`mime_type`,mime:e,...Z(t)})}function S3(e){return new l$({check:`overwrite`,tx:e})}function C3(e){return S3(t=>t.normalize(e))}function w3(){return S3(e=>e.trim())}function T3(){return S3(e=>e.toLowerCase())}function E3(){return S3(e=>e.toUpperCase())}function D3(){return S3(e=>pX(e))}function O3(e,t,n){return new e({type:`array`,element:t,...Z(n)})}function k3(e,t,n){return new e({type:`union`,options:t,...Z(n)})}function A3(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...Z(n)})}function j3(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...Z(r)})}function M3(e,t,n){return new e({type:`intersection`,left:t,right:n})}function N3(e,t,n,r){let i=n instanceof f$;return new e({type:`tuple`,items:t,rest:i?n:null,...Z(i?r:n)})}function P3(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...Z(r)})}function F3(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...Z(r)})}function I3(e,t,n){return new e({type:`set`,valueType:t,...Z(n)})}function L3(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Z(n)})}function R3(e,t,n){return new e({type:`enum`,entries:t,...Z(n)})}function z3(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...Z(n)})}function B3(e,t){return new e({type:`file`,...Z(t)})}function V3(e,t){return new e({type:`transform`,transform:t})}function H3(e,t){return new e({type:`optional`,innerType:t})}function U3(e,t){return new e({type:`nullable`,innerType:t})}function W3(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():vX(n)}})}function G3(e,t,n){return new e({type:`nonoptional`,innerType:t,...Z(n)})}function K3(e,t){return new e({type:`success`,innerType:t})}function q3(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function J3(e,t,n){return new e({type:`pipe`,in:t,out:n})}function Y3(e,t){return new e({type:`readonly`,innerType:t})}function X3(e,t,n){return new e({type:`template_literal`,parts:t,...Z(n)})}function Z3(e,t){return new e({type:`lazy`,getter:t})}function Q3(e,t){return new e({type:`promise`,innerType:t})}function $3(e,t,n){let r=Z(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function e6(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Z(n)})}function t6(e){let t=n6(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(UX(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(UX(r))}},e(n.value,n)));return t}function n6(e,t){let n=new BQ({check:`custom`,...Z(t)});return n._zod.check=e,n}function r6(e){let t=new BQ({check:`describe`});return t._zod.onattach=[t=>{let n=$2.get(t)??{};$2.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function i6(e){let t=new BQ({check:`meta`});return t._zod.onattach=[t=>{let n=$2.get(t)??{};$2.add(t,{...n,...e})}],t._zod.check=()=>{},t}function a6(e,t){let n=Z(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??H1,c=e.Boolean??G$,l=new s({type:`pipe`,in:new(e.String??p$)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:o.has(r)?!1:(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function o6(e,t,n,r={}){let i=Z(r),a={...Z(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}function s6(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??$2,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function c6(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,c6(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&d6(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function l6(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
||
|
||
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function u6(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:p6(t,`input`,e.processors),output:p6(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function d6(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return d6(r.element,n);if(r.type===`set`)return d6(r.valueType,n);if(r.type===`lazy`)return d6(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return d6(r.innerType,n);if(r.type===`intersection`)return d6(r.left,n)||d6(r.right,n);if(r.type===`record`||r.type===`map`)return d6(r.keyType,n)||d6(r.valueType,n);if(r.type===`pipe`)return d6(r.in,n)||d6(r.out,n);if(r.type===`object`){for(let e in r.shape)if(d6(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(d6(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(d6(e,n))return!0;return!!(r.rest&&d6(r.rest,n))}return!1}var f6=(e,t={})=>n=>{let r=s6({...n,processors:t});return c6(e,r),l6(r,e),u6(r,e)},p6=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=s6({...i??{},target:a,io:t,processors:n});return c6(e,o),l6(o,e),u6(o,e)},m6={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},h6=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=m6[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},g6=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},_6=(e,t,n,r)=>{n.type=`boolean`},v6=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},y6=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},b6=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},x6=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},S6=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},C6=(e,t,n,r)=>{n.not={}},w6=(e,t,n,r)=>{},T6=(e,t,n,r)=>{},E6=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},D6=(e,t,n,r)=>{let i=e._zod.def,a=ZY(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},O6=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},k6=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},A6=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},j6=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},M6=(e,t,n,r)=>{n.type=`boolean`},N6=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},P6=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},F6=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},I6=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},L6=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},R6=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=c6(a.element,t,{...r,path:[...r.path,`items`]})},z6=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=c6(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=c6(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},B6=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>c6(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},V6=(e,t,n,r)=>{let i=e._zod.def,a=c6(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=c6(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},H6=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>c6(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?c6(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},U6=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=c6(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=c6(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=c6(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},W6=(e,t,n,r)=>{let i=e._zod.def,a=c6(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},G6=(e,t,n,r)=>{let i=e._zod.def;c6(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},K6=(e,t,n,r)=>{let i=e._zod.def;c6(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},q6=(e,t,n,r)=>{let i=e._zod.def;c6(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},J6=(e,t,n,r)=>{let i=e._zod.def;c6(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Y6=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;c6(a,t,r);let o=t.seen.get(e);o.ref=a},X6=(e,t,n,r)=>{let i=e._zod.def;c6(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Z6=(e,t,n,r)=>{let i=e._zod.def;c6(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Q6=(e,t,n,r)=>{let i=e._zod.def;c6(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},$6=(e,t,n,r)=>{let i=e._zod.innerType;c6(i,t,r);let a=t.seen.get(e);a.ref=i},e8={string:h6,number:g6,boolean:_6,bigint:v6,symbol:y6,null:b6,undefined:x6,void:S6,never:C6,any:w6,unknown:T6,date:E6,enum:D6,literal:O6,nan:k6,template_literal:A6,file:j6,success:M6,custom:N6,function:P6,transform:F6,map:I6,set:L6,array:R6,object:z6,union:B6,intersection:V6,tuple:H6,record:U6,nullable:W6,nonoptional:G6,default:K6,prefault:q6,catch:J6,pipe:Y6,readonly:X6,promise:Z6,optional:Q6,lazy:$6};function t8(e,t){if(`_idmap`in e){let n=e,r=s6({...t,processors:e8}),i={};for(let e of n._idmap.entries()){let[t,n]=e;c6(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;l6(r,n),a[t]=u6(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=s6({...t,processors:e8});return c6(e,n),l6(n,e),u6(n,e)}var n8=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=s6({processors:e8,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return c6(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),l6(this.ctx,e);let{"~standard":n,...r}=u6(this.ctx,e);return r}},r8=A({}),i8=A({$ZodAny:()=>Z$,$ZodArray:()=>r1,$ZodAsyncError:()=>VY,$ZodBase64:()=>I$,$ZodBase64URL:()=>R$,$ZodBigInt:()=>K$,$ZodBigIntFormat:()=>q$,$ZodBoolean:()=>G$,$ZodCIDRv4:()=>N$,$ZodCIDRv6:()=>P$,$ZodCUID:()=>x$,$ZodCUID2:()=>S$,$ZodCatch:()=>R1,$ZodCheck:()=>BQ,$ZodCheckBigIntFormat:()=>KQ,$ZodCheckEndsWith:()=>a$,$ZodCheckGreaterThan:()=>UQ,$ZodCheckIncludes:()=>r$,$ZodCheckLengthEquals:()=>QQ,$ZodCheckLessThan:()=>HQ,$ZodCheckLowerCase:()=>t$,$ZodCheckMaxLength:()=>XQ,$ZodCheckMaxSize:()=>qQ,$ZodCheckMimeType:()=>c$,$ZodCheckMinLength:()=>ZQ,$ZodCheckMinSize:()=>JQ,$ZodCheckMultipleOf:()=>WQ,$ZodCheckNumberFormat:()=>GQ,$ZodCheckOverwrite:()=>l$,$ZodCheckProperty:()=>s$,$ZodCheckRegex:()=>e$,$ZodCheckSizeEquals:()=>YQ,$ZodCheckStartsWith:()=>i$,$ZodCheckStringFormat:()=>$Q,$ZodCheckUpperCase:()=>n$,$ZodCodec:()=>H1,$ZodCustom:()=>Z1,$ZodCustomStringFormat:()=>H$,$ZodDate:()=>t1,$ZodDefault:()=>M1,$ZodDiscriminatedUnion:()=>p1,$ZodE164:()=>z$,$ZodEmail:()=>_$,$ZodEmoji:()=>y$,$ZodEncodeError:()=>HY,$ZodEnum:()=>w1,$ZodError:()=>$X,$ZodExactOptional:()=>A1,$ZodFile:()=>E1,$ZodFunction:()=>J1,$ZodGUID:()=>h$,$ZodIPv4:()=>A$,$ZodIPv6:()=>j$,$ZodISODate:()=>D$,$ZodISODateTime:()=>E$,$ZodISODuration:()=>k$,$ZodISOTime:()=>O$,$ZodIntersection:()=>m1,$ZodJWT:()=>V$,$ZodKSUID:()=>T$,$ZodLazy:()=>X1,$ZodLiteral:()=>T1,$ZodMAC:()=>M$,$ZodMap:()=>b1,$ZodNaN:()=>z1,$ZodNanoID:()=>b$,$ZodNever:()=>$$,$ZodNonOptional:()=>F1,$ZodNull:()=>X$,$ZodNullable:()=>j1,$ZodNumber:()=>U$,$ZodNumberFormat:()=>W$,$ZodObject:()=>s1,$ZodObjectJIT:()=>c1,$ZodOptional:()=>k1,$ZodPipe:()=>B1,$ZodPrefault:()=>P1,$ZodPromise:()=>Y1,$ZodReadonly:()=>G1,$ZodRealError:()=>eZ,$ZodRecord:()=>y1,$ZodRegistry:()=>Z2,$ZodSet:()=>S1,$ZodString:()=>p$,$ZodStringFormat:()=>m$,$ZodSuccess:()=>L1,$ZodSymbol:()=>J$,$ZodTemplateLiteral:()=>q1,$ZodTransform:()=>D1,$ZodTuple:()=>_1,$ZodType:()=>f$,$ZodULID:()=>C$,$ZodURL:()=>v$,$ZodUUID:()=>g$,$ZodUndefined:()=>Y$,$ZodUnion:()=>u1,$ZodUnknown:()=>Q$,$ZodVoid:()=>e1,$ZodXID:()=>w$,$ZodXor:()=>f1,$brand:()=>BY,$constructor:()=>Y,$input:()=>X2,$output:()=>Y2,Doc:()=>u$,JSONSchema:()=>r8,JSONSchemaGenerator:()=>n8,NEVER:()=>zY,TimePrecision:()=>T4,_any:()=>K4,_array:()=>O3,_base64:()=>x4,_base64url:()=>S4,_bigint:()=>z4,_boolean:()=>L4,_catch:()=>q3,_check:()=>n6,_cidrv4:()=>y4,_cidrv6:()=>b4,_coercedBigint:()=>B4,_coercedBoolean:()=>R4,_coercedDate:()=>Z4,_coercedNumber:()=>j4,_coercedString:()=>t4,_cuid:()=>d4,_cuid2:()=>f4,_custom:()=>$3,_date:()=>X4,_decode:()=>gZ,_decodeAsync:()=>bZ,_default:()=>W3,_discriminatedUnion:()=>j3,_e164:()=>C4,_email:()=>n4,_emoji:()=>l4,_encode:()=>mZ,_encodeAsync:()=>vZ,_endsWith:()=>y3,_enum:()=>L3,_file:()=>B3,_float32:()=>N4,_float64:()=>P4,_gt:()=>t3,_gte:()=>n3,_guid:()=>r4,_includes:()=>_3,_int:()=>M4,_int32:()=>F4,_int64:()=>V4,_intersection:()=>M3,_ipv4:()=>g4,_ipv6:()=>_4,_isoDate:()=>D4,_isoDateTime:()=>E4,_isoDuration:()=>k4,_isoTime:()=>O4,_jwt:()=>w4,_ksuid:()=>h4,_lazy:()=>Z3,_length:()=>p3,_literal:()=>z3,_lowercase:()=>h3,_lt:()=>$4,_lte:()=>e3,_mac:()=>v4,_map:()=>F3,_max:()=>e3,_maxLength:()=>d3,_maxSize:()=>c3,_mime:()=>x3,_min:()=>n3,_minLength:()=>f3,_minSize:()=>l3,_multipleOf:()=>s3,_nan:()=>Q4,_nanoid:()=>u4,_nativeEnum:()=>R3,_negative:()=>i3,_never:()=>J4,_nonnegative:()=>o3,_nonoptional:()=>G3,_nonpositive:()=>a3,_normalize:()=>C3,_null:()=>G4,_nullable:()=>U3,_number:()=>A4,_optional:()=>H3,_overwrite:()=>S3,_parse:()=>oZ,_parseAsync:()=>cZ,_pipe:()=>J3,_positive:()=>r3,_promise:()=>Q3,_property:()=>b3,_readonly:()=>Y3,_record:()=>P3,_refine:()=>e6,_regex:()=>m3,_safeDecode:()=>wZ,_safeDecodeAsync:()=>OZ,_safeEncode:()=>SZ,_safeEncodeAsync:()=>EZ,_safeParse:()=>uZ,_safeParseAsync:()=>fZ,_set:()=>I3,_size:()=>u3,_slugify:()=>D3,_startsWith:()=>v3,_string:()=>e4,_stringFormat:()=>o6,_stringbool:()=>a6,_success:()=>K3,_superRefine:()=>t6,_symbol:()=>U4,_templateLiteral:()=>X3,_toLowerCase:()=>T3,_toUpperCase:()=>E3,_transform:()=>V3,_trim:()=>w3,_tuple:()=>N3,_uint32:()=>I4,_uint64:()=>H4,_ulid:()=>p4,_undefined:()=>W4,_union:()=>k3,_unknown:()=>q4,_uppercase:()=>g3,_url:()=>c4,_uuid:()=>i4,_uuidv4:()=>a4,_uuidv6:()=>o4,_uuidv7:()=>s4,_void:()=>Y4,_xid:()=>m4,_xor:()=>A3,clone:()=>wX,config:()=>WY,createStandardJSONSchemaMethod:()=>p6,createToJSONSchemaMethod:()=>f6,decode:()=>_Z,decodeAsync:()=>xZ,describe:()=>r6,encode:()=>hZ,encodeAsync:()=>yZ,extractDefs:()=>l6,finalize:()=>u6,flattenError:()=>tZ,formatError:()=>nZ,globalConfig:()=>UY,globalRegistry:()=>$2,initializeContext:()=>s6,isValidBase64:()=>F$,isValidBase64URL:()=>L$,isValidJWT:()=>B$,locales:()=>q2,meta:()=>i6,parse:()=>sZ,parseAsync:()=>lZ,prettifyError:()=>aZ,process:()=>c6,regexes:()=>AZ,registry:()=>Q2,safeDecode:()=>TZ,safeDecodeAsync:()=>kZ,safeEncode:()=>CZ,safeEncodeAsync:()=>DZ,safeParse:()=>dZ,safeParseAsync:()=>pZ,toDotPath:()=>iZ,toJSONSchema:()=>t8,treeifyError:()=>rZ,util:()=>GY,version:()=>d$}),a8=A({endsWith:()=>y3,gt:()=>t3,gte:()=>n3,includes:()=>_3,length:()=>p3,lowercase:()=>h3,lt:()=>$4,lte:()=>e3,maxLength:()=>d3,maxSize:()=>c3,mime:()=>x3,minLength:()=>f3,minSize:()=>l3,multipleOf:()=>s3,negative:()=>i3,nonnegative:()=>o3,nonpositive:()=>a3,normalize:()=>C3,overwrite:()=>S3,positive:()=>r3,property:()=>b3,regex:()=>m3,size:()=>u3,slugify:()=>D3,startsWith:()=>v3,toLowerCase:()=>T3,toUpperCase:()=>E3,trim:()=>w3,uppercase:()=>g3}),o8=A({ZodISODate:()=>l8,ZodISODateTime:()=>s8,ZodISODuration:()=>p8,ZodISOTime:()=>d8,date:()=>u8,datetime:()=>c8,duration:()=>m8,time:()=>f8}),s8=Y(`ZodISODateTime`,(e,t)=>{E$.init(e,t),F8.init(e,t)});function c8(e){return E4(s8,e)}var l8=Y(`ZodISODate`,(e,t)=>{D$.init(e,t),F8.init(e,t)});function u8(e){return D4(l8,e)}var d8=Y(`ZodISOTime`,(e,t)=>{O$.init(e,t),F8.init(e,t)});function f8(e){return O4(d8,e)}var p8=Y(`ZodISODuration`,(e,t)=>{k$.init(e,t),F8.init(e,t)});function m8(e){return k4(p8,e)}var h8=(e,t)=>{$X.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>nZ(e,t)},flatten:{value:t=>tZ(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,QY,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,QY,2)}},isEmpty:{get(){return e.issues.length===0}}})},g8=Y(`ZodError`,h8),_8=Y(`ZodError`,h8,{Parent:Error}),v8=oZ(_8),y8=cZ(_8),b8=uZ(_8),x8=fZ(_8),S8=mZ(_8),C8=gZ(_8),w8=vZ(_8),T8=bZ(_8),E8=SZ(_8),D8=wZ(_8),O8=EZ(_8),k8=OZ(_8),A8=A({ZodAny:()=>Q5,ZodArray:()=>c7,ZodBase64:()=>v5,ZodBase64URL:()=>b5,ZodBigInt:()=>V5,ZodBigIntFormat:()=>U5,ZodBoolean:()=>z5,ZodCIDRv4:()=>m5,ZodCIDRv6:()=>g5,ZodCUID:()=>Q8,ZodCUID2:()=>e5,ZodCatch:()=>r9,ZodCodec:()=>l9,ZodCustom:()=>x9,ZodCustomStringFormat:()=>E5,ZodDate:()=>o7,ZodDefault:()=>Y7,ZodDiscriminatedUnion:()=>y7,ZodE164:()=>S5,ZodEmail:()=>I8,ZodEmoji:()=>J8,ZodEnum:()=>N7,ZodExactOptional:()=>W7,ZodFile:()=>R7,ZodFunction:()=>y9,ZodGUID:()=>R8,ZodIPv4:()=>c5,ZodIPv6:()=>f5,ZodIntersection:()=>x7,ZodJWT:()=>w5,ZodKSUID:()=>o5,ZodLazy:()=>h9,ZodLiteral:()=>I7,ZodMAC:()=>u5,ZodMap:()=>k7,ZodNaN:()=>a9,ZodNanoID:()=>X8,ZodNever:()=>n7,ZodNonOptional:()=>$7,ZodNull:()=>X5,ZodNullable:()=>K7,ZodNumber:()=>j5,ZodNumberFormat:()=>N5,ZodObject:()=>d7,ZodOptional:()=>H7,ZodPipe:()=>s9,ZodPrefault:()=>Z7,ZodPromise:()=>_9,ZodReadonly:()=>d9,ZodRecord:()=>T7,ZodSet:()=>j7,ZodString:()=>N8,ZodStringFormat:()=>F8,ZodSuccess:()=>t9,ZodSymbol:()=>K5,ZodTemplateLiteral:()=>p9,ZodTransform:()=>B7,ZodTuple:()=>C7,ZodType:()=>j8,ZodULID:()=>n5,ZodURL:()=>G8,ZodUUID:()=>B8,ZodUndefined:()=>J5,ZodUnion:()=>h7,ZodUnknown:()=>e7,ZodVoid:()=>i7,ZodXID:()=>i5,ZodXor:()=>_7,_ZodString:()=>M8,_default:()=>X7,_function:()=>b9,any:()=>$5,array:()=>l7,base64:()=>y5,base64url:()=>x5,bigint:()=>H5,boolean:()=>B5,catch:()=>i9,check:()=>S9,cidrv4:()=>h5,cidrv6:()=>_5,codec:()=>u9,cuid:()=>$8,cuid2:()=>t5,custom:()=>C9,date:()=>s7,describe:()=>E9,discriminatedUnion:()=>b7,e164:()=>C5,email:()=>L8,emoji:()=>Y8,enum:()=>P7,exactOptional:()=>G7,file:()=>z7,float32:()=>F5,float64:()=>I5,function:()=>b9,guid:()=>z8,hash:()=>A5,hex:()=>k5,hostname:()=>O5,httpUrl:()=>q8,instanceof:()=>O9,int:()=>P5,int32:()=>L5,int64:()=>W5,intersection:()=>S7,ipv4:()=>l5,ipv6:()=>p5,json:()=>A9,jwt:()=>T5,keyof:()=>u7,ksuid:()=>s5,lazy:()=>g9,literal:()=>L7,looseObject:()=>m7,looseRecord:()=>O7,mac:()=>d5,map:()=>A7,meta:()=>D9,nan:()=>o9,nanoid:()=>Z8,nativeEnum:()=>F7,never:()=>r7,nonoptional:()=>e9,null:()=>Z5,nullable:()=>q7,nullish:()=>J7,number:()=>M5,object:()=>f7,optional:()=>U7,partialRecord:()=>D7,pipe:()=>c9,prefault:()=>Q7,preprocess:()=>j9,promise:()=>v9,readonly:()=>f9,record:()=>E7,refine:()=>w9,set:()=>M7,strictObject:()=>p7,string:()=>P8,stringFormat:()=>D5,stringbool:()=>k9,success:()=>n9,superRefine:()=>T9,symbol:()=>q5,templateLiteral:()=>m9,transform:()=>V7,tuple:()=>w7,uint32:()=>R5,uint64:()=>G5,ulid:()=>r5,undefined:()=>Y5,union:()=>g7,unknown:()=>t7,url:()=>K8,uuid:()=>V8,uuidv4:()=>H8,uuidv6:()=>U8,uuidv7:()=>W8,void:()=>a7,xid:()=>a5,xor:()=>v7}),j8=Y(`ZodType`,(e,t)=>(f$.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:p6(e,`input`),output:p6(e,`output`)}}),e.toJSONSchema=f6(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(sX(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>wX(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>v8(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>b8(e,t,n),e.parseAsync=async(t,n)=>y8(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>x8(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>S8(e,t,n),e.decode=(t,n)=>C8(e,t,n),e.encodeAsync=async(t,n)=>w8(e,t,n),e.decodeAsync=async(t,n)=>T8(e,t,n),e.safeEncode=(t,n)=>E8(e,t,n),e.safeDecode=(t,n)=>D8(e,t,n),e.safeEncodeAsync=async(t,n)=>O8(e,t,n),e.safeDecodeAsync=async(t,n)=>k8(e,t,n),e.refine=(t,n)=>e.check(w9(t,n)),e.superRefine=t=>e.check(T9(t)),e.overwrite=t=>e.check(S3(t)),e.optional=()=>U7(e),e.exactOptional=()=>G7(e),e.nullable=()=>q7(e),e.nullish=()=>U7(q7(e)),e.nonoptional=t=>e9(e,t),e.array=()=>l7(e),e.or=t=>g7([e,t]),e.and=t=>S7(e,t),e.transform=t=>c9(e,V7(t)),e.default=t=>X7(e,t),e.prefault=t=>Q7(e,t),e.catch=t=>i9(e,t),e.pipe=t=>c9(e,t),e.readonly=()=>f9(e),e.describe=t=>{let n=e.clone();return $2.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return $2.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return $2.get(e);let n=e.clone();return $2.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),M8=Y(`_ZodString`,(e,t)=>{p$.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>h6(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(m3(...t)),e.includes=(...t)=>e.check(_3(...t)),e.startsWith=(...t)=>e.check(v3(...t)),e.endsWith=(...t)=>e.check(y3(...t)),e.min=(...t)=>e.check(f3(...t)),e.max=(...t)=>e.check(d3(...t)),e.length=(...t)=>e.check(p3(...t)),e.nonempty=(...t)=>e.check(f3(1,...t)),e.lowercase=t=>e.check(h3(t)),e.uppercase=t=>e.check(g3(t)),e.trim=()=>e.check(w3()),e.normalize=(...t)=>e.check(C3(...t)),e.toLowerCase=()=>e.check(T3()),e.toUpperCase=()=>e.check(E3()),e.slugify=()=>e.check(D3())}),N8=Y(`ZodString`,(e,t)=>{p$.init(e,t),M8.init(e,t),e.email=t=>e.check(n4(I8,t)),e.url=t=>e.check(c4(G8,t)),e.jwt=t=>e.check(w4(w5,t)),e.emoji=t=>e.check(l4(J8,t)),e.guid=t=>e.check(r4(R8,t)),e.uuid=t=>e.check(i4(B8,t)),e.uuidv4=t=>e.check(a4(B8,t)),e.uuidv6=t=>e.check(o4(B8,t)),e.uuidv7=t=>e.check(s4(B8,t)),e.nanoid=t=>e.check(u4(X8,t)),e.guid=t=>e.check(r4(R8,t)),e.cuid=t=>e.check(d4(Q8,t)),e.cuid2=t=>e.check(f4(e5,t)),e.ulid=t=>e.check(p4(n5,t)),e.base64=t=>e.check(x4(v5,t)),e.base64url=t=>e.check(S4(b5,t)),e.xid=t=>e.check(m4(i5,t)),e.ksuid=t=>e.check(h4(o5,t)),e.ipv4=t=>e.check(g4(c5,t)),e.ipv6=t=>e.check(_4(f5,t)),e.cidrv4=t=>e.check(y4(m5,t)),e.cidrv6=t=>e.check(b4(g5,t)),e.e164=t=>e.check(C4(S5,t)),e.datetime=t=>e.check(c8(t)),e.date=t=>e.check(u8(t)),e.time=t=>e.check(f8(t)),e.duration=t=>e.check(m8(t))});function P8(e){return e4(N8,e)}var F8=Y(`ZodStringFormat`,(e,t)=>{m$.init(e,t),M8.init(e,t)}),I8=Y(`ZodEmail`,(e,t)=>{_$.init(e,t),F8.init(e,t)});function L8(e){return n4(I8,e)}var R8=Y(`ZodGUID`,(e,t)=>{h$.init(e,t),F8.init(e,t)});function z8(e){return r4(R8,e)}var B8=Y(`ZodUUID`,(e,t)=>{g$.init(e,t),F8.init(e,t)});function V8(e){return i4(B8,e)}function H8(e){return a4(B8,e)}function U8(e){return o4(B8,e)}function W8(e){return s4(B8,e)}var G8=Y(`ZodURL`,(e,t)=>{v$.init(e,t),F8.init(e,t)});function K8(e){return c4(G8,e)}function q8(e){return c4(G8,{protocol:/^https?$/,hostname:oQ,...Z(e)})}var J8=Y(`ZodEmoji`,(e,t)=>{y$.init(e,t),F8.init(e,t)});function Y8(e){return l4(J8,e)}var X8=Y(`ZodNanoID`,(e,t)=>{b$.init(e,t),F8.init(e,t)});function Z8(e){return u4(X8,e)}var Q8=Y(`ZodCUID`,(e,t)=>{x$.init(e,t),F8.init(e,t)});function $8(e){return d4(Q8,e)}var e5=Y(`ZodCUID2`,(e,t)=>{S$.init(e,t),F8.init(e,t)});function t5(e){return f4(e5,e)}var n5=Y(`ZodULID`,(e,t)=>{C$.init(e,t),F8.init(e,t)});function r5(e){return p4(n5,e)}var i5=Y(`ZodXID`,(e,t)=>{w$.init(e,t),F8.init(e,t)});function a5(e){return m4(i5,e)}var o5=Y(`ZodKSUID`,(e,t)=>{T$.init(e,t),F8.init(e,t)});function s5(e){return h4(o5,e)}var c5=Y(`ZodIPv4`,(e,t)=>{A$.init(e,t),F8.init(e,t)});function l5(e){return g4(c5,e)}var u5=Y(`ZodMAC`,(e,t)=>{M$.init(e,t),F8.init(e,t)});function d5(e){return v4(u5,e)}var f5=Y(`ZodIPv6`,(e,t)=>{j$.init(e,t),F8.init(e,t)});function p5(e){return _4(f5,e)}var m5=Y(`ZodCIDRv4`,(e,t)=>{N$.init(e,t),F8.init(e,t)});function h5(e){return y4(m5,e)}var g5=Y(`ZodCIDRv6`,(e,t)=>{P$.init(e,t),F8.init(e,t)});function _5(e){return b4(g5,e)}var v5=Y(`ZodBase64`,(e,t)=>{I$.init(e,t),F8.init(e,t)});function y5(e){return x4(v5,e)}var b5=Y(`ZodBase64URL`,(e,t)=>{R$.init(e,t),F8.init(e,t)});function x5(e){return S4(b5,e)}var S5=Y(`ZodE164`,(e,t)=>{z$.init(e,t),F8.init(e,t)});function C5(e){return C4(S5,e)}var w5=Y(`ZodJWT`,(e,t)=>{V$.init(e,t),F8.init(e,t)});function T5(e){return w4(w5,e)}var E5=Y(`ZodCustomStringFormat`,(e,t)=>{H$.init(e,t),F8.init(e,t)});function D5(e,t,n={}){return o6(E5,e,t,n)}function O5(e){return o6(E5,`hostname`,aQ,e)}function k5(e){return o6(E5,`hex`,SQ,e)}function A5(e,t){let n=`${e}_${t?.enc??`hex`}`,r=AZ[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return o6(E5,n,r,t)}var j5=Y(`ZodNumber`,(e,t)=>{U$.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>g6(e,t,n,r),e.gt=(t,n)=>e.check(t3(t,n)),e.gte=(t,n)=>e.check(n3(t,n)),e.min=(t,n)=>e.check(n3(t,n)),e.lt=(t,n)=>e.check($4(t,n)),e.lte=(t,n)=>e.check(e3(t,n)),e.max=(t,n)=>e.check(e3(t,n)),e.int=t=>e.check(P5(t)),e.safe=t=>e.check(P5(t)),e.positive=t=>e.check(t3(0,t)),e.nonnegative=t=>e.check(n3(0,t)),e.negative=t=>e.check($4(0,t)),e.nonpositive=t=>e.check(e3(0,t)),e.multipleOf=(t,n)=>e.check(s3(t,n)),e.step=(t,n)=>e.check(s3(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function M5(e){return A4(j5,e)}var N5=Y(`ZodNumberFormat`,(e,t)=>{W$.init(e,t),j5.init(e,t)});function P5(e){return M4(N5,e)}function F5(e){return N4(N5,e)}function I5(e){return P4(N5,e)}function L5(e){return F4(N5,e)}function R5(e){return I4(N5,e)}var z5=Y(`ZodBoolean`,(e,t)=>{G$.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_6(e,t,n,r)});function B5(e){return L4(z5,e)}var V5=Y(`ZodBigInt`,(e,t)=>{K$.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v6(e,t,n,r),e.gte=(t,n)=>e.check(n3(t,n)),e.min=(t,n)=>e.check(n3(t,n)),e.gt=(t,n)=>e.check(t3(t,n)),e.gte=(t,n)=>e.check(n3(t,n)),e.min=(t,n)=>e.check(n3(t,n)),e.lt=(t,n)=>e.check($4(t,n)),e.lte=(t,n)=>e.check(e3(t,n)),e.max=(t,n)=>e.check(e3(t,n)),e.positive=t=>e.check(t3(BigInt(0),t)),e.negative=t=>e.check($4(BigInt(0),t)),e.nonpositive=t=>e.check(e3(BigInt(0),t)),e.nonnegative=t=>e.check(n3(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(s3(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function H5(e){return z4(V5,e)}var U5=Y(`ZodBigIntFormat`,(e,t)=>{q$.init(e,t),V5.init(e,t)});function W5(e){return V4(U5,e)}function G5(e){return H4(U5,e)}var K5=Y(`ZodSymbol`,(e,t)=>{J$.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y6(e,t,n,r)});function q5(e){return U4(K5,e)}var J5=Y(`ZodUndefined`,(e,t)=>{Y$.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x6(e,t,n,r)});function Y5(e){return W4(J5,e)}var X5=Y(`ZodNull`,(e,t)=>{X$.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b6(e,t,n,r)});function Z5(e){return G4(X5,e)}var Q5=Y(`ZodAny`,(e,t)=>{Z$.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function $5(){return K4(Q5)}var e7=Y(`ZodUnknown`,(e,t)=>{Q$.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function t7(){return q4(e7)}var n7=Y(`ZodNever`,(e,t)=>{$$.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C6(e,t,n,r)});function r7(e){return J4(n7,e)}var i7=Y(`ZodVoid`,(e,t)=>{e1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S6(e,t,n,r)});function a7(e){return Y4(i7,e)}var o7=Y(`ZodDate`,(e,t)=>{t1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E6(e,t,n,r),e.min=(t,n)=>e.check(n3(t,n)),e.max=(t,n)=>e.check(e3(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function s7(e){return X4(o7,e)}var c7=Y(`ZodArray`,(e,t)=>{r1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R6(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(f3(t,n)),e.nonempty=t=>e.check(f3(1,t)),e.max=(t,n)=>e.check(d3(t,n)),e.length=(t,n)=>e.check(p3(t,n)),e.unwrap=()=>e.element});function l7(e,t){return O3(c7,e,t)}function u7(e){let t=e._zod.def.shape;return P7(Object.keys(t))}var d7=Y(`ZodObject`,(e,t)=>{c1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z6(e,t,n,r),iX(e,`shape`,()=>t.shape),e.keyof=()=>P7(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:t7()}),e.loose=()=>e.clone({...e._zod.def,catchall:t7()}),e.strict=()=>e.clone({...e._zod.def,catchall:r7()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>jX(e,t),e.safeExtend=t=>MX(e,t),e.merge=t=>NX(e,t),e.pick=t=>kX(e,t),e.omit=t=>AX(e,t),e.partial=(...t)=>PX(H7,e,t[0]),e.required=(...t)=>FX($7,e,t[0])});function f7(e,t){return new d7({type:`object`,shape:e??{},...Z(t)})}function p7(e,t){return new d7({type:`object`,shape:e,catchall:r7(),...Z(t)})}function m7(e,t){return new d7({type:`object`,shape:e,catchall:t7(),...Z(t)})}var h7=Y(`ZodUnion`,(e,t)=>{u1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B6(e,t,n,r),e.options=t.options});function g7(e,t){return new h7({type:`union`,options:e,...Z(t)})}var _7=Y(`ZodXor`,(e,t)=>{h7.init(e,t),f1.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B6(e,t,n,r),e.options=t.options});function v7(e,t){return new _7({type:`union`,options:e,inclusive:!1,...Z(t)})}var y7=Y(`ZodDiscriminatedUnion`,(e,t)=>{h7.init(e,t),p1.init(e,t)});function b7(e,t,n){return new y7({type:`union`,options:t,discriminator:e,...Z(n)})}var x7=Y(`ZodIntersection`,(e,t)=>{m1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V6(e,t,n,r)});function S7(e,t){return new x7({type:`intersection`,left:e,right:t})}var C7=Y(`ZodTuple`,(e,t)=>{_1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H6(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function w7(e,t,n){let r=t instanceof f$;return new C7({type:`tuple`,items:e,rest:r?t:null,...Z(r?n:t)})}var T7=Y(`ZodRecord`,(e,t)=>{y1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>U6(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function E7(e,t,n){return new T7({type:`record`,keyType:e,valueType:t,...Z(n)})}function D7(e,t,n){let r=wX(e);return r._zod.values=void 0,new T7({type:`record`,keyType:r,valueType:t,...Z(n)})}function O7(e,t,n){return new T7({type:`record`,keyType:e,valueType:t,mode:`loose`,...Z(n)})}var k7=Y(`ZodMap`,(e,t)=>{b1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I6(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(l3(...t)),e.nonempty=t=>e.check(l3(1,t)),e.max=(...t)=>e.check(c3(...t)),e.size=(...t)=>e.check(u3(...t))});function A7(e,t,n){return new k7({type:`map`,keyType:e,valueType:t,...Z(n)})}var j7=Y(`ZodSet`,(e,t)=>{S1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L6(e,t,n,r),e.min=(...t)=>e.check(l3(...t)),e.nonempty=t=>e.check(l3(1,t)),e.max=(...t)=>e.check(c3(...t)),e.size=(...t)=>e.check(u3(...t))});function M7(e,t){return new j7({type:`set`,valueType:e,...Z(t)})}var N7=Y(`ZodEnum`,(e,t)=>{w1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D6(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new N7({...t,checks:[],...Z(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new N7({...t,checks:[],...Z(r),entries:i})}});function P7(e,t){return new N7({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Z(t)})}function F7(e,t){return new N7({type:`enum`,entries:e,...Z(t)})}var I7=Y(`ZodLiteral`,(e,t)=>{T1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O6(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function L7(e,t){return new I7({type:`literal`,values:Array.isArray(e)?e:[e],...Z(t)})}var R7=Y(`ZodFile`,(e,t)=>{E1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j6(e,t,n,r),e.min=(t,n)=>e.check(l3(t,n)),e.max=(t,n)=>e.check(c3(t,n)),e.mime=(t,n)=>e.check(x3(Array.isArray(t)?t:[t],n))});function z7(e){return B3(R7,e)}var B7=Y(`ZodTransform`,(e,t)=>{D1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F6(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new HY(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(UX(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(UX(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function V7(e){return new B7({type:`transform`,transform:e})}var H7=Y(`ZodOptional`,(e,t)=>{k1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q6(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function U7(e){return new H7({type:`optional`,innerType:e})}var W7=Y(`ZodExactOptional`,(e,t)=>{A1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q6(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function G7(e){return new W7({type:`optional`,innerType:e})}var K7=Y(`ZodNullable`,(e,t)=>{j1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W6(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function q7(e){return new K7({type:`nullable`,innerType:e})}function J7(e){return U7(q7(e))}var Y7=Y(`ZodDefault`,(e,t)=>{M1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K6(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function X7(e,t){return new Y7({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():vX(t)}})}var Z7=Y(`ZodPrefault`,(e,t)=>{P1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q6(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Q7(e,t){return new Z7({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():vX(t)}})}var $7=Y(`ZodNonOptional`,(e,t)=>{F1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>G6(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function e9(e,t){return new $7({type:`nonoptional`,innerType:e,...Z(t)})}var t9=Y(`ZodSuccess`,(e,t)=>{L1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M6(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function n9(e){return new t9({type:`success`,innerType:e})}var r9=Y(`ZodCatch`,(e,t)=>{R1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J6(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function i9(e,t){return new r9({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var a9=Y(`ZodNaN`,(e,t)=>{z1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k6(e,t,n,r)});function o9(e){return Q4(a9,e)}var s9=Y(`ZodPipe`,(e,t)=>{B1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y6(e,t,n,r),e.in=t.in,e.out=t.out});function c9(e,t){return new s9({type:`pipe`,in:e,out:t})}var l9=Y(`ZodCodec`,(e,t)=>{s9.init(e,t),H1.init(e,t)});function u9(e,t,n){return new l9({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var d9=Y(`ZodReadonly`,(e,t)=>{G1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X6(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function f9(e){return new d9({type:`readonly`,innerType:e})}var p9=Y(`ZodTemplateLiteral`,(e,t)=>{q1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A6(e,t,n,r)});function m9(e,t){return new p9({type:`template_literal`,parts:e,...Z(t)})}var h9=Y(`ZodLazy`,(e,t)=>{X1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$6(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function g9(e){return new h9({type:`lazy`,getter:e})}var _9=Y(`ZodPromise`,(e,t)=>{Y1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z6(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function v9(e){return new _9({type:`promise`,innerType:e})}var y9=Y(`ZodFunction`,(e,t)=>{J1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P6(e,t,n,r)});function b9(e){return new y9({type:`function`,input:Array.isArray(e?.input)?w7(e?.input):e?.input??l7(t7()),output:e?.output??t7()})}var x9=Y(`ZodCustom`,(e,t)=>{Z1.init(e,t),j8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N6(e,t,n,r)});function S9(e){let t=new BQ({check:`custom`});return t._zod.check=e,t}function C9(e,t){return $3(x9,e??(()=>!0),t)}function w9(e,t={}){return e6(x9,e,t)}function T9(e){return t6(e)}var E9=r6,D9=i6;function O9(e,t={}){let n=new x9({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Z(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}var k9=(...e)=>a6({Codec:l9,Boolean:z5,String:N8},...e);function A9(e){let t=g9(()=>g7([P8(e),M5(),B5(),Z5(),l7(t),E7(P8(),t)]));return t}function j9(e,t){return c9(V7(e),t)}var M9={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`};function N9(e){WY({customError:e})}function P9(){return WY().customError}var F9;(function(e){})(F9||={});var $={...A8,...a8,iso:o8},I9=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`));function L9(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function R9(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function z9(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return $.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=B9(R9(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>z9({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){case`string`:{let t=$.string();if(e.format){let n=e.format;n===`email`?t=t.check($.email()):n===`uri`||n===`uri-reference`?t=t.check($.url()):n===`uuid`||n===`guid`?t=t.check($.uuid()):n===`date-time`?t=t.check($.iso.datetime()):n===`date`?t=t.check($.iso.date()):n===`time`?t=t.check($.iso.time()):n===`duration`?t=t.check($.iso.duration()):n===`ipv4`?t=t.check($.ipv4()):n===`ipv6`?t=t.check($.ipv6()):n===`mac`?t=t.check($.mac()):n===`cidr`?t=t.check($.cidrv4()):n===`cidr-v6`?t=t.check($.cidrv6()):n===`base64`?t=t.check($.base64()):n===`base64url`?t=t.check($.base64url()):n===`e164`?t=t.check($.e164()):n===`jwt`?t=t.check($.jwt()):n===`emoji`?t=t.check($.emoji()):n===`nanoid`?t=t.check($.nanoid()):n===`cuid`?t=t.check($.cuid()):n===`cuid2`?t=t.check($.cuid2()):n===`ulid`?t=t.check($.ulid()):n===`xid`?t=t.check($.xid()):n===`ksuid`&&(t=t.check($.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?$.number().int():$.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=B9(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=B9(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?B9(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=B9(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=$.intersection(e,s[t]);r=e}break}let o=$.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(B9(e.additionalProperties,t)):o.passthrough();break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(e=>B9(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?B9(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>B9(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?B9(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=B9(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return e.description&&(r=r.describe(e.description)),e.default!==void 0&&(r=r.default(e.default)),r}function B9(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=z9(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>B9(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>B9(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:B9(e.allOf[0],t),a=r?0:1;for(let n=a;n<e.allOf.length;n++)i=$.intersection(i,B9(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=$.nullable(n)),e.readOnly===!0&&(n=$.readonly(n));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))I9.has(t)||(i[t]=e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),n}function V9(e,t){return typeof e==`boolean`?e?$.any():$.never():B9(e,{version:L9(e,t?.defaultTarget),defs:e.$defs||e.definitions||{},refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??$2})}var H9=A({bigint:()=>K9,boolean:()=>G9,date:()=>q9,number:()=>W9,string:()=>U9});function U9(e){return t4(N8,e)}function W9(e){return j4(j5,e)}function G9(e){return R4(z5,e)}function K9(e){return B4(V5,e)}function q9(e){return Z4(o7,e)}var J9=A({$brand:()=>BY,$input:()=>X2,$output:()=>Y2,NEVER:()=>zY,TimePrecision:()=>T4,ZodAny:()=>Q5,ZodArray:()=>c7,ZodBase64:()=>v5,ZodBase64URL:()=>b5,ZodBigInt:()=>V5,ZodBigIntFormat:()=>U5,ZodBoolean:()=>z5,ZodCIDRv4:()=>m5,ZodCIDRv6:()=>g5,ZodCUID:()=>Q8,ZodCUID2:()=>e5,ZodCatch:()=>r9,ZodCodec:()=>l9,ZodCustom:()=>x9,ZodCustomStringFormat:()=>E5,ZodDate:()=>o7,ZodDefault:()=>Y7,ZodDiscriminatedUnion:()=>y7,ZodE164:()=>S5,ZodEmail:()=>I8,ZodEmoji:()=>J8,ZodEnum:()=>N7,ZodError:()=>g8,ZodExactOptional:()=>W7,ZodFile:()=>R7,ZodFirstPartyTypeKind:()=>F9,ZodFunction:()=>y9,ZodGUID:()=>R8,ZodIPv4:()=>c5,ZodIPv6:()=>f5,ZodISODate:()=>l8,ZodISODateTime:()=>s8,ZodISODuration:()=>p8,ZodISOTime:()=>d8,ZodIntersection:()=>x7,ZodIssueCode:()=>M9,ZodJWT:()=>w5,ZodKSUID:()=>o5,ZodLazy:()=>h9,ZodLiteral:()=>I7,ZodMAC:()=>u5,ZodMap:()=>k7,ZodNaN:()=>a9,ZodNanoID:()=>X8,ZodNever:()=>n7,ZodNonOptional:()=>$7,ZodNull:()=>X5,ZodNullable:()=>K7,ZodNumber:()=>j5,ZodNumberFormat:()=>N5,ZodObject:()=>d7,ZodOptional:()=>H7,ZodPipe:()=>s9,ZodPrefault:()=>Z7,ZodPromise:()=>_9,ZodReadonly:()=>d9,ZodRealError:()=>_8,ZodRecord:()=>T7,ZodSet:()=>j7,ZodString:()=>N8,ZodStringFormat:()=>F8,ZodSuccess:()=>t9,ZodSymbol:()=>K5,ZodTemplateLiteral:()=>p9,ZodTransform:()=>B7,ZodTuple:()=>C7,ZodType:()=>j8,ZodULID:()=>n5,ZodURL:()=>G8,ZodUUID:()=>B8,ZodUndefined:()=>J5,ZodUnion:()=>h7,ZodUnknown:()=>e7,ZodVoid:()=>i7,ZodXID:()=>i5,ZodXor:()=>_7,_ZodString:()=>M8,_default:()=>X7,_function:()=>b9,any:()=>$5,array:()=>l7,base64:()=>y5,base64url:()=>x5,bigint:()=>H5,boolean:()=>B5,catch:()=>i9,check:()=>S9,cidrv4:()=>h5,cidrv6:()=>_5,clone:()=>wX,codec:()=>u9,coerce:()=>H9,config:()=>WY,core:()=>i8,cuid:()=>$8,cuid2:()=>t5,custom:()=>C9,date:()=>s7,decode:()=>C8,decodeAsync:()=>T8,describe:()=>E9,discriminatedUnion:()=>b7,e164:()=>C5,email:()=>L8,emoji:()=>Y8,encode:()=>S8,encodeAsync:()=>w8,endsWith:()=>y3,enum:()=>P7,exactOptional:()=>G7,file:()=>z7,flattenError:()=>tZ,float32:()=>F5,float64:()=>I5,formatError:()=>nZ,fromJSONSchema:()=>V9,function:()=>b9,getErrorMap:()=>P9,globalRegistry:()=>$2,gt:()=>t3,gte:()=>n3,guid:()=>z8,hash:()=>A5,hex:()=>k5,hostname:()=>O5,httpUrl:()=>q8,includes:()=>_3,instanceof:()=>O9,int:()=>P5,int32:()=>L5,int64:()=>W5,intersection:()=>S7,ipv4:()=>l5,ipv6:()=>p5,iso:()=>o8,json:()=>A9,jwt:()=>T5,keyof:()=>u7,ksuid:()=>s5,lazy:()=>g9,length:()=>p3,literal:()=>L7,locales:()=>q2,looseObject:()=>m7,looseRecord:()=>O7,lowercase:()=>h3,lt:()=>$4,lte:()=>e3,mac:()=>d5,map:()=>A7,maxLength:()=>d3,maxSize:()=>c3,meta:()=>D9,mime:()=>x3,minLength:()=>f3,minSize:()=>l3,multipleOf:()=>s3,nan:()=>o9,nanoid:()=>Z8,nativeEnum:()=>F7,negative:()=>i3,never:()=>r7,nonnegative:()=>o3,nonoptional:()=>e9,nonpositive:()=>a3,normalize:()=>C3,null:()=>Z5,nullable:()=>q7,nullish:()=>J7,number:()=>M5,object:()=>f7,optional:()=>U7,overwrite:()=>S3,parse:()=>v8,parseAsync:()=>y8,partialRecord:()=>D7,pipe:()=>c9,positive:()=>r3,prefault:()=>Q7,preprocess:()=>j9,prettifyError:()=>aZ,promise:()=>v9,property:()=>b3,readonly:()=>f9,record:()=>E7,refine:()=>w9,regex:()=>m3,regexes:()=>AZ,registry:()=>Q2,safeDecode:()=>D8,safeDecodeAsync:()=>k8,safeEncode:()=>E8,safeEncodeAsync:()=>O8,safeParse:()=>b8,safeParseAsync:()=>x8,set:()=>M7,setErrorMap:()=>N9,size:()=>u3,slugify:()=>D3,startsWith:()=>v3,strictObject:()=>p7,string:()=>P8,stringFormat:()=>D5,stringbool:()=>k9,success:()=>n9,superRefine:()=>T9,symbol:()=>q5,templateLiteral:()=>m9,toJSONSchema:()=>t8,toLowerCase:()=>T3,toUpperCase:()=>E3,transform:()=>V7,treeifyError:()=>rZ,trim:()=>w3,tuple:()=>w7,uint32:()=>R5,uint64:()=>G5,ulid:()=>r5,undefined:()=>Y5,union:()=>g7,unknown:()=>t7,uppercase:()=>g3,url:()=>K8,util:()=>GY,uuid:()=>V8,uuidv4:()=>H8,uuidv6:()=>U8,uuidv7:()=>W8,void:()=>a7,xid:()=>a5,xor:()=>v7});WY(_0());var Y9=J9,{data:X9,error:Z9}=f7({VITE_SERVER_API_URL:K8(),VITE_SERVER_API_PREFIX:P8(),VITE_SERVER_API_TIMEOUT:W9().default(5e3)}).safeParse({BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_SERVER_API_PREFIX:``,VITE_SERVER_API_TIMEOUT:`10000`,VITE_SERVER_API_URL:`http://localhost:5010`});if(Z9){console.error(`❌ Invalid env`);let e=tZ(Z9);console.error(e),setTimeout(()=>{be.error(`Env error: you should check your .env file`,{description:i(`pre`,{class:`mt-2 rounded-md bg-slate-950 p-4 text-wrap`},i(`code`,{class:`text-white`},JSON.stringify(e,null,2))),duration:1e4})},1e3)}function Q9(){let e=re(bt);RY(e),e.mount(`#app`)}Q9();export{Ce as $,PJ as A,cK as B,tY as C,jJ as D,OJ as E,EJ as F,vt as G,BG as H,wJ as I,mt as J,_t as K,_J as L,HJ as M,QJ as N,kJ as O,MJ as P,ke as Q,OK as R,iY as S,RJ as T,DG as U,zG as V,EV as W,pt as X,ht as Y,Me as Z,kY as _,Y7 as a,yY as b,l7 as c,M5 as d,f7 as f,c8 as g,u8 as h,F9 as i,NJ as j,qJ as k,B5 as l,K8 as m,Y9 as n,d7 as o,P8 as p,gt as q,q9 as r,P7 as s,X9 as t,L8 as u,TY as v,eY as w,fY as x,EY as y,DK as z}; |