@appsbd/vue3-appsbd-ui 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ai/ai_ref_AbButton.md +1 -2
- package/.ai/ai_ref_AbCard.md +70 -53
- package/.ai/ai_ref_AbChart.md +87 -0
- package/.ai/ai_ref_AbDateTimePicker.md +3 -0
- package/.ai/ai_ref_AbField.md +96 -93
- package/.ai/ai_ref_AbInputField.md +74 -71
- package/.ai/ai_ref_AbInputTag.md +3 -0
- package/.ai/ai_ref_AbMultiSelect.md +3 -0
- package/.ai/ai_ref_AbProgressbar.md +9 -2
- package/AI_REFERENCE.md +53 -100
- package/design-system.md +403 -0
- package/dist/skins/black.css +1 -1
- package/dist/skins/cyan.css +1 -1
- package/dist/skins/default.css +1 -1
- package/dist/skins/gray.css +1 -1
- package/dist/skins/green.css +1 -1
- package/dist/skins/orange.css +1 -1
- package/dist/skins/pink.css +1 -1
- package/dist/skins/purple.css +1 -1
- package/dist/skins/red.css +1 -1
- package/dist/skins/themes/_common_variable.scss +2 -0
- package/dist/skins/violet.css +1 -1
- package/dist/style.css +1 -1
- package/dist/vue3-appsbd-ui.cjs.js +114 -41
- package/dist/vue3-appsbd-ui.es.js +27186 -4661
- package/package.json +10 -4
|
@@ -1,201 +1,274 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ie=require("vee-validate"),dt=require("vue3-gettext"),Dt=require("bootstrap"),Se=require("@vee-validate/rules"),Tt=(t,n,o={})=>{const{placement:a="top",offset:i=8,arrowElement:l,padding:c=8,flip:s=!0}=o,d=t.getBoundingClientRect(),r=n.offsetWidth,v=n.offsetHeight,f=window.scrollX||document.documentElement.scrollLeft,u=window.scrollY||document.documentElement.scrollTop;let p=a;if(p.startsWith("auto")){const g=p.split("-")[1],L=d.top;p=window.innerHeight-d.bottom>L?"bottom":"top",g&&(p+="-"+g)}let[m,B]=p.split("-");const V=(g,L)=>{let E,b;switch(g){case"top":E=d.left+d.width/2-r/2,b=d.top-v-i;break;case"bottom":E=d.left+d.width/2-r/2,b=d.bottom+i;break;case"left":E=d.left-r-i,b=d.top+d.height/2-v/2;break;case"right":E=d.right+i,b=d.top+d.height/2-v/2;break}return g==="top"||g==="bottom"?(L==="start"&&(E=d.left),L==="end"&&(E=d.right-r)):(g==="left"||g==="right")&&(L==="start"&&(b=d.top),L==="end"&&(b=d.bottom-v)),{x:E,y:b}};let h=V(m,B),x=h.x,D=h.y;if(s){let g=!1;m==="top"&&D<0?(m="bottom",g=!0):m==="bottom"&&D+v>window.innerHeight?(m="top",g=!0):m==="left"&&x<0?(m="right",g=!0):m==="right"&&x+r>window.innerWidth&&(m="left",g=!0),g&&(h=V(m,B),x=h.x,D=h.y)}m==="top"||m==="bottom"?(x<c&&(x=c),x+r>window.innerWidth-c&&(x=window.innerWidth-r-c)):(m==="left"||m==="right")&&(D<c&&(D=c),D+v>window.innerHeight-c&&(D=window.innerHeight-v-c));let M=null;if(l){const g=l.getBoundingClientRect(),L=l.offsetWidth||g.width,E=l.offsetHeight||g.height;let b=null,I=null;const A=4;m==="top"||m==="bottom"?(b=d.left+d.width/2-x-L/2,b=Math.max(A,Math.min(b,r-L-A))):(m==="left"||m==="right")&&(I=d.top+d.height/2-D-E/2,I=Math.max(A,Math.min(I,v-E-A))),M={x:b,y:I}}return{x:x+f,y:D+u,placement:B?`${m}-${B}`:m,arrowData:M}},At=(t,n,o)=>{let a;const i=()=>{a&&cancelAnimationFrame(a),a=requestAnimationFrame(()=>{o()})};window.addEventListener("scroll",i,!0),window.addEventListener("resize",i);let l=null;return window.ResizeObserver&&(l=new ResizeObserver(i),l.observe(t),l.observe(n)),i(),()=>{window.removeEventListener("scroll",i,!0),window.removeEventListener("resize",i),l&&l.disconnect(),a&&cancelAnimationFrame(a)}},It={mounted(t,n){var i,l,c;t._tooltipState={cleanup:null,tooltipElement:null,arrowElement:null,timeout:null,content:typeof n.value=="string"?n.value:((i=n.value)==null?void 0:i.content)||"",placement:((l=n.value)==null?void 0:l.placement)||"top",offsetValue:((c=n.value)==null?void 0:c.offset)||8};const o=()=>{if(!t._tooltipState.content)return;const s=document.createElement("div");s.className="apbd-tooltip-content apbd-tooltip-fade-enter-from",s.style.position="absolute",s.style.top="0",s.style.left="0",s.style.zIndex="1060";const d=document.createElement("div");d.className="apbd-tooltip-inner",d.textContent=t._tooltipState.content,s.appendChild(d);const r=document.createElement("div");r.className="apbd-tooltip-arrow",s.appendChild(r),document.body.appendChild(s),t._tooltipState.tooltipElement=s,t._tooltipState.arrowElement=r,s.offsetWidth,s.classList.remove("apbd-tooltip-fade-enter-from"),s.classList.add("apbd-tooltip-fade-enter-active");const v=()=>{const{x:f,y:u,placement:p,arrowData:m}=Tt(t,s,{placement:t._tooltipState.placement,offset:t._tooltipState.offsetValue,arrowElement:r});if(Object.assign(s.style,{left:`${f}px`,top:`${u}px`}),m){const{x:B,y:V}=m,h={top:"bottom",right:"left",bottom:"top",left:"right"}[p.split("-")[0]];Object.assign(r.style,{left:B!=null?`${B}px`:"",top:V!=null?`${V}px`:"",right:"",bottom:"",[h]:"-4px"})}};t._tooltipState.cleanup=At(t,s,v)},a=()=>{t._tooltipState.cleanup&&(t._tooltipState.cleanup(),t._tooltipState.cleanup=null);const s=t._tooltipState.tooltipElement;s&&(s.classList.remove("apbd-tooltip-fade-enter-active"),s.classList.add("apbd-tooltip-fade-leave-active"),s.classList.add("apbd-tooltip-fade-leave-to"),setTimeout(()=>{s.parentNode&&s.parentNode.removeChild(s)},200),t._tooltipState.tooltipElement=null,t._tooltipState.arrowElement=null)};t.addEventListener("mouseenter",()=>{clearTimeout(t._tooltipState.timeout),t._tooltipState.tooltipElement||o()}),t.addEventListener("mouseleave",()=>{t._tooltipState.timeout=setTimeout(()=>{a()},100)})},updated(t,n){var o,a,i;if(t._tooltipState.content=typeof n.value=="string"?n.value:((o=n.value)==null?void 0:o.content)||"",t._tooltipState.placement=((a=n.value)==null?void 0:a.placement)||"top",t._tooltipState.offsetValue=((i=n.value)==null?void 0:i.offset)||8,t._tooltipState.tooltipElement){const l=t._tooltipState.tooltipElement.querySelector(".apbd-tooltip-inner");l&&(l.textContent=t._tooltipState.content)}},unmounted(t){var n,o,a,i;clearTimeout((n=t._tooltipState)==null?void 0:n.timeout),(o=t._tooltipState)!=null&&o.cleanup&&t._tooltipState.cleanup(),(i=(a=t._tooltipState)==null?void 0:a.tooltipElement)!=null&&i.parentNode&&t._tooltipState.tooltipElement.parentNode.removeChild(t._tooltipState.tooltipElement),delete t._tooltipState}},W=e.reactive({monthNames:void 0,monthNamesShort:void 0,dayNames:void 0,formatDigit:void 0,rangeSeparator:void 0,is24Hour:void 0,dateDataFormat:void 0,dateDisplayFormat:void 0,datetimeDataFormat:void 0,datetimeDisplayFormat:void 0,timeDataFormat:void 0,timeDisplayFormat:void 0,inputContainerClass:void 0,toastPosition:void 0,toastDesign:void 0,toastTimeout:void 0,toastCloseButton:void 0,toastPauseOnHover:void 0,toastPauseOnFocusLoss:void 0,toastShowProgress:void 0,trueValue:void 0,falseValue:void 0,size:void 0}),Ft=t=>{t&&Object.assign(W,t)},Lt=["type"],Pt={key:1,class:"btn-icon-divider"},jt={key:2},Rt={key:3,class:"icon"},Ot={class:"loader-btn-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",style:{height:"1em","margin-top":"2px","margin-bottom":"-1px"}},le={__name:"AbButton",props:{type:{type:String,default:"button"},isAnimated:{type:Boolean,default:!1},isHideTextOnAnimate:{type:Boolean,default:!1},showIconDivider:{type:Boolean,default:!1},isIconBtn:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)},variant:{type:String,default:"primary",validator:t=>["primary","secondary","danger","warning","success","info","light","dark"].includes(t)},outlineVariant:{type:String,default:"primary",validator:t=>["primary","secondary","danger","warning","success","info","light","dark"].includes(t)},isOutline:{type:Boolean,default:!1}},setup(t){const n=e.useAttrs(),o=t,a=e.useSlots(),i=e.computed(()=>o.size!==void 0&&o.size!==null?o.size:W.size??"md");return(l,c)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["apbd-btn btn",{"apbd-animated":t.isAnimated,"with-icon-divider":t.showIconDivider,"btn-icon":t.isIconBtn,[`btn-${i.value}`]:i.value,[`btn-${t.variant}`]:t.variant&&!t.isOutline&&!(e.unref(n).class&&typeof e.unref(n).class=="string"&&/btn-(outline-)?(primary|secondary|success|danger|warning|info|light|dark)/.test(e.unref(n).class)),[`btn-outline-${t.outlineVariant}`]:t.isOutline}]),type:o.type},[e.unref(a).icon?e.renderSlot(l.$slots,"icon",{key:0}):e.createCommentVNode("",!0),t.showIconDivider?(e.openBlock(),e.createElementBlock("span",Pt)):e.createCommentVNode("",!0),t.isAnimated&&t.isHideTextOnAnimate?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",jt,[e.renderSlot(l.$slots,"default")])),t.isAnimated?(e.openBlock(),e.createElementBlock("span",Rt,[e.renderSlot(l.$slots,"svg",{},()=>[(e.openBlock(),e.createElementBlock("svg",Ot,[...c[0]||(c[0]=[e.createStaticVNode('<circle fill="currentColor" stroke="currentColor" stroke-width="15" r="15" cx="40" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="-.4"></animate></circle><circle fill="currentColor" stroke="currentColor" stroke-width="15" r="15" cx="100" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="-.2"></animate></circle><circle fill="currentColor" stroke="currentColor" stroke-width="15" r="15" cx="160" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="0"></animate></circle>',3)])]))])])):e.createCommentVNode("",!0)],10,Lt))}},he=(t,n)=>{const o=t.__vccOpts||t;for(const[a,i]of n)o[a]=i;return o},Ht={name:"AbCard",inheritAttrs:!1,props:{containerClass:{type:String,default:""},headerClass:{type:String,default:""},bodyClass:{type:String,default:""},footerClass:{type:String,default:""}}},Yt={key:0,class:"card-header"},Ut={class:"card-body"},qt={key:1,class:"card-footer"};function Kt(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["card abpd-card",o.containerClass]},t.$attrs),[t.$slots.header?(e.openBlock(),e.createElementBlock("div",Yt,[e.renderSlot(t.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",Ut,[e.renderSlot(t.$slots,"body")]),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",qt,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)],16)}const Wt=he(Ht,[["render",Kt]]),Gt={name:"AbModal",props:{isModalVisible:Boolean,modalSize:{type:String,default:""},modalMsg:{type:String,default:""},hideHeader:{type:Boolean,default:!1},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCrossBtn:{type:Boolean,default:!1},hideForm:{type:Boolean,default:!1},bodyClass:{type:String,default:""},isModalCenter:{type:Boolean,default:!0},isBorder:{type:Boolean,default:!1},iconContainerClass:{type:String,default:""},headerClass:{type:String,default:""},headerrClass:{type:String,default:""}},components:{Form:ie.Form},data(){return{isShowLoaderProp:!1,modalLoadingMsg:"",modalMsgOnly:{},isHideFooter:!1,initialValues:{}}},created(){},computed:{isShowLoader(){return this.isShowLoaderProp?this.isShowLoaderProp:!1},loading_msg(){return this.modalLoadingMsg},resolvedHeaderClass(){return this.headerClass||this.headerrClass},isHideBtn(){try{return this.hideCrossBtn}catch(t){console.log(t.message)}}},methods:{onSubmit(t,{resetForm:n}){this.$emit("onSubmit",{$event:t,resetForm:n})},showLoader(t,n){this.isShowLoaderProp=t,this.$emit("loading-status",!this.isShowLoaderProp),n&&(this.modalLoadingMsg=n)},close(){this.clearForm(),this.$emit("close")},clearForm(){this.modalMsgOnly={},this.isHideFooter=!1;try{this.$refs.modal_form.setValues({}),this.$refs.modal_form.resetForm()}catch(t){console.log(t.message)}},returnClear(){this.modalMsgOnly={},this.isHideFooter=!1,this.$refs.modal_form.resetForm()},showMsgOnly(t,n){this.modalMsgOnly=t,this.isHideFooter=n},setMessageOnly(t){this.isHideFooter=t}}},Qt={class:"modal-content"},Xt={key:0,class:"d-flex flex-column header-title-container"},Jt={class:"m-0 header-title"},Zt={key:0,class:"m-0 header-sub-title"},_t={class:"modal-loader"},el={class:"loader-content"},tl={key:1,class:"modal-footer"},ll={key:2,class:"modal-footer"};function nl(t,n,o,a,i,l){var d,r,v,f,u;const c=e.resolveComponent("Form"),s=e.resolveDirective("translate");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["modal fade show apbd-modal",{"modal-border-0":!o.isBorder}]),tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle","aria-hidden":"true"},[e.createElementVNode("div",e.mergeProps(t.$attrs,{class:[o.modalSize+(o.isModalCenter?" modal-dialog-centered":""),"modal-dialog"],role:"document"}),[e.createElementVNode("div",Qt,[(d=t.$slots)!=null&&d.header||(r=t.$slots)!=null&&r.headerIcon||(v=t.$slots)!=null&&v.headerTitleContainer||(f=t.$slots)!=null&&f.headerTitle||(u=t.$slots)!=null&&u.headerSubTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["modal-header",l.resolvedHeaderClass])},[e.renderSlot(t.$slots,"header",{},()=>{var p;return[e.createElementVNode("div",{class:e.normalizeClass([(p=t.$slots)!=null&&p.headerSubTitle?"align-items-start":"align-items-center","d-flex align-self-stretch gap-3"])},[t.$slots.headerIcon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["header-icon-container",o.iconContainerClass])},[e.renderSlot(t.$slots,"headerIcon")],2)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"headerTitleContainer",{},()=>{var m,B,V;return[(m=t.$slots)!=null&&m.headerTitle||(B=t.$slots)!=null&&B.headerSubTitle?(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("h3",Jt,[e.renderSlot(t.$slots,"headerTitle")]),(V=t.$slots)!=null&&V.headerSubTitle?(e.openBlock(),e.createElementBlock("p",Zt,[e.renderSlot(t.$slots,"headerSubTitle")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]})],2)]}),l.isHideBtn?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:n[0]||(n[0]=(...p)=>l.close&&l.close(...p))}))],2)):e.createCommentVNode("",!0),e.createVNode(c,{as:o.hideForm?"div":"form",ref:"modal_form",onSubmit:l.onSubmit,onReset:l.clearForm,class:"needs-validation"},{default:e.withCtx(()=>[o.hideBody?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["modal-body",o.bodyClass])},[i.isHideFooter?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"body",{key:0},()=>[n[2]||(n[2]=e.createTextVNode(" This is the default body! ",-1))]),e.withDirectives(e.createElementVNode("div",_t,[e.createElementVNode("div",el,[e.renderSlot(t.$slots,"loader")])],512),[[e.vShow,l.isShowLoader]])],2)),!o.hideFooter&&!i.isHideFooter&&!l.isShowLoader?(e.openBlock(),e.createElementBlock("div",tl,[e.renderSlot(t.$slots,"footer",{close:l.close},()=>[n[3]||(n[3]=e.createTextVNode(" This is the default footer! ",-1))])])):e.createCommentVNode("",!0),!o.hideFooter&&(i.isHideFooter||l.isShowLoader)?(e.openBlock(),e.createElementBlock("div",ll,[e.withDirectives((e.openBlock(),e.createElementBlock("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal",onClick:n[1]||(n[1]=(...p)=>l.close&&l.close(...p))},[...n[4]||(n[4]=[e.createTextVNode(" Close ",-1)])])),[[s]])])):e.createCommentVNode("",!0)]),_:3},8,["as","onSubmit","onReset"])])],16)],2)}const mt=he(Gt,[["render",nl]]),al=["aria-valuenow","aria-valuemin","aria-valuemax"],ol=Object.assign({inheritAttrs:!1},{__name:"AbProgressbar",props:{minValue:{type:Number,default:0},maxValue:{type:Number,default:100},progressValue:{type:Number,default:0},color:{type:String,default:"primary",validator:t=>["success","danger","info","warning","primary","secondary"].includes(t)},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)}},setup(t){const n=e.useAttrs(),o=e.computed(()=>{let l=[];return n.class&&(l=(typeof n.class=="string"?n.class.split(" "):Array.isArray(n.class)?n.class:Object.keys(n.class).filter(s=>n.class[s])).filter(s=>!["progress-right","progress-right-bottom","progress-value-bottom","progress-value-top"].includes(s))),i.value&&l.push(`apbd-progress-${i.value}`),l}),a=t,i=e.computed(()=>a.size!==void 0&&a.size!==null?a.size:W.size??"md");return(l,c)=>{var s,d,r,v;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apbd-progress-container",{"progress-right":(s=e.unref(n).class)==null?void 0:s.includes("progress-right"),"progress-right-bottom":(d=e.unref(n).class)==null?void 0:d.includes("progress-right-bottom"),"progress-value-bottom":(r=e.unref(n).class)==null?void 0:r.includes("progress-value-bottom"),"progress-value-top":(v=e.unref(n).class)==null?void 0:v.includes("progress-value-top")}])},[e.createElementVNode("div",{class:e.normalizeClass(["apbd-progress progress",o.value]),role:"progressbar","aria-valuenow":t.progressValue,"aria-valuemin":t.minValue,"aria-valuemax":t.maxValue},[e.createElementVNode("div",{class:e.normalizeClass(["progress-bar",`bg-${t.color}`]),style:e.normalizeStyle({width:t.progressValue+"%"})},null,6)],10,al),e.createElementVNode("div",{class:"progress-text",style:e.normalizeStyle({"--progress-value":t.progressValue+"%"})},[e.renderSlot(l.$slots,"default")],4)],2)}}});let Xe=null;const ft=t=>{Xe=t},rl=t=>{const n=dt.createGettext(t);return ft(n),n},pt=()=>{if(e.getCurrentInstance())try{return dt.useGettext()}catch{}return Xe||(console.warn("AbTranslate: gettext not initialized. Call initTranslate() in your app setup."),{$gettext:t=>t,interpolate:t=>t})},fe=(t,n)=>{const{$gettext:o,interpolate:a}=pt();return typeof n>"u"&&(n={}),Object.keys(n).forEach(i=>{n[i]=o(n[i])}),a(o(t),n)},k=(t,n)=>{const{$gettext:o,interpolate:a}=pt();return typeof n>"u"&&(n={}),a(o(t),n)};/**
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),je=require("vee-validate"),km=require("vue3-gettext"),D1=require("bootstrap"),ur=require("@vee-validate/rules"),E1=(t,e,r={})=>{const{placement:n="top",offset:a=8,arrowElement:i,padding:s=8,flip:l=!0}=r,u=t.getBoundingClientRect(),c=e.offsetWidth,f=e.offsetHeight,d=window.scrollX||document.documentElement.scrollLeft,h=window.scrollY||document.documentElement.scrollTop;let v=n;if(v.startsWith("auto")){const S=v.split("-")[1],x=u.top;v=window.innerHeight-u.bottom>x?"bottom":"top",S&&(v+="-"+S)}let[p,g]=v.split("-");const m=(S,x)=>{let C,k;switch(S){case"top":C=u.left+u.width/2-c/2,k=u.top-f-a;break;case"bottom":C=u.left+u.width/2-c/2,k=u.bottom+a;break;case"left":C=u.left-c-a,k=u.top+u.height/2-f/2;break;case"right":C=u.right+a,k=u.top+u.height/2-f/2;break}return S==="top"||S==="bottom"?(x==="start"&&(C=u.left),x==="end"&&(C=u.right-c)):(S==="left"||S==="right")&&(x==="start"&&(k=u.top),x==="end"&&(k=u.bottom-f)),{x:C,y:k}};let y=m(p,g),b=y.x,_=y.y;if(l){let S=!1;p==="top"&&_<0?(p="bottom",S=!0):p==="bottom"&&_+f>window.innerHeight?(p="top",S=!0):p==="left"&&b<0?(p="right",S=!0):p==="right"&&b+c>window.innerWidth&&(p="left",S=!0),S&&(y=m(p,g),b=y.x,_=y.y)}p==="top"||p==="bottom"?(b<s&&(b=s),b+c>window.innerWidth-s&&(b=window.innerWidth-c-s)):(p==="left"||p==="right")&&(_<s&&(_=s),_+f>window.innerHeight-s&&(_=window.innerHeight-f-s));let w=null;if(i){const S=i.getBoundingClientRect(),x=i.offsetWidth||S.width,C=i.offsetHeight||S.height;let k=null,D=null;const E=4;p==="top"||p==="bottom"?(k=u.left+u.width/2-b-x/2,k=Math.max(E,Math.min(k,c-x-E))):(p==="left"||p==="right")&&(D=u.top+u.height/2-_-C/2,D=Math.max(E,Math.min(D,f-C-E))),w={x:k,y:D}}return{x:b+d,y:_+h,placement:g?`${p}-${g}`:p,arrowData:w}},M1=(t,e,r)=>{let n;const a=()=>{n&&cancelAnimationFrame(n),n=requestAnimationFrame(()=>{r()})};window.addEventListener("scroll",a,!0),window.addEventListener("resize",a);let i=null;return window.ResizeObserver&&(i=new ResizeObserver(a),i.observe(t),i.observe(e)),a(),()=>{window.removeEventListener("scroll",a,!0),window.removeEventListener("resize",a),i&&i.disconnect(),n&&cancelAnimationFrame(n)}},A1={mounted(t,e){var a,i,s;t._tooltipState={cleanup:null,tooltipElement:null,arrowElement:null,timeout:null,content:typeof e.value=="string"?e.value:((a=e.value)==null?void 0:a.content)||"",placement:((i=e.value)==null?void 0:i.placement)||"top",offsetValue:((s=e.value)==null?void 0:s.offset)||8};const r=()=>{if(!t._tooltipState.content)return;const l=document.createElement("div");l.className="apbd-tooltip-content apbd-tooltip-fade-enter-from",l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.zIndex="1060";const u=document.createElement("div");u.className="apbd-tooltip-inner",u.textContent=t._tooltipState.content,l.appendChild(u);const c=document.createElement("div");c.className="apbd-tooltip-arrow",l.appendChild(c),document.body.appendChild(l),t._tooltipState.tooltipElement=l,t._tooltipState.arrowElement=c,l.offsetWidth,l.classList.remove("apbd-tooltip-fade-enter-from"),l.classList.add("apbd-tooltip-fade-enter-active");const f=()=>{const{x:d,y:h,placement:v,arrowData:p}=E1(t,l,{placement:t._tooltipState.placement,offset:t._tooltipState.offsetValue,arrowElement:c});if(Object.assign(l.style,{left:`${d}px`,top:`${h}px`}),p){const{x:g,y:m}=p,y={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]];Object.assign(c.style,{left:g!=null?`${g}px`:"",top:m!=null?`${m}px`:"",right:"",bottom:"",[y]:"-4px"})}};t._tooltipState.cleanup=M1(t,l,f)},n=()=>{t._tooltipState.cleanup&&(t._tooltipState.cleanup(),t._tooltipState.cleanup=null);const l=t._tooltipState.tooltipElement;l&&(l.classList.remove("apbd-tooltip-fade-enter-active"),l.classList.add("apbd-tooltip-fade-leave-active"),l.classList.add("apbd-tooltip-fade-leave-to"),setTimeout(()=>{l.parentNode&&l.parentNode.removeChild(l)},200),t._tooltipState.tooltipElement=null,t._tooltipState.arrowElement=null)};t.addEventListener("mouseenter",()=>{clearTimeout(t._tooltipState.timeout),t._tooltipState.tooltipElement||r()}),t.addEventListener("mouseleave",()=>{t._tooltipState.timeout=setTimeout(()=>{n()},100)})},updated(t,e){var r,n,a;if(t._tooltipState.content=typeof e.value=="string"?e.value:((r=e.value)==null?void 0:r.content)||"",t._tooltipState.placement=((n=e.value)==null?void 0:n.placement)||"top",t._tooltipState.offsetValue=((a=e.value)==null?void 0:a.offset)||8,t._tooltipState.tooltipElement){const i=t._tooltipState.tooltipElement.querySelector(".apbd-tooltip-inner");i&&(i.textContent=t._tooltipState.content)}},unmounted(t){var e,r,n,a;clearTimeout((e=t._tooltipState)==null?void 0:e.timeout),(r=t._tooltipState)!=null&&r.cleanup&&t._tooltipState.cleanup(),(a=(n=t._tooltipState)==null?void 0:n.tooltipElement)!=null&&a.parentNode&&t._tooltipState.tooltipElement.parentNode.removeChild(t._tooltipState.tooltipElement),delete t._tooltipState}},te=o.reactive({monthNames:void 0,monthNamesShort:void 0,dayNames:void 0,formatDigit:void 0,rangeSeparator:void 0,is24Hour:void 0,dateDataFormat:void 0,dateDisplayFormat:void 0,datetimeDataFormat:void 0,datetimeDisplayFormat:void 0,timeDataFormat:void 0,timeDisplayFormat:void 0,inputContainerClass:void 0,toastPosition:void 0,toastDesign:void 0,toastTimeout:void 0,toastCloseButton:void 0,toastPauseOnHover:void 0,toastPauseOnFocusLoss:void 0,toastShowProgress:void 0,trueValue:void 0,falseValue:void 0,size:void 0,iconPosition:void 0}),N1=t=>{t&&Object.assign(te,t)},B1=["type"],V1={key:1,class:"btn-icon-divider"},I1={key:2},L1={key:3,class:"icon"},P1={class:"loader-btn-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",style:{height:"1em","margin-top":"2px","margin-bottom":"-1px"}},Le={__name:"AbButton",props:{type:{type:String,default:"button"},isAnimated:{type:Boolean,default:!1},isHideTextOnAnimate:{type:Boolean,default:!1},showIconDivider:{type:Boolean,default:!1},isIconBtn:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)},variant:{type:String,default:"primary",validator:t=>["primary","secondary","danger","warning","success","info","light","dark"].includes(t)},isOutline:{type:Boolean,default:!1}},setup(t){const e=o.useAttrs(),r=t,n=o.useSlots(),a=o.computed(()=>r.size!==void 0&&r.size!==null?r.size:te.size??"md");return(i,s)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["apbd-btn btn",{"apbd-animated":t.isAnimated,"with-icon-divider":t.showIconDivider,"btn-icon":t.isIconBtn,[`btn-${a.value}`]:a.value,[`btn-${t.variant}`]:t.variant&&!t.isOutline&&!(o.unref(e).class&&typeof o.unref(e).class=="string"&&/btn-(outline-)?(primary|secondary|success|danger|warning|info|light|dark)/.test(o.unref(e).class)),[`btn-outline-${t.variant}`]:t.variant&&t.isOutline}]),type:r.type},[o.unref(n).icon?o.renderSlot(i.$slots,"icon",{key:0}):o.createCommentVNode("",!0),t.showIconDivider?(o.openBlock(),o.createElementBlock("span",V1)):o.createCommentVNode("",!0),t.isAnimated&&t.isHideTextOnAnimate?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("span",I1,[o.renderSlot(i.$slots,"default")])),t.isAnimated?(o.openBlock(),o.createElementBlock("span",L1,[o.renderSlot(i.$slots,"svg",{},()=>[(o.openBlock(),o.createElementBlock("svg",P1,[...s[0]||(s[0]=[o.createStaticVNode('<circle fill="currentColor" stroke="currentColor" stroke-width="15" r="15" cx="40" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="-.4"></animate></circle><circle fill="currentColor" stroke="currentColor" stroke-width="15" r="15" cx="100" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="-.2"></animate></circle><circle fill="currentColor" stroke="currentColor" stroke-width="15" r="15" cx="160" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="0"></animate></circle>',3)])]))])])):o.createCommentVNode("",!0)],10,B1))}},z1=Object.assign({name:"AbCard",inheritAttrs:!1},{__name:"AbCard",props:{containerClass:{type:String,default:void 0},headerClass:{type:String,default:""},bodyClass:{type:String,default:""},footerClass:{type:String,default:""},variation:{type:String,default:""},isBorderCard:{type:Boolean,default:!0},bgColorVariant:{type:String,default:"",validator:t=>["primary","secondary","success","danger","warning","info","light","dark"].includes(t)},borderBottomVariant:{type:String,default:"",validator:t=>["primary","secondary","success","danger","warning","info","light","dark"].includes(t)},isTileCard:{type:Boolean,default:!1}},setup(t){const e=t,r=o.useAttrs(),n=o.useSlots(),a=o.computed(()=>e.containerClass!==void 0&&e.containerClass!==null?e.containerClass:te.inputContainerClass??""),i=o.computed(()=>e.borderBottomVariant?`border-bottom-${e.borderBottomVariant}`:"");return(s,l)=>(o.openBlock(),o.createElementBlock("div",o.mergeProps({class:["abpd-card card",[a.value,t.variation,t.bgColorVariant,i.value,{"tile-card":t.isTileCard},{"border-card":t.isBorderCard}]]},o.unref(r)),[o.unref(n).header?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["card-header",t.headerClass])},[o.renderSlot(s.$slots,"header")],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["card-body",t.bodyClass])},[o.renderSlot(s.$slots,"body")],2),o.unref(n).footer?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["card-footer",t.footerClass])},[o.renderSlot(s.$slots,"footer")],2)):o.createCommentVNode("",!0)],16))}}),gt=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},R1={name:"AbModal",props:{isModalVisible:Boolean,modalSize:{type:String,default:""},modalMsg:{type:String,default:""},hideHeader:{type:Boolean,default:!1},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCrossBtn:{type:Boolean,default:!1},hideForm:{type:Boolean,default:!1},bodyClass:{type:String,default:""},isModalCenter:{type:Boolean,default:!0},isBorder:{type:Boolean,default:!1},iconContainerClass:{type:String,default:""},headerClass:{type:String,default:""},headerrClass:{type:String,default:""}},components:{Form:je.Form},data(){return{isShowLoaderProp:!1,modalLoadingMsg:"",modalMsgOnly:{},isHideFooter:!1,initialValues:{}}},created(){},computed:{isShowLoader(){return this.isShowLoaderProp?this.isShowLoaderProp:!1},loading_msg(){return this.modalLoadingMsg},resolvedHeaderClass(){return this.headerClass||this.headerrClass},isHideBtn(){try{return this.hideCrossBtn}catch(t){console.log(t.message)}}},methods:{onSubmit(t,{resetForm:e}){this.$emit("onSubmit",{$event:t,resetForm:e})},showLoader(t,e){this.isShowLoaderProp=t,this.$emit("loading-status",!this.isShowLoaderProp),e&&(this.modalLoadingMsg=e)},close(){this.clearForm(),this.$emit("close")},clearForm(){this.modalMsgOnly={},this.isHideFooter=!1;try{this.$refs.modal_form.setValues({}),this.$refs.modal_form.resetForm()}catch(t){console.log(t.message)}},returnClear(){this.modalMsgOnly={},this.isHideFooter=!1,this.$refs.modal_form.resetForm()},showMsgOnly(t,e){this.modalMsgOnly=t,this.isHideFooter=e},setMessageOnly(t){this.isHideFooter=t}}},O1={class:"modal-content"},$1={key:0,class:"d-flex flex-column header-title-container"},F1={class:"m-0 header-title"},H1={key:0,class:"m-0 header-sub-title"},G1={class:"modal-loader"},W1={class:"loader-content"},U1={key:1,class:"modal-footer"},Y1={key:2,class:"modal-footer"};function X1(t,e,r,n,a,i){var u,c,f,d,h;const s=o.resolveComponent("Form"),l=o.resolveDirective("translate");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["modal fade show apbd-modal",{"modal-border-0":!r.isBorder}]),tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle","aria-hidden":"true"},[o.createElementVNode("div",o.mergeProps(t.$attrs,{class:[r.modalSize+(r.isModalCenter?" modal-dialog-centered":""),"modal-dialog"],role:"document"}),[o.createElementVNode("div",O1,[(u=t.$slots)!=null&&u.header||(c=t.$slots)!=null&&c.headerIcon||(f=t.$slots)!=null&&f.headerTitleContainer||(d=t.$slots)!=null&&d.headerTitle||(h=t.$slots)!=null&&h.headerSubTitle?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["modal-header",i.resolvedHeaderClass])},[o.renderSlot(t.$slots,"header",{},()=>{var v;return[o.createElementVNode("div",{class:o.normalizeClass([(v=t.$slots)!=null&&v.headerSubTitle?"align-items-start":"align-items-center","d-flex align-self-stretch gap-3"])},[t.$slots.headerIcon?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["header-icon-container",r.iconContainerClass])},[o.renderSlot(t.$slots,"headerIcon")],2)):o.createCommentVNode("",!0),o.renderSlot(t.$slots,"headerTitleContainer",{},()=>{var p,g,m;return[(p=t.$slots)!=null&&p.headerTitle||(g=t.$slots)!=null&&g.headerSubTitle?(o.openBlock(),o.createElementBlock("div",$1,[o.createElementVNode("h3",F1,[o.renderSlot(t.$slots,"headerTitle")]),(m=t.$slots)!=null&&m.headerSubTitle?(o.openBlock(),o.createElementBlock("p",H1,[o.renderSlot(t.$slots,"headerSubTitle")])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)]})],2)]}),i.isHideBtn?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:e[0]||(e[0]=(...v)=>i.close&&i.close(...v))}))],2)):o.createCommentVNode("",!0),o.createVNode(s,{as:r.hideForm?"div":"form",ref:"modal_form",onSubmit:i.onSubmit,onReset:i.clearForm,class:"needs-validation"},{default:o.withCtx(()=>[r.hideBody?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["modal-body",r.bodyClass])},[a.isHideFooter?o.createCommentVNode("",!0):o.renderSlot(t.$slots,"body",{key:0},()=>[e[2]||(e[2]=o.createTextVNode(" This is the default body! ",-1))]),o.withDirectives(o.createElementVNode("div",G1,[o.createElementVNode("div",W1,[o.renderSlot(t.$slots,"loader")])],512),[[o.vShow,i.isShowLoader]])],2)),!r.hideFooter&&!a.isHideFooter&&!i.isShowLoader?(o.openBlock(),o.createElementBlock("div",U1,[o.renderSlot(t.$slots,"footer",{close:i.close},()=>[e[3]||(e[3]=o.createTextVNode(" This is the default footer! ",-1))])])):o.createCommentVNode("",!0),!r.hideFooter&&(a.isHideFooter||i.isShowLoader)?(o.openBlock(),o.createElementBlock("div",Y1,[o.withDirectives((o.openBlock(),o.createElementBlock("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal",onClick:e[1]||(e[1]=(...v)=>i.close&&i.close(...v))},[...e[4]||(e[4]=[o.createTextVNode(" Close ",-1)])])),[[l]])])):o.createCommentVNode("",!0)]),_:3},8,["as","onSubmit","onReset"])])],16)],2)}const Tm=gt(R1,[["render",X1]]),q1=["aria-valuenow","aria-valuemin","aria-valuemax"],j1=Object.assign({inheritAttrs:!1},{__name:"AbProgressbar",props:{minValue:{type:Number,default:0},maxValue:{type:Number,default:100},progressValue:{type:Number,default:0},color:{type:String,default:"primary",validator:t=>["success","danger","info","warning","primary","secondary"].includes(t)},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)}},setup(t){const e=o.useAttrs(),r=o.computed(()=>{let i=[];return e.class&&(i=(typeof e.class=="string"?e.class.split(" "):Array.isArray(e.class)?e.class:Object.keys(e.class).filter(l=>e.class[l])).filter(l=>!["progress-right","progress-right-bottom","progress-right-top","progress-value-bottom","progress-value-top"].includes(l))),a.value&&i.push(`apbd-progress-${a.value}`),i}),n=t,a=o.computed(()=>n.size!==void 0&&n.size!==null?n.size:te.size??"md");return(i,s)=>{var l,u,c,f,d;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["apbd-progress-container",{"progress-right":(l=o.unref(e).class)==null?void 0:l.includes("progress-right"),"progress-right-bottom":(u=o.unref(e).class)==null?void 0:u.includes("progress-right-bottom"),"progress-right-top":(c=o.unref(e).class)==null?void 0:c.includes("progress-right-top"),"progress-value-bottom":(f=o.unref(e).class)==null?void 0:f.includes("progress-value-bottom"),"progress-value-top":(d=o.unref(e).class)==null?void 0:d.includes("progress-value-top")}])},[o.createElementVNode("div",{class:o.normalizeClass(["apbd-progress progress",r.value]),role:"progressbar","aria-valuenow":t.progressValue,"aria-valuemin":t.minValue,"aria-valuemax":t.maxValue},[o.createElementVNode("div",{class:o.normalizeClass(["progress-bar",`bg-${t.color}`]),style:o.normalizeStyle({width:t.progressValue+"%"})},null,6)],10,q1),o.createElementVNode("div",{class:"progress-text",style:o.normalizeStyle({"--progress-value":t.progressValue+"%"})},[o.renderSlot(i.$slots,"default")],4)],2)}}});let tc=null;const Dm=t=>{tc=t},Z1=t=>{const e=km.createGettext(t);return Dm(e),e},Em=()=>{if(o.getCurrentInstance())try{return km.useGettext()}catch{}return tc||(console.warn("AbTranslate: gettext not initialized. Call initTranslate() in your app setup."),{$gettext:t=>t,interpolate:t=>t})},et=(t,e)=>{const{$gettext:r,interpolate:n}=Em();return typeof e>"u"&&(e={}),Object.keys(e).forEach(a=>{e[a]=r(e[a])}),n(r(t),e)},$=(t,e)=>{const{$gettext:r,interpolate:n}=Em();return typeof e>"u"&&(e={}),n(r(t),e)};/**
|
|
2
2
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const
|
|
6
|
+
*/const K1=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/**
|
|
7
7
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const
|
|
11
|
+
*/const Ed=t=>t==="";/**
|
|
12
12
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const Q1=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
|
|
17
17
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
21
|
+
*/const Md=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
22
22
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const
|
|
26
|
+
*/const J1=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,n)=>n?n.toUpperCase():r.toLowerCase());/**
|
|
27
27
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const eb=t=>{const e=J1(t);return e.charAt(0).toUpperCase()+e.slice(1)};/**
|
|
32
32
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var
|
|
36
|
+
*/var ja={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
37
37
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const tb=({name:t,iconNode:e,absoluteStrokeWidth:r,"absolute-stroke-width":n,strokeWidth:a,"stroke-width":i,size:s=ja.width,color:l=ja.stroke,...u},{slots:c})=>o.h("svg",{...ja,...u,width:s,height:s,stroke:l,"stroke-width":Ed(r)||Ed(n)||r===!0||n===!0?Number(a||i||ja["stroke-width"])*24/Number(s):a||i||ja["stroke-width"],class:Q1("lucide",u.class,...t?[`lucide-${Md(eb(t))}-icon`,`lucide-${Md(t)}`]:["lucide-icon"]),...!c.default&&!K1(u)&&{"aria-hidden":"true"}},[...e.map(f=>o.h(...f)),...c.default?[c.default()]:[]]);/**
|
|
42
42
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const
|
|
46
|
+
*/const we=(t,e)=>(r,{slots:n,attrs:a})=>o.h(tb,{...a,...r,iconNode:e,name:t},n);/**
|
|
47
47
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const
|
|
51
|
+
*/const rb=we("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
52
52
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const
|
|
56
|
+
*/const Ad=we("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
|
|
57
57
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the ISC license.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const
|
|
61
|
+
*/const rc=we("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
62
62
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the ISC license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const
|
|
66
|
+
*/const nc=we("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
67
67
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the ISC license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const
|
|
71
|
+
*/const Mm=we("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
72
72
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const
|
|
76
|
+
*/const Am=we("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
77
77
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the ISC license.
|
|
80
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const
|
|
81
|
+
*/const nb=we("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
82
82
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const
|
|
86
|
+
*/const Qo=we("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
87
87
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const
|
|
91
|
+
*/const Nd=we("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
92
92
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const
|
|
96
|
+
*/const Bd=we("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);/**
|
|
97
97
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const
|
|
101
|
+
*/const Vd=we("dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]);/**
|
|
102
102
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const
|
|
106
|
+
*/const ac=we("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
107
107
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
108
108
|
*
|
|
109
109
|
* This source code is licensed under the ISC license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const
|
|
111
|
+
*/const ic=we("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
112
112
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
113
113
|
*
|
|
114
114
|
* This source code is licensed under the ISC license.
|
|
115
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const
|
|
116
|
+
*/const ab=we("file-chart-column",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 18v-1",key:"zg0ygc"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"M16 18v-3",key:"j5jt4h"}]]);/**
|
|
117
117
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
118
118
|
*
|
|
119
119
|
* This source code is licensed under the ISC license.
|
|
120
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const
|
|
121
|
+
*/const ib=we("file-play",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",key:"1tzo1f"}]]);/**
|
|
122
122
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the ISC license.
|
|
125
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const
|
|
126
|
+
*/const Id=we("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
127
127
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
128
128
|
*
|
|
129
129
|
* This source code is licensed under the ISC license.
|
|
130
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const
|
|
131
|
+
*/const ob=we("folder-archive",[["circle",{cx:"15",cy:"19",r:"2",key:"u2pros"}],["path",{d:"M20.9 19.8A2 2 0 0 0 22 18V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h5.1",key:"1jj40k"}],["path",{d:"M15 11v-1",key:"cntcp"}],["path",{d:"M15 17v-2",key:"1279jj"}]]);/**
|
|
132
132
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
133
133
|
*
|
|
134
134
|
* This source code is licensed under the ISC license.
|
|
135
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const
|
|
136
|
+
*/const sb=we("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
137
137
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the ISC license.
|
|
140
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const
|
|
141
|
+
*/const lb=we("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
142
142
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the ISC license.
|
|
145
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const
|
|
146
|
+
*/const ub=we("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
147
147
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
148
148
|
*
|
|
149
149
|
* This source code is licensed under the ISC license.
|
|
150
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const
|
|
151
|
+
*/const Nm=we("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
152
152
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
153
153
|
*
|
|
154
154
|
* This source code is licensed under the ISC license.
|
|
155
155
|
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const
|
|
156
|
+
*/const cb=we("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
|
|
157
157
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
158
158
|
*
|
|
159
159
|
* This source code is licensed under the ISC license.
|
|
160
160
|
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const
|
|
161
|
+
*/const Ld=we("panel-right-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]]);/**
|
|
162
162
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
163
163
|
*
|
|
164
164
|
* This source code is licensed under the ISC license.
|
|
165
165
|
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const
|
|
166
|
+
*/const mf=we("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
167
167
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
168
168
|
*
|
|
169
169
|
* This source code is licensed under the ISC license.
|
|
170
170
|
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const
|
|
171
|
+
*/const Pd=we("scan-qr-code",[["path",{d:"M17 12v4a1 1 0 0 1-1 1h-4",key:"uk4fdo"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M17 8V7",key:"q2g9wo"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M7 17h.01",key:"19xn7k"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["rect",{x:"7",y:"7",width:"5",height:"5",rx:"1",key:"m9kyts"}]]);/**
|
|
172
172
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
173
173
|
*
|
|
174
174
|
* This source code is licensed under the ISC license.
|
|
175
175
|
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const
|
|
176
|
+
*/const El=we("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
|
|
177
177
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
178
178
|
*
|
|
179
179
|
* This source code is licensed under the ISC license.
|
|
180
180
|
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const
|
|
181
|
+
*/const fb=we("sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]);/**
|
|
182
182
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
183
183
|
*
|
|
184
184
|
* This source code is licensed under the ISC license.
|
|
185
185
|
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const
|
|
186
|
+
*/const Ml=we("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
|
|
187
187
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
188
188
|
*
|
|
189
189
|
* This source code is licensed under the ISC license.
|
|
190
190
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const
|
|
191
|
+
*/const db=we("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
192
192
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
193
193
|
*
|
|
194
194
|
* This source code is licensed under the ISC license.
|
|
195
195
|
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const
|
|
196
|
+
*/const hb=we("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/**
|
|
197
197
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
198
198
|
*
|
|
199
199
|
* This source code is licensed under the ISC license.
|
|
200
200
|
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const xl=_("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),Nl=["for"],El={key:0,class:"input-group-text left"},$l={key:1,class:"input-group-text right"},zl={key:1,class:"form-text"},Ml={name:"AbInputField",inheritAttrs:!1,components:{Field:ie.Field,ErrorMessage:ie.ErrorMessage,Eye:yt,EyeOff:gt},props:{modelValue:{default:null},label:{type:String,default:""},placeholder:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,required:!0},isCodeInput:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)},rules:"",containerClass:{type:String,default:void 0},hints:{type:String,default:""},prefix:{type:String,default:""},postfix:{type:String,default:""},maxlength:{default:null},isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1}},data(){return{isPass:!1,showPassword:!1}},computed:{effectiveContainerClass(){return this.containerClass!==void 0&&this.containerClass!==null?this.containerClass:W.inputContainerClass??""},effectiveSize(){return this.size!==void 0&&this.size!==null?this.size:W.size??"md"},internalValue:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},dynamicType(){return this.isPass?this.showPassword?"text":"password":this.type},dynamicIconBorder(){return!this.$slots.prefix&&!this.$slots.postfix&&!this.isPass?"":this.isLeftIconBorder?"input-group-text-border-right-0 ":this.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"}},mounted(){if(this.type=="password"&&(this.isPass=!0),this.hasDropdown){const t=this.$el.querySelector('[data-bs-toggle="dropdown"]');t&&new Dt.Dropdown(t)}},methods:{passVisibility(){this.internalValue&&(this.showPassword=!this.showPassword)}}},Ce=Object.assign(Ml,{setup(t){return(n,o)=>{var a,i,l,c,s,d,r,v,f,u;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([[n.effectiveContainerClass,n.dynamicIconBorder],"apbd-input-container"])},[t.label||n.$slots.label?(e.openBlock(),e.createElementBlock("label",{key:0,class:"form-label",for:(a=n.$attrs)==null?void 0:a.id},[e.renderSlot(n.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])],8,Nl)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({"input-group":((i=n.$slots)==null?void 0:i.prefix)||((l=n.$slots)==null?void 0:l.postfix)||t.prefix||t.postfix||t.type=="password"})},[(c=n.$slots)!=null&&c.prefix||t.prefix?(e.openBlock(),e.createElementBlock("span",El,[e.renderSlot(n.$slots,"prefix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.prefix)),1)])])):e.createCommentVNode("",!0),e.createVNode(e.unref(ie.Field),{class:e.normalizeClass(["form-control",[(s=n.$attrs)==null?void 0:s.class,n.effectiveSize?`form-control-${n.effectiveSize}`:"",{"mega-input-field":t.isCodeInput}]]),disabled:(d=n.$attrs)==null?void 0:d.disabled,id:(r=n.$attrs)==null?void 0:r.id,as:(v=n.$attrs)==null?void 0:v.as,style:e.normalizeStyle((f=n.$attrs)==null?void 0:f.style),placeholder:e.unref(k)(t.placeholder),label:e.unref(k)(t.label??t.type),name:t.name,value:t.modelValue,maxlength:t.maxlength,onInput:o[0]||(o[0]=p=>(n.$emit("input",p.target.value),n.$emit("update:modelValue",p))),onKeyup:o[1]||(o[1]=p=>n.$emit("keyup",p)),onKeydown:o[2]||(o[2]=p=>n.$emit("keydown",p)),onPaste:o[3]||(o[3]=p=>n.$emit("paste",p)),modelValue:n.internalValue,"onUpdate:modelValue":o[4]||(o[4]=p=>n.internalValue=p),rules:t.rules,type:n.dynamicType},null,8,["class","disabled","id","as","style","placeholder","label","name","value","maxlength","modelValue","rules","type"]),(u=n.$slots)!=null&&u.postfix||t.postfix?(e.openBlock(),e.createElementBlock("span",$l,[e.renderSlot(n.$slots,"postfix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.postfix)),1)])])):e.createCommentVNode("",!0),n.isPass?(e.openBlock(),e.createElementBlock("span",{key:2,class:"input-group-text right",onClick:o[5]||(o[5]=(...p)=>n.passVisibility&&n.passVisibility(...p))},[n.showPassword?(e.openBlock(),e.createBlock(e.unref(yt),{key:0})):(e.openBlock(),e.createBlock(e.unref(gt),{key:1}))])):e.createCommentVNode("",!0)],2),e.createVNode(e.unref(ie.ErrorMessage),{name:t.name,class:"apbd-v-error"},null,8,["name"]),t.hints||n.$slots.hints?(e.openBlock(),e.createElementBlock("div",zl,[e.renderSlot(n.$slots,"hints",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.hints)),1)])])):e.createCommentVNode("",!0)],2)}}}),Dl=["for"],Tl={key:0,class:"input-group-text left"},Al=["disabled"],Il=["disabled"],Fl={key:3,class:"input-group-text right"},Ll={key:1,class:"form-text"},Pl={name:"AbNumberField",inheritAttrs:!1,components:{Field:ie.Field,ErrorMessage:ie.ErrorMessage,PlusIcon:_e,MinusIcon:bt},props:{modelValue:{default:null},label:{type:String,default:""},placeholder:{type:String,default:""},name:{type:String,required:!0},rules:"",containerClass:{type:String,default:"mb-3"},hints:{type:String,default:""},prefix:{type:String,default:""},postfix:{type:String,default:""},min:{type:[Number,String],default:null},max:{type:[Number,String],default:null},step:{type:[Number,String],default:1},showButtons:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1},isBorder:{type:Boolean,default:!1}},computed:{internalValue:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},dynamicIconBorder(){return!this.$slots.prefix&&!this.$slots.postfix&&!this.prefix&&!this.postfix&&!this.showButtons?"":this.isLeftIconBorder?"input-group-text-border-right-0 ":this.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"}},methods:{handleInput(t){let n=t.target.value;if(n===""){this.internalValue=null;return}let o=parseFloat(n);this.max!==null&&o>parseFloat(this.max)&&(o=parseFloat(this.max)),this.min!==null&&o<parseFloat(this.min)&&(o=parseFloat(this.min)),this.internalValue=o,this.$emit("input",o),this.$emit("update:modelValue",o)},increment(){const t=parseFloat(this.internalValue)||0,n=parseFloat(this.step)||1;let o=t+n;this.max!==null&&(o=Math.min(o,parseFloat(this.max))),this.internalValue=o},decrement(){const t=parseFloat(this.internalValue)||0,n=parseFloat(this.step)||1;let o=t-n;this.min!==null&&(o=Math.max(o,parseFloat(this.min))),this.internalValue=o}}},jl=Object.assign(Pl,{setup(t){return(n,o)=>{var a,i,l,c,s,d,r,v,f,u;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([[t.containerClass,n.dynamicIconBorder,{"apbd-number-field-bordered":t.isBorder}],"apbd-input-container apbd-number-field"])},[t.label||n.$slots.label?(e.openBlock(),e.createElementBlock("label",{key:0,class:"form-label",for:(a=n.$attrs)==null?void 0:a.id},[e.renderSlot(n.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])],8,Dl)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({"input-group":((i=n.$slots)==null?void 0:i.prefix)||((l=n.$slots)==null?void 0:l.postfix)||t.prefix||t.postfix||t.showButtons})},[(c=n.$slots)!=null&&c.prefix||t.prefix?(e.openBlock(),e.createElementBlock("span",Tl,[e.renderSlot(n.$slots,"prefix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.prefix)),1)])])):e.createCommentVNode("",!0),t.showButtons?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"btn apbd-number-btn apbd-number-btn-minus input-group-text left",onClick:o[0]||(o[0]=(...p)=>n.decrement&&n.decrement(...p)),disabled:t.disabled||t.min!==null&&n.internalValue<=t.min},[e.createVNode(e.unref(bt))],8,Al)):e.createCommentVNode("",!0),e.createVNode(e.unref(ie.Field),{class:e.normalizeClass(["form-control",[(s=n.$attrs)==null?void 0:s.class,{"apbd-number-input":!0}]]),disabled:(d=n.$attrs)==null?void 0:d.disabled,id:(r=n.$attrs)==null?void 0:r.id,as:(v=n.$attrs)==null?void 0:v.as,style:e.normalizeStyle((f=n.$attrs)==null?void 0:f.style),placeholder:e.unref(k)(t.placeholder),label:e.unref(k)(t.label??n.type),name:t.name,value:t.modelValue,min:t.min,max:t.max,step:t.step,onInput:n.handleInput,onKeyup:o[1]||(o[1]=p=>n.$emit("keyup",p)),onKeydown:o[2]||(o[2]=p=>n.$emit("keydown",p)),onPaste:o[3]||(o[3]=p=>n.$emit("paste",p)),modelValue:n.internalValue,"onUpdate:modelValue":o[4]||(o[4]=p=>n.internalValue=p),rules:t.rules,type:"number"},null,8,["class","disabled","id","as","style","placeholder","label","name","value","min","max","step","onInput","modelValue","rules"]),t.showButtons?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"btn apbd-number-btn apbd-number-btn-plus input-group-text right",onClick:o[5]||(o[5]=(...p)=>n.increment&&n.increment(...p)),disabled:t.disabled||t.max!==null&&n.internalValue>=t.max},[e.createVNode(e.unref(_e))],8,Il)):e.createCommentVNode("",!0),(u=n.$slots)!=null&&u.postfix||t.postfix?(e.openBlock(),e.createElementBlock("span",Fl,[e.renderSlot(n.$slots,"postfix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.postfix)),1)])])):e.createCommentVNode("",!0)],2),e.createVNode(e.unref(ie.ErrorMessage),{name:t.name,class:"apbd-v-error"},null,8,["name"]),t.hints||n.$slots.hints?(e.openBlock(),e.createElementBlock("div",Ll,[e.renderSlot(n.$slots,"hints",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.hints)),1)])])):e.createCommentVNode("",!0)],2)}}});function kt(t,n,o={}){const a=e.ref({position:"absolute",top:"0px",left:"0px"}),i=e.ref({arrow:{x:null,y:null}}),l=e.ref(e.unref(o.placement)||"bottom");let c=null,s=null;const d=()=>({placement:e.unref(o.placement)||"bottom",offset:e.unref(o.offset)||0,arrowElement:e.unref(o.arrowElement),arrowPadding:e.unref(o.arrowPadding)||0,shiftPadding:e.unref(o.shiftPadding)||8,flip:e.unref(o.flip)!==!1,autoPlacement:e.unref(o.autoPlacement),alignment:e.unref(o.alignment)}),r=async()=>{const f=e.unref(t),u=e.unref(n);if(!f||!u)return;await e.nextTick();const p=d(),m=f.getBoundingClientRect(),B=u.getBoundingClientRect(),V=u.offsetWidth||B.width,h=u.offsetHeight||B.height,x=window.scrollX||document.documentElement.scrollLeft,D=window.scrollY||document.documentElement.scrollTop;let M=p.placement;if(!M||M.startsWith("auto")){const C=m.top;M=window.innerHeight-m.bottom>C?"bottom":"top",p.alignment&&(M+="-"+p.alignment)}let[g,L]=M.split("-"),E=0,b=0;const I=Number(p.offset),A=(C,N)=>{let z,w;switch(C){case"top":z=m.left+m.width/2-V/2,w=m.top-h-I;break;case"bottom":z=m.left+m.width/2-V/2,w=m.bottom+I;break;case"left":z=m.left-V-I,w=m.top+m.height/2-h/2;break;case"right":z=m.right+I,w=m.top+m.height/2-h/2;break}return C==="top"||C==="bottom"?(N==="start"&&(z=m.left),N==="end"&&(z=m.right-V)):(C==="left"||C==="right")&&(N==="start"&&(w=m.top),N==="end"&&(w=m.bottom-h)),{x:z,y:w}};let K=A(g,L);if(E=K.x,b=K.y,p.flip){let C=!1;g==="top"&&b<0?(g="bottom",C=!0):g==="bottom"&&b+h>window.innerHeight?(g="top",C=!0):g==="left"&&E<0?(g="right",C=!0):g==="right"&&E+V>window.innerWidth&&(g="left",C=!0),C&&(K=A(g,L),E=K.x,b=K.y)}const P=p.shiftPadding;if(g==="top"||g==="bottom"?(E<P&&(E=P),E+V>window.innerWidth-P&&(E=window.innerWidth-V-P)):(g==="left"||g==="right")&&(b<P&&(b=P),b+h>window.innerHeight-P&&(b=window.innerHeight-h-P)),l.value=L?`${g}-${L}`:g,a.value={position:"absolute",left:`${E+x}px`,top:`${b+D}px`},p.arrowElement){const C=e.unref(p.arrowElement);if(C){const N=C.getBoundingClientRect(),z=C.offsetWidth||N.width,w=C.offsetHeight||N.height;let R=null,F=null;g==="top"||g==="bottom"?(R=m.left+m.width/2-E-z/2,R=Math.max(p.arrowPadding,Math.min(R,V-z-p.arrowPadding))):(g==="left"||g==="right")&&(F=m.top+m.height/2-b-w/2,F=Math.max(p.arrowPadding,Math.min(F,h-w-p.arrowPadding))),i.value={arrow:{x:R,y:F}}}}},v=()=>{c&&cancelAnimationFrame(c),c=requestAnimationFrame(()=>{r()})};return e.onMounted(()=>{o.whileElementsMounted&&(window.addEventListener("scroll",v,!0),window.addEventListener("resize",v),window.ResizeObserver&&(s=new ResizeObserver(()=>v()),e.unref(n)&&s.observe(e.unref(n)),e.unref(t)&&s.observe(e.unref(t)))),r()}),e.onUnmounted(()=>{o.whileElementsMounted&&(window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v),s&&s.disconnect()),c&&cancelAnimationFrame(c)}),e.watch(()=>e.unref(o.placement),()=>r()),e.watch(()=>e.unref(o.offset),()=>r()),{floatingStyles:a,middlewareData:i,placement:l,update:r}}const je=new Set,He={register(t){je.add(t)},unregister(t){je.delete(t)},hideAll(){je.forEach(t=>{t.hide&&t.hide()})},get count(){return je.size}},Rl=()=>He.hideAll(),Ol={class:"apbd-popover-inner"},Me={__name:"AbPopover",props:{placement:{type:String,default:"bottom"},offset:{type:[Number,String],default:8},gap:{type:[Number,String],default:null},disabled:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},arrowPadding:{type:Number,default:4},trigger:{type:[String,Array],default:"click"},autoHide:{type:Boolean,default:!0},contentClass:{type:String,default:""},referenceSelector:{type:String,default:null}},emits:["update:modelValue","show","hide"],setup(t,{expose:n,emit:o}){const a=t,i=o,l=K=>Array.isArray(a.trigger)?a.trigger.includes(K):a.trigger.split(" ").includes(K),c=e.ref(!1),s=e.ref(null),d=e.ref(null),r=e.ref(null),v=e.computed(()=>a.placement.startsWith("auto")),f=e.computed(()=>a.placement.split("-")[1]||void 0),u=e.ref(null),p=()=>{a.referenceSelector&&s.value?u.value=s.value.querySelector(a.referenceSelector)||s.value:u.value=s.value},{floatingStyles:m,middlewareData:B,placement:V,update:h}=kt(u,d,{placement:e.computed(()=>v.value?void 0:a.placement),offset:e.computed(()=>Number(a.gap!==null?a.gap:a.offset)),arrowElement:r,arrowPadding:e.computed(()=>a.arrowPadding),flip:!0,autoPlacement:v,alignment:f,whileElementsMounted:!0});e.watch(c,K=>{K&&e.nextTick(()=>{p(),h()})});const x=()=>{a.disabled||(c.value?M():D())},D=()=>{E(),c.value=!0,i("show"),i("update:modelValue",!0),a.autoHide&&!l("manual")&&setTimeout(()=>{document.addEventListener("click",b)},0)},M=()=>{c.value=!1,i("hide"),i("update:modelValue",!1),document.removeEventListener("click",b)};let g=null;const L=()=>{g=setTimeout(()=>{M()},300)},E=()=>{g&&(clearTimeout(g),g=null)},b=K=>{if(!c.value)return;const P=K.target,C=s.value&&s.value.contains(P),N=d.value&&d.value.contains(P);!C&&!N&&M()},I={show:D,hide:M,toggle:x};e.onMounted(()=>{p(),He.register(I)}),e.onUnmounted(()=>{document.removeEventListener("click",b),g&&clearTimeout(g),He.unregister(I)});const A=e.computed(()=>{if(!B.value.arrow)return{};const{x:K,y:P}=B.value.arrow,C=V.value||"bottom",N={top:"bottom",right:"left",bottom:"top",left:"right"}[C.split("-")[0]];let z={};return N==="bottom"&&(z={borderTopColor:"transparent",borderLeftColor:"transparent"}),N==="top"&&(z={borderBottomColor:"transparent",borderRightColor:"transparent"}),N==="left"&&(z={borderTopColor:"transparent",borderRightColor:"transparent"}),N==="right"&&(z={borderBottomColor:"transparent",borderLeftColor:"transparent"}),{left:K!=null?`${K}px`:"",top:P!=null?`${P}px`:"",right:"",bottom:"",[N]:"-5px",...z}});return n(I),(K,P)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"apbd-popover-trigger",ref_key:"reference",ref:s,onClick:P[0]||(P[0]=C=>l("click")?x():null),onMouseenter:P[1]||(P[1]=C=>l("hover")?D():null),onMouseleave:P[2]||(P[2]=C=>l("hover")?L():null),onFocus:P[3]||(P[3]=C=>l("focus")?D():null),onBlur:P[4]||(P[4]=C=>l("focus")?L():null),onTouchstart:P[5]||(P[5]=C=>l("touch")?D():null),onTouchend:P[6]||(P[6]=C=>l("touch")?L():null)},[e.renderSlot(K.$slots,"default")],544),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"apbd-popover-fade"},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"floating",ref:d,style:e.normalizeStyle(e.unref(m)),class:e.normalizeClass(["appsbd-app apbd-popover-content",t.contentClass]),role:"dialog",onMouseenter:P[7]||(P[7]=C=>l("hover")?E():null),onMouseleave:P[8]||(P[8]=C=>l("hover")?L():null)},[e.createElementVNode("div",Ol,[e.renderSlot(K.$slots,"content",{close:M,hide:M,show:D,toggle:x})]),t.arrow?(e.openBlock(),e.createElementBlock("div",{key:0,class:"apbd-popover-arrow",ref_key:"floatingArrow",ref:r,style:e.normalizeStyle(A.value)},null,4)):e.createCommentVNode("",!0)],38)):e.createCommentVNode("",!0)]),_:3})]))],64))}},Hl={key:0,class:"form-label"},Yl=["for"],Ul={key:0,class:"input-img"},ql=["src"],Kl={key:0,class:"form-check-label"},Wl={key:1,class:"description-text"},Gl=["for"],Ql={key:1,class:"description-text"},Xl={key:1,class:"help-text"},ze=Object.assign({inheritAttrs:!1},{__name:"AbFormCheck",props:e.mergeModels({label:null,rules:"",val:null,type:{default:"checkbox"},isInline:{type:Boolean,default:!1},options:{type:Array,default:[]},name:{type:String,required:!0},limit:{type:Number,default:0},containerClass:{default:void 0},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl"].includes(t)},iconSize:{type:String,default:"24px"},iconGap:{type:String,default:"10px"},variant:{type:String,default:"default"}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:n}){const o=e.useAttrs(),a=e.useSlots(),i=e.useModel(t,"modelValue"),l=n;function c(){l("change",i.value)}const s=t,d=e.computed(()=>s.containerClass!==void 0&&s.containerClass!==null?s.containerClass:W.inputContainerClass??""),r=e.computed(()=>s.size!==void 0&&s.size!==null?s.size:W.size??"md"),v=e.computed(()=>s.variant==="card"||s.variant==="segmented"||s.variant==="pill"),f=e.ref(!1);function u(p){return f.value=!0,s.limit>1?Array.isArray(p)?[...p]:[]:p??""}return e.watch(()=>{s.val!==void 0&&s.val!==null&&(i.value===void 0||i.value===null||i.value===""||Array.isArray(i.value)&&i.value.length===0)&&(f.value||(i.value=u(s.val)))}),(p,m)=>{var B,V;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apbd-checkbox",[d.value,v.value?"apbd-radio-input-container":"",t.variant==="segmented"?"apbd-radio-segmented":"",t.variant==="pill"?"apbd-radio-pill":""]]),style:e.normalizeStyle(v.value?`--apbd-radio-input-icon-size:${t.iconSize};--apbd-radio-input-icon-gap:${t.iconGap};`:"")},[t.label||(B=e.unref(a))!=null&&B.label?(e.openBlock(),e.createElementBlock("label",Hl,[e.renderSlot(p.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([t.isInline?"inline":"",t.variant==="segmented"||t.variant==="pill"?"segmented-group":""])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(h,x)=>{var D;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["form-check",e.unref(o).class]),key:x},[e.createVNode(e.unref(ie.Field),{class:e.normalizeClass(["form-check-input",`form-check-input-${r.value}`]),type:t.type,rules:t.rules,id:`${t.name}-${h.val}-${x}`,name:t.name,disabled:(h==null?void 0:h.disable)||t.type==="checkbox"&&t.limit>0&&((D=i.value)==null?void 0:D.length)>=t.limit&&!i.value.includes(h.val),modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=M=>i.value=M),value:h.val,onChange:c},null,8,["type","rules","class","id","name","disabled","modelValue","value"]),v.value?(e.openBlock(),e.createElementBlock("label",{key:0,class:"label-container",for:`${t.name}-${h.val}-${x}`},[h.img_src||h.icon||h.iconComponent||e.unref(a)[`input-img-${h.title}`]||e.unref(a)[`input-icon-${h.title}`]||e.unref(a)[`input-iconComponent-${h.title}`]?(e.openBlock(),e.createElementBlock("div",Ul,[e.renderSlot(p.$slots,`input-icon-${h.title}`,{},()=>[h.img_src?(e.openBlock(),e.createElementBlock("img",{key:0,src:h.img_src,alt:""},null,8,ql)):e.createCommentVNode("",!0),h.icon?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(h.icon)},null,2)):e.createCommentVNode("",!0),h.iconComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.iconComponent),{key:2})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[h.title||e.unref(a)[`label-${h.title}`]?(e.openBlock(),e.createElementBlock("div",Kl,[e.renderSlot(p.$slots,`label-${h.title}`,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(h.title)),1)])])):e.createCommentVNode("",!0),h!=null&&h.description||e.unref(a)[`description-${h.title}`]?(e.openBlock(),e.createElementBlock("div",Wl,[e.renderSlot(p.$slots,`description-${h.title}`,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(h.description)),1)])])):e.createCommentVNode("",!0)])],8,Yl)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["d-flex flex-column",!(h!=null&&h.description)&&!e.unref(a).description?"justify-content-center":""])},[h.title?(e.openBlock(),e.createElementBlock("label",{key:0,class:"form-check-label",for:`${t.name}-${h.val}-${x}`},e.toDisplayString(e.unref(k)(h.title)),9,Gl)):e.createCommentVNode("",!0),h!=null&&h.description||e.unref(a).description?(e.openBlock(),e.createElementBlock("div",Ql,[e.renderSlot(p.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(h.description)),1)])])):e.createCommentVNode("",!0)],2))],2)}),128))],2),e.createVNode(e.unref(ie.ErrorMessage),{name:t.name,class:"apbd-v-error"},null,8,["name"]),(V=e.unref(a))!=null&&V.helptext?(e.openBlock(),e.createElementBlock("small",Xl,[e.renderSlot(p.$slots,"help-text")])):e.createCommentVNode("",!0)],6)}}}),Jl={class:"apbd-date-time-container"},Zl=["for"],_l={class:"datetime-target-container"},en={class:"placeholder-text"},tn={key:1,class:"form-text"},ln={class:"calendar-header"},nn={key:0},an={key:1},on={key:2},rn={key:0,class:"calendar-grid"},sn=["onClick","onMouseenter","onMouseleave"],cn={key:0,class:"cal-day-bg"},un={key:1,class:"cal-day-text"},dn={key:2,class:"today-marker"},mn={key:1,class:"calendar-grid-month"},fn=["onClick"],pn={key:2,class:"calendar-grid-year"},vn=["onClick"],hn={key:0,class:"time-picker-header"},gn={class:"time-picker-controls"},yn=["value"],bn=["value"],kn=["value"],wn=["value"],Bn={class:"time-picker-actions"},Sn=["onClick"],Cn=["onClick"],Vn=Object.assign({inheritAttrs:!1},{__name:"AbDateTimePicker",props:e.mergeModels({tooltip:null,modelValue:{default:null},label:{type:String,default:""},placeholder:{type:String,default:""},name:{type:String,required:!0},rules:"",isRange:{type:Boolean,default:!1},containerClass:{type:String,default:void 0},hints:{type:String,default:""},isDisable:{type:Boolean,default:!1},visibility:{type:String,default:"click"},mask:{type:String,default:""},dataFormat:{type:String,default:void 0},displayFormat:{type:String,default:void 0},model_config:{type:Object,default:()=>({type:"string",mask:"YYYY-MM-DD"})},maxDate:{default:void 0},minDate:{default:void 0},disableDates:{default:()=>[]},showInInput:{type:Boolean,default:!0},monthNames:{type:Array,default:void 0},monthNamesShort:{type:Array,default:void 0},dayNames:{type:Array,default:void 0},formatDigit:{type:Function,default:void 0},rangeSeparator:{type:String,default:void 0},mode:{type:String,default:"date",validator:t=>["date","time","datetime"].includes(t)},is24Hour:{type:Boolean,default:void 0},minuteStep:{type:Number,default:1},isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),o=e.useAttrs(),a=e.useSlots(),i=e.ref(null),l=t,c=["January","February","March","April","May","June","July","August","September","October","November","December"],s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],d=["S","M","T","W","T","F","S"],r=e.computed(()=>l.monthNames||W.monthNames||c),v=e.computed(()=>l.monthNamesShort||W.monthNamesShort||s),f=e.computed(()=>l.dayNames||W.dayNames||d),u=e.computed(()=>l.rangeSeparator||W.rangeSeparator||" ↔ "),p=e.computed(()=>l.is24Hour!==void 0&&l.is24Hour!==null?l.is24Hour:W.is24Hour??!1),m=e.computed(()=>l.dataFormat?l.dataFormat:l.mode==="datetime"?W.datetimeDataFormat||"YYYY-MM-DD HH:mm":l.mode==="time"?W.timeDataFormat||"HH:mm":W.dateDataFormat||"YYYY-MM-DD"),B=e.computed(()=>l.displayFormat?l.displayFormat:l.mode==="datetime"?W.datetimeDisplayFormat||"YYYY-MM-DD HH:mm":l.mode==="time"?W.timeDisplayFormat||"HH:mm":W.dateDisplayFormat||"YYYY-MM-DD"),V=[{title:"AM",val:"AM"},{title:"PM",val:"PM"}],h=S=>{const $=l.formatDigit||W.formatDigit;return!$||S===void 0||S===null?S:$(S)},x=e.computed(()=>l.containerClass!==void 0&&l.containerClass!==null?l.containerClass:W.inputContainerClass??""),D=e.computed(()=>l.size!==void 0&&l.size!==null?l.size:W.size??"md");e.computed(()=>o.class&&o.class=="form-control-sm"?"input-group-sm":o.class&&o.class=="form-control-lg"?"input-group-lg":""),e.onErrorCaptured((S,$,Q)=>!1);const M=S=>S.toString().padStart(2,"0"),g=e.computed(()=>l.mode==="time"?"Select Time":l.mode==="datetime"?l.isRange?"Select Date Range":"Select Date & Time":l.isRange?"Select Date Range":"Select Date"),L=(S,$,Q)=>{if(!S&&!Q)return"";const q=S||new Date(2e3,0,1),j=Q?Q.hour:0,J=Q?Q.minute:0,X=j===0?12:j>12?j-12:j,ce=j>=12?"PM":"AM",se={YYYY:q.getFullYear(),YY:String(q.getFullYear()).slice(-2),MMMM:r.value[q.getMonth()],MMM:v.value[q.getMonth()],MM:M(q.getMonth()+1),M:q.getMonth()+1,DD:M(q.getDate()),D:q.getDate(),HH:M(j),H:j,hh:M(X),h:X,mm:M(J),m:J,ss:"00",A:ce,a:ce.toLowerCase()},ne=["YYYY","YY","MMMM","MMM","MM","DD","HH","hh","mm","ss","M","D","H","h","m","A","a"];let ve="",ue=$;for(;ue.length>0;){let ye=null;for(const De of ne)if(ue.startsWith(De)){ye=De;break}ye?(ve+=se[ye],ue=ue.slice(ye.length)):(ve+=ue[0],ue=ue.slice(1))}return ve},E=(S,$)=>{if(!S||typeof S!="string")return null;if(S.match(/^\d{4}-\d{2}-\d{2}$/)){const de=S.split("-");if(de[0].length===4)return{date:new Date(parseInt(de[0],10),parseInt(de[1],10)-1,parseInt(de[2],10)),hour:0,minute:0}}const Q=["YYYY","YY","MMMM","MMM","MM","DD","HH","hh","mm","ss","M","D","H","h","m","A","a"],q={YYYY:"\\d{4}",YY:"\\d{2}",MMMM:r.value.join("|"),MMM:v.value.join("|"),MM:"\\d{2}",M:"\\d{1,2}",DD:"\\d{2}",D:"\\d{1,2}",HH:"\\d{2}",H:"\\d{1,2}",hh:"\\d{2}",h:"\\d{1,2}",mm:"\\d{2}",m:"\\d{1,2}",ss:"\\d{2}",A:"AM|PM",a:"am|pm"},j=[];let J=$;for(;J.length>0;){let de=null;for(const me of Q)if(J.startsWith(me)){de=me;break}de?(j.push({type:"token",value:de}),J=J.slice(de.length)):(j.length>0&&j[j.length-1].type==="literal"?j[j.length-1].value+=J[0]:j.push({type:"literal",value:J[0]}),J=J.slice(1))}let X="^";const ce=[];for(const de of j)de.type==="literal"?X+=de.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"):(X+="("+q[de.value]+")",ce.push(de.value));X+="$";const se=S.match(new RegExp(X,"i"));if(!se)return null;let ne=new Date().getFullYear(),ve=0,ue=1,ye=0,De=0,Ke=null;for(let de=1;de<=ce.length;de++){const me=ce[de-1],be=se[de];me==="YYYY"?ne=parseInt(be,10):me==="YY"?ne=2e3+parseInt(be,10):me==="MM"||me==="M"?ve=parseInt(be,10)-1:me==="MMMM"?ve=r.value.findIndex(We=>We.toLowerCase()===be.toLowerCase()):me==="MMM"?ve=v.value.findIndex(We=>We.toLowerCase()===be.toLowerCase()):me==="DD"||me==="D"?ue=parseInt(be,10):me==="HH"||me==="H"||me==="hh"||me==="h"?ye=parseInt(be,10):me==="mm"||me==="m"?De=parseInt(be,10):(me==="A"||me==="a")&&(Ke=be.toUpperCase())}Ke==="PM"&&ye<12&&(ye+=12),Ke==="AM"&&ye===12&&(ye=0);const nt=new Date(ne,ve,ue);return isNaN(nt)?null:{date:nt,hour:ye,minute:De}},b=(S,$)=>{const Q=E(S,$);return Q?{hour:Q.hour,minute:Q.minute}:{hour:0,minute:0}},I=(S,$)=>S&&$&&S.getFullYear()===$.getFullYear()&&S.getMonth()===$.getMonth()&&S.getDate()===$.getDate(),A=e.computed(()=>{var $;if(!l.isRange)return null;const S=E(($=n.value)==null?void 0:$.start,m.value);return S?S.date:null}),K=e.computed(()=>{var $;if(!l.isRange)return null;const S=E(($=n.value)==null?void 0:$.end,m.value);return S?S.date:null}),P=e.computed(()=>{if(l.isRange)return null;const S=E(n.value,m.value);return S?S.date:null}),C=e.computed(()=>{var $,Q;let S="";if(l.isRange){const q=E(($=n.value)==null?void 0:$.start,m.value),j=E((Q=n.value)==null?void 0:Q.end,m.value);q&&j?S=`${L(q.date,B.value,{hour:q.hour,minute:q.minute})}${u.value}${L(j.date,B.value,{hour:j.hour,minute:j.minute})}`:q&&(S=`${L(q.date,B.value,{hour:q.hour,minute:q.minute})}${u.value}...`)}else{const q=E(n.value,m.value);q&&(S=L(q.date,B.value,{hour:q.hour,minute:q.minute}))}return h(S)});let N=new Date;A.value?N=A.value:P.value&&(N=P.value);const z=b(n.value,m.value),w=e.ref(z.hour),R=e.ref(z.minute),F=e.ref(z.hour>=12?"PM":"AM"),O=e.computed(()=>p.value?Array.from({length:24},(S,$)=>$):Array.from({length:12},(S,$)=>$+1)),y=e.computed(()=>{const S=[];for(let $=0;$<60;$+=l.minuteStep)S.push($);return S}),te=()=>{if(p.value)return w.value;let S=w.value;return F.value==="PM"&&S<12&&(S+=12),F.value==="AM"&&S===12&&(S=0),S},Y=S=>{const $={hour:te(),minute:R.value};if(l.mode==="time")n.value=L(null,m.value,$);else if(l.mode==="datetime"){const Q=E(n.value,m.value),q=Q?Q.date:new Date;n.value=L(q,m.value,$)}i.value&&i.value.hide?i.value.hide():S&&S()},pe=S=>{const $=b(n.value,m.value);w.value=p.value?$.hour:$.hour===0?12:$.hour>12?$.hour-12:$.hour,R.value=$.minute,F.value=$.hour>=12?"PM":"AM",i.value&&i.value.hide?i.value.hide():S&&S()},ae=e.ref(N.getMonth()),G=e.ref(N.getFullYear()),H=e.ref(Math.floor(N.getFullYear()/12)*12),ee=e.ref("date"),oe=e.computed(()=>r.value[ae.value]),Be=e.computed(()=>H.value),Ne=e.computed(()=>H.value+11),Ye=e.computed(()=>{const S=[];for(let $=H.value;$<H.value+12;$++)S.push($);return S}),Ue=()=>{ee.value==="date"?ee.value="month":ee.value==="month"?(H.value=Math.floor(G.value/12)*12,ee.value="year"):ee.value="date"},qe=()=>{ee.value==="date"?ae.value===0?(ae.value=11,G.value--):ae.value--:ee.value==="month"?G.value--:ee.value==="year"&&(H.value-=12)},Ae=()=>{ee.value==="date"?ae.value===11?(ae.value=0,G.value++):ae.value++:ee.value==="month"?G.value++:ee.value==="year"&&(H.value+=12)},Ie=S=>{ae.value=S,ee.value="date"},Fe=S=>{G.value=S,ee.value="month"},Ee=e.ref(null),ke=e.ref("none"),Le=e.computed(()=>{const S=[],$=new Date(G.value,ae.value,1),Q=new Date(G.value,ae.value+1,0),q=$.getDay(),j=Q.getDate();for(let se=0;se<q;se++)S.push({empty:!0});const J=new Date;for(let se=1;se<=j;se++){const ne=new Date(G.value,ae.value,se);let ve=!1;if(l.minDate&&ne<new Date(l.minDate)&&(ve=!0),l.maxDate&&ne>new Date(l.maxDate)&&(ve=!0),l.disableDates&&l.disableDates.length>0){for(const ue of l.disableDates)if(ue instanceof Date&&I(ne,ue))ve=!0;else if(typeof ue=="string"&&L(ne,m.value)===ue)ve=!0;else if(ue.repeat&&ue.repeat.weekdays){const ye=ne.getDay()+1;ue.repeat.weekdays.includes(ye)&&(ve=!0)}}S.push({date:ne,dayNumber:se,disabled:ve,isToday:I(ne,J),timestamp:ne.getTime()})}const ce=(7-S.length%7)%7;for(let se=0;se<ce;se++)S.push({empty:!0});return S}),we=S=>{const $={"is-empty":!S.date,"is-disabled":S.disabled,"is-today":S.isToday};if(!S.date)return $;if(!l.isRange)$["is-selected"]=P.value&&I(P.value,S.date);else{const Q=A.value,q=K.value,j=ke.value,J=Ee.value,X=Q&&I(S.date,Q);let ce=!1,se=!1,ne=q;j==="selectingEnd"&&J&&(J.getTime()>Q.getTime()?ne=J:ne=null),ne&&I(S.date,ne)&&(ce=!0),Q&&ne&&S.timestamp>Q.getTime()&&S.timestamp<ne.getTime()&&(se=!0),X&&!ne||X&&ne&&I(Q,ne)?$["is-selected"]=!0:(X&&($["range-start"]=!0),ce&&($["range-end"]=!0),se&&($["in-range"]=!0))}return $},Pe=(S,$)=>{if(!S.date||S.disabled)return;const Q=()=>{i.value&&i.value.hide?i.value.hide():$&&$(),ee.value="date"};if(l.isRange){const q=L(S.date,m.value);ke.value==="none"?(n.value={start:q,end:q},ke.value="selectingEnd"):ke.value==="selectingEnd"&&(S.timestamp<A.value.getTime()?n.value={start:q,end:q}:(n.value={start:n.value.start,end:q},ke.value="none",Ee.value=null,Q()))}else{if(l.mode==="datetime"){const q={hour:te(),minute:R.value};n.value=L(S.date,m.value,q)}else n.value=L(S.date,m.value);l.mode!=="datetime"&&Q()}},T=S=>{l.isRange&&ke.value==="selectingEnd"&&S.date&&!S.disabled&&(Ee.value=S.date)},U=S=>{},Z=e.ref(!1),re=()=>{Z.value=!0},ge=()=>{Z.value=!1,ke.value==="selectingEnd"&&(ke.value="none",Ee.value=null)};return e.watch(n,S=>{if(S){if(l.isRange&&S.start){const $=E(S.start,m.value);$&&(ae.value=$.date.getMonth(),G.value=$.date.getFullYear())}else if(!l.isRange&&typeof S=="string"){const $=E(S,m.value);if($&&(ae.value=$.date.getMonth(),G.value=$.date.getFullYear(),l.mode==="time"||l.mode==="datetime")){const Q=$.hour===0?12:$.hour>12?$.hour-12:$.hour;w.value=l.is24Hour?$.hour:Q,R.value=$.minute,F.value=$.hour>=12?"PM":"AM"}}}}),(S,$)=>{const Q=e.resolveDirective("translate");return e.openBlock(),e.createElementBlock("div",Jl,[e.createVNode(Me,{ref_key:"popoverRef",ref:i,class:"datetime-popover-wrapper",trigger:"click",placement:"bottom",disabled:t.isDisable,offset:8,referenceSelector:t.showInInput?".calendar-trigger-input":".apbd-input-container",onHide:ge,onShow:re},{content:e.withCtx(({close:q})=>[e.createElementVNode("div",{class:e.normalizeClass(["apbd-calendar-dropdown",{"time-only-dropdown":t.mode==="time"}]),onClick:$[4]||($[4]=e.withModifiers(()=>{},["stop"]))},[t.mode!=="time"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",ln,[e.createElementVNode("button",{type:"button",onClick:e.withModifiers(qe,["stop"]),class:"cal-nav-btn"},[e.createVNode(e.unref(vt),{class:"w-5 h-5","stroke-width":"2",style:{height:"20px"}})]),e.createElementVNode("button",{type:"button",onClick:e.withModifiers(Ue,["stop"]),class:"cal-title-btn"},[ee.value==="date"?(e.openBlock(),e.createElementBlock("span",nn,e.toDisplayString(oe.value)+" "+e.toDisplayString(h(G.value)),1)):ee.value==="month"?(e.openBlock(),e.createElementBlock("span",an,e.toDisplayString(h(G.value)),1)):ee.value==="year"?(e.openBlock(),e.createElementBlock("span",on,e.toDisplayString(h(Be.value))+" - "+e.toDisplayString(h(Ne.value)),1)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{type:"button",onClick:e.withModifiers(Ae,["stop"]),class:"cal-nav-btn"},[e.createVNode(e.unref(ht),{class:"w-5 h-5","stroke-width":"2",style:{height:"20px"}})])]),ee.value==="date"?(e.openBlock(),e.createElementBlock("div",rn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(j,J)=>(e.openBlock(),e.createElementBlock("div",{class:"cal-dow",key:J},e.toDisplayString(j),1))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Le.value,(j,J)=>(e.openBlock(),e.createElementBlock("div",{key:J,class:e.normalizeClass(["cal-day-cell",we(j)]),onClick:X=>Pe(j,q),onMouseenter:X=>T(j),onMouseleave:X=>U()},[j.date?(e.openBlock(),e.createElementBlock("div",cn)):e.createCommentVNode("",!0),j.date?(e.openBlock(),e.createElementBlock("span",un,e.toDisplayString(h(j.dayNumber)),1)):e.createCommentVNode("",!0),j.isToday&&!we(j)["is-selected"]&&!we(j)["range-start"]&&!we(j)["range-end"]?(e.openBlock(),e.createElementBlock("div",dn)):e.createCommentVNode("",!0)],42,sn))),128))])):ee.value==="month"?(e.openBlock(),e.createElementBlock("div",mn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(j,J)=>(e.openBlock(),e.createElementBlock("button",{type:"button",key:J,class:e.normalizeClass(["cal-month-cell",{"is-selected":ae.value===J}]),onClick:e.withModifiers(X=>Ie(J),["stop"])},e.toDisplayString(j),11,fn))),128))])):ee.value==="year"?(e.openBlock(),e.createElementBlock("div",pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ye.value,j=>(e.openBlock(),e.createElementBlock("button",{type:"button",key:j,class:e.normalizeClass(["cal-year-cell",{"is-selected":G.value===j}]),onClick:e.withModifiers(J=>Fe(j),["stop"])},e.toDisplayString(h(j)),11,vn))),128))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.mode==="time"||t.mode==="datetime"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["time-picker-section",{"has-border-top":t.mode==="datetime"}])},[t.mode==="time"?(e.openBlock(),e.createElementBlock("div",hn,"Select Time")):e.createCommentVNode("",!0),e.createElementVNode("div",gn,[e.createElementVNode("select",{class:"time-select",value:w.value,onChange:$[1]||($[1]=j=>w.value=parseInt(j.target.value))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,j=>(e.openBlock(),e.createElementBlock("option",{key:j,value:j},e.toDisplayString(h(M(j))),9,bn))),128))],40,yn),$[5]||($[5]=e.createElementVNode("span",{class:"time-colon"},":",-1)),e.createElementVNode("select",{class:"time-select",value:R.value,onChange:$[2]||($[2]=j=>R.value=parseInt(j.target.value))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,j=>(e.openBlock(),e.createElementBlock("option",{key:j,value:j},e.toDisplayString(h(M(j))),9,wn))),128))],40,kn),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ze,{key:0,containerClass:"mb-0",modelValue:F.value,"onUpdate:modelValue":$[3]||($[3]=j=>F.value=j),options:V,type:"radio",variant:"segmented",size:"xs",name:t.name+"_ampm",isInline:!0,class:"ampm-radio-toggle"},null,8,["modelValue","name"]))]),e.createElementVNode("div",Bn,[e.withDirectives((e.openBlock(),e.createElementBlock("button",{type:"button",class:"time-btn-cancel",onClick:e.withModifiers(j=>pe(q),["stop"])},[...$[6]||($[6]=[e.createTextVNode("Cancel",-1)])],8,Sn)),[[Q]]),e.withDirectives((e.openBlock(),e.createElementBlock("button",{type:"button",class:"time-btn-apply",onClick:e.withModifiers(j=>Y(q),["stop"])},[...$[7]||($[7]=[e.createTextVNode("Apply",-1)])],8,Cn)),[[Q]])])],2)):e.createCommentVNode("",!0)],2)]),default:e.withCtx(()=>[e.renderSlot(S.$slots,"picker-container",{isRange:t.isRange,showInInput:"showInInput",value:n.value},()=>{var q,j,J;return[t.showInInput?(e.openBlock(),e.createBlock(Ce,{key:0,modelValue:C.value,readonly:"",class:e.normalizeClass(["calendar-trigger-input",(q=e.unref(o))==null?void 0:q.class]),size:D.value,id:(j=e.unref(o))==null?void 0:j.id,label:t.label,name:t.name,rules:t.rules,disabled:t.isDisable,hints:t.hints,placeholder:e.unref(o).placeholder||g.value,isLeftIconBorder:t.isLeftIconBorder,isRightIconBorder:t.isRightIconBorder,containerClass:x.value},e.createSlots({postfix:e.withCtx(()=>[e.renderSlot(S.$slots,"icon",{},()=>[t.mode==="time"?(e.openBlock(),e.createBlock(e.unref(vl),{key:0,class:"w-5 h-5",style:{height:"18px"}})):(e.openBlock(),e.createBlock(e.unref(fl),{key:1,class:"w-5 h-5",style:{height:"18px"}}))],!0)]),_:2},[e.unref(a).label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"label",{},void 0,!0)]),key:"0"}:void 0,e.unref(a).prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"prefix",{},void 0,!0)]),key:"1"}:void 0,e.unref(a).hints?{name:"hints",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"hints",{},void 0,!0)]),key:"2"}:void 0]),1032,["modelValue","class","size","id","label","name","rules","disabled","hints","placeholder","isLeftIconBorder","isRightIconBorder","containerClass"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(x.value)},[t.label||e.unref(a).label?(e.openBlock(),e.createElementBlock("label",{key:0,class:"form-label",for:(J=e.unref(o))==null?void 0:J.id},[e.renderSlot(S.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)],!0)],8,Zl)):e.createCommentVNode("",!0),e.createVNode(e.unref(ie.Field),{type:"hidden",modelValue:n.value,"onUpdate:modelValue":$[0]||($[0]=X=>n.value=X),name:t.name,rules:t.rules},null,8,["modelValue","name","rules"]),e.createElementVNode("div",_l,[e.renderSlot(S.$slots,"picker",{isRange:t.isRange,value:n.value},()=>{var X,ce;return[C.value?(e.openBlock(),e.createBlock(le,{key:0,type:"button",class:e.normalizeClass(["btn-outline-secondary",(X=e.unref(o))==null?void 0:X.class]),size:D.value},{default:e.withCtx(()=>[e.unref(a).icon?e.renderSlot(S.$slots,"icon",{key:0},void 0,!0):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(C.value)+" ",1),e.unref(a).resetIcon?e.renderSlot(S.$slots,"resetIcon",{key:1},void 0,!0):e.createCommentVNode("",!0)]),_:3},8,["class","size"])):(e.openBlock(),e.createBlock(le,{key:1,type:"button",class:e.normalizeClass(["btn-outline-secondary",(ce=e.unref(o))==null?void 0:ce.class]),size:D.value},{default:e.withCtx(()=>[e.unref(a).icon?e.renderSlot(S.$slots,"icon",{key:0},void 0,!0):e.createCommentVNode("",!0),e.createElementVNode("span",en,e.toDisplayString(e.unref(k)(g.value)),1)]),_:3},8,["class","size"]))]},!0)]),e.createVNode(e.unref(ie.ErrorMessage),{name:t.name,class:"apbd-v-error"},null,8,["name"]),t.hints||e.unref(a).hints?(e.openBlock(),e.createElementBlock("div",tn,[e.renderSlot(S.$slots,"hints",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.hints)),1)],!0)])):e.createCommentVNode("",!0)],2))]},!0)]),_:3},8,["disabled","referenceSelector"])])}}}),xe=he(Vn,[["__scopeId","data-v-989b2318"]]),xn=["src","alt"],Nn={key:2,class:"avatar-add"},En=Object.assign({inheritAttrs:!1},{__name:"AbAvatar",props:{src:{default:""},alt:{default:""},variant:{type:String,default:"image"},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)},isActive:{type:Boolean,default:!1},isVerified:{type:Boolean,default:!1}},setup(t){const n=e.useAttrs(),o=t,a=e.computed(()=>o.size!==void 0&&o.size!==null?o.size:W.size??"md");return(i,l)=>{var c;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apbd-avatar",[(c=e.unref(n))==null?void 0:c.class,`avatar-${a.value}`,{active:t.isActive,verified:t.isVerified}]])},[t.variant==="image"&&t.src?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.src,alt:t.alt},null,8,xn)):t.variant==="image"&&!t.src?(e.openBlock(),e.createBlock(e.unref(xl),{key:1})):t.variant==="add"?(e.openBlock(),e.createElementBlock("label",Nn,[e.createVNode(e.unref(_e)),e.createElementVNode("input",{type:"file",hidden:"",accept:"image/*",onChange:l[0]||(l[0]=s=>i.fileSelected(s))},null,32)])):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default"),t.isVerified?(e.openBlock(),e.createBlock(e.unref(ml),{key:3})):e.createCommentVNode("",!0)],2)}}}),$n=["href","onClick"],zn={key:0,class:"me-1"},Mn=Object.assign({inheritAttrs:!1},{__name:"AbTabs",props:{tabContainerClass:{type:String},navContainerClass:{type:String},tabDetailsClass:{type:String},navClass:{type:String,default:"nav-pills"},tabClass:{type:String,default:""},isRouteMode:{type:Boolean,default:!1}},setup(t){const n=t,o=e.ref([]),a=e.useAttrs();function i(s){o.value.push(s)}e.provide("registerTab",i),e.provide("isRouteMode",n.isRouteMode),e.provide("tabClass",n.tabClass);function l(){const s=o.value[0];!o.value.some(d=>d.isActive)&&s&&(s.isActive=!0)}function c(s,d){s.preventDefault(),s.stopPropagation(),o.value.forEach(r=>{r.isActive=r===d})}return e.provide("selectTab",c),e.onMounted(()=>{l()}),(s,d)=>{const r=e.resolveComponent("translate"),v=e.resolveComponent("router-link"),f=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(e.unref(a))),[e.createElementVNode("div",{class:e.normalizeClass(t.navContainerClass)},[e.createElementVNode("ul",{class:e.normalizeClass(["apbd-tab-nav nav w-100",t.navClass])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,u=>(e.openBlock(),e.createElementBlock("li",{key:u.name,class:"nav-item"},[t.isRouteMode&&(u!=null&&u.to)?(e.openBlock(),e.createBlock(v,{key:0,class:e.normalizeClass([t.tabClass,"nav-link"]),to:u==null?void 0:u.to},{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.title),1)]),_:2},1024)]),_:2},1032,["class","to"])):(e.openBlock(),e.createElementBlock("a",{key:1,href:u.href,class:e.normalizeClass(["nav-link",t.tabClass+" "+(u!=null&&u.isActive?"ab-active":"")]),onClick:p=>c(p,u)},[u.icon?(e.openBlock(),e.createElementBlock("span",zn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.icon)))])):e.createCommentVNode("",!0),e.createVNode(r,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.title),1)]),_:2},1024)],10,$n))]))),128))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.tabDetailsClass)},[e.renderSlot(s.$slots,"default"),t.isRouteMode?(e.openBlock(),e.createBlock(f,{key:0})):e.createCommentVNode("",!0)],2)],16)}}}),Dn={key:0},Tn={__name:"AbTab",props:{title:{required:!0},selected:{default:!1},to:{default:null}},setup(t){const n=t,o=e.ref(!1),a=e.ref(""),l=e.getCurrentInstance().slots.icon,c=e.inject("registerTab"),s=e.inject("isRouteMode");return e.inject("tabs"),e.onMounted(()=>{if(o.value=n.selected,a.value="tab-"+Math.random().toString(36).substr(2,5),c){if(s&&!(n!=null&&n.to))return;c({name:a.value,title:n.title,href:"#"+a.value,icon:l,to:n.to,isActive:o})}}),(d,r)=>o.value&&!e.unref(s)?(e.openBlock(),e.createElementBlock("div",Dn,[e.renderSlot(d.$slots,"default")])):e.createCommentVNode("",!0)}},An={name:"AbForm",components:{Form:ie.Form},inject:{wizard:{from:"AbWizard",default:null},wizardStep:{from:"AbWizardStep",default:null}},props:{onSubmit:{type:Function,default:()=>{}}},data(){return{is_sending:!1}},mounted(){this.wizard&&this.wizardStep&&this.wizard.registerStepValidator(this.wizardStep.id,async()=>{if(this.$refs["main-form"]){const{valid:t}=await this.$refs["main-form"].validate();if(!t)return!1}this.is_sending=!0;try{if(this.onSubmit&&typeof this.onSubmit=="function"&&await this.onSubmit()===!1)return this.is_sending=!1,!1}catch(t){return console.error("[AbSettingsForm] Form Submission failed during Wizard transition:",t),this.is_sending=!1,!1}return this.is_sending=!1,!0})},methods:{async onFormSubmit(){this.is_sending=!0,this.onSubmit&&typeof this.onSubmit=="function"&&await this.onSubmit(),this.is_sending=!1}}};function In(t,n,o,a,i,l){const c=e.resolveComponent("Form");return e.openBlock(),e.createBlock(c,{ref:"main-form",onSubmit:l.onFormSubmit,class:e.normalizeClass(["apbd-settings-form needs-validation",i.is_sending?"apbd-form-sending":""])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["onSubmit","class"])}const Fn=he(An,[["render",In]]),Ln=["for"],Pn=["id","name","disabled","true-value","false-value"],jn=["for"],Rn={key:1,class:"description-text"},On={key:1,class:"form-text"},et=Object.assign({inheritAttrs:!1},{__name:"AbToggle",props:e.mergeModels({label:null,val:{default:"N"},name:{type:String,required:!0},containerClass:{type:String,default:void 0},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl"].includes(t)},trueValue:{default:void 0},falseValue:{default:void 0},title:null,description:null,hints:null},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useAttrs(),o=e.useSlots(),a=e.useModel(t,"modelValue"),i=t,l=e.computed(()=>i.containerClass!==void 0&&i.containerClass!==null?i.containerClass:W.inputContainerClass??""),c=e.computed(()=>i.trueValue!==void 0&&i.trueValue!==null?i.trueValue:W.trueValue??"Y"),s=e.computed(()=>i.falseValue!==void 0&&i.falseValue!==null?i.falseValue:W.falseValue??"N"),d=e.computed(()=>i.size!==void 0&&i.size!==null?i.size:W.size??"md");function r(){a.value||(a.value=i.val)}return e.onMounted(()=>{r()}),(v,f)=>{var u,p,m,B,V,h,x;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apbd-toggle",l.value])},[t.label||(u=e.unref(o))!=null&&u.label?(e.openBlock(),e.createElementBlock("label",{key:0,class:"form-label",for:`${t.name}-${e.unref(n).id}`},[e.renderSlot(v.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])],8,Ln)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["form-check form-switch",e.unref(n).class])},[e.withDirectives(e.createElementVNode("input",{class:e.normalizeClass(["form-check-input",`form-check-input-${d.value}`]),type:"checkbox",id:`${t.name}-${e.unref(n).id}`,name:t.name,disabled:(p=e.unref(n))==null?void 0:p.disabled,"onUpdate:modelValue":f[0]||(f[0]=D=>a.value=D),"true-value":c.value,"false-value":s.value},null,10,Pn),[[e.vModelCheckbox,a.value]]),(m=e.unref(o))!=null&&m.descriptionContainer||(B=e.unref(o))!=null&&B.title||(V=e.unref(o))!=null&&V.description||t.description||t.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["d-flex flex-column",(h=e.unref(o))!=null&&h.description?"":"justify-content-center"])},[e.renderSlot(v.$slots,"descriptionContainer",{},()=>{var D,M;return[(D=e.unref(o))!=null&&D.title||t.title?(e.openBlock(),e.createElementBlock("label",{key:0,class:"form-check-label",for:`${t.name}-${e.unref(n).id}`},[e.renderSlot(v.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.title)),1)])],8,jn)):e.createCommentVNode("",!0),(M=e.unref(o))!=null&&M.description||t.description?(e.openBlock(),e.createElementBlock("div",Rn,[e.renderSlot(v.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.description)),1)])])):e.createCommentVNode("",!0)]})],2)):e.createCommentVNode("",!0)],2),(x=e.unref(o))!=null&&x.hints||t.hints?(e.openBlock(),e.createElementBlock("div",On,[e.renderSlot(v.$slots,"hints",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.hints)),1)])])):e.createCommentVNode("",!0)],2)}}}),Hn=["for"],Yn={key:0,class:"input-group-text left"},Un=["disabled","id"],qn={class:"multiselect-wrapper"},Kn={class:"multiselect-tags"},Wn={class:"multiselect-tag-wrapper"},Gn=["onMousedown"],Qn={key:0,class:"multiselect-tags-search-wrapper"},Xn=["placeholder","onKeydown"],Jn={ref:"dropdownRef",class:"multiselect-dropdown"},Zn={class:"multiselect-options"},_n=["onMousedown","onMouseenter"],ea={key:1,class:"input-group-text right"},ta={class:"form-text"},wt=Object.assign({name:"AbInputTag",inheritAttrs:!1},{__name:"AbInputTag",props:{modelValue:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:""},name:{type:String,required:!0},rules:{type:[String,Object],default:""},containerClass:{type:String,default:void 0},hints:{type:String,default:""},prefix:{type:String,default:""},postfix:{type:String,default:""},max:{type:Number,default:0},isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,a=e.useSlots(),i=n,l=e.ref(null),c=e.ref(null),s=e.ref(null),d=e.ref(!1),r=e.ref(""),v=e.ref(-1),f=e.computed(()=>o.containerClass!==void 0&&o.containerClass!==null?o.containerClass:W.inputContainerClass??""),u=e.computed(()=>o.size!==void 0&&o.size!==null?o.size:W.size??"md"),p=e.computed({get:()=>o.modelValue,set:C=>{i("update:modelValue",C)}}),m=e.computed({get(){return!a.prefix&&!a.postfix?"":o.isLeftIconBorder?"input-group-text-border-right-0 ":o.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"}}),B=e.computed(()=>o.max>0&&p.value.length>=o.max);e.watch(B,C=>{C&&(d.value=!1,r.value="")});function V(C){if(typeof C=="object")return C.title??C.val??String(C);const N=o.options.find(z=>typeof z=="object"?z.val===C:z===C);return N&&typeof N=="object"?N.title??N.val:String(C)}function h(C){const N=typeof C=="object"?C.val:C;return p.value.includes(N)}const x=e.computed(()=>{const C=r.value.toLowerCase();return o.options.filter(N=>{const z=typeof N=="object"?N.title??N.val??"":String(N),w=typeof N=="object"?N.val:N;return p.value.includes(w)?!1:C?z.toLowerCase().includes(C):!0})});function D(C){if(B.value)return;const N=typeof C=="object"?C.val:C;p.value.includes(N)||(p.value=[...p.value,N]),r.value="",e.nextTick(()=>{!B.value&&c.value?c.value.focus():s.value&&s.value.focus()})}function M(){if(B.value)return;const C=r.value.trim();if(C){if(v.value>=0&&v.value<x.value.length){D(x.value[v.value]);return}p.value.includes(C)||(p.value=[...p.value,C]),r.value=""}}function g(C){const N=[...p.value];N.splice(C,1),p.value=N}function L(){if(r.value===""&&p.value.length>0){const C=[...p.value];C.pop(),p.value=C}}function E(){d.value=!0,v.value=-1}function b(){setTimeout(()=>{d.value=!1,v.value=-1},200)}function I(){v.value=-1,d.value||(d.value=!0)}function A(C){if(B.value){s.value&&s.value.focus();return}c.value?c.value.focus():s.value&&s.value.focus(),d.value||(d.value=!0)}function K(C){switch(C.key){case"ArrowDown":C.preventDefault(),d.value&&x.value.length>0&&(v.value=Math.min(v.value+1,x.value.length-1));break;case"ArrowUp":C.preventDefault(),d.value&&(v.value=Math.max(v.value-1,0));break;case"Escape":case"Tab":d.value=!1;break}}function P(C){l.value&&!l.value.contains(C.target)&&(d.value=!1)}return e.onMounted(()=>document.addEventListener("mousedown",P)),e.onBeforeUnmount(()=>document.removeEventListener("mousedown",P)),(C,N)=>{var z,w,R,F,O,y;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([[f.value,m.value],"apbd-input-tag-container"]),ref_key:"containerRef",ref:l},[t.label||C.$slots.label?(e.openBlock(),e.createElementBlock("label",{key:0,class:"form-label",for:(z=C.$attrs)==null?void 0:z.id},[e.renderSlot(C.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])],8,Hn)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({"input-group":((w=e.unref(a))==null?void 0:w.prefix)||((R=e.unref(a))==null?void 0:R.postfix)||t.prefix||t.postfix})},[(F=e.unref(a))!=null&&F.prefix||t.prefix?(e.openBlock(),e.createElementBlock("span",Yn,[e.renderSlot(C.$slots,"prefix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.prefix)),1)])])):e.createCommentVNode("",!0),e.createVNode(e.unref(ie.Field),{label:t.label,name:t.name,id:(O=C.$attrs)==null?void 0:O.id,rules:t.rules,modelValue:p.value,"onUpdate:modelValue":N[1]||(N[1]=te=>p.value=te)},{default:e.withCtx(()=>{var te,Y,pe,ae,G,H,ee;return[e.createElementVNode("div",{ref_key:"multiselectRef",ref:s,class:e.normalizeClass(["multiselect",`multiselect-${u.value}`,(te=C.$attrs)==null?void 0:te.class,{"form-control":((Y=e.unref(a))==null?void 0:Y.prefix)||((pe=e.unref(a))==null?void 0:pe.postfix)||t.prefix||t.postfix,"is-active":d.value,"is-disabled":(ae=C.$attrs)==null?void 0:ae.disabled}]),disabled:(G=C.$attrs)==null?void 0:G.disabled,id:(H=C.$attrs)==null?void 0:H.id,style:e.normalizeStyle((ee=C.$attrs)==null?void 0:ee.style),tabindex:"0",onMousedown:e.withModifiers(A,["prevent"]),onKeydown:K},[e.createElementVNode("div",qn,[e.createElementVNode("div",Kn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(oe,Be)=>(e.openBlock(),e.createElementBlock("span",{key:oe+"-"+Be,class:"multiselect-tag"},[e.createElementVNode("span",Wn,e.toDisplayString(e.unref(k)(V(oe))),1),e.createElementVNode("span",{class:"multiselect-tag-remove",onMousedown:e.withModifiers(Ne=>g(Be),["prevent","stop"])},[...N[2]||(N[2]=[e.createElementVNode("span",{class:"multiselect-tag-remove-icon"},"×",-1)])],40,Gn)]))),128)),B.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qn,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:c,"onUpdate:modelValue":N[0]||(N[0]=oe=>r.value=oe),class:"multiselect-tags-search",autocomplete:"off",placeholder:p.value.length===0?t.placeholder:"",onFocus:E,onBlur:b,onInput:I,onKeydown:[e.withKeys(e.withModifiers(M,["prevent"]),["enter"]),e.withKeys(L,["delete"])]},null,40,Xn),[[e.vModelText,r.value]])]))]),e.createElementVNode("div",{class:e.normalizeClass(["multiselect-caret",{"is-open":d.value}])},[...N[3]||(N[3]=[e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"currentColor",d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"})],-1)])],2)]),e.withDirectives(e.createElementVNode("div",Jn,[e.createElementVNode("ul",Zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(oe,Be)=>(e.openBlock(),e.createElementBlock("li",{key:typeof oe=="object"?oe.val??Be:oe,class:e.normalizeClass(["multiselect-option",{"is-selected":h(oe),"is-pointed":Be===v.value}]),onMousedown:e.withModifiers(Ne=>D(oe),["prevent"]),onMouseenter:Ne=>v.value=Be},e.toDisplayString(typeof oe=="object"?e.unref(k)(oe.title??oe.val):e.unref(k)(oe)),43,_n))),128))])],512),[[e.vShow,d.value&&x.value.length>0]])],46,Un)]}),_:1},8,["label","name","id","rules","modelValue"]),(y=e.unref(a))!=null&&y.postfix||t.postfix?(e.openBlock(),e.createElementBlock("span",ea,[e.renderSlot(C.$slots,"postfix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.postfix)),1)])])):e.createCommentVNode("",!0)],2),e.createVNode(e.unref(ie.ErrorMessage),{name:t.name,class:"apbd-v-error"},null,8,["name"]),e.createElementVNode("div",ta,[e.renderSlot(C.$slots,"hints",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.hints)),1)])])],2)}}}),la=Object.assign({inheritAttrs:!1},{__name:"AbBadge",props:{size:{type:String,default:void 0,validator:t=>["sm","md","lg"].includes(t)},variant:{type:String,default:"primary",validator:t=>["primary","secondary","danger","warning","success","info"].includes(t)},isOutline:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},isAvatar:{type:Boolean,default:!1},isClose:{type:Boolean,default:!1},isAdd:{type:Boolean,default:!1},isRoundedPill:{type:Boolean,default:!1}},setup(t){const n=e.useAttrs();e.useSlots();const o=t,a=e.computed(()=>o.size!==void 0&&o.size!==null?o.size:W.size??"md");return(i,l)=>{var c;return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["apbd-badge badge d-inline-flex align-items-center",[(c=e.unref(n))==null?void 0:c.class,{"rounded-pill":t.isRoundedPill,"badge-outline":t.isOutline,"dot-icon-badge":t.isDot,"avatar-icon-badge":t.isAvatar,"close-icon-badge":t.isClose,"add-icon-badge":t.isAdd,[`text-bg-${t.variant}`]:t.variant,[`badge-${a.value}`]:a.value}]])},[e.renderSlot(i.$slots,"default")],2)}}}),na={__name:"AbScrollbar",props:{size:{type:String,default:"md",validator:t=>["sm","md","lg"].includes(t)},isHoverIncrease:{type:Boolean,default:!1},transparentTrack:{type:Boolean,default:!0},showAlways:{type:Boolean,default:!1}},emits:["scroll","scroll-start","scroll-end"],setup(t,{emit:n}){const o=n,a=e.ref(null),i=e.ref(!1),l=e.ref(0),c=e.ref(0),s=e.ref(!1),d=e.ref(!1),r=e.ref(!1);let v=0,f=0,u=null,p=null,m=null;const B=()=>{if(!a.value)return;const{clientHeight:M,scrollHeight:g,scrollTop:L}=a.value;if(g<=M){i.value=!1;return}i.value=!0;const E=M/g*M;l.value=Math.max(E,30);const b=g-M,I=M-l.value;c.value=L/b*I},V=M=>{if(d.value||B(),a.value){const{scrollTop:g,scrollHeight:L,clientHeight:E}=a.value,b=L-E,I=b>0?g/b:0,A=I*100,K=b-g,P=100-A,C={event:M,scrollTop:g,scrollHeight:L,clientHeight:E,scrollRatio:I,scrollPercentage:A,remainingPixels:K,remainingPercentage:P};o("scroll",C),g<=0?o("scroll-start",C):Math.ceil(g+E)>=L&&o("scroll-end",C)}else o("scroll",{event:M});r.value=!0,u&&clearTimeout(u),u=setTimeout(()=>{r.value=!1},1e3)},h=M=>{d.value=!0,v=M.type.includes("touch")?M.touches[0].clientY:M.clientY,f=c.value,document.addEventListener("mousemove",x),document.addEventListener("mouseup",D),document.addEventListener("touchmove",x,{passive:!1}),document.addEventListener("touchend",D)},x=M=>{if(!d.value||!a.value)return;M.type.includes("touch")&&M.preventDefault();const L=(M.type.includes("touch")?M.touches[0].clientY:M.clientY)-v,{clientHeight:E,scrollHeight:b}=a.value,I=E-l.value;let A=f+L;A<0&&(A=0),A>I&&(A=I),c.value=A;const K=b-E,P=A/I;a.value.scrollTop=P*K},D=()=>{d.value=!1,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",D),document.removeEventListener("touchmove",x),document.removeEventListener("touchend",D)};return e.onMounted(()=>{a.value&&(p=new ResizeObserver(()=>{B()}),p.observe(a.value),m=new MutationObserver(()=>{e.nextTick(()=>{B()})}),m.observe(a.value,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),B())}),e.onUnmounted(()=>{p&&a.value&&p.unobserve(a.value),m&&m.disconnect(),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",D)}),(M,g)=>(e.openBlock(),e.createElementBlock("div",{class:"apbd-scrollbar",onMouseenter:g[0]||(g[0]=L=>s.value=!0),onMouseleave:g[1]||(g[1]=L=>s.value=!1)},[e.createElementVNode("div",{class:"apbd-scrollbar-view",ref_key:"scrollArea",ref:a,onScroll:V},[e.renderSlot(M.$slots,"default",{},void 0,!0)],544),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["apbd-scrollbar-track-y",[`size-${t.size}`,{"is-hover-increase":t.isHoverIncrease,"is-visible":s.value||d.value||t.showAlways||r.value,"is-transparent":t.transparentTrack,"is-always-hovered":t.showAlways}]])},[e.createElementVNode("div",{class:"apbd-scrollbar-thumb-y",style:e.normalizeStyle({height:l.value+"px",transform:`translateY(${c.value}px)`}),onMousedown:e.withModifiers(h,["stop","prevent"]),onTouchstart:e.withModifiers(h,["stop","prevent"])},null,36)],2),[[e.vShow,i.value]])],32))}},Bt=he(na,[["__scopeId","data-v-7fa117a3"]]),aa={class:"sidebar-header"},oa={class:"header-text"},ra={key:0,class:"sidebar-search px-3 py-2"},sa={class:"position-relative"},ia={key:1,class:"sidebar-search-collapsed d-flex justify-content-center py-2"},ca={class:"text-muted d-flex align-items-center justify-content-center",style:{cursor:"pointer",width:"40px",height:"40px","border-radius":"8px"},title:"Search"},ua={class:"shadow-sm p-2",style:{width:"250px"}},da={class:"position-relative"},ma={class:"sidebar-footer"},fa={__name:"AbSidebar",props:{appUniqueId:{type:String,default:"apbd"},hideSeperator:{type:Boolean,default:!1},mobileFullHeight:{type:Boolean,default:!1},enableSearch:{type:Boolean,default:!1},searchTargetClass:{type:String,default:"nav-item"}},setup(t){const n=e.inject("layoutState"),o=t,a=e.ref(!1),i=e.ref(!1),l=e.ref(""),c=e.ref(null),s=e.ref(null),d=()=>{i.value=window.innerWidth<576},r=e.computed(()=>o.mobileFullHeight&&i.value?!1:a.value),v=()=>{a.value=!a.value,p()},f=()=>{setTimeout(()=>{var V;(V=s.value)==null||V.focus()},100)},u=()=>{o.mobileFullHeight&&(n!=null&&n.toggleLeftSidebar)?n.toggleLeftSidebar(!1):v()},p=()=>{localStorage.setItem(o.appUniqueId+"_mn",a.value)},m=()=>{let V=localStorage.getItem(o.appUniqueId+"_mn");try{return V.toLowerCase()==="true"}catch{return!1}},B=()=>{if(!c.value)return;const V=l.value.toLowerCase().trim(),h=Array.from(c.value.children);h.forEach(D=>{var M;if(!D.classList.contains("section-title")&&D.classList.contains(o.searchTargetClass))if(!V)D.style.display="";else{const g=((M=D.textContent)==null?void 0:M.toLowerCase())||"";D.style.display=g.includes(V)?"":"none"}}),h.filter(D=>D.classList.contains("section-title")).forEach(D=>{if(!V){D.style.display="";return}let M=!1,g=D.nextElementSibling;for(;g&&!g.classList.contains("section-title");){if(g.classList.contains(o.searchTargetClass)&&g.style.display!=="none"){M=!0;break}g=g.nextElementSibling}D.style.display=M?"":"none"})};return e.onMounted(()=>{a.value=m(),d(),window.addEventListener("resize",d)}),e.onUnmounted(()=>{window.removeEventListener("resize",d)}),e.provide("isCollapsed",e.computed(()=>r.value)),e.provide("isMobileFullHeight",e.computed(()=>o.mobileFullHeight)),(V,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sidebar",{collapsed:r.value,"hide-seperator":t.hideSeperator,"mobile-full-height":t.mobileFullHeight}])},[e.createElementVNode("div",aa,[e.createElementVNode("span",oa,[e.renderSlot(V.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)("System")),1)])]),e.createElementVNode("div",{class:"collapse-btn d-none d-sm-flex",onClick:v},[e.renderSlot(V.$slots,"collapse-icon",{},()=>[e.createVNode(e.unref(ct))])]),e.createElementVNode("div",{class:"collapse-btn d-flex d-sm-none",onClick:u},[e.renderSlot(V.$slots,"collapse-icon",{},()=>[e.createVNode(e.unref(ct))])])]),t.enableSearch&&!r.value?(e.openBlock(),e.createElementBlock("div",ra,[e.createElementVNode("div",sa,[e.createVNode(e.unref(Ge),{class:"position-absolute top-50 translate-middle-y text-muted",size:15,style:{left:"10px"}}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":h[0]||(h[0]=x=>l.value=x),type:"text",class:"form-control form-control-sm shadow-none",style:{"padding-left":"32px"},placeholder:"Search menu...",onInput:B},null,544),[[e.vModelText,l.value]])])])):e.createCommentVNode("",!0),t.enableSearch&&r.value?(e.openBlock(),e.createElementBlock("div",ia,[e.createVNode(Me,{trigger:"click",placement:"right-start",offset:15,onShow:f},{content:e.withCtx(()=>[e.createElementVNode("div",ua,[e.createElementVNode("div",da,[e.createVNode(e.unref(Ge),{class:"position-absolute top-50 translate-middle-y text-muted",size:15,style:{left:"10px"}}),e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:s,"onUpdate:modelValue":h[1]||(h[1]=x=>l.value=x),type:"text",class:"form-control form-control-sm shadow-none",style:{"padding-left":"32px"},placeholder:"Search menu...",onInput:B},null,544),[[e.vModelText,l.value]])])])]),default:e.withCtx(()=>[e.createElementVNode("div",ca,[e.createVNode(e.unref(Ge),{size:20})])]),_:1})])):e.createCommentVNode("",!0),e.createVNode(Bt,null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:"sidebar-body",ref_key:"sidebarBodyRef",ref:c},[e.renderSlot(V.$slots,"default")],512)]),_:3}),e.createElementVNode("div",ma,[e.renderSlot(V.$slots,"footer")])],2))}},pa={key:0,class:"section-title"},va={key:1,class:"nav-item"},ha={class:"nav-left"},ga={class:"menu-text"},ya={class:"floating-submenu"},ba={key:0,class:"menu-text"},ka={class:"sub-menu"},wa=["href"],Ba={class:"nav-left"},Sa={class:"menu-text"},Ca={class:"nav-left"},Va={class:"menu-text"},xa={key:2,class:"sub-menu"},Na=Object.assign({inheritAttrs:!1},{__name:"AbSideMenuItem",setup(t){const n=e.ref(!1),o=e.inject("isMobileFullHeight",e.ref(!1)),a=e.inject("layoutState",null),i=()=>{o.value&&window.innerWidth<576&&(a!=null&&a.toggleLeftSidebar)&&a.toggleLeftSidebar(!1)},l=()=>{v.value?n.value=!n.value:i()},c=e.inject("isCollapsed"),s=e.useSlots(),d=e.useAttrs(),r=e.computed(()=>{const{href:u,to:p,...m}=d;return m}),v=e.computed(()=>!!s.submenu),f=e.computed(()=>{var p;const u=(p=s.default)==null?void 0:p.call(s);return u?u.map(m=>typeof m.children=="string"?m.children:"").join("").trim():""});return(u,p)=>{var h,x,D,M;const m=e.resolveComponent("router-link"),B=e.resolveDirective("translate"),V=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(s).sectiontitle&&!e.unref(c)?(e.openBlock(),e.createElementBlock("div",pa,[e.renderSlot(u.$slots,"sectiontitle",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)("Undefined")),1)])])):e.createCommentVNode("",!0),e.unref(s).sectiontitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",va,[v.value&&e.unref(c)?(e.openBlock(),e.createBlock(Me,{key:0,gap:35,placement:"right-start",trigger:"hover",contentClass:"apbd-submenu-container"},{content:e.withCtx(()=>[e.createElementVNode("div",ya,[e.unref(c)?(e.openBlock(),e.createElementBlock("div",ba,[e.renderSlot(u.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)("Undefined")),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",ka,[e.renderSlot(u.$slots,"submenu")])])]),default:e.withCtx(()=>[e.createElementVNode("a",e.mergeProps({class:"nav-link-custom"},r.value),[e.createElementVNode("div",ha,[e.renderSlot(u.$slots,"icon",{},()=>[e.createVNode(e.unref(Qe))]),e.withDirectives((e.openBlock(),e.createElementBlock("span",ga,[e.renderSlot(u.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)("Undefined")),1)])])),[[B]])]),e.createVNode(e.unref(Ze),{class:"sub-menu-icon","stroke-width":1})],16)]),_:3})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(h=e.unref(d))!=null&&h.href||v.value?(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"nav-link-custom",href:(x=e.unref(d))!=null&&x.href&&!v.value?(D=e.unref(d))==null?void 0:D.href:null,onClick:l},r.value),[e.createElementVNode("div",Ba,[e.renderSlot(u.$slots,"icon",{},()=>[e.createVNode(e.unref(Qe))]),e.withDirectives((e.openBlock(),e.createElementBlock("span",Sa,[e.renderSlot(u.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)("Undefined")),1)])])),[[B]])]),v.value?(e.openBlock(),e.createBlock(e.unref(Ze),{key:0,class:e.normalizeClass(["sub-menu-icon",{collapsed:n.value}]),"stroke-width":1},null,8,["class"])):e.createCommentVNode("",!0)],16,wa)):e.withDirectives((e.openBlock(),e.createBlock(m,e.mergeProps({key:1,class:"nav-link-custom",to:(M=e.unref(d))==null?void 0:M.to},r.value,{onClick:i}),{default:e.withCtx(()=>[e.createElementVNode("div",Ca,[e.renderSlot(u.$slots,"icon",{},()=>[e.createVNode(e.unref(Qe))]),e.withDirectives((e.openBlock(),e.createElementBlock("span",Va,[e.renderSlot(u.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)("Undefined")),1)])])),[[B]])])]),_:3},16,["to"])),[[V,{content:e.unref(c)?e.unref(k)(f.value):"",placement:"right"}]]),v.value&&n.value?(e.openBlock(),e.createElementBlock("div",xa,[e.renderSlot(u.$slots,"submenu")])):e.createCommentVNode("",!0)],64))]))],64)}}}),Ea={key:0,class:"form-label"},$a={key:0,class:"apbd-slider-prefix"},za=["aria-valuemin","aria-valuemax","aria-valuenow"],Ma={key:0,class:"apbd-slider-label"},Da=["aria-valuemin","aria-valuemax","aria-valuenow","aria-label"],Ta={key:0,class:"apbd-slider-label"},Aa={key:1,class:"apbd-slider-postfix"},Ia={key:1,class:"form-text"},Fa=Object.assign({inheritAttrs:!1},{__name:"AbSlider",props:{modelValue:{default:null},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},range:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["sm","md","lg"].includes(t)},showLabels:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{type:String,default:""},containerClass:{type:String,default:"mb-3"},hints:{type:String,default:""},formatLabel:{type:Function,default:t=>Math.round(t)+"%"}},emits:["update:modelValue"],setup(t,{emit:n}){const o=e.useSlots(),a=t,i=n,l=e.ref(null),c=e.ref(null),s=e.computed(()=>a.size!==void 0&&a.size!==null?a.size:W.size??"md"),d=e.computed(()=>{if(!a.range)return 0;const E=Array.isArray(a.modelValue)?a.modelValue[0]:a.min;return f(E)}),r=e.computed(()=>{if(a.range){const b=Array.isArray(a.modelValue)?a.modelValue[1]:a.max;return f(b)}const E=a.modelValue??a.min;return f(E)}),v=e.computed(()=>a.range?{insetInlineStart:d.value+"%",width:r.value-d.value+"%"}:{insetInlineStart:"0%",width:r.value+"%"});function f(E){const b=Math.min(Math.max(E,a.min),a.max);return a.max===a.min?0:(b-a.min)/(a.max-a.min)*100}function u(E){const b=a.min+E/100*(a.max-a.min),I=Math.round(b/a.step)*a.step;return Math.min(Math.max(I,a.min),a.max)}function p(E){if(!l.value)return 0;const b=l.value.getBoundingClientRect();let A=((E.touches?E.touches[0].clientX:E.clientX)-b.left)/b.width*100;return window.getComputedStyle(l.value).direction==="rtl"&&(A=100-A),Math.min(Math.max(A,0),100)}function m(E,b){if(a.disabled)return;const I=u(b);if(a.range){const A=Array.isArray(a.modelValue)?[...a.modelValue]:[a.min,a.max];E==="min"?A[0]=Math.min(I,A[1]):A[1]=Math.max(I,A[0]),i("update:modelValue",A)}else i("update:modelValue",I)}function B(E){if(a.disabled)return;const b=p(E);if(a.range){const I=Array.isArray(a.modelValue)?a.modelValue:[a.min,a.max],A=f(I[0]),K=f(I[1]),P=Math.abs(b-A)<Math.abs(b-K)?"min":"max";m(P,b),h(P)}else m("single",b),h("single")}function V(E){if(a.disabled)return;const b=p(E);if(a.range){const I=Array.isArray(a.modelValue)?a.modelValue:[a.min,a.max],A=f(I[0]),K=f(I[1]),P=Math.abs(b-A)<Math.abs(b-K)?"min":"max";m(P,b),x(P)}else m("single",b),x("single")}function h(E,b){a.disabled||(c.value=E,document.addEventListener("mousemove",D),document.addEventListener("mouseup",g))}function x(E,b){a.disabled||(c.value=E,document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",g))}function D(E){if(!c.value)return;const b=p(E);m(c.value==="single"?"single":c.value,b)}function M(E){if(!c.value)return;E.preventDefault();const b=p(E);m(c.value==="single"?"single":c.value,b)}function g(){c.value=null,document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",M),document.removeEventListener("touchend",g)}function L(E,b){if(a.disabled)return;let I;if(a.range){const C=Array.isArray(a.modelValue)?a.modelValue:[a.min,a.max];I=E==="min"?C[0]:C[1]}else I=a.modelValue??a.min;let A=I;const K=window.getComputedStyle(l.value).direction==="rtl";switch(b.key){case"ArrowRight":b.preventDefault(),A=K?Math.max(I-a.step,a.min):Math.min(I+a.step,a.max);break;case"ArrowUp":b.preventDefault(),A=Math.min(I+a.step,a.max);break;case"ArrowLeft":b.preventDefault(),A=K?Math.min(I+a.step,a.max):Math.max(I-a.step,a.min);break;case"ArrowDown":b.preventDefault(),A=Math.max(I-a.step,a.min);break;case"Home":b.preventDefault(),A=a.min;break;case"End":b.preventDefault(),A=a.max;break;default:return}const P=f(A);m(E,P)}return e.onBeforeUnmount(()=>{g()}),(E,b)=>{var I,A,K,P,C,N,z,w,R,F;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.containerClass,"apbd-slider-container"])},[t.label||(I=e.unref(o))!=null&&I.label?(e.openBlock(),e.createElementBlock("label",Ea,[e.renderSlot(E.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["apbd-slider",[`apbd-slider-${s.value}`,{"apbd-slider-disabled":t.disabled}]])},[(A=e.unref(o))!=null&&A.prefix?(e.openBlock(),e.createElementBlock("div",$a,[e.renderSlot(E.$slots,"prefix")])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"apbd-slider-wrapper",ref_key:"sliderRef",ref:l,onMousedown:B,onTouchstartPassive:V},[b[8]||(b[8]=e.createElementVNode("div",{class:"apbd-slider-track"},null,-1)),e.createElementVNode("div",{class:"apbd-slider-fill",style:e.normalizeStyle(v.value)},null,4),t.range?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["apbd-slider-thumb",{"apbd-slider-thumb-active":c.value==="min"}]),style:e.normalizeStyle({insetInlineStart:d.value+"%"}),onMousedown:b[0]||(b[0]=e.withModifiers(O=>h("min"),["stop"])),onTouchstartPassive:b[1]||(b[1]=e.withModifiers(O=>x("min"),["stop"])),onKeydown:b[2]||(b[2]=O=>L("min",O)),tabindex:"0",role:"slider","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":((K=t.modelValue)==null?void 0:K[0])??t.min,"aria-label":"Minimum value"},[e.renderSlot(E.$slots,"thumb",{value:((P=t.modelValue)==null?void 0:P[0])??t.min,type:"min"},()=>[b[6]||(b[6]=e.createElementVNode("div",{class:"apbd-slider-thumb-handle"},null,-1))]),t.showLabels?(e.openBlock(),e.createElementBlock("div",Ma,e.toDisplayString(t.formatLabel(((C=t.modelValue)==null?void 0:C[0])??t.min)),1)):e.createCommentVNode("",!0)],46,za)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["apbd-slider-thumb",{"apbd-slider-thumb-active":c.value===(t.range?"max":"single")}]),style:e.normalizeStyle({insetInlineStart:r.value+"%"}),onMousedown:b[3]||(b[3]=e.withModifiers(O=>h(t.range?"max":"single"),["stop"])),onTouchstartPassive:b[4]||(b[4]=e.withModifiers(O=>x(t.range?"max":"single"),["stop"])),onKeydown:b[5]||(b[5]=O=>L(t.range?"max":"single",O)),tabindex:"0",role:"slider","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.range?((N=t.modelValue)==null?void 0:N[1])??t.max:t.modelValue??t.min,"aria-label":t.range?"Maximum value":"Value"},[e.renderSlot(E.$slots,"thumb",{value:t.range?((z=t.modelValue)==null?void 0:z[1])??t.max:t.modelValue??t.min,type:t.range?"max":"single"},()=>[b[7]||(b[7]=e.createElementVNode("div",{class:"apbd-slider-thumb-handle"},null,-1))]),t.showLabels?(e.openBlock(),e.createElementBlock("div",Ta,e.toDisplayString(t.formatLabel(t.range?((w=t.modelValue)==null?void 0:w[1])??t.max:t.modelValue??t.min)),1)):e.createCommentVNode("",!0)],46,Da)],544),(R=e.unref(o))!=null&&R.postfix?(e.openBlock(),e.createElementBlock("div",Aa,[e.renderSlot(E.$slots,"postfix")])):e.createCommentVNode("",!0)],2),(F=e.unref(o))!=null&&F.hints||t.hints?(e.openBlock(),e.createElementBlock("div",Ia,[e.renderSlot(E.$slots,"hints",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.hints)),1)])])):e.createCommentVNode("",!0)],2)}}}),La=["for"],Pa={key:0,class:"input-group-text left"},ja=["disabled","id","aria-expanded"],Ra={class:"multiselect-wrapper"},Oa={key:0,class:"multiselect-single-label"},Ha={key:1,class:"multiselect-placeholder"},Ya={key:1,class:"multiselect-tags"},Ua={class:"multiselect-tag-wrapper"},qa=["onMousedown"],Ka=["placeholder"],Wa={class:"multiselect-icons"},Ga={key:0,class:"multiselect-spinner"},Qa=["dir"],Xa={class:"multiselect-options"},Ja=["onMousedown","onMouseenter"],Za={key:0,class:"multiselect-no-options"},_a={class:"multiselect-empty"},eo={class:"multiselect-empty"},to={key:1,class:"input-group-text right"},lo={key:1,class:"form-text"},$e=Object.assign({name:"AbMultiSelect",inheritAttrs:!1},{__name:"AbMultiSelect",props:{onSearch:{type:Function,default:null},modelValue:{default:null},label:{type:String,default:""},placeholder:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,required:!0},rules:{default:""},containerClass:{type:String,default:void 0},hints:{type:String,default:""},multiple:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},mode:{type:String,default:"single",validator:t=>["single","multiple","tags"].includes(t)},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"val"},max:{default:-1},object:{type:Boolean,default:!1},prefix:{type:String,default:""},postfix:{type:String,default:""},isAjaxSearch:{type:Boolean,default:!1},hideSelected:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0},isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)}},emits:["update:modelValue","clear","change","select","open","close","search-change"],setup(t,{emit:n}){const o=t,a=n,i=e.useSlots(),l=e.useAttrs(),c=e.ref(null),s=e.ref(null),d=e.ref(null),r=e.ref(null),v=e.ref(!1),f=e.ref(""),u=e.ref(!1),p=e.ref(-1),m=e.ref([...o.options]),B=e.ref([]),V=e.ref(!1),h=e.ref(null),x=e.ref(300),D=e.ref("bottom"),M=e.ref({}),g=e.ref("ltr");let L=null;e.watch(()=>o.options,T=>{m.value=[...T]},{deep:!0});const E=e.computed(()=>o.disabled||(l==null?void 0:l.disabled)),b=e.computed(()=>(i==null?void 0:i.prefix)||(i==null?void 0:i.postfix)||o.prefix||o.postfix),I=e.computed(()=>o.loading||V.value),A=e.computed(()=>o.mode==="tags"||o.mode==="multiple"),K=e.computed(()=>!i.prefix&&!i.postfix?"":o.isLeftIconBorder?"input-group-text-border-right-0 ":o.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"),P=e.computed(()=>o.containerClass!==void 0&&o.containerClass!==null?o.containerClass:W.inputContainerClass??""),C=e.computed(()=>o.size!==void 0&&o.size!==null?o.size:W.size??"md"),N=e.computed({get:()=>o.modelValue,set:T=>{a("update:modelValue",T)}}),z=e.computed(()=>o.mode==="single"?1:o.max);function w(T){return T==null?null:typeof T=="object"?T[o.valueKey]:T}function R(T){return T==null?"":typeof T=="object"?T[o.labelKey]??T[o.valueKey]??"":String(T)}function F(T){if(T==null)return null;const U=o.object?T[o.valueKey]:T;let Z=m.value.find(re=>w(re)===U);return Z||(Z=B.value.find(re=>w(re)===U)),Z||null}function O(T){var Z;const U=w(T);return A.value?(Array.isArray(N.value)?N.value:[]).some(ge=>(o.object?ge[o.valueKey]:ge)===U):(o.object?(Z=N.value)==null?void 0:Z[o.valueKey]:N.value)===U}const y=e.computed(()=>N.value?F(N.value):null),te=e.computed(()=>{const T=y.value;return T?R(T):o.object&&N.value?N.value[o.labelKey]??"":N.value??""}),Y=e.computed(()=>A.value?(Array.isArray(N.value)?N.value:[]).map(U=>{const Z=F(U);return Z||(o.object&&typeof U=="object"?U:{[o.valueKey]:U,[o.labelKey]:String(U)})}):[]),pe=e.computed(()=>A.value?Array.isArray(N.value)&&N.value.length>0:N.value!=null&&N.value!==""),ae=e.computed(()=>{if(!f.value||o.isAjaxSearch)return m.value;const T=f.value.toLowerCase();return m.value.filter(U=>R(U).toLowerCase().includes(T))}),G=e.computed(()=>{let T=ae.value;return o.hideSelected&&A.value&&pe.value&&(T=T.filter(U=>!O(U))),T}),H=e.computed(()=>!A.value||z.value<=0?!0:(Array.isArray(N.value)?N.value.length:0)<z.value);function ee(){E.value||v.value||(v.value=!0,p.value=-1,Le(),a("open"),e.nextTick(()=>{d.value?d.value.focus():s.value&&s.value.focus()}))}function oe(){v.value&&(v.value=!1,f.value="",u.value=!1,p.value=-1,a("close"))}function Be(T){if(!E.value&&!(r.value&&r.value.contains(T.target))&&!T.target.closest(".multiselect-clear"))if(v.value){if(T.target===d.value&&f.value.length>0)return;T.preventDefault(),oe(),s.value&&s.value.focus()}else T.preventDefault(),ee()}function Ne(T){if(E.value)return;const U=w(T);B.value.some(re=>w(re)===U)||B.value.push(T);const Z=o.object?T:U;if(o.mode==="single")N.value=Z,a("select",Z),a("change",Z),oe(),s.value&&s.value.focus();else{if(!H.value&&!O(T))return;const re=Array.isArray(N.value)?[...N.value]:[];if(O(T)){const ge=w(T),S=re.filter($=>(o.object?$[o.valueKey]:$)!==ge);N.value=S}else re.push(Z),N.value=re,a("select",Z);a("change",N.value),f.value="",e.nextTick(()=>{d.value?d.value.focus():s.value&&s.value.focus()})}}function Ye(T){if(E.value)return;const U=w(T),re=(Array.isArray(N.value)?[...N.value]:[]).filter(ge=>(o.object?ge[o.valueKey]:ge)!==U);N.value=re,a("change",re)}function Ue(){A.value?N.value=[]:N.value=null,f.value="",a("clear"),a("change",N.value),oe(),s.value&&s.value.focus()}function qe(){if(f.value===""&&pe.value&&A.value){const T=Array.isArray(N.value)?[...N.value]:[];T.pop(),N.value=T,a("change",T)}}function Ae(){u.value=!0,v.value||ee()}function Ie(){setTimeout(()=>{u.value=!1},200)}async function Fe(){a("search-change",f.value),!v.value&&f.value&&ee(),o.isAjaxSearch&&(clearTimeout(h.value),f.value!==""&&(V.value=!0,h.value=setTimeout(async()=>{try{const T=await o.onSearch(f.value);T&&(m.value=[...T])}catch(T){console.error("AbMultiSelect ajax search error:",T)}finally{V.value=!1}},500)))}function Ee(T){if(!E.value)switch(T.key){case"ArrowDown":T.preventDefault(),v.value?(p.value=Math.min(p.value+1,G.value.length-1),ke()):ee();break;case"ArrowUp":T.preventDefault(),v.value&&(p.value=Math.max(p.value-1,0),ke());break;case"Enter":T.preventDefault(),v.value&&p.value>=0&&p.value<G.value.length?Ne(G.value[p.value]):v.value||ee();break;case"Escape":T.preventDefault(),oe();break;case"Tab":oe();break}}function ke(){e.nextTick(()=>{if(!r.value)return;const T=r.value.querySelectorAll(".multiselect-option");T[p.value]&&T[p.value].scrollIntoView({block:"nearest"})})}const Le=()=>{if(!s.value)return;const T=s.value,U=T.getBoundingClientRect();g.value=window.getComputedStyle(T).direction||"ltr";let Z=T.parentElement,re=null;for(;Z&&Z!==document.documentElement;){const Q=window.getComputedStyle(Z);if(["auto","hidden","scroll"].includes(Q.overflow)||["auto","hidden","scroll"].includes(Q.overflowY)){re=Z;break}Z=Z.parentElement}const ge=re?re.getBoundingClientRect():{top:0,bottom:window.innerHeight},S=ge.bottom-U.bottom-10,$=U.top-ge.top-10;S<250&&$>S?(D.value="top",x.value=Math.min(300,Math.max(150,$))):(D.value="bottom",x.value=Math.min(300,Math.max(150,S))),o.appendToBody?D.value==="top"?M.value={position:"fixed",bottom:`${window.innerHeight-U.top}px`,top:"auto",right:"auto",transform:"none",left:`${U.left}px`,width:`${U.width}px`,zIndex:9999}:M.value={position:"fixed",top:`${U.bottom}px`,bottom:"auto",right:"auto",transform:"none",left:`${U.left}px`,width:`${U.width}px`,zIndex:9999}:M.value={}},we=()=>{v.value&&o.appendToBody&&(L&&cancelAnimationFrame(L),L=requestAnimationFrame(()=>{Le()}))};e.watch(v,T=>{T?o.appendToBody&&(window.addEventListener("scroll",we,!0),window.addEventListener("resize",we)):o.appendToBody&&(window.removeEventListener("scroll",we,!0),window.removeEventListener("resize",we))});function Pe(T){const U=c.value&&!c.value.contains(T.target),Z=r.value&&!r.value.contains(T.target);U&&Z&&oe()}return e.onMounted(()=>{document.addEventListener("mousedown",Pe)}),e.onBeforeUnmount(()=>{document.removeEventListener("mousedown",Pe),window.removeEventListener("scroll",we,!0),window.removeEventListener("resize",we),L&&cancelAnimationFrame(L),clearTimeout(h.value)}),(T,U)=>{var ge,S,$,Q;const Z=e.resolveComponent("translate"),re=e.resolveDirective("translate");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([[P.value,K.value],"apbd-multiselect-container"]),ref_key:"containerRef",ref:c},[t.label||e.unref(i).label?(e.openBlock(),e.createElementBlock("label",{key:0,class:"form-label",for:(ge=e.unref(l))==null?void 0:ge.id},[e.renderSlot(T.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])],8,La)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({"input-group":b.value})},[(S=e.unref(i))!=null&&S.prefix||t.prefix?(e.openBlock(),e.createElementBlock("span",Pa,[e.renderSlot(T.$slots,"prefix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.prefix)),1)])])):e.createCommentVNode("",!0),e.createVNode(e.unref(ie.Field),{label:t.label,name:t.name,id:($=e.unref(l))==null?void 0:$.id,modelValue:N.value,"onUpdate:modelValue":U[2]||(U[2]=q=>N.value=q),rules:t.rules},{default:e.withCtx(()=>{var q,j,J;return[e.createElementVNode("div",{ref_key:"multiselectRef",ref:s,class:e.normalizeClass(["multiselect",`multiselect-${C.value}`,(q=e.unref(l))==null?void 0:q.class,{"is-active":v.value,"is-disabled":E.value}]),style:e.normalizeStyle((j=e.unref(l))==null?void 0:j.style),disabled:E.value,id:(J=e.unref(l))==null?void 0:J.id,tabindex:"0",role:"combobox","aria-expanded":v.value,onMousedown:Be,onKeydown:Ee},[e.createElementVNode("div",Ra,[t.mode==="single"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[pe.value&&!u.value?(e.openBlock(),e.createElementBlock("div",Oa,[e.renderSlot(T.$slots,"singlelabel",{value:y.value},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(te.value)),1)])])):e.createCommentVNode("",!0),!pe.value&&!f.value?(e.openBlock(),e.createElementBlock("div",Ha,e.toDisplayString(e.unref(k)(t.placeholder)),1)):e.createCommentVNode("",!0),t.searchable?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,ref_key:"searchInputRef",ref:d,"onUpdate:modelValue":U[0]||(U[0]=X=>f.value=X),class:e.normalizeClass(["multiselect-search",{"is-idle":!v.value&&!f.value}]),autocomplete:"off",onFocus:Ae,onBlur:Ie,onInput:Fe},null,34)),[[e.vModelText,f.value]]):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("div",Ya,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Y.value,(X,ce)=>(e.openBlock(),e.createElementBlock("span",{key:w(X)??ce,class:"multiselect-tag"},[e.createElementVNode("span",Ua,e.toDisplayString(e.unref(k)(R(X))),1),e.createElementVNode("span",{class:"multiselect-tag-remove",onMousedown:e.withModifiers(se=>Ye(X),["prevent","stop"])},[...U[3]||(U[3]=[e.createElementVNode("span",{class:"multiselect-tag-remove-icon"},"×",-1)])],40,qa)]))),128)),e.createElementVNode("div",{class:e.normalizeClass(["multiselect-tags-search-wrapper",{"is-full":!pe.value}])},[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:d,"onUpdate:modelValue":U[1]||(U[1]=X=>f.value=X),class:"multiselect-tags-search",autocomplete:"off",placeholder:pe.value?"":e.unref(k)(t.placeholder),onFocus:Ae,onBlur:Ie,onInput:Fe,onKeydown:e.withKeys(qe,["delete"])},null,40,Ka),[[e.vModelText,f.value]])],2)])),e.createElementVNode("div",Wa,[I.value?(e.openBlock(),e.createElementBlock("div",Ga,[e.renderSlot(T.$slots,"loader-icon",{},()=>[e.createVNode(e.unref(wl),{class:"ab-spin",width:"18",height:"18"})])])):e.createCommentVNode("",!0),pe.value&&!E.value&&!I.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"multiselect-clear",onMousedown:e.withModifiers(Ue,["prevent","stop"])},[...U[4]||(U[4]=[e.createElementVNode("div",{class:"clear-icon-wrapper"},[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"currentColor",d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})])],-1)])],32)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["multiselect-caret",{"is-open":v.value}])},[...U[5]||(U[5]=[e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"currentColor",d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"})],-1)])],2)])]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body",disabled:!t.appendToBody},[e.createElementVNode("div",{class:e.normalizeClass(t.appendToBody?["appsbd-app","apbd-multiselect-container"]:[]),style:e.normalizeStyle(t.appendToBody?{}:{display:"contents"}),dir:g.value},[e.withDirectives(e.createElementVNode("div",{ref_key:"dropdownRef",ref:r,class:e.normalizeClass(["multiselect-dropdown",[{"is-top":D.value==="top"},t.appendToBody?"is-teleported":""]]),style:e.normalizeStyle([{maxHeight:x.value+"px"},M.value])},[e.createElementVNode("ul",Xa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,(X,ce)=>(e.openBlock(),e.createElementBlock("li",{key:w(X),class:e.normalizeClass(["multiselect-option",{"is-selected":O(X),"is-pointed":ce===p.value}]),onMousedown:e.withModifiers(se=>Ne(X),["prevent"]),onMouseenter:se=>p.value=ce},[e.renderSlot(T.$slots,"option",{option:X,isSelected:O(X)},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(R(X))),1)])],42,Ja))),128))]),G.value.length===0?(e.openBlock(),e.createElementBlock("div",Za,[I.value?e.renderSlot(T.$slots,"option-loading",{key:1},()=>[e.createElementVNode("div",eo,[e.createElementVNode("span",null,[e.createVNode(Z,null,{default:e.withCtx(()=>[...U[7]||(U[7]=[e.createTextVNode("Loading",-1)])]),_:1}),U[8]||(U[8]=e.createTextVNode("... ",-1))])])]):e.renderSlot(T.$slots,"noresults",{key:0},()=>[e.createElementVNode("div",_a,[e.createVNode(e.unref(kl)),e.withDirectives((e.openBlock(),e.createElementBlock("span",null,[...U[6]||(U[6]=[e.createTextVNode("No option found!",-1)])])),[[re]])])])])):e.createCommentVNode("",!0)],6),[[e.vShow,v.value]])],14,Qa)],8,["disabled"]))],46,ja)]}),_:3},8,["label","name","id","modelValue","rules"]),(Q=e.unref(i))!=null&&Q.postfix||t.postfix?(e.openBlock(),e.createElementBlock("span",to,[e.renderSlot(T.$slots,"postfix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.postfix)),1)])])):e.createCommentVNode("",!0)],2),e.createVNode(e.unref(ie.ErrorMessage),{name:t.name,class:"apbd-v-error"},null,8,["name"]),e.unref(i).hints||t.hints?(e.openBlock(),e.createElementBlock("div",lo,[e.renderSlot(T.$slots,"hints",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.hints)),1)])])):e.createCommentVNode("",!0)],2)}}}),no={class:"d-flex justify-content-center align-items-center flex-wrap gap-2 mb-3"},ao={class:"d-flex gap-2"},oo=["onUpdate:modelValue","onInput","onKeydown"],ro={key:0,class:"otp-separator mx-2"},so={__name:"AbPinInput",props:{modelValue:String,length:{type:Number,default:6},size:{type:String,default:"md"},showSeparator:{type:Boolean,default:!1},groupSize:{type:Number,default:3}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,a=n,i=e.ref(Array(o.length).fill("")),l=e.ref([]),c=e.computed(()=>{const f=[];for(let u=0;u<o.length;u+=o.groupSize)f.push(i.value.slice(u,u+o.groupSize));return f});function s(f,u){f&&(l.value[u]=f)}e.watch(()=>o.modelValue,f=>{i.value=Array(o.length).fill(""),f&&f.split("").forEach((u,p)=>{p<o.length&&(i.value[p]=u)})},{immediate:!0});function d(f,u){const p=(u.target.value||"").replace(/\s/g,"").slice(0,1);i.value[f]=p,a("update:modelValue",i.value.join("")),p&&f<o.length-1&&e.nextTick(()=>{var m;(m=l.value[f+1])==null||m.focus()})}function r(f,u){!i.value[u]&&u>0&&e.nextTick(()=>{var p;(p=l.value[u-1])==null||p.focus()})}function v(f){let u=f.clipboardData.getData("text").replace(/\s/g,"");if(!u)return;const p=u.split("").slice(0,o.length);i.value=Array(o.length).fill(""),p.forEach((m,B)=>{i.value[B]=m}),a("update:modelValue",i.value.join("")),e.nextTick(()=>{var B,V;const m=Math.min(p.length,o.length-1);(V=(B=l.value[m])==null?void 0:B.focus)==null||V.call(B)})}return(f,u)=>(e.openBlock(),e.createElementBlock("div",no,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(p,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m},[e.createElementVNode("div",ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p,(B,V)=>(e.openBlock(),e.createElementBlock("div",{class:"apbd-input-container",key:V},[e.withDirectives(e.createElementVNode("input",{ref_for:!0,ref:h=>s(h,m*t.groupSize+V),type:"text",maxlength:"1",class:e.normalizeClass(["form-control mega-input-field","form-control-"+t.size]),"onUpdate:modelValue":h=>i.value[m*t.groupSize+V]=h,onInput:h=>d(m*t.groupSize+V,h),onKeydown:e.withKeys(h=>r(h,m*t.groupSize+V),["backspace"]),onPaste:v},null,42,oo),[[e.vModelText,i.value[m*t.groupSize+V]]])]))),128))]),t.showSeparator&&m!==c.value.length-1?(e.openBlock(),e.createElementBlock("span",ro," - ")):e.createCommentVNode("",!0)],64))),128))]))}},io={__name:"AbCustomField",props:{fieldInputs:{type:Array,default:()=>[]},size:{type:String,default:void 0},customProps:{type:Object,default:()=>({})}},setup(t){const n=t,o=e.useAttrs(),a=s=>{switch(s==null?void 0:s.type){case"T":return"text";case"N":return"number";case"P":return"password";case"U":return"url";default:return"text"}},i=s=>{const{is_required:d,type:r,max_val:v,min_val:f}=s;let u=[];return d==="Y"&&u.push("required"),r==="U"&&u.push("url"),r==="N"&&(d==="Y"&&v&&u.push(`max_value:${v}`),d==="Y"&&f&&u.push(`min_value:${f}`)),u.join("|")},l=(s="100px")=>({height:s}),c=e.computed(()=>n.size!==void 0&&n.size!==null?n.size:W.size??"md");return(s,d)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fieldInputs,(r,v)=>{var f;return e.openBlock(),e.createElementBlock("div",{key:v,class:e.normalizeClass(["mb-3",r.res_class??((f=e.unref(o))==null?void 0:f.class)])},[["T","N","U","P","E"].includes(r.type)?(e.openBlock(),e.createBlock(Ce,{key:0,class:e.normalizeClass(r==null?void 0:r.input_class),size:(r==null?void 0:r.size)||c.value,rules:i(r),label:r.label,id:"cf_"+r.id,name:"cf_"+r.id,modelValue:t.customProps[r.id],"onUpdate:modelValue":u=>t.customProps[r.id]=u,as:r.type==="E"?"textarea":"",type:a(r),style:e.normalizeStyle(r.type==="E"?l(r.height):""),disabled:r.is_disable==="Y",placeholder:r.placeholder,prefix:r.prefix,postfix:r.postfix,"container-class":r.container_class},e.createSlots({_:2},[r.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Label"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.label)),1)])]),key:"0"}:void 0,r.des?{name:"hints",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Hints"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.des)),1)])]),key:"1"}:void 0,r.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Prefix"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.prefix)),1)])]),key:"2"}:void 0,r.postfix?{name:"postfix",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Postfix"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.postfix)),1)])]),key:"3"}:void 0]),1032,["class","size","rules","label","id","name","modelValue","onUpdate:modelValue","as","type","style","disabled","placeholder","prefix","postfix","container-class"])):e.createCommentVNode("",!0),r.type==="H"?(e.openBlock(),e.createBlock(e.unref(ie.Field),{key:1,type:"hidden",label:r.label,rules:i(r),modelValue:t.customProps[r.id],"onUpdate:modelValue":u=>t.customProps[r.id]=u,class:e.normalizeClass(["form-control",r!=null&&r.input_class?r.input_class:"form-control-"+((r==null?void 0:r.size)||c.value)]),id:"cf_"+r.id,name:"cf_"+r.id,placeholder:r.placeholder},null,8,["label","rules","modelValue","onUpdate:modelValue","class","id","name","placeholder"])):e.createCommentVNode("",!0),r.type==="D"||r.type==="DR"?(e.openBlock(),e.createBlock(xe,{key:2,"is-range":r.type==="DR",class:e.normalizeClass(r==null?void 0:r.input_class),size:(r==null?void 0:r.size)||c.value,id:"cf_"+r.id,name:"cf_"+r.id,rules:i(r),placeholder:r.placeholder,"is-disable":r.is_disable==="Y",label:r.label,modelValue:t.customProps[r.id],"onUpdate:modelValue":u=>t.customProps[r.id]=u},e.createSlots({_:2},[r.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Label"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.label)),1)])]),key:"0"}:void 0,r.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Prefix"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.prefix)),1)])]),key:"1"}:void 0,r.postfix?{name:"postfix",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Postfix"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.postfix)),1)])]),key:"2"}:void 0,r.icon?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Icon"+r.id,{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon)))])]),key:"3"}:void 0,r.des?{name:"hints",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Hints"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.des)),1)])]),key:"4"}:void 0]),1032,["is-range","class","size","id","name","rules","placeholder","is-disable","label","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),r.type==="R"?(e.openBlock(),e.createBlock(ze,{key:3,id:"cf_"+r.id,name:"cf_"+r.id,options:r.options,label:r.label,val:r==null?void 0:r.val,type:"radio",isInline:r.isInline,class:e.normalizeClass(r==null?void 0:r.input_class),"is-disable":r.is_disable==="Y",size:(r==null?void 0:r.size)||c.value,modelValue:t.customProps[r.id],"onUpdate:modelValue":u=>t.customProps[r.id]=u},e.createSlots({_:2},[r.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Label"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.label)),1)])]),key:"0"}:void 0,r.des?{name:"description",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Description"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.des)),1)])]),key:"1"}:void 0,r.help_text?{name:"help-text",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"HelpText"+r.id)]),key:"2"}:void 0]),1032,["id","name","options","label","val","isInline","class","is-disable","size","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),r.type==="W"?(e.openBlock(),e.createBlock($e,{key:4,class:e.normalizeClass(r==null?void 0:r.input_class),size:(r==null?void 0:r.size)||c.value,name:"cf_"+r.id,id:"cf_"+r.id,mode:r.isSingle?"single":"tags",label:r.label,options:r.options,disabled:r.is_disable==="Y",placeholder:r.placeholder,max:r.opt_limit?r.opt_limit:-1,val:r.val,rules:i(r),modelValue:t.customProps[r.id],"onUpdate:modelValue":u=>t.customProps[r.id]=u,prefix:r.prefix,postfix:r.postfix},e.createSlots({_:2},[r.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Label"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.label)),1)])]),key:"0"}:void 0,r.des?{name:"description",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Description"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.des)),1)])]),key:"1"}:void 0,r.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Prefix"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.prefix)),1)])]),key:"2"}:void 0,r.postfix?{name:"postfix",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Postfix"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.postfix)),1)])]),key:"3"}:void 0,r.postfix?{name:"hints",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Hints"+r.id)]),key:"4"}:void 0]),1032,["class","size","name","id","mode","label","options","disabled","placeholder","max","val","rules","modelValue","onUpdate:modelValue","prefix","postfix"])):e.createCommentVNode("",!0),r.type==="S"?(e.openBlock(),e.createBlock(et,{key:5,class:e.normalizeClass(r==null?void 0:r.input_class),size:(r==null?void 0:r.size)||c.value,label:r.label,id:"cf_"+r.id,"true-value":r==null?void 0:r.true_val,"false-value":r==null?void 0:r.false_val,modelValue:t.customProps[r.id],"onUpdate:modelValue":u=>t.customProps[r.id]=u,"is-disable":r.is_disable==="Y",val:r.val,title:r.title,description:r.description},e.createSlots({_:2},[r.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Label"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.label)),1)])]),key:"0"}:void 0,r.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Title"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.title)),1)])]),key:"1"}:void 0,r.description?{name:"description",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Description"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.description)),1)])]),key:"2"}:void 0,r.hints?{name:"hints",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Hints"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.hints)),1)])]),key:"3"}:void 0]),1032,["class","size","label","id","true-value","false-value","modelValue","onUpdate:modelValue","is-disable","val","title","description"])):e.createCommentVNode("",!0),r.type==="C"?(e.openBlock(),e.createBlock(ze,{key:6,class:e.normalizeClass(r==null?void 0:r.input_class),size:(r==null?void 0:r.size)||c.value,name:"cf_"+r.id,label:r.label,isInline:r.isInline,options:r.options,val:r.val,rules:i(r),modelValue:t.customProps[r.id],"onUpdate:modelValue":u=>t.customProps[r.id]=u,limit:r.opt_limit},e.createSlots({_:2},[r.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Label"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.label)),1)])]),key:"0"}:void 0,r.des?{name:"description",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"Description"+r.id,{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(r.des)),1)])]),key:"1"}:void 0,r.help_text?{name:"help-text",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"HelpText"+r.id)]),key:"2"}:void 0]),1032,["class","size","name","label","isInline","options","val","rules","modelValue","onUpdate:modelValue","limit"])):e.createCommentVNode("",!0)],2)}),128))}},co=["checked","value","name","id"],uo=["for","title"],mo={__name:"AbColorPicker",props:{align:{type:String,default:"left"},modelValue:{type:String,default:""},name:{type:String,default:"color"},colors:{type:Array,default:()=>[]},borderRadius:{type:String,default:"50%"},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,a=n,i=e.computed(()=>o.size!==void 0&&o.size!==null?o.size:W.size??"md"),l=c=>{a("update:modelValue",c.target.value)};return(c,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apbd-color-skin",["apbd-color-skin-"+i.value]]),style:e.normalizeStyle(`justify-content:${t.align};--apbd-ascp-border-radius:${t.borderRadius}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.colors,(d,r)=>(e.openBlock(),e.createElementBlock("div",{class:"color-picker-item",key:d.name+"_"+r},[e.createElementVNode("input",{type:"radio",checked:d.name===t.modelValue,value:d.name,name:t.name,id:t.name+"-"+r,onInput:l},null,40,co),e.createElementVNode("label",{for:t.name+"-"+r,title:d==null?void 0:d.title,style:e.normalizeStyle("background:"+(d==null?void 0:d.color))},[...s[0]||(s[0]=[e.createElementVNode("svg",{class:"check-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},[e.createElementVNode("path",{fill:"currentColor",d:"M45.459 77.819l44.795-44.794A7.668 7.668 0 1 0 79.409 22.18L40.037 61.553 20.591 42.107A7.668 7.668 0 1 0 9.746 52.952L34.614 77.82a7.647 7.647 0 0 0 5.422 2.246 7.653 7.653 0 0 0 5.423-2.247z"})],-1)])],12,uo)]))),128))],6))}},fo=he(mo,[["__scopeId","data-v-0a017b3a"]]);function St(){const{appContext:t}=e.getCurrentInstance(),n=t.config.globalProperties.$toast,o=(a,i)=>n(a,i);return o.success=(a,i)=>n.success(a,i),o.error=(a,i)=>n.error(a,i),o.warning=(a,i)=>n.warning(a,i),o.info=(a,i)=>n.info(a,i),o.dismiss=a=>n.dismiss(a),o.clear=()=>n.clear(),{toast:o}}function Ct(){const{toast:t}=St(),n=(a,i=1)=>{let l=a.name.split(".").pop().toLowerCase();const c={"jpg|jpeg|jpe":"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp"};let s=null;for(let v in c)if(v.split("|").includes(l)){s=c[v];break}if(!s){const v="Uploaded File type not allowed";return a.error=v,t.error(v),null}if(a.type!==s){const v="Uploaded File type not match with '"+l+"'";return a.error=v,t.error(v),null}const d=o(l,a.type);if(a.isImage=d.isImage,!a.isImage){const v="Uploaded File type not allowed";return a.error=v,t.error(v),null}if(a.fileIcon=d.fileIcon,a.size/1048576>i){const v="File size is larger then "+i+"MB";return a.error=v,t.error(v),null}return a},o=(a,i)=>{a=a.toLowerCase();let l={isImage:!1,fileIcon:"apw apw-file-o"};return(i==null?void 0:i.substr(0,3))==="ima"?l.isImage=!0:a==="pdf"?l.fileIcon=it:a==="zip"?l.fileIcon=yl:a==="doc"||a==="docx"?l.fileIcon=it:a==="xls"||a==="xlsx"?l.fileIcon=Sl:a==="ppt"||a==="pptx"?l.fileIcon=hl:(a==="mp4"||a==="mpeg"||a==="mkv"||a==="avi")&&(l.fileIcon=gl),l};return{getFileInfo:n,getFileIconByExt:o}}const po=["for"],vo={key:0,class:"feature-images"},ho=["src"],go={key:1,class:"feature-images empty-state"},yo={__name:"AbFileUploader",props:{modelValue:{type:[File,Array,String,null],default:null},maxSize:{type:Number,default:2},label:{type:String,default:""},containerClass:{type:String,default:""}},emits:["onSelectFiles","update:modelValue"],setup(t,{emit:n}){const o=n,a=t,i=e.ref(null),l=e.ref(null),c=e.useSlots(),s=e.computed(()=>!c.default&&!c.dial),{getFileInfo:d}=Ct();e.watch(()=>a.modelValue,u=>{u?typeof u=="string"&&(l.value=u):(l.value=null,i.value&&(i.value.value=""))},{immediate:!0});const r=()=>{var u;(u=i.value)==null||u.click()},v=u=>{const p=u.target.files;if(!(!p||p.length===0))try{let m=null;Array.from(p).forEach(B=>{let V=d(B,a.maxSize);V?(m=V,l.value=URL.createObjectURL(V)):console.log(B==null?void 0:B.error)}),m&&o("update:modelValue",m),o("onSelectFiles",p)}catch(m){console.log(m.message)}},f=()=>{l.value&&l.value.startsWith("blob:")&&URL.revokeObjectURL(l.value),l.value=null,i.value&&(i.value.value=""),o("update:modelValue",null),o("onSelectFiles",[])};return(u,p)=>{var m;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.containerClass)},[t.label||e.unref(c).label?(e.openBlock(),e.createElementBlock("label",{key:0,class:"form-label",for:(m=u.attrs)==null?void 0:m.id},[e.renderSlot(u.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)],!0)],8,po)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({ref_key:"afuInput",ref:i,class:"afu-input"},u.$attrs,{type:"file",onChange:v}),null,16),e.createElementVNode("div",{class:e.normalizeClass(["afu-cont",{"default-design":s.value}]),onClick:r},[e.renderSlot(u.$slots,"dial",{},()=>[e.renderSlot(u.$slots,"default",{},()=>[l.value?(e.openBlock(),e.createElementBlock("div",vo,[e.createElementVNode("img",{src:l.value,alt:"Preview"},null,8,ho),e.createElementVNode("span",{class:"img-rm",onClick:e.withModifiers(f,["stop"])},[e.createVNode(e.unref(Oe))])])):(e.openBlock(),e.createElementBlock("div",go,[e.createVNode(e.unref(bl))]))],!0)],!0)],2)],2)}}},bo=he(yo,[["__scopeId","data-v-fee9a156"]]),ko={key:0,class:"row apbd-src-filter"},wo={key:0,class:"col-sm-8 col-lg-9"},Bo={class:"row"},So={class:"col-lg-5"},Co={class:"multiselect-single-label"},Vo={key:0,class:"col-lg-7"},xo={class:"multiselect-single-label"},No={key:2,class:"input-group input-group-sm mb-2 mb-lg-0"},Eo={class:"input-group-text"},$o={class:"range-input-panel"},zo=["placeholder"],Mo=["placeholder"],Do={key:1,class:"col-sm-8 col-lg-9 mb-2 mb-md-0"},To={key:1,class:"d-flex flex-column flex-md-row justify-content-start align-items-start align-items-md-end apbd-src-filter"},Ao={class:"row w-100 g-2"},Io={class:"multiselect-single-label"},Fo={key:2,class:"input-group input-group-sm mb-0"},Lo={class:"input-group-text"},Po={class:"range-input-panel"},jo=["onUpdate:modelValue","placeholder"],Ro=["onUpdate:modelValue","placeholder"],Oo={class:"vtpos-zindex-10 d-flex flex-md-nowrap flex-sm-wrap align-bottom align-items-center ps-md-2 gap-2"},Ho={key:2,class:"d-flex justify-content-between align-items-center flex-wrap apbd-quick-src-filter gap-2"},Yo={class:"d-flex justify-content-start align-items-center flex-wrap gap-2"},Uo=["onClick"],qo={class:"dropdown-item"},Ko={class:"d-flex gap-2 align-items-center"},Wo={key:3,class:"row g-2"},Go={key:0,class:"col-sm-8"},Qo={key:1,class:"col-sm-8 mb-2 mb-md-0"},Xo={__name:"AbFilterPanel",props:{isAdvance:{type:Boolean,default:!1},isQuickAdvance:{type:Boolean,default:!1},isSingle:{type:Boolean,default:!1},isAllowed:{type:Boolean,default:!1},canScan:{type:Boolean,default:!1},filterOptions:{type:Array,default:()=>[]},scanProps:{type:String,default:""},showScanFld:{type:Boolean,default:!1},showDrGroupText:{type:Boolean,default:!0},dateFormat:{type:String,default:"MMM DD,YYYY"},isSearchable:{type:Boolean,default:!1},isMaxDate:{type:Boolean,default:!0},size:{type:String,default:void 0},advanceSearchInputContainerClass:{type:String,default:"col-6"},isQuickAdvanceAutoSearch:{type:Boolean,default:!1}},emits:["searchFilter","reset","ChangeSearchMode"],setup(t,{emit:n}){const o=e.useSlots(),a=t,i=n,l=e.ref(null),c=e.ref("");let s=e.ref(null);const d=e.ref(a.filterOptions||[]);e.watch(()=>a.filterOptions,z=>{d.value=z||[]},{deep:!0,immediate:!0});const r=e.ref(null),v=e.ref(null),f=e.ref(null),u=e.computed(()=>a.size!==void 0&&a.size!==null?a.size:W.size??"xs"),p=e.computed(()=>l.value!=null&&l.value!==""),m=e.computed(()=>{if(!l.value)return!0;const z=l.value;return l.value.type==="tr"?!(z!=null&&z.start||z!=null&&z.end):!z}),B=e.computed(()=>!!(!a.showScanFld&&!l.value||a.showScanFld&&!c.value)),V=e.computed(()=>a.isMaxDate?new Date:null);function h(){if(!l.value)return;const z={...l.value};d.value.forEach(w=>{w.id===z.id&&(w.value="")})}function x(){if(a.showScanFld)D();else{const z=[];if(a.isAdvance||a.isQuickAdvance)d.value.forEach(w=>{w.value&&z.push({propName:w.propName,operators:w.operators,value:w.value})});else if(l.value){const w=l.value;z.push({propName:w.propName,operators:w.operators,value:w.value})}z.length>0&&i("searchFilter",z)}}function D(){const z={propName:a.scanProps,operators:"eq",value:c.value};s.value&&clearTimeout(s.value),s.value=setTimeout(()=>{var w;((w=c.value)==null?void 0:w.length)>0&&i("searchFilter",[z])},1e3)}function M(){a.showScanFld?(c.value&&g(),i("ChangeSearchMode",!1)):(c.value&&g(),i("ChangeSearchMode",!0),e.nextTick(()=>{var z;return(z=f.value)==null?void 0:z.focus()}))}function g(){a.isSingle||a.showScanFld?c.value="":!a.isAdvance&&!a.isQuickAdvance?l.value&&(l.value=null):(d.value.forEach(z=>{z.value="",z.type==="dd"&&(z.label=null,z.options&&z.options.forEach(w=>w.isSelected=!1))}),e.triggerRef(d)),i("reset")}function L(){l.value&&(d.value.forEach(z=>{z.id===l.value.id&&(z.value="")}),e.triggerRef(d)),l.value=null,i("reset")}function E(){if(!l.value)return;const z=l.value.type;e.nextTick(()=>{var w,R;z==="t"&&((w=r.value)==null||w.focus()),z==="tr"&&((R=v.value)==null||R.focus())})}function b(){var z;((z=c.value)==null?void 0:z.length)>0&&i("searchFilter",[{propName:"*",operators:"like",value:c.value}])}function I(){c.value||g()}function A(z){z.key==="Enter"&&b()}function K(z,w){w.target.blur()}function P(z,w){const R=d.value.findIndex(F=>F.propName===z);if(R!==-1){const F=d.value[R],O=F.optionValueProp||"val",y=F.optionLabel||"label",te={...F};te.value=typeof w=="object"?w[O]??w:w,te.label=typeof w=="object"?w[y]??te.value:te.value,te.options&&(te.options=te.options.map(Y=>({...Y,isSelected:Y===w||typeof w=="object"&&Y[O]===(typeof w=="object"?w[O]:w)}))),d.value[R]=te,e.triggerRef(d),a.isQuickAdvanceAutoSearch&&x()}}function C(z){z.value&&(d.value.forEach(w=>{w.propName!==z.propName&&(z.type==="d"&&w.type==="dr"||z.type==="dr"&&w.type==="d")&&(w.value="")}),e.triggerRef(d),a.isQuickAdvance&&a.isQuickAdvanceAutoSearch&&x())}function N(z,w){if(w&&w.stopPropagation(),!z)return;const R=d.value.findIndex(O=>O.propName===z.propName&&O.type===z.type);if(R===-1)return;const F=d.value[R];F.value=Array.isArray(F.value)?[]:"",F.label=null,F.options&&F.options.forEach(O=>O.isSelected=!1),e.triggerRef(d),a.isQuickAdvance&&a.isQuickAdvanceAutoSearch&&x()}return(z,w)=>{var F,O;const R=e.resolveDirective("translate");return e.openBlock(),e.createElementBlock(e.Fragment,null,[!t.isSingle&&!t.isAdvance&&!t.isQuickAdvance?(e.openBlock(),e.createElementBlock("div",ko,[t.showScanFld?(e.openBlock(),e.createElementBlock("div",Do,[e.createVNode(Ce,{containerClass:"mb-0",name:"singlescan",type:"text",ref_key:"singleScanBox",ref:f,isLeftIconBorder:!0,placeholder:"Scan",onInput:D,modelValue:c.value,"onUpdate:modelValue":w[7]||(w[7]=y=>c.value=y),class:"form-control",size:u.value},null,8,["modelValue","size"])])):(e.openBlock(),e.createElementBlock("div",wo,[e.createElementVNode("div",Bo,[e.createElementVNode("div",So,[e.createVNode($e,{name:"property",size:u.value,isLeftIconBorder:!0,modelValue:l.value,"onUpdate:modelValue":w[0]||(w[0]=y=>l.value=y),options:d.value,labelKey:"name",valueKey:"id",searchable:t.isSearchable,placeholder:e.unref(k)("Choose property"),containerClass:"mb-0",onClear:L,onChange:h,onSelect:E,object:!0},{prefix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)("Property")),1)]),singlelabel:e.withCtx(({value:y})=>[e.createElementVNode("div",Co,e.toDisplayString(e.unref(k)(y.name)),1)]),option:e.withCtx(({option:y})=>[e.createTextVNode(e.toDisplayString(e.unref(k)(y.name)),1)]),_:1},8,["size","modelValue","options","searchable","placeholder"])]),p.value&&l.value?(e.openBlock(),e.createElementBlock("div",Vo,[l.value.type==="dd"?(e.openBlock(),e.createBlock($e,{key:0,name:"propertyValue",size:u.value,modelValue:l.value.value,"onUpdate:modelValue":w[1]||(w[1]=y=>l.value.value=y),mode:l.value.isMultiple?"tags":"single",multiple:l.value.isMultiple,labelKey:l.value.optionLabel,isLeftIconBorder:!0,valueKey:l.value.optionValueProp,searchable:t.isSearchable,placeholder:l.value.placeholder||"Choose option",options:l.value.options},{prefix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(l.value.name)),1)]),singlelabel:e.withCtx(({value:y})=>[e.createElementVNode("div",xo,e.toDisplayString(e.unref(k)(y[l.value.optionLabel])),1)]),option:e.withCtx(({option:y})=>[e.createTextVNode(e.toDisplayString(e.unref(k)(y[l.value.optionLabel])),1)]),_:1},8,["size","modelValue","mode","multiple","labelKey","valueKey","searchable","placeholder","options"])):e.createCommentVNode("",!0),l.value.type==="t"?(e.openBlock(),e.createBlock(Ce,{key:1,name:"propertyValue",class:"form-control",size:u.value,containerClass:"mb-0",modelValue:l.value.value,"onUpdate:modelValue":w[2]||(w[2]=y=>l.value.value=y),isLeftIconBorder:!0,placeholder:l.value.placeholder||"Enter value"},{prefix:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(k)(l.value.name)),1)]),_:1},8,["size","modelValue","placeholder"])):e.createCommentVNode("",!0),l.value.type==="tr"?(e.openBlock(),e.createElementBlock("div",No,[e.createElementVNode("div",Eo,e.toDisplayString(e.unref(k)(l.value.name)),1),e.createElementVNode("div",$o,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":w[3]||(w[3]=y=>l.value.value.start=y),class:e.normalizeClass(["form-control","form-control-"+u.value]),type:"text",ref_key:"inputRangeBox",ref:v,placeholder:((F=l.value.placeholder)==null?void 0:F.start)||"Min"},null,10,zo),[[e.vModelText,l.value.value.start]]),w[13]||(w[13]=e.createElementVNode("svg",{class:"w-4 h-4 mx-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})],-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":w[4]||(w[4]=y=>l.value.value.end=y),class:"form-control form-control-sm",type:"text",placeholder:((O=l.value.placeholder)==null?void 0:O.end)||"Max"},null,8,Mo),[[e.vModelText,l.value.value.end]])])])):e.createCommentVNode("",!0),l.value.type==="d"?(e.openBlock(),e.createBlock(xe,{key:3,name:"propertyValue",modelValue:l.value.value,"onUpdate:modelValue":w[5]||(w[5]=y=>l.value.value=y),"max-date":V.value,attributes:[{key:"today",dot:!0,dates:new Date}],"model-config":{type:"string",mask:t.dateFormat},isLeftIconBorder:!0,masks:{input:t.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:K,size:u.value},e.createSlots({_:2},[l.value.name?{name:"prefix",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(k)(l.value.name)),1)]),key:"0"}:void 0,e.unref(o).postfix||l.value.postfix?{name:"postfix",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(k)(l.value.postfix)),1)]),key:"1"}:void 0,e.unref(o).icon||l.value.icon?{name:"icon",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value.icon)))]),key:"2"}:void 0,e.unref(o).hints||l.value.hints?{name:"hints",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(k)(l.value.hints)),1)]),key:"3"}:void 0]),1032,["modelValue","max-date","attributes","model-config","masks","size"])):e.createCommentVNode("",!0),l.value.type==="dr"?(e.openBlock(),e.createBlock(xe,{key:4,name:"propertyValue",modelValue:l.value.value,"onUpdate:modelValue":w[6]||(w[6]=y=>l.value.value=y),"max-date":V.value,attributes:[{key:"today",dot:!0,dates:new Date}],"model-config":{type:"string",mask:t.dateFormat},isLeftIconBorder:!0,masks:{input:t.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:K,size:u.value,"is-range":!0},e.createSlots({_:2},[l.value.name?{name:"prefix",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(k)(l.value.name)),1)]),key:"0"}:void 0,e.unref(o).postfix||l.value.postfix?{name:"postfix",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(k)(l.value.postfix)),1)]),key:"1"}:void 0,e.unref(o).icon||l.value.icon?{name:"icon",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value.icon)))]),key:"2"}:void 0,e.unref(o).hints||l.value.hints?{name:"hints",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(k)(l.value.hints)),1)]),key:"3"}:void 0]),1032,["modelValue","max-date","attributes","model-config","masks","size"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])),e.createElementVNode("div",{class:e.normalizeClass(["col-6 col-sm-4 col-lg-3 vtpos-zindex-10",t.canScan?"col-12":"col-6"])},[e.withDirectives((e.openBlock(),e.createBlock(le,{type:"button",class:"btn-primary mb-2 me-2 mb-lg-0",size:u.value,onClick:x,disabled:m.value},{default:e.withCtx(()=>[...w[14]||(w[14]=[e.createTextVNode(" Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),e.withDirectives((e.openBlock(),e.createBlock(le,{type:"button",class:"btn-secondary mb-2 me-2 mb-lg-0",size:u.value,onClick:g,disabled:B.value},{default:e.withCtx(()=>[...w[15]||(w[15]=[e.createTextVNode(" Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]]),t.canScan?(e.openBlock(),e.createBlock(le,{key:0,type:"button",class:"btn-primary mb-2 mb-sm-0",size:u.value,onClick:M},{default:e.withCtx(()=>[e.createVNode(e.unref(ut))]),_:1},8,["size"])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0),!t.isSingle&&!t.isQuickAdvance&&t.isAdvance?(e.openBlock(),e.createElementBlock("div",To,[e.createElementVNode("div",Ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(y,te)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.advanceSearchInputContainerClass),key:te},[y.type==="dd"?(e.openBlock(),e.createBlock($e,{key:0,"container-class":"mb-0",name:y.name,size:u.value,modelValue:y.value,"onUpdate:modelValue":Y=>y.value=Y,mode:y.isMultiple?"tags":"single",multiple:y.isMultiple,labelKey:y.optionLabel,valueKey:y.optionValueProp,isLeftIconBorder:!0,searchable:t.isSearchable,placeholder:y.placeholder||"Choose option",options:y.options},{prefix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(y.name)),1)]),singlelabel:e.withCtx(({value:Y})=>[e.createElementVNode("div",Io,e.toDisplayString(e.unref(k)(Y[y.optionLabel])),1)]),option:e.withCtx(({option:Y})=>[e.createTextVNode(e.toDisplayString(e.unref(k)(Y[y.optionLabel])),1)]),_:2},1032,["name","size","modelValue","onUpdate:modelValue","mode","multiple","labelKey","valueKey","searchable","placeholder","options"])):e.createCommentVNode("",!0),y.type==="t"?(e.openBlock(),e.createBlock(Ce,{key:1,"container-class":"mb-0",name:y.name,size:u.value,modelValue:y.value,"onUpdate:modelValue":Y=>y.value=Y,placeholder:y.placeholder||"Enter value",isLeftIconBorder:!0},{prefix:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(k)(y.name)),1)]),_:2},1032,["name","size","modelValue","onUpdate:modelValue","placeholder"])):e.createCommentVNode("",!0),y.type=="tr"?(e.openBlock(),e.createElementBlock("div",Fo,[e.createElementVNode("div",Lo,e.toDisplayString(e.unref(k)(y.name)),1),e.createElementVNode("div",Po,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":Y=>y.value.start=Y,class:e.normalizeClass(["form-control","form-control-"+u.value]),type:"text",ref_for:!0,ref:"input_range_box",placeholder:y.placeholder?y.placeholder.start:"Min"},null,10,jo),[[e.vModelText,y.value.start]]),w[16]||(w[16]=e.createElementVNode("svg",{class:"w-4 h-4 mx-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})],-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":Y=>y.value.end=Y,class:"form-control form-control-sm",type:"text",placeholder:y.placeholder?y.placeholder.end:"Max"},null,8,Ro),[[e.vModelText,y.value.end]])])])):e.createCommentVNode("",!0),y.type==="d"?(e.openBlock(),e.createBlock(xe,{key:3,"container-class":"mb-0",name:y.name,modelValue:y.value,"onUpdate:modelValue":[Y=>y.value=Y,Y=>C(y)],"max-date":V.value,attributes:[{key:"today",dot:!0,dates:new Date}],isLeftIconBorder:!0,"model-config":{type:"string",mask:t.dateFormat},masks:{input:t.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:K,size:u.value},{prefix:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(k)(y.name)),1)]),_:2},1032,["name","modelValue","onUpdate:modelValue","max-date","attributes","model-config","masks","size"])):e.createCommentVNode("",!0),y.type==="dr"?(e.openBlock(),e.createBlock(xe,{key:4,"container-class":"mb-0",name:y.name,modelValue:y.value,"onUpdate:modelValue":[Y=>y.value=Y,Y=>C(y)],"max-date":V.value,attributes:[{key:"today",dot:!0,dates:new Date}],isLeftIconBorder:!0,"model-config":{type:"string",mask:t.dateFormat},masks:{input:t.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:K,size:u.value,"is-range":!0},{prefix:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(k)(y.name)),1)]),_:2},1032,["name","modelValue","onUpdate:modelValue","max-date","attributes","model-config","masks","size"])):e.createCommentVNode("",!0)],2))),128))]),e.createElementVNode("div",Oo,[e.withDirectives((e.openBlock(),e.createBlock(le,{type:"button",class:"btn btn-primary",size:u.value,disabled:z.getStatus,onClick:x},{default:e.withCtx(()=>[...w[17]||(w[17]=[e.createTextVNode("Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),e.withDirectives((e.openBlock(),e.createBlock(le,{type:"button",class:"btn btn-warning",size:u.value,disabled:z.getStatus,onClick:g},{default:e.withCtx(()=>[...w[18]||(w[18]=[e.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]])])])):e.createCommentVNode("",!0),!t.isSingle&&!t.isAdvance&&t.isQuickAdvance?(e.openBlock(),e.createElementBlock("div",Ho,[e.createElementVNode("div",Yo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(y,te)=>(e.openBlock(),e.createElementBlock("div",{key:`${y.propName}-${te}`},[y.type==="t"?(e.openBlock(),e.createBlock(Ce,{key:0,"container-class":"mb-0",name:y.name,size:u.value,type:y.inputType?y.inputType:"text",modelValue:y.value,"onUpdate:modelValue":Y=>y.value=Y,placeholder:y.placeholder?y.placeholder+(t.isQuickAdvanceAutoSearch?" (press enter)":""):"Enter value "+(t.isQuickAdvanceAutoSearch?" (press enter)":""),onKeyup:w[8]||(w[8]=e.withKeys(Y=>t.isQuickAdvanceAutoSearch?x():null,["enter"]))},null,8,["name","size","type","modelValue","onUpdate:modelValue","placeholder"])):e.createCommentVNode("",!0),y.type==="dd"?(e.openBlock(),e.createBlock(Me,{key:1,placement:"bottom",class:"p-0"},{content:e.withCtx(()=>[e.createVNode(e.unref(ie.Field),{name:y.name},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("ul",{class:"list-group mb-0",key:y.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,(Y,pe)=>(e.openBlock(),e.createElementBlock("li",{onClick:ae=>Y.isSelected?N(y):P(y.propName,Y),key:pe,class:"list-group-item border-0 d-flex justify-content-between align-items-center"},[e.createElementVNode("span",qo,e.toDisplayString(e.unref(k)(typeof Y=="object"?Y[y.optionLabel||"label"]:Y)),1),Y.isSelected?(e.openBlock(),e.createBlock(e.unref(Je),{key:0})):e.createCommentVNode("",!0)],8,Uo))),128))]))]),_:2},1032,["name"])]),default:e.withCtx(()=>[e.createVNode(le,{class:"btn-outline-secondary",size:u.value},{default:e.withCtx(()=>[y.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.icon),{key:0,class:e.normalizeClass({"placeholder-text":!y.value||Array.isArray(y.value)&&!y.value.length})},null,8,["class"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass({"placeholder-text":!y.value||Array.isArray(y.value)&&!y.value.length})},e.toDisplayString(e.unref(k)(y.label||y.name)),3),y.value||Array.isArray(y.value)&&y.value.length?(e.openBlock(),e.createBlock(e.unref(Oe),{key:1,onClick:e.withModifiers(Y=>N(y,Y),["stop"])},null,8,["onClick"])):e.createCommentVNode("",!0)]),_:2},1032,["size"])]),_:2},1024)):e.createCommentVNode("",!0),y.type==="d"?(e.openBlock(),e.createBlock(xe,{key:2,"container-class":"mb-0",name:y.name,modelValue:y.value,"onUpdate:modelValue":[Y=>y.value=Y,Y=>C(y)],showInInput:!1,size:u.value},{resetIcon:e.withCtx(()=>[e.createVNode(e.unref(Oe),{onClick:e.withModifiers(Y=>N(y,Y),["stop"])},null,8,["onClick"])]),_:2},1032,["name","modelValue","onUpdate:modelValue","size"])):e.createCommentVNode("",!0),y.type==="dr"?(e.openBlock(),e.createBlock(xe,{key:3,"container-class":"mb-0",name:y.name,modelValue:y.value,"onUpdate:modelValue":[Y=>y.value=Y,Y=>C(y)],showInInput:!1,size:u.value,"is-range":!0},{resetIcon:e.withCtx(()=>[e.createVNode(e.unref(Oe),{onClick:e.withModifiers(Y=>N(y,Y),["stop"])},null,8,["onClick"])]),_:2},1032,["name","modelValue","onUpdate:modelValue","size"])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",Ko,[e.withDirectives((e.openBlock(),e.createBlock(le,{type:"button",class:"btn btn-primary",size:u.value,disabled:z.getStatus,onClick:x},{default:e.withCtx(()=>[...w[19]||(w[19]=[e.createTextVNode(" Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),e.withDirectives((e.openBlock(),e.createBlock(le,{type:"button",class:"btn btn-warning",size:u.value,disabled:z.getStatus,onClick:g},{default:e.withCtx(()=>[...w[20]||(w[20]=[e.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]])])])):e.createCommentVNode("",!0),t.isSingle?(e.openBlock(),e.createElementBlock("div",Wo,[t.showScanFld?(e.openBlock(),e.createElementBlock("div",Qo,[e.createVNode(Ce,{name:"singlescan",containerClass:"mb-0",type:"text",ref:"single_scan_box",placeholder:e.unref(k)("Scan"),onInput:w[11]||(w[11]=y=>D()),modelValue:c.value,"onUpdate:modelValue":w[12]||(w[12]=y=>c.value=y),class:"form-control",size:u.value},null,8,["placeholder","modelValue","size"])])):(e.openBlock(),e.createElementBlock("div",Go,[e.createVNode(Ce,{name:"singlescan",containerClass:"mb-0",type:"text",ref:"single_text_box",placeholder:e.unref(k)("Search"),onInput:I,onKeyup:w[9]||(w[9]=y=>A(y)),modelValue:c.value,"onUpdate:modelValue":w[10]||(w[10]=y=>c.value=y),class:"form-control",size:u.value},null,8,["placeholder","modelValue","size"])])),e.createElementVNode("div",{class:e.normalizeClass(["vtpos-zindex-10 col-sm-4",t.canScan?"col-12":"col-6"])},[e.withDirectives((e.openBlock(),e.createBlock(le,{type:"button",class:"btn-primary mb-2 me-2 mb-sm-0",size:u.value,onClick:b,disabled:c.value.length<=0},{default:e.withCtx(()=>[...w[21]||(w[21]=[e.createTextVNode("Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),e.withDirectives((e.openBlock(),e.createBlock(le,{type:"button",class:"btn-warning mb-2 me-2 mb-sm-0",size:u.value,onClick:g,disabled:c.value.length<=0},{default:e.withCtx(()=>[...w[22]||(w[22]=[e.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]]),t.canScan?(e.openBlock(),e.createBlock(le,{key:0,type:"button",class:"btn-primary btn-icon mb-2 me-2 mb-sm-0",size:u.value,onClick:M},{default:e.withCtx(()=>[e.createVNode(e.unref(ut))]),_:1},8,["size"])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)],64)}}},Jo=he(Xo,[["__scopeId","data-v-672bff51"]]),Zo=["id","type","name","value"],_o=["for"],er={key:2,class:"apbd-imgr-container"},tr=["src"],lr={__name:"AbImageRadioInput",props:e.mergeModels({width:{default:"auto"},height:{default:"auto"},maxWidth:{default:"inherit"},maxImgWidth:{default:"50%"},borderRadius:{default:"5px"},margin:{default:"0 15px 15px 0"},padding:{default:"10px"},selectorTop:{default:"5px"},selectorLeft:{default:"5px"},selectorColor:{default:""},iconSize:{default:"inherit"},options:{type:Array,default:()=>[]},isInline:{type:Boolean,default:!1},optionClass:{default:""},labelBorder:{default:"1px solid transparent"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),o=e.useAttrs();e.useSlots();const a=t,i=e.computed(()=>(o==null?void 0:o.name)||"fld"),l=e.computed(()=>({"--apbd-imgr-in-label-w":a.width,"--apbd-imgr-in-label-mw":a.maxWidth,"--apbd-imgr-in-label-h":a.height,"--apbd-imgr-in-label-p":a.padding,"--apbd-imgr-in-border-radius":a.borderRadius,"--apbd-imgr-in-max-img-w":a.maxImgWidth,"--apbd-imgr-in-margin":a.margin,"--apbd-imgr-icon-size":a.iconSize,"--apbd-imgr-icon-s-top":a.selectorTop,"--apbd-imgr-icon-s-left":a.selectorLeft,"--apbd-imgr-label-border":a.labelBorder})),c=e.computed(()=>a.selectorColor?{"--apbd-selector-color":a.selectorColor}:{});return(s,d)=>{var v;const r=e.resolveComponent("translate");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apbd-img-input-ctrn",(v=e.unref(o))==null?void 0:v.class]),style:e.normalizeStyle(l.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(f,u)=>{var p;return e.openBlock(),e.createElementBlock("div",{key:u},[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:i.value+u,type:((p=e.unref(o))==null?void 0:p.type)||"radio",name:i.value,"onUpdate:modelValue":d[0]||(d[0]=m=>n.value=m)},{ref_for:!0},e.unref(o),{value:f.val}),null,16,Zo),[[e.vModelDynamic,n.value]]),e.createElementVNode("label",{for:i.value+u,style:e.normalizeStyle(c.value),class:e.normalizeClass([t.isInline?"apbd-imgr-inline":"",t.optionClass,(f==null?void 0:f.class)||""])},[d[1]||(d[1]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"ai ai-CircleCheckFill"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zm4.768 9.14a1 1 0 1 0-1.536-1.28l-4.3 5.159-2.225-2.226a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.475-.067l5-6z"})],-1)),e.renderSlot(s.$slots,"icon_image",{option:f},()=>[f!=null&&f.iconComponent?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["apbd-imgr-input-icon",(f==null?void 0:f.icon_ctnr_class)||""])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.iconComponent)))],2)):e.createCommentVNode("",!0),f!=null&&f.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["apbd-imgr-input-icon",(f==null?void 0:f.icon_ctnr_class)||""])},[e.createElementVNode("i",{class:e.normalizeClass(f.icon)},null,2)],2)):e.createCommentVNode("",!0),!(f!=null&&f.iconComponent)&&!f.icon&&(f!=null&&f.img_src)?(e.openBlock(),e.createElementBlock("div",er,[e.createElementVNode("img",{class:"img-fluid",src:f.img_src},null,8,tr)])):e.createCommentVNode("",!0)]),e.renderSlot(s.$slots,"label",{option:f},()=>[e.renderSlot(s.$slots,"label-"+f.val,{option:f},()=>[f!=null&&f.label?(e.openBlock(),e.createBlock(r,{key:0,class:"apbd-imgr-option-label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(f.label)),1)]),_:2},1024)):e.createCommentVNode("",!0)])])],14,_o)])}),128))],6)}}},nr={class:"apbd-table-responsive"},ar=["data-label"],or={key:0},rr=["colspan"],sr={__name:"AbTable",props:{items:{type:Array,default:()=>[]},fields:{type:Array,default:()=>[]},tableClass:{type:[String,Array,Object],default:""}},setup(t){const n=t,o=e.computed(()=>n.fields.map(a=>typeof a=="string"?{key:a,label:a.charAt(0).toUpperCase()+a.slice(1)}:a));return(a,i)=>(e.openBlock(),e.createElementBlock("div",nr,[e.createElementVNode("table",{class:e.normalizeClass(["table apbd-table",t.tableClass])},[e.createElementVNode("thead",null,[e.renderSlot(a.$slots,"thead",{},()=>[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,l=>(e.openBlock(),e.createElementBlock("th",{key:l.key},[e.renderSlot(a.$slots,`head(${l.key})`,{field:l},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(l.label)),1)])]))),128))])])]),e.createElementVNode("tbody",null,[e.renderSlot(a.$slots,"tbody",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,c)=>(e.openBlock(),e.createElementBlock("tr",{key:c},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,s=>(e.openBlock(),e.createElementBlock("td",{key:s.key,"data-label":s.label},[e.renderSlot(a.$slots,`cell(${s.key})`,{value:l[s.key],item:l,index:c},()=>[e.createTextVNode(e.toDisplayString(l[s.key]),1)])],8,ar))),128))]))),128)),!t.items||t.items.length===0?(e.openBlock(),e.createElementBlock("tr",or,[e.createElementVNode("td",{colspan:o.value.length,class:"text-center"},[e.renderSlot(a.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)("No data available")),1)])],8,rr)])):e.createCommentVNode("",!0)])])],2)]))}},ir={class:"apbd-skeleton"},cr={__name:"AbSkeleton",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",ir))}},ur={class:"apbd-kbd"},dr=Object.assign({name:"AbKbd"},{__name:"AbKbd",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("kbd",ur,[e.renderSlot(n.$slots,"default")]))}}),mr={class:"apbd-kbd-group"},fr=Object.assign({name:"AbKbdGroup"},{__name:"AbKbdGroup",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",mr,[e.renderSlot(n.$slots,"default")]))}}),pr={class:"apbd-carousel-nav-wrapper nav-prev"},vr={class:"apbd-carousel-nav-wrapper nav-next"},hr=Object.assign({name:"AbCarousel"},{__name:"AbCarousel",props:{scrollAmount:{type:Number,default:200},orientation:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},edgeFade:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:3e3},navOutside:{type:Boolean,default:!1},navOnHover:{type:Boolean,default:!1}},setup(t){const n=e.ref(null),o=e.ref(!1),a=e.ref(!1),i=t,l=e.computed(()=>i.orientation==="vertical"),c=e.ref(!1),s=e.ref(!1);let d=0,r=0;function v(){if(n.value)if(l.value){const{scrollTop:b,scrollHeight:I,clientHeight:A}=n.value;o.value=b>0,a.value=Math.ceil(b+A)<I}else{const{scrollLeft:b,scrollWidth:I,clientWidth:A}=n.value;o.value=b>0,a.value=Math.ceil(b+A)<I}}function f(b){if(!n.value)return;let I=i.scrollAmount;if(n.value.children.length>0){const K=n.value.children[0],P=getComputedStyle(n.value),C=parseFloat(P.gap),N=isNaN(C)?8:C;I=l.value?K.offsetHeight+N:K.offsetWidth+N}const A={behavior:"smooth"};l.value?A.top=b*I:A.left=b*I,n.value.scrollBy(A)}function u(b){c.value=!0,s.value=!1,l.value?(d=b.pageY-n.value.offsetTop,r=n.value.scrollTop):(d=b.pageX-n.value.offsetLeft,r=n.value.scrollLeft)}function p(){c.value=!1,setTimeout(()=>{s.value=!1},50)}function m(b){if(!c.value||!n.value)return;const A=((l.value?b.pageY-n.value.offsetTop:b.pageX-n.value.offsetLeft)-d)*1.5;Math.abs(A)>5&&(s.value=!0,b.preventDefault()),l.value?n.value.scrollTop=r-A:n.value.scrollLeft=r-A}function B(b){if(n.value&&!l.value&&b.deltaX===0&&b.deltaY!==0){const I=b.deltaY<0,A=b.deltaY>0;(I&&o.value||A&&a.value)&&(b.preventDefault(),n.value.scrollBy({left:b.deltaY,behavior:"auto"}))}}let V=null;const h=e.ref(!1);function x(){i.autoplay&&(D(),V=setInterval(()=>{h.value||c.value||(a.value?f(1):n.value&&(l.value?n.value.scrollTo({top:0,behavior:"smooth"}):n.value.scrollTo({left:0,behavior:"smooth"})))},i.autoplayInterval))}function D(){V&&(clearInterval(V),V=null)}function M(){h.value=!0}function g(){h.value=!1,p()}const L=e.computed(()=>i.edgeFade?{"has-fade":!0,"can-scroll-start":o.value,"can-scroll-end":a.value}:{});let E;return e.onMounted(()=>{e.nextTick(()=>{v()}),window.addEventListener("resize",v),n.value&&window.ResizeObserver&&(E=new ResizeObserver(()=>v()),E.observe(n.value),n.value.addEventListener("wheel",B,{passive:!1})),x()}),e.watch(()=>i.autoplay,b=>{b?x():D()}),e.onUnmounted(()=>{window.removeEventListener("resize",v),D(),n.value&&n.value.removeEventListener("wheel",B),E&&n.value&&E.disconnect()}),(b,I)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["apbd-carousel-wrapper",[l.value?"apbd-carousel-vertical":"",i.navOutside?"apbd-carousel-nav-outside":"",i.navOnHover?"apbd-carousel-nav-on-hover":"",L.value]]},b.$attrs,{onMouseenter:M,onMouseleave:g}),[e.withDirectives(e.createElementVNode("div",pr,[e.renderSlot(b.$slots,"prev",{scroll:()=>f(-1)},()=>[e.createElementVNode("button",{class:"apbd-carousel-nav",onClick:I[0]||(I[0]=A=>f(-1))},[e.renderSlot(b.$slots,"prev-icon",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value?e.unref(pl):e.unref(vt)),{size:18}))])])])],512),[[e.vShow,o.value]]),e.createElementVNode("div",{class:e.normalizeClass(["apbd-carousel-container",{"is-moving":s.value,"is-dragging":c.value}]),ref_key:"scrollContainer",ref:n,onScroll:v,onMousedown:u,onMouseup:p,onMousemove:m},[e.renderSlot(b.$slots,"default")],34),e.withDirectives(e.createElementVNode("div",vr,[e.renderSlot(b.$slots,"next",{scroll:()=>f(1)},()=>[e.createElementVNode("button",{class:"apbd-carousel-nav",onClick:I[1]||(I[1]=A=>f(1))},[e.renderSlot(b.$slots,"next-icon",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value?e.unref(Ze):e.unref(ht)),{size:18}))])])])],512),[[e.vShow,a.value]])],16))}}),gr={class:"apbd-tooltip-inner"},yr={__name:"AbTooltip",props:{content:{type:String,default:""},placement:{type:String,default:"top"},offset:{type:[Number,String],default:8},disabled:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},interactive:{type:Boolean,default:!1}},setup(t){const n=t,o=e.ref(!1),a=e.ref(null),i=e.ref(null),l=e.ref(null),c=e.computed(()=>n.placement.startsWith("auto")),s=e.computed(()=>n.placement.split("-")[1]||void 0),{floatingStyles:d,middlewareData:r,placement:v,update:f}=kt(a,i,{placement:e.computed(()=>c.value?void 0:n.placement),offset:e.computed(()=>Number(n.offset)),arrowElement:l,arrowPadding:4,flip:!0,autoPlacement:c,alignment:s,whileElementsMounted:!0});e.watch(o,x=>{x&&e.nextTick(()=>f())});let u=null;const p=()=>{n.disabled||(u&&clearTimeout(u),o.value=!0)},m=()=>{u&&clearTimeout(u),u=setTimeout(()=>{o.value=!1},100)},B=()=>{n.interactive&&u&&clearTimeout(u)},V=()=>{n.interactive&&m()};e.onUnmounted(()=>{u&&clearTimeout(u)});const h=e.computed(()=>{if(!r.value.arrow)return{};const{x,y:D}=r.value.arrow,M=v.value||"top",g={top:"bottom",right:"left",bottom:"top",left:"right"}[M.split("-")[0]];return{left:x!=null?`${x}px`:"",top:D!=null?`${D}px`:"",right:"",bottom:"",[g]:"-4px"}});return(x,D)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"apbd-tooltip-trigger",ref_key:"reference",ref:a,onMouseenter:p,onMouseleave:m,onFocus:p,onBlur:m},[e.renderSlot(x.$slots,"default")],544),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"apbd-tooltip-fade"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"floating",ref:i,style:e.normalizeStyle(e.unref(d)),class:"apbd-tooltip-content",role:"tooltip",onMouseenter:B,onMouseleave:V},[e.createElementVNode("div",gr,[e.renderSlot(x.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.content)),1)])]),t.arrow?(e.openBlock(),e.createElementBlock("div",{key:0,class:"apbd-tooltip-arrow",ref_key:"floatingArrow",ref:l,style:e.normalizeStyle(h.value)},null,4)):e.createCommentVNode("",!0)],36)):e.createCommentVNode("",!0)]),_:3})]))],64))}},br={key:0,class:"d-flex justify-content-between align-items-center w-100 pe-3"},kr={class:"modal-title fw-bold mb-0"},wr={key:0,class:"text-muted small"},Br={key:0,width:"48",height:"48",viewBox:"0 0 48 48"},Sr=["stroke-dashoffset"],Cr={x:"24",y:"27","text-anchor":"middle","font-size":"10","font-weight":"600",fill:"currentColor"},Vr={key:1,class:"ab-wizard-modal-header__row w-100 align-items-start gap-3"},xr={class:"ab-wizard-modal-header__main flex-grow-1"},Nr={class:"position-absolute bg-muted start-0 end-0",style:{height:"2px",top:"var(--ab-wizard-track-top)","z-index":"0",margin:"0 var(--ab-wizard-track-margin)"}},Er={key:0,class:"ab-wizard-desc text-muted transition-all"},$r={key:0,class:"ab-wizard-modal-header__close flex-shrink-0"},zr={class:"modal-body p-4 position-relative"},Mr={class:"ab-wizard-body-inner"},Dr={key:0,class:"apbd-wizard-loading-overlay d-flex align-items-center justify-content-center flex-column"},Tr={class:"fw-bold text-primary"},Ar={class:"modal-footer d-flex justify-content-between"},Ir={key:1},Fr={class:"d-flex align-items-center gap-2"},Lr={class:"spinner-border spinner-border-sm text-primary",role:"status"},Pr={class:"visually-hidden"},jr={class:"position-absolute bg-muted start-0 end-0",style:{height:"2px",top:"var(--ab-wizard-track-top)","z-index":"0",margin:"0 var(--ab-wizard-track-margin)"}},Rr={key:0,class:"ab-wizard-desc text-muted transition-all"},Or={key:1,class:"ab-wizard-mobile-header d-flex justify-content-between align-items-center w-100 mb-4 pb-3 border-bottom"},Hr={class:"d-flex flex-column pr-3",style:{"max-width":"75%"}},Yr={class:"mb-1 fw-bold text-dark"},Ur={key:0,class:"text-muted small"},qr={class:"mobile-wizard-progress flex-shrink-0"},Kr={width:"48",height:"48",viewBox:"0 0 48 48"},Wr=["stroke-dashoffset"],Gr={x:"24",y:"27","text-anchor":"middle","font-size":"10","font-weight":"600",fill:"currentColor"},Qr={class:"ab-wizard-content-wrapper flex-grow-1 d-flex flex-column h-100"},Xr={class:"ab-wizard-body-inner"},Jr={key:0,class:"apbd-wizard-loading-overlay d-flex align-items-center justify-content-center flex-column"},Zr={class:"fw-bold text-primary"},_r={key:0,class:"ab-wizard-controls mt-4 d-flex justify-content-between align-items-center mt-auto pt-4"},es={class:"d-flex align-items-center gap-2"},ts={class:"spinner-border spinner-border-sm text-primary mx-2",role:"status"},ls={class:"visually-hidden"},ns={__name:"AbWizard",props:{beforeNext:{type:Function,default:async()=>!0},beforePrev:{type:Function,default:async()=>!0},beforeFinish:{type:Function,default:async()=>!0},orientation:{type:String,default:"horizontal"},variant:{type:String,default:"default"},stepperSize:{type:String,default:"md"},hideControls:{type:Boolean,default:!1},nextText:{type:String,default:"Next"},prevText:{type:String,default:"Back"},finishText:{type:String,default:"Finish"},disableClose:{type:Boolean,default:!1},modalClass:{type:String,default:"modal-lg"}},emits:["finished","step-changed"],setup(t,{expose:n,emit:o}){const a=t,i=o,l=e.ref([]),c=e.ref(0),s=e.ref(!1),d=e.ref(1024),r=()=>{d.value=window.innerWidth};e.onMounted(()=>{typeof window<"u"&&(d.value=window.innerWidth,window.addEventListener("resize",r))}),e.onUnmounted(()=>{typeof window<"u"&&window.removeEventListener("resize",r)});const v=e.computed(()=>d.value<=768),f=e.computed(()=>a.variant&&a.variant.includes("circular")||v.value),u=e.computed(()=>a.variant&&a.variant.includes("modal")),p=e.computed(()=>a.stepperSize==="sm"?"sm":"md"),m=e.computed(()=>u.value&&!f.value&&p.value==="sm"&&a.orientation==="horizontal"),B=e.computed(()=>`ab-wizard-size-${p.value}`),V=e.computed(()=>p.value==="sm"?{"--ab-wizard-trigger-size":"32px","--ab-wizard-icon-size":"16px","--ab-wizard-track-top":"15px","--ab-wizard-track-margin":"16px","--ab-wizard-label-top":"32px","--ab-wizard-vertical-line-left":"15px","--ab-wizard-vertical-line-top":"32px"}:{"--ab-wizard-trigger-size":"40px","--ab-wizard-icon-size":"20px","--ab-wizard-track-top":"19px","--ab-wizard-track-margin":"20px","--ab-wizard-label-top":"40px","--ab-wizard-vertical-line-left":"19px","--ab-wizard-vertical-line-top":"40px"}),h=e.ref(!1),x=e.ref(null),D=e.computed(()=>{if(x.value!==null)return!x.value;if(a.disableClose)return!1;const F=l.value[c.value];return!(F&&F.disableClose)}),M=F=>{x.value=F},g=(F=!1)=>{(F===!0||D.value)&&(h.value=!1)},L=e.computed(()=>l.value.length===0||!l.value[c.value]?null:l.value[c.value].id),E=F=>{l.value.push(F)},b=F=>{l.value=l.value.filter(O=>O.id!==F),c.value>=l.value.length&&(c.value=Math.max(0,l.value.length-1))},I=(F,O)=>{const y=l.value.findIndex(te=>te.id===F);y!==-1&&(l.value[y]={...l.value[y],...O})},A=e.ref({}),K=(F,O)=>{A.value[F]=O};e.provide("AbWizard",{activeStepId:L,registerStep:E,unregisterStep:b,updateStep:I,registerStepValidator:K});const P=e.computed(()=>c.value===0),C=e.computed(()=>c.value===l.value.length-1),N=async()=>{if(!(s.value||C.value)){s.value=!0;try{let F=!0;L.value&&A.value[L.value]&&(F=await A.value[L.value]()),F!==!1&&(F=await a.beforeNext({currentIndex:c.value,nextIndex:c.value+1,closeModal:g,setDisableClose:M})),F!==!1&&(c.value++,i("step-changed",c.value))}finally{s.value=!1}}},z=async()=>{if(!(s.value||P.value)){s.value=!0;try{await a.beforePrev({currentIndex:c.value,nextIndex:c.value-1,closeModal:g,setDisableClose:M})!==!1&&(c.value--,i("step-changed",c.value))}finally{s.value=!1}}},w=async()=>{if(!s.value){s.value=!0;try{let F=!0;L.value&&A.value[L.value]&&(F=await A.value[L.value]()),F!==!1&&(F=await a.beforeFinish({closeModal:g,setDisableClose:M})),F!==!1&&i("finished")}finally{s.value=!1}}},R=F=>F<c.value?"completed":F===c.value?"active":"inactive";return n({steps:l,currentIndex:c,isFirstStep:e.computed(()=>c.value===0),isLastStep:e.computed(()=>c.value===l.value.length-1),isLoading:s,goToNext:N,goToPrev:z,finish:w,getStepState:R,closeModal:g,setDisableClose:M}),(F,O)=>{var te,Y,pe,ae;const y=e.resolveDirective("translate");return u.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(F.$slots,"modal-button",{open:()=>h.value=!0},()=>[e.createVNode(le,{variant:"primary",onClick:O[0]||(O[0]=G=>h.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.nextText)),1)]),_:1})],!0),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-backdrop fade show",onClick:O[1]||(O[1]=G=>g(!1))})):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"modal fade show d-block",tabindex:"-1",onClick:O[4]||(O[4]=e.withModifiers(G=>g(!1),["self"]))},[e.createElementVNode("div",{class:e.normalizeClass(["modal-dialog modal-dialog-centered",t.modalClass])},[e.createElementVNode("div",{class:e.normalizeClass(["modal-content ab-wizard",[B.value,{"ab-wizard-modal-stepper-compact":m.value,"apbd-wizard-loading":s.value}]]),style:e.normalizeStyle(V.value)},[e.createElementVNode("div",{class:e.normalizeClass(["modal-header position-relative",f.value?"":"ab-wizard-modal-header"])},[f.value?(e.openBlock(),e.createElementBlock("div",br,[e.createElementVNode("div",null,[e.createElementVNode("h5",kr,e.toDisplayString(((te=l.value[c.value])==null?void 0:te.title)||"Step "+(c.value+1)),1),c.value<l.value.length-1?(e.openBlock(),e.createElementBlock("span",wr," Next: "+e.toDisplayString(((Y=l.value[c.value+1])==null?void 0:Y.title)||"Step "+(c.value+2)),1)):e.createCommentVNode("",!0)]),l.value.length?(e.openBlock(),e.createElementBlock("svg",Br,[O[5]||(O[5]=e.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-secondary-bg, #e9ecef)","stroke-width":"4"},null,-1)),e.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-primary, #0d6efd)","stroke-width":"4","stroke-linecap":"round",transform:"rotate(-90 24 24)","stroke-dasharray":"125.66","stroke-dashoffset":125.66-125.66*((c.value+1)/l.value.length),style:{transition:"stroke-dashoffset 0.4s ease"}},null,8,Sr),e.createElementVNode("text",Cr,e.toDisplayString(c.value+1)+" of "+e.toDisplayString(l.value.length),1)])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Vr,[e.createElementVNode("div",xr,[e.createElementVNode("div",{class:e.normalizeClass(["ab-wizard-header w-100 position-relative",[t.orientation==="horizontal"?"ab-wizard-horizontal-header":"ab-wizard-vertical-header"]])},[e.renderSlot(F.$slots,"stepper-header",e.normalizeProps(e.guardReactiveProps({steps:l.value,currentIndex:c.value,getStepState:R,isMobile:v.value})),()=>[e.renderSlot(F.$slots,"header-top",{},void 0,!0),e.createElementVNode("div",{class:e.normalizeClass(["d-flex w-100 position-relative",[m.value?"mt-1":"mt-2",t.orientation==="vertical"?"flex-column":"justify-content-between align-items-start"]])},[e.withDirectives(e.createElementVNode("div",Nr,null,512),[[e.vShow,t.orientation==="horizontal"]]),e.withDirectives(e.createElementVNode("div",{class:"position-absolute bg-primary transition-all start-0",style:e.normalizeStyle([{height:"2px",top:"var(--ab-wizard-track-top)","z-index":"1",margin:"0 var(--ab-wizard-track-margin)"},{width:`calc((100% - var(--ab-wizard-trigger-size)) * ${c.value/Math.max(1,l.value.length-1)})`}])},null,4),[[e.vShow,t.orientation==="horizontal"]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(G,H)=>(e.openBlock(),e.createElementBlock("div",{key:G.id,class:e.normalizeClass(["ab-wizard-step-indicator position-relative d-flex",t.orientation==="vertical"?"w-100 align-items-start gap-3 pb-4":"flex-column"]),style:e.normalizeStyle(t.orientation==="horizontal"?{alignItems:H===0?"flex-start":H===l.value.length-1?"flex-end":"center"}:{})},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["vertical-sep transition-all",R(H)==="completed"?"bg-primary":"bg-muted"])},null,2),[[e.vShow,t.orientation==="vertical"&&H!==l.value.length-1]]),e.createElementVNode("div",{class:e.normalizeClass(["ab-wizard-trigger position-relative z-2 flex-shrink-0 d-flex align-items-center justify-content-center rounded-circle transition-all",[R(H)==="completed"?"bg-primary text-white":"bg-white border",R(H)==="active"?"border-primary ring-active text-primary":"",R(H)==="inactive"?"border-secondary text-secondary":""]]),style:{width:"var(--ab-wizard-trigger-size)",height:"var(--ab-wizard-trigger-size)","min-width":"var(--ab-wizard-trigger-size)","min-height":"var(--ab-wizard-trigger-size)"}},[e.renderSlot(F.$slots,"step-icon",e.mergeProps({ref_for:!0},{step:G,index:H,state:R(H)}),()=>[R(H)==="completed"?(e.openBlock(),e.createBlock(e.unref(Je),{key:0,class:"icon-sm"})):G.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(G.icon),{key:1,class:"icon-sm"})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[R(H)==="active"?(e.openBlock(),e.createBlock(e.unref(rt),{key:0,class:"icon-sm opacity-75"})):(e.openBlock(),e.createBlock(e.unref(st),{key:1,class:"icon-sm"}))],64))],!0)],2),e.createElementVNode("div",{class:e.normalizeClass(["ab-wizard-label d-flex flex-column",[t.orientation==="vertical"?"align-items-start mt-1":`position-absolute ${m.value?"pt-2":"pt-3"}`]]),style:e.normalizeStyle(t.orientation==="horizontal"?{top:"var(--ab-wizard-label-top)",insetInlineStart:H===l.value.length-1?"auto":"0",insetInlineEnd:H===0?"auto":"0",marginInline:H!==0&&H!==l.value.length-1?"auto":"unset",width:"max-content",textAlign:H===0?"start":H===l.value.length-1?"end":"center"}:{})},[e.renderSlot(F.$slots,"step-label",e.mergeProps({ref_for:!0},{step:G,index:H,state:R(H)}),()=>[e.createElementVNode("span",{class:e.normalizeClass(["ab-wizard-title fw-semibold transition-all",R(H)==="active"||R(H)==="completed"?"text-primary":""])},e.toDisplayString(e.unref(k)(G.title)),3),G.description?(e.openBlock(),e.createElementBlock("span",Er,e.toDisplayString(e.unref(k)(G.description)),1)):e.createCommentVNode("",!0)],!0)],6)],6))),128))],2)],!0)],2)]),D.value?(e.openBlock(),e.createElementBlock("div",$r,[e.createElementVNode("button",{type:"button",class:"btn-close",style:{"z-index":"10"},onClick:O[2]||(O[2]=G=>g(!1))})])):e.createCommentVNode("",!0)])),D.value&&f.value?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"btn-close",style:{"z-index":"10"},onClick:O[3]||(O[3]=G=>g(!1))})):e.createCommentVNode("",!0)],2),e.createElementVNode("div",zr,[e.createElementVNode("div",Mr,[e.renderSlot(F.$slots,"default",{},void 0,!0)]),s.value?(e.openBlock(),e.createElementBlock("div",Dr,[e.renderSlot(F.$slots,"loader",e.normalizeProps(e.guardReactiveProps({isLoading:s.value,variant:"overlay",isModal:!0,currentIndex:c.value})),()=>[O[7]||(O[7]=e.createElementVNode("div",{class:"spinner-border text-primary mb-2",role:"status"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",Tr,[...O[6]||(O[6]=[e.createTextVNode("Please wait...",-1)])])),[[y]])],!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ar,[P.value?(e.openBlock(),e.createElementBlock("div",Ir)):(e.openBlock(),e.createBlock(le,{key:0,variant:"outline-secondary",disabled:s.value,onClick:z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.prevText)),1)]),_:1},8,["disabled"])),e.createElementVNode("div",Fr,[s.value?e.renderSlot(F.$slots,"loader",e.normalizeProps(e.mergeProps({key:0},{isLoading:s.value,variant:"inline",isModal:!0,currentIndex:c.value})),()=>[e.createElementVNode("div",Lr,[e.withDirectives((e.openBlock(),e.createElementBlock("span",Pr,[...O[8]||(O[8]=[e.createTextVNode("Loading...",-1)])])),[[y]])])],!0):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createBlock(le,{key:2,variant:"success",disabled:s.value,onClick:w},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.finishText)),1)]),_:1},8,["disabled"])):(e.openBlock(),e.createBlock(le,{key:1,variant:"primary",disabled:s.value,onClick:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.nextText)),1)]),_:1},8,["disabled"]))])])],6)],2)])):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["ab-wizard w-100",[`ab-wizard-${t.orientation}`,B.value,t.orientation==="vertical"&&!f.value?"d-flex flex-column flex-md-row gap-3":"",{"apbd-wizard-loading":s.value}]]),style:e.normalizeStyle(V.value)},[f.value?(e.openBlock(),e.createElementBlock("div",Or,[e.createElementVNode("div",Hr,[e.createElementVNode("h5",Yr,e.toDisplayString(((pe=l.value[c.value])==null?void 0:pe.title)||"Step "+(c.value+1)),1),c.value<l.value.length-1?(e.openBlock(),e.createElementBlock("span",Ur," Next: "+e.toDisplayString(((ae=l.value[c.value+1])==null?void 0:ae.title)||"Step "+(c.value+2)),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",qr,[(e.openBlock(),e.createElementBlock("svg",Kr,[O[9]||(O[9]=e.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-secondary-bg, #e9ecef)","stroke-width":"4"},null,-1)),e.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-primary, #0d6efd)","stroke-width":"4","stroke-linecap":"round",transform:"rotate(-90 24 24)","stroke-dasharray":"125.66","stroke-dashoffset":125.66-125.66*((c.value+1)/l.value.length),style:{transition:"stroke-dashoffset 0.4s ease"}},null,8,Wr),e.createElementVNode("text",Gr,e.toDisplayString(c.value+1)+" of "+e.toDisplayString(l.value.length),1)]))])])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["ab-wizard-header position-relative p-1",[t.orientation==="horizontal"?"ab-wizard-horizontal-header":"flex-shrink-0 ab-wizard-vertical-header"]])},[e.renderSlot(F.$slots,"stepper-header",e.normalizeProps(e.guardReactiveProps({steps:l.value,currentIndex:c.value,getStepState:R,isMobile:v.value})),()=>[e.renderSlot(F.$slots,"header-top",{},void 0,!0),e.createElementVNode("div",{class:e.normalizeClass(["d-flex w-100 position-relative",t.orientation==="vertical"?"flex-column":"justify-content-between align-items-start"])},[e.withDirectives(e.createElementVNode("div",jr,null,512),[[e.vShow,t.orientation==="horizontal"]]),e.withDirectives(e.createElementVNode("div",{class:"position-absolute bg-primary transition-all start-0",style:e.normalizeStyle([{height:"2px",top:"var(--ab-wizard-track-top)","z-index":"1",margin:"0 var(--ab-wizard-track-margin)"},{width:`calc((100% - var(--ab-wizard-trigger-size)) * ${c.value/Math.max(1,l.value.length-1)})`}])},null,4),[[e.vShow,t.orientation==="horizontal"]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(G,H)=>(e.openBlock(),e.createElementBlock("div",{key:G.id,class:e.normalizeClass(["ab-wizard-step-indicator position-relative d-flex",t.orientation==="vertical"?"w-100 align-items-start gap-3 pb-4":"flex-column"]),style:e.normalizeStyle(t.orientation==="horizontal"?{alignItems:H===0?"flex-start":H===l.value.length-1?"flex-end":"center"}:{})},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["vertical-sep transition-all",R(H)==="completed"?"bg-primary":"bg-muted"])},null,2),[[e.vShow,t.orientation==="vertical"&&H!==l.value.length-1]]),e.createElementVNode("div",{class:e.normalizeClass(["ab-wizard-trigger position-relative z-2 flex-shrink-0 d-flex align-items-center justify-content-center rounded-circle transition-all",[R(H)==="completed"?"bg-primary text-white":"bg-white border",R(H)==="active"?"border-primary ring-active text-primary":"",R(H)==="inactive"?"border-secondary text-secondary":""]]),style:{width:"var(--ab-wizard-trigger-size)",height:"var(--ab-wizard-trigger-size)","min-width":"var(--ab-wizard-trigger-size)","min-height":"var(--ab-wizard-trigger-size)"}},[e.renderSlot(F.$slots,"step-icon",e.mergeProps({ref_for:!0},{step:G,index:H,state:R(H)}),()=>[R(H)==="completed"?(e.openBlock(),e.createBlock(e.unref(Je),{key:0,class:"icon-sm"})):G.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(G.icon),{key:1,class:"icon-sm"})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[R(H)==="active"?(e.openBlock(),e.createBlock(e.unref(rt),{key:0,class:"icon-sm opacity-75"})):(e.openBlock(),e.createBlock(e.unref(st),{key:1,class:"icon-sm"}))],64))],!0)],2),e.createElementVNode("div",{class:e.normalizeClass(["ab-wizard-label d-flex flex-column",[t.orientation==="vertical"?"align-items-start mt-1":"position-absolute pt-3"]]),style:e.normalizeStyle(t.orientation==="horizontal"?{top:"var(--ab-wizard-label-top)",insetInlineStart:H===l.value.length-1?"auto":"0",insetInlineEnd:H===0?"auto":"0",marginInline:H!==0&&H!==l.value.length-1?"auto":"unset",width:"max-content",textAlign:H===0?"start":H===l.value.length-1?"end":"center"}:{})},[e.renderSlot(F.$slots,"step-label",e.mergeProps({ref_for:!0},{step:G,index:H,state:R(H)}),()=>[e.createElementVNode("span",{class:e.normalizeClass(["ab-wizard-title fw-semibold transition-all",R(H)==="active"||R(H)==="completed"?"text-primary":""])},e.toDisplayString(e.unref(k)(G.title)),3),G.description?(e.openBlock(),e.createElementBlock("span",Rr,e.toDisplayString(e.unref(k)(G.description)),1)):e.createCommentVNode("",!0)],!0)],6)],6))),128))],2)],!0)],2)),e.createElementVNode("div",Qr,[e.createElementVNode("div",{class:e.normalizeClass(["ab-wizard-body position-relative",t.orientation==="horizontal"?"mt-4":""])},[e.createElementVNode("div",Xr,[e.renderSlot(F.$slots,"default",{},void 0,!0)]),s.value?(e.openBlock(),e.createElementBlock("div",Jr,[e.renderSlot(F.$slots,"loader",e.normalizeProps(e.guardReactiveProps({isLoading:s.value,variant:"overlay",isModal:!1,currentIndex:c.value})),()=>[O[11]||(O[11]=e.createElementVNode("div",{class:"spinner-border text-primary mb-2",role:"status"},null,-1)),e.withDirectives((e.openBlock(),e.createElementBlock("span",Zr,[...O[10]||(O[10]=[e.createTextVNode("Please wait...",-1)])])),[[y]])],!0)])):e.createCommentVNode("",!0)],2),t.hideControls?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_r,[e.renderSlot(F.$slots,"controls",e.normalizeProps(e.guardReactiveProps({isFirstStep:P.value,isLastStep:C.value,isLoading:s.value,goToPrev:z,goToNext:N,finish:w,closeModal:g,setDisableClose:M})),()=>[e.createVNode(le,{variant:"outline-secondary",disabled:P.value||s.value,onClick:z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.prevText)),1)]),_:1},8,["disabled"]),e.createElementVNode("div",es,[s.value?e.renderSlot(F.$slots,"loader",e.normalizeProps(e.mergeProps({key:0},{isLoading:s.value,variant:"inline",isModal:!1,currentIndex:c.value})),()=>[e.createElementVNode("div",ts,[e.withDirectives((e.openBlock(),e.createElementBlock("span",ls,[...O[12]||(O[12]=[e.createTextVNode("Loading...",-1)])])),[[y]])])],!0):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createBlock(le,{key:2,variant:"success",disabled:s.value,onClick:w},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.finishText)),1)]),_:1},8,["disabled"])):(e.openBlock(),e.createBlock(le,{key:1,variant:"primary",disabled:s.value,onClick:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.nextText)),1)]),_:1},8,["disabled"]))])],!0)]))])],6))}}},as=he(ns,[["__scopeId","data-v-e180de2b"]]),os={class:"ab-wizard-step w-100 h-100 fade-in"},rs={__name:"AbWizardStep",props:{title:{type:String,required:!0},description:{type:String,default:""},icon:{type:[Object,String,Function],default:null},disableClose:{type:Boolean,default:!1}},setup(t){const n=t,o=e.inject("AbWizard");o||console.error("AbWizardStep must be used inside an <AbWizard> component.");const a=e.ref(Math.random().toString(36).substr(2,9)),i=e.ref(!1);e.provide("AbWizardStep",{id:a.value});const l={id:a.value,title:n.title,description:n.description,icon:n.icon,disableClose:n.disableClose};return e.onMounted(()=>{o&&o.registerStep(l)}),e.onUnmounted(()=>{o&&o.unregisterStep(a.value)}),o&&(e.watch(()=>o.activeStepId.value,c=>{i.value=c===a.value},{immediate:!0}),e.watch(()=>[n.title,n.description,n.icon,n.disableClose],([c,s,d,r])=>{o.updateStep(a.value,{title:c,description:s,icon:d,disableClose:r})})),(c,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",os,[e.renderSlot(c.$slots,"default",{},void 0,!0)],512)),[[e.vShow,i.value]])}},ss=he(rs,[["__scopeId","data-v-0e453066"]]),is={__name:"AbField",props:{val:null,label:{type:String,required:!0},name:{type:String,required:!0},type:{type:String,default:"text"},prefix:{type:String,default:""},postfix:{type:String,default:""},modelValue:{type:[String,Number,Boolean,Array,Object],default:""},isCodeInput:{type:Boolean,default:!1},containerClass:{type:String,default:void 0},maxlength:{type:[String,Number],default:""},minlength:{type:[String,Number],default:""},placeholder:{type:String,default:""},hints:{type:[String,Array],default:""},rules:{type:[String,Array],default:""},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"val"},max:{default:-1},size:{type:String,default:void 0},object:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},description:{type:String,default:""},helptext:{type:String,default:""},isInline:{type:Boolean,default:!1},trueValue:{default:void 0},falseValue:{default:void 0},title:null,isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,a=e.useSlots(),i=e.useAttrs(),l=n,c=e.computed(()=>o.containerClass!==void 0&&o.containerClass!==null?o.containerClass:W.inputContainerClass??""),s=e.computed(()=>o.trueValue!==void 0&&o.trueValue!==null?o.trueValue:W.trueValue??"Y"),d=e.computed(()=>o.falseValue!==void 0&&o.falseValue!==null?o.falseValue:W.falseValue??"N"),r=e.computed(()=>o.size!==void 0&&o.size!==null?o.size:W.size??"md"),v=e.computed({get:()=>o.modelValue,set:f=>l("update:modelValue",f)});return(f,u)=>{var p,m,B,V,h;return e.openBlock(),e.createElementBlock(e.Fragment,null,[["text","password","email","number","url","textarea"].includes(t.type)?(e.openBlock(),e.createBlock(Ce,{key:0,modelValue:v.value,"onUpdate:modelValue":u[0]||(u[0]=x=>v.value=x),label:t.label,placeholder:t.placeholder,hints:t.hints,name:t.name,isCodeInput:t.isCodeInput,maxlength:t.maxlength,minlength:t.minlength,rules:t.rules,type:t.type,isLeftIconBorder:t.isLeftIconBorder,isRightIconBorder:t.isRightIconBorder,as:t.type=="textarea"?"textarea":"",containerClass:c.value,size:r.value},e.createSlots({_:2},[e.unref(a).label||t.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])]),key:"0"}:void 0,e.unref(a).prefix||t.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"prefix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.prefix)),1)])]),key:"1"}:void 0,e.unref(a).postfix||t.postfix?{name:"postfix",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"postfix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.postfix)),1)])]),key:"2"}:void 0]),1032,["modelValue","label","placeholder","hints","name","isCodeInput","maxlength","minlength","rules","type","isLeftIconBorder","isRightIconBorder","as","containerClass","size"])):e.createCommentVNode("",!0),["select","multiselect"].includes(t.type)?(e.openBlock(),e.createBlock($e,{key:1,size:r.value,modelValue:v.value,"onUpdate:modelValue":u[1]||(u[1]=x=>v.value=x),options:t.options,label:t.label,placeholder:t.placeholder,hints:t.hints,name:t.name,id:(p=e.unref(i))==null?void 0:p.id,style:e.normalizeStyle((m=e.unref(i))==null?void 0:m.style),max:t.max,rules:t.rules,object:t.object,valueKey:t.valueKey,labelKey:t.labelKey,mode:t.type=="multiselect"?"tags":"single",disabled:(B=e.unref(i))==null?void 0:B.disabled,searchable:t.searchable,isLeftIconBorder:t.isLeftIconBorder,isRightIconBorder:t.isRightIconBorder,containerClass:c.value,onClear:u[2]||(u[2]=x=>l("clear",x)),onChange:u[3]||(u[3]=x=>l("change",x)),onSelect:u[4]||(u[4]=x=>l("select",x))},e.createSlots({_:2},[e.unref(a).label||t.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])]),key:"0"}:void 0,e.unref(a).prefix||t.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"prefix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.prefix)),1)])]),key:"1"}:void 0,e.unref(a).postfix||t.postfix?{name:"postfix",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"postfix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.postfix)),1)])]),key:"2"}:void 0,e.unref(a).option?{name:"option",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"option")]),key:"3"}:void 0,e.unref(a).singlelabel?{name:"singlelabel",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"singlelabel")]),key:"4"}:void 0]),1032,["size","modelValue","options","label","placeholder","hints","name","id","style","max","rules","object","valueKey","labelKey","mode","disabled","searchable","isLeftIconBorder","isRightIconBorder","containerClass"])):e.createCommentVNode("",!0),t.type=="tag"?(e.openBlock(),e.createBlock(wt,{key:2,modelValue:v.value,"onUpdate:modelValue":u[5]||(u[5]=x=>v.value=x),size:r.value,label:t.label,name:t.name,isLeftIconBorder:t.isLeftIconBorder,isRightIconBorder:t.isRightIconBorder,id:(V=f.$attrs)==null?void 0:V.id,rules:t.rules,containerClass:c.value,options:t.options,placeholder:t.placeholder,max:t.max},e.createSlots({_:2},[e.unref(a).label||t.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])]),key:"0"}:void 0,e.unref(a).prefix||t.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"prefix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.prefix)),1)])]),key:"1"}:void 0,e.unref(a).postfix||t.postfix?{name:"postfix",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"postfix",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.postfix)),1)])]),key:"2"}:void 0]),1032,["modelValue","size","label","name","isLeftIconBorder","isRightIconBorder","id","rules","containerClass","options","placeholder","max"])):e.createCommentVNode("",!0),t.type=="checkbox"||t.type=="radio"?(e.openBlock(),e.createBlock(ze,{key:3,type:t.type,name:t.name,size:r.value,modelValue:v.value,"onUpdate:modelValue":u[6]||(u[6]=x=>v.value=x),val:t.val,options:t.options,limit:t.max,rules:t.rules,containerClass:c.value,isInline:t.isInline},e.createSlots({_:2},[e.unref(a).label||t.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])]),key:"0"}:void 0,e.unref(a).description||t.description?{name:"description",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.description)),1)])]),key:"1"}:void 0,e.unref(a).helptext||t.helptext?{name:"help-text",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"help-text",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.helptext)),1)])]),key:"2"}:void 0]),1032,["type","name","size","modelValue","val","options","limit","rules","containerClass","isInline"])):e.createCommentVNode("",!0),t.type=="toggle"||t.type=="switch"?(e.openBlock(),e.createBlock(et,{key:4,size:r.value,name:t.name,id:(h=e.unref(i))==null?void 0:h.id,containerClass:c.value,trueValue:s.value,falseValue:d.value,modelValue:v.value,"onUpdate:modelValue":u[7]||(u[7]=x=>v.value=x)},e.createSlots({_:2},[e.unref(a).label||t.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.label)),1)])]),key:"0"}:void 0,e.unref(a).title||t.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.title)),1)])]),key:"1"}:void 0,e.unref(a).description||t.description?{name:"description",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.description)),1)])]),key:"2"}:void 0,e.unref(a).hints||t.hints?{name:"hints",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"hints",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(k)(t.hints)),1)])]),key:"3"}:void 0]),1032,["size","name","id","containerClass","trueValue","falseValue","modelValue"])):e.createCommentVNode("",!0)],64)}}};function Vt(){const t=e.ref("light"),n=i=>{t.value=i,document.documentElement.setAttribute("data-bs-theme",i),localStorage.setItem("theme",i)},o=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",a=()=>{n(t.value==="dark"?"light":"dark")};return e.onMounted(()=>{const i=localStorage.getItem("theme");n(i||o()),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",l=>{localStorage.getItem("theme")||n(l.matches?"dark":"light")})}),{theme:t,toggleTheme:a,applyTheme:n}}const cs=["title","aria-label"],us={class:"apbd-dark-mode-toggler-inner"},ds={__name:"AbDarkModeToggler",props:{size:{type:String,default:"md",validator:t=>["xs","sm","md","lg","xl","2xl"].includes(t)}},setup(t){const{theme:n,toggleTheme:o}=Vt();return(a,i)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["apbd-dark-mode-toggler",`apbd-dark-mode-toggler-${t.size}`]),onClick:i[0]||(i[0]=(...l)=>e.unref(o)&&e.unref(o)(...l)),title:e.unref(n)==="dark"?"Switch to Light Mode":"Switch to Dark Mode","aria-label":e.unref(n)==="dark"?"Switch to Light Mode":"Switch to Dark Mode"},[e.createElementVNode("div",us,[e.unref(n)==="dark"?e.renderSlot(a.$slots,"dark-icon",{key:0},()=>[e.createVNode(e.unref(Cl),{class:"apbd-dark-mode-toggler-icon sun-icon"})]):e.renderSlot(a.$slots,"light-icon",{key:1},()=>[e.createVNode(e.unref(Bl),{class:"apbd-dark-mode-toggler-icon moon-icon"})])])],10,cs))}},ms={},fs={class:"success-icon"};function ps(t,n){return e.openBlock(),e.createElementBlock("div",fs,[...n[0]||(n[0]=[e.createElementVNode("svg",{viewBox:"0 0 52 52"},[e.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),e.createElementVNode("path",{class:"check",fill:"none",d:"M14 27l7 7 16-16"})],-1)])])}const xt=he(ms,[["render",ps],["__scopeId","data-v-2a6789fa"]]),vs={},hs={class:"error-icon"};function gs(t,n){return e.openBlock(),e.createElementBlock("div",hs,[...n[0]||(n[0]=[e.createElementVNode("svg",{viewBox:"0 0 52 52"},[e.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),e.createElementVNode("path",{class:"cross line1",fill:"none",d:"M16 16 36 36"}),e.createElementVNode("path",{class:"cross line2",fill:"none",d:"M36 16 16 36"})],-1)])])}const Nt=he(vs,[["render",gs],["__scopeId","data-v-fec388a6"]]),ys={},bs={class:"warn-icon"};function ks(t,n){return e.openBlock(),e.createElementBlock("div",bs,[...n[0]||(n[0]=[e.createElementVNode("svg",{viewBox:"0 0 52 52"},[e.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),e.createElementVNode("line",{class:"line",x1:"26",y1:"16",x2:"26",y2:"30"}),e.createElementVNode("circle",{class:"dot",cx:"26",cy:"36",r:"2"})],-1)])])}const Et=he(ys,[["render",ks],["__scopeId","data-v-5beded77"]]),ws={},Bs={class:"info-icon"};function Ss(t,n){return e.openBlock(),e.createElementBlock("div",Bs,[...n[0]||(n[0]=[e.createElementVNode("svg",{viewBox:"0 0 52 52"},[e.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),e.createElementVNode("line",{class:"line",x1:"26",y1:"22",x2:"26",y2:"34"}),e.createElementVNode("circle",{class:"dot",cx:"26",cy:"16",r:"2"})],-1)])])}const $t=he(ws,[["render",Ss],["__scopeId","data-v-bfbd53ac"]]),Cs={},Vs={class:"question-icon"};function xs(t,n){return e.openBlock(),e.createElementBlock("div",Vs,[...n[0]||(n[0]=[e.createElementVNode("svg",{viewBox:"0 0 52 52"},[e.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),e.createElementVNode("path",{class:"curve",fill:"none",d:"M20 20a6 6 0 1 1 10 4c-2 2-4 3-4 6"}),e.createElementVNode("circle",{class:"dot",cx:"26",cy:"36",r:"2"})],-1)])])}const zt=he(Cs,[["render",xs],["__scopeId","data-v-ac51a033"]]),Ns={class:"ms-1"},Es={key:0,class:"mb-3 d-flex justify-content-center"},$s={key:1,class:"fw-bold mb-2"},zs={class:"d-flex justify-content-center align-items-center mt-3 gap-2"},Ms={__name:"AbConfirmPopover",props:{msg:{type:String,default:"Are you sure?"},title:{type:String,default:""},confirmText:{type:String,default:"Yes"},cancelText:{type:String,default:"No"},icon:{type:String,default:"question"},type:{type:String,default:"confirm"},onConfirm:{type:Function,default:null},itemData:{type:[Object,String,Number,Array],default:null}},emits:["onConfirmed"],setup(t,{emit:n}){const o=t,a=n,i=()=>({msg:o.msg,title:o.title,confirmText:o.confirmText,cancelText:o.cancelText,type:o.type,icon:o.icon,onConfirm:o.onConfirm,buttonClass:"",loading:!1}),l=e.reactive(i());function c(){Object.assign(l,i())}const s=e.computed(()=>({success:xt,error:Nt,warning:Et,info:$t,question:zt})[l.icon]||l.icon),d=e.computed(()=>({success:"text-success",error:"text-danger",warning:"text-warning",info:"text-info",question:"text-primary"})[l.icon]||""),r=f=>{l.loading=f};async function v(f){if(!l.loading){if(l.type==="alert"){f();return}if(!l.onConfirm){a("onConfirmed",{showLoader:r,itemData:o.itemData,closePopover:f});return}if((l.type==="confirm"||l.type==="confirm-ajax")&&l.onConfirm){l.loading=!0;try{const u=await l.onConfirm(o.itemData);if(l.loading=!1,(u==null?void 0:u.next)==="close"){f();return}if((u==null?void 0:u.next)==="confirm"){Object.assign(l,{type:"confirm",title:u.title||"",msg:u.message||u.msg||"",icon:u.icon||"warning",confirmText:u.confirmText||"Yes",cancelText:u.cancelText||"No",onConfirm:u.onConfirm||null});return}if((u==null?void 0:u.next)==="confirm-ajax"){Object.assign(l,{type:"confirm-ajax",title:u.title||"",msg:u.message||u.msg||"",icon:u.icon||"question",confirmText:u.confirmText||"Yes",cancelText:u.cancelText||"No",onConfirm:u.onConfirm});return}l.type="alert",l.confirmText="OK",l.cancelText="",(u==null?void 0:u.status)===!1?(l.title="Error",l.msg=(u==null?void 0:u.message)||(u==null?void 0:u.msg)||"Something went wrong",l.icon="error",l.buttonClass="btn-danger"):(l.title="Success",l.msg=(u==null?void 0:u.message)||(u==null?void 0:u.msg)||"Completed successfully",l.icon="success",l.buttonClass="btn-success")}catch{l.loading=!1,l.type="alert",l.title="Error",l.msg="Unexpected error",l.icon="error",l.buttonClass="btn-danger"}}}}return(f,u)=>(e.openBlock(),e.createBlock(Me,{onHide:c,onShow:c},{content:e.withCtx(({close:p})=>[e.createElementVNode("div",{class:e.normalizeClass(["apbd-confirm-popover p-3",{"apbd-loading-parent":l.loading}])},[l.icon&&l.type==="alert"?(e.openBlock(),e.createElementBlock("div",Es,[e.createElementVNode("div",{class:e.normalizeClass(`icon-circle ${d.value}`),style:{width:"40px",height:"40px",display:"flex","align-items":"center","justify-content":"center","border-radius":"50%",margin:"0 auto"}},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value)))],2)])):e.createCommentVNode("",!0),l.title?(e.openBlock(),e.createElementBlock("div",$s,e.toDisplayString(e.unref(fe)(l.title)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",null,e.toDisplayString(e.unref(fe)(l.msg)),1),e.renderSlot(f.$slots,"desc",{},void 0,!0),e.createElementVNode("div",zs,[e.renderSlot(f.$slots,"actionButtons",{removeConfirmed:()=>v(p),state:l},()=>[e.createVNode(le,{class:e.normalizeClass(["btn-sm btn-danger",l.buttonClass]),isAnimated:l.loading,onClick:m=>v(p),disabled:l.loading},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(fe)(l.confirmText)),1)]),_:1},8,["class","isAnimated","onClick","disabled"]),l.type==="confirm"||l.type==="confirm-ajax"?(e.openBlock(),e.createBlock(le,{key:0,class:"btn-sm btn-light",onClick:p,disabled:l.loading},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(fe)(l.cancelText)),1)]),_:1},8,["onClick","disabled"])):e.createCommentVNode("",!0)],!0)])],2)]),default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{},()=>[e.createVNode(le,{type:"button",class:"btn-sm btn-danger d-inline-flex align-items-center"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Vl),{size:16})]),default:e.withCtx(()=>[e.createElementVNode("span",Ns,e.toDisplayString(e.unref(fe)("Remove")),1)]),_:1})],!0)]),_:3}))}},Ds=he(Ms,[["__scopeId","data-v-ee92ec76"]]),Ts={name:"AbEasyModal",inheritAttrs:!1},As=Object.assign(Ts,{setup(t,{expose:n}){const o=e.ref(!1),a=()=>{o.value=!0},i=()=>{o.value=!1};return n({openModal:a,closeModal:i}),(l,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"d-inline-block",onClick:a},[e.renderSlot(l.$slots,"action")]),o.value?(e.openBlock(),e.createBlock(mt,e.mergeProps({key:0},l.$attrs,{onClose:i}),e.createSlots({_:2},[l.$slots.title?{name:"headerTitle",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"title")]),key:"0"}:void 0,l.$slots.body?{name:"body",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"body")]),key:"1"}:void 0,l.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"footer",{closeModal:i,close:i})]),key:"2"}:void 0]),1040)):e.createCommentVNode("",!0)],64))}}),Is={key:0,class:"pricing-card-recommended-ribbon"},Fs={key:1,class:"pricing-card-header"},Ls={key:0,class:"pricing-badge-wrapper"},Ps={class:"pricing-badge"},js={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Rs={class:"pricing-title"},Os={key:2,class:"pricing-card-price"},Hs={class:"price-wrapper"},Ys={key:0,class:"price-regular"},Us={class:"price-amount"},qs={key:1,class:"price-frequency"},Ks={key:3,class:"pricing-card-features"},Ws={key:0,class:"pricing-feature-list"},Gs={class:"feature-icon"},Qs={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Xs={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Js={class:"feature-text"},Zs={key:4,class:"pricing-card-action"},_s={name:"AbPricingCard",inheritAttrs:!1},ei=Object.assign(_s,{props:{title:{type:String,default:""},amount:{type:[String,Number],default:void 0},regularAmount:{type:[String,Number],default:void 0},frequency:{type:String,default:""},badge:{type:String,default:""},active:{type:Boolean,default:!1},recommended:{type:Boolean,default:!1},color:{type:String,default:"primary"},variant:{type:String,default:"default",validator:t=>["default","minimal","highlighted","badge-price"].includes(t)},features:{type:Array,default:()=>[]}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["abpd-pricing-card",[{"is-active":t.active,"is-recommended":t.recommended,"is-highlighted":t.variant==="highlighted","is-minimal":t.variant==="minimal","is-badge-price":t.variant==="badge-price"},`is-${t.color}`]]},n.$attrs),[t.recommended?(e.openBlock(),e.createElementBlock("div",Is,[e.renderSlot(n.$slots,"recommended",{},()=>[o[0]||(o[0]=e.createTextVNode("Recommended",-1))])])):e.createCommentVNode("",!0),n.$slots.header||t.title?(e.openBlock(),e.createElementBlock("div",Fs,[e.renderSlot(n.$slots,"header",{},()=>[t.badge||n.$slots.badge?(e.openBlock(),e.createElementBlock("div",Ls,[e.renderSlot(n.$slots,"badge",{},()=>[e.createElementVNode("span",Ps,[e.renderSlot(n.$slots,"badge-icon",{},()=>[t.active?(e.openBlock(),e.createElementBlock("svg",js,[...o[1]||(o[1]=[e.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):e.createCommentVNode("",!0)]),e.createTextVNode(" "+e.toDisplayString(t.badge),1)])])])):e.createCommentVNode("",!0),e.createElementVNode("h3",Rs,e.toDisplayString(t.title),1)])])):e.createCommentVNode("",!0),n.$slots.price||t.amount!==void 0?(e.openBlock(),e.createElementBlock("div",Os,[e.renderSlot(n.$slots,"price",{},()=>[e.createElementVNode("div",Hs,[t.regularAmount!==void 0?(e.openBlock(),e.createElementBlock("span",Ys,e.toDisplayString(t.regularAmount),1)):e.createCommentVNode("",!0),e.createElementVNode("span",Us,e.toDisplayString(t.amount),1),t.frequency?(e.openBlock(),e.createElementBlock("span",qs,e.toDisplayString(t.frequency),1)):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0),n.$slots.features||t.features&&t.features.length?(e.openBlock(),e.createElementBlock("div",Ks,[e.renderSlot(n.$slots,"features",{},()=>[t.features?(e.openBlock(),e.createElementBlock("ul",Ws,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.features,(a,i)=>(e.openBlock(),e.createElementBlock("li",{key:i,class:e.normalizeClass({"is-disabled":a.disabled})},[e.createElementVNode("span",Gs,[e.renderSlot(n.$slots,"feature-icon",{feature:a,index:i},()=>[a.disabled?(e.openBlock(),e.createElementBlock("svg",Xs,[...o[3]||(o[3]=[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Qs,[...o[2]||(o[2]=[e.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1)])]))])]),e.createElementVNode("span",Js,e.toDisplayString(a.text||a),1)],2))),128))])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),n.$slots.action?(e.openBlock(),e.createElementBlock("div",Zs,[e.renderSlot(n.$slots,"action")])):e.createCommentVNode("",!0)],16))}}),ti={class:"abpd-pricing-container"},li={key:0,class:"pricing-toggle-wrapper"},ni={name:"AbPricingContainer"},ai=Object.assign(ni,{props:{width:{type:String,default:"100%"},maxWidth:{type:String,default:"1200px"},gap:{type:String,default:"1.5rem"},justify:{type:String,default:"center"},align:{type:String,default:"stretch"},columns:{type:[Number,String],default:0},smCols:{type:[Number,String],default:""},mdCols:{type:[Number,String],default:""},lgCols:{type:[Number,String],default:""},itemWidth:{type:String,default:""}},setup(t){const n=t,o=e.computed(()=>Number(n.columns)>0),a=e.computed(()=>{const i={gap:n.gap,width:n.width,maxWidth:n.maxWidth};return n.itemWidth&&(i["--pricing-card-width"]=n.itemWidth),o.value?(i["--pricing-cols"]=n.columns,n.lgCols&&(i["--pricing-cols-lg"]=n.lgCols),n.mdCols?i["--pricing-cols-md"]=n.mdCols:i["--pricing-cols-md"]=n.columns>2?2:n.columns,n.smCols?i["--pricing-cols-sm"]=n.smCols:i["--pricing-cols-sm"]=1,i.justifyContent=n.justify,i.alignItems=n.align):(i.flexWrap="wrap",i.justifyContent=["start","end"].includes(n.justify)?`flex-${n.justify}`:n.justify,i.alignItems=["start","end"].includes(n.align)?`flex-${n.align}`:n.align),i});return(i,l)=>(e.openBlock(),e.createElementBlock("div",ti,[i.$slots.toggle?(e.openBlock(),e.createElementBlock("div",li,[e.renderSlot(i.$slots,"toggle")])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["pricing-grid",{"is-grid":o.value}]),style:e.normalizeStyle(a.value)},[e.renderSlot(i.$slots,"default")],6)]))}}),oi={class:"apbd-pricing-table"},ri={class:"apbd-pricing-features-col d-none d-md-flex"},si={class:"apbd-pricing-feature-list"},ii={class:"apbd-pricing-packages"},ci={key:0,class:"apbd-package-badge"},ui={class:"apbd-package-header"},di={class:"apbd-package-name"},mi={class:"apbd-package-price"},fi={key:0,class:"apbd-package-regular-price"},pi={class:"apbd-package-features"},vi={class:"d-md-none me-2"},hi={key:0,class:"bi bi-check-circle-fill apbd-check-icon"},gi={key:1,class:"bi bi-x-circle apbd-cross-icon"},yi={class:"apbd-package-footer"},bi=["href","onClick"],ki=["onClick"],wi={key:1,class:"apbd-package-alt-text"},Bi={__name:"AbPricingTable",props:{features:{type:Array,required:!0},packages:{type:Array,required:!0}},emits:["select-package"],setup(t,{emit:n}){const o=n,a=i=>{o("select-package",i)};return(i,l)=>{const c=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",oi,[e.createElementVNode("div",ri,[e.renderSlot(i.$slots,"features-header",{},()=>[l[0]||(l[0]=e.createElementVNode("div",{class:"apbd-features-header"},[e.createElementVNode("div",{class:"apbd-features-subtitle"},"Get Started"),e.createElementVNode("h3",{class:"apbd-features-title"},"Service Details")],-1))]),e.createElementVNode("div",si,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.features,(s,d)=>(e.openBlock(),e.createElementBlock("div",{key:s.key,class:"apbd-pricing-feature-item"},[e.renderSlot(i.$slots,"feature-label",{feature:s},()=>[e.createTextVNode(e.toDisplayString(s.title),1)])]))),128))])]),e.createElementVNode("div",ii,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.packages,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:e.normalizeClass(["apbd-pricing-package-col",{"apbd-pricing-package-active":s.isActive}])},[e.renderSlot(i.$slots,"package-badge",{pkg:s},()=>[s.badge?(e.openBlock(),e.createElementBlock("div",ci,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)]),e.renderSlot(i.$slots,"package-header",{pkg:s},()=>[e.createElementVNode("div",ui,[e.createElementVNode("div",di,e.toDisplayString(s.name),1),e.createElementVNode("div",mi,[e.createTextVNode(" $"+e.toDisplayString(s.price)+" ",1),e.createElementVNode("span",null,"/ "+e.toDisplayString(s.billingCycle),1)]),s.regularPrice?(e.openBlock(),e.createElementBlock("div",fi," $"+e.toDisplayString(s.regularPrice),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",pi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.features,(d,r)=>(e.openBlock(),e.createElementBlock("div",{key:d.key,class:"apbd-package-feature-item"},[e.createElementVNode("span",vi,e.toDisplayString(d.title)+":",1),e.renderSlot(i.$slots,"package-feature",{pkg:s,feature:d},()=>[s.features&&s.features[d.key]==="Y"?(e.openBlock(),e.createElementBlock("i",hi)):s.features&&s.features[d.key]==="N"?(e.openBlock(),e.createElementBlock("i",gi)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" - ")],64))])]))),128))]),e.renderSlot(i.$slots,"package-footer",{pkg:s},()=>[e.createElementVNode("div",yi,[s.showButton!==!1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.buttonLink&&s.buttonLink.startsWith("/")?(e.openBlock(),e.createBlock(c,{key:0,to:s.buttonLink,class:"btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:d=>a(s)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.buttonText||"Choose Plan"),1)]),_:2},1032,["to","onClick"])):s.buttonLink?(e.openBlock(),e.createElementBlock("a",{key:1,href:s.buttonLink,target:"_blank",rel:"noopener noreferrer",class:"btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:d=>a(s)},e.toDisplayString(s.buttonText||"Choose Plan"),9,bi)):(e.openBlock(),e.createElementBlock("button",{key:2,class:"btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:d=>a(s)},e.toDisplayString(s.buttonText||"Choose Plan"),9,ki))],64)):s.altButtonText?(e.openBlock(),e.createElementBlock("span",wi,e.toDisplayString(s.altButtonText),1)):e.createCommentVNode("",!0)])])],2))),128))])])}}},Si={class:"apbd-container"},Ci={class:"apbd-main-content"},Vi={class:"apbd-app-body"},xi={key:1,class:"apbd-page-footer"},Ni={key:1,class:"apbd-right-sidebar"},Ei={__name:"AbMainLayout",props:{headerClass:{type:String,default:"apbd-bordered"},footerClass:{type:String,default:""}},setup(t,{expose:n}){const o=e.useSlots(),a=()=>window.innerWidth<576,i=e.ref(!0),l=e.ref(!0);e.onMounted(()=>{a()&&(i.value=!1)});const c=d=>{typeof d=="boolean"?i.value=d:i.value=!i.value},s=d=>{typeof d=="boolean"?l.value=d:l.value=!l.value};return e.provide("layoutState",{isLeftSidebarOpen:i,isRightSidebarOpen:l,toggleLeftSidebar:c,toggleRightSidebar:s}),n({isLeftSidebarOpen:i,isRightSidebarOpen:l,toggleLeftSidebar:c,toggleRightSidebar:s}),(d,r)=>(e.openBlock(),e.createElementBlock("div",Si,[e.createVNode(e.Transition,{name:"apbd-sidebar-backdrop"},{default:e.withCtx(()=>[e.unref(o).leftSidebar&&i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"apbd-sidebar-backdrop",onClick:r[0]||(r[0]=v=>c(!1))})):e.createCommentVNode("",!0)]),_:1}),e.unref(o).leftSidebar?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["apbd-left-sidebar",{"sidebar-open":i.value}])},[e.renderSlot(d.$slots,"leftSidebar")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Ci,[e.unref(o).pageHeader?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["apbd-page-header",t.headerClass])},[e.renderSlot(d.$slots,"pageHeader",{headerClass:t.headerClass})],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Vi,[e.unref(o).bodyHeader?e.renderSlot(d.$slots,"bodyHeader",{key:0}):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"body"),e.unref(o).bodyFooter?e.renderSlot(d.$slots,"bodyFooter",{key:1}):e.createCommentVNode("",!0)]),e.unref(o).pageFooter?(e.openBlock(),e.createElementBlock("div",xi,[e.renderSlot(d.$slots,"pageFooter")])):e.createCommentVNode("",!0)]),e.unref(o).rightSidebar&&l.value?(e.openBlock(),e.createElementBlock("div",Ni,[e.renderSlot(d.$slots,"rightSidebar")])):e.createCommentVNode("",!0)]))}};function $i(){const{appContext:t}=e.getCurrentInstance();return{alert:o=>t.config.globalProperties.$alert(o)}}function zi(t={}){const{tabMaxWidth:n=0}=t,o=e.ref(window.innerWidth),a=()=>{o.value=window.innerWidth};e.onMounted(()=>window.addEventListener("resize",a)),e.onUnmounted(()=>window.removeEventListener("resize",a));const i=e.computed(()=>{const s=o.value;return s<576?"xs":s<768?"sm":s<992?"md":s<1200?"lg":s<1400?"xl":"xxl"}),l=e.computed(()=>o.value),c=e.computed(()=>{const s=i.value;return s==="xs"||s==="sm"||n>0&&l.value<=n});return{ScreenWidth:l,ScreenType:i,isUptoTab:c}}function Mi(t,n="USD",o="en-US"){return new Intl.NumberFormat(o,{style:"currency",currency:n}).format(t)}function Di(t){return t.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"")}function Ti(t,n=0){const o=t*n/100;return{tax:o,total:t+o}}function Mt(t,n,o){var a=n||new FormData;let i=null;for(const l in t)if(t.hasOwnProperty(l))if(i=o?`${o}[${l}]`:l,typeof t[l]=="object"&&!(t[l]instanceof File))Mt(t[l],a,i);else if(t[l]instanceof File)a.append(i,t[l]);else{let c=t[l];(c==="true"||c==="false"||c===!0||c===!1)&&(c=c==="true"||c===!0?1:0),a.append(i,c)}return a}const Ve=t=>t.field.replace("_"," "),Ai={required:(t,n,o)=>Se.required(t,n)?!0:fe("%{fld_name} is required",{fld_name:Ve(o)}),numeric:(t,n,o)=>Se.numeric(t,n)?!0:fe("%{fld_name} should be numeric",{fld_name:Ve(o)}),email:(t,n,o)=>Se.email(t,n)?!0:fe("%{fld_name} not a valid email address",{fld_name:Ve(o)}),min:(t,n,o)=>Se.min(t,n),min_value:(t,n,o)=>Se.min_value(t,n)?!0:fe("%{fld_name} should be more than "+n[0],{fld_name:Ve(o)}),max:(t,n,o)=>Se.max(t,n),max_value:(t,n,o)=>Se.max_value(t,n)?!0:fe("%{fld_name} should be less than "+n[0],{fld_name:Ve(o)}),confirmed:(t,n,o)=>Se.confirmed(t,n)?!0:fe("%{fld_name} does not match with its password",{fld_name:Ve(o)}),url:(t,n,o)=>Se.url(t,n)?!0:fe("%{fld_name} is invalid",{fld_name:Ve(o)}),isUnique:async(t,n,o)=>(o=="email"&&!Se.email(t,n,o)||t.length<3,!0),isValid:async(t,n,o)=>{if(n[0]=="custom"){let a=3;if(n[1]!=null)if(n[2]!=null&&(a=n[2]),t.length>=a){let i=await store.dispatch("IsValidCF",{fld_name:n[1],fld_value:t});return i.status?!0:translate.interpolate(i.msg,{fld_name:Ve(o)})}else return fe("%{fld_name} length is not valid, please check it",{fld_name:Ve(o)});return!0}else return!0}};function Ii(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var tt={exports:{}};function lt(){}lt.prototype={on:function(t,n,o){var a=this.e||(this.e={});return(a[t]||(a[t]=[])).push({fn:n,ctx:o}),this},once:function(t,n,o){var a=this;function i(){a.off(t,i),n.apply(o,arguments)}return i._=n,this.on(t,i,o)},emit:function(t){var n=[].slice.call(arguments,1),o=((this.e||(this.e={}))[t]||[]).slice(),a=0,i=o.length;for(a;a<i;a++)o[a].fn.apply(o[a].ctx,n);return this},off:function(t,n){var o=this.e||(this.e={}),a=o[t],i=[];if(a&&n)for(var l=0,c=a.length;l<c;l++)a[l].fn!==n&&a[l].fn._!==n&&i.push(a[l]);return i.length?o[t]=i:delete o[t],this}};tt.exports=lt;tt.exports.TinyEmitter=lt;var Fi=tt.exports,Li=Fi,Pi=new Li;const Re=Ii(Pi),ji={$on:(...t)=>Re.on(...t),$once:(...t)=>Re.once(...t),$off:(...t)=>Re.off(...t),$emit:(...t)=>Re.emit(...t)};class Ri{constructor(){this.prop="",this.ord="asc"}}class Oi{constructor(){this.prop="",this.val="",this.opr="eq"}}const Hi={class:"alert-text"},Yi={key:0,class:"title"},Ui={key:1,class:"message"},qi={key:1,class:"field"},Ki={__name:"AbBaseAlert",setup(t,{expose:n}){const o=e.ref(!1),a=e.ref(!1),i=e.ref(null);let l=null;const c=()=>({type:"alert",title:"",message:"",confirmText:"",cancelText:"",icon:"",timer:null,onConfirm:null,buttonCol:!1,variation:"default",size:"md"}),s=e.reactive(c());function d(g={}){return Object.assign(s,c()),a.value=!1,o.value=!0,Object.assign(s,g),s.timer&&s.type==="alert"&&(l=setTimeout(()=>{M(!0)},s.timer)),new Promise(L=>{i.value=L})}const r=e.computed(()=>s.type==="confirm"||s.type==="confirm-ajax"),v=e.computed(()=>s.confirmText||(s.type==="alert"?"OK":"Yes")),f=e.computed(()=>({success:xt,error:Nt,warning:Et,info:$t,question:zt})[s.icon]||s.icon),u=e.computed(()=>({success:"icon-success",error:"icon-error",warning:"icon-warning",info:"icon-info",question:"icon-question"})[s.icon]||""),p=e.computed(()=>({default:"",modern:"alert-card--modern",minimal:"alert-card--minimal","top-color-bar":"alert-card--top-color-bar"})[s.variation]||""),m=e.computed(()=>s.variation!=="top-color-bar"?"":{success:"bar-success",error:"bar-error",warning:"bar-warning",info:"bar-info",question:"bar-question"}[s.icon]||""),B=e.computed(()=>s.variation==="minimal"?"icon-minimal":""),V=e.computed(()=>s.variation==="modern"?"buttons--row":s.variation==="minimal"?"buttons--minimal":""),h=e.computed(()=>s.variation==="minimal"?"cancel-link":s.variation==="modern"?"btn-outline":"btn-light");async function x(){if(!a.value){if(s.type==="alert"){M(!0);return}if((s.type==="confirm"||s.type==="confirm-ajax")&&s.onConfirm){a.value=!0;try{const g=await s.onConfirm();if(a.value=!1,(g==null?void 0:g.next)==="close"){M((g==null?void 0:g.status)??!0);return}if((g==null?void 0:g.next)==="confirm"){Object.assign(s,{type:"confirm",title:g.title,message:g.message,icon:g.icon||"warning",confirmText:g.confirmText||"Yes",cancelText:g.cancelText||"No",onConfirm:g.onConfirm||null});return}if((g==null?void 0:g.next)==="confirm-ajax"){Object.assign(s,{type:"confirm-ajax",title:g.title,message:g.message,icon:g.icon||"question",confirmText:g.confirmText||"Yes",cancelText:g.cancelText||"No",onConfirm:g.onConfirm});return}s.type="alert",s.confirmText="OK",s.cancelText="",(g==null?void 0:g.status)===!1?(s.title="Error",s.message=(g==null?void 0:g.message)||"Something went wrong",s.icon="error",s.buttonClass="danger"):(s.title="Success",s.message=(g==null?void 0:g.message)||"Completed successfully",s.icon="success",s.buttonClass="success")}catch{a.value=!1,s.type="alert",s.title="Error",s.message="Unexpected error",s.icon="error",s.buttonClass="danger"}return}s.type==="confirm"&&M(!0)}}function D(){M(!1)}function M(g){var L;l&&(clearTimeout(l),l=null),o.value=!1,(L=i.value)==null||L.call(i,g)}return n({open:d}),(g,L)=>o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"apbd-alert alert-overlay",onClick:e.withModifiers(D,["self"])},[e.createElementVNode("div",{class:e.normalizeClass(["alert-card",[p.value,m.value,`alert-${s.size||"md"}`]])},[e.createElementVNode("button",{class:"close-btn",onClick:D},"✕"),s.variation==="top-color-bar"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["color-bar",[m.value]])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["alert-content",{"alert-content--horizontal":s.variation==="modern"}])},[s.icon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["icon-circle",[u.value,B.value]])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value)))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Hi,[s.title?(e.openBlock(),e.createElementBlock("h5",Yi,e.toDisplayString(e.unref(fe)(s.title)),1)):e.createCommentVNode("",!0),s.message?(e.openBlock(),e.createElementBlock("p",Ui,e.toDisplayString(e.unref(fe)(s.message)),1)):e.createCommentVNode("",!0)])],2),s.showMember?(e.openBlock(),e.createElementBlock("div",qi,[e.createElementVNode("label",null,e.toDisplayString(e.unref(fe)("Team member")),1),L[0]||(L[0]=e.createElementVNode("select",{class:"form-select"},[e.createElementVNode("option",null,"Olivia Rhye"),e.createElementVNode("option",null,"John Doe")],-1))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["buttons",[s.buttonCol?"":"flex-row-reverse",V.value]])},[e.createVNode(le,{variant:"primary",class:"confirm-btn",disabled:a.value,"is-animated":a.value,onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(fe)(v.value)),1)]),_:1},8,["disabled","is-animated"]),r.value?(e.openBlock(),e.createBlock(le,{key:0,class:e.normalizeClass(["cancel-btn",h.value]),disabled:a.value,onClick:D},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(fe)(s.cancelText||"Cancel")),1)]),_:1},8,["class","disabled"])):e.createCommentVNode("",!0)],2)],2)])):e.createCommentVNode("",!0)}},Wi={install(t){const n=document.createElement("div");document.body.appendChild(n);const a=e.createApp({render(){return e.h(Ki,{ref:"alert"})}}).mount(n);t.config.globalProperties.$alert=i=>a.$refs.alert.open(i)}},Gi=["onMouseenter","onMouseleave"],Qi={key:0,class:"apbd-toast-icon"},Xi={key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ji={key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zi={key:2,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_i={key:3,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ec={class:"apbd-toast-content"},tc={key:0,class:"apbd-toast-title"},lc={class:"apbd-toast-message"},nc=["onClick"],ac={key:2,class:"apbd-toast-progress-track"},oc={__name:"AbToast",setup(t,{expose:n}){const o=e.reactive([]),a=e.ref(typeof document<"u"?document.hasFocus():!0);function i(){const m=typeof document<"u"?document.hasFocus()&&!document.hidden:!0;a.value=m,o.forEach(B=>{f(B)})}e.onMounted(()=>{typeof window<"u"&&(window.addEventListener("focus",i),window.addEventListener("blur",i),document.addEventListener("visibilitychange",i))}),e.onUnmounted(()=>{typeof window<"u"&&(window.removeEventListener("focus",i),window.removeEventListener("blur",i),document.removeEventListener("visibilitychange",i))});let l=0;const c=e.computed(()=>{const m=new Set;return o.forEach(B=>m.add(B.position)),[...m]});function s(m){const B=o.filter(V=>V.position===m);return m.startsWith("bottom")?[...B].reverse():B}function d(m,B={}){const V=++l,h={id:V,message:typeof m=="object"?m.message||"":m,title:typeof m=="object"?m.title||B.title||"":B.title||"",type:B.type||"default",design:B.design||W.toastDesign||"default",position:B.position||W.toastPosition||"top-right",timeout:B.timeout!==void 0?B.timeout:W.toastTimeout||5e3,closeButton:B.closeButton!==void 0?B.closeButton:W.toastCloseButton!==void 0?W.toastCloseButton:!0,pauseOnHover:B.pauseOnHover!==void 0?B.pauseOnHover:W.toastPauseOnHover!==void 0?W.toastPauseOnHover:!0,pauseOnFocusLoss:B.pauseOnFocusLoss!==void 0?B.pauseOnFocusLoss:!0,showProgress:B.showProgress!==void 0?B.showProgress:!0,remaining:B.timeout!==void 0?B.timeout:5e3,isPaused:!1,isHovered:!1,startTime:null,timerId:null};if(o.push(h),h.timeout){const x=setInterval(()=>{const D=o.find(M=>M.id===V);if(!D){clearInterval(x);return}D.isPaused||(D.remaining-=100,D.remaining<=0&&(clearInterval(x),u(V)))},100);h.timerId=x,f(h)}return V}function r(m){m.isHovered=!0,f(m)}function v(m){m.isHovered=!1,f(m)}function f(m){if(!m.timeout)return;const B=m.pauseOnHover&&m.isHovered||m.pauseOnFocusLoss&&!a.value;B&&!m.isPaused?m.isPaused=!0:!B&&m.isPaused&&(m.isPaused=!1)}function u(m){const B=o.findIndex(V=>V.id===m);if(B>-1){const V=o[B];V.timerId&&clearInterval(V.timerId),o.splice(B,1)}}function p(){o.forEach(m=>{m.timerId&&clearInterval(m.timerId)}),o.splice(0,o.length)}return n({addToast:d,dismiss:u,clearAll:p}),(m,B)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V,class:e.normalizeClass(["appsbd-app apbd-toast-container",[`apbd-toast-pos-${V}`]])},[e.createVNode(e.TransitionGroup,{name:"apbd-toast",tag:"div",class:"apbd-toast-list"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s(V),h=>(e.openBlock(),e.createElementBlock("div",{key:h.id,class:e.normalizeClass(["apbd-toast",[`apbd-toast-${h.type}`,`apbd-toast-design-${h.design}`]]),onMouseenter:x=>r(h),onMouseleave:x=>v(h)},[h.type!=="default"?(e.openBlock(),e.createElementBlock("div",Qi,[h.type==="success"?(e.openBlock(),e.createElementBlock("svg",Xi,[...B[0]||(B[0]=[e.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fill:"currentColor",opacity:"0.15"},null,-1),e.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",stroke:"currentColor","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{d:"M6.5 10l2.5 2.5L13.5 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):h.type==="error"?(e.openBlock(),e.createElementBlock("svg",Ji,[...B[1]||(B[1]=[e.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fill:"currentColor",opacity:"0.15"},null,-1),e.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",stroke:"currentColor","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{d:"M12.5 7.5l-5 5M7.5 7.5l5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):h.type==="warning"?(e.openBlock(),e.createElementBlock("svg",Zi,[...B[2]||(B[2]=[e.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fill:"currentColor",opacity:"0.15"},null,-1),e.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",stroke:"currentColor","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{d:"M10 6.5v4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),e.createElementVNode("circle",{cx:"10",cy:"13.5",r:"0.75",fill:"currentColor"},null,-1)])])):h.type==="info"?(e.openBlock(),e.createElementBlock("svg",_i,[...B[3]||(B[3]=[e.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fill:"currentColor",opacity:"0.15"},null,-1),e.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",stroke:"currentColor","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{d:"M10 9.5v4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),e.createElementVNode("circle",{cx:"10",cy:"6.75",r:"0.75",fill:"currentColor"},null,-1)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ec,[h.title?(e.openBlock(),e.createElementBlock("div",tc,e.toDisplayString(e.unref(k)(h.title)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",lc,e.toDisplayString(e.unref(k)(h.message)),1)]),h.closeButton?(e.openBlock(),e.createElementBlock("button",{key:1,class:"apbd-toast-close",onClick:x=>u(h.id),"aria-label":"Close"},[...B[4]||(B[4]=[e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12 4L4 12M4 4l8 8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])],8,nc)):e.createCommentVNode("",!0),h.showProgress&&h.timeout?(e.openBlock(),e.createElementBlock("div",ac,[e.createElementVNode("div",{class:"apbd-toast-progress-bar",style:e.normalizeStyle({"animation-duration":`${h.timeout}ms`,"animation-play-state":h.isPaused?"paused":"running"})},null,4)])):e.createCommentVNode("",!0)],42,Gi))),128))]),_:2},1024)],2))),128))]))}},rc={install(t){const n=document.createElement("div");n.id="apbd-toast-root",n.className="appsbd-app",document.body.appendChild(n);const a=e.createApp({render(){return e.h(oc,{ref:"toast"})}}).mount(n),i=(l,c={})=>a.$refs.toast.addToast(l,c);i.success=(l,c={})=>i(l,{...c,type:"success"}),i.error=(l,c={})=>i(l,{...c,type:"error"}),i.warning=(l,c={})=>i(l,{...c,type:"warning"}),i.info=(l,c={})=>i(l,{...c,type:"info"}),i.dismiss=l=>{a.$refs.toast.dismiss(l)},i.clear=()=>{a.$refs.toast.clearAll()},t.config.globalProperties.$toast=i}},sc=[Wi,rc];function ic(t){sc.forEach(n=>{t.use(n)})}const cc={install(t){ic(t),t.directive("tooltip",It)}};exports.AbAvatar=En;exports.AbBadge=la;exports.AbButton=le;exports.AbCard=Wt;exports.AbCarousel=hr;exports.AbColorPicker=fo;exports.AbConfirmPopover=Ds;exports.AbCustomField=io;exports.AbDarkModeToggler=ds;exports.AbDateTimePicker=xe;exports.AbEasyModal=As;exports.AbField=is;exports.AbFileUploader=bo;exports.AbFilterPanel=Jo;exports.AbFormCheck=ze;exports.AbImageRadioInput=lr;exports.AbInputField=Ce;exports.AbInputTag=wt;exports.AbKbd=dr;exports.AbKbdGroup=fr;exports.AbMainLayout=Ei;exports.AbModal=mt;exports.AbMultiSelect=$e;exports.AbNumberField=jl;exports.AbPinInput=so;exports.AbPopover=Me;exports.AbPricingCard=ei;exports.AbPricingContainer=ai;exports.AbPricingTable=Bi;exports.AbProgressbar=ol;exports.AbRadioInput=ze;exports.AbScrollbar=Bt;exports.AbSettingsForm=Fn;exports.AbSideMenuItem=Na;exports.AbSidebar=fa;exports.AbSkeleton=cr;exports.AbSlider=Fa;exports.AbTab=Tn;exports.AbTable=sr;exports.AbTabs=Mn;exports.AbToggle=et;exports.AbTooltip=yr;exports.AbWizard=as;exports.AbWizardStep=ss;exports.AppsbdUIConfigure=Ft;exports.ObjectToFormData=Mt;exports.abAllRules=Ai;exports.abCreateGettext=rl;exports.abSortParam=Ri;exports.abSrcParam=Oi;exports.calculateTax=Ti;exports.default=cc;exports.emitterObj=ji;exports.formatCurrency=Mi;exports.globalConfig=W;exports.hideAllPopovers=Rl;exports.initTranslate=ft;exports.popoverManager=He;exports.slugify=Di;exports.translateGetMsg=k;exports.translateGettext=fe;exports.useAlert=$i;exports.useFileValidator=Ct;exports.useResponsive=zi;exports.useTheme=Vt;exports.useToast=St;
|
|
201
|
+
*/const vb=we("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),pb=["for"],mb={key:0,class:"input-group-text left"},gb={key:1,class:"input-group-text left"},yb={key:3,class:"input-group-text right"},bb={key:5,class:"input-group-text right"},_b={key:1,class:"form-text"},wb={name:"AbInputField",inheritAttrs:!1,components:{Field:je.Field,ErrorMessage:je.ErrorMessage,Eye:ic,EyeOff:ac},props:{modelValue:{default:null},label:{type:String,default:""},placeholder:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:""},isCodeInput:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)},rules:"",containerClass:{type:String,default:void 0},hints:{type:String,default:""},prefix:{type:String,default:""},postfix:{type:String,default:""},maxlength:{default:null},isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1},passIconPosition:{type:String,default:"right",validator:t=>["left","right"].includes(t)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:t=>["left","right"].includes(t)}},data(){return{isPass:!1,showPassword:!1,uniqueId:`input_${Date.now()}_${Math.random().toString(36).slice(2,8)}`}},computed:{effectiveContainerClass(){return this.containerClass!==void 0&&this.containerClass!==null?this.containerClass:te.inputContainerClass??""},effectiveSize(){return this.size!==void 0&&this.size!==null?this.size:te.size??"md"},effectiveIconPosition(){return this.iconPosition!==void 0&&this.iconPosition!==null?this.iconPosition:te.iconPosition??"right"},generatedName(){return this.name||`input_${this.$.uid||this.uniqueId}`},internalValue:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},dynamicType(){return this.isPass?this.showPassword?"text":"password":this.type},dynamicIconBorder(){return!this.$slots.prefix&&!this.$slots.postfix&&!this.$slots.icon&&!this.isPass?"":this.isLeftIconBorder?"input-group-text-border-right-0 ":this.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"}},mounted(){if(this.type=="password"&&(this.isPass=!0),this.hasDropdown){const t=this.$el.querySelector('[data-bs-toggle="dropdown"]');t&&new D1.Dropdown(t)}},methods:{passVisibility(){this.internalValue&&(this.showPassword=!this.showPassword)}}},pr=Object.assign(wb,{setup(t){return(e,r)=>{var n,a,i,s,l,u,c,f,d,h,v,p,g;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([[e.effectiveContainerClass,e.dynamicIconBorder],"apbd-input-container"])},[(t.label||e.$slots.label)&&!t.isHideLabel?(o.openBlock(),o.createElementBlock("label",{key:0,class:"form-label",for:(n=e.$attrs)==null?void 0:n.id},[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])],8,pb)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass({"input-group":((a=e.$slots)==null?void 0:a.prefix)||((i=e.$slots)==null?void 0:i.postfix)||((s=e.$slots)==null?void 0:s.icon)||t.prefix||t.postfix||t.type=="password"})},[(l=e.$slots)!=null&&l.icon&&e.effectiveIconPosition==="left"?(o.openBlock(),o.createElementBlock("span",mb,[o.renderSlot(e.$slots,"icon")])):o.createCommentVNode("",!0),(u=e.$slots)!=null&&u.prefix||t.prefix?(o.openBlock(),o.createElementBlock("span",gb,[o.renderSlot(e.$slots,"prefix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.prefix)),1)])])):o.createCommentVNode("",!0),e.isPass&&t.passIconPosition==="left"?(o.openBlock(),o.createElementBlock("span",{key:2,class:"input-group-text pass-icon left",onClick:r[0]||(r[0]=(...m)=>e.passVisibility&&e.passVisibility(...m))},[e.showPassword?o.renderSlot(e.$slots,"showPasswordIcon",{key:0},()=>[o.createVNode(o.unref(ic))]):o.createCommentVNode("",!0),e.showPassword?o.createCommentVNode("",!0):o.renderSlot(e.$slots,"hidePasswordIcon",{key:1},()=>[o.createVNode(o.unref(ac))])])):o.createCommentVNode("",!0),o.createVNode(o.unref(je.Field),{class:o.normalizeClass(["form-control",[(c=e.$attrs)==null?void 0:c.class,e.effectiveSize?`form-control-${e.effectiveSize}`:"",{"mega-input-field":t.isCodeInput}]]),disabled:(f=e.$attrs)==null?void 0:f.disabled,id:(d=e.$attrs)==null?void 0:d.id,as:(h=e.$attrs)==null?void 0:h.as,style:o.normalizeStyle((v=e.$attrs)==null?void 0:v.style),placeholder:o.unref($)(t.placeholder),label:o.unref($)(t.label??t.type),name:e.generatedName,value:t.modelValue,maxlength:t.maxlength,onInput:r[1]||(r[1]=m=>(e.$emit("input",m.target.value),e.$emit("update:modelValue",m))),onKeyup:r[2]||(r[2]=m=>e.$emit("keyup",m)),onKeydown:r[3]||(r[3]=m=>e.$emit("keydown",m)),onPaste:r[4]||(r[4]=m=>e.$emit("paste",m)),modelValue:e.internalValue,"onUpdate:modelValue":r[5]||(r[5]=m=>e.internalValue=m),rules:t.rules,type:e.dynamicType},null,8,["class","disabled","id","as","style","placeholder","label","name","value","maxlength","modelValue","rules","type"]),(p=e.$slots)!=null&&p.postfix||t.postfix?(o.openBlock(),o.createElementBlock("span",yb,[o.renderSlot(e.$slots,"postfix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.postfix)),1)])])):o.createCommentVNode("",!0),e.isPass&&t.passIconPosition==="right"?(o.openBlock(),o.createElementBlock("span",{key:4,class:"input-group-text pass-icon right",onClick:r[6]||(r[6]=(...m)=>e.passVisibility&&e.passVisibility(...m))},[e.showPassword?o.renderSlot(e.$slots,"showPasswordIcon",{key:0},()=>[o.createVNode(o.unref(ic))]):o.createCommentVNode("",!0),e.showPassword?o.createCommentVNode("",!0):o.renderSlot(e.$slots,"hidePasswordIcon",{key:1},()=>[o.createVNode(o.unref(ac))])])):o.createCommentVNode("",!0),(g=e.$slots)!=null&&g.icon&&e.effectiveIconPosition==="right"?(o.openBlock(),o.createElementBlock("span",bb,[o.renderSlot(e.$slots,"icon")])):o.createCommentVNode("",!0)],2),o.createVNode(o.unref(je.ErrorMessage),{name:e.generatedName,class:"apbd-v-error"},null,8,["name"]),t.hints||e.$slots.hints?(o.openBlock(),o.createElementBlock("div",_b,[o.renderSlot(e.$slots,"hints",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.hints)),1)])])):o.createCommentVNode("",!0)],2)}}}),Sb=["for"],xb={key:0,class:"input-group-text left"},Cb=["disabled"],kb=["disabled"],Tb={key:3,class:"input-group-text right"},Db={key:1,class:"form-text"},Eb={name:"AbNumberField",inheritAttrs:!1,components:{Field:je.Field,ErrorMessage:je.ErrorMessage,PlusIcon:mf,MinusIcon:Nm},data(){return{uniqueId:`input_${Date.now()}_${Math.random().toString(36).slice(2,8)}`}},props:{modelValue:{default:null},label:{type:String,default:""},placeholder:{type:String,default:""},name:{type:String,default:""},rules:"",containerClass:{type:String,default:"mb-3"},hints:{type:String,default:""},prefix:{type:String,default:""},postfix:{type:String,default:""},min:{type:[Number,String],default:null},max:{type:[Number,String],default:null},step:{type:[Number,String],default:1},showButtons:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1},isBorder:{type:Boolean,default:!1}},computed:{generatedName(){return this.name||`input_${this.$.uid||this.uniqueId}`},internalValue:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},dynamicIconBorder(){return!this.$slots.prefix&&!this.$slots.postfix&&!this.prefix&&!this.postfix&&!this.showButtons?"":this.isLeftIconBorder?"input-group-text-border-right-0 ":this.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"}},methods:{handleInput(t){let e=t.target.value;if(e===""){this.internalValue=null;return}let r=parseFloat(e);this.max!==null&&r>parseFloat(this.max)&&(r=parseFloat(this.max)),this.min!==null&&r<parseFloat(this.min)&&(r=parseFloat(this.min)),this.internalValue=r,this.$emit("input",r),this.$emit("update:modelValue",r)},increment(){const t=parseFloat(this.internalValue)||0,e=parseFloat(this.step)||1;let r=t+e;this.max!==null&&(r=Math.min(r,parseFloat(this.max))),this.internalValue=r},decrement(){const t=parseFloat(this.internalValue)||0,e=parseFloat(this.step)||1;let r=t-e;this.min!==null&&(r=Math.max(r,parseFloat(this.min))),this.internalValue=r}}},Mb=Object.assign(Eb,{setup(t){return(e,r)=>{var n,a,i,s,l,u,c,f,d,h;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([[t.containerClass,e.dynamicIconBorder,{"apbd-number-field-bordered":t.isBorder}],"apbd-input-container apbd-number-field"])},[t.label||e.$slots.label?(o.openBlock(),o.createElementBlock("label",{key:0,class:"form-label",for:((n=e.$attrs)==null?void 0:n.id)||e.generatedName},[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])],8,Sb)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass({"input-group":((a=e.$slots)==null?void 0:a.prefix)||((i=e.$slots)==null?void 0:i.postfix)||t.prefix||t.postfix||t.showButtons})},[(s=e.$slots)!=null&&s.prefix||t.prefix?(o.openBlock(),o.createElementBlock("span",xb,[o.renderSlot(e.$slots,"prefix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.prefix)),1)])])):o.createCommentVNode("",!0),t.showButtons?(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",class:"btn apbd-number-btn apbd-number-btn-minus input-group-text left",onClick:r[0]||(r[0]=(...v)=>e.decrement&&e.decrement(...v)),disabled:t.disabled||t.min!==null&&e.internalValue<=t.min},[o.createVNode(o.unref(Nm))],8,Cb)):o.createCommentVNode("",!0),o.createVNode(o.unref(je.Field),{class:o.normalizeClass(["form-control",[(l=e.$attrs)==null?void 0:l.class,{"apbd-number-input":!0}]]),disabled:(u=e.$attrs)==null?void 0:u.disabled,id:((c=e.$attrs)==null?void 0:c.id)||e.generatedName,as:(f=e.$attrs)==null?void 0:f.as,style:o.normalizeStyle((d=e.$attrs)==null?void 0:d.style),placeholder:o.unref($)(t.placeholder),label:o.unref($)(t.label??e.type),name:e.generatedName,value:t.modelValue,min:t.min,max:t.max,step:t.step,onInput:e.handleInput,onKeyup:r[1]||(r[1]=v=>e.$emit("keyup",v)),onKeydown:r[2]||(r[2]=v=>e.$emit("keydown",v)),onPaste:r[3]||(r[3]=v=>e.$emit("paste",v)),modelValue:e.internalValue,"onUpdate:modelValue":r[4]||(r[4]=v=>e.internalValue=v),rules:t.rules,type:"number"},null,8,["class","disabled","id","as","style","placeholder","label","name","value","min","max","step","onInput","modelValue","rules"]),t.showButtons?(o.openBlock(),o.createElementBlock("button",{key:2,type:"button",class:"btn apbd-number-btn apbd-number-btn-plus input-group-text right",onClick:r[5]||(r[5]=(...v)=>e.increment&&e.increment(...v)),disabled:t.disabled||t.max!==null&&e.internalValue>=t.max},[o.createVNode(o.unref(mf))],8,kb)):o.createCommentVNode("",!0),(h=e.$slots)!=null&&h.postfix||t.postfix?(o.openBlock(),o.createElementBlock("span",Tb,[o.renderSlot(e.$slots,"postfix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.postfix)),1)])])):o.createCommentVNode("",!0)],2),o.createVNode(o.unref(je.ErrorMessage),{name:e.generatedName,class:"apbd-v-error"},null,8,["name"]),t.hints||e.$slots.hints?(o.openBlock(),o.createElementBlock("div",Db,[o.renderSlot(e.$slots,"hints",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.hints)),1)])])):o.createCommentVNode("",!0)],2)}}});function Bm(t,e,r={}){const n=o.ref({position:"absolute",top:"0px",left:"0px"}),a=o.ref({arrow:{x:null,y:null}}),i=o.ref(o.unref(r.placement)||"bottom");let s=null,l=null;const u=()=>({placement:o.unref(r.placement)||"bottom",offset:o.unref(r.offset)||0,arrowElement:o.unref(r.arrowElement),arrowPadding:o.unref(r.arrowPadding)||0,shiftPadding:o.unref(r.shiftPadding)||8,flip:o.unref(r.flip)!==!1,autoPlacement:o.unref(r.autoPlacement),alignment:o.unref(r.alignment)}),c=async()=>{const d=o.unref(t),h=o.unref(e);if(!d||!h)return;await o.nextTick();const v=u(),p=d.getBoundingClientRect(),g=h.getBoundingClientRect(),m=h.offsetWidth||g.width,y=h.offsetHeight||g.height,b=window.scrollX||document.documentElement.scrollLeft,_=window.scrollY||document.documentElement.scrollTop;let w=v.placement;if(!w||w.startsWith("auto")){const A=p.top;w=window.innerHeight-p.bottom>A?"bottom":"top",v.alignment&&(w+="-"+v.alignment)}let[S,x]=w.split("-"),C=0,k=0;const D=Number(v.offset),E=(A,P)=>{let V,B;switch(A){case"top":V=p.left+p.width/2-m/2,B=p.top-y-D;break;case"bottom":V=p.left+p.width/2-m/2,B=p.bottom+D;break;case"left":V=p.left-m-D,B=p.top+p.height/2-y/2;break;case"right":V=p.right+D,B=p.top+p.height/2-y/2;break}return A==="top"||A==="bottom"?(P==="start"&&(V=p.left),P==="end"&&(V=p.right-m)):(A==="left"||A==="right")&&(P==="start"&&(B=p.top),P==="end"&&(B=p.bottom-y)),{x:V,y:B}};let T=E(S,x);if(C=T.x,k=T.y,v.flip){let A=!1;S==="top"&&k<0?(S="bottom",A=!0):S==="bottom"&&k+y>window.innerHeight?(S="top",A=!0):S==="left"&&C<0?(S="right",A=!0):S==="right"&&C+m>window.innerWidth&&(S="left",A=!0),A&&(T=E(S,x),C=T.x,k=T.y)}const M=v.shiftPadding;if(S==="top"||S==="bottom"?(C<M&&(C=M),C+m>window.innerWidth-M&&(C=window.innerWidth-m-M)):(S==="left"||S==="right")&&(k<M&&(k=M),k+y>window.innerHeight-M&&(k=window.innerHeight-y-M)),i.value=x?`${S}-${x}`:S,n.value={position:"absolute",left:`${C+b}px`,top:`${k+_}px`},v.arrowElement){const A=o.unref(v.arrowElement);if(A){const P=A.getBoundingClientRect(),V=A.offsetWidth||P.width,B=A.offsetHeight||P.height;let z=null,N=null;S==="top"||S==="bottom"?(z=p.left+p.width/2-C-V/2,z=Math.max(v.arrowPadding,Math.min(z,m-V-v.arrowPadding))):(S==="left"||S==="right")&&(N=p.top+p.height/2-k-B/2,N=Math.max(v.arrowPadding,Math.min(N,y-B-v.arrowPadding))),a.value={arrow:{x:z,y:N}}}}},f=()=>{s&&cancelAnimationFrame(s),s=requestAnimationFrame(()=>{c()})};return o.onMounted(()=>{r.whileElementsMounted&&(window.addEventListener("scroll",f,!0),window.addEventListener("resize",f),window.ResizeObserver&&(l=new ResizeObserver(()=>f()),o.unref(e)&&l.observe(o.unref(e)),o.unref(t)&&l.observe(o.unref(t)))),c()}),o.onUnmounted(()=>{r.whileElementsMounted&&(window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f),l&&l.disconnect()),s&&cancelAnimationFrame(s)}),o.watch(()=>o.unref(r.placement),()=>c()),o.watch(()=>o.unref(r.offset),()=>c()),{floatingStyles:n,middlewareData:a,placement:i,update:c}}const so=new Set,ds={register(t){so.add(t)},unregister(t){so.delete(t)},hideAll(){so.forEach(t=>{t.hide&&t.hide()})},get count(){return so.size}},Ab=()=>ds.hideAll(),Nb={class:"apbd-popover-inner"},$a={__name:"AbPopover",props:{placement:{type:String,default:"bottom"},offset:{type:[Number,String],default:8},gap:{type:[Number,String],default:null},disabled:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},arrowPadding:{type:Number,default:4},trigger:{type:[String,Array],default:"click"},autoHide:{type:Boolean,default:!0},contentClass:{type:String,default:""},referenceSelector:{type:String,default:null}},emits:["update:modelValue","show","hide"],setup(t,{expose:e,emit:r}){const n=t,a=r,i=T=>Array.isArray(n.trigger)?n.trigger.includes(T):n.trigger.split(" ").includes(T),s=o.ref(!1),l=o.ref(null),u=o.ref(null),c=o.ref(null),f=o.computed(()=>n.placement.startsWith("auto")),d=o.computed(()=>n.placement.split("-")[1]||void 0),h=o.ref(null),v=()=>{n.referenceSelector&&l.value?h.value=l.value.querySelector(n.referenceSelector)||l.value:h.value=l.value},{floatingStyles:p,middlewareData:g,placement:m,update:y}=Bm(h,u,{placement:o.computed(()=>f.value?void 0:n.placement),offset:o.computed(()=>Number(n.gap!==null?n.gap:n.offset)),arrowElement:c,arrowPadding:o.computed(()=>n.arrowPadding),flip:!0,autoPlacement:f,alignment:d,whileElementsMounted:!0});o.watch(s,T=>{T&&o.nextTick(()=>{v(),y()})});const b=()=>{n.disabled||(s.value?w():_())},_=()=>{C(),s.value=!0,a("show"),a("update:modelValue",!0),n.autoHide&&!i("manual")&&setTimeout(()=>{document.addEventListener("click",k)},0)},w=()=>{s.value=!1,a("hide"),a("update:modelValue",!1),document.removeEventListener("click",k)};let S=null;const x=()=>{S=setTimeout(()=>{w()},300)},C=()=>{S&&(clearTimeout(S),S=null)},k=T=>{if(!s.value)return;const M=T.target,A=l.value&&l.value.contains(M),P=u.value&&u.value.contains(M);!A&&!P&&w()},D={show:_,hide:w,toggle:b};o.onMounted(()=>{v(),ds.register(D)}),o.onUnmounted(()=>{document.removeEventListener("click",k),S&&clearTimeout(S),ds.unregister(D)});const E=o.computed(()=>{if(!g.value.arrow)return{};const{x:T,y:M}=g.value.arrow,A=m.value||"bottom",P={top:"bottom",right:"left",bottom:"top",left:"right"}[A.split("-")[0]];let V={};return P==="bottom"&&(V={borderTopColor:"transparent",borderLeftColor:"transparent"}),P==="top"&&(V={borderBottomColor:"transparent",borderRightColor:"transparent"}),P==="left"&&(V={borderTopColor:"transparent",borderRightColor:"transparent"}),P==="right"&&(V={borderBottomColor:"transparent",borderLeftColor:"transparent"}),{left:T!=null?`${T}px`:"",top:M!=null?`${M}px`:"",right:"",bottom:"",[P]:"-5px",...V}});return e(D),(T,M)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{class:"apbd-popover-trigger",ref_key:"reference",ref:l,onClick:M[0]||(M[0]=A=>i("click")?b():null),onMouseenter:M[1]||(M[1]=A=>i("hover")?_():null),onMouseleave:M[2]||(M[2]=A=>i("hover")?x():null),onFocus:M[3]||(M[3]=A=>i("focus")?_():null),onBlur:M[4]||(M[4]=A=>i("focus")?x():null),onTouchstart:M[5]||(M[5]=A=>i("touch")?_():null),onTouchend:M[6]||(M[6]=A=>i("touch")?x():null)},[o.renderSlot(T.$slots,"default")],544),(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[o.createVNode(o.Transition,{name:"apbd-popover-fade"},{default:o.withCtx(()=>[s.value?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"floating",ref:u,style:o.normalizeStyle(o.unref(p)),class:o.normalizeClass(["appsbd-app apbd-popover-content",t.contentClass]),role:"dialog",onMouseenter:M[7]||(M[7]=A=>i("hover")?C():null),onMouseleave:M[8]||(M[8]=A=>i("hover")?x():null)},[o.createElementVNode("div",Nb,[o.renderSlot(T.$slots,"content",{close:w,hide:w,show:_,toggle:b})]),t.arrow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"apbd-popover-arrow",ref_key:"floatingArrow",ref:c,style:o.normalizeStyle(E.value)},null,4)):o.createCommentVNode("",!0)],38)):o.createCommentVNode("",!0)]),_:3})]))],64))}},Bb={key:0,class:"form-label"},Vb=["for"],Ib={key:0,class:"input-img"},Lb=["src"],Pb={key:0,class:"form-check-label"},zb={key:1,class:"description-text"},Rb=["for"],Ob={key:1,class:"description-text"},$b={key:1,class:"help-text"},Na=Object.assign({inheritAttrs:!1},{__name:"AbFormCheck",props:o.mergeModels({label:null,rules:"",val:null,type:{default:"checkbox"},isInline:{type:Boolean,default:!1},options:{type:Array,default:[]},name:{type:String,default:""},limit:{type:Number,default:0},containerClass:{default:void 0},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl"].includes(t)},iconSize:{type:String,default:"24px"},iconGap:{type:String,default:"10px"},variant:{type:String,default:"default"}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const r=o.useAttrs(),n=o.useSlots(),a=o.useModel(t,"modelValue"),i=e;function s(){i("change",a.value)}const l=t,u=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,c=o.getCurrentInstance(),f=o.computed(()=>l.name||`formcheck_${(c==null?void 0:c.uid)||u}`),d=o.computed(()=>l.containerClass!==void 0&&l.containerClass!==null?l.containerClass:te.inputContainerClass??""),h=o.computed(()=>l.size!==void 0&&l.size!==null?l.size:te.size??"md"),v=o.computed(()=>l.variant==="card"||l.variant==="segmented"||l.variant==="pill"),p=o.ref(!1);function g(m){return p.value=!0,l.limit>1?Array.isArray(m)?[...m]:[]:m??""}return o.watch(()=>{l.val!==void 0&&l.val!==null&&(a.value===void 0||a.value===null||a.value===""||Array.isArray(a.value)&&a.value.length===0)&&(p.value||(a.value=g(l.val)))}),(m,y)=>{var b,_;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["apbd-checkbox",[d.value,v.value?"apbd-radio-input-container":"",t.variant==="segmented"?"apbd-radio-segmented":"",t.variant==="pill"?"apbd-radio-pill":""]]),style:o.normalizeStyle(v.value?`--apbd-radio-input-icon-size:${t.iconSize};--apbd-radio-input-icon-gap:${t.iconGap};`:"")},[t.label||(b=o.unref(n))!=null&&b.label?(o.openBlock(),o.createElementBlock("label",Bb,[o.renderSlot(m.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass([t.isInline?"inline":"",t.variant==="segmented"||t.variant==="pill"?"segmented-group":""])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.options,(w,S)=>{var x;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["form-check",o.unref(r).class]),key:S},[o.createVNode(o.unref(je.Field),{class:o.normalizeClass(["form-check-input",`form-check-input-${h.value}`]),type:t.type,rules:t.rules,id:`${f.value}-${w.val}-${S}`,name:f.value,disabled:(w==null?void 0:w.disable)||t.type==="checkbox"&&t.limit>0&&((x=a.value)==null?void 0:x.length)>=t.limit&&!a.value.includes(w.val),modelValue:a.value,"onUpdate:modelValue":y[0]||(y[0]=C=>a.value=C),value:w.val,onChange:s},null,8,["type","rules","class","id","name","disabled","modelValue","value"]),v.value?(o.openBlock(),o.createElementBlock("label",{key:0,class:"label-container",for:`${f.value}-${w.val}-${S}`},[w.img_src||w.icon||w.iconComponent||o.unref(n)[`input-img-${w.title}`]||o.unref(n)[`input-icon-${w.title}`]||o.unref(n)[`input-iconComponent-${w.title}`]?(o.openBlock(),o.createElementBlock("div",Ib,[o.renderSlot(m.$slots,`input-icon-${w.title}`,{},()=>[w.img_src?(o.openBlock(),o.createElementBlock("img",{key:0,src:w.img_src,alt:""},null,8,Lb)):o.createCommentVNode("",!0),w.icon?(o.openBlock(),o.createElementBlock("i",{key:1,class:o.normalizeClass(w.icon)},null,2)):o.createCommentVNode("",!0),w.iconComponent?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(w.iconComponent),{key:2})):o.createCommentVNode("",!0)])])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[w.title||o.unref(n)[`label-${w.title}`]?(o.openBlock(),o.createElementBlock("div",Pb,[o.renderSlot(m.$slots,`label-${w.title}`,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(w.title)),1)])])):o.createCommentVNode("",!0),w!=null&&w.description||o.unref(n)[`description-${w.title}`]?(o.openBlock(),o.createElementBlock("div",zb,[o.renderSlot(m.$slots,`description-${w.title}`,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(w.description)),1)])])):o.createCommentVNode("",!0)])],8,Vb)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["d-flex flex-column",!(w!=null&&w.description)&&!o.unref(n).description?"justify-content-center":""])},[w.title?(o.openBlock(),o.createElementBlock("label",{key:0,class:"form-check-label",for:`${f.value}-${w.val}-${S}`},o.toDisplayString(o.unref($)(w.title)),9,Rb)):o.createCommentVNode("",!0),w!=null&&w.description||o.unref(n).description?(o.openBlock(),o.createElementBlock("div",Ob,[o.renderSlot(m.$slots,"description",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(w.description)),1)])])):o.createCommentVNode("",!0)],2))],2)}),128))],2),o.createVNode(o.unref(je.ErrorMessage),{name:f.value,class:"apbd-v-error"},null,8,["name"]),(_=o.unref(n))!=null&&_.helptext?(o.openBlock(),o.createElementBlock("small",$b,[o.renderSlot(m.$slots,"help-text")])):o.createCommentVNode("",!0)],6)}}}),Fb={class:"apbd-date-time-container"},Hb=["for"],Gb={class:"datetime-target-container"},Wb={class:"placeholder-text"},Ub={key:1,class:"form-text"},Yb={class:"calendar-header"},Xb={key:0},qb={key:1},jb={key:2},Zb={key:0,class:"calendar-grid"},Kb=["onClick","onMouseenter","onMouseleave"],Qb={key:0,class:"cal-day-bg"},Jb={key:1,class:"cal-day-text"},e_={key:2,class:"today-marker"},t_={key:1,class:"calendar-grid-month"},r_=["onClick"],n_={key:2,class:"calendar-grid-year"},a_=["onClick"],i_={key:0,class:"time-picker-header"},o_={class:"time-picker-controls"},s_=["value"],l_=["value"],u_=["value"],c_=["value"],f_={class:"time-picker-actions"},d_=["onClick"],h_=["onClick"],v_=Object.assign({inheritAttrs:!1},{__name:"AbDateTimePicker",props:o.mergeModels({tooltip:null,modelValue:{default:null},label:{type:String,default:""},placeholder:{type:String,default:""},name:{type:String,default:""},rules:"",isRange:{type:Boolean,default:!1},containerClass:{type:String,default:void 0},hints:{type:String,default:""},isDisable:{type:Boolean,default:!1},visibility:{type:String,default:"click"},mask:{type:String,default:""},dataFormat:{type:String,default:void 0},displayFormat:{type:String,default:void 0},model_config:{type:Object,default:()=>({type:"string",mask:"YYYY-MM-DD"})},maxDate:{default:void 0},minDate:{default:void 0},disableDates:{default:()=>[]},showInInput:{type:Boolean,default:!0},monthNames:{type:Array,default:void 0},monthNamesShort:{type:Array,default:void 0},dayNames:{type:Array,default:void 0},formatDigit:{type:Function,default:void 0},rangeSeparator:{type:String,default:void 0},mode:{type:String,default:"date",validator:t=>["date","time","datetime"].includes(t)},is24Hour:{type:Boolean,default:void 0},minuteStep:{type:Number,default:1},isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)},defaultIconPosition:{type:String,default:"right",validator:t=>["left","right"].includes(t)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:t=>["left","right"].includes(t)}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=o.useModel(t,"modelValue"),r=o.useAttrs(),n=o.useSlots(),a=o.ref(null),i=t,s=["January","February","March","April","May","June","July","August","September","October","November","December"],l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],u=["S","M","T","W","T","F","S"],c=o.computed(()=>i.monthNames||te.monthNames||s),f=o.computed(()=>i.monthNamesShort||te.monthNamesShort||l),d=o.computed(()=>i.dayNames||te.dayNames||u),h=o.computed(()=>i.rangeSeparator||te.rangeSeparator||" ↔ "),v=o.computed(()=>i.is24Hour!==void 0&&i.is24Hour!==null?i.is24Hour:te.is24Hour??!1),p=o.computed(()=>i.dataFormat?i.dataFormat:i.mode==="datetime"?te.datetimeDataFormat||"YYYY-MM-DD HH:mm":i.mode==="time"?te.timeDataFormat||"HH:mm":te.dateDataFormat||"YYYY-MM-DD"),g=o.computed(()=>i.displayFormat?i.displayFormat:i.mode==="datetime"?te.datetimeDisplayFormat||"YYYY-MM-DD HH:mm":i.mode==="time"?te.timeDisplayFormat||"HH:mm":te.dateDisplayFormat||"YYYY-MM-DD"),m=[{title:"AM",val:"AM"},{title:"PM",val:"PM"}],y=O=>{const H=i.formatDigit||te.formatDigit;return!H||O===void 0||O===null?O:H(O)},b=o.computed(()=>i.containerClass!==void 0&&i.containerClass!==null?i.containerClass:te.inputContainerClass??""),_=o.computed(()=>i.size!==void 0&&i.size!==null?i.size:te.size??"md"),w=o.computed(()=>i.iconPosition!==void 0&&i.iconPosition!==null?i.iconPosition:te.iconPosition??"right");o.computed(()=>r.class&&r.class=="form-control-sm"?"input-group-sm":r.class&&r.class=="form-control-lg"?"input-group-lg":""),o.onErrorCaptured((O,H,ie)=>!1);const S=O=>O.toString().padStart(2,"0"),x=o.computed(()=>i.mode==="time"?"Select Time":i.mode==="datetime"?i.isRange?"Select Date Range":"Select Date & Time":i.isRange?"Select Date Range":"Select Date"),C=(O,H,ie)=>{if(!O&&!ie)return"";const Q=O||new Date(2e3,0,1),q=ie?ie.hour:0,pe=ie?ie.minute:0,ze=q===0?12:q>12?q-12:q,at=q>=12?"PM":"AM",$e={YYYY:Q.getFullYear(),YY:String(Q.getFullYear()).slice(-2),MMMM:c.value[Q.getMonth()],MMM:f.value[Q.getMonth()],MM:S(Q.getMonth()+1),M:Q.getMonth()+1,DD:S(Q.getDate()),D:Q.getDate(),HH:S(q),H:q,hh:S(ze),h:ze,mm:S(pe),m:pe,ss:"00",A:at,a:at.toLowerCase()},Be=["YYYY","YY","MMMM","MMM","MM","DD","HH","hh","mm","ss","M","D","H","h","m","A","a"];let Ze="",me=H;for(;me.length>0;){let Ke=null;for(const Fr of Be)if(me.startsWith(Fr)){Ke=Fr;break}Ke?(Ze+=$e[Ke],me=me.slice(Ke.length)):(Ze+=me[0],me=me.slice(1))}return Ze},k=(O,H)=>{if(!O||typeof O!="string")return null;if(O.match(/^\d{4}-\d{2}-\d{2}$/)){const Qe=O.split("-");if(Qe[0].length===4)return{date:new Date(parseInt(Qe[0],10),parseInt(Qe[1],10)-1,parseInt(Qe[2],10)),hour:0,minute:0}}const ie=["YYYY","YY","MMMM","MMM","MM","DD","HH","hh","mm","ss","M","D","H","h","m","A","a"],Q={YYYY:"\\d{4}",YY:"\\d{2}",MMMM:c.value.join("|"),MMM:f.value.join("|"),MM:"\\d{2}",M:"\\d{1,2}",DD:"\\d{2}",D:"\\d{1,2}",HH:"\\d{2}",H:"\\d{1,2}",hh:"\\d{2}",h:"\\d{1,2}",mm:"\\d{2}",m:"\\d{1,2}",ss:"\\d{2}",A:"AM|PM",a:"am|pm"},q=[];let pe=H;for(;pe.length>0;){let Qe=null;for(const Je of ie)if(pe.startsWith(Je)){Qe=Je;break}Qe?(q.push({type:"token",value:Qe}),pe=pe.slice(Qe.length)):(q.length>0&&q[q.length-1].type==="literal"?q[q.length-1].value+=pe[0]:q.push({type:"literal",value:pe[0]}),pe=pe.slice(1))}let ze="^";const at=[];for(const Qe of q)Qe.type==="literal"?ze+=Qe.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"):(ze+="("+Q[Qe.value]+")",at.push(Qe.value));ze+="$";const $e=O.match(new RegExp(ze,"i"));if(!$e)return null;let Be=new Date().getFullYear(),Ze=0,me=1,Ke=0,Fr=0,Tl=null;for(let Qe=1;Qe<=at.length;Qe++){const Je=at[Qe-1],zt=$e[Qe];Je==="YYYY"?Be=parseInt(zt,10):Je==="YY"?Be=2e3+parseInt(zt,10):Je==="MM"||Je==="M"?Ze=parseInt(zt,10)-1:Je==="MMMM"?Ze=c.value.findIndex(Dl=>Dl.toLowerCase()===zt.toLowerCase()):Je==="MMM"?Ze=f.value.findIndex(Dl=>Dl.toLowerCase()===zt.toLowerCase()):Je==="DD"||Je==="D"?me=parseInt(zt,10):Je==="HH"||Je==="H"||Je==="hh"||Je==="h"?Ke=parseInt(zt,10):Je==="mm"||Je==="m"?Fr=parseInt(zt,10):(Je==="A"||Je==="a")&&(Tl=zt.toUpperCase())}Tl==="PM"&&Ke<12&&(Ke+=12),Tl==="AM"&&Ke===12&&(Ke=0);const Dd=new Date(Be,Ze,me);return isNaN(Dd)?null:{date:Dd,hour:Ke,minute:Fr}},D=(O,H)=>{const ie=k(O,H);return ie?{hour:ie.hour,minute:ie.minute}:{hour:0,minute:0}},E=(O,H)=>O&&H&&O.getFullYear()===H.getFullYear()&&O.getMonth()===H.getMonth()&&O.getDate()===H.getDate(),T=o.computed(()=>{var H;if(!i.isRange)return null;const O=k((H=e.value)==null?void 0:H.start,p.value);return O?O.date:null}),M=o.computed(()=>{var H;if(!i.isRange)return null;const O=k((H=e.value)==null?void 0:H.end,p.value);return O?O.date:null}),A=o.computed(()=>{if(i.isRange)return null;const O=k(e.value,p.value);return O?O.date:null}),P=o.computed(()=>{var H,ie;let O="";if(i.isRange){const Q=k((H=e.value)==null?void 0:H.start,p.value),q=k((ie=e.value)==null?void 0:ie.end,p.value);Q&&q?O=`${C(Q.date,g.value,{hour:Q.hour,minute:Q.minute})}${h.value}${C(q.date,g.value,{hour:q.hour,minute:q.minute})}`:Q&&(O=`${C(Q.date,g.value,{hour:Q.hour,minute:Q.minute})}${h.value}...`)}else{const Q=k(e.value,p.value);Q&&(O=C(Q.date,g.value,{hour:Q.hour,minute:Q.minute}))}return y(O)});let V=new Date;T.value?V=T.value:A.value&&(V=A.value);const B=D(e.value,p.value),z=o.ref(B.hour),N=o.ref(B.minute),R=o.ref(B.hour>=12?"PM":"AM"),I=o.computed(()=>v.value?Array.from({length:24},(O,H)=>H):Array.from({length:12},(O,H)=>H+1)),G=o.computed(()=>{const O=[];for(let H=0;H<60;H+=i.minuteStep)O.push(H);return O}),F=()=>{if(v.value)return z.value;let O=z.value;return R.value==="PM"&&O<12&&(O+=12),R.value==="AM"&&O===12&&(O=0),O},J=O=>{const H={hour:F(),minute:N.value};if(i.mode==="time")e.value=C(null,p.value,H);else if(i.mode==="datetime"){const ie=k(e.value,p.value),Q=ie?ie.date:new Date;e.value=C(Q,p.value,H)}a.value&&a.value.hide?a.value.hide():O&&O()},le=O=>{const H=D(e.value,p.value);z.value=v.value?H.hour:H.hour===0?12:H.hour>12?H.hour-12:H.hour,N.value=H.minute,R.value=H.hour>=12?"PM":"AM",a.value&&a.value.hide?a.value.hide():O&&O()},X=o.ref(V.getMonth()),Y=o.ref(V.getFullYear()),be=o.ref(Math.floor(V.getFullYear()/12)*12),de=o.ref("date"),De=o.computed(()=>c.value[X.value]),Ee=o.computed(()=>be.value),K=o.computed(()=>be.value+11),ae=o.computed(()=>{const O=[];for(let H=be.value;H<be.value+12;H++)O.push(H);return O}),nt=()=>{de.value==="date"?de.value="month":de.value==="month"?(be.value=Math.floor(Y.value/12)*12,de.value="year"):de.value="date"},Ie=()=>{de.value==="date"?X.value===0?(X.value=11,Y.value--):X.value--:de.value==="month"?Y.value--:de.value==="year"&&(be.value-=12)},Ne=()=>{de.value==="date"?X.value===11?(X.value=0,Y.value++):X.value++:de.value==="month"?Y.value++:de.value==="year"&&(be.value+=12)},Ye=O=>{X.value=O,de.value="date"},Lt=O=>{Y.value=O,de.value="month"},Tr=o.ref(null),rt=o.ref("none"),ea=o.computed(()=>{const O=[],H=new Date(Y.value,X.value,1),ie=new Date(Y.value,X.value+1,0),Q=H.getDay(),q=ie.getDate();for(let $e=0;$e<Q;$e++)O.push({empty:!0});const pe=new Date;for(let $e=1;$e<=q;$e++){const Be=new Date(Y.value,X.value,$e);let Ze=!1;if(i.minDate&&Be<new Date(i.minDate)&&(Ze=!0),i.maxDate&&Be>new Date(i.maxDate)&&(Ze=!0),i.disableDates&&i.disableDates.length>0){for(const me of i.disableDates)if(me instanceof Date&&E(Be,me))Ze=!0;else if(typeof me=="string"&&C(Be,p.value)===me)Ze=!0;else if(me.repeat&&me.repeat.weekdays){const Ke=Be.getDay()+1;me.repeat.weekdays.includes(Ke)&&(Ze=!0)}}O.push({date:Be,dayNumber:$e,disabled:Ze,isToday:E(Be,pe),timestamp:Be.getTime()})}const at=(7-O.length%7)%7;for(let $e=0;$e<at;$e++)O.push({empty:!0});return O}),Pt=O=>{const H={"is-empty":!O.date,"is-disabled":O.disabled,"is-today":O.isToday};if(!O.date)return H;if(!i.isRange)H["is-selected"]=A.value&&E(A.value,O.date);else{const ie=T.value,Q=M.value,q=rt.value,pe=Tr.value,ze=ie&&E(O.date,ie);let at=!1,$e=!1,Be=Q;q==="selectingEnd"&&pe&&(pe.getTime()>ie.getTime()?Be=pe:Be=null),Be&&E(O.date,Be)&&(at=!0),ie&&Be&&O.timestamp>ie.getTime()&&O.timestamp<Be.getTime()&&($e=!0),ze&&!Be||ze&&Be&&E(ie,Be)?H["is-selected"]=!0:(ze&&(H["range-start"]=!0),at&&(H["range-end"]=!0),$e&&(H["in-range"]=!0))}return H},pn=(O,H)=>{if(!O.date||O.disabled)return;const ie=()=>{a.value&&a.value.hide?a.value.hide():H&&H(),de.value="date"};if(i.isRange){const Q=C(O.date,p.value);rt.value==="none"?(e.value={start:Q,end:Q},rt.value="selectingEnd"):rt.value==="selectingEnd"&&(O.timestamp<T.value.getTime()?e.value={start:Q,end:Q}:(e.value={start:e.value.start,end:Q},rt.value="none",Tr.value=null,ie()))}else{if(i.mode==="datetime"){const Q={hour:F(),minute:N.value};e.value=C(O.date,p.value,Q)}else e.value=C(O.date,p.value);i.mode!=="datetime"&&ie()}},Or=O=>{i.isRange&&rt.value==="selectingEnd"&&O.date&&!O.disabled&&(Tr.value=O.date)},$r=O=>{},qa=o.ref(!1),U=()=>{qa.value=!0},ne=()=>{qa.value=!1,rt.value==="selectingEnd"&&(rt.value="none",Tr.value=null)};return o.watch(e,O=>{if(O){if(i.isRange&&O.start){const H=k(O.start,p.value);H&&(X.value=H.date.getMonth(),Y.value=H.date.getFullYear())}else if(!i.isRange&&typeof O=="string"){const H=k(O,p.value);if(H&&(X.value=H.date.getMonth(),Y.value=H.date.getFullYear(),i.mode==="time"||i.mode==="datetime")){const ie=H.hour===0?12:H.hour>12?H.hour-12:H.hour;z.value=i.is24Hour?H.hour:ie,N.value=H.minute,R.value=H.hour>=12?"PM":"AM"}}}}),(O,H)=>{const ie=o.resolveDirective("translate");return o.openBlock(),o.createElementBlock("div",Fb,[o.createVNode($a,{ref_key:"popoverRef",ref:a,class:"datetime-popover-wrapper",trigger:"click",placement:"bottom",disabled:t.isDisable,offset:8,referenceSelector:t.showInInput?".calendar-trigger-input":".apbd-input-container",onHide:ne,onShow:U},{content:o.withCtx(({close:Q})=>[o.createElementVNode("div",{class:o.normalizeClass(["apbd-calendar-dropdown",{"time-only-dropdown":t.mode==="time"}]),onClick:H[4]||(H[4]=o.withModifiers(()=>{},["stop"]))},[t.mode!=="time"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",Yb,[o.createElementVNode("button",{type:"button",onClick:o.withModifiers(Ie,["stop"]),class:"cal-nav-btn"},[o.createVNode(o.unref(Mm),{class:"w-5 h-5","stroke-width":"2",style:{height:"20px"}})]),o.createElementVNode("button",{type:"button",onClick:o.withModifiers(nt,["stop"]),class:"cal-title-btn"},[de.value==="date"?(o.openBlock(),o.createElementBlock("span",Xb,o.toDisplayString(De.value)+" "+o.toDisplayString(y(Y.value)),1)):de.value==="month"?(o.openBlock(),o.createElementBlock("span",qb,o.toDisplayString(y(Y.value)),1)):de.value==="year"?(o.openBlock(),o.createElementBlock("span",jb,o.toDisplayString(y(Ee.value))+" - "+o.toDisplayString(y(K.value)),1)):o.createCommentVNode("",!0)]),o.createElementVNode("button",{type:"button",onClick:o.withModifiers(Ne,["stop"]),class:"cal-nav-btn"},[o.createVNode(o.unref(Am),{class:"w-5 h-5","stroke-width":"2",style:{height:"20px"}})])]),de.value==="date"?(o.openBlock(),o.createElementBlock("div",Zb,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(q,pe)=>(o.openBlock(),o.createElementBlock("div",{class:"cal-dow",key:pe},o.toDisplayString(q),1))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(ea.value,(q,pe)=>(o.openBlock(),o.createElementBlock("div",{key:pe,class:o.normalizeClass(["cal-day-cell",Pt(q)]),onClick:ze=>pn(q,Q),onMouseenter:ze=>Or(q),onMouseleave:ze=>$r()},[q.date?(o.openBlock(),o.createElementBlock("div",Qb)):o.createCommentVNode("",!0),q.date?(o.openBlock(),o.createElementBlock("span",Jb,o.toDisplayString(y(q.dayNumber)),1)):o.createCommentVNode("",!0),q.isToday&&!Pt(q)["is-selected"]&&!Pt(q)["range-start"]&&!Pt(q)["range-end"]?(o.openBlock(),o.createElementBlock("div",e_)):o.createCommentVNode("",!0)],42,Kb))),128))])):de.value==="month"?(o.openBlock(),o.createElementBlock("div",t_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(q,pe)=>(o.openBlock(),o.createElementBlock("button",{type:"button",key:pe,class:o.normalizeClass(["cal-month-cell",{"is-selected":X.value===pe}]),onClick:o.withModifiers(ze=>Ye(pe),["stop"])},o.toDisplayString(q),11,r_))),128))])):de.value==="year"?(o.openBlock(),o.createElementBlock("div",n_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(ae.value,q=>(o.openBlock(),o.createElementBlock("button",{type:"button",key:q,class:o.normalizeClass(["cal-year-cell",{"is-selected":Y.value===q}]),onClick:o.withModifiers(pe=>Lt(q),["stop"])},o.toDisplayString(y(q)),11,a_))),128))])):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),t.mode==="time"||t.mode==="datetime"?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["time-picker-section",{"has-border-top":t.mode==="datetime"}])},[t.mode==="time"?(o.openBlock(),o.createElementBlock("div",i_,"Select Time")):o.createCommentVNode("",!0),o.createElementVNode("div",o_,[o.createElementVNode("select",{class:"time-select",value:z.value,onChange:H[1]||(H[1]=q=>z.value=parseInt(q.target.value))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,q=>(o.openBlock(),o.createElementBlock("option",{key:q,value:q},o.toDisplayString(y(S(q))),9,l_))),128))],40,s_),H[5]||(H[5]=o.createElementVNode("span",{class:"time-colon"},":",-1)),o.createElementVNode("select",{class:"time-select",value:N.value,onChange:H[2]||(H[2]=q=>N.value=parseInt(q.target.value))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(G.value,q=>(o.openBlock(),o.createElementBlock("option",{key:q,value:q},o.toDisplayString(y(S(q))),9,c_))),128))],40,u_),v.value?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(Na,{key:0,containerClass:"mb-0",modelValue:R.value,"onUpdate:modelValue":H[3]||(H[3]=q=>R.value=q),options:m,type:"radio",variant:"segmented",size:"xs",name:t.name+"_ampm",isInline:!0,class:"ampm-radio-toggle"},null,8,["modelValue","name"]))]),o.createElementVNode("div",f_,[o.withDirectives((o.openBlock(),o.createElementBlock("button",{type:"button",class:"time-btn-cancel",onClick:o.withModifiers(q=>le(Q),["stop"])},[...H[6]||(H[6]=[o.createTextVNode("Cancel",-1)])],8,d_)),[[ie]]),o.withDirectives((o.openBlock(),o.createElementBlock("button",{type:"button",class:"time-btn-apply",onClick:o.withModifiers(q=>J(Q),["stop"])},[...H[7]||(H[7]=[o.createTextVNode("Apply",-1)])],8,h_)),[[ie]])])],2)):o.createCommentVNode("",!0)],2)]),default:o.withCtx(()=>[o.renderSlot(O.$slots,"picker-container",{isRange:t.isRange,showInInput:"showInInput",value:e.value},()=>{var Q,q,pe;return[t.showInInput?(o.openBlock(),o.createBlock(pr,{key:0,modelValue:P.value,readonly:"",class:o.normalizeClass(["calendar-trigger-input",(Q=o.unref(r))==null?void 0:Q.class]),size:_.value,id:(q=o.unref(r))==null?void 0:q.id,label:t.label,isHideLabel:t.isHideLabel,iconPosition:w.value,name:t.name,rules:t.rules,disabled:t.isDisable,hints:t.hints,placeholder:o.unref(r).placeholder||x.value,isLeftIconBorder:t.isLeftIconBorder,isRightIconBorder:t.isRightIconBorder,containerClass:b.value},o.createSlots({_:2},[o.unref(n).label?{name:"label",fn:o.withCtx(()=>[o.renderSlot(O.$slots,"label",{},void 0,!0)]),key:"0"}:void 0,o.unref(n).icon?{name:"icon",fn:o.withCtx(()=>[o.renderSlot(O.$slots,"icon",{},void 0,!0)]),key:"1"}:void 0,o.unref(n).prefix||t.defaultIconPosition==="left"?{name:"prefix",fn:o.withCtx(()=>[o.renderSlot(O.$slots,"prefix",{},()=>[t.defaultIconPosition==="left"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[t.mode==="time"?(o.openBlock(),o.createBlock(o.unref(Bd),{key:0,class:"w-5 h-5",style:{height:"18px"}})):(o.openBlock(),o.createBlock(o.unref(Ad),{key:1,class:"w-5 h-5",style:{height:"18px"}}))],64)):o.createCommentVNode("",!0)],!0)]),key:"2"}:void 0,o.unref(n).postfix||t.defaultIconPosition==="right"?{name:"postfix",fn:o.withCtx(()=>[o.renderSlot(O.$slots,"postfix",{},()=>[t.defaultIconPosition==="right"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[t.mode==="time"?(o.openBlock(),o.createBlock(o.unref(Bd),{key:0,class:"w-5 h-5",style:{height:"18px"}})):(o.openBlock(),o.createBlock(o.unref(Ad),{key:1,class:"w-5 h-5",style:{height:"18px"}}))],64)):o.createCommentVNode("",!0)],!0)]),key:"3"}:void 0,o.unref(n).hints?{name:"hints",fn:o.withCtx(()=>[o.renderSlot(O.$slots,"hints",{},void 0,!0)]),key:"4"}:void 0]),1032,["modelValue","class","size","id","label","isHideLabel","iconPosition","name","rules","disabled","hints","placeholder","isLeftIconBorder","isRightIconBorder","containerClass"])):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(b.value)},[t.label||o.unref(n).label?(o.openBlock(),o.createElementBlock("label",{key:0,class:"form-label",for:(pe=o.unref(r))==null?void 0:pe.id},[o.renderSlot(O.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)],!0)],8,Hb)):o.createCommentVNode("",!0),o.createVNode(o.unref(je.Field),{type:"hidden",modelValue:e.value,"onUpdate:modelValue":H[0]||(H[0]=ze=>e.value=ze),name:t.name,rules:t.rules},null,8,["modelValue","name","rules"]),o.createElementVNode("div",Gb,[o.renderSlot(O.$slots,"picker",{isRange:t.isRange,value:e.value},()=>{var ze,at;return[P.value?(o.openBlock(),o.createBlock(Le,{key:0,type:"button",class:o.normalizeClass(["btn-outline-secondary",(ze=o.unref(r))==null?void 0:ze.class]),size:_.value},{default:o.withCtx(()=>[o.unref(n).icon?o.renderSlot(O.$slots,"icon",{key:0},void 0,!0):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(P.value)+" ",1),o.unref(n).resetIcon?o.renderSlot(O.$slots,"resetIcon",{key:1},void 0,!0):o.createCommentVNode("",!0)]),_:3},8,["class","size"])):(o.openBlock(),o.createBlock(Le,{key:1,type:"button",class:o.normalizeClass(["btn-outline-secondary",(at=o.unref(r))==null?void 0:at.class]),size:_.value},{default:o.withCtx(()=>[o.unref(n).icon?o.renderSlot(O.$slots,"icon",{key:0},void 0,!0):o.createCommentVNode("",!0),o.createElementVNode("span",Wb,o.toDisplayString(o.unref($)(x.value)),1)]),_:3},8,["class","size"]))]},!0)]),o.createVNode(o.unref(je.ErrorMessage),{name:O.generatedName,class:"apbd-v-error"},null,8,["name"]),t.hints||o.unref(n).hints?(o.openBlock(),o.createElementBlock("div",Ub,[o.renderSlot(O.$slots,"hints",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.hints)),1)],!0)])):o.createCommentVNode("",!0)],2))]},!0)]),_:3},8,["disabled","referenceSelector"])])}}}),Jr=gt(v_,[["__scopeId","data-v-72cec652"]]),p_=["src","alt"],m_={key:2,class:"avatar-add"},g_=["disabled"],y_=Object.assign({inheritAttrs:!1},{__name:"AbAvatar",props:{src:{default:""},alt:{default:""},variant:{type:String,default:"image"},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)},isActive:{type:Boolean,default:!1},isVerified:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},setup(t){const e=o.useAttrs(),r=t,n=o.computed(()=>r.size!==void 0&&r.size!==null?r.size:te.size??"md");return(a,i)=>{var s;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["apbd-avatar",[(s=o.unref(e))==null?void 0:s.class,`avatar-${n.value}`,{active:t.isActive,verified:t.isVerified,disabled:t.isDisabled}]])},[t.variant==="image"&&t.src?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.src,alt:t.alt},null,8,p_)):t.variant==="image"&&!t.src?(o.openBlock(),o.createBlock(o.unref(vb),{key:1,class:"icon-avatar"})):t.variant==="add"?(o.openBlock(),o.createElementBlock("label",m_,[o.createVNode(o.unref(mf)),o.createElementVNode("input",{type:"file",disabled:t.isDisabled,hidden:"",accept:"image/*",onChange:i[0]||(i[0]=l=>a.fileSelected(l))},null,40,g_)])):o.createCommentVNode("",!0),o.renderSlot(a.$slots,"default"),t.isVerified?(o.openBlock(),o.createBlock(o.unref(rb),{key:3})):o.createCommentVNode("",!0)],2)}}}),b_=["href","onClick"],__={key:0,class:"me-1"},w_=Object.assign({inheritAttrs:!1},{__name:"AbTabs",props:{tabContainerClass:{type:String},navContainerClass:{type:String},tabDetailsClass:{type:String},navClass:{type:String,default:"nav-pills"},tabClass:{type:String,default:""},isRouteMode:{type:Boolean,default:!1}},setup(t){const e=t,r=o.ref([]),n=o.useAttrs();function a(l){r.value.push(l)}o.provide("registerTab",a),o.provide("isRouteMode",e.isRouteMode),o.provide("tabClass",e.tabClass);function i(){const l=r.value[0];!r.value.some(u=>u.isActive)&&l&&(l.isActive=!0)}function s(l,u){l.preventDefault(),l.stopPropagation(),r.value.forEach(c=>{c.isActive=c===u})}return o.provide("selectTab",s),o.onMounted(()=>{i()}),(l,u)=>{const c=o.resolveComponent("translate"),f=o.resolveComponent("router-link"),d=o.resolveComponent("router-view");return o.openBlock(),o.createElementBlock("div",o.normalizeProps(o.guardReactiveProps(o.unref(n))),[o.createElementVNode("div",{class:o.normalizeClass(t.navContainerClass)},[o.createElementVNode("ul",{class:o.normalizeClass(["apbd-tab-nav nav w-100",t.navClass])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,h=>(o.openBlock(),o.createElementBlock("li",{key:h.name,class:"nav-item"},[t.isRouteMode&&(h!=null&&h.to)?(o.openBlock(),o.createBlock(f,{key:0,class:o.normalizeClass([t.tabClass,"nav-link"]),to:h==null?void 0:h.to},{default:o.withCtx(()=>[o.createVNode(c,null,{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.title),1)]),_:2},1024)]),_:2},1032,["class","to"])):(o.openBlock(),o.createElementBlock("a",{key:1,href:h.href,class:o.normalizeClass(["nav-link",t.tabClass+" "+(h!=null&&h.isActive?"ab-active":"")]),onClick:v=>s(v,h)},[h.icon?(o.openBlock(),o.createElementBlock("span",__,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(h.icon)))])):o.createCommentVNode("",!0),o.createVNode(c,null,{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.title),1)]),_:2},1024)],10,b_))]))),128))],2)],2),o.createElementVNode("div",{class:o.normalizeClass(t.tabDetailsClass)},[o.renderSlot(l.$slots,"default"),t.isRouteMode?(o.openBlock(),o.createBlock(d,{key:0})):o.createCommentVNode("",!0)],2)],16)}}}),S_={key:0},x_={__name:"AbTab",props:{title:{required:!0},selected:{default:!1},to:{default:null}},setup(t){const e=t,r=o.ref(!1),n=o.ref(""),i=o.getCurrentInstance().slots.icon,s=o.inject("registerTab"),l=o.inject("isRouteMode");return o.inject("tabs"),o.onMounted(()=>{if(r.value=e.selected,n.value="tab-"+Math.random().toString(36).substr(2,5),s){if(l&&!(e!=null&&e.to))return;s({name:n.value,title:e.title,href:"#"+n.value,icon:i,to:e.to,isActive:r})}}),(u,c)=>r.value&&!o.unref(l)?(o.openBlock(),o.createElementBlock("div",S_,[o.renderSlot(u.$slots,"default")])):o.createCommentVNode("",!0)}},C_={name:"AbForm",components:{Form:je.Form},inject:{wizard:{from:"AbWizard",default:null},wizardStep:{from:"AbWizardStep",default:null}},props:{onSubmit:{type:Function,default:()=>{}}},data(){return{is_sending:!1}},mounted(){this.wizard&&this.wizardStep&&this.wizard.registerStepValidator(this.wizardStep.id,async()=>{if(this.$refs["main-form"]){const{valid:t}=await this.$refs["main-form"].validate();if(!t)return!1}this.is_sending=!0;try{if(this.onSubmit&&typeof this.onSubmit=="function"&&await this.onSubmit()===!1)return this.is_sending=!1,!1}catch(t){return console.error("[AbSettingsForm] Form Submission failed during Wizard transition:",t),this.is_sending=!1,!1}return this.is_sending=!1,!0})},methods:{async onFormSubmit(){this.is_sending=!0,this.onSubmit&&typeof this.onSubmit=="function"&&await this.onSubmit(),this.is_sending=!1}}};function k_(t,e,r,n,a,i){const s=o.resolveComponent("Form");return o.openBlock(),o.createBlock(s,{ref:"main-form",onSubmit:i.onFormSubmit,class:o.normalizeClass(["apbd-settings-form needs-validation",a.is_sending?"apbd-form-sending":""])},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},8,["onSubmit","class"])}const T_=gt(C_,[["render",k_]]),D_=["for"],E_=["id","name","disabled","true-value","false-value"],M_=["for"],A_={key:1,class:"description-text"},N_={key:1,class:"form-text"},gf=Object.assign({inheritAttrs:!1},{__name:"AbToggle",props:o.mergeModels({label:null,val:{default:"N"},name:{type:String,default:""},containerClass:{type:String,default:void 0},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl"].includes(t)},trueValue:{default:void 0},falseValue:{default:void 0},title:null,description:null,hints:null},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=o.useAttrs(),r=o.useSlots(),n=o.useModel(t,"modelValue"),a=t,i=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,s=o.getCurrentInstance(),l=o.computed(()=>a.name||`toggle_${(s==null?void 0:s.uid)||i}`),u=o.computed(()=>a.containerClass!==void 0&&a.containerClass!==null?a.containerClass:te.inputContainerClass??""),c=o.computed(()=>a.trueValue!==void 0&&a.trueValue!==null?a.trueValue:te.trueValue??"Y"),f=o.computed(()=>a.falseValue!==void 0&&a.falseValue!==null?a.falseValue:te.falseValue??"N"),d=o.computed(()=>a.size!==void 0&&a.size!==null?a.size:te.size??"md");function h(){n.value||(n.value=a.val)}return o.onMounted(()=>{h()}),(v,p)=>{var g,m,y,b,_,w,S;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["apbd-toggle",u.value])},[t.label||(g=o.unref(r))!=null&&g.label?(o.openBlock(),o.createElementBlock("label",{key:0,class:"form-label",for:`${l.value}-${o.unref(e).id}`},[o.renderSlot(v.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])],8,D_)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["form-check form-switch",o.unref(e).class])},[o.withDirectives(o.createElementVNode("input",{class:o.normalizeClass(["form-check-input",`form-check-input-${d.value}`]),type:"checkbox",id:`${l.value}-${o.unref(e).id}`,name:l.value,disabled:(m=o.unref(e))==null?void 0:m.disabled,"onUpdate:modelValue":p[0]||(p[0]=x=>n.value=x),"true-value":c.value,"false-value":f.value},null,10,E_),[[o.vModelCheckbox,n.value]]),(y=o.unref(r))!=null&&y.descriptionContainer||(b=o.unref(r))!=null&&b.title||(_=o.unref(r))!=null&&_.description||t.description||t.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["d-flex flex-column",(w=o.unref(r))!=null&&w.description?"":"justify-content-center"])},[o.renderSlot(v.$slots,"descriptionContainer",{},()=>{var x,C;return[(x=o.unref(r))!=null&&x.title||t.title?(o.openBlock(),o.createElementBlock("label",{key:0,class:"form-check-label",for:`${l.value}-${o.unref(e).id}`},[o.renderSlot(v.$slots,"title",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.title)),1)])],8,M_)):o.createCommentVNode("",!0),(C=o.unref(r))!=null&&C.description||t.description?(o.openBlock(),o.createElementBlock("div",A_,[o.renderSlot(v.$slots,"description",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.description)),1)])])):o.createCommentVNode("",!0)]})],2)):o.createCommentVNode("",!0)],2),(S=o.unref(r))!=null&&S.hints||t.hints?(o.openBlock(),o.createElementBlock("div",N_,[o.renderSlot(v.$slots,"hints",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.hints)),1)])])):o.createCommentVNode("",!0)],2)}}}),B_=["for"],V_={key:0,class:"input-group-text left"},I_={key:1,class:"input-group-text left"},L_=["disabled","id"],P_={class:"multiselect-wrapper"},z_={class:"multiselect-tags"},R_={class:"multiselect-tag-wrapper"},O_=["onMousedown"],$_={key:0,class:"multiselect-tags-search-wrapper"},F_=["placeholder","onKeydown"],H_={ref:"dropdownRef",class:"multiselect-dropdown"},G_={class:"multiselect-options"},W_=["onMousedown","onMouseenter"],U_={key:2,class:"input-group-text right"},Y_={key:3,class:"input-group-text right"},X_={class:"form-text"},Vm=Object.assign({name:"AbInputTag",inheritAttrs:!1},{__name:"AbInputTag",props:{modelValue:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:""},name:{type:String,default:""},rules:{type:[String,Object],default:""},containerClass:{type:String,default:void 0},hints:{type:String,default:""},prefix:{type:String,default:""},postfix:{type:String,default:""},max:{type:Number,default:0},isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:t=>["left","right"].includes(t)}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=o.useSlots(),a=e,i=o.ref(null),s=o.ref(null),l=o.ref(null),u=o.ref(!1),c=o.ref(""),f=o.ref(-1),d=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,h=o.getCurrentInstance(),v=o.computed(()=>r.name||`input_${(h==null?void 0:h.uid)||d}`),p=o.computed(()=>r.containerClass!==void 0&&r.containerClass!==null?r.containerClass:te.inputContainerClass??""),g=o.computed(()=>r.size!==void 0&&r.size!==null?r.size:te.size??"md"),m=o.computed(()=>r.iconPosition!==void 0&&r.iconPosition!==null?r.iconPosition:te.iconPosition??"right"),y=o.computed({get:()=>r.modelValue,set:z=>{a("update:modelValue",z)}}),b=o.computed({get(){return!n.prefix&&!n.postfix&&!n.icon?"":r.isLeftIconBorder?"input-group-text-border-right-0 ":r.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"}}),_=o.computed(()=>r.max>0&&y.value.length>=r.max);o.watch(_,z=>{z&&(u.value=!1,c.value="")});function w(z){if(typeof z=="object")return z.title??z.val??String(z);const N=r.options.find(R=>typeof R=="object"?R.val===z:R===z);return N&&typeof N=="object"?N.title??N.val:String(z)}function S(z){const N=typeof z=="object"?z.val:z;return y.value.includes(N)}const x=o.computed(()=>{const z=c.value.toLowerCase();return r.options.filter(N=>{const R=typeof N=="object"?N.title??N.val??"":String(N),I=typeof N=="object"?N.val:N;return y.value.includes(I)?!1:z?R.toLowerCase().includes(z):!0})});function C(z){if(_.value)return;const N=typeof z=="object"?z.val:z;y.value.includes(N)||(y.value=[...y.value,N]),c.value="",o.nextTick(()=>{!_.value&&s.value?s.value.focus():l.value&&l.value.focus()})}function k(){if(_.value)return;const z=c.value.trim();if(z){if(f.value>=0&&f.value<x.value.length){C(x.value[f.value]);return}y.value.includes(z)||(y.value=[...y.value,z]),c.value=""}}function D(z){const N=[...y.value];N.splice(z,1),y.value=N}function E(){if(c.value===""&&y.value.length>0){const z=[...y.value];z.pop(),y.value=z}}function T(){u.value=!0,f.value=-1}function M(){setTimeout(()=>{u.value=!1,f.value=-1},200)}function A(){f.value=-1,u.value||(u.value=!0)}function P(z){if(_.value){l.value&&l.value.focus();return}s.value?s.value.focus():l.value&&l.value.focus(),u.value||(u.value=!0)}function V(z){switch(z.key){case"ArrowDown":z.preventDefault(),u.value&&x.value.length>0&&(f.value=Math.min(f.value+1,x.value.length-1));break;case"ArrowUp":z.preventDefault(),u.value&&(f.value=Math.max(f.value-1,0));break;case"Escape":case"Tab":u.value=!1;break}}function B(z){i.value&&!i.value.contains(z.target)&&(u.value=!1)}return o.onMounted(()=>document.addEventListener("mousedown",B)),o.onBeforeUnmount(()=>document.removeEventListener("mousedown",B)),(z,N)=>{var R,I,G,F,J,le,X,Y,be;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([[p.value,b.value],"apbd-input-tag-container"]),ref_key:"containerRef",ref:i},[(t.label||o.unref(n).label)&&!t.isHideLabel?(o.openBlock(),o.createElementBlock("label",{key:0,class:"form-label",for:(R=z.$attrs)==null?void 0:R.id},[o.renderSlot(z.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])],8,B_)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass({"input-group":((I=o.unref(n))==null?void 0:I.prefix)||((G=o.unref(n))==null?void 0:G.postfix)||((F=o.unref(n))==null?void 0:F.icon)||t.prefix||t.postfix||z.type=="password"})},[(J=o.unref(n))!=null&&J.icon&&m.value==="left"?(o.openBlock(),o.createElementBlock("span",V_,[o.renderSlot(z.$slots,"icon")])):o.createCommentVNode("",!0),(le=o.unref(n))!=null&&le.prefix||t.prefix?(o.openBlock(),o.createElementBlock("span",I_,[o.renderSlot(z.$slots,"prefix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.prefix)),1)])])):o.createCommentVNode("",!0),o.createVNode(o.unref(je.Field),{label:t.label,name:v.value,id:(X=z.$attrs)==null?void 0:X.id,rules:t.rules,modelValue:y.value,"onUpdate:modelValue":N[1]||(N[1]=de=>y.value=de)},{default:o.withCtx(()=>{var de,De,Ee,K,ae,nt,Ie;return[o.createElementVNode("div",{ref_key:"multiselectRef",ref:l,class:o.normalizeClass(["multiselect",`multiselect-${g.value}`,(de=z.$attrs)==null?void 0:de.class,{"form-control":((De=o.unref(n))==null?void 0:De.prefix)||((Ee=o.unref(n))==null?void 0:Ee.postfix)||t.prefix||t.postfix,"is-active":u.value,"is-disabled":(K=z.$attrs)==null?void 0:K.disabled}]),disabled:(ae=z.$attrs)==null?void 0:ae.disabled,id:(nt=z.$attrs)==null?void 0:nt.id,style:o.normalizeStyle((Ie=z.$attrs)==null?void 0:Ie.style),tabindex:"0",onMousedown:o.withModifiers(P,["prevent"]),onKeydown:V},[o.createElementVNode("div",P_,[o.createElementVNode("div",z_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(y.value,(Ne,Ye)=>(o.openBlock(),o.createElementBlock("span",{key:Ne+"-"+Ye,class:"multiselect-tag"},[o.createElementVNode("span",R_,o.toDisplayString(o.unref($)(w(Ne))),1),o.createElementVNode("span",{class:"multiselect-tag-remove",onMousedown:o.withModifiers(Lt=>D(Ye),["prevent","stop"])},[...N[2]||(N[2]=[o.createElementVNode("span",{class:"multiselect-tag-remove-icon"},"×",-1)])],40,O_)]))),128)),_.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",$_,[o.withDirectives(o.createElementVNode("input",{ref_key:"searchInputRef",ref:s,"onUpdate:modelValue":N[0]||(N[0]=Ne=>c.value=Ne),class:"multiselect-tags-search",autocomplete:"off",placeholder:y.value.length===0?t.placeholder:"",onFocus:T,onBlur:M,onInput:A,onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(E,["delete"])]},null,40,F_),[[o.vModelText,c.value]])]))]),o.createElementVNode("div",{class:o.normalizeClass(["multiselect-caret",{"is-open":u.value}])},[...N[3]||(N[3]=[o.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{fill:"currentColor",d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"})],-1)])],2)]),o.withDirectives(o.createElementVNode("div",H_,[o.createElementVNode("ul",G_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,(Ne,Ye)=>(o.openBlock(),o.createElementBlock("li",{key:typeof Ne=="object"?Ne.val??Ye:Ne,class:o.normalizeClass(["multiselect-option",{"is-selected":S(Ne),"is-pointed":Ye===f.value}]),onMousedown:o.withModifiers(Lt=>C(Ne),["prevent"]),onMouseenter:Lt=>f.value=Ye},o.toDisplayString(typeof Ne=="object"?o.unref($)(Ne.title??Ne.val):o.unref($)(Ne)),43,W_))),128))])],512),[[o.vShow,u.value&&x.value.length>0]])],46,L_)]}),_:1},8,["label","name","id","rules","modelValue"]),(Y=o.unref(n))!=null&&Y.postfix||t.postfix?(o.openBlock(),o.createElementBlock("span",U_,[o.renderSlot(z.$slots,"postfix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.postfix)),1)])])):o.createCommentVNode("",!0),(be=o.unref(n))!=null&&be.icon&&m.value==="right"?(o.openBlock(),o.createElementBlock("span",Y_,[o.renderSlot(z.$slots,"icon")])):o.createCommentVNode("",!0)],2),o.createVNode(o.unref(je.ErrorMessage),{name:v.value,class:"apbd-v-error"},null,8,["name"]),o.createElementVNode("div",X_,[o.renderSlot(z.$slots,"hints",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.hints)),1)])])],2)}}}),q_=Object.assign({inheritAttrs:!1},{__name:"AbBadge",props:{size:{type:String,default:void 0,validator:t=>["sm","md","lg"].includes(t)},variant:{type:String,default:"primary",validator:t=>["primary","secondary","danger","warning","success","info"].includes(t)},isOutline:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},isAvatar:{type:Boolean,default:!1},isClose:{type:Boolean,default:!1},isAdd:{type:Boolean,default:!1},isRoundedPill:{type:Boolean,default:!1}},setup(t){const e=o.useAttrs();o.useSlots();const r=t,n=o.computed(()=>r.size!==void 0&&r.size!==null?r.size:te.size??"md");return(a,i)=>{var s;return o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["apbd-badge badge d-inline-flex align-items-center",[(s=o.unref(e))==null?void 0:s.class,{"rounded-pill":t.isRoundedPill,"badge-outline":t.isOutline,"dot-icon-badge":t.isDot,"avatar-icon-badge":t.isAvatar,"close-icon-badge":t.isClose,"add-icon-badge":t.isAdd,[`text-bg-${t.variant}`]:t.variant,[`badge-${n.value}`]:n.value}]])},[o.renderSlot(a.$slots,"default")],2)}}}),j_={__name:"AbScrollbar",props:{size:{type:String,default:"md",validator:t=>["sm","md","lg"].includes(t)},isHoverIncrease:{type:Boolean,default:!1},transparentTrack:{type:Boolean,default:!0},showAlways:{type:Boolean,default:!1}},emits:["scroll","scroll-start","scroll-end"],setup(t,{emit:e}){const r=e,n=o.ref(null),a=o.ref(!1),i=o.ref(0),s=o.ref(0),l=o.ref(!1),u=o.ref(!1),c=o.ref(!1);let f=0,d=0,h=null,v=null,p=null;const g=()=>{if(!n.value)return;const{clientHeight:w,scrollHeight:S,scrollTop:x}=n.value;if(S<=w){a.value=!1;return}a.value=!0;const C=w/S*w;i.value=Math.max(C,30);const k=S-w,D=w-i.value;s.value=x/k*D},m=w=>{if(u.value||g(),n.value){const{scrollTop:S,scrollHeight:x,clientHeight:C}=n.value,k=x-C,D=k>0?S/k:0,E=D*100,T=k-S,M=100-E,A={event:w,scrollTop:S,scrollHeight:x,clientHeight:C,scrollRatio:D,scrollPercentage:E,remainingPixels:T,remainingPercentage:M};r("scroll",A),S<=0?r("scroll-start",A):Math.ceil(S+C)>=x&&r("scroll-end",A)}else r("scroll",{event:w});c.value=!0,h&&clearTimeout(h),h=setTimeout(()=>{c.value=!1},1e3)},y=w=>{u.value=!0,f=w.type.includes("touch")?w.touches[0].clientY:w.clientY,d=s.value,document.addEventListener("mousemove",b),document.addEventListener("mouseup",_),document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",_)},b=w=>{if(!u.value||!n.value)return;w.type.includes("touch")&&w.preventDefault();const x=(w.type.includes("touch")?w.touches[0].clientY:w.clientY)-f,{clientHeight:C,scrollHeight:k}=n.value,D=C-i.value;let E=d+x;E<0&&(E=0),E>D&&(E=D),s.value=E;const T=k-C,M=E/D;n.value.scrollTop=M*T},_=()=>{u.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",_)};return o.onMounted(()=>{n.value&&(v=new ResizeObserver(()=>{g()}),v.observe(n.value),p=new MutationObserver(()=>{o.nextTick(()=>{g()})}),p.observe(n.value,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),g())}),o.onUnmounted(()=>{v&&n.value&&v.unobserve(n.value),p&&p.disconnect(),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_)}),(w,S)=>(o.openBlock(),o.createElementBlock("div",{class:"apbd-scrollbar",onMouseenter:S[0]||(S[0]=x=>l.value=!0),onMouseleave:S[1]||(S[1]=x=>l.value=!1)},[o.createElementVNode("div",{class:"apbd-scrollbar-view",ref_key:"scrollArea",ref:n,onScroll:m},[o.renderSlot(w.$slots,"default",{},void 0,!0)],544),o.withDirectives(o.createElementVNode("div",{class:o.normalizeClass(["apbd-scrollbar-track-y",[`size-${t.size}`,{"is-hover-increase":t.isHoverIncrease,"is-visible":l.value||u.value||t.showAlways||c.value,"is-transparent":t.transparentTrack,"is-always-hovered":t.showAlways}]])},[o.createElementVNode("div",{class:"apbd-scrollbar-thumb-y",style:o.normalizeStyle({height:i.value+"px",transform:`translateY(${s.value}px)`}),onMousedown:o.withModifiers(y,["stop","prevent"]),onTouchstart:o.withModifiers(y,["stop","prevent"])},null,36)],2),[[o.vShow,a.value]])],32))}},Im=gt(j_,[["__scopeId","data-v-7fa117a3"]]),Z_={class:"sidebar-header"},K_={class:"header-text"},Q_={key:0,class:"sidebar-search px-3 py-2"},J_={class:"position-relative"},ew={key:1,class:"sidebar-search-collapsed d-flex justify-content-center py-2"},tw={class:"text-muted d-flex align-items-center justify-content-center",style:{cursor:"pointer",width:"40px",height:"40px","border-radius":"8px"},title:"Search"},rw={class:"shadow-sm p-2",style:{width:"250px"}},nw={class:"position-relative"},aw={class:"sidebar-footer"},iw={__name:"AbSidebar",props:{appUniqueId:{type:String,default:"apbd"},hideSeperator:{type:Boolean,default:!1},mobileFullHeight:{type:Boolean,default:!1},enableSearch:{type:Boolean,default:!1},searchTargetClass:{type:String,default:"nav-item"}},setup(t){const e=o.inject("layoutState"),r=t,n=o.ref(!1),a=o.ref(!1),i=o.ref(""),s=o.ref(null),l=o.ref(null),u=()=>{a.value=window.innerWidth<576},c=o.computed(()=>r.mobileFullHeight&&a.value?!1:n.value),f=()=>{n.value=!n.value,v()},d=()=>{setTimeout(()=>{var m;(m=l.value)==null||m.focus()},100)},h=()=>{r.mobileFullHeight&&(e!=null&&e.toggleLeftSidebar)?e.toggleLeftSidebar(!1):f()},v=()=>{localStorage.setItem(r.appUniqueId+"_mn",n.value)},p=()=>{let m=localStorage.getItem(r.appUniqueId+"_mn");try{return m.toLowerCase()==="true"}catch{return!1}},g=()=>{if(!s.value)return;const m=i.value.toLowerCase().trim(),y=Array.from(s.value.children);y.forEach(_=>{var w;if(!_.classList.contains("section-title")&&_.classList.contains(r.searchTargetClass))if(!m)_.style.display="";else{const S=((w=_.textContent)==null?void 0:w.toLowerCase())||"";_.style.display=S.includes(m)?"":"none"}}),y.filter(_=>_.classList.contains("section-title")).forEach(_=>{if(!m){_.style.display="";return}let w=!1,S=_.nextElementSibling;for(;S&&!S.classList.contains("section-title");){if(S.classList.contains(r.searchTargetClass)&&S.style.display!=="none"){w=!0;break}S=S.nextElementSibling}_.style.display=w?"":"none"})};return o.onMounted(()=>{n.value=p(),u(),window.addEventListener("resize",u)}),o.onUnmounted(()=>{window.removeEventListener("resize",u)}),o.provide("isCollapsed",o.computed(()=>c.value)),o.provide("isMobileFullHeight",o.computed(()=>r.mobileFullHeight)),(m,y)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["sidebar",{collapsed:c.value,"hide-seperator":t.hideSeperator,"mobile-full-height":t.mobileFullHeight}])},[o.createElementVNode("div",Z_,[o.createElementVNode("span",K_,[o.renderSlot(m.$slots,"header",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)("System")),1)])]),o.createElementVNode("div",{class:"collapse-btn d-none d-sm-flex",onClick:f},[o.renderSlot(m.$slots,"collapse-icon",{},()=>[o.createVNode(o.unref(Ld))])]),o.createElementVNode("div",{class:"collapse-btn d-flex d-sm-none",onClick:h},[o.renderSlot(m.$slots,"collapse-icon",{},()=>[o.createVNode(o.unref(Ld))])])]),t.enableSearch&&!c.value?(o.openBlock(),o.createElementBlock("div",Q_,[o.createElementVNode("div",J_,[o.createVNode(o.unref(El),{class:"position-absolute top-50 translate-middle-y text-muted",size:15,style:{left:"10px"}}),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=b=>i.value=b),type:"text",class:"form-control form-control-sm shadow-none",style:{"padding-left":"32px"},placeholder:"Search menu...",onInput:g},null,544),[[o.vModelText,i.value]])])])):o.createCommentVNode("",!0),t.enableSearch&&c.value?(o.openBlock(),o.createElementBlock("div",ew,[o.createVNode($a,{trigger:"click",placement:"right-start",offset:15,onShow:d},{content:o.withCtx(()=>[o.createElementVNode("div",rw,[o.createElementVNode("div",nw,[o.createVNode(o.unref(El),{class:"position-absolute top-50 translate-middle-y text-muted",size:15,style:{left:"10px"}}),o.withDirectives(o.createElementVNode("input",{ref_key:"searchInputRef",ref:l,"onUpdate:modelValue":y[1]||(y[1]=b=>i.value=b),type:"text",class:"form-control form-control-sm shadow-none",style:{"padding-left":"32px"},placeholder:"Search menu...",onInput:g},null,544),[[o.vModelText,i.value]])])])]),default:o.withCtx(()=>[o.createElementVNode("div",tw,[o.createVNode(o.unref(El),{size:20})])]),_:1})])):o.createCommentVNode("",!0),o.createVNode(Im,null,{default:o.withCtx(()=>[o.createElementVNode("div",{class:"sidebar-body",ref_key:"sidebarBodyRef",ref:s},[o.renderSlot(m.$slots,"default")],512)]),_:3}),o.createElementVNode("div",aw,[o.renderSlot(m.$slots,"footer")])],2))}},ow={key:0,class:"section-title"},sw={key:1,class:"nav-item"},lw={class:"nav-left"},uw={class:"menu-text"},cw={class:"floating-submenu"},fw={key:0,class:"menu-text"},dw={class:"sub-menu"},hw=["href"],vw={class:"nav-left"},pw={class:"menu-text"},mw={class:"nav-left"},gw={class:"menu-text"},yw={key:2,class:"sub-menu"},bw=Object.assign({inheritAttrs:!1},{__name:"AbSideMenuItem",setup(t){const e=o.ref(!1),r=o.inject("isMobileFullHeight",o.ref(!1)),n=o.inject("layoutState",null),a=()=>{r.value&&window.innerWidth<576&&(n!=null&&n.toggleLeftSidebar)&&n.toggleLeftSidebar(!1)},i=()=>{f.value?e.value=!e.value:a()},s=o.inject("isCollapsed"),l=o.useSlots(),u=o.useAttrs(),c=o.computed(()=>{const{href:h,to:v,...p}=u;return p}),f=o.computed(()=>!!l.submenu),d=o.computed(()=>{var v;const h=(v=l.default)==null?void 0:v.call(l);return h?h.map(p=>typeof p.children=="string"?p.children:"").join("").trim():""});return(h,v)=>{var y,b,_,w;const p=o.resolveComponent("router-link"),g=o.resolveDirective("translate"),m=o.resolveDirective("tooltip");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(l).sectiontitle&&!o.unref(s)?(o.openBlock(),o.createElementBlock("div",ow,[o.renderSlot(h.$slots,"sectiontitle",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)("Undefined")),1)])])):o.createCommentVNode("",!0),o.unref(l).sectiontitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",sw,[f.value&&o.unref(s)?(o.openBlock(),o.createBlock($a,{key:0,gap:35,placement:"right-start",trigger:"hover",contentClass:"apbd-submenu-container"},{content:o.withCtx(()=>[o.createElementVNode("div",cw,[o.unref(s)?(o.openBlock(),o.createElementBlock("div",fw,[o.renderSlot(h.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)("Undefined")),1)])])):o.createCommentVNode("",!0),o.createElementVNode("div",dw,[o.renderSlot(h.$slots,"submenu")])])]),default:o.withCtx(()=>[o.createElementVNode("a",o.mergeProps({class:"nav-link-custom"},c.value),[o.createElementVNode("div",lw,[o.renderSlot(h.$slots,"icon",{},()=>[o.createVNode(o.unref(Ml))]),o.withDirectives((o.openBlock(),o.createElementBlock("span",uw,[o.renderSlot(h.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)("Undefined")),1)])])),[[g]])]),o.createVNode(o.unref(nc),{class:"sub-menu-icon","stroke-width":1})],16)]),_:3})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[(y=o.unref(u))!=null&&y.href||f.value?(o.openBlock(),o.createElementBlock("a",o.mergeProps({key:0,class:"nav-link-custom",href:(b=o.unref(u))!=null&&b.href&&!f.value?(_=o.unref(u))==null?void 0:_.href:null,onClick:i},c.value),[o.createElementVNode("div",vw,[o.renderSlot(h.$slots,"icon",{},()=>[o.createVNode(o.unref(Ml))]),o.withDirectives((o.openBlock(),o.createElementBlock("span",pw,[o.renderSlot(h.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)("Undefined")),1)])])),[[g]])]),f.value?(o.openBlock(),o.createBlock(o.unref(nc),{key:0,class:o.normalizeClass(["sub-menu-icon",{collapsed:e.value}]),"stroke-width":1},null,8,["class"])):o.createCommentVNode("",!0)],16,hw)):o.withDirectives((o.openBlock(),o.createBlock(p,o.mergeProps({key:1,class:"nav-link-custom",to:(w=o.unref(u))==null?void 0:w.to},c.value,{onClick:a}),{default:o.withCtx(()=>[o.createElementVNode("div",mw,[o.renderSlot(h.$slots,"icon",{},()=>[o.createVNode(o.unref(Ml))]),o.withDirectives((o.openBlock(),o.createElementBlock("span",gw,[o.renderSlot(h.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)("Undefined")),1)])])),[[g]])])]),_:3},16,["to"])),[[m,{content:o.unref(s)?o.unref($)(d.value):"",placement:"right"}]]),f.value&&e.value?(o.openBlock(),o.createElementBlock("div",yw,[o.renderSlot(h.$slots,"submenu")])):o.createCommentVNode("",!0)],64))]))],64)}}}),_w={key:0,class:"form-label"},ww={key:0,class:"apbd-slider-prefix"},Sw=["aria-valuemin","aria-valuemax","aria-valuenow"],xw={key:0,class:"apbd-slider-label"},Cw=["aria-valuemin","aria-valuemax","aria-valuenow","aria-label"],kw={key:0,class:"apbd-slider-label"},Tw={key:1,class:"apbd-slider-postfix"},Dw={key:1,class:"form-text"},Ew=Object.assign({inheritAttrs:!1},{__name:"AbSlider",props:{modelValue:{default:null},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},range:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["sm","md","lg"].includes(t)},showLabels:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{type:String,default:""},containerClass:{type:String,default:"mb-3"},hints:{type:String,default:""},formatLabel:{type:Function,default:t=>Math.round(t)+"%"}},emits:["update:modelValue"],setup(t,{emit:e}){const r=o.useSlots(),n=t,a=e,i=o.ref(null),s=o.ref(null),l=o.computed(()=>n.size!==void 0&&n.size!==null?n.size:te.size??"md"),u=o.computed(()=>{if(!n.range)return 0;const C=Array.isArray(n.modelValue)?n.modelValue[0]:n.min;return d(C)}),c=o.computed(()=>{if(n.range){const k=Array.isArray(n.modelValue)?n.modelValue[1]:n.max;return d(k)}const C=n.modelValue??n.min;return d(C)}),f=o.computed(()=>n.range?{insetInlineStart:u.value+"%",width:c.value-u.value+"%"}:{insetInlineStart:"0%",width:c.value+"%"});function d(C){const k=Math.min(Math.max(C,n.min),n.max);return n.max===n.min?0:(k-n.min)/(n.max-n.min)*100}function h(C){const k=n.min+C/100*(n.max-n.min),D=Math.round(k/n.step)*n.step;return Math.min(Math.max(D,n.min),n.max)}function v(C){if(!i.value)return 0;const k=i.value.getBoundingClientRect();let E=((C.touches?C.touches[0].clientX:C.clientX)-k.left)/k.width*100;return window.getComputedStyle(i.value).direction==="rtl"&&(E=100-E),Math.min(Math.max(E,0),100)}function p(C,k){if(n.disabled)return;const D=h(k);if(n.range){const E=Array.isArray(n.modelValue)?[...n.modelValue]:[n.min,n.max];C==="min"?E[0]=Math.min(D,E[1]):E[1]=Math.max(D,E[0]),a("update:modelValue",E)}else a("update:modelValue",D)}function g(C){if(n.disabled)return;const k=v(C);if(n.range){const D=Array.isArray(n.modelValue)?n.modelValue:[n.min,n.max],E=d(D[0]),T=d(D[1]),M=Math.abs(k-E)<Math.abs(k-T)?"min":"max";p(M,k),y(M)}else p("single",k),y("single")}function m(C){if(n.disabled)return;const k=v(C);if(n.range){const D=Array.isArray(n.modelValue)?n.modelValue:[n.min,n.max],E=d(D[0]),T=d(D[1]),M=Math.abs(k-E)<Math.abs(k-T)?"min":"max";p(M,k),b(M)}else p("single",k),b("single")}function y(C,k){n.disabled||(s.value=C,document.addEventListener("mousemove",_),document.addEventListener("mouseup",S))}function b(C,k){n.disabled||(s.value=C,document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",S))}function _(C){if(!s.value)return;const k=v(C);p(s.value==="single"?"single":s.value,k)}function w(C){if(!s.value)return;C.preventDefault();const k=v(C);p(s.value==="single"?"single":s.value,k)}function S(){s.value=null,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",S)}function x(C,k){if(n.disabled)return;let D;if(n.range){const A=Array.isArray(n.modelValue)?n.modelValue:[n.min,n.max];D=C==="min"?A[0]:A[1]}else D=n.modelValue??n.min;let E=D;const T=window.getComputedStyle(i.value).direction==="rtl";switch(k.key){case"ArrowRight":k.preventDefault(),E=T?Math.max(D-n.step,n.min):Math.min(D+n.step,n.max);break;case"ArrowUp":k.preventDefault(),E=Math.min(D+n.step,n.max);break;case"ArrowLeft":k.preventDefault(),E=T?Math.min(D+n.step,n.max):Math.max(D-n.step,n.min);break;case"ArrowDown":k.preventDefault(),E=Math.max(D-n.step,n.min);break;case"Home":k.preventDefault(),E=n.min;break;case"End":k.preventDefault(),E=n.max;break;default:return}const M=d(E);p(C,M)}return o.onBeforeUnmount(()=>{S()}),(C,k)=>{var D,E,T,M,A,P,V,B,z,N;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([t.containerClass,"apbd-slider-container"])},[t.label||(D=o.unref(r))!=null&&D.label?(o.openBlock(),o.createElementBlock("label",_w,[o.renderSlot(C.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["apbd-slider",[`apbd-slider-${l.value}`,{"apbd-slider-disabled":t.disabled}]])},[(E=o.unref(r))!=null&&E.prefix?(o.openBlock(),o.createElementBlock("div",ww,[o.renderSlot(C.$slots,"prefix")])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"apbd-slider-wrapper",ref_key:"sliderRef",ref:i,onMousedown:g,onTouchstartPassive:m},[k[8]||(k[8]=o.createElementVNode("div",{class:"apbd-slider-track"},null,-1)),o.createElementVNode("div",{class:"apbd-slider-fill",style:o.normalizeStyle(f.value)},null,4),t.range?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["apbd-slider-thumb",{"apbd-slider-thumb-active":s.value==="min"}]),style:o.normalizeStyle({insetInlineStart:u.value+"%"}),onMousedown:k[0]||(k[0]=o.withModifiers(R=>y("min"),["stop"])),onTouchstartPassive:k[1]||(k[1]=o.withModifiers(R=>b("min"),["stop"])),onKeydown:k[2]||(k[2]=R=>x("min",R)),tabindex:"0",role:"slider","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":((T=t.modelValue)==null?void 0:T[0])??t.min,"aria-label":"Minimum value"},[o.renderSlot(C.$slots,"thumb",{value:((M=t.modelValue)==null?void 0:M[0])??t.min,type:"min"},()=>[k[6]||(k[6]=o.createElementVNode("div",{class:"apbd-slider-thumb-handle"},null,-1))]),t.showLabels?(o.openBlock(),o.createElementBlock("div",xw,o.toDisplayString(t.formatLabel(((A=t.modelValue)==null?void 0:A[0])??t.min)),1)):o.createCommentVNode("",!0)],46,Sw)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["apbd-slider-thumb",{"apbd-slider-thumb-active":s.value===(t.range?"max":"single")}]),style:o.normalizeStyle({insetInlineStart:c.value+"%"}),onMousedown:k[3]||(k[3]=o.withModifiers(R=>y(t.range?"max":"single"),["stop"])),onTouchstartPassive:k[4]||(k[4]=o.withModifiers(R=>b(t.range?"max":"single"),["stop"])),onKeydown:k[5]||(k[5]=R=>x(t.range?"max":"single",R)),tabindex:"0",role:"slider","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.range?((P=t.modelValue)==null?void 0:P[1])??t.max:t.modelValue??t.min,"aria-label":t.range?"Maximum value":"Value"},[o.renderSlot(C.$slots,"thumb",{value:t.range?((V=t.modelValue)==null?void 0:V[1])??t.max:t.modelValue??t.min,type:t.range?"max":"single"},()=>[k[7]||(k[7]=o.createElementVNode("div",{class:"apbd-slider-thumb-handle"},null,-1))]),t.showLabels?(o.openBlock(),o.createElementBlock("div",kw,o.toDisplayString(t.formatLabel(t.range?((B=t.modelValue)==null?void 0:B[1])??t.max:t.modelValue??t.min)),1)):o.createCommentVNode("",!0)],46,Cw)],544),(z=o.unref(r))!=null&&z.postfix?(o.openBlock(),o.createElementBlock("div",Tw,[o.renderSlot(C.$slots,"postfix")])):o.createCommentVNode("",!0)],2),(N=o.unref(r))!=null&&N.hints||t.hints?(o.openBlock(),o.createElementBlock("div",Dw,[o.renderSlot(C.$slots,"hints",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.hints)),1)])])):o.createCommentVNode("",!0)],2)}}}),Mw=["for"],Aw={key:0,class:"input-group-text left"},Nw={key:1,class:"input-group-text left"},Bw=["disabled","id","aria-expanded"],Vw={class:"multiselect-wrapper"},Iw={key:0,class:"multiselect-single-label"},Lw={key:1,class:"multiselect-placeholder"},Pw={key:1,class:"multiselect-tags"},zw={class:"multiselect-tag-wrapper"},Rw=["onMousedown"],Ow=["placeholder"],$w={class:"multiselect-icons"},Fw={key:0,class:"multiselect-spinner"},Hw=["dir"],Gw={class:"multiselect-options"},Ww=["onMousedown","onMouseenter"],Uw={key:0,class:"multiselect-no-options"},Yw={class:"multiselect-empty"},Xw={class:"multiselect-empty"},qw={key:2,class:"input-group-text right"},jw={key:3,class:"input-group-text right"},Zw={key:1,class:"form-text"},xa=Object.assign({name:"AbMultiSelect",inheritAttrs:!1},{__name:"AbMultiSelect",props:{onSearch:{type:Function,default:null},modelValue:{default:null},label:{type:String,default:""},placeholder:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:""},rules:{default:""},containerClass:{type:String,default:void 0},hints:{type:String,default:""},multiple:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},mode:{type:String,default:"single",validator:t=>["single","multiple","tags"].includes(t)},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"val"},max:{default:-1},object:{type:Boolean,default:!1},prefix:{type:String,default:""},postfix:{type:String,default:""},isAjaxSearch:{type:Boolean,default:!1},hideSelected:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0},isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:t=>["left","right"].includes(t)}},emits:["update:modelValue","clear","change","select","open","close","search-change"],setup(t,{emit:e}){const r=t,n=e,a=o.useSlots(),i=o.useAttrs(),s=o.ref(null),l=o.ref(null),u=o.ref(null),c=o.ref(null),f=o.ref(!1),d=o.ref(""),h=o.ref(!1),v=o.ref(-1),p=o.ref([...r.options]),g=o.ref([]),m=o.ref(!1),y=o.ref(null),b=o.ref(300),_=o.ref("bottom"),w=o.ref({}),S=o.ref("ltr");let x=null;o.watch(()=>r.options,U=>{p.value=[...U]},{deep:!0});const C=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,k=o.getCurrentInstance(),D=o.computed(()=>r.name||`input_${(k==null?void 0:k.uid)||C}`),E=o.computed(()=>r.disabled||(i==null?void 0:i.disabled)),T=o.computed(()=>(a==null?void 0:a.prefix)||(a==null?void 0:a.postfix)||(a==null?void 0:a.icon)||r.prefix||r.postfix),M=o.computed(()=>r.loading||m.value),A=o.computed(()=>r.mode==="tags"||r.mode==="multiple"),P=o.computed(()=>!a.prefix&&!a.postfix&&!a.icon?"":r.isLeftIconBorder?"input-group-text-border-right-0 ":r.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"),V=o.computed(()=>r.containerClass!==void 0&&r.containerClass!==null?r.containerClass:te.inputContainerClass??""),B=o.computed(()=>r.size!==void 0&&r.size!==null?r.size:te.size??"md"),z=o.computed(()=>r.iconPosition!==void 0&&r.iconPosition!==null?r.iconPosition:te.iconPosition??"right"),N=o.computed({get:()=>r.modelValue,set:U=>{n("update:modelValue",U)}}),R=o.computed(()=>r.mode==="single"?1:r.max);function I(U){return U==null?null:typeof U=="object"?U[r.valueKey]:U}function G(U){return U==null?"":typeof U=="object"?U[r.labelKey]??U[r.valueKey]??"":String(U)}function F(U){if(U==null)return null;const ne=r.object?U[r.valueKey]:U;let O=p.value.find(H=>I(H)===ne);return O||(O=g.value.find(H=>I(H)===ne)),O||null}function J(U){var O;const ne=I(U);return A.value?(Array.isArray(N.value)?N.value:[]).some(ie=>(r.object?ie[r.valueKey]:ie)===ne):(r.object?(O=N.value)==null?void 0:O[r.valueKey]:N.value)===ne}const le=o.computed(()=>N.value?F(N.value):null),X=o.computed(()=>{const U=le.value;return U?G(U):r.object&&N.value?N.value[r.labelKey]??"":N.value??""}),Y=o.computed(()=>A.value?(Array.isArray(N.value)?N.value:[]).map(ne=>{const O=F(ne);return O||(r.object&&typeof ne=="object"?ne:{[r.valueKey]:ne,[r.labelKey]:String(ne)})}):[]),be=o.computed(()=>A.value?Array.isArray(N.value)&&N.value.length>0:N.value!=null&&N.value!==""),de=o.computed(()=>{if(!d.value||r.isAjaxSearch)return p.value;const U=d.value.toLowerCase();return p.value.filter(ne=>G(ne).toLowerCase().includes(U))}),De=o.computed(()=>{let U=de.value;return r.hideSelected&&A.value&&be.value&&(U=U.filter(ne=>!J(ne))),U}),Ee=o.computed(()=>!A.value||R.value<=0?!0:(Array.isArray(N.value)?N.value.length:0)<R.value);function K(){E.value||f.value||(f.value=!0,v.value=-1,Or(),n("open"),o.nextTick(()=>{u.value?u.value.focus():l.value&&l.value.focus()}))}function ae(){f.value&&(f.value=!1,d.value="",h.value=!1,v.value=-1,n("close"))}function nt(U){if(!E.value&&!(c.value&&c.value.contains(U.target))&&!U.target.closest(".multiselect-clear"))if(f.value){if(U.target===u.value&&d.value.length>0)return;U.preventDefault(),ae(),l.value&&l.value.focus()}else U.preventDefault(),K()}function Ie(U){if(E.value)return;const ne=I(U);g.value.some(H=>I(H)===ne)||g.value.push(U);const O=r.object?U:ne;if(r.mode==="single")N.value=O,n("select",O),n("change",O),ae(),l.value&&l.value.focus();else{if(!Ee.value&&!J(U))return;const H=Array.isArray(N.value)?[...N.value]:[];if(J(U)){const ie=I(U),Q=H.filter(q=>(r.object?q[r.valueKey]:q)!==ie);N.value=Q}else H.push(O),N.value=H,n("select",O);n("change",N.value),d.value="",o.nextTick(()=>{u.value?u.value.focus():l.value&&l.value.focus()})}}function Ne(U){if(E.value)return;const ne=I(U),H=(Array.isArray(N.value)?[...N.value]:[]).filter(ie=>(r.object?ie[r.valueKey]:ie)!==ne);N.value=H,n("change",H)}function Ye(){A.value?N.value=[]:N.value=null,d.value="",n("clear"),n("change",N.value),ae(),l.value&&l.value.focus()}function Lt(){if(d.value===""&&be.value&&A.value){const U=Array.isArray(N.value)?[...N.value]:[];U.pop(),N.value=U,n("change",U)}}function Tr(){h.value=!0,f.value||K()}function rt(){setTimeout(()=>{h.value=!1},200)}async function ea(){n("search-change",d.value),!f.value&&d.value&&K(),r.isAjaxSearch&&(clearTimeout(y.value),d.value!==""&&(m.value=!0,y.value=setTimeout(async()=>{try{const U=await r.onSearch(d.value);U&&(p.value=[...U])}catch(U){console.error("AbMultiSelect ajax search error:",U)}finally{m.value=!1}},500)))}function Pt(U){if(!E.value)switch(U.key){case"ArrowDown":U.preventDefault(),f.value?(v.value=Math.min(v.value+1,De.value.length-1),pn()):K();break;case"ArrowUp":U.preventDefault(),f.value&&(v.value=Math.max(v.value-1,0),pn());break;case"Enter":U.preventDefault(),f.value&&v.value>=0&&v.value<De.value.length?Ie(De.value[v.value]):f.value||K();break;case"Escape":U.preventDefault(),ae();break;case"Tab":ae();break}}function pn(){o.nextTick(()=>{if(!c.value)return;const U=c.value.querySelectorAll(".multiselect-option");U[v.value]&&U[v.value].scrollIntoView({block:"nearest"})})}const Or=()=>{if(!l.value)return;const U=l.value,ne=U.getBoundingClientRect();S.value=window.getComputedStyle(U).direction||"ltr";let O=U.parentElement,H=null;for(;O&&O!==document.documentElement;){const pe=window.getComputedStyle(O);if(["auto","hidden","scroll"].includes(pe.overflow)||["auto","hidden","scroll"].includes(pe.overflowY)){H=O;break}O=O.parentElement}const ie=H?H.getBoundingClientRect():{top:0,bottom:window.innerHeight},Q=ie.bottom-ne.bottom-10,q=ne.top-ie.top-10;Q<250&&q>Q?(_.value="top",b.value=Math.min(300,Math.max(150,q))):(_.value="bottom",b.value=Math.min(300,Math.max(150,Q))),r.appendToBody?_.value==="top"?w.value={position:"fixed",bottom:`${window.innerHeight-ne.top}px`,top:"auto",right:"auto",transform:"none",left:`${ne.left}px`,width:`${ne.width}px`,zIndex:9999}:w.value={position:"fixed",top:`${ne.bottom}px`,bottom:"auto",right:"auto",transform:"none",left:`${ne.left}px`,width:`${ne.width}px`,zIndex:9999}:w.value={}},$r=()=>{f.value&&r.appendToBody&&(x&&cancelAnimationFrame(x),x=requestAnimationFrame(()=>{Or()}))};o.watch(f,U=>{U?r.appendToBody&&(window.addEventListener("scroll",$r,!0),window.addEventListener("resize",$r)):r.appendToBody&&(window.removeEventListener("scroll",$r,!0),window.removeEventListener("resize",$r))});function qa(U){const ne=s.value&&!s.value.contains(U.target),O=c.value&&!c.value.contains(U.target);ne&&O&&ae()}return o.onMounted(()=>{document.addEventListener("mousedown",qa)}),o.onBeforeUnmount(()=>{document.removeEventListener("mousedown",qa),window.removeEventListener("scroll",$r,!0),window.removeEventListener("resize",$r),x&&cancelAnimationFrame(x),clearTimeout(y.value)}),(U,ne)=>{var ie,Q,q,pe,ze,at;const O=o.resolveComponent("translate"),H=o.resolveDirective("translate");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([[V.value,P.value],"apbd-multiselect-container"]),ref_key:"containerRef",ref:s},[(t.label||o.unref(a).label)&&!t.isHideLabel?(o.openBlock(),o.createElementBlock("label",{key:0,class:"form-label",for:(ie=o.unref(i))==null?void 0:ie.id},[o.renderSlot(U.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])],8,Mw)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass({"input-group":T.value})},[(Q=o.unref(a))!=null&&Q.icon&&z.value==="left"?(o.openBlock(),o.createElementBlock("span",Aw,[o.renderSlot(U.$slots,"icon")])):o.createCommentVNode("",!0),(q=o.unref(a))!=null&&q.prefix||t.prefix?(o.openBlock(),o.createElementBlock("span",Nw,[o.renderSlot(U.$slots,"prefix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.prefix)),1)])])):o.createCommentVNode("",!0),o.createVNode(o.unref(je.Field),{label:t.label,name:D.value,id:(pe=o.unref(i))==null?void 0:pe.id,modelValue:N.value,"onUpdate:modelValue":ne[2]||(ne[2]=$e=>N.value=$e),rules:t.rules},{default:o.withCtx(()=>{var $e,Be,Ze;return[o.createElementVNode("div",{ref_key:"multiselectRef",ref:l,class:o.normalizeClass(["multiselect",`multiselect-${B.value}`,($e=o.unref(i))==null?void 0:$e.class,{"is-active":f.value,"is-disabled":E.value}]),style:o.normalizeStyle((Be=o.unref(i))==null?void 0:Be.style),disabled:E.value,id:(Ze=o.unref(i))==null?void 0:Ze.id,tabindex:"0",role:"combobox","aria-expanded":f.value,onMousedown:nt,onKeydown:Pt},[o.createElementVNode("div",Vw,[t.mode==="single"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[be.value&&!h.value?(o.openBlock(),o.createElementBlock("div",Iw,[o.renderSlot(U.$slots,"singlelabel",{value:le.value},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(X.value)),1)])])):o.createCommentVNode("",!0),!be.value&&!d.value?(o.openBlock(),o.createElementBlock("div",Lw,o.toDisplayString(o.unref($)(t.placeholder)),1)):o.createCommentVNode("",!0),t.searchable?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:2,ref_key:"searchInputRef",ref:u,"onUpdate:modelValue":ne[0]||(ne[0]=me=>d.value=me),class:o.normalizeClass(["multiselect-search",{"is-idle":!f.value&&!d.value}]),autocomplete:"off",onFocus:Tr,onBlur:rt,onInput:ea},null,34)),[[o.vModelText,d.value]]):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock("div",Pw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.value,(me,Ke)=>(o.openBlock(),o.createElementBlock("span",{key:I(me)??Ke,class:"multiselect-tag"},[o.createElementVNode("span",zw,o.toDisplayString(o.unref($)(G(me))),1),o.createElementVNode("span",{class:"multiselect-tag-remove",onMousedown:o.withModifiers(Fr=>Ne(me),["prevent","stop"])},[...ne[3]||(ne[3]=[o.createElementVNode("span",{class:"multiselect-tag-remove-icon"},"×",-1)])],40,Rw)]))),128)),o.createElementVNode("div",{class:o.normalizeClass(["multiselect-tags-search-wrapper",{"is-full":!be.value}])},[o.withDirectives(o.createElementVNode("input",{ref_key:"searchInputRef",ref:u,"onUpdate:modelValue":ne[1]||(ne[1]=me=>d.value=me),class:"multiselect-tags-search",autocomplete:"off",placeholder:be.value?"":o.unref($)(t.placeholder),onFocus:Tr,onBlur:rt,onInput:ea,onKeydown:o.withKeys(Lt,["delete"])},null,40,Ow),[[o.vModelText,d.value]])],2)])),o.createElementVNode("div",$w,[M.value?(o.openBlock(),o.createElementBlock("div",Fw,[o.renderSlot(U.$slots,"loader-icon",{},()=>[o.createVNode(o.unref(ub),{class:"ab-spin",width:"18",height:"18"})])])):o.createCommentVNode("",!0),be.value&&!E.value&&!M.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"multiselect-clear",onMousedown:o.withModifiers(Ye,["prevent","stop"])},[...ne[4]||(ne[4]=[o.createElementVNode("div",{class:"clear-icon-wrapper"},[o.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{fill:"currentColor",d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})])],-1)])],32)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["multiselect-caret",{"is-open":f.value}])},[...ne[5]||(ne[5]=[o.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{fill:"currentColor",d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"})],-1)])],2)])]),(o.openBlock(),o.createBlock(o.Teleport,{to:"body",disabled:!t.appendToBody},[o.createElementVNode("div",{class:o.normalizeClass(t.appendToBody?["appsbd-app","apbd-multiselect-container"]:[]),style:o.normalizeStyle(t.appendToBody?{}:{display:"contents"}),dir:S.value},[o.withDirectives(o.createElementVNode("div",{ref_key:"dropdownRef",ref:c,class:o.normalizeClass(["multiselect-dropdown",[{"is-top":_.value==="top"},t.appendToBody?"is-teleported":""]]),style:o.normalizeStyle([{maxHeight:b.value+"px"},w.value])},[o.createElementVNode("ul",Gw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(De.value,(me,Ke)=>(o.openBlock(),o.createElementBlock("li",{key:I(me),class:o.normalizeClass(["multiselect-option",{"is-selected":J(me),"is-pointed":Ke===v.value}]),onMousedown:o.withModifiers(Fr=>Ie(me),["prevent"]),onMouseenter:Fr=>v.value=Ke},[o.renderSlot(U.$slots,"option",{option:me,isSelected:J(me)},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(G(me))),1)])],42,Ww))),128))]),De.value.length===0?(o.openBlock(),o.createElementBlock("div",Uw,[M.value?o.renderSlot(U.$slots,"option-loading",{key:1},()=>[o.createElementVNode("div",Xw,[o.createElementVNode("span",null,[o.createVNode(O,null,{default:o.withCtx(()=>[...ne[7]||(ne[7]=[o.createTextVNode("Loading",-1)])]),_:1}),ne[8]||(ne[8]=o.createTextVNode("... ",-1))])])]):o.renderSlot(U.$slots,"noresults",{key:0},()=>[o.createElementVNode("div",Yw,[o.createVNode(o.unref(lb)),o.withDirectives((o.openBlock(),o.createElementBlock("span",null,[...ne[6]||(ne[6]=[o.createTextVNode("No option found!",-1)])])),[[H]])])])])):o.createCommentVNode("",!0)],6),[[o.vShow,f.value]])],14,Hw)],8,["disabled"]))],46,Bw)]}),_:3},8,["label","name","id","modelValue","rules"]),(ze=o.unref(a))!=null&&ze.postfix||t.postfix?(o.openBlock(),o.createElementBlock("span",qw,[o.renderSlot(U.$slots,"postfix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.postfix)),1)])])):o.createCommentVNode("",!0),(at=o.unref(a))!=null&&at.icon&&z.value==="right"?(o.openBlock(),o.createElementBlock("span",jw,[o.renderSlot(U.$slots,"icon")])):o.createCommentVNode("",!0)],2),o.createVNode(o.unref(je.ErrorMessage),{name:D.value,class:"apbd-v-error"},null,8,["name"]),o.unref(a).hints||t.hints?(o.openBlock(),o.createElementBlock("div",Zw,[o.renderSlot(U.$slots,"hints",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.hints)),1)])])):o.createCommentVNode("",!0)],2)}}}),Kw={class:"d-flex justify-content-center align-items-center flex-wrap gap-2 mb-3"},Qw={class:"d-flex gap-2"},Jw=["onUpdate:modelValue","onInput","onKeydown"],eS={key:0,class:"otp-separator mx-2"},tS={__name:"AbPinInput",props:{modelValue:String,length:{type:Number,default:6},size:{type:String,default:"md"},showSeparator:{type:Boolean,default:!1},groupSize:{type:Number,default:3}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,a=o.ref(Array(r.length).fill("")),i=o.ref([]),s=o.computed(()=>{const d=[];for(let h=0;h<r.length;h+=r.groupSize)d.push(a.value.slice(h,h+r.groupSize));return d});function l(d,h){d&&(i.value[h]=d)}o.watch(()=>r.modelValue,d=>{a.value=Array(r.length).fill(""),d&&d.split("").forEach((h,v)=>{v<r.length&&(a.value[v]=h)})},{immediate:!0});function u(d,h){const v=(h.target.value||"").replace(/\s/g,"").slice(0,1);a.value[d]=v,n("update:modelValue",a.value.join("")),v&&d<r.length-1&&o.nextTick(()=>{var p;(p=i.value[d+1])==null||p.focus()})}function c(d,h){!a.value[h]&&h>0&&o.nextTick(()=>{var v;(v=i.value[h-1])==null||v.focus()})}function f(d){let h=d.clipboardData.getData("text").replace(/\s/g,"");if(!h)return;const v=h.split("").slice(0,r.length);a.value=Array(r.length).fill(""),v.forEach((p,g)=>{a.value[g]=p}),n("update:modelValue",a.value.join("")),o.nextTick(()=>{var g,m;const p=Math.min(v.length,r.length-1);(m=(g=i.value[p])==null?void 0:g.focus)==null||m.call(g)})}return(d,h)=>(o.openBlock(),o.createElementBlock("div",Kw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(v,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:p},[o.createElementVNode("div",Qw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(v,(g,m)=>(o.openBlock(),o.createElementBlock("div",{class:"apbd-input-container",key:m},[o.withDirectives(o.createElementVNode("input",{ref_for:!0,ref:y=>l(y,p*t.groupSize+m),type:"text",maxlength:"1",class:o.normalizeClass(["form-control mega-input-field","form-control-"+t.size]),"onUpdate:modelValue":y=>a.value[p*t.groupSize+m]=y,onInput:y=>u(p*t.groupSize+m,y),onKeydown:o.withKeys(y=>c(y,p*t.groupSize+m),["backspace"]),onPaste:f},null,42,Jw),[[o.vModelText,a.value[p*t.groupSize+m]]])]))),128))]),t.showSeparator&&p!==s.value.length-1?(o.openBlock(),o.createElementBlock("span",eS," - ")):o.createCommentVNode("",!0)],64))),128))]))}},rS={__name:"AbCustomField",props:{fieldInputs:{type:Array,default:()=>[]},size:{type:String,default:void 0},customProps:{type:Object,default:()=>({})}},setup(t){const e=t,r=o.useAttrs(),n=l=>{switch(l==null?void 0:l.type){case"T":return"text";case"N":return"number";case"P":return"password";case"U":return"url";default:return"text"}},a=l=>{const{is_required:u,type:c,max_val:f,min_val:d}=l;let h=[];return u==="Y"&&h.push("required"),c==="U"&&h.push("url"),c==="N"&&(u==="Y"&&f&&h.push(`max_value:${f}`),u==="Y"&&d&&h.push(`min_value:${d}`)),h.join("|")},i=(l="100px")=>({height:l}),s=o.computed(()=>e.size!==void 0&&e.size!==null?e.size:te.size??"md");return(l,u)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.fieldInputs,(c,f)=>{var d;return o.openBlock(),o.createElementBlock("div",{key:f,class:o.normalizeClass(["mb-3",c.res_class??((d=o.unref(r))==null?void 0:d.class)])},[["T","N","U","P","E"].includes(c.type)?(o.openBlock(),o.createBlock(pr,{key:0,class:o.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||s.value,rules:a(c),label:c.label,id:"cf_"+c.id,name:"cf_"+c.id,modelValue:t.customProps[c.id],"onUpdate:modelValue":h=>t.customProps[c.id]=h,as:c.type==="E"?"textarea":"",type:n(c),style:o.normalizeStyle(c.type==="E"?i(c.height):""),disabled:c.is_disable==="Y",placeholder:c.placeholder,prefix:c.prefix,postfix:c.postfix,"container-class":c.container_class},o.createSlots({_:2},[c.label?{name:"label",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Label"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"hints",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Hints"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.des)),1)])]),key:"1"}:void 0,c.prefix?{name:"prefix",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Prefix"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.prefix)),1)])]),key:"2"}:void 0,c.postfix?{name:"postfix",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Postfix"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.postfix)),1)])]),key:"3"}:void 0]),1032,["class","size","rules","label","id","name","modelValue","onUpdate:modelValue","as","type","style","disabled","placeholder","prefix","postfix","container-class"])):o.createCommentVNode("",!0),c.type==="H"?(o.openBlock(),o.createBlock(o.unref(je.Field),{key:1,type:"hidden",label:c.label,rules:a(c),modelValue:t.customProps[c.id],"onUpdate:modelValue":h=>t.customProps[c.id]=h,class:o.normalizeClass(["form-control",c!=null&&c.input_class?c.input_class:"form-control-"+((c==null?void 0:c.size)||s.value)]),id:"cf_"+c.id,name:"cf_"+c.id,placeholder:c.placeholder},null,8,["label","rules","modelValue","onUpdate:modelValue","class","id","name","placeholder"])):o.createCommentVNode("",!0),c.type==="D"||c.type==="DR"?(o.openBlock(),o.createBlock(Jr,{key:2,"is-range":c.type==="DR",class:o.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||s.value,id:"cf_"+c.id,name:"cf_"+c.id,rules:a(c),placeholder:c.placeholder,"is-disable":c.is_disable==="Y",label:c.label,modelValue:t.customProps[c.id],"onUpdate:modelValue":h=>t.customProps[c.id]=h},o.createSlots({_:2},[c.label?{name:"label",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Label"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.label)),1)])]),key:"0"}:void 0,c.prefix?{name:"prefix",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Prefix"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.prefix)),1)])]),key:"1"}:void 0,c.postfix?{name:"postfix",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Postfix"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.postfix)),1)])]),key:"2"}:void 0,c.icon?{name:"icon",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Icon"+c.id,{},()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(c.icon)))])]),key:"3"}:void 0,c.des?{name:"hints",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Hints"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.des)),1)])]),key:"4"}:void 0]),1032,["is-range","class","size","id","name","rules","placeholder","is-disable","label","modelValue","onUpdate:modelValue"])):o.createCommentVNode("",!0),c.type==="R"?(o.openBlock(),o.createBlock(Na,{key:3,id:"cf_"+c.id,name:"cf_"+c.id,options:c.options,label:c.label,val:c==null?void 0:c.val,type:"radio",isInline:c.isInline,class:o.normalizeClass(c==null?void 0:c.input_class),"is-disable":c.is_disable==="Y",size:(c==null?void 0:c.size)||s.value,modelValue:t.customProps[c.id],"onUpdate:modelValue":h=>t.customProps[c.id]=h},o.createSlots({_:2},[c.label?{name:"label",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Label"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"description",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Description"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.des)),1)])]),key:"1"}:void 0,c.help_text?{name:"help-text",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"HelpText"+c.id)]),key:"2"}:void 0]),1032,["id","name","options","label","val","isInline","class","is-disable","size","modelValue","onUpdate:modelValue"])):o.createCommentVNode("",!0),c.type==="W"?(o.openBlock(),o.createBlock(xa,{key:4,class:o.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||s.value,name:"cf_"+c.id,id:"cf_"+c.id,mode:c.isSingle?"single":"tags",label:c.label,options:c.options,disabled:c.is_disable==="Y",placeholder:c.placeholder,max:c.opt_limit?c.opt_limit:-1,val:c.val,rules:a(c),modelValue:t.customProps[c.id],"onUpdate:modelValue":h=>t.customProps[c.id]=h,prefix:c.prefix,postfix:c.postfix},o.createSlots({_:2},[c.label?{name:"label",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Label"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"description",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Description"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.des)),1)])]),key:"1"}:void 0,c.prefix?{name:"prefix",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Prefix"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.prefix)),1)])]),key:"2"}:void 0,c.postfix?{name:"postfix",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Postfix"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.postfix)),1)])]),key:"3"}:void 0,c.postfix?{name:"hints",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Hints"+c.id)]),key:"4"}:void 0]),1032,["class","size","name","id","mode","label","options","disabled","placeholder","max","val","rules","modelValue","onUpdate:modelValue","prefix","postfix"])):o.createCommentVNode("",!0),c.type==="S"?(o.openBlock(),o.createBlock(gf,{key:5,class:o.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||s.value,label:c.label,id:"cf_"+c.id,"true-value":c==null?void 0:c.true_val,"false-value":c==null?void 0:c.false_val,modelValue:t.customProps[c.id],"onUpdate:modelValue":h=>t.customProps[c.id]=h,"is-disable":c.is_disable==="Y",val:c.val,title:c.title,description:c.description},o.createSlots({_:2},[c.label?{name:"label",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Label"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.label)),1)])]),key:"0"}:void 0,c.title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Title"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.title)),1)])]),key:"1"}:void 0,c.description?{name:"description",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Description"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.description)),1)])]),key:"2"}:void 0,c.hints?{name:"hints",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Hints"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.hints)),1)])]),key:"3"}:void 0]),1032,["class","size","label","id","true-value","false-value","modelValue","onUpdate:modelValue","is-disable","val","title","description"])):o.createCommentVNode("",!0),c.type==="C"?(o.openBlock(),o.createBlock(Na,{key:6,class:o.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||s.value,name:"cf_"+c.id,label:c.label,isInline:c.isInline,options:c.options,val:c.val,rules:a(c),modelValue:t.customProps[c.id],"onUpdate:modelValue":h=>t.customProps[c.id]=h,limit:c.opt_limit},o.createSlots({_:2},[c.label?{name:"label",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Label"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"description",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"Description"+c.id,{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(c.des)),1)])]),key:"1"}:void 0,c.help_text?{name:"help-text",fn:o.withCtx(()=>[o.renderSlot(l.$slots,"HelpText"+c.id)]),key:"2"}:void 0]),1032,["class","size","name","label","isInline","options","val","rules","modelValue","onUpdate:modelValue","limit"])):o.createCommentVNode("",!0)],2)}),128))}},nS=["checked","value","name","id"],aS=["for","title"],iS={__name:"AbColorPicker",props:{align:{type:String,default:"left"},modelValue:{type:String,default:""},name:{type:String,default:"color"},colors:{type:Array,default:()=>[]},borderRadius:{type:String,default:"50%"},size:{type:String,default:void 0,validator:t=>["xs","sm","md","lg","xl","xxl"].includes(t)}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,a=o.computed(()=>r.size!==void 0&&r.size!==null?r.size:te.size??"md"),i=s=>{n("update:modelValue",s.target.value)};return(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["apbd-color-skin",["apbd-color-skin-"+a.value]]),style:o.normalizeStyle(`justify-content:${t.align};--apbd-ascp-border-radius:${t.borderRadius}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.colors,(u,c)=>(o.openBlock(),o.createElementBlock("div",{class:"color-picker-item",key:u.name+"_"+c},[o.createElementVNode("input",{type:"radio",checked:u.name===t.modelValue,value:u.name,name:t.name,id:t.name+"-"+c,onInput:i},null,40,nS),o.createElementVNode("label",{for:t.name+"-"+c,title:u==null?void 0:u.title,style:o.normalizeStyle("background:"+(u==null?void 0:u.color))},[...l[0]||(l[0]=[o.createElementVNode("svg",{class:"check-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},[o.createElementVNode("path",{fill:"currentColor",d:"M45.459 77.819l44.795-44.794A7.668 7.668 0 1 0 79.409 22.18L40.037 61.553 20.591 42.107A7.668 7.668 0 1 0 9.746 52.952L34.614 77.82a7.647 7.647 0 0 0 5.422 2.246 7.653 7.653 0 0 0 5.423-2.247z"})],-1)])],12,aS)]))),128))],6))}},oS=gt(iS,[["__scopeId","data-v-0a017b3a"]]);function Lm(){const{appContext:t}=o.getCurrentInstance(),e=t.config.globalProperties.$toast,r=(n,a)=>e(n,a);return r.success=(n,a)=>e.success(n,a),r.error=(n,a)=>e.error(n,a),r.warning=(n,a)=>e.warning(n,a),r.info=(n,a)=>e.info(n,a),r.dismiss=n=>e.dismiss(n),r.clear=()=>e.clear(),{toast:r}}function Pm(){const{toast:t}=Lm(),e=(n,a=1)=>{let i=n.name.split(".").pop().toLowerCase();const s={"jpg|jpeg|jpe":"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp"};let l=null;for(let f in s)if(f.split("|").includes(i)){l=s[f];break}if(!l){const f="Uploaded File type not allowed";return n.error=f,t.error(f),null}if(n.type!==l){const f="Uploaded File type not match with '"+i+"'";return n.error=f,t.error(f),null}const u=r(i,n.type);if(n.isImage=u.isImage,!n.isImage){const f="Uploaded File type not allowed";return n.error=f,t.error(f),null}if(n.fileIcon=u.fileIcon,n.size/1048576>a){const f="File size is larger then "+a+"MB";return n.error=f,t.error(f),null}return n},r=(n,a)=>{n=n.toLowerCase();let i={isImage:!1,fileIcon:"apw apw-file-o"};return(a==null?void 0:a.substr(0,3))==="ima"?i.isImage=!0:n==="pdf"?i.fileIcon=Id:n==="zip"?i.fileIcon=ob:n==="doc"||n==="docx"?i.fileIcon=Id:n==="xls"||n==="xlsx"?i.fileIcon=fb:n==="ppt"||n==="pptx"?i.fileIcon=ab:(n==="mp4"||n==="mpeg"||n==="mkv"||n==="avi")&&(i.fileIcon=ib),i};return{getFileInfo:e,getFileIconByExt:r}}const sS=["for"],lS={key:0,class:"feature-images"},uS=["src"],cS={key:1,class:"feature-images empty-state"},fS={__name:"AbFileUploader",props:{modelValue:{type:[File,Array,String,null],default:null},maxSize:{type:Number,default:2},label:{type:String,default:""},containerClass:{type:String,default:""}},emits:["onSelectFiles","update:modelValue"],setup(t,{emit:e}){const r=e,n=t,a=o.ref(null),i=o.ref(null),s=o.useSlots(),l=o.computed(()=>!s.default&&!s.dial),{getFileInfo:u}=Pm();o.watch(()=>n.modelValue,h=>{h?typeof h=="string"&&(i.value=h):(i.value=null,a.value&&(a.value.value=""))},{immediate:!0});const c=()=>{var h;(h=a.value)==null||h.click()},f=h=>{const v=h.target.files;if(!(!v||v.length===0))try{let p=null;Array.from(v).forEach(g=>{let m=u(g,n.maxSize);m?(p=m,i.value=URL.createObjectURL(m)):console.log(g==null?void 0:g.error)}),p&&r("update:modelValue",p),r("onSelectFiles",v)}catch(p){console.log(p.message)}},d=()=>{i.value&&i.value.startsWith("blob:")&&URL.revokeObjectURL(i.value),i.value=null,a.value&&(a.value.value=""),r("update:modelValue",null),r("onSelectFiles",[])};return(h,v)=>{var p;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(t.containerClass)},[t.label||o.unref(s).label?(o.openBlock(),o.createElementBlock("label",{key:0,class:"form-label",for:(p=h.attrs)==null?void 0:p.id},[o.renderSlot(h.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)],!0)],8,sS)):o.createCommentVNode("",!0),o.createElementVNode("input",o.mergeProps({ref_key:"afuInput",ref:a,class:"afu-input"},h.$attrs,{type:"file",onChange:f}),null,16),o.createElementVNode("div",{class:o.normalizeClass(["afu-cont",{"default-design":l.value}]),onClick:c},[o.renderSlot(h.$slots,"dial",{},()=>[o.renderSlot(h.$slots,"default",{},()=>[i.value?(o.openBlock(),o.createElementBlock("div",lS,[o.createElementVNode("img",{src:i.value,alt:"Preview"},null,8,uS),o.createElementVNode("span",{class:"img-rm",onClick:o.withModifiers(d,["stop"])},[o.createVNode(o.unref(Qo))])])):(o.openBlock(),o.createElementBlock("div",cS,[o.createVNode(o.unref(sb))]))],!0)],!0)],2)],2)}}},dS=gt(fS,[["__scopeId","data-v-fee9a156"]]),hS={key:0,class:"row apbd-src-filter"},vS={key:0,class:"col-sm-8 col-lg-9"},pS={class:"row"},mS={class:"col-lg-5"},gS={class:"multiselect-single-label"},yS={key:0,class:"col-lg-7"},bS={class:"multiselect-single-label"},_S={key:2,class:"input-group input-group-sm mb-2 mb-lg-0"},wS={class:"input-group-text"},SS={class:"range-input-panel"},xS=["placeholder"],CS=["placeholder"],kS={key:1,class:"col-sm-8 col-lg-9 mb-2 mb-md-0"},TS={key:1,class:"d-flex flex-column flex-md-row justify-content-start align-items-start align-items-md-end apbd-src-filter"},DS={class:"row w-100 g-2"},ES={class:"multiselect-single-label"},MS={key:2,class:"input-group input-group-sm mb-0"},AS={class:"input-group-text"},NS={class:"range-input-panel"},BS=["onUpdate:modelValue","placeholder"],VS=["onUpdate:modelValue","placeholder"],IS={class:"vtpos-zindex-10 d-flex flex-md-nowrap flex-sm-wrap align-bottom align-items-center ps-md-2 gap-2"},LS={key:2,class:"d-flex justify-content-between align-items-center flex-wrap apbd-quick-src-filter gap-2"},PS={class:"d-flex justify-content-start align-items-center flex-wrap gap-2"},zS=["onClick"],RS={class:"dropdown-item"},OS={class:"d-flex gap-2 align-items-center"},$S={key:3,class:"row g-2"},FS={key:0,class:"col-sm-8"},HS={key:1,class:"col-sm-8 mb-2 mb-md-0"},GS={__name:"AbFilterPanel",props:{isAdvance:{type:Boolean,default:!1},isQuickAdvance:{type:Boolean,default:!1},isSingle:{type:Boolean,default:!1},isAllowed:{type:Boolean,default:!1},canScan:{type:Boolean,default:!1},filterOptions:{type:Array,default:()=>[]},scanProps:{type:String,default:""},showScanFld:{type:Boolean,default:!1},showDrGroupText:{type:Boolean,default:!0},dateFormat:{type:String,default:"MMM DD,YYYY"},isSearchable:{type:Boolean,default:!1},isMaxDate:{type:Boolean,default:!0},size:{type:String,default:void 0},advanceSearchInputContainerClass:{type:String,default:"col-6"},isQuickAdvanceAutoSearch:{type:Boolean,default:!1}},emits:["searchFilter","reset","ChangeSearchMode"],setup(t,{emit:e}){const r=o.useSlots(),n=t,a=e,i=o.ref(null),s=o.ref("");let l=o.ref(null);const u=o.ref(n.filterOptions||[]);o.watch(()=>n.filterOptions,V=>{u.value=V||[]},{deep:!0,immediate:!0});const c=o.ref(null),f=o.ref(null),d=o.ref(null),h=o.computed(()=>n.size!==void 0&&n.size!==null?n.size:te.size??"xs"),v=o.computed(()=>i.value!=null&&i.value!==""),p=o.computed(()=>{if(!i.value)return!0;const V=i.value;return i.value.type==="tr"?!(V!=null&&V.start||V!=null&&V.end):!V}),g=o.computed(()=>!!(!n.showScanFld&&!i.value||n.showScanFld&&!s.value)),m=o.computed(()=>n.isMaxDate?new Date:null);function y(){if(!i.value)return;const V={...i.value};u.value.forEach(B=>{B.id===V.id&&(B.value="")})}function b(){if(n.showScanFld)_();else{const V=[];if(n.isAdvance||n.isQuickAdvance)u.value.forEach(B=>{B.value&&V.push({propName:B.propName,operators:B.operators,value:B.value})});else if(i.value){const B=i.value;V.push({propName:B.propName,operators:B.operators,value:B.value})}V.length>0&&a("searchFilter",V)}}function _(){const V={propName:n.scanProps,operators:"eq",value:s.value};l.value&&clearTimeout(l.value),l.value=setTimeout(()=>{var B;((B=s.value)==null?void 0:B.length)>0&&a("searchFilter",[V])},1e3)}function w(){n.showScanFld?(s.value&&S(),a("ChangeSearchMode",!1)):(s.value&&S(),a("ChangeSearchMode",!0),o.nextTick(()=>{var V;return(V=d.value)==null?void 0:V.focus()}))}function S(){n.isSingle||n.showScanFld?s.value="":!n.isAdvance&&!n.isQuickAdvance?i.value&&(i.value=null):(u.value.forEach(V=>{V.value="",V.type==="dd"&&(V.label=null,V.options&&V.options.forEach(B=>B.isSelected=!1))}),o.triggerRef(u)),a("reset")}function x(){i.value&&(u.value.forEach(V=>{V.id===i.value.id&&(V.value="")}),o.triggerRef(u)),i.value=null,a("reset")}function C(){if(!i.value)return;const V=i.value.type;o.nextTick(()=>{var B,z;V==="t"&&((B=c.value)==null||B.focus()),V==="tr"&&((z=f.value)==null||z.focus())})}function k(){var V;((V=s.value)==null?void 0:V.length)>0&&a("searchFilter",[{propName:"*",operators:"like",value:s.value}])}function D(){s.value||S()}function E(V){V.key==="Enter"&&k()}function T(V,B){B.target.blur()}function M(V,B){const z=u.value.findIndex(N=>N.propName===V);if(z!==-1){const N=u.value[z],R=N.optionValueProp||"val",I=N.optionLabel||"label",G={...N};G.value=typeof B=="object"?B[R]??B:B,G.label=typeof B=="object"?B[I]??G.value:G.value,G.options&&(G.options=G.options.map(F=>({...F,isSelected:F===B||typeof B=="object"&&F[R]===(typeof B=="object"?B[R]:B)}))),u.value[z]=G,o.triggerRef(u),n.isQuickAdvanceAutoSearch&&b()}}function A(V){V.value&&(u.value.forEach(B=>{B.propName!==V.propName&&(V.type==="d"&&B.type==="dr"||V.type==="dr"&&B.type==="d")&&(B.value="")}),o.triggerRef(u),n.isQuickAdvance&&n.isQuickAdvanceAutoSearch&&b())}function P(V,B){if(B&&B.stopPropagation(),!V)return;const z=u.value.findIndex(R=>R.propName===V.propName&&R.type===V.type);if(z===-1)return;const N=u.value[z];N.value=Array.isArray(N.value)?[]:"",N.label=null,N.options&&N.options.forEach(R=>R.isSelected=!1),o.triggerRef(u),n.isQuickAdvance&&n.isQuickAdvanceAutoSearch&&b()}return(V,B)=>{var N,R;const z=o.resolveDirective("translate");return o.openBlock(),o.createElementBlock(o.Fragment,null,[!t.isSingle&&!t.isAdvance&&!t.isQuickAdvance?(o.openBlock(),o.createElementBlock("div",hS,[t.showScanFld?(o.openBlock(),o.createElementBlock("div",kS,[o.createVNode(pr,{containerClass:"mb-0",name:"singlescan",type:"text",ref_key:"singleScanBox",ref:d,isLeftIconBorder:!0,placeholder:"Scan",onInput:_,modelValue:s.value,"onUpdate:modelValue":B[7]||(B[7]=I=>s.value=I),class:"form-control",size:h.value},null,8,["modelValue","size"])])):(o.openBlock(),o.createElementBlock("div",vS,[o.createElementVNode("div",pS,[o.createElementVNode("div",mS,[o.createVNode(xa,{name:"property",size:h.value,isLeftIconBorder:!0,modelValue:i.value,"onUpdate:modelValue":B[0]||(B[0]=I=>i.value=I),options:u.value,labelKey:"name",valueKey:"id",searchable:t.isSearchable,placeholder:o.unref($)("Choose property"),containerClass:"mb-0",onClear:x,onChange:y,onSelect:C,object:!0},{prefix:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref($)("Property")),1)]),singlelabel:o.withCtx(({value:I})=>[o.createElementVNode("div",gS,o.toDisplayString(o.unref($)(I.name)),1)]),option:o.withCtx(({option:I})=>[o.createTextVNode(o.toDisplayString(o.unref($)(I.name)),1)]),_:1},8,["size","modelValue","options","searchable","placeholder"])]),v.value&&i.value?(o.openBlock(),o.createElementBlock("div",yS,[i.value.type==="dd"?(o.openBlock(),o.createBlock(xa,{key:0,name:"propertyValue",size:h.value,modelValue:i.value.value,"onUpdate:modelValue":B[1]||(B[1]=I=>i.value.value=I),mode:i.value.isMultiple?"tags":"single",multiple:i.value.isMultiple,labelKey:i.value.optionLabel,isLeftIconBorder:!0,valueKey:i.value.optionValueProp,searchable:t.isSearchable,placeholder:i.value.placeholder||"Choose option",options:i.value.options},{prefix:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref($)(i.value.name)),1)]),singlelabel:o.withCtx(({value:I})=>[o.createElementVNode("div",bS,o.toDisplayString(o.unref($)(I[i.value.optionLabel])),1)]),option:o.withCtx(({option:I})=>[o.createTextVNode(o.toDisplayString(o.unref($)(I[i.value.optionLabel])),1)]),_:1},8,["size","modelValue","mode","multiple","labelKey","valueKey","searchable","placeholder","options"])):o.createCommentVNode("",!0),i.value.type==="t"?(o.openBlock(),o.createBlock(pr,{key:1,name:"propertyValue",class:"form-control",size:h.value,containerClass:"mb-0",modelValue:i.value.value,"onUpdate:modelValue":B[2]||(B[2]=I=>i.value.value=I),isLeftIconBorder:!0,placeholder:i.value.placeholder||"Enter value"},{prefix:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(o.unref($)(i.value.name)),1)]),_:1},8,["size","modelValue","placeholder"])):o.createCommentVNode("",!0),i.value.type==="tr"?(o.openBlock(),o.createElementBlock("div",_S,[o.createElementVNode("div",wS,o.toDisplayString(o.unref($)(i.value.name)),1),o.createElementVNode("div",SS,[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":B[3]||(B[3]=I=>i.value.value.start=I),class:o.normalizeClass(["form-control","form-control-"+h.value]),type:"text",ref_key:"inputRangeBox",ref:f,placeholder:((N=i.value.placeholder)==null?void 0:N.start)||"Min"},null,10,xS),[[o.vModelText,i.value.value.start]]),B[13]||(B[13]=o.createElementVNode("svg",{class:"w-4 h-4 mx-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})],-1)),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":B[4]||(B[4]=I=>i.value.value.end=I),class:"form-control form-control-sm",type:"text",placeholder:((R=i.value.placeholder)==null?void 0:R.end)||"Max"},null,8,CS),[[o.vModelText,i.value.value.end]])])])):o.createCommentVNode("",!0),i.value.type==="d"?(o.openBlock(),o.createBlock(Jr,{key:3,name:"propertyValue",modelValue:i.value.value,"onUpdate:modelValue":B[5]||(B[5]=I=>i.value.value=I),"max-date":m.value,attributes:[{key:"today",dot:!0,dates:new Date}],"model-config":{type:"string",mask:t.dateFormat},isLeftIconBorder:!0,masks:{input:t.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:T,size:h.value},o.createSlots({_:2},[i.value.name?{name:"prefix",fn:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(o.unref($)(i.value.name)),1)]),key:"0"}:void 0,o.unref(r).postfix||i.value.postfix?{name:"postfix",fn:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(o.unref($)(i.value.postfix)),1)]),key:"1"}:void 0,o.unref(r).icon||i.value.icon?{name:"icon",fn:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.value.icon)))]),key:"2"}:void 0,o.unref(r).hints||i.value.hints?{name:"hints",fn:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(o.unref($)(i.value.hints)),1)]),key:"3"}:void 0]),1032,["modelValue","max-date","attributes","model-config","masks","size"])):o.createCommentVNode("",!0),i.value.type==="dr"?(o.openBlock(),o.createBlock(Jr,{key:4,name:"propertyValue",modelValue:i.value.value,"onUpdate:modelValue":B[6]||(B[6]=I=>i.value.value=I),"max-date":m.value,attributes:[{key:"today",dot:!0,dates:new Date}],"model-config":{type:"string",mask:t.dateFormat},isLeftIconBorder:!0,masks:{input:t.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:T,size:h.value,"is-range":!0},o.createSlots({_:2},[i.value.name?{name:"prefix",fn:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(o.unref($)(i.value.name)),1)]),key:"0"}:void 0,o.unref(r).postfix||i.value.postfix?{name:"postfix",fn:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(o.unref($)(i.value.postfix)),1)]),key:"1"}:void 0,o.unref(r).icon||i.value.icon?{name:"icon",fn:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.value.icon)))]),key:"2"}:void 0,o.unref(r).hints||i.value.hints?{name:"hints",fn:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(o.unref($)(i.value.hints)),1)]),key:"3"}:void 0]),1032,["modelValue","max-date","attributes","model-config","masks","size"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])])),o.createElementVNode("div",{class:o.normalizeClass(["col-6 col-sm-4 col-lg-3 vtpos-zindex-10",t.canScan?"col-12":"col-6"])},[o.withDirectives((o.openBlock(),o.createBlock(Le,{type:"button",class:"btn-primary mb-2 me-2 mb-lg-0",size:h.value,onClick:b,disabled:p.value},{default:o.withCtx(()=>[...B[14]||(B[14]=[o.createTextVNode(" Search ",-1)])]),_:1},8,["size","disabled"])),[[z]]),o.withDirectives((o.openBlock(),o.createBlock(Le,{type:"button",class:"btn-secondary mb-2 me-2 mb-lg-0",size:h.value,onClick:S,disabled:g.value},{default:o.withCtx(()=>[...B[15]||(B[15]=[o.createTextVNode(" Reset ",-1)])]),_:1},8,["size","disabled"])),[[z]]),t.canScan?(o.openBlock(),o.createBlock(Le,{key:0,type:"button",class:"btn-primary mb-2 mb-sm-0",size:h.value,onClick:w},{default:o.withCtx(()=>[o.createVNode(o.unref(Pd))]),_:1},8,["size"])):o.createCommentVNode("",!0)],2)])):o.createCommentVNode("",!0),!t.isSingle&&!t.isQuickAdvance&&t.isAdvance?(o.openBlock(),o.createElementBlock("div",TS,[o.createElementVNode("div",DS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(I,G)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(t.advanceSearchInputContainerClass),key:G},[I.type==="dd"?(o.openBlock(),o.createBlock(xa,{key:0,"container-class":"mb-0",name:I.name,size:h.value,modelValue:I.value,"onUpdate:modelValue":F=>I.value=F,mode:I.isMultiple?"tags":"single",multiple:I.isMultiple,labelKey:I.optionLabel,valueKey:I.optionValueProp,isLeftIconBorder:!0,searchable:t.isSearchable,placeholder:I.placeholder||"Choose option",options:I.options},{prefix:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref($)(I.name)),1)]),singlelabel:o.withCtx(({value:F})=>[o.createElementVNode("div",ES,o.toDisplayString(o.unref($)(F[I.optionLabel])),1)]),option:o.withCtx(({option:F})=>[o.createTextVNode(o.toDisplayString(o.unref($)(F[I.optionLabel])),1)]),_:2},1032,["name","size","modelValue","onUpdate:modelValue","mode","multiple","labelKey","valueKey","searchable","placeholder","options"])):o.createCommentVNode("",!0),I.type==="t"?(o.openBlock(),o.createBlock(pr,{key:1,"container-class":"mb-0",name:I.name,size:h.value,modelValue:I.value,"onUpdate:modelValue":F=>I.value=F,placeholder:I.placeholder||"Enter value",isLeftIconBorder:!0},{prefix:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(o.unref($)(I.name)),1)]),_:2},1032,["name","size","modelValue","onUpdate:modelValue","placeholder"])):o.createCommentVNode("",!0),I.type=="tr"?(o.openBlock(),o.createElementBlock("div",MS,[o.createElementVNode("div",AS,o.toDisplayString(o.unref($)(I.name)),1),o.createElementVNode("div",NS,[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":F=>I.value.start=F,class:o.normalizeClass(["form-control","form-control-"+h.value]),type:"text",ref_for:!0,ref:"input_range_box",placeholder:I.placeholder?I.placeholder.start:"Min"},null,10,BS),[[o.vModelText,I.value.start]]),B[16]||(B[16]=o.createElementVNode("svg",{class:"w-4 h-4 mx-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})],-1)),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":F=>I.value.end=F,class:"form-control form-control-sm",type:"text",placeholder:I.placeholder?I.placeholder.end:"Max"},null,8,VS),[[o.vModelText,I.value.end]])])])):o.createCommentVNode("",!0),I.type==="d"?(o.openBlock(),o.createBlock(Jr,{key:3,"container-class":"mb-0",name:I.name,modelValue:I.value,"onUpdate:modelValue":[F=>I.value=F,F=>A(I)],"max-date":m.value,attributes:[{key:"today",dot:!0,dates:new Date}],isLeftIconBorder:!0,"model-config":{type:"string",mask:t.dateFormat},masks:{input:t.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:T,size:h.value},{prefix:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(o.unref($)(I.name)),1)]),_:2},1032,["name","modelValue","onUpdate:modelValue","max-date","attributes","model-config","masks","size"])):o.createCommentVNode("",!0),I.type==="dr"?(o.openBlock(),o.createBlock(Jr,{key:4,"container-class":"mb-0",name:I.name,modelValue:I.value,"onUpdate:modelValue":[F=>I.value=F,F=>A(I)],"max-date":m.value,attributes:[{key:"today",dot:!0,dates:new Date}],isLeftIconBorder:!0,"model-config":{type:"string",mask:t.dateFormat},masks:{input:t.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:T,size:h.value,"is-range":!0},{prefix:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(o.unref($)(I.name)),1)]),_:2},1032,["name","modelValue","onUpdate:modelValue","max-date","attributes","model-config","masks","size"])):o.createCommentVNode("",!0)],2))),128))]),o.createElementVNode("div",IS,[o.withDirectives((o.openBlock(),o.createBlock(Le,{type:"button",class:"btn btn-primary",size:h.value,disabled:V.getStatus,onClick:b},{default:o.withCtx(()=>[...B[17]||(B[17]=[o.createTextVNode("Search ",-1)])]),_:1},8,["size","disabled"])),[[z]]),o.withDirectives((o.openBlock(),o.createBlock(Le,{type:"button",class:"btn btn-warning",size:h.value,disabled:V.getStatus,onClick:S},{default:o.withCtx(()=>[...B[18]||(B[18]=[o.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[z]])])])):o.createCommentVNode("",!0),!t.isSingle&&!t.isAdvance&&t.isQuickAdvance?(o.openBlock(),o.createElementBlock("div",LS,[o.createElementVNode("div",PS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(I,G)=>(o.openBlock(),o.createElementBlock("div",{key:`${I.propName}-${G}`},[I.type==="t"?(o.openBlock(),o.createBlock(pr,{key:0,"container-class":"mb-0",name:I.name,size:h.value,type:I.inputType?I.inputType:"text",modelValue:I.value,"onUpdate:modelValue":F=>I.value=F,placeholder:I.placeholder?I.placeholder+(t.isQuickAdvanceAutoSearch?" (press enter)":""):"Enter value "+(t.isQuickAdvanceAutoSearch?" (press enter)":""),onKeyup:B[8]||(B[8]=o.withKeys(F=>t.isQuickAdvanceAutoSearch?b():null,["enter"]))},null,8,["name","size","type","modelValue","onUpdate:modelValue","placeholder"])):o.createCommentVNode("",!0),I.type==="dd"?(o.openBlock(),o.createBlock($a,{key:1,placement:"bottom",class:"p-0"},{content:o.withCtx(()=>[o.createVNode(o.unref(je.Field),{name:I.name},{default:o.withCtx(()=>[(o.openBlock(),o.createElementBlock("ul",{class:"list-group mb-0",key:I.value},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.options,(F,J)=>(o.openBlock(),o.createElementBlock("li",{onClick:le=>F.isSelected?P(I):M(I.propName,F),key:J,class:"list-group-item border-0 d-flex justify-content-between align-items-center"},[o.createElementVNode("span",RS,o.toDisplayString(o.unref($)(typeof F=="object"?F[I.optionLabel||"label"]:F)),1),F.isSelected?(o.openBlock(),o.createBlock(o.unref(rc),{key:0})):o.createCommentVNode("",!0)],8,zS))),128))]))]),_:2},1032,["name"])]),default:o.withCtx(()=>[o.createVNode(Le,{class:"btn-outline-secondary",size:h.value},{default:o.withCtx(()=>[I.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(I.icon),{key:0,class:o.normalizeClass({"placeholder-text":!I.value||Array.isArray(I.value)&&!I.value.length})},null,8,["class"])):o.createCommentVNode("",!0),o.createElementVNode("span",{class:o.normalizeClass({"placeholder-text":!I.value||Array.isArray(I.value)&&!I.value.length})},o.toDisplayString(o.unref($)(I.label||I.name)),3),I.value||Array.isArray(I.value)&&I.value.length?(o.openBlock(),o.createBlock(o.unref(Qo),{key:1,onClick:o.withModifiers(F=>P(I,F),["stop"])},null,8,["onClick"])):o.createCommentVNode("",!0)]),_:2},1032,["size"])]),_:2},1024)):o.createCommentVNode("",!0),I.type==="d"?(o.openBlock(),o.createBlock(Jr,{key:2,"container-class":"mb-0",name:I.name,modelValue:I.value,"onUpdate:modelValue":[F=>I.value=F,F=>A(I)],showInInput:!1,size:h.value},{resetIcon:o.withCtx(()=>[o.createVNode(o.unref(Qo),{onClick:o.withModifiers(F=>P(I,F),["stop"])},null,8,["onClick"])]),_:2},1032,["name","modelValue","onUpdate:modelValue","size"])):o.createCommentVNode("",!0),I.type==="dr"?(o.openBlock(),o.createBlock(Jr,{key:3,"container-class":"mb-0",name:I.name,modelValue:I.value,"onUpdate:modelValue":[F=>I.value=F,F=>A(I)],showInInput:!1,size:h.value,"is-range":!0},{resetIcon:o.withCtx(()=>[o.createVNode(o.unref(Qo),{onClick:o.withModifiers(F=>P(I,F),["stop"])},null,8,["onClick"])]),_:2},1032,["name","modelValue","onUpdate:modelValue","size"])):o.createCommentVNode("",!0)]))),128))]),o.createElementVNode("div",OS,[o.withDirectives((o.openBlock(),o.createBlock(Le,{type:"button",class:"btn btn-primary",size:h.value,disabled:V.getStatus,onClick:b},{default:o.withCtx(()=>[...B[19]||(B[19]=[o.createTextVNode(" Search ",-1)])]),_:1},8,["size","disabled"])),[[z]]),o.withDirectives((o.openBlock(),o.createBlock(Le,{type:"button",class:"btn btn-warning",size:h.value,disabled:V.getStatus,onClick:S},{default:o.withCtx(()=>[...B[20]||(B[20]=[o.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[z]])])])):o.createCommentVNode("",!0),t.isSingle?(o.openBlock(),o.createElementBlock("div",$S,[t.showScanFld?(o.openBlock(),o.createElementBlock("div",HS,[o.createVNode(pr,{name:"singlescan",containerClass:"mb-0",type:"text",ref:"single_scan_box",placeholder:o.unref($)("Scan"),onInput:B[11]||(B[11]=I=>_()),modelValue:s.value,"onUpdate:modelValue":B[12]||(B[12]=I=>s.value=I),class:"form-control",size:h.value},null,8,["placeholder","modelValue","size"])])):(o.openBlock(),o.createElementBlock("div",FS,[o.createVNode(pr,{name:"singlescan",containerClass:"mb-0",type:"text",ref:"single_text_box",placeholder:o.unref($)("Search"),onInput:D,onKeyup:B[9]||(B[9]=I=>E(I)),modelValue:s.value,"onUpdate:modelValue":B[10]||(B[10]=I=>s.value=I),class:"form-control",size:h.value},null,8,["placeholder","modelValue","size"])])),o.createElementVNode("div",{class:o.normalizeClass(["vtpos-zindex-10 col-sm-4",t.canScan?"col-12":"col-6"])},[o.withDirectives((o.openBlock(),o.createBlock(Le,{type:"button",class:"btn-primary mb-2 me-2 mb-sm-0",size:h.value,onClick:k,disabled:s.value.length<=0},{default:o.withCtx(()=>[...B[21]||(B[21]=[o.createTextVNode("Search ",-1)])]),_:1},8,["size","disabled"])),[[z]]),o.withDirectives((o.openBlock(),o.createBlock(Le,{type:"button",class:"btn-warning mb-2 me-2 mb-sm-0",size:h.value,onClick:S,disabled:s.value.length<=0},{default:o.withCtx(()=>[...B[22]||(B[22]=[o.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[z]]),t.canScan?(o.openBlock(),o.createBlock(Le,{key:0,type:"button",class:"btn-primary btn-icon mb-2 me-2 mb-sm-0",size:h.value,onClick:w},{default:o.withCtx(()=>[o.createVNode(o.unref(Pd))]),_:1},8,["size"])):o.createCommentVNode("",!0)],2)])):o.createCommentVNode("",!0)],64)}}},WS=gt(GS,[["__scopeId","data-v-672bff51"]]),US=["id","type","name","value"],YS=["for"],XS={key:2,class:"apbd-imgr-container"},qS=["src"],jS={__name:"AbImageRadioInput",props:o.mergeModels({width:{default:"auto"},height:{default:"auto"},maxWidth:{default:"inherit"},maxImgWidth:{default:"50%"},borderRadius:{default:"5px"},margin:{default:"0 15px 15px 0"},padding:{default:"10px"},selectorTop:{default:"5px"},selectorLeft:{default:"5px"},selectorColor:{default:""},iconSize:{default:"inherit"},options:{type:Array,default:()=>[]},isInline:{type:Boolean,default:!1},optionClass:{default:""},labelBorder:{default:"1px solid transparent"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=o.useModel(t,"modelValue"),r=o.useAttrs();o.useSlots();const n=t,a=o.computed(()=>(r==null?void 0:r.name)||"fld"),i=o.computed(()=>({"--apbd-imgr-in-label-w":n.width,"--apbd-imgr-in-label-mw":n.maxWidth,"--apbd-imgr-in-label-h":n.height,"--apbd-imgr-in-label-p":n.padding,"--apbd-imgr-in-border-radius":n.borderRadius,"--apbd-imgr-in-max-img-w":n.maxImgWidth,"--apbd-imgr-in-margin":n.margin,"--apbd-imgr-icon-size":n.iconSize,"--apbd-imgr-icon-s-top":n.selectorTop,"--apbd-imgr-icon-s-left":n.selectorLeft,"--apbd-imgr-label-border":n.labelBorder})),s=o.computed(()=>n.selectorColor?{"--apbd-selector-color":n.selectorColor}:{});return(l,u)=>{var f;const c=o.resolveComponent("translate");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["apbd-img-input-ctrn",(f=o.unref(r))==null?void 0:f.class]),style:o.normalizeStyle(i.value)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.options,(d,h)=>{var v;return o.openBlock(),o.createElementBlock("div",{key:h},[o.withDirectives(o.createElementVNode("input",o.mergeProps({id:a.value+h,type:((v=o.unref(r))==null?void 0:v.type)||"radio",name:a.value,"onUpdate:modelValue":u[0]||(u[0]=p=>e.value=p)},{ref_for:!0},o.unref(r),{value:d.val}),null,16,US),[[o.vModelDynamic,e.value]]),o.createElementVNode("label",{for:a.value+h,style:o.normalizeStyle(s.value),class:o.normalizeClass([t.isInline?"apbd-imgr-inline":"",t.optionClass,(d==null?void 0:d.class)||""])},[u[1]||(u[1]=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"ai ai-CircleCheckFill"},[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zm4.768 9.14a1 1 0 1 0-1.536-1.28l-4.3 5.159-2.225-2.226a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.475-.067l5-6z"})],-1)),o.renderSlot(l.$slots,"icon_image",{option:d},()=>[d!=null&&d.iconComponent?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["apbd-imgr-input-icon",(d==null?void 0:d.icon_ctnr_class)||""])},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(d.iconComponent)))],2)):o.createCommentVNode("",!0),d!=null&&d.icon?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["apbd-imgr-input-icon",(d==null?void 0:d.icon_ctnr_class)||""])},[o.createElementVNode("i",{class:o.normalizeClass(d.icon)},null,2)],2)):o.createCommentVNode("",!0),!(d!=null&&d.iconComponent)&&!d.icon&&(d!=null&&d.img_src)?(o.openBlock(),o.createElementBlock("div",XS,[o.createElementVNode("img",{class:"img-fluid",src:d.img_src},null,8,qS)])):o.createCommentVNode("",!0)]),o.renderSlot(l.$slots,"label",{option:d},()=>[o.renderSlot(l.$slots,"label-"+d.val,{option:d},()=>[d!=null&&d.label?(o.openBlock(),o.createBlock(c,{key:0,class:"apbd-imgr-option-label"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref($)(d.label)),1)]),_:2},1024)):o.createCommentVNode("",!0)])])],14,YS)])}),128))],6)}}},ZS={class:"apbd-table-responsive"},KS=["data-label"],QS={key:0},JS=["colspan"],ex={__name:"AbTable",props:{items:{type:Array,default:()=>[]},fields:{type:Array,default:()=>[]},tableClass:{type:[String,Array,Object],default:""}},setup(t){const e=t,r=o.computed(()=>e.fields.map(n=>typeof n=="string"?{key:n,label:n.charAt(0).toUpperCase()+n.slice(1)}:n));return(n,a)=>(o.openBlock(),o.createElementBlock("div",ZS,[o.createElementVNode("table",{class:o.normalizeClass(["table apbd-table",t.tableClass])},[o.createElementVNode("thead",null,[o.renderSlot(n.$slots,"thead",{},()=>[o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,i=>(o.openBlock(),o.createElementBlock("th",{key:i.key},[o.renderSlot(n.$slots,`head(${i.key})`,{field:i},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(i.label)),1)])]))),128))])])]),o.createElementVNode("tbody",null,[o.renderSlot(n.$slots,"tbody",{},()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,(i,s)=>(o.openBlock(),o.createElementBlock("tr",{key:s},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,l=>(o.openBlock(),o.createElementBlock("td",{key:l.key,"data-label":l.label},[o.renderSlot(n.$slots,`cell(${l.key})`,{value:i[l.key],item:i,index:s},()=>[o.createTextVNode(o.toDisplayString(i[l.key]),1)])],8,KS))),128))]))),128)),!t.items||t.items.length===0?(o.openBlock(),o.createElementBlock("tr",QS,[o.createElementVNode("td",{colspan:r.value.length,class:"text-center"},[o.renderSlot(n.$slots,"empty",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)("No data available")),1)])],8,JS)])):o.createCommentVNode("",!0)])])],2)]))}},tx={class:"apbd-skeleton"},rx={__name:"AbSkeleton",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("div",tx))}},nx={class:"apbd-kbd"},ax=Object.assign({name:"AbKbd"},{__name:"AbKbd",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("kbd",nx,[o.renderSlot(e.$slots,"default")]))}}),ix={class:"apbd-kbd-group"},ox=Object.assign({name:"AbKbdGroup"},{__name:"AbKbdGroup",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("div",ix,[o.renderSlot(e.$slots,"default")]))}}),sx={class:"apbd-carousel-nav-wrapper nav-prev"},lx={class:"apbd-carousel-nav-wrapper nav-next"},ux=Object.assign({name:"AbCarousel"},{__name:"AbCarousel",props:{scrollAmount:{type:Number,default:200},orientation:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},edgeFade:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:3e3},navOutside:{type:Boolean,default:!1},navOnHover:{type:Boolean,default:!1}},setup(t){const e=o.ref(null),r=o.ref(!1),n=o.ref(!1),a=t,i=o.computed(()=>a.orientation==="vertical"),s=o.ref(!1),l=o.ref(!1);let u=0,c=0;function f(){if(e.value)if(i.value){const{scrollTop:k,scrollHeight:D,clientHeight:E}=e.value;r.value=k>0,n.value=Math.ceil(k+E)<D}else{const{scrollLeft:k,scrollWidth:D,clientWidth:E}=e.value;r.value=k>0,n.value=Math.ceil(k+E)<D}}function d(k){if(!e.value)return;let D=a.scrollAmount;if(e.value.children.length>0){const T=e.value.children[0],M=getComputedStyle(e.value),A=parseFloat(M.gap),P=isNaN(A)?8:A;D=i.value?T.offsetHeight+P:T.offsetWidth+P}const E={behavior:"smooth"};i.value?E.top=k*D:E.left=k*D,e.value.scrollBy(E)}function h(k){s.value=!0,l.value=!1,i.value?(u=k.pageY-e.value.offsetTop,c=e.value.scrollTop):(u=k.pageX-e.value.offsetLeft,c=e.value.scrollLeft)}function v(){s.value=!1,setTimeout(()=>{l.value=!1},50)}function p(k){if(!s.value||!e.value)return;const E=((i.value?k.pageY-e.value.offsetTop:k.pageX-e.value.offsetLeft)-u)*1.5;Math.abs(E)>5&&(l.value=!0,k.preventDefault()),i.value?e.value.scrollTop=c-E:e.value.scrollLeft=c-E}function g(k){if(e.value&&!i.value&&k.deltaX===0&&k.deltaY!==0){const D=k.deltaY<0,E=k.deltaY>0;(D&&r.value||E&&n.value)&&(k.preventDefault(),e.value.scrollBy({left:k.deltaY,behavior:"auto"}))}}let m=null;const y=o.ref(!1);function b(){a.autoplay&&(_(),m=setInterval(()=>{y.value||s.value||(n.value?d(1):e.value&&(i.value?e.value.scrollTo({top:0,behavior:"smooth"}):e.value.scrollTo({left:0,behavior:"smooth"})))},a.autoplayInterval))}function _(){m&&(clearInterval(m),m=null)}function w(){y.value=!0}function S(){y.value=!1,v()}const x=o.computed(()=>a.edgeFade?{"has-fade":!0,"can-scroll-start":r.value,"can-scroll-end":n.value}:{});let C;return o.onMounted(()=>{o.nextTick(()=>{f()}),window.addEventListener("resize",f),e.value&&window.ResizeObserver&&(C=new ResizeObserver(()=>f()),C.observe(e.value),e.value.addEventListener("wheel",g,{passive:!1})),b()}),o.watch(()=>a.autoplay,k=>{k?b():_()}),o.onUnmounted(()=>{window.removeEventListener("resize",f),_(),e.value&&e.value.removeEventListener("wheel",g),C&&e.value&&C.disconnect()}),(k,D)=>(o.openBlock(),o.createElementBlock("div",o.mergeProps({class:["apbd-carousel-wrapper",[i.value?"apbd-carousel-vertical":"",a.navOutside?"apbd-carousel-nav-outside":"",a.navOnHover?"apbd-carousel-nav-on-hover":"",x.value]]},k.$attrs,{onMouseenter:w,onMouseleave:S}),[o.withDirectives(o.createElementVNode("div",sx,[o.renderSlot(k.$slots,"prev",{scroll:()=>d(-1)},()=>[o.createElementVNode("button",{class:"apbd-carousel-nav",onClick:D[0]||(D[0]=E=>d(-1))},[o.renderSlot(k.$slots,"prev-icon",{},()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.value?o.unref(nb):o.unref(Mm)),{size:18}))])])])],512),[[o.vShow,r.value]]),o.createElementVNode("div",{class:o.normalizeClass(["apbd-carousel-container",{"is-moving":l.value,"is-dragging":s.value}]),ref_key:"scrollContainer",ref:e,onScroll:f,onMousedown:h,onMouseup:v,onMousemove:p},[o.renderSlot(k.$slots,"default")],34),o.withDirectives(o.createElementVNode("div",lx,[o.renderSlot(k.$slots,"next",{scroll:()=>d(1)},()=>[o.createElementVNode("button",{class:"apbd-carousel-nav",onClick:D[1]||(D[1]=E=>d(1))},[o.renderSlot(k.$slots,"next-icon",{},()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.value?o.unref(nc):o.unref(Am)),{size:18}))])])])],512),[[o.vShow,n.value]])],16))}}),cx={class:"apbd-tooltip-inner"},fx={__name:"AbTooltip",props:{content:{type:String,default:""},placement:{type:String,default:"top"},offset:{type:[Number,String],default:8},disabled:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},interactive:{type:Boolean,default:!1}},setup(t){const e=t,r=o.ref(!1),n=o.ref(null),a=o.ref(null),i=o.ref(null),s=o.computed(()=>e.placement.startsWith("auto")),l=o.computed(()=>e.placement.split("-")[1]||void 0),{floatingStyles:u,middlewareData:c,placement:f,update:d}=Bm(n,a,{placement:o.computed(()=>s.value?void 0:e.placement),offset:o.computed(()=>Number(e.offset)),arrowElement:i,arrowPadding:4,flip:!0,autoPlacement:s,alignment:l,whileElementsMounted:!0});o.watch(r,b=>{b&&o.nextTick(()=>d())});let h=null;const v=()=>{e.disabled||(h&&clearTimeout(h),r.value=!0)},p=()=>{h&&clearTimeout(h),h=setTimeout(()=>{r.value=!1},100)},g=()=>{e.interactive&&h&&clearTimeout(h)},m=()=>{e.interactive&&p()};o.onUnmounted(()=>{h&&clearTimeout(h)});const y=o.computed(()=>{if(!c.value.arrow)return{};const{x:b,y:_}=c.value.arrow,w=f.value||"top",S={top:"bottom",right:"left",bottom:"top",left:"right"}[w.split("-")[0]];return{left:b!=null?`${b}px`:"",top:_!=null?`${_}px`:"",right:"",bottom:"",[S]:"-4px"}});return(b,_)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{class:"apbd-tooltip-trigger",ref_key:"reference",ref:n,onMouseenter:v,onMouseleave:p,onFocus:v,onBlur:p},[o.renderSlot(b.$slots,"default")],544),(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[o.createVNode(o.Transition,{name:"apbd-tooltip-fade"},{default:o.withCtx(()=>[r.value?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"floating",ref:a,style:o.normalizeStyle(o.unref(u)),class:"apbd-tooltip-content",role:"tooltip",onMouseenter:g,onMouseleave:m},[o.createElementVNode("div",cx,[o.renderSlot(b.$slots,"content",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.content)),1)])]),t.arrow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"apbd-tooltip-arrow",ref_key:"floatingArrow",ref:i,style:o.normalizeStyle(y.value)},null,4)):o.createCommentVNode("",!0)],36)):o.createCommentVNode("",!0)]),_:3})]))],64))}},dx={key:0,class:"d-flex justify-content-between align-items-center w-100 pe-3"},hx={class:"modal-title fw-bold mb-0"},vx={key:0,class:"text-muted small"},px={key:0,width:"48",height:"48",viewBox:"0 0 48 48"},mx=["stroke-dashoffset"],gx={x:"24",y:"27","text-anchor":"middle","font-size":"10","font-weight":"600",fill:"currentColor"},yx={key:1,class:"ab-wizard-modal-header__row w-100 align-items-start gap-3"},bx={class:"ab-wizard-modal-header__main flex-grow-1"},_x={class:"position-absolute bg-muted start-0 end-0",style:{height:"2px",top:"var(--ab-wizard-track-top)","z-index":"0",margin:"0 var(--ab-wizard-track-margin)"}},Sx={key:0,class:"ab-wizard-desc text-muted transition-all"},xx={key:0,class:"ab-wizard-modal-header__close flex-shrink-0"},Cx={class:"modal-body p-4 position-relative"},kx={class:"ab-wizard-body-inner"},Tx={key:0,class:"apbd-wizard-loading-overlay d-flex align-items-center justify-content-center flex-column"},Dx={class:"fw-bold text-primary"},Ex={class:"modal-footer d-flex justify-content-between"},Mx={key:1},Ax={class:"d-flex align-items-center gap-2"},Nx={class:"spinner-border spinner-border-sm text-primary",role:"status"},Bx={class:"visually-hidden"},Vx={class:"position-absolute bg-muted start-0 end-0",style:{height:"2px",top:"var(--ab-wizard-track-top)","z-index":"0",margin:"0 var(--ab-wizard-track-margin)"}},Ix={key:0,class:"ab-wizard-desc text-muted transition-all"},Lx={key:1,class:"ab-wizard-mobile-header d-flex justify-content-between align-items-center w-100 mb-4 pb-3 border-bottom"},Px={class:"d-flex flex-column pr-3",style:{"max-width":"75%"}},zx={class:"mb-1 fw-bold text-dark"},Rx={key:0,class:"text-muted small"},Ox={class:"mobile-wizard-progress flex-shrink-0"},$x={width:"48",height:"48",viewBox:"0 0 48 48"},Fx=["stroke-dashoffset"],Hx={x:"24",y:"27","text-anchor":"middle","font-size":"10","font-weight":"600",fill:"currentColor"},Gx={class:"ab-wizard-content-wrapper flex-grow-1 d-flex flex-column h-100"},Wx={class:"ab-wizard-body-inner"},Ux={key:0,class:"apbd-wizard-loading-overlay d-flex align-items-center justify-content-center flex-column"},Yx={class:"fw-bold text-primary"},Xx={key:0,class:"ab-wizard-controls mt-4 d-flex justify-content-between align-items-center mt-auto pt-4"},qx={class:"d-flex align-items-center gap-2"},jx={class:"spinner-border spinner-border-sm text-primary mx-2",role:"status"},Zx={class:"visually-hidden"},Kx={__name:"AbWizard",props:{beforeNext:{type:Function,default:async()=>!0},beforePrev:{type:Function,default:async()=>!0},beforeFinish:{type:Function,default:async()=>!0},orientation:{type:String,default:"horizontal"},variant:{type:String,default:"default"},stepperSize:{type:String,default:"md"},hideControls:{type:Boolean,default:!1},nextText:{type:String,default:"Next"},prevText:{type:String,default:"Back"},finishText:{type:String,default:"Finish"},disableClose:{type:Boolean,default:!1},modalClass:{type:String,default:"modal-lg"}},emits:["finished","step-changed"],setup(t,{expose:e,emit:r}){const n=t,a=r,i=o.ref([]),s=o.ref(0),l=o.ref(!1),u=o.ref(1024),c=()=>{u.value=window.innerWidth};o.onMounted(()=>{typeof window<"u"&&(u.value=window.innerWidth,window.addEventListener("resize",c))}),o.onUnmounted(()=>{typeof window<"u"&&window.removeEventListener("resize",c)});const f=o.computed(()=>u.value<=768),d=o.computed(()=>n.variant&&n.variant.includes("circular")||f.value),h=o.computed(()=>n.variant&&n.variant.includes("modal")),v=o.computed(()=>n.stepperSize==="sm"?"sm":"md"),p=o.computed(()=>h.value&&!d.value&&v.value==="sm"&&n.orientation==="horizontal"),g=o.computed(()=>`ab-wizard-size-${v.value}`),m=o.computed(()=>v.value==="sm"?{"--ab-wizard-trigger-size":"32px","--ab-wizard-icon-size":"16px","--ab-wizard-track-top":"15px","--ab-wizard-track-margin":"16px","--ab-wizard-label-top":"32px","--ab-wizard-vertical-line-left":"15px","--ab-wizard-vertical-line-top":"32px"}:{"--ab-wizard-trigger-size":"40px","--ab-wizard-icon-size":"20px","--ab-wizard-track-top":"19px","--ab-wizard-track-margin":"20px","--ab-wizard-label-top":"40px","--ab-wizard-vertical-line-left":"19px","--ab-wizard-vertical-line-top":"40px"}),y=o.ref(!1),b=o.ref(null),_=o.computed(()=>{if(b.value!==null)return!b.value;if(n.disableClose)return!1;const N=i.value[s.value];return!(N&&N.disableClose)}),w=N=>{b.value=N},S=(N=!1)=>{(N===!0||_.value)&&(y.value=!1)},x=o.computed(()=>i.value.length===0||!i.value[s.value]?null:i.value[s.value].id),C=N=>{i.value.push(N)},k=N=>{i.value=i.value.filter(R=>R.id!==N),s.value>=i.value.length&&(s.value=Math.max(0,i.value.length-1))},D=(N,R)=>{const I=i.value.findIndex(G=>G.id===N);I!==-1&&(i.value[I]={...i.value[I],...R})},E=o.ref({}),T=(N,R)=>{E.value[N]=R};o.provide("AbWizard",{activeStepId:x,registerStep:C,unregisterStep:k,updateStep:D,registerStepValidator:T});const M=o.computed(()=>s.value===0),A=o.computed(()=>s.value===i.value.length-1),P=async()=>{if(!(l.value||A.value)){l.value=!0;try{let N=!0;x.value&&E.value[x.value]&&(N=await E.value[x.value]()),N!==!1&&(N=await n.beforeNext({currentIndex:s.value,nextIndex:s.value+1,closeModal:S,setDisableClose:w})),N!==!1&&(s.value++,a("step-changed",s.value))}finally{l.value=!1}}},V=async()=>{if(!(l.value||M.value)){l.value=!0;try{await n.beforePrev({currentIndex:s.value,nextIndex:s.value-1,closeModal:S,setDisableClose:w})!==!1&&(s.value--,a("step-changed",s.value))}finally{l.value=!1}}},B=async()=>{if(!l.value){l.value=!0;try{let N=!0;x.value&&E.value[x.value]&&(N=await E.value[x.value]()),N!==!1&&(N=await n.beforeFinish({closeModal:S,setDisableClose:w})),N!==!1&&a("finished")}finally{l.value=!1}}},z=N=>N<s.value?"completed":N===s.value?"active":"inactive";return e({steps:i,currentIndex:s,isFirstStep:o.computed(()=>s.value===0),isLastStep:o.computed(()=>s.value===i.value.length-1),isLoading:l,goToNext:P,goToPrev:V,finish:B,getStepState:z,closeModal:S,setDisableClose:w}),(N,R)=>{var G,F,J,le;const I=o.resolveDirective("translate");return h.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.renderSlot(N.$slots,"modal-button",{open:()=>y.value=!0},()=>[o.createVNode(Le,{variant:"primary",onClick:R[0]||(R[0]=X=>y.value=!0)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.nextText)),1)]),_:1})],!0),(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[y.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"modal-backdrop fade show",onClick:R[1]||(R[1]=X=>S(!1))})):o.createCommentVNode("",!0),y.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"modal fade show d-block",tabindex:"-1",onClick:R[4]||(R[4]=o.withModifiers(X=>S(!1),["self"]))},[o.createElementVNode("div",{class:o.normalizeClass(["modal-dialog modal-dialog-centered",t.modalClass])},[o.createElementVNode("div",{class:o.normalizeClass(["modal-content ab-wizard",[g.value,{"ab-wizard-modal-stepper-compact":p.value,"apbd-wizard-loading":l.value}]]),style:o.normalizeStyle(m.value)},[o.createElementVNode("div",{class:o.normalizeClass(["modal-header position-relative",d.value?"":"ab-wizard-modal-header"])},[d.value?(o.openBlock(),o.createElementBlock("div",dx,[o.createElementVNode("div",null,[o.createElementVNode("h5",hx,o.toDisplayString(((G=i.value[s.value])==null?void 0:G.title)||"Step "+(s.value+1)),1),s.value<i.value.length-1?(o.openBlock(),o.createElementBlock("span",vx," Next: "+o.toDisplayString(((F=i.value[s.value+1])==null?void 0:F.title)||"Step "+(s.value+2)),1)):o.createCommentVNode("",!0)]),i.value.length?(o.openBlock(),o.createElementBlock("svg",px,[R[5]||(R[5]=o.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-secondary-bg, #e9ecef)","stroke-width":"4"},null,-1)),o.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-primary, #0d6efd)","stroke-width":"4","stroke-linecap":"round",transform:"rotate(-90 24 24)","stroke-dasharray":"125.66","stroke-dashoffset":125.66-125.66*((s.value+1)/i.value.length),style:{transition:"stroke-dashoffset 0.4s ease"}},null,8,mx),o.createElementVNode("text",gx,o.toDisplayString(s.value+1)+" of "+o.toDisplayString(i.value.length),1)])):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",yx,[o.createElementVNode("div",bx,[o.createElementVNode("div",{class:o.normalizeClass(["ab-wizard-header w-100 position-relative",[t.orientation==="horizontal"?"ab-wizard-horizontal-header":"ab-wizard-vertical-header"]])},[o.renderSlot(N.$slots,"stepper-header",o.normalizeProps(o.guardReactiveProps({steps:i.value,currentIndex:s.value,getStepState:z,isMobile:f.value})),()=>[o.renderSlot(N.$slots,"header-top",{},void 0,!0),o.createElementVNode("div",{class:o.normalizeClass(["d-flex w-100 position-relative",[p.value?"mt-1":"mt-2",t.orientation==="vertical"?"flex-column":"justify-content-between align-items-start"]])},[o.withDirectives(o.createElementVNode("div",_x,null,512),[[o.vShow,t.orientation==="horizontal"]]),o.withDirectives(o.createElementVNode("div",{class:"position-absolute bg-primary transition-all start-0",style:o.normalizeStyle([{height:"2px",top:"var(--ab-wizard-track-top)","z-index":"1",margin:"0 var(--ab-wizard-track-margin)"},{width:`calc((100% - var(--ab-wizard-trigger-size)) * ${s.value/Math.max(1,i.value.length-1)})`}])},null,4),[[o.vShow,t.orientation==="horizontal"]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(X,Y)=>(o.openBlock(),o.createElementBlock("div",{key:X.id,class:o.normalizeClass(["ab-wizard-step-indicator position-relative d-flex",t.orientation==="vertical"?"w-100 align-items-start gap-3 pb-4":"flex-column"]),style:o.normalizeStyle(t.orientation==="horizontal"?{alignItems:Y===0?"flex-start":Y===i.value.length-1?"flex-end":"center"}:{})},[o.withDirectives(o.createElementVNode("div",{class:o.normalizeClass(["vertical-sep transition-all",z(Y)==="completed"?"bg-primary":"bg-muted"])},null,2),[[o.vShow,t.orientation==="vertical"&&Y!==i.value.length-1]]),o.createElementVNode("div",{class:o.normalizeClass(["ab-wizard-trigger position-relative z-2 flex-shrink-0 d-flex align-items-center justify-content-center rounded-circle transition-all",[z(Y)==="completed"?"bg-primary text-white":"bg-white border",z(Y)==="active"?"border-primary ring-active text-primary":"",z(Y)==="inactive"?"border-secondary text-secondary":""]]),style:{width:"var(--ab-wizard-trigger-size)",height:"var(--ab-wizard-trigger-size)","min-width":"var(--ab-wizard-trigger-size)","min-height":"var(--ab-wizard-trigger-size)"}},[o.renderSlot(N.$slots,"step-icon",o.mergeProps({ref_for:!0},{step:X,index:Y,state:z(Y)}),()=>[z(Y)==="completed"?(o.openBlock(),o.createBlock(o.unref(rc),{key:0,class:"icon-sm"})):X.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(X.icon),{key:1,class:"icon-sm"})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[z(Y)==="active"?(o.openBlock(),o.createBlock(o.unref(Nd),{key:0,class:"icon-sm opacity-75"})):(o.openBlock(),o.createBlock(o.unref(Vd),{key:1,class:"icon-sm"}))],64))],!0)],2),o.createElementVNode("div",{class:o.normalizeClass(["ab-wizard-label d-flex flex-column",[t.orientation==="vertical"?"align-items-start mt-1":`position-absolute ${p.value?"pt-2":"pt-3"}`]]),style:o.normalizeStyle(t.orientation==="horizontal"?{top:"var(--ab-wizard-label-top)",insetInlineStart:Y===i.value.length-1?"auto":"0",insetInlineEnd:Y===0?"auto":"0",marginInline:Y!==0&&Y!==i.value.length-1?"auto":"unset",width:"max-content",textAlign:Y===0?"start":Y===i.value.length-1?"end":"center"}:{})},[o.renderSlot(N.$slots,"step-label",o.mergeProps({ref_for:!0},{step:X,index:Y,state:z(Y)}),()=>[o.createElementVNode("span",{class:o.normalizeClass(["ab-wizard-title fw-semibold transition-all",z(Y)==="active"||z(Y)==="completed"?"text-primary":""])},o.toDisplayString(o.unref($)(X.title)),3),X.description?(o.openBlock(),o.createElementBlock("span",Sx,o.toDisplayString(o.unref($)(X.description)),1)):o.createCommentVNode("",!0)],!0)],6)],6))),128))],2)],!0)],2)]),_.value?(o.openBlock(),o.createElementBlock("div",xx,[o.createElementVNode("button",{type:"button",class:"btn-close",style:{"z-index":"10"},onClick:R[2]||(R[2]=X=>S(!1))})])):o.createCommentVNode("",!0)])),_.value&&d.value?(o.openBlock(),o.createElementBlock("button",{key:2,type:"button",class:"btn-close",style:{"z-index":"10"},onClick:R[3]||(R[3]=X=>S(!1))})):o.createCommentVNode("",!0)],2),o.createElementVNode("div",Cx,[o.createElementVNode("div",kx,[o.renderSlot(N.$slots,"default",{},void 0,!0)]),l.value?(o.openBlock(),o.createElementBlock("div",Tx,[o.renderSlot(N.$slots,"loader",o.normalizeProps(o.guardReactiveProps({isLoading:l.value,variant:"overlay",isModal:!0,currentIndex:s.value})),()=>[R[7]||(R[7]=o.createElementVNode("div",{class:"spinner-border text-primary mb-2",role:"status"},null,-1)),o.withDirectives((o.openBlock(),o.createElementBlock("span",Dx,[...R[6]||(R[6]=[o.createTextVNode("Please wait...",-1)])])),[[I]])],!0)])):o.createCommentVNode("",!0)]),o.createElementVNode("div",Ex,[M.value?(o.openBlock(),o.createElementBlock("div",Mx)):(o.openBlock(),o.createBlock(Le,{key:0,variant:"outline-secondary",disabled:l.value,onClick:V},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.prevText)),1)]),_:1},8,["disabled"])),o.createElementVNode("div",Ax,[l.value?o.renderSlot(N.$slots,"loader",o.normalizeProps(o.mergeProps({key:0},{isLoading:l.value,variant:"inline",isModal:!0,currentIndex:s.value})),()=>[o.createElementVNode("div",Nx,[o.withDirectives((o.openBlock(),o.createElementBlock("span",Bx,[...R[8]||(R[8]=[o.createTextVNode("Loading...",-1)])])),[[I]])])],!0):o.createCommentVNode("",!0),A.value?(o.openBlock(),o.createBlock(Le,{key:2,variant:"success",disabled:l.value,onClick:B},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.finishText)),1)]),_:1},8,["disabled"])):(o.openBlock(),o.createBlock(Le,{key:1,variant:"primary",disabled:l.value,onClick:P},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.nextText)),1)]),_:1},8,["disabled"]))])])],6)],2)])):o.createCommentVNode("",!0)]))],64)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["ab-wizard w-100",[`ab-wizard-${t.orientation}`,g.value,t.orientation==="vertical"&&!d.value?"d-flex flex-column flex-md-row gap-3":"",{"apbd-wizard-loading":l.value}]]),style:o.normalizeStyle(m.value)},[d.value?(o.openBlock(),o.createElementBlock("div",Lx,[o.createElementVNode("div",Px,[o.createElementVNode("h5",zx,o.toDisplayString(((J=i.value[s.value])==null?void 0:J.title)||"Step "+(s.value+1)),1),s.value<i.value.length-1?(o.openBlock(),o.createElementBlock("span",Rx," Next: "+o.toDisplayString(((le=i.value[s.value+1])==null?void 0:le.title)||"Step "+(s.value+2)),1)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Ox,[(o.openBlock(),o.createElementBlock("svg",$x,[R[9]||(R[9]=o.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-secondary-bg, #e9ecef)","stroke-width":"4"},null,-1)),o.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-primary, #0d6efd)","stroke-width":"4","stroke-linecap":"round",transform:"rotate(-90 24 24)","stroke-dasharray":"125.66","stroke-dashoffset":125.66-125.66*((s.value+1)/i.value.length),style:{transition:"stroke-dashoffset 0.4s ease"}},null,8,Fx),o.createElementVNode("text",Hx,o.toDisplayString(s.value+1)+" of "+o.toDisplayString(i.value.length),1)]))])])):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["ab-wizard-header position-relative p-1",[t.orientation==="horizontal"?"ab-wizard-horizontal-header":"flex-shrink-0 ab-wizard-vertical-header"]])},[o.renderSlot(N.$slots,"stepper-header",o.normalizeProps(o.guardReactiveProps({steps:i.value,currentIndex:s.value,getStepState:z,isMobile:f.value})),()=>[o.renderSlot(N.$slots,"header-top",{},void 0,!0),o.createElementVNode("div",{class:o.normalizeClass(["d-flex w-100 position-relative",t.orientation==="vertical"?"flex-column":"justify-content-between align-items-start"])},[o.withDirectives(o.createElementVNode("div",Vx,null,512),[[o.vShow,t.orientation==="horizontal"]]),o.withDirectives(o.createElementVNode("div",{class:"position-absolute bg-primary transition-all start-0",style:o.normalizeStyle([{height:"2px",top:"var(--ab-wizard-track-top)","z-index":"1",margin:"0 var(--ab-wizard-track-margin)"},{width:`calc((100% - var(--ab-wizard-trigger-size)) * ${s.value/Math.max(1,i.value.length-1)})`}])},null,4),[[o.vShow,t.orientation==="horizontal"]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(X,Y)=>(o.openBlock(),o.createElementBlock("div",{key:X.id,class:o.normalizeClass(["ab-wizard-step-indicator position-relative d-flex",t.orientation==="vertical"?"w-100 align-items-start gap-3 pb-4":"flex-column"]),style:o.normalizeStyle(t.orientation==="horizontal"?{alignItems:Y===0?"flex-start":Y===i.value.length-1?"flex-end":"center"}:{})},[o.withDirectives(o.createElementVNode("div",{class:o.normalizeClass(["vertical-sep transition-all",z(Y)==="completed"?"bg-primary":"bg-muted"])},null,2),[[o.vShow,t.orientation==="vertical"&&Y!==i.value.length-1]]),o.createElementVNode("div",{class:o.normalizeClass(["ab-wizard-trigger position-relative z-2 flex-shrink-0 d-flex align-items-center justify-content-center rounded-circle transition-all",[z(Y)==="completed"?"bg-primary text-white":"bg-white border",z(Y)==="active"?"border-primary ring-active text-primary":"",z(Y)==="inactive"?"border-secondary text-secondary":""]]),style:{width:"var(--ab-wizard-trigger-size)",height:"var(--ab-wizard-trigger-size)","min-width":"var(--ab-wizard-trigger-size)","min-height":"var(--ab-wizard-trigger-size)"}},[o.renderSlot(N.$slots,"step-icon",o.mergeProps({ref_for:!0},{step:X,index:Y,state:z(Y)}),()=>[z(Y)==="completed"?(o.openBlock(),o.createBlock(o.unref(rc),{key:0,class:"icon-sm"})):X.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(X.icon),{key:1,class:"icon-sm"})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[z(Y)==="active"?(o.openBlock(),o.createBlock(o.unref(Nd),{key:0,class:"icon-sm opacity-75"})):(o.openBlock(),o.createBlock(o.unref(Vd),{key:1,class:"icon-sm"}))],64))],!0)],2),o.createElementVNode("div",{class:o.normalizeClass(["ab-wizard-label d-flex flex-column",[t.orientation==="vertical"?"align-items-start mt-1":"position-absolute pt-3"]]),style:o.normalizeStyle(t.orientation==="horizontal"?{top:"var(--ab-wizard-label-top)",insetInlineStart:Y===i.value.length-1?"auto":"0",insetInlineEnd:Y===0?"auto":"0",marginInline:Y!==0&&Y!==i.value.length-1?"auto":"unset",width:"max-content",textAlign:Y===0?"start":Y===i.value.length-1?"end":"center"}:{})},[o.renderSlot(N.$slots,"step-label",o.mergeProps({ref_for:!0},{step:X,index:Y,state:z(Y)}),()=>[o.createElementVNode("span",{class:o.normalizeClass(["ab-wizard-title fw-semibold transition-all",z(Y)==="active"||z(Y)==="completed"?"text-primary":""])},o.toDisplayString(o.unref($)(X.title)),3),X.description?(o.openBlock(),o.createElementBlock("span",Ix,o.toDisplayString(o.unref($)(X.description)),1)):o.createCommentVNode("",!0)],!0)],6)],6))),128))],2)],!0)],2)),o.createElementVNode("div",Gx,[o.createElementVNode("div",{class:o.normalizeClass(["ab-wizard-body position-relative",t.orientation==="horizontal"?"mt-4":""])},[o.createElementVNode("div",Wx,[o.renderSlot(N.$slots,"default",{},void 0,!0)]),l.value?(o.openBlock(),o.createElementBlock("div",Ux,[o.renderSlot(N.$slots,"loader",o.normalizeProps(o.guardReactiveProps({isLoading:l.value,variant:"overlay",isModal:!1,currentIndex:s.value})),()=>[R[11]||(R[11]=o.createElementVNode("div",{class:"spinner-border text-primary mb-2",role:"status"},null,-1)),o.withDirectives((o.openBlock(),o.createElementBlock("span",Yx,[...R[10]||(R[10]=[o.createTextVNode("Please wait...",-1)])])),[[I]])],!0)])):o.createCommentVNode("",!0)],2),t.hideControls?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Xx,[o.renderSlot(N.$slots,"controls",o.normalizeProps(o.guardReactiveProps({isFirstStep:M.value,isLastStep:A.value,isLoading:l.value,goToPrev:V,goToNext:P,finish:B,closeModal:S,setDisableClose:w})),()=>[o.createVNode(Le,{variant:"outline-secondary",disabled:M.value||l.value,onClick:V},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.prevText)),1)]),_:1},8,["disabled"]),o.createElementVNode("div",qx,[l.value?o.renderSlot(N.$slots,"loader",o.normalizeProps(o.mergeProps({key:0},{isLoading:l.value,variant:"inline",isModal:!1,currentIndex:s.value})),()=>[o.createElementVNode("div",jx,[o.withDirectives((o.openBlock(),o.createElementBlock("span",Zx,[...R[12]||(R[12]=[o.createTextVNode("Loading...",-1)])])),[[I]])])],!0):o.createCommentVNode("",!0),A.value?(o.openBlock(),o.createBlock(Le,{key:2,variant:"success",disabled:l.value,onClick:B},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.finishText)),1)]),_:1},8,["disabled"])):(o.openBlock(),o.createBlock(Le,{key:1,variant:"primary",disabled:l.value,onClick:P},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.nextText)),1)]),_:1},8,["disabled"]))])],!0)]))])],6))}}},Qx=gt(Kx,[["__scopeId","data-v-e180de2b"]]),Jx={class:"ab-wizard-step w-100 h-100 fade-in"},eC={__name:"AbWizardStep",props:{title:{type:String,required:!0},description:{type:String,default:""},icon:{type:[Object,String,Function],default:null},disableClose:{type:Boolean,default:!1}},setup(t){const e=t,r=o.inject("AbWizard");r||console.error("AbWizardStep must be used inside an <AbWizard> component.");const n=o.ref(Math.random().toString(36).substr(2,9)),a=o.ref(!1);o.provide("AbWizardStep",{id:n.value});const i={id:n.value,title:e.title,description:e.description,icon:e.icon,disableClose:e.disableClose};return o.onMounted(()=>{r&&r.registerStep(i)}),o.onUnmounted(()=>{r&&r.unregisterStep(n.value)}),r&&(o.watch(()=>r.activeStepId.value,s=>{a.value=s===n.value},{immediate:!0}),o.watch(()=>[e.title,e.description,e.icon,e.disableClose],([s,l,u,c])=>{r.updateStep(n.value,{title:s,description:l,icon:u,disableClose:c})})),(s,l)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",Jx,[o.renderSlot(s.$slots,"default",{},void 0,!0)],512)),[[o.vShow,a.value]])}},tC=gt(eC,[["__scopeId","data-v-0e453066"]]),rC={__name:"AbField",props:{val:null,label:{type:String},name:{type:String,default:""},type:{type:String,default:"text"},prefix:{type:String,default:""},postfix:{type:String,default:""},modelValue:{type:[String,Number,Boolean,Array,Object],default:""},isCodeInput:{type:Boolean,default:!1},containerClass:{type:String,default:void 0},maxlength:{type:[String,Number],default:""},minlength:{type:[String,Number],default:""},placeholder:{type:String,default:""},hints:{type:[String,Array],default:""},rules:{type:[String,Array],default:""},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"val"},max:{default:-1},size:{type:String,default:void 0},object:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},description:{type:String,default:""},helptext:{type:String,default:""},isInline:{type:Boolean,default:!1},trueValue:{default:void 0},falseValue:{default:void 0},title:null,isLeftIconBorder:{type:Boolean,default:!1},isRightIconBorder:{type:Boolean,default:!1},passIconPosition:{type:String,default:"right"},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:t=>["left","right"].includes(t)}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=o.useSlots(),a=o.useAttrs(),i=e,s=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,l=o.getCurrentInstance(),u=o.computed(()=>r.name||`input_${(l==null?void 0:l.uid)||s}`),c=o.computed(()=>r.containerClass!==void 0&&r.containerClass!==null?r.containerClass:te.inputContainerClass??""),f=o.computed(()=>r.trueValue!==void 0&&r.trueValue!==null?r.trueValue:te.trueValue??"Y"),d=o.computed(()=>r.falseValue!==void 0&&r.falseValue!==null?r.falseValue:te.falseValue??"N"),h=o.computed(()=>r.size!==void 0&&r.size!==null?r.size:te.size??"md"),v=o.computed(()=>r.iconPosition!==void 0&&r.iconPosition!==null?r.iconPosition:te.iconPosition??"right"),p=o.computed({get:()=>r.modelValue,set:g=>i("update:modelValue",g)});return(g,m)=>{var y,b,_,w,S;return o.openBlock(),o.createElementBlock(o.Fragment,null,[["text","password","email","number","url","textarea"].includes(t.type)?(o.openBlock(),o.createBlock(pr,{key:0,modelValue:p.value,"onUpdate:modelValue":m[0]||(m[0]=x=>p.value=x),label:t.label,placeholder:t.placeholder,hints:t.hints,name:u.value,isCodeInput:t.isCodeInput,maxlength:t.maxlength,minlength:t.minlength,rules:t.rules,type:t.type,isLeftIconBorder:t.isLeftIconBorder,isRightIconBorder:t.isRightIconBorder,passIconPosition:t.passIconPosition,isHideLabel:t.isHideLabel,iconPosition:v.value,as:t.type=="textarea"?"textarea":"",containerClass:c.value,size:h.value},o.createSlots({_:2},[(o.unref(n).label||t.label)&&!t.isHideLabel?{name:"label",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])]),key:"0"}:void 0,o.unref(n).icon?{name:"icon",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"icon")]),key:"1"}:void 0,o.unref(n).prefix||t.prefix?{name:"prefix",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"prefix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.prefix)),1)])]),key:"2"}:void 0,o.unref(n).postfix||t.postfix?{name:"postfix",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"postfix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.postfix)),1)])]),key:"3"}:void 0,o.unref(n).showPasswordIcon?{name:"showPasswordIcon",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"showPasswordIcon")]),key:"4"}:void 0,o.unref(n).hidePasswordIcon?{name:"hidePasswordIcon",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"hidePasswordIcon")]),key:"5"}:void 0]),1032,["modelValue","label","placeholder","hints","name","isCodeInput","maxlength","minlength","rules","type","isLeftIconBorder","isRightIconBorder","passIconPosition","isHideLabel","iconPosition","as","containerClass","size"])):o.createCommentVNode("",!0),["select","multiselect"].includes(t.type)?(o.openBlock(),o.createBlock(xa,{key:1,size:h.value,modelValue:p.value,"onUpdate:modelValue":m[1]||(m[1]=x=>p.value=x),options:t.options,label:t.label,placeholder:t.placeholder,hints:t.hints,name:u.value,id:(y=o.unref(a))==null?void 0:y.id,style:o.normalizeStyle((b=o.unref(a))==null?void 0:b.style),max:t.max,rules:t.rules,object:t.object,valueKey:t.valueKey,labelKey:t.labelKey,mode:t.type=="multiselect"?"tags":"single",disabled:(_=o.unref(a))==null?void 0:_.disabled,searchable:t.searchable,isLeftIconBorder:t.isLeftIconBorder,isRightIconBorder:t.isRightIconBorder,isHideLabel:t.isHideLabel,iconPosition:v.value,containerClass:c.value,onClear:m[2]||(m[2]=x=>i("clear",x)),onChange:m[3]||(m[3]=x=>i("change",x)),onSelect:m[4]||(m[4]=x=>i("select",x))},o.createSlots({_:2},[(o.unref(n).label||t.label)&&!t.isHideLabel?{name:"label",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])]),key:"0"}:void 0,o.unref(n).icon?{name:"icon",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"icon")]),key:"1"}:void 0,o.unref(n).prefix||t.prefix?{name:"prefix",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"prefix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.prefix)),1)])]),key:"2"}:void 0,o.unref(n).postfix||t.postfix?{name:"postfix",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"postfix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.postfix)),1)])]),key:"3"}:void 0,o.unref(n).option?{name:"option",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"option")]),key:"4"}:void 0,o.unref(n).singlelabel?{name:"singlelabel",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"singlelabel")]),key:"5"}:void 0]),1032,["size","modelValue","options","label","placeholder","hints","name","id","style","max","rules","object","valueKey","labelKey","mode","disabled","searchable","isLeftIconBorder","isRightIconBorder","isHideLabel","iconPosition","containerClass"])):o.createCommentVNode("",!0),t.type=="tag"?(o.openBlock(),o.createBlock(Vm,{key:2,modelValue:p.value,"onUpdate:modelValue":m[5]||(m[5]=x=>p.value=x),size:h.value,label:t.label,name:u.value,isLeftIconBorder:t.isLeftIconBorder,isRightIconBorder:t.isRightIconBorder,id:(w=g.$attrs)==null?void 0:w.id,rules:t.rules,isHideLabel:t.isHideLabel,iconPosition:v.value,containerClass:c.value,options:t.options,placeholder:t.placeholder,max:t.max},o.createSlots({_:2},[(o.unref(n).label||t.label)&&!t.isHideLabel?{name:"label",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])]),key:"0"}:void 0,o.unref(n).icon?{name:"icon",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"icon")]),key:"1"}:void 0,o.unref(n).prefix||t.prefix?{name:"prefix",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"prefix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.prefix)),1)])]),key:"2"}:void 0,o.unref(n).postfix||t.postfix?{name:"postfix",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"postfix",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.postfix)),1)])]),key:"3"}:void 0]),1032,["modelValue","size","label","name","isLeftIconBorder","isRightIconBorder","id","rules","isHideLabel","iconPosition","containerClass","options","placeholder","max"])):o.createCommentVNode("",!0),t.type=="checkbox"||t.type=="radio"?(o.openBlock(),o.createBlock(Na,{key:3,type:t.type,name:u.value,size:h.value,modelValue:p.value,"onUpdate:modelValue":m[6]||(m[6]=x=>p.value=x),val:t.val,options:t.options,limit:t.max,rules:t.rules,containerClass:c.value,isInline:t.isInline},o.createSlots({_:2},[o.unref(n).label||t.label?{name:"label",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])]),key:"0"}:void 0,o.unref(n).description||t.description?{name:"description",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"description",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.description)),1)])]),key:"1"}:void 0,o.unref(n).helptext||t.helptext?{name:"help-text",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"help-text",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.helptext)),1)])]),key:"2"}:void 0]),1032,["type","name","size","modelValue","val","options","limit","rules","containerClass","isInline"])):o.createCommentVNode("",!0),t.type=="toggle"||t.type=="switch"?(o.openBlock(),o.createBlock(gf,{key:4,size:h.value,name:u.value,id:(S=o.unref(a))==null?void 0:S.id,containerClass:c.value,trueValue:f.value,falseValue:d.value,modelValue:p.value,"onUpdate:modelValue":m[7]||(m[7]=x=>p.value=x)},o.createSlots({_:2},[o.unref(n).label||t.label?{name:"label",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.label)),1)])]),key:"0"}:void 0,o.unref(n).title||t.title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"title",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.title)),1)])]),key:"1"}:void 0,o.unref(n).description||t.description?{name:"description",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"description",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.description)),1)])]),key:"2"}:void 0,o.unref(n).hints||t.hints?{name:"hints",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"hints",{},()=>[o.createTextVNode(o.toDisplayString(o.unref($)(t.hints)),1)])]),key:"3"}:void 0]),1032,["size","name","id","containerClass","trueValue","falseValue","modelValue"])):o.createCommentVNode("",!0)],64)}}};function zm(){const t=o.ref("light"),e=a=>{t.value=a,document.documentElement.setAttribute("data-bs-theme",a),localStorage.setItem("theme",a)},r=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",n=()=>{e(t.value==="dark"?"light":"dark")};return o.onMounted(()=>{const a=localStorage.getItem("theme");e(a||r()),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",i=>{localStorage.getItem("theme")||e(i.matches?"dark":"light")})}),{theme:t,toggleTheme:n,applyTheme:e}}const nC=["title","aria-label"],aC={class:"apbd-dark-mode-toggler-inner"},iC={__name:"AbDarkModeToggler",props:{size:{type:String,default:"md",validator:t=>["xs","sm","md","lg","xl","2xl"].includes(t)}},setup(t){const{theme:e,toggleTheme:r}=zm();return(n,a)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["apbd-dark-mode-toggler",`apbd-dark-mode-toggler-${t.size}`]),onClick:a[0]||(a[0]=(...i)=>o.unref(r)&&o.unref(r)(...i)),title:o.unref(e)==="dark"?"Switch to Light Mode":"Switch to Dark Mode","aria-label":o.unref(e)==="dark"?"Switch to Light Mode":"Switch to Dark Mode"},[o.createElementVNode("div",aC,[o.unref(e)==="dark"?o.renderSlot(n.$slots,"dark-icon",{key:0},()=>[o.createVNode(o.unref(db),{class:"apbd-dark-mode-toggler-icon sun-icon"})]):o.renderSlot(n.$slots,"light-icon",{key:1},()=>[o.createVNode(o.unref(cb),{class:"apbd-dark-mode-toggler-icon moon-icon"})])])],10,nC))}},oC={},sC={class:"success-icon"};function lC(t,e){return o.openBlock(),o.createElementBlock("div",sC,[...e[0]||(e[0]=[o.createElementVNode("svg",{viewBox:"0 0 52 52"},[o.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),o.createElementVNode("path",{class:"check",fill:"none",d:"M14 27l7 7 16-16"})],-1)])])}const Rm=gt(oC,[["render",lC],["__scopeId","data-v-2a6789fa"]]),uC={},cC={class:"error-icon"};function fC(t,e){return o.openBlock(),o.createElementBlock("div",cC,[...e[0]||(e[0]=[o.createElementVNode("svg",{viewBox:"0 0 52 52"},[o.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),o.createElementVNode("path",{class:"cross line1",fill:"none",d:"M16 16 36 36"}),o.createElementVNode("path",{class:"cross line2",fill:"none",d:"M36 16 16 36"})],-1)])])}const Om=gt(uC,[["render",fC],["__scopeId","data-v-fec388a6"]]),dC={},hC={class:"warn-icon"};function vC(t,e){return o.openBlock(),o.createElementBlock("div",hC,[...e[0]||(e[0]=[o.createElementVNode("svg",{viewBox:"0 0 52 52"},[o.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),o.createElementVNode("line",{class:"line",x1:"26",y1:"16",x2:"26",y2:"30"}),o.createElementVNode("circle",{class:"dot",cx:"26",cy:"36",r:"2"})],-1)])])}const $m=gt(dC,[["render",vC],["__scopeId","data-v-5beded77"]]),pC={},mC={class:"info-icon"};function gC(t,e){return o.openBlock(),o.createElementBlock("div",mC,[...e[0]||(e[0]=[o.createElementVNode("svg",{viewBox:"0 0 52 52"},[o.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),o.createElementVNode("line",{class:"line",x1:"26",y1:"22",x2:"26",y2:"34"}),o.createElementVNode("circle",{class:"dot",cx:"26",cy:"16",r:"2"})],-1)])])}const Fm=gt(pC,[["render",gC],["__scopeId","data-v-bfbd53ac"]]),yC={},bC={class:"question-icon"};function _C(t,e){return o.openBlock(),o.createElementBlock("div",bC,[...e[0]||(e[0]=[o.createElementVNode("svg",{viewBox:"0 0 52 52"},[o.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),o.createElementVNode("path",{class:"curve",fill:"none",d:"M20 20a6 6 0 1 1 10 4c-2 2-4 3-4 6"}),o.createElementVNode("circle",{class:"dot",cx:"26",cy:"36",r:"2"})],-1)])])}const Hm=gt(yC,[["render",_C],["__scopeId","data-v-ac51a033"]]),wC={class:"ms-1"},SC={key:0,class:"mb-3 d-flex justify-content-center"},xC={key:1,class:"fw-bold mb-2"},CC={class:"d-flex justify-content-center align-items-center mt-3 gap-2"},kC={__name:"AbConfirmPopover",props:{msg:{type:String,default:"Are you sure?"},title:{type:String,default:""},confirmText:{type:String,default:"Yes"},cancelText:{type:String,default:"No"},icon:{type:String,default:"question"},type:{type:String,default:"confirm"},onConfirm:{type:Function,default:null},itemData:{type:[Object,String,Number,Array],default:null}},emits:["onConfirmed"],setup(t,{emit:e}){const r=t,n=e,a=()=>({msg:r.msg,title:r.title,confirmText:r.confirmText,cancelText:r.cancelText,type:r.type,icon:r.icon,onConfirm:r.onConfirm,buttonClass:"",loading:!1}),i=o.reactive(a());function s(){Object.assign(i,a())}const l=o.computed(()=>({success:Rm,error:Om,warning:$m,info:Fm,question:Hm})[i.icon]||i.icon),u=o.computed(()=>({success:"text-success",error:"text-danger",warning:"text-warning",info:"text-info",question:"text-primary"})[i.icon]||""),c=d=>{i.loading=d};async function f(d){if(!i.loading){if(i.type==="alert"){d();return}if(!i.onConfirm){n("onConfirmed",{showLoader:c,itemData:r.itemData,closePopover:d});return}if((i.type==="confirm"||i.type==="confirm-ajax")&&i.onConfirm){i.loading=!0;try{const h=await i.onConfirm(r.itemData);if(i.loading=!1,(h==null?void 0:h.next)==="close"){d();return}if((h==null?void 0:h.next)==="confirm"){Object.assign(i,{type:"confirm",title:h.title||"",msg:h.message||h.msg||"",icon:h.icon||"warning",confirmText:h.confirmText||"Yes",cancelText:h.cancelText||"No",onConfirm:h.onConfirm||null});return}if((h==null?void 0:h.next)==="confirm-ajax"){Object.assign(i,{type:"confirm-ajax",title:h.title||"",msg:h.message||h.msg||"",icon:h.icon||"question",confirmText:h.confirmText||"Yes",cancelText:h.cancelText||"No",onConfirm:h.onConfirm});return}i.type="alert",i.confirmText="OK",i.cancelText="",(h==null?void 0:h.status)===!1?(i.title="Error",i.msg=(h==null?void 0:h.message)||(h==null?void 0:h.msg)||"Something went wrong",i.icon="error",i.buttonClass="btn-danger"):(i.title="Success",i.msg=(h==null?void 0:h.message)||(h==null?void 0:h.msg)||"Completed successfully",i.icon="success",i.buttonClass="btn-success")}catch{i.loading=!1,i.type="alert",i.title="Error",i.msg="Unexpected error",i.icon="error",i.buttonClass="btn-danger"}}}}return(d,h)=>(o.openBlock(),o.createBlock($a,{onHide:s,onShow:s},{content:o.withCtx(({close:v})=>[o.createElementVNode("div",{class:o.normalizeClass(["apbd-confirm-popover p-3",{"apbd-loading-parent":i.loading}])},[i.icon&&i.type==="alert"?(o.openBlock(),o.createElementBlock("div",SC,[o.createElementVNode("div",{class:o.normalizeClass(`icon-circle ${u.value}`),style:{width:"40px",height:"40px",display:"flex","align-items":"center","justify-content":"center","border-radius":"50%",margin:"0 auto"}},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(l.value)))],2)])):o.createCommentVNode("",!0),i.title?(o.openBlock(),o.createElementBlock("div",xC,o.toDisplayString(o.unref(et)(i.title)),1)):o.createCommentVNode("",!0),o.createElementVNode("div",null,o.toDisplayString(o.unref(et)(i.msg)),1),o.renderSlot(d.$slots,"desc",{},void 0,!0),o.createElementVNode("div",CC,[o.renderSlot(d.$slots,"actionButtons",{removeConfirmed:()=>f(v),state:i},()=>[o.createVNode(Le,{class:o.normalizeClass(["btn-sm btn-danger",i.buttonClass]),isAnimated:i.loading,onClick:p=>f(v),disabled:i.loading},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(et)(i.confirmText)),1)]),_:1},8,["class","isAnimated","onClick","disabled"]),i.type==="confirm"||i.type==="confirm-ajax"?(o.openBlock(),o.createBlock(Le,{key:0,class:"btn-sm btn-light",onClick:v,disabled:i.loading},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(et)(i.cancelText)),1)]),_:1},8,["onClick","disabled"])):o.createCommentVNode("",!0)],!0)])],2)]),default:o.withCtx(()=>[o.renderSlot(d.$slots,"default",{},()=>[o.createVNode(Le,{type:"button",class:"btn-sm btn-danger d-inline-flex align-items-center"},{icon:o.withCtx(()=>[o.createVNode(o.unref(hb),{size:16})]),default:o.withCtx(()=>[o.createElementVNode("span",wC,o.toDisplayString(o.unref(et)("Remove")),1)]),_:1})],!0)]),_:3}))}},TC=gt(kC,[["__scopeId","data-v-ee92ec76"]]),DC={name:"AbEasyModal",inheritAttrs:!1},EC=Object.assign(DC,{setup(t,{expose:e}){const r=o.ref(!1),n=()=>{r.value=!0},a=()=>{r.value=!1};return e({openModal:n,closeModal:a}),(i,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{class:"d-inline-block",onClick:n},[o.renderSlot(i.$slots,"action")]),r.value?(o.openBlock(),o.createBlock(Tm,o.mergeProps({key:0},i.$attrs,{onClose:a}),o.createSlots({_:2},[i.$slots.title?{name:"headerTitle",fn:o.withCtx(()=>[o.renderSlot(i.$slots,"title")]),key:"0"}:void 0,i.$slots.body?{name:"body",fn:o.withCtx(()=>[o.renderSlot(i.$slots,"body")]),key:"1"}:void 0,i.$slots.footer?{name:"footer",fn:o.withCtx(()=>[o.renderSlot(i.$slots,"footer",{closeModal:a,close:a})]),key:"2"}:void 0]),1040)):o.createCommentVNode("",!0)],64))}}),MC={key:0,class:"pricing-card-recommended-ribbon"},AC={key:1,class:"pricing-card-header"},NC={class:"pricing-badge-wrapper"},BC={key:0,class:"pricing-badge"},VC={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},IC={class:"pricing-title"},LC={key:2,class:"pricing-card-price"},PC={class:"price-wrapper"},zC={key:0,class:"price-regular"},RC={class:"price-amount"},OC={key:1,class:"price-frequency"},$C={key:3,class:"pricing-card-features"},FC={key:0,class:"pricing-feature-list"},HC={class:"feature-icon"},GC={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},WC={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},UC={class:"feature-text"},YC={key:4,class:"pricing-card-action"},XC={name:"AbPricingCard",inheritAttrs:!1},qC=Object.assign(XC,{props:{title:{type:String,default:""},amount:{type:[String,Number],default:void 0},regularAmount:{type:[String,Number],default:void 0},frequency:{type:String,default:""},badge:{type:String,default:""},active:{type:Boolean,default:!1},recommended:{type:Boolean,default:!1},color:{type:String,default:"primary"},variant:{type:String,default:"default",validator:t=>["default","minimal","highlighted","badge-price"].includes(t)},features:{type:Array,default:()=>[]}},setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("div",o.mergeProps({class:["abpd-pricing-card",[{"is-active":t.active,"is-recommended":t.recommended,"is-highlighted":t.variant==="highlighted","is-minimal":t.variant==="minimal","is-badge-price":t.variant==="badge-price"},`is-${t.color}`]]},e.$attrs),[t.recommended?(o.openBlock(),o.createElementBlock("div",MC,[o.renderSlot(e.$slots,"recommended",{},()=>[r[0]||(r[0]=o.createTextVNode("Recommended",-1))])])):o.createCommentVNode("",!0),e.$slots.header||t.title?(o.openBlock(),o.createElementBlock("div",AC,[o.renderSlot(e.$slots,"header",{},()=>[o.createElementVNode("div",NC,[o.renderSlot(e.$slots,"badge",{},()=>[t.badge||e.$slots["badge-icon"]?(o.openBlock(),o.createElementBlock("span",BC,[o.renderSlot(e.$slots,"badge-icon",{},()=>[t.active?(o.openBlock(),o.createElementBlock("svg",VC,[...r[1]||(r[1]=[o.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):o.createCommentVNode("",!0)]),o.createTextVNode(" "+o.toDisplayString(t.badge),1)])):o.createCommentVNode("",!0)])]),o.createElementVNode("h3",IC,o.toDisplayString(t.title),1)])])):o.createCommentVNode("",!0),e.$slots.price||t.amount!==void 0?(o.openBlock(),o.createElementBlock("div",LC,[o.renderSlot(e.$slots,"price",{},()=>[o.createElementVNode("div",PC,[t.regularAmount!==void 0?(o.openBlock(),o.createElementBlock("span",zC,o.toDisplayString(t.regularAmount),1)):o.createCommentVNode("",!0),o.createElementVNode("span",RC,o.toDisplayString(t.amount),1),t.frequency?(o.openBlock(),o.createElementBlock("span",OC,o.toDisplayString(t.frequency),1)):o.createCommentVNode("",!0)])])])):o.createCommentVNode("",!0),e.$slots.features||t.features&&t.features.length?(o.openBlock(),o.createElementBlock("div",$C,[o.renderSlot(e.$slots,"features",{},()=>[t.features?(o.openBlock(),o.createElementBlock("ul",FC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.features,(n,a)=>(o.openBlock(),o.createElementBlock("li",{key:a,class:o.normalizeClass({"is-disabled":n.disabled})},[o.createElementVNode("span",HC,[o.renderSlot(e.$slots,"feature-icon",{feature:n,index:a},()=>[n.disabled?(o.openBlock(),o.createElementBlock("svg",WC,[...r[3]||(r[3]=[o.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),o.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)])])):(o.openBlock(),o.createElementBlock("svg",GC,[...r[2]||(r[2]=[o.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1)])]))])]),o.createElementVNode("span",UC,o.toDisplayString(n.text||n),1)],2))),128))])):o.createCommentVNode("",!0)])])):o.createCommentVNode("",!0),e.$slots.action?(o.openBlock(),o.createElementBlock("div",YC,[o.renderSlot(e.$slots,"action")])):o.createCommentVNode("",!0)],16))}}),jC={class:"abpd-pricing-container"},ZC={key:0,class:"pricing-toggle-wrapper"},KC={name:"AbPricingContainer"},QC=Object.assign(KC,{props:{width:{type:String,default:"100%"},maxWidth:{type:String,default:"1200px"},gap:{type:String,default:"1.5rem"},justify:{type:String,default:"center"},align:{type:String,default:"stretch"},columns:{type:[Number,String],default:0},smCols:{type:[Number,String],default:""},mdCols:{type:[Number,String],default:""},lgCols:{type:[Number,String],default:""},itemWidth:{type:String,default:""}},setup(t){const e=t,r=o.computed(()=>Number(e.columns)>0),n=o.computed(()=>{const a={gap:e.gap,width:e.width,maxWidth:e.maxWidth};return e.itemWidth&&(a["--pricing-card-width"]=e.itemWidth),r.value?(a["--pricing-cols"]=e.columns,e.lgCols&&(a["--pricing-cols-lg"]=e.lgCols),e.mdCols?a["--pricing-cols-md"]=e.mdCols:a["--pricing-cols-md"]=e.columns>2?2:e.columns,e.smCols?a["--pricing-cols-sm"]=e.smCols:a["--pricing-cols-sm"]=1,a.justifyContent=e.justify,a.alignItems=e.align):(a.flexWrap="wrap",a.justifyContent=["start","end"].includes(e.justify)?`flex-${e.justify}`:e.justify,a.alignItems=["start","end"].includes(e.align)?`flex-${e.align}`:e.align),a});return(a,i)=>(o.openBlock(),o.createElementBlock("div",jC,[a.$slots.toggle?(o.openBlock(),o.createElementBlock("div",ZC,[o.renderSlot(a.$slots,"toggle")])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["pricing-grid",{"is-grid":r.value}]),style:o.normalizeStyle(n.value)},[o.renderSlot(a.$slots,"default")],6)]))}}),JC={class:"apbd-pricing-table"},ek={class:"apbd-pricing-features-col d-none d-md-flex"},tk={class:"apbd-pricing-feature-list"},rk={class:"apbd-pricing-packages"},nk={key:0,class:"apbd-package-badge"},ak={class:"apbd-package-header"},ik={class:"apbd-package-name"},ok={class:"apbd-package-price"},sk={key:0,class:"apbd-package-regular-price"},lk={class:"apbd-package-features"},uk={class:"d-md-none me-2"},ck={key:0,class:"bi bi-check-circle-fill apbd-check-icon"},fk={key:1,class:"bi bi-x-circle apbd-cross-icon"},dk={class:"apbd-package-footer"},hk=["href","onClick"],vk=["onClick"],pk={key:1,class:"apbd-package-alt-text"},mk={__name:"AbPricingTable",props:{features:{type:Array,required:!0},packages:{type:Array,required:!0}},emits:["select-package"],setup(t,{emit:e}){const r=e,n=a=>{r("select-package",a)};return(a,i)=>{const s=o.resolveComponent("router-link");return o.openBlock(),o.createElementBlock("div",JC,[o.createElementVNode("div",ek,[o.renderSlot(a.$slots,"features-header",{},()=>[i[0]||(i[0]=o.createElementVNode("div",{class:"apbd-features-header"},[o.createElementVNode("div",{class:"apbd-features-subtitle"},"Get Started"),o.createElementVNode("h3",{class:"apbd-features-title"},"Service Details")],-1))]),o.createElementVNode("div",tk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.features,(l,u)=>(o.openBlock(),o.createElementBlock("div",{key:l.key,class:"apbd-pricing-feature-item"},[o.renderSlot(a.$slots,"feature-label",{feature:l},()=>[o.createTextVNode(o.toDisplayString(l.title),1)])]))),128))])]),o.createElementVNode("div",rk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.packages,l=>(o.openBlock(),o.createElementBlock("div",{key:l.id,class:o.normalizeClass(["apbd-pricing-package-col",{"apbd-pricing-package-active":l.isActive}])},[o.renderSlot(a.$slots,"package-badge",{pkg:l},()=>[l.badge?(o.openBlock(),o.createElementBlock("div",nk,o.toDisplayString(l.badge),1)):o.createCommentVNode("",!0)]),o.renderSlot(a.$slots,"package-header",{pkg:l},()=>[o.createElementVNode("div",ak,[o.createElementVNode("div",ik,o.toDisplayString(l.name),1),o.createElementVNode("div",ok,[o.createTextVNode(" $"+o.toDisplayString(l.price)+" ",1),o.createElementVNode("span",null,"/ "+o.toDisplayString(l.billingCycle),1)]),l.regularPrice?(o.openBlock(),o.createElementBlock("div",sk," $"+o.toDisplayString(l.regularPrice),1)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",lk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.features,(u,c)=>(o.openBlock(),o.createElementBlock("div",{key:u.key,class:"apbd-package-feature-item"},[o.createElementVNode("span",uk,o.toDisplayString(u.title)+":",1),o.renderSlot(a.$slots,"package-feature",{pkg:l,feature:u},()=>[l.features&&l.features[u.key]==="Y"?(o.openBlock(),o.createElementBlock("i",ck)):l.features&&l.features[u.key]==="N"?(o.openBlock(),o.createElementBlock("i",fk)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(" - ")],64))])]))),128))]),o.renderSlot(a.$slots,"package-footer",{pkg:l},()=>[o.createElementVNode("div",dk,[l.showButton!==!1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[l.buttonLink&&l.buttonLink.startsWith("/")?(o.openBlock(),o.createBlock(s,{key:0,to:l.buttonLink,class:"btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:u=>n(l)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.buttonText||"Choose Plan"),1)]),_:2},1032,["to","onClick"])):l.buttonLink?(o.openBlock(),o.createElementBlock("a",{key:1,href:l.buttonLink,target:"_blank",rel:"noopener noreferrer",class:"btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:u=>n(l)},o.toDisplayString(l.buttonText||"Choose Plan"),9,hk)):(o.openBlock(),o.createElementBlock("button",{key:2,class:"btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:u=>n(l)},o.toDisplayString(l.buttonText||"Choose Plan"),9,vk))],64)):l.altButtonText?(o.openBlock(),o.createElementBlock("span",pk,o.toDisplayString(l.altButtonText),1)):o.createCommentVNode("",!0)])])],2))),128))])])}}};/*! *****************************************************************************
|
|
202
|
+
Copyright (c) Microsoft Corporation.
|
|
203
|
+
|
|
204
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
205
|
+
purpose with or without fee is hereby granted.
|
|
206
|
+
|
|
207
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
208
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
209
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
210
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
211
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
212
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
213
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
214
|
+
***************************************************************************** */var oc=function(t,e){return oc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},oc(t,e)};function se(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");oc(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var gk=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),yk=function(){function t(){this.browser=new gk,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),oe=new yk;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(oe.wxa=!0,oe.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?oe.worker=!0:!oe.hasGlobalWindow||"Deno"in window?(oe.node=!0,oe.svgSupported=!0):bk(navigator.userAgent,oe);function bk(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),s&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var yf=12,_k="sans-serif",Xn=yf+"px "+_k,wk=20,Sk=100,xk="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Ck(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),a=(t.charCodeAt(r)-wk)/Sk;e[n]=a}return e}var kk=Ck(xk),Fa={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var a=Fa.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Xn),t.measureText(r);r=r||"",n=n||Xn;var i=/((?:\d+)?\.?\d*)px/.exec(n),s=i&&+i[1]||yf,l=0;if(n.indexOf("mono")>=0)l=s*r.length;else for(var u=0;u<r.length;u++){var c=kk[r[u]];l+=c==null?s:c*s}return{width:l}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},Gm=ln(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Wm=ln(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ha=Object.prototype.toString,Ys=Array.prototype,Tk=Ys.forEach,Dk=Ys.filter,bf=Ys.slice,Ek=Ys.map,zd=(function(){}).constructor,lo=zd?zd.prototype:null,_f="__proto__",Mk=2311;function Um(){return Mk++}function Hn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function ge(t){if(t==null||typeof t!="object")return t;var e=t,r=Ha.call(t);if(r==="[object Array]"){if(!Di(t)){e=[];for(var n=0,a=t.length;n<a;n++)e[n]=ge(t[n])}}else if(Wm[r]){if(!Di(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var n=0,a=t.length;n<a;n++)e[n]=t[n]}}}else if(!Gm[r]&&!Di(t)&&!Ba(t)){e={};for(var s in t)t.hasOwnProperty(s)&&s!==_f&&(e[s]=ge(t[s]))}return e}function xe(t,e,r){if(!re(e)||!re(t))return r?ge(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==_f){var a=t[n],i=e[n];re(i)&&re(a)&&!j(i)&&!j(a)&&!Ba(i)&&!Ba(a)&&!Rd(i)&&!Rd(a)&&!Di(i)&&!Di(a)?xe(a,i,r):(r||!(n in t))&&(t[n]=ge(e[n]))}return t}function W(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==_f&&(t[r]=e[r]);return t}function ke(t,e,r){for(var n=Oe(e),a=0,i=n.length;a<i;a++){var s=n[a];t[s]==null&&(t[s]=e[s])}return t}function Me(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function Ak(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(t.prototype[a]=r[a]);t.prototype.constructor=t,t.superClass=e}function Sr(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&t[i]==null&&(t[i]=e[i])}else ke(t,e)}function At(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function L(t,e,r){if(t&&e)if(t.forEach&&t.forEach===Tk)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function ee(t,e,r){if(!t)return[];if(!e)return wf(t);if(t.map&&t.map===Ek)return t.map(e,r);for(var n=[],a=0,i=t.length;a<i;a++)n.push(e.call(r,t[a],a,t));return n}function ln(t,e,r,n){if(t&&e){for(var a=0,i=t.length;a<i;a++)r=e.call(n,r,t[a],a,t);return r}}function st(t,e,r){if(!t)return[];if(!e)return wf(t);if(t.filter&&t.filter===Dk)return t.filter(e,r);for(var n=[],a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)&&n.push(t[a]);return n}function Oe(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function Nk(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(bf.call(arguments)))}}var Pe=lo&&ue(lo.bind)?lo.call.bind(lo.bind):Nk;function We(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(bf.call(arguments)))}}function j(t){return Array.isArray?Array.isArray(t):Ha.call(t)==="[object Array]"}function ue(t){return typeof t=="function"}function Z(t){return typeof t=="string"}function hs(t){return Ha.call(t)==="[object String]"}function Ve(t){return typeof t=="number"}function re(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Rd(t){return!!Gm[Ha.call(t)]}function wt(t){return!!Wm[Ha.call(t)]}function Ba(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Xs(t){return t.colorStops!=null}function Bk(t){return t.image!=null}function Vk(t){return Ha.call(t)==="[object RegExp]"}function Fi(t){return t!==t}function qn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function fe(t,e){return t??e}function Gn(t,e,r){return t??e??r}function wf(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return bf.apply(t,e)}function Ym(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function he(t,e){if(!t)throw new Error(e)}function yr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Xm="__ec_primitive__";function sc(t){t[Xm]=!0}function Di(t){return t[Xm]}var Ik=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Oe(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),qm=typeof Map=="function";function Lk(){return qm?new Map:new Ik}var Pk=function(){function t(e){var r=j(e);this.data=Lk();var n=this;e instanceof t?e.each(a):e&&L(e,a);function a(i,s){r?n.set(i,s):n.set(s,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,a){e.call(r,n,a)})},t.prototype.keys=function(){var e=this.data.keys();return qm?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function ve(t){return new Pk(t)}function zk(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var a=t.length,n=0;n<e.length;n++)r[n+a]=e[n];return r}function qs(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&W(r,e),r}function jm(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function jn(t,e){return t.hasOwnProperty(e)}function Mt(){}var Rk=180/Math.PI;/*! *****************************************************************************
|
|
215
|
+
Copyright (c) Microsoft Corporation.
|
|
216
|
+
|
|
217
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
218
|
+
purpose with or without fee is hereby granted.
|
|
219
|
+
|
|
220
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
221
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
222
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
223
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
224
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
225
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
226
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
227
|
+
***************************************************************************** */var lc=function(t,e){return lc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},lc(t,e)};function Ae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");lc(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Ga(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Ok(t){return[t[0],t[1]]}function Od(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function $k(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Fk(t){return Math.sqrt(Hk(t))}function Hk(t){return t[0]*t[0]+t[1]*t[1]}function Al(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Gk(t,e){var r=Fk(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function uc(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var cc=uc;function Wk(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ca=Wk;function Nl(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function jt(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function ba(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function _a(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ta=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),Uk=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ta(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,a=e.offsetY,i=n-this._x,s=a-this._y;this._x=n,this._y=a,r.drift(i,s,e),this.handler.dispatchToElement(new ta(r,e),"drag",e.event);var l=this.handler.findHover(n,a,r).target,u=this._dropTarget;this._dropTarget=l,r!==l&&(u&&l!==u&&this.handler.dispatchToElement(new ta(u,e),"dragleave",e.event),l&&l!==u&&this.handler.dispatchToElement(new ta(l,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ta(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ta(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),xr=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!e)return this;var s=this._$eventProcessor;r!=null&&s&&s.normalizeQuery&&(r=s.normalizeQuery(r)),i[e]||(i[e]=[]);for(var l=0;l<i[e].length;l++)if(i[e][l].h===n)return this;var u={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,f=i[e][c];return f&&f.callAtLast?i[e].splice(c,0,u):i[e].push(u),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var a=[],i=0,s=n[e].length;i<s;i++)n[e][i].h!==r&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var s=r.length,l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(s){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,r[0]);break;case 2:c.h.call(c.ctx,r[0],r[1]);break;default:c.h.apply(c.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var s=r.length,l=r[s-1],u=a.length,c=0;c<u;c++){var f=a[c];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(s){case 0:f.h.call(l);break;case 1:f.h.call(l,r[0]);break;case 2:f.h.call(l,r[0],r[1]);break;default:f.h.apply(l,r.slice(1,s-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t}(),Yk=Math.log(2);function fc(t,e,r,n,a,i){var s=n+"-"+a,l=t.length;if(i.hasOwnProperty(s))return i[s];if(e===1){var u=Math.round(Math.log((1<<l)-1&~a)/Yk);return t[r][u]}for(var c=n|1<<r,f=r+1;n&1<<f;)f++;for(var d=0,h=0,v=0;h<l;h++){var p=1<<h;p&a||(d+=(v%2?-1:1)*t[r][h]*fc(t,e-1,f,c,a|p,i),v++)}return i[s]=d,d}function $d(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},a=fc(r,8,0,0,0,n);if(a!==0){for(var i=[],s=0;s<8;s++)for(var l=0;l<8;l++)i[l]==null&&(i[l]=0),i[l]+=((s+l)%2?-1:1)*fc(r,7,s===0?1:0,1<<s,1<<l,n)/a*e[s];return function(u,c,f){var d=c*i[6]+f*i[7]+1;u[0]=(c*i[0]+f*i[1]+i[2])/d,u[1]=(c*i[3]+f*i[4]+i[5])/d}}}var Fd="___zrEVENTSAVED",Bl=[];function Xk(t,e,r,n,a){return dc(Bl,e,n,a,!0)&&dc(t,r,Bl[0],Bl[1])}function dc(t,e,r,n,a){if(e.getBoundingClientRect&&oe.domSupported&&!Zm(e)){var i=e[Fd]||(e[Fd]={}),s=qk(e,i),l=jk(s,i,a);if(l)return l(t,r,n),!0}return!1}function qk(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var s=document.createElement("div"),l=s.style,u=i%2,c=(i>>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",a[c]+":0",n[1-u]+":auto",a[1-c]+":auto",""].join("!important;"),t.appendChild(s),r.push(s)}return r}function jk(t,e,r){for(var n=r?"invTrans":"trans",a=e[n],i=e.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var f=t[c].getBoundingClientRect(),d=2*c,h=f.left,v=f.top;s.push(h,v),u=u&&i&&h===i[d]&&v===i[d+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return u&&a?a:(e.srcCoords=s,e[n]=r?$d(l,s):$d(s,l))}function Zm(t){return t.nodeName.toUpperCase()==="CANVAS"}var Zk=/([&<>"'])/g,Kk={"&":"&","<":"<",">":">",'"':""","'":"'"};function kt(t){return t==null?"":(t+"").replace(Zk,function(e,r){return Kk[r]})}var Qk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Vl=[],Jk=oe.browser.firefox&&+oe.browser.version.split(".")[0]<39;function hc(t,e,r,n){return r=r||{},n?Hd(t,e,r):Jk&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Hd(t,e,r),r}function Hd(t,e,r){if(oe.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(Zm(t)){var i=t.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(dc(Vl,t,n,a)){r.zrX=Vl[0],r.zrY=Vl[1];return}}r.zrX=r.zrY=0}function Sf(t){return t||window.event}function Ht(t,e,r){if(e=Sf(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var s=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];s&&hc(t,s,e,r)}else{hc(t,e,e,r);var i=e2(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var l=e.button;return e.which==null&&l!==void 0&&Qk.test(e.type)&&(e.which=l&1?1:l&2?3:l&4?2:0),e}function e2(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function t2(t,e,r,n){t.addEventListener(e,r,n)}function r2(t,e,r,n){t.removeEventListener(e,r,n)}var Km=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},n2=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:r,event:e},s=0,l=a.length;s<l;s++){var u=a[s],c=hc(n,u,{});i.points.push([c.zrX,c.zrY]),i.touches.push(u)}this._track.push(i)}},t.prototype._recognize=function(e){for(var r in Il)if(Il.hasOwnProperty(r)){var n=Il[r](this._track,e);if(n)return n}},t}();function Gd(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function a2(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Il={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,a=(t[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Gd(n)/Gd(a);!isFinite(i)&&(i=1),e.pinchScale=i;var s=a2(n);return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function ka(){return[1,0,0,1,0,0]}function xf(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function i2(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ta(t,e,r){var n=e[0]*r[0]+e[2]*r[1],a=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],s=e[1]*r[2]+e[3]*r[3],l=e[0]*r[4]+e[2]*r[5]+e[4],u=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=a,t[2]=i,t[3]=s,t[4]=l,t[5]=u,t}function vc(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Cf(t,e,r,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],s=e[4],l=e[1],u=e[3],c=e[5],f=Math.sin(r),d=Math.cos(r);return t[0]=a*d+l*f,t[1]=-a*f+l*d,t[2]=i*d+u*f,t[3]=-i*f+d*u,t[4]=d*(s-n[0])+f*(c-n[1])+n[0],t[5]=d*(c-n[1])-f*(s-n[0])+n[1],t}function o2(t,e,r){var n=r[0],a=r[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function kf(t,e){var r=e[0],n=e[2],a=e[4],i=e[1],s=e[3],l=e[5],u=r*s-i*n;return u?(u=1/u,t[0]=s*u,t[1]=-i*u,t[2]=-n*u,t[3]=r*u,t[4]=(n*l-s*a)*u,t[5]=(i*a-r*l)*u,t):null}var ce=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,a){e.x=r.x+n.x*a,e.y=r.y+n.y*a},t.lerp=function(e,r,n,a){var i=1-a;e.x=i*r.x+a*n.x,e.y=i*r.y+a*n.y},t}(),uo=Math.min,co=Math.max,mn=new ce,gn=new ce,yn=new ce,bn=new ce,Za=new ce,Ka=new ce,Ce=function(){function t(e,r,n,a){n<0&&(e=e+n,n=-n),a<0&&(r=r+a,a=-a),this.x=e,this.y=r,this.width=n,this.height=a}return t.prototype.union=function(e){var r=uo(e.x,this.x),n=uo(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=co(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=co(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,a=e.height/r.height,i=ka();return vc(i,i,[-r.x,-r.y]),o2(i,i,[n,a]),vc(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,a=n.x,i=n.x+n.width,s=n.y,l=n.y+n.height,u=e.x,c=e.x+e.width,f=e.y,d=e.y+e.height,h=!(i<u||c<a||l<f||d<s);if(r){var v=1/0,p=0,g=Math.abs(i-u),m=Math.abs(c-a),y=Math.abs(l-f),b=Math.abs(d-s),_=Math.min(g,m),w=Math.min(y,b);i<u||c<a?_>p&&(p=_,g<m?ce.set(Ka,-g,0):ce.set(Ka,m,0)):_<v&&(v=_,g<m?ce.set(Za,g,0):ce.set(Za,-m,0)),l<f||d<s?w>p&&(p=w,y<b?ce.set(Ka,0,-y):ce.set(Ka,0,b)):_<v&&(v=_,y<b?ce.set(Za,0,y):ce.set(Za,0,-b))}return r&&ce.copy(r,h?Za:Ka),h},t.prototype.contain=function(e,r){var n=this;return e>=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],s=n[4],l=n[5];e.x=r.x*a+s,e.y=r.y*i+l,e.width=r.width*a,e.height=r.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}mn.x=yn.x=r.x,mn.y=bn.y=r.y,gn.x=bn.x=r.x+r.width,gn.y=yn.y=r.y+r.height,mn.transform(n),bn.transform(n),gn.transform(n),yn.transform(n),e.x=uo(mn.x,gn.x,yn.x,bn.x),e.y=uo(mn.y,gn.y,yn.y,bn.y);var u=co(mn.x,gn.x,yn.x,bn.x),c=co(mn.y,gn.y,yn.y,bn.y);e.width=u-e.x,e.height=c-e.y},t}(),Qm="silent";function s2(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:l2}}function l2(){Km(this.event)}var u2=function(t){Ae(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(xr),Qa=function(){function t(e,r){this.x=e,this.y=r}return t}(),c2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ll=new Ce(0,0,0,0),Jm=function(t){Ae(e,t);function e(r,n,a,i,s){var l=t.call(this)||this;return l._hovered=new Qa(0,0),l.storage=r,l.painter=n,l.painterRoot=i,l._pointerSize=s,a=a||new u2,l.proxy=null,l.setHandlerProxy(a),l._draggingMgr=new Uk(l),l}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(L(c2,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=eg(this,n,a),s=this._hovered,l=s.target;l&&!l.__zr&&(s=this.findHover(s.x,s.y),l=s.target);var u=this._hovered=i?new Qa(n,a):this.findHover(n,a),c=u.target,f=this.proxy;f.setCursor&&f.setCursor(c?c.cursor:"default"),l&&c!==l&&this.dispatchToElement(s,"mouseout",r),this.dispatchToElement(u,"mousemove",r),c&&c!==l&&this.dispatchToElement(u,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Qa(0,0)},e.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var s="on"+n,l=s2(n,r,a);i&&(i[s]&&(l.cancelBubble=!!i[s].call(i,l)),i.trigger(n,l),i=i.__hostTarget?i.__hostTarget:i.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(n,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[s]=="function"&&u[s].call(u,l),u.trigger&&u.trigger(n,l)}))}},e.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),s=new Qa(r,n);if(Wd(i,s,r,n,a),this._pointerSize&&!s.target){for(var l=[],u=this._pointerSize,c=u/2,f=new Ce(r-c,n-c,u,u),d=i.length-1;d>=0;d--){var h=i[d];h!==a&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Ll.copy(h.getBoundingRect()),h.transform&&Ll.applyTransform(h.transform),Ll.intersect(f)&&l.push(h))}if(l.length)for(var v=4,p=Math.PI/12,g=Math.PI*2,m=0;m<c;m+=v)for(var y=0;y<g;y+=p){var b=r+m*Math.cos(y),_=n+m*Math.sin(y);if(Wd(l,s,b,_,a),s.target)return s}}return s},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new n2);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var s=i.type;r.gestureEvent=s;var l=new Qa;l.target=i.target,this.dispatchToElement(l,s,i.event)}},e}(xr);L(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Jm.prototype[t]=function(e){var r=e.zrX,n=e.zrY,a=eg(this,r,n),i,s;if((t!=="mouseup"||!a)&&(i=this.findHover(r,n),s=i.target),t==="mousedown")this._downEl=s,this._downPoint=[e.zrX,e.zrY],this._upEl=s;else if(t==="mouseup")this._upEl=s;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||cc(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function f2(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var s=n.getClipPath();if(s&&!s.contain(e,r))return!1}n.silent&&(a=!0);var l=n.__hostTarget;n=l||n.parent}return a?Qm:!0}return!1}function Wd(t,e,r,n,a){for(var i=t.length-1;i>=0;i--){var s=t[i],l=void 0;if(s!==a&&!s.ignore&&(l=f2(s,r,n))&&(!e.topTarget&&(e.topTarget=s),l!==Qm)){e.target=s;break}}}function eg(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var tg=32,Ja=7;function d2(t){for(var e=0;t>=tg;)e|=t&1,t>>=1;return t+e}function Ud(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;a<r&&n(t[a],t[a-1])<0;)a++;h2(t,e,a)}else for(;a<r&&n(t[a],t[a-1])>=0;)a++;return a-e}function h2(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Yd(t,e,r,n,a){for(n===e&&n++;n<r;n++){for(var i=t[n],s=e,l=n,u;s<l;)u=s+l>>>1,a(i,t[u])<0?l=u:s=u+1;var c=n-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;c>0;)t[s+c]=t[s+c-1],c--}t[s]=i}}function Pl(t,e,r,n,a,i){var s=0,l=0,u=1;if(i(t,e[r+a])>0){for(l=n-a;u<l&&i(t,e[r+a+u])>0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l),s+=a,u+=a}else{for(l=a+1;u<l&&i(t,e[r+a-u])<=0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l);var c=s;s=a-u,u=a-c}for(s++;s<u;){var f=s+(u-s>>>1);i(t,e[r+f])>0?s=f+1:u=f}return u}function zl(t,e,r,n,a,i){var s=0,l=0,u=1;if(i(t,e[r+a])<0){for(l=a+1;u<l&&i(t,e[r+a-u])<0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l);var c=s;s=a-u,u=a-c}else{for(l=n-a;u<l&&i(t,e[r+a+u])>=0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l),s+=a,u+=a}for(s++;s<u;){var f=s+(u-s>>>1);i(t,e[r+f])<0?u=f:s=f+1}return u}function v2(t,e){var r=Ja,n,a,i=0,s=[];n=[],a=[];function l(v,p){n[i]=v,a[i]=p,i+=1}function u(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;f(v)}}function c(){for(;i>1;){var v=i-2;v>0&&a[v-1]<a[v+1]&&v--,f(v)}}function f(v){var p=n[v],g=a[v],m=n[v+1],y=a[v+1];a[v]=g+y,v===i-3&&(n[v+1]=n[v+2],a[v+1]=a[v+2]),i--;var b=zl(t[m],t,p,g,0,e);p+=b,g-=b,g!==0&&(y=Pl(t[p+g-1],t,m,y,y-1,e),y!==0&&(g<=y?d(p,g,m,y):h(p,g,m,y)))}function d(v,p,g,m){var y=0;for(y=0;y<p;y++)s[y]=t[v+y];var b=0,_=g,w=v;if(t[w++]=t[_++],--m===0){for(y=0;y<p;y++)t[w+y]=s[b+y];return}if(p===1){for(y=0;y<m;y++)t[w+y]=t[_+y];t[w+m]=s[b];return}for(var S=r,x,C,k;;){x=0,C=0,k=!1;do if(e(t[_],s[b])<0){if(t[w++]=t[_++],C++,x=0,--m===0){k=!0;break}}else if(t[w++]=s[b++],x++,C=0,--p===1){k=!0;break}while((x|C)<S);if(k)break;do{if(x=zl(t[_],s,b,p,0,e),x!==0){for(y=0;y<x;y++)t[w+y]=s[b+y];if(w+=x,b+=x,p-=x,p<=1){k=!0;break}}if(t[w++]=t[_++],--m===0){k=!0;break}if(C=Pl(s[b],t,_,m,0,e),C!==0){for(y=0;y<C;y++)t[w+y]=t[_+y];if(w+=C,_+=C,m-=C,m===0){k=!0;break}}if(t[w++]=s[b++],--p===1){k=!0;break}S--}while(x>=Ja||C>=Ja);if(k)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),p===1){for(y=0;y<m;y++)t[w+y]=t[_+y];t[w+m]=s[b]}else{if(p===0)throw new Error;for(y=0;y<p;y++)t[w+y]=s[b+y]}}function h(v,p,g,m){var y=0;for(y=0;y<m;y++)s[y]=t[g+y];var b=v+p-1,_=m-1,w=g+m-1,S=0,x=0;if(t[w--]=t[b--],--p===0){for(S=w-(m-1),y=0;y<m;y++)t[S+y]=s[y];return}if(m===1){for(w-=p,b-=p,x=w+1,S=b+1,y=p-1;y>=0;y--)t[x+y]=t[S+y];t[w]=s[_];return}for(var C=r;;){var k=0,D=0,E=!1;do if(e(s[_],t[b])<0){if(t[w--]=t[b--],k++,D=0,--p===0){E=!0;break}}else if(t[w--]=s[_--],D++,k=0,--m===1){E=!0;break}while((k|D)<C);if(E)break;do{if(k=p-zl(s[_],t,v,p,p-1,e),k!==0){for(w-=k,b-=k,p-=k,x=w+1,S=b+1,y=k-1;y>=0;y--)t[x+y]=t[S+y];if(p===0){E=!0;break}}if(t[w--]=s[_--],--m===1){E=!0;break}if(D=m-Pl(t[b],s,0,m,m-1,e),D!==0){for(w-=D,_-=D,m-=D,x=w+1,S=_+1,y=0;y<D;y++)t[x+y]=s[S+y];if(m<=1){E=!0;break}}if(t[w--]=t[b--],--p===0){E=!0;break}C--}while(k>=Ja||D>=Ja);if(E)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),m===1){for(w-=p,b-=p,x=w+1,S=b+1,y=p-1;y>=0;y--)t[x+y]=t[S+y];t[w]=s[_]}else{if(m===0)throw new Error;for(S=w-(m-1),y=0;y<m;y++)t[S+y]=s[y]}}return{mergeRuns:u,forceMergeRuns:c,pushRun:l}}function Jo(t,e,r,n){r||(r=0),n||(n=t.length);var a=n-r;if(!(a<2)){var i=0;if(a<tg){i=Ud(t,r,n,e),Yd(t,r,n,r+i,e);return}var s=v2(t,e),l=d2(a);do{if(i=Ud(t,r,n,e),i<l){var u=a;u>l&&(u=l),Yd(t,r,r+u,r+i,e),i=u}s.pushRun(r,i),s.mergeRuns(),a-=i,r+=i}while(a!==0);s.forceMergeRuns()}}var Vt=1,yi=2,ga=4,Xd=!1;function Rl(){Xd||(Xd=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function qd(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var p2=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=qd}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,e);n.length=this._displayListLen,Jo(n,qd)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var i=a,s=e;i;)i.parent=s,i.updateTransform(),r.push(i),s=i,i=i.getClipPath()}if(e.childrenRef){for(var l=e.childrenRef(),u=0;u<l.length;u++){var c=l[u];e.__dirty&&(c.__dirty|=Vt),this._updateAndAddDisplayable(c,r,n)}e.__dirty=0}else{var f=e;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Rl(),f.z=0),isNaN(f.z2)&&(Rl(),f.z2=0),isNaN(f.zlevel)&&(Rl(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,r,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var a=Me(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),vs;vs=oe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Ei={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ei.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Ei.bounceIn(t*2)*.5:Ei.bounceOut(t*2-1)*.5+.5}},fo=Math.pow,an=Math.sqrt,ps=1e-8,rg=1e-4,jd=an(3),ho=1/3,mr=Ga(),Ut=Ga(),Da=Ga();function en(t){return t>-ps&&t<ps}function ng(t){return t>ps||t<-ps}function lt(t,e,r,n,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*n+3*i*r)}function Zd(t,e,r,n,a){var i=1-a;return 3*(((e-t)*i+2*(r-e)*a)*i+(n-r)*a*a)}function ms(t,e,r,n,a,i){var s=n+3*(e-r)-t,l=3*(r-e*2+t),u=3*(e-t),c=t-a,f=l*l-3*s*u,d=l*u-9*s*c,h=u*u-3*l*c,v=0;if(en(f)&&en(d))if(en(l))i[0]=0;else{var p=-u/l;p>=0&&p<=1&&(i[v++]=p)}else{var g=d*d-4*f*h;if(en(g)){var m=d/f,p=-l/s+m,y=-m/2;p>=0&&p<=1&&(i[v++]=p),y>=0&&y<=1&&(i[v++]=y)}else if(g>0){var b=an(g),_=f*l+1.5*s*(-d+b),w=f*l+1.5*s*(-d-b);_<0?_=-fo(-_,ho):_=fo(_,ho),w<0?w=-fo(-w,ho):w=fo(w,ho);var p=(-l-(_+w))/(3*s);p>=0&&p<=1&&(i[v++]=p)}else{var S=(2*f*l-3*s*d)/(2*an(f*f*f)),x=Math.acos(S)/3,C=an(f),k=Math.cos(x),p=(-l-2*C*k)/(3*s),y=(-l+C*(k+jd*Math.sin(x)))/(3*s),D=(-l+C*(k-jd*Math.sin(x)))/(3*s);p>=0&&p<=1&&(i[v++]=p),y>=0&&y<=1&&(i[v++]=y),D>=0&&D<=1&&(i[v++]=D)}}return v}function ag(t,e,r,n,a){var i=6*r-12*e+6*t,s=9*e+3*n-3*t-9*r,l=3*e-3*t,u=0;if(en(s)){if(ng(i)){var c=-l/i;c>=0&&c<=1&&(a[u++]=c)}}else{var f=i*i-4*s*l;if(en(f))a[0]=-i/(2*s);else if(f>0){var d=an(f),c=(-i+d)/(2*s),h=(-i-d)/(2*s);c>=0&&c<=1&&(a[u++]=c),h>=0&&h<=1&&(a[u++]=h)}}return u}function gs(t,e,r,n,a,i){var s=(e-t)*a+t,l=(r-e)*a+e,u=(n-r)*a+r,c=(l-s)*a+s,f=(u-l)*a+l,d=(f-c)*a+c;i[0]=t,i[1]=s,i[2]=c,i[3]=d,i[4]=d,i[5]=f,i[6]=u,i[7]=n}function m2(t,e,r,n,a,i,s,l,u,c,f){var d,h=.005,v=1/0,p,g,m,y;mr[0]=u,mr[1]=c;for(var b=0;b<1;b+=.05)Ut[0]=lt(t,r,a,s,b),Ut[1]=lt(e,n,i,l,b),m=Ca(mr,Ut),m<v&&(d=b,v=m);v=1/0;for(var _=0;_<32&&!(h<rg);_++)p=d-h,g=d+h,Ut[0]=lt(t,r,a,s,p),Ut[1]=lt(e,n,i,l,p),m=Ca(Ut,mr),p>=0&&m<v?(d=p,v=m):(Da[0]=lt(t,r,a,s,g),Da[1]=lt(e,n,i,l,g),y=Ca(Da,mr),g<=1&&y<v?(d=g,v=y):h*=.5);return an(v)}function g2(t,e,r,n,a,i,s,l,u){for(var c=t,f=e,d=0,h=1/u,v=1;v<=u;v++){var p=v*h,g=lt(t,r,a,s,p),m=lt(e,n,i,l,p),y=g-c,b=m-f;d+=Math.sqrt(y*y+b*b),c=g,f=m}return d}function Tt(t,e,r,n){var a=1-n;return a*(a*t+2*n*e)+n*n*r}function Kd(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function y2(t,e,r,n,a){var i=t-2*e+r,s=2*(e-t),l=t-n,u=0;if(en(i)){if(ng(s)){var c=-l/s;c>=0&&c<=1&&(a[u++]=c)}}else{var f=s*s-4*i*l;if(en(f)){var c=-s/(2*i);c>=0&&c<=1&&(a[u++]=c)}else if(f>0){var d=an(f),c=(-s+d)/(2*i),h=(-s-d)/(2*i);c>=0&&c<=1&&(a[u++]=c),h>=0&&h<=1&&(a[u++]=h)}}return u}function ig(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function ys(t,e,r,n,a){var i=(e-t)*n+t,s=(r-e)*n+e,l=(s-i)*n+i;a[0]=t,a[1]=i,a[2]=l,a[3]=l,a[4]=s,a[5]=r}function b2(t,e,r,n,a,i,s,l,u){var c,f=.005,d=1/0;mr[0]=s,mr[1]=l;for(var h=0;h<1;h+=.05){Ut[0]=Tt(t,r,a,h),Ut[1]=Tt(e,n,i,h);var v=Ca(mr,Ut);v<d&&(c=h,d=v)}d=1/0;for(var p=0;p<32&&!(f<rg);p++){var g=c-f,m=c+f;Ut[0]=Tt(t,r,a,g),Ut[1]=Tt(e,n,i,g);var v=Ca(Ut,mr);if(g>=0&&v<d)c=g,d=v;else{Da[0]=Tt(t,r,a,m),Da[1]=Tt(e,n,i,m);var y=Ca(Da,mr);m<=1&&y<d?(c=m,d=y):f*=.5}}return an(d)}function _2(t,e,r,n,a,i,s){for(var l=t,u=e,c=0,f=1/s,d=1;d<=s;d++){var h=d*f,v=Tt(t,r,a,h),p=Tt(e,n,i,h),g=v-l,m=p-u;c+=Math.sqrt(g*g+m*m),l=v,u=p}return c}var w2=/cubic-bezier\(([0-9,\.e ]+)\)/;function og(t){var e=t&&w2.exec(t);if(e){var r=e[1].split(","),n=+yr(r[0]),a=+yr(r[1]),i=+yr(r[2]),s=+yr(r[3]);if(isNaN(n+a+i+s))return;var l=[];return function(u){return u<=0?0:u>=1?1:ms(0,n,i,1,u,l)&<(0,a,s,1,l[0])}}}var S2=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Mt,this.ondestroy=e.ondestroy||Mt,this.onrestart=e.onrestart||Mt,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var s=this.easingFunc,l=s?s(i):i;if(this.onframe(l),i===1)if(this.loop){var u=a%n;this._startTime=e-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ue(e)?e:Ei[e]||og(e)},t}(),sg=function(){function t(e){this.value=e}return t}(),x2=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new sg(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),eo=function(){function t(e){this._list=new x2,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,a=this._map,i=null;if(a[e]==null){var s=n.len(),l=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var u=n.head;n.remove(u),delete a[u.key],i=u.value,this._lastRemovedEntry=u}l?l.value=r:l=new sg(r),l.key=e,n.insertEntry(l),a[e]=l}return i},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Qd={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 on(t){return t=Math.round(t),t<0?0:t>255?255:t}function pc(t){return t<0?0:t>1?1:t}function Ol(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?on(parseFloat(e)/100*255):on(parseInt(e,10))}function Mi(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?pc(parseFloat(e)/100):pc(parseFloat(e))}function $l(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function vo(t,e,r){return t+(e-t)*r}function Ft(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function mc(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var lg=new eo(20),po=null;function ra(t,e){po&&mc(po,e),po=lg.put(t,po||e.slice())}function Ir(t,e){if(t){e=e||[];var r=lg.get(t);if(r)return mc(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Qd)return mc(e,Qd[n]),ra(t,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Ft(e,0,0,0,1);return}return Ft(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),ra(t,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Ft(e,0,0,0,1);return}return Ft(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),ra(t,e),e}return}var s=n.indexOf("("),l=n.indexOf(")");if(s!==-1&&l+1===a){var u=n.substr(0,s),c=n.substr(s+1,l-(s+1)).split(","),f=1;switch(u){case"rgba":if(c.length!==4)return c.length===3?Ft(e,+c[0],+c[1],+c[2],1):Ft(e,0,0,0,1);f=Mi(c.pop());case"rgb":if(c.length>=3)return Ft(e,Ol(c[0]),Ol(c[1]),Ol(c[2]),c.length===3?f:Mi(c[3])),ra(t,e),e;Ft(e,0,0,0,1);return;case"hsla":if(c.length!==4){Ft(e,0,0,0,1);return}return c[3]=Mi(c[3]),Jd(c,e),ra(t,e),e;case"hsl":if(c.length!==3){Ft(e,0,0,0,1);return}return Jd(c,e),ra(t,e),e;default:return}}Ft(e,0,0,0,1)}}function Jd(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Mi(t[1]),a=Mi(t[2]),i=a<=.5?a*(n+1):a+n-a*n,s=a*2-i;return e=e||[],Ft(e,on($l(s,i,r+1/3)*255),on($l(s,i,r)*255),on($l(s,i,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function eh(t,e){var r=Ir(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return js(r,r.length===4?"rgba":"rgb")}}function C2(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),s=Ir(e[a]),l=Ir(e[i]),u=n-a,c=js([on(vo(s[0],l[0],u)),on(vo(s[1],l[1],u)),on(vo(s[2],l[2],u)),pc(vo(s[3],l[3],u))],"rgba");return r?{color:c,leftIndex:a,rightIndex:i,value:n}:c}}function js(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function bs(t,e){var r=Ir(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var th=new eo(100);function rh(t){if(Z(t)){var e=th.get(t);return e||(e=eh(t,-.1),th.put(t,e)),e}else if(Xs(t)){var r=W({},t);return r.colorStops=ee(t.colorStops,function(n){return{offset:n.offset,color:eh(n.color,-.1)}}),r}return t}function k2(t){return t.type==="linear"}function T2(t){return t.type==="radial"}(function(){return oe.hasGlobalWindow&&ue(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&Hn("Base64 isn't natively supported in the current environment."),null}})();var gc=Array.prototype.slice;function Ar(t,e,r){return(e-t)*r+t}function Fl(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=Ar(e[i],r[i],n);return t}function D2(t,e,r,n){for(var a=e.length,i=a&&e[0].length,s=0;s<a;s++){t[s]||(t[s]=[]);for(var l=0;l<i;l++)t[s][l]=Ar(e[s][l],r[s][l],n)}return t}function mo(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+r[i]*n;return t}function nh(t,e,r,n){for(var a=e.length,i=a&&e[0].length,s=0;s<a;s++){t[s]||(t[s]=[]);for(var l=0;l<i;l++)t[s][l]=e[s][l]+r[s][l]*n}return t}function E2(t,e){for(var r=t.length,n=e.length,a=r>n?e:t,i=Math.min(r,n),s=a[i-1]||{color:[0,0,0,0],offset:0},l=i;l<Math.max(r,n);l++)a.push({offset:s.offset,color:s.color.slice()})}function M2(t,e,r){var n=t,a=e;if(!(!n.push||!a.push)){var i=n.length,s=a.length;if(i!==s){var l=i>s;if(l)n.length=s;else for(var u=i;u<s;u++)n.push(r===1?a[u]:gc.call(a[u]))}for(var c=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=a[u]);else for(var f=0;f<c;f++)isNaN(n[u][f])&&(n[u][f]=a[u][f])}}function es(t){if(At(t)){var e=t.length;if(At(t[0])){for(var r=[],n=0;n<e;n++)r.push(gc.call(t[n]));return r}return gc.call(t)}return t}function ts(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function A2(t){return At(t&&t[0])?2:1}var go=0,rs=1,ug=2,bi=3,yc=4,bc=5,ah=6;function ih(t){return t===yc||t===bc}function yo(t){return t===rs||t===ug}var ei=[0,0,0,0],N2=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,s=!1,l=ah,u=r;if(At(r)){var c=A2(r);l=c,(c===1&&!Ve(r[0])||c===2&&!Ve(r[0][0]))&&(s=!0)}else if(Ve(r)&&!Fi(r))l=go;else if(Z(r))if(!isNaN(+r))l=go;else{var f=Ir(r);f&&(u=f,l=bi)}else if(Xs(r)){var d=W({},u);d.colorStops=ee(r.colorStops,function(v){return{offset:v.offset,color:Ir(v.color)}}),k2(r)?l=yc:T2(r)&&(l=bc),u=d}i===0?this.valType=l:(l!==this.valType||l===ah)&&(s=!0),this.discrete=this.discrete||s;var h={time:e,value:u,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=ue(n)?n:Ei[n]||og(n)),a.push(h),h},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=n.length,s=n[i-1],l=this.discrete,u=yo(a),c=ih(a),f=0;f<i;f++){var d=n[f],h=d.value,v=s.value;d.percent=d.time/e,l||(u&&f!==i-1?M2(h,v,a):c&&E2(h.colorStops,v.colorStops))}if(!l&&a!==bc&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var p=n[0].value,f=0;f<i;f++)a===go?n[f].additiveValue=n[f].value-p:a===bi?n[f].additiveValue=mo([],n[f].value,p,-1):yo(a)&&(n[f].additiveValue=a===rs?mo([],n[f].value,p,-1):nh([],n[f].value,p,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,s=this.keyframes,l=s.length,u=this.propName,c=i===bi,f,d=this._lastFr,h=Math.min,v,p;if(l===1)v=p=s[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=h(d+1,l-1);for(f=g;f>=0&&!(s[f].percent<=r);f--);f=h(f,l-2)}else{for(f=d;f<l&&!(s[f].percent>r);f++);f=h(f-1,l-2)}p=s[f+1],v=s[f]}if(v&&p){this._lastFr=f,this._lastFrP=r;var m=p.percent-v.percent,y=m===0?1:h((r-v.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=n?this._additiveValue:c?ei:e[u];if((yo(i)||c)&&!b&&(b=this._additiveValue=[]),this.discrete)e[u]=y<1?v.rawValue:p.rawValue;else if(yo(i))i===rs?Fl(b,v[a],p[a],y):D2(b,v[a],p[a],y);else if(ih(i)){var _=v[a],w=p[a],S=i===yc;e[u]={type:S?"linear":"radial",x:Ar(_.x,w.x,y),y:Ar(_.y,w.y,y),colorStops:ee(_.colorStops,function(C,k){var D=w.colorStops[k];return{offset:Ar(C.offset,D.offset,y),color:ts(Fl([],C.color,D.color,y))}}),global:w.global},S?(e[u].x2=Ar(_.x2,w.x2,y),e[u].y2=Ar(_.y2,w.y2,y)):e[u].r=Ar(_.r,w.r,y)}else if(c)Fl(b,v[a],p[a],y),n||(e[u]=ts(b));else{var x=Ar(v[a],p[a],y);n?this._additiveValue=x:e[u]=x}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,a=this._additiveValue;r===go?e[n]=e[n]+a:r===bi?(Ir(e[n],ei),mo(ei,ei,a,1),e[n]=ts(ei)):r===rs?mo(e[n],e[n],a,1):r===ug&&nh(e[n],e[n],a,1)},t}(),Tf=function(){function t(e,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a){Hn("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Oe(r),n)},t.prototype.whenWithKeys=function(e,r,n,a){for(var i=this._tracks,s=0;s<n.length;s++){var l=n[s],u=i[l];if(!u){u=i[l]=new N2(l);var c=void 0,f=this._getAdditiveTrack(l);if(f){var d=f.keyframes,h=d[d.length-1];c=h&&h.value,f.valType===bi&&c&&(c=ts(c))}else c=this._target[l];if(c==null)continue;e>0&&u.addKeyframe(0,es(c),a),this._trackKeys.push(l)}u.addKeyframe(e,es(r[l]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(r=i)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var s=this._trackKeys[i],l=this._tracks[s],u=this._getAdditiveTrack(s),c=l.keyframes,f=c.length;if(l.prepare(a,u),l.needsAnimate())if(!this._allowDiscrete&&l.discrete){var d=c[f-1];d&&(r._target[l.propName]=d.rawValue),l.setFinished()}else n.push(l)}if(n.length||this._force){var h=new S2({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var p=r._additiveAnimators;if(p){for(var g=!1,m=0;m<p.length;m++)if(p[m]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,v);var y=r._onframeCbs;if(y)for(var m=0;m<y.length;m++)y[m](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return ee(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var s=n[e[i]];s&&!s.isFinished()&&(r?s.step(this._target,1):this._started===1&&s.step(this._target,0),s.setFinished())}for(var l=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){l=!1;break}return l&&this._abortedCallback(),l},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],s=this._tracks[i];if(!(!s||s.isFinished())){var l=s.keyframes,u=l[n?0:l.length-1];u&&(e[i]=es(u.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Oe(e);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var s=i.keyframes;if(s.length>1){var l=s.pop();i.addKeyframe(l.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function wa(){return new Date().getTime()}var B2=function(t){Ae(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=wa()-this._pausedTime,a=n-this._time,i=this._head;i;){var s=i.next,l=i.step(n,a);l&&(i.ondestroy(),this.removeClip(i)),i=s}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(vs(n),!r._paused&&r.update())}vs(n)},e.prototype.start=function(){this._running||(this._time=wa(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=wa(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=wa()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var a=new Tf(r,n.loop);return this.addAnimator(a),a},e}(xr),V2=300,Hl=oe.domSupported,Gl=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ee(t,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:n}}(),oh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sh=!1;function _c(t){var e=t.pointerType;return e==="pen"||e==="touch"}function I2(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Wl(t){t&&(t.zrByTouch=!0)}function L2(t,e){return Ht(t.dom,new P2(t,e),!0)}function cg(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var P2=function(){function t(e,r){this.stopPropagation=Mt,this.stopImmediatePropagation=Mt,this.preventDefault=Mt,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),rr={mousedown:function(t){t=Ht(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ht(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Ht(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Ht(this.dom,t);var e=t.toElement||t.relatedTarget;cg(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){sh=!0,t=Ht(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){sh||(t=Ht(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Ht(this.dom,t),Wl(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),rr.mousemove.call(this,t),rr.mousedown.call(this,t)},touchmove:function(t){t=Ht(this.dom,t),Wl(t),this.handler.processGesture(t,"change"),rr.mousemove.call(this,t)},touchend:function(t){t=Ht(this.dom,t),Wl(t),this.handler.processGesture(t,"end"),rr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<V2&&rr.click.call(this,t)},pointerdown:function(t){rr.mousedown.call(this,t)},pointermove:function(t){_c(t)||rr.mousemove.call(this,t)},pointerup:function(t){rr.mouseup.call(this,t)},pointerout:function(t){_c(t)||rr.mouseout.call(this,t)}};L(["click","dblclick","contextmenu"],function(t){rr[t]=function(e){e=Ht(this.dom,e),this.trigger(t,e)}});var wc={pointermove:function(t){_c(t)||wc.mousemove.call(this,t)},pointerup:function(t){wc.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function z2(t,e){var r=e.domHandlers;oe.pointerEventsSupported?L(Gl.pointer,function(n){ns(e,n,function(a){r[n].call(t,a)})}):(oe.touchEventsSupported&&L(Gl.touch,function(n){ns(e,n,function(a){r[n].call(t,a),I2(e)})}),L(Gl.mouse,function(n){ns(e,n,function(a){a=Sf(a),e.touching||r[n].call(t,a)})}))}function R2(t,e){oe.pointerEventsSupported?L(oh.pointer,r):oe.touchEventsSupported||L(oh.mouse,r);function r(n){function a(i){i=Sf(i),cg(t,i.target)||(i=L2(t,i),e.domHandlers[n].call(t,i))}ns(e,n,a,{capture:!0})}}function ns(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,t2(t.domTarget,e,r,n)}function Ul(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&r2(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var lh=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),O2=function(t){Ae(e,t);function e(r,n){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new lh(r,rr),Hl&&(a._globalHandlerScope=new lh(document,wc)),z2(a,a._localHandlerScope),a}return e.prototype.dispose=function(){Ul(this._localHandlerScope),Hl&&Ul(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Hl&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?R2(this,n):Ul(n)}},e}(xr),fg=1;oe.hasGlobalWindow&&(fg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var _s=fg,Sc=.4,xc="#333",Cc="#ccc",$2="#eee",uh=xf,ch=5e-5;function _n(t){return t>ch||t<-ch}var wn=[],na=[],Yl=ka(),Xl=Math.abs,Df=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return _n(this.rotation)||_n(this.x)||_n(this.y)||_n(this.scaleX-1)||_n(this.scaleY-1)||_n(this.skewX)||_n(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(uh(n),this.invTransform=null);return}n=n||ka(),r?this.getLocalTransform(n):uh(n),e&&(r?Ta(n,e,n):i2(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(wn);var n=wn[0]<0?-1:1,a=wn[1]<0?-1:1,i=((wn[0]-n)*r+n)/wn[0]||0,s=((wn[1]-a)*r+a)/wn[1]||0;e[0]*=i,e[1]*=i,e[2]*=s,e[3]*=s}this.invTransform=this.invTransform||ka(),kf(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ka(),Ta(na,e.invTransform,r),r=na);var n=this.originX,a=this.originY;(n||a)&&(Yl[4]=n,Yl[5]=a,Ta(na,r,Yl),na[4]-=n,na[5]-=a,r=na),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],a=this.invTransform;return a&&jt(n,n,a),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],a=this.transform;return a&&jt(n,n,a),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Xl(e[0]-1)>1e-10&&Xl(e[3]-1)>1e-10?Math.sqrt(Xl(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){F2(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,s=e.scaleY,l=e.anchorX,u=e.anchorY,c=e.rotation||0,f=e.x,d=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||a||l||u){var p=n+l,g=a+u;r[4]=-p*i-h*g*s,r[5]=-g*s-v*p*i}else r[4]=r[5]=0;return r[0]=i,r[3]=s,r[1]=v*i,r[2]=h*s,c&&Cf(r,r,c),r[4]+=n+f,r[5]+=a+d,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Hi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function F2(t,e){for(var r=0;r<Hi.length;r++){var n=Hi[r];t[n]=e[n]}}var fh={};function It(t,e){e=e||Xn;var r=fh[e];r||(r=fh[e]=new eo(500));var n=r.get(t);return n==null&&(n=Fa.measureText(t,e).width,r.put(t,n)),n}function dh(t,e,r,n){var a=It(t,e),i=Mf(e),s=_i(0,a,r),l=ya(0,i,n),u=new Ce(s,l,a,i);return u}function Ef(t,e,r,n){var a=((t||"")+"").split(`
|
|
228
|
+
`),i=a.length;if(i===1)return dh(a[0],e,r,n);for(var s=new Ce(0,0,0,0),l=0;l<a.length;l++){var u=dh(a[l],e,r,n);l===0?s.copy(u):s.union(u)}return s}function _i(t,e,r){return r==="right"?t-=e:r==="center"&&(t-=e/2),t}function ya(t,e,r){return r==="middle"?t-=e/2:r==="bottom"&&(t-=e),t}function Mf(t){return It("国",t)}function un(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ws(t,e,r){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=r.height,s=r.width,l=i/2,u=r.x,c=r.y,f="left",d="top";if(n instanceof Array)u+=un(n[0],r.width),c+=un(n[1],r.height),f=null,d=null;else switch(n){case"left":u-=a,c+=l,f="right",d="middle";break;case"right":u+=a+s,c+=l,d="middle";break;case"top":u+=s/2,c-=a,f="center",d="bottom";break;case"bottom":u+=s/2,c+=i+a,f="center";break;case"inside":u+=s/2,c+=l,f="center",d="middle";break;case"insideLeft":u+=a,c+=l,d="middle";break;case"insideRight":u+=s-a,c+=l,f="right",d="middle";break;case"insideTop":u+=s/2,c+=a,f="center";break;case"insideBottom":u+=s/2,c+=i-a,f="center",d="bottom";break;case"insideTopLeft":u+=a,c+=a;break;case"insideTopRight":u+=s-a,c+=a,f="right";break;case"insideBottomLeft":u+=a,c+=i-a,d="bottom";break;case"insideBottomRight":u+=s-a,c+=i-a,f="right",d="bottom";break}return t=t||{},t.x=u,t.y=c,t.align=f,t.verticalAlign=d,t}var ql="__zr_normal__",jl=Hi.concat(["ignore"]),H2=ln(Hi,function(t,e){return t[e]=!0,t},{ignore:!1}),aa={},G2=new Ce(0,0,0,0),Zs=function(){function t(e){this.id=Um(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,s=void 0,l=void 0,u=!1;i.parent=a?this:null;var c=!1;if(i.copyTransform(r),n.position!=null){var f=G2;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(aa,n,f):ws(aa,n,f),i.x=aa.x,i.y=aa.y,s=aa.align,l=aa.verticalAlign;var d=n.origin;if(d&&n.rotation!=null){var h=void 0,v=void 0;d==="center"?(h=f.width*.5,v=f.height*.5):(h=un(d[0],f.width),v=un(d[1],f.height)),c=!0,i.originX=-i.x+h+(a?0:f.x),i.originY=-i.y+v+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],c||(i.originX=-p[0],i.originY=-p[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||s!==m.align||l!==m.verticalAlign)&&(u=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=s,m.verticalAlign=l,r.setDefaultTextStyle(m)),r.__dirty|=Vt,u&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cc:xc},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Ir(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),s=0;s<3;s++)n[s]=n[s]*a+(i?0:255)*(1-a);return n[3]=1,js(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},W(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(re(e))for(var n=e,a=Oe(n),i=0;i<a.length;i++){var s=a[i];this.attrKV(s,e[s])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==ql)){var s=a.targetName,l=s?r[s]:r;a.saveTo(l)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,jl)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in r)&&(r[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(ql,!1,e)},t.prototype.useState=function(e,r,n,a){var i=e===ql,s=this.hasState();if(!(!s&&i)){var l=this.currentStates,u=this.stateTransition;if(!(Me(l,e)>=0&&(r||l.length===1))){var c;if(this.stateProxy&&!i&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),!c&&!i){Hn("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(c);var f=!!(c&&c.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,r,!n&&!this.__inHover&&u&&u.duration>0,u);var d=this._textContent,h=this._textGuide;return d&&d.useState(e,r,n,f),h&&h.useState(e,r,n,f),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt),c}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,s=e.length,l=s===i.length;if(l){for(var u=0;u<s;u++)if(e[u]!==i[u]){l=!1;break}}if(l)return;for(var u=0;u<s;u++){var c=e[u],f=void 0;this.stateProxy&&(f=this.stateProxy(c,e)),f||(f=this.states[c]),f&&a.push(f)}var d=a[s-1],h=!!(d&&d.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!r&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,r,h),m&&m.useStates(e,r,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt)}},t.prototype.isSilent=function(){for(var e=this.silent,r=this.parent;!e&&r;){if(r.silent){e=!0;break}r=r.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=Me(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var a=this.currentStates.slice(),i=Me(a,e),s=Me(a,r)>=0;i>=0?s?a.splice(i,1):a[i]=r:n&&!s&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,a=0;a<e.length;a++){var i=e[a];W(r,i),i.textConfig&&(n=n||{},W(n,i.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,a,i,s){var l=!(r&&a);r&&r.textConfig?(this.textConfig=W({},a?this.textConfig:n.textConfig),W(this.textConfig,r.textConfig)):l&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},c=!1,f=0;f<jl.length;f++){var d=jl[f],h=i&&H2[d];r&&r[d]!=null?h?(c=!0,u[d]=r[d]):this[d]=r[d]:l&&n[d]!=null&&(h?(c=!0,u[d]=n[d]):this[d]=n[d])}if(!i)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],p=v.targetName;v.getLoop()||v.__changeFinalValue(p?(r||n)[p]:r||n)}c&&this._transitionState(e,u,s)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;if(r!==e){if(r&&r!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Df,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),W(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Vt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var a=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!a){Hn('Property "'+e+'" is not existed in element '+this.id);return}var i=new Tf(a,r,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,r){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,s=Me(i,e);s>=0&&i.splice(s,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,a=n.length,i=[],s=0;s<a;s++){var l=n[s];!e||e===l.scope?l.stop(r):i.push(l)}return this.animators=i,this},t.prototype.animateTo=function(e,r,n){Zl(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Zl(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,a){for(var i=Zl(this,r,n,a),s=0;s<i.length;s++)i[s].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Vt;var r={};function n(i,s,l){r[i+s+l]||(console.warn("DEPRECATED: '"+i+"' has been deprecated. use '"+s+"', '"+l+"' instead"),r[i+s+l]=!0)}function a(i,s,l,u){Object.defineProperty(e,i,{get:function(){if(process.env.NODE_ENV!=="production"&&n(i,l,u),!this[s]){var f=this[s]=[];c(this,f)}return this[s]},set:function(f){process.env.NODE_ENV!=="production"&&n(i,l,u),this[l]=f[0],this[u]=f[1],this[s]=f,c(this,f)}});function c(f,d){Object.defineProperty(d,0,{get:function(){return f[l]},set:function(h){f[l]=h}}),Object.defineProperty(d,1,{get:function(){return f[u]},set:function(h){f[u]=h}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),t}();Sr(Zs,xr);Sr(Zs,Df);function Zl(t,e,r,n,a){r=r||{};var i=[];dg(t,"",t,e,r,n,i,a);var s=i.length,l=!1,u=r.done,c=r.aborted,f=function(){l=!0,s--,s<=0&&(l?u&&u():c&&c())},d=function(){s--,s<=0&&(l?u&&u():c&&c())};s||u&&u(),i.length>0&&r.during&&i[0].during(function(p,g){r.during(g)});for(var h=0;h<i.length;h++){var v=i[h];f&&v.done(f),d&&v.aborted(d),r.force&&v.duration(r.duration),v.start(r.easing)}return i}function Kl(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function W2(t){return At(t[0])}function U2(t,e,r){if(At(e[r]))if(At(t[r])||(t[r]=[]),wt(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Kl(t[r],e[r],n))}else{var a=e[r],i=t[r],s=a.length;if(W2(a))for(var l=a[0].length,u=0;u<s;u++)i[u]?Kl(i[u],a[u],l):i[u]=Array.prototype.slice.call(a[u]);else Kl(i,a,s);i.length=a.length}else t[r]=e[r]}function Y2(t,e){return t===e||At(t)&&At(e)&&X2(t,e)}function X2(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function dg(t,e,r,n,a,i,s,l){for(var u=Oe(n),c=a.duration,f=a.delay,d=a.additive,h=a.setToFinal,v=!re(i),p=t.animators,g=[],m=0;m<u.length;m++){var y=u[m],b=n[y];if(b!=null&&r[y]!=null&&(v||i[y]))if(re(b)&&!At(b)&&!Xs(b)){if(e){l||(r[y]=b,t.updateDuringAnimation(e));continue}dg(t,y,r[y],b,a,i&&i[y],s,l)}else g.push(y);else l||(r[y]=b,t.updateDuringAnimation(e),g.push(y))}var _=g.length;if(!d&&_)for(var w=0;w<p.length;w++){var S=p[w];if(S.targetName===e){var x=S.stopTracks(g);if(x){var C=Me(p,S);p.splice(C,1)}}}if(a.force||(g=st(g,function(T){return!Y2(n[T],r[T])}),_=g.length),_>0||a.force&&!s.length){var k=void 0,D=void 0,E=void 0;if(l){D={},h&&(k={});for(var w=0;w<_;w++){var y=g[w];D[y]=r[y],h?k[y]=n[y]:r[y]=n[y]}}else if(h){E={};for(var w=0;w<_;w++){var y=g[w];E[y]=es(r[y]),U2(r,n,y)}}var S=new Tf(r,!1,!1,d?st(p,function(M){return M.targetName===e}):null);S.targetName=e,a.scope&&(S.scope=a.scope),h&&k&&S.whenWithKeys(0,k,g),E&&S.whenWithKeys(0,E,g),S.whenWithKeys(c??500,l?D:n,g).delay(f||0),t.addAnimator(S,e),s.push(S)}}var ut=function(t){Ae(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var a=Me(this._children,r);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var s=this.__zr;s&&i.removeSelfFromZr(s),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,a=this._children,i=Me(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var s=a[i];r.call(n,s,i)}return this},e.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],s=r.call(n,i);i.isGroup&&!s&&i.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new Ce(0,0,0,0),a=r||this._children,i=[],s=null,l=0;l<a.length;l++){var u=a[l];if(!(u.ignore||u.invisible)){var c=u.getBoundingRect(),f=u.getLocalTransform(i);f?(Ce.applyTransform(n,c,f),s=s||n.clone(),s.union(n)):(s=s||c.clone(),s.union(c))}}return s||n},e}(Zs);ut.prototype.type="group";/*!
|
|
229
|
+
* ZRender, a high performance 2d drawing library.
|
|
230
|
+
*
|
|
231
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
232
|
+
* All rights reserved.
|
|
233
|
+
*
|
|
234
|
+
* LICENSE
|
|
235
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
236
|
+
*/var wi={},hg={};function q2(t){delete hg[t]}function j2(t){if(!t)return!1;if(typeof t=="string")return bs(t,1)<Sc;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,a=0;a<n;a++)r+=bs(e[a].color,1);return r/=n,r<Sc}return!1}var Z2=function(){function t(e,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var i=new p2,s=n.renderer||"canvas";if(wi[s]||(s=Oe(wi)[0]),process.env.NODE_ENV!=="production"&&!wi[s])throw new Error("Renderer '"+s+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var l=new wi[s](r,i,n,e),u=n.ssr||l.ssrOnly;this.storage=i,this.painter=l;var c=!oe.node&&!oe.worker&&!u?new O2(l.getViewportRoot(),l.root):null,f=n.useCoarsePointer,d=f==null||f==="auto"?oe.touchEventsSupported:!!f,h=44,v;d&&(v=fe(n.pointerSize,h)),this.handler=new Jm(i,l,c,l.root,v),this.animation=new B2({stage:{update:u?null:function(){return a._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=j2(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=wa();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=wa();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof ut&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,q2(this.id))},t}();function hh(t,e){var r=new Z2(Um(),t,e);return hg[r.id]=r,r}function K2(t,e){wi[t]=e}var vh=1e-4,vg=20;function Q2(t){return t.replace(/^\s+|\s+$/g,"")}function kc(t,e,r,n){var a=e[0],i=e[1],s=r[0],l=r[1],u=i-a,c=l-s;if(u===0)return c===0?s:(s+l)/2;if(n)if(u>0){if(t<=a)return s;if(t>=i)return l}else{if(t>=a)return s;if(t<=i)return l}else{if(t===a)return s;if(t===i)return l}return(t-a)/u*c+s}function Re(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Z(t)?Q2(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Xe(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),vg),t=(+t).toFixed(e),r?t:+t}function Nr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return Tc(t)}function Tc(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,i=e.indexOf("."),s=i<0?0:a-1-i;return Math.max(0,s-n)}function J2(t,e){var r=Math.log,n=Math.LN10,a=Math.floor(r(t[1]-t[0])/n),i=Math.round(r(Math.abs(e[1]-e[0]))/n),s=Math.min(Math.max(-a+i,0),20);return isFinite(s)?s:20}function eT(t,e){var r=ln(t,function(v,p){return v+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,e),a=ee(t,function(v){return(isNaN(v)?0:v)/r*n*100}),i=n*100,s=ee(a,function(v){return Math.floor(v)}),l=ln(s,function(v,p){return v+p},0),u=ee(a,function(v,p){return v-s[p]});l<i;){for(var c=Number.NEGATIVE_INFINITY,f=null,d=0,h=u.length;d<h;++d)u[d]>c&&(c=u[d],f=d);++s[f],u[f]=0,++l}return ee(s,function(v){return v/n})}function tT(t,e){var r=Math.max(Nr(t),Nr(e)),n=t+e;return r>vg?n:Xe(n,r)}function pg(t){var e=Math.PI*2;return(t%e+e)%e}function Ss(t){return t>-vh&&t<vh}var rT=/^(?:(\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 zr(t){if(t instanceof Date)return t;if(Z(t)){var e=rT.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function nT(t){return Math.pow(10,Ks(t))}function Ks(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function mg(t,e){var r=Ks(t),n=Math.pow(10,r),a=t/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,t=i*n,r>=-20?+t.toFixed(r<0?-r:0):t}function xs(t){var e=parseFloat(t);return e==t&&(e!==0||!Z(t)||t.indexOf("x")<=0)?e:NaN}function gg(t){return!isNaN(xs(t))}function yg(){return Math.round(Math.random()*9)}function bg(t,e){return e===0?t:bg(e,t%e)}function ph(t,e){return t==null?e:e==null?t:t*e/bg(t,e)}var aT="[ECharts] ",mh={},iT=typeof console<"u"&&console.warn&&console.log;function Qs(t,e,r){if(iT){if(r){if(mh[e])return;mh[e]=!0}console[t](aT+e)}}function oT(t,e){Qs("log",t,e)}function pt(t,e){Qs("warn",t,e)}function mt(t,e){Qs("error",t,e)}function wr(t){process.env.NODE_ENV!=="production"&&Qs("warn","DEPRECATED: "+t,!0)}function tt(t,e,r){process.env.NODE_ENV!=="production"&&wr((r?"["+r+"]":"")+(t+" is deprecated, use "+e+" instead."))}function Cs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r="";if(process.env.NODE_ENV!=="production"){var n=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":Fi(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":ue(a)?"function () { ... }":Vk(a)?a+"":null};r=ee(t,function(a){if(Z(a))return a;var i=n(a);if(i!=null)return i;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(s,l){var u=n(l);return u??l})}catch{return"?"}else return"?"}).join(" ")}return r}function Dt(t){throw new Error(t)}function gh(t,e,r){return(e-t)*r+t}var _g="series\0",sT="\0_ec_\0";function _t(t){return t instanceof Array?t:t==null?[]:[t]}function Dc(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var yh=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function to(t){return re(t)&&!j(t)&&!(t instanceof Date)?t.value:t}function lT(t){return re(t)&&!(t instanceof Array)}function uT(t,e,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";t=t||[],e=(e||[]).slice();var s=ve();L(e,function(u,c){if(!re(u)){e[c]=null;return}process.env.NODE_ENV!=="production"&&(u.id!=null&&!_h(u.id)&&bh(u.id),u.name!=null&&!_h(u.name)&&bh(u.name))});var l=cT(t,s,r);return(n||a)&&fT(l,t,s,e),n&&dT(l,e),n||a?hT(l,e,a):i&&vT(l,e),pT(l),l}function cT(t,e,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:r==="replaceMerge"||Va(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function fT(t,e,r,n){L(n,function(a,i){if(!(!a||a.id==null)){var s=Ai(a.id),l=r.get(s);if(l!=null){var u=t[l];he(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=a,u.existing=e[l],n[i]=null}}})}function dT(t,e){L(e,function(r,n){if(!(!r||r.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||r.id==null)&&!Va(r)&&!Va(i)&&wg("name",i,r)){t[a].newOption=r,e[n]=null;return}}})}function hT(t,e,r){L(e,function(n){if(n){for(var a,i=0;(a=t[i])&&(a.newOption||Va(a.existing)||a.existing&&n.id!=null&&!wg("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function vT(t,e){L(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function pT(t){var e=ve();L(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),L(t,function(r){var n=r.newOption;he(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),L(t,function(r,n){var a=r.existing,i=r.newOption,s=r.keyInfo;if(re(i)){if(s.name=i.name!=null?Ai(i.name):a?a.name:_g+n,a)s.id=Ai(a.id);else if(i.id!=null)s.id=Ai(i.id);else{var l=0;do s.id="\0"+s.name+"\0"+l++;while(e.get(s.id))}e.set(s.id,r)}})}function wg(t,e,r){var n=_r(e[t],null),a=_r(r[t],null);return n!=null&&a!=null&&n===a}function Ai(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return _r(t,"")}function _r(t,e){return t==null?e:Z(t)?t:Ve(t)||hs(t)?t+"":e}function bh(t){process.env.NODE_ENV!=="production"&&pt("`"+t+"` is invalid id or name. Must be a string or number.")}function _h(t){return hs(t)||gg(t)}function Af(t){var e=t.name;return!!(e&&e.indexOf(_g))}function Va(t){return t&&t.id!=null&&Ai(t.id).indexOf(sT)===0}function mT(t,e,r){L(t,function(n){var a=n.newOption;re(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=gT(e,a,n.existing,r))})}function gT(t,e,r,n){var a=e.type?e.type:r?r.subType:n.determineSubType(t,e);return a}function Zn(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return j(e.dataIndex)?ee(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return j(e.name)?ee(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Ue(){var t="__ec_inner_"+yT++;return function(e){return e[t]||(e[t]={})}}var yT=yg();function Ql(t,e,r){var n=Nf(e,r),a=n.mainTypeSpecified,i=n.queryOptionMap,s=n.others,l=s,u=r?r.defaultMainType:null;return!a&&u&&i.set(u,{}),i.each(function(c,f){var d=ro(t,f,c,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});l[f+"Models"]=d.models,l[f+"Model"]=d.models[0]}),l}function Nf(t,e){var r;if(Z(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var a=ve(),i={},s=!1;return L(r,function(l,u){if(u==="dataIndex"||u==="dataIndexInside"){i[u]=l;return}var c=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=c[1],d=(c[2]||"").toLowerCase();if(!(!f||!d||e&&e.includeMainTypes&&Me(e.includeMainTypes,f)<0)){s=s||!!f;var h=a.get(f)||a.set(f,{});h[d]=l}}),{mainTypeSpecified:s,queryOptionMap:a,others:i}}var ar={useDefault:!0,enableAll:!1,enableNone:!1};function ro(t,e,r,n){n=n||ar;var a=r.index,i=r.id,s=r.name,l={models:null,specified:a!=null||i!=null||s!=null};if(!l.specified){var u=void 0;return l.models=n.useDefault&&(u=t.getComponent(e))?[u]:[],l}return a==="none"||a===!1?(he(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):(a==="all"&&(he(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=s=null),l.models=t.queryComponents({mainType:e,index:a,id:i,name:s}),l)}function Sg(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function bT(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function _T(t){return t==="auto"?oe.domSupported?"html":"richText":t||"html"}function wT(t,e,r,n,a){var i=e==null||e==="auto";if(n==null)return n;if(Ve(n)){var s=gh(r||0,n,a);return Xe(s,i?Math.max(Nr(r||0),Nr(n)):e)}else{if(Z(n))return a<1?r:n;for(var l=[],u=r,c=n,f=Math.max(u?u.length:0,c.length),d=0;d<f;++d){var h=t.getDimensionInfo(d);if(h&&h.type==="ordinal")l[d]=(a<1&&u?u:c)[d];else{var v=u&&u[d]?u[d]:0,p=c[d],s=gh(v,p,a);l[d]=Xe(s,i?Math.max(Nr(v),Nr(p)):e)}}return l}}var ST=".",Sn="___EC__COMPONENT__CONTAINER___",xg="___EC__EXTENDED_CLASS___";function br(t){var e={main:"",sub:""};if(t){var r=t.split(ST);e.main=r[0]||"",e.sub=r[1]||""}return e}function xT(t){he(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function CT(t){return!!(t&&t[xg])}function Bf(t,e){t.$constructor=t,t.extend=function(r){process.env.NODE_ENV!=="production"&&L(e,function(i){r[i]||console.warn("Method `"+i+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,a;return kT(n)?a=function(i){se(s,i);function s(){return i.apply(this,arguments)||this}return s}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},Ak(a,this)),W(a.prototype,r),a[xg]=!0,a.extend=this.extend,a.superCall=ET,a.superApply=MT,a.superClass=n,a}}function kT(t){return ue(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Cg(t,e){t.extend=e.extend}var TT=Math.round(Math.random()*10);function DT(t){var e=["__\0is_clz",TT++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&he(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(r){return!!(r&&r[e])}}function ET(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function MT(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Js(t){var e={};t.registerClass=function(n){var a=n.type||n.prototype.type;if(a){xT(a),n.prototype.type=a;var i=br(a);if(!i.sub)process.env.NODE_ENV!=="production"&&e[i.main]&&console.warn(i.main+" exists."),e[i.main]=n;else if(i.sub!==Sn){var s=r(i);s[i.sub]=n}}return n},t.getClass=function(n,a,i){var s=e[n];if(s&&s[Sn]&&(s=a?s[a]:null),i&&!s)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return s},t.getClassesByMainType=function(n){var a=br(n),i=[],s=e[a.main];return s&&s[Sn]?L(s,function(l,u){u!==Sn&&i.push(l)}):i.push(s),i},t.hasClass=function(n){var a=br(n);return!!e[a.main]},t.getAllClassMainTypes=function(){var n=[];return L(e,function(a,i){n.push(i)}),n},t.hasSubTypes=function(n){var a=br(n),i=e[a.main];return i&&i[Sn]};function r(n){var a=e[n.main];return(!a||!a[Sn])&&(a=e[n.main]={},a[Sn]=!0),a}}function Gi(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,a,i){for(var s={},l=0;l<t.length;l++){var u=t[l][1];if(!(a&&Me(a,u)>=0||i&&Me(i,u)<0)){var c=n.getShallow(u,e);c!=null&&(s[t[l][0]]=c)}}return s}}var AT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],NT=Gi(AT),BT=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return NT(this,e,r)},t}(),Ec=new eo(50);function VT(t){if(typeof t=="string"){var e=Ec.get(t);return e&&e.image}else return t}function kg(t,e,r,n,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var i=Ec.get(t),s={hostEl:r,cb:n,cbPayload:a};return i?(e=i.image,!el(e)&&i.pending.push(s)):(e=Fa.loadImage(t,wh,wh),e.__zrImageSrc=t,Ec.put(t,e.__cachedImgObj={image:e,pending:[s]})),e}else return t;else return e}function wh(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function el(t){return t&&t.width&&t.height}var Jl=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function IT(t,e,r,n,a,i){if(!r){t.text="",t.isTruncated=!1;return}var s=(e+"").split(`
|
|
237
|
+
`);i=Tg(r,n,a,i);for(var l=!1,u={},c=0,f=s.length;c<f;c++)Dg(u,s[c],i),s[c]=u.textLine,l=l||u.isTruncated;t.text=s.join(`
|
|
238
|
+
`),t.isTruncated=l}function Tg(t,e,r,n){n=n||{};var a=W({},n);a.font=e,r=fe(r,"..."),a.maxIterations=fe(n.maxIterations,2);var i=a.minChar=fe(n.minChar,0);a.cnCharWidth=It("国",e);var s=a.ascCharWidth=It("a",e);a.placeholder=fe(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<i&&l>=s;u++)l-=s;var c=It(r,e);return c>l&&(r="",c=0),l=t-c,a.ellipsis=r,a.ellipsisWidth=c,a.contentWidth=l,a.containerWidth=t,a}function Dg(t,e,r){var n=r.containerWidth,a=r.font,i=r.contentWidth;if(!n){t.textLine="",t.isTruncated=!1;return}var s=It(e,a);if(s<=n){t.textLine=e,t.isTruncated=!1;return}for(var l=0;;l++){if(s<=i||l>=r.maxIterations){e+=r.ellipsis;break}var u=l===0?LT(e,i,r.ascCharWidth,r.cnCharWidth):s>0?Math.floor(e.length*i/s):0;e=e.substr(0,u),s=It(e,a)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function LT(t,e,r,n){for(var a=0,i=0,s=t.length;i<s&&a<e;i++){var l=t.charCodeAt(i);a+=0<=l&&l<=127?r:n}return i}function PT(t,e){t!=null&&(t+="");var r=e.overflow,n=e.padding,a=e.font,i=r==="truncate",s=Mf(a),l=fe(e.lineHeight,s),u=!!e.backgroundColor,c=e.lineOverflow==="truncate",f=!1,d=e.width,h;d!=null&&(r==="break"||r==="breakAll")?h=t?Eg(t,e.font,d,r==="breakAll",0).lines:[]:h=t?t.split(`
|
|
239
|
+
`):[];var v=h.length*l,p=fe(e.height,v);if(v>p&&c){var g=Math.floor(p/l);f=f||h.length>g,h=h.slice(0,g)}if(t&&i&&d!=null)for(var m=Tg(d,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},b=0;b<h.length;b++)Dg(y,h[b],m),h[b]=y.textLine,f=f||y.isTruncated;for(var _=p,w=0,b=0;b<h.length;b++)w=Math.max(It(h[b],a),w);d==null&&(d=w);var S=w;return n&&(_+=n[0]+n[2],S+=n[1]+n[3],d+=n[1]+n[3]),u&&(S=d),{lines:h,height:p,outerWidth:S,outerHeight:_,lineHeight:l,calculatedLineHeight:s,contentWidth:w,contentHeight:v,width:d,isTruncated:f}}var zT=function(){function t(){}return t}(),Sh=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),RT=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();function OT(t,e){var r=new RT;if(t!=null&&(t+=""),!t)return r;for(var n=e.width,a=e.height,i=e.overflow,s=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,l=Jl.lastIndex=0,u;(u=Jl.exec(t))!=null;){var c=u.index;c>l&&eu(r,t.substring(l,c),e,s),eu(r,u[2],e,s,u[1]),l=Jl.lastIndex}l<t.length&&eu(r,t.substring(l,t.length),e,s);var f=[],d=0,h=0,v=e.padding,p=i==="truncate",g=e.lineOverflow==="truncate",m={};function y(I,G,F){I.width=G,I.lineHeight=F,d+=F,h=Math.max(h,G)}e:for(var b=0;b<r.lines.length;b++){for(var _=r.lines[b],w=0,S=0,x=0;x<_.tokens.length;x++){var C=_.tokens[x],k=C.styleName&&e.rich[C.styleName]||{},D=C.textPadding=k.padding,E=D?D[1]+D[3]:0,T=C.font=k.font||e.font;C.contentHeight=Mf(T);var M=fe(k.height,C.contentHeight);if(C.innerHeight=M,D&&(M+=D[0]+D[2]),C.height=M,C.lineHeight=Gn(k.lineHeight,e.lineHeight,M),C.align=k&&k.align||e.align,C.verticalAlign=k&&k.verticalAlign||"middle",g&&a!=null&&d+C.lineHeight>a){var A=r.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,S,w),r.lines=r.lines.slice(0,b+1)):r.lines=r.lines.slice(0,b),r.isTruncated=r.isTruncated||r.lines.length<A;break e}var P=k.width,V=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")C.percentWidth=P,f.push(C),C.contentWidth=It(C.text,T);else{if(V){var B=k.backgroundColor,z=B&&B.image;z&&(z=VT(z),el(z)&&(C.width=Math.max(C.width,z.width*M/z.height)))}var N=p&&n!=null?n-S:null;N!=null&&N<C.width?!V||N<E?(C.text="",C.width=C.contentWidth=0):(IT(m,C.text,N-E,T,e.ellipsis,{minChar:e.truncateMinChar}),C.text=m.text,r.isTruncated=r.isTruncated||m.isTruncated,C.width=C.contentWidth=It(C.text,T)):C.contentWidth=It(C.text,T)}C.width+=E,S+=C.width,k&&(w=Math.max(w,C.lineHeight))}y(_,S,w)}r.outerWidth=r.width=fe(n,h),r.outerHeight=r.height=fe(a,d),r.contentHeight=d,r.contentWidth=h,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var b=0;b<f.length;b++){var C=f[b],R=C.percentWidth;C.width=parseInt(R,10)/100*r.width}return r}function eu(t,e,r,n,a){var i=e==="",s=a&&r.rich[a]||{},l=t.lines,u=s.font||r.font,c=!1,f,d;if(n){var h=s.padding,v=h?h[1]+h[3]:0;if(s.width!=null&&s.width!=="auto"){var p=un(s.width,n.width)+v;l.length>0&&p+n.accumWidth>n.width&&(f=e.split(`
|
|
240
|
+
`),c=!0),n.accumWidth=p}else{var g=Eg(e,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,d=g.linesWidths,f=g.lines}}else f=e.split(`
|
|
241
|
+
`);for(var m=0;m<f.length;m++){var y=f[m],b=new zT;if(b.styleName=a,b.text=y,b.isLineHolder=!y&&!i,typeof s.width=="number"?b.width=s.width:b.width=d?d[m]:It(y,u),!m&&!c){var _=(l[l.length-1]||(l[0]=new Sh)).tokens,w=_.length;w===1&&_[0].isLineHolder?_[0]=b:(y||!w||i)&&_.push(b)}else l.push(new Sh([b]))}}function $T(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var FT=ln(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function HT(t){return $T(t)?!!FT[t]:!0}function Eg(t,e,r,n,a){for(var i=[],s=[],l="",u="",c=0,f=0,d=0;d<t.length;d++){var h=t.charAt(d);if(h===`
|
|
242
|
+
`){u&&(l+=u,f+=c),i.push(l),s.push(f),l="",u="",c=0,f=0;continue}var v=It(h,e),p=n?!1:!HT(h);if(i.length?f+v>r:a+f+v>r){f?(l||u)&&(p?(l||(l=u,u="",c=0,f=c),i.push(l),s.push(f-c),u+=h,c+=v,l="",f=c):(u&&(l+=u,u="",c=0),i.push(l),s.push(f),l=h,f=v)):p?(i.push(u),s.push(c),u=h,c=v):(i.push(h),s.push(v));continue}f+=v,p?(u+=h,c+=v):(u&&(l+=u,u="",c=0),l+=h)}return!i.length&&!l&&(l=t,u="",c=0),u&&(l+=u),l&&(i.push(l),s.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:s}}var Mc="__zr_style_"+Math.round(Math.random()*10),Wn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},tl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Wn[Mc]=!0;var xh=["z","z2","invisible"],GT=["invisible"],no=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Oe(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):t.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,a,i){var s=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&WT(this,r,n)||s&&!s[0]&&!s[3])return!1;if(a&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,s=i.shadowBlur||0,l=i.shadowOffsetX||0,u=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Ce(0,0,0,0)),n?Ce.applyTransform(r,a,n):r.copy(a),(s||l||u)&&(r.width+=s*2+Math.abs(l),r.height+=s*2+Math.abs(u),r.x=Math.min(r.x,r.x+l-s),r.y=Math.min(r.y,r.y+u-s));var c=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-c),r.y=Math.floor(r.y-c),r.width=Math.ceil(r.width+1+c*2),r.height=Math.ceil(r.height+1+c*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Ce(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:W(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=yi,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&yi)},e.prototype.styleUpdated=function(){this.__dirty&=~yi},e.prototype.createStyle=function(r){return qs(Wn,r)},e.prototype.useStyle=function(r){r[Mc]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[Mc]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,xh)},e.prototype._applyStateObj=function(r,n,a,i,s,l){t.prototype._applyStateObj.call(this,r,n,a,i,s,l);var u=!(n&&i),c;if(n&&n.style?s?i?c=n.style:(c=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(c,n.style)):u&&(c=a.style),c)if(s){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var d=Oe(f),h=0;h<d.length;h++){var v=d[h];v in c&&(c[v]=c[v],this.style[v]=f[v])}for(var p=Oe(c),h=0;h<p.length;h++){var v=p[h];this.style[v]=this.style[v]}this._transitionState(r,{style:c},l,this.getAnimationStyleProps())}else this.useStyle(c);for(var g=this.__inHover?GT:xh,h=0;h<g.length;h++){var v=g[h];n&&n[v]!=null?this[v]=n[v]:u&&a[v]!=null&&(this[v]=a[v])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var s=r[i];s.style&&(a=a||{},this._mergeStyle(a,s.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(r,n){return W(r,n),r},e.prototype.getAnimationStyleProps=function(){return tl},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Vt|yi}(),e}(Zs),tu=new Ce(0,0,0,0),ru=new Ce(0,0,0,0);function WT(t,e,r){return tu.copy(t.getBoundingRect()),t.transform&&tu.applyTransform(t.transform),ru.width=e,ru.height=r,!tu.intersect(ru)}var Yt=Math.min,Xt=Math.max,nu=Math.sin,au=Math.cos,xn=Math.PI*2,bo=Ga(),_o=Ga(),wo=Ga();function Ch(t,e,r,n,a,i){a[0]=Yt(t,r),a[1]=Yt(e,n),i[0]=Xt(t,r),i[1]=Xt(e,n)}var kh=[],Th=[];function UT(t,e,r,n,a,i,s,l,u,c){var f=ag,d=lt,h=f(t,r,a,s,kh);u[0]=1/0,u[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var v=0;v<h;v++){var p=d(t,r,a,s,kh[v]);u[0]=Yt(p,u[0]),c[0]=Xt(p,c[0])}h=f(e,n,i,l,Th);for(var v=0;v<h;v++){var g=d(e,n,i,l,Th[v]);u[1]=Yt(g,u[1]),c[1]=Xt(g,c[1])}u[0]=Yt(t,u[0]),c[0]=Xt(t,c[0]),u[0]=Yt(s,u[0]),c[0]=Xt(s,c[0]),u[1]=Yt(e,u[1]),c[1]=Xt(e,c[1]),u[1]=Yt(l,u[1]),c[1]=Xt(l,c[1])}function YT(t,e,r,n,a,i,s,l){var u=ig,c=Tt,f=Xt(Yt(u(t,r,a),1),0),d=Xt(Yt(u(e,n,i),1),0),h=c(t,r,a,f),v=c(e,n,i,d);s[0]=Yt(t,a,h),s[1]=Yt(e,i,v),l[0]=Xt(t,a,h),l[1]=Xt(e,i,v)}function XT(t,e,r,n,a,i,s,l,u){var c=ba,f=_a,d=Math.abs(a-i);if(d%xn<1e-4&&d>1e-4){l[0]=t-r,l[1]=e-n,u[0]=t+r,u[1]=e+n;return}if(bo[0]=au(a)*r+t,bo[1]=nu(a)*n+e,_o[0]=au(i)*r+t,_o[1]=nu(i)*n+e,c(l,bo,_o),f(u,bo,_o),a=a%xn,a<0&&(a=a+xn),i=i%xn,i<0&&(i=i+xn),a>i&&!s?i+=xn:a<i&&s&&(a+=xn),s){var h=i;i=a,a=h}for(var v=0;v<i;v+=Math.PI/2)v>a&&(wo[0]=au(v)*r+t,wo[1]=nu(v)*n+e,c(l,wo,l),f(u,wo,u))}var Se={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Cn=[],kn=[],cr=[],Hr=[],fr=[],dr=[],iu=Math.min,ou=Math.max,Tn=Math.cos,Dn=Math.sin,Dr=Math.abs,Ac=Math.PI,Kr=Ac*2,su=typeof Float32Array<"u",ti=[];function lu(t){var e=Math.round(t/Ac*1e8)/1e8;return e%2*Ac}function Mg(t,e){var r=lu(t[0]);r<0&&(r+=Kr);var n=r-t[0],a=t[1];a+=n,!e&&a-r>=Kr?a=r+Kr:e&&r-a>=Kr?a=r-Kr:!e&&r>a?a=r+(Kr-lu(r-a)):e&&r<a&&(a=r-(Kr-lu(a-r))),t[0]=r,t[1]=a}var Kn=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Dr(n/_s/e)||0,this._uy=Dr(n/_s/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Se.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Dr(e-this._xi),a=Dr(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Se.L,e,r),this._ctx&&i&&this._ctx.lineTo(e,r),i)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var s=n*n+a*a;s>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=s)}return this},t.prototype.bezierCurveTo=function(e,r,n,a,i,s){return this._drawPendingPt(),this.addData(Se.C,e,r,n,a,i,s),this._ctx&&this._ctx.bezierCurveTo(e,r,n,a,i,s),this._xi=i,this._yi=s,this},t.prototype.quadraticCurveTo=function(e,r,n,a){return this._drawPendingPt(),this.addData(Se.Q,e,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,a),this._xi=n,this._yi=a,this},t.prototype.arc=function(e,r,n,a,i,s){this._drawPendingPt(),ti[0]=a,ti[1]=i,Mg(ti,s),a=ti[0],i=ti[1];var l=i-a;return this.addData(Se.A,e,r,n,n,a,l,0,s?0:1),this._ctx&&this._ctx.arc(e,r,n,a,i,s),this._xi=Tn(i)*n+e,this._yi=Dn(i)*n+r,this},t.prototype.arcTo=function(e,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,a,i),this},t.prototype.rect=function(e,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,a),this.addData(Se.R,e,r,n,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Se.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&su&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var r=e.length,n=0,a=this._len,i=0;i<r;i++)n+=e[i].len();su&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<r;i++)for(var s=e[i].data,l=0;l<s.length;l++)this.data[a++]=s[l];this._len=a},t.prototype.addData=function(e,r,n,a,i,s,l,u,c){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var d=0;d<arguments.length;d++)f[this._len++]=arguments[d]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,su&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){cr[0]=cr[1]=fr[0]=fr[1]=Number.MAX_VALUE,Hr[0]=Hr[1]=dr[0]=dr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,a=0,i=0,s;for(s=0;s<this._len;){var l=e[s++],u=s===1;switch(u&&(r=e[s],n=e[s+1],a=r,i=n),l){case Se.M:r=a=e[s++],n=i=e[s++],fr[0]=a,fr[1]=i,dr[0]=a,dr[1]=i;break;case Se.L:Ch(r,n,e[s],e[s+1],fr,dr),r=e[s++],n=e[s++];break;case Se.C:UT(r,n,e[s++],e[s++],e[s++],e[s++],e[s],e[s+1],fr,dr),r=e[s++],n=e[s++];break;case Se.Q:YT(r,n,e[s++],e[s++],e[s],e[s+1],fr,dr),r=e[s++],n=e[s++];break;case Se.A:var c=e[s++],f=e[s++],d=e[s++],h=e[s++],v=e[s++],p=e[s++]+v;s+=1;var g=!e[s++];u&&(a=Tn(v)*d+c,i=Dn(v)*h+f),XT(c,f,d,h,v,p,g,fr,dr),r=Tn(p)*d+c,n=Dn(p)*h+f;break;case Se.R:a=r=e[s++],i=n=e[s++];var m=e[s++],y=e[s++];Ch(a,i,a+m,i+y,fr,dr);break;case Se.Z:r=a,n=i;break}ba(cr,cr,fr),_a(Hr,Hr,dr)}return s===0&&(cr[0]=cr[1]=Hr[0]=Hr[1]=0),new Ce(cr[0],cr[1],Hr[0]-cr[0],Hr[1]-cr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,a=this._uy,i=0,s=0,l=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,f=0,d=0,h=0;h<r;){var v=e[h++],p=h===1;p&&(i=e[h],s=e[h+1],l=i,u=s);var g=-1;switch(v){case Se.M:i=l=e[h++],s=u=e[h++];break;case Se.L:{var m=e[h++],y=e[h++],b=m-i,_=y-s;(Dr(b)>n||Dr(_)>a||h===r-1)&&(g=Math.sqrt(b*b+_*_),i=m,s=y);break}case Se.C:{var w=e[h++],S=e[h++],m=e[h++],y=e[h++],x=e[h++],C=e[h++];g=g2(i,s,w,S,m,y,x,C,10),i=x,s=C;break}case Se.Q:{var w=e[h++],S=e[h++],m=e[h++],y=e[h++];g=_2(i,s,w,S,m,y,10),i=m,s=y;break}case Se.A:var k=e[h++],D=e[h++],E=e[h++],T=e[h++],M=e[h++],A=e[h++],P=A+M;h+=1,p&&(l=Tn(M)*E+k,u=Dn(M)*T+D),g=ou(E,T)*iu(Kr,Math.abs(A)),i=Tn(P)*E+k,s=Dn(P)*T+D;break;case Se.R:{l=i=e[h++],u=s=e[h++];var V=e[h++],B=e[h++];g=V*2+B*2;break}case Se.Z:{var b=l-i,_=u-s;g=Math.sqrt(b*b+_*_),i=l,s=u;break}}g>=0&&(c[d++]=g,f+=g)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,a=this._ux,i=this._uy,s=this._len,l,u,c,f,d,h,v=r<1,p,g,m=0,y=0,b,_=0,w,S;if(!(v&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=r*g,!b)))e:for(var x=0;x<s;){var C=n[x++],k=x===1;switch(k&&(c=n[x],f=n[x+1],l=c,u=f),C!==Se.L&&_>0&&(e.lineTo(w,S),_=0),C){case Se.M:l=c=n[x++],u=f=n[x++],e.moveTo(c,f);break;case Se.L:{d=n[x++],h=n[x++];var D=Dr(d-c),E=Dr(h-f);if(D>a||E>i){if(v){var T=p[y++];if(m+T>b){var M=(b-m)/T;e.lineTo(c*(1-M)+d*M,f*(1-M)+h*M);break e}m+=T}e.lineTo(d,h),c=d,f=h,_=0}else{var A=D*D+E*E;A>_&&(w=d,S=h,_=A)}break}case Se.C:{var P=n[x++],V=n[x++],B=n[x++],z=n[x++],N=n[x++],R=n[x++];if(v){var T=p[y++];if(m+T>b){var M=(b-m)/T;gs(c,P,B,N,M,Cn),gs(f,V,z,R,M,kn),e.bezierCurveTo(Cn[1],kn[1],Cn[2],kn[2],Cn[3],kn[3]);break e}m+=T}e.bezierCurveTo(P,V,B,z,N,R),c=N,f=R;break}case Se.Q:{var P=n[x++],V=n[x++],B=n[x++],z=n[x++];if(v){var T=p[y++];if(m+T>b){var M=(b-m)/T;ys(c,P,B,M,Cn),ys(f,V,z,M,kn),e.quadraticCurveTo(Cn[1],kn[1],Cn[2],kn[2]);break e}m+=T}e.quadraticCurveTo(P,V,B,z),c=B,f=z;break}case Se.A:var I=n[x++],G=n[x++],F=n[x++],J=n[x++],le=n[x++],X=n[x++],Y=n[x++],be=!n[x++],de=F>J?F:J,De=Dr(F-J)>.001,Ee=le+X,K=!1;if(v){var T=p[y++];m+T>b&&(Ee=le+X*(b-m)/T,K=!0),m+=T}if(De&&e.ellipse?e.ellipse(I,G,F,J,Y,le,Ee,be):e.arc(I,G,de,le,Ee,be),K)break e;k&&(l=Tn(le)*F+I,u=Dn(le)*J+G),c=Tn(Ee)*F+I,f=Dn(Ee)*J+G;break;case Se.R:l=c=n[x],u=f=n[x+1],d=n[x++],h=n[x++];var ae=n[x++],nt=n[x++];if(v){var T=p[y++];if(m+T>b){var Ie=b-m;e.moveTo(d,h),e.lineTo(d+iu(Ie,ae),h),Ie-=ae,Ie>0&&e.lineTo(d+ae,h+iu(Ie,nt)),Ie-=nt,Ie>0&&e.lineTo(d+ou(ae-Ie,0),h+nt),Ie-=ae,Ie>0&&e.lineTo(d,h+ou(nt-Ie,0));break e}m+=T}e.rect(d,h,ae,nt);break;case Se.Z:if(v){var T=p[y++];if(m+T>b){var M=(b-m)/T;e.lineTo(c*(1-M)+l*M,f*(1-M)+u*M);break e}m+=T}e.closePath(),c=l,f=u}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=Se,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function ia(t,e,r,n,a,i,s){if(a===0)return!1;var l=a,u=0,c=t;if(s>e+l&&s>n+l||s<e-l&&s<n-l||i>t+l&&i>r+l||i<t-l&&i<r-l)return!1;if(t!==r)u=(e-n)/(t-r),c=(t*n-r*e)/(t-r);else return Math.abs(i-t)<=l/2;var f=u*i-s+c,d=f*f/(u*u+1);return d<=l/2*l/2}function qT(t,e,r,n,a,i,s,l,u,c,f){if(u===0)return!1;var d=u;if(f>e+d&&f>n+d&&f>i+d&&f>l+d||f<e-d&&f<n-d&&f<i-d&&f<l-d||c>t+d&&c>r+d&&c>a+d&&c>s+d||c<t-d&&c<r-d&&c<a-d&&c<s-d)return!1;var h=m2(t,e,r,n,a,i,s,l,c,f);return h<=d/2}function jT(t,e,r,n,a,i,s,l,u){if(s===0)return!1;var c=s;if(u>e+c&&u>n+c&&u>i+c||u<e-c&&u<n-c&&u<i-c||l>t+c&&l>r+c&&l>a+c||l<t-c&&l<r-c&&l<a-c)return!1;var f=b2(t,e,r,n,a,i,l,u);return f<=c/2}var Dh=Math.PI*2;function So(t){return t%=Dh,t<0&&(t+=Dh),t}var ri=Math.PI*2;function ZT(t,e,r,n,a,i,s,l,u){if(s===0)return!1;var c=s;l-=t,u-=e;var f=Math.sqrt(l*l+u*u);if(f-c>r||f+c<r)return!1;if(Math.abs(n-a)%ri<1e-4)return!0;if(i){var d=n;n=So(a),a=So(d)}else n=So(n),a=So(a);n>a&&(a+=ri);var h=Math.atan2(u,l);return h<0&&(h+=ri),h>=n&&h<=a||h+ri>=n&&h+ri<=a}function En(t,e,r,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var s=(i-e)/(n-e),l=n<e?1:-1;(s===1||s===0)&&(l=n<e?.5:-.5);var u=s*(r-t)+t;return u===a?1/0:u>a?l:0}var Gr=Kn.CMD,Mn=Math.PI*2,KT=1e-4;function QT(t,e){return Math.abs(t-e)<KT}var yt=[-1,-1,-1],Wt=[-1,-1];function JT(){var t=Wt[0];Wt[0]=Wt[1],Wt[1]=t}function eD(t,e,r,n,a,i,s,l,u,c){if(c>e&&c>n&&c>i&&c>l||c<e&&c<n&&c<i&&c<l)return 0;var f=ms(e,n,i,l,c,yt);if(f===0)return 0;for(var d=0,h=-1,v=void 0,p=void 0,g=0;g<f;g++){var m=yt[g],y=m===0||m===1?.5:1,b=lt(t,r,a,s,m);b<u||(h<0&&(h=ag(e,n,i,l,Wt),Wt[1]<Wt[0]&&h>1&&JT(),v=lt(e,n,i,l,Wt[0]),h>1&&(p=lt(e,n,i,l,Wt[1]))),h===2?m<Wt[0]?d+=v<e?y:-y:m<Wt[1]?d+=p<v?y:-y:d+=l<p?y:-y:m<Wt[0]?d+=v<e?y:-y:d+=l<v?y:-y)}return d}function tD(t,e,r,n,a,i,s,l){if(l>e&&l>n&&l>i||l<e&&l<n&&l<i)return 0;var u=y2(e,n,i,l,yt);if(u===0)return 0;var c=ig(e,n,i);if(c>=0&&c<=1){for(var f=0,d=Tt(e,n,i,c),h=0;h<u;h++){var v=yt[h]===0||yt[h]===1?.5:1,p=Tt(t,r,a,yt[h]);p<s||(yt[h]<c?f+=d<e?v:-v:f+=i<d?v:-v)}return f}else{var v=yt[0]===0||yt[0]===1?.5:1,p=Tt(t,r,a,yt[0]);return p<s?0:i<e?v:-v}}function rD(t,e,r,n,a,i,s,l){if(l-=e,l>r||l<-r)return 0;var u=Math.sqrt(r*r-l*l);yt[0]=-u,yt[1]=u;var c=Math.abs(n-a);if(c<1e-4)return 0;if(c>=Mn-1e-4){n=0,a=Mn;var f=i?1:-1;return s>=yt[0]+t&&s<=yt[1]+t?f:0}if(n>a){var d=n;n=a,a=d}n<0&&(n+=Mn,a+=Mn);for(var h=0,v=0;v<2;v++){var p=yt[v];if(p+t>s){var g=Math.atan2(l,p),f=i?1:-1;g<0&&(g=Mn+g),(g>=n&&g<=a||g+Mn>=n&&g+Mn<=a)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),h+=f)}}return h}function Ag(t,e,r,n,a){for(var i=t.data,s=t.len(),l=0,u=0,c=0,f=0,d=0,h,v,p=0;p<s;){var g=i[p++],m=p===1;switch(g===Gr.M&&p>1&&(r||(l+=En(u,c,f,d,n,a))),m&&(u=i[p],c=i[p+1],f=u,d=c),g){case Gr.M:f=i[p++],d=i[p++],u=f,c=d;break;case Gr.L:if(r){if(ia(u,c,i[p],i[p+1],e,n,a))return!0}else l+=En(u,c,i[p],i[p+1],n,a)||0;u=i[p++],c=i[p++];break;case Gr.C:if(r){if(qT(u,c,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,n,a))return!0}else l+=eD(u,c,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],n,a)||0;u=i[p++],c=i[p++];break;case Gr.Q:if(r){if(jT(u,c,i[p++],i[p++],i[p],i[p+1],e,n,a))return!0}else l+=tD(u,c,i[p++],i[p++],i[p],i[p+1],n,a)||0;u=i[p++],c=i[p++];break;case Gr.A:var y=i[p++],b=i[p++],_=i[p++],w=i[p++],S=i[p++],x=i[p++];p+=1;var C=!!(1-i[p++]);h=Math.cos(S)*_+y,v=Math.sin(S)*w+b,m?(f=h,d=v):l+=En(u,c,h,v,n,a);var k=(n-y)*w/_+y;if(r){if(ZT(y,b,w,S,S+x,C,e,k,a))return!0}else l+=rD(y,b,w,S,S+x,C,k,a);u=Math.cos(S+x)*_+y,c=Math.sin(S+x)*w+b;break;case Gr.R:f=u=i[p++],d=c=i[p++];var D=i[p++],E=i[p++];if(h=f+D,v=d+E,r){if(ia(f,d,h,d,e,n,a)||ia(h,d,h,v,e,n,a)||ia(h,v,f,v,e,n,a)||ia(f,v,f,d,e,n,a))return!0}else l+=En(h,d,h,v,n,a),l+=En(f,v,f,d,n,a);break;case Gr.Z:if(r){if(ia(u,c,f,d,e,n,a))return!0}else l+=En(u,c,f,d,n,a);u=f,c=d;break}}return!r&&!QT(c,d)&&(l+=En(u,c,f,d,n,a)||0),l!==0}function nD(t,e,r){return Ag(t,0,!1,e,r)}function aD(t,e,r,n){return Ag(t,e,!0,r,n)}var Ng=ke({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Wn),iD={style:ke({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},tl.style)},uu=Hi.concat(["invisible","culling","z","z2","zlevel","parent"]),Te=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(u){r.buildPath(u,r.shape)}),a.silent=!0;var i=a.style;for(var s in n)i[s]!==n[s]&&(i[s]=n[s]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var l=0;l<uu.length;++l)a[uu[l]]=this[uu[l]];a.__dirty|=Vt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Oe(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var s=n[i],l=r[s];s==="style"?this.style?W(this.style,l):this.useStyle(l):s==="shape"?W(this.shape,l):t.prototype.attrKV.call(this,s,l)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Z(r)){var n=bs(r,0);return n>.5?xc:n>.2?$2:Cc}else if(r)return Cc}return xc},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Z(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),s=bs(r,0)<Sc;if(i===s)return n}},e.prototype.buildPath=function(r,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~ga},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Kn(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var s=this.path;(i||this.__dirty&ga)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),r=s.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){l.copy(r);var u=n.strokeNoScale?this.getLineScale():1,c=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;c=Math.max(c,f??4)}u>1e-10&&(l.width+=c/u,l.height+=c/u,l.x-=c/u/2,l.y-=c/u/2)}return l}return r},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),s=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var l=this.path;if(this.hasStroke()){var u=s.lineWidth,c=s.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),aD(l,u/c,r,n)))return!0}if(this.hasFill())return nD(l,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=ga,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:W(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&ga)},e.prototype.createStyle=function(r){return qs(Ng,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=W({},this.shape))},e.prototype._applyStateObj=function(r,n,a,i,s,l){t.prototype._applyStateObj.call(this,r,n,a,i,s,l);var u=!(n&&i),c;if(n&&n.shape?s?i?c=n.shape:(c=W({},a.shape),W(c,n.shape)):(c=W({},i?this.shape:a.shape),W(c,n.shape)):u&&(c=a.shape),c)if(s){this.shape=W({},this.shape);for(var f={},d=Oe(c),h=0;h<d.length;h++){var v=d[h];typeof c[v]=="object"?this.shape[v]=c[v]:f[v]=c[v]}this._transitionState(r,{shape:f},l)}else this.shape=c,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var s=r[i];s.shape&&(a=a||{},this._mergeStyle(a,s.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return iD},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(i){Ae(s,i);function s(l){var u=i.call(this,l)||this;return r.init&&r.init.call(u,l),u}return s.prototype.getDefaultStyle=function(){return ge(r.style)},s.prototype.getDefaultShape=function(){return ge(r.shape)},s}(e);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Vt|yi|ga}(),e}(no),oD=ke({strokeFirst:!0,font:Xn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ng),ks=function(t){Ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return qs(oD,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=Ef(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(no);ks.prototype.type="tspan";var sD=ke({x:0,y:0},Wn),lD={style:ke({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},tl.style)};function uD(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var hn=function(t){Ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return qs(sD,r)},e.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=uD(n.image)?n.image:this.__image;if(!i)return 0;var s=r==="width"?"height":"width",l=n[s];return l==null?i[r]:i[r]/i[s]*l},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return lD},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ce(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(no);hn.prototype.type="image";function cD(t,e){var r=e.x,n=e.y,a=e.width,i=e.height,s=e.r,l,u,c,f;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof s=="number"?l=u=c=f=s:s instanceof Array?s.length===1?l=u=c=f=s[0]:s.length===2?(l=c=s[0],u=f=s[1]):s.length===3?(l=s[0],u=f=s[1],c=s[2]):(l=s[0],u=s[1],c=s[2],f=s[3]):l=u=c=f=0;var d;l+u>a&&(d=l+u,l*=a/d,u*=a/d),c+f>a&&(d=c+f,c*=a/d,f*=a/d),u+c>i&&(d=u+c,u*=i/d,c*=i/d),l+f>i&&(d=l+f,l*=i/d,f*=i/d),t.moveTo(r+l,n),t.lineTo(r+a-u,n),u!==0&&t.arc(r+a-u,n+u,u,-Math.PI/2,0),t.lineTo(r+a,n+i-c),c!==0&&t.arc(r+a-c,n+i-c,c,0,Math.PI/2),t.lineTo(r+f,n+i),f!==0&&t.arc(r+f,n+i-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+l),l!==0&&t.arc(r+l,n+l,l,Math.PI,Math.PI*1.5)}var Sa=Math.round;function Bg(t,e,r){if(e){var n=e.x1,a=e.x2,i=e.y1,s=e.y2;t.x1=n,t.x2=a,t.y1=i,t.y2=s;var l=r&&r.lineWidth;return l&&(Sa(n*2)===Sa(a*2)&&(t.x1=t.x2=On(n,l,!0)),Sa(i*2)===Sa(s*2)&&(t.y1=t.y2=On(i,l,!0))),t}}function Vg(t,e,r){if(e){var n=e.x,a=e.y,i=e.width,s=e.height;t.x=n,t.y=a,t.width=i,t.height=s;var l=r&&r.lineWidth;return l&&(t.x=On(n,l,!0),t.y=On(a,l,!0),t.width=Math.max(On(n+i,l,!1)-t.x,i===0?0:1),t.height=Math.max(On(a+s,l,!1)-t.y,s===0?0:1)),t}}function On(t,e,r){if(!e)return t;var n=Sa(t*2);return(n+Sa(e))%2===0?n/2:(n+(r?1:-1))/2}var fD=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),dD={},qe=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new fD},e.prototype.buildPath=function(r,n){var a,i,s,l;if(this.subPixelOptimize){var u=Vg(dD,n,this.style);a=u.x,i=u.y,s=u.width,l=u.height,u.r=n.r,n=u}else a=n.x,i=n.y,s=n.width,l=n.height;n.r?cD(r,n):r.rect(a,i,s,l)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Te);qe.prototype.type="rect";var Eh={fill:"#000"},Mh=2,hD={style:ke({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},tl.style)},ct=function(t){Ae(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Eh,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,yD(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Ce(0,0,0,0),n=this._children,a=[],i=null,s=0;s<n.length;s++){var l=n[s],u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(r.copy(u),r.applyTransform(c),i=i||r.clone(),i.union(r)):(i=i||u.clone(),i.union(u))}this._rect=i||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Eh},e.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return W(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},e.prototype._mergeRich=function(r,n){for(var a=Oe(n),i=0;i<a.length;i++){var s=a[i];r[s]=r[s]||{},W(r[s],n[s])}},e.prototype.getAnimationStyleProps=function(){return hD},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Xn,a=r.padding,i=Ph(r),s=PT(i,r),l=cu(r),u=!!r.backgroundColor,c=s.outerHeight,f=s.outerWidth,d=s.contentWidth,h=s.lines,v=s.lineHeight,p=this._defaultStyle;this.isTruncated=!!s.isTruncated;var g=r.x||0,m=r.y||0,y=r.align||p.align||"left",b=r.verticalAlign||p.verticalAlign||"top",_=g,w=ya(m,s.contentHeight,b);if(l||a){var S=_i(g,f,y),x=ya(m,c,b);l&&this._renderBackground(r,r,S,x,f,c)}w+=v/2,a&&(_=Lh(g,y,a),b==="top"?w+=a[0]:b==="bottom"&&(w-=a[2]));for(var C=0,k=!1,D=Ih("fill"in r?r.fill:(k=!0,p.fill)),E=Vh("stroke"in r?r.stroke:!u&&(!p.autoStroke||k)?(C=Mh,p.stroke):null),T=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=s.calculatedLineHeight,P=0;P<h.length;P++){var V=this._getOrCreateChild(ks),B=V.createStyle();V.useStyle(B),B.text=h[P],B.x=_,B.y=w,B.textAlign=y,B.textBaseline="middle",B.opacity=r.opacity,B.strokeFirst=!0,T&&(B.shadowBlur=r.textShadowBlur||0,B.shadowColor=r.textShadowColor||"transparent",B.shadowOffsetX=r.textShadowOffsetX||0,B.shadowOffsetY=r.textShadowOffsetY||0),B.stroke=E,B.fill=D,E&&(B.lineWidth=r.lineWidth||C,B.lineDash=r.lineDash,B.lineDashOffset=r.lineDashOffset||0),B.font=n,Nh(B,r),w+=v,M&&V.setBoundingRect(new Ce(_i(B.x,d,B.textAlign),ya(B.y,A,B.textBaseline),d,A))}},e.prototype._updateRichTexts=function(){var r=this.style,n=Ph(r),a=OT(n,r),i=a.width,s=a.outerWidth,l=a.outerHeight,u=r.padding,c=r.x||0,f=r.y||0,d=this._defaultStyle,h=r.align||d.align,v=r.verticalAlign||d.verticalAlign;this.isTruncated=!!a.isTruncated;var p=_i(c,s,h),g=ya(f,l,v),m=p,y=g;u&&(m+=u[3],y+=u[0]);var b=m+i;cu(r)&&this._renderBackground(r,r,p,g,s,l);for(var _=!!r.backgroundColor,w=0;w<a.lines.length;w++){for(var S=a.lines[w],x=S.tokens,C=x.length,k=S.lineHeight,D=S.width,E=0,T=m,M=b,A=C-1,P=void 0;E<C&&(P=x[E],!P.align||P.align==="left");)this._placeToken(P,r,k,y,T,"left",_),D-=P.width,T+=P.width,E++;for(;A>=0&&(P=x[A],P.align==="right");)this._placeToken(P,r,k,y,M,"right",_),D-=P.width,M-=P.width,A--;for(T+=(i-(T-m)-(b-M)-D)/2;E<=A;)P=x[E],this._placeToken(P,r,k,y,T+P.width/2,"center",_),T+=P.width,E++;y+=k}},e.prototype._placeToken=function(r,n,a,i,s,l,u){var c=n.rich[r.styleName]||{};c.text=r.text;var f=r.verticalAlign,d=i+a/2;f==="top"?d=i+r.height/2:f==="bottom"&&(d=i+a-r.height/2);var h=!r.isLineHolder&&cu(c);h&&this._renderBackground(c,n,l==="right"?s-r.width:l==="center"?s-r.width/2:s,d-r.height/2,r.width,r.height);var v=!!c.backgroundColor,p=r.textPadding;p&&(s=Lh(s,l,p),d-=r.height/2-p[0]-r.innerHeight/2);var g=this._getOrCreateChild(ks),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,w=Ih("fill"in c?c.fill:"fill"in n?n.fill:(b=!0,y.fill)),S=Vh("stroke"in c?c.stroke:"stroke"in n?n.stroke:!v&&!u&&(!y.autoStroke||b)?(_=Mh,y.stroke):null),x=c.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=s,m.y=d,x&&(m.shadowBlur=c.textShadowBlur||n.textShadowBlur||0,m.shadowColor=c.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=c.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=c.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=l,m.textBaseline="middle",m.font=r.font||Xn,m.opacity=Gn(c.opacity,n.opacity,1),Nh(m,c),S&&(m.lineWidth=Gn(c.lineWidth,n.lineWidth,_),m.lineDash=fe(c.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=S),w&&(m.fill=w);var C=r.contentWidth,k=r.contentHeight;g.setBoundingRect(new Ce(_i(m.x,C,m.textAlign),ya(m.y,k,m.textBaseline),C,k))},e.prototype._renderBackground=function(r,n,a,i,s,l){var u=r.backgroundColor,c=r.borderWidth,f=r.borderColor,d=u&&u.image,h=u&&!d,v=r.borderRadius,p=this,g,m;if(h||r.lineHeight||c&&f){g=this._getOrCreateChild(qe),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=s,y.height=l,y.r=v,g.dirtyShape()}if(h){var b=g.style;b.fill=u||null,b.fillOpacity=fe(r.fillOpacity,1)}else if(d){m=this._getOrCreateChild(hn),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=u.image,_.x=a,_.y=i,_.width=s,_.height=l}if(c&&f){var b=g.style;b.lineWidth=c,b.stroke=f,b.strokeOpacity=fe(r.strokeOpacity,1),b.lineDash=r.borderDash,b.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var w=(g||m).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=Gn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return gD(r)&&(n=[r.fontStyle,r.fontWeight,mD(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&yr(n)||r.textFont||r.font},e}(no),vD={left:!0,right:1,center:1},pD={top:1,bottom:1,middle:1},Ah=["fontStyle","fontWeight","fontSize","fontFamily"];function mD(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?yf+"px":t+"px"}function Nh(t,e){for(var r=0;r<Ah.length;r++){var n=Ah[r],a=e[n];a!=null&&(t[n]=a)}}function gD(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function yD(t){return Bh(t),L(t.rich,Bh),t}function Bh(t){if(t){t.font=ct.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||vD[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||pD[r]?r:"top";var n=t.padding;n&&(t.padding=Ym(t.padding))}}function Vh(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Ih(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Lh(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Ph(t){var e=t.text;return e!=null&&(e+=""),e}function cu(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var ye=Ue(),bD=function(t,e,r,n){if(n){var a=ye(n);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var s=ye(i);s.seriesIndex=t,s.dataIndex=r,s.dataType=e,s.ssrType="chart"})}},zh=1,Rh={},Ig=Ue(),Vf=Ue(),If=0,rl=1,nl=2,Qt=["emphasis","blur","select"],Ts=["normal","emphasis","blur","select"],_D=10,wD=9,Un="highlight",as="downplay",Ni="select",is="unselect",Bi="toggleSelect";function oa(t){return t!=null&&t!=="none"}function al(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Lg(t){al(t,"emphasis",nl)}function Pg(t){t.hoverState===nl&&al(t,"normal",If)}function Lf(t){al(t,"blur",rl)}function zg(t){t.hoverState===rl&&al(t,"normal",If)}function SD(t){t.selected=!0}function xD(t){t.selected=!1}function Oh(t,e,r){e(t,r)}function Rr(t,e,r){Oh(t,e,r),t.isGroup&&t.traverse(function(n){Oh(n,e,r)})}function $h(t,e){switch(e){case"emphasis":t.hoverState=nl;break;case"normal":t.hoverState=If;break;case"blur":t.hoverState=rl;break;case"select":t.selected=!0}}function CD(t,e,r,n){for(var a=t.style,i={},s=0;s<e.length;s++){var l=e[s],u=a[l];i[l]=u??(n&&n[l])}for(var s=0;s<t.animators.length;s++){var c=t.animators[s];c.__fromStateTransition&&c.__fromStateTransition.indexOf(r)<0&&c.targetName==="style"&&c.saveTo(i,e)}return i}function kD(t,e,r,n){var a=r&&Me(r,"select")>=0,i=!1;if(t instanceof Te){var s=Ig(t),l=a&&s.selectFill||s.normalFill,u=a&&s.selectStroke||s.normalStroke;if(oa(l)||oa(u)){n=n||{};var c=n.style||{};c.fill==="inherit"?(i=!0,n=W({},n),c=W({},c),c.fill=l):!oa(c.fill)&&oa(l)?(i=!0,n=W({},n),c=W({},c),c.fill=rh(l)):!oa(c.stroke)&&oa(u)&&(i||(n=W({},n),c=W({},c)),c.stroke=rh(u)),n.style=c}}if(n&&n.z2==null){i||(n=W({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??_D)}return n}function TD(t,e,r){if(r&&r.z2==null){r=W({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??wD)}return r}function DD(t,e,r){var n=Me(t.currentStates,e)>=0,a=t.style.opacity,i=n?null:CD(t,["opacity"],e,{opacity:1});r=r||{};var s=r.style||{};return s.opacity==null&&(r=W({},r),s=W({opacity:n?a:i.opacity*.1},s),r.style=s),r}function fu(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return kD(this,t,e,r);if(t==="blur")return DD(this,t,r);if(t==="select")return TD(this,t,r)}return r}function ED(t){t.stateProxy=fu;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=fu),r&&(r.stateProxy=fu)}function Fh(t,e){!Fg(t,e)&&!t.__highByOuter&&Rr(t,Lg)}function Hh(t,e){!Fg(t,e)&&!t.__highByOuter&&Rr(t,Pg)}function Ds(t,e){t.__highByOuter|=1<<(e||0),Rr(t,Lg)}function Es(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Rr(t,Pg)}function MD(t){Rr(t,Lf)}function Rg(t){Rr(t,zg)}function Og(t){Rr(t,SD)}function $g(t){Rr(t,xD)}function Fg(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Hg(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,i){var s=Vf(i),l=a==="series",u=l?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!l&&n.push(u),s.isBlured&&(u.group.traverse(function(c){zg(c)}),l&&r.push(i)),s.isBlured=!1}),L(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function Nc(t,e,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(c,f){for(var d=0;d<f.length;d++){var h=c.getItemGraphicEl(f[d]);h&&Rg(h)}}if(t!=null&&!(!e||e==="none")){var s=a.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];a.eachSeries(function(c){var f=s===c,d=c.coordinateSystem;d&&d.master&&(d=d.master);var h=d&&l?d===l:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||e==="series"&&f)){var v=n.getViewOfSeriesModel(c);if(v.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||Lf(m)}),At(e))i(c.getData(),e);else if(re(e))for(var p=Oe(e),g=0;g<p.length;g++)i(c.getData(p[g]),e[p[g]]);u.push(c),Vf(c).isBlured=!0}}),a.eachComponent(function(c,f){if(c!=="series"){var d=n.getViewOfComponentModel(f);d&&d.toggleBlurSeries&&d.toggleBlurSeries(u,!0,a)}})}}function Bc(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Vf(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Lf(i)})}}}function AD(t,e,r){var n=t.seriesIndex,a=t.getData(e.dataType);if(!a){process.env.NODE_ENV!=="production"&&mt("Unknown dataType "+e.dataType);return}var i=Zn(a,e);i=(j(i)?i[0]:i)||0;var s=a.getItemGraphicEl(i);if(!s)for(var l=a.count(),u=0;!s&&u<l;)s=a.getItemGraphicEl(u++);if(s){var c=ye(s);Nc(n,c.focus,c.blurScope,r)}else{var f=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);f!=null&&Nc(n,f,d,r)}}function Pf(t,e,r,n){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return a;var i=n.getModel().getComponent(t,e);if(!i)return a;var s=n.getViewOfComponentModel(i);if(!s||!s.findHighDownDispatchers)return a;for(var l=s.findHighDownDispatchers(r),u,c=0;c<l.length;c++)if(process.env.NODE_ENV!=="production"&&!Ia(l[c])&&mt("param should be highDownDispatcher"),ye(l[c]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:l}}function ND(t,e,r){process.env.NODE_ENV!=="production"&&!Ia(t)&&mt("param should be highDownDispatcher");var n=ye(t),a=Pf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,s=a.focusSelf;i?(s&&Bc(n.componentMainType,n.componentIndex,r),L(i,function(l){return Fh(l,e)})):(Nc(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Bc(n.componentMainType,n.componentIndex,r),Fh(t,e))}function BD(t,e,r){process.env.NODE_ENV!=="production"&&!Ia(t)&&mt("param should be highDownDispatcher"),Hg(r);var n=ye(t),a=Pf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?L(a,function(i){return Hh(i,e)}):Hh(t,e)}function VD(t,e,r){if(Ic(e)){var n=e.dataType,a=t.getData(n),i=Zn(a,e);j(i)||(i=[i]),t[e.type===Bi?"toggleSelect":e.type===Ni?"select":"unselect"](i,n)}}function Gh(t){var e=t.getAllData();L(e,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,s){t.isSelected(s,a)?Og(i):$g(i)})})}function ID(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();L(n,function(a){a.data;var i=a.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};i!=null&&(l.dataType=i),e.push(l)}})}),e}function Vc(t,e,r){Gg(t,!0),Rr(t,ED),PD(t,e,r)}function LD(t){Gg(t,!1)}function Wi(t,e,r,n){n?LD(t):Vc(t,e,r)}function PD(t,e,r){var n=ye(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Wh=["emphasis","blur","select"],zD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ms(t,e,r,n){r=r||"itemStyle";for(var a=0;a<Wh.length;a++){var i=Wh[a],s=e.getModel([i,r]),l=t.ensureState(i);l.style=s[zD[r]]()}}function Gg(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Ia(t){return!!(t&&t.__highDownDispatcher)}function RD(t){var e=Rh[t];return e==null&&zh<=32&&(e=Rh[t]=zh++),e}function Ic(t){var e=t.type;return e===Ni||e===is||e===Bi}function Uh(t){var e=t.type;return e===Un||e===as}function OD(t){var e=Ig(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var sa=Kn.CMD,$D=[[],[],[]],Yh=Math.sqrt,FD=Math.atan2;function HD(t,e){if(e){var r=t.data,n=t.len(),a,i,s,l,u,c,f=sa.M,d=sa.C,h=sa.L,v=sa.R,p=sa.A,g=sa.Q;for(s=0,l=0;s<n;){switch(a=r[s++],l=s,i=0,a){case f:i=1;break;case h:i=1;break;case d:i=3;break;case g:i=2;break;case p:var m=e[4],y=e[5],b=Yh(e[0]*e[0]+e[1]*e[1]),_=Yh(e[2]*e[2]+e[3]*e[3]),w=FD(-e[1]/_,e[0]/b);r[s]*=b,r[s++]+=m,r[s]*=_,r[s++]+=y,r[s++]*=b,r[s++]*=_,r[s++]+=w,r[s++]+=w,s+=2,l=s;break;case v:c[0]=r[s++],c[1]=r[s++],jt(c,c,e),r[l++]=c[0],r[l++]=c[1],c[0]+=r[s++],c[1]+=r[s++],jt(c,c,e),r[l++]=c[0],r[l++]=c[1]}for(u=0;u<i;u++){var S=$D[u];S[0]=r[s++],S[1]=r[s++],jt(S,S,e),r[l++]=S[0],r[l++]=S[1]}}t.increaseVersion()}}var du=Math.sqrt,xo=Math.sin,Co=Math.cos,ni=Math.PI;function Xh(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Lc(t,e){return(t[0]*e[0]+t[1]*e[1])/(Xh(t)*Xh(e))}function qh(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Lc(t,e))}function jh(t,e,r,n,a,i,s,l,u,c,f){var d=u*(ni/180),h=Co(d)*(t-r)/2+xo(d)*(e-n)/2,v=-1*xo(d)*(t-r)/2+Co(d)*(e-n)/2,p=h*h/(s*s)+v*v/(l*l);p>1&&(s*=du(p),l*=du(p));var g=(a===i?-1:1)*du((s*s*(l*l)-s*s*(v*v)-l*l*(h*h))/(s*s*(v*v)+l*l*(h*h)))||0,m=g*s*v/l,y=g*-l*h/s,b=(t+r)/2+Co(d)*m-xo(d)*y,_=(e+n)/2+xo(d)*m+Co(d)*y,w=qh([1,0],[(h-m)/s,(v-y)/l]),S=[(h-m)/s,(v-y)/l],x=[(-1*h-m)/s,(-1*v-y)/l],C=qh(S,x);if(Lc(S,x)<=-1&&(C=ni),Lc(S,x)>=1&&(C=0),C<0){var k=Math.round(C/ni*1e6)/1e6;C=ni*2+k%2*ni}f.addData(c,b,_,s,l,w,C,d,i)}var GD=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,WD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function UD(t){var e=new Kn;if(!t)return e;var r=0,n=0,a=r,i=n,s,l=Kn.CMD,u=t.match(GD);if(!u)return e;for(var c=0;c<u.length;c++){for(var f=u[c],d=f.charAt(0),h=void 0,v=f.match(WD)||[],p=v.length,g=0;g<p;g++)v[g]=parseFloat(v[g]);for(var m=0;m<p;){var y=void 0,b=void 0,_=void 0,w=void 0,S=void 0,x=void 0,C=void 0,k=r,D=n,E=void 0,T=void 0;switch(d){case"l":r+=v[m++],n+=v[m++],h=l.L,e.addData(h,r,n);break;case"L":r=v[m++],n=v[m++],h=l.L,e.addData(h,r,n);break;case"m":r+=v[m++],n+=v[m++],h=l.M,e.addData(h,r,n),a=r,i=n,d="l";break;case"M":r=v[m++],n=v[m++],h=l.M,e.addData(h,r,n),a=r,i=n,d="L";break;case"h":r+=v[m++],h=l.L,e.addData(h,r,n);break;case"H":r=v[m++],h=l.L,e.addData(h,r,n);break;case"v":n+=v[m++],h=l.L,e.addData(h,r,n);break;case"V":n=v[m++],h=l.L,e.addData(h,r,n);break;case"C":h=l.C,e.addData(h,v[m++],v[m++],v[m++],v[m++],v[m++],v[m++]),r=v[m-2],n=v[m-1];break;case"c":h=l.C,e.addData(h,v[m++]+r,v[m++]+n,v[m++]+r,v[m++]+n,v[m++]+r,v[m++]+n),r+=v[m-2],n+=v[m-1];break;case"S":y=r,b=n,E=e.len(),T=e.data,s===l.C&&(y+=r-T[E-4],b+=n-T[E-3]),h=l.C,k=v[m++],D=v[m++],r=v[m++],n=v[m++],e.addData(h,y,b,k,D,r,n);break;case"s":y=r,b=n,E=e.len(),T=e.data,s===l.C&&(y+=r-T[E-4],b+=n-T[E-3]),h=l.C,k=r+v[m++],D=n+v[m++],r+=v[m++],n+=v[m++],e.addData(h,y,b,k,D,r,n);break;case"Q":k=v[m++],D=v[m++],r=v[m++],n=v[m++],h=l.Q,e.addData(h,k,D,r,n);break;case"q":k=v[m++]+r,D=v[m++]+n,r+=v[m++],n+=v[m++],h=l.Q,e.addData(h,k,D,r,n);break;case"T":y=r,b=n,E=e.len(),T=e.data,s===l.Q&&(y+=r-T[E-4],b+=n-T[E-3]),r=v[m++],n=v[m++],h=l.Q,e.addData(h,y,b,r,n);break;case"t":y=r,b=n,E=e.len(),T=e.data,s===l.Q&&(y+=r-T[E-4],b+=n-T[E-3]),r+=v[m++],n+=v[m++],h=l.Q,e.addData(h,y,b,r,n);break;case"A":_=v[m++],w=v[m++],S=v[m++],x=v[m++],C=v[m++],k=r,D=n,r=v[m++],n=v[m++],h=l.A,jh(k,D,r,n,x,C,_,w,S,h,e);break;case"a":_=v[m++],w=v[m++],S=v[m++],x=v[m++],C=v[m++],k=r,D=n,r+=v[m++],n+=v[m++],h=l.A,jh(k,D,r,n,x,C,_,w,S,h,e);break}}(d==="z"||d==="Z")&&(h=l.Z,e.addData(h),r=a,n=i),s=h}return e.toStatic(),e}var Wg=function(t){Ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(Te);function Ug(t){return t.setData!=null}function Yg(t,e){var r=UD(t),n=W({},e);return n.buildPath=function(a){if(Ug(a)){a.setData(r.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;r.rebuildPath(i,1)}},n.applyTransform=function(a){HD(r,a),this.dirtyShape()},n}function YD(t,e){return new Wg(Yg(t,e))}function XD(t,e){var r=Yg(t,e),n=function(a){Ae(i,a);function i(s){var l=a.call(this,s)||this;return l.applyTransform=r.applyTransform,l.buildPath=r.buildPath,l}return i}(Wg);return n}function qD(t,e){for(var r=[],n=t.length,a=0;a<n;a++){var i=t[a];r.push(i.getUpdatedPathProxy(!0))}var s=new Te(e);return s.createPathProxy(),s.buildPath=function(l){if(Ug(l)){l.appendPath(r);var u=l.getContext();u&&l.rebuildPath(u,1)}},s}var jD=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),il=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new jD},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(Te);il.prototype.type="circle";var ZD=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),zf=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new ZD},e.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,s=n.cy,l=n.rx,u=n.ry,c=l*a,f=u*a;r.moveTo(i-l,s),r.bezierCurveTo(i-l,s-f,i-c,s-u,i,s-u),r.bezierCurveTo(i+c,s-u,i+l,s-f,i+l,s),r.bezierCurveTo(i+l,s+f,i+c,s+u,i,s+u),r.bezierCurveTo(i-c,s+u,i-l,s+f,i-l,s),r.closePath()},e}(Te);zf.prototype.type="ellipse";var Xg=Math.PI,hu=Xg*2,An=Math.sin,la=Math.cos,KD=Math.acos,ft=Math.atan2,Zh=Math.abs,Vi=Math.sqrt,Si=Math.max,hr=Math.min,tr=1e-4;function QD(t,e,r,n,a,i,s,l){var u=r-t,c=n-e,f=s-a,d=l-i,h=d*u-f*c;if(!(h*h<tr))return h=(f*(e-i)-d*(t-a))/h,[t+h*u,e+h*c]}function ko(t,e,r,n,a,i,s){var l=t-r,u=e-n,c=(s?i:-i)/Vi(l*l+u*u),f=c*u,d=-c*l,h=t+f,v=e+d,p=r+f,g=n+d,m=(h+p)/2,y=(v+g)/2,b=p-h,_=g-v,w=b*b+_*_,S=a-i,x=h*g-p*v,C=(_<0?-1:1)*Vi(Si(0,S*S*w-x*x)),k=(x*_-b*C)/w,D=(-x*b-_*C)/w,E=(x*_+b*C)/w,T=(-x*b+_*C)/w,M=k-m,A=D-y,P=E-m,V=T-y;return M*M+A*A>P*P+V*V&&(k=E,D=T),{cx:k,cy:D,x0:-f,y0:-d,x1:k*(a/S-1),y1:D*(a/S-1)}}function JD(t){var e;if(j(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function eE(t,e){var r,n=Si(e.r,0),a=Si(e.r0||0,0),i=n>0,s=a>0;if(!(!i&&!s)){if(i||(n=a,a=0),a>n){var l=n;n=a,a=l}var u=e.startAngle,c=e.endAngle;if(!(isNaN(u)||isNaN(c))){var f=e.cx,d=e.cy,h=!!e.clockwise,v=Zh(c-u),p=v>hu&&v%hu;if(p>tr&&(v=p),!(n>tr))t.moveTo(f,d);else if(v>hu-tr)t.moveTo(f+n*la(u),d+n*An(u)),t.arc(f,d,n,u,c,!h),a>tr&&(t.moveTo(f+a*la(c),d+a*An(c)),t.arc(f,d,a,c,u,h));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,w=void 0,S=void 0,x=void 0,C=void 0,k=void 0,D=void 0,E=void 0,T=void 0,M=void 0,A=void 0,P=void 0,V=n*la(u),B=n*An(u),z=a*la(c),N=a*An(c),R=v>tr;if(R){var I=e.cornerRadius;I&&(r=JD(I),g=r[0],m=r[1],y=r[2],b=r[3]);var G=Zh(n-a)/2;if(_=hr(G,y),w=hr(G,b),S=hr(G,g),x=hr(G,m),D=C=Si(_,w),E=k=Si(S,x),(C>tr||k>tr)&&(T=n*la(c),M=n*An(c),A=a*la(u),P=a*An(u),v<Xg)){var F=QD(V,B,A,P,T,M,z,N);if(F){var J=V-F[0],le=B-F[1],X=T-F[0],Y=M-F[1],be=1/An(KD((J*X+le*Y)/(Vi(J*J+le*le)*Vi(X*X+Y*Y)))/2),de=Vi(F[0]*F[0]+F[1]*F[1]);D=hr(C,(n-de)/(be+1)),E=hr(k,(a-de)/(be-1))}}}if(!R)t.moveTo(f+V,d+B);else if(D>tr){var De=hr(y,D),Ee=hr(b,D),K=ko(A,P,V,B,n,De,h),ae=ko(T,M,z,N,n,Ee,h);t.moveTo(f+K.cx+K.x0,d+K.cy+K.y0),D<C&&De===Ee?t.arc(f+K.cx,d+K.cy,D,ft(K.y0,K.x0),ft(ae.y0,ae.x0),!h):(De>0&&t.arc(f+K.cx,d+K.cy,De,ft(K.y0,K.x0),ft(K.y1,K.x1),!h),t.arc(f,d,n,ft(K.cy+K.y1,K.cx+K.x1),ft(ae.cy+ae.y1,ae.cx+ae.x1),!h),Ee>0&&t.arc(f+ae.cx,d+ae.cy,Ee,ft(ae.y1,ae.x1),ft(ae.y0,ae.x0),!h))}else t.moveTo(f+V,d+B),t.arc(f,d,n,u,c,!h);if(!(a>tr)||!R)t.lineTo(f+z,d+N);else if(E>tr){var De=hr(g,E),Ee=hr(m,E),K=ko(z,N,T,M,a,-Ee,h),ae=ko(V,B,A,P,a,-De,h);t.lineTo(f+K.cx+K.x0,d+K.cy+K.y0),E<k&&De===Ee?t.arc(f+K.cx,d+K.cy,E,ft(K.y0,K.x0),ft(ae.y0,ae.x0),!h):(Ee>0&&t.arc(f+K.cx,d+K.cy,Ee,ft(K.y0,K.x0),ft(K.y1,K.x1),!h),t.arc(f,d,a,ft(K.cy+K.y1,K.cx+K.x1),ft(ae.cy+ae.y1,ae.cx+ae.x1),h),De>0&&t.arc(f+ae.cx,d+ae.cy,De,ft(ae.y1,ae.x1),ft(ae.y0,ae.x0),!h))}else t.lineTo(f+z,d+N),t.arc(f,d,a,c,u,h)}t.closePath()}}}var tE=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),vn=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new tE},e.prototype.buildPath=function(r,n){eE(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Te);vn.prototype.type="sector";var rE=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Rf=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new rE},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,s=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,s,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,s,!0)},e}(Te);Rf.prototype.type="ring";function nE(t,e,r,n){var a=[],i=[],s=[],l=[],u,c,f,d;if(n){f=[1/0,1/0],d=[-1/0,-1/0];for(var h=0,v=t.length;h<v;h++)ba(f,f,t[h]),_a(d,d,t[h]);ba(f,f,n[0]),_a(d,d,n[1])}for(var h=0,v=t.length;h<v;h++){var p=t[h];if(r)u=t[h?h-1:v-1],c=t[(h+1)%v];else if(h===0||h===v-1){a.push(Ok(t[h]));continue}else u=t[h-1],c=t[h+1];$k(i,c,u),Al(i,i,e);var g=uc(p,u),m=uc(p,c),y=g+m;y!==0&&(g/=y,m/=y),Al(s,i,-g),Al(l,i,m);var b=Od([],p,s),_=Od([],p,l);n&&(_a(b,b,f),ba(b,b,d),_a(_,_,f),ba(_,_,d)),a.push(b),a.push(_)}return r&&a.push(a.shift()),a}function qg(t,e,r){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=nE(a,n,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var s=a.length,l=0;l<(r?s:s-1);l++){var u=i[l*2],c=i[l*2+1],f=a[(l+1)%s];t.bezierCurveTo(u[0],u[1],c[0],c[1],f[0],f[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var l=1,d=a.length;l<d;l++)t.lineTo(a[l][0],a[l][1])}r&&t.closePath()}}var aE=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Of=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new aE},e.prototype.buildPath=function(r,n){qg(r,n,!0)},e}(Te);Of.prototype.type="polygon";var iE=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),ao=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new iE},e.prototype.buildPath=function(r,n){qg(r,n,!1)},e}(Te);ao.prototype.type="polyline";var oE={},sE=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),cn=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new sE},e.prototype.buildPath=function(r,n){var a,i,s,l;if(this.subPixelOptimize){var u=Bg(oE,n,this.style);a=u.x1,i=u.y1,s=u.x2,l=u.y2}else a=n.x1,i=n.y1,s=n.x2,l=n.y2;var c=n.percent;c!==0&&(r.moveTo(a,i),c<1&&(s=a*(1-c)+s*c,l=i*(1-c)+l*c),r.lineTo(s,l))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(Te);cn.prototype.type="line";var xt=[],lE=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function Kh(t,e,r){var n=t.cpx2,a=t.cpy2;return n!=null||a!=null?[(r?Zd:lt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Zd:lt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Kd:Tt)(t.x1,t.cpx1,t.x2,e),(r?Kd:Tt)(t.y1,t.cpy1,t.y2,e)]}var $f=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lE},e.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,s=n.x2,l=n.y2,u=n.cpx1,c=n.cpy1,f=n.cpx2,d=n.cpy2,h=n.percent;h!==0&&(r.moveTo(a,i),f==null||d==null?(h<1&&(ys(a,u,s,h,xt),u=xt[1],s=xt[2],ys(i,c,l,h,xt),c=xt[1],l=xt[2]),r.quadraticCurveTo(u,c,s,l)):(h<1&&(gs(a,u,f,s,h,xt),u=xt[1],f=xt[2],s=xt[3],gs(i,c,d,l,h,xt),c=xt[1],d=xt[2],l=xt[3]),r.bezierCurveTo(u,c,f,d,s,l)))},e.prototype.pointAt=function(r){return Kh(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Kh(this.shape,r,!0);return Gk(n,n)},e}(Te);$f.prototype.type="bezier-curve";var uE=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),ol=function(t){Ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new uE},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,s=Math.max(n.r,0),l=n.startAngle,u=n.endAngle,c=n.clockwise,f=Math.cos(l),d=Math.sin(l);r.moveTo(f*s+a,d*s+i),r.arc(a,i,s,l,u,!c)},e}(Te);ol.prototype.type="arc";var cE=function(t){Ae(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Te.prototype.getBoundingRect.call(this)},e}(Te),jg=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),Zg=function(t){Ae(e,t);function e(r,n,a,i,s,l){var u=t.call(this,s)||this;return u.x=r??0,u.y=n??0,u.x2=a??1,u.y2=i??0,u.type="linear",u.global=l||!1,u}return e}(jg),fE=function(t){Ae(e,t);function e(r,n,a,i,s){var l=t.call(this,i)||this;return l.x=r??.5,l.y=n??.5,l.r=a??.5,l.type="radial",l.global=s||!1,l}return e}(jg),Nn=[0,0],Bn=[0,0],To=new ce,Do=new ce,As=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ce;for(var n=0;n<2;n++)this._axes[n]=new ce;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,a=this._axes,i=e.x,s=e.y,l=i+e.width,u=s+e.height;if(n[0].set(i,s),n[1].set(l,s),n[2].set(l,u),n[3].set(i,u),r)for(var c=0;c<4;c++)n[c].transform(r);ce.sub(a[0],n[1],n[0]),ce.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var c=0;c<2;c++)this._origin[c]=a[c].dot(n[0])},t.prototype.intersect=function(e,r){var n=!0,a=!r;return To.set(1/0,1/0),Do.set(0,0),!this._intersectCheckOneSide(this,e,To,Do,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,To,Do,a,-1)&&(n=!1,a)||a||ce.copy(r,n?To:Do),n},t.prototype._intersectCheckOneSide=function(e,r,n,a,i,s){for(var l=!0,u=0;u<2;u++){var c=this._axes[u];if(this._getProjMinMaxOnAxis(u,e._corners,Nn),this._getProjMinMaxOnAxis(u,r._corners,Bn),Nn[1]<Bn[0]||Nn[0]>Bn[1]){if(l=!1,i)return l;var f=Math.abs(Bn[0]-Nn[1]),d=Math.abs(Nn[0]-Bn[1]);Math.min(f,d)>a.len()&&(f<d?ce.scale(a,c,-f*s):ce.scale(a,c,d*s))}else if(n){var f=Math.abs(Bn[0]-Nn[1]),d=Math.abs(Nn[0]-Bn[1]);Math.min(f,d)<n.len()&&(f<d?ce.scale(n,c,f*s):ce.scale(n,c,-d*s))}}return l},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var a=this._axes[e],i=this._origin,s=r[0].dot(a)+i[e],l=s,u=s,c=1;c<r.length;c++){var f=r[c].dot(a)+i[e];l=Math.min(f,l),u=Math.max(f,u)}n[0]=l,n[1]=u},t}(),dE=[],hE=function(t){Ae(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Ce(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(dE)),r.union(i)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var s=0;s<this._displayables.length;s++){var l=this._displayables[s];if(l.contain(r,n))return!0}return!1},e}(no),vE=Ue();function pE(t,e,r,n,a){var i;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();i=s&&s.animation}var l=e&&e.isAnimationEnabled(),u=t==="update";if(l){var c=void 0,f=void 0,d=void 0;n?(c=fe(n.duration,200),f=fe(n.easing,"cubicOut"),d=0):(c=e.getShallow(u?"animationDurationUpdate":"animationDuration"),f=e.getShallow(u?"animationEasingUpdate":"animationEasing"),d=e.getShallow(u?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(c=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(d=i.delay)),ue(d)&&(d=d(r,a)),ue(c)&&(c=c(r));var h={duration:c||0,delay:d,easing:f};return h}else return null}function Ff(t,e,r,n,a,i,s){var l=!1,u;ue(a)?(s=i,i=a,a=null):re(a)&&(i=a.cb,s=a.during,l=a.isFrom,u=a.removeOpt,a=a.dataIndex);var c=t==="leave";c||e.stopAnimation("leave");var f=pE(t,n,a,c?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var d=f.duration,h=f.delay,v=f.easing,p={duration:d,delay:h||0,easing:v,done:i,force:!!i||!!s,setToFinal:!c,scope:t,during:s};l?e.animateFrom(r,p):e.animateTo(r,p)}else e.stopAnimation(),!l&&e.attr(r),s&&s(1),i&&i()}function St(t,e,r,n,a,i){Ff("update",t,e,r,n,a,i)}function Zt(t,e,r,n,a,i){Ff("enter",t,e,r,n,a,i)}function Ii(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Ns(t,e,r,n,a,i){Ii(t)||Ff("leave",t,e,r,n,a,i)}function Qh(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),Ns(t,{style:{opacity:0}},e,r,n)}function Bs(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||Qh(a,e,r,n)}):Qh(t,e,r,n)}function Hf(t){vE(t).oldStyle=t.style}var Vs=Math.max,Is=Math.min,Pc={};function mE(t){return Te.extend(t)}var gE=XD;function yE(t,e){return gE(t,e)}function sr(t,e){Pc[t]=e}function bE(t){if(Pc.hasOwnProperty(t))return Pc[t]}function Gf(t,e,r,n){var a=YD(t,e);return r&&(n==="center"&&(r=Qg(r,a.getBoundingRect())),Jg(a,r)),a}function Kg(t,e,r){var n=new hn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(Qg(e,i))}}});return n}function Qg(t,e){var r=e.width/e.height,n=t.height*r,a;n<=t.width?a=t.height:(n=t.width,a=n/r);var i=t.x+t.width/2,s=t.y+t.height/2;return{x:i-n/2,y:s-a/2,width:n,height:a}}var _E=qD;function Jg(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Ui(t,e){return Bg(t,t,{lineWidth:e}),t}function wE(t){return Vg(t.shape,t.shape,t.style),t}var SE=On;function xE(t,e){for(var r=xf([]);t&&t!==e;)Ta(r,t.getLocalTransform(),r),t=t.parent;return r}function Wf(t,e,r){return e&&!At(e)&&(e=Df.getLocalTransform(e)),r&&(e=kf([],e)),jt([],t,e)}function CE(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[t==="left"?-n:t==="right"?n:0,t==="top"?-a:t==="bottom"?a:0];return i=Wf(i,e,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Jh(t){return!t.isGroup}function kE(t){return t.shape!=null}function ey(t,e,r){if(!t||!e)return;function n(s){var l={};return s.traverse(function(u){Jh(u)&&u.anid&&(l[u.anid]=u)}),l}function a(s){var l={x:s.x,y:s.y,rotation:s.rotation};return kE(s)&&(l.shape=W({},s.shape)),l}var i=n(t);e.traverse(function(s){if(Jh(s)&&s.anid){var l=i[s.anid];if(l){var u=a(s);s.attr(a(l)),St(s,u,r,ye(s).dataIndex)}}})}function TE(t,e){return ee(t,function(r){var n=r[0];n=Vs(n,e.x),n=Is(n,e.x+e.width);var a=r[1];return a=Vs(a,e.y),a=Is(a,e.y+e.height),[n,a]})}function DE(t,e){var r=Vs(t.x,e.x),n=Is(t.x+t.width,e.x+e.width),a=Vs(t.y,e.y),i=Is(t.y+t.height,e.y+e.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Uf(t,e,r){var n=W({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),ke(a,r),new hn(n)):Gf(t.replace("path://",""),n,r,"center")}function EE(t,e,r,n,a){for(var i=0,s=a[a.length-1];i<a.length;i++){var l=a[i];if(ty(t,e,r,n,l[0],l[1],s[0],s[1]))return!0;s=l}}function ty(t,e,r,n,a,i,s,l){var u=r-t,c=n-e,f=s-a,d=l-i,h=vu(f,d,u,c);if(ME(h))return!1;var v=t-a,p=e-i,g=vu(v,p,u,c)/h;if(g<0||g>1)return!1;var m=vu(v,p,f,d)/h;return!(m<0||m>1)}function vu(t,e,r,n){return t*n-r*e}function ME(t){return t<=1e-6&&t>=-1e-6}function sl(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=Z(e)?{formatter:e}:e,i=r.mainType,s=r.componentIndex,l={componentType:i,name:n,$vars:["name"]};l[i+"Index"]=s;var u=t.formatterParamsExtra;u&&L(Oe(u),function(f){jn(l,f)||(l[f]=u[f],l.$vars.push(f))});var c=ye(t.el);c.componentMainType=i,c.componentIndex=s,c.tooltipConfig={name:n,option:ke({content:n,encodeHTMLContent:!0,formatterParams:l},a)}}function ev(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function ll(t,e){if(t)if(j(t))for(var r=0;r<t.length;r++)ev(t[r],e);else ev(t,e)}sr("circle",il);sr("ellipse",zf);sr("sector",vn);sr("ring",Rf);sr("polygon",Of);sr("polyline",ao);sr("rect",qe);sr("line",cn);sr("bezierCurve",$f);sr("arc",ol);const AE=Object.freeze(Object.defineProperty({__proto__:null,Arc:ol,BezierCurve:$f,BoundingRect:Ce,Circle:il,CompoundPath:cE,Ellipse:zf,Group:ut,Image:hn,IncrementalDisplayable:hE,Line:cn,LinearGradient:Zg,OrientedBoundingRect:As,Path:Te,Point:ce,Polygon:Of,Polyline:ao,RadialGradient:fE,Rect:qe,Ring:Rf,Sector:vn,Text:ct,applyTransform:Wf,clipPointsByRect:TE,clipRectByRect:DE,createIcon:Uf,extendPath:yE,extendShape:mE,getShapeClass:bE,getTransform:xE,groupTransition:ey,initProps:Zt,isElementRemoved:Ii,lineLineIntersect:ty,linePolygonIntersect:EE,makeImage:Kg,makePath:Gf,mergePath:_E,registerShape:sr,removeElement:Ns,removeElementWithFadeOut:Bs,resizePath:Jg,setTooltipConfig:sl,subPixelOptimize:SE,subPixelOptimizeLine:Ui,subPixelOptimizeRect:wE,transformDirection:CE,traverseElements:ll,updateProps:St},Symbol.toStringTag,{value:"Module"}));var ul={};function NE(t,e){for(var r=0;r<Qt.length;r++){var n=Qt[r],a=e[n],i=t.ensureState(n);i.style=i.style||{},i.style.text=a}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function tv(t,e,r){var n=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,s=e.normal,l;n&&(l=n.getFormattedLabel(a,"normal",null,i,s&&s.get("formatter"),r!=null?{interpolatedValue:r}:null)),l==null&&(l=ue(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var u={normal:l},c=0;c<Qt.length;c++){var f=Qt[c],d=e[f];u[f]=fe(n?n.getFormattedLabel(a,f,null,i,d&&d.get("formatter")):null,l)}return u}function io(t,e,r,n){r=r||ul;for(var a=t instanceof ct,i=!1,s=0;s<Ts.length;s++){var l=e[Ts[s]];if(l&&l.getShallow("show")){i=!0;break}}var u=a?t:t.getTextContent();if(i){a||(u||(u=new ct,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var c=tv(r,e),f=e.normal,d=!!f.getShallow("show"),h=fn(f,n&&n.normal,r,!1,!a);h.text=c.normal,a||t.setTextConfig(rv(f,r,!1));for(var s=0;s<Qt.length;s++){var v=Qt[s],l=e[v];if(l){var p=u.ensureState(v),g=!!fe(l.getShallow("show"),d);if(g!==d&&(p.ignore=!g),p.style=fn(l,n&&n[v],r,!0,!a),p.style.text=c[v],!a){var m=t.ensureState(v);m.textConfig=rv(l,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(h.x=u.style.x),u.style.y!=null&&(h.y=u.style.y),u.ignore=!d,u.useStyle(h),u.dirty(),r.enableTextSetter&&(cl(u).setLabelText=function(y){var b=tv(r,e,y);NE(u,b)})}else u&&(u.ignore=!0);t.dirty()}function oo(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Qt.length;n++){var a=Qt[n];r[a]=t.getModel([a,e])}return r}function fn(t,e,r,n,a){var i={};return BE(i,t,r,n,a),e&&W(i,e),i}function rv(t,e,r){e=e||{};var n={},a,i=t.getShallow("rotate"),s=fe(t.getShallow("distance"),r?null:5),l=t.getShallow("offset");return a=t.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),l!=null&&(n.offset=l),i!=null&&(i*=Math.PI/180,n.rotation=i),s!=null&&(n.distance=s),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",n}function BE(t,e,r,n,a){r=r||ul;var i=e.ecModel,s=i&&i.option.textStyle,l=VE(e),u;if(l){u={};for(var c in l)if(l.hasOwnProperty(c)){var f=e.getModel(["rich",c]);ov(u[c]={},f,s,r,n,a,!1,!0)}}u&&(t.rich=u);var d=e.get("overflow");d&&(t.overflow=d);var h=e.get("minMargin");h!=null&&(t.margin=h),ov(t,e,s,r,n,a,!0,!1)}function VE(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||ul).rich;if(r){e=e||{};for(var n=Oe(r),a=0;a<n.length;a++){var i=n[a];e[i]=1}}t=t.parentModel}return e}var nv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],av=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],iv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ov(t,e,r,n,a,i,s,l){r=!a&&r||ul;var u=n&&n.inheritColor,c=e.getShallow("color"),f=e.getShallow("textBorderColor"),d=fe(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&tt("color: 'auto'","color: 'inherit'"),u?c=u:c=null),(f==="inherit"||f==="auto")&&(process.env.NODE_ENV!=="production"&&f==="auto"&&tt("color: 'auto'","color: 'inherit'"),u?f=u:f=null),i||(c=c||r.color,f=f||r.textBorderColor),c!=null&&(t.fill=c),f!=null&&(t.stroke=f);var h=fe(e.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(t.lineWidth=h);var v=fe(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var p=fe(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(t.lineDashOffset=p),!a&&d==null&&!l&&(d=n&&n.defaultOpacity),d!=null&&(t.opacity=d),!a&&!i&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var g=0;g<nv.length;g++){var m=nv[g],y=fe(e.getShallow(m),r[m]);y!=null&&(t[m]=y)}for(var g=0;g<av.length;g++){var m=av[g],y=e.getShallow(m);y!=null&&(t[m]=y)}if(t.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(t.verticalAlign=b)}if(!s||!n.disableBox){for(var g=0;g<iv.length;g++){var m=iv[g],y=e.getShallow(m);y!=null&&(t[m]=y)}var _=e.getShallow("borderType");_!=null&&(t.borderDash=_),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&u&&(process.env.NODE_ENV!=="production"&&t.backgroundColor==="auto"&&tt("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=u),(t.borderColor==="auto"||t.borderColor==="inherit")&&u&&(process.env.NODE_ENV!=="production"&&t.borderColor==="auto"&&tt("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=u)}}function IE(t,e){var r=e&&e.getModel("textStyle");return yr([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var cl=Ue();function LE(t,e,r,n){if(t){var a=cl(t);a.prevValue=a.value,a.value=r;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}var PE=["textStyle","color"],pu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],mu=new ct,zE=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(PE):null)},t.prototype.getFont=function(){return IE({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<pu.length;n++)r[pu[n]]=this.getShallow(pu[n]);return mu.useStyle(r),mu.update(),mu.getBoundingRect()},t}(),ry=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],RE=Gi(ry),OE=function(){function t(){}return t.prototype.getLineStyle=function(e){return RE(this,e)},t}(),ny=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],$E=Gi(ny),FE=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return $E(this,e,r)},t}(),He=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){xe(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,a=n==null?n:n[e];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,r){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(ge(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!oe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();Bf(He);DT(He);Sr(He,OE);Sr(He,FE);Sr(He,BT);Sr(He,zE);var HE=Math.round(Math.random()*10);function fl(t){return[t||"",HE++].join("_")}function GE(t){var e={};t.registerSubTypeDefaulter=function(r,n){var a=br(r);e[a.main]=n},t.determineSubType=function(r,n){var a=n.type;if(!a){var i=br(r).main;t.hasSubTypes(r)&&e[i]&&(a=e[i](n))}return a}}function WE(t,e){t.topologicalTravel=function(i,s,l,u){if(!i.length)return;var c=r(s),f=c.graph,d=c.noEntryList,h={};for(L(i,function(b){h[b]=!0});d.length;){var v=d.pop(),p=f[v],g=!!h[v];g&&(l.call(u,v,p.originalDeps.slice()),delete h[v]),L(p.successor,g?y:m)}L(h,function(){var b="";throw process.env.NODE_ENV!=="production"&&(b=Cs("Circular dependency may exists: ",h,i,s)),new Error(b)});function m(b){f[b].entryCount--,f[b].entryCount===0&&d.push(b)}function y(b){h[b]=!0,m(b)}};function r(i){var s={},l=[];return L(i,function(u){var c=n(s,u),f=c.originalDeps=e(u),d=a(f,i);c.entryCount=d.length,c.entryCount===0&&l.push(u),L(d,function(h){Me(c.predecessor,h)<0&&c.predecessor.push(h);var v=n(s,h);Me(v.successor,h)<0&&v.successor.push(u)})}),{graph:s,noEntryList:l}}function n(i,s){return i[s]||(i[s]={predecessor:[],successor:[]}),i[s]}function a(i,s){var l=[];return L(i,function(u){Me(s,u)>=0&&l.push(u)}),l}}function ay(t,e){return xe(xe({},t,!0),e,!0)}const UE={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:". "}}}},YE={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Ls="ZH",Yf="EN",Ea=Yf,os={},Xf={},iy=oe.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ea).toUpperCase();return t.indexOf(Ls)>-1?Ls:Ea}():Ea;function oy(t,e){t=t.toUpperCase(),Xf[t]=new He(e),os[t]=e}function XE(t){if(Z(t)){var e=os[t.toUpperCase()]||{};return t===Ls||t===Yf?ge(e):xe(ge(e),ge(os[Ea]),!1)}else return xe(ge(t),ge(os[Ea]),!1)}function qE(t){return Xf[t]}function jE(){return Xf[Ea]}oy(Yf,UE);oy(Ls,YE);var qf=1e3,jf=qf*60,Li=jf*60,qt=Li*24,sv=qt*365,xi={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Eo="{yyyy}-{MM}-{dd}",lv={year:"{yyyy}",month:"{yyyy}-{MM}",day:Eo,hour:Eo+" "+xi.hour,minute:Eo+" "+xi.minute,second:Eo+" "+xi.second,millisecond:xi.none},gu=["year","month","day","hour","minute","second","millisecond"],sy=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Wr(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ma(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function ZE(t){return t===Ma(t)}function KE(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function dl(t,e,r,n){var a=zr(t),i=a[Zf(r)](),s=a[Aa(r)]()+1,l=Math.floor((s-1)/3)+1,u=a[hl(r)](),c=a["get"+(r?"UTC":"")+"Day"](),f=a[Yi(r)](),d=(f-1)%12+1,h=a[vl(r)](),v=a[pl(r)](),p=a[ml(r)](),g=f>=12?"pm":"am",m=g.toUpperCase(),y=n instanceof He?n:qE(n||iy)||jE(),b=y.getModel("time"),_=b.get("month"),w=b.get("monthAbbr"),S=b.get("dayOfWeek"),x=b.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Wr(i%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,_[s-1]).replace(/{MMM}/g,w[s-1]).replace(/{MM}/g,Wr(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,Wr(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,S[c]).replace(/{ee}/g,x[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Wr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Wr(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Wr(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Wr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Wr(p,3)).replace(/{S}/g,p+"")}function QE(t,e,r,n,a){var i=null;if(Z(r))i=r;else if(ue(r))i=r(t.value,e,{level:t.level});else{var s=W({},xi);if(t.level>0)for(var l=0;l<gu.length;++l)s[gu[l]]="{primary|"+s[gu[l]]+"}";var u=r?r.inherit===!1?r:ke(r,s):s,c=ly(t.value,a);if(u[c])i=u[c];else if(u.inherit){for(var f=sy.indexOf(c),l=f-1;l>=0;--l)if(u[c]){i=u[c];break}i=i||s.none}if(j(i)){var d=t.level==null?0:t.level>=0?t.level:i.length+t.level;d=Math.min(d,i.length-1),i=i[d]}}return dl(new Date(t.value),i,a,n)}function ly(t,e){var r=zr(t),n=r[Aa(e)]()+1,a=r[hl(e)](),i=r[Yi(e)](),s=r[vl(e)](),l=r[pl(e)](),u=r[ml(e)](),c=u===0,f=c&&l===0,d=f&&s===0,h=d&&i===0,v=h&&a===1,p=v&&n===1;return p?"year":v?"month":h?"day":d?"hour":f?"minute":c?"second":"millisecond"}function uv(t,e,r){var n=Ve(t)?zr(t):t;switch(e=e||ly(t,r),e){case"year":return n[Zf(r)]();case"half-year":return n[Aa(r)]()>=6?1:0;case"quarter":return Math.floor((n[Aa(r)]()+1)/4);case"month":return n[Aa(r)]();case"day":return n[hl(r)]();case"half-day":return n[Yi(r)]()/24;case"hour":return n[Yi(r)]();case"minute":return n[vl(r)]();case"second":return n[pl(r)]();case"millisecond":return n[ml(r)]()}}function Zf(t){return t?"getUTCFullYear":"getFullYear"}function Aa(t){return t?"getUTCMonth":"getMonth"}function hl(t){return t?"getUTCDate":"getDate"}function Yi(t){return t?"getUTCHours":"getHours"}function vl(t){return t?"getUTCMinutes":"getMinutes"}function pl(t){return t?"getUTCSeconds":"getSeconds"}function ml(t){return t?"getUTCMilliseconds":"getMilliseconds"}function JE(t){return t?"setUTCFullYear":"setFullYear"}function uy(t){return t?"setUTCMonth":"setMonth"}function cy(t){return t?"setUTCDate":"setDate"}function fy(t){return t?"setUTCHours":"setHours"}function dy(t){return t?"setUTCMinutes":"setMinutes"}function hy(t){return t?"setUTCSeconds":"setSeconds"}function vy(t){return t?"setUTCMilliseconds":"setMilliseconds"}function py(t){if(!gg(t))return Z(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function my(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var gl=Ym;function zc(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&yr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var s=e==="time",l=t instanceof Date;if(s||l){var u=s?zr(t):t;if(isNaN(+u)){if(l)return"-"}else return dl(u,n,r)}if(e==="ordinal")return hs(t)?a(t):Ve(t)&&i(t)?t+"":"-";var c=xs(t);return i(c)?py(c):hs(t)?a(t):typeof t=="boolean"?t+"":"-"}var cv=["a","b","c","d","e","f","g"],yu=function(t,e){return"{"+t+(e??"")+"}"};function gy(t,e,r){j(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var s=cv[i];t=t.replace(yu(s),yu(s,0))}for(var l=0;l<n;l++)for(var u=0;u<a.length;u++){var c=e[l][a[u]];t=t.replace(yu(cv[u],l),r?kt(c):c)}return t}function eM(t,e){var r=Z(t)?{color:t,extraCssText:e}:t||{},n=r.color,a=r.type;e=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+kt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+kt(n)+";"+(e||"")+'"></span>';var s=r.markerId||"markerX";return{renderMode:i,content:"{"+s+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Qn(t,e){return e=e||"transparent",Z(t)?t:re(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function fv(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var ss=L,tM=["left","right","top","bottom","width","height"],Mo=[["width","left","right"],["height","top","bottom"]];function Kf(t,e,r,n,a){var i=0,s=0;n==null&&(n=1/0),a==null&&(a=1/0);var l=0;e.eachChild(function(u,c){var f=u.getBoundingRect(),d=e.childAt(c+1),h=d&&d.getBoundingRect(),v,p;if(t==="horizontal"){var g=f.width+(h?-h.x+f.x:0);v=i+g,v>n||u.newline?(i=0,v=g,s+=l+r,l=f.height):l=Math.max(l,f.height)}else{var m=f.height+(h?-h.y+f.y:0);p=s+m,p>a||u.newline?(i+=l+r,s=0,p=m,l=f.width):l=Math.max(l,f.width)}u.newline||(u.x=i,u.y=s,u.markRedraw(),t==="horizontal"?i=v+r:s=p+r)})}var Pi=Kf;We(Kf,"vertical");We(Kf,"horizontal");function La(t,e,r){r=gl(r||0);var n=e.width,a=e.height,i=Re(t.left,n),s=Re(t.top,a),l=Re(t.right,n),u=Re(t.bottom,a),c=Re(t.width,n),f=Re(t.height,a),d=r[2]+r[0],h=r[1]+r[3],v=t.aspect;switch(isNaN(c)&&(c=n-l-h-i),isNaN(f)&&(f=a-u-d-s),v!=null&&(isNaN(c)&&isNaN(f)&&(v>n/a?c=n*.8:f=a*.8),isNaN(c)&&(c=v*f),isNaN(f)&&(f=c/v)),isNaN(i)&&(i=n-l-c-h),isNaN(s)&&(s=a-u-f-d),t.left||t.right){case"center":i=n/2-c/2-r[3];break;case"right":i=n-c-h;break}switch(t.top||t.bottom){case"middle":case"center":s=a/2-f/2-r[0];break;case"bottom":s=a-f-d;break}i=i||0,s=s||0,isNaN(c)&&(c=n-h-i-(l||0)),isNaN(f)&&(f=a-d-s-(u||0));var p=new Ce(i+r[3],s+r[0],c,f);return p.margin=r,p}function Xi(t){var e=t.layoutMode||t.constructor.layoutMode;return re(e)?e:e?{type:e}:null}function Pa(t,e,r){var n=r&&r.ignoreSize;!j(n)&&(n=[n,n]);var a=s(Mo[0],0),i=s(Mo[1],1);c(Mo[0],t,a),c(Mo[1],t,i);function s(f,d){var h={},v=0,p={},g=0,m=2;if(ss(f,function(_){p[_]=t[_]}),ss(f,function(_){l(e,_)&&(h[_]=p[_]=e[_]),u(h,_)&&v++,u(p,_)&&g++}),n[d])return u(e,f[1])?p[f[2]]=null:u(e,f[2])&&(p[f[1]]=null),p;if(g===m||!v)return p;if(v>=m)return h;for(var y=0;y<f.length;y++){var b=f[y];if(!l(h,b)&&l(t,b)){h[b]=t[b];break}}return h}function l(f,d){return f.hasOwnProperty(d)}function u(f,d){return f[d]!=null&&f[d]!=="auto"}function c(f,d,h){ss(f,function(v){d[v]=h[v]})}}function yl(t){return rM({},t)}function rM(t,e){return e&&t&&ss(tM,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var nM=Ue(),_e=function(t){se(e,t);function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.uid=fl("ec_cpt_model"),i}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=Xi(this),i=a?yl(r):{},s=n.getTheme();xe(r,s.get(this.mainType)),xe(r,this.getDefaultOption()),a&&Pa(r,i,a)},e.prototype.mergeOption=function(r,n){xe(this.option,r,!0);var a=Xi(this);a&&Pa(this.option,r,a)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!CT(r))return r.defaultOption;var n=nM(this);if(!n.defaultOption){for(var a=[],i=r;i;){var s=i.prototype.defaultOption;s&&a.push(s),i=i.superClass}for(var l={},u=a.length-1;u>=0;u--)l=xe(l,a[u],!0);n.defaultOption=l}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return ro(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(He);Cg(_e,He);Js(_e);GE(_e);WE(_e,aM);function aM(t){var e=[];return L(_e.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=ee(e,function(r){return br(r).main}),t!=="dataset"&&Me(e,"dataset")<=0&&e.unshift("dataset"),e}var yy="";typeof navigator<"u"&&(yy=navigator.platform||"");var ua="rgba(0, 0, 0, 0.2)";const iM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ua,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ua,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ua,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ua,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ua,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ua,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:yy.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Rc=ve(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Jt="original",Nt="arrayRows",lr="objectRows",Cr="keyedColumns",Lr="typedArray",by="unknown",Pr="column",Wa="row",it={Must:1,Might:2,Not:3},_y=Ue();function oM(t){_y(t).datasetMap=ve()}function sM(t,e,r){var n={},a=Qf(e);if(!a||!t)return n;var i=[],s=[],l=e.ecModel,u=_y(l).datasetMap,c=a.uid+"_"+r.seriesLayoutBy,f,d;t=t.slice(),L(t,function(g,m){var y=re(g)?g:t[m]={name:g};y.type==="ordinal"&&f==null&&(f=m,d=p(y)),n[y.name]=[]});var h=u.get(c)||u.set(c,{categoryWayDim:d,valueWayDim:0});L(t,function(g,m){var y=g.name,b=p(g);if(f==null){var _=h.valueWayDim;v(n[y],_,b),v(s,_,b),h.valueWayDim+=b}else if(f===m)v(n[y],0,b),v(i,0,b);else{var _=h.categoryWayDim;v(n[y],_,b),v(s,_,b),h.categoryWayDim+=b}});function v(g,m,y){for(var b=0;b<y;b++)g.push(m+b)}function p(g){var m=g.dimsDef;return m?m.length:1}return i.length&&(n.itemName=i),s.length&&(n.seriesName=s),n}function lM(t,e,r){var n={},a=Qf(t);if(!a)return n;var i=e.sourceFormat,s=e.dimensionsDefine,l;(i===lr||i===Cr)&&L(s,function(f,d){(re(f)?f.name:f)==="name"&&(l=d)});var u=function(){for(var f={},d={},h=[],v=0,p=Math.min(5,r);v<p;v++){var g=Sy(e.data,i,e.seriesLayoutBy,s,e.startIndex,v);h.push(g);var m=g===it.Not;if(m&&f.v==null&&v!==l&&(f.v=v),(f.n==null||f.n===f.v||!m&&h[f.n]===it.Not)&&(f.n=v),y(f)&&h[f.n]!==it.Not)return f;m||(g===it.Might&&d.v==null&&v!==l&&(d.v=v),(d.n==null||d.n===d.v)&&(d.n=v))}function y(b){return b.v!=null&&b.n!=null}return y(f)?f:y(d)?d:null}();if(u){n.value=[u.v];var c=l??u.n;n.itemName=[c],n.seriesName=[c]}return n}function Qf(t){var e=t.get("data",!0);if(!e)return ro(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ar).models[0]}function uM(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:ro(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ar).models}function wy(t,e){return Sy(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Sy(t,e,r,n,a,i){var s,l=5;if(wt(t))return it.Not;var u,c;if(n){var f=n[i];re(f)?(u=f.name,c=f.type):Z(f)&&(u=f)}if(c!=null)return c==="ordinal"?it.Must:it.Not;if(e===Nt){var d=t;if(r===Wa){for(var h=d[i],v=0;v<(h||[]).length&&v<l;v++)if((s=w(h[a+v]))!=null)return s}else for(var v=0;v<d.length&&v<l;v++){var p=d[a+v];if(p&&(s=w(p[i]))!=null)return s}}else if(e===lr){var g=t;if(!u)return it.Not;for(var v=0;v<g.length&&v<l;v++){var m=g[v];if(m&&(s=w(m[u]))!=null)return s}}else if(e===Cr){var y=t;if(!u)return it.Not;var h=y[u];if(!h||wt(h))return it.Not;for(var v=0;v<h.length&&v<l;v++)if((s=w(h[v]))!=null)return s}else if(e===Jt)for(var b=t,v=0;v<b.length&&v<l;v++){var m=b[v],_=to(m);if(!j(_))return it.Not;if((s=w(_[i]))!=null)return s}function w(S){var x=Z(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return x?it.Might:it.Not;if(x&&S!=="-")return it.Must}return it.Not}var cM=ve();function fM(t,e,r){var n=cM.get(e);if(!n)return r;var a=n(t);if(!a)return r;if(process.env.NODE_ENV!=="production")for(var i=0;i<a.length;i++)he(Va(a[i]));return r.concat(a)}var dv=Ue();Ue();var Jf=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var a=_t(this.get("color",!0)),i=this.get("colorLayer",!0);return hM(this,dv,a,i,e,r,n)},t.prototype.clearColorPalette=function(){vM(this,dv)},t}();function dM(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function hM(t,e,r,n,a,i,s){i=i||t;var l=e(i),u=l.paletteIdx||0,c=l.paletteNameMap=l.paletteNameMap||{};if(c.hasOwnProperty(a))return c[a];var f=s==null||!n?r:dM(n,s);if(f=f||r,!(!f||!f.length)){var d=f[u];return a&&(c[a]=d),l.paletteIdx=(u+1)%f.length,d}}function vM(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Ao,ai,hv,bu="\0_ec_inner",vv=1,pM={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},mM={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Ps={};function gM(t){L(t,function(e,r){if(!_e.hasClass(r)){var n=pM[r];n&&!Ps[n]&&(mt("Component "+r+` is used but not imported.
|
|
243
|
+
import { `+n+` } from 'echarts/components';
|
|
244
|
+
echarts.use([`+n+"]);"),Ps[n]=!0)}})}var ed=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,a,i,s,l){i=i||{},this.option=null,this._theme=new He(i),this._locale=new He(s),this._optionManager=l},e.prototype.setOption=function(r,n,a){process.env.NODE_ENV!=="production"&&(he(r!=null,"option is null/undefined"),he(r[bu]!==vv,"please use chart.getOption()"));var i=gv(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,n){return this._resetOption(r,gv(n))},e.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var s=i.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&gM(s),!this.option||r==="recreate"?hv(this,s):(this.restoreData(),this._mergeOption(s,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var l=i.getTimelineOption(this);l&&(a=!0,this._mergeOption(l,n))}if(!r||r==="recreate"||r==="media"){var u=i.getMediaOption(this);u.length&&L(u,function(c){a=!0,this._mergeOption(c,n)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,s=this._componentsCount,l=[],u=ve(),c=n&&n.replaceMergeMainTypeMap;oM(this),L(r,function(d,h){d!=null&&(_e.hasClass(h)?h&&(l.push(h),u.set(h,!0)):a[h]=a[h]==null?ge(d):xe(a[h],d,!0))}),c&&c.each(function(d,h){_e.hasClass(h)&&!u.get(h)&&(l.push(h),u.set(h,!0))}),_e.topologicalTravel(l,_e.getAllClassMainTypes(),f,this);function f(d){var h=fM(this,d,_t(r[d])),v=i.get(d),p=v?c&&c.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=uT(v,h,p);mT(g,d,_e),a[d]=null,i.set(d,null),s.set(d,0);var m=[],y=[],b=0,_,w;L(g,function(S,x){var C=S.existing,k=S.newOption;if(!k)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var D=d==="series",E=_e.getClass(d,S.keyInfo.subType,!D);if(!E){if(process.env.NODE_ENV!=="production"){var T=S.keyInfo.subType,M=mM[T];Ps[T]||(Ps[T]=!0,mt(M?"Series "+T+` is used but not imported.
|
|
245
|
+
import { `+M+` } from 'echarts/charts';
|
|
246
|
+
echarts.use([`+M+"]);":"Unknown series "+T))}return}if(d==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(w||(pt("Currently only one tooltip component is allowed."),w=!0));return}_=!0}if(C&&C.constructor===E)C.name=S.keyInfo.name,C.mergeOption(k,this),C.optionUpdated(k,!1);else{var A=W({componentIndex:x},S.keyInfo);C=new E(k,this,this,A),W(C,A),S.brandNew&&(C.__requireNewView=!0),C.init(k,this,this),C.optionUpdated(null,!0)}}C?(m.push(C.option),y.push(C),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),s.set(d,b),d==="series"&&Ao(this)}this._seriesIndices||Ao(this)},e.prototype.getOption=function(){var r=ge(this.option);return L(r,function(n,a){if(_e.hasClass(a)){for(var i=_t(n),s=i.length,l=!1,u=s-1;u>=0;u--)i[u]&&!Va(i[u])?l=!0:(i[u]=null,!l&&s--);i.length=s,r[a]=i}}),delete r[bu],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var s=0;s<a.length;s++)if(a[s])return a[s]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,s=r.name,l=this._componentsMap.get(n);if(!l||!l.length)return[];var u;return a!=null?(u=[],L(_t(a),function(c){l[c]&&u.push(l[c])})):i!=null?u=pv("id",i,l):s!=null?u=pv("name",s,l):u=st(l,function(c){return!!c}),mv(u,r)},e.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=l(n),s=i?this.queryComponents(i):st(this._componentsMap.get(a),function(c){return!!c});return u(mv(s,r));function l(c){var f=a+"Index",d=a+"Id",h=a+"Name";return c&&(c[f]!=null||c[d]!=null||c[h]!=null)?{mainType:a,index:c[f],id:c[d],name:c[h]}:null}function u(c){return r.filter?st(c,r.filter):c}},e.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(ue(r)){var s=n,l=r;i.each(function(d,h){for(var v=0;d&&v<d.length;v++){var p=d[v];p&&l.call(s,h,p,p.componentIndex)}})}else for(var u=Z(r)?i.get(r):re(r)?this.findComponents(r):null,c=0;u&&c<u.length;c++){var f=u[c];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=_r(r,null);return st(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return st(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return st(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){ai(this),L(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},e.prototype.eachRawSeries=function(r,n){L(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,a){ai(this),L(this._seriesIndices,function(i){var s=this._componentsMap.get("series")[i];s.subType===r&&n.call(a,s,i)},this)},e.prototype.eachRawSeriesByType=function(r,n,a){return L(this.getSeriesByType(r),n,a)},e.prototype.isSeriesFiltered=function(r){return ai(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){ai(this);var a=[];L(this._seriesIndices,function(i){var s=this._componentsMap.get("series")[i];r.call(n,s,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ve(a)},e.prototype.restoreData=function(r){Ao(this);var n=this._componentsMap,a=[];n.each(function(i,s){_e.hasClass(s)&&a.push(s)}),_e.topologicalTravel(a,_e.getAllClassMainTypes(),function(i){L(n.get(i),function(s){s&&(i!=="series"||!yM(s,r))&&s.restoreData()})})},e.internalField=function(){Ao=function(r){var n=r._seriesIndices=[];L(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=ve(n)},ai=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},hv=function(r,n){r.option={},r.option[bu]=vv,r._componentsMap=ve({series:[]}),r._componentsCount=ve();var a=n.aria;re(a)&&a.enabled==null&&(a.enabled=!0),bM(n,r._theme.option),xe(n,iM,!1),r._mergeOption(n,null)}}(),e}(He);function yM(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,a=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||a!=null&&t.name!==a}}function bM(t,e){var r=t.color&&!t.colorLayer;L(e,function(n,a){a==="colorLayer"&&r||_e.hasClass(a)||(typeof n=="object"?t[a]=t[a]?xe(t[a],n,!1):ge(n):t[a]==null&&(t[a]=n))})}function pv(t,e,r){if(j(e)){var n=ve();return L(e,function(i){if(i!=null){var s=_r(i,null);s!=null&&n.set(i,!0)}}),st(r,function(i){return i&&n.get(i[t])})}else{var a=_r(e,null);return st(r,function(i){return i&&a!=null&&i[t]===a})}}function mv(t,e){return e.hasOwnProperty("subType")?st(t,function(r){return r&&r.subType===e.subType}):t}function gv(t){var e=ve();return t&&L(_t(t.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&he(_e.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Sr(ed,Jf);var _M=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],xy=function(){function t(e){L(_M,function(r){this[r]=Pe(e[r],e)},this)}return t}(),_u={},td=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];L(_u,function(a,i){var s=a.create(e,r);n=n.concat(s||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){L(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){_u[e]=r},t.get=function(e){return _u[e]},t}(),wM=/^(min|max)?(.+)$/,SM=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(L(_t(e.series),function(s){s&&s.data&&wt(s.data)&&sc(s.data)}),L(_t(e.dataset),function(s){s&&s.source&&wt(s.source)&&sc(s.source)})),e=ge(e);var a=this._optionBackup,i=xM(e,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ge(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(r=ge(n[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,s=[],l=[];if(!a.length&&!i)return l;for(var u=0,c=a.length;u<c;u++)CM(a[u].query,r,n)&&s.push(u);return!s.length&&i&&(s=[-1]),s.length&&!TM(s,this._currentMediaIndices)&&(l=ee(s,function(f){return ge(f===-1?i.option:a[f].option)})),this._currentMediaIndices=s,l},t}();function xM(t,e,r){var n=[],a,i,s=t.baseOption,l=t.timeline,u=t.options,c=t.media,f=!!t.media,d=!!(u||l||s&&s.timeline);s?(i=s,i.timeline||(i.timeline=l)):((d||f)&&(t.options=t.media=null),i=t),f&&(j(c)?L(c,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&re(v.query)&&re(v.query.option)&&mt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):a||(a=v))}):process.env.NODE_ENV!=="production"&&mt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),h(i),L(u,function(v){return h(v)}),L(n,function(v){return h(v.option)});function h(v){L(e,function(p){p(v,r)})}return{baseOption:i,timelineOptions:u||[],mediaDefault:a,mediaList:n}}function CM(t,e,r){var n={width:e,height:r,aspectratio:e/r},a=!0;return L(t,function(i,s){var l=s.match(wM);if(!(!l||!l[1]||!l[2])){var u=l[1],c=l[2].toLowerCase();kM(n[c],i,u)||(a=!1)}}),a}function kM(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function TM(t,e){return t.join(",")===e.join(",")}var Rt=L,qi=re,yv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function wu(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=yv.length;r<n;r++){var a=yv[r],i=e.normal,s=e.emphasis;i&&i[a]&&(process.env.NODE_ENV!=="production"&&tt("itemStyle.normal."+a,a),t[a]=t[a]||{},t[a].normal?xe(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),s&&s[a]&&(process.env.NODE_ENV!=="production"&&tt("itemStyle.emphasis."+a,"emphasis."+a),t[a]=t[a]||{},t[a].emphasis?xe(t[a].emphasis,s[a]):t[a].emphasis=s[a],s[a]=null)}}function vt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(process.env.NODE_ENV!=="production"&&wr("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),r?(t[e].normal=t[e].emphasis=null,ke(t[e],n)):t[e]=n),a&&(process.env.NODE_ENV!=="production"&&wr(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function Ci(t){vt(t,"itemStyle"),vt(t,"lineStyle"),vt(t,"areaStyle"),vt(t,"label"),vt(t,"labelLine"),vt(t,"upperLabel"),vt(t,"edgeLabel")}function Ge(t,e){var r=qi(t)&&t[e],n=qi(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&wr("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var a=0,i=yh.length;a<i;a++){var s=yh[a];n.hasOwnProperty(s)&&(r[s]=n[s])}}}function Gt(t){t&&(Ci(t),Ge(t,"label"),t.emphasis&&Ge(t.emphasis,"label"))}function DM(t){if(qi(t)){wu(t),Ci(t),Ge(t,"label"),Ge(t,"upperLabel"),Ge(t,"edgeLabel"),t.emphasis&&(Ge(t.emphasis,"label"),Ge(t.emphasis,"upperLabel"),Ge(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(wu(e),Gt(e));var r=t.markLine;r&&(wu(r),Gt(r));var n=t.markArea;n&&Gt(n);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!wt(i))for(var s=0;s<i.length;s++)Gt(i[s]);L(t.categories,function(c){Ci(c)})}if(a&&!wt(a))for(var s=0;s<a.length;s++)Gt(a[s]);if(e=t.markPoint,e&&e.data)for(var l=e.data,s=0;s<l.length;s++)Gt(l[s]);if(r=t.markLine,r&&r.data)for(var u=r.data,s=0;s<u.length;s++)j(u[s])?(Gt(u[s][0]),Gt(u[s][1])):Gt(u[s]);t.type==="gauge"?(Ge(t,"axisLabel"),Ge(t,"title"),Ge(t,"detail")):t.type==="treemap"?(vt(t.breadcrumb,"itemStyle"),L(t.levels,function(c){Ci(c)})):t.type==="tree"&&Ci(t.leaves)}}function Er(t){return j(t)?t:t?[t]:[]}function bv(t){return(j(t)?t[0]:t)||{}}function EM(t,e){Rt(Er(t.series),function(n){qi(n)&&DM(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Rt(r,function(n){Rt(Er(t[n]),function(a){a&&(Ge(a,"axisLabel"),Ge(a.axisPointer,"label"))})}),Rt(Er(t.parallel),function(n){var a=n&&n.parallelAxisDefault;Ge(a,"axisLabel"),Ge(a&&a.axisPointer,"label")}),Rt(Er(t.calendar),function(n){vt(n,"itemStyle"),Ge(n,"dayLabel"),Ge(n,"monthLabel"),Ge(n,"yearLabel")}),Rt(Er(t.radar),function(n){Ge(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&wr("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&wr("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&Rt(n.indicator,function(a){a.text&&tt("text","name","radar.indicator")})}),Rt(Er(t.geo),function(n){qi(n)&&(Gt(n),Rt(Er(n.regions),function(a){Gt(a)}))}),Rt(Er(t.timeline),function(n){Gt(n),vt(n,"label"),vt(n,"itemStyle"),vt(n,"controlStyle",!0);var a=n.data;j(a)&&L(a,function(i){re(i)&&(vt(i,"label"),vt(i,"itemStyle"))})}),Rt(Er(t.toolbox),function(n){vt(n,"iconStyle"),Rt(n.feature,function(a){vt(a,"iconStyle")})}),Ge(bv(t.axisPointer),"label"),Ge(bv(t.tooltip).axisPointer,"label")}function MM(t,e){for(var r=e.split(","),n=t,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function AM(t,e,r,n){for(var a=e.split(","),i=t,s,l=0;l<a.length-1;l++)s=a[l],i[s]==null&&(i[s]={}),i=i[s];i[a[l]]==null&&(i[a[l]]=r)}function _v(t){t&&L(NM,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var NM=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],BM=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Su=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ii(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Su.length;r++){var n=Su[r][1],a=Su[r][0];e[n]!=null&&(e[a]=e[n],process.env.NODE_ENV!=="production"&&tt(n,a))}}function wv(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&tt("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function Sv(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,process.env.NODE_ENV!=="production"&&tt("downplay","blur","sunburst"))}function VM(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&tt("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function Cy(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Cy(t[r].children,e)}function ky(t,e){EM(t,e),t.series=_t(t.series),L(t.series,function(r){if(re(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&tt("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&tt("clockWise","clockwise")),wv(r.label);var a=r.data;if(a&&!wt(a))for(var i=0;i<a.length;i++)wv(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&tt("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var s=MM(r,"pointer.color");s!=null&&AM(r,"itemStyle.color",s)}else if(n==="bar"){ii(r),ii(r.backgroundStyle),ii(r.emphasis);var a=r.data;if(a&&!wt(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(ii(a[i]),ii(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var l=r.highlightPolicy;l&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=l,process.env.NODE_ENV!=="production"&&tt("highlightPolicy","emphasis.focus","sunburst"))),Sv(r),Cy(r.data,Sv)}else n==="graph"||n==="sankey"?VM(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&tt("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&wr("`mapLocation` is not used anymore."),ke(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&tt("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),_v(r)}}),t.dataRange&&(t.visualMap=t.dataRange),L(BM,function(r){var n=t[r];n&&(j(n)||(n=[n]),L(n,function(a){_v(a)}))})}function IM(t){var e=ve();t.eachSeries(function(r){var n=r.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=r.getData(),s={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!s.stackedDimension||!(s.isStackedByIndex||s.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(s)}}),e.each(LM)}function LM(t){L(t,function(e,r){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],s=e.data,l=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";s.modify(i,function(c,f,d){var h=s.get(e.stackedDimension,d);if(isNaN(h))return a;var v,p;l?p=s.getRawIndex(d):v=s.get(e.stackedByDimension,d);for(var g=NaN,m=r-1;m>=0;m--){var y=t[m];if(l||(p=y.data.rawIndexOf(y.stackedByDimension,v)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(u==="all"||u==="positive"&&b>0||u==="negative"&&b<0||u==="samesign"&&h>=0&&b>0||u==="samesign"&&h<=0&&b<0){h=tT(h,b),g=b;break}}}return n[0]=h,n[1]=g,n})})}var bl=function(){function t(e){this.data=e.data||(e.sourceFormat===Cr?{}:[]),this.sourceFormat=e.sourceFormat||by,this.seriesLayoutBy=e.seriesLayoutBy||Pr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&wy(this,n)===it.Must&&(a.type="ordinal")}}return t}();function rd(t){return t instanceof bl}function Oc(t,e,r){r=r||Dy(t);var n=e.seriesLayoutBy,a=zM(t,r,n,e.sourceHeader,e.dimensions),i=new bl({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ge(e)});return i}function Ty(t){return new bl({data:t,sourceFormat:wt(t)?Lr:Jt})}function PM(t){return new bl({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:ge(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Dy(t){var e=by;if(wt(t))e=Lr;else if(j(t)){t.length===0&&(e=Nt);for(var r=0,n=t.length;r<n;r++){var a=t[r];if(a!=null){if(j(a)||wt(a)){e=Nt;break}else if(re(a)){e=lr;break}}}}else if(re(t)){for(var i in t)if(jn(t,i)&&At(t[i])){e=Cr;break}}return e}function zM(t,e,r,n,a){var i,s;if(!t)return{dimensionsDefine:xv(a),startIndex:s,dimensionsDetectedCount:i};if(e===Nt){var l=t;n==="auto"||n==null?Cv(function(c){c!=null&&c!=="-"&&(Z(c)?s==null&&(s=1):s=0)},r,l,10):s=Ve(n)?n:n?1:0,!a&&s===1&&(a=[],Cv(function(c,f){a[f]=c!=null?c+"":""},r,l,1/0)),i=a?a.length:r===Wa?l.length:l[0]?l[0].length:null}else if(e===lr)a||(a=RM(t));else if(e===Cr)a||(a=[],L(t,function(c,f){a.push(f)}));else if(e===Jt){var u=to(t[0]);i=j(u)&&u.length||1}else e===Lr&&process.env.NODE_ENV!=="production"&&he(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:s,dimensionsDefine:xv(a),dimensionsDetectedCount:i}}function RM(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Oe(r)}function xv(t){if(t){var e=ve();return ee(t,function(r,n){r=re(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function Cv(t,e,r,n){if(e===Wa)for(var a=0;a<r.length&&a<n;a++)t(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)t(i[a],a)}function Ey(t){var e=t.sourceFormat;return e===lr||e===Cr}var Vn,In,Ln,kv,Tv,My=function(){function t(e,r){var n=rd(e)?e:Ty(e);this._source=n;var a=this._data=n.data;if(n.sourceFormat===Lr){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=a}Tv(this,a,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;Tv=function(s,l,u){var c=u.sourceFormat,f=u.seriesLayoutBy,d=u.startIndex,h=u.dimensionsDefine,v=kv[nd(c,f)];if(process.env.NODE_ENV!=="production"&&he(v,"Invalide sourceFormat: "+c),W(s,v),c===Lr)s.getItem=r,s.count=a,s.fillStorage=n;else{var p=Ay(c,f);s.getItem=Pe(p,null,l,d,h);var g=Ny(c,f);s.count=Pe(g,null,l,d,h)}};var r=function(s,l){s=s-this._offset,l=l||[];for(var u=this._data,c=this._dimSize,f=c*s,d=0;d<c;d++)l[d]=u[f+d];return l},n=function(s,l,u,c){for(var f=this._data,d=this._dimSize,h=0;h<d;h++){for(var v=c[h],p=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],m=l-s,y=u[h],b=0;b<m;b++){var _=f[b*d+h];y[s+b]=_,_<p&&(p=_),_>g&&(g=_)}v[0]=p,v[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};kv=(e={},e[Nt+"_"+Pr]={pure:!0,appendData:i},e[Nt+"_"+Wa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[lr]={pure:!0,appendData:i},e[Cr]={pure:!0,appendData:function(s){var l=this._data;L(s,function(u,c){for(var f=l[c]||(l[c]=[]),d=0;d<(u||[]).length;d++)f.push(u[d])})}},e[Jt]={appendData:i},e[Lr]={persistent:!1,pure:!0,appendData:function(s){process.env.NODE_ENV!=="production"&&he(wt(s),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=s},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(s){for(var l=0;l<s.length;l++)this._data.push(s[l])}}(),t}(),Dv=function(t,e,r,n){return t[n]},OM=(Vn={},Vn[Nt+"_"+Pr]=function(t,e,r,n){return t[n+e]},Vn[Nt+"_"+Wa]=function(t,e,r,n,a){n+=e;for(var i=a||[],s=t,l=0;l<s.length;l++){var u=s[l];i[l]=u?u[n]:null}return i},Vn[lr]=Dv,Vn[Cr]=function(t,e,r,n,a){for(var i=a||[],s=0;s<r.length;s++){var l=r[s].name;if(process.env.NODE_ENV!=="production"&&l==null)throw new Error;var u=t[l];i[s]=u?u[n]:null}return i},Vn[Jt]=Dv,Vn);function Ay(t,e){var r=OM[nd(t,e)];return process.env.NODE_ENV!=="production"&&he(r,'Do not support get item on "'+t+'", "'+e+'".'),r}var Ev=function(t,e,r){return t.length},$M=(In={},In[Nt+"_"+Pr]=function(t,e,r){return Math.max(0,t.length-e)},In[Nt+"_"+Wa]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},In[lr]=Ev,In[Cr]=function(t,e,r){var n=r[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var a=t[n];return a?a.length:0},In[Jt]=Ev,In);function Ny(t,e){var r=$M[nd(t,e)];return process.env.NODE_ENV!=="production"&&he(r,'Do not support count on "'+t+'", "'+e+'".'),r}var xu=function(t,e,r){return t[e]},FM=(Ln={},Ln[Nt]=xu,Ln[lr]=function(t,e,r){return t[r]},Ln[Cr]=xu,Ln[Jt]=function(t,e,r){var n=to(t);return n instanceof Array?n[e]:n},Ln[Lr]=xu,Ln);function By(t){var e=FM[t];return process.env.NODE_ENV!=="production"&&he(e,'Do not support get value on "'+t+'".'),e}function nd(t,e){return t===Nt?t+"_"+e:t}function za(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(r!=null){var s=t.getDimensionIndex(r),l=a.getDimensionProperty(s);return By(i)(n,s,l)}else{var u=n;return i===Jt&&(u=to(n)),u}}}}var HM=/\{@(.+?)\}/g,GM=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),a=this.getRawValue(e,r),i=n.getRawIndex(e),s=n.getName(e),l=n.getRawDataItem(e),u=n.getItemVisual(e,"style"),c=u&&u[n.getItemVisual(e,"drawType")||"fill"],f=u&&u.stroke,d=this.mainType,h=d==="series",v=n.userOutput&&n.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:s,dataIndex:i,data:l,dataType:r,value:a,color:c,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,a,i,s){r=r||"normal";var l=this.getData(n),u=this.getDataParams(e,n);if(s&&(u.value=s.interpolatedValue),a!=null&&j(u.value)&&(u.value=u.value[a]),!i){var c=l.getItemModel(e);i=c.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ue(i))return u.status=r,u.dimensionIndex=a,i(u);if(Z(i)){var f=gy(i,u);return f.replace(HM,function(d,h){var v=h.length,p=h;p.charAt(0)==="["&&p.charAt(v-1)==="]"&&(p=+p.slice(1,v-1),process.env.NODE_ENV!=="production"&&isNaN(p)&&mt("Invalide label formatter: @"+h+", only support @[0], @[1], @[2], ..."));var g=za(l,e,p);if(s&&j(s.interpolatedValue)){var m=l.getDimensionIndex(p);m>=0&&(g=s.interpolatedValue[m])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return za(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function Mv(t){var e,r;return re(t)?t.type?r=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Cs(t)):e=t,{text:e,frag:r}}function zi(t){return new WM(t)}var WM=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var s=f(this._modBy),l=this._modDataCount||0,u=f(e&&e.modBy),c=e&&e.modDataCount||0;(s!==u||l!==c)&&(i="reset");function f(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(n)),this._modBy=u,this._modDataCount=c;var h=e&&e.step;if(r?(process.env.NODE_ENV!=="production"&&he(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&he(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,p=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(d||v<p)){var g=this._progress;if(j(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],v,p,u,c);else this._doProgress(g,v,p,u,c)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;process.env.NODE_ENV!=="production"&&he(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,a,i){Av.reset(r,n,a,i),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Av.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),j(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&he(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),Av=function(){var t,e,r,n,a,i={reset:function(u,c,f,d){e=u,t=c,r=f,n=d,a=Math.ceil(n/r),i.next=r>1&&n>0?l:s}};return i;function s(){return e<t?e++:null}function l(){var u=e%a*r+Math.ceil(e/a),c=e>=t?null:u<n?u:e;return e++,c}}();function ls(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!Ve(t)&&t!=null&&t!=="-"&&(t=+zr(t)),t==null||t===""?NaN:Number(t))}ve({number:function(t){return parseFloat(t)},time:function(t){return+zr(t)},trim:function(t){return Z(t)?yr(t):t}});var UM=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Ve(e)?e:xs(e),a=Ve(r)?r:xs(r),i=isNaN(n),s=isNaN(a);if(i&&(n=this._incomparable),s&&(a=this._incomparable),i&&s){var l=Z(e),u=Z(r);l&&(n=u?e:0),u&&(a=l?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t}(),YM=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return ls(e,r)},t}();function XM(t,e){var r=new YM,n=t.data,a=r.sourceFormat=t.sourceFormat,i=t.startIndex,s="";t.seriesLayoutBy!==Pr&&(process.env.NODE_ENV!=="production"&&(s='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Dt(s));var l=[],u={},c=t.dimensionsDefine;if(c)L(c,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(l.push(b),y!=null){var _="";jn(u,y)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+y+'" duplicated.'),Dt(_)),u[y]=b}});else for(var f=0;f<t.dimensionsDetectedCount;f++)l.push({index:f});var d=Ay(a,Pr);e.__isBuiltIn&&(r.getRawDataItem=function(g){return d(n,i,l,g)},r.getRawData=Pe(qM,null,t)),r.cloneRawData=Pe(jM,null,t);var h=Ny(a,Pr);r.count=Pe(h,null,n,i,l);var v=By(a);r.retrieveValue=function(g,m){var y=d(n,i,l,g);return p(y,m)};var p=r.retrieveValueFromItem=function(g,m){if(g!=null){var y=l[m];if(y)return v(g,m,y.name)}};return r.getDimensionInfo=Pe(ZM,null,l,u),r.cloneAllDimensionInfo=Pe(KM,null,l),r}function qM(t){var e=t.sourceFormat;if(!ad(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+e),Dt(r)}return t.data}function jM(t){var e=t.sourceFormat,r=t.data;if(!ad(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+e),Dt(n)}if(e===Nt){for(var a=[],i=0,s=r.length;i<s;i++)a.push(r[i].slice());return a}else if(e===lr){for(var a=[],i=0,s=r.length;i<s;i++)a.push(W({},r[i]));return a}}function ZM(t,e,r){if(r!=null){if(Ve(r)||!isNaN(r)&&!jn(e,r))return t[r];if(jn(e,r))return e[r]}}function KM(t){return ge(t)}var Vy=ve();function QM(t){t=ge(t);var e=t.type,r="";e||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),Dt(r));var n=e.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),Dt(r));var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),t.__isBuiltIn=a,Vy.set(e,t)}function JM(t,e,r){var n=_t(t),a=n.length,i="";a||(process.env.NODE_ENV!=="production"&&(i="If `transform` declared, it should at least contain one transform."),Dt(i));for(var s=0,l=a;s<l;s++){var u=n[s];e=eA(u,e,r,a===1?null:s),s!==l-1&&(e.length=Math.max(e.length,1))}return e}function eA(t,e,r,n){var a="";e.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),Dt(a)),re(t)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof t+"."),Dt(a));var i=t.type,s=Vy.get(i);s||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+i+'".'),Dt(a));var l=ee(e,function(f){return XM(f,s)}),u=_t(s.transform({upstream:l[0],upstreamList:l,config:ge(t.config)}));if(process.env.NODE_ENV!=="production"&&t.print){var c=ee(u,function(f){var d=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+d+" ===","- transform result data:",Cs(f.data),"- transform result dimensions:",Cs(f.dimensions)].join(`
|
|
247
|
+
`)}).join(`
|
|
248
|
+
`);oT(c)}return ee(u,function(f,d){var h="";re(f)||(process.env.NODE_ENV!=="production"&&(h="A transform should not return some empty results."),Dt(h)),f.data||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be not be null or undefined"),Dt(h));var v=Dy(f.data);ad(v)||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be array rows or object rows."),Dt(h));var p,g=e[0];if(g&&d===0&&!f.dimensions){var m=g.startIndex;m&&(f.data=g.data.slice(0,m).concat(f.data)),p={seriesLayoutBy:Pr,sourceHeader:m,dimensions:g.metaRawOption.dimensions}}else p={seriesLayoutBy:Pr,sourceHeader:0,dimensions:f.dimensions};return Oc(f.data,p,null)})}function ad(t){return t===Nt||t===lr}var _l="undefined",tA=typeof Uint32Array===_l?Array:Uint32Array,rA=typeof Uint16Array===_l?Array:Uint16Array,Iy=typeof Int32Array===_l?Array:Int32Array,Nv=typeof Float64Array===_l?Array:Float64Array,Ly={float:Nv,int:Iy,ordinal:Array,number:Array,time:Nv},Cu;function ca(t){return t>65535?tA:rA}function fa(){return[1/0,-1/0]}function nA(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Bv(t,e,r,n,a){var i=Ly[r||"float"];if(a){var s=t[e],l=s&&s.length;if(l!==n){for(var u=new i(n),c=0;c<l;c++)u[c]=s[c];t[e]=u}}else t[e]=new i(n)}var $c=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ve()}return t.prototype.initData=function(e,r,n){process.env.NODE_ENV!=="production"&&he(ue(e.getItem)&&ue(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=Cu[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var s=Ey(a);this._dimensions=ee(r,function(l){return process.env.NODE_ENV!=="production"&&s&&he(l.property!=null),{type:l.type,property:l.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(e,i),this._chunks[i]=new Ly[r||"float"](this._rawCount),this._rawExtent[i]=fa(),i},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,s=a.ordinalOffset||0,l=n.length;s===0&&(i[e]=fa());for(var u=i[e],c=s;c<l;c++){var f=n[c]=r.parseAndCollect(n[c]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}a.ordinalMeta=r,a.ordinalOffset=l,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&he(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(e);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,a=this._dimensions,i=a.length,s=this._rawExtent,l=this.count(),u=l+Math.max(e.length,r||0),c=0;c<i;c++){var f=a[c];Bv(n,c,f.type,u,!0)}for(var d=[],h=l;h<u;h++)for(var v=h-l,p=0;p<i;p++){var f=a[p],g=Cu.arrayRows.call(this,e[v]||d,f.property,v,p);n[p][h]=g;var m=s[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}return this._rawCount=this._count=u,{start:l,end:u}},t.prototype._initDataFromProvider=function(e,r,n){for(var a=this._provider,i=this._chunks,s=this._dimensions,l=s.length,u=this._rawExtent,c=ee(s,function(b){return b.property}),f=0;f<l;f++){var d=s[f];u[f]||(u[f]=fa()),Bv(i,f,d.type,r,n)}if(a.fillStorage)a.fillStorage(e,r,i,u);else for(var h=[],v=e;v<r;v++){h=a.getItem(v,h);for(var p=0;p<l;p++){var g=i[p],m=this._dimValueGetter(h,c[p],v,p);g[v]=m;var y=u[p];m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],a=[];if(r==null){r=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,s=a.length;i<s;i++)n.push(this.get(a[i],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var s=this.get(e,a);isNaN(s)||(n+=s)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,s){return i-s}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var s=(a+i)/2|0;if(r[s]<e)a=s+1;else if(r[s]>e)i=s-1;else return s}return-1},t.prototype.indicesOfNearest=function(e,r,n){var a=this._chunks,i=a[e],s=[];if(!i)return s;n==null&&(n=1/0);for(var l=1/0,u=-1,c=0,f=0,d=this.count();f<d;f++){var h=this.getRawIndex(f),v=r-i[h],p=Math.abs(v);p<=n&&((p<l||p===l&&v>=0&&u<0)&&(l=p,u=v,c=0),v===u&&(s[c++]=f))}return s.length=c,s},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=r[i]}else e=new n(r.buffer,0,a)}else{var n=ca(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=ca(n._rawCount),s=new i(a),l=[],u=e.length,c=0,f=e[0],d=n._chunks,h=0;h<a;h++){var v=void 0,p=n.getRawIndex(h);if(u===0)v=r(h);else if(u===1){var g=d[f][p];v=r(g,h)}else{for(var m=0;m<u;m++)l[m]=d[e[m]][p];l[m]=h,v=r.apply(null,l)}v&&(s[c++]=p)}return c<a&&(n._indices=s),n._count=c,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var a=Oe(e),i=a.length;if(!i)return this;var s=r.count(),l=ca(r._rawCount),u=new l(s),c=0,f=a[0],d=e[f][0],h=e[f][1],v=r._chunks,p=!1;if(!r._indices){var g=0;if(i===1){for(var m=v[a[0]],y=0;y<n;y++){var b=m[y];(b>=d&&b<=h||isNaN(b))&&(u[c++]=g),g++}p=!0}else if(i===2){for(var m=v[a[0]],_=v[a[1]],w=e[a[1]][0],S=e[a[1]][1],y=0;y<n;y++){var b=m[y],x=_[y];(b>=d&&b<=h||isNaN(b))&&(x>=w&&x<=S||isNaN(x))&&(u[c++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y<s;y++){var C=r.getRawIndex(y),b=v[a[0]][C];(b>=d&&b<=h||isNaN(b))&&(u[c++]=C)}else for(var y=0;y<s;y++){for(var k=!0,C=r.getRawIndex(y),D=0;D<i;D++){var E=a[D],b=v[E][C];(b<e[E][0]||b>e[E][1])&&(k=!1)}k&&(u[c++]=r.getRawIndex(y))}return c<s&&(r._indices=u),r._count=c,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var a=e._chunks,i=[],s=r.length,l=e.count(),u=[],c=e._rawExtent,f=0;f<r.length;f++)c[r[f]]=fa();for(var d=0;d<l;d++){for(var h=e.getRawIndex(d),v=0;v<s;v++)u[v]=a[r[v]][h];u[s]=d;var p=n&&n.apply(null,u);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var f=0;f<p.length;f++){var g=r[f],m=p[f],y=c[g],b=a[g];b&&(b[h]=m),m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),a=n._chunks,i=a[e],s=this.count(),l=0,u=Math.floor(1/r),c=this.getRawIndex(0),f,d,h,v=new(ca(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));v[l++]=c;for(var p=1;p<s-1;p+=u){for(var g=Math.min(p+u,s-1),m=Math.min(p+u*2,s),y=(m+g)/2,b=0,_=g;_<m;_++){var w=this.getRawIndex(_),S=i[w];isNaN(S)||(b+=S)}b/=m-g;var x=p,C=Math.min(p+u,s),k=p-1,D=i[c];f=-1,h=x;for(var E=-1,T=0,_=x;_<C;_++){var w=this.getRawIndex(_),S=i[w];if(isNaN(S)){T++,E<0&&(E=w);continue}d=Math.abs((k-y)*(S-D)-(k-_)*(b-D)),d>f&&(f=d,h=w)}T>0&&T<C-x&&(v[l++]=Math.min(E,h),h=Math.max(E,h)),v[l++]=h,c=h}return v[l++]=this.getRawIndex(s-1),n._count=l,n._indices=v,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/r),s=a[e],l=this.count(),u=new(ca(this._rawCount))(Math.ceil(l/i)*2),c=0,f=0;f<l;f+=i){var d=f,h=s[this.getRawIndex(d)],v=f,p=s[this.getRawIndex(v)],g=i;f+i>l&&(g=l-f);for(var m=0;m<g;m++){var y=this.getRawIndex(f+m),b=s[y];b<h&&(h=b,d=f+m),b>p&&(p=b,v=f+m)}var _=this.getRawIndex(d),w=this.getRawIndex(v);d<v?(u[c++]=_,u[c++]=w):(u[c++]=w,u[c++]=_)}return n._count=c,n._indices=u,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,a){for(var i=this.clone([e],!0),s=i._chunks,l=[],u=Math.floor(1/r),c=s[e],f=this.count(),d=i._rawExtent[e]=fa(),h=new(ca(this._rawCount))(Math.ceil(f/u)),v=0,p=0;p<f;p+=u){u>f-p&&(u=f-p,l.length=u);for(var g=0;g<u;g++){var m=this.getRawIndex(p+g);l[g]=c[m]}var y=n(l),b=this.getRawIndex(Math.min(p+a(l,y)||0,f-1));c[b]=y,y<d[0]&&(d[0]=y),y>d[1]&&(d[1]=y),h[v++]=b}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,a=this._chunks,i=0,s=this.count();i<s;i++){var l=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[e[0]][l],i);break;case 2:r(a[e[0]][l],a[e[1]][l],i);break;default:for(var u=0,c=[];u<n;u++)c[u]=a[e[u]][l];c[u]=i,r.apply(null,c)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=fa();if(!r)return n;var a=this.count(),i=!this._indices,s;if(i)return this._rawExtent[e].slice();if(s=this._extent[e],s)return s.slice();s=n;for(var l=s[0],u=s[1],c=0;c<a;c++){var f=this.getRawIndex(c),d=r[f];d<l&&(l=d),d>u&&(u=d)}return s=[l,u],this._extent[e]=s,s},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},t.prototype.clone=function(e,r){var n=new t,a=this._chunks,i=e&&ln(e,function(l,u){return l[u]=!0,l},{});if(i)for(var s=0;s<a.length;s++)n._chunks[s]=i[s]?nA(a[s]):a[s];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ge(this._extent),e._rawExtent=ge(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,a,i){return ls(r[i],this._dimensions[i])}Cu={arrayRows:e,objectRows:function(r,n,a,i){return ls(r[n],this._dimensions[i])},keyedColumns:e,original:function(r,n,a,i){var s=r&&(r.value==null?r:r.value);return ls(s instanceof Array?s[i]:s,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),t}(),aA=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(oi(e)){var s=e,l=void 0,u=void 0,c=void 0;if(n){var f=r[0];f.prepareSource(),c=f.getSource(),l=c.data,u=c.sourceFormat,i=[f._getVersionSign()]}else l=s.get("data",!0),u=wt(l)?Lr:Jt,i=[];var d=this._getSourceMetaRawOption()||{},h=c&&c.metaRawOption||{},v=fe(d.seriesLayoutBy,h.seriesLayoutBy)||null,p=fe(d.sourceHeader,h.sourceHeader),g=fe(d.dimensions,h.dimensions),m=v!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||g;a=m?[Oc(l,{seriesLayoutBy:v,sourceHeader:p,dimensions:g},u)]:[]}else{var y=e;if(n){var b=this._applyTransform(r);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[Oc(_,this._getSourceMetaRawOption(),null)],i=[]}}process.env.NODE_ENV!=="production"&&he(a&&i),this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&he(a!=null||n!=null),a!=null){var i="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(i="When using `fromTransformResult`, there should be only one upstream dataset"),Vv(i))}var s,l=[],u=[];return L(e,function(c){c.prepareSource();var f=c.getSource(a||0),d="";a!=null&&!f&&(process.env.NODE_ENV!=="production"&&(d="Can not retrieve result by `fromTransformResult`: "+a),Vv(d)),l.push(f),u.push(c._getVersionSign())}),n?s=JM(n,l,{datasetIndex:r.componentIndex}):a!=null&&(s=[PM(l[0])]),{sourceList:s,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&he(oi(this._sourceHost),"Can only call getDataStore on series source manager.");var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var a=0,i=this._storeList,s=i[a];s||(s=i[a]={});var l=s[n];if(!l){var u=this._getUpstreamSourceManagers()[0];oi(this._sourceHost)&&u?l=u._innerGetDataStore(e,r,n):(l=new $c,l.initData(new My(r,e.length),e)),s[n]=l}return l},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(oi(e)){var r=Qf(e);return r?[r.getSourceManager()]:[]}else return ee(uM(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,a;if(oi(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},t}();function oi(t){return t.mainType==="series"}function Vv(t){throw new Error(t)}var iA="line-height:1";function Py(t){var e=t.lineHeight;return e==null?iA:"line-height:"+kt(e+"")+"px"}function zy(t,e){var r=t.color||"#6e7079",n=t.fontSize||12,a=t.fontWeight||"400",i=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+kt(n+"")+"px;color:"+kt(r)+";font-weight:"+kt(a+""),valueStyle:"font-size:"+kt(s+"")+"px;color:"+kt(i)+";font-weight:"+kt(l+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:s,fill:i,fontWeight:l}}}var oA=[0,10,20,30],sA=["",`
|
|
249
|
+
`,`
|
|
250
|
+
|
|
251
|
+
`,`
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
`];function ji(t,e){return e.type=t,e}function Fc(t){return t.type==="section"}function Ry(t){return Fc(t)?lA:uA}function Oy(t){if(Fc(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return L(t.blocks,function(a){var i=Oy(a);i>=e&&(e=i+ +(n&&(!i||Fc(a)&&!a.noHeader)))}),e}return 0}function lA(t,e,r,n){var a=e.noHeader,i=cA(Oy(e)),s=[],l=e.blocks||[];he(!l||j(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(jn(c,u)){var f=new UM(c[u],null);l.sort(function(g,m){return f.evaluate(g.sortParam,m.sortParam)})}else u==="seriesDesc"&&l.reverse()}L(l,function(g,m){var y=e.valueFormatter,b=Ry(g)(y?W(W({},t),{valueFormatter:y}):t,g,m>0?i.html:0,n);b!=null&&s.push(b)});var d=t.renderMode==="richText"?s.join(i.richText):Hc(n,s.join(""),a?r:i.html);if(a)return d;var h=zc(e.header,"ordinal",t.useUTC),v=zy(n,t.renderMode).nameStyle,p=Py(n);return t.renderMode==="richText"?$y(t,h,v)+i.richText+d:Hc(n,'<div style="'+v+";"+p+';">'+kt(h)+"</div>"+d,r)}function uA(t,e,r,n){var a=t.renderMode,i=e.noName,s=e.noValue,l=!e.markerType,u=e.name,c=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(w){return w=j(w)?w:[w],ee(w,function(S,x){return zc(S,j(v)?v[x]:v,c)})};if(!(i&&s)){var d=l?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),h=i?"":zc(u,"ordinal",c),v=e.valueType,p=s?[]:f(e.value,e.dataIndex),g=!l||!i,m=!l&&i,y=zy(n,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(l?"":d)+(i?"":$y(t,h,b))+(s?"":hA(t,p,g,m,_)):Hc(n,(l?"":d)+(i?"":fA(h,!l,b))+(s?"":dA(p,g,m,_)),r)}}function Iv(t,e,r,n,a,i){if(t){var s=Ry(t),l={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return s(l,t,0,i)}}function cA(t){return{html:oA[t],richText:sA[t]}}function Hc(t,e,r){var n='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",i=Py(t);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function fA(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+kt(t)+"</span>"}function dA(t,e,r,n){var a=r?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=j(t)?t:[t],'<span style="'+i+";"+n+'">'+ee(t,function(s){return kt(s)}).join(" ")+"</span>"}function $y(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function hA(t,e,r,n,a){var i=[a],s=n?10:20;return r&&i.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(j(e)?e.join(" "):e,i)}function vA(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Qn(n)}function Fy(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var ku=function(){function t(){this.richTextStyles={},this._nextStyleNameId=yg()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a=n==="richText"?this._generateStyleName():null,i=eM({color:r,type:e,renderMode:n,markerId:a});return Z(i)?i:(process.env.NODE_ENV!=="production"&&he(a),this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};j(r)?L(r,function(i){return W(n,i)}):W(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t}();function pA(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),s=i.length,l=e.getRawValue(r),u=j(l),c=vA(e,r),f,d,h,v;if(s>1||u&&!s){var p=mA(l,e,r,i,c);f=p.inlineValues,d=p.inlineValueTypes,h=p.blocks,v=p.inlineValues[0]}else if(s){var g=a.getDimensionInfo(i[0]);v=f=za(a,r,i[0]),d=g.type}else v=f=u?l[0]:l;var m=Af(e),y=m&&e.name||"",b=a.getName(r),_=n?y:b;return ji("section",{header:y,noHeader:n||!m,sortParam:v,blocks:[ji("nameValue",{markerType:"item",markerColor:c,name:_,noName:!yr(_),value:f,valueType:d,dataIndex:r})].concat(h||[])})}function mA(t,e,r,n,a){var i=e.getData(),s=ln(t,function(d,h,v){var p=i.getDimensionInfo(v);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),l=[],u=[],c=[];n.length?L(n,function(d){f(za(i,r,d),d)}):L(t,f);function f(d,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(s?c.push(ji("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:d,valueType:v.type})):(l.push(d),u.push(v.type)))}return{inlineValues:l,inlineValueTypes:u,blocks:c}}var Ur=Ue();function No(t,e){return t.getName(e)||t.getId(e)}var gA="__universalTransitionEnabled",ir=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=zi({count:bA,reset:_A}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=Ur(this).sourceManager=new aA(this);i.prepareSource();var s=this.getInitialData(r,a);Pv(s,this),this.dataTask.context.data=s,process.env.NODE_ENV!=="production"&&he(s,"getInitialData returned invalid data."),Ur(this).dataBeforeProcessed=s,Lv(this),this._initSelectedMapFromData(s)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=Xi(this),i=a?yl(r):{},s=this.subType;_e.hasClass(s)&&(s+="Series"),xe(r,n.getTheme().get(this.subType)),xe(r,this.getDefaultOption()),Dc(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Pa(r,i,a)},e.prototype.mergeOption=function(r,n){r=xe(this.option,r,!0),this.fillDataTextStyle(r.data);var a=Xi(this);a&&Pa(this.option,r,a);var i=Ur(this).sourceManager;i.dirty(),i.prepareSource();var s=this.getInitialData(r,n);Pv(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Ur(this).dataBeforeProcessed=s,Lv(this),this._initSelectedMapFromData(s)},e.prototype.fillDataTextStyle=function(r){if(r&&!wt(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Dc(r[a],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Gc(this);if(n){var a=n.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}else return Ur(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Gc(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}Ur(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ve(r)},e.prototype.getSourceManager=function(){return Ur(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ur(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.formatTooltip=function(r,n,a){return pA({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(oe.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,s=Jf.prototype.getColorFromPalette.call(this,r,n,a);return s||(s=i.getColorFromPalette(r,n,a)),s},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,s=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l<r.length;l++){var u=r[l],c=No(s,u);a[c]=!1,this._selectedDataIndicesMap[c]=-1}}},e.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Oe(r),a=[],i=0;i<n.length;i++){var s=r[n[i]];s>=0&&a.push(s)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[No(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[gA])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var a,i,s=this.option,l=s.selectedMode,u=n.length;if(!(!l||!u)){if(l==="series")s.selectedMap="all";else if(l==="multiple"){re(s.selectedMap)||(s.selectedMap={});for(var c=s.selectedMap,f=0;f<u;f++){var d=n[f],h=No(r,d);c[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(d)}}else if(l==="single"||l===!0){var v=n[u-1],h=No(r,v);s.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=r.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return _e.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(_e);Sr(ir,GM);Sr(ir,Jf);Cg(ir,_e);function Lv(t){var e=t.name;Af(t)||(t.name=yA(t)||e)}function yA(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return L(r,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function bA(t){return t.model.getRawData().count()}function _A(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),wA}function wA(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Pv(t,e){L(zk(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,We(SA,e))})}function SA(t,e){var r=Gc(t);return r&&r.setOutputEnd((e||this).count()),e}function Gc(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}var or=function(){function t(){this.group=new ut,this.uid=fl("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();Bf(or);Js(or);function id(){var t=Ue();return function(e){var r=t(e),n=e.pipelineContext,a=!!r.large,i=!!r.progressiveRender,s=r.large=!!(n&&n.large),l=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==s||i!==l)&&"reset"}}var Hy=Ue(),xA=id(),Kt=function(){function t(){this.group=new ut,this.uid=fl("viewChart"),this.renderTask=zi({plan:CA,reset:kA}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},t.prototype.highlight=function(e,r,n,a){var i=e.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&mt("Unknown dataType "+a.dataType);return}Rv(i,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var i=e.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&mt("Unknown dataType "+a.dataType);return}Rv(i,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateLayout=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){ll(this.group,e)},t.markUpdateMethod=function(e,r){Hy(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function zv(t,e,r){t&&Ia(t)&&(e==="emphasis"?Ds:Es)(t,r)}function Rv(t,e,r){var n=Zn(t,e),a=e&&e.highlightKey!=null?RD(e.highlightKey):null;n!=null?L(_t(n),function(i){zv(t.getItemGraphicEl(i),r,a)}):t.eachItemGraphicEl(function(i){zv(i,r,a)})}Bf(Kt,["dispose"]);Js(Kt);function CA(t){return xA(t.model)}function kA(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,s=t.view,l=a&&Hy(a).updateMethod,u=i?"incrementalPrepareRender":l&&s[l]?l:"render";return u!=="render"&&s[u](e,r,n,a),TA[u]}var TA={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},zs="\0__throttleOriginMethod",Ov="\0__throttleRate",$v="\0__throttleType";function wl(t,e,r){var n,a=0,i=0,s=null,l,u,c,f;e=e||0;function d(){i=new Date().getTime(),s=null,t.apply(u,c||[])}var h=function(){for(var v=[],p=0;p<arguments.length;p++)v[p]=arguments[p];n=new Date().getTime(),u=this,c=v;var g=f||e,m=f||r;f=null,l=n-(m?a:i)-g,clearTimeout(s),m?s=setTimeout(d,g):l>=0?d():s=setTimeout(d,-l),a=n};return h.clear=function(){s&&(clearTimeout(s),s=null)},h.debounceNextCall=function(v){f=v},h}function Gy(t,e,r,n){var a=t[e];if(a){var i=a[zs]||a,s=a[$v],l=a[Ov];if(l!==r||s!==n){if(r==null||!n)return t[e]=i;a=t[e]=wl(i,r,n==="debounce"),a[zs]=i,a[$v]=n,a[Ov]=r}return a}}function Wc(t,e){var r=t[e];r&&r[zs]&&(r.clear&&r.clear(),t[e]=r[zs])}var Fv=Ue(),Hv={itemStyle:Gi(ny,!0),lineStyle:Gi(ry,!0)},DA={lineStyle:"stroke",itemStyle:"fill"};function Wy(t,e){var r=t.visualStyleMapper||Hv[e];return r||(console.warn("Unknown style type '"+e+"'."),Hv.itemStyle)}function Uy(t,e){var r=t.visualDrawType||DA[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var EA={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),i=Wy(t,n),s=i(a),l=a.getShallow("decal");l&&(r.setVisual("decal",l),l.dirty=!0);var u=Uy(t,n),c=s[u],f=ue(c)?c:null,d=s.fill==="auto"||s.stroke==="auto";if(!s[u]||f||d){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());s[u]||(s[u]=h,r.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||ue(s.fill)?h:s.fill,s.stroke=s.stroke==="auto"||ue(s.stroke)?h:s.stroke}if(r.setVisual("style",s),r.setVisual("drawType",u),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,p){var g=t.getDataParams(p),m=W({},s);m[u]=f(g),v.setItemVisual(p,"style",m)}}}},si=new He,MA={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=Wy(t,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(s,l){var u=s.getRawDataItem(l);if(u&&u[n]){si.option=u[n];var c=a(si),f=s.ensureUniqueItemVisual(l,"style");W(f,c),si.option.decal&&(s.setItemVisual(l,"decal",si.option.decal),si.option.decal.dirty=!0),i in c&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},AA={performRawSeries:!0,overallReset:function(t){var e=ve();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),Fv(r).scope=i}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),s=Fv(r).scope,l=r.visualStyleAccessPath||"itemStyle",u=Uy(r,l);i.each(function(c){var f=i.getRawIndex(c);a[f]=c}),n.each(function(c){var f=a[c],d=i.getItemVisual(f,"colorFromPalette");if(d){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(c)||c+"",p=n.count();h[u]=r.getColorFromPalette(v,s,p)}})}})}},Bo=Math.PI;function NA(t,e){e=e||{},ke(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ut,n=new qe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var a=new ct({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new qe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(i);var s;return e.showSpinner&&(s=new ol({shape:{startAngle:-Bo/2,endAngle:-Bo/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),s.animateShape(!0).when(1e3,{endAngle:Bo*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:Bo*3/2}).delay(300).start("circularInOut"),r.add(s)),r.resize=function(){var l=a.getBoundingRect().width,u=e.showSpinner?e.spinnerRadius:0,c=(t.getWidth()-u*2-(e.showSpinner&&l?10:0)-l)/2-(e.showSpinner&&l?0:5+l/2)+(e.showSpinner?0:l/2)+(l?0:u),f=t.getHeight()/2;e.showSpinner&&s.setShape({cx:c,cy:f}),i.setShape({x:c-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var Yy=function(){function t(e,r,n,a){this._stageTaskMap=ve(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,s=i?n.step:null,l=a&&a.modDataCount,u=l!=null?Math.ceil(l/s):null;return{step:s,modBy:u,modDataCount:l}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),s=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,l=e.get("large")&&i>=e.get("largeThreshold"),u=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:s,modDataCount:u,large:l}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=ve();e.eachSeries(function(a){var i=a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;L(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),s="";process.env.NODE_ENV!=="production"&&(s='"reset" and "overallReset" must not be both specified.'),he(!(a.reset&&a.overallReset),s),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var i=e.renderTask,s=i.context;s.model=r,s.ecModel=n,s.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,a){a=a||{};var i=!1,s=this;L(e,function(u,c){if(!(a.visualType&&a.visualType!==u.visualType)){var f=s._stageTaskMap.get(u.uid),d=f.seriesTaskMap,h=f.overallTask;if(h){var v,p=h.agentStubMap;p.each(function(m){l(a,m)&&(m.dirty(),v=!0)}),v&&h.dirty(),s.updatePayload(h,n);var g=s.getPerformArgs(h,a.block);p.each(function(m){m.perform(g)}),h.perform(g)&&(i=!0)}else d&&d.each(function(m,y){l(a,m)&&m.dirty();var b=s.getPerformArgs(m,a.block);b.skip=!u.performRawSeries&&r.isSeriesFiltered(m.context.model),s.updatePayload(m,n),m.perform(b)&&(i=!0)})}});function l(u,c){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(c.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,a){var i=this,s=r.seriesTaskMap,l=r.seriesTaskMap=ve(),u=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):c&&c(n,a).each(f);function f(d){var h=d.uid,v=l.set(h,s&&s.get(h)||zi({plan:PA,reset:zA,count:OA}));v.context={model:d,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,v)}},t.prototype._createOverallStageTask=function(e,r,n,a){var i=this,s=r.overallTask=r.overallTask||zi({reset:BA});s.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var l=s.agentStubMap,u=s.agentStubMap=ve(),c=e.seriesType,f=e.getTargetSeries,d=!0,h=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),he(!e.createOnAllSeries,v),c?n.eachRawSeriesByType(c,p):f?f(n,a).each(p):(d=!1,L(n.getSeries(),p));function p(g){var m=g.uid,y=u.set(m,l&&l.get(m)||(h=!0,zi({reset:VA,onDirty:LA})));y.context={model:g,overallProgress:d},y.agent=s,y.__block=d,i._pipe(g,y)}h&&s.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return ue(e)&&(e={overallReset:e,seriesType:$A(e)}),e.uid=fl("stageHandler"),r&&(e.visualType=r),e},t}();function BA(t){t.overallReset(t.ecModel,t.api,t.payload)}function VA(t){return t.overallProgress&&IA}function IA(){this.agent.dirty(),this.getDownstream().dirty()}function LA(){this.agent&&this.agent.dirty()}function PA(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function zA(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=_t(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ee(e,function(r,n){return Xy(n)}):RA}var RA=Xy(0);function Xy(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function OA(t){return t.data.count()}function $A(t){Rs=null;try{t(Zi,qy)}catch{}return Rs}var Zi={},qy={},Rs;jy(Zi,ed);jy(qy,xy);Zi.eachSeriesByType=Zi.eachRawSeriesByType=function(t){Rs=t};Zi.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Rs=t.subType)};function jy(t,e){for(var r in e.prototype)t[r]=Mt}var Gv=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const FA={color:Gv,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Gv]};var ht="#B9B8CE",Wv="#100C2A",Vo=function(){return{axisLine:{lineStyle:{color:ht}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Uv=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Zy={darkMode:!0,color:Uv,backgroundColor:Wv,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ht},pageTextStyle:{color:ht}},textStyle:{color:ht},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ht}},dataZoom:{borderColor:"#71708A",textStyle:{color:ht},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:ht}},timeline:{lineStyle:{color:ht},label:{color:ht},controlStyle:{color:ht,borderColor:ht}},calendar:{itemStyle:{color:Wv},dayLabel:{color:ht},monthLabel:{color:ht},yearLabel:{color:ht}},timeAxis:Vo(),logAxis:Vo(),valueAxis:Vo(),categoryAxis:Vo(),line:{symbol:"circle"},graph:{color:Uv},gauge:{title:{color:ht},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ht},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Zy.categoryAxis.splitLine.show=!1;var HA=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},a={};if(Z(e)){var i=br(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var s=["Index","Name","Id"],l={name:1,dataIndex:1,dataType:1};L(e,function(u,c){for(var f=!1,d=0;d<s.length;d++){var h=s[d],v=c.lastIndexOf(h);if(v>0&&v===c.length-h.length){var p=c.slice(0,v);p!=="data"&&(r.mainType=p,r[h.toLowerCase()]=u,f=!0)}}l.hasOwnProperty(c)&&(n[c]=u,f=!0),f||(a[c]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,s=n.model,l=n.view;if(!s||!l)return!0;var u=r.cptQuery,c=r.dataQuery;return f(u,s,"mainType")&&f(u,s,"subType")&&f(u,s,"index","componentIndex")&&f(u,s,"name")&&f(u,s,"id")&&f(c,i,"name")&&f(c,i,"dataIndex")&&f(c,i,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(e,r.otherQuery,a,i));function f(d,h,v,p){return d[v]==null||h[p||v]===d[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Uc=["symbol","symbolSize","symbolRotate","symbolOffset"],Yv=Uc.concat(["symbolKeepAspect"]),GA={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},a={},i=!1,s=0;s<Uc.length;s++){var l=Uc[s],u=t.get(l);ue(u)?(i=!0,a[l]=u):n[l]=u}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(W({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var c=Oe(a);function f(d,h){for(var v=t.getRawValue(h),p=t.getDataParams(h),g=0;g<c.length;g++){var m=c[g];d.setItemVisual(h,m,a[m](v,p))}}return{dataEach:i?f:null}}},WA={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(a,i){for(var s=a.getItemModel(i),l=0;l<Yv.length;l++){var u=Yv[l],c=s.getShallow(u,!0);c!=null&&a.setItemVisual(i,u,c)}}return{dataEach:r.hasItemOption?n:null}}};function UA(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function YA(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function XA(t,e){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:t,query:a},function(s){i.push(s.seriesIndex)}),i}L([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,s){a=W({},a),process.env.NODE_ENV!=="production"&&tt(a.type,n[1]),s.dispatchAction(W(a,{type:n[1],seriesIndex:r(i,a)}))})})}function da(t,e,r,n,a){var i=t+e;r.isSilent(i)||(process.env.NODE_ENV!=="production"&&wr("event "+i+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(s){for(var l=s.seriesIndex,u=s.option.selectedMap,c=a.selected,f=0;f<c.length;f++)if(c[f].seriesIndex===l){var d=s.getData(),h=Zn(d,a.fromActionPayload);r.trigger(i,{type:i,seriesId:s.id,name:j(h)?d.getName(h[0]):d.getName(h),selected:Z(u)?u:W({},u)})}}))}function qA(t,e,r){t.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(da("map","selectchanged",e,a,n),da("pie","selectchanged",e,a,n)):n.fromAction==="select"?(da("map","selected",e,a,n),da("pie","selected",e,a,n)):n.fromAction==="unselect"&&(da("map","unselected",e,a,n),da("pie","unselected",e,a,n))})}function ki(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var jA=Math.round(Math.random()*9),ZA=typeof Object.defineProperty=="function",KA=function(){function t(){this._id="__ec_inner_"+jA++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return ZA?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),QA=Te.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n+i),t.lineTo(r-a,n+i),t.closePath()}}),JA=Te.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n),t.lineTo(r,n+i),t.lineTo(r-a,n),t.closePath()}}),eN=Te.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),s=a/2,l=s*s/(i-s),u=n-i+s+l,c=Math.asin(l/s),f=Math.cos(c)*s,d=Math.sin(c),h=Math.cos(c),v=s*.6,p=s*.7;t.moveTo(r-f,u+l),t.arc(r,u,s,Math.PI-c,Math.PI*2+c),t.bezierCurveTo(r+f-d*v,u+l+h*v,r,n-p,r,n),t.bezierCurveTo(r,n-p,r-f+d*v,u+l+h*v,r-f,u+l),t.closePath()}}),tN=Te.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,a=e.x,i=e.y,s=n/3*2;t.moveTo(a,i),t.lineTo(a+s,i+r),t.lineTo(a,i+r/4*3),t.lineTo(a-s,i+r),t.lineTo(a,i),t.closePath()}}),rN={line:cn,rect:qe,roundRect:qe,square:qe,circle:il,diamond:JA,pin:eN,arrow:tN,triangle:QA},nN={line:function(t,e,r,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+r,a.y2=e+n/2},rect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n},roundRect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(t,e,r,n,a){var i=Math.min(r,n);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.r=Math.min(r,n)/2},diamond:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n},pin:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},arrow:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},triangle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n}},Yc={};L(rN,function(t,e){Yc[e]=new t});var aN=Te.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=ws(t,e,r),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var a=Yc[n];a||(n="rect",a=Yc[n]),nN[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});function iN(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ra(t,e,r,n,a,i,s){var l=t.indexOf("empty")===0;l&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return t.indexOf("image://")===0?u=Kg(t.slice(8),new Ce(e,r,n,a),s?"center":"cover"):t.indexOf("path://")===0?u=Gf(t.slice(7),{},new Ce(e,r,n,a),s?"center":"cover"):u=new aN({shape:{symbolType:t,x:e,y:r,width:n,height:a}}),u.__isEmptyBrush=l,u.setColor=iN,i&&u.setColor(i),u}function oN(t){return j(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Ky(t,e){if(t!=null)return j(t)||(t=[t,t]),[Re(t[0],e[0])||0,Re(fe(t[1],t[0]),e[1])||0]}function $n(t){return isFinite(t)}function sN(t,e,r){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,s=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,s=s*r.height+r.y),n=$n(n)?n:0,a=$n(a)?a:1,i=$n(i)?i:0,s=$n(s)?s:0;var l=t.createLinearGradient(n,i,a,s);return l}function lN(t,e,r){var n=r.width,a=r.height,i=Math.min(n,a),s=e.x==null?.5:e.x,l=e.y==null?.5:e.y,u=e.r==null?.5:e.r;e.global||(s=s*n+r.x,l=l*a+r.y,u=u*i),s=$n(s)?s:.5,l=$n(l)?l:.5,u=u>=0&&$n(u)?u:.5;var c=t.createRadialGradient(s,l,0,s,l,u);return c}function Xc(t,e,r){for(var n=e.type==="radial"?lN(t,e,r):sN(t,e,r),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function uN(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Io(t){return parseInt(t,10)}function Lo(t,e,r){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],s=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var l=document.defaultView.getComputedStyle(t);return(t[a]||Io(l[n])||Io(t.style[n]))-(Io(l[i])||0)-(Io(l[s])||0)|0}function cN(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Ve(t)?[t]:j(t)?t:null}function Qy(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&cN(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(r=ee(r,function(i){return i/a}),n/=a)}return[r,n]}var fN=new Kn(!0);function Os(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Xv(t){return typeof t=="string"&&t!=="none"}function $s(t){var e=t.fill;return e!=null&&e!=="none"}function qv(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function jv(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function qc(t,e,r){var n=kg(e.image,e.__image,r);if(el(n)){var a=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Rk),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function dN(t,e,r,n){var a,i=Os(r),s=$s(r),l=r.strokePercent,u=l<1,c=!e.path;(!e.silent||u)&&c&&e.createPathProxy();var f=e.path||fN,d=e.__dirty;if(!n){var h=r.fill,v=r.stroke,p=s&&!!h.colorStops,g=i&&!!v.colorStops,m=s&&!!h.image,y=i&&!!v.image,b=void 0,_=void 0,w=void 0,S=void 0,x=void 0;(p||g)&&(x=e.getBoundingRect()),p&&(b=d?Xc(t,h,x):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?Xc(t,v,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(w=d||!e.__canvasFillPattern?qc(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=w),y&&(S=d||!e.__canvasStrokePattern?qc(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?t.fillStyle=b:m&&(w?t.fillStyle=w:s=!1),g?t.strokeStyle=_:y&&(S?t.strokeStyle=S:i=!1)}var C=e.getGlobalScale();f.setScale(C[0],C[1],e.segmentIgnoreThreshold);var k,D;t.setLineDash&&r.lineDash&&(a=Qy(e),k=a[0],D=a[1]);var E=!0;(c||d&ga)&&(f.setDPR(t.dpr),u?f.setContext(null):(f.setContext(t),E=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),E&&f.rebuildPath(t,u?l:1),k&&(t.setLineDash(k),t.lineDashOffset=D),n||(r.strokeFirst?(i&&jv(t,r),s&&qv(t,r)):(s&&qv(t,r),i&&jv(t,r))),k&&t.setLineDash([])}function hN(t,e,r){var n=e.__image=kg(r.image,e.__image,e,e.onload);if(!(!n||!el(n))){var a=r.x||0,i=r.y||0,s=e.getWidth(),l=e.getHeight(),u=n.width/n.height;if(s==null&&l!=null?s=l*u:l==null&&s!=null?l=s/u:s==null&&l==null&&(s=n.width,l=n.height),r.sWidth&&r.sHeight){var c=r.sx||0,f=r.sy||0;t.drawImage(n,c,f,r.sWidth,r.sHeight,a,i,s,l)}else if(r.sx&&r.sy){var c=r.sx,f=r.sy,d=s-c,h=l-f;t.drawImage(n,c,f,d,h,a,i,s,l)}else t.drawImage(n,a,i,s,l)}}function vN(t,e,r){var n,a=r.text;if(a!=null&&(a+=""),a){t.font=r.font||Xn,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,s=void 0;t.setLineDash&&r.lineDash&&(n=Qy(e),i=n[0],s=n[1]),i&&(t.setLineDash(i),t.lineDashOffset=s),r.strokeFirst?(Os(r)&&t.strokeText(a,r.x,r.y),$s(r)&&t.fillText(a,r.x,r.y)):($s(r)&&t.fillText(a,r.x,r.y),Os(r)&&t.strokeText(a,r.x,r.y)),i&&t.setLineDash([])}}var Zv=["shadowBlur","shadowOffsetX","shadowOffsetY"],Kv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Jy(t,e,r,n,a){var i=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Et(t,a),i=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?Wn.opacity:s}(n||e.blend!==r.blend)&&(i||(Et(t,a),i=!0),t.globalCompositeOperation=e.blend||Wn.blend);for(var l=0;l<Zv.length;l++){var u=Zv[l];(n||e[u]!==r[u])&&(i||(Et(t,a),i=!0),t[u]=t.dpr*(e[u]||0))}return(n||e.shadowColor!==r.shadowColor)&&(i||(Et(t,a),i=!0),t.shadowColor=e.shadowColor||Wn.shadowColor),i}function Qv(t,e,r,n,a){var i=Ki(e,a.inHover),s=n?null:r&&Ki(r,a.inHover)||{};if(i===s)return!1;var l=Jy(t,i,s,n,a);if((n||i.fill!==s.fill)&&(l||(Et(t,a),l=!0),Xv(i.fill)&&(t.fillStyle=i.fill)),(n||i.stroke!==s.stroke)&&(l||(Et(t,a),l=!0),Xv(i.stroke)&&(t.strokeStyle=i.stroke)),(n||i.opacity!==s.opacity)&&(l||(Et(t,a),l=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var u=i.lineWidth,c=u/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==c&&(l||(Et(t,a),l=!0),t.lineWidth=c)}for(var f=0;f<Kv.length;f++){var d=Kv[f],h=d[0];(n||i[h]!==s[h])&&(l||(Et(t,a),l=!0),t[h]=i[h]||d[1])}return l}function pN(t,e,r,n,a){return Jy(t,Ki(e,a.inHover),r&&Ki(r,a.inHover),n,a)}function e0(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function mN(t,e,r){for(var n=!1,a=0;a<t.length;a++){var i=t[a];n=n||i.isZeroArea(),e0(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=n}function gN(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var Jv=1,ep=2,tp=3,rp=4;function yN(t){var e=$s(t),r=Os(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Et(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Ki(t,e){return e&&t.__hoverStyle||t.style}function t0(t,e){Fn(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Fn(t,e,r,n){var a=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Vt,e.__isRendered=!1;return}var i=e.__clipPaths,s=r.prevElClipPaths,l=!1,u=!1;if((!s||uN(i,s))&&(s&&s.length&&(Et(t,r),t.restore(),u=l=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(Et(t,r),t.save(),mN(i,t,r),l=!0),r.prevElClipPaths=i),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var c=r.prevEl;c||(u=l=!0);var f=e instanceof Te&&e.autoBatch&&yN(e.style);l||gN(a,c.transform)?(Et(t,r),e0(t,e)):f||Et(t,r);var d=Ki(e,r.inHover);e instanceof Te?(r.lastDrawType!==Jv&&(u=!0,r.lastDrawType=Jv),Qv(t,e,c,u,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),dN(t,e,d,f),f&&(r.batchFill=d.fill||"",r.batchStroke=d.stroke||"")):e instanceof ks?(r.lastDrawType!==tp&&(u=!0,r.lastDrawType=tp),Qv(t,e,c,u,r),vN(t,e,d)):e instanceof hn?(r.lastDrawType!==ep&&(u=!0,r.lastDrawType=ep),pN(t,e,c,u,r),hN(t,e,d)):e.getTemporalDisplayables&&(r.lastDrawType!==rp&&(u=!0,r.lastDrawType=rp),bN(t,e,r)),f&&n&&Et(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function bN(t,e,r){var n=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},s,l;for(s=e.getCursor(),l=n.length;s<l;s++){var u=n[s];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Fn(t,u,i,s===l-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),i.prevEl=u}for(var c=0,f=a.length;c<f;c++){var u=a[c];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Fn(t,u,i,c===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),i.prevEl=u}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Tu=new KA,np=new eo(100),ap=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function jc(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";t.dirty&&Tu.delete(t);var i=Tu.get(t);if(i)return i;var s=ke(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});s.backgroundColor==="none"&&(s.backgroundColor=null);var l={repeat:"repeat"};return u(l),l.rotation=s.rotation,l.scaleX=l.scaleY=a?1:1/r,Tu.set(t,l),t.dirty=!1,l;function u(c){for(var f=[r],d=!0,h=0;h<ap.length;++h){var v=s[ap[h]];if(v!=null&&!j(v)&&!Z(v)&&!Ve(v)&&typeof v!="boolean"){d=!1;break}f.push(v)}var p;if(d){p=f.join(",")+(a?"-svg":"");var g=np.get(p);g&&(a?c.svgElement=g:c.image=g)}var m=n0(s.dashArrayX),y=_N(s.dashArrayY),b=r0(s.symbol),_=wN(m),w=a0(y),S=!a&&Fa.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=D(),k;S&&(S.width=C.width*r,S.height=C.height*r,k=S.getContext("2d")),E(),d&&np.put(p,S||x),c.image=S,c.svgElement=x,c.svgWidth=C.width,c.svgHeight=C.height;function D(){for(var T=1,M=0,A=_.length;M<A;++M)T=ph(T,_[M]);for(var P=1,M=0,A=b.length;M<A;++M)P=ph(P,b[M].length);T*=P;var V=w*_.length*b.length;if(process.env.NODE_ENV!=="production"){var B=function(z){console.warn("Calculated decal size is greater than "+z+" due to decal option settings so "+z+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+z+" to be larger to avoid incontinuity.")};T>s.maxTileWidth&&B("maxTileWidth"),V>s.maxTileHeight&&B("maxTileHeight")}return{width:Math.max(1,Math.min(T,s.maxTileWidth)),height:Math.max(1,Math.min(V,s.maxTileHeight))}}function E(){k&&(k.clearRect(0,0,S.width,S.height),s.backgroundColor&&(k.fillStyle=s.backgroundColor,k.fillRect(0,0,S.width,S.height)));for(var T=0,M=0;M<y.length;++M)T+=y[M];if(T<=0)return;for(var A=-w,P=0,V=0,B=0;A<C.height;){if(P%2===0){for(var z=V/2%b.length,N=0,R=0,I=0;N<C.width*2;){for(var G=0,M=0;M<m[B].length;++M)G+=m[B][M];if(G<=0)break;if(R%2===0){var F=(1-s.symbolSize)*.5,J=N+m[B][R]*F,le=A+y[P]*F,X=m[B][R]*s.symbolSize,Y=y[P]*s.symbolSize,be=I/2%b[z].length;de(J,le,X,Y,b[z][be])}N+=m[B][R],++I,++R,R===m[B].length&&(R=0)}++B,B===m.length&&(B=0)}A+=y[P],++V,++P,P===y.length&&(P=0)}function de(De,Ee,K,ae,nt){var Ie=a?1:r,Ne=Ra(nt,De*Ie,Ee*Ie,K*Ie,ae*Ie,s.color,s.symbolKeepAspect);if(a){var Ye=n.painter.renderOneToVNode(Ne);Ye&&x.children.push(Ye)}else t0(k,Ne)}}}}function r0(t){if(!t||t.length===0)return[["rect"]];if(Z(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!Z(t[r])){e=!1;break}if(e)return r0([t]);for(var n=[],r=0;r<t.length;++r)Z(t[r])?n.push([t[r]]):n.push(t[r]);return n}function n0(t){if(!t||t.length===0)return[[0,0]];if(Ve(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!Ve(t[n])){r=!1;break}if(r)return n0([t]);for(var a=[],n=0;n<t.length;++n)if(Ve(t[n])){var e=Math.ceil(t[n]);a.push([e,e])}else{var e=ee(t[n],function(l){return Math.ceil(l)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function _N(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Ve(t)){var e=Math.ceil(t);return[e,e]}var r=ee(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function wN(t){return ee(t,function(e){return a0(e)})}function a0(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function SN(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(s){var l=n.getItemVisual(s,"decal");if(l){var u=n.ensureUniqueItemVisual(s,"style");u.decal=jc(l,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=jc(a,e)}}})}var nr=new xr,Fs={};function xN(t,e){process.env.NODE_ENV!=="production"&&Fs[t]&&mt("Already has an implementation of "+t+"."),Fs[t]=e}function CN(t){return process.env.NODE_ENV!=="production"&&(Fs[t]||mt("Implementation of "+t+" doesn't exists.")),Fs[t]}var kN=1,TN=800,DN=900,EN=1e3,MN=2e3,AN=5e3,i0=1e3,NN=1100,od=2e3,o0=3e3,BN=4e3,Sl=4500,VN=4600,IN=5e3,LN=6e3,s0=7e3,PN={PROCESSOR:{FILTER:EN,SERIES_FILTER:TN,STATISTIC:AN},VISUAL:{LAYOUT:i0,PROGRESSIVE_LAYOUT:NN,GLOBAL:od,CHART:o0,POST_CHART_LAYOUT:VN,COMPONENT:BN,BRUSH:IN,CHART_ITEM:Sl,ARIA:LN,DECAL:s0}},dt="__flagInMainProcess",Ct="__pendingUpdate",Du="__needsUpdateStatus",ip=/^[a-zA-Z0-9_]+$/,Eu="__connectUpdateStatus",op=0,zN=1,RN=2;function l0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){Bt(this.id);return}return c0(this,t,e)}}function u0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return c0(this,t,e)}}function c0(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),xr.prototype[e].apply(t,r)}var f0=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(xr),d0=f0.prototype;d0.on=u0("on");d0.off=u0("off");var ha,Mu,Po,Yr,Au,Nu,Bu,li,ui,sp,lp,Vu,up,zo,cp,h0,Ot,fp,v0=function(t){se(e,t);function e(r,n,a){var i=t.call(this,new HA)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},Z(n)&&(n=p0[n]),i._dom=r;var s="canvas",l="auto",u=!1;if(process.env.NODE_ENV!=="production"){var c=oe.hasGlobalWindow?window:global;c&&(s=fe(c.__ECHARTS__DEFAULT__RENDERER__,s),l=fe(c.__ECHARTS__DEFAULT__COARSE_POINTER,l),u=fe(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,u))}a.ssr;var f=i._zr=hh(r,{renderer:a.renderer||s,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:fe(a.useDirtyRect,u),useCoarsePointer:fe(a.useCoarsePointer,l),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=wl(Pe(f.flush,f),17),n=ge(n),n&&ky(n,!0),i._theme=n,i._locale=XE(a.locale||iy),i._coordSysMgr=new td;var d=i._api=cp(i);function h(v,p){return v.__prio-p.__prio}return Jo(Gs,h),Jo(Zc,h),i._scheduler=new Yy(i,d,Zc,Gs),i._messageCenter=new f0,i._initEvents(),i.resize=Pe(i.resize,i),f.animation.on("frame",i._onframe,i),sp(f,i),lp(f,i),sc(i),i}return e.prototype._onframe=function(){if(!this._disposed){fp(this);var r=this._scheduler;if(this[Ct]){var n=this[Ct].silent;this[dt]=!0;try{ha(this),Yr.update.call(this,null,this[Ct].updateParams)}catch(u){throw this[dt]=!1,this[Ct]=null,u}this._zr.flush(),this[dt]=!1,this[Ct]=null,li.call(this,n),ui.call(this,n)}else if(r.unfinished){var a=kN,i=this._model,s=this._api;r.unfinished=!1;do{var l=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),Nu(this,i),r.performVisualTasks(i),zo(this,this._model,s,"remain",{}),a-=+new Date-l}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,a){if(this[dt]){process.env.NODE_ENV!=="production"&&mt("`setOption` should not be called during main process.");return}if(this._disposed){Bt(this.id);return}var i,s,l;if(re(n)&&(a=n.lazyUpdate,i=n.silent,s=n.replaceMerge,l=n.transition,n=n.notMerge),this[dt]=!0,!this._model||n){var u=new SM(this._api),c=this._theme,f=this._model=new ed;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,c,this._locale,u)}this._model.setOption(r,{replaceMerge:s},Kc);var d={seriesTransition:l,optionChanged:!0};if(a)this[Ct]={silent:i,updateParams:d},this[dt]=!1,this.getZr().wakeUp();else{try{ha(this),Yr.update.call(this,null,d)}catch(h){throw this[Ct]=null,this[dt]=!1,h}this._ssr||this._zr.flush(),this[Ct]=null,this[dt]=!1,li.call(this,i),ui.call(this,i)}},e.prototype.setTheme=function(){wr("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||oe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&tt("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(oe.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return L(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){Bt(this.id);return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],s=this;L(n,function(u){a.eachComponent({mainType:u},function(c){var f=s._componentsMap[c.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return L(i,function(u){u.group.ignore=!1}),l},e.prototype.getConnectedDataURL=function(r){if(this._disposed){Bt(this.id);return}var n=r.type==="svg",a=this.group,i=Math.min,s=Math.max,l=1/0;if(dp[a]){var u=l,c=l,f=-l,d=-l,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();L(Oi,function(_,w){if(_.group===a){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ge(r)),x=_.getDom().getBoundingClientRect();u=i(x.left,u),c=i(x.top,c),f=s(x.right,f),d=s(x.bottom,d),h.push({dom:S,left:x.left,top:x.top})}}),u*=v,c*=v,f*=v,d*=v;var p=f-u,g=d-c,m=Fa.createCanvas(),y=hh(m,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:g}),n){var b="";return L(h,function(_){var w=_.left-u,S=_.top-c;b+='<g transform="translate('+w+","+S+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=b,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new qe({shape:{x:0,y:0,width:p,height:g},style:{fill:r.connectedBackgroundColor}})),L(h,function(_){var w=new hn({style:{x:_.left*v-u,y:_.top*v-c,image:_.dom}});y.add(w)}),y.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return Au(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return Au(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){Bt(this.id);return}var a=this._model,i,s=Ql(a,r);return L(s,function(l,u){u.indexOf("Models")>=0&&L(l,function(c){var f=c.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(u==="seriesModels"){var d=this._chartsMap[c.__viewId];d&&d.containPoint?i=i||d.containPoint(n,c):process.env.NODE_ENV!=="production"&&pt(u+": "+(d?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&pt(u+": containPoint is not supported")},this)},this),!!i},e.prototype.getVisual=function(r,n){var a=this._model,i=Ql(a,r,{defaultMainType:"series"}),s=i.seriesModel;process.env.NODE_ENV!=="production"&&(s||pt("There is no specified series model"));var l=s.getData(),u=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?l.indexOfRawIndex(i.dataIndex):null;return u!=null?UA(l,u,n):YA(l,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;L(ON,function(n){var a=function(i){var s=r.getModel(),l=i.target,u,c=n==="globalout";if(c?u={}:l&&ki(l,function(p){var g=ye(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=W({},g.eventData),!0},!0),u){var f=u.componentType,d=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",d=u.seriesIndex);var h=f&&d!=null&&s.getComponent(f,d),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];process.env.NODE_ENV!=="production"&&!c&&!(h&&v)&&pt("model or view can not be found by params"),u.event=i,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),L(Ri,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),L(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),qA(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Bt(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Bt(this.id);return}this._disposed=!0;var r=this.getDom();r&&Sg(this.getDom(),ld,"");var n=this,a=n._api,i=n._model;L(n._componentsViews,function(s){s.dispose(i,a)}),L(n._chartsViews,function(s){s.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Oi[n.id]},e.prototype.resize=function(r){if(this[dt]){process.env.NODE_ENV!=="production"&&mt("`resize` should not be called during main process.");return}if(this._disposed){Bt(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[Ct]&&(i==null&&(i=this[Ct].silent),a=!0,this[Ct]=null),this[dt]=!0;try{a&&ha(this),Yr.update.call(this,{type:"resize",animation:W({duration:0},r&&r.animation)})}catch(s){throw this[dt]=!1,s}this[dt]=!1,li.call(this,i),ui.call(this,i)}},e.prototype.showLoading=function(r,n){if(this._disposed){Bt(this.id);return}if(re(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!Qc[r]){process.env.NODE_ENV!=="production"&&pt("Loading effects "+r+" not exists.");return}var a=Qc[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},e.prototype.hideLoading=function(){if(this._disposed){Bt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=W({},r);return n.type=Ri[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){Bt(this.id);return}if(re(n)||(n={silent:!!n}),!!Hs[r.type]&&this._model){if(this[dt]){this._pendingActions.push(r);return}var a=n.silent;Bu.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&oe.browser.weChat&&this._throttledZrFlush(),li.call(this,a),ui.call(this,a)}},e.prototype.updateLabelLayout=function(){nr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){Bt(this.id);return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&he(r.data&&i),i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){ha=function(d){var h=d._scheduler;h.restorePipelines(d._model),h.prepareStageTasks(),Mu(d,!0),Mu(d,!1),h.plan()},Mu=function(d,h){for(var v=d._model,p=d._scheduler,g=h?d._componentsViews:d._chartsViews,m=h?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_<g.length;_++)g[_].__alive=!1;h?v.eachComponent(function(x,C){x!=="series"&&w(C)}):v.eachSeries(w);function w(x){var C=x.__requireNewView;x.__requireNewView=!1;var k="_ec_"+x.id+"_"+x.type,D=!C&&m[k];if(!D){var E=br(x.type),T=h?or.getClass(E.main,E.sub):Kt.getClass(E.sub);process.env.NODE_ENV!=="production"&&he(T,E.sub+" does not exist."),D=new T,D.init(v,b),m[k]=D,g.push(D),y.add(D.group)}x.__viewId=D.__id=k,D.__alive=!0,D.__model=x,D.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&p.prepareView(D,x,v,b)}for(var _=0;_<g.length;){var S=g[_];S.__alive?_++:(!h&&S.renderTask.dispose(),y.remove(S.group),S.dispose(v,b),g.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Po=function(d,h,v,p,g){var m=d._model;if(m.setUpdatePayload(v),!p){L([].concat(d._componentsViews).concat(d._chartsViews),S);return}var y={};y[p+"Id"]=v[p+"Id"],y[p+"Index"]=v[p+"Index"],y[p+"Name"]=v[p+"Name"];var b={mainType:p,query:y};g&&(b.subType=g);var _=v.excludeSeriesId,w;_!=null&&(w=ve(),L(_t(_),function(x){var C=_r(x,null);C!=null&&w.set(C,!0)})),m&&m.eachComponent(b,function(x){var C=w&&w.get(x.id)!=null;if(!C)if(Uh(v))if(x instanceof ir)v.type===Un&&!v.notBlur&&!x.get(["emphasis","disabled"])&&AD(x,v,d._api);else{var k=Pf(x.mainType,x.componentIndex,v.name,d._api),D=k.focusSelf,E=k.dispatchers;v.type===Un&&D&&!v.notBlur&&Bc(x.mainType,x.componentIndex,d._api),E&&L(E,function(T){v.type===Un?Ds(T):Es(T)})}else Ic(v)&&x instanceof ir&&(VD(x,v,d._api),Gh(x),Ot(d))},d),m&&m.eachComponent(b,function(x){var C=w&&w.get(x.id)!=null;C||S(d[p==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},d);function S(x){x&&x.__alive&&x[h]&&x[h](x.__model,m,d._api,v)}},Yr={prepareAndUpdate:function(d){ha(this),Yr.update.call(this,d,{optionChanged:d.newOption!=null})},update:function(d,h){var v=this._model,p=this._api,g=this._zr,m=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(d),y.restoreData(v,d),y.performSeriesTasks(v),m.create(v,p),y.performDataProcessorTasks(v,d),Nu(this,v),m.update(v,p),r(v),y.performVisualTasks(v,d),Vu(this,v,p,d,h);var b=v.get("backgroundColor")||"transparent",_=v.get("darkMode");g.setBackgroundColor(b),_!=null&&_!=="auto"&&g.setDarkMode(_),nr.trigger("afterupdate",v,p)}},updateTransform:function(d){var h=this,v=this._model,p=this._api;if(v){v.setUpdatePayload(d);var g=[];v.eachComponent(function(y,b){if(y!=="series"){var _=h.getViewOfComponentModel(b);if(_&&_.__alive)if(_.updateTransform){var w=_.updateTransform(b,v,p,d);w&&w.update&&g.push(_)}else g.push(_)}});var m=ve();v.eachSeries(function(y){var b=h._chartsMap[y.__viewId];if(b.updateTransform){var _=b.updateTransform(y,v,p,d);_&&_.update&&m.set(y.uid,1)}else m.set(y.uid,1)}),r(v),this._scheduler.performVisualTasks(v,d,{setDirty:!0,dirtyMap:m}),zo(this,v,p,d,{},m),nr.trigger("afterupdate",v,p)}},updateView:function(d){var h=this._model;h&&(h.setUpdatePayload(d),Kt.markUpdateMethod(d,"updateView"),r(h),this._scheduler.performVisualTasks(h,d,{setDirty:!0}),Vu(this,h,this._api,d,{}),nr.trigger("afterupdate",h,this._api))},updateVisual:function(d){var h=this,v=this._model;v&&(v.setUpdatePayload(d),v.eachSeries(function(p){p.getData().clearAllVisual()}),Kt.markUpdateMethod(d,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,d,{visualType:"visual",setDirty:!0}),v.eachComponent(function(p,g){if(p!=="series"){var m=h.getViewOfComponentModel(g);m&&m.__alive&&m.updateVisual(g,v,h._api,d)}}),v.eachSeries(function(p){var g=h._chartsMap[p.__viewId];g.updateVisual(p,v,h._api,d)}),nr.trigger("afterupdate",v,this._api))},updateLayout:function(d){Yr.update.call(this,d)}},Au=function(d,h,v,p){if(d._disposed){Bt(d.id);return}for(var g=d._model,m=d._coordSysMgr.getCoordinateSystems(),y,b=Ql(g,v),_=0;_<m.length;_++){var w=m[_];if(w[h]&&(y=w[h](g,b,p))!=null)return y}process.env.NODE_ENV!=="production"&&pt("No coordinate system that supports "+h+" found by the given finder.")},Nu=function(d,h){var v=d._chartsMap,p=d._scheduler;h.eachSeries(function(g){p.updateStreamModes(g,v[g.__viewId])})},Bu=function(d,h){var v=this,p=this.getModel(),g=d.type,m=d.escapeConnect,y=Hs[g],b=y.actionInfo,_=(b.update||"update").split(":"),w=_.pop(),S=_[0]!=null&&br(_[0]);this[dt]=!0;var x=[d],C=!1;d.batch&&(C=!0,x=ee(d.batch,function(P){return P=ke(W({},P),d),P.batch=null,P}));var k=[],D,E=Ic(d),T=Uh(d);if(T&&Hg(this._api),L(x,function(P){if(D=y.action(P,v._model,v._api),D=D||W({},P),D.type=b.event||D.type,k.push(D),T){var V=Nf(d),B=V.queryOptionMap,z=V.mainTypeSpecified,N=z?B.keys()[0]:"series";Po(v,w,P,N),Ot(v)}else E?(Po(v,w,P,"series"),Ot(v)):S&&Po(v,w,P,S.main,S.sub)}),w!=="none"&&!T&&!E&&!S)try{this[Ct]?(ha(this),Yr.update.call(this,d),this[Ct]=null):Yr[w].call(this,d)}catch(P){throw this[dt]=!1,P}if(C?D={type:b.event||g,escapeConnect:m,batch:k}:D=k[0],this[dt]=!1,!h){var M=this._messageCenter;if(M.trigger(D.type,D),E){var A={type:"selectchanged",escapeConnect:m,selected:ID(p),isFromClick:d.isFromClick||!1,fromAction:d.type,fromActionPayload:d};M.trigger(A.type,A)}}},li=function(d){for(var h=this._pendingActions;h.length;){var v=h.shift();Bu.call(this,v,d)}},ui=function(d){!d&&this.trigger("updated")},sp=function(d,h){d.on("rendered",function(v){h.trigger("rendered",v),d.animation.isFinished()&&!h[Ct]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},lp=function(d,h){d.on("mouseover",function(v){var p=v.target,g=ki(p,Ia);g&&(ND(g,v,h._api),Ot(h))}).on("mouseout",function(v){var p=v.target,g=ki(p,Ia);g&&(BD(g,v,h._api),Ot(h))}).on("click",function(v){var p=v.target,g=ki(p,function(b){return ye(b).dataIndex!=null},!0);if(g){var m=g.selected?"unselect":"select",y=ye(g);h._api.dispatchAction({type:m,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(d){d.clearColorPalette(),d.eachSeries(function(h){h.clearColorPalette()})}function n(d){var h=[],v=[],p=!1;if(d.eachComponent(function(b,_){var w=_.get("zlevel")||0,S=_.get("z")||0,x=_.getZLevelKey();p=p||!!x,(b==="series"?v:h).push({zlevel:w,z:S,idx:_.componentIndex,type:b,key:x})}),p){var g=h.concat(v),m,y;Jo(g,function(b,_){return b.zlevel===_.zlevel?b.z-_.z:b.zlevel-_.zlevel}),L(g,function(b){var _=d.getComponent(b.type,b.idx),w=b.zlevel,S=b.key;m!=null&&(w=Math.max(m,w)),S?(w===m&&S!==y&&w++,y=S):y&&(w===m&&w++,y=""),m=w,_.setZLevel(w)})}}Vu=function(d,h,v,p,g){n(h),up(d,h,v,p,g),L(d._chartsViews,function(m){m.__alive=!1}),zo(d,h,v,p,g),L(d._chartsViews,function(m){m.__alive||m.remove(h,v)})},up=function(d,h,v,p,g,m){L(m||d._componentsViews,function(y){var b=y.__model;c(b,y),y.render(b,h,v,p),l(b,y),f(b,y)})},zo=function(d,h,v,p,g,m){var y=d._scheduler;g=W(g||{},{updatedSeries:h.getSeries()}),nr.trigger("series:beforeupdate",h,v,g);var b=!1;h.eachSeries(function(_){var w=d._chartsMap[_.__viewId];w.__alive=!0;var S=w.renderTask;y.updatePayload(S,p),c(_,w),m&&m.get(_.uid)&&S.dirty(),S.perform(y.getPerformArgs(S))&&(b=!0),w.group.silent=!!_.get("silent"),s(_,w),Gh(_)}),y.unfinished=b||y.unfinished,nr.trigger("series:layoutlabels",h,v,g),nr.trigger("series:transition",h,v,g),h.eachSeries(function(_){var w=d._chartsMap[_.__viewId];l(_,w),f(_,w)}),i(d,h),nr.trigger("series:afterupdate",h,v,g)},Ot=function(d){d[Du]=!0,d.getZr().wakeUp()},fp=function(d){d[Du]&&(d.getZr().storage.traverse(function(h){Ii(h)||a(h)}),d[Du]=!1)};function a(d){for(var h=[],v=d.currentStates,p=0;p<v.length;p++){var g=v[p];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}d.selected&&d.states.select&&h.push("select"),d.hoverState===nl&&d.states.emphasis?h.push("emphasis"):d.hoverState===rl&&d.states.blur&&h.push("blur"),d.useStates(h)}function i(d,h){var v=d._zr,p=v.storage,g=0;p.traverse(function(m){m.isGroup||g++}),g>h.get("hoverLayerThreshold")&&!oe.node&&!oe.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function s(d,h){var v=d.get("blendMode")||null;h.eachRendered(function(p){p.isGroup||(p.style.blend=v)})}function l(d,h){if(!d.preventAutoZ){var v=d.get("z")||0,p=d.get("zlevel")||0;h.eachRendered(function(g){return u(g,v,p,-1/0),!0})}}function u(d,h,v,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_<b.length;_++)p=Math.max(u(b[_],h,v,p),p);else d.z=h,d.zlevel=v,p=Math.max(d.z2,p);if(g&&(g.z=h,g.zlevel=v,isFinite(p)&&(g.z2=p+2)),m){var w=d.textGuideLineConfig;m.z=h,m.zlevel=v,isFinite(p)&&(m.z2=p+(w&&w.showAbove?1:-1))}return p}function c(d,h){h.eachRendered(function(v){if(!Ii(v)){var p=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(d,h){var v=d.getModel("stateAnimation"),p=d.isAnimationEnabled(),g=v.get("duration"),m=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Ii(y))return;if(y instanceof Te&&OD(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),w=y.getTextGuideLine();_&&(_.stateTransition=m),w&&(w.stateTransition=m)}y.__dirty&&a(y)}})}cp=function(d){return new(function(h){se(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},v.prototype.enterEmphasis=function(p,g){Ds(p,g),Ot(d)},v.prototype.leaveEmphasis=function(p,g){Es(p,g),Ot(d)},v.prototype.enterBlur=function(p){MD(p),Ot(d)},v.prototype.leaveBlur=function(p){Rg(p),Ot(d)},v.prototype.enterSelect=function(p){Og(p),Ot(d)},v.prototype.leaveSelect=function(p){$g(p),Ot(d)},v.prototype.getModel=function(){return d.getModel()},v.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},v.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},v}(xy))(d)},h0=function(d){function h(v,p){for(var g=0;g<v.length;g++){var m=v[g];m[Eu]=p}}L(Ri,function(v,p){d._messageCenter.on(p,function(g){if(dp[d.group]&&d[Eu]!==op){if(g&&g.escapeConnect)return;var m=d.makeActionFromEvent(g),y=[];L(Oi,function(b){b!==d&&b.group===d.group&&y.push(b)}),h(y,op),L(y,function(b){b[Eu]!==zN&&b.dispatchAction(m)}),h(y,RN)}})})}}(),e}(xr),sd=v0.prototype;sd.on=l0("on");sd.off=l0("off");sd.one=function(t,e,r){var n=this;wr("ECharts#one is deprecated.");function a(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];e&&e.apply&&e.apply(this,i),n.off(t,a)}this.on.call(this,t,a,r)};var ON=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Bt(t){process.env.NODE_ENV!=="production"&&pt("Instance "+t+" has been disposed")}var Hs={},Ri={},Zc=[],Kc=[],Gs=[],p0={},Qc={},Oi={},dp={},$N=+new Date-0,ld="_echarts_instance_";function FN(t,e,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!t)throw new Error("Initialize failed: invalid dom.");var a=HN(t);if(a)return process.env.NODE_ENV!=="production"&&pt("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&Ba(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!r||r.width==null)||!t.clientHeight&&(!r||r.height==null))&&pt("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new v0(t,e,r);return i.id="ec_"+$N++,Oi[i.id]=i,n&&Sg(t,ld,i.id),h0(i),nr.trigger("afterinit",i),i}function HN(t){return Oi[bT(t,ld)]}function m0(t,e){p0[t]=e}function g0(t){Me(Kc,t)<0&&Kc.push(t)}function y0(t,e){cd(Zc,t,e,MN)}function GN(t){ud("afterinit",t)}function WN(t){ud("afterupdate",t)}function ud(t,e){nr.on(t,e)}function Ua(t,e,r){ue(e)&&(r=e,e="");var n=re(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!Ri[e]&&(he(ip.test(n)&&ip.test(e)),Hs[n]||(Hs[n]={action:r,actionInfo:t}),Ri[e]=n)}function UN(t,e){td.register(t,e)}function YN(t,e){cd(Gs,t,e,i0,"layout")}function Jn(t,e){cd(Gs,t,e,o0,"visual")}var hp=[];function cd(t,e,r,n,a){if((ue(e)||re(e))&&(r=e,e=n),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");L(t,function(s){he(s.__raw!==r)})}if(!(Me(hp,r)>=0)){hp.push(r);var i=Yy.wrapStageHandler(r,a);i.__prio=e,i.__raw=r,t.push(i)}}function b0(t,e){Qc[t]=e}function XN(t,e,r){var n=CN("registerMap");n&&n(t,e,r)}var qN=QM;Jn(od,EA);Jn(Sl,MA);Jn(Sl,AA);Jn(od,GA);Jn(Sl,WA);Jn(s0,SN);g0(ky);y0(DN,IM);b0("default",NA);Ua({type:Un,event:Un,update:Un},Mt);Ua({type:as,event:as,update:as},Mt);Ua({type:Ni,event:Ni,update:Ni},Mt);Ua({type:is,event:is,update:is},Mt);Ua({type:Bi,event:Bi,update:Bi},Mt);m0("light",FA);m0("dark",Zy);function ci(t){return t==null?0:t.length||1}function vp(t){return t}var jN=function(){function t(e,r,n,a,i,s){this._old=e,this._new=r,this._oldKeyGetter=n||vp,this._newKeyGetter=a||vp,this.context=i,this._diffModeMultiple=s==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},a=new Array(e.length),i=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var s=0;s<e.length;s++){var l=a[s],u=n[l],c=ci(u);if(c>1){var f=u.shift();u.length===1&&(n[l]=u[0]),this._update&&this._update(f,s)}else c===1?(n[l]=null,this._update&&this._update(u,s)):this._remove&&this._remove(s)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},a={},i=[],s=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,s,"_newKeyGetter");for(var l=0;l<i.length;l++){var u=i[l],c=n[u],f=a[u],d=ci(c),h=ci(f);if(d>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,c),a[u]=null;else if(d===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,c),a[u]=null;else if(d===1&&h===1)this._update&&this._update(f,c),a[u]=null;else if(d>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,c),a[u]=null;else if(d>1)for(var v=0;v<d;v++)this._remove&&this._remove(c[v]);else this._remove&&this._remove(c)}this._performRestAdd(s,a)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var a=e[n],i=r[a],s=ci(i);if(s>1)for(var l=0;l<s;l++)this._add&&this._add(i[l]);else s===1&&this._add&&this._add(i);r[a]=null}},t.prototype._initIndexMap=function(e,r,n,a){for(var i=this._diffModeMultiple,s=0;s<e.length;s++){var l="_ec_"+this[a](e[s],s);if(i||(n[s]=l),!!r){var u=r[l],c=ci(u);c===0?(r[l]=s,i&&n.push(l)):c===1?r[l]=[u,s]:u.push(s)}}},t}(),ZN=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function KN(t,e){var r={},n=r.encode={},a=ve(),i=[],s=[],l={};L(t.dimensions,function(h){var v=t.getDimensionInfo(h),p=v.coordDim;if(p){process.env.NODE_ENV!=="production"&&he(Rc.get(p)==null);var g=v.coordDimIndex;Iu(n,p)[g]=h,v.isExtraCoord||(a.set(p,1),JN(v.type)&&(i[0]=h),Iu(l,p)[g]=t.getDimensionIndex(v.name)),v.defaultTooltip&&s.push(h)}Rc.each(function(m,y){var b=Iu(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(b[_]=v.name)})});var u=[],c={};a.each(function(h,v){var p=n[v];c[v]=p[0],u=u.concat(p)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=ee(u,function(h){return t.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=c;var f=n.label;f&&f.length&&(i=f.slice());var d=n.tooltip;return d&&d.length?s=d.slice():s.length||(s=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=s,r.userOutput=new ZN(l,e),r}function Iu(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function QN(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function JN(t){return!(t==="ordinal"||t==="time")}var us=function(){function t(e){this.otherDims={},e!=null&&W(this,e)}return t}(),eB=Ue(),tB={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},_0=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=x0(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return fe(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Ey(this.source),n=!C0(e),a="",i=[],s=0,l=0;s<e;s++){var u=void 0,c=void 0,f=void 0,d=this.dimensions[l];if(d&&d.storeDimIndex===s)u=r?d.name:null,c=d.type,f=d.ordinalMeta,l++;else{var h=this.getSourceDimension(s);h&&(u=r?h.name:null,c=h.type)}i.push({property:u,type:c,ordinalMeta:f}),r&&u!=null&&(!d||!d.isCalculationCoord)&&(a+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),a+="$",a+=tB[c]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,p=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var s=this.getSourceDimension(r);s&&(a=s.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function w0(t){return t instanceof _0}function S0(t){for(var e=ve(),r=0;r<(t||[]).length;r++){var n=t[r],a=re(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,r)}return e}function x0(t){var e=eB(t);return e.dimNameMap||(e.dimNameMap=S0(t.dimensionsDefine))}function C0(t){return t>30}var fi=re,Xr=ee,rB=typeof Int32Array>"u"?Array:Int32Array,nB="e\0\0",pp=-1,aB=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],iB=["_approximateExtent"],mp,Ro,di,va,Lu,hi,Pu,k0=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;w0(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},s=[],l={},u=!1,c={},f=0;f<n.length;f++){var d=n[f],h=Z(d)?new us({name:d}):d instanceof us?d:new us(d),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};s.push(v),i[v]=h,c[v]!=null&&(u=!0),h.createInvertedIndices&&(l[v]=[]),p.itemName===0&&(this._nameDimIdx=f),p.itemId===0&&(this._idDimIdx=f),process.env.NODE_ENV!=="production"&&he(a||h.storeDimIndex>=0),a&&(h.storeDimIndex=f)}if(this.dimensions=s,this._dimInfos=i,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=l,this._dimOmitted){var g=this._dimIdxToName=ve();L(s,function(m){g.set(i[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Ve(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var a=this,i;if(e instanceof $c&&(i=e),!i){var s=this.dimensions,l=rd(e)||At(e)?new My(e,s.length):e;i=new $c;var u=Xr(s,function(c){return{type:a._dimInfos[c].type,property:c}});i.initData(l,u,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=KN(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),a=n.start,i=n.end,s=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var l=a;l<i;l++){var u=l-a;this._nameList[l]=r[u],s&&Pu(this,l)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Lr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,s=this._idList,l=a.getSource().sourceFormat,u=l===Jt;if(u&&!a.pure)for(var c=[],f=e;f<r;f++){var d=a.getItem(f,c);if(!this.hasItemOption&&lT(d)&&(this.hasItemOption=!0),d){var h=d.name;i[f]==null&&h!=null&&(i[f]=_r(h,null));var v=d.id;s[f]==null&&v!=null&&(s[f]=_r(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Pu(this,f);mp(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){fi(e)?W(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=di(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},t.prototype.getId=function(e){return Ro(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,a=this._store;return j(e)?a.getValues(Xr(e,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var a=n&&n[r];return a==null||isNaN(a)?pp:a},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){ue(e)&&(n=r,r=e,e=[]);var a=n||this,i=Xr(va(e),this._getStoreDimIndex,this);this._store.each(i,a?Pe(r,a):r)},t.prototype.filterSelf=function(e,r,n){ue(e)&&(n=r,r=e,e=[]);var a=n||this,i=Xr(va(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?Pe(r,a):r),this},t.prototype.selectRange=function(e){var r=this,n={},a=Oe(e);return L(a,function(i){var s=r._getStoreDimIndex(i);n[s]=e[i]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ue(e)&&(n=r,r=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(r&&r.apply(this,arguments))},n),a},t.prototype.map=function(e,r,n,a){var i=n||a||this,s=Xr(va(e),this._getStoreDimIndex,this),l=hi(this);return l._store=this._store.map(s,i?Pe(r,i):r),l},t.prototype.modify=function(e,r,n,a){var i=this,s=n||a||this;process.env.NODE_ENV!=="production"&&L(va(e),function(u){var c=i.getDimensionInfo(u);c.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var l=Xr(va(e),this._getStoreDimIndex,this);this._store.modify(l,s?Pe(r,s):r)},t.prototype.downSample=function(e,r,n,a){var i=hi(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),r,n,a),i},t.prototype.minmaxDownSample=function(e,r){var n=hi(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=hi(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new He(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new jN(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Ro(e,n)},function(n){return Ro(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},fi(e)?W(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],a=n&&n[r];return a??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[r];return i==null&&(i=this.getVisual(r),j(i)?i=i.slice():fi(i)&&(i=W({},i)),a[r]=i),i},t.prototype.setItemVisual=function(e,r,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,fi(r)?W(a,r):a[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){fi(e)?W(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?W(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;bD(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){L(this._graphicEls,function(n,a){n&&e&&e.call(r,n,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Xr(this.dimensions,this._getDimInfo,this),this.hostModel)),Lu(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ue(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(wf(arguments)))})},t.internalField=function(){mp=function(e){var r=e._invertedIndicesMap;L(r,function(n,a){var i=e._dimInfos[a],s=i.ordinalMeta,l=e._store;if(s){n=r[a]=new rB(s.categories.length);for(var u=0;u<n.length;u++)n[u]=pp;for(var u=0;u<l.count();u++)n[l.get(i.storeDimIndex,u)]=u}})},di=function(e,r,n){return _r(e._getCategory(r,n),null)},Ro=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=di(e,e._idDimIdx,r)),n==null&&(n=nB+r),n},va=function(e){return j(e)||(e=e!=null?[e]:[]),e},hi=function(e){var r=new t(e._schema?e._schema:Xr(e.dimensions,e._getDimInfo,e),e.hostModel);return Lu(r,e),r},Lu=function(e,r){L(aB.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,L(iB,function(n){e[n]=ge(r[n])}),e._calculationInfo=W({},r._calculationInfo)},Pu=function(e,r){var n=e._nameList,a=e._idList,i=e._nameDimIdx,s=e._idDimIdx,l=n[r],u=a[r];if(l==null&&i!=null&&(n[r]=l=di(e,i,r)),u==null&&s!=null&&(a[r]=u=di(e,s,r)),u==null&&l!=null){var c=e._nameRepeatCount,f=c[l]=(c[l]||0)+1;u=l,f>1&&(u+="__ec__"+f),a[r]=u}}}(),t}();function T0(t,e){rd(t)||(t=Ty(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],a=ve(),i=[],s=sB(t,r,n,e.dimensionsCount),l=e.canOmitUnusedDimensions&&C0(s),u=n===t.dimensionsDefine,c=u?x0(t):S0(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,s));for(var d=ve(f),h=new Iy(s),v=0;v<h.length;v++)h[v]=-1;function p(D){var E=h[D];if(E<0){var T=n[D],M=re(T)?T:{name:T},A=new us,P=M.name;P!=null&&c.get(P)!=null&&(A.name=A.displayName=P),M.type!=null&&(A.type=M.type),M.displayName!=null&&(A.displayName=M.displayName);var V=i.length;return h[D]=V,A.storeDimIndex=D,i.push(A),A}return i[E]}if(!l)for(var v=0;v<s;v++)p(v);d.each(function(D,E){var T=_t(D).slice();if(T.length===1&&!Z(T[0])&&T[0]<0){d.set(E,!1);return}var M=d.set(E,[]);L(T,function(A,P){var V=Z(A)?c.get(A):A;V!=null&&V<s&&(M[P]=V,m(p(V),E,P))})});var g=0;L(r,function(D){var E,T,M,A;if(Z(D))E=D,A={};else{A=D,E=A.name;var P=A.ordinalMeta;A.ordinalMeta=null,A=W({},A),A.ordinalMeta=P,T=A.dimsDef,M=A.otherDims,A.name=A.coordDim=A.coordDimIndex=A.dimsDef=A.otherDims=null}var V=d.get(E);if(V!==!1){if(V=_t(V),!V.length)for(var B=0;B<(T&&T.length||1);B++){for(;g<s&&p(g).coordDim!=null;)g++;g<s&&V.push(g++)}L(V,function(z,N){var R=p(z);if(u&&A.type!=null&&(R.type=A.type),m(ke(R,A),E,N),R.name==null&&T){var I=T[N];!re(I)&&(I={name:I}),R.name=R.displayName=I.name,R.defaultTooltip=I.defaultTooltip}M&&ke(R.otherDims,M)})}});function m(D,E,T){Rc.get(E)!=null?D.otherDims[E]=T:(D.coordDim=E,D.coordDimIndex=T,a.set(E,!0))}var y=e.generateCoord,b=e.generateCoordCount,_=b!=null;b=y?b||1:0;var w=y||"value";function S(D){D.name==null&&(D.name=D.coordDim)}if(l)L(i,function(D){S(D)}),i.sort(function(D,E){return D.storeDimIndex-E.storeDimIndex});else for(var x=0;x<s;x++){var C=p(x),k=C.coordDim;k==null&&(C.coordDim=lB(w,a,_),C.coordDimIndex=0,(!y||b<=0)&&(C.isExtraCoord=!0),b--),S(C),C.type==null&&(wy(t,x)===it.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return oB(i),new _0({source:t,dimensions:i,fullDimensionCount:s,dimensionOmitted:l})}function oB(t){for(var e=ve(),r=0;r<t.length;r++){var n=t[r],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function sB(t,e,r,n){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return L(e,function(i){var s;re(i)&&(s=i.dimsDef)&&(a=Math.max(a,s.length))}),a}function lB(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var uB=function(){function t(e){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=e}return t}();function cB(t){var e=t.get("coordinateSystem"),r=new uB(e),n=fB[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var fB={cartesian2d:function(t,e,r,n){var a=t.getReferringComponents("xAxis",ar).models[0],i=t.getReferringComponents("yAxis",ar).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+qn(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+qn(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),pa(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),pa(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var a=t.getReferringComponents("singleAxis",ar).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],r.set("single",a),pa(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var a=t.getReferringComponents("polar",ar).models[0],i=a.findAxisModel("radiusAxis"),s=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!s)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",s),pa(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),pa(s)&&(n.set("angle",s),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=i.dimensions.slice();L(i.parallelAxisIndex,function(l,u){var c=a.getComponent("parallelAxis",l),f=s[u];r.set(f,c),pa(c)&&(n.set(f,c),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=u))})}};function pa(t){return t.get("type")==="category"}function dB(t,e,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,s,l;hB(e)?i=e:(s=e.schema,i=s.dimensions,l=e.store);var u=!!(t&&t.get("stack")),c,f,d,h;if(L(i,function(b,_){Z(b)&&(i[_]=b={name:b}),u&&!b.isExtraCoord&&(!n&&!c&&b.ordinalMeta&&(c=b),!f&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(f=b))}),f&&!n&&!c&&(n=!0),f){d="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var v=f.coordDim,p=f.type,g=0;L(i,function(b){b.coordDim===v&&g++});var m={name:d,coordDim:v,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};s?(l&&(m.storeDimIndex=l.ensureCalculationDimension(h,p),y.storeDimIndex=l.ensureCalculationDimension(d,p)),s.appendCalculationDimension(m),s.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:c&&c.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:d}}function hB(t){return!w0(t.schema)}function Oa(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function vB(t,e){return Oa(t,e)?t.getCalculationInfo("stackResultDimension"):e}function pB(t,e){var r=t.get("coordinateSystem"),n=td.get(r),a;return e&&e.coordSysDims&&(a=ee(e.coordSysDims,function(i){var s={name:i},l=e.axisMap.get(i);if(l){var u=l.get("type");s.type=QN(u)}return s})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function mB(t,e,r){var n,a;return r&&L(t,function(i,s){var l=i.coordDim,u=r.categoryAxisMap.get(l);u&&(n==null&&(n=s),i.ordinalMeta=u.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(t[n].otherDims.itemName=0),n}function fd(t,e,r){r=r||{};var n=e.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===Jt;var s=cB(e),l=pB(e,s),u=r.useEncodeDefaulter,c=ue(u)?u:u?We(sM,l,e):null,f={coordDimensions:l,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!i},d=T0(a,f),h=mB(d.dimensions,r.createInvertedIndices,s),v=i?null:n.getSharedDataStore(d),p=dB(e,{schema:d,store:v}),g=new k0(d,e);g.setCalculationInfo(p);var m=h!=null&&gB(a)?function(y,b,_,w){return w===h?_:this.defaultDimValueGetter(y,b,_,w)}:null;return g.hasItemOption=!1,g.initData(i?a:v,null,m),g}function gB(t){if(t.sourceFormat===Jt){var e=yB(t.data||[]);return!j(to(e))}}function yB(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var kr=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var r=this._extent;e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();Js(kr);var bB=0,Jc=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++bB}return t.createByAxisModel=function(e){var r=e.option,n=r.data,a=n&&ee(n,_B);return new t({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Z(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var a=this._getOrCreateMap();return r=a.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,a.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ve(this.categories))},t}();function _B(t){return re(t)&&t.value!=null?t.value:t+""}function wB(t){var e=Math.pow(10,Ks(Math.abs(t))),r=Math.abs(t/e);return r===0||r===1||r===2||r===3||r===5}function ef(t){return t.type==="interval"||t.type==="log"}function SB(t,e,r,n){var a={},i=t[1]-t[0],s=a.interval=mg(i/e);r!=null&&s<r&&(s=a.interval=r),n!=null&&s>n&&(s=a.interval=n);var l=a.intervalPrecision=D0(s),u=a.niceTickExtent=[Xe(Math.ceil(t[0]/s)*s,l),Xe(Math.floor(t[1]/s)*s,l)];return xB(u,t),a}function zu(t){var e=Math.pow(10,Ks(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xe(r*e)}function D0(t){return Nr(t)+2}function gp(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function xB(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),gp(t,0,e),gp(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function xl(t,e){return t>=e[0]&&t<=e[1]}function Cl(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function kl(t,e){return t*(e[1]-e[0])+e[0]}var dd=function(t){se(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Jc({})),j(a)&&(a=new Jc({categories:ee(a,function(i){return re(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:Z(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),xl(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Cl(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(kl(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],s=0,l=this._ordinalMeta.categories.length,u=Math.min(l,n.length);s<u;++s){var c=n[s];a[s]=c,i[c]=s}for(var f=0;s<l;++s){for(;i[f]!=null;)f++;a.push(f),i[f]=s}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(kr);kr.registerClass(dd);var Pn=Xe,Ya=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return xl(r,this._extent)},e.prototype.normalize=function(r){return Cl(r,this._extent)},e.prototype.scale=function(r){return kl(r,this._extent)},e.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},e.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=D0(r)},e.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,s=this._intervalPrecision,l=[];if(!n)return l;var u=1e4;a[0]<i[0]&&(r?l.push({value:Pn(i[0]-n,s)}):l.push({value:a[0]}));for(var c=i[0];c<=i[1]&&(l.push({value:c}),c=Pn(c+n,s),c!==l[l.length-1].value);)if(l.length>u)return[];var f=l.length?l[l.length-1].value:i[1];return a[1]>f&&(r?l.push({value:Pn(f+n,s)}):l.push({value:a[1]})),l},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),s=1;s<n.length;s++){for(var l=n[s],u=n[s-1],c=0,f=[],d=l.value-u.value,h=d/r;c<r-1;){var v=Pn(u.value+(c+1)*h);v>i[0]&&v<i[1]&&f.push(v),c++}a.push(f)}return a},e.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=Nr(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Pn(r.value,a,!0);return py(i)},e.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent,s=i[1]-i[0];if(isFinite(s)){s<0&&(s=-s,i.reverse());var l=SB(i,r,n,a);this._intervalPrecision=l.intervalPrecision,this._interval=l.interval,this._niceExtent=l.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var s=this._interval;r.fixMin||(n[0]=Pn(Math.floor(n[0]/s)*s)),r.fixMax||(n[1]=Pn(Math.ceil(n[1]/s)*s))},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(kr);kr.registerClass(Ya);var E0=typeof Float32Array<"u",CB=E0?Float32Array:Array;function Br(t){return j(t)?E0?new Float32Array(t):t:new CB(t)}var kB="__ec_stack_";function M0(t){return t.get("stack")||kB+t.seriesIndex}function hd(t){return t.dim+t.index}function A0(t,e){var r=[];return e.eachSeriesByType(t,function(n){B0(n)&&r.push(n)}),r}function TB(t){var e={};L(t,function(u){var c=u.coordinateSystem,f=c.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var d=u.getData(),h=f.dim+"_"+f.index,v=d.getDimensionIndex(d.mapDimension(f.dim)),p=d.getStore(),g=0,m=p.count();g<m;++g){var y=p.get(v,g);e[h]?e[h].push(y):e[h]=[y]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];if(a){a.sort(function(u,c){return u-c});for(var i=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(i=i===null?l:Math.min(i,l))}r[n]=i}}return r}function N0(t){var e=TB(t),r=[];return L(t,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),s=i.getExtent(),l;if(i.type==="category")l=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var u=i.dim+"_"+i.index,c=e[u],f=Math.abs(s[1]-s[0]),d=i.scale.getExtent(),h=Math.abs(d[1]-d[0]);l=c?f/h*c:f}else{var v=n.getData();l=Math.abs(s[1]-s[0])/v.count()}var p=Re(n.get("barWidth"),l),g=Re(n.get("barMaxWidth"),l),m=Re(n.get("barMinWidth")||(V0(n)?.5:1),l),y=n.get("barGap"),b=n.get("barCategoryGap");r.push({bandWidth:l,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:hd(i),stackId:M0(n)})}),DB(r)}function DB(t){var e={};L(t,function(n,a){var i=n.axisKey,s=n.bandWidth,l=e[i]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=l.stacks;e[i]=l;var c=n.stackId;u[c]||l.autoWidthCount++,u[c]=u[c]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[c].width&&(u[c].width=f,f=Math.min(l.remainedWidth,f),l.remainedWidth-=f);var d=n.barMaxWidth;d&&(u[c].maxWidth=d);var h=n.barMinWidth;h&&(u[c].minWidth=h);var v=n.barGap;v!=null&&(l.gap=v);var p=n.barCategoryGap;p!=null&&(l.categoryGap=p)});var r={};return L(e,function(n,a){r[a]={};var i=n.stacks,s=n.bandWidth,l=n.categoryGap;if(l==null){var u=Oe(i).length;l=Math.max(35-u*4,15)+"%"}var c=Re(l,s),f=Re(n.gap,1),d=n.remainedWidth,h=n.autoWidthCount,v=(d-c)/(h+(h-1)*f);v=Math.max(v,0),L(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var w=y.width;b&&(w=Math.min(w,b)),_&&(w=Math.max(w,_)),y.width=w,d-=w+f*w,h--}else{var w=v;b&&b<w&&(w=Math.min(b,d)),_&&_>w&&(w=_),w!==v&&(y.width=w,d-=w+f*w,h--)}}),v=(d-c)/(h+(h-1)*f),v=Math.max(v,0);var p=0,g;L(i,function(y,b){y.width||(y.width=v),g=y,p+=y.width*(1+f)}),g&&(p-=g.width*f);var m=-p/2;L(i,function(y,b){r[a][b]=r[a][b]||{bandWidth:s,offset:m,width:y.width},m+=y.width*(1+f)})}),r}function EB(t,e,r){if(t&&e){var n=t[hd(e)];return n}}function MB(t,e){var r=A0(t,e),n=N0(r);L(r,function(a){var i=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=M0(a),c=n[hd(l)][u],f=c.offset,d=c.width;i.setLayout({bandWidth:c.bandWidth,offset:f,size:d})})}function AB(t){return{seriesType:t,plan:id(),reset:function(e){if(B0(e)){var r=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=r.getDimensionIndex(r.mapDimension(a.dim)),u=e.get("showBackground",!0),c=r.mapDimension(i.dim),f=r.getCalculationInfo("stackResultDimension"),d=Oa(r,c)&&!!r.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=NB(a,i),p=V0(e),g=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),y=r.getLayout("size"),b=r.getLayout("offset");return{progress:function(_,w){for(var S=_.count,x=p&&Br(S*3),C=p&&u&&Br(S*3),k=p&&Br(S),D=n.master.getRect(),E=h?D.width:D.height,T,M=w.getStore(),A=0;(T=_.next())!=null;){var P=M.get(d?m:s,T),V=M.get(l,T),B=v,z=void 0;d&&(z=+P-M.get(s,T));var N=void 0,R=void 0,I=void 0,G=void 0;if(h){var F=n.dataToPoint([P,V]);if(d){var J=n.dataToPoint([z,V]);B=J[0]}N=B,R=F[1]+b,I=F[0]-B,G=y,Math.abs(I)<g&&(I=(I<0?-1:1)*g)}else{var F=n.dataToPoint([V,P]);if(d){var J=n.dataToPoint([V,z]);B=J[1]}N=F[0]+b,R=B,I=y,G=F[1]-B,Math.abs(G)<g&&(G=(G<=0?-1:1)*g)}p?(x[A]=N,x[A+1]=R,x[A+2]=h?I:G,C&&(C[A]=h?D.x:N,C[A+1]=h?R:D.y,C[A+2]=E),k[T]=T):w.setItemLayout(T,{x:N,y:R,width:I,height:G}),A+=3}p&&w.setLayout({largePoints:x,largeDataIndices:k,largeBackgroundPoints:C,valueAxisHorizontal:h})}}}}}}function B0(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function V0(t){return t.pipelineContext&&t.pipelineContext.large}function NB(t,e){var r=e.model.get("startValue");return r||(r=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?r>0?r:1:r))}var BB=function(t,e,r,n){for(;r<n;){var a=r+n>>>1;t[a][1]<e?r=a+1:n=a}return r},I0=function(t){se(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return dl(r.value,lv[KE(Ma(this._minLevelUnit))]||lv.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),s=this.getSetting("locale");return QE(r,n,a,s,i)},e.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),s=OB(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(s),a.push({value:n[1],level:0}),a},e.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=qt,n[1]+=qt),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-qt}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._extent,s=i[1]-i[0];this._approxInterval=s/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var l=Oo.length,u=Math.min(BB(Oo,this._approxInterval,0,l),l-1);this._interval=Oo[u][1],this._minLevelUnit=Oo[Math.max(u-1,0)][0]},e.prototype.parse=function(r){return Ve(r)?r:+zr(r)},e.prototype.contain=function(r){return xl(this.parse(r),this._extent)},e.prototype.normalize=function(r){return Cl(this.parse(r),this._extent)},e.prototype.scale=function(r){return kl(r,this._extent)},e.type="time",e}(Ya),Oo=[["second",qf],["minute",jf],["hour",Li],["quarter-day",Li*6],["half-day",Li*12],["day",qt*1.2],["half-week",qt*3.5],["week",qt*7],["month",qt*31],["quarter",qt*95],["half-year",sv/2],["year",sv]];function VB(t,e,r,n){var a=zr(e),i=zr(r),s=function(p){return uv(a,p,n)===uv(i,p,n)},l=function(){return s("year")},u=function(){return l()&&s("month")},c=function(){return u()&&s("day")},f=function(){return c()&&s("hour")},d=function(){return f()&&s("minute")},h=function(){return d()&&s("second")},v=function(){return h()&&s("millisecond")};switch(t){case"year":return l();case"month":return u();case"day":return c();case"hour":return f();case"minute":return d();case"second":return h();case"millisecond":return v()}}function IB(t,e){return t/=qt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function LB(t){var e=30*qt;return t/=e,t>6?6:t>3?3:t>2?2:1}function PB(t){return t/=Li,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function yp(t,e){return t/=e?jf:qf,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function zB(t){return mg(t)}function RB(t,e,r){var n=new Date(t);switch(Ma(e)){case"year":case"month":n[uy(r)](0);case"day":n[cy(r)](1);case"hour":n[fy(r)](0);case"minute":n[dy(r)](0);case"second":n[hy(r)](0),n[vy(r)](0)}return n.getTime()}function OB(t,e,r,n){var a=1e4,i=sy,s=0;function l(E,T,M,A,P,V,B){for(var z=new Date(T),N=T,R=z[A]();N<M&&N<=n[1];)B.push({value:N}),R+=E,z[P](R),N=z.getTime();B.push({value:N,notAdd:!0})}function u(E,T,M){var A=[],P=!T.length;if(!VB(Ma(E),n[0],n[1],r)){P&&(T=[{value:RB(new Date(n[0]),E,r)},{value:n[1]}]);for(var V=0;V<T.length-1;V++){var B=T[V].value,z=T[V+1].value;if(B!==z){var N=void 0,R=void 0,I=void 0,G=!1;switch(E){case"year":N=Math.max(1,Math.round(e/qt/365)),R=Zf(r),I=JE(r);break;case"half-year":case"quarter":case"month":N=LB(e),R=Aa(r),I=uy(r);break;case"week":case"half-week":case"day":N=IB(e),R=hl(r),I=cy(r),G=!0;break;case"half-day":case"quarter-day":case"hour":N=PB(e),R=Yi(r),I=fy(r);break;case"minute":N=yp(e,!0),R=vl(r),I=dy(r);break;case"second":N=yp(e,!1),R=pl(r),I=hy(r);break;case"millisecond":N=zB(e),R=ml(r),I=vy(r);break}l(N,B,z,R,I,G,A),E==="year"&&M.length>1&&V===0&&M.unshift({value:M[0].value-N})}}for(var V=0;V<A.length;V++)M.push(A[V]);return A}}for(var c=[],f=[],d=0,h=0,v=0;v<i.length&&s++<a;++v){var p=Ma(i[v]);if(ZE(i[v])){u(i[v],c[c.length-1]||[],f);var g=i[v+1]?Ma(i[v+1]):null;if(p!==g){if(f.length){h=d,f.sort(function(E,T){return E.value-T.value});for(var m=[],y=0;y<f.length;++y){var b=f[y].value;(y===0||f[y-1].value!==b)&&(m.push(f[y]),b>=n[0]&&b<=n[1]&&d++)}var _=(n[1]-n[0])/e;if(d>_*1.5&&h>_/1.5||(c.push(m),d>_||t===i[v]))break}f=[]}}}process.env.NODE_ENV!=="production"&&s>=a&&pt("Exceed safe limit.");for(var w=st(ee(c,function(E){return st(E,function(T){return T.value>=n[0]&&T.value<=n[1]&&!T.notAdd})}),function(E){return E.length>0}),S=[],x=w.length-1,v=0;v<w.length;++v)for(var C=w[v],k=0;k<C.length;++k)S.push({value:C[k].value,level:x-v});S.sort(function(E,T){return E.value-T.value});for(var D=[],v=0;v<S.length;++v)(v===0||S[v].value!==S[v-1].value)&&D.push(S[v]);return D}kr.registerClass(I0);var bp=kr.prototype,$i=Ya.prototype,$B=Xe,FB=Math.floor,HB=Math.ceil,$o=Math.pow,er=Math.log,vd=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ya,r._interval=0,r}return e.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),s=$i.getTicks.call(this,r);return ee(s,function(l){var u=l.value,c=Xe($o(this.base,u));return c=u===a[0]&&this._fixMin?Fo(c,i[0]):c,c=u===a[1]&&this._fixMax?Fo(c,i[1]):c,{value:c}},this)},e.prototype.setExtent=function(r,n){var a=er(this.base);r=er(Math.max(0,r))/a,n=er(Math.max(0,n))/a,$i.setExtent.call(this,r,n)},e.prototype.getExtent=function(){var r=this.base,n=bp.getExtent.call(this);n[0]=$o(r,n[0]),n[1]=$o(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=Fo(n[0],i[0])),this._fixMax&&(n[1]=Fo(n[1],i[1])),n},e.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=er(r[0])/er(n),r[1]=er(r[1])/er(n),bp.unionExtent.call(this,r)},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=nT(a),s=r/a*i;for(s<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var l=[Xe(HB(n[0]/i)*i),Xe(FB(n[1]/i)*i)];this._interval=i,this._niceExtent=l}},e.prototype.calcNiceExtent=function(r){$i.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=er(r)/er(this.base),xl(r,this._extent)},e.prototype.normalize=function(r){return r=er(r)/er(this.base),Cl(r,this._extent)},e.prototype.scale=function(r){return r=kl(r,this._extent),$o(this.base,r)},e.type="log",e}(kr),L0=vd.prototype;L0.getMinorTicks=$i.getMinorTicks;L0.getLabel=$i.getLabel;function Fo(t,e){return $B(t,Nr(e))}kr.registerClass(vd);var GB=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=r.get("min",!0);i==null&&(i=r.get("startValue",!0));var s=this._modelMinRaw=i;ue(s)?this._modelMinNum=Ho(e,s({min:n[0],max:n[1]})):s!=="dataMin"&&(this._modelMinNum=Ho(e,s));var l=this._modelMaxRaw=r.get("max",!0);if(ue(l)?this._modelMaxNum=Ho(e,l({min:n[0],max:n[1]})):l!=="dataMax"&&(this._modelMaxNum=Ho(e,l)),a)this._axisDataLen=r.getCategories().length;else{var u=r.get("boundaryGap"),c=j(u)?u:[u||0,u||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[un(c[0],1),un(c[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,s=e?null:n-r||Math.abs(r),l=this._modelMinRaw==="dataMin"?r:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,c=l!=null,f=u!=null;l==null&&(l=e?a?0:NaN:r-i[0]*s),u==null&&(u=e?a?a-1:NaN:n+i[1]*s),(l==null||!isFinite(l))&&(l=NaN),(u==null||!isFinite(u))&&(u=NaN);var d=Fi(l)||Fi(u)||e&&!a;this._needCrossZero&&(l>0&&u>0&&!c&&(l=0),l<0&&u<0&&!f&&(u=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(l=h,c=!0),v!=null&&(u=v,f=!0),{min:l,max:u,minFixed:c,maxFixed:f,isBlank:d}},t.prototype.modifyDataMinMax=function(e,r){process.env.NODE_ENV!=="production"&&he(!this.frozen),this[UB[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=WB[e];process.env.NODE_ENV!=="production"&&he(!this.frozen&&this[n]==null),this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),WB={min:"_determinedMin",max:"_determinedMax"},UB={min:"_dataMin",max:"_dataMax"};function YB(t,e,r){var n=t.rawExtentInfo;return n||(n=new GB(t,e,r),t.rawExtentInfo=n,n)}function Ho(t,e){return e==null?null:Fi(e)?NaN:t.parse(e)}function P0(t,e){var r=t.type,n=YB(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var a=n.min,i=n.max,s=e.ecModel;if(s&&r==="time"){var l=A0("bar",s),u=!1;if(L(l,function(d){u=u||d.getBaseAxis()===e.axis}),u){var c=N0(l),f=XB(a,i,e,c);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function XB(t,e,r,n){var a=r.axis.getExtent(),i=Math.abs(a[1]-a[0]),s=EB(n,r.axis);if(s===void 0)return{min:t,max:e};var l=1/0;L(s,function(v){l=Math.min(v.offset,l)});var u=-1/0;L(s,function(v){u=Math.max(v.offset+v.width,u)}),l=Math.abs(l),u=Math.abs(u);var c=l+u,f=e-t,d=1-(l+u)/i,h=f/d-f;return e+=h*(u/c),t-=h*(l/c),{min:t,max:e}}function _p(t,e){var r=e,n=P0(t,r),a=n.extent,i=r.get("splitNumber");t instanceof vd&&(t.base=r.get("logBase"));var s=t.type,l=r.get("interval"),u=s==="interval"||s==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),l!=null&&t.setInterval&&t.setInterval(l)}function qB(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new dd({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new I0({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(kr.getClass(e)||Ya)}}function jB(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function Xa(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(a,i){return t.scale.getFormattedLabel(a,i,n)}}(e):Z(e)?function(n){return function(a){var i=t.scale.getLabel(a),s=n.replace("{value}",i??"");return s}}(e):ue(e)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(pd(t,a),i,a.level!=null?{level:a.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function pd(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function ZB(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof dd?a=r.count():(n=r.getTicks(),a=n.length);var s=t.getLabelModel(),l=Xa(t),u,c=1;a>40&&(c=Math.ceil(a/40));for(var f=0;f<a;f+=c){var d=n?n[f]:{value:i[0]+f},h=l(d,f),v=s.getTextRect(h),p=KB(v,s.get("rotate")||0);u?u.union(p):u=p}return u}}function KB(t,e){var r=e*Math.PI/180,n=t.width,a=t.height,i=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),s=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),l=new Ce(t.x,t.y,i,s);return l}function md(t){var e=t.get("interval");return e??"auto"}function z0(t){return t.type==="category"&&md(t.getLabelModel())===0}function QB(t,e){var r={};return L(t.mapDimensionsAll(e),function(n){r[vB(t,n)]=!0}),Oe(r)}var JB=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}(),wp=[],eV={registerPreprocessor:g0,registerProcessor:y0,registerPostInit:GN,registerPostUpdate:WN,registerUpdateLifecycle:ud,registerAction:Ua,registerCoordinateSystem:UN,registerLayout:YN,registerVisual:Jn,registerTransform:qN,registerLoading:b0,registerMap:XN,registerImpl:xN,PRIORITY:PN,ComponentModel:_e,ComponentView:or,SeriesModel:ir,ChartView:Kt,registerComponentModel:function(t){_e.registerClass(t)},registerComponentView:function(t){or.registerClass(t)},registerSeriesModel:function(t){ir.registerClass(t)},registerChartView:function(t){Kt.registerClass(t)},registerSubTypeDefaulter:function(t,e){_e.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){K2(t,e)}};function dn(t){if(j(t)){L(t,function(e){dn(e)});return}Me(wp,t)>=0||(wp.push(t),ue(t)&&(t={install:t}),t.install(eV))}var Qi=Ue();function R0(t,e){var r=ee(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function tV(t){var e=t.getLabelModel().get("customValues");if(e){var r=Xa(t),n=t.scale.getExtent(),a=R0(t,e),i=st(a,function(s){return s>=n[0]&&s<=n[1]});return{labels:ee(i,function(s){var l={value:s};return{formattedLabel:r(l),rawLabel:t.scale.getLabel(l),tickValue:s}})}}return t.type==="category"?nV(t):iV(t)}function rV(t,e){var r=t.getTickModel().get("customValues");if(r){var n=t.scale.getExtent(),a=R0(t,r);return{ticks:st(a,function(i){return i>=n[0]&&i<=n[1]})}}return t.type==="category"?aV(t,e):{ticks:ee(t.scale.getTicks(),function(i){return i.value})}}function nV(t){var e=t.getLabelModel(),r=O0(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function O0(t,e){var r=$0(t,"labels"),n=md(e),a=F0(r,n);if(a)return a;var i,s;return ue(n)?i=W0(t,n):(s=n==="auto"?oV(t):n,i=G0(t,s)),H0(r,n,{labels:i,labelCategoryInterval:s})}function aV(t,e){var r=$0(t,"ticks"),n=md(e),a=F0(r,n);if(a)return a;var i,s;if((!e.get("show")||t.scale.isBlank())&&(i=[]),ue(n))i=W0(t,n,!0);else if(n==="auto"){var l=O0(t,t.getLabelModel());s=l.labelCategoryInterval,i=ee(l.labels,function(u){return u.tickValue})}else s=n,i=G0(t,s,!0);return H0(r,n,{ticks:i,tickCategoryInterval:s})}function iV(t){var e=t.scale.getTicks(),r=Xa(t);return{labels:ee(e,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function $0(t,e){return Qi(t)[e]||(Qi(t)[e]=[])}function F0(t,e){for(var r=0;r<t.length;r++)if(t[r].key===e)return t[r].value}function H0(t,e,r){return t.push({key:e,value:r}),r}function oV(t){var e=Qi(t).autoInterval;return e??(Qi(t).autoInterval=t.calculateCategoryInterval())}function sV(t){var e=lV(t),r=Xa(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,i=a.getExtent(),s=a.count();if(i[1]-i[0]<1)return 0;var l=1;s>40&&(l=Math.max(1,Math.floor(s/40)));for(var u=i[0],c=t.dataToCoord(u+1)-t.dataToCoord(u),f=Math.abs(c*Math.cos(n)),d=Math.abs(c*Math.sin(n)),h=0,v=0;u<=i[1];u+=l){var p=0,g=0,m=Ef(r({value:u}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,h=Math.max(h,p,7),v=Math.max(v,g,7)}var y=h/f,b=v/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),w=Qi(t.model),S=t.getExtent(),x=w.lastAutoInterval,C=w.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-s)<=1&&x>_&&w.axisExtent0===S[0]&&w.axisExtent1===S[1]?_=x:(w.lastTickCount=s,w.lastAutoInterval=_,w.axisExtent0=S[0],w.axisExtent1=S[1]),_}function lV(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function G0(t,e,r){var n=Xa(t),a=t.scale,i=a.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=i[0],f=a.count();c!==0&&u>1&&f/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d=z0(t),h=s.get("showMinLabel")||d,v=s.get("showMaxLabel")||d;h&&c!==i[0]&&g(i[0]);for(var p=c;p<=i[1];p+=u)g(p);v&&p-u!==i[1]&&g(i[1]);function g(m){var y={value:m};l.push(r?m:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:m})}return l}function W0(t,e,r){var n=t.scale,a=Xa(t),i=[];return L(n.getTicks(),function(s){var l=n.getLabel(s),u=s.value;e(s.value,l)&&i.push(r?u:{formattedLabel:a(s),rawLabel:l,tickValue:u})}),i}var Sp=[0,1],uV=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=n&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return J2(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(n=n.slice(),xp(n,a.count())),kc(e,Sp,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),xp(n,a.count()));var i=kc(e,n,Sp,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=rV(this,r),a=n.ticks,i=ee(a,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=r.get("alignWithLabel");return cV(this,i,s,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=ee(n,function(i){return ee(i,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return a},t.prototype.getViewLabels=function(){return tV(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},t.prototype.calculateCategoryInterval=function(){return sV(this)},t}();function xp(t,e){var r=t[1]-t[0],n=e,a=r/n/2;t[0]+=a,t[1]-=a}function cV(t,e,r,n){var a=e.length;if(!t.onBand||r||!a)return;var i=t.getExtent(),s,l;if(a===1)e[0].coord=i[0],s=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var u=e[a-1].tickValue-e[0].tickValue,c=(e[a-1].coord-e[0].coord)/u;L(e,function(v){v.coord-=c/2});var f=t.scale.getExtent();l=1+f[1]-e[a-1].tickValue,s={coord:e[a-1].coord+c*l,tickValue:f[1]+1},e.push(s)}var d=i[0]>i[1];h(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&h(i[0],e[0].coord)&&e.unshift({coord:i[0]}),h(i[1],s.coord)&&(n?s.coord=i[1]:e.pop()),n&&h(s.coord,i[1])&&e.push({coord:i[1]});function h(v,p){return v=Xe(v),p=Xe(p),d?v>p:v<p}}function U0(t,e,r,n,a,i,s,l){var u=a-t,c=i-e,f=r-t,d=n-e,h=Math.sqrt(f*f+d*d);f/=h,d/=h;var v=u*f+c*d,p=v/h;p*=h;var g=s[0]=t+p*f,m=s[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}var tn=new ce,Fe=new ce,ot=new ce,rn=new ce,gr=new ce,Ws=[],bt=new ce;function fV(t,e){if(e<=180&&e>0){e=e/180*Math.PI,tn.fromArray(t[0]),Fe.fromArray(t[1]),ot.fromArray(t[2]),ce.sub(rn,tn,Fe),ce.sub(gr,ot,Fe);var r=rn.len(),n=gr.len();if(!(r<.001||n<.001)){rn.scale(1/r),gr.scale(1/n);var a=rn.dot(gr),i=Math.cos(e);if(i<a){var s=U0(Fe.x,Fe.y,ot.x,ot.y,tn.x,tn.y,Ws);bt.fromArray(Ws),bt.scaleAndAdd(gr,s/Math.tan(Math.PI-e));var l=ot.x!==Fe.x?(bt.x-Fe.x)/(ot.x-Fe.x):(bt.y-Fe.y)/(ot.y-Fe.y);if(isNaN(l))return;l<0?ce.copy(bt,Fe):l>1&&ce.copy(bt,ot),bt.toArray(t[1])}}}}function dV(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,tn.fromArray(t[0]),Fe.fromArray(t[1]),ot.fromArray(t[2]),ce.sub(rn,Fe,tn),ce.sub(gr,ot,Fe);var n=rn.len(),a=gr.len();if(!(n<.001||a<.001)){rn.scale(1/n),gr.scale(1/a);var i=rn.dot(e),s=Math.cos(r);if(i<s){var l=U0(Fe.x,Fe.y,ot.x,ot.y,tn.x,tn.y,Ws);bt.fromArray(Ws);var u=Math.PI/2,c=Math.acos(gr.dot(e)),f=u+c-r;if(f>=u)ce.copy(bt,ot);else{bt.scaleAndAdd(gr,l/Math.tan(Math.PI/2-f));var d=ot.x!==Fe.x?(bt.x-Fe.x)/(ot.x-Fe.x):(bt.y-Fe.y)/(ot.y-Fe.y);if(isNaN(d))return;d<0?ce.copy(bt,Fe):d>1&&ce.copy(bt,ot)}bt.toArray(t[1])}}}}function Ru(t,e,r,n){var a=r==="normal",i=a?t:t.ensureState(r);i.ignore=e;var s=n.get("smooth");s&&s===!0&&(s=.3),i.shape=i.shape||{},s>0&&(i.shape.smooth=s);var l=n.getModel("lineStyle").getLineStyle();a?t.useStyle(l):i.style=l}function hV(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=cc(n[0],n[1]),i=cc(n[1],n[2]);if(!a||!i){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var s=Math.min(a,i)*r,l=Nl([],n[1],n[0],s/a),u=Nl([],n[1],n[2],s/i),c=Nl([],l,u,.5);t.bezierCurveTo(l[0],l[1],l[0],l[1],c[0],c[1]),t.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function vV(t,e,r){var n=t.getTextGuideLine(),a=t.getTextContent();if(!a){n&&t.removeTextGuideLine();return}for(var i=e.normal,s=i.get("show"),l=a.ignore,u=0;u<Ts.length;u++){var c=Ts[u],f=e[c],d=c==="normal";if(f){var h=f.get("show"),v=d?l:fe(a.states[c]&&a.states[c].ignore,l);if(v||!fe(h,s)){var p=d?n:n&&n.states[c];p&&(p.ignore=!0),n&&Ru(n,!0,c,f);continue}n||(n=new ao,t.setTextGuideLine(n),!d&&(l||!s)&&Ru(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Ru(n,!1,c,f)}}if(n){ke(n.style,r),n.style.fill=null;var g=i.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=g||!1,n.buildPath=hV}}function pV(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Qt.length;n++){var a=Qt[n];r[a]=t.getModel([a,e])}return r}function mV(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),s=a.getBoundingRect(),l=!i||i[1]<1e-5&&i[2]<1e-5,u=a.style.margin||0,c=s.clone();c.applyTransform(i),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var f=l?new As(s,i):null;e.push({label:a,labelLine:n.labelLine,rect:c,localRect:s,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:l,transform:i})}}return e}function gV(t,e,r,n,a,i){var s=t.length;if(s<2)return;t.sort(function(x,C){return x.rect[e]-C.rect[e]});for(var l=0,u,c=!1,f=0;f<s;f++){var d=t[f],h=d.rect;u=h[e]-l,u<0&&(h[e]-=u,d.label[e]-=u,c=!0),l=h[e]+h[r]}var v=t[0],p=t[s-1],g,m;y(),g<0&&w(-g,.8),m<0&&w(m,.8),y(),b(g,m,1),b(m,g,-1),y(),g<0&&S(-g),m<0&&S(m);function y(){g=v.rect[e]-n,m=a-p.rect[e]-p.rect[r]}function b(x,C,k){if(x<0){var D=Math.min(C,-x);if(D>0){_(D*k,0,s);var E=D+x;E<0&&w(-E*k,1)}else w(-x*k,1)}}function _(x,C,k){x!==0&&(c=!0);for(var D=C;D<k;D++){var E=t[D],T=E.rect;T[e]+=x,E.label[e]+=x}}function w(x,C){for(var k=[],D=0,E=1;E<s;E++){var T=t[E-1].rect,M=Math.max(t[E].rect[e]-T[e]-T[r],0);k.push(M),D+=M}if(D){var A=Math.min(Math.abs(x)/D,C);if(x>0)for(var E=0;E<s-1;E++){var P=k[E]*A;_(P,0,E+1)}else for(var E=s-1;E>0;E--){var P=k[E-1]*A;_(-P,E,s)}}}function S(x){var C=x<0?-1:1;x=Math.abs(x);for(var k=Math.ceil(x/(s-1)),D=0;D<s-1;D++)if(C>0?_(k,0,D+1):_(-k,s-D-1,s),x-=k,x<=0)return}return c}function yV(t,e,r,n){return gV(t,"y","height",e,r)}function bV(t){var e=[];t.sort(function(g,m){return m.priority-g.priority});var r=new Ce(0,0,0,0);function n(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a<t.length;a++){var i=t[a],s=i.axisAligned,l=i.localRect,u=i.transform,c=i.label,f=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var d=i.obb,h=!1,v=0;v<e.length;v++){var p=e[v];if(r.intersect(p.rect)){if(s&&p.axisAligned){h=!0;break}if(p.obb||(p.obb=new As(p.localRect,p.transform)),d||(d=new As(l,u)),d.intersect(p.obb)){h=!0;break}}}h?(n(c),f&&n(f)):(c.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}var Ou=null;function _V(t){return Ou||(Ou=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),Ou(t)}var $u=null;function wV(t){$u||($u=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),$u(t)}function SV(t){var e=document.createElement("style");return e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),(document.querySelector("head")||document.body).appendChild(e),e}function Go(t,e){e===void 0&&(e={});var r=document.createElement(t);return Object.keys(e).forEach(function(n){r[n]=e[n]}),r}function Y0(t,e,r){var n=window.getComputedStyle(t,null)||{display:"none"};return n[e]}function tf(t){if(!document.documentElement.contains(t))return{detached:!0,rendered:!1};for(var e=t;e!==document;){if(Y0(e,"display")==="none")return{detached:!1,rendered:!1};e=e.parentNode}return{detached:!1,rendered:!0}}var xV='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',rf=0,cs=null;function CV(t,e){t.__resize_mutation_handler__||(t.__resize_mutation_handler__=DV.bind(t));var r=t.__resize_listeners__;if(!r){if(t.__resize_listeners__=[],window.ResizeObserver){var n=t.offsetWidth,a=t.offsetHeight,i=new ResizeObserver(function(){!t.__resize_observer_triggered__&&(t.__resize_observer_triggered__=!0,t.offsetWidth===n&&t.offsetHeight===a)||Us(t)}),s=tf(t),l=s.detached,u=s.rendered;t.__resize_observer_triggered__=l===!1&&u===!1,t.__resize_observer__=i,i.observe(t)}else if(t.attachEvent&&t.addEventListener)t.__resize_legacy_resize_handler__=function(){Us(t)},t.attachEvent("onresize",t.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);else if(rf||(cs=SV(xV)),EV(t),t.__resize_rendered__=tf(t).rendered,window.MutationObserver){var c=new MutationObserver(t.__resize_mutation_handler__);c.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__resize_mutation_observer__=c}}t.__resize_listeners__.push(e),rf++}function kV(t,e){var r=t.__resize_listeners__;if(r){if(e&&r.splice(r.indexOf(e),1),!r.length||!e){if(t.detachEvent&&t.removeEventListener){t.detachEvent("onresize",t.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);return}t.__resize_observer__?(t.__resize_observer__.unobserve(t),t.__resize_observer__.disconnect(),t.__resize_observer__=null):(t.__resize_mutation_observer__&&(t.__resize_mutation_observer__.disconnect(),t.__resize_mutation_observer__=null),t.removeEventListener("scroll",gd),t.removeChild(t.__resize_triggers__.triggers),t.__resize_triggers__=null),t.__resize_listeners__=null}!--rf&&cs&&cs.parentNode.removeChild(cs)}}function TV(t){var e=t.__resize_last__,r=e.width,n=e.height,a=t.offsetWidth,i=t.offsetHeight;return a!==r||i!==n?{width:a,height:i}:null}function DV(){var t=tf(this),e=t.rendered,r=t.detached;e!==this.__resize_rendered__&&(!r&&this.__resize_triggers__&&(yd(this),this.addEventListener("scroll",gd,!0)),this.__resize_rendered__=e,Us(this))}function gd(){var t=this;yd(this),this.__resize_raf__&&wV(this.__resize_raf__),this.__resize_raf__=_V(function(){var e=TV(t);e&&(t.__resize_last__=e,Us(t))})}function Us(t){!t||!t.__resize_listeners__||t.__resize_listeners__.forEach(function(e){e.call(t,t)})}function EV(t){var e=Y0(t,"position");(!e||e==="static")&&(t.style.position="relative"),t.__resize_old_position__=e,t.__resize_last__={};var r=Go("div",{className:"resize-triggers"}),n=Go("div",{className:"resize-expand-trigger"}),a=Go("div"),i=Go("div",{className:"resize-contract-trigger"});n.appendChild(a),r.appendChild(n),r.appendChild(i),t.appendChild(r),t.__resize_triggers__={triggers:r,expand:n,expandChild:a,contract:i},yd(t),t.addEventListener("scroll",gd,!0),t.__resize_last__={width:t.offsetWidth,height:t.offsetHeight}}function yd(t){var e=t.__resize_triggers__,r=e.expand,n=e.expandChild,a=e.contract,i=a.scrollWidth,s=a.scrollHeight,l=r.offsetWidth,u=r.offsetHeight,c=r.scrollWidth,f=r.scrollHeight;a.scrollLeft=i,a.scrollTop=s,n.style.width=l+1+"px",n.style.height=u+1+"px",r.scrollLeft=c,r.scrollTop=f}var vr=function(){return vr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var a in e=arguments[r])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},vr.apply(this,arguments)};var MV=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function AV(t){return e=Object.create(null),MV.forEach(function(r){e[r]=function(n){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(!t.value)throw new Error("ECharts is not initialized yet.");return t.value[n].apply(t.value,a)}}(r)}),e;var e}var NV={autoresize:[Boolean,Object]},BV=/^on[^a-z]/,Cp=function(t){return BV.test(t)};function Wo(t,e){var r=o.isRef(t)?o.unref(t):t;return r&&typeof r=="object"&&"value"in r?r.value||e:r||e}var VV="ecLoadingOptions",IV={loading:Boolean,loadingOptions:Object},vi=null,X0="x-vue-echarts",kp=[],pi=[];(function(t,e){if(t&&typeof document<"u"){var r,n=e.prepend===!0?"prepend":"append",a=e.singleTag===!0,i=typeof e.container=="string"?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(a){var s=kp.indexOf(i);s===-1&&(s=kp.push(i)-1,pi[s]={}),r=pi[s]&&pi[s][n]?pi[s][n]:pi[s][n]=l()}else r=l();t.charCodeAt(0)===65279&&(t=t.substring(1)),r.styleSheet?r.styleSheet.cssText+=t:r.appendChild(document.createTextNode(t))}function l(){var u=document.createElement("style");if(u.setAttribute("type","text/css"),e.attributes)for(var c=Object.keys(e.attributes),f=0;f<c.length;f++)u.setAttribute(c[f],e.attributes[c[f]]);var d=n==="prepend"?"afterbegin":"beforeend";return i.insertAdjacentElement(d,u),u}})(`x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0}
|
|
255
|
+
.vue-echarts-inner{flex-grow:1;min-width:0;width:auto!important;height:auto!important}
|
|
256
|
+
`,{});var LV=function(){if(vi!=null)return vi;if(typeof HTMLElement>"u"||typeof customElements>"u")return vi=!1;try{new Function("tag",`class EChartsElement extends HTMLElement {
|
|
257
|
+
__dispose = null;
|
|
258
|
+
|
|
259
|
+
disconnectedCallback() {
|
|
260
|
+
if (this.__dispose) {
|
|
261
|
+
this.__dispose();
|
|
262
|
+
this.__dispose = null;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (customElements.get(tag) == null) {
|
|
268
|
+
customElements.define(tag, EChartsElement);
|
|
269
|
+
}
|
|
270
|
+
`)(X0)}catch{return vi=!1}return vi=!0}(),PV="ecTheme",zV="ecInitOptions",RV="ecUpdateOptions",Tp=/(^&?~?!?)native:/,OV=o.defineComponent({name:"echarts",props:vr(vr({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},NV),IV),emits:{},inheritAttrs:!1,setup:function(t,e){var r=e.attrs,n=o.shallowRef(),a=o.shallowRef(),i=o.shallowRef(),s=o.shallowRef(),l=o.inject(PV,null),u=o.inject(zV,null),c=o.inject(RV,null),f=o.toRefs(t),d=f.autoresize,h=f.manualUpdate,v=f.loading,p=f.loadingOptions,g=o.computed(function(){return s.value||t.option||null}),m=o.computed(function(){return t.theme||Wo(l,{})}),y=o.computed(function(){return t.initOptions||Wo(u,{})}),b=o.computed(function(){return t.updateOptions||Wo(c,{})}),_=o.computed(function(){return function(T){var M={};for(var A in T)Cp(A)||(M[A]=T[A]);return M}(r)}),w={},S=o.getCurrentInstance().proxy.$listeners,x={};function C(T){if(a.value){var M=i.value=FN(a.value,m.value,y.value);t.group&&(M.group=t.group),Object.keys(x).forEach(function(P){var V=x[P];if(V){var B=P.toLowerCase();B.charAt(0)==="~"&&(B=B.substring(1),V.__once__=!0);var z=M;if(B.indexOf("zr:")===0&&(z=M.getZr(),B=B.substring(3)),V.__once__){delete V.__once__;var N=V;V=function(){for(var R=[],I=0;I<arguments.length;I++)R[I]=arguments[I];N.apply(void 0,R),z.off(B,V)}}z.on(B,V)}}),d.value?o.nextTick(function(){M&&!M.isDisposed()&&M.resize(),A()}):A()}function A(){var P=T||g.value;P&&M.setOption(P,b.value)}}function k(){i.value&&(i.value.dispose(),i.value=void 0)}S?Object.keys(S).forEach(function(T){Tp.test(T)?w[T.replace(Tp,"$1")]=S[T]:x[T]=S[T]}):Object.keys(r).filter(function(T){return Cp(T)}).forEach(function(T){var M=T.charAt(2).toLowerCase()+T.slice(3);if(M.indexOf("native:")!==0)M.substring(M.length-4)==="Once"&&(M="~".concat(M.substring(0,M.length-4))),x[M]=r[T];else{var A="on".concat(M.charAt(7).toUpperCase()).concat(M.slice(8));w[A]=r[T]}});var D=null;o.watch(h,function(T){typeof D=="function"&&(D(),D=null),T||(D=o.watch(function(){return t.option},function(M,A){M&&(i.value?i.value.setOption(M,vr({notMerge:M!==A},b.value)):C())},{deep:!0}))},{immediate:!0}),o.watch([m,y],function(){k(),C()},{deep:!0}),o.watchEffect(function(){t.group&&i.value&&(i.value.group=t.group)});var E=AV(i);return function(T,M,A){var P=o.inject(VV,{}),V=o.computed(function(){return vr(vr({},Wo(P,{})),A==null?void 0:A.value)});o.watchEffect(function(){var B=T.value;B&&(M.value?B.showLoading(V.value):B.hideLoading())})}(i,v,p),function(T,M,A){var P=null;o.watch([A,T,M],function(V,B,z){var N=V[0],R=V[1],I=V[2];if(N&&R&&I){var G=I===!0?{}:I,F=G.throttle,J=F===void 0?100:F,le=G.onResize,X=function(){R.resize(),le==null||le()};P=J?wl(X,J):X,CV(N,P)}z(function(){N&&P&&kV(N,P)})})}(i,d,a),o.onMounted(function(){C()}),o.onBeforeUnmount(function(){LV&&n.value?n.value.__dispose=k:k()}),vr({chart:i,root:n,inner:a,setOption:function(T,M){t.manualUpdate&&(s.value=T),i.value?i.value.setOption(T,M||{}):C(T)},nonEventAttrs:_,nativeListeners:w},E)},render:function(){var t=vr(vr({},this.nonEventAttrs),this.nativeListeners);return t.ref="root",t.class=t.class?["echarts"].concat(t.class):"echarts",o.h(X0,t,[o.h("div",{ref:"inner",class:"vue-echarts-inner"})])}});function Dp(t,e,r){var n=Fa.createCanvas(),a=e.getWidth(),i=e.getHeight(),s=n.style;return s&&(s.position="absolute",s.left="0",s.top="0",s.width=a+"px",s.height=i+"px",n.setAttribute("data-zr-dom-id",t)),n.width=a*r,n.height=i*r,n}var Fu=function(t){Ae(e,t);function e(r,n,a){var i=t.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 s;a=a||_s,typeof r=="string"?s=Dp(r,n,a):re(r)&&(s=r,r=s.id),i.id=r,i.dom=s;var l=s.style;return l&&(jm(s),s.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Dp("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var s=[],l=this.maxRepaintRectCount,u=!1,c=new Ce(0,0,0,0);function f(b){if(!(!b.isFinite()||b.isZero()))if(s.length===0){var _=new Ce(0,0,0,0);_.copy(b),s.push(_)}else{for(var w=!1,S=1/0,x=0,C=0;C<s.length;++C){var k=s[C];if(k.intersect(b)){var D=new Ce(0,0,0,0);D.copy(k),D.union(b),s[C]=D,w=!0;break}else if(u){c.copy(b),c.union(k);var E=b.width*b.height,T=k.width*k.height,M=c.width*c.height,A=M-E-T;A<S&&(S=A,x=C)}}if(u&&(s[x].union(b),w=!0),!w){var _=new Ce(0,0,0,0);_.copy(b),s.push(_)}u||(u=s.length>=l)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var h=r[d];if(h){var v=h.shouldBePainted(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&Vt||!v)?h.getPrevPaintRect():null;p&&f(p);var g=v&&(h.__dirty&Vt||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var h=n[d],v=h&&h.shouldBePainted(a,i,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&f(p)}}var m;do{m=!1;for(var d=0;d<s.length;){if(s[d].isZero()){s.splice(d,1);continue}for(var y=d+1;y<s.length;)s[d].intersect(s[y])?(m=!0,s[d].union(s[y]),s.splice(y,1)):y++;d++}}while(m);return this._paintRects=s,s},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,s=i.style,l=this.domBack;s&&(s.width=r+"px",s.height=n+"px"),i.width=r*a,i.height=n*a,l&&(l.width=r*a,l.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(r,n,a){var i=this.dom,s=this.ctx,l=i.width,u=i.height;n=n||this.clearColor;var c=this.motionBlur&&!r,f=this.lastFrameAlpha,d=this.dpr,h=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,l/d,u/d));var v=this.domBack;function p(g,m,y,b){if(s.clearRect(g,m,y,b),n&&n!=="transparent"){var _=void 0;if(Xs(n)){var w=n.global||n.__width===y&&n.__height===b;_=w&&n.__canvasGradient||Xc(s,n,{x:0,y:0,width:y,height:b}),n.__canvasGradient=_,n.__width=y,n.__height=b}else Bk(n)&&(n.scaleX=n.scaleX||d,n.scaleY=n.scaleY||d,_=qc(s,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));s.save(),s.fillStyle=_||n,s.fillRect(g,m,y,b),s.restore()}c&&(s.save(),s.globalAlpha=f,s.drawImage(v,g,m,y,b),s.restore())}!a||c?p(0,0,l,u):a.length&&L(a,function(g){p(g.x*d,g.y*d,g.width*d,g.height*d)})},e}(xr),Ep=1e5,zn=314159,Uo=.01,$V=.001;function FV(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function HV(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var GV=function(){function t(e,r,n,a){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=W({},n||{}),this.dpr=n.devicePixelRatio||_s,this._singleCanvas=i,this.root=e;var s=e.style;s&&(jm(e),e.innerHTML=""),this.storage=r;var l=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(i){var f=e,d=f.width,h=f.height;n.width!=null&&(d=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=d*this.dpr,f.height=h*this.dpr,this._width=d,this._height=h;var v=new Fu(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[zn]=v,v.zlevel=zn,l.push(zn),this._domRoot=e}else{this._width=Lo(e,0,n),this._height=Lo(e,1,n);var c=this._domRoot=HV(this._width,this._height);e.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var i=0;i<a.length;i++){var s=a[i],l=this._layers[s];if(!l.__builtin__&&l.refresh){var u=i===0?this._backgroundColor:null;l.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,s=0;s<r;s++){var l=e[s];l.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Ep)),i||(i=n.ctx,i.save()),Fn(i,l,a,s===r-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(Ep)},t.prototype.paintOne=function(e,r){t0(e,r)},t.prototype._paintList=function(e,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,r,n),s=i.finished,l=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),l&&this._paintHoverList(e),s)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var u=this;vs(function(){u._paintList(e,r,n,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(zn).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var a=this,i=[],s=this._opts.useDirtyRect,l=0;l<this._zlevelList.length;l++){var u=this._zlevelList[l],c=this._layers[u];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&i.push(c)}for(var f=!0,d=!1,h=function(g){var m=i[g],y=m.ctx,b=s&&m.createRepaintRects(e,r,v._width,v._height),_=n?m.__startIndex:m.__drawIndex,w=!n&&m.incremental&&Date.now,S=w&&Date.now(),x=m.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,x,b);else if(_===m.__startIndex){var C=e[_];(!C.incremental||!C.notClear||n)&&m.clear(!1,x,b)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=m.__startIndex);var k,D=function(A){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(k=_;k<m.__endIndex;k++){var V=e[k];if(V.__inHover&&(d=!0),a._doPaintEl(V,m,s,A,P,k===m.__endIndex-1),w){var B=Date.now()-S;if(B>15)break}}P.prevElClipPaths&&y.restore()};if(b)if(b.length===0)k=m.__endIndex;else for(var E=v.dpr,T=0;T<b.length;++T){var M=b[T];y.save(),y.beginPath(),y.rect(M.x*E,M.y*E,M.width*E,M.height*E),y.clip(),D(M),y.restore()}else y.save(),D(),y.restore();m.__drawIndex=k,m.__drawIndex<m.__endIndex&&(f=!1)},v=this,p=0;p<i.length;p++)h(p);return oe.wxa&&L(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:d}},t.prototype._doPaintEl=function(e,r,n,a,i,s){var l=r.ctx;if(n){var u=e.getPaintRect();(!a||u&&u.intersect(a))&&(Fn(l,e,i,s),e.setPrevPaintRect(u))}else Fn(l,e,i,s)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=zn);var n=this._layers[e];return n||(n=new Fu("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?xe(n,this._layerConfig[e],!0):this._layerConfig[e-Uo]&&xe(n,this._layerConfig[e-Uo],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,a=this._zlevelList,i=a.length,s=this._domRoot,l=null,u=-1;if(n[e]){process.env.NODE_ENV!=="production"&&Hn("ZLevel "+e+" has been used already");return}if(!FV(r)){process.env.NODE_ENV!=="production"&&Hn("Layer of zlevel "+e+" is not valid");return}if(i>0&&e>a[0]){for(u=0;u<i-1&&!(a[u]<e&&a[u+1]>e);u++);l=n[a[u]]}if(a.splice(u+1,0,e),n[e]=r,!r.virtual)if(l){var c=l.dom;c.nextSibling?s.insertBefore(r.dom,c.nextSibling):s.appendChild(r.dom)}else s.firstChild?s.insertBefore(r.dom,s.firstChild):s.appendChild(r.dom);r.painter||(r.painter=this)},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(r,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],s=this._layers[i];s.__builtin__&&e.call(r,s,i)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],s=this._layers[i];s.__builtin__||e.call(r,s,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(d,h){d.__dirty=d.__used=!1});function r(d){i&&(i.__endIndex!==d&&(i.__dirty=!0),i.__endIndex=d)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,s=0,l,u;for(u=0;u<e.length;u++){var a=e[u],c=a.zlevel,f=void 0;l!==c&&(l=c,s=0),a.incremental?(f=this.getLayer(c+$V,this._needsManuallyCompositing),f.incremental=!0,s=1):f=this.getLayer(c+(s>0?Uo:0),this._needsManuallyCompositing),f.__builtin__||Hn("ZLevel "+c+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,r(u),i=f),a.__dirty&Vt&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(u),this.eachBuiltinLayer(function(d,h){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,L(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?xe(n[e],r,!0):n[e]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+Uo){var s=this._layers[i];xe(s,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,a=r[e];a&&(a.dom.parentNode.removeChild(a.dom),delete r[e],n.splice(Me(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),r!=null&&(a.height=r),e=Lo(i,0,a),r=Lo(i,1,a),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var s in this._layers)this._layers.hasOwnProperty(s)&&this._layers[s].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(zn).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[zn].dom;var r=new Fu("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(d){d.__builtin__?n.drawImage(d.dom,0,0,a,i):d.renderToCanvas&&(n.save(),d.renderToCanvas(n),n.restore())})}else for(var s={inHover:!1,viewWidth:this._width,viewHeight:this._height},l=this.storage.getDisplayList(!0),u=0,c=l.length;u<c;u++){var f=l[u];Fn(n,f,s,u===c-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function WV(t){t.registerPainter("canvas",GV)}var UV=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return fd(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new ut,a=Ra("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),s=this.getData().getVisual("symbolRotate"),l=i==="none"?"circle":i,u=r.itemHeight*.8,c=Ra(l,(r.itemWidth-u)/2,(r.itemHeight-u)/2,u,u,r.itemStyle.fill);n.add(c),c.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?s:r.iconRotate||0;return c.rotation=f*Math.PI/180,c.setOrigin([r.itemWidth/2,r.itemHeight/2]),l.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(ir);function bd(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=za(t,e,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],s=0;s<r.length;s++)i.push(za(t,e,r[s]));return i.join(" ")}}function q0(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!j(e))return e+"";for(var n=[],a=0;a<r.length;a++){var i=t.getDimensionIndex(r[a]);i>=0&&n.push(e[i])}return n.join(" ")}var _d=function(t){se(e,t);function e(r,n,a,i){var s=t.call(this)||this;return s.updateData(r,n,a,i),s}return e.prototype._createSymbol=function(r,n,a,i,s){this.removeAll();var l=Ra(r,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=YV,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ds(this.childAt(0))},e.prototype.downplay=function(){Es(this.childAt(0))},e.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},e.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},e.prototype.updateData=function(r,n,a,i){this.silent=!1;var s=r.getItemVisual(n,"symbol")||"circle",l=r.hostModel,u=e.getSymbolSize(r,n),c=s!==this._symbolType,f=i&&i.disableAnimation;if(c){var d=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(s,r,n,u,d)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:u[0]/2,scaleY:u[1]/2};f?h.attr(v):St(h,v,l,n),Hf(h)}if(this._updateCommon(r,n,u,a,i),c){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Zt(h,v,l,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,a,i,s){var l=this.childAt(0),u=r.hostModel,c,f,d,h,v,p,g,m,y;if(i&&(c=i.emphasisItemStyle,f=i.blurItemStyle,d=i.selectItemStyle,h=i.focus,v=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||r.hasItemOption){var b=i&&i.itemModel?i.itemModel:r.getItemModel(n),_=b.getModel("emphasis");c=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),f=b.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),p=_.get("disabled"),g=oo(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");l.attr("rotation",(w||0)*Math.PI/180||0);var S=Ky(r.getItemVisual(n,"symbolOffset"),a);S&&(l.x=S[0],l.y=S[1]),y&&l.attr("cursor",y);var x=r.getItemVisual(n,"style"),C=x.fill;if(l instanceof hn){var k=l.style;l.useStyle(W({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},x))}else l.__isEmptyBrush?l.useStyle(W({},x)):l.useStyle(x),l.style.decal=null,l.setColor(C,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),E=this._z2;D!=null?E==null&&(this._z2=l.z2,l.z2+=D):E!=null&&(l.z2=E,this._z2=null);var T=s&&s.useNameLabel;io(l,g,{labelFetcher:u,labelDataIndex:n,defaultText:M,inheritColor:C,defaultOpacity:x.opacity});function M(V){return T?r.getName(V):bd(r,V)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var A=l.ensureState("emphasis");A.style=c,l.ensureState("select").style=d,l.ensureState("blur").style=f;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;A.scaleX=this._sizeX*P,A.scaleY=this._sizeY*P,this.setSymbolScale(1),Wi(this,h,v,p)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),s=ye(this).dataIndex,l=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var u=i.getTextContent();u&&Ns(u,{style:{opacity:0}},n,{dataIndex:s,removeOpt:l,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ns(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:s,cb:r,removeOpt:l})},e.getSymbolSize=function(r,n){return oN(r.getItemVisual(n,"symbolSize"))},e}(ut);function YV(t,e){this.parent.drift(t,e)}function Hu(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function Mp(t){return t!=null&&!re(t)&&(t={isIgnore:t}),t||{}}function Ap(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:oo(e),cursorStyle:e.get("cursor")}}var XV=function(){function t(e){this.group=new ut,this._SymbolCtor=e||_d}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Mp(r);var n=this.group,a=e.hostModel,i=this._data,s=this._SymbolCtor,l=r.disableAnimation,u=Ap(e),c={disableAnimation:l},f=r.getSymbolPoint||function(d){return e.getItemLayout(d)};i||n.removeAll(),e.diff(i).add(function(d){var h=f(d);if(Hu(e,h,d,r)){var v=new s(e,d,u,c);v.setPosition(h),e.setItemGraphicEl(d,v),n.add(v)}}).update(function(d,h){var v=i.getItemGraphicEl(h),p=f(d);if(!Hu(e,p,d,r)){n.remove(v);return}var g=e.getItemVisual(d,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==g)n.remove(v),v=new s(e,d,u,c),v.setPosition(p);else{v.updateData(e,d,u,c);var y={x:p[0],y:p[1]};l?v.attr(y):St(v,y,a)}n.add(v),e.setItemGraphicEl(d,v)}).remove(function(d){var h=i.getItemGraphicEl(d);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Ap(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=Mp(n);function a(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var s=r.getItemLayout(i);if(Hu(r,s,i,n)){var l=new this._SymbolCtor(r,i,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(i,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){ll(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},t}();function j0(t,e,r){var n=t.getBaseAxis(),a=t.getOtherAxis(n),i=qV(a,r),s=n.dim,l=a.dim,u=e.mapDimension(l),c=e.mapDimension(s),f=l==="x"||l==="radius"?1:0,d=ee(t.dimensions,function(p){return e.mapDimension(p)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return Oa(e,d[0])&&(h=!0,d[0]=v),Oa(e,d[1])&&(h=!0,d[1]=v),{dataDimsForPoint:d,valueStart:i,valueAxisDim:l,baseAxisDim:s,stacked:!!h,valueDim:u,baseDim:c,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function qV(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:Ve(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Z0(t,e,r,n){var a=NaN;t.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var i=t.baseDataOffset,s=[];return s[i]=r.get(t.baseDim,n),s[1-i]=a,e.dataToPoint(s)}function jV(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function ZV(t,e,r,n,a,i,s,l){for(var u=jV(t,e),c=[],f=[],d=[],h=[],v=[],p=[],g=[],m=j0(a,e,s),y=t.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_<u.length;_++){var w=u[_],S=!0,x=void 0,C=void 0;switch(w.cmd){case"=":x=w.idx*2,C=w.idx1*2;var k=y[x],D=y[x+1],E=b[C],T=b[C+1];(isNaN(k)||isNaN(D))&&(k=E,D=T),c.push(k,D),f.push(E,T),d.push(r[x],r[x+1]),h.push(n[C],n[C+1]),g.push(e.getRawIndex(w.idx1));break;case"+":var M=w.idx,A=m.dataDimsForPoint,P=a.dataToPoint([e.get(A[0],M),e.get(A[1],M)]);C=M*2,c.push(P[0],P[1]),f.push(b[C],b[C+1]);var V=Z0(m,a,e,M);d.push(V[0],V[1]),h.push(n[C],n[C+1]),g.push(e.getRawIndex(M));break;case"-":S=!1}S&&(v.push(w),p.push(p.length))}p.sort(function(X,Y){return g[X]-g[Y]});for(var B=c.length,z=Br(B),N=Br(B),R=Br(B),I=Br(B),G=[],_=0;_<p.length;_++){var F=p[_],J=_*2,le=F*2;z[J]=c[le],z[J+1]=c[le+1],N[J]=f[le],N[J+1]=f[le+1],R[J]=d[le],R[J+1]=d[le+1],I[J]=h[le],I[J+1]=h[le+1],G[_]=v[F]}return{current:z,next:N,stackedOnCurrent:R,stackedOnNext:I,status:G}}var qr=Math.min,jr=Math.max;function Yn(t,e){return isNaN(t)||isNaN(e)}function nf(t,e,r,n,a,i,s,l,u){for(var c,f,d,h,v,p,g=r,m=0;m<n;m++){var y=e[g*2],b=e[g*2+1];if(g>=a||g<0)break;if(Yn(y,b)){if(u){g+=i;continue}break}if(g===r)t[i>0?"moveTo":"lineTo"](y,b),d=y,h=b;else{var _=y-c,w=b-f;if(_*_+w*w<.5){g+=i;continue}if(s>0){for(var S=g+i,x=e[S*2],C=e[S*2+1];x===y&&C===b&&m<n;)m++,S+=i,g+=i,x=e[S*2],C=e[S*2+1],y=e[g*2],b=e[g*2+1],_=y-c,w=b-f;var k=m+1;if(u)for(;Yn(x,C)&&k<n;)k++,S+=i,x=e[S*2],C=e[S*2+1];var D=.5,E=0,T=0,M=void 0,A=void 0;if(k>=n||Yn(x,C))v=y,p=b;else{E=x-c,T=C-f;var P=y-c,V=x-y,B=b-f,z=C-b,N=void 0,R=void 0;if(l==="x"){N=Math.abs(P),R=Math.abs(V);var I=E>0?1:-1;v=y-I*N*s,p=b,M=y+I*R*s,A=b}else if(l==="y"){N=Math.abs(B),R=Math.abs(z);var G=T>0?1:-1;v=y,p=b-G*N*s,M=y,A=b+G*R*s}else N=Math.sqrt(P*P+B*B),R=Math.sqrt(V*V+z*z),D=R/(R+N),v=y-E*s*(1-D),p=b-T*s*(1-D),M=y+E*s*D,A=b+T*s*D,M=qr(M,jr(x,y)),A=qr(A,jr(C,b)),M=jr(M,qr(x,y)),A=jr(A,qr(C,b)),E=M-y,T=A-b,v=y-E*N/R,p=b-T*N/R,v=qr(v,jr(c,y)),p=qr(p,jr(f,b)),v=jr(v,qr(c,y)),p=jr(p,qr(f,b)),E=y-v,T=b-p,M=y+E*R/N,A=b+T*R/N}t.bezierCurveTo(d,h,v,p,y,b),d=M,h=A}else t.lineTo(y,b)}c=y,f=b,g+=i}return m}var K0=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),KV=function(t){se(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new K0},e.prototype.buildPath=function(r,n){var a=n.points,i=0,s=a.length/2;if(n.connectNulls){for(;s>0&&Yn(a[s*2-2],a[s*2-1]);s--);for(;i<s&&Yn(a[i*2],a[i*2+1]);i++);}for(;i<s;)i+=nf(r,a,i,s,s,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,s=Kn.CMD,l,u,c=n==="x",f=[],d=0;d<i.length;){var h=i[d++],v=void 0,p=void 0,g=void 0,m=void 0,y=void 0,b=void 0,_=void 0;switch(h){case s.M:l=i[d++],u=i[d++];break;case s.L:if(v=i[d++],p=i[d++],_=c?(r-l)/(v-l):(r-u)/(p-u),_<=1&&_>=0){var w=c?(p-u)*_+u:(v-l)*_+l;return c?[r,w]:[w,r]}l=v,u=p;break;case s.C:v=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var S=c?ms(l,v,g,y,r,f):ms(u,p,m,b,r,f);if(S>0)for(var x=0;x<S;x++){var C=f[x];if(C<=1&&C>=0){var w=c?lt(u,p,m,b,C):lt(l,v,g,y,C);return c?[r,w]:[w,r]}}l=y,u=b;break}}},e}(Te),QV=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(K0),JV=function(t){se(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new QV},e.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,s=0,l=a.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;l>0&&Yn(a[l*2-2],a[l*2-1]);l--);for(;s<l&&Yn(a[s*2],a[s*2+1]);s++);}for(;s<l;){var c=nf(r,a,s,l,l,1,n.smooth,u,n.connectNulls);nf(r,i,s+c-1,c,l,-1,n.stackedOnSmooth,u,n.connectNulls),s+=c+1,r.closePath()}},e}(Te);function Q0(t,e,r,n,a){var i=t.getArea(),s=i.x,l=i.y,u=i.width,c=i.height,f=r.get(["lineStyle","width"])||0;s-=f/2,l-=f/2,u+=f,c+=f,u=Math.ceil(u),s!==Math.floor(s)&&(s=Math.floor(s),u++);var d=new qe({shape:{x:s,y:l,width:u,height:c}});if(e){var h=t.getBaseAxis(),v=h.isHorizontal(),p=h.inverse;v?(p&&(d.shape.x+=u),d.shape.width=0):(p||(d.shape.y+=c),d.shape.height=0);var g=ue(a)?function(m){a(m,d)}:null;Zt(d,{shape:{width:u,height:c,x:s,y:l}},r,null,n,g)}return d}function J0(t,e,r){var n=t.getArea(),a=Xe(n.r0,1),i=Xe(n.r,1),s=new vn({shape:{cx:Xe(t.cx,1),cy:Xe(t.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var l=t.getBaseAxis().dim==="angle";l?s.shape.endAngle=n.startAngle:s.shape.r=a,Zt(s,{shape:{endAngle:n.endAngle,r:i}},r)}return s}function eI(t,e,r,n,a){if(t){if(t.type==="polar")return J0(t,e,r);if(t.type==="cartesian2d")return Q0(t,e,r,n,a)}else return null;return null}function wd(t,e){return t.type===e}function Np(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function Bp(t){for(var e=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<t.length;){var s=t[i++],l=t[i++];isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n)),isNaN(l)||(r=Math.min(l,r),a=Math.max(l,a))}return[[e,r],[n,a]]}function Vp(t,e){var r=Bp(t),n=r[0],a=r[1],i=Bp(e),s=i[0],l=i[1];return Math.max(Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]),Math.abs(a[0]-l[0]),Math.abs(a[1]-l[1]))}function Ip(t){return Ve(t)?t:t?.5:0}function tI(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),a=Br(n*2),i=0;i<n;i++){var s=Z0(r,t,e,i);a[i*2]=s[0],a[i*2+1]=s[1]}return a}function Zr(t,e,r,n,a){var i=r.getBaseAxis(),s=i.dim==="x"||i.dim==="radius"?0:1,l=[],u=0,c=[],f=[],d=[],h=[];if(a){for(u=0;u<t.length;u+=2){var v=e||t;!isNaN(v[u])&&!isNaN(v[u+1])&&h.push(t[u],t[u+1])}t=h}for(u=0;u<t.length-2;u+=2)switch(d[0]=t[u+2],d[1]=t[u+3],f[0]=t[u],f[1]=t[u+1],l.push(f[0],f[1]),n){case"end":c[s]=d[s],c[1-s]=f[1-s],l.push(c[0],c[1]);break;case"middle":var p=(f[s]+d[s])/2,g=[];c[s]=g[s]=p,c[1-s]=f[1-s],g[1-s]=d[1-s],l.push(c[0],c[1]),l.push(g[0],g[1]);break;default:c[s]=f[s],c[1-s]=d[1-s],l.push(c[0],c[1])}return l.push(t[u++],t[u++]),l}function rI(t,e){var r=[],n=t.length,a,i;function s(f,d,h){var v=f.coord,p=(h-v)/(d.coord-v),g=C2(p,[f.color,d.color]);return{coord:h,color:g}}for(var l=0;l<n;l++){var u=t[l],c=u.coord;if(c<0)a=u;else if(c>e){i?r.push(s(i,u,e)):a&&r.push(s(a,u,0),s(a,u,e));break}else a&&(r.push(s(a,u,0)),a=null),r.push(u),i=u}return r}function nI(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,i,s=n.length-1;s>=0;s--){var l=t.getDimensionInfo(n[s].dimension);if(a=l&&l.coordDim,a==="x"||a==="y"){i=n[s];break}}if(!i){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var u=e.getAxis(a),c=ee(i.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=c.length,d=i.outerColors.slice();f&&c[0].coord>c[f-1].coord&&(c.reverse(),d.reverse());var h=rI(c,a==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&f)return c[0].coord<0?d[1]?d[1]:c[f-1].color:d[0]?d[0]:c[0].color;var p=10,g=h[0].coord-p,m=h[v-1].coord+p,y=m-g;if(y<.001)return"transparent";L(h,function(_){_.offset=(_.coord-g)/y}),h.push({offset:v?h[v-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:d[0]||"transparent"});var b=new Zg(0,0,0,0,h,!0);return b[a]=g,b[a+"2"]=m,b}}function aI(t,e,r){var n=t.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&iI(i,e))){var s=e.mapDimension(i.dim),l={};return L(i.getViewLabels(),function(u){var c=i.scale.getRawOrdinalNumber(u.tickValue);l[c]=1}),function(u){return!l.hasOwnProperty(e.get(s,u))}}}}function iI(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),s=0;s<a;s+=i)if(_d.getSymbolSize(e,s)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function oI(t,e){return isNaN(t)||isNaN(e)}function sI(t){for(var e=t.length/2;e>0&&oI(t[e*2-2],t[e*2-1]);e--);return e-1}function Lp(t,e){return[t[e*2],t[e*2+1]]}function lI(t,e,r){for(var n=t.length/2,a=r==="x"?0:1,i,s,l=0,u=-1,c=0;c<n;c++)if(s=t[c*2+a],!(isNaN(s)||isNaN(t[c*2+1-a]))){if(c===0){i=s;continue}if(i<=e&&s>=e||i>=e&&s<=e){u=c;break}l=c,i=s}return{range:[l,u],t:(e-i)/(s-i)}}function e1(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Qt.length;e++)if(t.get([Qt[e],"endLabel","show"]))return!0;return!1}function Gu(t,e,r,n){if(wd(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),s=n.getData(),l={lastFrameIndex:0},u=e1(n)?function(v,p){t._endLabelOnDuring(v,p,s,l,i,a,e)}:null,c=e.getBaseAxis().isHorizontal(),f=Q0(e,r,n,function(){var v=t._endLabel;v&&r&&l.originalX!=null&&v.attr({x:l.originalX,y:l.originalY})},u);if(!n.get("clip",!0)){var d=f.shape,h=Math.max(d.width,d.height);c?(d.y-=h,d.height+=h*2):(d.x-=h,d.width+=h*2)}return u&&u(1,f),f}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),J0(e,r,n)}function uI(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",s=n?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||s}}}var cI=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new ut,n=new XV;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=Pe(this._changePolyState,this)},e.prototype.render=function(r,n,a){var i=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],d=i.type==="polar",h=this._coordSys,v=this._symbolDraw,p=this._polyline,g=this._polygon,m=this._lineGroup,y=!n.ssr&&r.get("animation"),b=!c.isEmpty(),_=c.get("origin"),w=j0(i,l,_),S=b&&tI(i,l,w),x=r.get("showSymbol"),C=r.get("connectNulls"),k=x&&!d&&aI(r,l,i),D=this._data;D&&D.eachItemGraphicEl(function(X,Y){X.__temp&&(s.remove(X),D.setItemGraphicEl(Y,null))}),x||v.remove(),s.add(m);var E=d?!1:r.get("step"),T;i&&i.getArea&&r.get("clip",!0)&&(T=i.getArea(),T.width!=null?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var M=nI(l,i,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===i.type&&E===this._step))x&&v.updateData(l,{isIgnore:k,clipShape:T,disableAnimation:!0,getSymbolPoint:function(X){return[f[X*2],f[X*2+1]]}}),y&&this._initSymbolLabelAnimation(l,i,T),E&&(S&&(S=Zr(S,f,i,E,C)),f=Zr(f,null,i,E,C)),p=this._newPolyline(f),b?g=this._newPolygon(f,S):g&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,i,Qn(M)),m.setClipPath(Gu(this,i,!0,r));else{b&&!g?g=this._newPolygon(f,S):g&&!b&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,i,Qn(M));var A=m.getClipPath();if(A){var P=Gu(this,i,!1,r);Zt(A,{shape:P.shape},r)}else m.setClipPath(Gu(this,i,!0,r));x&&v.updateData(l,{isIgnore:k,clipShape:T,disableAnimation:!0,getSymbolPoint:function(X){return[f[X*2],f[X*2+1]]}}),(!Np(this._stackedOnPoints,S)||!Np(this._points,f))&&(y?this._doUpdateAnimation(l,S,i,a,E,_,C):(E&&(S&&(S=Zr(S,f,i,E,C)),f=Zr(f,null,i,E,C)),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:S})))}var V=r.getModel("emphasis"),B=V.get("focus"),z=V.get("blurScope"),N=V.get("disabled");if(p.useStyle(ke(u.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),Ms(p,r,"lineStyle"),p.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var R=p.getState("emphasis").style;R.lineWidth=+p.style.lineWidth+1}ye(p).seriesIndex=r.seriesIndex,Wi(p,B,z,N);var I=Ip(r.get("smooth")),G=r.get("smoothMonotone");if(p.setShape({smooth:I,smoothMonotone:G,connectNulls:C}),g){var F=l.getCalculationInfo("stackedOnSeries"),J=0;g.useStyle(ke(c.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),F&&(J=Ip(F.get("smooth"))),g.setShape({smooth:I,stackedOnSmooth:J,smoothMonotone:G,connectNulls:C}),Ms(g,r,"areaStyle"),ye(g).seriesIndex=r.seriesIndex,Wi(g,B,z,N)}var le=this._changePolyState;l.eachItemGraphicEl(function(X){X&&(X.onHoverStateChange=le)}),this._polyline.onHoverStateChange=le,this._data=l,this._coordSys=i,this._stackedOnPoints=S,this._points=f,this._step=E,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,p),g&&this.packEventData(r,g))},e.prototype.packEventData=function(r,n){ye(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,a,i){var s=r.getData(),l=Zn(s,i);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var u=s.getLayout("points"),c=s.getItemGraphicEl(l);if(!c){var f=u[l*2],d=u[l*2+1];if(isNaN(f)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,d))return;var h=r.get("zlevel")||0,v=r.get("z")||0;c=new _d(s,l),c.x=f,c.y=d,c.setZ(h,v);var p=c.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=v,p.z2=this._polyline.z2+1),c.__temp=!0,s.setItemGraphicEl(l,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else Kt.prototype.highlight.call(this,r,n,a,i)},e.prototype.downplay=function(r,n,a,i){var s=r.getData(),l=Zn(s,i);if(this._changePolyState("normal"),l!=null&&l>=0){var u=s.getItemGraphicEl(l);u&&(u.__temp?(s.setItemGraphicEl(l,null),this.group.remove(u)):u.downplay())}else Kt.prototype.downplay.call(this,r,n,a,i)},e.prototype._changePolyState=function(r){var n=this._polygon;$h(this._polyline,r),n&&$h(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new KV({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new JV({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(r,n,a){var i,s,l=n.getBaseAxis(),u=l.inverse;n.type==="cartesian2d"?(i=l.isHorizontal(),s=!1):n.type==="polar"&&(i=l.dim==="angle",s=!0);var c=r.hostModel,f=c.get("animationDuration");ue(f)&&(f=f(null));var d=c.get("animationDelay")||0,h=ue(d)?d(null):d;r.eachItemGraphicEl(function(v,p){var g=v;if(g){var m=[v.x,v.y],y=void 0,b=void 0,_=void 0;if(a)if(s){var w=a,S=n.pointToCoord(m);i?(y=w.startAngle,b=w.endAngle,_=-S[1]/180*Math.PI):(y=w.r0,b=w.r,_=S[0])}else{var x=a;i?(y=x.x,b=x.x+x.width,_=v.x):(y=x.y+x.height,b=x.y,_=v.y)}var C=b===y?0:(_-y)/(b-y);u&&(C=1-C);var k=ue(d)?d(p):f*C+h,D=g.getSymbolPath(),E=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:k}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:k}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(e1(r)){var s=r.getData(),l=this._polyline,u=s.getLayout("points");if(!u){l.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new ct({z2:200}),c.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var f=sI(u);f>=0&&(io(l,oo(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:f,defaultText:function(d,h,v){return v!=null?q0(s,v):bd(s,d)},enableTextSetter:!0},uI(i,n)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,a,i,s,l,u){var c=this._endLabel,f=this._polyline;if(c){r<1&&i.originalX==null&&(i.originalX=c.x,i.originalY=c.y);var d=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),p=l.get("precision"),g=l.get("distance")||0,m=u.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=n.shape,w=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,S=(y?g:0)*(b?-1:1),x=(y?0:-g)*(b?-1:1),C=y?"x":"y",k=lI(d,w,C),D=k.range,E=D[1]-D[0],T=void 0;if(E>=1){if(E>1&&!v){var M=Lp(d,D[0]);c.attr({x:M[0]+S,y:M[1]+x}),s&&(T=h.getRawValue(D[0]))}else{var M=f.getPointOn(w,C);M&&c.attr({x:M[0]+S,y:M[1]+x});var A=h.getRawValue(D[0]),P=h.getRawValue(D[1]);s&&(T=wT(a,p,A,P,k.t))}i.lastFrameIndex=D[0]}else{var V=r===1||i.lastFrameIndex>0?D[0]:0,M=Lp(d,V);s&&(T=h.getRawValue(V)),c.attr({x:M[0]+S,y:M[1]+x})}if(s){var B=cl(c);typeof B.setLabelText=="function"&&B.setLabelText(T)}}},e.prototype._doUpdateAnimation=function(r,n,a,i,s,l,u){var c=this._polyline,f=this._polygon,d=r.hostModel,h=ZV(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,p=h.stackedOnCurrent,g=h.next,m=h.stackedOnNext;if(s&&(p=Zr(h.stackedOnCurrent,h.current,a,s,u),v=Zr(h.current,null,a,s,u),m=Zr(h.stackedOnNext,h.next,a,s,u),g=Zr(h.next,null,a,s,u)),Vp(v,g)>3e3||f&&Vp(p,m)>3e3){c.stopAnimation(),c.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:m}));return}c.shape.__points=h.current,c.shape.points=v;var y={shape:{points:g}};h.current!==v&&(y.shape.__points=h.next),c.stopAnimation(),St(c,y,d),f&&(f.setShape({points:v,stackedOnPoints:p}),f.stopAnimation(),St(f,{shape:{stackedOnPoints:m}},d),c.shape.points!==f.shape.points&&(f.shape.points=c.shape.points));for(var b=[],_=h.status,w=0;w<_.length;w++){var S=_[w].cmd;if(S==="="){var x=r.getItemGraphicEl(_[w].idx1);x&&b.push({el:x,ptIdx:w})}}c.animators&&c.animators.length&&c.animators[0].during(function(){f&&f.dirtyShape();for(var C=c.shape.__points,k=0;k<b.length;k++){var D=b[k].el,E=b[k].ptIdx*2;D.x=C[E],D.y=C[E+1],D.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,s){i.__temp&&(n.remove(i),a.setItemGraphicEl(s,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Kt);function fI(t,e){return{seriesType:t,plan:id(),reset:function(r){var n=r.getData(),a=r.coordinateSystem;if(r.pipelineContext,!!a){var i=ee(a.dimensions,function(d){return n.mapDimension(d)}).slice(0,2),s=i.length,l=n.getCalculationInfo("stackResultDimension");Oa(n,i[0])&&(i[0]=l),Oa(n,i[1])&&(i[1]=l);var u=n.getStore(),c=n.getDimensionIndex(i[0]),f=n.getDimensionIndex(i[1]);return s&&{progress:function(d,h){for(var v=d.end-d.start,p=Br(v*s),g=[],m=[],y=d.start,b=0;y<d.end;y++){var _=void 0;if(s===1){var w=u.get(c,y);_=a.dataToPoint(w,null,m)}else g[0]=u.get(c,y),g[1]=u.get(f,y),_=a.dataToPoint(g,null,m);p[b++]=_[0],p[b++]=_[1]}h.setLayout("points",p)}}}}}}var dI={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},hI=function(t){return Math.round(t.length/2)};function t1(t){return{seriesType:t,reset:function(e,r,n){var a=e.getData(),i=e.get("sampling"),s=e.coordinateSystem,l=a.count();if(l>10&&s.type==="cartesian2d"&&i){var u=s.getBaseAxis(),c=s.getOtherAxis(u),f=u.getExtent(),d=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(d||1),v=Math.round(l/h);if(isFinite(v)&&v>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(c.dim),1/v)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(c.dim),1/v));var p=void 0;Z(i)?p=dI[i]:ue(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(c.dim),1/v,p,hI))}}}}}function vI(t){t.registerChartView(cI),t.registerSeriesModel(UV),t.registerLayout(fI("line")),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,t1("line"))}var af=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return fd(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var s=i.clampData(r),l=i.dataToPoint(s);if(a)L(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var p=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),m=s[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!g&&(m+=1),p.length<2)return;if(p.length===2){l[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var b=void 0,_=void 0,w=1,S=0;S<p.length;S++){var x=p[S].coord,C=S===p.length-1?p[S-1].tickValue+w:p[S].tickValue;if(C===m){_=x;break}else if(C<m)b=x;else if(b!=null&&C>m){_=(x+b)/2;break}S===1&&(w=C-p[0].tickValue)}_==null&&(b?b&&(_=p[p.length-1].coord):_=p[0].coord),l[v]=h.toGlobalCoord(_)}});else{var u=this.getData(),c=u.getLayout("offset"),f=u.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;l[d]+=c+f/2}return l}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(ir);ir.registerClass(af);var pI=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return fd(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ay(af.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:"#212121"}},realtimeSort:!1}),e}(af),mI=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Pp=function(t){se(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new mI},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,s=Math.max(n.r0||0,0),l=Math.max(n.r,0),u=(l-s)*.5,c=s+u,f=n.startAngle,d=n.endAngle,h=n.clockwise,v=Math.PI*2,p=h?d-f<v:f-d<v;p||(f=d-(h?v:-v));var g=Math.cos(f),m=Math.sin(f),y=Math.cos(d),b=Math.sin(d);p?(r.moveTo(g*s+a,m*s+i),r.arc(g*c+a,m*c+i,u,-Math.PI+f,f,!h)):r.moveTo(g*l+a,m*l+i),r.arc(a,i,l,f,d,!h),r.arc(y*c+a,b*c+i,u,d-Math.PI*2,d-Math.PI,!h),s!==0&&r.arc(a,i,s,d,f,h)},e}(Te);function gI(t,e){e=e||{};var r=e.isRoundCap;return function(n,a,i){var s=a.position;if(!s||s instanceof Array)return ws(n,a,i);var l=t(s),u=a.distance!=null?a.distance:5,c=this.shape,f=c.cx,d=c.cy,h=c.r,v=c.r0,p=(h+v)/2,g=c.startAngle,m=c.endAngle,y=(g+m)/2,b=r?Math.abs(h-v)/2:0,_=Math.cos,w=Math.sin,S=f+h*_(g),x=d+h*w(g),C="left",k="top";switch(l){case"startArc":S=f+(v-u)*_(y),x=d+(v-u)*w(y),C="center",k="top";break;case"insideStartArc":S=f+(v+u)*_(y),x=d+(v+u)*w(y),C="center",k="bottom";break;case"startAngle":S=f+p*_(g)+Yo(g,u+b,!1),x=d+p*w(g)+Xo(g,u+b,!1),C="right",k="middle";break;case"insideStartAngle":S=f+p*_(g)+Yo(g,-u+b,!1),x=d+p*w(g)+Xo(g,-u+b,!1),C="left",k="middle";break;case"middle":S=f+p*_(y),x=d+p*w(y),C="center",k="middle";break;case"endArc":S=f+(h+u)*_(y),x=d+(h+u)*w(y),C="center",k="bottom";break;case"insideEndArc":S=f+(h-u)*_(y),x=d+(h-u)*w(y),C="center",k="top";break;case"endAngle":S=f+p*_(m)+Yo(m,u+b,!0),x=d+p*w(m)+Xo(m,u+b,!0),C="left",k="middle";break;case"insideEndAngle":S=f+p*_(m)+Yo(m,-u+b,!0),x=d+p*w(m)+Xo(m,-u+b,!0),C="right",k="middle";break;default:return ws(n,a,i)}return n=n||{},n.x=S,n.y=x,n.align=C,n.verticalAlign=k,n}}function yI(t,e,r,n){if(Ve(n)){t.setTextConfig({rotation:n});return}else if(j(e)){t.setTextConfig({rotation:0});return}var a=t.shape,i=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,l=(i+s)/2,u,c=r(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=l;break;case"startAngle":case"insideStartAngle":u=i;break;case"endAngle":case"insideEndAngle":u=s;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-u;c==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function Yo(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Xo(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Ti(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;j(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ee(n,function(i){return un(i,a)})}}var Wu=Math.max,Uu=Math.min;function bI(t,e){var r=t.getArea&&t.getArea();if(wd(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var _I=function(t){se(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var s=r.get("coordinateSystem");s==="cartesian2d"||s==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i)):process.env.NODE_ENV!=="production"&&pt("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){ll(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,a,i){var s=this.group,l=r.getData(),u=this._data,c=r.coordinateSystem,f=c.getBaseAxis(),d;c.type==="cartesian2d"?d=f.isHorizontal():c.type==="polar"&&(d=f.dim==="angle");var h=r.isAnimationEnabled()?r:null,v=wI(r,c);v&&this._enableRealtimeSort(v,l,a);var p=r.get("clip",!0)||v,g=bI(c,l);s.removeClipPath();var m=r.get("roundCap",!0),y=r.get("showBackground",!0),b=r.getModel("backgroundStyle"),_=b.get("borderRadius")||0,w=[],S=this._backgroundEls,x=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function k(T){var M=qo[c.type](l,T),A=EI(c,d,M);return A.useStyle(b.getItemStyle()),c.type==="cartesian2d"?A.setShape("r",_):A.setShape("cornerRadius",_),w[T]=A,A}l.diff(u).add(function(T){var M=l.getItemModel(T),A=qo[c.type](l,T,M);if(y&&k(T),!(!l.hasValue(T)||!Fp[c.type](A))){var P=!1;p&&(P=zp[c.type](g,A));var V=Rp[c.type](r,l,T,A,d,h,f.model,!1,m);v&&(V.forceLabelAnimation=!0),Hp(V,l,T,M,A,r,d,c.type==="polar"),x?V.attr({shape:A}):v?Op(v,h,V,A,T,d,!1,!1):Zt(V,{shape:A},r,T),l.setItemGraphicEl(T,V),s.add(V),V.ignore=P}}).update(function(T,M){var A=l.getItemModel(T),P=qo[c.type](l,T,A);if(y){var V=void 0;S.length===0?V=k(M):(V=S[M],V.useStyle(b.getItemStyle()),c.type==="cartesian2d"?V.setShape("r",_):V.setShape("cornerRadius",_),w[T]=V);var B=qo[c.type](l,T),z=n1(d,B,c);St(V,{shape:z},h,T)}var N=u.getItemGraphicEl(M);if(!l.hasValue(T)||!Fp[c.type](P)){s.remove(N);return}var R=!1;if(p&&(R=zp[c.type](g,P),R&&s.remove(N)),N?Hf(N):N=Rp[c.type](r,l,T,P,d,h,f.model,!!N,m),v&&(N.forceLabelAnimation=!0),C){var I=N.getTextContent();if(I){var G=cl(I);G.prevValue!=null&&(G.prevValue=G.value)}}else Hp(N,l,T,A,P,r,d,c.type==="polar");x?N.attr({shape:P}):v?Op(v,h,N,P,T,d,!0,C):St(N,{shape:P},r,T,null),l.setItemGraphicEl(T,N),N.ignore=R,s.add(N)}).remove(function(T){var M=u.getItemGraphicEl(T);M&&Bs(M,r,T)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new ut);D.removeAll();for(var E=0;E<w.length;++E)D.add(w[E]);s.add(D),this._backgroundEls=w,this._data=l},e.prototype._renderLarge=function(r,n,a){this._clear(),Wp(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Wp(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&eI(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var s=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var l=function(u){var c=n.getItemGraphicEl(u),f=c&&c.shape;return f&&Math.abs(s.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,l,s,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(s,l){var u=a(l);u=u??NaN,i.push({dataIndex:l,mappedValue:u,ordinalNumber:s})}),i.sort(function(s,l){return l.mappedValue-s.mappedValue}),{ordinalNumbers:ee(i,function(s){return s.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,s=r.mapDimension(a.dim),l=Number.MAX_VALUE,u=0,c=i.getOrdinalMeta().categories.length;u<c;++u){var f=r.rawIndexOf(s,i.getRawOrdinalNumber(u)),d=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(d>l)return!0;l=d}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),s=Math.max(0,i[0]),l=Math.min(i[1],a.getOrdinalMeta().categories.length-1);s<=l;++s)if(r.ordinalNumbers[s]!==a.getRawOrdinalNumber(s))return!0},e.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var s=this._dataSort(r,a,n);this._isOrderDifferentInView(s,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:s}))}},e.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,s=this._dataSort(r,i,function(l){return r.get(r.mapDimension(n.otherAxis.dim),l)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:s})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Bs(i,r,ye(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Kt),zp={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,i=t.y+t.height,s=Wu(e.x,t.x),l=Uu(e.x+e.width,a),u=Wu(e.y,t.y),c=Uu(e.y+e.height,i),f=l<s,d=c<u;return e.x=f&&s>a?l:s,e.y=d&&u>i?c:u,e.width=f?0:l-s,e.height=d?0:c-u,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||d},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var a=Uu(e.r,t.r),i=Wu(e.r0,t.r0);e.r=a,e.r0=i;var s=a-i<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return s}},Rp={cartesian2d:function(t,e,r,n,a,i,s,l,u){var c=new qe({shape:W({},n),z2:1});if(c.__dataIndex=r,c.name="item",i){var f=c.shape,d=a?"height":"width";f[d]=0}return c},polar:function(t,e,r,n,a,i,s,l,u){var c=!a&&u?Pp:vn,f=new c({shape:n,z2:1});f.name="item";var d=r1(a);if(f.calculateTextPosition=gI(d,{isRoundCap:c===Pp}),i){var h=f.shape,v=a?"r":"endAngle",p={};h[v]=a?n.r0:n.startAngle,p[v]=n[v],(l?St:Zt)(f,{shape:p},i)}return f}};function wI(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&pt("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&pt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function Op(t,e,r,n,a,i,s,l){var u,c;i?(c={x:n.x,width:n.width},u={y:n.y,height:n.height}):(c={y:n.y,height:n.height},u={x:n.x,width:n.width}),l||(s?St:Zt)(r,{shape:u},e,a,null);var f=e?t.baseAxis.model:null;(s?St:Zt)(r,{shape:c},f,a)}function $p(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var SI=["x","y","width","height"],xI=["cx","cy","r","startAngle","endAngle"],Fp={cartesian2d:function(t){return!$p(t,SI)},polar:function(t){return!$p(t,xI)}},qo={cartesian2d:function(t,e,r){var n=t.getItemLayout(e),a=r?kI(r,n):0,i=n.width>0?1:-1,s=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+s*a/2,width:n.width-i*a,height:n.height-s*a}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function CI(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function r1(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function Hp(t,e,r,n,a,i,s,l){var u=e.getItemVisual(r,"style");if(l){if(!i.get("roundCap")){var f=t.shape,d=Ti(n.getModel("itemStyle"),f,!0);W(f,d),t.setShape(f)}}else{var c=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(u);var h=n.getShallow("cursor");h&&t.attr("cursor",h);var v=l?s?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":s?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=oo(n);io(t,p,{labelFetcher:i,labelDataIndex:r,defaultText:bd(i.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:v});var g=t.getTextContent();if(l&&g){var m=n.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,yI(t,m==="outside"?v:m,r1(s),n.get(["label","rotate"]))}LE(g,p,i.getRawValue(r),function(b){return q0(e,b)});var y=n.getModel(["emphasis"]);Wi(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),Ms(t,n),CI(a)&&(t.style.fill="none",t.style.stroke="none",L(t.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function kI(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var TI=function(){function t(){}return t}(),Gp=function(t){se(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new TI},e.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,s=1-this.baseDimIdx,l=[],u=[],c=this.barWidth,f=0;f<a.length;f+=3)u[i]=c,u[s]=a[f+2],l[i]=a[f+i],l[s]=a[f+s],r.rect(l[0],l[1],u[0],u[1])},e}(Te);function Wp(t,e,r,n){var a=t.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,s=a.getLayout("largeDataIndices"),l=a.getLayout("size"),u=t.getModel("backgroundStyle"),c=a.getLayout("largeBackgroundPoints");if(c){var f=new Gp({shape:{points:c},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=s,f.barWidth=l,f.useStyle(u.getItemStyle()),e.add(f),r&&r.push(f)}var d=new Gp({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=i,d.largeDataIndices=s,d.barWidth=l,e.add(d),d.useStyle(a.getVisual("style")),d.style.stroke=null,ye(d).seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",Up),d.on("mousemove",Up)),r&&r.push(d)}var Up=wl(function(t){var e=this,r=DI(e,t.offsetX,t.offsetY);ye(e).dataIndex=r>=0?r:null},30,!1);function DI(t,e,r){for(var n=t.baseDimIdx,a=1-n,i=t.shape.points,s=t.largeDataIndices,l=[],u=[],c=t.barWidth,f=0,d=i.length/3;f<d;f++){var h=f*3;if(u[n]=c,u[a]=i[h+2],l[n]=i[h+n],l[a]=i[h+a],u[a]<0&&(l[a]+=u[a],u[a]=-u[a]),e>=l[0]&&e<=l[0]+u[0]&&r>=l[1]&&r<=l[1]+u[1])return s[f]}return-1}function n1(t,e,r){if(wd(r,"cartesian2d")){var n=e,a=r.getArea();return{x:t?n.x:a.x,y:t?a.y:n.y,width:t?n.width:a.width,height:t?a.height:n.height}}else{var a=r.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:i.r0,r:t?a.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function EI(t,e,r){var n=t.type==="polar"?vn:qe;return new n({shape:n1(e,r,t),silent:!0,z2:0})}function MI(t){t.registerChartView(_I),t.registerSeriesModel(pI),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,We(MB,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AB("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,t1("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var Yp=Math.PI*2,jo=Math.PI/180;function a1(t,e){return La(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function i1(t,e){var r=a1(t,e),n=t.get("center"),a=t.get("radius");j(a)||(a=[0,a]);var i=Re(r.width,e.getWidth()),s=Re(r.height,e.getHeight()),l=Math.min(i,s),u=Re(a[0],l/2),c=Re(a[1],l/2),f,d,h=t.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,d=v[1]||0}else j(n)||(n=[n,n]),f=Re(n[0],i)+r.x,d=Re(n[1],s)+r.y;return{cx:f,cy:d,r0:u,r:c}}function AI(t,e,r){e.eachSeriesByType(t,function(n){var a=n.getData(),i=a.mapDimension("value"),s=a1(n,r),l=i1(n,r),u=l.cx,c=l.cy,f=l.r,d=l.r0,h=-n.get("startAngle")*jo,v=n.get("endAngle"),p=n.get("padAngle")*jo;v=v==="auto"?h-Yp:-v*jo;var g=n.get("minAngle")*jo,m=g+p,y=0;a.each(i,function(z){!isNaN(z)&&y++});var b=a.getSum(i),_=Math.PI/(b||y)*2,w=n.get("clockwise"),S=n.get("roseType"),x=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var k=w?1:-1,D=[h,v],E=k*p/2;Mg(D,!w),h=D[0],v=D[1];var T=o1(n);T.startAngle=h,T.endAngle=v,T.clockwise=w;var M=Math.abs(v-h),A=M,P=0,V=h;if(a.setLayout({viewRect:s,r:f}),a.each(i,function(z,N){var R;if(isNaN(z)){a.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:u,cy:c,r0:d,r:S?NaN:f});return}S!=="area"?R=b===0&&x?_:z*_:R=M/y,R<m?(R=m,A-=m):P+=z;var I=V+k*R,G=0,F=0;p>R?(G=V+k*R/2,F=G):(G=V+E,F=I-E),a.setItemLayout(N,{angle:R,startAngle:G,endAngle:F,clockwise:w,cx:u,cy:c,r0:d,r:S?kc(z,C,[d,f]):f}),V=I}),A<Yp&&y)if(A<=.001){var B=M/y;a.each(i,function(z,N){if(!isNaN(z)){var R=a.getItemLayout(N);R.angle=B;var I=0,G=0;B<p?(I=h+k*(N+1/2)*B,G=I):(I=h+k*N*B+E,G=h+k*(N+1)*B-E),R.startAngle=I,R.endAngle=G}})}else _=A/P,V=h,a.each(i,function(z,N){if(!isNaN(z)){var R=a.getItemLayout(N),I=R.angle===m?m:z*_,G=0,F=0;I<p?(G=V+k*I/2,F=G):(G=V+E,F=V+k*I-E),R.startAngle=G,R.endAngle=F,V+=k*I}})})}var o1=Ue();function NI(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var s=a.getName(i),l=0;l<n.length;l++)if(!n[l].isSelected(s))return!1;return!0})}}}}var BI=Math.PI/180;function Xp(t,e,r,n,a,i,s,l,u,c){if(t.length<2)return;function f(g){for(var m=g.rB,y=m*m,b=0;b<g.list.length;b++){var _=g.list[b],w=Math.abs(_.label.y-r),S=n+_.len,x=S*S,C=Math.sqrt(Math.abs((1-w*w/y)*x)),k=e+(C+_.len2)*a,D=k-_.label.x,E=_.targetTextWidth-D*a;s1(_,E,!0),_.label.x=k}}function d(g){for(var m={list:[],maxY:0},y={list:[],maxY:0},b=0;b<g.length;b++)if(g[b].labelAlignTo==="none"){var _=g[b],w=_.label.y>r?y:m,S=Math.abs(_.label.y-r);if(S>=w.maxY){var x=_.label.x-e-_.len2*a,C=n+_.len,k=Math.abs(x)<C?Math.sqrt(S*S/(1-x*x/C/C)):C;w.rB=k,w.maxY=S}w.list.push(_)}f(m),f(y)}for(var h=t.length,v=0;v<h;v++)if(t[v].position==="outer"&&t[v].labelAlignTo==="labelLine"){var p=t[v].label.x-c;t[v].linePoints[1][0]+=p,t[v].label.x=c}yV(t,u,u+s)&&d(t)}function VI(t,e,r,n,a,i,s,l){for(var u=[],c=[],f=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<t.length;h++){var v=t[h].label;Yu(t[h])||(v.x<e?(f=Math.min(f,v.x),u.push(t[h])):(d=Math.max(d,v.x),c.push(t[h])))}for(var h=0;h<t.length;h++){var p=t[h];if(!Yu(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var v=p.label,g=p.linePoints,m=void 0;p.labelAlignTo==="edge"?v.x<e?m=g[2][0]-p.labelDistance-s-p.edgeDistance:m=s+a-p.edgeDistance-g[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?v.x<e?m=f-s-p.bleedMargin:m=s+a-d-p.bleedMargin:v.x<e?m=v.x-s-p.bleedMargin:m=s+a-v.x-p.bleedMargin,p.targetTextWidth=m,s1(p,m)}}Xp(c,e,r,n,1,a,i,s,l,d),Xp(u,e,r,n,-1,a,i,s,l,f);for(var h=0;h<t.length;h++){var p=t[h];if(!Yu(p)&&p.linePoints){var v=p.label,g=p.linePoints,y=p.labelAlignTo==="edge",b=v.style.padding,_=b?b[1]+b[3]:0,w=v.style.backgroundColor?0:_,S=p.rect.width+w,x=g[1][0]-g[2][0];y?v.x<e?g[2][0]=s+p.edgeDistance+S+p.labelDistance:g[2][0]=s+a-p.edgeDistance-S-p.labelDistance:(v.x<e?g[2][0]=v.x+p.labelDistance:g[2][0]=v.x-p.labelDistance,g[1][0]=g[2][0]+x),g[1][1]=g[2][1]=v.y}}}function s1(t,e,r){if(r===void 0&&(r=!1),t.labelStyleWidth==null){var n=t.label,a=n.style,i=t.rect,s=a.backgroundColor,l=a.padding,u=l?l[1]+l[3]:0,c=a.overflow,f=i.width+(s?0:u);if(e<f||r){var d=i.height;if(c&&c.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-u);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",s)}else{var v=e-u,p=e<f?v:r?v>t.unconstrainedWidth?null:v:null;n.setStyle("width",p)}var g=n.getBoundingRect();i.width=g.width;var m=(n.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function Yu(t){return t.position==="center"}function II(t){var e=t.getData(),r=[],n,a,i=!1,s=(t.get("minShowLabelAngle")||0)*BI,l=e.getLayout("viewRect"),u=e.getLayout("r"),c=l.width,f=l.x,d=l.y,h=l.height;function v(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}e.each(function(x){var C=e.getItemGraphicEl(x),k=C.shape,D=C.getTextContent(),E=C.getTextGuideLine(),T=e.getItemModel(x),M=T.getModel("label"),A=M.get("position")||T.get(["emphasis","label","position"]),P=M.get("distanceToLabelLine"),V=M.get("alignTo"),B=Re(M.get("edgeDistance"),c),z=M.get("bleedMargin"),N=T.getModel("labelLine"),R=N.get("length");R=Re(R,c);var I=N.get("length2");if(I=Re(I,c),Math.abs(k.endAngle-k.startAngle)<s){L(D.states,v),D.ignore=!0,E&&(L(E.states,v),E.ignore=!0);return}if(p(D)){var G=(k.startAngle+k.endAngle)/2,F=Math.cos(G),J=Math.sin(G),le,X,Y,be;n=k.cx,a=k.cy;var de=A==="inside"||A==="inner";if(A==="center")le=k.cx,X=k.cy,be="center";else{var De=(de?(k.r+k.r0)/2*F:k.r*F)+n,Ee=(de?(k.r+k.r0)/2*J:k.r*J)+a;if(le=De+F*3,X=Ee+J*3,!de){var K=De+F*(R+u-k.r),ae=Ee+J*(R+u-k.r),nt=K+(F<0?-1:1)*I,Ie=ae;V==="edge"?le=F<0?f+B:f+c-B:le=nt+(F<0?-P:P),X=Ie,Y=[[De,Ee],[K,ae],[nt,Ie]]}be=de?"center":V==="edge"?F>0?"right":"left":F>0?"left":"right"}var Ne=Math.PI,Ye=0,Lt=M.get("rotate");if(Ve(Lt))Ye=Lt*(Ne/180);else if(A==="center")Ye=0;else if(Lt==="radial"||Lt===!0){var Tr=F<0?-G+Ne:-G;Ye=Tr}else if(Lt==="tangential"&&A!=="outside"&&A!=="outer"){var rt=Math.atan2(F,J);rt<0&&(rt=Ne*2+rt);var ea=J>0;ea&&(rt=Ne+rt),Ye=rt-Ne}if(i=!!Ye,D.x=le,D.y=X,D.rotation=Ye,D.setStyle({verticalAlign:"middle"}),de){D.setStyle({align:be});var Or=D.states.select;Or&&(Or.x+=D.x,Or.y+=D.y)}else{var Pt=D.getBoundingRect().clone();Pt.applyTransform(D.getComputedTransform());var pn=(D.style.margin||0)+2.1;Pt.y-=pn/2,Pt.height+=pn,r.push({label:D,labelLine:E,position:A,len:R,len2:I,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new ce(F,J),linePoints:Y,textAlign:be,labelDistance:P,labelAlignTo:V,edgeDistance:B,bleedMargin:z,rect:Pt,unconstrainedWidth:Pt.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:de})}}),!i&&t.get("avoidLabelOverlap")&&VI(r,n,a,u,c,h,f,d);for(var g=0;g<r.length;g++){var m=r[g],y=m.label,b=m.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:m.textAlign}),_&&(L(y.states,v),y.ignore=!0);var w=y.states.select;w&&(w.x+=y.x,w.y+=y.y)}if(b){var S=m.linePoints;_||!S?(L(b.states,v),b.ignore=!0):(fV(S,m.minTurnAngle),dV(S,m.surfaceNormal,m.maxSurfaceAngle),b.setShape({points:S}),y.__hostTarget.textGuideLineConfig={anchor:new ce(S[0][0],S[0][1])})}}}var LI=function(t){se(e,t);function e(r,n,a){var i=t.call(this)||this;i.z2=2;var s=new ct;return i.setTextContent(s),i.updateData(r,n,a,!0),i}return e.prototype.updateData=function(r,n,a,i){var s=this,l=r.hostModel,u=r.getItemModel(n),c=u.getModel("emphasis"),f=r.getItemLayout(n),d=W(Ti(u.getModel("itemStyle"),f,!0),f);if(isNaN(d.startAngle)){s.setShape(d);return}if(i){s.setShape(d);var h=l.getShallow("animationType");l.ecModel.ssr?(Zt(s,{scaleX:0,scaleY:0},l,{dataIndex:n,isFrom:!0}),s.originX=d.cx,s.originY=d.cy):h==="scale"?(s.shape.r=f.r0,Zt(s,{shape:{r:f.r}},l,n)):a!=null?(s.setShape({startAngle:a,endAngle:a}),Zt(s,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},l,n)):(s.shape.endAngle=f.startAngle,St(s,{shape:{endAngle:f.endAngle}},l,n))}else Hf(s),St(s,{shape:d},l,n);s.useStyle(r.getItemVisual(n,"style")),Ms(s,u);var v=(f.startAngle+f.endAngle)/2,p=l.get("selectedOffset"),g=Math.cos(v)*p,m=Math.sin(v)*p,y=u.getShallow("cursor");y&&s.attr("cursor",y),this._updateLabel(l,r,n),s.ensureState("emphasis").shape=W({r:f.r+(c.get("scale")&&c.get("scaleSize")||0)},Ti(c.getModel("itemStyle"),f)),W(s.ensureState("select"),{x:g,y:m,shape:Ti(u.getModel(["select","itemStyle"]),f)}),W(s.ensureState("blur"),{shape:Ti(u.getModel(["blur","itemStyle"]),f)});var b=s.getTextGuideLine(),_=s.getTextContent();b&&W(b.ensureState("select"),{x:g,y:m}),W(_.ensureState("select"),{x:g,y:m}),Wi(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(r,n,a){var i=this,s=n.getItemModel(a),l=s.getModel("labelLine"),u=n.getItemVisual(a,"style"),c=u&&u.fill,f=u&&u.opacity;io(i,oo(s),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:c,defaultOpacity:f,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var d=i.getTextContent();i.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var h=r.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new ao,this.setTextGuideLine(v)),vV(this,pV(s),{stroke:c,opacity:Gn(l.get(["lineStyle","opacity"]),f,1)})}},e}(vn),PI=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,a,i){var s=r.getData(),l=this._data,u=this.group,c;if(!l&&s.count()>0){for(var f=s.getItemLayout(0),d=1;isNaN(f&&f.startAngle)&&d<s.count();++d)f=s.getItemLayout(d);f&&(c=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),s.count()===0&&r.get("showEmptyCircle")){var h=o1(r),v=new vn({shape:W(i1(r,a),h)});v.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,u.add(v)}s.diff(l).add(function(p){var g=new LI(s,p,c);s.setItemGraphicEl(p,g),u.add(g)}).update(function(p,g){var m=l.getItemGraphicEl(g);m.updateData(s,p,c),m.off("click"),u.add(m),s.setItemGraphicEl(p,m)}).remove(function(p){var g=l.getItemGraphicEl(p);Bs(g,r,p)}).execute(),II(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=s)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var s=r[0]-i.cx,l=r[1]-i.cy,u=Math.sqrt(s*s+l*l);return u<=i.r&&u>=i.r0}},e.type="pie",e}(Kt);function zI(t,e,r){e=j(e)&&{coordDimensions:e}||W({encodeDefine:t.getEncode()},e);var n=t.getSource(),a=T0(n,e).dimensions,i=new k0(a,t);return i.initData(n,r),i}var RI=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),OI=Ue(),$I=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new RI(Pe(this.getData,this),Pe(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return zI(this,{coordDimensions:["value"],encodeDefaulter:We(lM,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),a=OI(n),i=a.seats;if(!i){var s=[];n.each(n.mapDimension("value"),function(u){s.push(u)}),i=a.seats=eT(s,n.hostModel.get("percentPrecision"))}var l=t.prototype.getDataParams.call(this,r);return l.percent=i[r]||0,l.$vars.push("percent"),l},e.prototype._defaultLabelLine=function(r){Dc(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,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%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,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"},e}(ir);function FI(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),s=n.get(i,a);return!(Ve(s)&&!isNaN(s)&&s<0)})}}}function HI(t){t.registerChartView(PI),t.registerSeriesModel($I),XA("pie",t.registerAction),t.registerLayout(We(AI,"pie")),t.registerProcessor(NI("pie")),t.registerProcessor(FI("pie"))}var GI=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(_e),of=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ar).models[0]},e.type="cartesian2dAxis",e}(_e);Sr(of,JB);var l1={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:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},WI=xe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},l1),Sd=xe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},l1),UI=xe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Sd),YI=ke({logBase:10},Sd);const XI={category:WI,value:Sd,time:UI,log:YI};var qI={value:1,category:1,time:1,log:1};function qp(t,e,r,n){L(qI,function(a,i){var s=xe(xe({},XI[i],!0),n,!0),l=function(u){se(c,u);function c(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return c.prototype.mergeDefaultAndTheme=function(f,d){var h=Xi(this),v=h?yl(f):{},p=d.getTheme();xe(f,p.get(i+"Axis")),xe(f,this.getDefaultOption()),f.type=jp(f),h&&Pa(f,v,h)},c.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Jc.createByAxisModel(this))},c.prototype.getCategories=function(f){var d=this.option;if(d.type==="category")return f?d.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=e+"Axis."+i,c.defaultOption=s,c}(r);t.registerComponentModel(l)}),t.registerSubTypeDefaulter(e+"Axis",jp)}function jp(t){return t.type||(t.data?"category":"value")}var jI=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return ee(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),st(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}(),sf=["x","y"];function Zp(t){return t.type==="interval"||t.type==="time"}var ZI=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=sf,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Zp(r)||!Zp(n))){var a=r.getExtent(),i=n.getExtent(),s=this.dataToPoint([a[0],i[0]]),l=this.dataToPoint([a[1],i[1]]),u=a[1]-a[0],c=i[1]-i[0];if(!(!u||!c)){var f=(l[0]-s[0])/u,d=(l[1]-s[1])/c,h=s[0]-a[0]*f,v=s[1]-i[0]*d,p=this._transform=[f,0,0,d,h,v];this._invTransform=kf([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),s=this.getArea(),l=new Ce(a[0],a[1],i[0]-a[0],i[1]-a[1]);return s.intersect(l)},e.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],s=r[1];if(this._transform&&i!=null&&isFinite(i)&&s!=null&&isFinite(s))return jt(a,r,this._transform);var l=this.getAxis("x"),u=this.getAxis("y");return a[0]=l.toGlobalCoord(l.dataToCoord(i,n)),a[1]=u.toGlobalCoord(u.dataToCoord(s,n)),a},e.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,s=a.getExtent(),l=i.getExtent(),u=a.parse(r[0]),c=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n[1]=Math.min(Math.max(Math.min(l[0],l[1]),c),Math.max(l[0],l[1])),n},e.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return jt(a,r,this._invTransform);var i=this.getAxis("x"),s=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=s.coordToData(s.toLocalCoord(r[1]),n),a},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-r,s=Math.min(a[0],a[1])-r,l=Math.max(n[0],n[1])-i+r,u=Math.max(a[0],a[1])-s+r;return new Ce(i,s,l,u)},e}(jI),KI=function(t){se(e,t);function e(r,n,a,i,s){var l=t.call(this,r,n,a)||this;return l.index=0,l.type=i||"value",l.position=s||"bottom",l}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(uV);function lf(t,e,r){r=r||{};var n=t.coordinateSystem,a=e.axis,i={},s=a.getAxesOnZeroOf()[0],l=a.position,u=s?"onZero":l,c=a.dim,f=n.getRect(),d=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,p=c==="x"?[d[2]-v,d[3]+v]:[d[0]-v,d[1]+v];if(s){var g=s.toGlobalCoord(s.dataToCoord(0));p[h.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[c==="y"?p[h[u]]:d[0],c==="x"?p[h[u]]:d[3]],i.rotation=Math.PI/2*(c==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[l],i.labelOffset=s?p[h[l]]-p[h.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),qn(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=u==="top"?-y:y,i.z2=1,i}function Kp(t){return t.get("coordinateSystem")==="cartesian2d"}function Qp(t){var e={xAxisModel:null,yAxisModel:null};return L(e,function(r,n){var a=n.replace(/Model$/,""),i=t.getReferringComponents(a,ar).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(a+' "'+Gn(t.get(a+"Index"),t.get(a+"Id"),0)+'" not found');e[n]=i}),e}var Xu=Math.log;function QI(t,e,r){var n=Ya.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),s=a.length-1,l=n.getInterval.call(r),u=P0(t,e),c=u.extent,f=u.fixMin,d=u.fixMax;if(t.type==="log"){var h=Xu(t.base);c=[Xu(c[0])/h,Xu(c[1])/h]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:s,fixMin:f,fixMax:d});var v=n.getExtent.call(t);f&&(c[0]=v[0]),d&&(c[1]=v[1]);var p=n.getInterval.call(t),g=c[0],m=c[1];if(f&&d)p=(m-g)/s;else if(f)for(m=c[0]+p*s;m<c[1]&&isFinite(m)&&isFinite(c[1]);)p=zu(p),m=c[0]+p*s;else if(d)for(g=c[1]-p*s;g>c[0]&&isFinite(g)&&isFinite(c[0]);)p=zu(p),g=c[1]-p*s;else{var y=t.getTicks().length-1;y>s&&(p=zu(p));var b=p*s;m=Math.ceil(c[1]/p)*p,g=Xe(m-b),g<0&&c[0]>=0?(g=0,m=Xe(b)):m>0&&c[1]<=0&&(m=0,g=-Xe(b))}var _=(a[0].value-i[0].value)/l,w=(a[s].value-i[s].value)/l;if(n.setExtent.call(t,g+p*_,m+p*w),n.setInterval.call(t,p),(_||w)&&n.setNiceExtent.call(t,g+p,m-p),process.env.NODE_ENV!=="production"){var S=n.getTicks.call(t);S[1]&&(!wB(p)||Tc(S[1].value)>Tc(p))&&pt("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var JI=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sf,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function a(s){var l,u=Oe(s),c=u.length;if(c){for(var f=[],d=c-1;d>=0;d--){var h=+u[d],v=s[h],p=v.model,g=v.scale;ef(g)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(_p(g,p),ef(g)&&(l=v))}f.length&&(l||(l=f.pop(),_p(l.scale,l.model)),L(f,function(m){QI(m.scale,m.model,l.scale)}))}}a(n.x),a(n.y);var i={};L(n.x,function(s){Jp(n,"y",s,i)}),L(n.y,function(s){Jp(n,"x",s,i)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var a=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),s=La(a,{width:r.getWidth(),height:r.getHeight()});this._rect=s;var l=this._axesList;u(),i&&(L(l,function(c){if(!c.model.get(["axisLabel","inside"])){var f=ZB(c);if(f){var d=c.isHorizontal()?"height":"width",h=c.model.get(["axisLabel","margin"]);s[d]-=f[d]+h,c.position==="top"?s.y+=f.height+h:c.position==="left"&&(s.x+=f.width+h)}}}),u()),L(this._coordsList,function(c){c.calcAffineTransform()});function u(){L(l,function(c){var f=c.isHorizontal(),d=f?[0,s.width]:[0,s.height],h=c.inverse?1:0;c.setExtent(d[h],d[1-h]),eL(c,f?s.x:s.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}re(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===r)return i[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",ar).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",ar).models[0],i=e.gridModel,s=this._coordsList,l,u;if(r)l=r.coordinateSystem,Me(s,l)<0&&(l=null);else if(n&&a)l=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)u=this.getAxis("x",n.componentIndex);else if(a)u=this.getAxis("y",a.componentIndex);else if(i){var c=i.coordinateSystem;c===this&&(l=this._coordsList[0])}return{cartesian:l,axis:u}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var a=this,i=this,s={left:!1,right:!1,top:!1,bottom:!1},l={x:{},y:{}},u={x:0,y:0};if(r.eachComponent("xAxis",c("x"),this),r.eachComponent("yAxis",c("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=l,L(l.x,function(f,d){L(l.y,function(h,v){var p="x"+d+"y"+v,g=new ZI(p);g.master=a,g.model=e,a._coordsMap[p]=g,a._coordsList.push(g),g.addAxis(f),g.addAxis(h)})});function c(f){return function(d,h){if(qu(d,e)){var v=d.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=s.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=s.left?"right":"left"),s[v]=!0;var p=new KI(f,qB(d),[0,0],d.get("type"),v),g=p.type==="category";p.onBand=g&&d.get("boundaryGap"),p.inverse=d.get("inverse"),d.axis=p,p.model=d,p.grid=i,p.index=h,i._axesList.push(p),l[f][h]=p,u[f]++}}}},t.prototype._updateScale=function(e,r){L(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(Kp(a)){var i=Qp(a),s=i.xAxisModel,l=i.yAxisModel;if(!qu(s,r)||!qu(l,r))return;var u=this.getCartesian(s.componentIndex,l.componentIndex),c=a.getData(),f=u.getAxis("x"),d=u.getAxis("y");n(c,f),n(c,d)}},this);function n(a,i){L(QB(a,i.dim),function(s){i.scale.unionExtentFromData(a,s)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return L(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),s=a.getOtherAxis(i);Me(r,i)<0&&r.push(i),Me(n,s)<0&&n.push(s)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(a,i){var s=new t(a,e,r);s.name="grid_"+i,s.resize(a,r,!0),a.coordinateSystem=s,n.push(s)}),e.eachSeries(function(a){if(Kp(a)){var i=Qp(a),s=i.xAxisModel,l=i.yAxisModel,u=s.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!u)throw new Error('Grid "'+Gn(s.get("gridIndex"),s.get("gridId"),0)+'" not found');if(s.getCoordSysModel()!==l.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var c=u.coordinateSystem;a.coordinateSystem=c.getCartesian(s.componentIndex,l.componentIndex)}}),n},t.dimensions=sf,t}();function qu(t,e){return t.getCoordSysModel()===e}function Jp(t,e,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=t[e],i,s=r.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(!l)return;if(u!=null)em(a[u])&&(i=a[u]);else for(var c in a)if(a.hasOwnProperty(c)&&em(a[c])&&!n[f(a[c])]){i=a[c];break}i&&(n[f(i)]=!0);function f(d){return d.dim+"_"+d.index}}function em(t){return t&&t.type!=="category"&&t.type!=="time"&&jB(t)}function eL(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return n-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}var nn=Math.PI,sn=function(){function t(e,r){this.group=new ut,this.opt=r,this.axisModel=e,ke(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new ut({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!tm[e]},t.prototype.add=function(e){tm[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var a=pg(r-e),i,s;return Ss(a)?(s=n>0?"top":"bottom",i="center"):Ss(a-nn)?(s=n>0?"bottom":"top",i="center"):(s="middle",a>0&&a<nn?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:s}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),tm={axisLine:function(t,e,r,n){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),s=n.transform,l=[i[0],0],u=[i[1],0],c=l[0]>u[0];s&&(jt(l,l,s),jt(u,u,s));var f=W({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new cn({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Ui(d.shape,d.style.lineWidth),d.anid="line",r.add(d);var h=e.get(["axisLine","symbol"]);if(h!=null){var v=e.get(["axisLine","symbolSize"]);Z(h)&&(h=[h,h]),(Z(v)||Ve(v))&&(v=[v,v]);var p=Ky(e.get(["axisLine","symbolOffset"])||0,v),g=v[0],m=v[1];L([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((l[0]-u[0])*(l[0]-u[0])+(l[1]-u[1])*(l[1]-u[1]))}],function(y,b){if(h[b]!=="none"&&h[b]!=null){var _=Ra(h[b],-g/2,-m/2,g,m,f.stroke,!0),w=y.r+y.offset,S=c?u:l;_.attr({rotation:y.rotate,x:S[0]+w*Math.cos(t.rotation),y:S[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(t,e,r,n){var a=nL(r,n,e,t),i=iL(r,n,e,t);if(rL(e,i,a),aL(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var s=mV(ee(i,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));bV(s)}},axisName:function(t,e,r,n){var a=qn(t.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),s=t.nameDirection,l=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,c=e.axis.getExtent(),f=c[0]>c[1]?-1:1,d=[i==="start"?c[0]-f*u:i==="end"?c[1]+f*u:(c[0]+c[1])/2,nm(i)?t.labelOffset+s*u:0],h,v=e.get("nameRotate");v!=null&&(v=v*nn/180);var p;nm(i)?h=sn.innerTextLayout(t.rotation,v??t.rotation,s):(h=tL(t.rotation,i,v||0,c),p=t.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(h.rotation)),!isFinite(p)&&(p=null)));var g=l.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=qn(t.nameTruncateMaxWidth,m.maxWidth,p),_=new ct({x:d[0],y:d[1],rotation:h.rotation,silent:sn.isLabelSilent(e),style:fn(l,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:l.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:l.get("align")||h.textAlign,verticalAlign:l.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(sl({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var w=sn.makeAxisEventDataBase(e);w.targetType="axisName",w.name=a,ye(_).eventData=w}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function tL(t,e,r,n){var a=pg(r-t),i,s,l=n[0]>n[1],u=e==="start"&&!l||e!=="start"&&l;return Ss(a-nn/2)?(s=u?"bottom":"top",i="center"):Ss(a-nn*1.5)?(s=u?"top":"bottom",i="center"):(s="middle",a<nn*1.5&&a>nn/2?i=u?"left":"right":i=u?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:s}}function rL(t,e,r){if(!z0(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var i=e[0],s=e[1],l=e[e.length-1],u=e[e.length-2],c=r[0],f=r[1],d=r[r.length-1],h=r[r.length-2];n===!1?($t(i),$t(c)):rm(i,s)&&(n?($t(s),$t(f)):($t(i),$t(c))),a===!1?($t(l),$t(d)):rm(u,l)&&(a?($t(u),$t(h)):($t(l),$t(d)))}}function $t(t){t&&(t.ignore=!0)}function rm(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var a=xf([]);return Cf(a,a,-t.rotation),r.applyTransform(Ta([],a,t.getLocalTransform())),n.applyTransform(Ta([],a,e.getLocalTransform())),r.intersect(n)}}function nm(t){return t==="middle"||t==="center"}function u1(t,e,r,n,a){for(var i=[],s=[],l=[],u=0;u<t.length;u++){var c=t[u].coord;s[0]=c,s[1]=0,l[0]=c,l[1]=r,e&&(jt(s,s,e),jt(l,l,e));var f=new cn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ui(f.shape,f.style.lineWidth),f.anid=a+"_"+t[u].tickValue,i.push(f)}return i}function nL(t,e,r,n){var a=r.axis,i=r.getModel("axisTick"),s=i.get("show");if(s==="auto"&&n.handleAutoShown&&(s=n.handleAutoShown("axisTick")),!(!s||a.scale.isBlank())){for(var l=i.getModel("lineStyle"),u=n.tickDirection*i.get("length"),c=a.getTicksCoords(),f=u1(c,e.transform,u,ke(l.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<f.length;d++)t.add(f[d]);return f}}function aL(t,e,r,n){var a=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=i.getModel("lineStyle"),u=n*i.get("length"),c=ke(l.getLineStyle(),ke(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var d=u1(s[f],e.transform,u,c,"minorticks_"+f),h=0;h<d.length;h++)t.add(d[h])}}function iL(t,e,r,n){var a=r.axis,i=qn(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var s=r.getModel("axisLabel"),l=s.get("margin"),u=a.getViewLabels(),c=(qn(n.labelRotate,s.get("rotate"))||0)*nn/180,f=sn.innerTextLayout(n.rotation,c,n.labelDirection),d=r.getCategories&&r.getCategories(!0),h=[],v=sn.isLabelSilent(r),p=r.get("triggerEvent");return L(u,function(g,m){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,b=g.formattedLabel,_=g.rawLabel,w=s;if(d&&d[y]){var S=d[y];re(S)&&S.textStyle&&(w=new He(S.textStyle,s,r.ecModel))}var x=w.getTextColor()||r.get(["axisLine","lineStyle","color"]),C=a.dataToCoord(y),k=w.getShallow("align",!0)||f.textAlign,D=fe(w.getShallow("alignMinLabel",!0),k),E=fe(w.getShallow("alignMaxLabel",!0),k),T=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||f.textVerticalAlign,M=fe(w.getShallow("verticalAlignMinLabel",!0),T),A=fe(w.getShallow("verticalAlignMaxLabel",!0),T),P=new ct({x:C,y:n.labelOffset+n.labelDirection*l,rotation:f.rotation,silent:v,z2:10+(g.level||0),style:fn(w,{text:b,align:m===0?D:m===u.length-1?E:k,verticalAlign:m===0?M:m===u.length-1?A:T,fill:ue(x)?x(a.type==="category"?_:a.type==="value"?y+"":y,m):x})});if(P.anid="label_"+y,sl({el:P,componentModel:r,itemName:b,formatterParamsExtra:{isTruncated:function(){return P.isTruncated},value:_,tickIndex:m}}),p){var V=sn.makeAxisEventDataBase(r);V.targetType="axisLabel",V.value=_,V.tickIndex=m,a.type==="category"&&(V.dataIndex=y),ye(P).eventData=V}e.add(P),P.updateTransform(),h.push(P),t.add(P),P.decomposeTransform()}),h}}function oL(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return sL(r,t,e),r.seriesInvolved&&uL(r,t),r}function sL(t,e,r){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],s=[];L(r.getCoordinateSystems(),function(l){if(!l.axisPointerEnabled)return;var u=Ji(l.model),c=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=l;var f=l.model,d=f.getModel("tooltip",n);if(L(l.getAxes(),We(g,!1,null)),l.getTooltipAxes&&n&&d.get("show")){var h=d.get("trigger")==="axis",v=d.get(["axisPointer","type"])==="cross",p=l.getTooltipAxes(d.get(["axisPointer","axis"]));(h||v)&&L(p.baseAxes,We(g,v?"cross":!0,h)),v&&L(p.otherAxes,We(g,"cross",!1))}function g(m,y,b){var _=b.model.getModel("axisPointer",a),w=_.get("show");if(!(!w||w==="auto"&&!m&&!uf(_))){y==null&&(y=_.get("triggerTooltip")),_=m?lL(b,d,a,e,m,y):_;var S=_.get("snap"),x=_.get("triggerEmphasis"),C=Ji(b.model),k=y||S||b.type==="category",D=t.axesInfo[C]={key:C,axis:b,coordSys:l,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:k,snap:S,useHandle:uf(_),seriesModels:[],linkGroup:null};c[C]=D,t.seriesInvolved=t.seriesInvolved||k;var E=cL(i,b);if(E!=null){var T=s[E]||(s[E]={axesInfo:{}});T.axesInfo[C]=D,T.mapper=i[E].mapper,D.linkGroup=T}}}})}function lL(t,e,r,n,a,i){var s=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};L(l,function(h){u[h]=ge(s.get(h))}),u.snap=t.type!=="category"&&!!i,s.get("type")==="cross"&&(u.type="line");var c=u.label||(u.label={});if(c.show==null&&(c.show=!1),a==="cross"){var f=s.get(["label","show"]);if(c.show=f??!0,!i){var d=u.lineStyle=s.get("crossStyle");d&&ke(c,d.textStyle)}}return t.model.getModel("axisPointer",new He(u,r,n))}function uL(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||L(t.coordSysAxesInfo[Ji(n.model)],function(s){var l=s.axis;n.getAxis(l.dim)===l&&(s.seriesModels.push(r),s.seriesDataCount==null&&(s.seriesDataCount=0),s.seriesDataCount+=r.getData().count())})})}function cL(t,e){for(var r=e.model,n=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(ju(i[n+"AxisId"],r.id)||ju(i[n+"AxisIndex"],r.componentIndex)||ju(i[n+"AxisName"],r.name))return a}}function ju(t,e){return t==="all"||j(t)&&Me(t,e)>=0||t===e}function fL(t){var e=xd(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,a=r.option,i=r.get("status"),s=r.get("value");s!=null&&(s=n.parse(s));var l=uf(r);i==null&&(a.status=l?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(s==null||s>u[1])&&(s=u[1]),s<u[0]&&(s=u[0]),a.value=s,l&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function xd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Ji(t)]}function dL(t){var e=xd(t);return e&&e.axisPointerModel}function uf(t){return!!t.get(["handle","show"])}function Ji(t){return t.type+"||"+t.id}var Zu={},c1=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a,i){this.axisPointerClass&&fL(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},e.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},e.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var s=dL(r);s?(this._axisPointer||(this._axisPointer=new i)).render(r,s,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&Zu[r])throw new Error("axisPointer "+r+" exists");Zu[r]=n},e.getAxisPointerClass=function(r){return r&&Zu[r]},e.type="axis",e}(or),cf=Ue();function hL(t,e,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitArea"),s=i.getModel("areaStyle"),l=s.get("color"),u=n.coordinateSystem.getRect(),c=a.getTicksCoords({tickModel:i,clamp:!0});if(c.length){var f=l.length,d=cf(t).splitAreaColors,h=ve(),v=0;if(d)for(var p=0;p<c.length;p++){var g=d.get(c[p].tickValue);if(g!=null){v=(g+(f-1)*p)%f;break}}var m=a.toGlobalCoord(c[0].coord),y=s.getAreaStyle();l=j(l)?l:[l];for(var p=1;p<c.length;p++){var b=a.toGlobalCoord(c[p].coord),_=void 0,w=void 0,S=void 0,x=void 0;a.isHorizontal()?(_=m,w=u.y,S=b-_,x=u.height,m=_+S):(_=u.x,w=m,S=u.width,x=b-w,m=w+x);var C=c[p-1].tickValue;C!=null&&h.set(C,v),e.add(new qe({anid:C!=null?"area_"+C:null,shape:{x:_,y:w,width:S,height:x},style:ke({fill:l[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}cf(t).splitAreaColors=h}}}function vL(t){cf(t).splitAreaColors=null}var pL=["axisLine","axisTickLabel","axisName"],mL=["splitArea","splitLine","minorSplitLine"],f1=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,a,i){this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new ut,this.group.add(this._axisGroup),!!r.get("show")){var l=r.getCoordSysModel(),u=lf(l,r),c=new sn(r,W({handleAutoShown:function(d){for(var h=l.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(ef(h[v].getOtherAxis(r.axis).scale))return!0;return!1}},u));L(pL,c.add,c),this._axisGroup.add(c.getGroup()),L(mL,function(d){r.get([d,"show"])&&gL[d](this,this._axisGroup,r,l)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||ey(s,this._axisGroup,r),t.prototype.render.call(this,r,n,a,i)}},e.prototype.remove=function(){vL(this)},e.type="cartesianAxis",e}(c1),gL={splitLine:function(t,e,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),s=i.getModel("lineStyle"),l=s.get("color"),u=i.get("showMinLine")!==!1,c=i.get("showMaxLine")!==!1;l=j(l)?l:[l];for(var f=n.coordinateSystem.getRect(),d=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:i}),p=[],g=[],m=s.getLineStyle(),y=0;y<v.length;y++){var b=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!c)){var _=v[y].tickValue;d?(p[0]=b,p[1]=f.y,g[0]=b,g[1]=f.y+f.height):(p[0]=f.x,p[1]=b,g[0]=f.x+f.width,g[1]=b);var w=h++%l.length,S=new cn({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:ke({stroke:l[w]},m),silent:!0});Ui(S.shape,m.lineWidth),e.add(S)}}}},minorSplitLine:function(t,e,r,n){var a=r.axis,i=r.getModel("minorSplitLine"),s=i.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var f=[],d=[],h=s.getLineStyle(),v=0;v<c.length;v++)for(var p=0;p<c[v].length;p++){var g=a.toGlobalCoord(c[v][p].coord);u?(f[0]=g,f[1]=l.y,d[0]=g,d[1]=l.y+l.height):(f[0]=l.x,f[1]=g,d[0]=l.x+l.width,d[1]=g);var m=new cn({anid:"minor_line_"+c[v][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:h,silent:!0});Ui(m.shape,h.lineWidth),e.add(m)}},splitArea:function(t,e,r,n){hL(t,e,r,n)}},d1=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}(f1),yL=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=d1.type,r}return e.type="yAxis",e}(f1),bL=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new qe({shape:r.coordinateSystem.getRect(),style:ke({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(or),am={offset:0};function _L(t){t.registerComponentView(bL),t.registerComponentModel(GI),t.registerCoordinateSystem("cartesian2d",JI),qp(t,"x",of,am),qp(t,"y",of,am),t.registerComponentView(d1),t.registerComponentView(yL),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Rn=Ue(),im=ge,Ku=Pe,wL=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,a){var i=r.get("value"),s=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===s)){this._lastValue=i,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||s==="hide"){l&&l.hide(),u&&u.hide();return}l&&l.show(),u&&u.show();var c={};this.makeElOption(c,i,e,r,n);var f=c.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var d=this._moveAnimation=this.determineAnimation(e,r);if(!l)l=this._group=new ut,this.createPointerEl(l,c,e,r),this.createLabelEl(l,c,e,r),n.getZr().add(l);else{var h=We(om,r,d);this.updatePointerEl(l,c,h),this.updateLabelEl(l,c,h,r)}lm(l,r,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),a=e.axis,i=a.type==="category",s=r.get("snap");if(!s&&!i)return!1;if(n==="auto"||n==null){var l=this.animationThreshold;if(i&&a.getBandWidth()>l)return!0;if(s){var u=xd(e).seriesDataCount,c=a.getExtent();return Math.abs(c[0]-c[1])/u>l}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,a,i){},t.prototype.createPointerEl=function(e,r,n,a){var i=r.pointer;if(i){var s=Rn(e).pointerEl=new AE[i.type](im(r.pointer));e.add(s)}},t.prototype.createLabelEl=function(e,r,n,a){if(r.label){var i=Rn(e).labelEl=new ct(im(r.label));e.add(i),sm(i,a)}},t.prototype.updatePointerEl=function(e,r,n){var a=Rn(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,a){var i=Rn(e).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),sm(i,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),s=r.get("status");if(!i.get("show")||!s||s==="hide"){a&&n.remove(a),this._handle=null;return}var l;this._handle||(l=!0,a=this._handle=Uf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){Km(c.event)},onmousedown:Ku(this._onHandleDragMove,this,0,0),drift:Ku(this._onHandleDragMove,this),ondragend:Ku(this._onHandleDragEnd,this)}),n.add(a)),lm(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=i.get("size");j(u)||(u=[u,u]),a.scaleX=u[0]/2,a.scaleY=u[1]/2,Gy(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,l)}},t.prototype._moveHandleToValue=function(e,r){om(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Qu(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Qu(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Qu(a)),Rn(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Wc(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function om(t,e,r,n){h1(Rn(r).lastProp,n)||(Rn(r).lastProp=n,e?St(r,n,t):(r.stopAnimation(),r.attr(n)))}function h1(t,e){if(re(t)&&re(e)){var r=!0;return L(e,function(n,a){r=r&&h1(t[a],n)}),!!r}else return t===e}function sm(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Qu(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function lm(t,e,r){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}function SL(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function xL(t,e,r,n,a){var i=r.get("value"),s=v1(i,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),l=r.getModel("label"),u=gl(l.get("padding")||0),c=l.getFont(),f=Ef(s,c),d=a.position,h=f.width+u[1]+u[3],v=f.height+u[0]+u[2],p=a.align;p==="right"&&(d[0]-=h),p==="center"&&(d[0]-=h/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=v),g==="middle"&&(d[1]-=v/2),CL(d,h,v,n);var m=l.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:d[0],y:d[1],style:fn(l,{text:s,font:c,fill:l.getTextColor(),padding:u,backgroundColor:m}),z2:10}}function CL(t,e,r,n){var a=n.getWidth(),i=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function v1(t,e,r,n,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),s=a.formatter;if(s){var l={value:pd(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};L(n,function(u){var c=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,d=c&&c.getDataParams(f);d&&l.seriesData.push(d)}),Z(s)?i=s.replace("{value}",i):ue(s)&&(i=s(l))}return i}function p1(t,e,r){var n=ka();return Cf(n,n,r.rotation),vc(n,n,r.position),Wf([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function kL(t,e,r,n,a,i){var s=sn.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),xL(e,n,a,i,{position:p1(n.axis,t,r),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function TL(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function DL(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var EL=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,a,i,s){var l=a.axis,u=l.grid,c=i.get("type"),f=um(u,l).getOtherAxis(l).getGlobalExtent(),d=l.toGlobalCoord(l.dataToCoord(n,!0));if(c&&c!=="none"){var h=SL(i),v=ML[c](l,d,f);v.style=h,r.graphicKey=v.type,r.pointer=v}var p=lf(u.model,a);kL(n,r,p,a,i,s)},e.prototype.getHandleTransform=function(r,n,a){var i=lf(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var s=p1(n.axis,r,i);return{x:s[0],y:s[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var s=a.axis,l=s.grid,u=s.getGlobalExtent(!0),c=um(l,s).getOtherAxis(s).getGlobalExtent(),f=s.dim==="x"?0:1,d=[r.x,r.y];d[f]+=n[f],d[f]=Math.min(u[1],d[f]),d[f]=Math.max(u[0],d[f]);var h=(c[1]+c[0])/2,v=[h,h];v[f]=d[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:r.rotation,cursorPoint:v,tooltipOption:p[f]}},e}(wL);function um(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var ML={line:function(t,e,r){var n=TL([e,r[0]],[e,r[1]],cm(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:DL([e-n/2,r[0]],[n,a],cm(t))}}};function cm(t){return t.dim==="x"?0:1}var AL=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(_e),Vr=Ue(),NL=L;function m1(t,e,r){if(!oe.node){var n=e.getZr();Vr(n).records||(Vr(n).records={}),BL(n,e);var a=Vr(n).records[t]||(Vr(n).records[t]={});a.handler=r}}function BL(t,e){if(Vr(t).initialized)return;Vr(t).initialized=!0,r("click",We(fm,"click")),r("mousemove",We(fm,"mousemove")),r("globalout",IL);function r(n,a){t.on(n,function(i){var s=LL(e);NL(Vr(t).records,function(l){l&&a(l,i,s.dispatchAction)}),VL(s.pendings,e)})}}function VL(t,e){var r=t.showTip.length,n=t.hideTip.length,a;r?a=t.showTip[r-1]:n&&(a=t.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function IL(t,e,r){t.handler("leave",null,r)}function fm(t,e,r,n){e.handler(t,r,n)}function LL(t){var e={showTip:[],hideTip:[]},r=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function ff(t,e){if(!oe.node){var r=e.getZr(),n=(Vr(r).records||{})[t];n&&(Vr(r).records[t]=null)}}var PL=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),s=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";m1("axisPointer",a,function(l,u,c){s!=="none"&&(l==="leave"||s.indexOf(l)>=0)&&c({type:"updateAxisPointer",currTrigger:l,x:u&&u.offsetX,y:u&&u.offsetY})})},e.prototype.remove=function(r,n){ff("axisPointer",n)},e.prototype.dispose=function(r,n){ff("axisPointer",n)},e.type="axisPointer",e}(or);function g1(t,e){var r=[],n=t.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),s=Zn(i,t);if(s==null||s<0||j(s))return{point:[]};var l=i.getItemGraphicEl(s),u=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(s)||[];else if(u&&u.dataToPoint)if(t.isStacked){var c=u.getBaseAxis(),f=u.getOtherAxis(c),d=f.dim,h=c.dim,v=d==="x"||d==="radius"?1:0,p=i.mapDimension(h),g=[];g[v]=i.get(p,s),g[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),s),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(i.getValues(ee(u.dimensions,function(y){return i.mapDimension(y)}),s))||[];else if(l){var m=l.getBoundingRect().clone();m.applyTransform(l.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:l}}var dm=Ue();function zL(t,e,r){var n=t.currTrigger,a=[t.x,t.y],i=t,s=t.dispatchAction||Pe(r.dispatchAction,r),l=e.getComponent("axisPointer").coordSysAxesInfo;if(l){fs(a)&&(a=g1({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var u=fs(a),c=i.axesInfo,f=l.axesInfo,d=n==="leave"||fs(a),h={},v={},p={list:[],map:{}},g={showPointer:We(OL,v),showTooltip:We($L,p)};L(l.coordSysMap,function(y,b){var _=u||y.containPoint(a);L(l.coordSysAxesInfo[b],function(w,S){var x=w.axis,C=WL(c,w);if(!d&&_&&(!c||C)){var k=C&&C.value;k==null&&!u&&(k=x.pointToData(a)),k!=null&&hm(w,k,g,!1,h)}})});var m={};return L(f,function(y,b){var _=y.linkGroup;_&&!v[b]&&L(_.axesInfo,function(w,S){var x=v[S];if(w!==y&&x){var C=x.value;_.mapper&&(C=y.axis.scale.parse(_.mapper(C,vm(w),vm(y)))),m[y.key]=C}})}),L(m,function(y,b){hm(f[b],y,g,!0,h)}),FL(v,f,h),HL(p,a,t,s),GL(f,s,r),h}}function hm(t,e,r,n,a){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var s=RL(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&a.seriesIndex==null&&W(a,l[0]),!n&&t.snap&&i.containData(u)&&u!=null&&(e=u),r.showPointer(t,e,l),r.showTooltip(t,s,u)}}function RL(t,e){var r=e.axis,n=r.dim,a=t,i=[],s=Number.MAX_VALUE,l=-1;return L(e.seriesModels,function(u,c){var f=u.getData().mapDimensionsAll(n),d,h;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,t,r);h=v.dataIndices,d=v.nestestValue}else{if(h=u.getData().indicesOfNearest(f[0],t,r.type==="category"?.5:null),!h.length)return;d=u.getData().get(f[0],h[0])}if(!(d==null||!isFinite(d))){var p=t-d,g=Math.abs(p);g<=s&&((g<s||p>=0&&l<0)&&(s=g,l=p,a=d,i.length=0),L(h,function(m){i.push({seriesIndex:u.seriesIndex,dataIndexInside:m,dataIndex:u.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function OL(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function $L(t,e,r,n){var a=r.payloadBatch,i=e.axis,s=i.model,l=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var u=e.coordSys.model,c=Ji(u),f=t.map[c];f||(f=t.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function FL(t,e,r){var n=r.axesInfo=[];L(e,function(a,i){var s=a.axisPointerModel.option,l=t[i];l?(!a.useHandle&&(s.status="show"),s.value=l.value,s.seriesDataIndices=(l.payloadBatch||[]).slice()):!a.useHandle&&(s.status="hide"),s.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:s.value})})}function HL(t,e,r,n){if(fs(e)||!t.list.length){n({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function GL(t,e,r){var n=r.getZr(),a="axisPointerLastHighlights",i=dm(n)[a]||{},s=dm(n)[a]={};L(t,function(c,f){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&L(d.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;s[v]=h})});var l=[],u=[];L(i,function(c,f){!s[f]&&u.push(c)}),L(s,function(c,f){!i[f]&&l.push(c)}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function WL(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function vm(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function fs(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function y1(t){c1.registerAxisPointerClass("CartesianAxisPointer",EL),t.registerComponentModel(AL),t.registerComponentView(PL),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!j(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=oL(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zL)}function UL(t){dn(_L),dn(y1)}function YL(t,e){var r=gl(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new qe({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var XL=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(_e);function b1(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function _1(t){if(oe.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var w1=_1(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),qL=_1(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function S1(t,e){if(!t)return e;e=my(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function jL(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var ZL=S1(qL,"transition"),Cd=S1(w1,"transform"),KL="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(oe.transform3dSupported?"will-change:transform;":"");function QL(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function JL(t,e,r){if(!Z(r)||r==="inside")return"";var n=t.get("backgroundColor"),a=t.get("borderWidth");e=Qn(e);var i=QL(r),s=Math.max(Math.round(a)*1.5,6),l="",u=Cd+":",c;Me(["left","right"],i)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(c=i==="left"?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(c=i==="top"?225:45)+"deg)");var f=c*Math.PI/180,d=s+a,h=d*Math.abs(Math.cos(f))+d*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-d)/2)*100)/100;l+=";"+i+":-"+v+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function eP(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,a="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,a+=oe.transformSupported?","+Cd+n:",left"+n+",top"+n),ZL+":"+a}function pm(t,e,r){var n=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!oe.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=oe.transform3dSupported,s="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+Cd+":"+s+";":[["top",0],["left",0],[w1,s]]}function tP(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var a=fe(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+a+"px");var i=t.get("textShadowColor"),s=t.get("textShadowBlur")||0,l=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return i&&s&&e.push("text-shadow:"+l+"px "+u+"px "+s+"px "+i),L(["decoration","align"],function(c){var f=t.get(c);f&&e.push("text-"+c+":"+f)}),e.join(";")}function rP(t,e,r){var n=[],a=t.get("transitionDuration"),i=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),f=t.getModel("textStyle"),d=Fy(t,"html"),h=u+"px "+c+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&a&&n.push(eP(a,r)),i&&n.push("background-color:"+i),L(["width","color","radius"],function(v){var p="border-"+v,g=my(p),m=t.get(g);m!=null&&n.push(p+":"+m+(v==="color"?"":"px"))}),n.push(tP(f)),d!=null&&n.push("padding:"+gl(d).join("px ")+"px"),n.join(";")+";"}function mm(t,e,r,n,a){var i=e&&e.painter;if(r){var s=i&&i.getViewportRoot();s&&Xk(t,s,r,n,a)}else{t[0]=n,t[1]=a;var l=i&&i.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var nP=function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,oe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=r.appendTo,s=i&&(Z(i)?document.querySelector(i):Ba(i)?i:ue(i)&&i(e.getDom()));mm(this._styleCoord,a,s,e.getWidth()/2,e.getHeight()/2),(s||e.getDom()).appendChild(n),this._api=e,this._container=s;var l=this;n.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!l._enterable){var c=a.handler,f=a.painter.getViewportRoot();Ht(f,u,!0),c.dispatch("mousemove",u)}},n.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=jL(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=KL+rP(e,!this._firstShow,this._longHide)+pm(i[0],i[1],!0)+("border-color:"+Qn(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,a,i){var s=this.el;if(e==null){s.innerHTML="";return}var l="";if(Z(i)&&n.get("trigger")==="item"&&!b1(n)&&(l=JL(n,a,i)),Z(e))s.innerHTML=e+l;else if(e){s.innerHTML="",j(e)||(e=[e]);for(var u=0;u<e.length;u++)Ba(e[u])&&e[u].parentNode!==s&&s.appendChild(e[u]);if(l&&s.childNodes.length){var c=document.createElement("div");c.innerHTML=l,s.appendChild(c)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(mm(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=pm(n[0],n[1]);L(i,function(s){a[s[0]]=s[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;r.visibility="hidden",r.opacity="0",oe.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t}(),aP=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),ym(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,a,i){var s=this;re(e)&&Dt(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var l=n.getModel("textStyle");this.el=new ct({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:l.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Fy(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),L(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){s.el.style[c]=n.get(c)}),L(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){s.el.style[c]=l.get(c)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=gm(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var a=this._styleCoord;ym(a,this._zr,e,r),e=a[0],r=a[1];var i=n.style,s=Qr(i.borderWidth||0),l=gm(i);n.x=e+s+l.left,n.y=r+s+l.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Qr(t){return Math.max(0,t)}function gm(t){var e=Qr(t.shadowBlur||0),r=Qr(t.shadowOffsetX||0),n=Qr(t.shadowOffsetY||0);return{left:Qr(e-r),right:Qr(e+r),top:Qr(e-n),bottom:Qr(e+n)}}function ym(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var iP=new qe({shape:{x:-1,y:-1,width:2,height:2}}),oP=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(oe.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=_T(a.get("renderMode"));this._tooltipContent=i==="richText"?new aP(n):new nP(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(r,n,a){if(!(oe.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Gy(this,"_updatePosition",50,"fixRate"):Wc(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");m1("itemTooltip",this._api,Pe(function(a,i,s){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,s):a==="leave"&&this._hide(s))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var s=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&s.manuallyShowTip(r,n,a,{x:s._lastX,y:s._lastY,dataByCoordSys:s._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||oe.node||!a.getDom())){var s=bm(i,a);this._ticket="";var l=i.dataByCoordSys,u=cP(i,n,a);if(u){var c=u.el.getBoundingRect().clone();c.applyTransform(u.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:u.el,position:i.position,positionDefault:"bottom"},s)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=iP;f.x=i.x,f.y=i.y,f.update(),ye(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},s)}else if(l)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:l,tooltipOption:i.tooltipOption},s);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var d=g1(i,n),h=d.point[0],v=d.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:d.el,position:i.position,positionDefault:"bottom"},s)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},s))}},e.prototype.manuallyHideTip=function(r,n,a,i){var s=this._tooltipContent;this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(bm(i,a))},e.prototype._manuallyAxisShowTip=function(r,n,a,i){var s=i.seriesIndex,l=i.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(s==null||l==null||u==null)){var c=n.getSeriesByIndex(s);if(c){var f=c.getData(),d=mi([f.getItemModel(l),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:l,position:i.position}),!0}}},e.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var s=r.dataByCoordSys;if(s&&s.length)this._showAxisTooltip(s,r);else if(a){var l=ye(a);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,c;ki(a,function(f){if(ye(f).dataIndex!=null)return u=f,!0;if(ye(f).tooltipConfig!=null)return c=f,!0},!0),u?this._showSeriesItemTooltip(r,u,n):c?this._showComponentItemTooltip(r,c,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=Pe(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,s=[n.offsetX,n.offsetY],l=mi([n.tooltipOption],i),u=this._renderMode,c=[],f=ji("section",{blocks:[],noHeader:!0}),d=[],h=new ku;L(r,function(b){L(b.dataByAxis,function(_){var w=a.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!w||S==null)){var x=v1(S,w.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=ji("section",{header:x,noHeader:!yr(x),sortBlocks:!0,blocks:[]});f.blocks.push(C),L(_.seriesDataIndices,function(k){var D=a.getSeriesByIndex(k.seriesIndex),E=k.dataIndexInside,T=D.getDataParams(E);if(!(T.dataIndex<0)){T.axisDim=_.axisDim,T.axisIndex=_.axisIndex,T.axisType=_.axisType,T.axisId=_.axisId,T.axisValue=pd(w.axis,{value:S}),T.axisValueLabel=x,T.marker=h.makeTooltipMarker("item",Qn(T.color),u);var M=Mv(D.formatTooltip(E,!0,null)),A=M.frag;if(A){var P=mi([D],i).get("valueFormatter");C.blocks.push(P?W({valueFormatter:P},A):A)}M.text&&d.push(M.text),c.push(T)}})}})}),f.blocks.reverse(),d.reverse();var v=n.position,p=l.get("order"),g=Iv(f,h,u,p,a.get("useUTC"),l.get("textStyle"));g&&d.unshift(g);var m=u==="richText"?`
|
|
271
|
+
|
|
272
|
+
`:"<br/>",y=d.join(m);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(r,c)?this._updatePosition(l,v,s[0],s[1],this._tooltipContent,c):this._showTooltipContent(l,y,c,Math.random()+"",s[0],s[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,s=ye(n),l=s.seriesIndex,u=i.getSeriesByIndex(l),c=s.dataModel||u,f=s.dataIndex,d=s.dataType,h=c.getData(d),v=this._renderMode,p=r.positionDefault,g=mi([h.getItemModel(f),c,u&&(u.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=c.getDataParams(f,d),b=new ku;y.marker=b.makeTooltipMarker("item",Qn(y.color),v);var _=Mv(c.formatTooltip(f,!1,d)),w=g.get("order"),S=g.get("valueFormatter"),x=_.frag,C=x?Iv(S?W({valueFormatter:S},x):x,b,v,w,i.get("useUTC"),g.get("textStyle")):_.text,k="item_"+c.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,C,y,k,r.offsetX,r.offsetY,r.position,r.target,b)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:l,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,a){var i=this._renderMode==="html",s=ye(n),l=s.tooltipConfig,u=l.option||{},c=u.encodeHTMLContent;if(Z(u)){var f=u;u={content:f,formatter:f},c=!0}c&&i&&u.content&&(u=ge(u),u.content=kt(u.content));var d=[u],h=this._ecModel.getComponent(s.componentMainType,s.componentIndex);h&&d.push(h),d.push({formatter:u.content});var v=r.positionDefault,p=mi(d,this._tooltipModel,v?{position:v}:null),g=p.get("content"),m=Math.random()+"",y=new ku;this._showOrMove(p,function(){var b=ge(p.get("formatterParams")||{});this._showTooltipContent(p,g,b,m,r.offsetX,r.offsetY,r.position,n,y)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,a,i,s,l,u,c,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var d=this._tooltipContent;d.setEnterable(r.get("enterable"));var h=r.get("formatter");u=u||r.get("position");var v=n,p=this._getNearestPoint([s,l],a,r.get("trigger"),r.get("borderColor")),g=p.color;if(h)if(Z(h)){var m=r.ecModel.get("useUTC"),y=j(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,b&&(v=dl(y.axisValue,v,m)),v=gy(v,a,!0)}else if(ue(h)){var _=Pe(function(w,S){w===this._ticket&&(d.setContent(S,f,r,g,u),this._updatePosition(r,u,s,l,d,a,c))},this);this._ticket=i,v=h(a,i,_)}else v=h;d.setContent(v,f,r,g,u),d.show(r,g),this._updatePosition(r,u,s,l,d,a,c)}},e.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||j(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!j(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,a,i,s,l,u){var c=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var d=s.getSize(),h=r.get("align"),v=r.get("verticalAlign"),p=u&&u.getBoundingRect().clone();if(u&&p.applyTransform(u.transform),ue(n)&&(n=n([a,i],l,s.el,p,{viewSize:[c,f],contentSize:d.slice()})),j(n))a=Re(n[0],c),i=Re(n[1],f);else if(re(n)){var g=n;g.width=d[0],g.height=d[1];var m=La(g,{width:c,height:f});a=m.x,i=m.y,h=null,v=null}else if(Z(n)&&u){var y=uP(n,p,d,r.get("borderWidth"));a=y[0],i=y[1]}else{var y=sP(a,i,s,c,f,h?null:20,v?null:20);a=y[0],i=y[1]}if(h&&(a-=_m(h)?d[0]/2:h==="right"?d[0]:0),v&&(i-=_m(v)?d[1]/2:v==="bottom"?d[1]:0),b1(r)){var y=lP(a,i,s,c,f);a=y[0],i=y[1]}s.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,s=!!a&&a.length===r.length;return s&&L(a,function(l,u){var c=l.dataByAxis||[],f=r[u]||{},d=f.dataByAxis||[];s=s&&c.length===d.length,s&&L(c,function(h,v){var p=d[v]||{},g=h.seriesDataIndices||[],m=p.seriesDataIndices||[];s=s&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&g.length===m.length,s&&L(g,function(y,b){var _=m[b];s=s&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&L(h.seriesDataIndices,function(y){var b=y.seriesIndex,_=n[b],w=i[b];_&&w&&w.data!==_.data&&(s=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!s},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){oe.node||!n.getDom()||(Wc(this,"_updatePosition"),this._tooltipContent.dispose(),ff("itemTooltip",n))},e.type="tooltip",e}(or);function mi(t,e,r){var n=e.ecModel,a;r?(a=new He(r,n,n),a=new He(e.option,a,n)):a=e;for(var i=t.length-1;i>=0;i--){var s=t[i];s&&(s instanceof He&&(s=s.get("tooltip",!0)),Z(s)&&(s={formatter:s}),s&&(a=new He(s,a,n)))}return a}function bm(t,e){return t.dispatchAction||Pe(e.dispatchAction,e)}function sP(t,e,r,n,a,i,s){var l=r.getSize(),u=l[0],c=l[1];return i!=null&&(t+u+i+2>n?t-=u+i:t+=i),s!=null&&(e+c+s>a?e-=c+s:e+=s),[t,e]}function lP(t,e,r,n,a){var i=r.getSize(),s=i[0],l=i[1];return t=Math.min(t+s,n)-s,e=Math.min(e+l,a)-l,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function uP(t,e,r,n){var a=r[0],i=r[1],s=Math.ceil(Math.SQRT2*n)+8,l=0,u=0,c=e.width,f=e.height;switch(t){case"inside":l=e.x+c/2-a/2,u=e.y+f/2-i/2;break;case"top":l=e.x+c/2-a/2,u=e.y-i-s;break;case"bottom":l=e.x+c/2-a/2,u=e.y+f+s;break;case"left":l=e.x-a-s,u=e.y+f/2-i/2;break;case"right":l=e.x+c+s,u=e.y+f/2-i/2}return[l,u]}function _m(t){return t==="center"||t==="middle"}function cP(t,e,r){var n=Nf(t).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=ro(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),s=i.models[0];if(s){var l=r.getViewOfComponentModel(s),u;if(l.group.traverse(function(c){var f=ye(c).tooltipConfig;if(f&&f.name===t.name)return u=c,!0}),u)return{componentMainType:a,componentIndex:s.componentIndex,el:u}}}}function fP(t){dn(y1),t.registerComponentModel(XL),t.registerComponentView(oP),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Mt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Mt)}var dP=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(_e),hP=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,s=r.getModel("textStyle"),l=r.getModel("subtextStyle"),u=r.get("textAlign"),c=fe(r.get("textBaseline"),r.get("textVerticalAlign")),f=new ct({style:fn(s,{text:r.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),d=f.getBoundingRect(),h=r.get("subtext"),v=new ct({style:fn(l,{text:h,fill:l.getTextColor(),y:d.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),g=r.get("sublink"),m=r.get("triggerEvent",!0);f.silent=!p&&!m,v.silent=!g&&!m,p&&f.on("click",function(){fv(p,"_"+r.get("target"))}),g&&v.on("click",function(){fv(g,"_"+r.get("subtarget"))}),ye(f).eventData=ye(v).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),h&&i.add(v);var y=i.getBoundingRect(),b=r.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=La(b,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));u||(u=r.get("left")||r.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),c||(c=r.get("top")||r.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?_.y+=_.height:c==="middle"&&(_.y+=_.height/2),c=c||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var w={align:u,verticalAlign:c};f.setStyle(w),v.setStyle(w),y=i.getBoundingRect();var S=_.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var C=new qe({shape:{x:y.x-S[3],y:y.y-S[0],width:y.width+S[1]+S[3],height:y.height+S[0]+S[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},e.type="title",e}(or);function vP(t){t.registerComponentModel(dP),t.registerComponentView(hP)}var pP=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},df=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),j(n)&&L(n,function(i,s){Z(i)&&(i={type:i}),n[s]=xe(i,pP(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(u){var c=u.name;a.push(c);var f;if(u.legendVisualProvider){var d=u.legendVisualProvider,h=d.getAllNames();r.isSeriesFiltered(u)||(a=a.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&Af(u)&&n.push(u.name)}),this._availableNames=a;var i=this.get("data")||n,s=ve(),l=ee(i,function(u){return(Z(u)||Ve(u))&&(u={name:u}),s.get(u.name)?null:(s.set(u.name,!0),new He(u,this,this.ecModel))},this);this._data=st(l,function(u){return!!u})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;L(i,function(s){n[s.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;L(r,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;L(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Me(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",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:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(_e),ma=We,hf=L,Zo=ut,x1=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Zo),this.group.add(this._selectorGroup=new Zo),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var s=r.get("align"),l=r.get("orient");(!s||s==="auto")&&(s=r.get("left")==="right"&&l==="vertical"?"right":"left");var u=r.get("selector",!0),c=r.get("selectorPosition",!0);u&&(!c||c==="auto")&&(c=l==="horizontal"?"end":"start"),this.renderInner(s,r,n,a,u,l,c);var f=r.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},h=r.get("padding"),v=La(f,d,h),p=this.layoutInner(r,s,v,i,u,c),g=La(ke({width:p.width,height:p.height},f),d,h);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=YL(p,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,a,i,s,l,u){var c=this.getContentGroup(),f=ve(),d=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),hf(n.getData(),function(v,p){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
273
|
+
`)){var m=new Zo;m.newline=!0,c.add(m);return}var y=a.getSeriesByName(g)[0];if(!f.get(g)){if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),S=b.getVisual("style"),x=this._createItem(y,g,p,v,n,r,_,S,w,d,i);x.on("click",ma(wm,g,null,i,h)).on("mouseover",ma(vf,y.name,null,i,h)).on("mouseout",ma(pf,y.name,null,i,h)),a.ssr&&x.eachChild(function(C){var k=ye(C);k.seriesIndex=y.seriesIndex,k.dataIndex=p,k.ssrType="legend"}),f.set(g,!0)}else a.eachRawSeries(function(C){if(!f.get(g)&&C.legendVisualProvider){var k=C.legendVisualProvider;if(!k.containName(g))return;var D=k.indexOfName(g),E=k.getItemVisual(D,"style"),T=k.getItemVisual(D,"legendIcon"),M=Ir(E.fill);M&&M[3]===0&&(M[3]=.2,E=W(W({},E),{fill:js(M,"rgba")}));var A=this._createItem(C,g,p,v,n,r,{},E,T,d,i);A.on("click",ma(wm,null,g,i,h)).on("mouseover",ma(vf,null,g,i,h)).on("mouseout",ma(pf,null,g,i,h)),a.ssr&&A.eachChild(function(P){var V=ye(P);V.seriesIndex=C.seriesIndex,V.dataIndex=p,V.ssrType="legend"}),f.set(g,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name."))}},this),s&&this._createSelector(s,n,i,l,u)},e.prototype._createSelector=function(r,n,a,i,s){var l=this.getSelectorGroup();hf(r,function(c){var f=c.type,d=new ct({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});l.add(d);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);io(d,{normal:h,emphasis:v},{defaultText:c.title}),Vc(d)})},e.prototype._createItem=function(r,n,a,i,s,l,u,c,f,d,h){var v=r.visualDrawType,p=s.get("itemWidth"),g=s.get("itemHeight"),m=s.isSelected(n),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var w=mP(f,i,u,c,v,m,h),S=new Zo,x=i.getModel("textStyle");if(ue(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:p,itemHeight:g,icon:f,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}));else{var C=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;S.add(gP({itemWidth:p,itemHeight:g,icon:f,iconRotate:C,itemStyle:w.itemStyle,symbolKeepAspect:b}))}var k=l==="left"?p+5:-5,D=l,E=s.get("formatter"),T=n;Z(E)&&E?T=E.replace("{name}",n??""):ue(E)&&(T=E(n));var M=m?x.getTextColor():i.get("inactiveColor");S.add(new ct({style:fn(x,{text:T,x:k,y:g/2,fill:M,align:D,verticalAlign:"middle"},{inheritColor:M})}));var A=new qe({shape:S.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&sl({el:A,componentModel:s,itemName:n,itemTooltipOption:P.option}),S.add(A),S.eachChild(function(V){V.silent=!0}),A.silent=!d,this.getContentGroup().add(S),Vc(S),S.__legendDataIndex=a,S},e.prototype.layoutInner=function(r,n,a,i,s,l){var u=this.getContentGroup(),c=this.getSelectorGroup();Pi(r.get("orient"),u,r.get("itemGap"),a.width,a.height);var f=u.getBoundingRect(),d=[-f.x,-f.y];if(c.markRedraw(),u.markRedraw(),s){Pi("horizontal",c,r.get("selectorItemGap",!0));var h=c.getBoundingRect(),v=[-h.x,-h.y],p=r.get("selectorButtonGap",!0),g=r.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";l==="end"?v[g]+=f[m]+p:d[g]+=h[m]+p,v[1-g]+=f[y]/2-h[y]/2,c.x=v[0],c.y=v[1],u.x=d[0],u.y=d[1];var _={x:0,y:0};return _[m]=f[m]+p+h[m],_[y]=Math.max(f[y],h[y]),_[b]=Math.min(0,h[b]+v[1-g]),_}else return u.x=d[0],u.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(or);function mP(t,e,r,n,a,i,s){function l(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),hf(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var u=e.getModel("itemStyle"),c=u.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",d=u.getShallow("decal");c.decal=!d||d==="inherit"?n.decal:jc(d,s),c.fill==="inherit"&&(c.fill=n[a]),c.stroke==="inherit"&&(c.stroke=n[f]),c.opacity==="inherit"&&(c.opacity=(a==="fill"?n:r).opacity),l(c,n);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(l(v,r),c.fill==="auto"&&(c.fill=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var p=e.get("inactiveBorderWidth"),g=c[f];c.lineWidth=p==="auto"?n.lineWidth>0&&g?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:c,lineStyle:v}}function gP(t){var e=t.icon||"roundRect",r=Ra(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function wm(t,e,r,n){pf(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),vf(t,e,r,n)}function C1(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,a=e.length;n<a&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function vf(t,e,r,n){C1(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function pf(t,e,r,n){C1(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function yP(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function gi(t,e,r){var n=t==="allSelect"||t==="inverseSelect",a={},i=[];r.eachComponent({mainType:"legend",query:e},function(l){n?l[t]():l[t](e.name),Sm(l,a),i.push(l.componentIndex)});var s={};return r.eachComponent("legend",function(l){L(a,function(u,c){l[u?"select":"unSelect"](c)}),Sm(l,s)}),n?{selected:s,legendIndex:i}:{name:e.name,selected:s}}function Sm(t,e){var r=e||{};return L(t.getData(),function(n){var a=n.get("name");if(!(a===`
|
|
274
|
+
`||a==="")){var i=t.isSelected(a);jn(r,a)?r[a]=r[a]&&i:r[a]=i}}),r}function bP(t){t.registerAction("legendToggleSelect","legendselectchanged",We(gi,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",We(gi,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",We(gi,"inverseSelect")),t.registerAction("legendSelect","legendselected",We(gi,"select")),t.registerAction("legendUnSelect","legendunselected",We(gi,"unSelect"))}function k1(t){t.registerComponentModel(df),t.registerComponentView(x1),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,yP),t.registerSubTypeDefaulter("legend",function(){return"plain"}),bP(t)}var _P=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,a){var i=yl(r);t.prototype.init.call(this,r,n,a),xm(this,r,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),xm(this,this.option,r)},e.type="legend.scroll",e.defaultOption=ay(df.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:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(df);function xm(t,e,r){var n=t.getOrient(),a=[1,1];a[n.index]=0,Pa(e,r,{type:"box",ignoreSize:!!a})}var Cm=ut,Ju=["width","height"],ec=["x","y"],wP=function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Cm),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Cm)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,a,i,s,l,u){var c=this;t.prototype.renderInner.call(this,r,n,a,i,s,l,u);var f=this._controllerGroup,d=n.get("pageIconSize",!0),h=j(d)?d:[d,d];p("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new ct({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(g,m){var y=g+"DataIndex",b=Uf(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:Pe(c._pageGo,c,y,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});b.name=g,f.add(b)}},e.prototype.layoutInner=function(r,n,a,i,s,l){var u=this.getSelectorGroup(),c=r.getOrient().index,f=Ju[c],d=ec[c],h=Ju[1-c],v=ec[1-c];s&&Pi("horizontal",u,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),g=u.getBoundingRect(),m=[-g.x,-g.y],y=ge(a);s&&(y[f]=a[f]-g[f]-p);var b=this._layoutContentAndController(r,i,y,c,f,h,v,d);if(s){if(l==="end")m[c]+=b[f]+p;else{var _=g[f]+p;m[c]-=_,b[d]-=_}b[f]+=g[f]+p,m[1-c]+=b[v]+b[h]/2-g[h]/2,b[h]=Math.max(b[h],g[h]),b[v]=Math.min(b[v],g[v]+m[1-c]),u.x=m[0],u.y=m[1],u.markRedraw()}return b},e.prototype._layoutContentAndController=function(r,n,a,i,s,l,u,c){var f=this.getContentGroup(),d=this._containerGroup,h=this._controllerGroup;Pi(r.get("orient"),f,r.get("itemGap"),i?a.width:null,i?null:a.height),Pi("horizontal",h,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),p=h.getBoundingRect(),g=this._showController=v[s]>a[s],m=[-v.x,-v.y];n||(m[i]=f[c]);var y=[0,0],b=[-p.x,-p.y],_=fe(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var w=r.get("pageButtonPosition",!0);w==="end"?b[i]+=a[s]-p[s]:y[i]+=p[s]+_}b[1-i]+=v[l]/2-p[l]/2,f.setPosition(m),d.setPosition(y),h.setPosition(b);var S={x:0,y:0};if(S[s]=g?a[s]:v[s],S[l]=Math.max(v[l],p[l]),S[u]=Math.min(0,p[u]+b[1-i]),d.__rectSize=a[s],g){var x={x:0,y:0};x[s]=Math.max(a[s]-p[s]-_,0),x[l]=S[l],d.setClipPath(new qe({shape:x})),d.__rectSize=x[s]}else h.eachChild(function(k){k.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(r);return C.pageIndex!=null&&St(f,{x:C.contentPosition[0],y:C.contentPosition[1]},g?r:null),this._updatePageInfoView(r,C),S},e.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;L(["pagePrev","pageNext"],function(f){var d=f+"DataIndex",h=n[d]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),s=r.get("pageFormatter"),l=n.pageIndex,u=l!=null?l+1:0,c=n.pageCount;i&&s&&i.setStyle("text",Z(s)?s.replace("{current}",u==null?"":u+"").replace("{total}",c==null?"":c+""):s({current:u,total:c}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,s=r.getOrient().index,l=Ju[s],u=ec[s],c=this._findTargetItemIndex(n),f=a.children(),d=f[c],h=f.length,v=h?1:0,p={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=w(d);p.contentPosition[s]=-g.s;for(var m=c+1,y=g,b=g,_=null;m<=h;++m)_=w(f[m]),(!_&&b.e>y.s+i||_&&!S(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=c-1,y=g,b=g,_=null;m>=-1;--m)_=w(f[m]),(!_||!S(b,_.s))&&y.i<b.i&&(b=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function w(x){if(x){var C=x.getBoundingRect(),k=C[u]+x[u];return{s:k,e:k+C[l],i:x.__legendDataIndex}}}function S(x,C){return x.e>=C&&x.s<=C+i}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(s,l){var u=s.__legendDataIndex;i==null&&u!=null&&(i=l),u===r&&(n=l)}),n??i},e.type="legend.scroll",e}(x1);function SP(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function xP(t){dn(k1),t.registerComponentModel(_P),t.registerComponentView(wP),SP(t)}function CP(t){dn(k1),dn(xP)}const kP={__name:"AbChart",props:{option:{type:Object,default:()=>({})},chartType:{type:String,default:""},xAxisType:{type:String,default:"category"},yAxisType:{type:String,default:"value"},xAxisData:{type:Array,default:()=>[]},seriesData:{type:Array,default:()=>[]},legendOrient:{type:String,default:""},showPointValues:{type:Boolean,default:!1},height:{type:String,default:"400px"}},setup(t){dn([WV,vI,HI,MI,UL,vP,fP,CP]);const e=t,r=o.computed(()=>{if(!e.chartType)return{};const a={tooltip:{trigger:"item"},legend:{orient:e.legendOrient,left:e.legendOrient==="vertical"?"left":"center"}};return e.chartType==="pie"?{...a,series:[{type:"pie",radius:"50%",data:e.seriesData,label:{show:e.showPointValues,formatter:"{b}: {c}"}}]}:{...a,xAxis:{type:e.xAxisType,data:e.xAxisData},yAxis:{type:e.yAxisType},series:[{data:e.seriesData,type:e.chartType,label:{show:e.showPointValues,position:"top",formatter:"{c}"}}]}}),n=o.computed(()=>e.option&&Object.keys(e.option).length>0?e.option:r.value);return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:"ab-chart-container",style:o.normalizeStyle({height:t.height})},[o.createVNode(o.unref(OV),{option:n.value,autoresize:"",class:"ab-chart"},null,8,["option"])],4))}},TP=gt(kP,[["__scopeId","data-v-536fc283"]]),DP={class:"apbd-container"},EP={class:"apbd-main-content"},MP={class:"apbd-app-body"},AP={key:1,class:"apbd-page-footer"},NP={key:1,class:"apbd-right-sidebar"},BP={__name:"AbMainLayout",props:{headerClass:{type:String,default:"apbd-bordered"},footerClass:{type:String,default:""}},setup(t,{expose:e}){const r=o.useSlots(),n=()=>window.innerWidth<576,a=o.ref(!0),i=o.ref(!0);o.onMounted(()=>{n()&&(a.value=!1)});const s=u=>{typeof u=="boolean"?a.value=u:a.value=!a.value},l=u=>{typeof u=="boolean"?i.value=u:i.value=!i.value};return o.provide("layoutState",{isLeftSidebarOpen:a,isRightSidebarOpen:i,toggleLeftSidebar:s,toggleRightSidebar:l}),e({isLeftSidebarOpen:a,isRightSidebarOpen:i,toggleLeftSidebar:s,toggleRightSidebar:l}),(u,c)=>(o.openBlock(),o.createElementBlock("div",DP,[o.createVNode(o.Transition,{name:"apbd-sidebar-backdrop"},{default:o.withCtx(()=>[o.unref(r).leftSidebar&&a.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"apbd-sidebar-backdrop",onClick:c[0]||(c[0]=f=>s(!1))})):o.createCommentVNode("",!0)]),_:1}),o.unref(r).leftSidebar?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["apbd-left-sidebar",{"sidebar-open":a.value}])},[o.renderSlot(u.$slots,"leftSidebar")],2)):o.createCommentVNode("",!0),o.createElementVNode("div",EP,[o.unref(r).pageHeader?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["apbd-page-header",t.headerClass])},[o.renderSlot(u.$slots,"pageHeader",{headerClass:t.headerClass})],2)):o.createCommentVNode("",!0),o.createElementVNode("div",MP,[o.unref(r).bodyHeader?o.renderSlot(u.$slots,"bodyHeader",{key:0}):o.createCommentVNode("",!0),o.renderSlot(u.$slots,"body"),o.unref(r).bodyFooter?o.renderSlot(u.$slots,"bodyFooter",{key:1}):o.createCommentVNode("",!0)]),o.unref(r).pageFooter?(o.openBlock(),o.createElementBlock("div",AP,[o.renderSlot(u.$slots,"pageFooter")])):o.createCommentVNode("",!0)]),o.unref(r).rightSidebar&&i.value?(o.openBlock(),o.createElementBlock("div",NP,[o.renderSlot(u.$slots,"rightSidebar")])):o.createCommentVNode("",!0)]))}};function VP(){const{appContext:t}=o.getCurrentInstance();return{alert:r=>t.config.globalProperties.$alert(r)}}function IP(t={}){const{tabMaxWidth:e=0}=t,r=o.ref(window.innerWidth),n=()=>{r.value=window.innerWidth};o.onMounted(()=>window.addEventListener("resize",n)),o.onUnmounted(()=>window.removeEventListener("resize",n));const a=o.computed(()=>{const l=r.value;return l<576?"xs":l<768?"sm":l<992?"md":l<1200?"lg":l<1400?"xl":"xxl"}),i=o.computed(()=>r.value),s=o.computed(()=>{const l=a.value;return l==="xs"||l==="sm"||e>0&&i.value<=e});return{ScreenWidth:i,ScreenType:a,isUptoTab:s}}function LP(t,e="USD",r="en-US"){return new Intl.NumberFormat(r,{style:"currency",currency:e}).format(t)}function PP(t){return t.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"")}function zP(t,e=0){const r=t*e/100;return{tax:r,total:t+r}}function T1(t,e,r){var n=e||new FormData;let a=null;for(const i in t)if(t.hasOwnProperty(i))if(a=r?`${r}[${i}]`:i,typeof t[i]=="object"&&!(t[i]instanceof File))T1(t[i],n,a);else if(t[i]instanceof File)n.append(a,t[i]);else{let s=t[i];(s==="true"||s==="false"||s===!0||s===!1)&&(s=s==="true"||s===!0?1:0),n.append(a,s)}return n}const Mr=t=>t.field.replace("_"," "),RP={required:(t,e,r)=>ur.required(t,e)?!0:et("%{fld_name} is required",{fld_name:Mr(r)}),numeric:(t,e,r)=>ur.numeric(t,e)?!0:et("%{fld_name} should be numeric",{fld_name:Mr(r)}),email:(t,e,r)=>ur.email(t,e)?!0:et("%{fld_name} not a valid email address",{fld_name:Mr(r)}),min:(t,e,r)=>ur.min(t,e),min_value:(t,e,r)=>ur.min_value(t,e)?!0:et("%{fld_name} should be more than "+e[0],{fld_name:Mr(r)}),max:(t,e,r)=>ur.max(t,e),max_value:(t,e,r)=>ur.max_value(t,e)?!0:et("%{fld_name} should be less than "+e[0],{fld_name:Mr(r)}),confirmed:(t,e,r)=>ur.confirmed(t,e)?!0:et("%{fld_name} does not match with its password",{fld_name:Mr(r)}),url:(t,e,r)=>ur.url(t,e)?!0:et("%{fld_name} is invalid",{fld_name:Mr(r)}),isUnique:async(t,e,r)=>(r=="email"&&!ur.email(t,e,r)||t.length<3,!0),isValid:async(t,e,r)=>{if(e[0]=="custom"){let n=3;if(e[1]!=null)if(e[2]!=null&&(n=e[2]),t.length>=n){let a=await store.dispatch("IsValidCF",{fld_name:e[1],fld_value:t});return a.status?!0:translate.interpolate(a.msg,{fld_name:Mr(r)})}else return et("%{fld_name} length is not valid, please check it",{fld_name:Mr(r)});return!0}else return!0}};function OP(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var kd={exports:{}};function Td(){}Td.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function a(){n.off(t,a),e.apply(r,arguments)}return a._=e,this.on(t,a,r)},emit:function(t){var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,a=r.length;for(n;n<a;n++)r[n].fn.apply(r[n].ctx,e);return this},off:function(t,e){var r=this.e||(this.e={}),n=r[t],a=[];if(n&&e)for(var i=0,s=n.length;i<s;i++)n[i].fn!==e&&n[i].fn._!==e&&a.push(n[i]);return a.length?r[t]=a:delete r[t],this}};kd.exports=Td;kd.exports.TinyEmitter=Td;var $P=kd.exports,FP=$P,HP=new FP;const Ko=OP(HP),GP={$on:(...t)=>Ko.on(...t),$once:(...t)=>Ko.once(...t),$off:(...t)=>Ko.off(...t),$emit:(...t)=>Ko.emit(...t)};class WP{constructor(){this.prop="",this.ord="asc"}}class UP{constructor(){this.prop="",this.val="",this.opr="eq"}}const YP={class:"alert-text"},XP={key:0,class:"title"},qP={key:1,class:"message"},jP={key:1,class:"field"},ZP={__name:"AbBaseAlert",setup(t,{expose:e}){const r=o.ref(!1),n=o.ref(!1),a=o.ref(null);let i=null;const s=()=>({type:"alert",title:"",message:"",confirmText:"",cancelText:"",icon:"",timer:null,onConfirm:null,buttonCol:!1,variation:"default",size:"md"}),l=o.reactive(s());function u(S={}){return Object.assign(l,s()),n.value=!1,r.value=!0,Object.assign(l,S),l.timer&&l.type==="alert"&&(i=setTimeout(()=>{w(!0)},l.timer)),new Promise(x=>{a.value=x})}const c=o.computed(()=>l.type==="confirm"||l.type==="confirm-ajax"),f=o.computed(()=>l.confirmText||(l.type==="alert"?"OK":"Yes")),d=o.computed(()=>({success:Rm,error:Om,warning:$m,info:Fm,question:Hm})[l.icon]||l.icon),h=o.computed(()=>({success:"icon-success",error:"icon-error",warning:"icon-warning",info:"icon-info",question:"icon-question"})[l.icon]||""),v=o.computed(()=>({default:"",modern:"alert-card--modern",minimal:"alert-card--minimal","top-color-bar":"alert-card--top-color-bar"})[l.variation]||""),p=o.computed(()=>l.variation!=="top-color-bar"?"":{success:"bar-success",error:"bar-error",warning:"bar-warning",info:"bar-info",question:"bar-question"}[l.icon]||""),g=o.computed(()=>l.variation==="minimal"?"icon-minimal":""),m=o.computed(()=>l.variation==="modern"?"buttons--row":l.variation==="minimal"?"buttons--minimal":""),y=o.computed(()=>l.variation==="minimal"?"cancel-link":l.variation==="modern"?"btn-outline":"btn-light");async function b(){if(!n.value){if(l.type==="alert"){w(!0);return}if((l.type==="confirm"||l.type==="confirm-ajax")&&l.onConfirm){n.value=!0;try{const S=await l.onConfirm();if(n.value=!1,(S==null?void 0:S.next)==="close"){w((S==null?void 0:S.status)??!0);return}if((S==null?void 0:S.next)==="confirm"){Object.assign(l,{type:"confirm",title:S.title,message:S.message,icon:S.icon||"warning",confirmText:S.confirmText||"Yes",cancelText:S.cancelText||"No",onConfirm:S.onConfirm||null});return}if((S==null?void 0:S.next)==="confirm-ajax"){Object.assign(l,{type:"confirm-ajax",title:S.title,message:S.message,icon:S.icon||"question",confirmText:S.confirmText||"Yes",cancelText:S.cancelText||"No",onConfirm:S.onConfirm});return}l.type="alert",l.confirmText="OK",l.cancelText="",(S==null?void 0:S.status)===!1?(l.title="Error",l.message=(S==null?void 0:S.message)||"Something went wrong",l.icon="error",l.buttonClass="danger"):(l.title="Success",l.message=(S==null?void 0:S.message)||"Completed successfully",l.icon="success",l.buttonClass="success")}catch{n.value=!1,l.type="alert",l.title="Error",l.message="Unexpected error",l.icon="error",l.buttonClass="danger"}return}l.type==="confirm"&&w(!0)}}function _(){w(!1)}function w(S){var x;i&&(clearTimeout(i),i=null),r.value=!1,(x=a.value)==null||x.call(a,S)}return e({open:u}),(S,x)=>r.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"apbd-alert alert-overlay",onClick:o.withModifiers(_,["self"])},[o.createElementVNode("div",{class:o.normalizeClass(["alert-card",[v.value,p.value,`alert-${l.size||"md"}`]])},[o.createElementVNode("button",{class:"close-btn",onClick:_},"✕"),l.variation==="top-color-bar"?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["color-bar",[p.value]])},null,2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["alert-content",{"alert-content--horizontal":l.variation==="modern"}])},[l.icon?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["icon-circle",[h.value,g.value]])},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(d.value)))],2)):o.createCommentVNode("",!0),o.createElementVNode("div",YP,[l.title?(o.openBlock(),o.createElementBlock("h5",XP,o.toDisplayString(o.unref(et)(l.title)),1)):o.createCommentVNode("",!0),l.message?(o.openBlock(),o.createElementBlock("p",qP,o.toDisplayString(o.unref(et)(l.message)),1)):o.createCommentVNode("",!0)])],2),l.showMember?(o.openBlock(),o.createElementBlock("div",jP,[o.createElementVNode("label",null,o.toDisplayString(o.unref(et)("Team member")),1),x[0]||(x[0]=o.createElementVNode("select",{class:"form-select"},[o.createElementVNode("option",null,"Olivia Rhye"),o.createElementVNode("option",null,"John Doe")],-1))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["buttons",[l.buttonCol?"":"flex-row-reverse",m.value]])},[o.createVNode(Le,{variant:"primary",class:"confirm-btn",disabled:n.value,"is-animated":n.value,onClick:b},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(et)(f.value)),1)]),_:1},8,["disabled","is-animated"]),c.value?(o.openBlock(),o.createBlock(Le,{key:0,class:o.normalizeClass(["cancel-btn",y.value]),disabled:n.value,onClick:_},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(et)(l.cancelText||"Cancel")),1)]),_:1},8,["class","disabled"])):o.createCommentVNode("",!0)],2)],2)])):o.createCommentVNode("",!0)}},KP={install(t){const e=document.createElement("div");document.body.appendChild(e);const n=o.createApp({render(){return o.h(ZP,{ref:"alert"})}}).mount(e);t.config.globalProperties.$alert=a=>n.$refs.alert.open(a)}},QP=["onMouseenter","onMouseleave"],JP={key:0,class:"apbd-toast-icon"},ez={key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tz={key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rz={key:2,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nz={key:3,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},az={class:"apbd-toast-content"},iz={key:0,class:"apbd-toast-title"},oz={class:"apbd-toast-message"},sz=["onClick"],lz={key:2,class:"apbd-toast-progress-track"},uz={__name:"AbToast",setup(t,{expose:e}){const r=o.reactive([]),n=o.ref(typeof document<"u"?document.hasFocus():!0);function a(){const p=typeof document<"u"?document.hasFocus()&&!document.hidden:!0;n.value=p,r.forEach(g=>{d(g)})}o.onMounted(()=>{typeof window<"u"&&(window.addEventListener("focus",a),window.addEventListener("blur",a),document.addEventListener("visibilitychange",a))}),o.onUnmounted(()=>{typeof window<"u"&&(window.removeEventListener("focus",a),window.removeEventListener("blur",a),document.removeEventListener("visibilitychange",a))});let i=0;const s=o.computed(()=>{const p=new Set;return r.forEach(g=>p.add(g.position)),[...p]});function l(p){const g=r.filter(m=>m.position===p);return p.startsWith("bottom")?[...g].reverse():g}function u(p,g={}){const m=++i,y={id:m,message:typeof p=="object"?p.message||"":p,title:typeof p=="object"?p.title||g.title||"":g.title||"",type:g.type||"default",design:g.design||te.toastDesign||"default",position:g.position||te.toastPosition||"top-right",timeout:g.timeout!==void 0?g.timeout:te.toastTimeout||5e3,closeButton:g.closeButton!==void 0?g.closeButton:te.toastCloseButton!==void 0?te.toastCloseButton:!0,pauseOnHover:g.pauseOnHover!==void 0?g.pauseOnHover:te.toastPauseOnHover!==void 0?te.toastPauseOnHover:!0,pauseOnFocusLoss:g.pauseOnFocusLoss!==void 0?g.pauseOnFocusLoss:!0,showProgress:g.showProgress!==void 0?g.showProgress:!0,remaining:g.timeout!==void 0?g.timeout:5e3,isPaused:!1,isHovered:!1,startTime:null,timerId:null};if(r.push(y),y.timeout){const b=setInterval(()=>{const _=r.find(w=>w.id===m);if(!_){clearInterval(b);return}_.isPaused||(_.remaining-=100,_.remaining<=0&&(clearInterval(b),h(m)))},100);y.timerId=b,d(y)}return m}function c(p){p.isHovered=!0,d(p)}function f(p){p.isHovered=!1,d(p)}function d(p){if(!p.timeout)return;const g=p.pauseOnHover&&p.isHovered||p.pauseOnFocusLoss&&!n.value;g&&!p.isPaused?p.isPaused=!0:!g&&p.isPaused&&(p.isPaused=!1)}function h(p){const g=r.findIndex(m=>m.id===p);if(g>-1){const m=r[g];m.timerId&&clearInterval(m.timerId),r.splice(g,1)}}function v(){r.forEach(p=>{p.timerId&&clearInterval(p.timerId)}),r.splice(0,r.length)}return e({addToast:u,dismiss:h,clearAll:v}),(p,g)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,m=>(o.openBlock(),o.createElementBlock("div",{key:m,class:o.normalizeClass(["appsbd-app apbd-toast-container",[`apbd-toast-pos-${m}`]])},[o.createVNode(o.TransitionGroup,{name:"apbd-toast",tag:"div",class:"apbd-toast-list"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l(m),y=>(o.openBlock(),o.createElementBlock("div",{key:y.id,class:o.normalizeClass(["apbd-toast",[`apbd-toast-${y.type}`,`apbd-toast-design-${y.design}`]]),onMouseenter:b=>c(y),onMouseleave:b=>f(y)},[y.type!=="default"?(o.openBlock(),o.createElementBlock("div",JP,[y.type==="success"?(o.openBlock(),o.createElementBlock("svg",ez,[...g[0]||(g[0]=[o.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fill:"currentColor",opacity:"0.15"},null,-1),o.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",stroke:"currentColor","stroke-width":"1.5"},null,-1),o.createElementVNode("path",{d:"M6.5 10l2.5 2.5L13.5 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):y.type==="error"?(o.openBlock(),o.createElementBlock("svg",tz,[...g[1]||(g[1]=[o.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fill:"currentColor",opacity:"0.15"},null,-1),o.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",stroke:"currentColor","stroke-width":"1.5"},null,-1),o.createElementVNode("path",{d:"M12.5 7.5l-5 5M7.5 7.5l5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):y.type==="warning"?(o.openBlock(),o.createElementBlock("svg",rz,[...g[2]||(g[2]=[o.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fill:"currentColor",opacity:"0.15"},null,-1),o.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",stroke:"currentColor","stroke-width":"1.5"},null,-1),o.createElementVNode("path",{d:"M10 6.5v4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),o.createElementVNode("circle",{cx:"10",cy:"13.5",r:"0.75",fill:"currentColor"},null,-1)])])):y.type==="info"?(o.openBlock(),o.createElementBlock("svg",nz,[...g[3]||(g[3]=[o.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fill:"currentColor",opacity:"0.15"},null,-1),o.createElementVNode("path",{d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",stroke:"currentColor","stroke-width":"1.5"},null,-1),o.createElementVNode("path",{d:"M10 9.5v4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),o.createElementVNode("circle",{cx:"10",cy:"6.75",r:"0.75",fill:"currentColor"},null,-1)])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",az,[y.title?(o.openBlock(),o.createElementBlock("div",iz,o.toDisplayString(o.unref($)(y.title)),1)):o.createCommentVNode("",!0),o.createElementVNode("div",oz,o.toDisplayString(o.unref($)(y.message)),1)]),y.closeButton?(o.openBlock(),o.createElementBlock("button",{key:1,class:"apbd-toast-close",onClick:b=>h(y.id),"aria-label":"Close"},[...g[4]||(g[4]=[o.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M12 4L4 12M4 4l8 8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])],8,sz)):o.createCommentVNode("",!0),y.showProgress&&y.timeout?(o.openBlock(),o.createElementBlock("div",lz,[o.createElementVNode("div",{class:"apbd-toast-progress-bar",style:o.normalizeStyle({"animation-duration":`${y.timeout}ms`,"animation-play-state":y.isPaused?"paused":"running"})},null,4)])):o.createCommentVNode("",!0)],42,QP))),128))]),_:2},1024)],2))),128))]))}},cz={install(t){const e=document.createElement("div");e.id="apbd-toast-root",e.className="appsbd-app",document.body.appendChild(e);const n=o.createApp({render(){return o.h(uz,{ref:"toast"})}}).mount(e),a=(i,s={})=>n.$refs.toast.addToast(i,s);a.success=(i,s={})=>a(i,{...s,type:"success"}),a.error=(i,s={})=>a(i,{...s,type:"error"}),a.warning=(i,s={})=>a(i,{...s,type:"warning"}),a.info=(i,s={})=>a(i,{...s,type:"info"}),a.dismiss=i=>{n.$refs.toast.dismiss(i)},a.clear=()=>{n.$refs.toast.clearAll()},t.config.globalProperties.$toast=a}},fz=[KP,cz];function dz(t){fz.forEach(e=>{t.use(e)})}const hz={install(t){dz(t),t.directive("tooltip",A1)}};exports.AbAvatar=y_;exports.AbBadge=q_;exports.AbButton=Le;exports.AbCard=z1;exports.AbCarousel=ux;exports.AbChart=TP;exports.AbColorPicker=oS;exports.AbConfirmPopover=TC;exports.AbCustomField=rS;exports.AbDarkModeToggler=iC;exports.AbDateTimePicker=Jr;exports.AbEasyModal=EC;exports.AbField=rC;exports.AbFileUploader=dS;exports.AbFilterPanel=WS;exports.AbFormCheck=Na;exports.AbImageRadioInput=jS;exports.AbInputField=pr;exports.AbInputTag=Vm;exports.AbKbd=ax;exports.AbKbdGroup=ox;exports.AbMainLayout=BP;exports.AbModal=Tm;exports.AbMultiSelect=xa;exports.AbNumberField=Mb;exports.AbPinInput=tS;exports.AbPopover=$a;exports.AbPricingCard=qC;exports.AbPricingContainer=QC;exports.AbPricingTable=mk;exports.AbProgressbar=j1;exports.AbRadioInput=Na;exports.AbScrollbar=Im;exports.AbSettingsForm=T_;exports.AbSideMenuItem=bw;exports.AbSidebar=iw;exports.AbSkeleton=rx;exports.AbSlider=Ew;exports.AbTab=x_;exports.AbTable=ex;exports.AbTabs=w_;exports.AbToggle=gf;exports.AbTooltip=fx;exports.AbWizard=Qx;exports.AbWizardStep=tC;exports.AppsbdUIConfigure=N1;exports.ObjectToFormData=T1;exports.abAllRules=RP;exports.abCreateGettext=Z1;exports.abSortParam=WP;exports.abSrcParam=UP;exports.calculateTax=zP;exports.default=hz;exports.emitterObj=GP;exports.formatCurrency=LP;exports.globalConfig=te;exports.hideAllPopovers=Ab;exports.initTranslate=Dm;exports.popoverManager=ds;exports.slugify=PP;exports.translateGetMsg=$;exports.translateGettext=et;exports.useAlert=VP;exports.useFileValidator=Pm;exports.useResponsive=IP;exports.useTheme=zm;exports.useToast=Lm;
|