@appsbd/vue3-appsbd-ui 1.0.5 → 1.0.6
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/dist/style.css +1 -1
- package/dist/vue3-appsbd-ui.cjs.js +3 -3
- package/dist/vue3-appsbd-ui.es.js +1524 -1512
- package/package.json +1 -1
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
*
|
|
229
229
|
* This source code is licensed under the ISC license.
|
|
230
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const $a=Ie("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),OT={class:"d-flex align-items-center"},zT={class:"d-flex align-items-center"},$T={class:"d-flex align-items-center"},FT={class:"d-flex align-items-center"},Ov={__name:"AbResponseMsg",props:{message:{type:Object,default:()=>({})},disableRemove:{type:Boolean,default:!1}},emits:["removeInfo"],setup(r,{emit:e}){const t=r,n=(a,i)=>{var o,s,u,c;a==="error"&&((o=t.message)==null?void 0:o.error.length)>0&&i>=0&&i<t.message.error.length&&t.message.error.splice(i,1),a==="info"&&((s=t.message)==null?void 0:s.info.length)>0&&i>=0&&i<t.message.info.length&&t.message.info.splice(i,1),a==="debug"&&((u=t.message)==null?void 0:u.debug.length)>0&&i>=0&&i<t.message.debug.length&&t.message.debug.splice(i,1),a==="warning"&&((c=t.message)==null?void 0:c.warning.length)>0&&i>=0&&i<t.message.warning.length&&t.message.warning.splice(i,1)};return(a,i)=>{var o,s,u,c;return l.openBlock(),l.createElementBlock(l.Fragment,null,[(o=r.message)!=null&&o.error?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(r.message.error,(f,d)=>(l.openBlock(),l.createElementBlock("div",{class:"alert alert-danger p-2 justify-content-between d-flex align-items-center",key:d},[l.createElementVNode("div",OT,[l.createVNode(l.unref(wT),{class:"me-1"}),l.createTextVNode(l.toDisplayString(f),1)]),r.disableRemove?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref($a),{key:0,class:"cursor-pointer",onClick:h=>n("error",d)},null,8,["onClick"]))]))),128)):l.createCommentVNode("",!0),(s=r.message)!=null&&s.info?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(r.message.info,(f,d)=>(l.openBlock(),l.createElementBlock("div",{class:"alert alert-success p-2 justify-content-between d-flex align-items-center",key:d},[l.createElementVNode("div",zT,[l.createVNode(l.unref(xT),{class:"me-1"}),l.createTextVNode(l.toDisplayString(f),1)]),r.disableRemove?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref($a),{key:0,class:"cursor-pointer",onClick:h=>n("info",d)},null,8,["onClick"]))]))),128)):l.createCommentVNode("",!0),(u=r.message)!=null&&u.debug?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:2},l.renderList(r.message.debug,(f,d)=>(l.openBlock(),l.createElementBlock("div",{class:"alert alert-info p-2 justify-content-between d-flex align-items-center",key:d},[l.createElementVNode("div",$T,[l.createVNode(l.unref(CT),{class:"me-1"}),l.createTextVNode(l.toDisplayString(f),1)]),r.disableRemove?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref($a),{key:0,class:"cursor-pointer",onClick:h=>n("debug",d)},null,8,["onClick"]))]))),128)):l.createCommentVNode("",!0),(c=r.message)!=null&&c.warning?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:3},l.renderList(r.message.warning,(f,d)=>(l.openBlock(),l.createElementBlock("div",{class:"alert alert-warning p-2 mb-2 justify-content-between d-flex align-items-center",key:d},[l.createElementVNode("div",FT,[l.createVNode(l.unref(rs),{class:"me-1"}),l.createTextVNode(l.toDisplayString(f),1)]),r.disableRemove?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref($a),{key:0,class:"cursor-pointer",onClick:h=>n("warning",d)},null,8,["onClick"]))]))),128)):l.createCommentVNode("",!0)],64)}}},Pt=(r,e)=>{const t=r.__vccOpts||r;for(const[n,a]of e)t[n]=a;return t},HT={name:"AbModal",components:{AbResponseMsg:Ov,Form:ut.Form},props:{isModalVisible:Boolean,modalSize:{type:String,default:""},modalMsg:{type:[String,Object],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:void 0},iconContainerClass:{type:String,default:""},headerClass:{type:String,default:""},headerrClass:{type:String,default:""}},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(r){console.log(r.message)}},effectiveIsModalBorder(){return this.isBorder!==void 0&&this.isBorder!==null?this.isBorder:ve.isModalBorder??!0}},methods:{onSubmit(r,{resetForm:e}){this.$emit("onSubmit",{$event:r,resetForm:e})},showLoader(r,e){this.isShowLoaderProp=r,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(r){console.log(r.message)}},returnClear(){this.modalMsgOnly={},this.isHideFooter=!1,this.$refs.modal_form.resetForm()},showMsgOnly(r,e){this.modalMsgOnly=r,this.isHideFooter=e},setMessageOnly(r){this.isHideFooter=r}}},GT={class:"modal-content"},WT={key:0,class:"d-flex flex-column header-title-container"},UT={class:"m-0 header-title"},YT={key:0,class:"m-0 header-sub-title"},ZT={class:"modal-loader"},XT={class:"loader-content"},jT={key:1,class:"modal-footer"},qT={key:2,class:"modal-footer"};function KT(r,e,t,n,a,i){var c,f,d,h,v;const o=l.resolveComponent("AbResponseMsg"),s=l.resolveComponent("Form"),u=l.resolveDirective("translate");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:"modal fade show apbd-modal"},r.$attrs,{class:{"modal-border-0":!i.effectiveIsModalBorder},tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle","aria-hidden":"true"}),[l.createElementVNode("div",l.mergeProps(r.$attrs,{class:[t.modalSize+(t.isModalCenter?" modal-dialog-centered":""),"modal-dialog"],role:"document"}),[l.createElementVNode("div",GT,[(c=r.$slots)!=null&&c.header||(f=r.$slots)!=null&&f.headerIcon||(d=r.$slots)!=null&&d.headerTitleContainer||(h=r.$slots)!=null&&h.headerTitle||(v=r.$slots)!=null&&v.headerSubTitle?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["modal-header",i.resolvedHeaderClass])},[l.renderSlot(r.$slots,"header",{},()=>{var p;return[l.createElementVNode("div",{class:l.normalizeClass([(p=r.$slots)!=null&&p.headerSubTitle?"align-items-start":"align-items-center","d-flex align-self-stretch gap-3"])},[r.$slots.headerIcon?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["header-icon-container",t.iconContainerClass])},[l.renderSlot(r.$slots,"headerIcon")],2)):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"headerTitleContainer",{},()=>{var g,y,m;return[(g=r.$slots)!=null&&g.headerTitle||(y=r.$slots)!=null&&y.headerSubTitle?(l.openBlock(),l.createElementBlock("div",WT,[l.createElementVNode("h3",UT,[l.renderSlot(r.$slots,"headerTitle")]),(m=r.$slots)!=null&&m.headerSubTitle?(l.openBlock(),l.createElementBlock("p",YT,[l.renderSlot(r.$slots,"headerSubTitle")])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)]})],2)]}),i.isHideBtn?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:e[0]||(e[0]=(...p)=>i.close&&i.close(...p))}))],2)):l.createCommentVNode("",!0),l.createVNode(s,{as:t.hideForm?"div":"form",ref:"modal_form",onSubmit:i.onSubmit,onReset:i.clearForm,class:"needs-validation"},{default:l.withCtx(()=>[t.hideBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["modal-body",t.bodyClass])},[l.createVNode(o,{"disable-remove":!0,message:t.modalMsg},null,8,["message"]),a.isHideFooter?l.createCommentVNode("",!0):l.renderSlot(r.$slots,"body",{key:0},()=>[e[2]||(e[2]=l.createTextVNode(" This is the default body! ",-1))]),l.withDirectives(l.createElementVNode("div",ZT,[l.createElementVNode("div",XT,[l.renderSlot(r.$slots,"loader")])],512),[[l.vShow,i.isShowLoader]])],2)),!t.hideFooter&&!a.isHideFooter&&!i.isShowLoader?(l.openBlock(),l.createElementBlock("div",jT,[l.renderSlot(r.$slots,"footer",{close:i.close},()=>[e[3]||(e[3]=l.createTextVNode(" This is the default footer! ",-1))])])):l.createCommentVNode("",!0),!t.hideFooter&&(a.isHideFooter||i.isShowLoader)?(l.openBlock(),l.createElementBlock("div",qT,[l.withDirectives((l.openBlock(),l.createElementBlock("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal",onClick:e[1]||(e[1]=(...p)=>i.close&&i.close(...p))},[...e[4]||(e[4]=[l.createTextVNode(" Close ",-1)])])),[[u]])])):l.createCommentVNode("",!0)]),_:3},8,["as","onSubmit","onReset"])])],16)],16)}const zv=Pt(HT,[["render",KT]]),QT=["aria-valuenow","aria-valuemin","aria-valuemax"],e_=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:r=>["success","danger","info","warning","primary","secondary"].includes(r)},size:{type:String,default:void 0,validator:r=>["xs","sm","md","lg","xl","xxl"].includes(r)}},setup(r){const e=l.useAttrs(),t=l.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(s=>e.class[s])).filter(s=>!["progress-right","progress-right-bottom","progress-right-top","progress-value-bottom","progress-value-top"].includes(s))),a.value&&i.push(`apbd-progress-${a.value}`),i}),n=r,a=l.computed(()=>n.size!==void 0&&n.size!==null?n.size:ve.size??"md");return(i,o)=>{var s,u,c,f,d;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["apbd-progress-container",{"progress-right":(s=l.unref(e).class)==null?void 0:s.includes("progress-right"),"progress-right-bottom":(u=l.unref(e).class)==null?void 0:u.includes("progress-right-bottom"),"progress-right-top":(c=l.unref(e).class)==null?void 0:c.includes("progress-right-top"),"progress-value-bottom":(f=l.unref(e).class)==null?void 0:f.includes("progress-value-bottom"),"progress-value-top":(d=l.unref(e).class)==null?void 0:d.includes("progress-value-top")}])},[l.createElementVNode("div",{class:l.normalizeClass(["apbd-progress progress",t.value]),role:"progressbar","aria-valuenow":r.progressValue,"aria-valuemin":r.minValue,"aria-valuemax":r.maxValue},[l.createElementVNode("div",{class:l.normalizeClass(["progress-bar",`bg-${r.color}`]),style:l.normalizeStyle({width:r.progressValue+"%"})},null,6)],10,QT),l.createElementVNode("div",{class:"progress-text",style:l.normalizeStyle({"--progress-value":r.progressValue+"%"})},[l.renderSlot(i.$slots,"default")],4)],2)}}});let Jd=null;const t_=r=>{Jd=r},JT=r=>{const e=j1.createGettext(r);return t_(e),e},r_=()=>{if(l.getCurrentInstance())try{return j1.useGettext()}catch{}return Jd||(console.warn("AbTranslate: gettext not initialized. Call initTranslate() in your app setup."),{$gettext:r=>r,interpolate:r=>r})},ot=(r,e)=>{const{$gettext:t,interpolate:n}=r_();return typeof e>"u"&&(e={}),Object.keys(e).forEach(a=>{e[a]=t(e[a])}),n(t(r),e)},F=(r,e)=>{const{$gettext:t,interpolate:n}=r_();return typeof e>"u"&&(e={}),n(t(r),e)},eD=["for"],tD={key:0,class:"input-group-text left"},rD={key:1,class:"input-group-text left"},nD={key:3,class:"input-group-text right"},aD={key:5,class:"input-group-text right"},iD={key:1,class:"form-text"},oD={name:"AbInputField",inheritAttrs:!1,emits:["input","keyup","keydown","paste","update:modelValue"],components:{Field:ut.Field,ErrorMessage:ut.ErrorMessage,Eye:Qd,EyeOff:Kd},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:r=>["xs","sm","md","lg","xl","xxl"].includes(r)},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:r=>["left","right"].includes(r)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:r=>["left","right"].includes(r)}},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:ve.inputContainerClass??""},effectiveSize(){return this.size!==void 0&&this.size!==null?this.size:ve.size??"md"},effectiveIconPosition(){var r;return this.iconPosition!==void 0&&this.iconPosition!==null?this.iconPosition:((r=ve.input)==null?void 0:r.iconPosition)??"right"},generatedName(){return this.name||`input_${this.$.uid||this.uniqueId}`},internalValue:{get(){return this.modelValue},set(r){this.$emit("update:modelValue",r)}},dynamicType(){return this.isPass?this.showPassword?"text":"password":this.type},dynamicIconBorder(){return!this.$slots.prefix&&!this.$slots.postfix&&!this.prefix&&!this.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 r=this.$el.querySelector('[data-bs-toggle="dropdown"]');r&&new aT.Dropdown(r)}},methods:{passVisibility(){this.internalValue&&(this.showPassword=!this.showPassword)}}},kr=Object.assign(oD,{setup(r){return(e,t)=>{var n,a,i,o,s,u,c,f,d,h,v,p,g;return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:[e.effectiveContainerClass,e.dynamicIconBorder]},e.$attrs,{class:"apbd-input-container"}),[(r.label||e.$slots.label)&&!r.isHideLabel?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:(n=e.$attrs)==null?void 0:n.id},[l.renderSlot(e.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,eD)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass({"input-group":((a=e.$slots)==null?void 0:a.prefix)||((i=e.$slots)==null?void 0:i.postfix)||((o=e.$slots)==null?void 0:o.icon)||r.prefix||r.postfix||r.type=="password"})},[(s=e.$slots)!=null&&s.icon&&e.effectiveIconPosition==="left"?(l.openBlock(),l.createElementBlock("span",tD,[l.renderSlot(e.$slots,"icon")])):l.createCommentVNode("",!0),(u=e.$slots)!=null&&u.prefix||r.prefix?(l.openBlock(),l.createElementBlock("span",rD,[l.renderSlot(e.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])])):l.createCommentVNode("",!0),e.isPass&&r.passIconPosition==="left"?(l.openBlock(),l.createElementBlock("span",{key:2,class:"input-group-text pass-icon left",onClick:t[0]||(t[0]=(...y)=>e.passVisibility&&e.passVisibility(...y))},[e.showPassword?l.renderSlot(e.$slots,"showPasswordIcon",{key:0},()=>[l.createVNode(l.unref(Qd))]):l.createCommentVNode("",!0),e.showPassword?l.createCommentVNode("",!0):l.renderSlot(e.$slots,"hidePasswordIcon",{key:1},()=>[l.createVNode(l.unref(Kd))])])):l.createCommentVNode("",!0),l.createVNode(l.unref(ut.Field),{class:l.normalizeClass(["form-control",[(c=e.$attrs)==null?void 0:c.class,e.effectiveSize?`form-control-${e.effectiveSize}`:"",{"mega-input-field":r.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:l.normalizeStyle((v=e.$attrs)==null?void 0:v.style),placeholder:l.unref(F)(r.placeholder),label:l.unref(F)(r.label??r.type),name:e.generatedName,value:r.modelValue,maxlength:r.maxlength,onInput:t[1]||(t[1]=y=>(e.$emit("input",y.target.value),e.$emit("update:modelValue",y))),onKeyup:t[2]||(t[2]=y=>e.$emit("keyup",y)),onKeydown:t[3]||(t[3]=y=>e.$emit("keydown",y)),onPaste:t[4]||(t[4]=y=>e.$emit("paste",y)),modelValue:e.internalValue,"onUpdate:modelValue":t[5]||(t[5]=y=>e.internalValue=y),rules:r.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||r.postfix?(l.openBlock(),l.createElementBlock("span",nD,[l.renderSlot(e.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])])):l.createCommentVNode("",!0),e.isPass&&r.passIconPosition==="right"?(l.openBlock(),l.createElementBlock("span",{key:4,class:"input-group-text pass-icon right",onClick:t[6]||(t[6]=(...y)=>e.passVisibility&&e.passVisibility(...y))},[e.showPassword?l.renderSlot(e.$slots,"showPasswordIcon",{key:0},()=>[l.createVNode(l.unref(Qd))]):l.createCommentVNode("",!0),e.showPassword?l.createCommentVNode("",!0):l.renderSlot(e.$slots,"hidePasswordIcon",{key:1},()=>[l.createVNode(l.unref(Kd))])])):l.createCommentVNode("",!0),(g=e.$slots)!=null&&g.icon&&e.effectiveIconPosition==="right"?(l.openBlock(),l.createElementBlock("span",aD,[l.renderSlot(e.$slots,"icon")])):l.createCommentVNode("",!0)],2),l.createVNode(l.unref(ut.ErrorMessage),{name:e.generatedName,class:"apbd-v-error"},null,8,["name"]),r.hints||e.$slots.hints?(l.openBlock(),l.createElementBlock("div",iD,[l.renderSlot(e.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])):l.createCommentVNode("",!0)],16)}}}),sD=["for"],lD={key:0,class:"input-group-text left"},uD=["disabled"],cD=["disabled"],fD={key:3,class:"input-group-text right"},dD={key:1,class:"form-text"},hD={name:"AbNumberField",inheritAttrs:!1,components:{Field:ut.Field,ErrorMessage:ut.ErrorMessage,PlusIcon:pc,MinusIcon:J1},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(r){this.$emit("update:modelValue",r)}},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(r){let e=r.target.value;if(e===""){this.internalValue=null;return}let t=parseFloat(e);this.max!==null&&t>parseFloat(this.max)&&(t=parseFloat(this.max)),this.min!==null&&t<parseFloat(this.min)&&(t=parseFloat(this.min)),this.internalValue=t,this.$emit("input",t),this.$emit("update:modelValue",t)},increment(){const r=parseFloat(this.internalValue)||0,e=parseFloat(this.step)||1;let t=r+e;this.max!==null&&(t=Math.min(t,parseFloat(this.max))),this.internalValue=t},decrement(){const r=parseFloat(this.internalValue)||0,e=parseFloat(this.step)||1;let t=r-e;this.min!==null&&(t=Math.max(t,parseFloat(this.min))),this.internalValue=t}}},n_=Object.assign(hD,{setup(r){return(e,t)=>{var n,a,i,o,s,u,c,f,d,h;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([[r.containerClass,e.dynamicIconBorder,{"apbd-number-field-bordered":r.isBorder}],"apbd-input-container apbd-number-field"])},[r.label||e.$slots.label?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:((n=e.$attrs)==null?void 0:n.id)||e.generatedName},[l.renderSlot(e.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,sD)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass({"input-group":((a=e.$slots)==null?void 0:a.prefix)||((i=e.$slots)==null?void 0:i.postfix)||r.prefix||r.postfix||r.showButtons})},[(o=e.$slots)!=null&&o.prefix||r.prefix?(l.openBlock(),l.createElementBlock("span",lD,[l.renderSlot(e.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])])):l.createCommentVNode("",!0),r.showButtons?(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:"btn apbd-number-btn apbd-number-btn-minus input-group-text left",onClick:t[0]||(t[0]=(...v)=>e.decrement&&e.decrement(...v)),disabled:r.disabled||r.min!==null&&e.internalValue<=r.min},[l.createVNode(l.unref(J1))],8,uD)):l.createCommentVNode("",!0),l.createVNode(l.unref(ut.Field),{class:l.normalizeClass(["form-control",[(s=e.$attrs)==null?void 0:s.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:l.normalizeStyle((d=e.$attrs)==null?void 0:d.style),placeholder:l.unref(F)(r.placeholder),label:l.unref(F)(r.label??e.type),name:e.generatedName,value:r.modelValue,min:r.min,max:r.max,step:r.step,onInput:e.handleInput,onKeyup:t[1]||(t[1]=v=>e.$emit("keyup",v)),onKeydown:t[2]||(t[2]=v=>e.$emit("keydown",v)),onPaste:t[3]||(t[3]=v=>e.$emit("paste",v)),modelValue:e.internalValue,"onUpdate:modelValue":t[4]||(t[4]=v=>e.internalValue=v),rules:r.rules,type:"number"},null,8,["class","disabled","id","as","style","placeholder","label","name","value","min","max","step","onInput","modelValue","rules"]),r.showButtons?(l.openBlock(),l.createElementBlock("button",{key:2,type:"button",class:"btn apbd-number-btn apbd-number-btn-plus input-group-text right",onClick:t[5]||(t[5]=(...v)=>e.increment&&e.increment(...v)),disabled:r.disabled||r.max!==null&&e.internalValue>=r.max},[l.createVNode(l.unref(pc))],8,cD)):l.createCommentVNode("",!0),(h=e.$slots)!=null&&h.postfix||r.postfix?(l.openBlock(),l.createElementBlock("span",fD,[l.renderSlot(e.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])])):l.createCommentVNode("",!0)],2),l.createVNode(l.unref(ut.ErrorMessage),{name:e.generatedName,class:"apbd-v-error"},null,8,["name"]),r.hints||e.$slots.hints?(l.openBlock(),l.createElementBlock("div",dD,[l.renderSlot(e.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])):l.createCommentVNode("",!0)],2)}}});function a_(r,e,t={}){const n=l.ref({position:"absolute",top:"0px",left:"0px"}),a=l.ref({arrow:{x:null,y:null}}),i=l.ref(l.unref(t.placement)||"bottom");let o=null,s=null;const u=()=>({placement:l.unref(t.placement)||"bottom",offset:l.unref(t.offset)||0,arrowElement:l.unref(t.arrowElement),arrowPadding:l.unref(t.arrowPadding)||0,shiftPadding:l.unref(t.shiftPadding)||8,flip:l.unref(t.flip)!==!1,autoPlacement:l.unref(t.autoPlacement),alignment:l.unref(t.alignment)}),c=async()=>{const d=l.unref(r),h=l.unref(e);if(!d||!h)return;await l.nextTick();const v=u(),p=d.getBoundingClientRect(),g=h.getBoundingClientRect(),y=h.offsetWidth||g.width,m=h.offsetHeight||g.height,b=window.scrollX||document.documentElement.scrollLeft,_=window.scrollY||document.documentElement.scrollTop;let S=v.placement;if(!S||S.startsWith("auto")){const E=p.top;S=window.innerHeight-p.bottom>E?"bottom":"top",v.alignment&&(S+="-"+v.alignment)}let[w,x]=S.split("-"),C=0,k=0;const T=Number(v.offset),D=(E,I)=>{let B,R;switch(E){case"top":B=p.left+p.width/2-y/2,R=p.top-m-T;break;case"bottom":B=p.left+p.width/2-y/2,R=p.bottom+T;break;case"left":B=p.left-y-T,R=p.top+p.height/2-m/2;break;case"right":B=p.right+T,R=p.top+p.height/2-m/2;break}return E==="top"||E==="bottom"?(I==="start"&&(B=p.left),I==="end"&&(B=p.right-y)):(E==="left"||E==="right")&&(I==="start"&&(R=p.top),I==="end"&&(R=p.bottom-m)),{x:B,y:R}};let M=D(w,x);if(C=M.x,k=M.y,v.flip){let E=!1;w==="top"&&k<0?(w="bottom",E=!0):w==="bottom"&&k+m>window.innerHeight?(w="top",E=!0):w==="left"&&C<0?(w="right",E=!0):w==="right"&&C+y>window.innerWidth&&(w="left",E=!0),E&&(M=D(w,x),C=M.x,k=M.y)}const A=v.shiftPadding;if(w==="top"||w==="bottom"?(C<A&&(C=A),C+y>window.innerWidth-A&&(C=window.innerWidth-y-A)):(w==="left"||w==="right")&&(k<A&&(k=A),k+m>window.innerHeight-A&&(k=window.innerHeight-m-A)),i.value=x?`${w}-${x}`:w,n.value={position:"absolute",left:`${C+b}px`,top:`${k+_}px`},v.arrowElement){const E=l.unref(v.arrowElement);if(E){const I=E.getBoundingClientRect(),B=E.offsetWidth||I.width,R=E.offsetHeight||I.height;let P=null,L=null;w==="top"||w==="bottom"?(P=p.left+p.width/2-C-B/2,P=Math.max(v.arrowPadding,Math.min(P,y-B-v.arrowPadding))):(w==="left"||w==="right")&&(L=p.top+p.height/2-k-R/2,L=Math.max(v.arrowPadding,Math.min(L,m-R-v.arrowPadding))),a.value={arrow:{x:P,y:L}}}}},f=()=>{o&&cancelAnimationFrame(o),o=requestAnimationFrame(()=>{c()})};return l.onMounted(()=>{t.whileElementsMounted&&(window.addEventListener("scroll",f,!0),window.addEventListener("resize",f),window.ResizeObserver&&(s=new ResizeObserver(()=>f()),l.unref(e)&&s.observe(l.unref(e)),l.unref(r)&&s.observe(l.unref(r)))),c()}),l.onUnmounted(()=>{t.whileElementsMounted&&(window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f),s&&s.disconnect()),o&&cancelAnimationFrame(o)}),l.watch(()=>l.unref(t.placement),()=>c()),l.watch(()=>l.unref(t.offset),()=>c()),{floatingStyles:n,middlewareData:a,placement:i,update:c}}const Ks=new Set,vu={register(r){Ks.add(r)},unregister(r){Ks.delete(r)},hideAll(){Ks.forEach(r=>{r.hide&&r.hide()})},get count(){return Ks.size}},vD=()=>vu.hideAll(),pD={class:"apbd-popover-inner"},hi={__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(r,{expose:e,emit:t}){const n=r,a=t,i=M=>Array.isArray(n.trigger)?n.trigger.includes(M):n.trigger.split(" ").includes(M),o=l.ref(!1),s=l.ref(null),u=l.ref(null),c=l.ref(null),f=l.computed(()=>n.placement.startsWith("auto")),d=l.computed(()=>n.placement.split("-")[1]||void 0),h=l.ref(null),v=()=>{n.referenceSelector&&s.value?h.value=s.value.querySelector(n.referenceSelector)||s.value:h.value=s.value},{floatingStyles:p,middlewareData:g,placement:y,update:m}=a_(h,u,{placement:l.computed(()=>f.value?void 0:n.placement),offset:l.computed(()=>Number(n.gap!==null?n.gap:n.offset)),arrowElement:c,arrowPadding:l.computed(()=>n.arrowPadding),flip:!0,autoPlacement:f,alignment:d,whileElementsMounted:!0});l.watch(o,M=>{M&&l.nextTick(()=>{v(),m()})});const b=()=>{n.disabled||(o.value?S():_())},_=()=>{C(),o.value=!0,a("show"),a("update:modelValue",!0),n.autoHide&&!i("manual")&&setTimeout(()=>{document.addEventListener("click",k)},0)},S=()=>{o.value=!1,a("hide"),a("update:modelValue",!1),document.removeEventListener("click",k)};let w=null;const x=()=>{w=setTimeout(()=>{S()},300)},C=()=>{w&&(clearTimeout(w),w=null)},k=M=>{if(!o.value)return;const A=M.target,E=s.value&&s.value.contains(A),I=u.value&&u.value.contains(A);!E&&!I&&S()},T={show:_,hide:S,toggle:b};l.onMounted(()=>{v(),vu.register(T)}),l.onUnmounted(()=>{document.removeEventListener("click",k),w&&clearTimeout(w),vu.unregister(T)});const D=l.computed(()=>{if(!g.value.arrow)return{};const{x:M,y:A}=g.value.arrow,E=y.value||"bottom",I={top:"bottom",right:"left",bottom:"top",left:"right"}[E.split("-")[0]];let B={};return I==="bottom"&&(B={borderTopColor:"transparent",borderLeftColor:"transparent"}),I==="top"&&(B={borderBottomColor:"transparent",borderRightColor:"transparent"}),I==="left"&&(B={borderTopColor:"transparent",borderRightColor:"transparent"}),I==="right"&&(B={borderBottomColor:"transparent",borderLeftColor:"transparent"}),{left:M!=null?`${M}px`:"",top:A!=null?`${A}px`:"",right:"",bottom:"",[I]:"-5px",...B}});return e(T),(M,A)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:"apbd-popover-trigger",ref_key:"reference",ref:s,onClick:A[0]||(A[0]=E=>i("click")?b():null),onMouseenter:A[1]||(A[1]=E=>i("hover")?_():null),onMouseleave:A[2]||(A[2]=E=>i("hover")?x():null),onFocus:A[3]||(A[3]=E=>i("focus")?_():null),onBlur:A[4]||(A[4]=E=>i("focus")?x():null),onTouchstart:A[5]||(A[5]=E=>i("touch")?_():null),onTouchend:A[6]||(A[6]=E=>i("touch")?x():null)},[l.renderSlot(M.$slots,"default")],544),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"apbd-popover-fade"},{default:l.withCtx(()=>[o.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"floating",ref:u,style:l.normalizeStyle(l.unref(p)),class:l.normalizeClass(["appsbd-app apbd-popover-content",r.contentClass]),role:"dialog",onMouseenter:A[7]||(A[7]=E=>i("hover")?C():null),onMouseleave:A[8]||(A[8]=E=>i("hover")?x():null)},[l.createElementVNode("div",pD,[l.renderSlot(M.$slots,"content",{close:S,hide:S,show:_,toggle:b})]),r.arrow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"apbd-popover-arrow",ref_key:"floatingArrow",ref:c,style:l.normalizeStyle(D.value)},null,4)):l.createCommentVNode("",!0)],38)):l.createCommentVNode("",!0)]),_:3})]))],64))}},gD={key:0,class:"form-label"},mD=["for"],yD={key:0,class:"input-img"},bD=["src"],_D={key:0,class:"form-check-label"},SD={key:1,class:"description-text"},wD=["for"],xD={key:1,class:"description-text"},CD={key:1,class:"help-text"},aa=Object.assign({inheritAttrs:!1},{__name:"AbFormCheck",props:l.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:r=>["xs","sm","md","lg","xl"].includes(r)},iconSize:{type:String,default:"24px"},iconGap:{type:String,default:"10px"},variant:{type:String,default:"default"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["change"],["update:modelValue"]),setup(r,{emit:e}){const t=l.useAttrs(),n=l.useSlots(),a=l.useModel(r,"modelValue"),i=e;function o(){i("change",a.value)}const s=r,u=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,c=l.getCurrentInstance(),f=l.computed(()=>s.name||`formcheck_${(c==null?void 0:c.uid)||u}`),d=l.computed(()=>s.containerClass!==void 0&&s.containerClass!==null?s.containerClass:ve.inputContainerClass??""),h=l.computed(()=>s.size!==void 0&&s.size!==null?s.size:ve.size??"md"),v=l.computed(()=>s.variant==="card"||s.variant==="segmented"||s.variant==="pill"),p=l.ref(!1);function g(y){return p.value=!0,s.limit>1?Array.isArray(y)?[...y]:[]:y??""}return l.watch(()=>{s.val!==void 0&&s.val!==null&&(a.value===void 0||a.value===null||a.value===""||Array.isArray(a.value)&&a.value.length===0)&&(p.value||(a.value=g(s.val)))}),(y,m)=>{var b,_;return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:"apbd-checkbox"},l.unref(t),{class:[d.value,v.value?"apbd-radio-input-container":"",r.variant==="segmented"?"apbd-radio-segmented":"",r.variant==="pill"?"apbd-radio-pill":""],style:v.value?`--apbd-radio-input-icon-size:${r.iconSize};--apbd-radio-input-icon-gap:${r.iconGap};`:""}),[r.label||(b=l.unref(n))!=null&&b.label?(l.openBlock(),l.createElementBlock("label",gD,[l.renderSlot(y.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass([r.isInline?"inline":"",r.variant==="segmented"||r.variant==="pill"?"segmented-group":""])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.options,(S,w)=>{var x;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["form-check",l.unref(t).class]),key:w},[l.createVNode(l.unref(ut.Field),{class:l.normalizeClass(["form-check-input",`form-check-input-${h.value}`]),type:r.type,rules:r.rules,id:`${f.value}-${S.val}-${w}`,name:f.value,disabled:(S==null?void 0:S.disable)||r.type==="checkbox"&&r.limit>0&&((x=a.value)==null?void 0:x.length)>=r.limit&&!a.value.includes(S.val),modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=C=>a.value=C),value:S.val,onChange:o},null,8,["type","rules","class","id","name","disabled","modelValue","value"]),v.value?(l.openBlock(),l.createElementBlock("label",{key:0,class:"label-container",for:`${f.value}-${S.val}-${w}`},[S.img_src||S.icon||S.iconComponent||l.unref(n)[`input-img-${S.title}`]||l.unref(n)[`input-icon-${S.title}`]||l.unref(n)[`input-iconComponent-${S.title}`]?(l.openBlock(),l.createElementBlock("div",yD,[l.renderSlot(y.$slots,`input-icon-${S.title}`,{},()=>[S.img_src?(l.openBlock(),l.createElementBlock("img",{key:0,src:S.img_src,alt:""},null,8,bD)):l.createCommentVNode("",!0),S.icon?(l.openBlock(),l.createElementBlock("i",{key:1,class:l.normalizeClass(S.icon)},null,2)):l.createCommentVNode("",!0),S.iconComponent?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(S.iconComponent),{key:2})):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),l.createElementVNode("div",null,[S.title||l.unref(n)[`label-${S.title}`]?(l.openBlock(),l.createElementBlock("div",_D,[l.renderSlot(y.$slots,`label-${S.title}`,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(S.title)),1)])])):l.createCommentVNode("",!0),S!=null&&S.description||l.unref(n)[`description-${S.title}`]?(l.openBlock(),l.createElementBlock("div",SD,[l.renderSlot(y.$slots,`description-${S.title}`,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(S.description)),1)])])):l.createCommentVNode("",!0)])],8,mD)):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["d-flex flex-column",!(S!=null&&S.description)&&!l.unref(n).description?"justify-content-center":""])},[S.title?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-check-label",for:`${f.value}-${S.val}-${w}`},l.toDisplayString(l.unref(F)(S.title)),9,wD)):l.createCommentVNode("",!0),S!=null&&S.description||l.unref(n).description?(l.openBlock(),l.createElementBlock("div",xD,[l.renderSlot(y.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(S.description)),1)])])):l.createCommentVNode("",!0)],2))],2)}),128))],2),l.createVNode(l.unref(ut.ErrorMessage),{name:f.value,class:"apbd-v-error"},null,8,["name"]),(_=l.unref(n))!=null&&_.helptext?(l.openBlock(),l.createElementBlock("small",CD,[l.renderSlot(y.$slots,"help-text")])):l.createCommentVNode("",!0)],16)}}}),kD={class:"apbd-date-time-container"},TD=["for"],DD={class:"datetime-target-container"},MD={class:"placeholder-text"},ED={key:1,class:"form-text"},AD={class:"calendar-header"},ND={key:0},ID={key:1},BD={key:2},LD={key:0,class:"calendar-grid"},VD=["onClick","onMouseenter","onMouseleave"],PD={key:0,class:"cal-day-bg"},RD={key:1,class:"cal-day-text"},OD={key:2,class:"today-marker"},zD={key:1,class:"calendar-grid-month"},$D=["onClick"],FD={key:2,class:"calendar-grid-year"},HD=["onClick"],GD={key:0,class:"time-picker-header"},WD={class:"time-picker-controls"},UD=["value"],YD=["value"],ZD=["value"],XD=["value"],jD={class:"time-picker-actions"},qD=["onClick"],KD=["onClick"],QD=Object.assign({inheritAttrs:!1},{__name:"AbDateTimePicker",props:l.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:r=>["date","time","datetime"].includes(r)},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:r=>["xs","sm","md","lg","xl","xxl"].includes(r)},defaultIconPosition:{type:String,default:"right",validator:r=>["left","right"].includes(r)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:r=>["left","right"].includes(r)}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const e=l.useModel(r,"modelValue"),t=l.useAttrs(),n=l.useSlots(),a=l.ref(null),i=r,o=["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"],u=["S","M","T","W","T","F","S"],c=l.computed(()=>i.monthNames||ve.monthNames||o),f=l.computed(()=>i.monthNamesShort||ve.monthNamesShort||s),d=l.computed(()=>i.dayNames||ve.dayNames||u),h=l.computed(()=>i.rangeSeparator||ve.rangeSeparator||" ↔ "),v=l.computed(()=>i.is24Hour!==void 0&&i.is24Hour!==null?i.is24Hour:ve.is24Hour??!1),p=l.computed(()=>i.dataFormat?i.dataFormat:i.mode==="datetime"?ve.datetimeDataFormat||"YYYY-MM-DD HH:mm":i.mode==="time"?ve.timeDataFormat||"HH:mm":ve.dateDataFormat||"YYYY-MM-DD"),g=l.computed(()=>i.displayFormat?i.displayFormat:i.mode==="datetime"?ve.datetimeDisplayFormat||"YYYY-MM-DD HH:mm":i.mode==="time"?ve.timeDisplayFormat||"HH:mm":ve.dateDisplayFormat||"YYYY-MM-DD"),y=[{title:"AM",val:"AM"},{title:"PM",val:"PM"}],m=$=>{const U=i.formatDigit||ve.formatDigit;return!U||$===void 0||$===null?$:U($)},b=l.computed(()=>i.containerClass!==void 0&&i.containerClass!==null?i.containerClass:ve.inputContainerClass??""),_=l.computed(()=>i.size!==void 0&&i.size!==null?i.size:ve.size??"md"),S=l.computed(()=>{var $;return i.iconPosition!==void 0&&i.iconPosition!==null?i.iconPosition:(($=ve.input)==null?void 0:$.iconPosition)??"right"});l.computed(()=>t.class&&t.class=="form-control-sm"?"input-group-sm":t.class&&t.class=="form-control-lg"?"input-group-lg":""),l.onErrorCaptured(($,U,be)=>!1);const w=$=>$.toString().padStart(2,"0"),x=l.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=($,U,be)=>{if(!$&&!be)return"";const pe=$||new Date(2e3,0,1),ee=be?be.hour:0,Le=be?be.minute:0,Qe=ee===0?12:ee>12?ee-12:ee,xt=ee>=12?"PM":"AM",Je={YYYY:pe.getFullYear(),YY:String(pe.getFullYear()).slice(-2),MMMM:c.value[pe.getMonth()],MMM:f.value[pe.getMonth()],MM:w(pe.getMonth()+1),M:pe.getMonth()+1,DD:w(pe.getDate()),D:pe.getDate(),HH:w(ee),H:ee,hh:w(Qe),h:Qe,mm:w(Le),m:Le,ss:"00",A:xt,a:xt.toLowerCase()},Ze=["YYYY","YY","MMMM","MMM","MM","DD","HH","hh","mm","ss","M","D","H","h","m","A","a"];let ct="",Ve=U;for(;Ve.length>0;){let ft=null;for(const Bn of Ze)if(Ve.startsWith(Bn)){ft=Bn;break}ft?(ct+=Je[ft],Ve=Ve.slice(ft.length)):(ct+=Ve[0],Ve=Ve.slice(1))}return ct},k=($,U)=>{if(!$||typeof $!="string")return null;if($.match(/^\d{4}-\d{2}-\d{2}$/)){const dt=$.split("-");if(dt[0].length===4)return{date:new Date(parseInt(dt[0],10),parseInt(dt[1],10)-1,parseInt(dt[2],10)),hour:0,minute:0}}const be=["YYYY","YY","MMMM","MMM","MM","DD","HH","hh","mm","ss","M","D","H","h","m","A","a"],pe={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"},ee=[];let Le=U;for(;Le.length>0;){let dt=null;for(const ht of be)if(Le.startsWith(ht)){dt=ht;break}dt?(ee.push({type:"token",value:dt}),Le=Le.slice(dt.length)):(ee.length>0&&ee[ee.length-1].type==="literal"?ee[ee.length-1].value+=Le[0]:ee.push({type:"literal",value:Le[0]}),Le=Le.slice(1))}let Qe="^";const xt=[];for(const dt of ee)dt.type==="literal"?Qe+=dt.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"):(Qe+="("+pe[dt.value]+")",xt.push(dt.value));Qe+="$";const Je=$.match(new RegExp(Qe,"i"));if(!Je)return null;let Ze=new Date().getFullYear(),ct=0,Ve=1,ft=0,Bn=0,qc=null;for(let dt=1;dt<=xt.length;dt++){const ht=xt[dt-1],sr=Je[dt];ht==="YYYY"?Ze=parseInt(sr,10):ht==="YY"?Ze=2e3+parseInt(sr,10):ht==="MM"||ht==="M"?ct=parseInt(sr,10)-1:ht==="MMMM"?ct=c.value.findIndex(Kc=>Kc.toLowerCase()===sr.toLowerCase()):ht==="MMM"?ct=f.value.findIndex(Kc=>Kc.toLowerCase()===sr.toLowerCase()):ht==="DD"||ht==="D"?Ve=parseInt(sr,10):ht==="HH"||ht==="H"||ht==="hh"||ht==="h"?ft=parseInt(sr,10):ht==="mm"||ht==="m"?Bn=parseInt(sr,10):(ht==="A"||ht==="a")&&(qc=sr.toUpperCase())}qc==="PM"&&ft<12&&(ft+=12),qc==="AM"&&ft===12&&(ft=0);const xg=new Date(Ze,ct,Ve);return isNaN(xg)?null:{date:xg,hour:ft,minute:Bn}},T=($,U)=>{const be=k($,U);return be?{hour:be.hour,minute:be.minute}:{hour:0,minute:0}},D=($,U)=>$&&U&&$.getFullYear()===U.getFullYear()&&$.getMonth()===U.getMonth()&&$.getDate()===U.getDate(),M=l.computed(()=>{var U;if(!i.isRange)return null;const $=k((U=e.value)==null?void 0:U.start,p.value);return $?$.date:null}),A=l.computed(()=>{var U;if(!i.isRange)return null;const $=k((U=e.value)==null?void 0:U.end,p.value);return $?$.date:null}),E=l.computed(()=>{if(i.isRange)return null;const $=k(e.value,p.value);return $?$.date:null}),I=l.computed(()=>{var U,be;let $="";if(i.isRange){const pe=k((U=e.value)==null?void 0:U.start,p.value),ee=k((be=e.value)==null?void 0:be.end,p.value);pe&&ee?$=`${C(pe.date,g.value,{hour:pe.hour,minute:pe.minute})}${h.value}${C(ee.date,g.value,{hour:ee.hour,minute:ee.minute})}`:pe&&($=`${C(pe.date,g.value,{hour:pe.hour,minute:pe.minute})}${h.value}...`)}else{const pe=k(e.value,p.value);pe&&($=C(pe.date,g.value,{hour:pe.hour,minute:pe.minute}))}return m($)});let B=new Date;M.value?B=M.value:E.value&&(B=E.value);const R=T(e.value,p.value),P=l.ref(R.hour),L=l.ref(R.minute),V=l.ref(R.hour>=12?"PM":"AM"),z=l.computed(()=>v.value?Array.from({length:24},($,U)=>U):Array.from({length:12},($,U)=>U+1)),O=l.computed(()=>{const $=[];for(let U=0;U<60;U+=i.minuteStep)$.push(U);return $}),W=()=>{if(v.value)return P.value;let $=P.value;return V.value==="PM"&&$<12&&($+=12),V.value==="AM"&&$===12&&($=0),$},j=$=>{const U={hour:W(),minute:L.value};if(i.mode==="time")e.value=C(null,p.value,U);else if(i.mode==="datetime"){const be=k(e.value,p.value),pe=be?be.date:new Date;e.value=C(pe,p.value,U)}a.value&&a.value.hide?a.value.hide():$&&$()},ne=$=>{const U=T(e.value,p.value);P.value=v.value?U.hour:U.hour===0?12:U.hour>12?U.hour-12:U.hour,L.value=U.minute,V.value=U.hour>=12?"PM":"AM",a.value&&a.value.hide?a.value.hide():$&&$()},q=l.ref(B.getMonth()),Q=l.ref(B.getFullYear()),Be=l.ref(Math.floor(B.getFullYear()/12)*12),ae=l.ref("date"),le=l.computed(()=>c.value[q.value]),Se=l.computed(()=>Be.value),J=l.computed(()=>Be.value+11),ie=l.computed(()=>{const $=[];for(let U=Be.value;U<Be.value+12;U++)$.push(U);return $}),$e=()=>{ae.value==="date"?ae.value="month":ae.value==="month"?(Be.value=Math.floor(Q.value/12)*12,ae.value="year"):ae.value="date"},Ae=()=>{ae.value==="date"?q.value===0?(q.value=11,Q.value--):q.value--:ae.value==="month"?Q.value--:ae.value==="year"&&(Be.value-=12)},xe=()=>{ae.value==="date"?q.value===11?(q.value=0,Q.value++):q.value++:ae.value==="month"?Q.value++:ae.value==="year"&&(Be.value+=12)},Fe=$=>{q.value=$,ae.value="date"},tt=$=>{Q.value=$,ae.value="month"},At=l.ref(null),at=l.ref("none"),cn=l.computed(()=>{const $=[],U=new Date(Q.value,q.value,1),be=new Date(Q.value,q.value+1,0),pe=U.getDay(),ee=be.getDate();for(let Je=0;Je<pe;Je++)$.push({empty:!0});const Le=new Date;for(let Je=1;Je<=ee;Je++){const Ze=new Date(Q.value,q.value,Je);let ct=!1;if(i.minDate&&Ze<new Date(i.minDate)&&(ct=!0),i.maxDate&&Ze>new Date(i.maxDate)&&(ct=!0),i.disableDates&&i.disableDates.length>0){for(const Ve of i.disableDates)if(Ve instanceof Date&&D(Ze,Ve))ct=!0;else if(typeof Ve=="string"&&C(Ze,p.value)===Ve)ct=!0;else if(Ve.repeat&&Ve.repeat.weekdays){const ft=Ze.getDay()+1;Ve.repeat.weekdays.includes(ft)&&(ct=!0)}}$.push({date:Ze,dayNumber:Je,disabled:ct,isToday:D(Ze,Le),timestamp:Ze.getTime()})}const xt=(7-$.length%7)%7;for(let Je=0;Je<xt;Je++)$.push({empty:!0});return $}),$r=$=>{const U={"is-empty":!$.date,"is-disabled":$.disabled,"is-today":$.isToday};if(!$.date)return U;if(!i.isRange)U["is-selected"]=E.value&&D(E.value,$.date);else{const be=M.value,pe=A.value,ee=at.value,Le=At.value,Qe=be&&D($.date,be);let xt=!1,Je=!1,Ze=pe;ee==="selectingEnd"&&Le&&(Le.getTime()>be.getTime()?Ze=Le:Ze=null),Ze&&D($.date,Ze)&&(xt=!0),be&&Ze&&$.timestamp>be.getTime()&&$.timestamp<Ze.getTime()&&(Je=!0),Qe&&!Ze||Qe&&Ze&&D(be,Ze)?U["is-selected"]=!0:(Qe&&(U["range-start"]=!0),xt&&(U["range-end"]=!0),Je&&(U["in-range"]=!0))}return U},Nn=($,U)=>{if(!$.date||$.disabled)return;const be=()=>{a.value&&a.value.hide?a.value.hide():U&&U(),ae.value="date"};if(i.isRange){const pe=C($.date,p.value);at.value==="none"?(e.value={start:pe,end:pe},at.value="selectingEnd"):at.value==="selectingEnd"&&($.timestamp<M.value.getTime()?e.value={start:pe,end:pe}:(e.value={start:e.value.start,end:pe},at.value="none",At.value=null,be()))}else{if(i.mode==="datetime"){const pe={hour:W(),minute:L.value};e.value=C($.date,p.value,pe)}else e.value=C($.date,p.value);i.mode!=="datetime"&&be()}},qs=$=>{i.isRange&&at.value==="selectingEnd"&&$.date&&!$.disabled&&(At.value=$.date)},In=$=>{},po=l.ref(!1),K=()=>{po.value=!0},ge=()=>{po.value=!1,at.value==="selectingEnd"&&(at.value="none",At.value=null)};return l.watch(e,$=>{if($){if(i.isRange&&$.start){const U=k($.start,p.value);U&&(q.value=U.date.getMonth(),Q.value=U.date.getFullYear())}else if(!i.isRange&&typeof $=="string"){const U=k($,p.value);if(U&&(q.value=U.date.getMonth(),Q.value=U.date.getFullYear(),i.mode==="time"||i.mode==="datetime")){const be=U.hour===0?12:U.hour>12?U.hour-12:U.hour;P.value=i.is24Hour?U.hour:be,L.value=U.minute,V.value=U.hour>=12?"PM":"AM"}}}}),($,U)=>{const be=l.resolveDirective("translate");return l.openBlock(),l.createElementBlock("div",kD,[l.createVNode(hi,{ref_key:"popoverRef",ref:a,class:"datetime-popover-wrapper",trigger:"click",placement:"bottom",disabled:r.isDisable,offset:8,referenceSelector:r.showInInput?".calendar-trigger-input":".apbd-input-container",onHide:ge,onShow:K},{content:l.withCtx(({close:pe})=>[l.createElementVNode("div",{class:l.normalizeClass(["apbd-calendar-dropdown",{"time-only-dropdown":r.mode==="time"}]),onClick:U[4]||(U[4]=l.withModifiers(()=>{},["stop"]))},[r.mode!=="time"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",AD,[l.createElementVNode("button",{type:"button",onClick:l.withModifiers(Ae,["stop"]),class:"cal-nav-btn"},[l.createVNode(l.unref(K1),{class:"w-5 h-5","stroke-width":"2",style:{height:"20px"}})]),l.createElementVNode("button",{type:"button",onClick:l.withModifiers($e,["stop"]),class:"cal-title-btn"},[ae.value==="date"?(l.openBlock(),l.createElementBlock("span",ND,l.toDisplayString(le.value)+" "+l.toDisplayString(m(Q.value)),1)):ae.value==="month"?(l.openBlock(),l.createElementBlock("span",ID,l.toDisplayString(m(Q.value)),1)):ae.value==="year"?(l.openBlock(),l.createElementBlock("span",BD,l.toDisplayString(m(Se.value))+" - "+l.toDisplayString(m(J.value)),1)):l.createCommentVNode("",!0)]),l.createElementVNode("button",{type:"button",onClick:l.withModifiers(xe,["stop"]),class:"cal-nav-btn"},[l.createVNode(l.unref(Q1),{class:"w-5 h-5","stroke-width":"2",style:{height:"20px"}})])]),ae.value==="date"?(l.openBlock(),l.createElementBlock("div",LD,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.value,(ee,Le)=>(l.openBlock(),l.createElementBlock("div",{class:"cal-dow",key:Le},l.toDisplayString(ee),1))),128)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(cn.value,(ee,Le)=>(l.openBlock(),l.createElementBlock("div",{key:Le,class:l.normalizeClass(["cal-day-cell",$r(ee)]),onClick:Qe=>Nn(ee,pe),onMouseenter:Qe=>qs(ee),onMouseleave:Qe=>In()},[ee.date?(l.openBlock(),l.createElementBlock("div",PD)):l.createCommentVNode("",!0),ee.date?(l.openBlock(),l.createElementBlock("span",RD,l.toDisplayString(m(ee.dayNumber)),1)):l.createCommentVNode("",!0),ee.isToday&&!$r(ee)["is-selected"]&&!$r(ee)["range-start"]&&!$r(ee)["range-end"]?(l.openBlock(),l.createElementBlock("div",OD)):l.createCommentVNode("",!0)],42,VD))),128))])):ae.value==="month"?(l.openBlock(),l.createElementBlock("div",zD,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.value,(ee,Le)=>(l.openBlock(),l.createElementBlock("button",{type:"button",key:Le,class:l.normalizeClass(["cal-month-cell",{"is-selected":q.value===Le}]),onClick:l.withModifiers(Qe=>Fe(Le),["stop"])},l.toDisplayString(ee),11,$D))),128))])):ae.value==="year"?(l.openBlock(),l.createElementBlock("div",FD,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(ie.value,ee=>(l.openBlock(),l.createElementBlock("button",{type:"button",key:ee,class:l.normalizeClass(["cal-year-cell",{"is-selected":Q.value===ee}]),onClick:l.withModifiers(Le=>tt(ee),["stop"])},l.toDisplayString(m(ee)),11,HD))),128))])):l.createCommentVNode("",!0)],64)):l.createCommentVNode("",!0),r.mode==="time"||r.mode==="datetime"?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["time-picker-section",{"has-border-top":r.mode==="datetime"}])},[r.mode==="time"?(l.openBlock(),l.createElementBlock("div",GD,"Select Time")):l.createCommentVNode("",!0),l.createElementVNode("div",WD,[l.createElementVNode("select",{class:"time-select",value:P.value,onChange:U[1]||(U[1]=ee=>P.value=parseInt(ee.target.value))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(z.value,ee=>(l.openBlock(),l.createElementBlock("option",{key:ee,value:ee},l.toDisplayString(m(w(ee))),9,YD))),128))],40,UD),U[5]||(U[5]=l.createElementVNode("span",{class:"time-colon"},":",-1)),l.createElementVNode("select",{class:"time-select",value:L.value,onChange:U[2]||(U[2]=ee=>L.value=parseInt(ee.target.value))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(O.value,ee=>(l.openBlock(),l.createElementBlock("option",{key:ee,value:ee},l.toDisplayString(m(w(ee))),9,XD))),128))],40,ZD),v.value?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(aa,{key:0,containerClass:"mb-0",modelValue:V.value,"onUpdate:modelValue":U[3]||(U[3]=ee=>V.value=ee),options:y,type:"radio",variant:"segmented",size:"sm",name:r.name+"_ampm",isInline:!0,class:"ampm-radio-toggle"},null,8,["modelValue","name"]))]),l.createElementVNode("div",jD,[l.withDirectives((l.openBlock(),l.createElementBlock("button",{type:"button",class:"time-btn-cancel",onClick:l.withModifiers(ee=>ne(pe),["stop"])},[...U[6]||(U[6]=[l.createTextVNode("Cancel",-1)])],8,qD)),[[be]]),l.withDirectives((l.openBlock(),l.createElementBlock("button",{type:"button",class:"time-btn-apply",onClick:l.withModifiers(ee=>j(pe),["stop"])},[...U[7]||(U[7]=[l.createTextVNode("Apply",-1)])],8,KD)),[[be]])])],2)):l.createCommentVNode("",!0)],2)]),default:l.withCtx(()=>[l.renderSlot($.$slots,"picker-container",{isRange:r.isRange,showInInput:"showInInput",value:e.value},()=>{var pe,ee,Le;return[r.showInInput?(l.openBlock(),l.createBlock(kr,{key:0,modelValue:I.value,readonly:"",class:l.normalizeClass(["calendar-trigger-input",(pe=l.unref(t))==null?void 0:pe.class]),size:_.value,id:(ee=l.unref(t))==null?void 0:ee.id,label:r.label,isHideLabel:r.isHideLabel,iconPosition:S.value,name:r.name,rules:r.rules,disabled:r.isDisable,hints:r.hints,placeholder:l.unref(t).placeholder||x.value,isLeftIconBorder:r.isLeftIconBorder,isRightIconBorder:r.isRightIconBorder,containerClass:b.value},l.createSlots({_:2},[l.unref(n).label?{name:"label",fn:l.withCtx(()=>[l.renderSlot($.$slots,"label",{},void 0,!0)]),key:"0"}:void 0,l.unref(n).icon?{name:"icon",fn:l.withCtx(()=>[l.renderSlot($.$slots,"icon",{},void 0,!0)]),key:"1"}:void 0,l.unref(n).prefix||r.defaultIconPosition==="left"?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot($.$slots,"prefix",{},()=>[r.defaultIconPosition==="left"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[r.mode==="time"?(l.openBlock(),l.createBlock(l.unref(Eg),{key:0,class:"w-5 h-5",style:{height:"18px"}})):(l.openBlock(),l.createBlock(l.unref(Dg),{key:1,class:"w-5 h-5",style:{height:"18px"}}))],64)):l.createCommentVNode("",!0)],!0)]),key:"2"}:void 0,l.unref(n).postfix||r.defaultIconPosition==="right"?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot($.$slots,"postfix",{},()=>[r.defaultIconPosition==="right"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[r.mode==="time"?(l.openBlock(),l.createBlock(l.unref(Eg),{key:0,class:"w-5 h-5",style:{height:"18px"}})):(l.openBlock(),l.createBlock(l.unref(Dg),{key:1,class:"w-5 h-5",style:{height:"18px"}}))],64)):l.createCommentVNode("",!0)],!0)]),key:"3"}:void 0,l.unref(n).hints?{name:"hints",fn:l.withCtx(()=>[l.renderSlot($.$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"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(b.value)},[r.label||l.unref(n).label?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:(Le=l.unref(t))==null?void 0:Le.id},[l.renderSlot($.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)],!0)],8,TD)):l.createCommentVNode("",!0),l.createVNode(l.unref(ut.Field),{type:"hidden",modelValue:e.value,"onUpdate:modelValue":U[0]||(U[0]=Qe=>e.value=Qe),name:r.name,rules:r.rules},null,8,["modelValue","name","rules"]),l.createElementVNode("div",DD,[l.renderSlot($.$slots,"picker",{isRange:r.isRange,value:e.value},()=>{var Qe,xt;return[I.value?(l.openBlock(),l.createBlock(Xe,{key:0,type:"button",class:l.normalizeClass(["btn-outline-secondary",(Qe=l.unref(t))==null?void 0:Qe.class]),size:_.value},{default:l.withCtx(()=>[l.unref(n).icon?l.renderSlot($.$slots,"icon",{key:0},void 0,!0):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(I.value)+" ",1),l.unref(n).resetIcon?l.renderSlot($.$slots,"resetIcon",{key:1},void 0,!0):l.createCommentVNode("",!0)]),_:3},8,["class","size"])):(l.openBlock(),l.createBlock(Xe,{key:1,type:"button",class:l.normalizeClass(["btn-outline-secondary",(xt=l.unref(t))==null?void 0:xt.class]),size:_.value},{default:l.withCtx(()=>[l.unref(n).icon?l.renderSlot($.$slots,"icon",{key:0},void 0,!0):l.createCommentVNode("",!0),l.createElementVNode("span",MD,l.toDisplayString(l.unref(F)(x.value)),1)]),_:3},8,["class","size"]))]},!0)]),l.createVNode(l.unref(ut.ErrorMessage),{name:$.generatedName,class:"apbd-v-error"},null,8,["name"]),r.hints||l.unref(n).hints?(l.openBlock(),l.createElementBlock("div",ED,[l.renderSlot($.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)],!0)])):l.createCommentVNode("",!0)],2))]},!0)]),_:3},8,["disabled","referenceSelector"])])}}}),yn=Pt(QD,[["__scopeId","data-v-665b51f5"]]),JD=["src","alt"],e2={key:2,class:"avatar-add"},t2=["disabled"],i_=Object.assign({inheritAttrs:!1},{__name:"AbAvatar",props:{src:{default:""},alt:{default:""},variant:{type:String,default:"image"},size:{type:String,default:void 0,validator:r=>["xs","sm","md","lg","xl","xxl"].includes(r)},isActive:{type:Boolean,default:!1},isVerified:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["change"],setup(r,{expose:e,emit:t}){const n=t,a=l.ref(null);e({triggerFileSelect:()=>{a.value&&a.value.click()}});const o=l.useAttrs(),s=r,u=l.computed(()=>s.size!==void 0&&s.size!==null?s.size:ve.size??"md");return(c,f)=>{var d;return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:"apbd-avatar"},l.unref(o),{class:[(d=l.unref(o))==null?void 0:d.class,`avatar-${u.value}`,{active:r.isActive,verified:r.isVerified,disabled:r.isDisabled}]}),[r.variant==="image"&&r.src?(l.openBlock(),l.createElementBlock("img",{key:0,src:r.src,alt:r.alt},null,8,JD)):r.variant==="image"&&!r.src?(l.openBlock(),l.createBlock(l.unref(RT),{key:1,class:"icon-avatar"})):r.variant==="add"?(l.openBlock(),l.createElementBlock("label",e2,[l.createVNode(l.unref(pc)),l.createElementVNode("input",{ref_key:"fileInput",ref:a,type:"file",disabled:r.isDisabled,hidden:"",accept:"image/*",onChange:f[0]||(f[0]=h=>n("change",h))},null,40,t2)])):l.createCommentVNode("",!0),l.renderSlot(c.$slots,"default"),r.isVerified?(l.openBlock(),l.createBlock(l.unref(_T),{key:3})):l.createCommentVNode("",!0)],16)}}}),r2=["href","onClick"],n2={key:0,class:"me-1"},o_=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(r){const e=r,t=l.ref([]),n=l.useAttrs();function a(s){t.value.push(s)}l.provide("registerTab",a),l.provide("isRouteMode",e.isRouteMode),l.provide("tabClass",e.tabClass);function i(){const s=t.value[0];!t.value.some(u=>u.isActive)&&s&&(s.isActive=!0)}function o(s,u){s.preventDefault(),s.stopPropagation(),t.value.forEach(c=>{c.isActive=c===u})}return l.provide("selectTab",o),l.onMounted(()=>{i()}),(s,u)=>{const c=l.resolveComponent("translate"),f=l.resolveComponent("router-link"),d=l.resolveComponent("router-view");return l.openBlock(),l.createElementBlock("div",l.normalizeProps(l.guardReactiveProps(l.unref(n))),[l.createElementVNode("div",{class:l.normalizeClass(r.navContainerClass)},[l.createElementVNode("ul",{class:l.normalizeClass(["apbd-tab-nav nav w-100",r.navClass])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h.name,class:"nav-item"},[r.isRouteMode&&(h!=null&&h.to)?(l.openBlock(),l.createBlock(f,{key:0,class:l.normalizeClass([r.tabClass,"nav-link"]),to:h==null?void 0:h.to},{default:l.withCtx(()=>[l.createVNode(c,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.title),1)]),_:2},1024)]),_:2},1032,["class","to"])):(l.openBlock(),l.createElementBlock("a",{key:1,href:h.href,class:l.normalizeClass(["nav-link",r.tabClass+" "+(h!=null&&h.isActive?"ab-active":"")]),onClick:v=>o(v,h)},[h.icon?(l.openBlock(),l.createElementBlock("span",n2,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(h.icon)))])):l.createCommentVNode("",!0),l.createVNode(c,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.title),1)]),_:2},1024)],10,r2))]))),128))],2)],2),l.createElementVNode("div",{class:l.normalizeClass(r.tabDetailsClass)},[l.renderSlot(s.$slots,"default"),r.isRouteMode?(l.openBlock(),l.createBlock(d,{key:0})):l.createCommentVNode("",!0)],2)],16)}}}),a2={key:0},s_={__name:"AbTab",props:{title:{required:!0},selected:{default:!1},to:{default:null}},setup(r){const e=r,t=l.ref(!1),n=l.ref(""),i=l.getCurrentInstance().slots.icon,o=l.inject("registerTab"),s=l.inject("isRouteMode");return l.inject("tabs"),l.onMounted(()=>{if(t.value=e.selected,n.value="tab-"+Math.random().toString(36).substr(2,5),o){if(s&&!(e!=null&&e.to))return;o({name:n.value,title:e.title,href:"#"+n.value,icon:i,to:e.to,isActive:t})}}),(u,c)=>t.value&&!l.unref(s)?(l.openBlock(),l.createElementBlock("div",a2,[l.renderSlot(u.$slots,"default")])):l.createCommentVNode("",!0)}},i2={name:"AbForm",components:{Form:ut.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:r}=await this.$refs["main-form"].validate();if(!r)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(r){return console.error("[AbSettingsForm] Form Submission failed during Wizard transition:",r),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 o2(r,e,t,n,a,i){const o=l.resolveComponent("Form");return l.openBlock(),l.createBlock(o,{ref:"main-form",onSubmit:i.onFormSubmit,class:l.normalizeClass(["apbd-settings-form needs-validation",a.is_sending?"apbd-form-sending":""])},{default:l.withCtx(()=>[l.renderSlot(r.$slots,"default")]),_:3},8,["onSubmit","class"])}const l_=Pt(i2,[["render",o2]]),s2=["for"],l2=["for"],u2={key:1,class:"description-text"},c2=["id","name","disabled","true-value","false-value"],f2=["for"],d2={key:1,class:"description-text"},h2={key:2,class:"d-flex flex-column pe-2"},v2={key:0,class:"description-text"},p2={key:1,class:"form-text"},gc=Object.assign({inheritAttrs:!1},{__name:"AbToggle",props:l.mergeModels({label:null,val:{default:"N"},name:{type:String,default:""},containerClass:{type:String,default:void 0},size:{type:String,default:void 0,validator:r=>["xs","sm","md","lg","xl"].includes(r)},variant:{type:String,default:"inline"},trueValue:{default:void 0},falseValue:{default:void 0},description:null,hints:null},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const e=l.useAttrs(),t=l.useSlots(),n=l.useModel(r,"modelValue"),a=r,i=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,o=l.getCurrentInstance(),s=l.computed(()=>a.name||`toggle_${(o==null?void 0:o.uid)||i}`),u=l.computed(()=>a.containerClass!==void 0&&a.containerClass!==null?a.containerClass:ve.inputContainerClass??""),c=l.computed(()=>a.trueValue!==void 0&&a.trueValue!==null?a.trueValue:ve.trueValue??"Y"),f=l.computed(()=>a.falseValue!==void 0&&a.falseValue!==null?a.falseValue:ve.falseValue??"N"),d=l.computed(()=>a.size!==void 0&&a.size!==null?a.size:ve.size??"md");function h(){n.value||(n.value=a.val)}return l.onMounted(()=>{h()}),(v,p)=>{var g,y,m,b,_,S,w,x,C,k,T,D,M,A,E;return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:"apbd-toggle"},l.unref(e),{class:u.value}),[((g=l.unref(t))!=null&&g.label||r.label)&&r.variant==="column"?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:`${s.value}-${l.unref(e).id}`},[l.renderSlot(v.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,s2)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["form-check form-switch",[l.unref(e).class,{"toggle-inline-left":r.variant==="inline-left"}]])},[r.variant==="inline-left"&&((y=l.unref(t))!=null&&y.descriptionContainer||(m=l.unref(t))!=null&&m.title||(b=l.unref(t))!=null&&b.description||r.description||v.title||(_=l.unref(t))!=null&&_.label||r.label)?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["d-flex flex-column pe-2",(S=l.unref(t))!=null&&S.description?"":"justify-content-center"])},[l.renderSlot(v.$slots,"descriptionContainer",{},()=>{var I,B;return[(I=l.unref(t))!=null&&I.label||r.label?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-check-label",for:`${s.value}-${l.unref(e).id}`},[l.renderSlot(v.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,l2)):l.createCommentVNode("",!0),(B=l.unref(t))!=null&&B.description||r.description?(l.openBlock(),l.createElementBlock("div",u2,[l.renderSlot(v.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.description)),1)])])):l.createCommentVNode("",!0)]})],2)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{class:l.normalizeClass(["form-check-input",`form-check-input-${d.value}`]),type:"checkbox",id:`${s.value}-${l.unref(e).id}`,name:s.value,disabled:(w=l.unref(e))==null?void 0:w.disabled,"onUpdate:modelValue":p[0]||(p[0]=I=>n.value=I),"true-value":c.value,"false-value":f.value},null,10,c2),[[l.vModelCheckbox,n.value]]),r.variant==="inline"&&((x=l.unref(t))!=null&&x.descriptionContainer||(C=l.unref(t))!=null&&C.title||(k=l.unref(t))!=null&&k.description||r.description||v.title||(T=l.unref(t))!=null&&T.label||r.label)?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["d-flex flex-column",(D=l.unref(t))!=null&&D.description?"":"justify-content-center"])},[l.renderSlot(v.$slots,"descriptionContainer",{},()=>{var I,B;return[(I=l.unref(t))!=null&&I.label||r.label?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-check-label",for:`${s.value}-${l.unref(e).id}`},[l.renderSlot(v.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,f2)):l.createCommentVNode("",!0),(B=l.unref(t))!=null&&B.description||r.description?(l.openBlock(),l.createElementBlock("div",d2,[l.renderSlot(v.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.description)),1)])])):l.createCommentVNode("",!0)]})],2)):l.createCommentVNode("",!0),r.variant==="column"&&((M=l.unref(t))!=null&&M.description||r.description)?(l.openBlock(),l.createElementBlock("div",h2,[(A=l.unref(t))!=null&&A.description||r.description?(l.openBlock(),l.createElementBlock("div",v2,[l.renderSlot(v.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.description)),1)])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)],2),(E=l.unref(t))!=null&&E.hints||r.hints?(l.openBlock(),l.createElementBlock("div",p2,[l.renderSlot(v.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])):l.createCommentVNode("",!0)],16)}}}),g2=["for"],m2={key:0,class:"input-group-text left"},y2={key:1,class:"input-group-text left"},b2=["disabled","id"],_2={class:"multiselect-wrapper"},S2={class:"multiselect-tags"},w2={class:"multiselect-tag-wrapper"},x2=["onMousedown"],C2={key:0,class:"multiselect-tags-search-wrapper"},k2=["placeholder","onKeydown"],T2={ref:"dropdownRef",class:"multiselect-dropdown"},D2={class:"multiselect-options"},M2=["onMousedown","onMouseenter"],E2={key:2,class:"input-group-text right"},A2={key:3,class:"input-group-text right"},N2={class:"form-text"},$v=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:r=>["xs","sm","md","lg","xl","xxl"].includes(r)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:r=>["left","right"].includes(r)}},emits:["update:modelValue"],setup(r,{emit:e}){const t=r,n=l.useSlots(),a=e,i=l.ref(null),o=l.ref(null),s=l.ref(null),u=l.ref(!1),c=l.ref(""),f=l.ref(-1),d=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,h=l.getCurrentInstance(),v=l.computed(()=>t.name||`input_${(h==null?void 0:h.uid)||d}`),p=l.computed(()=>t.containerClass!==void 0&&t.containerClass!==null?t.containerClass:ve.inputContainerClass??""),g=l.computed(()=>t.size!==void 0&&t.size!==null?t.size:ve.size??"md"),y=l.computed(()=>{var P;return t.iconPosition!==void 0&&t.iconPosition!==null?t.iconPosition:((P=ve.input)==null?void 0:P.iconPosition)??"right"}),m=l.computed({get:()=>t.modelValue,set:P=>{a("update:modelValue",P)}}),b=l.computed({get(){return!n.prefix&&!n.postfix&&!n.icon?"":t.isLeftIconBorder?"input-group-text-border-right-0 ":t.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"}}),_=l.computed(()=>t.max>0&&m.value.length>=t.max);l.watch(_,P=>{P&&(u.value=!1,c.value="")});function S(P){if(typeof P=="object")return P.title??P.val??String(P);const L=t.options.find(V=>typeof V=="object"?V.val===P:V===P);return L&&typeof L=="object"?L.title??L.val:String(P)}function w(P){const L=typeof P=="object"?P.val:P;return m.value.includes(L)}const x=l.computed(()=>{const P=c.value.toLowerCase();return t.options.filter(L=>{const V=typeof L=="object"?L.title??L.val??"":String(L),z=typeof L=="object"?L.val:L;return m.value.includes(z)?!1:P?V.toLowerCase().includes(P):!0})});function C(P){if(_.value)return;const L=typeof P=="object"?P.val:P;m.value.includes(L)||(m.value=[...m.value,L]),c.value="",l.nextTick(()=>{!_.value&&o.value?o.value.focus():s.value&&s.value.focus()})}function k(){if(_.value)return;const P=c.value.trim();if(P){if(f.value>=0&&f.value<x.value.length){C(x.value[f.value]);return}m.value.includes(P)||(m.value=[...m.value,P]),c.value=""}}function T(P){const L=[...m.value];L.splice(P,1),m.value=L}function D(){if(c.value===""&&m.value.length>0){const P=[...m.value];P.pop(),m.value=P}}function M(){u.value=!0,f.value=-1}function A(){setTimeout(()=>{u.value=!1,f.value=-1},200)}function E(){f.value=-1,u.value||(u.value=!0)}function I(P){if(_.value){s.value&&s.value.focus();return}o.value?o.value.focus():s.value&&s.value.focus(),u.value||(u.value=!0)}function B(P){switch(P.key){case"ArrowDown":P.preventDefault(),u.value&&x.value.length>0&&(f.value=Math.min(f.value+1,x.value.length-1));break;case"ArrowUp":P.preventDefault(),u.value&&(f.value=Math.max(f.value-1,0));break;case"Escape":case"Tab":u.value=!1;break}}function R(P){i.value&&!i.value.contains(P.target)&&(u.value=!1)}return l.onMounted(()=>document.addEventListener("mousedown",R)),l.onBeforeUnmount(()=>document.removeEventListener("mousedown",R)),(P,L)=>{var V,z,O,W,j,ne,q,Q,Be;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([[p.value,b.value],"apbd-input-tag-container"]),ref_key:"containerRef",ref:i},[(r.label||l.unref(n).label)&&!r.isHideLabel?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:(V=P.$attrs)==null?void 0:V.id},[l.renderSlot(P.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,g2)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass({"input-group":((z=l.unref(n))==null?void 0:z.prefix)||((O=l.unref(n))==null?void 0:O.postfix)||((W=l.unref(n))==null?void 0:W.icon)||r.prefix||r.postfix||P.type=="password"})},[(j=l.unref(n))!=null&&j.icon&&y.value==="left"?(l.openBlock(),l.createElementBlock("span",m2,[l.renderSlot(P.$slots,"icon")])):l.createCommentVNode("",!0),(ne=l.unref(n))!=null&&ne.prefix||r.prefix?(l.openBlock(),l.createElementBlock("span",y2,[l.renderSlot(P.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])])):l.createCommentVNode("",!0),l.createVNode(l.unref(ut.Field),{label:r.label,name:v.value,id:(q=P.$attrs)==null?void 0:q.id,rules:r.rules,modelValue:m.value,"onUpdate:modelValue":L[1]||(L[1]=ae=>m.value=ae)},{default:l.withCtx(()=>{var ae,le,Se,J,ie,$e,Ae;return[l.createElementVNode("div",{ref_key:"multiselectRef",ref:s,class:l.normalizeClass(["multiselect",`multiselect-${g.value}`,(ae=P.$attrs)==null?void 0:ae.class,{"form-control":((le=l.unref(n))==null?void 0:le.prefix)||((Se=l.unref(n))==null?void 0:Se.postfix)||r.prefix||r.postfix,"is-active":u.value,"is-disabled":(J=P.$attrs)==null?void 0:J.disabled}]),disabled:(ie=P.$attrs)==null?void 0:ie.disabled,id:($e=P.$attrs)==null?void 0:$e.id,style:l.normalizeStyle((Ae=P.$attrs)==null?void 0:Ae.style),tabindex:"0",onMousedown:l.withModifiers(I,["prevent"]),onKeydown:B},[l.createElementVNode("div",_2,[l.createElementVNode("div",S2,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(m.value,(xe,Fe)=>(l.openBlock(),l.createElementBlock("span",{key:xe+"-"+Fe,class:"multiselect-tag"},[l.createElementVNode("span",w2,l.toDisplayString(l.unref(F)(S(xe))),1),l.createElementVNode("span",{class:"multiselect-tag-remove",onMousedown:l.withModifiers(tt=>T(Fe),["prevent","stop"])},[...L[2]||(L[2]=[l.createElementVNode("span",{class:"multiselect-tag-remove-icon"},"×",-1)])],40,x2)]))),128)),_.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",C2,[l.withDirectives(l.createElementVNode("input",{ref_key:"searchInputRef",ref:o,"onUpdate:modelValue":L[0]||(L[0]=xe=>c.value=xe),class:"multiselect-tags-search",autocomplete:"off",placeholder:m.value.length===0?r.placeholder:"",onFocus:M,onBlur:A,onInput:E,onKeydown:[l.withKeys(l.withModifiers(k,["prevent"]),["enter"]),l.withKeys(D,["delete"])]},null,40,k2),[[l.vModelText,c.value]])]))]),l.createElementVNode("div",{class:l.normalizeClass(["multiselect-caret",{"is-open":u.value}])},[...L[3]||(L[3]=[l.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[l.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)]),l.withDirectives(l.createElementVNode("div",T2,[l.createElementVNode("ul",D2,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,(xe,Fe)=>(l.openBlock(),l.createElementBlock("li",{key:typeof xe=="object"?xe.val??Fe:xe,class:l.normalizeClass(["multiselect-option",{"is-selected":w(xe),"is-pointed":Fe===f.value}]),onMousedown:l.withModifiers(tt=>C(xe),["prevent"]),onMouseenter:tt=>f.value=Fe},l.toDisplayString(typeof xe=="object"?l.unref(F)(xe.title??xe.val):l.unref(F)(xe)),43,M2))),128))])],512),[[l.vShow,u.value&&x.value.length>0]])],46,b2)]}),_:1},8,["label","name","id","rules","modelValue"]),(Q=l.unref(n))!=null&&Q.postfix||r.postfix?(l.openBlock(),l.createElementBlock("span",E2,[l.renderSlot(P.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])])):l.createCommentVNode("",!0),(Be=l.unref(n))!=null&&Be.icon&&y.value==="right"?(l.openBlock(),l.createElementBlock("span",A2,[l.renderSlot(P.$slots,"icon")])):l.createCommentVNode("",!0)],2),l.createVNode(l.unref(ut.ErrorMessage),{name:v.value,class:"apbd-v-error"},null,8,["name"]),l.createElementVNode("div",N2,[l.renderSlot(P.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])],2)}}}),u_=Object.assign({inheritAttrs:!1},{__name:"AbBadge",props:{size:{type:String,default:void 0,validator:r=>["sm","md","lg"].includes(r)},color:{type:String,default:"primary",validator:r=>["primary","secondary","danger","warning","success","info"].includes(r)},isOutline:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},isAdd:{type:Boolean,default:!1},isRoundedPill:{type:Boolean,default:!1},position:{type:String,default:"right",validator:r=>["right","left"].includes(r)}},setup(r){const e=l.useAttrs(),t=l.useSlots(),n=r,a=l.computed(()=>n.size!==void 0&&n.size!==null?n.size:ve.size??"md");return(i,o)=>{var s;return l.openBlock(),l.createElementBlock("span",l.mergeProps({class:"apbd-badge badge d-inline-flex align-items-center justify-content-center"},l.unref(e),{class:[(s=l.unref(e))==null?void 0:s.class,{"rounded-pill":r.isRoundedPill,"badge-outline":r.isOutline,"dot-icon-badge":r.isDot,"add-icon-badge":r.isAdd,left:r.position==="left",right:r.position==="right",[`text-bg-${r.color}`]:r.color,[`badge-${a.value}`]:a.value}]}),[l.unref(t).content&&r.position==="left"?l.renderSlot(i.$slots,"content",{key:0}):l.createCommentVNode("",!0),l.renderSlot(i.$slots,"default"),r.isAdd?(l.openBlock(),l.createBlock(l.unref(pc),{key:1})):l.createCommentVNode("",!0),l.unref(t).content&&r.position==="right"?l.renderSlot(i.$slots,"content",{key:2}):l.createCommentVNode("",!0)],16)}}}),I2={__name:"AbScrollbar",props:{size:{type:String,default:"md",validator:r=>["sm","md","lg"].includes(r)},isHoverIncrease:{type:Boolean,default:!1},transparentTrack:{type:Boolean,default:!0},showAlways:{type:Boolean,default:!1}},emits:["scroll","scroll-start","scroll-end"],setup(r,{emit:e}){const t=e,n=l.ref(null),a=l.ref(!1),i=l.ref(0),o=l.ref(0),s=l.ref(!1),u=l.ref(!1),c=l.ref(!1);let f=0,d=0,h=null,v=null,p=null;const g=()=>{if(!n.value)return;const{clientHeight:S,scrollHeight:w,scrollTop:x}=n.value;if(w<=S){a.value=!1;return}a.value=!0;const C=S/w*S;i.value=Math.max(C,30);const k=w-S,T=S-i.value;o.value=x/k*T},y=S=>{if(u.value||g(),n.value){const{scrollTop:w,scrollHeight:x,clientHeight:C}=n.value,k=x-C,T=k>0?w/k:0,D=T*100,M=k-w,A=100-D,E={event:S,scrollTop:w,scrollHeight:x,clientHeight:C,scrollRatio:T,scrollPercentage:D,remainingPixels:M,remainingPercentage:A};t("scroll",E),w<=0?t("scroll-start",E):Math.ceil(w+C)>=x&&t("scroll-end",E)}else t("scroll",{event:S});c.value=!0,h&&clearTimeout(h),h=setTimeout(()=>{c.value=!1},1e3)},m=S=>{u.value=!0,f=S.type.includes("touch")?S.touches[0].clientY:S.clientY,d=o.value,document.addEventListener("mousemove",b),document.addEventListener("mouseup",_),document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",_)},b=S=>{if(!u.value||!n.value)return;S.type.includes("touch")&&S.preventDefault();const x=(S.type.includes("touch")?S.touches[0].clientY:S.clientY)-f,{clientHeight:C,scrollHeight:k}=n.value,T=C-i.value;let D=d+x;D<0&&(D=0),D>T&&(D=T),o.value=D;const M=k-C,A=D/T;n.value.scrollTop=A*M},_=()=>{u.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",_)};return l.onMounted(()=>{n.value&&(v=new ResizeObserver(()=>{g()}),v.observe(n.value),p=new MutationObserver(()=>{l.nextTick(()=>{g()})}),p.observe(n.value,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),g())}),l.onUnmounted(()=>{v&&n.value&&v.unobserve(n.value),p&&p.disconnect(),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_)}),(S,w)=>(l.openBlock(),l.createElementBlock("div",{class:"apbd-scrollbar",onMouseenter:w[0]||(w[0]=x=>s.value=!0),onMouseleave:w[1]||(w[1]=x=>s.value=!1)},[l.createElementVNode("div",{class:"apbd-scrollbar-view",ref_key:"scrollArea",ref:n,onScroll:y},[l.renderSlot(S.$slots,"default",{},void 0,!0)],544),l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass(["apbd-scrollbar-track-y",[`size-${r.size}`,{"is-hover-increase":r.isHoverIncrease,"is-visible":s.value||u.value||r.showAlways||c.value,"is-transparent":r.transparentTrack,"is-always-hovered":r.showAlways}]])},[l.createElementVNode("div",{class:"apbd-scrollbar-thumb-y",style:l.normalizeStyle({height:i.value+"px",transform:`translateY(${o.value}px)`}),onMousedown:l.withModifiers(m,["stop","prevent"]),onTouchstart:l.withModifiers(m,["stop","prevent"])},null,36)],2),[[l.vShow,a.value]])],32))}},Fv=Pt(I2,[["__scopeId","data-v-bd8bf7da"]]),B2={class:"sidebar-header"},L2={class:"header-text"},V2={key:0,class:"sidebar-search px-3 py-2"},P2={class:"position-relative"},R2={key:1,class:"sidebar-search-collapsed d-flex justify-content-center py-2"},O2={class:"text-muted d-flex align-items-center justify-content-center",style:{cursor:"pointer",width:"40px",height:"40px","border-radius":"8px"},title:"Search"},z2={class:"shadow-sm p-2",style:{width:"250px"}},$2={class:"position-relative"},F2={class:"sidebar-footer"},c_={__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(r){const e=l.inject("layoutState"),t=r,n=l.ref(!1),a=l.ref(!1),i=l.ref(""),o=l.ref(null),s=l.ref(null),u=()=>{a.value=window.innerWidth<576},c=l.computed(()=>t.mobileFullHeight&&a.value?!1:n.value),f=()=>{n.value=!n.value,v()},d=()=>{setTimeout(()=>{var m;(m=s.value)==null||m.focus()},100)},h=()=>{t.mobileFullHeight&&(e!=null&&e.toggleLeftSidebar)?e.toggleLeftSidebar(!1):f()},v=()=>{localStorage.setItem(t.appUniqueId+"_mn",n.value)},p=()=>{let m=localStorage.getItem(t.appUniqueId+"_mn");try{return m.toLowerCase()==="true"}catch{return!1}},g=()=>{i.value="",y()},y=()=>{if(!o.value)return;const m=i.value.toLowerCase().trim(),b=Array.from(o.value.children);b.forEach(S=>{var w;if(!S.classList.contains("section-title")&&S.classList.contains(t.searchTargetClass))if(!m)S.style.display="";else{const x=((w=S.textContent)==null?void 0:w.toLowerCase())||"";S.style.display=x.includes(m)?"":"none"}}),b.filter(S=>S.classList.contains("section-title")).forEach(S=>{if(!m){S.style.display="";return}let w=!1,x=S.nextElementSibling;for(;x&&!x.classList.contains("section-title");){if(x.classList.contains(t.searchTargetClass)&&x.style.display!=="none"){w=!0;break}x=x.nextElementSibling}S.style.display=w?"":"none"})};return l.onMounted(()=>{n.value=p(),u(),window.addEventListener("resize",u)}),l.onUnmounted(()=>{window.removeEventListener("resize",u)}),l.provide("isCollapsed",l.computed(()=>c.value)),l.provide("isMobileFullHeight",l.computed(()=>t.mobileFullHeight)),(m,b)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["sidebar",{collapsed:c.value,"hide-seperator":r.hideSeperator,"mobile-full-height":r.mobileFullHeight}])},[l.createElementVNode("div",B2,[l.createElementVNode("span",L2,[l.renderSlot(m.$slots,"header",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("System")),1)])]),l.createElementVNode("div",{class:"collapse-btn d-none d-sm-flex",onClick:f},[l.renderSlot(m.$slots,"collapse-icon",{},()=>[l.createVNode(l.unref(Ig))])]),l.createElementVNode("div",{class:"collapse-btn d-flex d-sm-none",onClick:h},[l.renderSlot(m.$slots,"collapse-icon",{},()=>[l.createVNode(l.unref(Ig))])])]),r.enableSearch&&!c.value?(l.openBlock(),l.createElementBlock("div",V2,[l.createElementVNode("div",P2,[l.createVNode(l.unref(Qc),{class:"position-absolute top-50 translate-middle-y text-muted",size:15,style:{left:"10px"}}),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":b[0]||(b[0]=_=>i.value=_),type:"text",class:"form-control form-control-sm shadow-none",style:{"padding-left":"32px","padding-right":"28px"},placeholder:"Search menu...",onInput:y},null,544),[[l.vModelText,i.value]]),i.value?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"position-absolute top-50 translate-middle-y border-0 bg-transparent p-0 text-muted d-flex align-items-center",style:{right:"8px",cursor:"pointer"},onClick:g},[l.createVNode(l.unref($a),{size:14})])):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),r.enableSearch&&c.value?(l.openBlock(),l.createElementBlock("div",R2,[l.createVNode(hi,{trigger:"click",placement:"right-start",offset:15,onShow:d},{content:l.withCtx(()=>[l.createElementVNode("div",z2,[l.createElementVNode("div",$2,[l.createVNode(l.unref(Qc),{class:"position-absolute top-50 translate-middle-y text-muted",size:15,style:{left:"10px"}}),l.withDirectives(l.createElementVNode("input",{ref_key:"searchInputRef",ref:s,"onUpdate:modelValue":b[1]||(b[1]=_=>i.value=_),type:"text",class:"form-control form-control-sm shadow-none",style:{"padding-left":"32px","padding-right":"28px"},placeholder:"Search menu...",onInput:y},null,544),[[l.vModelText,i.value]]),i.value?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"position-absolute top-50 translate-middle-y border-0 bg-transparent p-0 text-muted d-flex align-items-center",style:{right:"8px",cursor:"pointer"},onClick:g},[l.createVNode(l.unref($a),{size:14})])):l.createCommentVNode("",!0)])])]),default:l.withCtx(()=>[l.createElementVNode("div",O2,[l.createVNode(l.unref(Qc),{size:20})])]),_:1})])):l.createCommentVNode("",!0),l.createVNode(Fv,null,{default:l.withCtx(()=>[l.createElementVNode("div",{class:"sidebar-body",ref_key:"sidebarBodyRef",ref:o},[l.renderSlot(m.$slots,"default")],512)]),_:3}),l.createElementVNode("div",F2,[l.renderSlot(m.$slots,"footer")])],2))}},H2={key:0,class:"section-title"},G2={key:1,class:"nav-item"},W2={class:"nav-left"},U2={class:"menu-text"},Y2={class:"floating-submenu"},Z2={key:0,class:"menu-text"},X2={class:"sub-menu"},j2=["href"],q2={class:"nav-left"},K2={class:"menu-text"},Q2={class:"nav-left"},J2={class:"menu-text"},eM={key:2,class:"sub-menu"},f_=Object.assign({inheritAttrs:!1},{__name:"AbSideMenuItem",setup(r){const e=l.ref(!1),t=l.inject("isMobileFullHeight",l.ref(!1)),n=l.inject("layoutState",null),a=()=>{t.value&&window.innerWidth<576&&(n!=null&&n.toggleLeftSidebar)&&n.toggleLeftSidebar(!1)},i=()=>{f.value?e.value=!e.value:a()},o=l.inject("isCollapsed"),s=l.useSlots(),u=l.useAttrs(),c=l.computed(()=>{const{href:h,to:v,...p}=u;return p}),f=l.computed(()=>!!s.submenu),d=l.computed(()=>{var v;const h=(v=s.default)==null?void 0:v.call(s);return h?h.map(p=>typeof p.children=="string"?p.children:"").join("").trim():""});return(h,v)=>{var m,b,_,S;const p=l.resolveComponent("router-link"),g=l.resolveDirective("translate"),y=l.resolveDirective("tooltip");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.unref(s).sectiontitle&&!l.unref(o)?(l.openBlock(),l.createElementBlock("div",H2,[l.renderSlot(h.$slots,"sectiontitle",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Undefined")),1)])])):l.createCommentVNode("",!0),l.unref(s).sectiontitle?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",G2,[f.value&&l.unref(o)?(l.openBlock(),l.createBlock(hi,{key:0,gap:35,placement:"right-start",trigger:"hover",contentClass:"apbd-submenu-container"},{content:l.withCtx(()=>[l.createElementVNode("div",Y2,[l.unref(o)?(l.openBlock(),l.createElementBlock("div",Z2,[l.renderSlot(h.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Undefined")),1)])])):l.createCommentVNode("",!0),l.createElementVNode("div",X2,[l.renderSlot(h.$slots,"submenu")])])]),default:l.withCtx(()=>[l.createElementVNode("a",l.mergeProps({class:"nav-link-custom"},c.value),[l.createElementVNode("div",W2,[l.renderSlot(h.$slots,"icon",{},()=>[l.createVNode(l.unref(Jc))]),l.withDirectives((l.openBlock(),l.createElementBlock("span",U2,[l.renderSlot(h.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Undefined")),1)])])),[[g]])]),l.createVNode(l.unref(qd),{class:"sub-menu-icon","stroke-width":1})],16)]),_:3})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[(m=l.unref(u))!=null&&m.href||f.value?(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,class:"nav-link-custom",href:(b=l.unref(u))!=null&&b.href&&!f.value?(_=l.unref(u))==null?void 0:_.href:null,onClick:i},c.value),[l.createElementVNode("div",q2,[l.renderSlot(h.$slots,"icon",{},()=>[l.createVNode(l.unref(Jc))]),l.withDirectives((l.openBlock(),l.createElementBlock("span",K2,[l.renderSlot(h.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Undefined")),1)])])),[[g]])]),f.value?(l.openBlock(),l.createBlock(l.unref(qd),{key:0,class:l.normalizeClass(["sub-menu-icon",{collapsed:e.value}]),"stroke-width":1},null,8,["class"])):l.createCommentVNode("",!0)],16,j2)):l.withDirectives((l.openBlock(),l.createBlock(p,l.mergeProps({key:1,class:"nav-link-custom",to:(S=l.unref(u))==null?void 0:S.to},c.value,{onClick:a}),{default:l.withCtx(()=>[l.createElementVNode("div",Q2,[l.renderSlot(h.$slots,"icon",{},()=>[l.createVNode(l.unref(Jc))]),l.withDirectives((l.openBlock(),l.createElementBlock("span",J2,[l.renderSlot(h.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Undefined")),1)])])),[[g]])])]),_:3},16,["to"])),[[y,{content:l.unref(o)?l.unref(F)(d.value):"",placement:"right"}]]),f.value&&e.value?(l.openBlock(),l.createElementBlock("div",eM,[l.renderSlot(h.$slots,"submenu")])):l.createCommentVNode("",!0)],64))]))],64)}}}),tM={key:0,class:"form-label"},rM={key:0,class:"apbd-slider-prefix"},nM=["aria-valuemin","aria-valuemax","aria-valuenow"],aM={key:0,class:"apbd-slider-label"},iM=["aria-valuemin","aria-valuemax","aria-valuenow","aria-label"],oM={key:0,class:"apbd-slider-label"},sM={key:1,class:"apbd-slider-postfix"},lM={key:1,class:"form-text"},d_=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:r=>["sm","md","lg"].includes(r)},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:r=>Math.round(r)+"%"}},emits:["update:modelValue"],setup(r,{emit:e}){const t=l.useSlots(),n=r,a=e,i=l.ref(null),o=l.ref(null),s=l.computed(()=>n.size!==void 0&&n.size!==null?n.size:ve.size??"md"),u=l.computed(()=>{if(!n.range)return 0;const C=Array.isArray(n.modelValue)?n.modelValue[0]:n.min;return d(C)}),c=l.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=l.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),T=Math.round(k/n.step)*n.step;return Math.min(Math.max(T,n.min),n.max)}function v(C){if(!i.value)return 0;const k=i.value.getBoundingClientRect();let D=((C.touches?C.touches[0].clientX:C.clientX)-k.left)/k.width*100;return window.getComputedStyle(i.value).direction==="rtl"&&(D=100-D),Math.min(Math.max(D,0),100)}function p(C,k){if(n.disabled)return;const T=h(k);if(n.range){const D=Array.isArray(n.modelValue)?[...n.modelValue]:[n.min,n.max];C==="min"?D[0]=Math.min(T,D[1]):D[1]=Math.max(T,D[0]),a("update:modelValue",D)}else a("update:modelValue",T)}function g(C){if(n.disabled)return;const k=v(C);if(n.range){const T=Array.isArray(n.modelValue)?n.modelValue:[n.min,n.max],D=d(T[0]),M=d(T[1]),A=Math.abs(k-D)<Math.abs(k-M)?"min":"max";p(A,k),m(A)}else p("single",k),m("single")}function y(C){if(n.disabled)return;const k=v(C);if(n.range){const T=Array.isArray(n.modelValue)?n.modelValue:[n.min,n.max],D=d(T[0]),M=d(T[1]),A=Math.abs(k-D)<Math.abs(k-M)?"min":"max";p(A,k),b(A)}else p("single",k),b("single")}function m(C,k){n.disabled||(o.value=C,document.addEventListener("mousemove",_),document.addEventListener("mouseup",w))}function b(C,k){n.disabled||(o.value=C,document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",w))}function _(C){if(!o.value)return;const k=v(C);p(o.value==="single"?"single":o.value,k)}function S(C){if(!o.value)return;C.preventDefault();const k=v(C);p(o.value==="single"?"single":o.value,k)}function w(){o.value=null,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",w),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",w)}function x(C,k){if(n.disabled)return;let T;if(n.range){const E=Array.isArray(n.modelValue)?n.modelValue:[n.min,n.max];T=C==="min"?E[0]:E[1]}else T=n.modelValue??n.min;let D=T;const M=window.getComputedStyle(i.value).direction==="rtl";switch(k.key){case"ArrowRight":k.preventDefault(),D=M?Math.max(T-n.step,n.min):Math.min(T+n.step,n.max);break;case"ArrowUp":k.preventDefault(),D=Math.min(T+n.step,n.max);break;case"ArrowLeft":k.preventDefault(),D=M?Math.min(T+n.step,n.max):Math.max(T-n.step,n.min);break;case"ArrowDown":k.preventDefault(),D=Math.max(T-n.step,n.min);break;case"Home":k.preventDefault(),D=n.min;break;case"End":k.preventDefault(),D=n.max;break;default:return}const A=d(D);p(C,A)}return l.onBeforeUnmount(()=>{w()}),(C,k)=>{var T,D,M,A,E,I,B,R,P,L;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([r.containerClass,"apbd-slider-container"])},[r.label||(T=l.unref(t))!=null&&T.label?(l.openBlock(),l.createElementBlock("label",tM,[l.renderSlot(C.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["apbd-slider",[`apbd-slider-${s.value}`,{"apbd-slider-disabled":r.disabled}]])},[(D=l.unref(t))!=null&&D.prefix?(l.openBlock(),l.createElementBlock("div",rM,[l.renderSlot(C.$slots,"prefix")])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"apbd-slider-wrapper",ref_key:"sliderRef",ref:i,onMousedown:g,onTouchstartPassive:y},[k[8]||(k[8]=l.createElementVNode("div",{class:"apbd-slider-track"},null,-1)),l.createElementVNode("div",{class:"apbd-slider-fill",style:l.normalizeStyle(f.value)},null,4),r.range?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["apbd-slider-thumb",{"apbd-slider-thumb-active":o.value==="min"}]),style:l.normalizeStyle({insetInlineStart:u.value+"%"}),onMousedown:k[0]||(k[0]=l.withModifiers(V=>m("min"),["stop"])),onTouchstartPassive:k[1]||(k[1]=l.withModifiers(V=>b("min"),["stop"])),onKeydown:k[2]||(k[2]=V=>x("min",V)),tabindex:"0",role:"slider","aria-valuemin":r.min,"aria-valuemax":r.max,"aria-valuenow":((M=r.modelValue)==null?void 0:M[0])??r.min,"aria-label":"Minimum value"},[l.renderSlot(C.$slots,"thumb",{value:((A=r.modelValue)==null?void 0:A[0])??r.min,type:"min"},()=>[k[6]||(k[6]=l.createElementVNode("div",{class:"apbd-slider-thumb-handle"},null,-1))]),r.showLabels?(l.openBlock(),l.createElementBlock("div",aM,l.toDisplayString(r.formatLabel(((E=r.modelValue)==null?void 0:E[0])??r.min)),1)):l.createCommentVNode("",!0)],46,nM)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["apbd-slider-thumb",{"apbd-slider-thumb-active":o.value===(r.range?"max":"single")}]),style:l.normalizeStyle({insetInlineStart:c.value+"%"}),onMousedown:k[3]||(k[3]=l.withModifiers(V=>m(r.range?"max":"single"),["stop"])),onTouchstartPassive:k[4]||(k[4]=l.withModifiers(V=>b(r.range?"max":"single"),["stop"])),onKeydown:k[5]||(k[5]=V=>x(r.range?"max":"single",V)),tabindex:"0",role:"slider","aria-valuemin":r.min,"aria-valuemax":r.max,"aria-valuenow":r.range?((I=r.modelValue)==null?void 0:I[1])??r.max:r.modelValue??r.min,"aria-label":r.range?"Maximum value":"Value"},[l.renderSlot(C.$slots,"thumb",{value:r.range?((B=r.modelValue)==null?void 0:B[1])??r.max:r.modelValue??r.min,type:r.range?"max":"single"},()=>[k[7]||(k[7]=l.createElementVNode("div",{class:"apbd-slider-thumb-handle"},null,-1))]),r.showLabels?(l.openBlock(),l.createElementBlock("div",oM,l.toDisplayString(r.formatLabel(r.range?((R=r.modelValue)==null?void 0:R[1])??r.max:r.modelValue??r.min)),1)):l.createCommentVNode("",!0)],46,iM)],544),(P=l.unref(t))!=null&&P.postfix?(l.openBlock(),l.createElementBlock("div",sM,[l.renderSlot(C.$slots,"postfix")])):l.createCommentVNode("",!0)],2),(L=l.unref(t))!=null&&L.hints||r.hints?(l.openBlock(),l.createElementBlock("div",lM,[l.renderSlot(C.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])):l.createCommentVNode("",!0)],2)}}}),uM=["for"],cM={key:0,class:"input-group-text left"},fM={key:1,class:"input-group-text left"},dM=["disabled","id","aria-expanded"],hM={class:"multiselect-wrapper"},vM={key:0,class:"multiselect-single-label"},pM={key:1,class:"multiselect-placeholder"},gM={key:1,class:"multiselect-tags"},mM={class:"multiselect-tag-wrapper"},yM=["onMousedown"],bM=["placeholder"],_M={class:"multiselect-icons"},SM={key:0,class:"multiselect-spinner"},wM=["dir"],xM={class:"multiselect-options"},CM=["onMousedown","onMouseenter"],kM={key:0,class:"multiselect-no-options"},TM={class:"multiselect-empty"},DM={class:"multiselect-empty"},MM={key:2,class:"input-group-text right"},EM={key:3,class:"input-group-text right"},AM={key:1,class:"form-text"},Za=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:r=>["single","multiple","tags"].includes(r)},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:r=>["xs","sm","md","lg","xl","xxl"].includes(r)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:r=>["left","right"].includes(r)}},emits:["update:modelValue","clear","change","select","open","close","search-change"],setup(r,{emit:e}){const t=r,n=e,a=l.useSlots(),i=l.useAttrs(),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref(null),f=l.ref(!1),d=l.ref(""),h=l.ref(!1),v=l.ref(-1),p=l.ref([...t.options]),g=l.ref([]),y=l.ref(!1),m=l.ref(null),b=l.ref(300),_=l.ref("bottom"),S=l.ref({}),w=l.ref("ltr");let x=null;l.watch(()=>t.options,K=>{p.value=[...K]},{deep:!0});const C=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,k=l.getCurrentInstance(),T=l.computed(()=>t.name||`input_${(k==null?void 0:k.uid)||C}`),D=l.computed(()=>t.disabled||(i==null?void 0:i.disabled)),M=l.computed(()=>(a==null?void 0:a.prefix)||(a==null?void 0:a.postfix)||(a==null?void 0:a.icon)||t.prefix||t.postfix),A=l.computed(()=>t.loading||y.value),E=l.computed(()=>t.mode==="tags"||t.mode==="multiple"),I=l.computed(()=>!a.prefix&&!a.postfix&&!a.icon?"":t.isLeftIconBorder?"input-group-text-border-right-0 ":t.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"),B=l.computed(()=>t.containerClass!==void 0&&t.containerClass!==null?t.containerClass:ve.inputContainerClass??""),R=l.computed(()=>t.size!==void 0&&t.size!==null?t.size:ve.size??"md"),P=l.computed(()=>{var K;return t.iconPosition!==void 0&&t.iconPosition!==null?t.iconPosition:((K=ve.input)==null?void 0:K.iconPosition)??"right"}),L=l.computed({get:()=>t.modelValue,set:K=>{n("update:modelValue",K)}}),V=l.computed(()=>t.mode==="single"?1:t.max);function z(K){return K==null?null:typeof K=="object"?K[t.valueKey]:K}function O(K){return K==null?"":typeof K=="object"?K[t.labelKey]??K[t.valueKey]??"":String(K)}function W(K){if(K==null)return null;const ge=t.object?K[t.valueKey]:K;let $=p.value.find(U=>z(U)===ge);return $||($=g.value.find(U=>z(U)===ge)),$||null}function j(K){var $;const ge=z(K);return E.value?(Array.isArray(L.value)?L.value:[]).some(be=>(t.object?be[t.valueKey]:be)===ge):(t.object?($=L.value)==null?void 0:$[t.valueKey]:L.value)===ge}const ne=l.computed(()=>L.value?W(L.value):null),q=l.computed(()=>{const K=ne.value;return K?O(K):t.object&&L.value?L.value[t.labelKey]??"":L.value??""}),Q=l.computed(()=>E.value?(Array.isArray(L.value)?L.value:[]).map(ge=>{const $=W(ge);return $||(t.object&&typeof ge=="object"?ge:{[t.valueKey]:ge,[t.labelKey]:String(ge)})}):[]),Be=l.computed(()=>E.value?Array.isArray(L.value)&&L.value.length>0:L.value!=null&&L.value!==""),ae=l.computed(()=>{if(!d.value||t.isAjaxSearch)return p.value;const K=d.value.toLowerCase();return p.value.filter(ge=>O(ge).toLowerCase().includes(K))}),le=l.computed(()=>{let K=ae.value;return t.hideSelected&&E.value&&Be.value&&(K=K.filter(ge=>!j(ge))),K}),Se=l.computed(()=>!E.value||V.value<=0?!0:(Array.isArray(L.value)?L.value.length:0)<V.value);function J(){D.value||f.value||(f.value=!0,v.value=-1,qs(),n("open"),l.nextTick(()=>{u.value?u.value.focus():s.value&&s.value.focus()}))}function ie(){f.value&&(f.value=!1,d.value="",h.value=!1,v.value=-1,n("close"))}function $e(K){if(!D.value&&!(c.value&&c.value.contains(K.target))&&!K.target.closest(".multiselect-clear"))if(f.value){if(K.target===u.value&&d.value.length>0)return;K.preventDefault(),ie(),s.value&&s.value.focus()}else K.preventDefault(),J()}function Ae(K){if(D.value)return;const ge=z(K);g.value.some(U=>z(U)===ge)||g.value.push(K);const $=t.object?K:ge;if(t.mode==="single")L.value=$,n("select",$),n("change",$),ie(),s.value&&s.value.focus();else{if(!Se.value&&!j(K))return;const U=Array.isArray(L.value)?[...L.value]:[];if(j(K)){const be=z(K),pe=U.filter(ee=>(t.object?ee[t.valueKey]:ee)!==be);L.value=pe}else U.push($),L.value=U,n("select",$);n("change",L.value),d.value="",l.nextTick(()=>{u.value?u.value.focus():s.value&&s.value.focus()})}}function xe(K){if(D.value)return;const ge=z(K),U=(Array.isArray(L.value)?[...L.value]:[]).filter(be=>(t.object?be[t.valueKey]:be)!==ge);L.value=U,n("change",U)}function Fe(){E.value?L.value=[]:L.value=null,d.value="",n("clear"),n("change",L.value),ie(),s.value&&s.value.focus()}function tt(){if(d.value===""&&Be.value&&E.value){const K=Array.isArray(L.value)?[...L.value]:[];K.pop(),L.value=K,n("change",K)}}function At(){h.value=!0,f.value||J()}function at(){setTimeout(()=>{h.value=!1},200)}async function cn(){n("search-change",d.value),!f.value&&d.value&&J(),t.isAjaxSearch&&(clearTimeout(m.value),d.value!==""&&(y.value=!0,m.value=setTimeout(async()=>{try{const K=await t.onSearch(d.value);K&&(p.value=[...K])}catch(K){console.error("AbMultiSelect ajax search error:",K)}finally{y.value=!1}},500)))}function $r(K){if(!D.value)switch(K.key){case"ArrowDown":K.preventDefault(),f.value?(v.value=Math.min(v.value+1,le.value.length-1),Nn()):J();break;case"ArrowUp":K.preventDefault(),f.value&&(v.value=Math.max(v.value-1,0),Nn());break;case"Enter":K.preventDefault(),f.value&&v.value>=0&&v.value<le.value.length?Ae(le.value[v.value]):f.value||J();break;case"Escape":K.preventDefault(),ie();break;case"Tab":ie();break}}function Nn(){l.nextTick(()=>{if(!c.value)return;const K=c.value.querySelectorAll(".multiselect-option");K[v.value]&&K[v.value].scrollIntoView({block:"nearest"})})}const qs=()=>{if(!s.value)return;const K=s.value,ge=K.getBoundingClientRect();w.value=window.getComputedStyle(K).direction||"ltr";let $=K.parentElement,U=null;for(;$&&$!==document.documentElement;){const Le=window.getComputedStyle($);if(["auto","hidden","scroll"].includes(Le.overflow)||["auto","hidden","scroll"].includes(Le.overflowY)){U=$;break}$=$.parentElement}const be=U?U.getBoundingClientRect():{top:0,bottom:window.innerHeight},pe=be.bottom-ge.bottom-10,ee=ge.top-be.top-10;pe<250&&ee>pe?(_.value="top",b.value=Math.min(300,Math.max(150,ee))):(_.value="bottom",b.value=Math.min(300,Math.max(150,pe))),t.appendToBody?_.value==="top"?S.value={position:"fixed",bottom:`${window.innerHeight-ge.top}px`,top:"auto",right:"auto",transform:"none",left:`${ge.left}px`,width:`${ge.width}px`,zIndex:9999}:S.value={position:"fixed",top:`${ge.bottom}px`,bottom:"auto",right:"auto",transform:"none",left:`${ge.left}px`,width:`${ge.width}px`,zIndex:9999}:S.value={}},In=()=>{f.value&&t.appendToBody&&(x&&cancelAnimationFrame(x),x=requestAnimationFrame(()=>{qs()}))};l.watch(f,K=>{K?t.appendToBody&&(window.addEventListener("scroll",In,!0),window.addEventListener("resize",In)):t.appendToBody&&(window.removeEventListener("scroll",In,!0),window.removeEventListener("resize",In))});function po(K){const ge=o.value&&!o.value.contains(K.target),$=c.value&&!c.value.contains(K.target);ge&&$&&ie()}return l.onMounted(()=>{document.addEventListener("mousedown",po)}),l.onBeforeUnmount(()=>{document.removeEventListener("mousedown",po),window.removeEventListener("scroll",In,!0),window.removeEventListener("resize",In),x&&cancelAnimationFrame(x),clearTimeout(m.value)}),(K,ge)=>{var be,pe,ee,Le,Qe,xt;const $=l.resolveComponent("translate"),U=l.resolveDirective("translate");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([[B.value,I.value],"apbd-multiselect-container"]),ref_key:"containerRef",ref:o},[(r.label||l.unref(a).label)&&!r.isHideLabel?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:(be=l.unref(i))==null?void 0:be.id},[l.renderSlot(K.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,uM)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass({"input-group":M.value})},[(pe=l.unref(a))!=null&&pe.icon&&P.value==="left"?(l.openBlock(),l.createElementBlock("span",cM,[l.renderSlot(K.$slots,"icon")])):l.createCommentVNode("",!0),(ee=l.unref(a))!=null&&ee.prefix||r.prefix?(l.openBlock(),l.createElementBlock("span",fM,[l.renderSlot(K.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])])):l.createCommentVNode("",!0),l.createVNode(l.unref(ut.Field),{label:r.label,name:T.value,id:(Le=l.unref(i))==null?void 0:Le.id,modelValue:L.value,"onUpdate:modelValue":ge[2]||(ge[2]=Je=>L.value=Je),rules:r.rules},{default:l.withCtx(()=>{var Je,Ze,ct;return[l.createElementVNode("div",{ref_key:"multiselectRef",ref:s,class:l.normalizeClass(["multiselect",`multiselect-${R.value}`,(Je=l.unref(i))==null?void 0:Je.class,{"is-active":f.value,"is-disabled":D.value}]),style:l.normalizeStyle((Ze=l.unref(i))==null?void 0:Ze.style),disabled:D.value,id:(ct=l.unref(i))==null?void 0:ct.id,tabindex:"0",role:"combobox","aria-expanded":f.value,onMousedown:$e,onKeydown:$r},[l.createElementVNode("div",hM,[r.mode==="single"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[Be.value&&!h.value?(l.openBlock(),l.createElementBlock("div",vM,[l.renderSlot(K.$slots,"singlelabel",{value:ne.value},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(q.value)),1)])])):l.createCommentVNode("",!0),!Be.value&&!d.value?(l.openBlock(),l.createElementBlock("div",pM,l.toDisplayString(l.unref(F)(r.placeholder)),1)):l.createCommentVNode("",!0),r.searchable?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:2,ref_key:"searchInputRef",ref:u,"onUpdate:modelValue":ge[0]||(ge[0]=Ve=>d.value=Ve),class:l.normalizeClass(["multiselect-search",{"is-idle":!f.value&&!d.value}]),autocomplete:"off",onFocus:At,onBlur:at,onInput:cn},null,34)),[[l.vModelText,d.value]]):l.createCommentVNode("",!0)],64)):(l.openBlock(),l.createElementBlock("div",gM,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Q.value,(Ve,ft)=>(l.openBlock(),l.createElementBlock("span",{key:z(Ve)??ft,class:"multiselect-tag"},[l.createElementVNode("span",mM,[l.renderSlot(K.$slots,"taglabel",{value:Ve},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(O(Ve))),1)])]),l.createElementVNode("span",{class:"multiselect-tag-remove",onMousedown:l.withModifiers(Bn=>xe(Ve),["prevent","stop"])},[...ge[3]||(ge[3]=[l.createElementVNode("span",{class:"multiselect-tag-remove-icon"},"×",-1)])],40,yM)]))),128)),l.createElementVNode("div",{class:l.normalizeClass(["multiselect-tags-search-wrapper",{"is-full":!Be.value}])},[l.withDirectives(l.createElementVNode("input",{ref_key:"searchInputRef",ref:u,"onUpdate:modelValue":ge[1]||(ge[1]=Ve=>d.value=Ve),class:"multiselect-tags-search",autocomplete:"off",placeholder:Be.value?"":l.unref(F)(r.placeholder),onFocus:At,onBlur:at,onInput:cn,onKeydown:l.withKeys(tt,["delete"])},null,40,bM),[[l.vModelText,d.value]])],2)])),l.createElementVNode("div",_M,[A.value?(l.openBlock(),l.createElementBlock("div",SM,[l.renderSlot(K.$slots,"loader-icon",{},()=>[l.createVNode(l.unref(AT),{class:"ab-spin",width:"18",height:"18"})])])):l.createCommentVNode("",!0),Be.value&&!D.value&&!A.value?(l.openBlock(),l.createElementBlock("div",{key:1,class:"multiselect-clear",onMousedown:l.withModifiers(Fe,["prevent","stop"])},[...ge[4]||(ge[4]=[l.createElementVNode("div",{class:"clear-icon-wrapper"},[l.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[l.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)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["multiselect-caret",{"is-open":f.value}])},[...ge[5]||(ge[5]=[l.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[l.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)])]),(l.openBlock(),l.createBlock(l.Teleport,{to:"body",disabled:!r.appendToBody},[l.createElementVNode("div",{class:l.normalizeClass(r.appendToBody?["appsbd-app","apbd-multiselect-container"]:[]),style:l.normalizeStyle(r.appendToBody?{}:{display:"contents"}),dir:w.value},[l.withDirectives(l.createElementVNode("div",{ref_key:"dropdownRef",ref:c,class:l.normalizeClass(["multiselect-dropdown",[{"is-top":_.value==="top"},r.appendToBody?"is-teleported":""]]),style:l.normalizeStyle([{maxHeight:b.value+"px"},S.value])},[l.createElementVNode("ul",xM,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(le.value,(Ve,ft)=>(l.openBlock(),l.createElementBlock("li",{key:z(Ve),class:l.normalizeClass(["multiselect-option",{"is-selected":j(Ve),"is-pointed":ft===v.value}]),onMousedown:l.withModifiers(Bn=>Ae(Ve),["prevent"]),onMouseenter:Bn=>v.value=ft},[l.renderSlot(K.$slots,"option",{option:Ve,isSelected:j(Ve)},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(O(Ve))),1)])],42,CM))),128))]),le.value.length===0?(l.openBlock(),l.createElementBlock("div",kM,[A.value?l.renderSlot(K.$slots,"option-loading",{key:1},()=>[l.createElementVNode("div",DM,[l.createElementVNode("span",null,[l.createVNode($,null,{default:l.withCtx(()=>[...ge[7]||(ge[7]=[l.createTextVNode("Loading",-1)])]),_:1}),ge[8]||(ge[8]=l.createTextVNode("... ",-1))])])]):l.renderSlot(K.$slots,"noresults",{key:0},()=>[l.createElementVNode("div",TM,[l.createVNode(l.unref(ET)),l.withDirectives((l.openBlock(),l.createElementBlock("span",null,[...ge[6]||(ge[6]=[l.createTextVNode("No option found!",-1)])])),[[U]])])])])):l.createCommentVNode("",!0)],6),[[l.vShow,f.value]])],14,wM)],8,["disabled"]))],46,dM)]}),_:3},8,["label","name","id","modelValue","rules"]),(Qe=l.unref(a))!=null&&Qe.postfix||r.postfix?(l.openBlock(),l.createElementBlock("span",MM,[l.renderSlot(K.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])])):l.createCommentVNode("",!0),(xt=l.unref(a))!=null&&xt.icon&&P.value==="right"?(l.openBlock(),l.createElementBlock("span",EM,[l.renderSlot(K.$slots,"icon")])):l.createCommentVNode("",!0)],2),l.createVNode(l.unref(ut.ErrorMessage),{name:T.value,class:"apbd-v-error"},null,8,["name"]),l.unref(a).hints||r.hints?(l.openBlock(),l.createElementBlock("div",AM,[l.renderSlot(K.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])):l.createCommentVNode("",!0)],2)}}}),NM={class:"d-flex justify-content-center align-items-center flex-wrap gap-2 mb-3"},IM={class:"d-flex gap-2"},BM=["onUpdate:modelValue","onInput","onKeydown"],LM={key:0,class:"otp-separator mx-2"},h_={__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(r,{emit:e}){const t=r,n=e,a=l.ref(Array(t.length).fill("")),i=l.ref([]),o=l.computed(()=>{const d=[];for(let h=0;h<t.length;h+=t.groupSize)d.push(a.value.slice(h,h+t.groupSize));return d});function s(d,h){d&&(i.value[h]=d)}l.watch(()=>t.modelValue,d=>{a.value=Array(t.length).fill(""),d&&d.split("").forEach((h,v)=>{v<t.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<t.length-1&&l.nextTick(()=>{var p;(p=i.value[d+1])==null||p.focus()})}function c(d,h){!a.value[h]&&h>0&&l.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,t.length);a.value=Array(t.length).fill(""),v.forEach((p,g)=>{a.value[g]=p}),n("update:modelValue",a.value.join("")),l.nextTick(()=>{var g,y;const p=Math.min(v.length,t.length-1);(y=(g=i.value[p])==null?void 0:g.focus)==null||y.call(g)})}return(d,h)=>(l.openBlock(),l.createElementBlock("div",NM,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,(v,p)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:p},[l.createElementVNode("div",IM,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(v,(g,y)=>(l.openBlock(),l.createElementBlock("div",{class:"apbd-input-container",key:y},[l.withDirectives(l.createElementVNode("input",{ref_for:!0,ref:m=>s(m,p*r.groupSize+y),type:"text",maxlength:"1",class:l.normalizeClass(["form-control mega-input-field","form-control-"+r.size]),"onUpdate:modelValue":m=>a.value[p*r.groupSize+y]=m,onInput:m=>u(p*r.groupSize+y,m),onKeydown:l.withKeys(m=>c(m,p*r.groupSize+y),["backspace"]),onPaste:f},null,42,BM),[[l.vModelText,a.value[p*r.groupSize+y]]])]))),128))]),r.showSeparator&&p!==o.value.length-1?(l.openBlock(),l.createElementBlock("span",LM," - ")):l.createCommentVNode("",!0)],64))),128))]))}},v_={__name:"AbCustomField",props:{fieldInputs:{type:Array,default:()=>[]},size:{type:String,default:void 0},customProps:{type:Object,default:()=>({})}},setup(r){const e=r,t=l.useAttrs(),n=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"}},a=s=>{const{is_required:u,type:c,max_val:f,min_val:d}=s;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=(s="100px")=>({height:s}),o=l.computed(()=>e.size!==void 0&&e.size!==null?e.size:ve.size??"md");return(s,u)=>(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.fieldInputs,(c,f)=>{var d;return l.openBlock(),l.createElementBlock("div",{key:f,class:l.normalizeClass(["mb-3",c.res_class??((d=l.unref(t))==null?void 0:d.class)])},[["T","N","U","P","E"].includes(c.type)?(l.openBlock(),l.createBlock(kr,{key:0,class:l.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||o.value,rules:a(c),label:c.label,id:"cf_"+c.id,name:"cf_"+c.id,modelValue:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h,as:c.type==="E"?"textarea":"",type:n(c),style:l.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},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"hints",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Hints"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.des)),1)])]),key:"1"}:void 0,c.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Prefix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.prefix)),1)])]),key:"2"}:void 0,c.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Postfix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(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"])):l.createCommentVNode("",!0),c.type==="H"?(l.openBlock(),l.createBlock(l.unref(ut.Field),{key:1,type:"hidden",label:c.label,rules:a(c),modelValue:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h,class:l.normalizeClass(["form-control",c!=null&&c.input_class?c.input_class:"form-control-"+((c==null?void 0:c.size)||o.value)]),id:"cf_"+c.id,name:"cf_"+c.id,placeholder:c.placeholder},null,8,["label","rules","modelValue","onUpdate:modelValue","class","id","name","placeholder"])):l.createCommentVNode("",!0),c.type==="D"||c.type==="DR"?(l.openBlock(),l.createBlock(yn,{key:2,"is-range":c.type==="DR",class:l.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||o.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:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Prefix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.prefix)),1)])]),key:"1"}:void 0,c.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Postfix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.postfix)),1)])]),key:"2"}:void 0,c.icon?{name:"icon",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Icon"+c.id,{},()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(c.icon)))])]),key:"3"}:void 0,c.des?{name:"hints",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Hints"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.des)),1)])]),key:"4"}:void 0]),1032,["is-range","class","size","id","name","rules","placeholder","is-disable","label","modelValue","onUpdate:modelValue"])):l.createCommentVNode("",!0),c.type==="R"?(l.openBlock(),l.createBlock(aa,{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:l.normalizeClass(c==null?void 0:c.input_class),"is-disable":c.is_disable==="Y",size:(c==null?void 0:c.size)||o.value,modelValue:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"description",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Description"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.des)),1)])]),key:"1"}:void 0,c.help_text?{name:"help-text",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"HelpText"+c.id)]),key:"2"}:void 0]),1032,["id","name","options","label","val","isInline","class","is-disable","size","modelValue","onUpdate:modelValue"])):l.createCommentVNode("",!0),c.type==="W"?(l.openBlock(),l.createBlock(Za,{key:4,class:l.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||o.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:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h,prefix:c.prefix,postfix:c.postfix},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"description",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Description"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.des)),1)])]),key:"1"}:void 0,c.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Prefix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.prefix)),1)])]),key:"2"}:void 0,c.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Postfix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.postfix)),1)])]),key:"3"}:void 0,c.postfix?{name:"hints",fn:l.withCtx(()=>[l.renderSlot(s.$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"])):l.createCommentVNode("",!0),c.type==="S"?(l.openBlock(),l.createBlock(gc,{key:5,class:l.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||o.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:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h,"is-disable":c.is_disable==="Y",val:c.val,title:c.title,description:c.description},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.title?{name:"title",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Title"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.title)),1)])]),key:"1"}:void 0,c.description?{name:"description",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Description"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.description)),1)])]),key:"2"}:void 0,c.hints?{name:"hints",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Hints"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.hints)),1)])]),key:"3"}:void 0]),1032,["class","size","label","id","true-value","false-value","modelValue","onUpdate:modelValue","is-disable","val","title","description"])):l.createCommentVNode("",!0),c.type==="C"?(l.openBlock(),l.createBlock(aa,{key:6,class:l.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||o.value,name:"cf_"+c.id,label:c.label,isInline:c.isInline,options:c.options,val:c.val,rules:a(c),modelValue:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h,limit:c.opt_limit},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"description",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Description"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.des)),1)])]),key:"1"}:void 0,c.help_text?{name:"help-text",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"HelpText"+c.id)]),key:"2"}:void 0]),1032,["class","size","name","label","isInline","options","val","rules","modelValue","onUpdate:modelValue","limit"])):l.createCommentVNode("",!0)],2)}),128))}},VM=["checked","value","name","id"],PM=["for","title"],RM={__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:r=>["xs","sm","md","lg","xl","xxl"].includes(r)}},emits:["update:modelValue"],setup(r,{emit:e}){const t=r,n=e,a=l.computed(()=>t.size!==void 0&&t.size!==null?t.size:ve.size??"md"),i=o=>{n("update:modelValue",o.target.value)};return(o,s)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["apbd-color-skin",["apbd-color-skin-"+a.value]]),style:l.normalizeStyle(`justify-content:${r.align};--apbd-ascp-border-radius:${r.borderRadius}`)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.colors,(u,c)=>(l.openBlock(),l.createElementBlock("div",{class:"color-picker-item",key:u.name+"_"+c},[l.createElementVNode("input",{type:"radio",checked:u.name===r.modelValue,value:u.name,name:r.name,id:r.name+"-"+c,onInput:i},null,40,VM),l.createElementVNode("label",{for:r.name+"-"+c,title:u==null?void 0:u.title,style:l.normalizeStyle("background:"+(u==null?void 0:u.color))},[...s[0]||(s[0]=[l.createElementVNode("svg",{class:"check-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},[l.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,PM)]))),128))],6))}},p_=Pt(RM,[["__scopeId","data-v-2c720918"]]);function g_(){const{appContext:r}=l.getCurrentInstance(),e=r.config.globalProperties.$toast,t=(n,a)=>e(n,a);return t.success=(n,a)=>e.success(n,a),t.error=(n,a)=>e.error(n,a),t.warning=(n,a)=>e.warning(n,a),t.info=(n,a)=>e.info(n,a),t.dismiss=n=>e.dismiss(n),t.clear=()=>e.clear(),{toast:t}}function m_(){const{toast:r}=g_(),e=(n,a=1)=>{let i=n.name.split(".").pop().toLowerCase();const o={"jpg|jpeg|jpe":"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp"};let s=null;for(let f in o)if(f.split("|").includes(i)){s=o[f];break}if(!s){const f="Uploaded File type not allowed";return n.error=f,r.error(f),null}if(n.type!==s){const f="Uploaded File type not match with '"+i+"'";return n.error=f,r.error(f),null}const u=t(i,n.type);if(n.isImage=u.isImage,!n.isImage){const f="Uploaded File type not allowed";return n.error=f,r.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,r.error(f),null}return n},t=(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=Ng:n==="zip"?i.fileIcon=DT:n==="doc"||n==="docx"?i.fileIcon=Ng:n==="xls"||n==="xlsx"?i.fileIcon=BT:n==="ppt"||n==="pptx"?i.fileIcon=kT:(n==="mp4"||n==="mpeg"||n==="mkv"||n==="avi")&&(i.fileIcon=TT),i};return{getFileInfo:e,getFileIconByExt:t}}const OM=["for"],zM={key:0,class:"feature-images"},$M=["src"],FM={key:1,class:"feature-images empty-state"},HM={__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(r,{emit:e}){const t=e,n=r,a=l.ref(null),i=l.ref(null),o=l.useSlots(),s=l.computed(()=>!o.default&&!o.dial),{getFileInfo:u}=m_();l.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 y=u(g,n.maxSize);y?(p=y,i.value=URL.createObjectURL(y)):console.log(g==null?void 0:g.error)}),p&&t("update:modelValue",p),t("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=""),t("update:modelValue",null),t("onSelectFiles",[])};return(h,v)=>{var p;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.containerClass)},[r.label||l.unref(o).label?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:(p=h.attrs)==null?void 0:p.id},[l.renderSlot(h.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)],!0)],8,OM)):l.createCommentVNode("",!0),l.createElementVNode("input",l.mergeProps({ref_key:"afuInput",ref:a,class:"afu-input"},h.$attrs,{type:"file",onChange:f}),null,16),l.createElementVNode("div",{class:l.normalizeClass(["afu-cont",{"default-design":s.value}]),onClick:c},[l.renderSlot(h.$slots,"dial",{},()=>[l.renderSlot(h.$slots,"default",{},()=>[i.value?(l.openBlock(),l.createElementBlock("div",zM,[l.createElementVNode("img",{src:i.value,alt:"Preview"},null,8,$M),l.createElementVNode("span",{class:"img-rm",onClick:l.withModifiers(d,["stop"])},[l.createVNode(l.unref(rs))])])):(l.openBlock(),l.createElementBlock("div",FM,[l.createVNode(l.unref(MT))]))],!0)],!0)],2)],2)}}},y_=Pt(HM,[["__scopeId","data-v-0845af07"]]),GM={key:0,class:"row apbd-src-filter"},WM={key:0,class:"col-sm-8 col-lg-9"},UM={class:"row"},YM={class:"col-lg-5"},ZM={class:"multiselect-single-label"},XM={key:0,class:"col-lg-7"},jM={class:"multiselect-single-label"},qM={key:2,class:"input-group input-group-sm mb-2 mb-lg-0"},KM={class:"input-group-text"},QM={class:"range-input-panel"},JM=["placeholder"],eE=["placeholder"],tE={key:1,class:"col-sm-8 col-lg-9 mb-2 mb-md-0"},rE={key:1,class:"d-flex flex-column flex-md-row justify-content-start align-items-start align-items-md-end apbd-src-filter"},nE={class:"row w-100 g-2"},aE={class:"multiselect-single-label"},iE={key:2,class:"input-group input-group-sm mb-0"},oE={class:"input-group-text"},sE={class:"range-input-panel"},lE=["onUpdate:modelValue","placeholder"],uE=["onUpdate:modelValue","placeholder"],cE={class:"vtpos-zindex-10 d-flex flex-md-nowrap flex-sm-wrap align-bottom align-items-center ps-md-2 gap-2"},fE={key:2,class:"d-flex justify-content-between align-items-center flex-wrap apbd-quick-src-filter gap-2"},dE={class:"d-flex justify-content-start align-items-center flex-wrap gap-2"},hE=["onClick"],vE={class:"dropdown-item"},pE={class:"d-flex gap-2 align-items-center"},gE={key:3,class:"row g-2"},mE={key:0,class:"col-sm-8"},yE={key:1,class:"col-sm-8 mb-2 mb-md-0"},bE={__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},advanceContainerClass:{type:String,default:"col-6"},isQuickAdvanceAutoSearch:{type:Boolean,default:!1}},emits:["searchFilter","reset","ChangeSearchMode"],setup(r,{emit:e}){const t=l.useSlots(),n=r,a=e,i=l.ref(null),o=l.ref("");let s=l.ref(null);const u=l.ref(n.filterOptions||[]);l.watch(()=>n.filterOptions,I=>{u.value=I||[]},{deep:!0,immediate:!0});const c=l.ref(null),f=l.ref(null),d=l.ref(null),h=l.computed(()=>n.size!==void 0&&n.size!==null?n.size:ve.size??"xs"),v=l.computed(()=>i.value!=null&&i.value!==""),p=l.computed(()=>{if(!i.value)return!0;const I=i.value;return i.value.type==="tr"?!(I!=null&&I.start||I!=null&&I.end):!I}),g=l.computed(()=>!!(!n.showScanFld&&!i.value||n.showScanFld&&!o.value)),y=l.computed(()=>n.isMaxDate?new Date:null);function m(){if(!i.value)return;const I={...i.value};u.value.forEach(B=>{B.id===I.id&&(B.value="")})}function b(){if(n.showScanFld)_();else{const I=[];if(n.isAdvance||n.isQuickAdvance)u.value.forEach(B=>{B.value&&I.push({propName:B.propName,operators:B.operators,value:B.value})});else if(i.value){const B=i.value;I.push({propName:B.propName,operators:B.operators,value:B.value})}I.length>0&&a("searchFilter",I)}}function _(){const I={propName:n.scanProps,operators:"eq",value:o.value};s.value&&clearTimeout(s.value),s.value=setTimeout(()=>{var B;((B=o.value)==null?void 0:B.length)>0&&a("searchFilter",[I])},1e3)}function S(){n.showScanFld?(o.value&&w(),a("ChangeSearchMode",!1)):(o.value&&w(),a("ChangeSearchMode",!0),l.nextTick(()=>{var I;return(I=d.value)==null?void 0:I.focus()}))}function w(){n.isSingle||n.showScanFld?o.value="":!n.isAdvance&&!n.isQuickAdvance?i.value&&(i.value=null):(u.value.forEach(I=>{I.value="",I.type==="dd"&&(I.label=null,I.options&&I.options.forEach(B=>B.isSelected=!1))}),l.triggerRef(u)),a("reset")}function x(){i.value&&(u.value.forEach(I=>{I.id===i.value.id&&(I.value="")}),l.triggerRef(u)),i.value=null,a("reset")}function C(){if(!i.value)return;const I=i.value.type;l.nextTick(()=>{var B,R;I==="t"&&((B=c.value)==null||B.focus()),I==="tr"&&((R=f.value)==null||R.focus())})}function k(){var I;((I=o.value)==null?void 0:I.length)>0&&a("searchFilter",[{propName:"*",operators:"like",value:o.value}])}function T(I){(I===""||I===void 0||I===null)&&w()}function D(I,B){B.target.blur()}function M(I,B){const R=u.value.findIndex(P=>P.propName===I);if(R!==-1){const P=u.value[R],L=P.optionValueProp||"val",V=P.optionLabel||"label",z={...P};z.value=typeof B=="object"?B[L]??B:B,z.label=typeof B=="object"?B[V]??z.value:z.value,z.options&&(z.options=z.options.map(O=>({...O,isSelected:O===B||typeof B=="object"&&O[L]===(typeof B=="object"?B[L]:B)}))),u.value[R]=z,l.triggerRef(u),n.isQuickAdvanceAutoSearch&&b()}}function A(I){I.value&&(u.value.forEach(B=>{B.propName!==I.propName&&(I.type==="d"&&B.type==="dr"||I.type==="dr"&&B.type==="d")&&(B.value="")}),l.triggerRef(u),n.isQuickAdvance&&n.isQuickAdvanceAutoSearch&&b())}function E(I,B){if(B&&B.stopPropagation(),!I)return;const R=u.value.findIndex(L=>L.propName===I.propName&&L.type===I.type);if(R===-1)return;const P=u.value[R];P.value=Array.isArray(P.value)?[]:"",P.label=null,P.options&&P.options.forEach(L=>L.isSelected=!1),l.triggerRef(u),n.isQuickAdvance&&n.isQuickAdvanceAutoSearch&&b()}return(I,B)=>{var P,L;const R=l.resolveDirective("translate");return l.openBlock(),l.createElementBlock(l.Fragment,null,[!r.isSingle&&!r.isAdvance&&!r.isQuickAdvance?(l.openBlock(),l.createElementBlock("div",GM,[r.showScanFld?(l.openBlock(),l.createElementBlock("div",tE,[l.createVNode(kr,{containerClass:"mb-0",name:"singlescan",type:"text",ref_key:"singleScanBox",ref:d,isLeftIconBorder:!0,placeholder:"Scan",onInput:_,modelValue:o.value,"onUpdate:modelValue":B[7]||(B[7]=V=>o.value=V),size:h.value},null,8,["modelValue","size"])])):(l.openBlock(),l.createElementBlock("div",WM,[l.createElementVNode("div",UM,[l.createElementVNode("div",YM,[l.createVNode(Za,{name:"property",size:h.value,isLeftIconBorder:!0,modelValue:i.value,"onUpdate:modelValue":B[0]||(B[0]=V=>i.value=V),options:u.value,labelKey:"name",valueKey:"id",searchable:r.isSearchable,placeholder:l.unref(F)("Choose property"),containerClass:"mb-0",onClear:x,onChange:m,onSelect:C,object:!0},{prefix:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Property")),1)]),singlelabel:l.withCtx(({value:V})=>[l.createElementVNode("div",ZM,l.toDisplayString(l.unref(F)(V.name)),1)]),option:l.withCtx(({option:V})=>[l.createTextVNode(l.toDisplayString(l.unref(F)(V.name)),1)]),_:1},8,["size","modelValue","options","searchable","placeholder"])]),v.value&&i.value?(l.openBlock(),l.createElementBlock("div",XM,[i.value.type==="dd"?(l.openBlock(),l.createBlock(Za,{key:0,name:"propertyValue",size:h.value,modelValue:i.value.value,"onUpdate:modelValue":B[1]||(B[1]=V=>i.value.value=V),mode:i.value.isMultiple?"tags":"single",multiple:i.value.isMultiple,labelKey:i.value.optionLabel,isLeftIconBorder:!0,valueKey:i.value.optionValueProp,searchable:r.isSearchable,placeholder:i.value.placeholder||"Choose option",options:i.value.options},{prefix:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(i.value.name)),1)]),singlelabel:l.withCtx(({value:V})=>[l.createElementVNode("div",jM,l.toDisplayString(l.unref(F)(V[i.value.optionLabel])),1)]),option:l.withCtx(({option:V})=>[l.createTextVNode(l.toDisplayString(l.unref(F)(V[i.value.optionLabel])),1)]),_:1},8,["size","modelValue","mode","multiple","labelKey","valueKey","searchable","placeholder","options"])):l.createCommentVNode("",!0),i.value.type==="t"?(l.openBlock(),l.createBlock(kr,{key:1,name:"propertyValue",size:h.value,containerClass:"mb-0",modelValue:i.value.value,"onUpdate:modelValue":B[2]||(B[2]=V=>i.value.value=V),isLeftIconBorder:!0,placeholder:i.value.placeholder||"Enter value"},{prefix:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.name)),1)]),_:1},8,["size","modelValue","placeholder"])):l.createCommentVNode("",!0),i.value.type==="tr"?(l.openBlock(),l.createElementBlock("div",qM,[l.createElementVNode("div",KM,l.toDisplayString(l.unref(F)(i.value.name)),1),l.createElementVNode("div",QM,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":B[3]||(B[3]=V=>i.value.value.start=V),class:l.normalizeClass(["form-control","form-control-"+h.value]),type:"text",ref_key:"inputRangeBox",ref:f,placeholder:((P=i.value.placeholder)==null?void 0:P.start)||"Min"},null,10,JM),[[l.vModelText,i.value.value.start]]),B[12]||(B[12]=l.createElementVNode("svg",{class:"w-4 h-4 mx-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})],-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":B[4]||(B[4]=V=>i.value.value.end=V),class:"form-control form-control-sm",type:"text",placeholder:((L=i.value.placeholder)==null?void 0:L.end)||"Max"},null,8,eE),[[l.vModelText,i.value.value.end]])])])):l.createCommentVNode("",!0),i.value.type==="d"?(l.openBlock(),l.createBlock(yn,{key:3,name:"propertyValue",modelValue:i.value.value,"onUpdate:modelValue":B[5]||(B[5]=V=>i.value.value=V),"max-date":y.value,attributes:[{key:"today",dot:!0,dates:new Date}],"model-config":{type:"string",mask:r.dateFormat},isLeftIconBorder:!0,masks:{input:r.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:D,size:h.value},l.createSlots({_:2},[i.value.name?{name:"prefix",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.name)),1)]),key:"0"}:void 0,l.unref(t).postfix||i.value.postfix?{name:"postfix",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.postfix)),1)]),key:"1"}:void 0,l.unref(t).icon||i.value.icon?{name:"icon",fn:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.value.icon)))]),key:"2"}:void 0,l.unref(t).hints||i.value.hints?{name:"hints",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.hints)),1)]),key:"3"}:void 0]),1032,["modelValue","max-date","attributes","model-config","masks","size"])):l.createCommentVNode("",!0),i.value.type==="dr"?(l.openBlock(),l.createBlock(yn,{key:4,name:"propertyValue",modelValue:i.value.value,"onUpdate:modelValue":B[6]||(B[6]=V=>i.value.value=V),"max-date":y.value,attributes:[{key:"today",dot:!0,dates:new Date}],"model-config":{type:"string",mask:r.dateFormat},isLeftIconBorder:!0,masks:{input:r.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:D,size:h.value,"is-range":!0},l.createSlots({_:2},[i.value.name?{name:"prefix",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.name)),1)]),key:"0"}:void 0,l.unref(t).postfix||i.value.postfix?{name:"postfix",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.postfix)),1)]),key:"1"}:void 0,l.unref(t).icon||i.value.icon?{name:"icon",fn:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.value.icon)))]),key:"2"}:void 0,l.unref(t).hints||i.value.hints?{name:"hints",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.hints)),1)]),key:"3"}:void 0]),1032,["modelValue","max-date","attributes","model-config","masks","size"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)])])),l.createElementVNode("div",{class:l.normalizeClass(["col-6 col-sm-4 col-lg-3 vtpos-zindex-10",r.canScan?"col-12":"col-6"])},[l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn-primary mb-2 me-2 mb-lg-0",size:h.value,onClick:b,disabled:p.value},{default:l.withCtx(()=>[...B[13]||(B[13]=[l.createTextVNode(" Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn-secondary mb-2 me-2 mb-lg-0",size:h.value,onClick:w,disabled:g.value},{default:l.withCtx(()=>[...B[14]||(B[14]=[l.createTextVNode(" Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]]),r.canScan?(l.openBlock(),l.createBlock(Xe,{key:0,type:"button",class:"btn-primary mb-2 mb-sm-0",size:h.value,onClick:S},{default:l.withCtx(()=>[l.createVNode(l.unref(Bg))]),_:1},8,["size"])):l.createCommentVNode("",!0)],2)])):l.createCommentVNode("",!0),!r.isSingle&&!r.isQuickAdvance&&r.isAdvance?(l.openBlock(),l.createElementBlock("div",rE,[l.createElementVNode("div",nE,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.value,(V,z)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.advanceContainerClass),key:z},[V.type==="dd"?(l.openBlock(),l.createBlock(Za,{key:0,"container-class":"mb-0",name:V.name,size:h.value,modelValue:V.value,"onUpdate:modelValue":O=>V.value=O,mode:V.isMultiple?"tags":"single",multiple:V.isMultiple,labelKey:V.optionLabel,valueKey:V.optionValueProp,isLeftIconBorder:!0,searchable:r.isSearchable,placeholder:V.placeholder||"Choose option",options:V.options},{prefix:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(V.name)),1)]),singlelabel:l.withCtx(({value:O})=>[l.createElementVNode("div",aE,l.toDisplayString(l.unref(F)(O[V.optionLabel])),1)]),option:l.withCtx(({option:O})=>[l.createTextVNode(l.toDisplayString(l.unref(F)(O[V.optionLabel])),1)]),_:2},1032,["name","size","modelValue","onUpdate:modelValue","mode","multiple","labelKey","valueKey","searchable","placeholder","options"])):l.createCommentVNode("",!0),V.type==="t"?(l.openBlock(),l.createBlock(kr,{key:1,"container-class":"mb-0",name:V.name,size:h.value,modelValue:V.value,"onUpdate:modelValue":O=>V.value=O,placeholder:V.placeholder||"Enter value",isLeftIconBorder:!0},{prefix:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(V.name)),1)]),_:2},1032,["name","size","modelValue","onUpdate:modelValue","placeholder"])):l.createCommentVNode("",!0),V.type=="tr"?(l.openBlock(),l.createElementBlock("div",iE,[l.createElementVNode("div",oE,l.toDisplayString(l.unref(F)(V.name)),1),l.createElementVNode("div",sE,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":O=>V.value.start=O,class:l.normalizeClass(["form-control","form-control-"+h.value]),type:"text",ref_for:!0,ref:"input_range_box",placeholder:V.placeholder?V.placeholder.start:"Min"},null,10,lE),[[l.vModelText,V.value.start]]),B[15]||(B[15]=l.createElementVNode("svg",{class:"w-4 h-4 mx-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})],-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":O=>V.value.end=O,class:"form-control form-control-sm",type:"text",placeholder:V.placeholder?V.placeholder.end:"Max"},null,8,uE),[[l.vModelText,V.value.end]])])])):l.createCommentVNode("",!0),V.type==="d"?(l.openBlock(),l.createBlock(yn,{key:3,"container-class":"mb-0",name:V.name,modelValue:V.value,"onUpdate:modelValue":[O=>V.value=O,O=>A(V)],"max-date":y.value,attributes:[{key:"today",dot:!0,dates:new Date}],isLeftIconBorder:!0,"model-config":{type:"string",mask:r.dateFormat},masks:{input:r.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:D,size:h.value},{prefix:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(V.name)),1)]),_:2},1032,["name","modelValue","onUpdate:modelValue","max-date","attributes","model-config","masks","size"])):l.createCommentVNode("",!0),V.type==="dr"?(l.openBlock(),l.createBlock(yn,{key:4,"container-class":"mb-0",name:V.name,modelValue:V.value,"onUpdate:modelValue":[O=>V.value=O,O=>A(V)],"max-date":y.value,attributes:[{key:"today",dot:!0,dates:new Date}],isLeftIconBorder:!0,"model-config":{type:"string",mask:r.dateFormat},masks:{input:r.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:D,size:h.value,"is-range":!0},{prefix:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(V.name)),1)]),_:2},1032,["name","modelValue","onUpdate:modelValue","max-date","attributes","model-config","masks","size"])):l.createCommentVNode("",!0)],2))),128))]),l.createElementVNode("div",cE,[l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn btn-primary",size:h.value,disabled:I.getStatus,onClick:b},{default:l.withCtx(()=>[...B[16]||(B[16]=[l.createTextVNode("Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn btn-warning",size:h.value,disabled:I.getStatus,onClick:w},{default:l.withCtx(()=>[...B[17]||(B[17]=[l.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]])])])):l.createCommentVNode("",!0),!r.isSingle&&!r.isAdvance&&r.isQuickAdvance?(l.openBlock(),l.createElementBlock("div",fE,[l.createElementVNode("div",dE,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.value,(V,z)=>(l.openBlock(),l.createElementBlock("div",{key:`${V.propName}-${z}`},[V.type==="t"?(l.openBlock(),l.createBlock(kr,{key:0,"container-class":"mb-0",name:V.name,size:h.value,type:V.inputType?V.inputType:"text",modelValue:V.value,"onUpdate:modelValue":O=>V.value=O,placeholder:V.placeholder?V.placeholder+(r.isQuickAdvanceAutoSearch?" (press enter)":""):"Enter value "+(r.isQuickAdvanceAutoSearch?" (press enter)":""),onKeyup:B[8]||(B[8]=l.withKeys(O=>r.isQuickAdvanceAutoSearch?b():null,["enter"]))},null,8,["name","size","type","modelValue","onUpdate:modelValue","placeholder"])):l.createCommentVNode("",!0),V.type==="dd"?(l.openBlock(),l.createBlock(hi,{key:1,placement:"bottom",class:"p-0"},{content:l.withCtx(()=>[l.createVNode(l.unref(ut.Field),{name:V.name},{default:l.withCtx(()=>[(l.openBlock(),l.createElementBlock("ul",{class:"list-group mb-0",key:V.value},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(V.options,(O,W)=>(l.openBlock(),l.createElementBlock("li",{onClick:j=>O.isSelected?E(V):M(V.propName,O),key:W,class:"list-group-item border-0 d-flex justify-content-between align-items-center"},[l.createElementVNode("span",vE,l.toDisplayString(l.unref(F)(typeof O=="object"?O[V.optionLabel||"label"]:O)),1),O.isSelected?(l.openBlock(),l.createBlock(l.unref(jd),{key:0})):l.createCommentVNode("",!0)],8,hE))),128))]))]),_:2},1032,["name"])]),default:l.withCtx(()=>[l.createVNode(Xe,{class:"btn-outline-secondary",size:h.value},{default:l.withCtx(()=>[V.icon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(V.icon),{key:0,class:l.normalizeClass({"placeholder-text":!V.value||Array.isArray(V.value)&&!V.value.length})},null,8,["class"])):l.createCommentVNode("",!0),l.createElementVNode("span",{class:l.normalizeClass({"placeholder-text":!V.value||Array.isArray(V.value)&&!V.value.length})},l.toDisplayString(l.unref(F)(V.label||V.name)),3),V.value||Array.isArray(V.value)&&V.value.length?(l.openBlock(),l.createBlock(l.unref(rs),{key:1,onClick:l.withModifiers(O=>E(V,O),["stop"])},null,8,["onClick"])):l.createCommentVNode("",!0)]),_:2},1032,["size"])]),_:2},1024)):l.createCommentVNode("",!0),V.type==="d"?(l.openBlock(),l.createBlock(yn,{key:2,"container-class":"mb-0",name:V.name,modelValue:V.value,"onUpdate:modelValue":[O=>V.value=O,O=>A(V)],showInInput:!1,size:h.value},{resetIcon:l.withCtx(()=>[l.createVNode(l.unref(rs),{onClick:l.withModifiers(O=>E(V,O),["stop"])},null,8,["onClick"])]),_:2},1032,["name","modelValue","onUpdate:modelValue","size"])):l.createCommentVNode("",!0),V.type==="dr"?(l.openBlock(),l.createBlock(yn,{key:3,"container-class":"mb-0",name:V.name,modelValue:V.value,"onUpdate:modelValue":[O=>V.value=O,O=>A(V)],showInInput:!1,size:h.value,"is-range":!0},{resetIcon:l.withCtx(()=>[l.createVNode(l.unref(rs),{onClick:l.withModifiers(O=>E(V,O),["stop"])},null,8,["onClick"])]),_:2},1032,["name","modelValue","onUpdate:modelValue","size"])):l.createCommentVNode("",!0)]))),128))]),l.createElementVNode("div",pE,[l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn btn-primary",size:h.value,disabled:I.getStatus,onClick:b},{default:l.withCtx(()=>[...B[18]||(B[18]=[l.createTextVNode(" Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn btn-warning",size:h.value,disabled:I.getStatus,onClick:w},{default:l.withCtx(()=>[...B[19]||(B[19]=[l.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]])])])):l.createCommentVNode("",!0),r.isSingle?(l.openBlock(),l.createElementBlock("div",gE,[r.showScanFld?(l.openBlock(),l.createElementBlock("div",yE,[l.createVNode(kr,{name:"singlescan",containerClass:"mb-0",type:"text",ref:"single_scan_box",placeholder:l.unref(F)("Scan"),onInput:B[10]||(B[10]=V=>_()),modelValue:o.value,"onUpdate:modelValue":B[11]||(B[11]=V=>o.value=V),size:h.value},null,8,["placeholder","modelValue","size"])])):(l.openBlock(),l.createElementBlock("div",mE,[l.createVNode(kr,{name:"singlescan",containerClass:"mb-0",type:"text",ref:"single_text_box",placeholder:l.unref(F)("Search"),onInput:T,onKeydown:l.withKeys(k,["enter"]),modelValue:o.value,"onUpdate:modelValue":B[9]||(B[9]=V=>o.value=V),size:h.value},null,8,["placeholder","modelValue","size"])])),l.createElementVNode("div",{class:l.normalizeClass(["vtpos-zindex-10 col-sm-4",r.canScan?"col-12":"col-6"])},[l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn-primary mb-2 me-2 mb-sm-0",size:h.value,onClick:k,disabled:o.value.length<=0},{default:l.withCtx(()=>[...B[20]||(B[20]=[l.createTextVNode("Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn-warning mb-2 me-2 mb-sm-0",size:h.value,onClick:w,disabled:o.value.length<=0},{default:l.withCtx(()=>[...B[21]||(B[21]=[l.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]]),r.canScan?(l.openBlock(),l.createBlock(Xe,{key:0,type:"button",class:"btn-primary btn-icon mb-2 me-2 mb-sm-0",size:h.value,onClick:S},{default:l.withCtx(()=>[l.createVNode(l.unref(Bg))]),_:1},8,["size"])):l.createCommentVNode("",!0)],2)])):l.createCommentVNode("",!0)],64)}}},b_=Pt(bE,[["__scopeId","data-v-d374953b"]]),_E=["id","type","name","value"],SE=["for"],wE={key:2,class:"apbd-imgr-container"},xE=["src"],__={__name:"AbImageRadioInput",props:l.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(r){const e=l.useModel(r,"modelValue"),t=l.useAttrs();l.useSlots();const n=r,a=l.computed(()=>(t==null?void 0:t.name)||"fld"),i=l.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})),o=l.computed(()=>n.selectorColor?{"--apbd-selector-color":n.selectorColor}:{});return(s,u)=>{var f;const c=l.resolveComponent("translate");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["apbd-img-input-ctrn",(f=l.unref(t))==null?void 0:f.class]),style:l.normalizeStyle(i.value)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.options,(d,h)=>{var v;return l.openBlock(),l.createElementBlock("div",{key:h},[l.withDirectives(l.createElementVNode("input",l.mergeProps({id:a.value+h,type:((v=l.unref(t))==null?void 0:v.type)||"radio",name:a.value,"onUpdate:modelValue":u[0]||(u[0]=p=>e.value=p)},{ref_for:!0},l.unref(t),{value:d.val}),null,16,_E),[[l.vModelDynamic,e.value]]),l.createElementVNode("label",{for:a.value+h,style:l.normalizeStyle(o.value),class:l.normalizeClass([r.isInline?"apbd-imgr-inline":"",r.optionClass,(d==null?void 0:d.class)||""])},[u[1]||(u[1]=l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"ai ai-CircleCheckFill"},[l.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)),l.renderSlot(s.$slots,"icon_image",{option:d},()=>[d!=null&&d.iconComponent?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["apbd-imgr-input-icon",(d==null?void 0:d.icon_ctnr_class)||""])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(d.iconComponent)))],2)):l.createCommentVNode("",!0),d!=null&&d.icon?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["apbd-imgr-input-icon",(d==null?void 0:d.icon_ctnr_class)||""])},[l.createElementVNode("i",{class:l.normalizeClass(d.icon)},null,2)],2)):l.createCommentVNode("",!0),!(d!=null&&d.iconComponent)&&!d.icon&&(d!=null&&d.img_src)?(l.openBlock(),l.createElementBlock("div",wE,[l.createElementVNode("img",{class:"img-fluid",src:d.img_src},null,8,xE)])):l.createCommentVNode("",!0)]),l.renderSlot(s.$slots,"label",{option:d},()=>[l.renderSlot(s.$slots,"label-"+d.val,{option:d},()=>[d!=null&&d.label?(l.openBlock(),l.createBlock(c,{key:0,class:"apbd-imgr-option-label"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(d.label)),1)]),_:2},1024)):l.createCommentVNode("",!0)])])],14,SE)])}),128))],6)}}},CE={class:"apbd-table-responsive"},kE=["data-label"],TE={key:0},DE=["colspan"],S_={__name:"AbTable",props:{items:{type:Array,default:()=>[]},fields:{type:Array,default:()=>[]},tableClass:{type:[String,Array,Object],default:""}},setup(r){const e=r,t=l.computed(()=>e.fields.map(n=>typeof n=="string"?{key:n,label:n.charAt(0).toUpperCase()+n.slice(1)}:n));return(n,a)=>(l.openBlock(),l.createElementBlock("div",CE,[l.createElementVNode("table",{class:l.normalizeClass(["table apbd-table",r.tableClass])},[l.createElementVNode("thead",null,[l.renderSlot(n.$slots,"thead",{},()=>[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value,i=>(l.openBlock(),l.createElementBlock("th",{key:i.key},[l.renderSlot(n.$slots,`head(${i.key})`,{field:i},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(i.label)),1)])]))),128))])])]),l.createElementVNode("tbody",null,[l.renderSlot(n.$slots,"tbody",{},()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.items,(i,o)=>(l.openBlock(),l.createElementBlock("tr",{key:o},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value,s=>(l.openBlock(),l.createElementBlock("td",{key:s.key,"data-label":s.label},[l.renderSlot(n.$slots,`cell(${s.key})`,{value:i[s.key],item:i,index:o},()=>[l.createTextVNode(l.toDisplayString(i[s.key]),1)])],8,kE))),128))]))),128)),!r.items||r.items.length===0?(l.openBlock(),l.createElementBlock("tr",TE,[l.createElementVNode("td",{colspan:t.value.length,class:"text-center"},[l.renderSlot(n.$slots,"empty",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("No data available")),1)])],8,DE)])):l.createCommentVNode("",!0)])])],2)]))}},ME={class:"apbd-skeleton"},w_={__name:"AbSkeleton",setup(r){return(e,t)=>(l.openBlock(),l.createElementBlock("div",ME))}},EE={class:"apbd-kbd"},x_=Object.assign({name:"AbKbd"},{__name:"AbKbd",setup(r){return(e,t)=>(l.openBlock(),l.createElementBlock("kbd",EE,[l.renderSlot(e.$slots,"default")]))}}),AE={class:"apbd-kbd-group"},C_=Object.assign({name:"AbKbdGroup"},{__name:"AbKbdGroup",setup(r){return(e,t)=>(l.openBlock(),l.createElementBlock("div",AE,[l.renderSlot(e.$slots,"default")]))}}),NE={class:"apbd-carousel-nav-wrapper nav-prev"},IE={class:"apbd-carousel-nav-wrapper nav-next"},k_=Object.assign({name:"AbCarousel"},{__name:"AbCarousel",props:{scrollAmount:{type:Number,default:200},orientation:{type:String,default:"horizontal",validator:r=>["horizontal","vertical"].includes(r)},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(r){const e=l.ref(null),t=l.ref(!1),n=l.ref(!1),a=r,i=l.computed(()=>a.orientation==="vertical"),o=l.ref(!1),s=l.ref(!1);let u=0,c=0;function f(){if(e.value)if(i.value){const{scrollTop:k,scrollHeight:T,clientHeight:D}=e.value;t.value=k>0,n.value=Math.ceil(k+D)<T}else{const{scrollLeft:k,scrollWidth:T,clientWidth:D}=e.value;t.value=k>0,n.value=Math.ceil(k+D)<T}}function d(k){if(!e.value)return;let T=a.scrollAmount;if(e.value.children.length>0){const M=e.value.children[0],A=getComputedStyle(e.value),E=parseFloat(A.gap),I=isNaN(E)?8:E;T=i.value?M.offsetHeight+I:M.offsetWidth+I}const D={behavior:"smooth"};i.value?D.top=k*T:D.left=k*T,e.value.scrollBy(D)}function h(k){o.value=!0,s.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(){o.value=!1,setTimeout(()=>{s.value=!1},50)}function p(k){if(!o.value||!e.value)return;const D=((i.value?k.pageY-e.value.offsetTop:k.pageX-e.value.offsetLeft)-u)*1.5;Math.abs(D)>5&&(s.value=!0,k.preventDefault()),i.value?e.value.scrollTop=c-D:e.value.scrollLeft=c-D}function g(k){if(e.value&&!i.value&&k.deltaX===0&&k.deltaY!==0){const T=k.deltaY<0,D=k.deltaY>0;(T&&t.value||D&&n.value)&&(k.preventDefault(),e.value.scrollBy({left:k.deltaY,behavior:"auto"}))}}let y=null;const m=l.ref(!1);function b(){a.autoplay&&(_(),y=setInterval(()=>{m.value||o.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 _(){y&&(clearInterval(y),y=null)}function S(){m.value=!0}function w(){m.value=!1,v()}const x=l.computed(()=>a.edgeFade?{"has-fade":!0,"can-scroll-start":t.value,"can-scroll-end":n.value}:{});let C;return l.onMounted(()=>{l.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()}),l.watch(()=>a.autoplay,k=>{k?b():_()}),l.onUnmounted(()=>{window.removeEventListener("resize",f),_(),e.value&&e.value.removeEventListener("wheel",g),C&&e.value&&C.disconnect()}),(k,T)=>(l.openBlock(),l.createElementBlock("div",l.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:S,onMouseleave:w}),[l.withDirectives(l.createElementVNode("div",NE,[l.renderSlot(k.$slots,"prev",{scroll:()=>d(-1)},()=>[l.createElementVNode("button",{class:"apbd-carousel-nav",onClick:T[0]||(T[0]=D=>d(-1))},[l.renderSlot(k.$slots,"prev-icon",{},()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.value?l.unref(ST):l.unref(K1)),{size:18}))])])])],512),[[l.vShow,t.value]]),l.createElementVNode("div",{class:l.normalizeClass(["apbd-carousel-container",{"is-moving":s.value,"is-dragging":o.value}]),ref_key:"scrollContainer",ref:e,onScroll:f,onMousedown:h,onMouseup:v,onMousemove:p},[l.renderSlot(k.$slots,"default")],34),l.withDirectives(l.createElementVNode("div",IE,[l.renderSlot(k.$slots,"next",{scroll:()=>d(1)},()=>[l.createElementVNode("button",{class:"apbd-carousel-nav",onClick:T[1]||(T[1]=D=>d(1))},[l.renderSlot(k.$slots,"next-icon",{},()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.value?l.unref(qd):l.unref(Q1)),{size:18}))])])])],512),[[l.vShow,n.value]])],16))}}),BE={class:"apbd-tooltip-inner"},T_={__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(r){const e=r,t=l.ref(!1),n=l.ref(null),a=l.ref(null),i=l.ref(null),o=l.computed(()=>e.placement.startsWith("auto")),s=l.computed(()=>e.placement.split("-")[1]||void 0),{floatingStyles:u,middlewareData:c,placement:f,update:d}=a_(n,a,{placement:l.computed(()=>o.value?void 0:e.placement),offset:l.computed(()=>Number(e.offset)),arrowElement:i,arrowPadding:4,flip:!0,autoPlacement:o,alignment:s,whileElementsMounted:!0});l.watch(t,b=>{b&&l.nextTick(()=>d())});let h=null;const v=()=>{e.disabled||(h&&clearTimeout(h),t.value=!0)},p=()=>{h&&clearTimeout(h),h=setTimeout(()=>{t.value=!1},100)},g=()=>{e.interactive&&h&&clearTimeout(h)},y=()=>{e.interactive&&p()};l.onUnmounted(()=>{h&&clearTimeout(h)});const m=l.computed(()=>{if(!c.value.arrow)return{};const{x:b,y:_}=c.value.arrow,S=f.value||"top",w={top:"bottom",right:"left",bottom:"top",left:"right"}[S.split("-")[0]];return{left:b!=null?`${b}px`:"",top:_!=null?`${_}px`:"",right:"",bottom:"",[w]:"-4px"}});return(b,_)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:"apbd-tooltip-trigger",ref_key:"reference",ref:n,onMouseenter:v,onMouseleave:p,onFocus:v,onBlur:p},[l.renderSlot(b.$slots,"default")],544),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"apbd-tooltip-fade"},{default:l.withCtx(()=>[t.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"floating",ref:a,style:l.normalizeStyle(l.unref(u)),class:"apbd-tooltip-content",role:"tooltip",onMouseenter:g,onMouseleave:y},[l.createElementVNode("div",BE,[l.renderSlot(b.$slots,"content",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.content)),1)])]),r.arrow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"apbd-tooltip-arrow",ref_key:"floatingArrow",ref:i,style:l.normalizeStyle(m.value)},null,4)):l.createCommentVNode("",!0)],36)):l.createCommentVNode("",!0)]),_:3})]))],64))}},LE={key:0,class:"d-flex justify-content-between align-items-center w-100 pe-3"},VE={class:"modal-title fw-bold mb-0"},PE={key:0,class:"text-muted small"},RE={key:0,width:"48",height:"48",viewBox:"0 0 48 48"},OE=["stroke-dashoffset"],zE={x:"24",y:"27","text-anchor":"middle","font-size":"10","font-weight":"600",fill:"currentColor"},$E={key:1,class:"ab-wizard-modal-header__row w-100 align-items-start gap-3"},FE={class:"ab-wizard-modal-header__main flex-grow-1"},HE={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)"}},GE={key:0,class:"ab-wizard-desc text-muted transition-all"},WE={key:0,class:"ab-wizard-modal-header__close flex-shrink-0"},UE={class:"modal-body p-4 position-relative"},YE={class:"ab-wizard-body-inner"},ZE={key:0,class:"apbd-wizard-loading-overlay d-flex align-items-center justify-content-center flex-column"},XE={class:"fw-bold text-primary"},jE={class:"modal-footer d-flex justify-content-between"},qE={key:1},KE={class:"d-flex align-items-center gap-2"},QE={class:"spinner-border spinner-border-sm text-primary",role:"status"},JE={class:"visually-hidden"},eA={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)"}},tA={key:0,class:"ab-wizard-desc text-muted transition-all"},rA={key:1,class:"ab-wizard-mobile-header d-flex justify-content-between align-items-center w-100 mb-4 pb-3 border-bottom"},nA={class:"d-flex flex-column pr-3",style:{"max-width":"75%"}},aA={class:"mb-1 fw-bold text-dark"},iA={key:0,class:"text-muted small"},oA={class:"mobile-wizard-progress flex-shrink-0"},sA={width:"48",height:"48",viewBox:"0 0 48 48"},lA=["stroke-dashoffset"],uA={x:"24",y:"27","text-anchor":"middle","font-size":"10","font-weight":"600",fill:"currentColor"},cA={class:"ab-wizard-content-wrapper flex-grow-1 d-flex flex-column h-100"},fA={class:"ab-wizard-body-inner"},dA={key:0,class:"apbd-wizard-loading-overlay d-flex align-items-center justify-content-center flex-column"},hA={class:"fw-bold text-primary"},vA={key:0,class:"ab-wizard-controls mt-4 d-flex justify-content-between align-items-center mt-auto pt-4"},pA={class:"d-flex align-items-center gap-2"},gA={class:"spinner-border spinner-border-sm text-primary mx-2",role:"status"},mA={class:"visually-hidden"},yA={__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(r,{expose:e,emit:t}){const n=r,a=t,i=l.ref([]),o=l.ref(0),s=l.ref(!1),u=l.ref(1024),c=()=>{u.value=window.innerWidth};l.onMounted(()=>{typeof window<"u"&&(u.value=window.innerWidth,window.addEventListener("resize",c))}),l.onUnmounted(()=>{typeof window<"u"&&window.removeEventListener("resize",c)});const f=l.computed(()=>u.value<=768),d=l.computed(()=>n.variant&&n.variant.includes("circular")||f.value),h=l.computed(()=>n.variant&&n.variant.includes("modal")),v=l.computed(()=>n.stepperSize==="sm"?"sm":"md"),p=l.computed(()=>h.value&&!d.value&&v.value==="sm"&&n.orientation==="horizontal"),g=l.computed(()=>`ab-wizard-size-${v.value}`),y=l.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"}),m=l.ref(!1),b=l.ref(null),_=l.computed(()=>{if(b.value!==null)return!b.value;if(n.disableClose)return!1;const L=i.value[o.value];return!(L&&L.disableClose)}),S=L=>{b.value=L},w=(L=!1)=>{(L===!0||_.value)&&(m.value=!1)},x=l.computed(()=>i.value.length===0||!i.value[o.value]?null:i.value[o.value].id),C=L=>{i.value.push(L)},k=L=>{i.value=i.value.filter(V=>V.id!==L),o.value>=i.value.length&&(o.value=Math.max(0,i.value.length-1))},T=(L,V)=>{const z=i.value.findIndex(O=>O.id===L);z!==-1&&(i.value[z]={...i.value[z],...V})},D=l.ref({}),M=(L,V)=>{D.value[L]=V};l.provide("AbWizard",{activeStepId:x,registerStep:C,unregisterStep:k,updateStep:T,registerStepValidator:M});const A=l.computed(()=>o.value===0),E=l.computed(()=>o.value===i.value.length-1),I=async()=>{if(!(s.value||E.value)){s.value=!0;try{let L=!0;x.value&&D.value[x.value]&&(L=await D.value[x.value]()),L!==!1&&(L=await n.beforeNext({currentIndex:o.value,nextIndex:o.value+1,closeModal:w,setDisableClose:S})),L!==!1&&(o.value++,a("step-changed",o.value))}finally{s.value=!1}}},B=async()=>{if(!(s.value||A.value)){s.value=!0;try{await n.beforePrev({currentIndex:o.value,nextIndex:o.value-1,closeModal:w,setDisableClose:S})!==!1&&(o.value--,a("step-changed",o.value))}finally{s.value=!1}}},R=async()=>{if(!s.value){s.value=!0;try{let L=!0;x.value&&D.value[x.value]&&(L=await D.value[x.value]()),L!==!1&&(L=await n.beforeFinish({closeModal:w,setDisableClose:S})),L!==!1&&a("finished")}finally{s.value=!1}}},P=L=>L<o.value?"completed":L===o.value?"active":"inactive";return e({steps:i,currentIndex:o,isFirstStep:l.computed(()=>o.value===0),isLastStep:l.computed(()=>o.value===i.value.length-1),isLoading:s,goToNext:I,goToPrev:B,finish:R,getStepState:P,closeModal:w,setDisableClose:S}),(L,V)=>{var O,W,j,ne;const z=l.resolveDirective("translate");return h.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(L.$slots,"modal-button",{open:()=>m.value=!0},()=>[l.createVNode(Xe,{variant:"primary",onClick:V[0]||(V[0]=q=>m.value=!0)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.nextText)),1)]),_:1})],!0),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[m.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"modal-backdrop fade show",onClick:V[1]||(V[1]=q=>w(!1))})):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createElementBlock("div",{key:1,class:"modal fade show d-block",tabindex:"-1",onClick:V[4]||(V[4]=l.withModifiers(q=>w(!1),["self"]))},[l.createElementVNode("div",{class:l.normalizeClass(["modal-dialog modal-dialog-centered",r.modalClass])},[l.createElementVNode("div",{class:l.normalizeClass(["modal-content ab-wizard",[g.value,{"ab-wizard-modal-stepper-compact":p.value,"apbd-wizard-loading":s.value}]]),style:l.normalizeStyle(y.value)},[l.createElementVNode("div",{class:l.normalizeClass(["modal-header position-relative",d.value?"":"ab-wizard-modal-header"])},[d.value?(l.openBlock(),l.createElementBlock("div",LE,[l.createElementVNode("div",null,[l.createElementVNode("h5",VE,l.toDisplayString(((O=i.value[o.value])==null?void 0:O.title)||"Step "+(o.value+1)),1),o.value<i.value.length-1?(l.openBlock(),l.createElementBlock("span",PE," Next: "+l.toDisplayString(((W=i.value[o.value+1])==null?void 0:W.title)||"Step "+(o.value+2)),1)):l.createCommentVNode("",!0)]),i.value.length?(l.openBlock(),l.createElementBlock("svg",RE,[V[5]||(V[5]=l.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-secondary-bg, #e9ecef)","stroke-width":"4"},null,-1)),l.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*((o.value+1)/i.value.length),style:{transition:"stroke-dashoffset 0.4s ease"}},null,8,OE),l.createElementVNode("text",zE,l.toDisplayString(o.value+1)+" of "+l.toDisplayString(i.value.length),1)])):l.createCommentVNode("",!0)])):(l.openBlock(),l.createElementBlock("div",$E,[l.createElementVNode("div",FE,[l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-header w-100 position-relative",[r.orientation==="horizontal"?"ab-wizard-horizontal-header":"ab-wizard-vertical-header"]])},[l.renderSlot(L.$slots,"stepper-header",l.normalizeProps(l.guardReactiveProps({steps:i.value,currentIndex:o.value,getStepState:P,isMobile:f.value})),()=>[l.renderSlot(L.$slots,"header-top",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["d-flex w-100 position-relative",[p.value?"mt-1":"mt-2",r.orientation==="vertical"?"flex-column":"justify-content-between align-items-start"]])},[l.withDirectives(l.createElementVNode("div",HE,null,512),[[l.vShow,r.orientation==="horizontal"]]),l.withDirectives(l.createElementVNode("div",{class:"position-absolute bg-primary transition-all start-0",style:l.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)) * ${o.value/Math.max(1,i.value.length-1)})`}])},null,4),[[l.vShow,r.orientation==="horizontal"]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,(q,Q)=>(l.openBlock(),l.createElementBlock("div",{key:q.id,class:l.normalizeClass(["ab-wizard-step-indicator position-relative d-flex",r.orientation==="vertical"?"w-100 align-items-start gap-3 pb-4":"flex-column"]),style:l.normalizeStyle(r.orientation==="horizontal"?{alignItems:Q===0?"flex-start":Q===i.value.length-1?"flex-end":"center"}:{})},[l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass(["vertical-sep transition-all",P(Q)==="completed"?"bg-primary":"bg-muted"])},null,2),[[l.vShow,r.orientation==="vertical"&&Q!==i.value.length-1]]),l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-trigger position-relative z-2 flex-shrink-0 d-flex align-items-center justify-content-center rounded-circle transition-all",[P(Q)==="completed"?"bg-primary text-white":"bg-white border",P(Q)==="active"?"border-primary ring-active text-primary":"",P(Q)==="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)"}},[l.renderSlot(L.$slots,"step-icon",l.mergeProps({ref_for:!0},{step:q,index:Q,state:P(Q)}),()=>[P(Q)==="completed"?(l.openBlock(),l.createBlock(l.unref(jd),{key:0,class:"icon-sm"})):q.icon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(q.icon),{key:1,class:"icon-sm"})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[P(Q)==="active"?(l.openBlock(),l.createBlock(l.unref(Mg),{key:0,class:"icon-sm opacity-75"})):(l.openBlock(),l.createBlock(l.unref(Ag),{key:1,class:"icon-sm"}))],64))],!0)],2),l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-label d-flex flex-column",[r.orientation==="vertical"?"align-items-start mt-1":`position-absolute ${p.value?"pt-2":"pt-3"}`]]),style:l.normalizeStyle(r.orientation==="horizontal"?{top:"var(--ab-wizard-label-top)",insetInlineStart:Q===i.value.length-1?"auto":"0",insetInlineEnd:Q===0?"auto":"0",marginInline:Q!==0&&Q!==i.value.length-1?"auto":"unset",width:"max-content",textAlign:Q===0?"start":Q===i.value.length-1?"end":"center"}:{})},[l.renderSlot(L.$slots,"step-label",l.mergeProps({ref_for:!0},{step:q,index:Q,state:P(Q)}),()=>[l.createElementVNode("span",{class:l.normalizeClass(["ab-wizard-title fw-semibold transition-all",P(Q)==="active"||P(Q)==="completed"?"text-primary":""])},l.toDisplayString(l.unref(F)(q.title)),3),q.description?(l.openBlock(),l.createElementBlock("span",GE,l.toDisplayString(l.unref(F)(q.description)),1)):l.createCommentVNode("",!0)],!0)],6)],6))),128))],2)],!0)],2)]),_.value?(l.openBlock(),l.createElementBlock("div",WE,[l.createElementVNode("button",{type:"button",class:"btn-close",style:{"z-index":"10"},onClick:V[2]||(V[2]=q=>w(!1))})])):l.createCommentVNode("",!0)])),_.value&&d.value?(l.openBlock(),l.createElementBlock("button",{key:2,type:"button",class:"btn-close",style:{"z-index":"10"},onClick:V[3]||(V[3]=q=>w(!1))})):l.createCommentVNode("",!0)],2),l.createElementVNode("div",UE,[l.createElementVNode("div",YE,[l.renderSlot(L.$slots,"default",{},void 0,!0)]),s.value?(l.openBlock(),l.createElementBlock("div",ZE,[l.renderSlot(L.$slots,"loader",l.normalizeProps(l.guardReactiveProps({isLoading:s.value,variant:"overlay",isModal:!0,currentIndex:o.value})),()=>[V[7]||(V[7]=l.createElementVNode("div",{class:"spinner-border text-primary mb-2",role:"status"},null,-1)),l.withDirectives((l.openBlock(),l.createElementBlock("span",XE,[...V[6]||(V[6]=[l.createTextVNode("Please wait...",-1)])])),[[z]])],!0)])):l.createCommentVNode("",!0)]),l.createElementVNode("div",jE,[A.value?(l.openBlock(),l.createElementBlock("div",qE)):(l.openBlock(),l.createBlock(Xe,{key:0,variant:"outline-secondary",disabled:s.value,onClick:B},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prevText)),1)]),_:1},8,["disabled"])),l.createElementVNode("div",KE,[s.value?l.renderSlot(L.$slots,"loader",l.normalizeProps(l.mergeProps({key:0},{isLoading:s.value,variant:"inline",isModal:!0,currentIndex:o.value})),()=>[l.createElementVNode("div",QE,[l.withDirectives((l.openBlock(),l.createElementBlock("span",JE,[...V[8]||(V[8]=[l.createTextVNode("Loading...",-1)])])),[[z]])])],!0):l.createCommentVNode("",!0),E.value?(l.openBlock(),l.createBlock(Xe,{key:2,variant:"success",disabled:s.value,onClick:R},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.finishText)),1)]),_:1},8,["disabled"])):(l.openBlock(),l.createBlock(Xe,{key:1,variant:"primary",disabled:s.value,onClick:I},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.nextText)),1)]),_:1},8,["disabled"]))])])],6)],2)])):l.createCommentVNode("",!0)]))],64)):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["ab-wizard w-100",[`ab-wizard-${r.orientation}`,g.value,r.orientation==="vertical"&&!d.value?"d-flex flex-column flex-md-row gap-3":"",{"apbd-wizard-loading":s.value}]]),style:l.normalizeStyle(y.value)},[d.value?(l.openBlock(),l.createElementBlock("div",rA,[l.createElementVNode("div",nA,[l.createElementVNode("h5",aA,l.toDisplayString(((j=i.value[o.value])==null?void 0:j.title)||"Step "+(o.value+1)),1),o.value<i.value.length-1?(l.openBlock(),l.createElementBlock("span",iA," Next: "+l.toDisplayString(((ne=i.value[o.value+1])==null?void 0:ne.title)||"Step "+(o.value+2)),1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",oA,[(l.openBlock(),l.createElementBlock("svg",sA,[V[9]||(V[9]=l.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-secondary-bg, #e9ecef)","stroke-width":"4"},null,-1)),l.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*((o.value+1)/i.value.length),style:{transition:"stroke-dashoffset 0.4s ease"}},null,8,lA),l.createElementVNode("text",uA,l.toDisplayString(o.value+1)+" of "+l.toDisplayString(i.value.length),1)]))])])):(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["ab-wizard-header position-relative p-1",[r.orientation==="horizontal"?"ab-wizard-horizontal-header":"flex-shrink-0 ab-wizard-vertical-header"]])},[l.renderSlot(L.$slots,"stepper-header",l.normalizeProps(l.guardReactiveProps({steps:i.value,currentIndex:o.value,getStepState:P,isMobile:f.value})),()=>[l.renderSlot(L.$slots,"header-top",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["d-flex w-100 position-relative",r.orientation==="vertical"?"flex-column":"justify-content-between align-items-start"])},[l.withDirectives(l.createElementVNode("div",eA,null,512),[[l.vShow,r.orientation==="horizontal"]]),l.withDirectives(l.createElementVNode("div",{class:"position-absolute bg-primary transition-all start-0",style:l.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)) * ${o.value/Math.max(1,i.value.length-1)})`}])},null,4),[[l.vShow,r.orientation==="horizontal"]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,(q,Q)=>(l.openBlock(),l.createElementBlock("div",{key:q.id,class:l.normalizeClass(["ab-wizard-step-indicator position-relative d-flex",r.orientation==="vertical"?"w-100 align-items-start gap-3 pb-4":"flex-column"]),style:l.normalizeStyle(r.orientation==="horizontal"?{alignItems:Q===0?"flex-start":Q===i.value.length-1?"flex-end":"center"}:{})},[l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass(["vertical-sep transition-all",P(Q)==="completed"?"bg-primary":"bg-muted"])},null,2),[[l.vShow,r.orientation==="vertical"&&Q!==i.value.length-1]]),l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-trigger position-relative z-2 flex-shrink-0 d-flex align-items-center justify-content-center rounded-circle transition-all",[P(Q)==="completed"?"bg-primary text-white":"bg-white border",P(Q)==="active"?"border-primary ring-active text-primary":"",P(Q)==="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)"}},[l.renderSlot(L.$slots,"step-icon",l.mergeProps({ref_for:!0},{step:q,index:Q,state:P(Q)}),()=>[P(Q)==="completed"?(l.openBlock(),l.createBlock(l.unref(jd),{key:0,class:"icon-sm"})):q.icon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(q.icon),{key:1,class:"icon-sm"})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[P(Q)==="active"?(l.openBlock(),l.createBlock(l.unref(Mg),{key:0,class:"icon-sm opacity-75"})):(l.openBlock(),l.createBlock(l.unref(Ag),{key:1,class:"icon-sm"}))],64))],!0)],2),l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-label d-flex flex-column",[r.orientation==="vertical"?"align-items-start mt-1":"position-absolute pt-3"]]),style:l.normalizeStyle(r.orientation==="horizontal"?{top:"var(--ab-wizard-label-top)",insetInlineStart:Q===i.value.length-1?"auto":"0",insetInlineEnd:Q===0?"auto":"0",marginInline:Q!==0&&Q!==i.value.length-1?"auto":"unset",width:"max-content",textAlign:Q===0?"start":Q===i.value.length-1?"end":"center"}:{})},[l.renderSlot(L.$slots,"step-label",l.mergeProps({ref_for:!0},{step:q,index:Q,state:P(Q)}),()=>[l.createElementVNode("span",{class:l.normalizeClass(["ab-wizard-title fw-semibold transition-all",P(Q)==="active"||P(Q)==="completed"?"text-primary":""])},l.toDisplayString(l.unref(F)(q.title)),3),q.description?(l.openBlock(),l.createElementBlock("span",tA,l.toDisplayString(l.unref(F)(q.description)),1)):l.createCommentVNode("",!0)],!0)],6)],6))),128))],2)],!0)],2)),l.createElementVNode("div",cA,[l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-body position-relative",r.orientation==="horizontal"?"mt-4":""])},[l.createElementVNode("div",fA,[l.renderSlot(L.$slots,"default",{},void 0,!0)]),s.value?(l.openBlock(),l.createElementBlock("div",dA,[l.renderSlot(L.$slots,"loader",l.normalizeProps(l.guardReactiveProps({isLoading:s.value,variant:"overlay",isModal:!1,currentIndex:o.value})),()=>[V[11]||(V[11]=l.createElementVNode("div",{class:"spinner-border text-primary mb-2",role:"status"},null,-1)),l.withDirectives((l.openBlock(),l.createElementBlock("span",hA,[...V[10]||(V[10]=[l.createTextVNode("Please wait...",-1)])])),[[z]])],!0)])):l.createCommentVNode("",!0)],2),r.hideControls?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",vA,[l.renderSlot(L.$slots,"controls",l.normalizeProps(l.guardReactiveProps({isFirstStep:A.value,isLastStep:E.value,isLoading:s.value,goToPrev:B,goToNext:I,finish:R,closeModal:w,setDisableClose:S})),()=>[l.createVNode(Xe,{variant:"outline-secondary",disabled:A.value||s.value,onClick:B},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prevText)),1)]),_:1},8,["disabled"]),l.createElementVNode("div",pA,[s.value?l.renderSlot(L.$slots,"loader",l.normalizeProps(l.mergeProps({key:0},{isLoading:s.value,variant:"inline",isModal:!1,currentIndex:o.value})),()=>[l.createElementVNode("div",gA,[l.withDirectives((l.openBlock(),l.createElementBlock("span",mA,[...V[12]||(V[12]=[l.createTextVNode("Loading...",-1)])])),[[z]])])],!0):l.createCommentVNode("",!0),E.value?(l.openBlock(),l.createBlock(Xe,{key:2,variant:"success",disabled:s.value,onClick:R},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.finishText)),1)]),_:1},8,["disabled"])):(l.openBlock(),l.createBlock(Xe,{key:1,variant:"primary",disabled:s.value,onClick:I},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.nextText)),1)]),_:1},8,["disabled"]))])],!0)]))])],6))}}},D_=Pt(yA,[["__scopeId","data-v-9f521663"]]),bA={class:"ab-wizard-step w-100 h-100 fade-in"},_A={__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(r){const e=r,t=l.inject("AbWizard");t||console.error("AbWizardStep must be used inside an <AbWizard> component.");const n=l.ref(Math.random().toString(36).substr(2,9)),a=l.ref(!1);l.provide("AbWizardStep",{id:n.value});const i={id:n.value,title:e.title,description:e.description,icon:e.icon,disableClose:e.disableClose};return l.onMounted(()=>{t&&t.registerStep(i)}),l.onUnmounted(()=>{t&&t.unregisterStep(n.value)}),t&&(l.watch(()=>t.activeStepId.value,o=>{a.value=o===n.value},{immediate:!0}),l.watch(()=>[e.title,e.description,e.icon,e.disableClose],([o,s,u,c])=>{t.updateStep(n.value,{title:o,description:s,icon:u,disableClose:c})})),(o,s)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",bA,[l.renderSlot(o.$slots,"default",{},void 0,!0)],512)),[[l.vShow,a.value]])}},M_=Pt(_A,[["__scopeId","data-v-2b4361c8"]]),E_={__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:r=>["left","right"].includes(r)},onSearch:{type:Function,default:null},isAjaxSearch:{type:Boolean,default:!1},hideSelected:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},emits:["update:modelValue","clear","change","select","search-change"],setup(r,{emit:e}){const t=r,n=l.useSlots(),a=l.useAttrs(),i=e,o=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,s=l.getCurrentInstance(),u=l.computed(()=>t.name||`input_${(s==null?void 0:s.uid)||o}`),c=l.computed(()=>t.containerClass!==void 0&&t.containerClass!==null?t.containerClass:ve.inputContainerClass??""),f=l.computed(()=>t.trueValue!==void 0&&t.trueValue!==null?t.trueValue:ve.trueValue??"Y"),d=l.computed(()=>t.falseValue!==void 0&&t.falseValue!==null?t.falseValue:ve.falseValue??"N"),h=l.computed(()=>t.size!==void 0&&t.size!==null?t.size:ve.size??"md"),v=l.computed(()=>{var g;return t.iconPosition!==void 0&&t.iconPosition!==null?t.iconPosition:((g=ve.input)==null?void 0:g.iconPosition)??"right"}),p=l.computed({get:()=>t.modelValue,set:g=>i("update:modelValue",g)});return(g,y)=>{var m,b,_,S,w;return l.openBlock(),l.createElementBlock(l.Fragment,null,[["text","password","email","number","url","textarea"].includes(r.type)?(l.openBlock(),l.createBlock(kr,{key:0,modelValue:p.value,"onUpdate:modelValue":y[0]||(y[0]=x=>p.value=x),label:r.label,placeholder:r.placeholder,hints:r.hints,name:u.value,isCodeInput:r.isCodeInput,maxlength:r.maxlength,minlength:r.minlength,rules:r.rules,type:r.type,isLeftIconBorder:r.isLeftIconBorder,isRightIconBorder:r.isRightIconBorder,passIconPosition:r.passIconPosition,isHideLabel:r.isHideLabel,iconPosition:v.value,as:r.type=="textarea"?"textarea":"",containerClass:c.value,size:h.value},l.createSlots({_:2},[(l.unref(n).label||r.label)&&!r.isHideLabel?{name:"label",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])]),key:"0"}:void 0,l.unref(n).icon?{name:"icon",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"icon")]),key:"1"}:void 0,l.unref(n).prefix||r.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])]),key:"2"}:void 0,l.unref(n).postfix||r.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])]),key:"3"}:void 0,l.unref(n).showPasswordIcon?{name:"showPasswordIcon",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"showPasswordIcon")]),key:"4"}:void 0,l.unref(n).hidePasswordIcon?{name:"hidePasswordIcon",fn:l.withCtx(()=>[l.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"])):l.createCommentVNode("",!0),["select","multiselect"].includes(r.type)?(l.openBlock(),l.createBlock(Za,{key:1,size:h.value,modelValue:p.value,"onUpdate:modelValue":y[1]||(y[1]=x=>p.value=x),options:r.options,label:r.label,placeholder:r.placeholder,hints:r.hints,name:u.value,id:(m=l.unref(a))==null?void 0:m.id,style:l.normalizeStyle((b=l.unref(a))==null?void 0:b.style),max:r.max,rules:r.rules,object:r.object,valueKey:r.valueKey,labelKey:r.labelKey,mode:r.type=="multiselect"?"tags":"single",disabled:(_=l.unref(a))==null?void 0:_.disabled,searchable:r.searchable,isLeftIconBorder:r.isLeftIconBorder,isRightIconBorder:r.isRightIconBorder,isHideLabel:r.isHideLabel,iconPosition:v.value,containerClass:c.value,onSearch:r.onSearch,isAjaxSearch:r.isAjaxSearch,hideSelected:r.hideSelected,loading:r.loading,appendToBody:r.appendToBody,onClear:y[2]||(y[2]=x=>i("clear",x)),onChange:y[3]||(y[3]=x=>i("change",x)),onSelect:y[4]||(y[4]=x=>i("select",x)),onSearchChange:y[5]||(y[5]=x=>i("search-change",x))},l.createSlots({_:2},[(l.unref(n).label||r.label)&&!r.isHideLabel?{name:"label",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])]),key:"0"}:void 0,l.unref(n).icon?{name:"icon",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"icon")]),key:"1"}:void 0,l.unref(n).prefix||r.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])]),key:"2"}:void 0,l.unref(n).postfix||r.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])]),key:"3"}:void 0,l.unref(n).option?{name:"option",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"option")]),key:"4"}:void 0,l.unref(n).singlelabel?{name:"singlelabel",fn:l.withCtx(()=>[l.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","onSearch","isAjaxSearch","hideSelected","loading","appendToBody"])):l.createCommentVNode("",!0),r.type=="tag"?(l.openBlock(),l.createBlock($v,{key:2,modelValue:p.value,"onUpdate:modelValue":y[6]||(y[6]=x=>p.value=x),size:h.value,label:r.label,name:u.value,isLeftIconBorder:r.isLeftIconBorder,isRightIconBorder:r.isRightIconBorder,id:(S=g.$attrs)==null?void 0:S.id,rules:r.rules,isHideLabel:r.isHideLabel,iconPosition:v.value,containerClass:c.value,options:r.options,placeholder:r.placeholder,max:r.max},l.createSlots({_:2},[(l.unref(n).label||r.label)&&!r.isHideLabel?{name:"label",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])]),key:"0"}:void 0,l.unref(n).icon?{name:"icon",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"icon")]),key:"1"}:void 0,l.unref(n).prefix||r.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])]),key:"2"}:void 0,l.unref(n).postfix||r.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])]),key:"3"}:void 0]),1032,["modelValue","size","label","name","isLeftIconBorder","isRightIconBorder","id","rules","isHideLabel","iconPosition","containerClass","options","placeholder","max"])):l.createCommentVNode("",!0),r.type=="checkbox"||r.type=="radio"?(l.openBlock(),l.createBlock(aa,{key:3,type:r.type,name:u.value,size:h.value,modelValue:p.value,"onUpdate:modelValue":y[7]||(y[7]=x=>p.value=x),val:r.val,options:r.options,limit:r.max,rules:r.rules,containerClass:c.value,isInline:r.isInline},l.createSlots({_:2},[l.unref(n).label||r.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])]),key:"0"}:void 0,l.unref(n).description||r.description?{name:"description",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.description)),1)])]),key:"1"}:void 0,l.unref(n).helptext||r.helptext?{name:"help-text",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"help-text",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.helptext)),1)])]),key:"2"}:void 0]),1032,["type","name","size","modelValue","val","options","limit","rules","containerClass","isInline"])):l.createCommentVNode("",!0),r.type=="toggle"||r.type=="switch"?(l.openBlock(),l.createBlock(gc,{key:4,size:h.value,name:u.value,id:(w=l.unref(a))==null?void 0:w.id,containerClass:c.value,trueValue:f.value,falseValue:d.value,modelValue:p.value,"onUpdate:modelValue":y[8]||(y[8]=x=>p.value=x)},l.createSlots({_:2},[l.unref(n).label||r.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])]),key:"0"}:void 0,l.unref(n).title||r.title?{name:"title",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"title",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.title)),1)])]),key:"1"}:void 0,l.unref(n).description||r.description?{name:"description",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.description)),1)])]),key:"2"}:void 0,l.unref(n).hints||r.hints?{name:"hints",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])]),key:"3"}:void 0]),1032,["size","name","id","containerClass","trueValue","falseValue","modelValue"])):l.createCommentVNode("",!0)],64)}}};function A_(){const r=l.ref("light"),e=a=>{r.value=a,document.documentElement.setAttribute("data-bs-theme",a),localStorage.setItem("theme",a)},t=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",n=()=>{e(r.value==="dark"?"light":"dark")};return l.onMounted(()=>{const a=localStorage.getItem("theme");e(a||t()),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",i=>{localStorage.getItem("theme")||e(i.matches?"dark":"light")})}),{theme:r,toggleTheme:n,applyTheme:e}}const SA=["title","aria-label"],wA={class:"apbd-dark-mode-toggler-inner"},N_={__name:"AbDarkModeToggler",props:{size:{type:String,default:"md",validator:r=>["xs","sm","md","lg","xl","2xl"].includes(r)}},setup(r){const{theme:e,toggleTheme:t}=A_();return(n,a)=>(l.openBlock(),l.createElementBlock("button",{class:l.normalizeClass(["apbd-dark-mode-toggler",`apbd-dark-mode-toggler-${r.size}`]),onClick:a[0]||(a[0]=(...i)=>l.unref(t)&&l.unref(t)(...i)),title:l.unref(e)==="dark"?"Switch to Light Mode":"Switch to Dark Mode","aria-label":l.unref(e)==="dark"?"Switch to Light Mode":"Switch to Dark Mode"},[l.createElementVNode("div",wA,[l.unref(e)==="dark"?l.renderSlot(n.$slots,"dark-icon",{key:0},()=>[l.createVNode(l.unref(LT),{class:"apbd-dark-mode-toggler-icon sun-icon"})]):l.renderSlot(n.$slots,"light-icon",{key:1},()=>[l.createVNode(l.unref(NT),{class:"apbd-dark-mode-toggler-icon moon-icon"})])])],10,SA))}},xA={},CA={class:"success-icon"};function kA(r,e){return l.openBlock(),l.createElementBlock("div",CA,[...e[0]||(e[0]=[l.createElementVNode("svg",{viewBox:"0 0 52 52"},[l.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),l.createElementVNode("path",{class:"check",fill:"none",d:"M14 27l7 7 16-16"})],-1)])])}const I_=Pt(xA,[["render",kA],["__scopeId","data-v-625203d4"]]),TA={},DA={class:"error-icon"};function MA(r,e){return l.openBlock(),l.createElementBlock("div",DA,[...e[0]||(e[0]=[l.createElementVNode("svg",{viewBox:"0 0 52 52"},[l.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),l.createElementVNode("path",{class:"cross line1",fill:"none",d:"M16 16 36 36"}),l.createElementVNode("path",{class:"cross line2",fill:"none",d:"M36 16 16 36"})],-1)])])}const B_=Pt(TA,[["render",MA],["__scopeId","data-v-60bee436"]]),EA={},AA={class:"warn-icon"};function NA(r,e){return l.openBlock(),l.createElementBlock("div",AA,[...e[0]||(e[0]=[l.createElementVNode("svg",{viewBox:"0 0 52 52"},[l.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),l.createElementVNode("line",{class:"line",x1:"26",y1:"16",x2:"26",y2:"30"}),l.createElementVNode("circle",{class:"dot",cx:"26",cy:"36",r:"2"})],-1)])])}const L_=Pt(EA,[["render",NA],["__scopeId","data-v-f340f7e1"]]),IA={},BA={class:"info-icon"};function LA(r,e){return l.openBlock(),l.createElementBlock("div",BA,[...e[0]||(e[0]=[l.createElementVNode("svg",{viewBox:"0 0 52 52"},[l.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),l.createElementVNode("line",{class:"line",x1:"26",y1:"22",x2:"26",y2:"34"}),l.createElementVNode("circle",{class:"dot",cx:"26",cy:"16",r:"2"})],-1)])])}const V_=Pt(IA,[["render",LA],["__scopeId","data-v-ad8f3cce"]]),VA={},PA={class:"question-icon"};function RA(r,e){return l.openBlock(),l.createElementBlock("div",PA,[...e[0]||(e[0]=[l.createElementVNode("svg",{viewBox:"0 0 52 52"},[l.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),l.createElementVNode("path",{class:"curve",fill:"none",d:"M20 20a6 6 0 1 1 10 4c-2 2-4 3-4 6"}),l.createElementVNode("circle",{class:"dot",cx:"26",cy:"36",r:"2"})],-1)])])}const P_=Pt(VA,[["render",RA],["__scopeId","data-v-e4a05fc5"]]),OA={class:"ms-1"},zA={key:0,class:"mb-3 d-flex justify-content-center"},$A={key:1,class:"fw-bold mb-2"},FA={class:"d-flex justify-content-center align-items-center mt-3 gap-2"},HA={__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(r,{emit:e}){const t=r,n=e,a=()=>({msg:t.msg,title:t.title,confirmText:t.confirmText,cancelText:t.cancelText,type:t.type,icon:t.icon,onConfirm:t.onConfirm,buttonClass:"",loading:!1}),i=l.reactive(a());function o(){Object.assign(i,a())}const s=l.computed(()=>({success:I_,error:B_,warning:L_,info:V_,question:P_})[i.icon]||i.icon),u=l.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:t.itemData,closePopover:d});return}if((i.type==="confirm"||i.type==="confirm-ajax")&&i.onConfirm){i.loading=!0;try{const h=await i.onConfirm(t.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)=>(l.openBlock(),l.createBlock(hi,{onHide:o,onShow:o},{content:l.withCtx(({close:v})=>[l.createElementVNode("div",{class:l.normalizeClass(["apbd-confirm-popover p-3",{"apbd-loading-parent":i.loading}])},[i.icon&&i.type==="alert"?(l.openBlock(),l.createElementBlock("div",zA,[l.createElementVNode("div",{class:l.normalizeClass(`icon-circle ${u.value}`),style:{width:"40px",height:"40px",display:"flex","align-items":"center","justify-content":"center","border-radius":"50%",margin:"0 auto"}},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.value)))],2)])):l.createCommentVNode("",!0),i.title?(l.openBlock(),l.createElementBlock("div",$A,l.toDisplayString(l.unref(ot)(i.title)),1)):l.createCommentVNode("",!0),l.createElementVNode("div",null,l.toDisplayString(l.unref(ot)(i.msg)),1),l.renderSlot(d.$slots,"desc",{},void 0,!0),l.createElementVNode("div",FA,[l.renderSlot(d.$slots,"actionButtons",{removeConfirmed:()=>f(v),state:i},()=>[l.createVNode(Xe,{class:l.normalizeClass(["btn-sm btn-danger",i.buttonClass]),isAnimated:i.loading,onClick:p=>f(v),disabled:i.loading},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(ot)(i.confirmText)),1)]),_:1},8,["class","isAnimated","onClick","disabled"]),i.type==="confirm"||i.type==="confirm-ajax"?(l.openBlock(),l.createBlock(Xe,{key:0,class:"btn-sm btn-light",onClick:v,disabled:i.loading},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(ot)(i.cancelText)),1)]),_:1},8,["onClick","disabled"])):l.createCommentVNode("",!0)],!0)])],2)]),default:l.withCtx(()=>[l.renderSlot(d.$slots,"default",{},()=>[l.createVNode(Xe,{type:"button",class:"btn-sm btn-danger d-inline-flex align-items-center"},{icon:l.withCtx(()=>[l.createVNode(l.unref(VT),{size:16})]),default:l.withCtx(()=>[l.createElementVNode("span",OA,l.toDisplayString(l.unref(ot)("Remove")),1)]),_:1})],!0)]),_:3}))}},R_=Pt(HA,[["__scopeId","data-v-e6dd4a44"]]),GA={name:"AbEasyModal",inheritAttrs:!1},O_=Object.assign(GA,{setup(r,{expose:e}){const t=l.ref(!1),n=()=>{t.value=!0},a=()=>{t.value=!1};return e({openModal:n,closeModal:a}),(i,o)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:"d-inline-block",onClick:n},[l.renderSlot(i.$slots,"action")]),t.value?(l.openBlock(),l.createBlock(zv,l.mergeProps({key:0},i.$attrs,{onClose:a}),l.createSlots({_:2},[i.$slots.title?{name:"headerTitle",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"title")]),key:"0"}:void 0,i.$slots.body?{name:"body",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"body")]),key:"1"}:void 0,i.$slots.footer?{name:"footer",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"footer",{closeModal:a,close:a})]),key:"2"}:void 0]),1040)):l.createCommentVNode("",!0)],64))}}),WA={key:0,class:"pricing-card-recommended-ribbon"},UA={key:1,class:"pricing-card-header"},YA={class:"pricing-badge-wrapper"},ZA={key:0,class:"pricing-badge"},XA={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"},jA={class:"pricing-title"},qA={key:2,class:"pricing-card-price"},KA={class:"price-wrapper"},QA={key:0,class:"price-regular"},JA={class:"price-amount"},eN={key:1,class:"price-frequency"},tN={key:3,class:"pricing-card-features"},rN={key:0,class:"pricing-feature-list"},nN={class:"feature-icon"},aN={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"},iN={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"},oN={class:"feature-text"},sN={key:4,class:"pricing-card-action"},lN={name:"AbPricingCard",inheritAttrs:!1},z_=Object.assign(lN,{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:r=>["default","minimal","highlighted","badge-price"].includes(r)},features:{type:Array,default:()=>[]}},setup(r){return(e,t)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps({class:["abpd-pricing-card",[{"is-active":r.active,"is-recommended":r.recommended,"is-highlighted":r.variant==="highlighted","is-minimal":r.variant==="minimal","is-badge-price":r.variant==="badge-price"},`is-${r.color}`]]},e.$attrs),[r.recommended?(l.openBlock(),l.createElementBlock("div",WA,[l.renderSlot(e.$slots,"recommended",{},()=>[t[0]||(t[0]=l.createTextVNode("Recommended",-1))])])):l.createCommentVNode("",!0),e.$slots.header||r.title?(l.openBlock(),l.createElementBlock("div",UA,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("div",YA,[l.renderSlot(e.$slots,"badge",{},()=>[r.badge||e.$slots["badge-icon"]?(l.openBlock(),l.createElementBlock("span",ZA,[l.renderSlot(e.$slots,"badge-icon",{},()=>[r.active?(l.openBlock(),l.createElementBlock("svg",XA,[...t[1]||(t[1]=[l.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):l.createCommentVNode("",!0)]),l.createTextVNode(" "+l.toDisplayString(r.badge),1)])):l.createCommentVNode("",!0)])]),l.createElementVNode("h3",jA,l.toDisplayString(r.title),1)])])):l.createCommentVNode("",!0),e.$slots.price||r.amount!==void 0?(l.openBlock(),l.createElementBlock("div",qA,[l.renderSlot(e.$slots,"price",{},()=>[l.createElementVNode("div",KA,[r.regularAmount!==void 0?(l.openBlock(),l.createElementBlock("span",QA,l.toDisplayString(r.regularAmount),1)):l.createCommentVNode("",!0),l.createElementVNode("span",JA,l.toDisplayString(r.amount),1),r.frequency?(l.openBlock(),l.createElementBlock("span",eN,l.toDisplayString(r.frequency),1)):l.createCommentVNode("",!0)])])])):l.createCommentVNode("",!0),e.$slots.features||r.features&&r.features.length?(l.openBlock(),l.createElementBlock("div",tN,[l.renderSlot(e.$slots,"features",{},()=>[r.features?(l.openBlock(),l.createElementBlock("ul",rN,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.features,(n,a)=>(l.openBlock(),l.createElementBlock("li",{key:a,class:l.normalizeClass({"is-disabled":n.disabled})},[l.createElementVNode("span",nN,[l.renderSlot(e.$slots,"feature-icon",{feature:n,index:a},()=>[n.disabled?(l.openBlock(),l.createElementBlock("svg",iN,[...t[3]||(t[3]=[l.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),l.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",aN,[...t[2]||(t[2]=[l.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1)])]))])]),l.createElementVNode("span",oN,l.toDisplayString(n.text||n),1)],2))),128))])):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),e.$slots.action?(l.openBlock(),l.createElementBlock("div",sN,[l.renderSlot(e.$slots,"action")])):l.createCommentVNode("",!0)],16))}}),uN={class:"abpd-pricing-container"},cN={key:0,class:"pricing-toggle-wrapper"},fN={name:"AbPricingContainer"},$_=Object.assign(fN,{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(r){const e=r,t=l.computed(()=>Number(e.columns)>0),n=l.computed(()=>{const a={gap:e.gap,width:e.width,maxWidth:e.maxWidth};return e.itemWidth&&(a["--pricing-card-width"]=e.itemWidth),t.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)=>(l.openBlock(),l.createElementBlock("div",uN,[a.$slots.toggle?(l.openBlock(),l.createElementBlock("div",cN,[l.renderSlot(a.$slots,"toggle")])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["pricing-grid",{"is-grid":t.value}]),style:l.normalizeStyle(n.value)},[l.renderSlot(a.$slots,"default")],6)]))}}),dN={class:"apbd-pricing-table"},hN={class:"apbd-pricing-features-col d-none d-md-flex"},vN={class:"apbd-pricing-feature-list"},pN={class:"apbd-pricing-packages"},gN={key:0,class:"apbd-package-badge"},mN={class:"apbd-package-header"},yN={class:"apbd-package-name"},bN={class:"apbd-package-price"},_N={key:0,class:"apbd-package-regular-price"},SN={class:"apbd-package-features"},wN={class:"d-md-none me-2"},xN={key:0,class:"bi bi-check-circle-fill apbd-check-icon"},CN={key:1,class:"bi bi-x-circle apbd-cross-icon"},kN={class:"apbd-package-footer"},TN=["href","onClick"],DN=["onClick"],MN={key:1,class:"apbd-package-alt-text"},F_={__name:"AbPricingTable",props:{features:{type:Array,required:!0},packages:{type:Array,required:!0}},emits:["select-package"],setup(r,{emit:e}){const t=e,n=a=>{t("select-package",a)};return(a,i)=>{const o=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("div",dN,[l.createElementVNode("div",hN,[l.renderSlot(a.$slots,"features-header",{},()=>[i[0]||(i[0]=l.createElementVNode("div",{class:"apbd-features-header"},[l.createElementVNode("div",{class:"apbd-features-subtitle"},"Get Started"),l.createElementVNode("h3",{class:"apbd-features-title"},"Service Details")],-1))]),l.createElementVNode("div",vN,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.features,(s,u)=>(l.openBlock(),l.createElementBlock("div",{key:s.key,class:"apbd-pricing-feature-item"},[l.renderSlot(a.$slots,"feature-label",{feature:s},()=>[l.createTextVNode(l.toDisplayString(s.title),1)])]))),128))])]),l.createElementVNode("div",pN,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.packages,s=>(l.openBlock(),l.createElementBlock("div",{key:s.id,class:l.normalizeClass(["apbd-pricing-package-col",{"apbd-pricing-package-active":s.isActive}])},[l.renderSlot(a.$slots,"package-badge",{pkg:s},()=>[s.badge?(l.openBlock(),l.createElementBlock("div",gN,l.toDisplayString(s.badge),1)):l.createCommentVNode("",!0)]),l.renderSlot(a.$slots,"package-header",{pkg:s},()=>[l.createElementVNode("div",mN,[l.createElementVNode("div",yN,l.toDisplayString(s.name),1),l.createElementVNode("div",bN,[l.createTextVNode(" $"+l.toDisplayString(s.price)+" ",1),l.createElementVNode("span",null,"/ "+l.toDisplayString(s.billingCycle),1)]),s.regularPrice?(l.openBlock(),l.createElementBlock("div",_N," $"+l.toDisplayString(s.regularPrice),1)):l.createCommentVNode("",!0)])]),l.createElementVNode("div",SN,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.features,(u,c)=>(l.openBlock(),l.createElementBlock("div",{key:u.key,class:"apbd-package-feature-item"},[l.createElementVNode("span",wN,l.toDisplayString(u.title)+":",1),l.renderSlot(a.$slots,"package-feature",{pkg:s,feature:u},()=>[s.features&&s.features[u.key]==="Y"?(l.openBlock(),l.createElementBlock("i",xN)):s.features&&s.features[u.key]==="N"?(l.openBlock(),l.createElementBlock("i",CN)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.createTextVNode(" - ")],64))])]))),128))]),l.renderSlot(a.$slots,"package-footer",{pkg:s},()=>[l.createElementVNode("div",kN,[s.showButton!==!1?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[s.buttonLink&&s.buttonLink.startsWith("/")?(l.openBlock(),l.createBlock(o,{key:0,to:s.buttonLink,class:"apbd-btn btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:u=>n(s)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(s.buttonText||"Choose Plan"),1)]),_:2},1032,["to","onClick"])):s.buttonLink?(l.openBlock(),l.createElementBlock("a",{key:1,href:s.buttonLink,target:"_blank",rel:"noopener noreferrer",class:"apbd-btn btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:u=>n(s)},l.toDisplayString(s.buttonText||"Choose Plan"),9,TN)):(l.openBlock(),l.createElementBlock("button",{key:2,class:"apbd-btn btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:u=>n(s)},l.toDisplayString(s.buttonText||"Choose Plan"),9,DN))],64)):s.altButtonText?(l.openBlock(),l.createElementBlock("span",MN,l.toDisplayString(s.altButtonText),1)):l.createCommentVNode("",!0)])])],2))),128))])])}}};/*! *****************************************************************************
|
|
231
|
+
*/const $a=Ie("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),OT={class:"d-flex align-items-center"},zT={class:"d-flex align-items-center"},$T={class:"d-flex align-items-center"},FT={class:"d-flex align-items-center"},Ov={__name:"AbResponseMsg",props:{message:{type:Object,default:()=>({})},disableRemove:{type:Boolean,default:!1}},emits:["removeInfo"],setup(r,{emit:e}){const t=r,n=(a,i)=>{var o,s,u,c;a==="error"&&((o=t.message)==null?void 0:o.error.length)>0&&i>=0&&i<t.message.error.length&&t.message.error.splice(i,1),a==="info"&&((s=t.message)==null?void 0:s.info.length)>0&&i>=0&&i<t.message.info.length&&t.message.info.splice(i,1),a==="debug"&&((u=t.message)==null?void 0:u.debug.length)>0&&i>=0&&i<t.message.debug.length&&t.message.debug.splice(i,1),a==="warning"&&((c=t.message)==null?void 0:c.warning.length)>0&&i>=0&&i<t.message.warning.length&&t.message.warning.splice(i,1)};return(a,i)=>{var o,s,u,c;return l.openBlock(),l.createElementBlock(l.Fragment,null,[(o=r.message)!=null&&o.error?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(r.message.error,(f,d)=>(l.openBlock(),l.createElementBlock("div",{class:"alert alert-danger p-2 justify-content-between d-flex align-items-center",key:d},[l.createElementVNode("div",OT,[l.createVNode(l.unref(wT),{class:"me-1"}),l.createTextVNode(l.toDisplayString(f),1)]),r.disableRemove?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref($a),{key:0,class:"cursor-pointer",onClick:h=>n("error",d)},null,8,["onClick"]))]))),128)):l.createCommentVNode("",!0),(s=r.message)!=null&&s.info?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(r.message.info,(f,d)=>(l.openBlock(),l.createElementBlock("div",{class:"alert alert-success p-2 justify-content-between d-flex align-items-center",key:d},[l.createElementVNode("div",zT,[l.createVNode(l.unref(xT),{class:"me-1"}),l.createTextVNode(l.toDisplayString(f),1)]),r.disableRemove?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref($a),{key:0,class:"cursor-pointer",onClick:h=>n("info",d)},null,8,["onClick"]))]))),128)):l.createCommentVNode("",!0),(u=r.message)!=null&&u.debug?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:2},l.renderList(r.message.debug,(f,d)=>(l.openBlock(),l.createElementBlock("div",{class:"alert alert-info p-2 justify-content-between d-flex align-items-center",key:d},[l.createElementVNode("div",$T,[l.createVNode(l.unref(CT),{class:"me-1"}),l.createTextVNode(l.toDisplayString(f),1)]),r.disableRemove?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref($a),{key:0,class:"cursor-pointer",onClick:h=>n("debug",d)},null,8,["onClick"]))]))),128)):l.createCommentVNode("",!0),(c=r.message)!=null&&c.warning?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:3},l.renderList(r.message.warning,(f,d)=>(l.openBlock(),l.createElementBlock("div",{class:"alert alert-warning p-2 mb-2 justify-content-between d-flex align-items-center",key:d},[l.createElementVNode("div",FT,[l.createVNode(l.unref(rs),{class:"me-1"}),l.createTextVNode(l.toDisplayString(f),1)]),r.disableRemove?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref($a),{key:0,class:"cursor-pointer",onClick:h=>n("warning",d)},null,8,["onClick"]))]))),128)):l.createCommentVNode("",!0)],64)}}},Pt=(r,e)=>{const t=r.__vccOpts||r;for(const[n,a]of e)t[n]=a;return t},HT={name:"AbModal",components:{AbResponseMsg:Ov,Form:ut.Form},props:{isModalVisible:Boolean,modalSize:{type:String,default:""},modalMsg:{type:[String,Object],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:void 0},iconContainerClass:{type:String,default:""},headerClass:{type:String,default:""},headerrClass:{type:String,default:""}},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(r){console.log(r.message)}},effectiveIsModalBorder(){return this.isBorder!==void 0&&this.isBorder!==null?this.isBorder:ve.isModalBorder??!0}},mounted(){this.onLoading()},methods:{onSubmit(r,{resetForm:e}){this.$emit("onSubmit",{$event:r,resetForm:e,showMsgOnly:this.showMsgOnly,clearForm:this.clearForm,showLoader:this.showLoader})},onLoading(){this.$emit("onLoading",{showLoader:this.showLoader,clearForm:this.clearForm})},showLoader(r,e){this.isShowLoaderProp=r,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(r){console.log(r.message)}},returnClear(){this.modalMsgOnly={},this.isHideFooter=!1,this.$refs.modal_form.resetForm()},showMsgOnly(r,e){this.modalMsgOnly=r,this.isHideFooter=e},setMessageOnly(r){this.isHideFooter=r}}},GT={class:"modal-content"},WT={key:0,class:"d-flex flex-column header-title-container"},UT={class:"m-0 header-title"},YT={key:0,class:"m-0 header-sub-title"},ZT={class:"modal-loader"},XT={class:"loader-content"},jT={key:1,class:"modal-footer"},qT={key:2,class:"modal-footer"};function KT(r,e,t,n,a,i){var c,f,d,h,v;const o=l.resolveComponent("AbResponseMsg"),s=l.resolveComponent("Form"),u=l.resolveDirective("translate");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:"modal fade show apbd-modal"},r.$attrs,{class:{"modal-border-0":!i.effectiveIsModalBorder},tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle","aria-hidden":"true"}),[l.createElementVNode("div",l.mergeProps(r.$attrs,{class:[t.modalSize+(t.isModalCenter?" modal-dialog-centered":""),"modal-dialog"],role:"document"}),[l.createElementVNode("div",GT,[(c=r.$slots)!=null&&c.header||(f=r.$slots)!=null&&f.headerIcon||(d=r.$slots)!=null&&d.headerTitleContainer||(h=r.$slots)!=null&&h.headerTitle||(v=r.$slots)!=null&&v.headerSubTitle?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["modal-header",i.resolvedHeaderClass])},[l.renderSlot(r.$slots,"header",{},()=>{var p;return[l.createElementVNode("div",{class:l.normalizeClass([(p=r.$slots)!=null&&p.headerSubTitle?"align-items-start":"align-items-center","d-flex align-self-stretch gap-3"])},[r.$slots.headerIcon?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["header-icon-container",t.iconContainerClass])},[l.renderSlot(r.$slots,"headerIcon")],2)):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"headerTitleContainer",{},()=>{var g,y,m;return[(g=r.$slots)!=null&&g.headerTitle||(y=r.$slots)!=null&&y.headerSubTitle?(l.openBlock(),l.createElementBlock("div",WT,[l.createElementVNode("h3",UT,[l.renderSlot(r.$slots,"headerTitle")]),(m=r.$slots)!=null&&m.headerSubTitle?(l.openBlock(),l.createElementBlock("p",YT,[l.renderSlot(r.$slots,"headerSubTitle")])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)]})],2)]}),i.isHideBtn?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:e[0]||(e[0]=(...p)=>i.close&&i.close(...p))}))],2)):l.createCommentVNode("",!0),l.createVNode(s,{as:t.hideForm?"div":"form",ref:"modal_form",onSubmit:i.onSubmit,onReset:i.clearForm,class:"needs-validation"},{default:l.withCtx(()=>[t.hideBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["modal-body",t.bodyClass])},[l.createVNode(o,{"disable-remove":!0,message:a.modalMsgOnly||t.modalMsg},null,8,["message"]),a.isHideFooter?l.createCommentVNode("",!0):l.renderSlot(r.$slots,"body",{key:0},()=>[e[2]||(e[2]=l.createTextVNode(" This is the default body! ",-1))]),l.withDirectives(l.createElementVNode("div",ZT,[l.createElementVNode("div",XT,[l.renderSlot(r.$slots,"loader")])],512),[[l.vShow,i.isShowLoader]])],2)),!t.hideFooter&&!a.isHideFooter&&!i.isShowLoader?(l.openBlock(),l.createElementBlock("div",jT,[l.renderSlot(r.$slots,"footer",{close:i.close},()=>[e[3]||(e[3]=l.createTextVNode(" This is the default footer! ",-1))])])):l.createCommentVNode("",!0),!t.hideFooter&&(a.isHideFooter||i.isShowLoader)?(l.openBlock(),l.createElementBlock("div",qT,[l.withDirectives((l.openBlock(),l.createElementBlock("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal",onClick:e[1]||(e[1]=(...p)=>i.close&&i.close(...p))},[...e[4]||(e[4]=[l.createTextVNode(" Close ",-1)])])),[[u]])])):l.createCommentVNode("",!0)]),_:3},8,["as","onSubmit","onReset"])])],16)],16)}const zv=Pt(HT,[["render",KT]]),QT=["aria-valuenow","aria-valuemin","aria-valuemax"],e_=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:r=>["success","danger","info","warning","primary","secondary"].includes(r)},size:{type:String,default:void 0,validator:r=>["xs","sm","md","lg","xl","xxl"].includes(r)}},setup(r){const e=l.useAttrs(),t=l.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(s=>e.class[s])).filter(s=>!["progress-right","progress-right-bottom","progress-right-top","progress-value-bottom","progress-value-top"].includes(s))),a.value&&i.push(`apbd-progress-${a.value}`),i}),n=r,a=l.computed(()=>n.size!==void 0&&n.size!==null?n.size:ve.size??"md");return(i,o)=>{var s,u,c,f,d;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["apbd-progress-container",{"progress-right":(s=l.unref(e).class)==null?void 0:s.includes("progress-right"),"progress-right-bottom":(u=l.unref(e).class)==null?void 0:u.includes("progress-right-bottom"),"progress-right-top":(c=l.unref(e).class)==null?void 0:c.includes("progress-right-top"),"progress-value-bottom":(f=l.unref(e).class)==null?void 0:f.includes("progress-value-bottom"),"progress-value-top":(d=l.unref(e).class)==null?void 0:d.includes("progress-value-top")}])},[l.createElementVNode("div",{class:l.normalizeClass(["apbd-progress progress",t.value]),role:"progressbar","aria-valuenow":r.progressValue,"aria-valuemin":r.minValue,"aria-valuemax":r.maxValue},[l.createElementVNode("div",{class:l.normalizeClass(["progress-bar",`bg-${r.color}`]),style:l.normalizeStyle({width:r.progressValue+"%"})},null,6)],10,QT),l.createElementVNode("div",{class:"progress-text",style:l.normalizeStyle({"--progress-value":r.progressValue+"%"})},[l.renderSlot(i.$slots,"default")],4)],2)}}});let Jd=null;const t_=r=>{Jd=r},JT=r=>{const e=j1.createGettext(r);return t_(e),e},r_=()=>{if(l.getCurrentInstance())try{return j1.useGettext()}catch{}return Jd||(console.warn("AbTranslate: gettext not initialized. Call initTranslate() in your app setup."),{$gettext:r=>r,interpolate:r=>r})},ot=(r,e)=>{const{$gettext:t,interpolate:n}=r_();return typeof e>"u"&&(e={}),Object.keys(e).forEach(a=>{e[a]=t(e[a])}),n(t(r),e)},F=(r,e)=>{const{$gettext:t,interpolate:n}=r_();return typeof e>"u"&&(e={}),n(t(r),e)},eD=["for"],tD={key:0,class:"input-group-text left"},rD={key:1,class:"input-group-text left"},nD={key:3,class:"input-group-text right"},aD={key:5,class:"input-group-text right"},iD={key:1,class:"form-text"},oD={name:"AbInputField",inheritAttrs:!1,emits:["input","keyup","keydown","paste","update:modelValue"],components:{Field:ut.Field,ErrorMessage:ut.ErrorMessage,Eye:Qd,EyeOff:Kd},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:r=>["xs","sm","md","lg","xl","xxl"].includes(r)},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:r=>["left","right"].includes(r)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:r=>["left","right"].includes(r)}},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:ve.inputContainerClass??""},effectiveSize(){return this.size!==void 0&&this.size!==null?this.size:ve.size??"md"},effectiveIconPosition(){var r;return this.iconPosition!==void 0&&this.iconPosition!==null?this.iconPosition:((r=ve.input)==null?void 0:r.iconPosition)??"right"},generatedName(){return this.name||`input_${this.$.uid||this.uniqueId}`},internalValue:{get(){return this.modelValue},set(r){this.$emit("update:modelValue",r)}},dynamicType(){return this.isPass?this.showPassword?"text":"password":this.type},dynamicIconBorder(){return!this.$slots.prefix&&!this.$slots.postfix&&!this.prefix&&!this.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 r=this.$el.querySelector('[data-bs-toggle="dropdown"]');r&&new aT.Dropdown(r)}},methods:{passVisibility(){this.internalValue&&(this.showPassword=!this.showPassword)}}},kr=Object.assign(oD,{setup(r){return(e,t)=>{var n,a,i,o,s,u,c,f,d,h,v,p,g;return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:[e.effectiveContainerClass,e.dynamicIconBorder]},e.$attrs,{class:"apbd-input-container"}),[(r.label||e.$slots.label)&&!r.isHideLabel?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:(n=e.$attrs)==null?void 0:n.id},[l.renderSlot(e.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,eD)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass({"input-group":((a=e.$slots)==null?void 0:a.prefix)||((i=e.$slots)==null?void 0:i.postfix)||((o=e.$slots)==null?void 0:o.icon)||r.prefix||r.postfix||r.type=="password"})},[(s=e.$slots)!=null&&s.icon&&e.effectiveIconPosition==="left"?(l.openBlock(),l.createElementBlock("span",tD,[l.renderSlot(e.$slots,"icon")])):l.createCommentVNode("",!0),(u=e.$slots)!=null&&u.prefix||r.prefix?(l.openBlock(),l.createElementBlock("span",rD,[l.renderSlot(e.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])])):l.createCommentVNode("",!0),e.isPass&&r.passIconPosition==="left"?(l.openBlock(),l.createElementBlock("span",{key:2,class:"input-group-text pass-icon left",onClick:t[0]||(t[0]=(...y)=>e.passVisibility&&e.passVisibility(...y))},[e.showPassword?l.renderSlot(e.$slots,"showPasswordIcon",{key:0},()=>[l.createVNode(l.unref(Qd))]):l.createCommentVNode("",!0),e.showPassword?l.createCommentVNode("",!0):l.renderSlot(e.$slots,"hidePasswordIcon",{key:1},()=>[l.createVNode(l.unref(Kd))])])):l.createCommentVNode("",!0),l.createVNode(l.unref(ut.Field),{class:l.normalizeClass(["form-control",[(c=e.$attrs)==null?void 0:c.class,e.effectiveSize?`form-control-${e.effectiveSize}`:"",{"mega-input-field":r.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:l.normalizeStyle((v=e.$attrs)==null?void 0:v.style),placeholder:l.unref(F)(r.placeholder),label:l.unref(F)(r.label??r.type),name:e.generatedName,value:r.modelValue,maxlength:r.maxlength,onInput:t[1]||(t[1]=y=>(e.$emit("input",y.target.value),e.$emit("update:modelValue",y))),onKeyup:t[2]||(t[2]=y=>e.$emit("keyup",y)),onKeydown:t[3]||(t[3]=y=>e.$emit("keydown",y)),onPaste:t[4]||(t[4]=y=>e.$emit("paste",y)),modelValue:e.internalValue,"onUpdate:modelValue":t[5]||(t[5]=y=>e.internalValue=y),rules:r.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||r.postfix?(l.openBlock(),l.createElementBlock("span",nD,[l.renderSlot(e.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])])):l.createCommentVNode("",!0),e.isPass&&r.passIconPosition==="right"?(l.openBlock(),l.createElementBlock("span",{key:4,class:"input-group-text pass-icon right",onClick:t[6]||(t[6]=(...y)=>e.passVisibility&&e.passVisibility(...y))},[e.showPassword?l.renderSlot(e.$slots,"showPasswordIcon",{key:0},()=>[l.createVNode(l.unref(Qd))]):l.createCommentVNode("",!0),e.showPassword?l.createCommentVNode("",!0):l.renderSlot(e.$slots,"hidePasswordIcon",{key:1},()=>[l.createVNode(l.unref(Kd))])])):l.createCommentVNode("",!0),(g=e.$slots)!=null&&g.icon&&e.effectiveIconPosition==="right"?(l.openBlock(),l.createElementBlock("span",aD,[l.renderSlot(e.$slots,"icon")])):l.createCommentVNode("",!0)],2),l.createVNode(l.unref(ut.ErrorMessage),{name:e.generatedName,class:"apbd-v-error"},null,8,["name"]),r.hints||e.$slots.hints?(l.openBlock(),l.createElementBlock("div",iD,[l.renderSlot(e.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])):l.createCommentVNode("",!0)],16)}}}),sD=["for"],lD={key:0,class:"input-group-text left"},uD=["disabled"],cD=["disabled"],fD={key:3,class:"input-group-text right"},dD={key:1,class:"form-text"},hD={name:"AbNumberField",inheritAttrs:!1,components:{Field:ut.Field,ErrorMessage:ut.ErrorMessage,PlusIcon:pc,MinusIcon:J1},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(r){this.$emit("update:modelValue",r)}},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(r){let e=r.target.value;if(e===""){this.internalValue=null;return}let t=parseFloat(e);this.max!==null&&t>parseFloat(this.max)&&(t=parseFloat(this.max)),this.min!==null&&t<parseFloat(this.min)&&(t=parseFloat(this.min)),this.internalValue=t,this.$emit("input",t),this.$emit("update:modelValue",t)},increment(){const r=parseFloat(this.internalValue)||0,e=parseFloat(this.step)||1;let t=r+e;this.max!==null&&(t=Math.min(t,parseFloat(this.max))),this.internalValue=t},decrement(){const r=parseFloat(this.internalValue)||0,e=parseFloat(this.step)||1;let t=r-e;this.min!==null&&(t=Math.max(t,parseFloat(this.min))),this.internalValue=t}}},n_=Object.assign(hD,{setup(r){return(e,t)=>{var n,a,i,o,s,u,c,f,d,h;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([[r.containerClass,e.dynamicIconBorder,{"apbd-number-field-bordered":r.isBorder}],"apbd-input-container apbd-number-field"])},[r.label||e.$slots.label?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:((n=e.$attrs)==null?void 0:n.id)||e.generatedName},[l.renderSlot(e.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,sD)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass({"input-group":((a=e.$slots)==null?void 0:a.prefix)||((i=e.$slots)==null?void 0:i.postfix)||r.prefix||r.postfix||r.showButtons})},[(o=e.$slots)!=null&&o.prefix||r.prefix?(l.openBlock(),l.createElementBlock("span",lD,[l.renderSlot(e.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])])):l.createCommentVNode("",!0),r.showButtons?(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:"btn apbd-number-btn apbd-number-btn-minus input-group-text left",onClick:t[0]||(t[0]=(...v)=>e.decrement&&e.decrement(...v)),disabled:r.disabled||r.min!==null&&e.internalValue<=r.min},[l.createVNode(l.unref(J1))],8,uD)):l.createCommentVNode("",!0),l.createVNode(l.unref(ut.Field),{class:l.normalizeClass(["form-control",[(s=e.$attrs)==null?void 0:s.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:l.normalizeStyle((d=e.$attrs)==null?void 0:d.style),placeholder:l.unref(F)(r.placeholder),label:l.unref(F)(r.label??e.type),name:e.generatedName,value:r.modelValue,min:r.min,max:r.max,step:r.step,onInput:e.handleInput,onKeyup:t[1]||(t[1]=v=>e.$emit("keyup",v)),onKeydown:t[2]||(t[2]=v=>e.$emit("keydown",v)),onPaste:t[3]||(t[3]=v=>e.$emit("paste",v)),modelValue:e.internalValue,"onUpdate:modelValue":t[4]||(t[4]=v=>e.internalValue=v),rules:r.rules,type:"number"},null,8,["class","disabled","id","as","style","placeholder","label","name","value","min","max","step","onInput","modelValue","rules"]),r.showButtons?(l.openBlock(),l.createElementBlock("button",{key:2,type:"button",class:"btn apbd-number-btn apbd-number-btn-plus input-group-text right",onClick:t[5]||(t[5]=(...v)=>e.increment&&e.increment(...v)),disabled:r.disabled||r.max!==null&&e.internalValue>=r.max},[l.createVNode(l.unref(pc))],8,cD)):l.createCommentVNode("",!0),(h=e.$slots)!=null&&h.postfix||r.postfix?(l.openBlock(),l.createElementBlock("span",fD,[l.renderSlot(e.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])])):l.createCommentVNode("",!0)],2),l.createVNode(l.unref(ut.ErrorMessage),{name:e.generatedName,class:"apbd-v-error"},null,8,["name"]),r.hints||e.$slots.hints?(l.openBlock(),l.createElementBlock("div",dD,[l.renderSlot(e.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])):l.createCommentVNode("",!0)],2)}}});function a_(r,e,t={}){const n=l.ref({position:"absolute",top:"0px",left:"0px"}),a=l.ref({arrow:{x:null,y:null}}),i=l.ref(l.unref(t.placement)||"bottom");let o=null,s=null;const u=()=>({placement:l.unref(t.placement)||"bottom",offset:l.unref(t.offset)||0,arrowElement:l.unref(t.arrowElement),arrowPadding:l.unref(t.arrowPadding)||0,shiftPadding:l.unref(t.shiftPadding)||8,flip:l.unref(t.flip)!==!1,autoPlacement:l.unref(t.autoPlacement),alignment:l.unref(t.alignment)}),c=async()=>{const d=l.unref(r),h=l.unref(e);if(!d||!h)return;await l.nextTick();const v=u(),p=d.getBoundingClientRect(),g=h.getBoundingClientRect(),y=h.offsetWidth||g.width,m=h.offsetHeight||g.height,b=window.scrollX||document.documentElement.scrollLeft,_=window.scrollY||document.documentElement.scrollTop;let S=v.placement;if(!S||S.startsWith("auto")){const E=p.top;S=window.innerHeight-p.bottom>E?"bottom":"top",v.alignment&&(S+="-"+v.alignment)}let[w,x]=S.split("-"),C=0,k=0;const T=Number(v.offset),D=(E,I)=>{let B,R;switch(E){case"top":B=p.left+p.width/2-y/2,R=p.top-m-T;break;case"bottom":B=p.left+p.width/2-y/2,R=p.bottom+T;break;case"left":B=p.left-y-T,R=p.top+p.height/2-m/2;break;case"right":B=p.right+T,R=p.top+p.height/2-m/2;break}return E==="top"||E==="bottom"?(I==="start"&&(B=p.left),I==="end"&&(B=p.right-y)):(E==="left"||E==="right")&&(I==="start"&&(R=p.top),I==="end"&&(R=p.bottom-m)),{x:B,y:R}};let M=D(w,x);if(C=M.x,k=M.y,v.flip){let E=!1;w==="top"&&k<0?(w="bottom",E=!0):w==="bottom"&&k+m>window.innerHeight?(w="top",E=!0):w==="left"&&C<0?(w="right",E=!0):w==="right"&&C+y>window.innerWidth&&(w="left",E=!0),E&&(M=D(w,x),C=M.x,k=M.y)}const A=v.shiftPadding;if(w==="top"||w==="bottom"?(C<A&&(C=A),C+y>window.innerWidth-A&&(C=window.innerWidth-y-A)):(w==="left"||w==="right")&&(k<A&&(k=A),k+m>window.innerHeight-A&&(k=window.innerHeight-m-A)),i.value=x?`${w}-${x}`:w,n.value={position:"absolute",left:`${C+b}px`,top:`${k+_}px`},v.arrowElement){const E=l.unref(v.arrowElement);if(E){const I=E.getBoundingClientRect(),B=E.offsetWidth||I.width,R=E.offsetHeight||I.height;let P=null,L=null;w==="top"||w==="bottom"?(P=p.left+p.width/2-C-B/2,P=Math.max(v.arrowPadding,Math.min(P,y-B-v.arrowPadding))):(w==="left"||w==="right")&&(L=p.top+p.height/2-k-R/2,L=Math.max(v.arrowPadding,Math.min(L,m-R-v.arrowPadding))),a.value={arrow:{x:P,y:L}}}}},f=()=>{o&&cancelAnimationFrame(o),o=requestAnimationFrame(()=>{c()})};return l.onMounted(()=>{t.whileElementsMounted&&(window.addEventListener("scroll",f,!0),window.addEventListener("resize",f),window.ResizeObserver&&(s=new ResizeObserver(()=>f()),l.unref(e)&&s.observe(l.unref(e)),l.unref(r)&&s.observe(l.unref(r)))),c()}),l.onUnmounted(()=>{t.whileElementsMounted&&(window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f),s&&s.disconnect()),o&&cancelAnimationFrame(o)}),l.watch(()=>l.unref(t.placement),()=>c()),l.watch(()=>l.unref(t.offset),()=>c()),{floatingStyles:n,middlewareData:a,placement:i,update:c}}const Ks=new Set,vu={register(r){Ks.add(r)},unregister(r){Ks.delete(r)},hideAll(){Ks.forEach(r=>{r.hide&&r.hide()})},get count(){return Ks.size}},vD=()=>vu.hideAll(),pD={class:"apbd-popover-inner"},hi={__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(r,{expose:e,emit:t}){const n=r,a=t,i=M=>Array.isArray(n.trigger)?n.trigger.includes(M):n.trigger.split(" ").includes(M),o=l.ref(!1),s=l.ref(null),u=l.ref(null),c=l.ref(null),f=l.computed(()=>n.placement.startsWith("auto")),d=l.computed(()=>n.placement.split("-")[1]||void 0),h=l.ref(null),v=()=>{n.referenceSelector&&s.value?h.value=s.value.querySelector(n.referenceSelector)||s.value:h.value=s.value},{floatingStyles:p,middlewareData:g,placement:y,update:m}=a_(h,u,{placement:l.computed(()=>f.value?void 0:n.placement),offset:l.computed(()=>Number(n.gap!==null?n.gap:n.offset)),arrowElement:c,arrowPadding:l.computed(()=>n.arrowPadding),flip:!0,autoPlacement:f,alignment:d,whileElementsMounted:!0});l.watch(o,M=>{M&&l.nextTick(()=>{v(),m()})});const b=()=>{n.disabled||(o.value?S():_())},_=()=>{C(),o.value=!0,a("show"),a("update:modelValue",!0),n.autoHide&&!i("manual")&&setTimeout(()=>{document.addEventListener("click",k)},0)},S=()=>{o.value=!1,a("hide"),a("update:modelValue",!1),document.removeEventListener("click",k)};let w=null;const x=()=>{w=setTimeout(()=>{S()},300)},C=()=>{w&&(clearTimeout(w),w=null)},k=M=>{if(!o.value)return;const A=M.target,E=s.value&&s.value.contains(A),I=u.value&&u.value.contains(A);!E&&!I&&S()},T={show:_,hide:S,toggle:b};l.onMounted(()=>{v(),vu.register(T)}),l.onUnmounted(()=>{document.removeEventListener("click",k),w&&clearTimeout(w),vu.unregister(T)});const D=l.computed(()=>{if(!g.value.arrow)return{};const{x:M,y:A}=g.value.arrow,E=y.value||"bottom",I={top:"bottom",right:"left",bottom:"top",left:"right"}[E.split("-")[0]];let B={};return I==="bottom"&&(B={borderTopColor:"transparent",borderLeftColor:"transparent"}),I==="top"&&(B={borderBottomColor:"transparent",borderRightColor:"transparent"}),I==="left"&&(B={borderTopColor:"transparent",borderRightColor:"transparent"}),I==="right"&&(B={borderBottomColor:"transparent",borderLeftColor:"transparent"}),{left:M!=null?`${M}px`:"",top:A!=null?`${A}px`:"",right:"",bottom:"",[I]:"-5px",...B}});return e(T),(M,A)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:"apbd-popover-trigger",ref_key:"reference",ref:s,onClick:A[0]||(A[0]=E=>i("click")?b():null),onMouseenter:A[1]||(A[1]=E=>i("hover")?_():null),onMouseleave:A[2]||(A[2]=E=>i("hover")?x():null),onFocus:A[3]||(A[3]=E=>i("focus")?_():null),onBlur:A[4]||(A[4]=E=>i("focus")?x():null),onTouchstart:A[5]||(A[5]=E=>i("touch")?_():null),onTouchend:A[6]||(A[6]=E=>i("touch")?x():null)},[l.renderSlot(M.$slots,"default")],544),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"apbd-popover-fade"},{default:l.withCtx(()=>[o.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"floating",ref:u,style:l.normalizeStyle(l.unref(p)),class:l.normalizeClass(["appsbd-app apbd-popover-content",r.contentClass]),role:"dialog",onMouseenter:A[7]||(A[7]=E=>i("hover")?C():null),onMouseleave:A[8]||(A[8]=E=>i("hover")?x():null)},[l.createElementVNode("div",pD,[l.renderSlot(M.$slots,"content",{close:S,hide:S,show:_,toggle:b})]),r.arrow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"apbd-popover-arrow",ref_key:"floatingArrow",ref:c,style:l.normalizeStyle(D.value)},null,4)):l.createCommentVNode("",!0)],38)):l.createCommentVNode("",!0)]),_:3})]))],64))}},gD={key:0,class:"form-label"},mD=["for"],yD={key:0,class:"input-img"},bD=["src"],_D={key:0,class:"form-check-label"},SD={key:1,class:"description-text"},wD=["for"],xD={key:1,class:"description-text"},CD={key:1,class:"help-text"},aa=Object.assign({inheritAttrs:!1},{__name:"AbFormCheck",props:l.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:r=>["xs","sm","md","lg","xl"].includes(r)},iconSize:{type:String,default:"24px"},iconGap:{type:String,default:"10px"},variant:{type:String,default:"default"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["change"],["update:modelValue"]),setup(r,{emit:e}){const t=l.useAttrs(),n=l.useSlots(),a=l.useModel(r,"modelValue"),i=e;function o(){i("change",a.value)}const s=r,u=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,c=l.getCurrentInstance(),f=l.computed(()=>s.name||`formcheck_${(c==null?void 0:c.uid)||u}`),d=l.computed(()=>s.containerClass!==void 0&&s.containerClass!==null?s.containerClass:ve.inputContainerClass??""),h=l.computed(()=>s.size!==void 0&&s.size!==null?s.size:ve.size??"md"),v=l.computed(()=>s.variant==="card"||s.variant==="segmented"||s.variant==="pill"),p=l.ref(!1);function g(y){return p.value=!0,s.limit>1?Array.isArray(y)?[...y]:[]:y??""}return l.watch(()=>{s.val!==void 0&&s.val!==null&&(a.value===void 0||a.value===null||a.value===""||Array.isArray(a.value)&&a.value.length===0)&&(p.value||(a.value=g(s.val)))}),(y,m)=>{var b,_;return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:"apbd-checkbox"},l.unref(t),{class:[d.value,v.value?"apbd-radio-input-container":"",r.variant==="segmented"?"apbd-radio-segmented":"",r.variant==="pill"?"apbd-radio-pill":""],style:v.value?`--apbd-radio-input-icon-size:${r.iconSize};--apbd-radio-input-icon-gap:${r.iconGap};`:""}),[r.label||(b=l.unref(n))!=null&&b.label?(l.openBlock(),l.createElementBlock("label",gD,[l.renderSlot(y.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass([r.isInline?"inline":"",r.variant==="segmented"||r.variant==="pill"?"segmented-group":""])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.options,(S,w)=>{var x;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["form-check",l.unref(t).class]),key:w},[l.createVNode(l.unref(ut.Field),{class:l.normalizeClass(["form-check-input",`form-check-input-${h.value}`]),type:r.type,rules:r.rules,id:`${f.value}-${S.val}-${w}`,name:f.value,disabled:(S==null?void 0:S.disable)||r.type==="checkbox"&&r.limit>0&&((x=a.value)==null?void 0:x.length)>=r.limit&&!a.value.includes(S.val),modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=C=>a.value=C),value:S.val,onChange:o},null,8,["type","rules","class","id","name","disabled","modelValue","value"]),v.value?(l.openBlock(),l.createElementBlock("label",{key:0,class:"label-container",for:`${f.value}-${S.val}-${w}`},[S.img_src||S.icon||S.iconComponent||l.unref(n)[`input-img-${S.title}`]||l.unref(n)[`input-icon-${S.title}`]||l.unref(n)[`input-iconComponent-${S.title}`]?(l.openBlock(),l.createElementBlock("div",yD,[l.renderSlot(y.$slots,`input-icon-${S.title}`,{},()=>[S.img_src?(l.openBlock(),l.createElementBlock("img",{key:0,src:S.img_src,alt:""},null,8,bD)):l.createCommentVNode("",!0),S.icon?(l.openBlock(),l.createElementBlock("i",{key:1,class:l.normalizeClass(S.icon)},null,2)):l.createCommentVNode("",!0),S.iconComponent?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(S.iconComponent),{key:2})):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),l.createElementVNode("div",null,[S.title||l.unref(n)[`label-${S.title}`]?(l.openBlock(),l.createElementBlock("div",_D,[l.renderSlot(y.$slots,`label-${S.title}`,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(S.title)),1)])])):l.createCommentVNode("",!0),S!=null&&S.description||l.unref(n)[`description-${S.title}`]?(l.openBlock(),l.createElementBlock("div",SD,[l.renderSlot(y.$slots,`description-${S.title}`,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(S.description)),1)])])):l.createCommentVNode("",!0)])],8,mD)):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["d-flex flex-column",!(S!=null&&S.description)&&!l.unref(n).description?"justify-content-center":""])},[S.title?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-check-label",for:`${f.value}-${S.val}-${w}`},l.toDisplayString(l.unref(F)(S.title)),9,wD)):l.createCommentVNode("",!0),S!=null&&S.description||l.unref(n).description?(l.openBlock(),l.createElementBlock("div",xD,[l.renderSlot(y.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(S.description)),1)])])):l.createCommentVNode("",!0)],2))],2)}),128))],2),l.createVNode(l.unref(ut.ErrorMessage),{name:f.value,class:"apbd-v-error"},null,8,["name"]),(_=l.unref(n))!=null&&_.helptext?(l.openBlock(),l.createElementBlock("small",CD,[l.renderSlot(y.$slots,"help-text")])):l.createCommentVNode("",!0)],16)}}}),kD={class:"apbd-date-time-container"},TD=["for"],DD={class:"datetime-target-container"},MD={class:"placeholder-text"},ED={key:1,class:"form-text"},AD={class:"calendar-header"},ND={key:0},ID={key:1},BD={key:2},LD={key:0,class:"calendar-grid"},VD=["onClick","onMouseenter","onMouseleave"],PD={key:0,class:"cal-day-bg"},RD={key:1,class:"cal-day-text"},OD={key:2,class:"today-marker"},zD={key:1,class:"calendar-grid-month"},$D=["onClick"],FD={key:2,class:"calendar-grid-year"},HD=["onClick"],GD={key:0,class:"time-picker-header"},WD={class:"time-picker-controls"},UD=["value"],YD=["value"],ZD=["value"],XD=["value"],jD={class:"time-picker-actions"},qD=["onClick"],KD=["onClick"],QD=Object.assign({inheritAttrs:!1},{__name:"AbDateTimePicker",props:l.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:r=>["date","time","datetime"].includes(r)},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:r=>["xs","sm","md","lg","xl","xxl"].includes(r)},defaultIconPosition:{type:String,default:"right",validator:r=>["left","right"].includes(r)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:r=>["left","right"].includes(r)}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const e=l.useModel(r,"modelValue"),t=l.useAttrs(),n=l.useSlots(),a=l.ref(null),i=r,o=["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"],u=["S","M","T","W","T","F","S"],c=l.computed(()=>i.monthNames||ve.monthNames||o),f=l.computed(()=>i.monthNamesShort||ve.monthNamesShort||s),d=l.computed(()=>i.dayNames||ve.dayNames||u),h=l.computed(()=>i.rangeSeparator||ve.rangeSeparator||" ↔ "),v=l.computed(()=>i.is24Hour!==void 0&&i.is24Hour!==null?i.is24Hour:ve.is24Hour??!1),p=l.computed(()=>i.dataFormat?i.dataFormat:i.mode==="datetime"?ve.datetimeDataFormat||"YYYY-MM-DD HH:mm":i.mode==="time"?ve.timeDataFormat||"HH:mm":ve.dateDataFormat||"YYYY-MM-DD"),g=l.computed(()=>i.displayFormat?i.displayFormat:i.mode==="datetime"?ve.datetimeDisplayFormat||"YYYY-MM-DD HH:mm":i.mode==="time"?ve.timeDisplayFormat||"HH:mm":ve.dateDisplayFormat||"YYYY-MM-DD"),y=[{title:"AM",val:"AM"},{title:"PM",val:"PM"}],m=$=>{const U=i.formatDigit||ve.formatDigit;return!U||$===void 0||$===null?$:U($)},b=l.computed(()=>i.containerClass!==void 0&&i.containerClass!==null?i.containerClass:ve.inputContainerClass??""),_=l.computed(()=>i.size!==void 0&&i.size!==null?i.size:ve.size??"md"),S=l.computed(()=>{var $;return i.iconPosition!==void 0&&i.iconPosition!==null?i.iconPosition:(($=ve.input)==null?void 0:$.iconPosition)??"right"});l.computed(()=>t.class&&t.class=="form-control-sm"?"input-group-sm":t.class&&t.class=="form-control-lg"?"input-group-lg":""),l.onErrorCaptured(($,U,be)=>!1);const w=$=>$.toString().padStart(2,"0"),x=l.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=($,U,be)=>{if(!$&&!be)return"";const pe=$||new Date(2e3,0,1),ee=be?be.hour:0,Le=be?be.minute:0,Qe=ee===0?12:ee>12?ee-12:ee,xt=ee>=12?"PM":"AM",Je={YYYY:pe.getFullYear(),YY:String(pe.getFullYear()).slice(-2),MMMM:c.value[pe.getMonth()],MMM:f.value[pe.getMonth()],MM:w(pe.getMonth()+1),M:pe.getMonth()+1,DD:w(pe.getDate()),D:pe.getDate(),HH:w(ee),H:ee,hh:w(Qe),h:Qe,mm:w(Le),m:Le,ss:"00",A:xt,a:xt.toLowerCase()},Ze=["YYYY","YY","MMMM","MMM","MM","DD","HH","hh","mm","ss","M","D","H","h","m","A","a"];let ct="",Ve=U;for(;Ve.length>0;){let ft=null;for(const Bn of Ze)if(Ve.startsWith(Bn)){ft=Bn;break}ft?(ct+=Je[ft],Ve=Ve.slice(ft.length)):(ct+=Ve[0],Ve=Ve.slice(1))}return ct},k=($,U)=>{if(!$||typeof $!="string")return null;if($.match(/^\d{4}-\d{2}-\d{2}$/)){const dt=$.split("-");if(dt[0].length===4)return{date:new Date(parseInt(dt[0],10),parseInt(dt[1],10)-1,parseInt(dt[2],10)),hour:0,minute:0}}const be=["YYYY","YY","MMMM","MMM","MM","DD","HH","hh","mm","ss","M","D","H","h","m","A","a"],pe={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"},ee=[];let Le=U;for(;Le.length>0;){let dt=null;for(const ht of be)if(Le.startsWith(ht)){dt=ht;break}dt?(ee.push({type:"token",value:dt}),Le=Le.slice(dt.length)):(ee.length>0&&ee[ee.length-1].type==="literal"?ee[ee.length-1].value+=Le[0]:ee.push({type:"literal",value:Le[0]}),Le=Le.slice(1))}let Qe="^";const xt=[];for(const dt of ee)dt.type==="literal"?Qe+=dt.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"):(Qe+="("+pe[dt.value]+")",xt.push(dt.value));Qe+="$";const Je=$.match(new RegExp(Qe,"i"));if(!Je)return null;let Ze=new Date().getFullYear(),ct=0,Ve=1,ft=0,Bn=0,qc=null;for(let dt=1;dt<=xt.length;dt++){const ht=xt[dt-1],sr=Je[dt];ht==="YYYY"?Ze=parseInt(sr,10):ht==="YY"?Ze=2e3+parseInt(sr,10):ht==="MM"||ht==="M"?ct=parseInt(sr,10)-1:ht==="MMMM"?ct=c.value.findIndex(Kc=>Kc.toLowerCase()===sr.toLowerCase()):ht==="MMM"?ct=f.value.findIndex(Kc=>Kc.toLowerCase()===sr.toLowerCase()):ht==="DD"||ht==="D"?Ve=parseInt(sr,10):ht==="HH"||ht==="H"||ht==="hh"||ht==="h"?ft=parseInt(sr,10):ht==="mm"||ht==="m"?Bn=parseInt(sr,10):(ht==="A"||ht==="a")&&(qc=sr.toUpperCase())}qc==="PM"&&ft<12&&(ft+=12),qc==="AM"&&ft===12&&(ft=0);const xg=new Date(Ze,ct,Ve);return isNaN(xg)?null:{date:xg,hour:ft,minute:Bn}},T=($,U)=>{const be=k($,U);return be?{hour:be.hour,minute:be.minute}:{hour:0,minute:0}},D=($,U)=>$&&U&&$.getFullYear()===U.getFullYear()&&$.getMonth()===U.getMonth()&&$.getDate()===U.getDate(),M=l.computed(()=>{var U;if(!i.isRange)return null;const $=k((U=e.value)==null?void 0:U.start,p.value);return $?$.date:null}),A=l.computed(()=>{var U;if(!i.isRange)return null;const $=k((U=e.value)==null?void 0:U.end,p.value);return $?$.date:null}),E=l.computed(()=>{if(i.isRange)return null;const $=k(e.value,p.value);return $?$.date:null}),I=l.computed(()=>{var U,be;let $="";if(i.isRange){const pe=k((U=e.value)==null?void 0:U.start,p.value),ee=k((be=e.value)==null?void 0:be.end,p.value);pe&&ee?$=`${C(pe.date,g.value,{hour:pe.hour,minute:pe.minute})}${h.value}${C(ee.date,g.value,{hour:ee.hour,minute:ee.minute})}`:pe&&($=`${C(pe.date,g.value,{hour:pe.hour,minute:pe.minute})}${h.value}...`)}else{const pe=k(e.value,p.value);pe&&($=C(pe.date,g.value,{hour:pe.hour,minute:pe.minute}))}return m($)});let B=new Date;M.value?B=M.value:E.value&&(B=E.value);const R=T(e.value,p.value),P=l.ref(R.hour),L=l.ref(R.minute),V=l.ref(R.hour>=12?"PM":"AM"),z=l.computed(()=>v.value?Array.from({length:24},($,U)=>U):Array.from({length:12},($,U)=>U+1)),O=l.computed(()=>{const $=[];for(let U=0;U<60;U+=i.minuteStep)$.push(U);return $}),W=()=>{if(v.value)return P.value;let $=P.value;return V.value==="PM"&&$<12&&($+=12),V.value==="AM"&&$===12&&($=0),$},j=$=>{const U={hour:W(),minute:L.value};if(i.mode==="time")e.value=C(null,p.value,U);else if(i.mode==="datetime"){const be=k(e.value,p.value),pe=be?be.date:new Date;e.value=C(pe,p.value,U)}a.value&&a.value.hide?a.value.hide():$&&$()},ne=$=>{const U=T(e.value,p.value);P.value=v.value?U.hour:U.hour===0?12:U.hour>12?U.hour-12:U.hour,L.value=U.minute,V.value=U.hour>=12?"PM":"AM",a.value&&a.value.hide?a.value.hide():$&&$()},q=l.ref(B.getMonth()),Q=l.ref(B.getFullYear()),Be=l.ref(Math.floor(B.getFullYear()/12)*12),ae=l.ref("date"),le=l.computed(()=>c.value[q.value]),Se=l.computed(()=>Be.value),J=l.computed(()=>Be.value+11),ie=l.computed(()=>{const $=[];for(let U=Be.value;U<Be.value+12;U++)$.push(U);return $}),$e=()=>{ae.value==="date"?ae.value="month":ae.value==="month"?(Be.value=Math.floor(Q.value/12)*12,ae.value="year"):ae.value="date"},Ae=()=>{ae.value==="date"?q.value===0?(q.value=11,Q.value--):q.value--:ae.value==="month"?Q.value--:ae.value==="year"&&(Be.value-=12)},xe=()=>{ae.value==="date"?q.value===11?(q.value=0,Q.value++):q.value++:ae.value==="month"?Q.value++:ae.value==="year"&&(Be.value+=12)},Fe=$=>{q.value=$,ae.value="date"},tt=$=>{Q.value=$,ae.value="month"},At=l.ref(null),at=l.ref("none"),cn=l.computed(()=>{const $=[],U=new Date(Q.value,q.value,1),be=new Date(Q.value,q.value+1,0),pe=U.getDay(),ee=be.getDate();for(let Je=0;Je<pe;Je++)$.push({empty:!0});const Le=new Date;for(let Je=1;Je<=ee;Je++){const Ze=new Date(Q.value,q.value,Je);let ct=!1;if(i.minDate&&Ze<new Date(i.minDate)&&(ct=!0),i.maxDate&&Ze>new Date(i.maxDate)&&(ct=!0),i.disableDates&&i.disableDates.length>0){for(const Ve of i.disableDates)if(Ve instanceof Date&&D(Ze,Ve))ct=!0;else if(typeof Ve=="string"&&C(Ze,p.value)===Ve)ct=!0;else if(Ve.repeat&&Ve.repeat.weekdays){const ft=Ze.getDay()+1;Ve.repeat.weekdays.includes(ft)&&(ct=!0)}}$.push({date:Ze,dayNumber:Je,disabled:ct,isToday:D(Ze,Le),timestamp:Ze.getTime()})}const xt=(7-$.length%7)%7;for(let Je=0;Je<xt;Je++)$.push({empty:!0});return $}),$r=$=>{const U={"is-empty":!$.date,"is-disabled":$.disabled,"is-today":$.isToday};if(!$.date)return U;if(!i.isRange)U["is-selected"]=E.value&&D(E.value,$.date);else{const be=M.value,pe=A.value,ee=at.value,Le=At.value,Qe=be&&D($.date,be);let xt=!1,Je=!1,Ze=pe;ee==="selectingEnd"&&Le&&(Le.getTime()>be.getTime()?Ze=Le:Ze=null),Ze&&D($.date,Ze)&&(xt=!0),be&&Ze&&$.timestamp>be.getTime()&&$.timestamp<Ze.getTime()&&(Je=!0),Qe&&!Ze||Qe&&Ze&&D(be,Ze)?U["is-selected"]=!0:(Qe&&(U["range-start"]=!0),xt&&(U["range-end"]=!0),Je&&(U["in-range"]=!0))}return U},Nn=($,U)=>{if(!$.date||$.disabled)return;const be=()=>{a.value&&a.value.hide?a.value.hide():U&&U(),ae.value="date"};if(i.isRange){const pe=C($.date,p.value);at.value==="none"?(e.value={start:pe,end:pe},at.value="selectingEnd"):at.value==="selectingEnd"&&($.timestamp<M.value.getTime()?e.value={start:pe,end:pe}:(e.value={start:e.value.start,end:pe},at.value="none",At.value=null,be()))}else{if(i.mode==="datetime"){const pe={hour:W(),minute:L.value};e.value=C($.date,p.value,pe)}else e.value=C($.date,p.value);i.mode!=="datetime"&&be()}},qs=$=>{i.isRange&&at.value==="selectingEnd"&&$.date&&!$.disabled&&(At.value=$.date)},In=$=>{},po=l.ref(!1),K=()=>{po.value=!0},ge=()=>{po.value=!1,at.value==="selectingEnd"&&(at.value="none",At.value=null)};return l.watch(e,$=>{if($){if(i.isRange&&$.start){const U=k($.start,p.value);U&&(q.value=U.date.getMonth(),Q.value=U.date.getFullYear())}else if(!i.isRange&&typeof $=="string"){const U=k($,p.value);if(U&&(q.value=U.date.getMonth(),Q.value=U.date.getFullYear(),i.mode==="time"||i.mode==="datetime")){const be=U.hour===0?12:U.hour>12?U.hour-12:U.hour;P.value=i.is24Hour?U.hour:be,L.value=U.minute,V.value=U.hour>=12?"PM":"AM"}}}}),($,U)=>{const be=l.resolveDirective("translate");return l.openBlock(),l.createElementBlock("div",kD,[l.createVNode(hi,{ref_key:"popoverRef",ref:a,class:"datetime-popover-wrapper",trigger:"click",placement:"bottom",disabled:r.isDisable,offset:8,referenceSelector:r.showInInput?".calendar-trigger-input":".apbd-input-container",onHide:ge,onShow:K},{content:l.withCtx(({close:pe})=>[l.createElementVNode("div",{class:l.normalizeClass(["apbd-calendar-dropdown",{"time-only-dropdown":r.mode==="time"}]),onClick:U[4]||(U[4]=l.withModifiers(()=>{},["stop"]))},[r.mode!=="time"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",AD,[l.createElementVNode("button",{type:"button",onClick:l.withModifiers(Ae,["stop"]),class:"cal-nav-btn"},[l.createVNode(l.unref(K1),{class:"w-5 h-5","stroke-width":"2",style:{height:"20px"}})]),l.createElementVNode("button",{type:"button",onClick:l.withModifiers($e,["stop"]),class:"cal-title-btn"},[ae.value==="date"?(l.openBlock(),l.createElementBlock("span",ND,l.toDisplayString(le.value)+" "+l.toDisplayString(m(Q.value)),1)):ae.value==="month"?(l.openBlock(),l.createElementBlock("span",ID,l.toDisplayString(m(Q.value)),1)):ae.value==="year"?(l.openBlock(),l.createElementBlock("span",BD,l.toDisplayString(m(Se.value))+" - "+l.toDisplayString(m(J.value)),1)):l.createCommentVNode("",!0)]),l.createElementVNode("button",{type:"button",onClick:l.withModifiers(xe,["stop"]),class:"cal-nav-btn"},[l.createVNode(l.unref(Q1),{class:"w-5 h-5","stroke-width":"2",style:{height:"20px"}})])]),ae.value==="date"?(l.openBlock(),l.createElementBlock("div",LD,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.value,(ee,Le)=>(l.openBlock(),l.createElementBlock("div",{class:"cal-dow",key:Le},l.toDisplayString(ee),1))),128)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(cn.value,(ee,Le)=>(l.openBlock(),l.createElementBlock("div",{key:Le,class:l.normalizeClass(["cal-day-cell",$r(ee)]),onClick:Qe=>Nn(ee,pe),onMouseenter:Qe=>qs(ee),onMouseleave:Qe=>In()},[ee.date?(l.openBlock(),l.createElementBlock("div",PD)):l.createCommentVNode("",!0),ee.date?(l.openBlock(),l.createElementBlock("span",RD,l.toDisplayString(m(ee.dayNumber)),1)):l.createCommentVNode("",!0),ee.isToday&&!$r(ee)["is-selected"]&&!$r(ee)["range-start"]&&!$r(ee)["range-end"]?(l.openBlock(),l.createElementBlock("div",OD)):l.createCommentVNode("",!0)],42,VD))),128))])):ae.value==="month"?(l.openBlock(),l.createElementBlock("div",zD,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.value,(ee,Le)=>(l.openBlock(),l.createElementBlock("button",{type:"button",key:Le,class:l.normalizeClass(["cal-month-cell",{"is-selected":q.value===Le}]),onClick:l.withModifiers(Qe=>Fe(Le),["stop"])},l.toDisplayString(ee),11,$D))),128))])):ae.value==="year"?(l.openBlock(),l.createElementBlock("div",FD,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(ie.value,ee=>(l.openBlock(),l.createElementBlock("button",{type:"button",key:ee,class:l.normalizeClass(["cal-year-cell",{"is-selected":Q.value===ee}]),onClick:l.withModifiers(Le=>tt(ee),["stop"])},l.toDisplayString(m(ee)),11,HD))),128))])):l.createCommentVNode("",!0)],64)):l.createCommentVNode("",!0),r.mode==="time"||r.mode==="datetime"?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["time-picker-section",{"has-border-top":r.mode==="datetime"}])},[r.mode==="time"?(l.openBlock(),l.createElementBlock("div",GD,"Select Time")):l.createCommentVNode("",!0),l.createElementVNode("div",WD,[l.createElementVNode("select",{class:"time-select",value:P.value,onChange:U[1]||(U[1]=ee=>P.value=parseInt(ee.target.value))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(z.value,ee=>(l.openBlock(),l.createElementBlock("option",{key:ee,value:ee},l.toDisplayString(m(w(ee))),9,YD))),128))],40,UD),U[5]||(U[5]=l.createElementVNode("span",{class:"time-colon"},":",-1)),l.createElementVNode("select",{class:"time-select",value:L.value,onChange:U[2]||(U[2]=ee=>L.value=parseInt(ee.target.value))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(O.value,ee=>(l.openBlock(),l.createElementBlock("option",{key:ee,value:ee},l.toDisplayString(m(w(ee))),9,XD))),128))],40,ZD),v.value?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(aa,{key:0,containerClass:"mb-0",modelValue:V.value,"onUpdate:modelValue":U[3]||(U[3]=ee=>V.value=ee),options:y,type:"radio",variant:"segmented",size:"sm",name:r.name+"_ampm",isInline:!0,class:"ampm-radio-toggle"},null,8,["modelValue","name"]))]),l.createElementVNode("div",jD,[l.withDirectives((l.openBlock(),l.createElementBlock("button",{type:"button",class:"time-btn-cancel",onClick:l.withModifiers(ee=>ne(pe),["stop"])},[...U[6]||(U[6]=[l.createTextVNode("Cancel",-1)])],8,qD)),[[be]]),l.withDirectives((l.openBlock(),l.createElementBlock("button",{type:"button",class:"time-btn-apply",onClick:l.withModifiers(ee=>j(pe),["stop"])},[...U[7]||(U[7]=[l.createTextVNode("Apply",-1)])],8,KD)),[[be]])])],2)):l.createCommentVNode("",!0)],2)]),default:l.withCtx(()=>[l.renderSlot($.$slots,"picker-container",{isRange:r.isRange,showInInput:"showInInput",value:e.value},()=>{var pe,ee,Le;return[r.showInInput?(l.openBlock(),l.createBlock(kr,{key:0,modelValue:I.value,readonly:"",class:l.normalizeClass(["calendar-trigger-input",(pe=l.unref(t))==null?void 0:pe.class]),size:_.value,id:(ee=l.unref(t))==null?void 0:ee.id,label:r.label,isHideLabel:r.isHideLabel,iconPosition:S.value,name:r.name,rules:r.rules,disabled:r.isDisable,hints:r.hints,placeholder:l.unref(t).placeholder||x.value,isLeftIconBorder:r.isLeftIconBorder,isRightIconBorder:r.isRightIconBorder,containerClass:b.value},l.createSlots({_:2},[l.unref(n).label?{name:"label",fn:l.withCtx(()=>[l.renderSlot($.$slots,"label",{},void 0,!0)]),key:"0"}:void 0,l.unref(n).icon?{name:"icon",fn:l.withCtx(()=>[l.renderSlot($.$slots,"icon",{},void 0,!0)]),key:"1"}:void 0,l.unref(n).prefix||r.defaultIconPosition==="left"?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot($.$slots,"prefix",{},()=>[r.defaultIconPosition==="left"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[r.mode==="time"?(l.openBlock(),l.createBlock(l.unref(Eg),{key:0,class:"w-5 h-5",style:{height:"18px"}})):(l.openBlock(),l.createBlock(l.unref(Dg),{key:1,class:"w-5 h-5",style:{height:"18px"}}))],64)):l.createCommentVNode("",!0)],!0)]),key:"2"}:void 0,l.unref(n).postfix||r.defaultIconPosition==="right"?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot($.$slots,"postfix",{},()=>[r.defaultIconPosition==="right"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[r.mode==="time"?(l.openBlock(),l.createBlock(l.unref(Eg),{key:0,class:"w-5 h-5",style:{height:"18px"}})):(l.openBlock(),l.createBlock(l.unref(Dg),{key:1,class:"w-5 h-5",style:{height:"18px"}}))],64)):l.createCommentVNode("",!0)],!0)]),key:"3"}:void 0,l.unref(n).hints?{name:"hints",fn:l.withCtx(()=>[l.renderSlot($.$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"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(b.value)},[r.label||l.unref(n).label?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:(Le=l.unref(t))==null?void 0:Le.id},[l.renderSlot($.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)],!0)],8,TD)):l.createCommentVNode("",!0),l.createVNode(l.unref(ut.Field),{type:"hidden",modelValue:e.value,"onUpdate:modelValue":U[0]||(U[0]=Qe=>e.value=Qe),name:r.name,rules:r.rules},null,8,["modelValue","name","rules"]),l.createElementVNode("div",DD,[l.renderSlot($.$slots,"picker",{isRange:r.isRange,value:e.value},()=>{var Qe,xt;return[I.value?(l.openBlock(),l.createBlock(Xe,{key:0,type:"button",class:l.normalizeClass(["btn-outline-secondary",(Qe=l.unref(t))==null?void 0:Qe.class]),size:_.value},{default:l.withCtx(()=>[l.unref(n).icon?l.renderSlot($.$slots,"icon",{key:0},void 0,!0):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(I.value)+" ",1),l.unref(n).resetIcon?l.renderSlot($.$slots,"resetIcon",{key:1},void 0,!0):l.createCommentVNode("",!0)]),_:3},8,["class","size"])):(l.openBlock(),l.createBlock(Xe,{key:1,type:"button",class:l.normalizeClass(["btn-outline-secondary",(xt=l.unref(t))==null?void 0:xt.class]),size:_.value},{default:l.withCtx(()=>[l.unref(n).icon?l.renderSlot($.$slots,"icon",{key:0},void 0,!0):l.createCommentVNode("",!0),l.createElementVNode("span",MD,l.toDisplayString(l.unref(F)(x.value)),1)]),_:3},8,["class","size"]))]},!0)]),l.createVNode(l.unref(ut.ErrorMessage),{name:$.generatedName,class:"apbd-v-error"},null,8,["name"]),r.hints||l.unref(n).hints?(l.openBlock(),l.createElementBlock("div",ED,[l.renderSlot($.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)],!0)])):l.createCommentVNode("",!0)],2))]},!0)]),_:3},8,["disabled","referenceSelector"])])}}}),yn=Pt(QD,[["__scopeId","data-v-665b51f5"]]),JD=["src","alt"],e2={key:2,class:"avatar-add"},t2=["disabled"],i_=Object.assign({inheritAttrs:!1},{__name:"AbAvatar",props:{src:{default:""},alt:{default:""},variant:{type:String,default:"image"},size:{type:String,default:void 0,validator:r=>["xs","sm","md","lg","xl","xxl"].includes(r)},isActive:{type:Boolean,default:!1},isVerified:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["change"],setup(r,{expose:e,emit:t}){const n=t,a=l.ref(null);e({triggerFileSelect:()=>{a.value&&a.value.click()}});const o=l.useAttrs(),s=r,u=l.computed(()=>s.size!==void 0&&s.size!==null?s.size:ve.size??"md");return(c,f)=>{var d;return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:"apbd-avatar"},l.unref(o),{class:[(d=l.unref(o))==null?void 0:d.class,`avatar-${u.value}`,{active:r.isActive,verified:r.isVerified,disabled:r.isDisabled}]}),[r.variant==="image"&&r.src?(l.openBlock(),l.createElementBlock("img",{key:0,src:r.src,alt:r.alt},null,8,JD)):r.variant==="image"&&!r.src?(l.openBlock(),l.createBlock(l.unref(RT),{key:1,class:"icon-avatar"})):r.variant==="add"?(l.openBlock(),l.createElementBlock("label",e2,[l.createVNode(l.unref(pc)),l.createElementVNode("input",{ref_key:"fileInput",ref:a,type:"file",disabled:r.isDisabled,hidden:"",accept:"image/*",onChange:f[0]||(f[0]=h=>n("change",h))},null,40,t2)])):l.createCommentVNode("",!0),l.renderSlot(c.$slots,"default"),r.isVerified?(l.openBlock(),l.createBlock(l.unref(_T),{key:3})):l.createCommentVNode("",!0)],16)}}}),r2=["href","onClick"],n2={key:0,class:"me-1"},o_=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(r){const e=r,t=l.ref([]),n=l.useAttrs();function a(s){t.value.push(s)}l.provide("registerTab",a),l.provide("isRouteMode",e.isRouteMode),l.provide("tabClass",e.tabClass);function i(){const s=t.value[0];!t.value.some(u=>u.isActive)&&s&&(s.isActive=!0)}function o(s,u){s.preventDefault(),s.stopPropagation(),t.value.forEach(c=>{c.isActive=c===u})}return l.provide("selectTab",o),l.onMounted(()=>{i()}),(s,u)=>{const c=l.resolveComponent("translate"),f=l.resolveComponent("router-link"),d=l.resolveComponent("router-view");return l.openBlock(),l.createElementBlock("div",l.normalizeProps(l.guardReactiveProps(l.unref(n))),[l.createElementVNode("div",{class:l.normalizeClass(r.navContainerClass)},[l.createElementVNode("ul",{class:l.normalizeClass(["apbd-tab-nav nav w-100",r.navClass])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h.name,class:"nav-item"},[r.isRouteMode&&(h!=null&&h.to)?(l.openBlock(),l.createBlock(f,{key:0,class:l.normalizeClass([r.tabClass,"nav-link"]),to:h==null?void 0:h.to},{default:l.withCtx(()=>[l.createVNode(c,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.title),1)]),_:2},1024)]),_:2},1032,["class","to"])):(l.openBlock(),l.createElementBlock("a",{key:1,href:h.href,class:l.normalizeClass(["nav-link",r.tabClass+" "+(h!=null&&h.isActive?"ab-active":"")]),onClick:v=>o(v,h)},[h.icon?(l.openBlock(),l.createElementBlock("span",n2,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(h.icon)))])):l.createCommentVNode("",!0),l.createVNode(c,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.title),1)]),_:2},1024)],10,r2))]))),128))],2)],2),l.createElementVNode("div",{class:l.normalizeClass(r.tabDetailsClass)},[l.renderSlot(s.$slots,"default"),r.isRouteMode?(l.openBlock(),l.createBlock(d,{key:0})):l.createCommentVNode("",!0)],2)],16)}}}),a2={key:0},s_={__name:"AbTab",props:{title:{required:!0},selected:{default:!1},to:{default:null}},setup(r){const e=r,t=l.ref(!1),n=l.ref(""),i=l.getCurrentInstance().slots.icon,o=l.inject("registerTab"),s=l.inject("isRouteMode");return l.inject("tabs"),l.onMounted(()=>{if(t.value=e.selected,n.value="tab-"+Math.random().toString(36).substr(2,5),o){if(s&&!(e!=null&&e.to))return;o({name:n.value,title:e.title,href:"#"+n.value,icon:i,to:e.to,isActive:t})}}),(u,c)=>t.value&&!l.unref(s)?(l.openBlock(),l.createElementBlock("div",a2,[l.renderSlot(u.$slots,"default")])):l.createCommentVNode("",!0)}},i2={name:"AbForm",components:{Form:ut.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:r}=await this.$refs["main-form"].validate();if(!r)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(r){return console.error("[AbSettingsForm] Form Submission failed during Wizard transition:",r),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 o2(r,e,t,n,a,i){const o=l.resolveComponent("Form");return l.openBlock(),l.createBlock(o,{ref:"main-form",onSubmit:i.onFormSubmit,class:l.normalizeClass(["apbd-settings-form needs-validation",a.is_sending?"apbd-form-sending":""])},{default:l.withCtx(()=>[l.renderSlot(r.$slots,"default")]),_:3},8,["onSubmit","class"])}const l_=Pt(i2,[["render",o2]]),s2=["for"],l2=["for"],u2={key:1,class:"description-text"},c2=["id","name","disabled","true-value","false-value"],f2=["for"],d2={key:1,class:"description-text"},h2={key:2,class:"d-flex flex-column pe-2"},v2={key:0,class:"description-text"},p2={key:1,class:"form-text"},gc=Object.assign({inheritAttrs:!1},{__name:"AbToggle",props:l.mergeModels({label:null,val:{default:"N"},name:{type:String,default:""},containerClass:{type:String,default:void 0},size:{type:String,default:void 0,validator:r=>["xs","sm","md","lg","xl"].includes(r)},variant:{type:String,default:"inline"},trueValue:{default:void 0},falseValue:{default:void 0},description:null,hints:null},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const e=l.useAttrs(),t=l.useSlots(),n=l.useModel(r,"modelValue"),a=r,i=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,o=l.getCurrentInstance(),s=l.computed(()=>a.name||`toggle_${(o==null?void 0:o.uid)||i}`),u=l.computed(()=>a.containerClass!==void 0&&a.containerClass!==null?a.containerClass:ve.inputContainerClass??""),c=l.computed(()=>a.trueValue!==void 0&&a.trueValue!==null?a.trueValue:ve.trueValue??"Y"),f=l.computed(()=>a.falseValue!==void 0&&a.falseValue!==null?a.falseValue:ve.falseValue??"N"),d=l.computed(()=>a.size!==void 0&&a.size!==null?a.size:ve.size??"md");function h(){n.value||(n.value=a.val)}return l.onMounted(()=>{h()}),(v,p)=>{var g,y,m,b,_,S,w,x,C,k,T,D,M,A,E;return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:"apbd-toggle"},l.unref(e),{class:u.value}),[((g=l.unref(t))!=null&&g.label||r.label)&&r.variant==="column"?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:`${s.value}-${l.unref(e).id}`},[l.renderSlot(v.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,s2)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["form-check form-switch",[l.unref(e).class,{"toggle-inline-left":r.variant==="inline-left"}]])},[r.variant==="inline-left"&&((y=l.unref(t))!=null&&y.descriptionContainer||(m=l.unref(t))!=null&&m.title||(b=l.unref(t))!=null&&b.description||r.description||v.title||(_=l.unref(t))!=null&&_.label||r.label)?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["d-flex flex-column pe-2",(S=l.unref(t))!=null&&S.description?"":"justify-content-center"])},[l.renderSlot(v.$slots,"descriptionContainer",{},()=>{var I,B;return[(I=l.unref(t))!=null&&I.label||r.label?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-check-label",for:`${s.value}-${l.unref(e).id}`},[l.renderSlot(v.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,l2)):l.createCommentVNode("",!0),(B=l.unref(t))!=null&&B.description||r.description?(l.openBlock(),l.createElementBlock("div",u2,[l.renderSlot(v.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.description)),1)])])):l.createCommentVNode("",!0)]})],2)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{class:l.normalizeClass(["form-check-input",`form-check-input-${d.value}`]),type:"checkbox",id:`${s.value}-${l.unref(e).id}`,name:s.value,disabled:(w=l.unref(e))==null?void 0:w.disabled,"onUpdate:modelValue":p[0]||(p[0]=I=>n.value=I),"true-value":c.value,"false-value":f.value},null,10,c2),[[l.vModelCheckbox,n.value]]),r.variant==="inline"&&((x=l.unref(t))!=null&&x.descriptionContainer||(C=l.unref(t))!=null&&C.title||(k=l.unref(t))!=null&&k.description||r.description||v.title||(T=l.unref(t))!=null&&T.label||r.label)?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["d-flex flex-column",(D=l.unref(t))!=null&&D.description?"":"justify-content-center"])},[l.renderSlot(v.$slots,"descriptionContainer",{},()=>{var I,B;return[(I=l.unref(t))!=null&&I.label||r.label?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-check-label",for:`${s.value}-${l.unref(e).id}`},[l.renderSlot(v.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,f2)):l.createCommentVNode("",!0),(B=l.unref(t))!=null&&B.description||r.description?(l.openBlock(),l.createElementBlock("div",d2,[l.renderSlot(v.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.description)),1)])])):l.createCommentVNode("",!0)]})],2)):l.createCommentVNode("",!0),r.variant==="column"&&((M=l.unref(t))!=null&&M.description||r.description)?(l.openBlock(),l.createElementBlock("div",h2,[(A=l.unref(t))!=null&&A.description||r.description?(l.openBlock(),l.createElementBlock("div",v2,[l.renderSlot(v.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.description)),1)])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)],2),(E=l.unref(t))!=null&&E.hints||r.hints?(l.openBlock(),l.createElementBlock("div",p2,[l.renderSlot(v.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])):l.createCommentVNode("",!0)],16)}}}),g2=["for"],m2={key:0,class:"input-group-text left"},y2={key:1,class:"input-group-text left"},b2=["disabled","id"],_2={class:"multiselect-wrapper"},S2={class:"multiselect-tags"},w2={class:"multiselect-tag-wrapper"},x2=["onMousedown"],C2={key:0,class:"multiselect-tags-search-wrapper"},k2=["placeholder","onKeydown"],T2={ref:"dropdownRef",class:"multiselect-dropdown"},D2={class:"multiselect-options"},M2=["onMousedown","onMouseenter"],E2={key:2,class:"input-group-text right"},A2={key:3,class:"input-group-text right"},N2={class:"form-text"},$v=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:r=>["xs","sm","md","lg","xl","xxl"].includes(r)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:r=>["left","right"].includes(r)}},emits:["update:modelValue"],setup(r,{emit:e}){const t=r,n=l.useSlots(),a=e,i=l.ref(null),o=l.ref(null),s=l.ref(null),u=l.ref(!1),c=l.ref(""),f=l.ref(-1),d=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,h=l.getCurrentInstance(),v=l.computed(()=>t.name||`input_${(h==null?void 0:h.uid)||d}`),p=l.computed(()=>t.containerClass!==void 0&&t.containerClass!==null?t.containerClass:ve.inputContainerClass??""),g=l.computed(()=>t.size!==void 0&&t.size!==null?t.size:ve.size??"md"),y=l.computed(()=>{var P;return t.iconPosition!==void 0&&t.iconPosition!==null?t.iconPosition:((P=ve.input)==null?void 0:P.iconPosition)??"right"}),m=l.computed({get:()=>t.modelValue,set:P=>{a("update:modelValue",P)}}),b=l.computed({get(){return!n.prefix&&!n.postfix&&!n.icon?"":t.isLeftIconBorder?"input-group-text-border-right-0 ":t.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"}}),_=l.computed(()=>t.max>0&&m.value.length>=t.max);l.watch(_,P=>{P&&(u.value=!1,c.value="")});function S(P){if(typeof P=="object")return P.title??P.val??String(P);const L=t.options.find(V=>typeof V=="object"?V.val===P:V===P);return L&&typeof L=="object"?L.title??L.val:String(P)}function w(P){const L=typeof P=="object"?P.val:P;return m.value.includes(L)}const x=l.computed(()=>{const P=c.value.toLowerCase();return t.options.filter(L=>{const V=typeof L=="object"?L.title??L.val??"":String(L),z=typeof L=="object"?L.val:L;return m.value.includes(z)?!1:P?V.toLowerCase().includes(P):!0})});function C(P){if(_.value)return;const L=typeof P=="object"?P.val:P;m.value.includes(L)||(m.value=[...m.value,L]),c.value="",l.nextTick(()=>{!_.value&&o.value?o.value.focus():s.value&&s.value.focus()})}function k(){if(_.value)return;const P=c.value.trim();if(P){if(f.value>=0&&f.value<x.value.length){C(x.value[f.value]);return}m.value.includes(P)||(m.value=[...m.value,P]),c.value=""}}function T(P){const L=[...m.value];L.splice(P,1),m.value=L}function D(){if(c.value===""&&m.value.length>0){const P=[...m.value];P.pop(),m.value=P}}function M(){u.value=!0,f.value=-1}function A(){setTimeout(()=>{u.value=!1,f.value=-1},200)}function E(){f.value=-1,u.value||(u.value=!0)}function I(P){if(_.value){s.value&&s.value.focus();return}o.value?o.value.focus():s.value&&s.value.focus(),u.value||(u.value=!0)}function B(P){switch(P.key){case"ArrowDown":P.preventDefault(),u.value&&x.value.length>0&&(f.value=Math.min(f.value+1,x.value.length-1));break;case"ArrowUp":P.preventDefault(),u.value&&(f.value=Math.max(f.value-1,0));break;case"Escape":case"Tab":u.value=!1;break}}function R(P){i.value&&!i.value.contains(P.target)&&(u.value=!1)}return l.onMounted(()=>document.addEventListener("mousedown",R)),l.onBeforeUnmount(()=>document.removeEventListener("mousedown",R)),(P,L)=>{var V,z,O,W,j,ne,q,Q,Be;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([[p.value,b.value],"apbd-input-tag-container"]),ref_key:"containerRef",ref:i},[(r.label||l.unref(n).label)&&!r.isHideLabel?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:(V=P.$attrs)==null?void 0:V.id},[l.renderSlot(P.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,g2)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass({"input-group":((z=l.unref(n))==null?void 0:z.prefix)||((O=l.unref(n))==null?void 0:O.postfix)||((W=l.unref(n))==null?void 0:W.icon)||r.prefix||r.postfix||P.type=="password"})},[(j=l.unref(n))!=null&&j.icon&&y.value==="left"?(l.openBlock(),l.createElementBlock("span",m2,[l.renderSlot(P.$slots,"icon")])):l.createCommentVNode("",!0),(ne=l.unref(n))!=null&&ne.prefix||r.prefix?(l.openBlock(),l.createElementBlock("span",y2,[l.renderSlot(P.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])])):l.createCommentVNode("",!0),l.createVNode(l.unref(ut.Field),{label:r.label,name:v.value,id:(q=P.$attrs)==null?void 0:q.id,rules:r.rules,modelValue:m.value,"onUpdate:modelValue":L[1]||(L[1]=ae=>m.value=ae)},{default:l.withCtx(()=>{var ae,le,Se,J,ie,$e,Ae;return[l.createElementVNode("div",{ref_key:"multiselectRef",ref:s,class:l.normalizeClass(["multiselect",`multiselect-${g.value}`,(ae=P.$attrs)==null?void 0:ae.class,{"form-control":((le=l.unref(n))==null?void 0:le.prefix)||((Se=l.unref(n))==null?void 0:Se.postfix)||r.prefix||r.postfix,"is-active":u.value,"is-disabled":(J=P.$attrs)==null?void 0:J.disabled}]),disabled:(ie=P.$attrs)==null?void 0:ie.disabled,id:($e=P.$attrs)==null?void 0:$e.id,style:l.normalizeStyle((Ae=P.$attrs)==null?void 0:Ae.style),tabindex:"0",onMousedown:l.withModifiers(I,["prevent"]),onKeydown:B},[l.createElementVNode("div",_2,[l.createElementVNode("div",S2,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(m.value,(xe,Fe)=>(l.openBlock(),l.createElementBlock("span",{key:xe+"-"+Fe,class:"multiselect-tag"},[l.createElementVNode("span",w2,l.toDisplayString(l.unref(F)(S(xe))),1),l.createElementVNode("span",{class:"multiselect-tag-remove",onMousedown:l.withModifiers(tt=>T(Fe),["prevent","stop"])},[...L[2]||(L[2]=[l.createElementVNode("span",{class:"multiselect-tag-remove-icon"},"×",-1)])],40,x2)]))),128)),_.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",C2,[l.withDirectives(l.createElementVNode("input",{ref_key:"searchInputRef",ref:o,"onUpdate:modelValue":L[0]||(L[0]=xe=>c.value=xe),class:"multiselect-tags-search",autocomplete:"off",placeholder:m.value.length===0?r.placeholder:"",onFocus:M,onBlur:A,onInput:E,onKeydown:[l.withKeys(l.withModifiers(k,["prevent"]),["enter"]),l.withKeys(D,["delete"])]},null,40,k2),[[l.vModelText,c.value]])]))]),l.createElementVNode("div",{class:l.normalizeClass(["multiselect-caret",{"is-open":u.value}])},[...L[3]||(L[3]=[l.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[l.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)]),l.withDirectives(l.createElementVNode("div",T2,[l.createElementVNode("ul",D2,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,(xe,Fe)=>(l.openBlock(),l.createElementBlock("li",{key:typeof xe=="object"?xe.val??Fe:xe,class:l.normalizeClass(["multiselect-option",{"is-selected":w(xe),"is-pointed":Fe===f.value}]),onMousedown:l.withModifiers(tt=>C(xe),["prevent"]),onMouseenter:tt=>f.value=Fe},l.toDisplayString(typeof xe=="object"?l.unref(F)(xe.title??xe.val):l.unref(F)(xe)),43,M2))),128))])],512),[[l.vShow,u.value&&x.value.length>0]])],46,b2)]}),_:1},8,["label","name","id","rules","modelValue"]),(Q=l.unref(n))!=null&&Q.postfix||r.postfix?(l.openBlock(),l.createElementBlock("span",E2,[l.renderSlot(P.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])])):l.createCommentVNode("",!0),(Be=l.unref(n))!=null&&Be.icon&&y.value==="right"?(l.openBlock(),l.createElementBlock("span",A2,[l.renderSlot(P.$slots,"icon")])):l.createCommentVNode("",!0)],2),l.createVNode(l.unref(ut.ErrorMessage),{name:v.value,class:"apbd-v-error"},null,8,["name"]),l.createElementVNode("div",N2,[l.renderSlot(P.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])],2)}}}),u_=Object.assign({inheritAttrs:!1},{__name:"AbBadge",props:{size:{type:String,default:void 0,validator:r=>["sm","md","lg"].includes(r)},color:{type:String,default:"primary",validator:r=>["primary","secondary","danger","warning","success","info"].includes(r)},isOutline:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},isAdd:{type:Boolean,default:!1},isRoundedPill:{type:Boolean,default:!1},position:{type:String,default:"right",validator:r=>["right","left"].includes(r)}},setup(r){const e=l.useAttrs(),t=l.useSlots(),n=r,a=l.computed(()=>n.size!==void 0&&n.size!==null?n.size:ve.size??"md");return(i,o)=>{var s;return l.openBlock(),l.createElementBlock("span",l.mergeProps({class:"apbd-badge badge d-inline-flex align-items-center justify-content-center"},l.unref(e),{class:[(s=l.unref(e))==null?void 0:s.class,{"rounded-pill":r.isRoundedPill,"badge-outline":r.isOutline,"dot-icon-badge":r.isDot,"add-icon-badge":r.isAdd,left:r.position==="left",right:r.position==="right",[`text-bg-${r.color}`]:r.color,[`badge-${a.value}`]:a.value}]}),[l.unref(t).content&&r.position==="left"?l.renderSlot(i.$slots,"content",{key:0}):l.createCommentVNode("",!0),l.renderSlot(i.$slots,"default"),r.isAdd?(l.openBlock(),l.createBlock(l.unref(pc),{key:1})):l.createCommentVNode("",!0),l.unref(t).content&&r.position==="right"?l.renderSlot(i.$slots,"content",{key:2}):l.createCommentVNode("",!0)],16)}}}),I2={__name:"AbScrollbar",props:{size:{type:String,default:"md",validator:r=>["sm","md","lg"].includes(r)},isHoverIncrease:{type:Boolean,default:!1},transparentTrack:{type:Boolean,default:!0},showAlways:{type:Boolean,default:!1}},emits:["scroll","scroll-start","scroll-end"],setup(r,{emit:e}){const t=e,n=l.ref(null),a=l.ref(!1),i=l.ref(0),o=l.ref(0),s=l.ref(!1),u=l.ref(!1),c=l.ref(!1);let f=0,d=0,h=null,v=null,p=null;const g=()=>{if(!n.value)return;const{clientHeight:S,scrollHeight:w,scrollTop:x}=n.value;if(w<=S){a.value=!1;return}a.value=!0;const C=S/w*S;i.value=Math.max(C,30);const k=w-S,T=S-i.value;o.value=x/k*T},y=S=>{if(u.value||g(),n.value){const{scrollTop:w,scrollHeight:x,clientHeight:C}=n.value,k=x-C,T=k>0?w/k:0,D=T*100,M=k-w,A=100-D,E={event:S,scrollTop:w,scrollHeight:x,clientHeight:C,scrollRatio:T,scrollPercentage:D,remainingPixels:M,remainingPercentage:A};t("scroll",E),w<=0?t("scroll-start",E):Math.ceil(w+C)>=x&&t("scroll-end",E)}else t("scroll",{event:S});c.value=!0,h&&clearTimeout(h),h=setTimeout(()=>{c.value=!1},1e3)},m=S=>{u.value=!0,f=S.type.includes("touch")?S.touches[0].clientY:S.clientY,d=o.value,document.addEventListener("mousemove",b),document.addEventListener("mouseup",_),document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",_)},b=S=>{if(!u.value||!n.value)return;S.type.includes("touch")&&S.preventDefault();const x=(S.type.includes("touch")?S.touches[0].clientY:S.clientY)-f,{clientHeight:C,scrollHeight:k}=n.value,T=C-i.value;let D=d+x;D<0&&(D=0),D>T&&(D=T),o.value=D;const M=k-C,A=D/T;n.value.scrollTop=A*M},_=()=>{u.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",_)};return l.onMounted(()=>{n.value&&(v=new ResizeObserver(()=>{g()}),v.observe(n.value),p=new MutationObserver(()=>{l.nextTick(()=>{g()})}),p.observe(n.value,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),g())}),l.onUnmounted(()=>{v&&n.value&&v.unobserve(n.value),p&&p.disconnect(),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_)}),(S,w)=>(l.openBlock(),l.createElementBlock("div",{class:"apbd-scrollbar",onMouseenter:w[0]||(w[0]=x=>s.value=!0),onMouseleave:w[1]||(w[1]=x=>s.value=!1)},[l.createElementVNode("div",{class:"apbd-scrollbar-view",ref_key:"scrollArea",ref:n,onScroll:y},[l.renderSlot(S.$slots,"default",{},void 0,!0)],544),l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass(["apbd-scrollbar-track-y",[`size-${r.size}`,{"is-hover-increase":r.isHoverIncrease,"is-visible":s.value||u.value||r.showAlways||c.value,"is-transparent":r.transparentTrack,"is-always-hovered":r.showAlways}]])},[l.createElementVNode("div",{class:"apbd-scrollbar-thumb-y",style:l.normalizeStyle({height:i.value+"px",transform:`translateY(${o.value}px)`}),onMousedown:l.withModifiers(m,["stop","prevent"]),onTouchstart:l.withModifiers(m,["stop","prevent"])},null,36)],2),[[l.vShow,a.value]])],32))}},Fv=Pt(I2,[["__scopeId","data-v-bd8bf7da"]]),B2={class:"sidebar-header"},L2={class:"header-text"},V2={key:0,class:"sidebar-search px-3 py-2"},P2={class:"position-relative"},R2={key:1,class:"sidebar-search-collapsed d-flex justify-content-center py-2"},O2={class:"text-muted d-flex align-items-center justify-content-center",style:{cursor:"pointer",width:"40px",height:"40px","border-radius":"8px"},title:"Search"},z2={class:"shadow-sm p-2",style:{width:"250px"}},$2={class:"position-relative"},F2={class:"sidebar-footer"},c_={__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(r){const e=l.inject("layoutState"),t=r,n=l.ref(!1),a=l.ref(!1),i=l.ref(""),o=l.ref(null),s=l.ref(null),u=()=>{a.value=window.innerWidth<576},c=l.computed(()=>t.mobileFullHeight&&a.value?!1:n.value),f=()=>{n.value=!n.value,v()},d=()=>{setTimeout(()=>{var m;(m=s.value)==null||m.focus()},100)},h=()=>{t.mobileFullHeight&&(e!=null&&e.toggleLeftSidebar)?e.toggleLeftSidebar(!1):f()},v=()=>{localStorage.setItem(t.appUniqueId+"_mn",n.value)},p=()=>{let m=localStorage.getItem(t.appUniqueId+"_mn");try{return m.toLowerCase()==="true"}catch{return!1}},g=()=>{i.value="",y()},y=()=>{if(!o.value)return;const m=i.value.toLowerCase().trim(),b=Array.from(o.value.children);b.forEach(S=>{var w;if(!S.classList.contains("section-title")&&S.classList.contains(t.searchTargetClass))if(!m)S.style.display="";else{const x=((w=S.textContent)==null?void 0:w.toLowerCase())||"";S.style.display=x.includes(m)?"":"none"}}),b.filter(S=>S.classList.contains("section-title")).forEach(S=>{if(!m){S.style.display="";return}let w=!1,x=S.nextElementSibling;for(;x&&!x.classList.contains("section-title");){if(x.classList.contains(t.searchTargetClass)&&x.style.display!=="none"){w=!0;break}x=x.nextElementSibling}S.style.display=w?"":"none"})};return l.onMounted(()=>{n.value=p(),u(),window.addEventListener("resize",u)}),l.onUnmounted(()=>{window.removeEventListener("resize",u)}),l.provide("isCollapsed",l.computed(()=>c.value)),l.provide("isMobileFullHeight",l.computed(()=>t.mobileFullHeight)),(m,b)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["sidebar",{collapsed:c.value,"hide-seperator":r.hideSeperator,"mobile-full-height":r.mobileFullHeight}])},[l.createElementVNode("div",B2,[l.createElementVNode("span",L2,[l.renderSlot(m.$slots,"header",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("System")),1)])]),l.createElementVNode("div",{class:"collapse-btn d-none d-sm-flex",onClick:f},[l.renderSlot(m.$slots,"collapse-icon",{},()=>[l.createVNode(l.unref(Ig))])]),l.createElementVNode("div",{class:"collapse-btn d-flex d-sm-none",onClick:h},[l.renderSlot(m.$slots,"collapse-icon",{},()=>[l.createVNode(l.unref(Ig))])])]),r.enableSearch&&!c.value?(l.openBlock(),l.createElementBlock("div",V2,[l.createElementVNode("div",P2,[l.createVNode(l.unref(Qc),{class:"position-absolute top-50 translate-middle-y text-muted",size:15,style:{left:"10px"}}),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":b[0]||(b[0]=_=>i.value=_),type:"text",class:"form-control form-control-sm shadow-none",style:{"padding-left":"32px","padding-right":"28px"},placeholder:"Search menu...",onInput:y},null,544),[[l.vModelText,i.value]]),i.value?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"position-absolute top-50 translate-middle-y border-0 bg-transparent p-0 text-muted d-flex align-items-center",style:{right:"8px",cursor:"pointer"},onClick:g},[l.createVNode(l.unref($a),{size:14})])):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),r.enableSearch&&c.value?(l.openBlock(),l.createElementBlock("div",R2,[l.createVNode(hi,{trigger:"click",placement:"right-start",offset:15,onShow:d},{content:l.withCtx(()=>[l.createElementVNode("div",z2,[l.createElementVNode("div",$2,[l.createVNode(l.unref(Qc),{class:"position-absolute top-50 translate-middle-y text-muted",size:15,style:{left:"10px"}}),l.withDirectives(l.createElementVNode("input",{ref_key:"searchInputRef",ref:s,"onUpdate:modelValue":b[1]||(b[1]=_=>i.value=_),type:"text",class:"form-control form-control-sm shadow-none",style:{"padding-left":"32px","padding-right":"28px"},placeholder:"Search menu...",onInput:y},null,544),[[l.vModelText,i.value]]),i.value?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"position-absolute top-50 translate-middle-y border-0 bg-transparent p-0 text-muted d-flex align-items-center",style:{right:"8px",cursor:"pointer"},onClick:g},[l.createVNode(l.unref($a),{size:14})])):l.createCommentVNode("",!0)])])]),default:l.withCtx(()=>[l.createElementVNode("div",O2,[l.createVNode(l.unref(Qc),{size:20})])]),_:1})])):l.createCommentVNode("",!0),l.createVNode(Fv,null,{default:l.withCtx(()=>[l.createElementVNode("div",{class:"sidebar-body",ref_key:"sidebarBodyRef",ref:o},[l.renderSlot(m.$slots,"default")],512)]),_:3}),l.createElementVNode("div",F2,[l.renderSlot(m.$slots,"footer")])],2))}},H2={key:0,class:"section-title"},G2={key:1,class:"nav-item"},W2={class:"nav-left"},U2={class:"menu-text"},Y2={class:"floating-submenu"},Z2={key:0,class:"menu-text"},X2={class:"sub-menu"},j2=["href"],q2={class:"nav-left"},K2={class:"menu-text"},Q2={class:"nav-left"},J2={class:"menu-text"},eM={key:2,class:"sub-menu"},f_=Object.assign({inheritAttrs:!1},{__name:"AbSideMenuItem",setup(r){const e=l.ref(!1),t=l.inject("isMobileFullHeight",l.ref(!1)),n=l.inject("layoutState",null),a=()=>{t.value&&window.innerWidth<576&&(n!=null&&n.toggleLeftSidebar)&&n.toggleLeftSidebar(!1)},i=()=>{f.value?e.value=!e.value:a()},o=l.inject("isCollapsed"),s=l.useSlots(),u=l.useAttrs(),c=l.computed(()=>{const{href:h,to:v,...p}=u;return p}),f=l.computed(()=>!!s.submenu),d=l.computed(()=>{var v;const h=(v=s.default)==null?void 0:v.call(s);return h?h.map(p=>typeof p.children=="string"?p.children:"").join("").trim():""});return(h,v)=>{var m,b,_,S;const p=l.resolveComponent("router-link"),g=l.resolveDirective("translate"),y=l.resolveDirective("tooltip");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.unref(s).sectiontitle&&!l.unref(o)?(l.openBlock(),l.createElementBlock("div",H2,[l.renderSlot(h.$slots,"sectiontitle",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Undefined")),1)])])):l.createCommentVNode("",!0),l.unref(s).sectiontitle?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",G2,[f.value&&l.unref(o)?(l.openBlock(),l.createBlock(hi,{key:0,gap:35,placement:"right-start",trigger:"hover",contentClass:"apbd-submenu-container"},{content:l.withCtx(()=>[l.createElementVNode("div",Y2,[l.unref(o)?(l.openBlock(),l.createElementBlock("div",Z2,[l.renderSlot(h.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Undefined")),1)])])):l.createCommentVNode("",!0),l.createElementVNode("div",X2,[l.renderSlot(h.$slots,"submenu")])])]),default:l.withCtx(()=>[l.createElementVNode("a",l.mergeProps({class:"nav-link-custom"},c.value),[l.createElementVNode("div",W2,[l.renderSlot(h.$slots,"icon",{},()=>[l.createVNode(l.unref(Jc))]),l.withDirectives((l.openBlock(),l.createElementBlock("span",U2,[l.renderSlot(h.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Undefined")),1)])])),[[g]])]),l.createVNode(l.unref(qd),{class:"sub-menu-icon","stroke-width":1})],16)]),_:3})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[(m=l.unref(u))!=null&&m.href||f.value?(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,class:"nav-link-custom",href:(b=l.unref(u))!=null&&b.href&&!f.value?(_=l.unref(u))==null?void 0:_.href:null,onClick:i},c.value),[l.createElementVNode("div",q2,[l.renderSlot(h.$slots,"icon",{},()=>[l.createVNode(l.unref(Jc))]),l.withDirectives((l.openBlock(),l.createElementBlock("span",K2,[l.renderSlot(h.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Undefined")),1)])])),[[g]])]),f.value?(l.openBlock(),l.createBlock(l.unref(qd),{key:0,class:l.normalizeClass(["sub-menu-icon",{collapsed:e.value}]),"stroke-width":1},null,8,["class"])):l.createCommentVNode("",!0)],16,j2)):l.withDirectives((l.openBlock(),l.createBlock(p,l.mergeProps({key:1,class:"nav-link-custom",to:(S=l.unref(u))==null?void 0:S.to},c.value,{onClick:a}),{default:l.withCtx(()=>[l.createElementVNode("div",Q2,[l.renderSlot(h.$slots,"icon",{},()=>[l.createVNode(l.unref(Jc))]),l.withDirectives((l.openBlock(),l.createElementBlock("span",J2,[l.renderSlot(h.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Undefined")),1)])])),[[g]])])]),_:3},16,["to"])),[[y,{content:l.unref(o)?l.unref(F)(d.value):"",placement:"right"}]]),f.value&&e.value?(l.openBlock(),l.createElementBlock("div",eM,[l.renderSlot(h.$slots,"submenu")])):l.createCommentVNode("",!0)],64))]))],64)}}}),tM={key:0,class:"form-label"},rM={key:0,class:"apbd-slider-prefix"},nM=["aria-valuemin","aria-valuemax","aria-valuenow"],aM={key:0,class:"apbd-slider-label"},iM=["aria-valuemin","aria-valuemax","aria-valuenow","aria-label"],oM={key:0,class:"apbd-slider-label"},sM={key:1,class:"apbd-slider-postfix"},lM={key:1,class:"form-text"},d_=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:r=>["sm","md","lg"].includes(r)},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:r=>Math.round(r)+"%"}},emits:["update:modelValue"],setup(r,{emit:e}){const t=l.useSlots(),n=r,a=e,i=l.ref(null),o=l.ref(null),s=l.computed(()=>n.size!==void 0&&n.size!==null?n.size:ve.size??"md"),u=l.computed(()=>{if(!n.range)return 0;const C=Array.isArray(n.modelValue)?n.modelValue[0]:n.min;return d(C)}),c=l.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=l.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),T=Math.round(k/n.step)*n.step;return Math.min(Math.max(T,n.min),n.max)}function v(C){if(!i.value)return 0;const k=i.value.getBoundingClientRect();let D=((C.touches?C.touches[0].clientX:C.clientX)-k.left)/k.width*100;return window.getComputedStyle(i.value).direction==="rtl"&&(D=100-D),Math.min(Math.max(D,0),100)}function p(C,k){if(n.disabled)return;const T=h(k);if(n.range){const D=Array.isArray(n.modelValue)?[...n.modelValue]:[n.min,n.max];C==="min"?D[0]=Math.min(T,D[1]):D[1]=Math.max(T,D[0]),a("update:modelValue",D)}else a("update:modelValue",T)}function g(C){if(n.disabled)return;const k=v(C);if(n.range){const T=Array.isArray(n.modelValue)?n.modelValue:[n.min,n.max],D=d(T[0]),M=d(T[1]),A=Math.abs(k-D)<Math.abs(k-M)?"min":"max";p(A,k),m(A)}else p("single",k),m("single")}function y(C){if(n.disabled)return;const k=v(C);if(n.range){const T=Array.isArray(n.modelValue)?n.modelValue:[n.min,n.max],D=d(T[0]),M=d(T[1]),A=Math.abs(k-D)<Math.abs(k-M)?"min":"max";p(A,k),b(A)}else p("single",k),b("single")}function m(C,k){n.disabled||(o.value=C,document.addEventListener("mousemove",_),document.addEventListener("mouseup",w))}function b(C,k){n.disabled||(o.value=C,document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",w))}function _(C){if(!o.value)return;const k=v(C);p(o.value==="single"?"single":o.value,k)}function S(C){if(!o.value)return;C.preventDefault();const k=v(C);p(o.value==="single"?"single":o.value,k)}function w(){o.value=null,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",w),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",w)}function x(C,k){if(n.disabled)return;let T;if(n.range){const E=Array.isArray(n.modelValue)?n.modelValue:[n.min,n.max];T=C==="min"?E[0]:E[1]}else T=n.modelValue??n.min;let D=T;const M=window.getComputedStyle(i.value).direction==="rtl";switch(k.key){case"ArrowRight":k.preventDefault(),D=M?Math.max(T-n.step,n.min):Math.min(T+n.step,n.max);break;case"ArrowUp":k.preventDefault(),D=Math.min(T+n.step,n.max);break;case"ArrowLeft":k.preventDefault(),D=M?Math.min(T+n.step,n.max):Math.max(T-n.step,n.min);break;case"ArrowDown":k.preventDefault(),D=Math.max(T-n.step,n.min);break;case"Home":k.preventDefault(),D=n.min;break;case"End":k.preventDefault(),D=n.max;break;default:return}const A=d(D);p(C,A)}return l.onBeforeUnmount(()=>{w()}),(C,k)=>{var T,D,M,A,E,I,B,R,P,L;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([r.containerClass,"apbd-slider-container"])},[r.label||(T=l.unref(t))!=null&&T.label?(l.openBlock(),l.createElementBlock("label",tM,[l.renderSlot(C.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["apbd-slider",[`apbd-slider-${s.value}`,{"apbd-slider-disabled":r.disabled}]])},[(D=l.unref(t))!=null&&D.prefix?(l.openBlock(),l.createElementBlock("div",rM,[l.renderSlot(C.$slots,"prefix")])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"apbd-slider-wrapper",ref_key:"sliderRef",ref:i,onMousedown:g,onTouchstartPassive:y},[k[8]||(k[8]=l.createElementVNode("div",{class:"apbd-slider-track"},null,-1)),l.createElementVNode("div",{class:"apbd-slider-fill",style:l.normalizeStyle(f.value)},null,4),r.range?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["apbd-slider-thumb",{"apbd-slider-thumb-active":o.value==="min"}]),style:l.normalizeStyle({insetInlineStart:u.value+"%"}),onMousedown:k[0]||(k[0]=l.withModifiers(V=>m("min"),["stop"])),onTouchstartPassive:k[1]||(k[1]=l.withModifiers(V=>b("min"),["stop"])),onKeydown:k[2]||(k[2]=V=>x("min",V)),tabindex:"0",role:"slider","aria-valuemin":r.min,"aria-valuemax":r.max,"aria-valuenow":((M=r.modelValue)==null?void 0:M[0])??r.min,"aria-label":"Minimum value"},[l.renderSlot(C.$slots,"thumb",{value:((A=r.modelValue)==null?void 0:A[0])??r.min,type:"min"},()=>[k[6]||(k[6]=l.createElementVNode("div",{class:"apbd-slider-thumb-handle"},null,-1))]),r.showLabels?(l.openBlock(),l.createElementBlock("div",aM,l.toDisplayString(r.formatLabel(((E=r.modelValue)==null?void 0:E[0])??r.min)),1)):l.createCommentVNode("",!0)],46,nM)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["apbd-slider-thumb",{"apbd-slider-thumb-active":o.value===(r.range?"max":"single")}]),style:l.normalizeStyle({insetInlineStart:c.value+"%"}),onMousedown:k[3]||(k[3]=l.withModifiers(V=>m(r.range?"max":"single"),["stop"])),onTouchstartPassive:k[4]||(k[4]=l.withModifiers(V=>b(r.range?"max":"single"),["stop"])),onKeydown:k[5]||(k[5]=V=>x(r.range?"max":"single",V)),tabindex:"0",role:"slider","aria-valuemin":r.min,"aria-valuemax":r.max,"aria-valuenow":r.range?((I=r.modelValue)==null?void 0:I[1])??r.max:r.modelValue??r.min,"aria-label":r.range?"Maximum value":"Value"},[l.renderSlot(C.$slots,"thumb",{value:r.range?((B=r.modelValue)==null?void 0:B[1])??r.max:r.modelValue??r.min,type:r.range?"max":"single"},()=>[k[7]||(k[7]=l.createElementVNode("div",{class:"apbd-slider-thumb-handle"},null,-1))]),r.showLabels?(l.openBlock(),l.createElementBlock("div",oM,l.toDisplayString(r.formatLabel(r.range?((R=r.modelValue)==null?void 0:R[1])??r.max:r.modelValue??r.min)),1)):l.createCommentVNode("",!0)],46,iM)],544),(P=l.unref(t))!=null&&P.postfix?(l.openBlock(),l.createElementBlock("div",sM,[l.renderSlot(C.$slots,"postfix")])):l.createCommentVNode("",!0)],2),(L=l.unref(t))!=null&&L.hints||r.hints?(l.openBlock(),l.createElementBlock("div",lM,[l.renderSlot(C.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])):l.createCommentVNode("",!0)],2)}}}),uM=["for"],cM={key:0,class:"input-group-text left"},fM={key:1,class:"input-group-text left"},dM=["disabled","id","aria-expanded"],hM={class:"multiselect-wrapper"},vM={key:0,class:"multiselect-single-label"},pM={key:1,class:"multiselect-placeholder"},gM={key:1,class:"multiselect-tags"},mM={class:"multiselect-tag-wrapper"},yM=["onMousedown"],bM=["placeholder"],_M={class:"multiselect-icons"},SM={key:0,class:"multiselect-spinner"},wM=["dir"],xM={class:"multiselect-options"},CM=["onMousedown","onMouseenter"],kM={key:0,class:"multiselect-no-options"},TM={class:"multiselect-empty"},DM={class:"multiselect-empty"},MM={key:2,class:"input-group-text right"},EM={key:3,class:"input-group-text right"},AM={key:1,class:"form-text"},Za=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:r=>["single","multiple","tags"].includes(r)},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:r=>["xs","sm","md","lg","xl","xxl"].includes(r)},isHideLabel:{type:Boolean,default:!1},iconPosition:{type:String,default:void 0,validator:r=>["left","right"].includes(r)}},emits:["update:modelValue","clear","change","select","open","close","search-change"],setup(r,{emit:e}){const t=r,n=e,a=l.useSlots(),i=l.useAttrs(),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref(null),f=l.ref(!1),d=l.ref(""),h=l.ref(!1),v=l.ref(-1),p=l.ref([...t.options]),g=l.ref([]),y=l.ref(!1),m=l.ref(null),b=l.ref(300),_=l.ref("bottom"),S=l.ref({}),w=l.ref("ltr");let x=null;l.watch(()=>t.options,K=>{p.value=[...K]},{deep:!0});const C=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,k=l.getCurrentInstance(),T=l.computed(()=>t.name||`input_${(k==null?void 0:k.uid)||C}`),D=l.computed(()=>t.disabled||(i==null?void 0:i.disabled)),M=l.computed(()=>(a==null?void 0:a.prefix)||(a==null?void 0:a.postfix)||(a==null?void 0:a.icon)||t.prefix||t.postfix),A=l.computed(()=>t.loading||y.value),E=l.computed(()=>t.mode==="tags"||t.mode==="multiple"),I=l.computed(()=>!a.prefix&&!a.postfix&&!a.icon?"":t.isLeftIconBorder?"input-group-text-border-right-0 ":t.isRightIconBorder?"input-group-text-border-left-0":"input-group-text-border-0"),B=l.computed(()=>t.containerClass!==void 0&&t.containerClass!==null?t.containerClass:ve.inputContainerClass??""),R=l.computed(()=>t.size!==void 0&&t.size!==null?t.size:ve.size??"md"),P=l.computed(()=>{var K;return t.iconPosition!==void 0&&t.iconPosition!==null?t.iconPosition:((K=ve.input)==null?void 0:K.iconPosition)??"right"}),L=l.computed({get:()=>t.modelValue,set:K=>{n("update:modelValue",K)}}),V=l.computed(()=>t.mode==="single"?1:t.max);function z(K){return K==null?null:typeof K=="object"?K[t.valueKey]:K}function O(K){return K==null?"":typeof K=="object"?K[t.labelKey]??K[t.valueKey]??"":String(K)}function W(K){if(K==null)return null;const ge=t.object?K[t.valueKey]:K;let $=p.value.find(U=>z(U)===ge);return $||($=g.value.find(U=>z(U)===ge)),$||null}function j(K){var $;const ge=z(K);return E.value?(Array.isArray(L.value)?L.value:[]).some(be=>(t.object?be[t.valueKey]:be)===ge):(t.object?($=L.value)==null?void 0:$[t.valueKey]:L.value)===ge}const ne=l.computed(()=>L.value?W(L.value):null),q=l.computed(()=>{const K=ne.value;return K?O(K):t.object&&L.value?L.value[t.labelKey]??"":L.value??""}),Q=l.computed(()=>E.value?(Array.isArray(L.value)?L.value:[]).map(ge=>{const $=W(ge);return $||(t.object&&typeof ge=="object"?ge:{[t.valueKey]:ge,[t.labelKey]:String(ge)})}):[]),Be=l.computed(()=>E.value?Array.isArray(L.value)&&L.value.length>0:L.value!=null&&L.value!==""),ae=l.computed(()=>{if(!d.value||t.isAjaxSearch)return p.value;const K=d.value.toLowerCase();return p.value.filter(ge=>O(ge).toLowerCase().includes(K))}),le=l.computed(()=>{let K=ae.value;return t.hideSelected&&E.value&&Be.value&&(K=K.filter(ge=>!j(ge))),K}),Se=l.computed(()=>!E.value||V.value<=0?!0:(Array.isArray(L.value)?L.value.length:0)<V.value);function J(){D.value||f.value||(f.value=!0,v.value=-1,qs(),n("open"),l.nextTick(()=>{u.value?u.value.focus():s.value&&s.value.focus()}))}function ie(){f.value&&(f.value=!1,d.value="",h.value=!1,v.value=-1,n("close"))}function $e(K){if(!D.value&&!(c.value&&c.value.contains(K.target))&&!K.target.closest(".multiselect-clear"))if(f.value){if(K.target===u.value&&d.value.length>0)return;K.preventDefault(),ie(),s.value&&s.value.focus()}else K.preventDefault(),J()}function Ae(K){if(D.value)return;const ge=z(K);g.value.some(U=>z(U)===ge)||g.value.push(K);const $=t.object?K:ge;if(t.mode==="single")L.value=$,n("select",$),n("change",$),ie(),s.value&&s.value.focus();else{if(!Se.value&&!j(K))return;const U=Array.isArray(L.value)?[...L.value]:[];if(j(K)){const be=z(K),pe=U.filter(ee=>(t.object?ee[t.valueKey]:ee)!==be);L.value=pe}else U.push($),L.value=U,n("select",$);n("change",L.value),d.value="",l.nextTick(()=>{u.value?u.value.focus():s.value&&s.value.focus()})}}function xe(K){if(D.value)return;const ge=z(K),U=(Array.isArray(L.value)?[...L.value]:[]).filter(be=>(t.object?be[t.valueKey]:be)!==ge);L.value=U,n("change",U)}function Fe(){E.value?L.value=[]:L.value=null,d.value="",n("clear"),n("change",L.value),ie(),s.value&&s.value.focus()}function tt(){if(d.value===""&&Be.value&&E.value){const K=Array.isArray(L.value)?[...L.value]:[];K.pop(),L.value=K,n("change",K)}}function At(){h.value=!0,f.value||J()}function at(){setTimeout(()=>{h.value=!1},200)}async function cn(){n("search-change",d.value),!f.value&&d.value&&J(),t.isAjaxSearch&&(clearTimeout(m.value),d.value!==""&&(y.value=!0,m.value=setTimeout(async()=>{try{const K=await t.onSearch(d.value);K&&(p.value=[...K])}catch(K){console.error("AbMultiSelect ajax search error:",K)}finally{y.value=!1}},500)))}function $r(K){if(!D.value)switch(K.key){case"ArrowDown":K.preventDefault(),f.value?(v.value=Math.min(v.value+1,le.value.length-1),Nn()):J();break;case"ArrowUp":K.preventDefault(),f.value&&(v.value=Math.max(v.value-1,0),Nn());break;case"Enter":K.preventDefault(),f.value&&v.value>=0&&v.value<le.value.length?Ae(le.value[v.value]):f.value||J();break;case"Escape":K.preventDefault(),ie();break;case"Tab":ie();break}}function Nn(){l.nextTick(()=>{if(!c.value)return;const K=c.value.querySelectorAll(".multiselect-option");K[v.value]&&K[v.value].scrollIntoView({block:"nearest"})})}const qs=()=>{if(!s.value)return;const K=s.value,ge=K.getBoundingClientRect();w.value=window.getComputedStyle(K).direction||"ltr";let $=K.parentElement,U=null;for(;$&&$!==document.documentElement;){const Le=window.getComputedStyle($);if(["auto","hidden","scroll"].includes(Le.overflow)||["auto","hidden","scroll"].includes(Le.overflowY)){U=$;break}$=$.parentElement}const be=U?U.getBoundingClientRect():{top:0,bottom:window.innerHeight},pe=be.bottom-ge.bottom-10,ee=ge.top-be.top-10;pe<250&&ee>pe?(_.value="top",b.value=Math.min(300,Math.max(150,ee))):(_.value="bottom",b.value=Math.min(300,Math.max(150,pe))),t.appendToBody?_.value==="top"?S.value={position:"fixed",bottom:`${window.innerHeight-ge.top}px`,top:"auto",right:"auto",transform:"none",left:`${ge.left}px`,width:`${ge.width}px`,zIndex:9999}:S.value={position:"fixed",top:`${ge.bottom}px`,bottom:"auto",right:"auto",transform:"none",left:`${ge.left}px`,width:`${ge.width}px`,zIndex:9999}:S.value={}},In=()=>{f.value&&t.appendToBody&&(x&&cancelAnimationFrame(x),x=requestAnimationFrame(()=>{qs()}))};l.watch(f,K=>{K?t.appendToBody&&(window.addEventListener("scroll",In,!0),window.addEventListener("resize",In)):t.appendToBody&&(window.removeEventListener("scroll",In,!0),window.removeEventListener("resize",In))});function po(K){const ge=o.value&&!o.value.contains(K.target),$=c.value&&!c.value.contains(K.target);ge&&$&&ie()}return l.onMounted(()=>{document.addEventListener("mousedown",po)}),l.onBeforeUnmount(()=>{document.removeEventListener("mousedown",po),window.removeEventListener("scroll",In,!0),window.removeEventListener("resize",In),x&&cancelAnimationFrame(x),clearTimeout(m.value)}),(K,ge)=>{var be,pe,ee,Le,Qe,xt;const $=l.resolveComponent("translate"),U=l.resolveDirective("translate");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([[B.value,I.value],"apbd-multiselect-container"]),ref_key:"containerRef",ref:o},[(r.label||l.unref(a).label)&&!r.isHideLabel?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:(be=l.unref(i))==null?void 0:be.id},[l.renderSlot(K.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])],8,uM)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass({"input-group":M.value})},[(pe=l.unref(a))!=null&&pe.icon&&P.value==="left"?(l.openBlock(),l.createElementBlock("span",cM,[l.renderSlot(K.$slots,"icon")])):l.createCommentVNode("",!0),(ee=l.unref(a))!=null&&ee.prefix||r.prefix?(l.openBlock(),l.createElementBlock("span",fM,[l.renderSlot(K.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])])):l.createCommentVNode("",!0),l.createVNode(l.unref(ut.Field),{label:r.label,name:T.value,id:(Le=l.unref(i))==null?void 0:Le.id,modelValue:L.value,"onUpdate:modelValue":ge[2]||(ge[2]=Je=>L.value=Je),rules:r.rules},{default:l.withCtx(()=>{var Je,Ze,ct;return[l.createElementVNode("div",{ref_key:"multiselectRef",ref:s,class:l.normalizeClass(["multiselect",`multiselect-${R.value}`,(Je=l.unref(i))==null?void 0:Je.class,{"is-active":f.value,"is-disabled":D.value}]),style:l.normalizeStyle((Ze=l.unref(i))==null?void 0:Ze.style),disabled:D.value,id:(ct=l.unref(i))==null?void 0:ct.id,tabindex:"0",role:"combobox","aria-expanded":f.value,onMousedown:$e,onKeydown:$r},[l.createElementVNode("div",hM,[r.mode==="single"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[Be.value&&!h.value?(l.openBlock(),l.createElementBlock("div",vM,[l.renderSlot(K.$slots,"singlelabel",{value:ne.value},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(q.value)),1)])])):l.createCommentVNode("",!0),!Be.value&&!d.value?(l.openBlock(),l.createElementBlock("div",pM,l.toDisplayString(l.unref(F)(r.placeholder)),1)):l.createCommentVNode("",!0),r.searchable?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:2,ref_key:"searchInputRef",ref:u,"onUpdate:modelValue":ge[0]||(ge[0]=Ve=>d.value=Ve),class:l.normalizeClass(["multiselect-search",{"is-idle":!f.value&&!d.value}]),autocomplete:"off",onFocus:At,onBlur:at,onInput:cn},null,34)),[[l.vModelText,d.value]]):l.createCommentVNode("",!0)],64)):(l.openBlock(),l.createElementBlock("div",gM,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Q.value,(Ve,ft)=>(l.openBlock(),l.createElementBlock("span",{key:z(Ve)??ft,class:"multiselect-tag"},[l.createElementVNode("span",mM,[l.renderSlot(K.$slots,"taglabel",{value:Ve},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(O(Ve))),1)])]),l.createElementVNode("span",{class:"multiselect-tag-remove",onMousedown:l.withModifiers(Bn=>xe(Ve),["prevent","stop"])},[...ge[3]||(ge[3]=[l.createElementVNode("span",{class:"multiselect-tag-remove-icon"},"×",-1)])],40,yM)]))),128)),l.createElementVNode("div",{class:l.normalizeClass(["multiselect-tags-search-wrapper",{"is-full":!Be.value}])},[l.withDirectives(l.createElementVNode("input",{ref_key:"searchInputRef",ref:u,"onUpdate:modelValue":ge[1]||(ge[1]=Ve=>d.value=Ve),class:"multiselect-tags-search",autocomplete:"off",placeholder:Be.value?"":l.unref(F)(r.placeholder),onFocus:At,onBlur:at,onInput:cn,onKeydown:l.withKeys(tt,["delete"])},null,40,bM),[[l.vModelText,d.value]])],2)])),l.createElementVNode("div",_M,[A.value?(l.openBlock(),l.createElementBlock("div",SM,[l.renderSlot(K.$slots,"loader-icon",{},()=>[l.createVNode(l.unref(AT),{class:"ab-spin",width:"18",height:"18"})])])):l.createCommentVNode("",!0),Be.value&&!D.value&&!A.value?(l.openBlock(),l.createElementBlock("div",{key:1,class:"multiselect-clear",onMousedown:l.withModifiers(Fe,["prevent","stop"])},[...ge[4]||(ge[4]=[l.createElementVNode("div",{class:"clear-icon-wrapper"},[l.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[l.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)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["multiselect-caret",{"is-open":f.value}])},[...ge[5]||(ge[5]=[l.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},[l.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)])]),(l.openBlock(),l.createBlock(l.Teleport,{to:"body",disabled:!r.appendToBody},[l.createElementVNode("div",{class:l.normalizeClass(r.appendToBody?["appsbd-app","apbd-multiselect-container"]:[]),style:l.normalizeStyle(r.appendToBody?{}:{display:"contents"}),dir:w.value},[l.withDirectives(l.createElementVNode("div",{ref_key:"dropdownRef",ref:c,class:l.normalizeClass(["multiselect-dropdown",[{"is-top":_.value==="top"},r.appendToBody?"is-teleported":""]]),style:l.normalizeStyle([{maxHeight:b.value+"px"},S.value])},[l.createElementVNode("ul",xM,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(le.value,(Ve,ft)=>(l.openBlock(),l.createElementBlock("li",{key:z(Ve),class:l.normalizeClass(["multiselect-option",{"is-selected":j(Ve),"is-pointed":ft===v.value}]),onMousedown:l.withModifiers(Bn=>Ae(Ve),["prevent"]),onMouseenter:Bn=>v.value=ft},[l.renderSlot(K.$slots,"option",{option:Ve,isSelected:j(Ve)},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(O(Ve))),1)])],42,CM))),128))]),le.value.length===0?(l.openBlock(),l.createElementBlock("div",kM,[A.value?l.renderSlot(K.$slots,"option-loading",{key:1},()=>[l.createElementVNode("div",DM,[l.createElementVNode("span",null,[l.createVNode($,null,{default:l.withCtx(()=>[...ge[7]||(ge[7]=[l.createTextVNode("Loading",-1)])]),_:1}),ge[8]||(ge[8]=l.createTextVNode("... ",-1))])])]):l.renderSlot(K.$slots,"noresults",{key:0},()=>[l.createElementVNode("div",TM,[l.createVNode(l.unref(ET)),l.withDirectives((l.openBlock(),l.createElementBlock("span",null,[...ge[6]||(ge[6]=[l.createTextVNode("No option found!",-1)])])),[[U]])])])])):l.createCommentVNode("",!0)],6),[[l.vShow,f.value]])],14,wM)],8,["disabled"]))],46,dM)]}),_:3},8,["label","name","id","modelValue","rules"]),(Qe=l.unref(a))!=null&&Qe.postfix||r.postfix?(l.openBlock(),l.createElementBlock("span",MM,[l.renderSlot(K.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])])):l.createCommentVNode("",!0),(xt=l.unref(a))!=null&&xt.icon&&P.value==="right"?(l.openBlock(),l.createElementBlock("span",EM,[l.renderSlot(K.$slots,"icon")])):l.createCommentVNode("",!0)],2),l.createVNode(l.unref(ut.ErrorMessage),{name:T.value,class:"apbd-v-error"},null,8,["name"]),l.unref(a).hints||r.hints?(l.openBlock(),l.createElementBlock("div",AM,[l.renderSlot(K.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])])):l.createCommentVNode("",!0)],2)}}}),NM={class:"d-flex justify-content-center align-items-center flex-wrap gap-2 mb-3"},IM={class:"d-flex gap-2"},BM=["onUpdate:modelValue","onInput","onKeydown"],LM={key:0,class:"otp-separator mx-2"},h_={__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(r,{emit:e}){const t=r,n=e,a=l.ref(Array(t.length).fill("")),i=l.ref([]),o=l.computed(()=>{const d=[];for(let h=0;h<t.length;h+=t.groupSize)d.push(a.value.slice(h,h+t.groupSize));return d});function s(d,h){d&&(i.value[h]=d)}l.watch(()=>t.modelValue,d=>{a.value=Array(t.length).fill(""),d&&d.split("").forEach((h,v)=>{v<t.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<t.length-1&&l.nextTick(()=>{var p;(p=i.value[d+1])==null||p.focus()})}function c(d,h){!a.value[h]&&h>0&&l.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,t.length);a.value=Array(t.length).fill(""),v.forEach((p,g)=>{a.value[g]=p}),n("update:modelValue",a.value.join("")),l.nextTick(()=>{var g,y;const p=Math.min(v.length,t.length-1);(y=(g=i.value[p])==null?void 0:g.focus)==null||y.call(g)})}return(d,h)=>(l.openBlock(),l.createElementBlock("div",NM,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,(v,p)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:p},[l.createElementVNode("div",IM,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(v,(g,y)=>(l.openBlock(),l.createElementBlock("div",{class:"apbd-input-container",key:y},[l.withDirectives(l.createElementVNode("input",{ref_for:!0,ref:m=>s(m,p*r.groupSize+y),type:"text",maxlength:"1",class:l.normalizeClass(["form-control mega-input-field","form-control-"+r.size]),"onUpdate:modelValue":m=>a.value[p*r.groupSize+y]=m,onInput:m=>u(p*r.groupSize+y,m),onKeydown:l.withKeys(m=>c(m,p*r.groupSize+y),["backspace"]),onPaste:f},null,42,BM),[[l.vModelText,a.value[p*r.groupSize+y]]])]))),128))]),r.showSeparator&&p!==o.value.length-1?(l.openBlock(),l.createElementBlock("span",LM," - ")):l.createCommentVNode("",!0)],64))),128))]))}},v_={__name:"AbCustomField",props:{fieldInputs:{type:Array,default:()=>[]},size:{type:String,default:void 0},customProps:{type:Object,default:()=>({})}},setup(r){const e=r,t=l.useAttrs(),n=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"}},a=s=>{const{is_required:u,type:c,max_val:f,min_val:d}=s;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=(s="100px")=>({height:s}),o=l.computed(()=>e.size!==void 0&&e.size!==null?e.size:ve.size??"md");return(s,u)=>(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.fieldInputs,(c,f)=>{var d;return l.openBlock(),l.createElementBlock("div",{key:f,class:l.normalizeClass(["mb-3",c.res_class??((d=l.unref(t))==null?void 0:d.class)])},[["T","N","U","P","E"].includes(c.type)?(l.openBlock(),l.createBlock(kr,{key:0,class:l.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||o.value,rules:a(c),label:c.label,id:"cf_"+c.id,name:"cf_"+c.id,modelValue:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h,as:c.type==="E"?"textarea":"",type:n(c),style:l.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},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"hints",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Hints"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.des)),1)])]),key:"1"}:void 0,c.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Prefix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.prefix)),1)])]),key:"2"}:void 0,c.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Postfix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(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"])):l.createCommentVNode("",!0),c.type==="H"?(l.openBlock(),l.createBlock(l.unref(ut.Field),{key:1,type:"hidden",label:c.label,rules:a(c),modelValue:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h,class:l.normalizeClass(["form-control",c!=null&&c.input_class?c.input_class:"form-control-"+((c==null?void 0:c.size)||o.value)]),id:"cf_"+c.id,name:"cf_"+c.id,placeholder:c.placeholder},null,8,["label","rules","modelValue","onUpdate:modelValue","class","id","name","placeholder"])):l.createCommentVNode("",!0),c.type==="D"||c.type==="DR"?(l.openBlock(),l.createBlock(yn,{key:2,"is-range":c.type==="DR",class:l.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||o.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:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Prefix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.prefix)),1)])]),key:"1"}:void 0,c.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Postfix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.postfix)),1)])]),key:"2"}:void 0,c.icon?{name:"icon",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Icon"+c.id,{},()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(c.icon)))])]),key:"3"}:void 0,c.des?{name:"hints",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Hints"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.des)),1)])]),key:"4"}:void 0]),1032,["is-range","class","size","id","name","rules","placeholder","is-disable","label","modelValue","onUpdate:modelValue"])):l.createCommentVNode("",!0),c.type==="R"?(l.openBlock(),l.createBlock(aa,{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:l.normalizeClass(c==null?void 0:c.input_class),"is-disable":c.is_disable==="Y",size:(c==null?void 0:c.size)||o.value,modelValue:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"description",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Description"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.des)),1)])]),key:"1"}:void 0,c.help_text?{name:"help-text",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"HelpText"+c.id)]),key:"2"}:void 0]),1032,["id","name","options","label","val","isInline","class","is-disable","size","modelValue","onUpdate:modelValue"])):l.createCommentVNode("",!0),c.type==="W"?(l.openBlock(),l.createBlock(Za,{key:4,class:l.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||o.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:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h,prefix:c.prefix,postfix:c.postfix},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"description",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Description"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.des)),1)])]),key:"1"}:void 0,c.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Prefix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.prefix)),1)])]),key:"2"}:void 0,c.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Postfix"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.postfix)),1)])]),key:"3"}:void 0,c.postfix?{name:"hints",fn:l.withCtx(()=>[l.renderSlot(s.$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"])):l.createCommentVNode("",!0),c.type==="S"?(l.openBlock(),l.createBlock(gc,{key:5,class:l.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||o.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:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h,"is-disable":c.is_disable==="Y",val:c.val,title:c.title,description:c.description},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.title?{name:"title",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Title"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.title)),1)])]),key:"1"}:void 0,c.description?{name:"description",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Description"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.description)),1)])]),key:"2"}:void 0,c.hints?{name:"hints",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Hints"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.hints)),1)])]),key:"3"}:void 0]),1032,["class","size","label","id","true-value","false-value","modelValue","onUpdate:modelValue","is-disable","val","title","description"])):l.createCommentVNode("",!0),c.type==="C"?(l.openBlock(),l.createBlock(aa,{key:6,class:l.normalizeClass(c==null?void 0:c.input_class),size:(c==null?void 0:c.size)||o.value,name:"cf_"+c.id,label:c.label,isInline:c.isInline,options:c.options,val:c.val,rules:a(c),modelValue:r.customProps[c.id],"onUpdate:modelValue":h=>r.customProps[c.id]=h,limit:c.opt_limit},l.createSlots({_:2},[c.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Label"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.label)),1)])]),key:"0"}:void 0,c.des?{name:"description",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"Description"+c.id,{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(c.des)),1)])]),key:"1"}:void 0,c.help_text?{name:"help-text",fn:l.withCtx(()=>[l.renderSlot(s.$slots,"HelpText"+c.id)]),key:"2"}:void 0]),1032,["class","size","name","label","isInline","options","val","rules","modelValue","onUpdate:modelValue","limit"])):l.createCommentVNode("",!0)],2)}),128))}},VM=["checked","value","name","id"],PM=["for","title"],RM={__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:r=>["xs","sm","md","lg","xl","xxl"].includes(r)}},emits:["update:modelValue"],setup(r,{emit:e}){const t=r,n=e,a=l.computed(()=>t.size!==void 0&&t.size!==null?t.size:ve.size??"md"),i=o=>{n("update:modelValue",o.target.value)};return(o,s)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["apbd-color-skin",["apbd-color-skin-"+a.value]]),style:l.normalizeStyle(`justify-content:${r.align};--apbd-ascp-border-radius:${r.borderRadius}`)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.colors,(u,c)=>(l.openBlock(),l.createElementBlock("div",{class:"color-picker-item",key:u.name+"_"+c},[l.createElementVNode("input",{type:"radio",checked:u.name===r.modelValue,value:u.name,name:r.name,id:r.name+"-"+c,onInput:i},null,40,VM),l.createElementVNode("label",{for:r.name+"-"+c,title:u==null?void 0:u.title,style:l.normalizeStyle("background:"+(u==null?void 0:u.color))},[...s[0]||(s[0]=[l.createElementVNode("svg",{class:"check-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},[l.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,PM)]))),128))],6))}},p_=Pt(RM,[["__scopeId","data-v-2c720918"]]);function g_(){const{appContext:r}=l.getCurrentInstance(),e=r.config.globalProperties.$toast,t=(n,a)=>e(n,a);return t.success=(n,a)=>e.success(n,a),t.error=(n,a)=>e.error(n,a),t.warning=(n,a)=>e.warning(n,a),t.info=(n,a)=>e.info(n,a),t.dismiss=n=>e.dismiss(n),t.clear=()=>e.clear(),{toast:t}}function m_(){const{toast:r}=g_(),e=(n,a=1)=>{let i=n.name.split(".").pop().toLowerCase();const o={"jpg|jpeg|jpe":"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp"};let s=null;for(let f in o)if(f.split("|").includes(i)){s=o[f];break}if(!s){const f="Uploaded File type not allowed";return n.error=f,r.error(f),null}if(n.type!==s){const f="Uploaded File type not match with '"+i+"'";return n.error=f,r.error(f),null}const u=t(i,n.type);if(n.isImage=u.isImage,!n.isImage){const f="Uploaded File type not allowed";return n.error=f,r.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,r.error(f),null}return n},t=(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=Ng:n==="zip"?i.fileIcon=DT:n==="doc"||n==="docx"?i.fileIcon=Ng:n==="xls"||n==="xlsx"?i.fileIcon=BT:n==="ppt"||n==="pptx"?i.fileIcon=kT:(n==="mp4"||n==="mpeg"||n==="mkv"||n==="avi")&&(i.fileIcon=TT),i};return{getFileInfo:e,getFileIconByExt:t}}const OM=["for"],zM={key:0,class:"feature-images"},$M=["src"],FM={key:1,class:"feature-images empty-state"},HM={__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(r,{emit:e}){const t=e,n=r,a=l.ref(null),i=l.ref(null),o=l.useSlots(),s=l.computed(()=>!o.default&&!o.dial),{getFileInfo:u}=m_();l.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 y=u(g,n.maxSize);y?(p=y,i.value=URL.createObjectURL(y)):console.log(g==null?void 0:g.error)}),p&&t("update:modelValue",p),t("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=""),t("update:modelValue",null),t("onSelectFiles",[])};return(h,v)=>{var p;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.containerClass)},[r.label||l.unref(o).label?(l.openBlock(),l.createElementBlock("label",{key:0,class:"form-label",for:(p=h.attrs)==null?void 0:p.id},[l.renderSlot(h.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)],!0)],8,OM)):l.createCommentVNode("",!0),l.createElementVNode("input",l.mergeProps({ref_key:"afuInput",ref:a,class:"afu-input"},h.$attrs,{type:"file",onChange:f}),null,16),l.createElementVNode("div",{class:l.normalizeClass(["afu-cont",{"default-design":s.value}]),onClick:c},[l.renderSlot(h.$slots,"dial",{},()=>[l.renderSlot(h.$slots,"default",{},()=>[i.value?(l.openBlock(),l.createElementBlock("div",zM,[l.createElementVNode("img",{src:i.value,alt:"Preview"},null,8,$M),l.createElementVNode("span",{class:"img-rm",onClick:l.withModifiers(d,["stop"])},[l.createVNode(l.unref(rs))])])):(l.openBlock(),l.createElementBlock("div",FM,[l.createVNode(l.unref(MT))]))],!0)],!0)],2)],2)}}},y_=Pt(HM,[["__scopeId","data-v-0845af07"]]),GM={key:0,class:"row apbd-src-filter"},WM={key:0,class:"col-sm-8 col-lg-9"},UM={class:"row"},YM={class:"col-lg-5"},ZM={class:"multiselect-single-label"},XM={key:0,class:"col-lg-7"},jM={class:"multiselect-single-label"},qM={key:2,class:"input-group input-group-sm mb-2 mb-lg-0"},KM={class:"input-group-text"},QM={class:"range-input-panel"},JM=["placeholder"],eE=["placeholder"],tE={key:1,class:"col-sm-8 col-lg-9 mb-2 mb-md-0"},rE={key:1,class:"d-flex flex-column flex-md-row justify-content-start align-items-start align-items-md-end apbd-src-filter"},nE={class:"row w-100 g-2"},aE={class:"multiselect-single-label"},iE={key:2,class:"input-group input-group-sm mb-0"},oE={class:"input-group-text"},sE={class:"range-input-panel"},lE=["onUpdate:modelValue","placeholder"],uE=["onUpdate:modelValue","placeholder"],cE={class:"vtpos-zindex-10 d-flex flex-md-nowrap flex-sm-wrap align-bottom align-items-center ps-md-2 gap-2"},fE={key:2,class:"d-flex justify-content-between align-items-center flex-wrap apbd-quick-src-filter gap-2"},dE={class:"d-flex justify-content-start align-items-center flex-wrap gap-2"},hE=["onClick"],vE={class:"dropdown-item"},pE={class:"d-flex gap-2 align-items-center"},gE={key:3,class:"row g-2"},mE={key:0,class:"col-sm-8"},yE={key:1,class:"col-sm-8 mb-2 mb-md-0"},bE={__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},advanceContainerClass:{type:String,default:"col-6"},isQuickAdvanceAutoSearch:{type:Boolean,default:!1}},emits:["searchFilter","reset","ChangeSearchMode"],setup(r,{emit:e}){const t=l.useSlots(),n=r,a=e,i=l.ref(null),o=l.ref("");let s=l.ref(null);const u=l.ref(n.filterOptions||[]);l.watch(()=>n.filterOptions,I=>{u.value=I||[]},{deep:!0,immediate:!0});const c=l.ref(null),f=l.ref(null),d=l.ref(null),h=l.computed(()=>n.size!==void 0&&n.size!==null?n.size:ve.size??"xs"),v=l.computed(()=>i.value!=null&&i.value!==""),p=l.computed(()=>{if(!i.value)return!0;const I=i.value;return i.value.type==="tr"?!(I!=null&&I.start||I!=null&&I.end):!I}),g=l.computed(()=>!!(!n.showScanFld&&!i.value||n.showScanFld&&!o.value)),y=l.computed(()=>n.isMaxDate?new Date:null);function m(){if(!i.value)return;const I={...i.value};u.value.forEach(B=>{B.id===I.id&&(B.value="")})}function b(){if(n.showScanFld)_();else{const I=[];if(n.isAdvance||n.isQuickAdvance)u.value.forEach(B=>{B.value&&I.push({propName:B.propName,operators:B.operators,value:B.value})});else if(i.value){const B=i.value;I.push({propName:B.propName,operators:B.operators,value:B.value})}I.length>0&&a("searchFilter",I)}}function _(){const I={propName:n.scanProps,operators:"eq",value:o.value};s.value&&clearTimeout(s.value),s.value=setTimeout(()=>{var B;((B=o.value)==null?void 0:B.length)>0&&a("searchFilter",[I])},1e3)}function S(){n.showScanFld?(o.value&&w(),a("ChangeSearchMode",!1)):(o.value&&w(),a("ChangeSearchMode",!0),l.nextTick(()=>{var I;return(I=d.value)==null?void 0:I.focus()}))}function w(){n.isSingle||n.showScanFld?o.value="":!n.isAdvance&&!n.isQuickAdvance?i.value&&(i.value=null):(u.value.forEach(I=>{I.value="",I.type==="dd"&&(I.label=null,I.options&&I.options.forEach(B=>B.isSelected=!1))}),l.triggerRef(u)),a("reset")}function x(){i.value&&(u.value.forEach(I=>{I.id===i.value.id&&(I.value="")}),l.triggerRef(u)),i.value=null,a("reset")}function C(){if(!i.value)return;const I=i.value.type;l.nextTick(()=>{var B,R;I==="t"&&((B=c.value)==null||B.focus()),I==="tr"&&((R=f.value)==null||R.focus())})}function k(){var I;((I=o.value)==null?void 0:I.length)>0&&a("searchFilter",[{propName:"*",operators:"like",value:o.value}])}function T(I){(I===""||I===void 0||I===null)&&w()}function D(I,B){B.target.blur()}function M(I,B){const R=u.value.findIndex(P=>P.propName===I);if(R!==-1){const P=u.value[R],L=P.optionValueProp||"val",V=P.optionLabel||"label",z={...P};z.value=typeof B=="object"?B[L]??B:B,z.label=typeof B=="object"?B[V]??z.value:z.value,z.options&&(z.options=z.options.map(O=>({...O,isSelected:O===B||typeof B=="object"&&O[L]===(typeof B=="object"?B[L]:B)}))),u.value[R]=z,l.triggerRef(u),n.isQuickAdvanceAutoSearch&&b()}}function A(I){I.value&&(u.value.forEach(B=>{B.propName!==I.propName&&(I.type==="d"&&B.type==="dr"||I.type==="dr"&&B.type==="d")&&(B.value="")}),l.triggerRef(u),n.isQuickAdvance&&n.isQuickAdvanceAutoSearch&&b())}function E(I,B){if(B&&B.stopPropagation(),!I)return;const R=u.value.findIndex(L=>L.propName===I.propName&&L.type===I.type);if(R===-1)return;const P=u.value[R];P.value=Array.isArray(P.value)?[]:"",P.label=null,P.options&&P.options.forEach(L=>L.isSelected=!1),l.triggerRef(u),n.isQuickAdvance&&n.isQuickAdvanceAutoSearch&&b()}return(I,B)=>{var P,L;const R=l.resolveDirective("translate");return l.openBlock(),l.createElementBlock(l.Fragment,null,[!r.isSingle&&!r.isAdvance&&!r.isQuickAdvance?(l.openBlock(),l.createElementBlock("div",GM,[r.showScanFld?(l.openBlock(),l.createElementBlock("div",tE,[l.createVNode(kr,{containerClass:"mb-0",name:"singlescan",type:"text",ref_key:"singleScanBox",ref:d,isLeftIconBorder:!0,placeholder:"Scan",onInput:_,modelValue:o.value,"onUpdate:modelValue":B[7]||(B[7]=V=>o.value=V),size:h.value},null,8,["modelValue","size"])])):(l.openBlock(),l.createElementBlock("div",WM,[l.createElementVNode("div",UM,[l.createElementVNode("div",YM,[l.createVNode(Za,{name:"property",size:h.value,isLeftIconBorder:!0,modelValue:i.value,"onUpdate:modelValue":B[0]||(B[0]=V=>i.value=V),options:u.value,labelKey:"name",valueKey:"id",searchable:r.isSearchable,placeholder:l.unref(F)("Choose property"),containerClass:"mb-0",onClear:x,onChange:m,onSelect:C,object:!0},{prefix:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("Property")),1)]),singlelabel:l.withCtx(({value:V})=>[l.createElementVNode("div",ZM,l.toDisplayString(l.unref(F)(V.name)),1)]),option:l.withCtx(({option:V})=>[l.createTextVNode(l.toDisplayString(l.unref(F)(V.name)),1)]),_:1},8,["size","modelValue","options","searchable","placeholder"])]),v.value&&i.value?(l.openBlock(),l.createElementBlock("div",XM,[i.value.type==="dd"?(l.openBlock(),l.createBlock(Za,{key:0,name:"propertyValue",size:h.value,modelValue:i.value.value,"onUpdate:modelValue":B[1]||(B[1]=V=>i.value.value=V),mode:i.value.isMultiple?"tags":"single",multiple:i.value.isMultiple,labelKey:i.value.optionLabel,isLeftIconBorder:!0,valueKey:i.value.optionValueProp,searchable:r.isSearchable,placeholder:i.value.placeholder||"Choose option",options:i.value.options},{prefix:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(i.value.name)),1)]),singlelabel:l.withCtx(({value:V})=>[l.createElementVNode("div",jM,l.toDisplayString(l.unref(F)(V[i.value.optionLabel])),1)]),option:l.withCtx(({option:V})=>[l.createTextVNode(l.toDisplayString(l.unref(F)(V[i.value.optionLabel])),1)]),_:1},8,["size","modelValue","mode","multiple","labelKey","valueKey","searchable","placeholder","options"])):l.createCommentVNode("",!0),i.value.type==="t"?(l.openBlock(),l.createBlock(kr,{key:1,name:"propertyValue",size:h.value,containerClass:"mb-0",modelValue:i.value.value,"onUpdate:modelValue":B[2]||(B[2]=V=>i.value.value=V),isLeftIconBorder:!0,placeholder:i.value.placeholder||"Enter value"},{prefix:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.name)),1)]),_:1},8,["size","modelValue","placeholder"])):l.createCommentVNode("",!0),i.value.type==="tr"?(l.openBlock(),l.createElementBlock("div",qM,[l.createElementVNode("div",KM,l.toDisplayString(l.unref(F)(i.value.name)),1),l.createElementVNode("div",QM,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":B[3]||(B[3]=V=>i.value.value.start=V),class:l.normalizeClass(["form-control","form-control-"+h.value]),type:"text",ref_key:"inputRangeBox",ref:f,placeholder:((P=i.value.placeholder)==null?void 0:P.start)||"Min"},null,10,JM),[[l.vModelText,i.value.value.start]]),B[12]||(B[12]=l.createElementVNode("svg",{class:"w-4 h-4 mx-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})],-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":B[4]||(B[4]=V=>i.value.value.end=V),class:"form-control form-control-sm",type:"text",placeholder:((L=i.value.placeholder)==null?void 0:L.end)||"Max"},null,8,eE),[[l.vModelText,i.value.value.end]])])])):l.createCommentVNode("",!0),i.value.type==="d"?(l.openBlock(),l.createBlock(yn,{key:3,name:"propertyValue",modelValue:i.value.value,"onUpdate:modelValue":B[5]||(B[5]=V=>i.value.value=V),"max-date":y.value,attributes:[{key:"today",dot:!0,dates:new Date}],"model-config":{type:"string",mask:r.dateFormat},isLeftIconBorder:!0,masks:{input:r.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:D,size:h.value},l.createSlots({_:2},[i.value.name?{name:"prefix",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.name)),1)]),key:"0"}:void 0,l.unref(t).postfix||i.value.postfix?{name:"postfix",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.postfix)),1)]),key:"1"}:void 0,l.unref(t).icon||i.value.icon?{name:"icon",fn:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.value.icon)))]),key:"2"}:void 0,l.unref(t).hints||i.value.hints?{name:"hints",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.hints)),1)]),key:"3"}:void 0]),1032,["modelValue","max-date","attributes","model-config","masks","size"])):l.createCommentVNode("",!0),i.value.type==="dr"?(l.openBlock(),l.createBlock(yn,{key:4,name:"propertyValue",modelValue:i.value.value,"onUpdate:modelValue":B[6]||(B[6]=V=>i.value.value=V),"max-date":y.value,attributes:[{key:"today",dot:!0,dates:new Date}],"model-config":{type:"string",mask:r.dateFormat},isLeftIconBorder:!0,masks:{input:r.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:D,size:h.value,"is-range":!0},l.createSlots({_:2},[i.value.name?{name:"prefix",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.name)),1)]),key:"0"}:void 0,l.unref(t).postfix||i.value.postfix?{name:"postfix",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.postfix)),1)]),key:"1"}:void 0,l.unref(t).icon||i.value.icon?{name:"icon",fn:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.value.icon)))]),key:"2"}:void 0,l.unref(t).hints||i.value.hints?{name:"hints",fn:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(i.value.hints)),1)]),key:"3"}:void 0]),1032,["modelValue","max-date","attributes","model-config","masks","size"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)])])),l.createElementVNode("div",{class:l.normalizeClass(["col-6 col-sm-4 col-lg-3 vtpos-zindex-10",r.canScan?"col-12":"col-6"])},[l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn-primary mb-2 me-2 mb-lg-0",size:h.value,onClick:b,disabled:p.value},{default:l.withCtx(()=>[...B[13]||(B[13]=[l.createTextVNode(" Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn-secondary mb-2 me-2 mb-lg-0",size:h.value,onClick:w,disabled:g.value},{default:l.withCtx(()=>[...B[14]||(B[14]=[l.createTextVNode(" Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]]),r.canScan?(l.openBlock(),l.createBlock(Xe,{key:0,type:"button",class:"btn-primary mb-2 mb-sm-0",size:h.value,onClick:S},{default:l.withCtx(()=>[l.createVNode(l.unref(Bg))]),_:1},8,["size"])):l.createCommentVNode("",!0)],2)])):l.createCommentVNode("",!0),!r.isSingle&&!r.isQuickAdvance&&r.isAdvance?(l.openBlock(),l.createElementBlock("div",rE,[l.createElementVNode("div",nE,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.value,(V,z)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.advanceContainerClass),key:z},[V.type==="dd"?(l.openBlock(),l.createBlock(Za,{key:0,"container-class":"mb-0",name:V.name,size:h.value,modelValue:V.value,"onUpdate:modelValue":O=>V.value=O,mode:V.isMultiple?"tags":"single",multiple:V.isMultiple,labelKey:V.optionLabel,valueKey:V.optionValueProp,isLeftIconBorder:!0,searchable:r.isSearchable,placeholder:V.placeholder||"Choose option",options:V.options},{prefix:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(V.name)),1)]),singlelabel:l.withCtx(({value:O})=>[l.createElementVNode("div",aE,l.toDisplayString(l.unref(F)(O[V.optionLabel])),1)]),option:l.withCtx(({option:O})=>[l.createTextVNode(l.toDisplayString(l.unref(F)(O[V.optionLabel])),1)]),_:2},1032,["name","size","modelValue","onUpdate:modelValue","mode","multiple","labelKey","valueKey","searchable","placeholder","options"])):l.createCommentVNode("",!0),V.type==="t"?(l.openBlock(),l.createBlock(kr,{key:1,"container-class":"mb-0",name:V.name,size:h.value,modelValue:V.value,"onUpdate:modelValue":O=>V.value=O,placeholder:V.placeholder||"Enter value",isLeftIconBorder:!0},{prefix:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(V.name)),1)]),_:2},1032,["name","size","modelValue","onUpdate:modelValue","placeholder"])):l.createCommentVNode("",!0),V.type=="tr"?(l.openBlock(),l.createElementBlock("div",iE,[l.createElementVNode("div",oE,l.toDisplayString(l.unref(F)(V.name)),1),l.createElementVNode("div",sE,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":O=>V.value.start=O,class:l.normalizeClass(["form-control","form-control-"+h.value]),type:"text",ref_for:!0,ref:"input_range_box",placeholder:V.placeholder?V.placeholder.start:"Min"},null,10,lE),[[l.vModelText,V.value.start]]),B[15]||(B[15]=l.createElementVNode("svg",{class:"w-4 h-4 mx-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})],-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":O=>V.value.end=O,class:"form-control form-control-sm",type:"text",placeholder:V.placeholder?V.placeholder.end:"Max"},null,8,uE),[[l.vModelText,V.value.end]])])])):l.createCommentVNode("",!0),V.type==="d"?(l.openBlock(),l.createBlock(yn,{key:3,"container-class":"mb-0",name:V.name,modelValue:V.value,"onUpdate:modelValue":[O=>V.value=O,O=>A(V)],"max-date":y.value,attributes:[{key:"today",dot:!0,dates:new Date}],isLeftIconBorder:!0,"model-config":{type:"string",mask:r.dateFormat},masks:{input:r.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:D,size:h.value},{prefix:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(V.name)),1)]),_:2},1032,["name","modelValue","onUpdate:modelValue","max-date","attributes","model-config","masks","size"])):l.createCommentVNode("",!0),V.type==="dr"?(l.openBlock(),l.createBlock(yn,{key:4,"container-class":"mb-0",name:V.name,modelValue:V.value,"onUpdate:modelValue":[O=>V.value=O,O=>A(V)],"max-date":y.value,attributes:[{key:"today",dot:!0,dates:new Date}],isLeftIconBorder:!0,"model-config":{type:"string",mask:r.dateFormat},masks:{input:r.dateFormat,modelValue:"YYYY-MM-DD"},mode:"date","input-debounce":500,onDayclick:D,size:h.value,"is-range":!0},{prefix:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(F)(V.name)),1)]),_:2},1032,["name","modelValue","onUpdate:modelValue","max-date","attributes","model-config","masks","size"])):l.createCommentVNode("",!0)],2))),128))]),l.createElementVNode("div",cE,[l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn btn-primary",size:h.value,disabled:I.getStatus,onClick:b},{default:l.withCtx(()=>[...B[16]||(B[16]=[l.createTextVNode("Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn btn-warning",size:h.value,disabled:I.getStatus,onClick:w},{default:l.withCtx(()=>[...B[17]||(B[17]=[l.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]])])])):l.createCommentVNode("",!0),!r.isSingle&&!r.isAdvance&&r.isQuickAdvance?(l.openBlock(),l.createElementBlock("div",fE,[l.createElementVNode("div",dE,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.value,(V,z)=>(l.openBlock(),l.createElementBlock("div",{key:`${V.propName}-${z}`},[V.type==="t"?(l.openBlock(),l.createBlock(kr,{key:0,"container-class":"mb-0",name:V.name,size:h.value,type:V.inputType?V.inputType:"text",modelValue:V.value,"onUpdate:modelValue":O=>V.value=O,placeholder:V.placeholder?V.placeholder+(r.isQuickAdvanceAutoSearch?" (press enter)":""):"Enter value "+(r.isQuickAdvanceAutoSearch?" (press enter)":""),onKeyup:B[8]||(B[8]=l.withKeys(O=>r.isQuickAdvanceAutoSearch?b():null,["enter"]))},null,8,["name","size","type","modelValue","onUpdate:modelValue","placeholder"])):l.createCommentVNode("",!0),V.type==="dd"?(l.openBlock(),l.createBlock(hi,{key:1,placement:"bottom",class:"p-0"},{content:l.withCtx(()=>[l.createVNode(l.unref(ut.Field),{name:V.name},{default:l.withCtx(()=>[(l.openBlock(),l.createElementBlock("ul",{class:"list-group mb-0",key:V.value},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(V.options,(O,W)=>(l.openBlock(),l.createElementBlock("li",{onClick:j=>O.isSelected?E(V):M(V.propName,O),key:W,class:"list-group-item border-0 d-flex justify-content-between align-items-center"},[l.createElementVNode("span",vE,l.toDisplayString(l.unref(F)(typeof O=="object"?O[V.optionLabel||"label"]:O)),1),O.isSelected?(l.openBlock(),l.createBlock(l.unref(jd),{key:0})):l.createCommentVNode("",!0)],8,hE))),128))]))]),_:2},1032,["name"])]),default:l.withCtx(()=>[l.createVNode(Xe,{class:"btn-outline-secondary",size:h.value},{default:l.withCtx(()=>[V.icon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(V.icon),{key:0,class:l.normalizeClass({"placeholder-text":!V.value||Array.isArray(V.value)&&!V.value.length})},null,8,["class"])):l.createCommentVNode("",!0),l.createElementVNode("span",{class:l.normalizeClass({"placeholder-text":!V.value||Array.isArray(V.value)&&!V.value.length})},l.toDisplayString(l.unref(F)(V.label||V.name)),3),V.value||Array.isArray(V.value)&&V.value.length?(l.openBlock(),l.createBlock(l.unref(rs),{key:1,onClick:l.withModifiers(O=>E(V,O),["stop"])},null,8,["onClick"])):l.createCommentVNode("",!0)]),_:2},1032,["size"])]),_:2},1024)):l.createCommentVNode("",!0),V.type==="d"?(l.openBlock(),l.createBlock(yn,{key:2,"container-class":"mb-0",name:V.name,modelValue:V.value,"onUpdate:modelValue":[O=>V.value=O,O=>A(V)],showInInput:!1,size:h.value},{resetIcon:l.withCtx(()=>[l.createVNode(l.unref(rs),{onClick:l.withModifiers(O=>E(V,O),["stop"])},null,8,["onClick"])]),_:2},1032,["name","modelValue","onUpdate:modelValue","size"])):l.createCommentVNode("",!0),V.type==="dr"?(l.openBlock(),l.createBlock(yn,{key:3,"container-class":"mb-0",name:V.name,modelValue:V.value,"onUpdate:modelValue":[O=>V.value=O,O=>A(V)],showInInput:!1,size:h.value,"is-range":!0},{resetIcon:l.withCtx(()=>[l.createVNode(l.unref(rs),{onClick:l.withModifiers(O=>E(V,O),["stop"])},null,8,["onClick"])]),_:2},1032,["name","modelValue","onUpdate:modelValue","size"])):l.createCommentVNode("",!0)]))),128))]),l.createElementVNode("div",pE,[l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn btn-primary",size:h.value,disabled:I.getStatus,onClick:b},{default:l.withCtx(()=>[...B[18]||(B[18]=[l.createTextVNode(" Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn btn-warning",size:h.value,disabled:I.getStatus,onClick:w},{default:l.withCtx(()=>[...B[19]||(B[19]=[l.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]])])])):l.createCommentVNode("",!0),r.isSingle?(l.openBlock(),l.createElementBlock("div",gE,[r.showScanFld?(l.openBlock(),l.createElementBlock("div",yE,[l.createVNode(kr,{name:"singlescan",containerClass:"mb-0",type:"text",ref:"single_scan_box",placeholder:l.unref(F)("Scan"),onInput:B[10]||(B[10]=V=>_()),modelValue:o.value,"onUpdate:modelValue":B[11]||(B[11]=V=>o.value=V),size:h.value},null,8,["placeholder","modelValue","size"])])):(l.openBlock(),l.createElementBlock("div",mE,[l.createVNode(kr,{name:"singlescan",containerClass:"mb-0",type:"text",ref:"single_text_box",placeholder:l.unref(F)("Search"),onInput:T,onKeydown:l.withKeys(k,["enter"]),modelValue:o.value,"onUpdate:modelValue":B[9]||(B[9]=V=>o.value=V),size:h.value},null,8,["placeholder","modelValue","size"])])),l.createElementVNode("div",{class:l.normalizeClass(["vtpos-zindex-10 col-sm-4",r.canScan?"col-12":"col-6"])},[l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn-primary mb-2 me-2 mb-sm-0",size:h.value,onClick:k,disabled:o.value.length<=0},{default:l.withCtx(()=>[...B[20]||(B[20]=[l.createTextVNode("Search ",-1)])]),_:1},8,["size","disabled"])),[[R]]),l.withDirectives((l.openBlock(),l.createBlock(Xe,{type:"button",class:"btn-warning mb-2 me-2 mb-sm-0",size:h.value,onClick:w,disabled:o.value.length<=0},{default:l.withCtx(()=>[...B[21]||(B[21]=[l.createTextVNode("Reset ",-1)])]),_:1},8,["size","disabled"])),[[R]]),r.canScan?(l.openBlock(),l.createBlock(Xe,{key:0,type:"button",class:"btn-primary btn-icon mb-2 me-2 mb-sm-0",size:h.value,onClick:S},{default:l.withCtx(()=>[l.createVNode(l.unref(Bg))]),_:1},8,["size"])):l.createCommentVNode("",!0)],2)])):l.createCommentVNode("",!0)],64)}}},b_=Pt(bE,[["__scopeId","data-v-d374953b"]]),_E=["id","type","name","value"],SE=["for"],wE={key:2,class:"apbd-imgr-container"},xE=["src"],__={__name:"AbImageRadioInput",props:l.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(r){const e=l.useModel(r,"modelValue"),t=l.useAttrs();l.useSlots();const n=r,a=l.computed(()=>(t==null?void 0:t.name)||"fld"),i=l.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})),o=l.computed(()=>n.selectorColor?{"--apbd-selector-color":n.selectorColor}:{});return(s,u)=>{var f;const c=l.resolveComponent("translate");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["apbd-img-input-ctrn",(f=l.unref(t))==null?void 0:f.class]),style:l.normalizeStyle(i.value)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.options,(d,h)=>{var v;return l.openBlock(),l.createElementBlock("div",{key:h},[l.withDirectives(l.createElementVNode("input",l.mergeProps({id:a.value+h,type:((v=l.unref(t))==null?void 0:v.type)||"radio",name:a.value,"onUpdate:modelValue":u[0]||(u[0]=p=>e.value=p)},{ref_for:!0},l.unref(t),{value:d.val}),null,16,_E),[[l.vModelDynamic,e.value]]),l.createElementVNode("label",{for:a.value+h,style:l.normalizeStyle(o.value),class:l.normalizeClass([r.isInline?"apbd-imgr-inline":"",r.optionClass,(d==null?void 0:d.class)||""])},[u[1]||(u[1]=l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"ai ai-CircleCheckFill"},[l.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)),l.renderSlot(s.$slots,"icon_image",{option:d},()=>[d!=null&&d.iconComponent?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["apbd-imgr-input-icon",(d==null?void 0:d.icon_ctnr_class)||""])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(d.iconComponent)))],2)):l.createCommentVNode("",!0),d!=null&&d.icon?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["apbd-imgr-input-icon",(d==null?void 0:d.icon_ctnr_class)||""])},[l.createElementVNode("i",{class:l.normalizeClass(d.icon)},null,2)],2)):l.createCommentVNode("",!0),!(d!=null&&d.iconComponent)&&!d.icon&&(d!=null&&d.img_src)?(l.openBlock(),l.createElementBlock("div",wE,[l.createElementVNode("img",{class:"img-fluid",src:d.img_src},null,8,xE)])):l.createCommentVNode("",!0)]),l.renderSlot(s.$slots,"label",{option:d},()=>[l.renderSlot(s.$slots,"label-"+d.val,{option:d},()=>[d!=null&&d.label?(l.openBlock(),l.createBlock(c,{key:0,class:"apbd-imgr-option-label"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(d.label)),1)]),_:2},1024)):l.createCommentVNode("",!0)])])],14,SE)])}),128))],6)}}},CE={class:"apbd-table-responsive"},kE=["data-label"],TE={key:0},DE=["colspan"],S_={__name:"AbTable",props:{items:{type:Array,default:()=>[]},fields:{type:Array,default:()=>[]},tableClass:{type:[String,Array,Object],default:""}},setup(r){const e=r,t=l.computed(()=>e.fields.map(n=>typeof n=="string"?{key:n,label:n.charAt(0).toUpperCase()+n.slice(1)}:n));return(n,a)=>(l.openBlock(),l.createElementBlock("div",CE,[l.createElementVNode("table",{class:l.normalizeClass(["table apbd-table",r.tableClass])},[l.createElementVNode("thead",null,[l.renderSlot(n.$slots,"thead",{},()=>[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value,i=>(l.openBlock(),l.createElementBlock("th",{key:i.key},[l.renderSlot(n.$slots,`head(${i.key})`,{field:i},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(i.label)),1)])]))),128))])])]),l.createElementVNode("tbody",null,[l.renderSlot(n.$slots,"tbody",{},()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.items,(i,o)=>(l.openBlock(),l.createElementBlock("tr",{key:o},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value,s=>(l.openBlock(),l.createElementBlock("td",{key:s.key,"data-label":s.label},[l.renderSlot(n.$slots,`cell(${s.key})`,{value:i[s.key],item:i,index:o},()=>[l.createTextVNode(l.toDisplayString(i[s.key]),1)])],8,kE))),128))]))),128)),!r.items||r.items.length===0?(l.openBlock(),l.createElementBlock("tr",TE,[l.createElementVNode("td",{colspan:t.value.length,class:"text-center"},[l.renderSlot(n.$slots,"empty",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)("No data available")),1)])],8,DE)])):l.createCommentVNode("",!0)])])],2)]))}},ME={class:"apbd-skeleton"},w_={__name:"AbSkeleton",setup(r){return(e,t)=>(l.openBlock(),l.createElementBlock("div",ME))}},EE={class:"apbd-kbd"},x_=Object.assign({name:"AbKbd"},{__name:"AbKbd",setup(r){return(e,t)=>(l.openBlock(),l.createElementBlock("kbd",EE,[l.renderSlot(e.$slots,"default")]))}}),AE={class:"apbd-kbd-group"},C_=Object.assign({name:"AbKbdGroup"},{__name:"AbKbdGroup",setup(r){return(e,t)=>(l.openBlock(),l.createElementBlock("div",AE,[l.renderSlot(e.$slots,"default")]))}}),NE={class:"apbd-carousel-nav-wrapper nav-prev"},IE={class:"apbd-carousel-nav-wrapper nav-next"},k_=Object.assign({name:"AbCarousel"},{__name:"AbCarousel",props:{scrollAmount:{type:Number,default:200},orientation:{type:String,default:"horizontal",validator:r=>["horizontal","vertical"].includes(r)},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(r){const e=l.ref(null),t=l.ref(!1),n=l.ref(!1),a=r,i=l.computed(()=>a.orientation==="vertical"),o=l.ref(!1),s=l.ref(!1);let u=0,c=0;function f(){if(e.value)if(i.value){const{scrollTop:k,scrollHeight:T,clientHeight:D}=e.value;t.value=k>0,n.value=Math.ceil(k+D)<T}else{const{scrollLeft:k,scrollWidth:T,clientWidth:D}=e.value;t.value=k>0,n.value=Math.ceil(k+D)<T}}function d(k){if(!e.value)return;let T=a.scrollAmount;if(e.value.children.length>0){const M=e.value.children[0],A=getComputedStyle(e.value),E=parseFloat(A.gap),I=isNaN(E)?8:E;T=i.value?M.offsetHeight+I:M.offsetWidth+I}const D={behavior:"smooth"};i.value?D.top=k*T:D.left=k*T,e.value.scrollBy(D)}function h(k){o.value=!0,s.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(){o.value=!1,setTimeout(()=>{s.value=!1},50)}function p(k){if(!o.value||!e.value)return;const D=((i.value?k.pageY-e.value.offsetTop:k.pageX-e.value.offsetLeft)-u)*1.5;Math.abs(D)>5&&(s.value=!0,k.preventDefault()),i.value?e.value.scrollTop=c-D:e.value.scrollLeft=c-D}function g(k){if(e.value&&!i.value&&k.deltaX===0&&k.deltaY!==0){const T=k.deltaY<0,D=k.deltaY>0;(T&&t.value||D&&n.value)&&(k.preventDefault(),e.value.scrollBy({left:k.deltaY,behavior:"auto"}))}}let y=null;const m=l.ref(!1);function b(){a.autoplay&&(_(),y=setInterval(()=>{m.value||o.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 _(){y&&(clearInterval(y),y=null)}function S(){m.value=!0}function w(){m.value=!1,v()}const x=l.computed(()=>a.edgeFade?{"has-fade":!0,"can-scroll-start":t.value,"can-scroll-end":n.value}:{});let C;return l.onMounted(()=>{l.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()}),l.watch(()=>a.autoplay,k=>{k?b():_()}),l.onUnmounted(()=>{window.removeEventListener("resize",f),_(),e.value&&e.value.removeEventListener("wheel",g),C&&e.value&&C.disconnect()}),(k,T)=>(l.openBlock(),l.createElementBlock("div",l.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:S,onMouseleave:w}),[l.withDirectives(l.createElementVNode("div",NE,[l.renderSlot(k.$slots,"prev",{scroll:()=>d(-1)},()=>[l.createElementVNode("button",{class:"apbd-carousel-nav",onClick:T[0]||(T[0]=D=>d(-1))},[l.renderSlot(k.$slots,"prev-icon",{},()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.value?l.unref(ST):l.unref(K1)),{size:18}))])])])],512),[[l.vShow,t.value]]),l.createElementVNode("div",{class:l.normalizeClass(["apbd-carousel-container",{"is-moving":s.value,"is-dragging":o.value}]),ref_key:"scrollContainer",ref:e,onScroll:f,onMousedown:h,onMouseup:v,onMousemove:p},[l.renderSlot(k.$slots,"default")],34),l.withDirectives(l.createElementVNode("div",IE,[l.renderSlot(k.$slots,"next",{scroll:()=>d(1)},()=>[l.createElementVNode("button",{class:"apbd-carousel-nav",onClick:T[1]||(T[1]=D=>d(1))},[l.renderSlot(k.$slots,"next-icon",{},()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.value?l.unref(qd):l.unref(Q1)),{size:18}))])])])],512),[[l.vShow,n.value]])],16))}}),BE={class:"apbd-tooltip-inner"},T_={__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(r){const e=r,t=l.ref(!1),n=l.ref(null),a=l.ref(null),i=l.ref(null),o=l.computed(()=>e.placement.startsWith("auto")),s=l.computed(()=>e.placement.split("-")[1]||void 0),{floatingStyles:u,middlewareData:c,placement:f,update:d}=a_(n,a,{placement:l.computed(()=>o.value?void 0:e.placement),offset:l.computed(()=>Number(e.offset)),arrowElement:i,arrowPadding:4,flip:!0,autoPlacement:o,alignment:s,whileElementsMounted:!0});l.watch(t,b=>{b&&l.nextTick(()=>d())});let h=null;const v=()=>{e.disabled||(h&&clearTimeout(h),t.value=!0)},p=()=>{h&&clearTimeout(h),h=setTimeout(()=>{t.value=!1},100)},g=()=>{e.interactive&&h&&clearTimeout(h)},y=()=>{e.interactive&&p()};l.onUnmounted(()=>{h&&clearTimeout(h)});const m=l.computed(()=>{if(!c.value.arrow)return{};const{x:b,y:_}=c.value.arrow,S=f.value||"top",w={top:"bottom",right:"left",bottom:"top",left:"right"}[S.split("-")[0]];return{left:b!=null?`${b}px`:"",top:_!=null?`${_}px`:"",right:"",bottom:"",[w]:"-4px"}});return(b,_)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:"apbd-tooltip-trigger",ref_key:"reference",ref:n,onMouseenter:v,onMouseleave:p,onFocus:v,onBlur:p},[l.renderSlot(b.$slots,"default")],544),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"apbd-tooltip-fade"},{default:l.withCtx(()=>[t.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"floating",ref:a,style:l.normalizeStyle(l.unref(u)),class:"apbd-tooltip-content",role:"tooltip",onMouseenter:g,onMouseleave:y},[l.createElementVNode("div",BE,[l.renderSlot(b.$slots,"content",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.content)),1)])]),r.arrow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"apbd-tooltip-arrow",ref_key:"floatingArrow",ref:i,style:l.normalizeStyle(m.value)},null,4)):l.createCommentVNode("",!0)],36)):l.createCommentVNode("",!0)]),_:3})]))],64))}},LE={key:0,class:"d-flex justify-content-between align-items-center w-100 pe-3"},VE={class:"modal-title fw-bold mb-0"},PE={key:0,class:"text-muted small"},RE={key:0,width:"48",height:"48",viewBox:"0 0 48 48"},OE=["stroke-dashoffset"],zE={x:"24",y:"27","text-anchor":"middle","font-size":"10","font-weight":"600",fill:"currentColor"},$E={key:1,class:"ab-wizard-modal-header__row w-100 align-items-start gap-3"},FE={class:"ab-wizard-modal-header__main flex-grow-1"},HE={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)"}},GE={key:0,class:"ab-wizard-desc text-muted transition-all"},WE={key:0,class:"ab-wizard-modal-header__close flex-shrink-0"},UE={class:"modal-body p-4 position-relative"},YE={class:"ab-wizard-body-inner"},ZE={key:0,class:"apbd-wizard-loading-overlay d-flex align-items-center justify-content-center flex-column"},XE={class:"fw-bold text-primary"},jE={class:"modal-footer d-flex justify-content-between"},qE={key:1},KE={class:"d-flex align-items-center gap-2"},QE={class:"spinner-border spinner-border-sm text-primary",role:"status"},JE={class:"visually-hidden"},eA={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)"}},tA={key:0,class:"ab-wizard-desc text-muted transition-all"},rA={key:1,class:"ab-wizard-mobile-header d-flex justify-content-between align-items-center w-100 mb-4 pb-3 border-bottom"},nA={class:"d-flex flex-column pr-3",style:{"max-width":"75%"}},aA={class:"mb-1 fw-bold text-dark"},iA={key:0,class:"text-muted small"},oA={class:"mobile-wizard-progress flex-shrink-0"},sA={width:"48",height:"48",viewBox:"0 0 48 48"},lA=["stroke-dashoffset"],uA={x:"24",y:"27","text-anchor":"middle","font-size":"10","font-weight":"600",fill:"currentColor"},cA={class:"ab-wizard-content-wrapper flex-grow-1 d-flex flex-column h-100"},fA={class:"ab-wizard-body-inner"},dA={key:0,class:"apbd-wizard-loading-overlay d-flex align-items-center justify-content-center flex-column"},hA={class:"fw-bold text-primary"},vA={key:0,class:"ab-wizard-controls mt-4 d-flex justify-content-between align-items-center mt-auto pt-4"},pA={class:"d-flex align-items-center gap-2"},gA={class:"spinner-border spinner-border-sm text-primary mx-2",role:"status"},mA={class:"visually-hidden"},yA={__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(r,{expose:e,emit:t}){const n=r,a=t,i=l.ref([]),o=l.ref(0),s=l.ref(!1),u=l.ref(1024),c=()=>{u.value=window.innerWidth};l.onMounted(()=>{typeof window<"u"&&(u.value=window.innerWidth,window.addEventListener("resize",c))}),l.onUnmounted(()=>{typeof window<"u"&&window.removeEventListener("resize",c)});const f=l.computed(()=>u.value<=768),d=l.computed(()=>n.variant&&n.variant.includes("circular")||f.value),h=l.computed(()=>n.variant&&n.variant.includes("modal")),v=l.computed(()=>n.stepperSize==="sm"?"sm":"md"),p=l.computed(()=>h.value&&!d.value&&v.value==="sm"&&n.orientation==="horizontal"),g=l.computed(()=>`ab-wizard-size-${v.value}`),y=l.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"}),m=l.ref(!1),b=l.ref(null),_=l.computed(()=>{if(b.value!==null)return!b.value;if(n.disableClose)return!1;const L=i.value[o.value];return!(L&&L.disableClose)}),S=L=>{b.value=L},w=(L=!1)=>{(L===!0||_.value)&&(m.value=!1)},x=l.computed(()=>i.value.length===0||!i.value[o.value]?null:i.value[o.value].id),C=L=>{i.value.push(L)},k=L=>{i.value=i.value.filter(V=>V.id!==L),o.value>=i.value.length&&(o.value=Math.max(0,i.value.length-1))},T=(L,V)=>{const z=i.value.findIndex(O=>O.id===L);z!==-1&&(i.value[z]={...i.value[z],...V})},D=l.ref({}),M=(L,V)=>{D.value[L]=V};l.provide("AbWizard",{activeStepId:x,registerStep:C,unregisterStep:k,updateStep:T,registerStepValidator:M});const A=l.computed(()=>o.value===0),E=l.computed(()=>o.value===i.value.length-1),I=async()=>{if(!(s.value||E.value)){s.value=!0;try{let L=!0;x.value&&D.value[x.value]&&(L=await D.value[x.value]()),L!==!1&&(L=await n.beforeNext({currentIndex:o.value,nextIndex:o.value+1,closeModal:w,setDisableClose:S})),L!==!1&&(o.value++,a("step-changed",o.value))}finally{s.value=!1}}},B=async()=>{if(!(s.value||A.value)){s.value=!0;try{await n.beforePrev({currentIndex:o.value,nextIndex:o.value-1,closeModal:w,setDisableClose:S})!==!1&&(o.value--,a("step-changed",o.value))}finally{s.value=!1}}},R=async()=>{if(!s.value){s.value=!0;try{let L=!0;x.value&&D.value[x.value]&&(L=await D.value[x.value]()),L!==!1&&(L=await n.beforeFinish({closeModal:w,setDisableClose:S})),L!==!1&&a("finished")}finally{s.value=!1}}},P=L=>L<o.value?"completed":L===o.value?"active":"inactive";return e({steps:i,currentIndex:o,isFirstStep:l.computed(()=>o.value===0),isLastStep:l.computed(()=>o.value===i.value.length-1),isLoading:s,goToNext:I,goToPrev:B,finish:R,getStepState:P,closeModal:w,setDisableClose:S}),(L,V)=>{var O,W,j,ne;const z=l.resolveDirective("translate");return h.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(L.$slots,"modal-button",{open:()=>m.value=!0},()=>[l.createVNode(Xe,{variant:"primary",onClick:V[0]||(V[0]=q=>m.value=!0)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.nextText)),1)]),_:1})],!0),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[m.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"modal-backdrop fade show",onClick:V[1]||(V[1]=q=>w(!1))})):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createElementBlock("div",{key:1,class:"modal fade show d-block",tabindex:"-1",onClick:V[4]||(V[4]=l.withModifiers(q=>w(!1),["self"]))},[l.createElementVNode("div",{class:l.normalizeClass(["modal-dialog modal-dialog-centered",r.modalClass])},[l.createElementVNode("div",{class:l.normalizeClass(["modal-content ab-wizard",[g.value,{"ab-wizard-modal-stepper-compact":p.value,"apbd-wizard-loading":s.value}]]),style:l.normalizeStyle(y.value)},[l.createElementVNode("div",{class:l.normalizeClass(["modal-header position-relative",d.value?"":"ab-wizard-modal-header"])},[d.value?(l.openBlock(),l.createElementBlock("div",LE,[l.createElementVNode("div",null,[l.createElementVNode("h5",VE,l.toDisplayString(((O=i.value[o.value])==null?void 0:O.title)||"Step "+(o.value+1)),1),o.value<i.value.length-1?(l.openBlock(),l.createElementBlock("span",PE," Next: "+l.toDisplayString(((W=i.value[o.value+1])==null?void 0:W.title)||"Step "+(o.value+2)),1)):l.createCommentVNode("",!0)]),i.value.length?(l.openBlock(),l.createElementBlock("svg",RE,[V[5]||(V[5]=l.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-secondary-bg, #e9ecef)","stroke-width":"4"},null,-1)),l.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*((o.value+1)/i.value.length),style:{transition:"stroke-dashoffset 0.4s ease"}},null,8,OE),l.createElementVNode("text",zE,l.toDisplayString(o.value+1)+" of "+l.toDisplayString(i.value.length),1)])):l.createCommentVNode("",!0)])):(l.openBlock(),l.createElementBlock("div",$E,[l.createElementVNode("div",FE,[l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-header w-100 position-relative",[r.orientation==="horizontal"?"ab-wizard-horizontal-header":"ab-wizard-vertical-header"]])},[l.renderSlot(L.$slots,"stepper-header",l.normalizeProps(l.guardReactiveProps({steps:i.value,currentIndex:o.value,getStepState:P,isMobile:f.value})),()=>[l.renderSlot(L.$slots,"header-top",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["d-flex w-100 position-relative",[p.value?"mt-1":"mt-2",r.orientation==="vertical"?"flex-column":"justify-content-between align-items-start"]])},[l.withDirectives(l.createElementVNode("div",HE,null,512),[[l.vShow,r.orientation==="horizontal"]]),l.withDirectives(l.createElementVNode("div",{class:"position-absolute bg-primary transition-all start-0",style:l.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)) * ${o.value/Math.max(1,i.value.length-1)})`}])},null,4),[[l.vShow,r.orientation==="horizontal"]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,(q,Q)=>(l.openBlock(),l.createElementBlock("div",{key:q.id,class:l.normalizeClass(["ab-wizard-step-indicator position-relative d-flex",r.orientation==="vertical"?"w-100 align-items-start gap-3 pb-4":"flex-column"]),style:l.normalizeStyle(r.orientation==="horizontal"?{alignItems:Q===0?"flex-start":Q===i.value.length-1?"flex-end":"center"}:{})},[l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass(["vertical-sep transition-all",P(Q)==="completed"?"bg-primary":"bg-muted"])},null,2),[[l.vShow,r.orientation==="vertical"&&Q!==i.value.length-1]]),l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-trigger position-relative z-2 flex-shrink-0 d-flex align-items-center justify-content-center rounded-circle transition-all",[P(Q)==="completed"?"bg-primary text-white":"bg-white border",P(Q)==="active"?"border-primary ring-active text-primary":"",P(Q)==="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)"}},[l.renderSlot(L.$slots,"step-icon",l.mergeProps({ref_for:!0},{step:q,index:Q,state:P(Q)}),()=>[P(Q)==="completed"?(l.openBlock(),l.createBlock(l.unref(jd),{key:0,class:"icon-sm"})):q.icon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(q.icon),{key:1,class:"icon-sm"})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[P(Q)==="active"?(l.openBlock(),l.createBlock(l.unref(Mg),{key:0,class:"icon-sm opacity-75"})):(l.openBlock(),l.createBlock(l.unref(Ag),{key:1,class:"icon-sm"}))],64))],!0)],2),l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-label d-flex flex-column",[r.orientation==="vertical"?"align-items-start mt-1":`position-absolute ${p.value?"pt-2":"pt-3"}`]]),style:l.normalizeStyle(r.orientation==="horizontal"?{top:"var(--ab-wizard-label-top)",insetInlineStart:Q===i.value.length-1?"auto":"0",insetInlineEnd:Q===0?"auto":"0",marginInline:Q!==0&&Q!==i.value.length-1?"auto":"unset",width:"max-content",textAlign:Q===0?"start":Q===i.value.length-1?"end":"center"}:{})},[l.renderSlot(L.$slots,"step-label",l.mergeProps({ref_for:!0},{step:q,index:Q,state:P(Q)}),()=>[l.createElementVNode("span",{class:l.normalizeClass(["ab-wizard-title fw-semibold transition-all",P(Q)==="active"||P(Q)==="completed"?"text-primary":""])},l.toDisplayString(l.unref(F)(q.title)),3),q.description?(l.openBlock(),l.createElementBlock("span",GE,l.toDisplayString(l.unref(F)(q.description)),1)):l.createCommentVNode("",!0)],!0)],6)],6))),128))],2)],!0)],2)]),_.value?(l.openBlock(),l.createElementBlock("div",WE,[l.createElementVNode("button",{type:"button",class:"btn-close",style:{"z-index":"10"},onClick:V[2]||(V[2]=q=>w(!1))})])):l.createCommentVNode("",!0)])),_.value&&d.value?(l.openBlock(),l.createElementBlock("button",{key:2,type:"button",class:"btn-close",style:{"z-index":"10"},onClick:V[3]||(V[3]=q=>w(!1))})):l.createCommentVNode("",!0)],2),l.createElementVNode("div",UE,[l.createElementVNode("div",YE,[l.renderSlot(L.$slots,"default",{},void 0,!0)]),s.value?(l.openBlock(),l.createElementBlock("div",ZE,[l.renderSlot(L.$slots,"loader",l.normalizeProps(l.guardReactiveProps({isLoading:s.value,variant:"overlay",isModal:!0,currentIndex:o.value})),()=>[V[7]||(V[7]=l.createElementVNode("div",{class:"spinner-border text-primary mb-2",role:"status"},null,-1)),l.withDirectives((l.openBlock(),l.createElementBlock("span",XE,[...V[6]||(V[6]=[l.createTextVNode("Please wait...",-1)])])),[[z]])],!0)])):l.createCommentVNode("",!0)]),l.createElementVNode("div",jE,[A.value?(l.openBlock(),l.createElementBlock("div",qE)):(l.openBlock(),l.createBlock(Xe,{key:0,variant:"outline-secondary",disabled:s.value,onClick:B},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prevText)),1)]),_:1},8,["disabled"])),l.createElementVNode("div",KE,[s.value?l.renderSlot(L.$slots,"loader",l.normalizeProps(l.mergeProps({key:0},{isLoading:s.value,variant:"inline",isModal:!0,currentIndex:o.value})),()=>[l.createElementVNode("div",QE,[l.withDirectives((l.openBlock(),l.createElementBlock("span",JE,[...V[8]||(V[8]=[l.createTextVNode("Loading...",-1)])])),[[z]])])],!0):l.createCommentVNode("",!0),E.value?(l.openBlock(),l.createBlock(Xe,{key:2,variant:"success",disabled:s.value,onClick:R},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.finishText)),1)]),_:1},8,["disabled"])):(l.openBlock(),l.createBlock(Xe,{key:1,variant:"primary",disabled:s.value,onClick:I},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.nextText)),1)]),_:1},8,["disabled"]))])])],6)],2)])):l.createCommentVNode("",!0)]))],64)):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["ab-wizard w-100",[`ab-wizard-${r.orientation}`,g.value,r.orientation==="vertical"&&!d.value?"d-flex flex-column flex-md-row gap-3":"",{"apbd-wizard-loading":s.value}]]),style:l.normalizeStyle(y.value)},[d.value?(l.openBlock(),l.createElementBlock("div",rA,[l.createElementVNode("div",nA,[l.createElementVNode("h5",aA,l.toDisplayString(((j=i.value[o.value])==null?void 0:j.title)||"Step "+(o.value+1)),1),o.value<i.value.length-1?(l.openBlock(),l.createElementBlock("span",iA," Next: "+l.toDisplayString(((ne=i.value[o.value+1])==null?void 0:ne.title)||"Step "+(o.value+2)),1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",oA,[(l.openBlock(),l.createElementBlock("svg",sA,[V[9]||(V[9]=l.createElementVNode("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"var(--bs-secondary-bg, #e9ecef)","stroke-width":"4"},null,-1)),l.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*((o.value+1)/i.value.length),style:{transition:"stroke-dashoffset 0.4s ease"}},null,8,lA),l.createElementVNode("text",uA,l.toDisplayString(o.value+1)+" of "+l.toDisplayString(i.value.length),1)]))])])):(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["ab-wizard-header position-relative p-1",[r.orientation==="horizontal"?"ab-wizard-horizontal-header":"flex-shrink-0 ab-wizard-vertical-header"]])},[l.renderSlot(L.$slots,"stepper-header",l.normalizeProps(l.guardReactiveProps({steps:i.value,currentIndex:o.value,getStepState:P,isMobile:f.value})),()=>[l.renderSlot(L.$slots,"header-top",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["d-flex w-100 position-relative",r.orientation==="vertical"?"flex-column":"justify-content-between align-items-start"])},[l.withDirectives(l.createElementVNode("div",eA,null,512),[[l.vShow,r.orientation==="horizontal"]]),l.withDirectives(l.createElementVNode("div",{class:"position-absolute bg-primary transition-all start-0",style:l.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)) * ${o.value/Math.max(1,i.value.length-1)})`}])},null,4),[[l.vShow,r.orientation==="horizontal"]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,(q,Q)=>(l.openBlock(),l.createElementBlock("div",{key:q.id,class:l.normalizeClass(["ab-wizard-step-indicator position-relative d-flex",r.orientation==="vertical"?"w-100 align-items-start gap-3 pb-4":"flex-column"]),style:l.normalizeStyle(r.orientation==="horizontal"?{alignItems:Q===0?"flex-start":Q===i.value.length-1?"flex-end":"center"}:{})},[l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass(["vertical-sep transition-all",P(Q)==="completed"?"bg-primary":"bg-muted"])},null,2),[[l.vShow,r.orientation==="vertical"&&Q!==i.value.length-1]]),l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-trigger position-relative z-2 flex-shrink-0 d-flex align-items-center justify-content-center rounded-circle transition-all",[P(Q)==="completed"?"bg-primary text-white":"bg-white border",P(Q)==="active"?"border-primary ring-active text-primary":"",P(Q)==="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)"}},[l.renderSlot(L.$slots,"step-icon",l.mergeProps({ref_for:!0},{step:q,index:Q,state:P(Q)}),()=>[P(Q)==="completed"?(l.openBlock(),l.createBlock(l.unref(jd),{key:0,class:"icon-sm"})):q.icon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(q.icon),{key:1,class:"icon-sm"})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[P(Q)==="active"?(l.openBlock(),l.createBlock(l.unref(Mg),{key:0,class:"icon-sm opacity-75"})):(l.openBlock(),l.createBlock(l.unref(Ag),{key:1,class:"icon-sm"}))],64))],!0)],2),l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-label d-flex flex-column",[r.orientation==="vertical"?"align-items-start mt-1":"position-absolute pt-3"]]),style:l.normalizeStyle(r.orientation==="horizontal"?{top:"var(--ab-wizard-label-top)",insetInlineStart:Q===i.value.length-1?"auto":"0",insetInlineEnd:Q===0?"auto":"0",marginInline:Q!==0&&Q!==i.value.length-1?"auto":"unset",width:"max-content",textAlign:Q===0?"start":Q===i.value.length-1?"end":"center"}:{})},[l.renderSlot(L.$slots,"step-label",l.mergeProps({ref_for:!0},{step:q,index:Q,state:P(Q)}),()=>[l.createElementVNode("span",{class:l.normalizeClass(["ab-wizard-title fw-semibold transition-all",P(Q)==="active"||P(Q)==="completed"?"text-primary":""])},l.toDisplayString(l.unref(F)(q.title)),3),q.description?(l.openBlock(),l.createElementBlock("span",tA,l.toDisplayString(l.unref(F)(q.description)),1)):l.createCommentVNode("",!0)],!0)],6)],6))),128))],2)],!0)],2)),l.createElementVNode("div",cA,[l.createElementVNode("div",{class:l.normalizeClass(["ab-wizard-body position-relative",r.orientation==="horizontal"?"mt-4":""])},[l.createElementVNode("div",fA,[l.renderSlot(L.$slots,"default",{},void 0,!0)]),s.value?(l.openBlock(),l.createElementBlock("div",dA,[l.renderSlot(L.$slots,"loader",l.normalizeProps(l.guardReactiveProps({isLoading:s.value,variant:"overlay",isModal:!1,currentIndex:o.value})),()=>[V[11]||(V[11]=l.createElementVNode("div",{class:"spinner-border text-primary mb-2",role:"status"},null,-1)),l.withDirectives((l.openBlock(),l.createElementBlock("span",hA,[...V[10]||(V[10]=[l.createTextVNode("Please wait...",-1)])])),[[z]])],!0)])):l.createCommentVNode("",!0)],2),r.hideControls?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",vA,[l.renderSlot(L.$slots,"controls",l.normalizeProps(l.guardReactiveProps({isFirstStep:A.value,isLastStep:E.value,isLoading:s.value,goToPrev:B,goToNext:I,finish:R,closeModal:w,setDisableClose:S})),()=>[l.createVNode(Xe,{variant:"outline-secondary",disabled:A.value||s.value,onClick:B},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prevText)),1)]),_:1},8,["disabled"]),l.createElementVNode("div",pA,[s.value?l.renderSlot(L.$slots,"loader",l.normalizeProps(l.mergeProps({key:0},{isLoading:s.value,variant:"inline",isModal:!1,currentIndex:o.value})),()=>[l.createElementVNode("div",gA,[l.withDirectives((l.openBlock(),l.createElementBlock("span",mA,[...V[12]||(V[12]=[l.createTextVNode("Loading...",-1)])])),[[z]])])],!0):l.createCommentVNode("",!0),E.value?(l.openBlock(),l.createBlock(Xe,{key:2,variant:"success",disabled:s.value,onClick:R},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.finishText)),1)]),_:1},8,["disabled"])):(l.openBlock(),l.createBlock(Xe,{key:1,variant:"primary",disabled:s.value,onClick:I},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.nextText)),1)]),_:1},8,["disabled"]))])],!0)]))])],6))}}},D_=Pt(yA,[["__scopeId","data-v-9f521663"]]),bA={class:"ab-wizard-step w-100 h-100 fade-in"},_A={__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(r){const e=r,t=l.inject("AbWizard");t||console.error("AbWizardStep must be used inside an <AbWizard> component.");const n=l.ref(Math.random().toString(36).substr(2,9)),a=l.ref(!1);l.provide("AbWizardStep",{id:n.value});const i={id:n.value,title:e.title,description:e.description,icon:e.icon,disableClose:e.disableClose};return l.onMounted(()=>{t&&t.registerStep(i)}),l.onUnmounted(()=>{t&&t.unregisterStep(n.value)}),t&&(l.watch(()=>t.activeStepId.value,o=>{a.value=o===n.value},{immediate:!0}),l.watch(()=>[e.title,e.description,e.icon,e.disableClose],([o,s,u,c])=>{t.updateStep(n.value,{title:o,description:s,icon:u,disableClose:c})})),(o,s)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",bA,[l.renderSlot(o.$slots,"default",{},void 0,!0)],512)),[[l.vShow,a.value]])}},M_=Pt(_A,[["__scopeId","data-v-2b4361c8"]]),E_={__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:r=>["left","right"].includes(r)},onSearch:{type:Function,default:null},isAjaxSearch:{type:Boolean,default:!1},hideSelected:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},emits:["update:modelValue","clear","change","select","search-change"],setup(r,{emit:e}){const t=r,n=l.useSlots(),a=l.useAttrs(),i=e,o=`field_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,s=l.getCurrentInstance(),u=l.computed(()=>t.name||`input_${(s==null?void 0:s.uid)||o}`),c=l.computed(()=>t.containerClass!==void 0&&t.containerClass!==null?t.containerClass:ve.inputContainerClass??""),f=l.computed(()=>t.trueValue!==void 0&&t.trueValue!==null?t.trueValue:ve.trueValue??"Y"),d=l.computed(()=>t.falseValue!==void 0&&t.falseValue!==null?t.falseValue:ve.falseValue??"N"),h=l.computed(()=>t.size!==void 0&&t.size!==null?t.size:ve.size??"md"),v=l.computed(()=>{var g;return t.iconPosition!==void 0&&t.iconPosition!==null?t.iconPosition:((g=ve.input)==null?void 0:g.iconPosition)??"right"}),p=l.computed({get:()=>t.modelValue,set:g=>i("update:modelValue",g)});return(g,y)=>{var m,b,_,S,w;return l.openBlock(),l.createElementBlock(l.Fragment,null,[["text","password","email","number","url","textarea"].includes(r.type)?(l.openBlock(),l.createBlock(kr,{key:0,modelValue:p.value,"onUpdate:modelValue":y[0]||(y[0]=x=>p.value=x),label:r.label,placeholder:r.placeholder,hints:r.hints,name:u.value,isCodeInput:r.isCodeInput,maxlength:r.maxlength,minlength:r.minlength,rules:r.rules,type:r.type,isLeftIconBorder:r.isLeftIconBorder,isRightIconBorder:r.isRightIconBorder,passIconPosition:r.passIconPosition,isHideLabel:r.isHideLabel,iconPosition:v.value,as:r.type=="textarea"?"textarea":"",containerClass:c.value,size:h.value},l.createSlots({_:2},[(l.unref(n).label||r.label)&&!r.isHideLabel?{name:"label",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])]),key:"0"}:void 0,l.unref(n).icon?{name:"icon",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"icon")]),key:"1"}:void 0,l.unref(n).prefix||r.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])]),key:"2"}:void 0,l.unref(n).postfix||r.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])]),key:"3"}:void 0,l.unref(n).showPasswordIcon?{name:"showPasswordIcon",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"showPasswordIcon")]),key:"4"}:void 0,l.unref(n).hidePasswordIcon?{name:"hidePasswordIcon",fn:l.withCtx(()=>[l.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"])):l.createCommentVNode("",!0),["select","multiselect"].includes(r.type)?(l.openBlock(),l.createBlock(Za,{key:1,size:h.value,modelValue:p.value,"onUpdate:modelValue":y[1]||(y[1]=x=>p.value=x),options:r.options,label:r.label,placeholder:r.placeholder,hints:r.hints,name:u.value,id:(m=l.unref(a))==null?void 0:m.id,style:l.normalizeStyle((b=l.unref(a))==null?void 0:b.style),max:r.max,rules:r.rules,object:r.object,valueKey:r.valueKey,labelKey:r.labelKey,mode:r.type=="multiselect"?"tags":"single",disabled:(_=l.unref(a))==null?void 0:_.disabled,searchable:r.searchable,isLeftIconBorder:r.isLeftIconBorder,isRightIconBorder:r.isRightIconBorder,isHideLabel:r.isHideLabel,iconPosition:v.value,containerClass:c.value,onSearch:r.onSearch,isAjaxSearch:r.isAjaxSearch,hideSelected:r.hideSelected,loading:r.loading,appendToBody:r.appendToBody,onClear:y[2]||(y[2]=x=>i("clear",x)),onChange:y[3]||(y[3]=x=>i("change",x)),onSelect:y[4]||(y[4]=x=>i("select",x)),onSearchChange:y[5]||(y[5]=x=>i("search-change",x))},l.createSlots({_:2},[(l.unref(n).label||r.label)&&!r.isHideLabel?{name:"label",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])]),key:"0"}:void 0,l.unref(n).icon?{name:"icon",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"icon")]),key:"1"}:void 0,l.unref(n).prefix||r.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])]),key:"2"}:void 0,l.unref(n).postfix||r.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])]),key:"3"}:void 0,l.unref(n).option?{name:"option",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"option")]),key:"4"}:void 0,l.unref(n).singlelabel?{name:"singlelabel",fn:l.withCtx(()=>[l.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","onSearch","isAjaxSearch","hideSelected","loading","appendToBody"])):l.createCommentVNode("",!0),r.type=="tag"?(l.openBlock(),l.createBlock($v,{key:2,modelValue:p.value,"onUpdate:modelValue":y[6]||(y[6]=x=>p.value=x),size:h.value,label:r.label,name:u.value,isLeftIconBorder:r.isLeftIconBorder,isRightIconBorder:r.isRightIconBorder,id:(S=g.$attrs)==null?void 0:S.id,rules:r.rules,isHideLabel:r.isHideLabel,iconPosition:v.value,containerClass:c.value,options:r.options,placeholder:r.placeholder,max:r.max},l.createSlots({_:2},[(l.unref(n).label||r.label)&&!r.isHideLabel?{name:"label",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])]),key:"0"}:void 0,l.unref(n).icon?{name:"icon",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"icon")]),key:"1"}:void 0,l.unref(n).prefix||r.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"prefix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.prefix)),1)])]),key:"2"}:void 0,l.unref(n).postfix||r.postfix?{name:"postfix",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"postfix",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.postfix)),1)])]),key:"3"}:void 0]),1032,["modelValue","size","label","name","isLeftIconBorder","isRightIconBorder","id","rules","isHideLabel","iconPosition","containerClass","options","placeholder","max"])):l.createCommentVNode("",!0),r.type=="checkbox"||r.type=="radio"?(l.openBlock(),l.createBlock(aa,{key:3,type:r.type,name:u.value,size:h.value,modelValue:p.value,"onUpdate:modelValue":y[7]||(y[7]=x=>p.value=x),val:r.val,options:r.options,limit:r.max,rules:r.rules,containerClass:c.value,isInline:r.isInline},l.createSlots({_:2},[l.unref(n).label||r.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])]),key:"0"}:void 0,l.unref(n).description||r.description?{name:"description",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.description)),1)])]),key:"1"}:void 0,l.unref(n).helptext||r.helptext?{name:"help-text",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"help-text",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.helptext)),1)])]),key:"2"}:void 0]),1032,["type","name","size","modelValue","val","options","limit","rules","containerClass","isInline"])):l.createCommentVNode("",!0),r.type=="toggle"||r.type=="switch"?(l.openBlock(),l.createBlock(gc,{key:4,size:h.value,name:u.value,id:(w=l.unref(a))==null?void 0:w.id,containerClass:c.value,trueValue:f.value,falseValue:d.value,modelValue:p.value,"onUpdate:modelValue":y[8]||(y[8]=x=>p.value=x)},l.createSlots({_:2},[l.unref(n).label||r.label?{name:"label",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.label)),1)])]),key:"0"}:void 0,l.unref(n).title||r.title?{name:"title",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"title",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.title)),1)])]),key:"1"}:void 0,l.unref(n).description||r.description?{name:"description",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"description",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.description)),1)])]),key:"2"}:void 0,l.unref(n).hints||r.hints?{name:"hints",fn:l.withCtx(()=>[l.renderSlot(g.$slots,"hints",{},()=>[l.createTextVNode(l.toDisplayString(l.unref(F)(r.hints)),1)])]),key:"3"}:void 0]),1032,["size","name","id","containerClass","trueValue","falseValue","modelValue"])):l.createCommentVNode("",!0)],64)}}};function A_(){const r=l.ref("light"),e=a=>{r.value=a,document.documentElement.setAttribute("data-bs-theme",a),localStorage.setItem("theme",a)},t=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",n=()=>{e(r.value==="dark"?"light":"dark")};return l.onMounted(()=>{const a=localStorage.getItem("theme");e(a||t()),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",i=>{localStorage.getItem("theme")||e(i.matches?"dark":"light")})}),{theme:r,toggleTheme:n,applyTheme:e}}const SA=["title","aria-label"],wA={class:"apbd-dark-mode-toggler-inner"},N_={__name:"AbDarkModeToggler",props:{size:{type:String,default:"md",validator:r=>["xs","sm","md","lg","xl","2xl"].includes(r)}},setup(r){const{theme:e,toggleTheme:t}=A_();return(n,a)=>(l.openBlock(),l.createElementBlock("button",{class:l.normalizeClass(["apbd-dark-mode-toggler",`apbd-dark-mode-toggler-${r.size}`]),onClick:a[0]||(a[0]=(...i)=>l.unref(t)&&l.unref(t)(...i)),title:l.unref(e)==="dark"?"Switch to Light Mode":"Switch to Dark Mode","aria-label":l.unref(e)==="dark"?"Switch to Light Mode":"Switch to Dark Mode"},[l.createElementVNode("div",wA,[l.unref(e)==="dark"?l.renderSlot(n.$slots,"dark-icon",{key:0},()=>[l.createVNode(l.unref(LT),{class:"apbd-dark-mode-toggler-icon sun-icon"})]):l.renderSlot(n.$slots,"light-icon",{key:1},()=>[l.createVNode(l.unref(NT),{class:"apbd-dark-mode-toggler-icon moon-icon"})])])],10,SA))}},xA={},CA={class:"success-icon"};function kA(r,e){return l.openBlock(),l.createElementBlock("div",CA,[...e[0]||(e[0]=[l.createElementVNode("svg",{viewBox:"0 0 52 52"},[l.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),l.createElementVNode("path",{class:"check",fill:"none",d:"M14 27l7 7 16-16"})],-1)])])}const I_=Pt(xA,[["render",kA],["__scopeId","data-v-625203d4"]]),TA={},DA={class:"error-icon"};function MA(r,e){return l.openBlock(),l.createElementBlock("div",DA,[...e[0]||(e[0]=[l.createElementVNode("svg",{viewBox:"0 0 52 52"},[l.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),l.createElementVNode("path",{class:"cross line1",fill:"none",d:"M16 16 36 36"}),l.createElementVNode("path",{class:"cross line2",fill:"none",d:"M36 16 16 36"})],-1)])])}const B_=Pt(TA,[["render",MA],["__scopeId","data-v-60bee436"]]),EA={},AA={class:"warn-icon"};function NA(r,e){return l.openBlock(),l.createElementBlock("div",AA,[...e[0]||(e[0]=[l.createElementVNode("svg",{viewBox:"0 0 52 52"},[l.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),l.createElementVNode("line",{class:"line",x1:"26",y1:"16",x2:"26",y2:"30"}),l.createElementVNode("circle",{class:"dot",cx:"26",cy:"36",r:"2"})],-1)])])}const L_=Pt(EA,[["render",NA],["__scopeId","data-v-f340f7e1"]]),IA={},BA={class:"info-icon"};function LA(r,e){return l.openBlock(),l.createElementBlock("div",BA,[...e[0]||(e[0]=[l.createElementVNode("svg",{viewBox:"0 0 52 52"},[l.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),l.createElementVNode("line",{class:"line",x1:"26",y1:"22",x2:"26",y2:"34"}),l.createElementVNode("circle",{class:"dot",cx:"26",cy:"16",r:"2"})],-1)])])}const V_=Pt(IA,[["render",LA],["__scopeId","data-v-ad8f3cce"]]),VA={},PA={class:"question-icon"};function RA(r,e){return l.openBlock(),l.createElementBlock("div",PA,[...e[0]||(e[0]=[l.createElementVNode("svg",{viewBox:"0 0 52 52"},[l.createElementVNode("circle",{class:"circle",cx:"26",cy:"26",r:"25",fill:"none"}),l.createElementVNode("path",{class:"curve",fill:"none",d:"M20 20a6 6 0 1 1 10 4c-2 2-4 3-4 6"}),l.createElementVNode("circle",{class:"dot",cx:"26",cy:"36",r:"2"})],-1)])])}const P_=Pt(VA,[["render",RA],["__scopeId","data-v-e4a05fc5"]]),OA={class:"ms-1"},zA={key:0,class:"mb-3 d-flex justify-content-center"},$A={key:1,class:"fw-bold mb-2"},FA={class:"d-flex justify-content-center align-items-center mt-3 gap-2"},HA={__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(r,{emit:e}){const t=r,n=e,a=()=>({msg:t.msg,title:t.title,confirmText:t.confirmText,cancelText:t.cancelText,type:t.type,icon:t.icon,onConfirm:t.onConfirm,buttonClass:"",loading:!1}),i=l.reactive(a());function o(){Object.assign(i,a())}const s=l.computed(()=>({success:I_,error:B_,warning:L_,info:V_,question:P_})[i.icon]||i.icon),u=l.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:t.itemData,closePopover:d});return}if((i.type==="confirm"||i.type==="confirm-ajax")&&i.onConfirm){i.loading=!0;try{const h=await i.onConfirm(t.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)=>(l.openBlock(),l.createBlock(hi,{onHide:o,onShow:o},{content:l.withCtx(({close:v})=>[l.createElementVNode("div",{class:l.normalizeClass(["apbd-confirm-popover p-3",{"apbd-loading-parent":i.loading}])},[i.icon&&i.type==="alert"?(l.openBlock(),l.createElementBlock("div",zA,[l.createElementVNode("div",{class:l.normalizeClass(`icon-circle ${u.value}`),style:{width:"40px",height:"40px",display:"flex","align-items":"center","justify-content":"center","border-radius":"50%",margin:"0 auto"}},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.value)))],2)])):l.createCommentVNode("",!0),i.title?(l.openBlock(),l.createElementBlock("div",$A,l.toDisplayString(l.unref(ot)(i.title)),1)):l.createCommentVNode("",!0),l.createElementVNode("div",null,l.toDisplayString(l.unref(ot)(i.msg)),1),l.renderSlot(d.$slots,"desc",{},void 0,!0),l.createElementVNode("div",FA,[l.renderSlot(d.$slots,"actionButtons",{removeConfirmed:()=>f(v),state:i},()=>[l.createVNode(Xe,{class:l.normalizeClass(["btn-sm btn-danger",i.buttonClass]),isAnimated:i.loading,onClick:p=>f(v),disabled:i.loading},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(ot)(i.confirmText)),1)]),_:1},8,["class","isAnimated","onClick","disabled"]),i.type==="confirm"||i.type==="confirm-ajax"?(l.openBlock(),l.createBlock(Xe,{key:0,class:"btn-sm btn-light",onClick:v,disabled:i.loading},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(ot)(i.cancelText)),1)]),_:1},8,["onClick","disabled"])):l.createCommentVNode("",!0)],!0)])],2)]),default:l.withCtx(()=>[l.renderSlot(d.$slots,"default",{},()=>[l.createVNode(Xe,{type:"button",class:"btn-sm btn-danger d-inline-flex align-items-center"},{icon:l.withCtx(()=>[l.createVNode(l.unref(VT),{size:16})]),default:l.withCtx(()=>[l.createElementVNode("span",OA,l.toDisplayString(l.unref(ot)("Remove")),1)]),_:1})],!0)]),_:3}))}},R_=Pt(HA,[["__scopeId","data-v-e6dd4a44"]]),GA={name:"AbEasyModal",inheritAttrs:!1},O_=Object.assign(GA,{setup(r,{expose:e}){const t=l.ref(!1),n=()=>{t.value=!0},a=()=>{t.value=!1};return e({openModal:n,closeModal:a}),(i,o)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:"d-inline-block",onClick:n},[l.renderSlot(i.$slots,"action")]),t.value?(l.openBlock(),l.createBlock(zv,l.mergeProps({key:0},i.$attrs,{onClose:a}),l.createSlots({_:2},[i.$slots.title?{name:"headerTitle",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"title")]),key:"0"}:void 0,i.$slots.body?{name:"body",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"body")]),key:"1"}:void 0,i.$slots.footer?{name:"footer",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"footer",{closeModal:a,close:a})]),key:"2"}:void 0]),1040)):l.createCommentVNode("",!0)],64))}}),WA={key:0,class:"pricing-card-recommended-ribbon"},UA={key:1,class:"pricing-card-header"},YA={class:"pricing-badge-wrapper"},ZA={key:0,class:"pricing-badge"},XA={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"},jA={class:"pricing-title"},qA={key:2,class:"pricing-card-price"},KA={class:"price-wrapper"},QA={key:0,class:"price-regular"},JA={class:"price-amount"},eN={key:1,class:"price-frequency"},tN={key:3,class:"pricing-card-features"},rN={key:0,class:"pricing-feature-list"},nN={class:"feature-icon"},aN={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"},iN={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"},oN={class:"feature-text"},sN={key:4,class:"pricing-card-action"},lN={name:"AbPricingCard",inheritAttrs:!1},z_=Object.assign(lN,{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:r=>["default","minimal","highlighted","badge-price"].includes(r)},features:{type:Array,default:()=>[]}},setup(r){return(e,t)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps({class:["abpd-pricing-card",[{"is-active":r.active,"is-recommended":r.recommended,"is-highlighted":r.variant==="highlighted","is-minimal":r.variant==="minimal","is-badge-price":r.variant==="badge-price"},`is-${r.color}`]]},e.$attrs),[r.recommended?(l.openBlock(),l.createElementBlock("div",WA,[l.renderSlot(e.$slots,"recommended",{},()=>[t[0]||(t[0]=l.createTextVNode("Recommended",-1))])])):l.createCommentVNode("",!0),e.$slots.header||r.title?(l.openBlock(),l.createElementBlock("div",UA,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("div",YA,[l.renderSlot(e.$slots,"badge",{},()=>[r.badge||e.$slots["badge-icon"]?(l.openBlock(),l.createElementBlock("span",ZA,[l.renderSlot(e.$slots,"badge-icon",{},()=>[r.active?(l.openBlock(),l.createElementBlock("svg",XA,[...t[1]||(t[1]=[l.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):l.createCommentVNode("",!0)]),l.createTextVNode(" "+l.toDisplayString(r.badge),1)])):l.createCommentVNode("",!0)])]),l.createElementVNode("h3",jA,l.toDisplayString(r.title),1)])])):l.createCommentVNode("",!0),e.$slots.price||r.amount!==void 0?(l.openBlock(),l.createElementBlock("div",qA,[l.renderSlot(e.$slots,"price",{},()=>[l.createElementVNode("div",KA,[r.regularAmount!==void 0?(l.openBlock(),l.createElementBlock("span",QA,l.toDisplayString(r.regularAmount),1)):l.createCommentVNode("",!0),l.createElementVNode("span",JA,l.toDisplayString(r.amount),1),r.frequency?(l.openBlock(),l.createElementBlock("span",eN,l.toDisplayString(r.frequency),1)):l.createCommentVNode("",!0)])])])):l.createCommentVNode("",!0),e.$slots.features||r.features&&r.features.length?(l.openBlock(),l.createElementBlock("div",tN,[l.renderSlot(e.$slots,"features",{},()=>[r.features?(l.openBlock(),l.createElementBlock("ul",rN,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.features,(n,a)=>(l.openBlock(),l.createElementBlock("li",{key:a,class:l.normalizeClass({"is-disabled":n.disabled})},[l.createElementVNode("span",nN,[l.renderSlot(e.$slots,"feature-icon",{feature:n,index:a},()=>[n.disabled?(l.openBlock(),l.createElementBlock("svg",iN,[...t[3]||(t[3]=[l.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),l.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)])])):(l.openBlock(),l.createElementBlock("svg",aN,[...t[2]||(t[2]=[l.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1)])]))])]),l.createElementVNode("span",oN,l.toDisplayString(n.text||n),1)],2))),128))])):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),e.$slots.action?(l.openBlock(),l.createElementBlock("div",sN,[l.renderSlot(e.$slots,"action")])):l.createCommentVNode("",!0)],16))}}),uN={class:"abpd-pricing-container"},cN={key:0,class:"pricing-toggle-wrapper"},fN={name:"AbPricingContainer"},$_=Object.assign(fN,{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(r){const e=r,t=l.computed(()=>Number(e.columns)>0),n=l.computed(()=>{const a={gap:e.gap,width:e.width,maxWidth:e.maxWidth};return e.itemWidth&&(a["--pricing-card-width"]=e.itemWidth),t.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)=>(l.openBlock(),l.createElementBlock("div",uN,[a.$slots.toggle?(l.openBlock(),l.createElementBlock("div",cN,[l.renderSlot(a.$slots,"toggle")])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["pricing-grid",{"is-grid":t.value}]),style:l.normalizeStyle(n.value)},[l.renderSlot(a.$slots,"default")],6)]))}}),dN={class:"apbd-pricing-table"},hN={class:"apbd-pricing-features-col d-none d-md-flex"},vN={class:"apbd-pricing-feature-list"},pN={class:"apbd-pricing-packages"},gN={key:0,class:"apbd-package-badge"},mN={class:"apbd-package-header"},yN={class:"apbd-package-name"},bN={class:"apbd-package-price"},_N={key:0,class:"apbd-package-regular-price"},SN={class:"apbd-package-features"},wN={class:"d-md-none me-2"},xN={key:0,class:"bi bi-check-circle-fill apbd-check-icon"},CN={key:1,class:"bi bi-x-circle apbd-cross-icon"},kN={class:"apbd-package-footer"},TN=["href","onClick"],DN=["onClick"],MN={key:1,class:"apbd-package-alt-text"},F_={__name:"AbPricingTable",props:{features:{type:Array,required:!0},packages:{type:Array,required:!0}},emits:["select-package"],setup(r,{emit:e}){const t=e,n=a=>{t("select-package",a)};return(a,i)=>{const o=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("div",dN,[l.createElementVNode("div",hN,[l.renderSlot(a.$slots,"features-header",{},()=>[i[0]||(i[0]=l.createElementVNode("div",{class:"apbd-features-header"},[l.createElementVNode("div",{class:"apbd-features-subtitle"},"Get Started"),l.createElementVNode("h3",{class:"apbd-features-title"},"Service Details")],-1))]),l.createElementVNode("div",vN,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.features,(s,u)=>(l.openBlock(),l.createElementBlock("div",{key:s.key,class:"apbd-pricing-feature-item"},[l.renderSlot(a.$slots,"feature-label",{feature:s},()=>[l.createTextVNode(l.toDisplayString(s.title),1)])]))),128))])]),l.createElementVNode("div",pN,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.packages,s=>(l.openBlock(),l.createElementBlock("div",{key:s.id,class:l.normalizeClass(["apbd-pricing-package-col",{"apbd-pricing-package-active":s.isActive}])},[l.renderSlot(a.$slots,"package-badge",{pkg:s},()=>[s.badge?(l.openBlock(),l.createElementBlock("div",gN,l.toDisplayString(s.badge),1)):l.createCommentVNode("",!0)]),l.renderSlot(a.$slots,"package-header",{pkg:s},()=>[l.createElementVNode("div",mN,[l.createElementVNode("div",yN,l.toDisplayString(s.name),1),l.createElementVNode("div",bN,[l.createTextVNode(" $"+l.toDisplayString(s.price)+" ",1),l.createElementVNode("span",null,"/ "+l.toDisplayString(s.billingCycle),1)]),s.regularPrice?(l.openBlock(),l.createElementBlock("div",_N," $"+l.toDisplayString(s.regularPrice),1)):l.createCommentVNode("",!0)])]),l.createElementVNode("div",SN,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.features,(u,c)=>(l.openBlock(),l.createElementBlock("div",{key:u.key,class:"apbd-package-feature-item"},[l.createElementVNode("span",wN,l.toDisplayString(u.title)+":",1),l.renderSlot(a.$slots,"package-feature",{pkg:s,feature:u},()=>[s.features&&s.features[u.key]==="Y"?(l.openBlock(),l.createElementBlock("i",xN)):s.features&&s.features[u.key]==="N"?(l.openBlock(),l.createElementBlock("i",CN)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.createTextVNode(" - ")],64))])]))),128))]),l.renderSlot(a.$slots,"package-footer",{pkg:s},()=>[l.createElementVNode("div",kN,[s.showButton!==!1?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[s.buttonLink&&s.buttonLink.startsWith("/")?(l.openBlock(),l.createBlock(o,{key:0,to:s.buttonLink,class:"apbd-btn btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:u=>n(s)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(s.buttonText||"Choose Plan"),1)]),_:2},1032,["to","onClick"])):s.buttonLink?(l.openBlock(),l.createElementBlock("a",{key:1,href:s.buttonLink,target:"_blank",rel:"noopener noreferrer",class:"apbd-btn btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:u=>n(s)},l.toDisplayString(s.buttonText||"Choose Plan"),9,TN)):(l.openBlock(),l.createElementBlock("button",{key:2,class:"apbd-btn btn btn-primary rounded-pill w-100 apbd-package-btn",onClick:u=>n(s)},l.toDisplayString(s.buttonText||"Choose Plan"),9,DN))],64)):s.altButtonText?(l.openBlock(),l.createElementBlock("span",MN,l.toDisplayString(s.altButtonText),1)):l.createCommentVNode("",!0)])])],2))),128))])])}}};/*! *****************************************************************************
|
|
232
232
|
Copyright (c) Microsoft Corporation.
|
|
233
233
|
|
|
234
234
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -270,7 +270,7 @@ echarts.use([`+A+"]);":"Unknown series "+M))}return}if(d==="tooltip"){if(_){proc
|
|
|
270
270
|
|
|
271
271
|
`];function Vr(r,e){return e.type=r,e}function Zh(r){return r.type==="section"}function Qw(r){return Zh(r)?DR:MR}function Jw(r){if(Zh(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return N(r.blocks,function(a){var i=Jw(a);i>=e&&(e=i+ +(n&&(!i||Zh(a)&&!a.noHeader)))}),e}return 0}function DR(r,e,t,n){var a=e.noHeader,i=ER(Jw(e)),o=[],s=e.blocks||[];ce(!s||Z(s)),s=s||[];var u=r.orderMode;if(e.sortBlocks&&u){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Dr(c,u)){var f=new fR(c[u],null);s.sort(function(g,y){return f.evaluate(g.sortParam,y.sortParam)})}else u==="seriesDesc"&&s.reverse()}N(s,function(g,y){var m=e.valueFormatter,b=Qw(g)(m?Y(Y({},r),{valueFormatter:m}):r,g,y>0?i.html:0,n);b!=null&&o.push(b)});var d=r.renderMode==="richText"?o.join(i.richText):Xh(n,o.join(""),a?t:i.html);if(a)return d;var h=zh(e.header,"ordinal",r.useUTC),v=Kw(n,r.renderMode).nameStyle,p=qw(n);return r.renderMode==="richText"?ex(r,h,v)+i.richText+d:Xh(n,'<div style="'+v+";"+p+';">'+Ut(h)+"</div>"+d,t)}function MR(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,u=e.name,c=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=Z(S)?S:[S],X(S,function(w,x){return zh(w,Z(v)?v[x]:v,c)})};if(!(i&&o)){var d=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||G.color.secondary,a),h=i?"":zh(u,"ordinal",c),v=e.valueType,p=o?[]:f(e.value,e.dataIndex),g=!s||!i,y=!s&&i,m=Kw(n,a),b=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":d)+(i?"":ex(r,h,b))+(o?"":IR(r,p,g,y,_)):Xh(n,(s?"":d)+(i?"":AR(h,!s,b))+(o?"":NR(p,g,y,_)),t)}}function Vy(r,e,t,n,a,i){if(r){var o=Qw(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function ER(r){return{html:kR[r],richText:TR[r]}}function Xh(r,e,t){var n='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",i=qw(r);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function AR(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+Ut(r)+"</span>"}function NR(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=Z(r)?r:[r],'<span style="'+i+";"+n+'">'+X(r,function(o){return Ut(o)}).join(" ")+"</span>"}function ex(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function IR(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(Z(e)?e.join(" "):e,i)}function tx(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return li(n)}function rx(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Kf=function(){function r(){this.richTextStyles={},this._nextStyleNameId=wS()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=fP({color:t,type:e,renderMode:n,markerId:a});return te(i)?i:(process.env.NODE_ENV!=="production"&&ce(a),this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};Z(t)?N(t,function(i){return Y(n,i)}):Y(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r}();function BR(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),u=Z(s),c=tx(e,t),f,d,h,v;if(o>1||u&&!o){var p=LR(s,e,t,i,c);f=p.inlineValues,d=p.inlineValueTypes,h=p.blocks,v=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);v=f=ro(a,t,i[0]),d=g.type}else v=f=u?s[0]:s;var y=Jv(e),m=y&&e.name||"",b=a.getName(t),_=n?m:b;return Vr("section",{header:m,noHeader:n||!y,sortParam:v,blocks:[Vr("nameValue",{markerType:"item",markerColor:c,name:_,noName:!qr(_),value:f,valueType:d,dataIndex:t})].concat(h||[])})}function LR(r,e,t,n,a){var i=e.getData(),o=oa(r,function(d,h,v){var p=i.getDimensionInfo(v);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],u=[],c=[];n.length?N(n,function(d){f(ro(i,t,d),d)}):N(r,f);function f(d,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?c.push(Vr("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:d,valueType:v.type})):(s.push(d),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:c}}var Rn=Re();function wl(r,e){return r.getName(e)||r.getId(e)}var VR="__universalTransitionEnabled",wt=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=vs({count:RR,reset:OR}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Rn(this).sourceManager=new jw(this);i.prepareSource();var o=this.getInitialData(t,a);Ry(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&ce(o,"getInitialData returned invalid data."),Rn(this).dataBeforeProcessed=o,Py(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=xs(this),i=a?vo(t):{},o=this.subType;Ne.hasClass(o)&&(o+="Series"),Ce(t,n.getTheme().get(this.subType)),Ce(t,this.getDefaultOption()),Au(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&la(t,i,a)},e.prototype.mergeOption=function(t,n){t=Ce(this.option,t,!0),this.fillDataTextStyle(t.data);var a=xs(this);a&&la(this.option,t,a);var i=Rn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);Ry(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Rn(this).dataBeforeProcessed=o,Py(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!$t(t))for(var n=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&Au(t[a],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=jh(this);if(n){var a=n.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return Rn(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=jh(this);if(n){var a=n.context;a.outputData=t,n!==this.dataTask&&(a.data=t)}Rn(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return _e(t)},e.prototype.getSourceManager=function(){return Rn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Rn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,n,a,i){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(t);if(!s||!u)return[];var c=u.dataToCoord(a);i==null&&(i=1/0);var f=[],d=1/0,h=-1,v=0;return o.each(n,function(p,g){var y=u.dataToCoord(p),m=c-y,b=Math.abs(m);b<=i&&((b<d||b===d&&m>=0&&h<0)&&(d=b,h=m,v=0),m===h&&(f[v++]=g))}),f.length=v,f},e.prototype.formatTooltip=function(t,n,a){return BR({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(we.node&&!(t&&t.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(t,n,a){var i=this.ecModel,o=Ap.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var u=t[s],c=wl(o,u);a[c]=!1,this._selectedDataIndicesMap[c]=-1}}},e.prototype.toggleSelect=function(t,n){for(var a=[],i=0;i<t.length;i++)a[0]=t[i],this.isSelected(t[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 t=this._selectedDataIndicesMap,n=je(t),a=[],i=0;i<n.length;i++){var o=t[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[wl(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[VR])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){fe(o.selectedMap)||(o.selectedMap={});for(var c=o.selectedMap,f=0;f<u;f++){var d=n[f],h=wl(t,d);c[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(d)}}else if(s==="single"||s===!0){var v=n[u-1],h=wl(t,v);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(a){var i=t.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return Ne.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Ne);ir(wt,Bp);ir(wt,Ap);NS(wt,Ne);function Py(r){var e=r.name;Jv(r)||(r.name=PR(r)||e)}function PR(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return N(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function RR(r){return r.model.getRawData().count()}function OR(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),zR}function zR(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Ry(r,e){N(X_(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,me($R,e))})}function $R(r,e){var t=jh(r);return t&&t.setOutputEnd((e||this).count()),e}function jh(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Et=function(){function r(){this.group=new Ee,this.uid=Ws("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();tp(Et);kc(Et);function Ys(){var r=Re();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var nx=Re(),FR=Ys(),yt=function(){function r(){this.group=new Ee,this.uid=Ws("viewChart"),this.renderTask=vs({plan:HR,reset:GR}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&Ye("Unknown dataType "+a.dataType);return}zy(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&Ye("Unknown dataType "+a.dataType);return}zy(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateLayout=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){vi(this.group,e)},r.markUpdateMethod=function(e,t){nx(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function Oy(r,e,t){r&&sa(r)&&(e==="emphasis"?ii:oi)(r,t)}function zy(r,e,t){var n=ni(r,e),a=e&&e.highlightKey!=null?jL(e.highlightKey):null;n!=null?N(gt(n),function(i){Oy(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){Oy(i,t,a)})}tp(yt,["dispose"]);kc(yt);function HR(r){return FR(r.model)}function GR(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&nx(a).updateMethod,u=i?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](e,t,n,a),WR[u]}var WR={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Gu="\0__throttleOriginMethod",$y="\0__throttleRate",Fy="\0__throttleType";function zc(r,e,t){var n,a=0,i=0,o=null,s,u,c,f;e=e||0;function d(){i=new Date().getTime(),o=null,r.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,y=f||t;f=null,s=n-(y?a:i)-g,clearTimeout(o),y?o=setTimeout(d,g):s>=0?d():o=setTimeout(d,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function $c(r,e,t,n){var a=r[e];if(a){var i=a[Gu]||a,o=a[Fy],s=a[$y];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=zc(i,t,n==="debounce"),a[Gu]=i,a[Fy]=n,a[$y]=t}return a}}function Wu(r,e){var t=r[e];t&&t[Gu]&&(t.clear&&t.clear(),r[e]=t[Gu])}var Hy=Re(),Gy={itemStyle:Qi(pw,!0),lineStyle:Qi(vw,!0)},UR={lineStyle:"stroke",itemStyle:"fill"};function ax(r,e){var t=r.visualStyleMapper||Gy[e];return t||(console.warn("Unknown style type '"+e+"'."),Gy.itemStyle)}function ix(r,e){var t=r.visualDrawType||UR[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var YR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=ax(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var u=ix(r,n),c=o[u],f=ue(c)?c:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||d){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[u]||(o[u]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ue(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||ue(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",u),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,p){var g=r.getDataParams(p),y=Y({},o);y[u]=f(g),v.setItemVisual(p,"style",y)}}}},To=new Ue,ZR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=ax(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){To.option=u[n];var c=a(To),f=o.ensureUniqueItemVisual(s,"style");Y(f,c),To.option.decal&&(o.setItemVisual(s,"decal",To.option.decal),To.option.decal.dirty=!0),i in c&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},XR={performRawSeries:!0,overallReset:function(r){var e=_e();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),Hy(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),a={},i=t.getData(),o=Hy(t).scope,s=t.visualStyleAccessPath||"itemStyle",u=ix(t,s);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]=t.getColorFromPalette(v,o,p)}})}})}},xl=Math.PI;function jR(r,e){e=e||{},Me(e,{text:"loading",textColor:G.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:G.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Ee,n=new Oe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new We({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 Oe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Nc({shape:{startAngle:-xl/2,endAngle:-xl/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:xl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:xl*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,u=e.showSpinner?e.spinnerRadius:0,c=(r.getWidth()-u*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;e.showSpinner&&o.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:r.getWidth(),height:r.getHeight()})},t.resize(),t}var ox=function(){function r(e,t,n,a){this._stageTaskMap=_e(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),u=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=_e();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;N(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),ce(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;N(e,function(u,c){if(!(a.visualType&&a.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),d=f.seriesTaskMap,h=f.overallTask;if(h){var v,p=h.agentStubMap;p.each(function(y){s(a,y)&&(y.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,a.block);p.each(function(y){y.perform(g)}),h.perform(g)&&(i=!0)}else d&&d.each(function(y,m){s(a,y)&&y.dirty();var b=o.getPerformArgs(y,a.block);b.skip=!u.performRawSeries&&t.isSeriesFiltered(y.context.model),o.updatePayload(y,n),y.perform(b)&&(i=!0)})}});function s(u,c){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(c.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=_e(),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=s.set(h,o&&o.get(h)||vs({plan:eO,reset:tO,count:nO}));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)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||vs({reset:qR});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,u=o.agentStubMap=_e(),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.'),ce(!e.createOnAllSeries,v),c?n.eachRawSeriesByType(c,p):f?f(n,a).each(p):(d=!1,N(n.getSeries(),p));function p(g){var y=g.uid,m=u.set(y,s&&s.get(y)||(h=!0,vs({reset:KR,onDirty:JR})));m.context={model:g,overallProgress:d},m.agent=o,m.__block=d,i._pipe(g,m)}h&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return ue(e)&&(e={overallReset:e,seriesType:aO(e)}),e.uid=Ws("stageHandler"),t&&(e.visualType=t),e},r}();function qR(r){r.overallReset(r.ecModel,r.api,r.payload)}function KR(r){return r.overallProgress&&QR}function QR(){this.agent.dirty(),this.getDownstream().dirty()}function JR(){this.agent&&this.agent.dirty()}function eO(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function tO(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=gt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?X(e,function(t,n){return sx(n)}):rO}var rO=sx(0);function sx(r){return function(e,t){var n=t.data,a=t.resetDefines[r];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 nO(r){return r.data.count()}function aO(r){Uu=null;try{r(ks,lx)}catch{}return Uu}var ks={},lx={},Uu;ux(ks,Np);ux(lx,Pw);ks.eachSeriesByType=ks.eachRawSeriesByType=function(r){Uu=r};ks.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Uu=r.subType)};function ux(r,e){for(var t in e.prototype)r[t]=Dt}var re=G.darkColor,iO=re.background,Do=function(){return{axisLine:{lineStyle:{color:re.axisLine}},splitLine:{lineStyle:{color:re.axisSplitLine}},splitArea:{areaStyle:{color:[re.backgroundTint,re.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:re.axisMinorSplitLine}},axisLabel:{color:re.axisLabel},axisName:{}}},Wy={label:{color:re.secondary},itemStyle:{borderColor:re.borderTint},dividerLineStyle:{color:re.border}},cx={darkMode:!0,color:re.theme,backgroundColor:iO,axisPointer:{lineStyle:{color:re.border},crossStyle:{color:re.borderShade},label:{color:re.tertiary}},legend:{textStyle:{color:re.secondary},pageTextStyle:{color:re.tertiary}},textStyle:{color:re.secondary},title:{textStyle:{color:re.primary},subtextStyle:{color:re.quaternary}},toolbox:{iconStyle:{borderColor:re.accent50}},tooltip:{backgroundColor:re.neutral20,defaultBorderColor:re.border,textStyle:{color:re.tertiary}},dataZoom:{borderColor:re.accent10,textStyle:{color:re.tertiary},brushStyle:{color:re.backgroundTint},handleStyle:{color:re.neutral00,borderColor:re.accent20},moveHandleStyle:{color:re.accent40},emphasis:{handleStyle:{borderColor:re.accent50}},dataBackground:{lineStyle:{color:re.accent30},areaStyle:{color:re.accent20}},selectedDataBackground:{lineStyle:{color:re.accent50},areaStyle:{color:re.accent30}}},visualMap:{textStyle:{color:re.secondary},handleStyle:{borderColor:re.neutral30}},timeline:{lineStyle:{color:re.accent10},label:{color:re.tertiary},controlStyle:{color:re.accent30,borderColor:re.accent30}},calendar:{itemStyle:{color:re.neutral00,borderColor:re.neutral20},dayLabel:{color:re.tertiary},monthLabel:{color:re.secondary},yearLabel:{color:re.secondary}},matrix:{x:Wy,y:Wy,backgroundColor:{borderColor:re.axisLine},body:{itemStyle:{borderColor:re.borderTint}}},timeAxis:Do(),logAxis:Do(),valueAxis:Do(),categoryAxis:Do(),line:{symbol:"circle"},graph:{color:re.theme},gauge:{title:{color:re.secondary},axisLine:{lineStyle:{color:[[1,re.neutral05]]}},axisLabel:{color:re.axisLabel},detail:{color:re.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:re.background}},radar:function(){var r=Do();return r.axisName={color:re.axisLabel},r.axisLine.lineStyle.color=re.neutral20,r}(),treemap:{breadcrumb:{itemStyle:{color:re.neutral20,textStyle:{color:re.secondary}},emphasis:{itemStyle:{color:re.neutral30}}}},sunburst:{itemStyle:{borderColor:re.background}},map:{itemStyle:{borderColor:re.border,areaColor:re.neutral10},label:{color:re.tertiary},emphasis:{label:{color:re.primary},itemStyle:{areaColor:re.highlight}},select:{label:{color:re.primary},itemStyle:{areaColor:re.highlight}}},geo:{itemStyle:{borderColor:re.border,areaColor:re.neutral10},emphasis:{label:{color:re.primary},itemStyle:{areaColor:re.highlight}},select:{label:{color:re.primary},itemStyle:{color:re.highlight}}}};cx.categoryAxis.splitLine.show=!1;var oO=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},a={};if(te(e)){var i=Jr(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};N(e,function(u,c){for(var f=!1,d=0;d<o.length;d++){var h=o[d],v=c.lastIndexOf(h);if(v>0&&v===c.length-h.length){var p=c.slice(0,v);p!=="data"&&(t.mainType=p,t[h.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(c)&&(n[c]=u,f=!0),f||(a[c]=u)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=t.cptQuery,c=t.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(c,i,"name")&&f(c,i,"dataIndex")&&f(c,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function f(d,h,v,p){return d[v]==null||h[p||v]===d[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),qh=["symbol","symbolSize","symbolRotate","symbolOffset"],Uy=qh.concat(["symbolKeepAspect"]),sO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<qh.length;o++){var s=qh[o],u=r.get(s);ue(u)?(i=!0,a[s]=u):n[s]=u}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(Y({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var c=je(a);function f(d,h){for(var v=r.getRawValue(h),p=r.getDataParams(h),g=0;g<c.length;g++){var y=c[g];d.setItemVisual(h,y,a[y](v,p))}}return{dataEach:i?f:null}}},lO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<Uy.length;s++){var u=Uy[s],c=o.getShallow(u,!0);c!=null&&a.setItemVisual(i,u,c)}}return{dataEach:t.hasItemOption?n:null}}};function fx(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function Zs(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function uO(r,e,t,n){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function cO(r,e){function t(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}N([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=Y({},a),process.env.NODE_ENV!=="production"&&vt(a.type,n[1]),o.dispatchAction(Y(a,{type:n[1],seriesIndex:t(i,a)}))})})}function Mi(r,e,t,n,a){var i=r+e;t.isSilent(i)||(process.env.NODE_ENV!=="production"&&an("event "+i+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,c=a.selected,f=0;f<c.length;f++)if(c[f].seriesIndex===s){var d=o.getData(),h=ni(d,a.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:Z(h)?d.getName(h[0]):d.getName(h),selected:te(u)?u:Y({},u)})}}))}function fO(r,e,t){r.on("selectchanged",function(n){var a=t.getModel();n.isFromClick?(Mi("map","selectchanged",e,a,n),Mi("pie","selectchanged",e,a,n)):n.fromAction==="select"?(Mi("map","selected",e,a,n),Mi("pie","selected",e,a,n)):n.fromAction==="unselect"&&(Mi("map","unselected",e,a,n),Mi("pie","unselected",e,a,n))})}function Ui(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var dO=Math.round(Math.random()*9),hO=typeof Object.defineProperty=="function",vO=function(){function r(){this._id="__ec_inner_"+dO++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return hO?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}(),pO=Pe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n+i),r.lineTo(t-a,n+i),r.closePath()}}),gO=Pe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n),r.lineTo(t,n+i),r.lineTo(t-a,n),r.closePath()}}),mO=Pe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),u=n-i+o+s,c=Math.asin(s/o),f=Math.cos(c)*o,d=Math.sin(c),h=Math.cos(c),v=o*.6,p=o*.7;r.moveTo(t-f,u+s),r.arc(t,u,o,Math.PI-c,Math.PI*2+c),r.bezierCurveTo(t+f-d*v,u+s+h*v,t,n-p,t,n),r.bezierCurveTo(t,n-p,t-f+d*v,u+s+h*v,t-f,u+s),r.closePath()}}),yO=Pe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+t),r.lineTo(a,i+t/4*3),r.lineTo(a-o,i+t),r.lineTo(a,i),r.closePath()}}),bO={line:Lr,rect:Oe,roundRect:Oe,square:Oe,circle:$s,diamond:gO,pin:mO,arrow:yO,triangle:pO},_O={line:function(r,e,t,n,a){a.x1=r,a.y1=e+n/2,a.x2=r+t,a.y2=e+n/2},rect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n},roundRect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n,a.r=Math.min(t,n)/4},square:function(r,e,t,n,a){var i=Math.min(t,n);a.x=r,a.y=e,a.width=i,a.height=i},circle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.r=Math.min(t,n)/2},diamond:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n},pin:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},arrow:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},triangle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n}},Yu={};N(bO,function(r,e){Yu[e]=new r});var SO=Pe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=Tu(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var a=Yu[n];a||(n="rect",a=Yu[n]),_O[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function wO(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||G.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Vt(r,e,t,n,a,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var u;return r.indexOf("image://")===0?u=nw(r.slice(8),new ye(e,t,n,a),o?"center":"cover"):r.indexOf("path://")===0?u=hp(r.slice(7),{},new ye(e,t,n,a),o?"center":"cover"):u=new SO({shape:{symbolType:r,x:e,y:t,width:n,height:a}}),u.__isEmptyBrush=s,u.setColor=wO,i&&u.setColor(i),u}function Fc(r){return Z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Hc(r,e){if(r!=null)return Z(r)||(r=[r,r]),[de(r[0],e[0])||0,de(se(r[1],r[0]),e[1])||0]}function Ua(r){return isFinite(r)}function xO(r,e,t){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,a=a*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),n=Ua(n)?n:0,a=Ua(a)?a:1,i=Ua(i)?i:0,o=Ua(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function CO(r,e,t){var n=t.width,a=t.height,i=Math.min(n,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,u=e.r==null?.5:e.r;e.global||(o=o*n+t.x,s=s*a+t.y,u=u*i),o=Ua(o)?o:.5,s=Ua(s)?s:.5,u=u>=0&&Ua(u)?u:.5;var c=r.createRadialGradient(o,s,0,o,s,u);return c}function Kh(r,e,t){for(var n=e.type==="radial"?CO(r,e,t):xO(r,e,t),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function kO(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Cl(r){return parseInt(r,10)}function kl(r,e,t){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||Cl(s[n])||Cl(r.style[n]))-(Cl(s[i])||0)-(Cl(s[o])||0)|0}function TO(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:He(r)?[r]:Z(r)?r:null}function dx(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&TO(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=X(t,function(i){return i/a}),n/=a)}return[t,n]}var DO=new ai(!0);function Zu(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function Yy(r){return typeof r=="string"&&r!=="none"}function Xu(r){var e=r.fill;return e!=null&&e!=="none"}function Zy(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function Xy(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Qh(r,e,t){var n=IS(e.image,e.__image,t);if(Tc(n)){var a=r.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)*qN),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function MO(r,e,t,n){var a,i=Zu(t),o=Xu(t),s=t.strokePercent,u=s<1,c=!e.path;(!e.silent||u)&&c&&e.createPathProxy();var f=e.path||DO,d=e.__dirty;if(!n){var h=t.fill,v=t.stroke,p=o&&!!h.colorStops,g=i&&!!v.colorStops,y=o&&!!h.image,m=i&&!!v.image,b=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(p||g)&&(x=e.getBoundingRect()),p&&(b=d?Kh(r,h,x):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?Kh(r,v,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),y&&(S=d||!e.__canvasFillPattern?Qh(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),m&&(w=d||!e.__canvasStrokePattern?Qh(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?r.fillStyle=b:y&&(S?r.fillStyle=S:o=!1),g?r.strokeStyle=_:m&&(w?r.strokeStyle=w:i=!1)}var C=e.getGlobalScale();f.setScale(C[0],C[1],e.segmentIgnoreThreshold);var k,T;r.setLineDash&&t.lineDash&&(a=dx(e),k=a[0],T=a[1]);var D=!0;(c||d&Ri)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),D=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(r,u?s:1),k&&(r.setLineDash(k),r.lineDashOffset=T),n||(t.strokeFirst?(i&&Xy(r,t),o&&Zy(r,t)):(o&&Zy(r,t),i&&Xy(r,t))),k&&r.setLineDash([])}function EO(r,e,t){var n=e.__image=IS(t.image,e.__image,e,e.onload);if(!(!n||!Tc(n))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var c=t.sx||0,f=t.sy||0;r.drawImage(n,c,f,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var c=t.sx,f=t.sy,d=o-c,h=s-f;r.drawImage(n,c,f,d,h,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function AO(r,e,t){var n,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||ia,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=dx(e),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(Zu(t)&&r.strokeText(a,t.x,t.y),Xu(t)&&r.fillText(a,t.x,t.y)):(Xu(t)&&r.fillText(a,t.x,t.y),Zu(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var jy=["shadowBlur","shadowOffsetX","shadowOffsetY"],qy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hx(r,e,t,n,a){var i=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){qt(r,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?qa.opacity:o}(n||e.blend!==t.blend)&&(i||(qt(r,a),i=!0),r.globalCompositeOperation=e.blend||qa.blend);for(var s=0;s<jy.length;s++){var u=jy[s];(n||e[u]!==t[u])&&(i||(qt(r,a),i=!0),r[u]=r.dpr*(e[u]||0))}return(n||e.shadowColor!==t.shadowColor)&&(i||(qt(r,a),i=!0),r.shadowColor=e.shadowColor||qa.shadowColor),i}function Ky(r,e,t,n,a){var i=Ts(e,a.inHover),o=n?null:t&&Ts(t,a.inHover)||{};if(i===o)return!1;var s=hx(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(qt(r,a),s=!0),Yy(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(qt(r,a),s=!0),Yy(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(qt(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var u=i.lineWidth,c=u/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==c&&(s||(qt(r,a),s=!0),r.lineWidth=c)}for(var f=0;f<qy.length;f++){var d=qy[f],h=d[0];(n||i[h]!==o[h])&&(s||(qt(r,a),s=!0),r[h]=i[h]||d[1])}return s}function NO(r,e,t,n,a){return hx(r,Ts(e,a.inHover),t&&Ts(t,a.inHover),n,a)}function vx(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function IO(r,e,t){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),vx(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=n}function BO(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var Qy=1,Jy=2,e0=3,t0=4;function LO(r){var e=Xu(r),t=Zu(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function qt(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function Ts(r,e){return e&&r.__hoverStyle||r.style}function px(r,e){Ya(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ya(r,e,t,n){var a=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~tr,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,u=!1;if((!o||kO(i,o))&&(o&&o.length&&(qt(r,t),r.restore(),u=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(qt(r,t),r.save(),IO(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var c=t.prevEl;c||(u=s=!0);var f=e instanceof Pe&&e.autoBatch&&LO(e.style);s||BO(a,c.transform)?(qt(r,t),vx(r,e)):f||qt(r,t);var d=Ts(e,t.inHover);e instanceof Pe?(t.lastDrawType!==Qy&&(u=!0,t.lastDrawType=Qy),Ky(r,e,c,u,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),MO(r,e,d,f),f&&(t.batchFill=d.fill||"",t.batchStroke=d.stroke||"")):e instanceof Nu?(t.lastDrawType!==e0&&(u=!0,t.lastDrawType=e0),Ky(r,e,c,u,t),AO(r,e,d)):e instanceof _r?(t.lastDrawType!==Jy&&(u=!0,t.lastDrawType=Jy),NO(r,e,c,u,t),EO(r,e,d)):e.getTemporalDisplayables&&(t.lastDrawType!==t0&&(u=!0,t.lastDrawType=t0),VO(r,e,t)),f&&n&&qt(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function VO(r,e,t){var n=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Ya(r,u,i,o===s-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(),Ya(r,u,i,c===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),i.prevEl=u}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Qf=new vO,r0=new ji(100),n0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Jh(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";r.dirty&&Qf.delete(r);var i=Qf.get(r);if(i)return i;var o=Me(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/t,Qf.set(r,s),r.dirty=!1,s;function u(c){for(var f=[t],d=!0,h=0;h<n0.length;++h){var v=o[n0[h]];if(v!=null&&!Z(v)&&!te(v)&&!He(v)&&typeof v!="boolean"){d=!1;break}f.push(v)}var p;if(d){p=f.join(",")+(a?"-svg":"");var g=r0.get(p);g&&(a?c.svgElement=g:c.image=g)}var y=mx(o.dashArrayX),m=PO(o.dashArrayY),b=gx(o.symbol),_=RO(y),S=yx(m),w=!a&&Nr.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=T(),k;w&&(w.width=C.width*t,w.height=C.height*t,k=w.getContext("2d")),D(),d&&r0.put(p,w||x),c.image=w,c.svgElement=x,c.svgWidth=C.width,c.svgHeight=C.height;function T(){for(var M=1,A=0,E=_.length;A<E;++A)M=pm(M,_[A]);for(var I=1,A=0,E=b.length;A<E;++A)I=pm(I,b[A].length);M*=I;var B=S*_.length*b.length;if(process.env.NODE_ENV!=="production"){var R=function(P){console.warn("Calculated decal size is greater than "+P+" due to decal option settings so "+P+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+P+" to be larger to avoid incontinuity.")};M>o.maxTileWidth&&R("maxTileWidth"),B>o.maxTileHeight&&R("maxTileHeight")}return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}function D(){k&&(k.clearRect(0,0,w.width,w.height),o.backgroundColor&&(k.fillStyle=o.backgroundColor,k.fillRect(0,0,w.width,w.height)));for(var M=0,A=0;A<m.length;++A)M+=m[A];if(M<=0)return;for(var E=-S,I=0,B=0,R=0;E<C.height;){if(I%2===0){for(var P=B/2%b.length,L=0,V=0,z=0;L<C.width*2;){for(var O=0,A=0;A<y[R].length;++A)O+=y[R][A];if(O<=0)break;if(V%2===0){var W=(1-o.symbolSize)*.5,j=L+y[R][V]*W,ne=E+m[I]*W,q=y[R][V]*o.symbolSize,Q=m[I]*o.symbolSize,Be=z/2%b[P].length;ae(j,ne,q,Q,b[P][Be])}L+=y[R][V],++z,++V,V===y[R].length&&(V=0)}++R,R===y.length&&(R=0)}E+=m[I],++B,++I,I===m.length&&(I=0)}function ae(le,Se,J,ie,$e){var Ae=a?1:t,xe=Vt($e,le*Ae,Se*Ae,J*Ae,ie*Ae,o.color,o.symbolKeepAspect);if(a){var Fe=n.painter.renderOneToVNode(xe);Fe&&x.children.push(Fe)}else px(k,xe)}}}}function gx(r){if(!r||r.length===0)return[["rect"]];if(te(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!te(r[t])){e=!1;break}if(e)return gx([r]);for(var n=[],t=0;t<r.length;++t)te(r[t])?n.push([r[t]]):n.push(r[t]);return n}function mx(r){if(!r||r.length===0)return[[0,0]];if(He(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!He(r[n])){t=!1;break}if(t)return mx([r]);for(var a=[],n=0;n<r.length;++n)if(He(r[n])){var e=Math.ceil(r[n]);a.push([e,e])}else{var e=X(r[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function PO(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(He(r)){var e=Math.ceil(r);return[e,e]}var t=X(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function RO(r){return X(r,function(e){return yx(e)})}function yx(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function OO(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=Jh(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Jh(a,e)}}})}var Cr=new br,ju={};function zO(r,e){process.env.NODE_ENV!=="production"&&ju[r]&&Ye("Already has an implementation of "+r+"."),ju[r]=e}function $O(r){return process.env.NODE_ENV!=="production"&&(ju[r]||Ye("Implementation of "+r+" doesn't exists.")),ju[r]}var FO=1,HO=800,GO=900,WO=1e3,UO=2e3,YO=5e3,bx=1e3,ZO=1100,Vp=2e3,_x=3e3,XO=4e3,Gc=4500,jO=4600,qO=5e3,KO=6e3,Sx=7e3,QO={PROCESSOR:{FILTER:WO,SERIES_FILTER:HO,STATISTIC:YO},VISUAL:{LAYOUT:bx,PROGRESSIVE_LAYOUT:ZO,GLOBAL:Vp,CHART:_x,POST_CHART_LAYOUT:jO,COMPONENT:XO,BRUSH:qO,CHART_ITEM:Gc,ARIA:KO,DECAL:Sx}},st="__flagInMainProcess",Tl="__mainProcessVersion",bt="__pendingUpdate",Jf="__needsUpdateStatus",a0=/^[a-zA-Z0-9_]+$/,ed="__connectUpdateStatus",i0=0,JO=1,ez=2;function xx(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){Wt(this.id);return}return kx(this,r,e)}}function Cx(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return kx(this,r,e)}}function kx(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),br.prototype[e].apply(r,t)}var Tx=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(br),Dx=Tx.prototype;Dx.on=Cx("on");Dx.off=Cx("off");var Va,td,Dl,hn,Ml,rd,nd,Ei,Ai,o0,s0,ad,l0,El,u0,Mx,ur,c0,Ni,Ex=function(r){H(e,r);function e(t,n,a){var i=r.call(this,new oO)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=t;var o="canvas",s="auto",u=!1;if(i[Tl]=1,process.env.NODE_ENV!=="production"){var c=we.hasGlobalWindow?window:global;c&&(o=se(c.__ECHARTS__DEFAULT__RENDERER__,o),s=se(c.__ECHARTS__DEFAULT__COARSE_POINTER,s),u=se(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,u))}a.ssr;var f=i._zr=fm(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:se(a.useDirtyRect,u),useCoarsePointer:se(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=zc(oe(f.flush,f),17),i._updateTheme(n),i._locale=QV(a.locale||gw),i._coordSysMgr=new Pc;var d=i._api=u0(i);function h(v,p){return v.__prio-p.__prio}return Jl(Qu,h),Jl(tv,h),i._scheduler=new ox(i,d,tv,Qu),i._messageCenter=new Tx,i._initEvents(),i.resize=oe(i.resize,i),f.animation.on("frame",i._onframe,i),o0(f,i),s0(f,i),gu(i),i}return e.prototype._onframe=function(){if(!this._disposed){c0(this);var t=this._scheduler;if(this[bt]){var n=this[bt].silent;this[st]=!0,Ni(this);try{Va(this),hn.update.call(this,null,this[bt].updateParams)}catch(u){throw this[st]=!1,this[bt]=null,u}this._zr.flush(),this[st]=!1,this[bt]=null,Ei.call(this,n),Ai.call(this,n)}else if(t.unfinished){var a=FO,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),rd(this,i),t.performVisualTasks(i),El(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&t.unfinished);t.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(t,n,a){if(this[st]){process.env.NODE_ENV!=="production"&&Ye("`setOption` should not be called during main process.");return}if(this._disposed){Wt(this.id);return}var i,o,s;if(fe(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[st]=!0,Ni(this),!this._model||n){var u=new HP(this._api),c=this._theme,f=this._model=new Np;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,c,this._locale,u)}this._model.setOption(t,{replaceMerge:o},rv);var d={seriesTransition:s,optionChanged:!0};if(a)this[bt]={silent:i,updateParams:d},this[st]=!1,this.getZr().wakeUp();else{try{Va(this),hn.update.call(this,null,d)}catch(h){throw this[bt]=null,this[st]=!1,h}this._ssr||this._zr.flush(),this[bt]=null,this[st]=!1,Ei.call(this,i),Ai.call(this,i)}},e.prototype.setTheme=function(t,n){if(this[st]){process.env.NODE_ENV!=="production"&&Ye("`setTheme` should not be called during main process.");return}if(this._disposed){Wt(this.id);return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[bt]&&(i==null&&(i=this[bt].silent),o=this[bt].updateParams,this[bt]=null),this[st]=!0,Ni(this);try{this._updateTheme(t),a.setTheme(this._theme),Va(this),hn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[st]=!1,s}this[st]=!1,Ei.call(this,i),Ai.call(this,i)}},e.prototype._updateTheme=function(t){te(t)&&(t=Ax[t]),t&&(t=he(t),t&&Ow(t,!0),this._theme=t)},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||we.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return process.env.NODE_ENV!=="production"&&vt("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};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:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};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:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return N(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){Wt(this.id);return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;N(n,function(u){a.eachComponent({mainType:u},function(c){var f=o._componentsMap[c.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return N(i,function(u){u.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){Wt(this.id);return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(f0[a]){var u=s,c=s,f=-s,d=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();N(ps,function(_,S){if(_.group===a){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(he(t)),x=_.getDom().getBoundingClientRect();u=i(x.left,u),c=i(x.top,c),f=o(x.right,f),d=o(x.bottom,d),h.push({dom:w,left:x.left,top:x.top})}}),u*=v,c*=v,f*=v,d*=v;var p=f-u,g=d-c,y=Nr.createCanvas(),m=fm(y,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:g}),n){var b="";return N(h,function(_){var S=_.left-u,w=_.top-c;b+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return t.connectedBackgroundColor&&m.add(new Oe({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),N(h,function(_){var S=new _r({style:{x:_.left*v-u,y:_.top*v-c,image:_.dom}});m.add(S)}),m.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,a){return Ml(this,"convertToPixel",t,n,a)},e.prototype.convertToLayout=function(t,n,a){return Ml(this,"convertToLayout",t,n,a)},e.prototype.convertFromPixel=function(t,n,a){return Ml(this,"convertFromPixel",t,n,a)},e.prototype.containPixel=function(t,n){if(this._disposed){Wt(this.id);return}var a=this._model,i,o=ls(a,t);return N(o,function(s,u){u.indexOf("Models")>=0&&N(s,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"&&St(u+": "+(d?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&St(u+": containPoint is not supported")},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=ls(a,t,{defaultMainType:"series"}),o=i.seriesModel;process.env.NODE_ENV!=="production"&&(o||St("There is no specified series model"));var s=o.getData(),u=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return u!=null?fx(s,u,n):Zs(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;N(tz,function(a){var i=function(o){var s=t.getModel(),u=o.target,c,f=a==="globalout";if(f?c={}:u&&Ui(u,function(g){var y=Te(g);if(y&&y.dataIndex!=null){var m=y.dataModel||s.getSeriesByIndex(y.seriesIndex);return c=m&&m.getDataParams(y.dataIndex,y.dataType,u)||{},!0}else if(y.eventData)return c=Y({},y.eventData),!0},!0),c){var d=c.componentType,h=c.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",h=c.seriesIndex);var v=d&&h!=null&&s.getComponent(d,h),p=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];process.env.NODE_ENV!=="production"&&!f&&!(v&&p)&&St("model or view can not be found by params"),c.event=o,c.type=a,t._$eventProcessor.eventInfo={targetEl:u,packedEvent:c,model:v,view:p},t.trigger(a,c)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)});var n=this._messageCenter;N(ev,function(a,i){n.on(i,function(o){t.trigger(i,o)})}),fO(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Wt(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Wt(this.id);return}this._disposed=!0;var t=this.getDom();t&&MS(this.getDom(),Rp,"");var n=this,a=n._api,i=n._model;N(n._componentsViews,function(o){o.dispose(i,a)}),N(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete ps[n.id]},e.prototype.resize=function(t){if(this[st]){process.env.NODE_ENV!=="production"&&Ye("`resize` should not be called during main process.");return}if(this._disposed){Wt(this.id);return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[bt]&&(i==null&&(i=this[bt].silent),a=!0,this[bt]=null),this[st]=!0,Ni(this);try{a&&Va(this),hn.update.call(this,{type:"resize",animation:Y({duration:0},t&&t.animation)})}catch(o){throw this[st]=!1,o}this[st]=!1,Ei.call(this,i),Ai.call(this,i)}},e.prototype.showLoading=function(t,n){if(this._disposed){Wt(this.id);return}if(fe(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!nv[t]){process.env.NODE_ENV!=="production"&&St("Loading effects "+t+" not exists.");return}var a=nv[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},e.prototype.hideLoading=function(){if(this._disposed){Wt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=Y({},t);return n.type=Ku[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){Wt(this.id);return}if(fe(n)||(n={silent:!!n}),!!qu[t.type]&&this._model){if(this[st]){this._pendingActions.push(t);return}var a=n.silent;nd.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&we.browser.weChat&&this._throttledZrFlush(),Ei.call(this,a),Ai.call(this,a)}},e.prototype.updateLabelLayout=function(){Cr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){Wt(this.id);return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&ce(t.data&&i),i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Va=function(d){var h=d._scheduler;h.restorePipelines(d._model),h.prepareStageTasks(),td(d,!0),td(d,!1),h.plan()},td=function(d,h){for(var v=d._model,p=d._scheduler,g=h?d._componentsViews:d._chartsViews,y=h?d._componentsMap:d._chartsMap,m=d._zr,b=d._api,_=0;_<g.length;_++)g[_].__alive=!1;h?v.eachComponent(function(x,C){x!=="series"&&S(C)}):v.eachSeries(S);function S(x){var C=x.__requireNewView;x.__requireNewView=!1;var k="_ec_"+x.id+"_"+x.type,T=!C&&y[k];if(!T){var D=Jr(x.type),M=h?Et.getClass(D.main,D.sub):yt.getClass(D.sub);process.env.NODE_ENV!=="production"&&ce(M,D.sub+" does not exist."),T=new M,T.init(v,b),y[k]=T,g.push(T),m.add(T.group)}x.__viewId=T.__id=k,T.__alive=!0,T.__model=x,T.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&p.prepareView(T,x,v,b)}for(var _=0;_<g.length;){var w=g[_];w.__alive?_++:(!h&&w.renderTask.dispose(),m.remove(w.group),w.dispose(v,b),g.splice(_,1),y[w.__id]===w&&delete y[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Dl=function(d,h,v,p,g){var y=d._model;if(y.setUpdatePayload(v),!p){N([].concat(d._componentsViews).concat(d._chartsViews),w);return}var m={};m[p+"Id"]=v[p+"Id"],m[p+"Index"]=v[p+"Index"],m[p+"Name"]=v[p+"Name"];var b={mainType:p,query:m};g&&(b.subType=g);var _=v.excludeSeriesId,S;_!=null&&(S=_e(),N(gt(_),function(x){var C=Kt(x,null);C!=null&&S.set(C,!0)})),y&&y.eachComponent(b,function(x){var C=S&&S.get(x.id)!=null;if(!C)if(Zm(v))if(x instanceof wt)v.type===Ka&&!v.notBlur&&!x.get(["emphasis","disabled"])&&HL(x,v,d._api);else{var k=up(x.mainType,x.componentIndex,v.name,d._api),T=k.focusSelf,D=k.dispatchers;v.type===Ka&&T&&!v.notBlur&&Ah(x.mainType,x.componentIndex,d._api),D&&N(D,function(M){v.type===Ka?ii(M):oi(M)})}else Ih(v)&&x instanceof wt&&(UL(x,v,d._api),Um(x),ur(d))},d),y&&y.eachComponent(b,function(x){var C=S&&S.get(x.id)!=null;C||w(d[p==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},d);function w(x){x&&x.__alive&&x[h]&&x[h](x.__model,y,d._api,v)}},hn={prepareAndUpdate:function(d){Va(this),hn.update.call(this,d,d&&{optionChanged:d.newOption!=null})},update:function(d,h){var v=this._model,p=this._api,g=this._zr,y=this._coordSysMgr,m=this._scheduler;if(v){v.setUpdatePayload(d),m.restoreData(v,d),m.performSeriesTasks(v),y.create(v,p),m.performDataProcessorTasks(v,d),rd(this,v),y.update(v,p),n(v),m.performVisualTasks(v,d);var b=v.get("backgroundColor")||"transparent";g.setBackgroundColor(b);var _=v.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),ad(this,v,p,d,h),Cr.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(m,b){if(m!=="series"){var _=h.getViewOfComponentModel(b);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(b,v,p,d);S&&S.update&&g.push(_)}else g.push(_)}});var y=_e();v.eachSeries(function(m){var b=h._chartsMap[m.__viewId];if(b.updateTransform){var _=b.updateTransform(m,v,p,d);_&&_.update&&y.set(m.uid,1)}else y.set(m.uid,1)}),n(v),this._scheduler.performVisualTasks(v,d,{setDirty:!0,dirtyMap:y}),El(this,v,p,d,{},y),Cr.trigger("afterupdate",v,p)}},updateView:function(d){var h=this._model;h&&(h.setUpdatePayload(d),yt.markUpdateMethod(d,"updateView"),n(h),this._scheduler.performVisualTasks(h,d,{setDirty:!0}),ad(this,h,this._api,d,{}),Cr.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()}),yt.markUpdateMethod(d,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,d,{visualType:"visual",setDirty:!0}),v.eachComponent(function(p,g){if(p!=="series"){var y=h.getViewOfComponentModel(g);y&&y.__alive&&y.updateVisual(g,v,h._api,d)}}),v.eachSeries(function(p){var g=h._chartsMap[p.__viewId];g.updateVisual(p,v,h._api,d)}),Cr.trigger("afterupdate",v,this._api))},updateLayout:function(d){hn.update.call(this,d)}};function t(d,h,v,p,g){if(d._disposed){Wt(d.id);return}for(var y=d._model,m=d._coordSysMgr.getCoordinateSystems(),b,_=ls(y,v),S=0;S<m.length;S++){var w=m[S];if(w[h]&&(b=w[h](y,_,p,g))!=null)return b}process.env.NODE_ENV!=="production"&&St("No coordinate system that supports "+h+" found by the given finder.")}Ml=t,rd=function(d,h){var v=d._chartsMap,p=d._scheduler;h.eachSeries(function(g){p.updateStreamModes(g,v[g.__viewId])})},nd=function(d,h){var v=this,p=this.getModel(),g=d.type,y=d.escapeConnect,m=qu[g],b=(m.update||"update").split(":"),_=b.pop(),S=b[0]!=null&&Jr(b[0]);this[st]=!0,Ni(this);var w=[d],x=!1;d.batch&&(x=!0,w=X(d.batch,function(R){return R=Me(Y({},R),d),R.batch=null,R}));var C=[],k,T=[],D=m.nonRefinedEventType,M=Ih(d),A=Zm(d);if(A&&jS(this._api),N(w,function(R){var P=m.action(R,p,v._api);if(m.refineEvent?T.push(P):k=P,k=k||Y({},R),k.type=D,C.push(k),A){var L=ep(d),V=L.queryOptionMap,z=L.mainTypeSpecified,O=z?V.keys()[0]:"series";Dl(v,_,R,O),ur(v)}else M?(Dl(v,_,R,"series"),ur(v)):S&&Dl(v,_,R,S.main,S.sub)}),_!=="none"&&!A&&!M&&!S)try{this[bt]?(Va(this),hn.update.call(this,d),this[bt]=null):hn[_].call(this,d)}catch(R){throw this[st]=!1,R}if(x?k={type:D,escapeConnect:y,batch:C}:k=C[0],this[st]=!1,!h){var E=void 0;if(m.refineEvent){var I=m.refineEvent(T,d,p,this._api).eventContent;ce(fe(I)),E=Me({type:m.refinedEventType},I),E.fromAction=d.type,E.fromActionPayload=d,E.escapeConnect=!0}var B=this._messageCenter;B.trigger(k.type,k),E&&B.trigger(E.type,E)}},Ei=function(d){for(var h=this._pendingActions;h.length;){var v=h.shift();nd.call(this,v,d)}},Ai=function(d){!d&&this.trigger("updated")},o0=function(d,h){d.on("rendered",function(v){h.trigger("rendered",v),d.animation.isFinished()&&!h[bt]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},s0=function(d,h){d.on("mouseover",function(v){var p=v.target,g=Ui(p,sa);g&&(GL(g,v,h._api),ur(h))}).on("mouseout",function(v){var p=v.target,g=Ui(p,sa);g&&(WL(g,v,h._api),ur(h))}).on("click",function(v){var p=v.target,g=Ui(p,function(b){return Te(b).dataIndex!=null},!0);if(g){var y=g.selected?"unselect":"select",m=Te(g);h._api.dispatchAction({type:y,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(d){d.clearColorPalette(),d.eachSeries(function(h){h.clearColorPalette()})}function a(d){var h=[],v=[],p=!1;if(d.eachComponent(function(b,_){var S=_.get("zlevel")||0,w=_.get("z")||0,x=_.getZLevelKey();p=p||!!x,(b==="series"?v:h).push({zlevel:S,z:w,idx:_.componentIndex,type:b,key:x})}),p){var g=h.concat(v),y,m;Jl(g,function(b,_){return b.zlevel===_.zlevel?b.z-_.z:b.zlevel-_.zlevel}),N(g,function(b){var _=d.getComponent(b.type,b.idx),S=b.zlevel,w=b.key;y!=null&&(S=Math.max(y,S)),w?(S===y&&w!==m&&S++,m=w):m&&(S===y&&S++,m=""),y=S,_.setZLevel(S)})}}ad=function(d,h,v,p,g){a(h),l0(d,h,v,p,g),N(d._chartsViews,function(y){y.__alive=!1}),El(d,h,v,p,g),N(d._chartsViews,function(y){y.__alive||y.remove(h,v)})},l0=function(d,h,v,p,g,y){N(y||d._componentsViews,function(m){var b=m.__model;c(b,m),m.render(b,h,v,p),u(b,m),f(b,m)})},El=function(d,h,v,p,g,y){var m=d._scheduler;g=Y(g||{},{updatedSeries:h.getSeries()}),Cr.trigger("series:beforeupdate",h,v,g);var b=!1;h.eachSeries(function(_){var S=d._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;m.updatePayload(w,p),c(_,S),y&&y.get(_.uid)&&w.dirty(),w.perform(m.getPerformArgs(w))&&(b=!0),S.group.silent=!!_.get("silent"),s(_,S),Um(_)}),m.unfinished=b||m.unfinished,Cr.trigger("series:layoutlabels",h,v,g),Cr.trigger("series:transition",h,v,g),h.eachSeries(function(_){var S=d._chartsMap[_.__viewId];u(_,S),f(_,S)}),o(d,h),Cr.trigger("series:afterupdate",h,v,g)},ur=function(d){d[Jf]=!0,d.getZr().wakeUp()},Ni=function(d){d[Tl]=(d[Tl]+1)%1e3},c0=function(d){d[Jf]&&(d.getZr().storage.traverse(function(h){cs(h)||i(h)}),d[Jf]=!1)};function i(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===Mc&&d.states.emphasis?h.push("emphasis"):d.hoverState===Os&&d.states.blur&&h.push("blur"),d.useStates(h)}function o(d,h){var v=d._zr,p=v.storage,g=0;p.traverse(function(y){y.isGroup||g++}),g>h.get("hoverLayerThreshold")&&!we.node&&!we.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=d._chartsMap[y.__viewId];m.__alive&&m.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 u(d,h){if(!d.preventAutoZ){var v=to(d);h.eachRendered(function(p){return gp(p,v.z,v.zlevel),!0})}}function c(d,h){h.eachRendered(function(v){if(!cs(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"),y=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(cs(m))return;if(m instanceof Pe&&qL(m),m.__dirty){var b=m.prevStates;b&&m.useStates(b)}if(p){m.stateTransition=y;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=y),S&&(S.stateTransition=y)}m.__dirty&&i(m)}})}u0=function(d){return new(function(h){H(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){ii(p,g),ur(d)},v.prototype.leaveEmphasis=function(p,g){oi(p,g),ur(d)},v.prototype.enterBlur=function(p){US(p),ur(d)},v.prototype.leaveBlur=function(p){lp(p),ur(d)},v.prototype.enterSelect=function(p){YS(p),ur(d)},v.prototype.leaveSelect=function(p){ZS(p),ur(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.prototype.getMainProcessVersion=function(){return d[Tl]},v}(Pw))(d)},Mx=function(d){function h(v,p){for(var g=0;g<v.length;g++){var y=v[g];y[ed]=p}}N(Ku,function(v,p){d._messageCenter.on(p,function(g){if(f0[d.group]&&d[ed]!==i0){if(g&&g.escapeConnect)return;var y=d.makeActionFromEvent(g),m=[];N(ps,function(b){b!==d&&b.group===d.group&&m.push(b)}),h(m,i0),N(m,function(b){b[ed]!==JO&&b.dispatchAction(y)}),h(m,ez)}})})}}(),e}(br),Pp=Ex.prototype;Pp.on=xx("on");Pp.off=xx("off");Pp.one=function(r,e,t){var n=this;an("ECharts#one is deprecated.");function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(r,a)}this.on.call(this,r,a,t)};var tz=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Wt(r){process.env.NODE_ENV!=="production"&&St("Instance "+r+" has been disposed")}var qu={},Ku={},ev={},tv=[],rv=[],Qu=[],Ax={},nv={},ps={},f0={},rz=+new Date-0,Rp="_echarts_instance_";function nz(r,e,t){var n=!(t&&t.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Initialize failed: invalid dom.");var a=az(r);if(a)return process.env.NODE_ENV!=="production"&&St("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&ri(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!t||t.width==null)||!r.clientHeight&&(!t||t.height==null))&&St("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 Ex(r,e,t);return i.id="ec_"+rz++,ps[i.id]=i,n&&MS(r,Rp,i.id),Mx(i),Cr.trigger("afterinit",i),i}function az(r){return ps[LB(r,Rp)]}function Nx(r,e){Ax[r]=e}function Ix(r){De(rv,r)<0&&rv.push(r)}function Bx(r,e){zp(tv,r,e,UO)}function iz(r){Op("afterinit",r)}function oz(r){Op("afterupdate",r)}function Op(r,e){Cr.on(r,e)}function un(r,e,t){var n,a,i,o,s;ue(e)&&(t=e,e=""),fe(r)?(n=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(n=r,a=e);function u(f){return f.toLowerCase()}a=u(a||n);var c=i?u(n):a;qu[n]||(ce(a0.test(n)&&a0.test(a)),i&&ce(a!==n),qu[n]={actionType:n,refinedEventType:a,nonRefinedEventType:c,update:o,action:t,refineEvent:i},ev[a]=1,i&&s&&(ev[c]=1),process.env.NODE_ENV!=="production"&&Ku[c]&&Ye(c+' must not be shared; use "refineEvent" if you intend to share an event name.'),Ku[c]=n)}function sz(r,e){Pc.register(r,e)}function lz(r,e){zp(Qu,r,e,bx,"layout")}function gi(r,e){zp(Qu,r,e,_x,"visual")}var d0=[];function zp(r,e,t,n,a){if((ue(e)||fe(e))&&(t=e,e=n),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");N(r,function(o){ce(o.__raw!==t)})}if(!(De(d0,t)>=0)){d0.push(t);var i=ox.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,r.push(i)}}function Lx(r,e){nv[r]=e}function uz(r,e,t){var n=$O("registerMap");n&&n(r,e,t)}var cz=yR;gi(Vp,YR);gi(Gc,ZR);gi(Gc,XR);gi(Vp,sO);gi(Gc,lO);gi(Sx,OO);Ix(Ow);Bx(GO,eR);Lx("default",jR);un({type:Ka,event:Ka,update:Ka},Dt);un({type:au,event:au,update:au},Dt);un({type:Bu,event:op,update:Bu,action:Dt,refineEvent:$p,publishNonRefinedEvent:!0});un({type:Dh,event:op,update:Dh,action:Dt,refineEvent:$p,publishNonRefinedEvent:!0});un({type:Lu,event:op,update:Lu,action:Dt,refineEvent:$p,publishNonRefinedEvent:!0});function $p(r,e,t,n){return{eventContent:{selected:YL(t),isFromClick:e.isFromClick||!1}}}Nx("default",{});Nx("dark",cx);function Mo(r){return r==null?0:r.length||1}function h0(r){return r}var Wc=function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||h0,this._newKeyGetter=a||h0,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],u=n[s],c=Mo(u);if(c>1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else c===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var u=i[s],c=n[u],f=a[u],d=Mo(c),h=Mo(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(o,a)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a],o=Mo(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[a]=null}},r.prototype._initIndexMap=function(e,t,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!t){var u=t[s],c=Mo(u);c===0?(t[s]=o,i&&n.push(s)):c===1?t[s]=[u,o]:u.push(o)}}},r}(),fz=function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function dz(r,e){var t={},n=t.encode={},a=_e(),i=[],o=[],s={};N(r.dimensions,function(h){var v=r.getDimensionInfo(h),p=v.coordDim;if(p){process.env.NODE_ENV!=="production"&&ce(Gh.get(p)==null);var g=v.coordDimIndex;id(n,p)[g]=h,v.isExtraCoord||(a.set(p,1),hz(v.type)&&(i[0]=h),id(s,p)[g]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}Gh.each(function(y,m){var b=id(n,m),_=v.otherDims[m];_!=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)}),t.dataDimsOnCoord=u,t.dataDimIndicesOnCoord=X(u,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=c;var f=n.label;f&&f.length&&(i=f.slice());var d=n.tooltip;return d&&d.length?o=d.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,t.userOutput=new fz(s,e),t}function id(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function av(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function hz(r){return!(r==="ordinal"||r==="time")}var cu=function(){function r(e){this.otherDims={},e!=null&&Y(this,e)}return r}(),vz=Re(),pz={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Vx=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Ox(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return se(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Fw(this.source),n=!zx(e),a="",i=[],o=0,s=0;o<e;o++){var u=void 0,c=void 0,f=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===o)u=t?d.name:null,c=d.type,f=d.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(u=t?h.name:null,c=h.type)}i.push({property:u,type:c,ordinalMeta:f}),t&&u!=null&&(!d||!d.isCalculationCoord)&&(a+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),a+="$",a+=pz[c]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,p=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:p}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function Px(r){return r instanceof Vx}function Rx(r){for(var e=_e(),t=0;t<(r||[]).length;t++){var n=r[t],a=fe(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function Ox(r){var e=vz(r);return e.dimNameMap||(e.dimNameMap=Rx(r.dimensionsDefine))}function zx(r){return r>30}var Eo=fe,On=X,gz=typeof Int32Array>"u"?Array:Int32Array,mz="e\0\0",v0=-1,yz=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],bz=["_approximateExtent"],p0,Al,Ao,Ii,od,No,sd,Tn=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;Px(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},u=!1,c={},f=0;f<n.length;f++){var d=n[f],h=te(d)?new cu({name:d}):d instanceof cu?d:new cu(d),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,c[v]!=null&&(u=!0),h.createInvertedIndices&&(s[v]=[]);var g=f;He(h.storeDimIndex)&&(g=h.storeDimIndex),p.itemName===0&&(this._nameDimIdx=g),p.itemId===0&&(this._idDimIdx=g),process.env.NODE_ENV!=="production"&&ce(a||h.storeDimIndex>=0),a&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(u),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=_e();N(o,function(m){y.set(i[m].storeDimIndex,m)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(He(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Unknown dimension "+e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var a=this,i;if(e instanceof Yh&&(i=e),!i){var o=this.dimensions,s=Ip(e)||Qt(e)?new Hw(e,o.length):e;i=new Yh;var u=On(o,function(c){return{type:a._dimInfos[c].type,property:c}});i.initData(s,u,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=dz(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<i;s++){var u=s-a;this._nameList[s]=t[u],o&&sd(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var a=this._dimInfos[t[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==kn&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,u=s===or;if(u&&!a.pure)for(var c=[],f=e;f<t;f++){var d=a.getItem(f,c);if(!this.hasItemOption&&_B(d)&&(this.hasItemOption=!0),d){var h=d.name;i[f]==null&&h!=null&&(i[f]=Kt(h,null));var v=d.id;o[f]==null&&v!=null&&(o[f]=Kt(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)sd(this,f);p0(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Eo(e)?Y(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Ao(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},r.prototype.getId=function(e){return Al(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,a=this._store;return Z(e)?a.getValues(On(e,function(i){return n._getStoreDimIndex(i)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,a=t.length;n<a;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var a=n&&n[t];return a==null||isNaN(a)?v0:a},r.prototype.each=function(e,t,n){ue(e)&&(n=t,t=e,e=[]);var a=n||this,i=On(Ii(e),this._getStoreDimIndex,this);this._store.each(i,a?oe(t,a):t)},r.prototype.filterSelf=function(e,t,n){ue(e)&&(n=t,t=e,e=[]);var a=n||this,i=On(Ii(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?oe(t,a):t),this},r.prototype.selectRange=function(e){var t=this,n={},a=je(e);return N(a,function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){ue(e)&&(n=t,t=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n),a},r.prototype.map=function(e,t,n,a){var i=n||a||this,o=On(Ii(e),this._getStoreDimIndex,this),s=No(this);return s._store=this._store.map(o,i?oe(t,i):t),s},r.prototype.modify=function(e,t,n,a){var i=this,o=n||a||this;process.env.NODE_ENV!=="production"&&N(Ii(e),function(u){var c=i.getDimensionInfo(u);c.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=On(Ii(e),this._getStoreDimIndex,this);this._store.modify(s,o?oe(t,o):t)},r.prototype.downSample=function(e,t,n,a){var i=No(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,a),i},r.prototype.minmaxDownSample=function(e,t){var n=No(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=No(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Ue(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Wc(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Al(e,n)},function(n){return Al(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Eo(e)?Y(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],a=n&&n[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),Z(i)?i=i.slice():Eo(i)&&(i=Y({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Eo(t)?Y(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Eo(e)?Y(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?Y(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Th(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){N(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:On(this.dimensions,this._getDimInfo,this),this.hostModel)),od(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];ue(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(Uv(arguments)))})},r.internalField=function(){p0=function(e){var t=e._invertedIndicesMap;N(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new gz(o.categories.length);for(var u=0;u<n.length;u++)n[u]=v0;for(var u=0;u<s.count();u++)n[s.get(i.storeDimIndex,u)]=u}})},Ao=function(e,t,n){return Kt(e._getCategory(t,n),null)},Al=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Ao(e,e._idDimIdx,t)),n==null&&(n=mz+t),n},Ii=function(e){return Z(e)||(e=e!=null?[e]:[]),e},No=function(e){var t=new r(e._schema?e._schema:On(e.dimensions,e._getDimInfo,e),e.hostModel);return od(t,e),t},od=function(e,t){N(yz.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,N(bz,function(n){e[n]=he(t[n])}),e._calculationInfo=Y({},t._calculationInfo)},sd=function(e,t){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],u=a[t];if(s==null&&i!=null&&(n[t]=s=Ao(e,i,t)),u==null&&o!=null&&(a[t]=u=Ao(e,o,t)),u==null&&s!=null){var c=e._nameRepeatCount,f=c[s]=(c[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),a[t]=u}}}(),r}();function Fp(r,e){Ip(r)||(r=zw(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=_e(),i=[],o=Sz(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&zx(o),u=n===r.dimensionsDefine,c=u?Ox(r):Rx(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var d=_e(f),h=new Zw(o),v=0;v<h.length;v++)h[v]=-1;function p(T){var D=h[T];if(D<0){var M=n[T],A=fe(M)?M:{name:M},E=new cu,I=A.name;I!=null&&c.get(I)!=null&&(E.name=E.displayName=I),A.type!=null&&(E.type=A.type),A.displayName!=null&&(E.displayName=A.displayName);var B=i.length;return h[T]=B,E.storeDimIndex=T,i.push(E),E}return i[D]}if(!s)for(var v=0;v<o;v++)p(v);d.each(function(T,D){var M=gt(T).slice();if(M.length===1&&!te(M[0])&&M[0]<0){d.set(D,!1);return}var A=d.set(D,[]);N(M,function(E,I){var B=te(E)?c.get(E):E;B!=null&&B<o&&(A[I]=B,y(p(B),D,I))})});var g=0;N(t,function(T){var D,M,A,E;if(te(T))D=T,E={};else{E=T,D=E.name;var I=E.ordinalMeta;E.ordinalMeta=null,E=Y({},E),E.ordinalMeta=I,M=E.dimsDef,A=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var B=d.get(D);if(B!==!1){if(B=gt(B),!B.length)for(var R=0;R<(M&&M.length||1);R++){for(;g<o&&p(g).coordDim!=null;)g++;g<o&&B.push(g++)}N(B,function(P,L){var V=p(P);if(u&&E.type!=null&&(V.type=E.type),y(Me(V,E),D,L),V.name==null&&M){var z=M[L];!fe(z)&&(z={name:z}),V.name=V.displayName=z.name,V.defaultTooltip=z.defaultTooltip}A&&Me(V.otherDims,A)})}});function y(T,D,M){Gh.get(D)!=null?T.otherDims[D]=M:(T.coordDim=D,T.coordDimIndex=M,a.set(D,!0))}var m=e.generateCoord,b=e.generateCoordCount,_=b!=null;b=m?b||1:0;var S=m||"value";function w(T){T.name==null&&(T.name=T.coordDim)}if(s)N(i,function(T){w(T)}),i.sort(function(T,D){return T.storeDimIndex-D.storeDimIndex});else for(var x=0;x<o;x++){var C=p(x),k=C.coordDim;k==null&&(C.coordDim=wz(S,a,_),C.coordDimIndex=0,(!m||b<=0)&&(C.isExtraCoord=!0),b--),w(C),C.type==null&&(Bw(r,x)===Ct.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return _z(i),new Vx({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function _z(r){for(var e=_e(),t=0;t<r.length;t++){var n=r[t],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function Sz(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return N(e,function(i){var o;fe(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function wz(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var xz=function(){function r(e){this.coordSysDims=[],this.axisMap=_e(),this.categoryAxisMap=_e(),this.coordSysName=e}return r}();function Cz(r){var e=r.get("coordinateSystem"),t=new xz(e),n=kz[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var kz={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",Bt).models[0],i=r.getReferringComponents("yAxis",Bt).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+rr(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+rr(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bi(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),Bi(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",Bt).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],t.set("single",a),Bi(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",Bt).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bi(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),Bi(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();N(i.parallelAxisIndex,function(s,u){var c=a.getComponent("parallelAxis",s),f=o[u];t.set(f,c),Bi(c)&&(n.set(f,c),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=u))})},matrix:function(r,e,t,n){var a=r.getReferringComponents("matrix",Bt).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("matrix coordinate system should be specified.");e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",i),t.set("y",o),n.set("x",i),n.set("y",o)}};function Bi(r){return r.get("type")==="category"}function Tz(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;Dz(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var u=!!(r&&r.get("stack")),c,f,d,h;if(N(i,function(b,_){te(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_"+r.id,h="__\0ecstackedover_"+r.id,c&&(c.createInvertedIndices=!0);var v=f.coordDim,p=f.type,g=0;N(i,function(b){b.coordDim===v&&g++});var y={name:d,coordDim:v,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,p),m.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(y),o.appendCalculationDimension(m)):(i.push(y),i.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:c&&c.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:d}}function Dz(r){return!Px(r.schema)}function ui(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function $x(r,e){return ui(r,e)?r.getCalculationInfo("stackResultDimension"):e}function Mz(r,e){var t=r.get("coordinateSystem"),n=Pc.get(t),a;return e&&e.coordSysDims&&(a=X(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var u=s.get("type");o.type=av(u)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Ez(r,e,t){var n,a;return t&&N(r,function(i,o){var s=i.coordDim,u=t.categoryAxisMap.get(s);u&&(n==null&&(n=o),i.ordinalMeta=u.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function Xs(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===or;var o=Cz(e),s=Mz(e,o),u=t.useEncodeDefaulter,c=ue(u)?u:u?me(Iw,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!i},d=Fp(a,f),h=Ez(d.dimensions,t.createInvertedIndices,o),v=i?null:n.getSharedDataStore(d),p=Tz(e,{schema:d,store:v}),g=new Tn(d,e);g.setCalculationInfo(p);var y=h!=null&&Az(a)?function(m,b,_,S){return S===h?_:this.defaultDimValueGetter(m,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:v,null,y),g}function Az(r){if(r.sourceFormat===or){var e=Nz(r.data||[]);return!Z(Rs(e))}}function Nz(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}function Iz(r){var e=Math.pow(10,xc(Math.abs(r))),t=Math.abs(r/e);return t===0||t===1||t===2||t===3||t===5}function iv(r){return r.type==="interval"||r.type==="log"}function Bz(r,e,t,n,a){var i={},o=i.interval=_S(e/t);n!=null&&o<n&&(o=i.interval=n),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=Ds(o),u=i.niceTickExtent=[pt(Math.ceil(r[0]/o)*o,s),pt(Math.floor(r[1]/o)*o,s)];return Lz(u,r),i}function ld(r){var e=Math.pow(10,xc(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,pt(t*e)}function Ds(r){return Qr(r)+2}function g0(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function Lz(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),g0(r,0,e),g0(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Hp(r,e){return r>=e[0]&&r<=e[1]}var Vz=function(){function r(){this.normalize=m0,this.scale=y0}return r.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=oe(e.normalize,e),this.scale=oe(e.scale,e)):(this.normalize=m0,this.scale=y0)},r}();function m0(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function y0(r,e){return r*(e[1]-e[0])+e[0]}function ov(r,e,t){var n=Math.log(r);return[Math.log(t?e[0]:Math.max(0,e[0]))/n,Math.log(t?e[1]:Math.max(0,e[1]))/n]}var da=function(){function r(e){this._calculator=new Vz,this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},r.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},r.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},r.prototype.setBreaksFromOption=function(e){},r.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();kc(da);var Pz=0,sv=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Pz,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&X(n,Rz);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!te(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=_e(this.categories))},r}();function Rz(r){return fe(r)&&r.value!=null?r.value:r+""}var Fx=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new sv({})),Z(a)&&(a=new sv({categories:X(a,function(i){return fe(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:te(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Hp(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],n=this._extent,a=n[0];a<=n[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o<u;++o){var c=n[o];a[o]=c,i[c]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[f]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(da);da.registerClass(Fx);var zn=pt,ua=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.contain=function(t){return Hp(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ds(t)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=zu(),u=[];if(!n)return u;t.breakTicks;var c=1e4;a[0]<i[0]&&(t.expandToNicedExtent?u.push({value:zn(i[0]-n,o)}):u.push({value:a[0]}));for(var f=function(p,g){return Math.round((g-p)/n)},d=i[0];d<=i[1];){if(u.push({value:d}),d=zn(d+n,o),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(d,f);h>=0&&(d=zn(d+h*n,o))}if(u.length>0&&d===u[u.length-1].value)break;if(u.length>c)return[]}var v=u.length?u[u.length-1].value:i[1];return a[1]>v&&(t.expandToNicedExtent?u.push({value:zn(v+n,o)}):u.push({value:a[1]})),t.breakTicks,u},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;o<n.length;o++){var s=n[o],u=n[o-1];if(!(u.break||s.break)){for(var c=0,f=[],d=s.value-u.value,h=d/t,v=Ds(h);c<t-1;){var p=zn(u.value+(c+1)*h,v);p>i[0]&&p<i[1]&&f.push(p),c++}var g=zu();g&&g.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(y){return y},this._interval,i),a.push(f)}}return a},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,n){if(t==null)return"";var a=n&&n.precision;a==null?a=Qr(t.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=zn(t.value,a,!0);return kw(i)},e.prototype.calcNiceTicks=function(t,n,a){t=t||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=Bz(i,o,t,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);t.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._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval,s=this._intervalPrecision;t.fixMin||(n[0]=zn(Math.floor(n[0]/o)*o,s)),t.fixMax||(n[1]=zn(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(t,n){this._niceExtent=[t,n]},e.type="interval",e}(da);da.registerClass(ua);var Hx=typeof Float32Array<"u",Oz=Hx?Float32Array:Array;function en(r){return Z(r)?Hx?new Float32Array(r):r:new Oz(r)}var zz="__ec_stack_";function Gx(r){return r.get("stack")||zz+r.seriesIndex}function Gp(r){return r.dim+r.index}function Wx(r,e){var t=[];return e.eachSeriesByType(r,function(n){Yx(n)&&t.push(n)}),t}function $z(r){var e={};N(r,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,y=p.count();g<y;++g){var m=p.get(v,g);e[h]?e[h].push(m):e[h]=[m]}});var t={};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,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[n]=i}}return t}function Ux(r){var e=$z(r),t=[];return N(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var u=i.dim+"_"+i.index,c=e[u],f=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),h=Math.abs(d[1]-d[0]);s=c?f/h*c:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var p=de(n.get("barWidth"),s),g=de(n.get("barMaxWidth"),s),y=de(n.get("barMinWidth")||(Zx(n)?.5:1),s),m=n.get("barGap"),b=n.get("barCategoryGap"),_=n.get("defaultBarGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:y,barGap:m,barCategoryGap:b,defaultBarGap:_,axisKey:Gp(i),stackId:Gx(n)})}),Fz(t)}function Fz(r){var e={};N(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},u=s.stacks;e[i]=s;var c=n.stackId;u[c]||s.autoWidthCount++,u[c]=u[c]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[c].width&&(u[c].width=f,f=Math.min(s.remainedWidth,f),s.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&&(s.gap=v);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return N(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=je(i).length;s=Math.max(35-u*4,15)+"%"}var c=de(s,o),f=de(n.gap,1),d=n.remainedWidth,h=n.autoWidthCount,v=(d-c)/(h+(h-1)*f);v=Math.max(v,0),N(i,function(m){var b=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),m.width=S,d-=S+f*S,h--}else{var S=v;b&&b<S&&(S=Math.min(b,d)),_&&_>S&&(S=_),S!==v&&(m.width=S,d-=S+f*S,h--)}}),v=(d-c)/(h+(h-1)*f),v=Math.max(v,0);var p=0,g;N(i,function(m,b){m.width||(m.width=v),g=m,p+=m.width*(1+f)}),g&&(p-=g.width*f);var y=-p/2;N(i,function(m,b){t[a][b]=t[a][b]||{bandWidth:o,offset:y,width:m.width},y+=m.width*(1+f)})}),t}function Hz(r,e,t){if(r&&e){var n=r[Gp(e)];return n}}function Gz(r,e){var t=Wx(r,e),n=Ux(t);N(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),u=Gx(a),c=n[Gp(s)][u],f=c.offset,d=c.width;i.setLayout({bandWidth:c.bandWidth,offset:f,size:d})})}function Wz(r){return{seriesType:r,plan:Ys(),reset:function(e){if(Yx(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),u=e.get("showBackground",!0),c=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),d=ui(t,c)&&!!t.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=Uz(a,i),p=Zx(e),g=e.get("barMinHeight")||0,y=f&&t.getDimensionIndex(f),m=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=p&&en(w*3),C=p&&u&&en(w*3),k=p&&en(w),T=n.master.getRect(),D=h?T.width:T.height,M,A=S.getStore(),E=0;(M=_.next())!=null;){var I=A.get(d?y:o,M),B=A.get(s,M),R=v,P=void 0;d&&(P=+I-A.get(o,M));var L=void 0,V=void 0,z=void 0,O=void 0;if(h){var W=n.dataToPoint([I,B]);if(d){var j=n.dataToPoint([P,B]);R=j[0]}L=R,V=W[1]+b,z=W[0]-R,O=m,Math.abs(z)<g&&(z=(z<0?-1:1)*g)}else{var W=n.dataToPoint([B,I]);if(d){var j=n.dataToPoint([B,P]);R=j[1]}L=W[0]+b,V=R,z=m,O=W[1]-R,Math.abs(O)<g&&(O=(O<=0?-1:1)*g)}p?(x[E]=L,x[E+1]=V,x[E+2]=h?z:O,C&&(C[E]=h?T.x:L,C[E+1]=h?V:T.y,C[E+2]=D),k[M]=M):S.setItemLayout(M,{x:L,y:V,width:z,height:O}),E+=3}p&&S.setLayout({largePoints:x,largeDataIndices:k,largeBackgroundPoints:C,valueAxisHorizontal:h})}}}}}}function Yx(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Zx(r){return r.pipelineContext&&r.pipelineContext.large}function Uz(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var Yz=function(r,e,t,n){for(;t<n;){var a=t+n>>>1;r[a][1]<e?t=a+1:n=a}return t},Xx=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="time",n}return e.prototype.getLabel=function(t){var n=this.getSetting("useUTC");return Vc(t.value,uy[lP(hs(this._minLevelUnit))]||uy.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return uP(t,n,a,o,i)},e.prototype.getTicks=function(t){var n=this._interval,a=this._extent,i=[];if(!n)return i;var o=this.getSetting("useUTC"),s=$u(a[1],o);i.push({value:a[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var u=e5(this._minLevelUnit,this._approxInterval,o,a,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(u);var c=$u(a[1],o);i.push({value:a[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}}),this.getSetting("useUTC");var f=Ja.length-1,d=0;return N(i,function(h){f=Math.min(f,De(Ja,h.time.upperTimeUnit)),d=Math.max(d,h.time.level)}),i},e.prototype.calcNiceExtent=function(t){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=pr,n[1]+=pr),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]-pr}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,n,a){t=t||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/t,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var o=Nl.length,s=Math.min(Yz(Nl,this._approxInterval,0,o),o-1);this._interval=Nl[s][1],this._intervalPrecision=Ds(this._interval),this._minLevelUnit=Nl[Math.max(s-1,0)][0]},e.prototype.parse=function(t){return He(t)?t:+uo(t)},e.prototype.contain=function(t){return Hp(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(ua),Nl=[["second",bp],["minute",_p],["hour",ds],["quarter-day",ds*6],["half-day",ds*12],["day",pr*1.2],["half-week",pr*3.5],["week",pr*7],["month",pr*31],["quarter",pr*95],["half-year",ly/2],["year",ly]];function Zz(r,e,t,n){return Oh(new Date(e),r,n).getTime()===Oh(new Date(t),r,n).getTime()}function Xz(r,e){return r/=pr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function jz(r){var e=30*pr;return r/=e,r>6?6:r>3?3:r>2?2:1}function qz(r){return r/=ds,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function b0(r,e){return r/=e?_p:bp,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Kz(r){return _S(r)}function Qz(r,e,t){var n=Math.max(0,De(Ja,e)-1);return Oh(new Date(r),Ja[n],t).getTime()}function Jz(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var a=t.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function e5(r,e,t,n,a,i){var o=1e4,s=aP,u=0;function c(E,I,B,R,P,L,V){for(var z=Jz(P,E),O=I,W=new Date(O);O<B&&O<=n[1];){if(V.push({value:O}),u++>o){process.env.NODE_ENV!=="production"&&St("Exceed safe limit in time scale.");break}if(W[P](W[R]()+E),O=W.getTime(),i){var j=i.calcNiceTickMultiple(O,z);j>0&&(W[P](W[R]()+j*E),O=W.getTime())}}V.push({value:O,notAdd:!0})}function f(E,I,B){var R=[],P=!I.length;if(!Zz(hs(E),n[0],n[1],t)){P&&(I=[{value:Qz(n[0],E,t)},{value:n[1]}]);for(var L=0;L<I.length-1;L++){var V=I[L].value,z=I[L+1].value;if(V!==z){var O=void 0,W=void 0,j=void 0,ne=!1;switch(E){case"year":O=Math.max(1,Math.round(e/pr/365)),W=yw(t),j=cP(t);break;case"half-year":case"quarter":case"month":O=jz(e),W=Sp(t),j=bw(t);break;case"week":case"half-week":case"day":O=Xz(e),W=wp(t),j=_w(t),ne=!0;break;case"half-day":case"quarter-day":case"hour":O=qz(e),W=xp(t),j=Sw(t);break;case"minute":O=b0(e,!0),W=Cp(t),j=ww(t);break;case"second":O=b0(e,!1),W=kp(t),j=xw(t);break;case"millisecond":O=Kz(e),W=Tp(t),j=Cw(t);break}z>=n[0]&&V<=n[1]&&c(O,V,z,W,j,ne,R),E==="year"&&B.length>1&&L===0&&B.unshift({value:B[0].value-O})}}for(var L=0;L<R.length;L++)B.push(R[L])}}for(var d=[],h=[],v=0,p=0,g=0;g<s.length;++g){var y=hs(s[g]);if(sP(s[g])){f(s[g],d[d.length-1]||[],h);var m=s[g+1]?hs(s[g+1]):null;if(y!==m){if(h.length){p=v,h.sort(function(E,I){return E.value-I.value});for(var b=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(b.push(h[_]),S>=n[0]&&S<=n[1]&&v++)}var w=a/e;if(v>w*1.5&&p>w/1.5||(d.push(b),v>w||r===s[g]))break}h=[]}}}for(var x=et(X(d,function(E){return et(E,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(E){return E.length>0}),C=[],k=x.length-1,g=0;g<x.length;++g)for(var T=x[g],D=0;D<T.length;++D){var M=$u(T[D].value,t);C.push({value:T[D].value,time:{level:k-g,upperTimeUnit:M,lowerTimeUnit:M}})}C.sort(function(E,I){return E.value-I.value});for(var A=[],g=0;g<C.length;++g)(g===0||C[g].value!==C[g-1].value)&&A.push(C[g]);return A}da.registerClass(Xx);var lv=pt,t5=Math.floor,r5=Math.ceil,Il=Math.pow,Bl=Math.log,jx=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new ua,t}return e.prototype.getTicks=function(t){t=t||{};var n=this._extent.slice(),a=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,t),o=this.base;return this._originalScale._innerGetBreaks(),X(i,function(s){var u=s.value,c=null,f=Il(o,u);u===n[0]&&this._fixMin?c=a[0]:u===n[1]&&this._fixMax&&(c=a[1]);var d;return c!=null&&(f=ud(f,c)),{value:f,break:d}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(t,n){this._originalScale.setExtent(t,n);var a=ov(this.base,[t,n]);r.prototype.setExtent.call(this,a[0],a[1])},e.prototype.getExtent=function(){var t=this.base,n=r.prototype.getExtent.call(this);n[0]=Il(t,n[0]),n[1]=Il(t,n[1]);var a=this._originalScale.getExtent();return this._fixMin&&(n[0]=ud(n[0],a[0])),this._fixMax&&(n[1]=ud(n[1],a[1])),n},e.prototype.unionExtentFromData=function(t,n){this._originalScale.unionExtentFromData(t,n);var a=ov(this.base,t.getApproximateExtent(n),!0);this._innerUnionExtent(a)},e.prototype.calcNiceTicks=function(t){t=t||10;var n=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(!(!isFinite(a)||a<=0)){var i=mB(a),o=t/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[lv(r5(n[0]/i)*i),lv(t5(n[1]/i)*i)];this._interval=i,this._intervalPrecision=Ds(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){r.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.contain=function(t){return t=Bl(t)/Bl(this.base),r.prototype.contain.call(this,t)},e.prototype.normalize=function(t){return t=Bl(t)/Bl(this.base),r.prototype.normalize.call(this,t)},e.prototype.scale=function(t){return t=r.prototype.scale.call(this,t),Il(this.base,t)},e.prototype.setBreaksFromOption=function(t){},e.type="log",e}(ua);function ud(r,e){return lv(r,Qr(e))}da.registerClass(jx);var n5=function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,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"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;ue(o)?this._modelMinNum=Ll(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Ll(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(ue(s)?this._modelMaxNum=Ll(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Ll(e,s)),a)this._axisDataLen=t.getCategories().length;else{var u=t.get("boundaryGap"),c=Z(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=[nn(c[0],1),nn(c[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,c=s!=null,f=u!=null;s==null&&(s=e?a?0:NaN:t-i[0]*o),u==null&&(u=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var d=wn(s)||wn(u)||e&&!a;this._needCrossZero&&(s>0&&u>0&&!c&&(s=0),s<0&&u<0&&!f&&(u=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,c=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:c,maxFixed:f,isBlank:d}},r.prototype.modifyDataMinMax=function(e,t){process.env.NODE_ENV!=="production"&&ce(!this.frozen),this[i5[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=a5[e];process.env.NODE_ENV!=="production"&&ce(!this.frozen&&this[n]==null),this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),a5={min:"_determinedMin",max:"_determinedMax"},i5={min:"_dataMin",max:"_dataMax"};function qx(r,e,t){var n=r.rawExtentInfo;return n||(n=new n5(r,e,t),r.rawExtentInfo=n,n)}function Ll(r,e){return e==null?null:wn(e)?NaN:r.parse(e)}function Kx(r,e){var t=r.type,n=qx(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&t==="time"){var s=Wx("bar",o),u=!1;if(N(s,function(d){u=u||d.getBaseAxis()===e.axis}),u){var c=Ux(s),f=o5(a,i,e,c);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function o5(r,e,t,n){var a=t.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=Hz(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;N(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;N(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var c=s+u,f=e-r,d=1-(s+u)/i,h=f/d-f;return e+=h*(u/c),r-=h*(s/c),{min:r,max:e}}function _0(r,e){var t=e,n=Kx(r,t),a=n.extent,i=t.get("splitNumber");r instanceof jx&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),u=o==="interval"||o==="time";r.setBreaksFromOption(eC(t)),r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?t.get("minInterval"):null,maxInterval:u?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function s5(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Fx({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Xx({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(da.getClass(e)||ua)}}function l5(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function js(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=iP(e);return function(a,i){return r.scale.getFormattedLabel(a,i,t)}}else{if(te(e))return function(a){var i=r.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if(ue(e)){if(r.type==="category")return function(a,i){return e(Ju(r,a),a.value-r.scale.getExtent()[0],null)};var n=zu();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(Ju(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function Ju(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function Wp(r){var e=r.get("interval");return e??"auto"}function Qx(r){return r.type==="category"&&Wp(r.getLabelModel())===0}function Jx(r,e){var t={};return N(r.mapDimensionsAll(e),function(n){t[$x(r,n)]=!0}),je(t)}function u5(r,e,t){e&&N(Jx(e,t),function(n){var a=e.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}function no(r){return r==="middle"||r==="center"}function Ms(r){return r.getShallow("show")}function eC(r){var e=r.get("breaks",!0);if(e!=null){process.env.NODE_ENV!=="production"&&Ye('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}}var tC=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),S0=[],c5={registerPreprocessor:Ix,registerProcessor:Bx,registerPostInit:iz,registerPostUpdate:oz,registerUpdateLifecycle:Op,registerAction:un,registerCoordinateSystem:sz,registerLayout:lz,registerVisual:gi,registerTransform:cz,registerLoading:Lx,registerMap:uz,registerImpl:zO,PRIORITY:QO,ComponentModel:Ne,ComponentView:Et,SeriesModel:wt,ChartView:yt,registerComponentModel:function(r){Ne.registerClass(r)},registerComponentView:function(r){Et.registerClass(r)},registerSeriesModel:function(r){wt.registerClass(r)},registerChartView:function(r){yt.registerClass(r)},registerCustomSeries:function(r,e){},registerSubTypeDefaulter:function(r,e){Ne.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){fB(r,e)}};function Ht(r){if(Z(r)){N(r,function(e){Ht(e)});return}De(S0,r)>=0||(S0.push(r),ue(r)&&(r={install:r}),r.install(c5))}var f5=Re(),gs=Re(),Pr={estimate:1,determine:2};function ec(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function rC(r,e){var t=X(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function d5(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=js(r),a=r.scale.getExtent(),i=rC(r,t),o=et(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:X(o,function(s){var u={value:s};return{formattedLabel:n(u),rawLabel:r.scale.getLabel(u),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?v5(r,e):g5(r)}function h5(r,e,t){var n=r.getTickModel().get("customValues");if(n){var a=r.scale.getExtent(),i=rC(r,n);return{ticks:et(i,function(o){return o>=a[0]&&o<=a[1]})}}return r.type==="category"?p5(r,e):{ticks:X(r.scale.getTicks(t),function(o){return o.value})}}function v5(r,e){var t=r.getLabelModel(),n=nC(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function nC(r,e,t){var n=y5(r),a=Wp(e),i=t.kind===Pr.estimate;if(!i){var o=iC(n,a);if(o)return o}var s,u;ue(a)?s=lC(r,a):(u=a==="auto"?b5(r,t):a,s=sC(r,u));var c={labels:s,labelCategoryInterval:u};return i?t.out.noPxChangeTryDetermine.push(function(){return uv(n,a,c),!0}):uv(n,a,c),c}function p5(r,e){var t=m5(r),n=Wp(e),a=iC(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),ue(n))i=lC(r,n,!0);else if(n==="auto"){var s=nC(r,r.getLabelModel(),ec(Pr.determine));o=s.labelCategoryInterval,i=X(s.labels,function(u){return u.tickValue})}else o=n,i=sC(r,o,!0);return uv(t,n,{ticks:i,tickCategoryInterval:o})}function g5(r){var e=r.scale.getTicks(),t=js(r);return{labels:X(e,function(n,a){return{formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var m5=aC("axisTick"),y5=aC("axisLabel");function aC(r){return function(t){return gs(t)[r]||(gs(t)[r]={list:[]})}}function iC(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function uv(r,e,t){return r.list.push({key:e,value:t}),t}function b5(r,e){if(e.kind===Pr.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return gs(r).autoInterval=t,!0}),t}var n=gs(r).autoInterval;return n??(gs(r).autoInterval=r.calculateCategoryInterval(e))}function _5(r,e){var t=e.kind,n=w5(r),a=js(r),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var c=1,f=40;u>f&&(c=Math.max(1,Math.floor(u/f)));for(var d=s[0],h=r.dataToCoord(d+1)-r.dataToCoord(d),v=Math.abs(h*Math.cos(i)),p=Math.abs(h*Math.sin(i)),g=0,y=0;d<=s[1];d+=c){var m=0,b=0,_=Qv(a({value:d}),n.font,"center","top");m=_.width*1.3,b=_.height*1.3,g=Math.max(g,m,7),y=Math.max(y,b,7)}var S=g/v,w=y/p;isNaN(S)&&(S=1/0),isNaN(w)&&(w=1/0);var x=Math.max(0,Math.floor(Math.min(S,w)));if(t===Pr.estimate)return e.out.noPxChangeTryDetermine.push(oe(S5,null,r,x,u)),x;var C=oC(r,x,u);return C??x}function S5(r,e,t){return oC(r,e,t)==null}function oC(r,e,t){var n=f5(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function w5(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function sC(r,e,t){var n=js(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],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=Qx(r),h=o.get("showMinLabel")||d,v=o.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(y){var m={value:y};s.push(t?y:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:y,time:void 0,break:void 0})}return s}function lC(r,e,t){var n=r.scale,a=js(r),i=[];return N(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;e(o.value,s)&&i.push(t?u:{formattedLabel:a(o),rawLabel:s,tickValue:u,time:void 0,break:void 0})}),i}var w0=[0,1],uC=function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return yS(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,a=this.scale;return e=a.normalize(a.parse(e)),this.onBand&&a.type==="ordinal"&&(n=n.slice(),x0(n,a.count())),ze(e,w0,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),x0(n,a.count()));var i=ze(e,n,w0,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=h5(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=n.ticks,i=X(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return x5(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=X(n,function(i){return X(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(e){return e=e||ec(Pr.determine),d5(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(e){return e=e||ec(Pr.determine),_5(this,e)},r}();function x0(r,e){var t=r[1]-r[0],n=e,a=t/n/2;r[0]+=a,r[1]-=a}function x5(r,e,t,n){var a=e.length;if(!r.onBand||t||!a)return;var i=r.getExtent(),o,s;if(a===1)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var u=e[a-1].tickValue-e[0].tickValue,c=(e[a-1].coord-e[0].coord)/u;N(e,function(v){v.coord-=c/2,v.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-e[a-1].tickValue,o={coord:e[a-1].coord+c*s,tickValue:f[1]+1,onBand:!0},e.push(o)}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],onBand:!0}),h(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&h(o.coord,i[1])&&e.push({coord:i[1],onBand:!0});function h(v,p){return v=pt(v),p=pt(p),d?v>p:v<p}}function cC(r,e,t,n,a,i,o,s){var u=a-r,c=i-e,f=t-r,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=o[0]=r+p*f,y=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(y-i)*(y-i))}var jn=new ke,nt=new ke,kt=new ke,qn=new ke,jr=new ke,tc=[],Ot=new ke;function C5(r,e){if(e<=180&&e>0){e=e/180*Math.PI,jn.fromArray(r[0]),nt.fromArray(r[1]),kt.fromArray(r[2]),ke.sub(qn,jn,nt),ke.sub(jr,kt,nt);var t=qn.len(),n=jr.len();if(!(t<.001||n<.001)){qn.scale(1/t),jr.scale(1/n);var a=qn.dot(jr),i=Math.cos(e);if(i<a){var o=cC(nt.x,nt.y,kt.x,kt.y,jn.x,jn.y,tc);Ot.fromArray(tc),Ot.scaleAndAdd(jr,o/Math.tan(Math.PI-e));var s=kt.x!==nt.x?(Ot.x-nt.x)/(kt.x-nt.x):(Ot.y-nt.y)/(kt.y-nt.y);if(isNaN(s))return;s<0?ke.copy(Ot,nt):s>1&&ke.copy(Ot,kt),Ot.toArray(r[1])}}}}function k5(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,jn.fromArray(r[0]),nt.fromArray(r[1]),kt.fromArray(r[2]),ke.sub(qn,nt,jn),ke.sub(jr,kt,nt);var n=qn.len(),a=jr.len();if(!(n<.001||a<.001)){qn.scale(1/n),jr.scale(1/a);var i=qn.dot(e),o=Math.cos(t);if(i<o){var s=cC(nt.x,nt.y,kt.x,kt.y,jn.x,jn.y,tc);Ot.fromArray(tc);var u=Math.PI/2,c=Math.acos(jr.dot(e)),f=u+c-t;if(f>=u)ke.copy(Ot,kt);else{Ot.scaleAndAdd(jr,s/Math.tan(Math.PI/2-f));var d=kt.x!==nt.x?(Ot.x-nt.x)/(kt.x-nt.x):(Ot.y-nt.y)/(kt.y-nt.y);if(isNaN(d))return;d<0?ke.copy(Ot,nt):d>1&&ke.copy(Ot,kt)}Ot.toArray(r[1])}}}}function cd(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function T5(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=rh(n[0],n[1]),i=rh(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*t,s=tf([],n[1],n[0],o/a),u=tf([],n[1],n[2],o/i),c=tf([],s,u,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),r.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function D5(r,e,t){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,u=0;u<Iu.length;u++){var c=Iu[u],f=e[c],d=c==="normal";if(f){var h=f.get("show"),v=d?s:se(a.states[c]&&a.states[c].ignore,s);if(v||!se(h,o)){var p=d?n:n&&n.states[c];p&&(p.ignore=!0),n&&cd(n,!0,c,f);continue}n||(n=new An,r.setTextGuideLine(n),!d&&(s||!o)&&cd(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),cd(n,!1,c,f)}}if(n){Me(n.style,t),n.style.fill=null;var g=i.get("showAbove"),y=r.textGuideLineConfig=r.textGuideLineConfig||{};y.showAbove=g||!1,n.buildPath=T5}}function M5(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<Jt.length;n++){var a=Jt[n];t[a]=r.getModel([a,e])}return t}var C0=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],E5=1,rc=2,fC=E5|rc;function nc(r,e,t){t=t||fC,e?r.dirty|=t:r.dirty&=~t}function dC(r,e){return e=e||fC,r.dirty==null||!!(r.dirty&e)}function ca(r){if(r)return dC(r)&&hC(r,r.label,r),r}function hC(r,e,t){var n=e.getComputedTransform();r.transform=pp(r.transform,n);var a=r.localRect=ws(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,u=t&&t.minMarginForce,c=t&&t.marginDefault,f=i.__marginType;f==null&&c&&(o=c,f=Wi.textMargin);for(var d=0;d<4;d++)fd[d]=f===Wi.minMargin&&u&&u[d]!=null?u[d]:s&&s[d]!=null?s[d]:o?o[d]:0;f===Wi.textMargin&&Ru(a,fd,!1,!1);var h=r.rect=ws(r.rect,a);return n&&h.applyTransform(n),f===Wi.minMargin&&Ru(h,fd,!1,!1),r.axisAligned=vp(n),(r.label=r.label||{}).ignore=e.ignore,nc(r,!1),nc(r,!0,rc),r}var fd=[0,0,0,0];function A5(r,e,t){return r.transform=pp(r.transform,t),r.localRect=ws(r.localRect,e),r.rect=ws(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=vp(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function N5(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var n=r.rect;n&&(n.x+=e.x,n.y+=e.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,t)}}function k0(r,e){for(var t=0;t<C0.length;t++){var n=C0[t];r[n]==null&&(r[n]=e[n])}return ca(r)}function T0(r){var e=r.obb;return(!e||dC(r,rc))&&(r.obb=e=e||new rw,e.fromBoundingRect(r.localRect,r.transform),nc(r,!1,rc)),e}function I5(r,e,t,n,a){var i=r.length,o=Yn[e],s=eo[e];if(i<2)return!1;r.sort(function(C,k){return C.rect[o]-k.rect[o]});for(var u=0,c,f=!1,d=0;d<i;d++){var h=r[d],v=h.rect;c=v[o]-u,c<0&&(v[o]-=c,h.label[o]-=c,f=!0),u=v[o]+v[s]}var p=r[0],g=r[i-1],y,m;b(),y<0&&w(-y,.8),m<0&&w(m,.8),b(),_(y,m,1),_(m,y,-1),b(),y<0&&x(-y),m<0&&x(m);function b(){y=p.rect[o]-t,m=n-g.rect[o]-g.rect[s]}function _(C,k,T){if(C<0){var D=Math.min(k,-C);if(D>0){S(D*T,0,i);var M=D+C;M<0&&w(-M*T,1)}else w(-C*T,1)}}function S(C,k,T){C!==0&&(f=!0);for(var D=k;D<T;D++){var M=r[D],A=M.rect;A[o]+=C,M.label[o]+=C}}function w(C,k){for(var T=[],D=0,M=1;M<i;M++){var A=r[M-1].rect,E=Math.max(r[M].rect[o]-A[o]-A[s],0);T.push(E),D+=E}if(D){var I=Math.min(Math.abs(C)/D,k);if(C>0)for(var M=0;M<i-1;M++){var B=T[M]*I;S(B,0,M+1)}else for(var M=i-1;M>0;M--){var B=T[M-1]*I;S(-B,M,i)}}}function x(C){var k=C<0?-1:1;C=Math.abs(C);for(var T=Math.ceil(C/(i-1)),D=0;D<i-1;D++)if(k>0?S(T,0,D+1):S(-T,i-D-1,i),C-=T,C<=0)return}return f}function B5(r){var e=[];r.sort(function(c,f){return(f.suggestIgnore?1:0)-(c.suggestIgnore?1:0)||f.priority-c.priority});function t(c){if(!c.ignore){var f=c.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}c.ignore=!0}for(var n=0;n<r.length;n++){var a=ca(r[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,u=0;u<e.length;u++)if(Up(a,e[u],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(a)}}}function Up(r,e,t,n){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,n)?!1:r.axisAligned&&e.axisAligned?!0:T0(r).intersect(T0(e),t,n)}const L5=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function V5(r){function e(t){return function(...a){if(!r.value)throw new Error("ECharts is not initialized yet.");return Reflect.apply(r.value[t],r.value,a)}}return L5.reduce((t,n)=>(t[n]=e(n),t),{})}function P5(r,e,t){l.watch([t,r,e],([n,a,i],o,s)=>{let u=null;if(n&&a&&i){const{offsetWidth:c,offsetHeight:f}=n,{throttle:d=100,onResize:h}=i===!0?{}:i;let v=!1;const p=()=>{a.resize(),h==null||h()},g=d?zc(p,d):p;u=new ResizeObserver(()=>{!v&&(v=!0,n.offsetWidth===c&&n.offsetHeight===f)||n.offsetWidth===0||n.offsetHeight===0||g()}),u.observe(n)}s(()=>{u&&(u.disconnect(),u=null)})})}const R5={autoresize:[Boolean,Object]},O5=Symbol();function z5(r,e,t){const n=l.inject(O5,{}),a=l.computed(()=>({...l.toValue(n),...t==null?void 0:t.value}));l.watchEffect(()=>{const i=r.value;i&&(e.value?i.showLoading(a.value):i.hideLoading())})}const $5={loading:Boolean,loadingOptions:Object};function vC(){return typeof window<"u"&&typeof document<"u"}const F5=/^on[^a-z]/,pC=r=>F5.test(r);function H5(r){const e={};for(const t in r)pC(t)||(e[t]=r[t]);return e}function G5(r){const e=Number(r);return Number.isInteger(e)&&e>=0&&e<Math.pow(2,32)-1&&String(e)===r}function W5(r,e){const t=new Set(r),n=new Set(e);if(t.size!==n.size)return!1;for(const a of t)if(!n.has(a))return!1;return!0}function gC(r){return r!=null&&typeof r=="object"&&!Array.isArray(r)}const U5="[vue-echarts]";function cv(r){l.warn(`${U5} ${r}`)}const mC={tooltip:["tooltip","formatter"],dataView:["toolbox","feature","dataView","optionToContent"]},Y5=Object.keys(mC);function dd(r){return Y5.some(e=>r===e||r.startsWith(e+"-"))}function Z5(r,e){const t=vC()?document.createElement("div"):void 0,n=l.shallowReactive({}),a=l.shallowReactive({}),i=l.shallowReactive({}),o=l.shallowRef(!1),s=()=>o.value&&t?l.h(l.Teleport,{to:t},Object.entries(r).filter(([d])=>dd(d)).map(([d,h])=>{const v=d;return l.h("div",{ref:p=>{p instanceof HTMLElement&&(n[v]=p)},style:{display:"contents"}},a[v]?h==null?void 0:h(i[v]):void 0)})):void 0;function u(d){return d!==null&&typeof d=="object"&&!Array.isArray(d)}function c(d){const h={...d},v=(p,g)=>{const y=p[g];if(Array.isArray(y))return p[g]=[...y],p[g];if(u(y))return p[g]={...y},p[g];if(y===void 0)return p[g]=G5(g)?[]:{},p[g]};return Object.keys(r).filter(p=>{const g=dd(p);return g||cv(`Invalid slot name: ${p}`),g}).forEach(p=>{const[g,...y]=p.split("-"),m=mC[g];if(!m)return;const b=[...y,...m];if(b.length===0)return;let _=h;for(let S=0;S<b.length-1;S++)if(_=v(_,b[S]),!_)return;_[b[b.length-1]]=S=>(a[p]=!0,i[p]=S,n[p])}),h}let f=[];return l.onUpdated(()=>{const d=Object.keys(r).filter(dd);W5(d,f)||(f.forEach(h=>{d.includes(h)||(delete i[h],delete a[h],delete n[h])}),f=d,e())}),l.onMounted(()=>{o.value=!0}),l.onUnmounted(()=>{t==null||t.remove()}),{teleportedSlots:s,patchOption:c}}let $n=null;const fv="x-vue-echarts";function X5(){if($n!=null)return $n;const r=globalThis.customElements;if(!vC()||!(r!=null&&r.get))return $n=!1,$n;if(!r.get(fv))try{class e extends HTMLElement{constructor(){super(...arguments);Cg(this,"__dispose",null)}disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}r.define(fv,e)}catch{return $n=!1,$n}return $n=!0,$n}function j5(r){if(!gC(r))return;const e=r.id;if(typeof e=="string")return e;if(typeof e=="number"&&Number.isFinite(e))return String(e)}function D0(r){const e=r,t=Array.isArray(e.options)?e.options.length:0,n=Array.isArray(e.media)?e.media.length:0,a=Object.create(null),i=[],o=[];for(const s of Object.keys(e)){if(s==="options"||s==="media")continue;const u=e[s];if(Array.isArray(u)){const c=u,f=new Set;let d=0;for(let h=0;h<c.length;h++){const v=j5(c[h]);v!==void 0?f.add(v):d++}a[s]={idsSorted:f.size>0?Array.from(f).sort():[],noIdCount:d}}else gC(u)?i.push(s):u!==void 0&&o.push(s)}return i.length>1&&i.sort(),o.length>1&&o.sort(),{optionsLength:t,mediaLength:n,arrays:a,objects:i,scalars:o}}function M0(r,e){if(r.length===0)return[];if(e.length===0)return r.slice();const t=new Set(e),n=[];for(let a=0;a<r.length;a++){const i=r[a];t.has(i)||n.push(i)}return n}function q5(r,e){if(r.length===0)return!1;if(e.length===0)return!0;const t=new Set(e);for(let n=0;n<r.length;n++)if(!t.has(r[n]))return!0;return!1}function K5(r,e){const t=D0(e);if(!r)return{option:e,signature:t,plan:{notMerge:!1}};if(t.optionsLength<r.optionsLength)return{option:e,signature:t,plan:{notMerge:!0}};if(t.mediaLength<r.mediaLength)return{option:e,signature:t,plan:{notMerge:!0}};if(M0(r.scalars,t.scalars).length>0)return{option:e,signature:t,plan:{notMerge:!0}};const n=new Set,a=new Map,i=M0(r.objects,t.objects);for(let c=0;c<i.length;c++)a.set(i[c],null);for(const c of Object.keys(r.arrays)){const f=r.arrays[c];if(!f)continue;const d=t.arrays[c];if(!d){(f.idsSorted.length>0||f.noIdCount>0)&&(a.set(c,[]),n.add(c));continue}if(q5(f.idsSorted,d.idsSorted)){n.add(c);continue}d.noIdCount<f.noIdCount&&n.add(c)}let o=e,s=t;if(a.size>0){const c={...e};a.forEach((f,d)=>{c[d]=f}),o=c,s=D0(o)}const u=n.size>0?Array.from(n).sort():void 0;return{option:o,signature:s,plan:u?{notMerge:!1,replaceMerge:u}:{notMerge:!1}}}var E0=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}
|
|
272
272
|
x-vue-echarts>:first-child,x-vue-echarts>:first-child>canvas{border-radius:inherit;}
|
|
273
|
-
`;if(typeof document<"u")if(Array.isArray(document.adoptedStyleSheets)&&"replaceSync"in CSSStyleSheet.prototype){const r=new CSSStyleSheet;r.replaceSync(E0),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r]}else{const r=document.createElement("style");r.textContent=E0,document.head.appendChild(r)}const Q5=X5(),J5=Symbol(),e$=Symbol(),t$=Symbol();var r$=l.defineComponent({name:"Echarts",inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...R5,...$5},emits:{},slots:Object,setup(r,{attrs:e,expose:t,slots:n}){const a=l.shallowRef(),i=l.shallowRef(),o=l.inject(J5,null),s=l.inject(e$,null),u=l.inject(t$,null),{autoresize:c,manualUpdate:f,loading:d,loadingOptions:h}=l.toRefs(r),v=l.computed(()=>r.theme||l.toValue(o)),p=l.computed(()=>r.initOptions||l.toValue(s)||void 0),g=l.computed(()=>r.updateOptions||l.toValue(u)),y=l.computed(()=>H5(e)),m={},b=new Map,{teleportedSlots:_,patchOption:S}=Z5(n,()=>{!f.value&&r.option&&i.value&&C(i.value,r.option)});let w;function x(A){const E={},I=((A==null?void 0:A.replaceMerge)??[]).filter(B=>B!=null);return I.length>0&&(E.replaceMerge=[...new Set(I)]),(A==null?void 0:A.notMerge)!==void 0&&(E.notMerge=A.notMerge),E}function C(A,E,I,B=!1){const R=S(E);if(B){A.setOption(R,I??{}),w=void 0;return}if(g.value){const V=I??g.value;A.setOption(R,V),w=void 0;return}const P=K5(w,R),L=x(P.plan);A.setOption(P.option,L),w=P.signature}Object.keys(e).filter(A=>pC(A)).forEach(A=>{if(A.indexOf("Native:")===2){const R=`on${A.charAt(9).toUpperCase()}${A.slice(10)}`;m[R]=e[A];return}let E=A.charAt(2).toLowerCase()+A.slice(3),I;E.indexOf("zr:")===0&&(I=!0,E=E.substring(3));let B;E.substring(E.length-4)==="Once"&&(B=!0,E=E.substring(0,E.length-4)),b.set({event:E,zr:I,once:B},e[A])});function k(){if(!a.value)return;const A=i.value=nz(a.value,v.value,p.value);r.group&&(A.group=r.group),b.forEach((B,{zr:R,once:P,event:L})=>{if(!B)return;const V=R?A.getZr():A;if(P){const z=B;let O=!1;B=(...W)=>{O||(O=!0,z(...W),V.off(L,B))}}V.on(L,B)});function E(){A&&!A.isDisposed()&&A.resize()}function I(){const{option:B}=r;if(f.value){B&&C(A,B,void 0,!0);return}B&&C(A,B)}c.value?l.nextTick(()=>{E(),I()}):I()}const T=(A,E,I)=>{if(!r.manualUpdate){cv("`setOption` is only available when `manual-update` is `true`.");return}const B=typeof E=="boolean"?{notMerge:E,lazyUpdate:I}:E;i.value&&C(i.value,A,B??void 0,!0)};function D(){i.value&&(i.value.dispose(),i.value=void 0),w=void 0}l.watch(()=>r.option,A=>{if(!A){w=void 0;return}if(f.value){cv("`option` prop changes are ignored when `manual-update` is `true`.");return}i.value&&C(i.value,A)},{deep:!0}),l.watch([f,p],()=>{D(),k()},{deep:!0}),l.watch(v,A=>{var E;(E=i.value)==null||E.setTheme(A||{})},{deep:!0}),l.watchEffect(()=>{r.group&&i.value&&(i.value.group=r.group)});const M=V5(i);return z5(i,d,h),P5(i,c,a),l.onMounted(()=>{k()}),l.onBeforeUnmount(()=>{Q5&&a.value?a.value.__dispose=D:D()}),t({setOption:T,root:a,chart:i,...M}),()=>l.h(fv,{...y.value,...m,ref:a,class:["echarts",y.value.class]},_())}}),n$=r$;function A0(r,e,t){var n=Nr.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*t,n.height=i*t,n}var hd=function(r){H(e,r);function e(t,n,a){var i=r.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 o;a=a||ku,typeof t=="string"?o=A0(t,n,a):fe(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(j_(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.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 t=this.dpr;this.domBack=A0("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,c=new ye(0,0,0,0);function f(b){if(!(!b.isFinite()||b.isZero()))if(o.length===0){var _=new ye(0,0,0,0);_.copy(b),o.push(_)}else{for(var S=!1,w=1/0,x=0,C=0;C<o.length;++C){var k=o[C];if(k.intersect(b)){var T=new ye(0,0,0,0);T.copy(k),T.union(b),o[C]=T,S=!0;break}else if(u){c.copy(b),c.union(k);var D=b.width*b.height,M=k.width*k.height,A=c.width*c.height,E=A-D-M;E<w&&(w=E,x=C)}}if(u&&(o[x].union(b),S=!0),!S){var _=new ye(0,0,0,0);_.copy(b),o.push(_)}u||(u=o.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var h=t[d];if(h){var v=h.shouldBePainted(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&tr||!v)?h.getPrevPaintRect():null;p&&f(p);var g=v&&(h.__dirty&tr||!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 y;do{y=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var m=d+1;m<o.length;)o[d].intersect(o[m])?(y=!0,o[d].union(o[m]),o.splice(m,1)):m++;d++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),i.width=t*a,i.height=n*a,s&&(s.width=t*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,n,a){var i=this.dom,o=this.ctx,s=i.width,u=i.height;n=n||this.clearColor;var c=this.motionBlur&&!t,f=this.lastFrameAlpha,d=this.dpr,h=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/d,u/d));var v=this.domBack;function p(g,y,m,b){if(o.clearRect(g,y,m,b),n&&n!=="transparent"){var _=void 0;if(yc(n)){var S=n.global||n.__width===m&&n.__height===b;_=S&&n.__canvasGradient||Kh(o,n,{x:0,y:0,width:m,height:b}),n.__canvasGradient=_,n.__width=m,n.__height=b}else UN(n)&&(n.scaleX=n.scaleX||d,n.scaleY=n.scaleY||d,_=Qh(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,y,m,b),o.restore()}c&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,y,m,b),o.restore())}!a||c?p(0,0,s,u):a.length&&N(a,function(g){p(g.x*d,g.y*d,g.width*d,g.height*d)})},e}(br),N0=1e5,Pa=314159,Vl=.01,a$=.001;function i$(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function o$(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var s$=function(){function r(e,t,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=Y({},n||{}),this.dpr=n.devicePixelRatio||ku,this._singleCanvas=i,this.root=e;var o=e.style;o&&(j_(e),e.innerHTML=""),this.storage=t;var s=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 hd(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[Pa]=v,v.zlevel=Pa,s.push(Pa),this._domRoot=e}else{this._width=kl(e,0,n),this._height=kl(e,1,n);var c=this._domRoot=o$(this._width,this._height);e.appendChild(c)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=i===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),!!t){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(N0)),i||(i=n.ctx,i.save()),Ya(i,s,a,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(N0)},r.prototype.paintOne=function(e,t){px(e,t)},r.prototype._paintList=function(e,t,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var u=this;yu(function(){u._paintList(e,t,n,a)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Pa).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,t,n)})},r.prototype._doPaintList=function(e,t,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],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 y=i[g],m=y.ctx,b=o&&y.createRepaintRects(e,t,v._width,v._height),_=n?y.__startIndex:y.__drawIndex,S=!n&&y.incremental&&Date.now,w=S&&Date.now(),x=y.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,x,b);else if(_===y.__startIndex){var C=e[_];(!C.incremental||!C.notClear||n)&&y.clear(!1,x,b)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=y.__startIndex);var k,T=function(E){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(k=_;k<y.__endIndex;k++){var B=e[k];if(B.__inHover&&(d=!0),a._doPaintEl(B,y,o,E,I,k===y.__endIndex-1),S){var R=Date.now()-w;if(R>15)break}}I.prevElClipPaths&&m.restore()};if(b)if(b.length===0)k=y.__endIndex;else for(var D=v.dpr,M=0;M<b.length;++M){var A=b[M];m.save(),m.beginPath(),m.rect(A.x*D,A.y*D,A.width*D,A.height*D),m.clip(),T(A),m.restore()}else m.save(),T(),m.restore();y.__drawIndex=k,y.__drawIndex<y.__endIndex&&(f=!1)},v=this,p=0;p<i.length;p++)h(p);return we.wxa&&N(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:d}},r.prototype._doPaintEl=function(e,t,n,a,i,o){var s=t.ctx;if(n){var u=e.getPaintRect();(!a||u&&u.intersect(a))&&(Ya(s,e,i,o),e.setPrevPaintRect(u))}else Ya(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Pa);var n=this._layers[e];return n||(n=new hd("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Ce(n,this._layerConfig[e],!0):this._layerConfig[e-Vl]&&Ce(n,this._layerConfig[e-Vl],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},r.prototype.insertLayer=function(e,t){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,u=-1;if(n[e]){process.env.NODE_ENV!=="production"&&Jn("ZLevel "+e+" has been used already");return}if(!i$(t)){process.env.NODE_ENV!=="production"&&Jn("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++);s=n[a[u]]}if(a.splice(u+1,0,e),n[e]=t,!t.virtual)if(s){var c=s.dom;c.nextSibling?o.insertBefore(t.dom,c.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)},r.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(d,h){d.__dirty=d.__used=!1});function t(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,o=0,s,u;for(u=0;u<e.length;u++){var a=e[u],c=a.zlevel,f=void 0;s!==c&&(s=c,o=0),a.incremental?(f=this.getLayer(c+a$,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(c+(o>0?Vl:0),this._needsManuallyCompositing),f.__builtin__||Jn("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,t(u),i=f),a.__dirty&tr&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}t(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)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,N(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Ce(n[e],t,!0):n[e]=t;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+Vl){var o=this._layers[i];Ce(o,n[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,a=t[e];a&&(a.dom.parentNode.removeChild(a.dom),delete t[e],n.splice(De(n,e),1))},r.prototype.resize=function(e,t){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),t!=null&&(a.height=t),e=kl(i,0,a),t=kl(i,1,a),n.style.display="",this._width!==e||t!==this._height){n.style.width=e+"px",n.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Pa).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Pa].dom;var t=new hd("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,i=t.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 o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,c=s.length;u<c;u++){var f=s[u];Ya(n,f,o,u===c-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function l$(r){r.registerPainter("canvas",s$)}var u$=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(process.env.NODE_ENV!=="production"){var n=t.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Xs(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new Ee,a=Vt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,u=t.itemHeight*.8,c=Vt(s,(t.itemWidth-u)/2,(t.itemHeight-u)/2,u,u,t.itemStyle.fill);n.add(c),c.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return c.rotation=f*Math.PI/180,c.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill=G.color.neutral00,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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(wt);function Yp(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=ro(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<t.length;o++)i.push(ro(r,e,t[o]));return i.join(" ")}}function yC(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!Z(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=0&&n.push(e[i])}return n.join(" ")}var Uc=function(r){H(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o,s){this.removeAll();var u=Vt(t,-1,-1,2,2,null,s);u.attr({z2:se(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),u.drift=c$,this._symbolType=t,this.add(u)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ii(this.childAt(0))},e.prototype.downplay=function(){oi(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,u=e.getSymbolSize(t,n),c=e.getSymbolZ2(t,n),f=o!==this._symbolType,d=i&&i.disableAnimation;if(f){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,u,c,h)}else{var v=this.childAt(0);v.silent=!1;var p={scaleX:u[0]/2,scaleY:u[1]/2};d?v.attr(p):Ke(v,p,s,n),Ji(v)}if(this._updateCommon(t,n,u,a,i),f){var v=this.childAt(0);if(!d){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,mt(v,p,s,n)}}d&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),u=t.hostModel,c,f,d,h,v,p,g,y,m;if(i&&(c=i.emphasisItemStyle,f=i.blurItemStyle,d=i.selectItemStyle,h=i.focus,v=i.blurScope,g=i.labelStatesModels,y=i.hoverScale,m=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.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=yr(b),y=_.getShallow("scale"),m=b.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Hc(t.getItemVisual(n,"symbolOffset"),a);w&&(s.x=w[0],s.y=w[1]),m&&s.attr("cursor",m);var x=t.getItemVisual(n,"style"),C=x.fill;if(s instanceof _r){var k=s.style;s.useStyle(Y({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},x))}else s.__isEmptyBrush?s.useStyle(Y({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=t.getItemVisual(n,"liftZ"),D=this._z2;T!=null?D==null&&(this._z2=s.z2,s.z2+=T):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;ln(s,g,{labelFetcher:u,labelDataIndex:n,defaultText:A,inheritColor:C,defaultOpacity:x.opacity});function A(B){return M?t.getName(B):Yp(t,B)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var E=s.ensureState("emphasis");E.style=c,s.ensureState("select").style=d,s.ensureState("blur").style=f;var I=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;E.scaleX=this._sizeX*I,E.scaleY=this._sizeY*I,this.setSymbolScale(1),ar(this,h,v,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=Te(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var u=i.getTextContent();u&&si(u,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();si(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return Fc(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e}(Ee);function c$(r,e){this.parent.drift(r,e)}function vd(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function I0(r){return r!=null&&!fe(r)&&(r={isIgnore:r}),r||{}}function B0(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:yr(e),cursorStyle:e.get("cursor")}}var Zp=function(){function r(e){this.group=new Ee,this._SymbolCtor=e||Uc}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=I0(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,u=B0(e),c={disableAnimation:s},f=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||n.removeAll(),e.diff(i).add(function(d){var h=f(d);if(vd(e,h,d,t)){var v=new o(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(!vd(e,p,d,t)){n.remove(v);return}var g=e.getItemVisual(d,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==g)n.remove(v),v=new o(e,d,u,c),v.setPosition(p);else{v.updateData(e,d,u,c);var m={x:p[0],y:p[1]};s?v.attr(m):Ke(v,m,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},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=B0(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=I0(n);function a(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(vd(t,o,i,n)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){vi(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r}();function bC(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=f$(a,t),o=n.dim,s=a.dim,u=e.mapDimension(s),c=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,d=X(r.dimensions,function(p){return e.mapDimension(p)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return ui(e,d[0])&&(h=!0,d[0]=v),ui(e,d[1])&&(h=!0,d[1]=v),{dataDimsForPoint:d,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:u,baseDim:c,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function f$(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:He(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function _C(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function d$(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function h$(r,e,t,n,a,i,o,s){for(var u=d$(r,e),c=[],f=[],d=[],h=[],v=[],p=[],g=[],y=bC(a,e,o),m=r.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_<u.length;_++){var S=u[_],w=!0,x=void 0,C=void 0;switch(S.cmd){case"=":x=S.idx*2,C=S.idx1*2;var k=m[x],T=m[x+1],D=b[C],M=b[C+1];(isNaN(k)||isNaN(T))&&(k=D,T=M),c.push(k,T),f.push(D,M),d.push(t[x],t[x+1]),h.push(n[C],n[C+1]),g.push(e.getRawIndex(S.idx1));break;case"+":var A=S.idx,E=y.dataDimsForPoint,I=a.dataToPoint([e.get(E[0],A),e.get(E[1],A)]);C=A*2,c.push(I[0],I[1]),f.push(b[C],b[C+1]);var B=_C(y,a,e,A);d.push(B[0],B[1]),h.push(n[C],n[C+1]),g.push(e.getRawIndex(A));break;case"-":w=!1}w&&(v.push(S),p.push(p.length))}p.sort(function(q,Q){return g[q]-g[Q]});for(var R=c.length,P=en(R),L=en(R),V=en(R),z=en(R),O=[],_=0;_<p.length;_++){var W=p[_],j=_*2,ne=W*2;P[j]=c[ne],P[j+1]=c[ne+1],L[j]=f[ne],L[j+1]=f[ne+1],V[j]=d[ne],V[j+1]=d[ne+1],z[j]=h[ne],z[j+1]=h[ne+1],O[_]=v[W]}return{current:P,next:L,stackedOnCurrent:V,stackedOnNext:z,status:O}}var Fn=Math.min,Hn=Math.max;function ti(r,e){return isNaN(r)||isNaN(e)}function dv(r,e,t,n,a,i,o,s,u){for(var c,f,d,h,v,p,g=t,y=0;y<n;y++){var m=e[g*2],b=e[g*2+1];if(g>=a||g<0)break;if(ti(m,b)){if(u){g+=i;continue}break}if(g===t)r[i>0?"moveTo":"lineTo"](m,b),d=m,h=b;else{var _=m-c,S=b-f;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var w=g+i,x=e[w*2],C=e[w*2+1];x===m&&C===b&&y<n;)y++,w+=i,g+=i,x=e[w*2],C=e[w*2+1],m=e[g*2],b=e[g*2+1],_=m-c,S=b-f;var k=y+1;if(u)for(;ti(x,C)&&k<n;)k++,w+=i,x=e[w*2],C=e[w*2+1];var T=.5,D=0,M=0,A=void 0,E=void 0;if(k>=n||ti(x,C))v=m,p=b;else{D=x-c,M=C-f;var I=m-c,B=x-m,R=b-f,P=C-b,L=void 0,V=void 0;if(s==="x"){L=Math.abs(I),V=Math.abs(B);var z=D>0?1:-1;v=m-z*L*o,p=b,A=m+z*V*o,E=b}else if(s==="y"){L=Math.abs(R),V=Math.abs(P);var O=M>0?1:-1;v=m,p=b-O*L*o,A=m,E=b+O*V*o}else L=Math.sqrt(I*I+R*R),V=Math.sqrt(B*B+P*P),T=V/(V+L),v=m-D*o*(1-T),p=b-M*o*(1-T),A=m+D*o*T,E=b+M*o*T,A=Fn(A,Hn(x,m)),E=Fn(E,Hn(C,b)),A=Hn(A,Fn(x,m)),E=Hn(E,Fn(C,b)),D=A-m,M=E-b,v=m-D*L/V,p=b-M*L/V,v=Fn(v,Hn(c,m)),p=Fn(p,Hn(f,b)),v=Hn(v,Fn(c,m)),p=Hn(p,Fn(f,b)),D=m-v,M=b-p,A=m+D*V/L,E=b+M*V/L}r.bezierCurveTo(d,h,v,p,m,b),d=A,h=E}else r.lineTo(m,b)}c=m,f=b,g+=i}return y}var SC=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),v$=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new SC},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&ti(a[o*2-2],a[o*2-1]);o--);for(;i<o&&ti(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=dv(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=ai.CMD,s,u,c=n==="x",f=[],d=0;d<i.length;){var h=i[d++],v=void 0,p=void 0,g=void 0,y=void 0,m=void 0,b=void 0,_=void 0;switch(h){case o.M:s=i[d++],u=i[d++];break;case o.L:if(v=i[d++],p=i[d++],_=c?(t-s)/(v-s):(t-u)/(p-u),_<=1&&_>=0){var S=c?(p-u)*_+u:(v-s)*_+s;return c?[t,S]:[S,t]}s=v,u=p;break;case o.C:v=i[d++],p=i[d++],g=i[d++],y=i[d++],m=i[d++],b=i[d++];var w=c?_u(s,v,g,m,t,f):_u(u,p,y,b,t,f);if(w>0)for(var x=0;x<w;x++){var C=f[x];if(C<=1&&C>=0){var S=c?Tt(u,p,y,b,C):Tt(s,v,g,m,C);return c?[t,S]:[S,t]}}s=m,u=b;break}}},e}(Pe),p$=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(SC),g$=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new p$},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ti(a[s*2-2],a[s*2-1]);s--);for(;o<s&&ti(a[o*2],a[o*2+1]);o++);}for(;o<s;){var c=dv(t,a,o,s,s,1,n.smooth,u,n.connectNulls);dv(t,i,o+c-1,c,s,-1,n.stackedOnSmooth,u,n.connectNulls),o+=c+1,t.closePath()}},e}(Pe);function wC(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,u=i.width,c=i.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,c+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var d=new Oe({shape:{x:o,y:s,width:u,height:c}});if(e){var h=r.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(y){a(y,d)}:null;mt(d,{shape:{width:u,height:c,x:o,y:s}},t,null,n,g)}return d}function xC(r,e,t){var n=r.getArea(),a=pt(n.r0,1),i=pt(n.r,1),o=new on({shape:{cx:pt(r.cx,1),cy:pt(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,mt(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function CC(r,e,t,n,a){if(r){if(r.type==="polar")return xC(r,e,t);if(r.type==="cartesian2d")return wC(r,e,t,n,a)}else return null;return null}function fa(r,e){return r.type===e}function L0(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function V0(r){for(var e=1/0,t=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),a=Math.max(s,a))}return[[e,t],[n,a]]}function P0(r,e){var t=V0(r),n=t[0],a=t[1],i=V0(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function R0(r){return He(r)?r:r?.5:0}function m$(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),a=en(n*2),i=0;i<n;i++){var o=_C(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Gn(r,e,t,n,a){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],u=0,c=[],f=[],d=[],h=[];if(a){for(u=0;u<r.length;u+=2){var v=e||r;!isNaN(v[u])&&!isNaN(v[u+1])&&h.push(r[u],r[u+1])}r=h}for(u=0;u<r.length-2;u+=2)switch(d[0]=r[u+2],d[1]=r[u+3],f[0]=r[u],f[1]=r[u+1],s.push(f[0],f[1]),n){case"end":c[o]=d[o],c[1-o]=f[1-o],s.push(c[0],c[1]);break;case"middle":var p=(f[o]+d[o])/2,g=[];c[o]=g[o]=p,c[1-o]=f[1-o],g[1-o]=d[1-o],s.push(c[0],c[1]),s.push(g[0],g[1]);break;default:c[o]=f[o],c[1-o]=d[1-o],s.push(c[0],c[1])}return s.push(r[u++],r[u++]),s}function y$(r,e){var t=[],n=r.length,a,i;function o(f,d,h){var v=f.coord,p=(h-v)/(d.coord-v),g=OI(p,[f.color,d.color]);return{coord:h,color:g}}for(var s=0;s<n;s++){var u=r[s],c=u.coord;if(c<0)a=u;else if(c>e){i?t.push(o(i,u,e)):a&&t.push(o(a,u,0),o(a,u,e));break}else a&&(t.push(o(a,u,0)),a=null),t.push(u),i=u}return t}function b$(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.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,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];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=X(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=y$(c,a==="x"?t.getWidth():t.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,y=h[v-1].coord+p,m=y-g;if(m<.001)return"transparent";N(h,function(_){_.offset=(_.coord-g)/m}),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 fp(0,0,0,0,h,!0);return b[a]=g,b[a+"2"]=y,b}}function _$(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&S$(i,e))){var o=e.mapDimension(i.dim),s={};return N(i.getViewLabels(),function(u){var c=i.scale.getRawOrdinalNumber(u.tickValue);s[c]=1}),function(u){return!s.hasOwnProperty(e.get(o,u))}}}}function S$(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Uc.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function w$(r,e){return isNaN(r)||isNaN(e)}function x$(r){for(var e=r.length/2;e>0&&w$(r[e*2-2],r[e*2-1]);e--);return e-1}function O0(r,e){return[r[e*2],r[e*2+1]]}function C$(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,u=-1,c=0;c<n;c++)if(o=r[c*2+a],!(isNaN(o)||isNaN(r[c*2+1-a]))){if(c===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){u=c;break}s=c,i=o}return{range:[s,u],t:(e-i)/(o-i)}}function kC(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Jt.length;e++)if(r.get([Jt[e],"endLabel","show"]))return!0;return!1}function pd(r,e,t,n){if(fa(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},u=kC(n)?function(v,p){r._endLabelOnDuring(v,p,o,s,i,a,e)}:null,c=e.getBaseAxis().isHorizontal(),f=wC(e,t,n,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.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."),xC(e,t,n)}function k$(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var T$=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Ee,n=new Zp;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=oe(this._changePolyState,this)},e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),u=t.getModel("lineStyle"),c=t.getModel("areaStyle"),f=s.getLayout("points")||[],d=i.type==="polar",h=this._coordSys,v=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=!n.ssr&&t.get("animation"),b=!c.isEmpty(),_=c.get("origin"),S=bC(i,s,_),w=b&&m$(i,s,S),x=t.get("showSymbol"),C=t.get("connectNulls"),k=x&&!d&&_$(t,s,i),T=this._data;T&&T.eachItemGraphicEl(function(q,Q){q.__temp&&(o.remove(q),T.setItemGraphicEl(Q,null))}),x||v.remove(),o.add(y);var D=d?!1:t.get("step"),M;i&&i.getArea&&t.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var A=b$(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&h.type===i.type&&D===this._step))x&&v.updateData(s,{isIgnore:k,clipShape:M,disableAnimation:!0,getSymbolPoint:function(q){return[f[q*2],f[q*2+1]]}}),m&&this._initSymbolLabelAnimation(s,i,M),D&&(w&&(w=Gn(w,f,i,D,C)),f=Gn(f,null,i,D,C)),p=this._newPolyline(f),b?g=this._newPolygon(f,w):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(t,i,li(A)),y.setClipPath(pd(this,i,!0,t));else{b&&!g?g=this._newPolygon(f,w):g&&!b&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(t,i,li(A));var E=y.getClipPath();if(E){var I=pd(this,i,!1,t);mt(E,{shape:I.shape},t)}else y.setClipPath(pd(this,i,!0,t));x&&v.updateData(s,{isIgnore:k,clipShape:M,disableAnimation:!0,getSymbolPoint:function(q){return[f[q*2],f[q*2+1]]}}),(!L0(this._stackedOnPoints,w)||!L0(this._points,f))&&(m?this._doUpdateAnimation(s,w,i,a,D,_,C):(D&&(w&&(w=Gn(w,f,i,D,C)),f=Gn(f,null,i,D,C)),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:w})))}var B=t.getModel("emphasis"),R=B.get("focus"),P=B.get("blurScope"),L=B.get("disabled");if(p.useStyle(Me(u.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Ir(p,t,"lineStyle"),p.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var V=p.getState("emphasis").style;V.lineWidth=+p.style.lineWidth+1}Te(p).seriesIndex=t.seriesIndex,ar(p,R,P,L);var z=R0(t.get("smooth")),O=t.get("smoothMonotone");if(p.setShape({smooth:z,smoothMonotone:O,connectNulls:C}),g){var W=s.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(Me(c.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&(j=R0(W.get("smooth"))),g.setShape({smooth:z,stackedOnSmooth:j,smoothMonotone:O,connectNulls:C}),Ir(g,t,"areaStyle"),Te(g).seriesIndex=t.seriesIndex,ar(g,R,P,L)}var ne=this._changePolyState;s.eachItemGraphicEl(function(q){q&&(q.onHoverStateChange=ne)}),this._polyline.onHoverStateChange=ne,this._data=s,this._coordSys=i,this._stackedOnPoints=w,this._points=f,this._step=D,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,n){Te(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=ni(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),c=o.getItemGraphicEl(s);if(!c){var f=u[s*2],d=u[s*2+1];if(isNaN(f)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,d))return;var h=t.get("zlevel")||0,v=t.get("z")||0;c=new Uc(o,s),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,o.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else yt.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=ni(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else yt.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;Mh(this._polyline,t),n&&Mh(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new v$({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new g$({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),u=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var c=t.hostModel,f=c.get("animationDuration");ue(f)&&(f=f(null));var d=c.get("animationDelay")||0,h=ue(d)?d(null):d;t.eachItemGraphicEl(function(v,p){var g=v;if(g){var y=[v.x,v.y],m=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,w=n.pointToCoord(y);i?(m=S.startAngle,b=S.endAngle,_=-w[1]/180*Math.PI):(m=S.r0,b=S.r,_=w[0])}else{var x=a;i?(m=x.x,b=x.x+x.width,_=v.x):(m=x.y+x.height,b=x.y,_=v.y)}var C=b===m?0:(_-m)/(b-m);u&&(C=1-C);var k=ue(d)?d(p):f*C+h,T=g.getSymbolPath(),D=T.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:k}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:k}),T.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(kC(t)){var o=t.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new We({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=x$(u);f>=0&&(ln(s,yr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(d,h,v){return v!=null?yC(o,v):Yp(o,d)},enableTextSetter:!0},k$(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,u){var c=this._endLabel,f=this._polyline;if(c){t<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=s.get("precision"),g=s.get("distance")||0,y=u.getBaseAxis(),m=y.isHorizontal(),b=y.inverse,_=n.shape,S=b?m?_.x:_.y+_.height:m?_.x+_.width:_.y,w=(m?g:0)*(b?-1:1),x=(m?0:-g)*(b?-1:1),C=m?"x":"y",k=C$(d,S,C),T=k.range,D=T[1]-T[0],M=void 0;if(D>=1){if(D>1&&!v){var A=O0(d,T[0]);c.attr({x:A[0]+w,y:A[1]+x}),o&&(M=h.getRawValue(T[0]))}else{var A=f.getPointOn(S,C);A&&c.attr({x:A[0]+w,y:A[1]+x});var E=h.getRawValue(T[0]),I=h.getRawValue(T[1]);o&&(M=ES(a,p,E,I,k.t))}i.lastFrameIndex=T[0]}else{var B=t===1||i.lastFrameIndex>0?T[0]:0,A=O0(d,B);o&&(M=h.getRawValue(B)),c.attr({x:A[0]+w,y:A[1]+x})}if(o){var R=Gs(c);typeof R.setLabelText=="function"&&R.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,u){var c=this._polyline,f=this._polygon,d=t.hostModel,h=h$(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,p=h.stackedOnCurrent,g=h.next,y=h.stackedOnNext;if(o&&(p=Gn(h.stackedOnCurrent,h.current,a,o,u),v=Gn(h.current,null,a,o,u),y=Gn(h.stackedOnNext,h.next,a,o,u),g=Gn(h.next,null,a,o,u)),P0(v,g)>3e3||f&&P0(p,y)>3e3){c.stopAnimation(),c.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:y}));return}c.shape.__points=h.current,c.shape.points=v;var m={shape:{points:g}};h.current!==v&&(m.shape.__points=h.next),c.stopAnimation(),Ke(c,m,d),f&&(f.setShape({points:v,stackedOnPoints:p}),f.stopAnimation(),Ke(f,{shape:{stackedOnPoints:y}},d),c.shape.points!==f.shape.points&&(f.shape.points=c.shape.points));for(var b=[],_=h.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&b.push({el:x,ptIdx:S})}}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 T=b[k].el,D=b[k].ptIdx*2;T.x=C[D],T.y=C[D+1],T.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(yt);function Xp(r,e){return{seriesType:r,plan:Ys(),reset:function(t){var n=t.getData(),a=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(a){var s=X(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),u=s.length,c=n.getCalculationInfo("stackResultDimension");ui(n,s[0])&&(s[0]=c),ui(n,s[1])&&(s[1]=c);var f=n.getStore(),d=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return u&&{progress:function(v,p){for(var g=v.end-v.start,y=o&&en(g*u),m=[],b=[],_=v.start,S=0;_<v.end;_++){var w=void 0;if(u===1){var x=f.get(d,_);w=a.dataToPoint(x,null,b)}else m[0]=f.get(d,_),m[1]=f.get(h,_),w=a.dataToPoint(m,null,b);o?(y[S++]=w[0],y[S++]=w[1]):p.setItemLayout(_,w.slice())}o&&p.setLayout("points",y)}}}}}}var D$={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},M$=function(r){return Math.round(r.length/2)};function TC(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var u=o.getBaseAxis(),c=o.getOtherAxis(u),f=u.getExtent(),d=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(d||1),v=Math.round(s/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;te(i)?p=D$[i]:ue(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(c.dim),1/v,p,M$))}}}}}function E$(r){r.registerChartView(T$),r.registerSeriesModel(u$),r.registerLayout(Xp("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,TC("line"))}var hv=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Xs(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)N(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var p=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),y=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!g&&(y+=1),p.length<2)return;if(p.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var b=void 0,_=void 0,S=1,w=0;w<p.length;w++){var x=p[w].coord,C=w===p.length-1?p[w-1].tickValue+S:p[w].tickValue;if(C===y){_=x;break}else if(C<y)b=x;else if(b!=null&&C>y){_=(x+b)/2;break}w===1&&(S=C-p[0].tickValue)}_==null&&(b?b&&(_=p[p.length-1].coord):_=p[0].coord),s[v]=h.toGlobalCoord(_)}});else{var u=this.getData(),c=u.getLayout("offset"),f=u.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=c+f/2}return s}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",defaultBarGap:"10%"},e}(wt);wt.registerClass(hv);var A$=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Xs(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 t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ho(hv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:G.color.primary,borderWidth:2}},realtimeSort:!1}),e}(hv),N$=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),ac=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new N$},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,c=o+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),y=Math.sin(f),m=Math.cos(d),b=Math.sin(d);p?(t.moveTo(g*o+a,y*o+i),t.arc(g*c+a,y*c+i,u,-Math.PI+f,f,!h)):t.moveTo(g*s+a,y*s+i),t.arc(a,i,s,f,d,!h),t.arc(m*c+a,b*c+i,u,d-Math.PI*2,d-Math.PI,!h),o!==0&&t.arc(a,i,o,d,f,h)},e}(Pe);function I$(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Tu(n,a,i);var s=r(o),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,y=c.endAngle,m=(g+y)/2,b=t?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,w=f+h*_(g),x=d+h*S(g),C="left",k="top";switch(s){case"startArc":w=f+(v-u)*_(m),x=d+(v-u)*S(m),C="center",k="top";break;case"insideStartArc":w=f+(v+u)*_(m),x=d+(v+u)*S(m),C="center",k="bottom";break;case"startAngle":w=f+p*_(g)+Pl(g,u+b,!1),x=d+p*S(g)+Rl(g,u+b,!1),C="right",k="middle";break;case"insideStartAngle":w=f+p*_(g)+Pl(g,-u+b,!1),x=d+p*S(g)+Rl(g,-u+b,!1),C="left",k="middle";break;case"middle":w=f+p*_(m),x=d+p*S(m),C="center",k="middle";break;case"endArc":w=f+(h+u)*_(m),x=d+(h+u)*S(m),C="center",k="bottom";break;case"insideEndArc":w=f+(h-u)*_(m),x=d+(h-u)*S(m),C="center",k="top";break;case"endAngle":w=f+p*_(y)+Pl(y,u+b,!0),x=d+p*S(y)+Rl(y,u+b,!0),C="left",k="middle";break;case"insideEndAngle":w=f+p*_(y)+Pl(y,-u+b,!0),x=d+p*S(y)+Rl(y,-u+b,!0),C="right",k="middle";break;default:return Tu(n,a,i)}return n=n||{},n.x=w,n.y=x,n.align=C,n.verticalAlign=k,n}}function B$(r,e,t,n){if(He(n)){r.setTextConfig({rotation:n});return}else if(Z(e)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,u,c=t(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=i;break;case"endAngle":case"insideEndAngle":u=o;break;default:r.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),r.setTextConfig({rotation:f})}function Pl(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Rl(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Qo(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;Z(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:X(n,function(i){return nn(i,a)})}}var gd=Math.max,md=Math.min;function L$(r,e){var t=r.getArea&&r.getArea();if(fa(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=a,t.width+=a*2):(t.y-=a,t.height+=a*2)}}return t}var V$=function(r){H(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,a):this._renderNormal(t,n,a,i)):process.env.NODE_ENV!=="production"&&St("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){vi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,a,i){var o=this.group,s=t.getData(),u=this._data,c=t.coordinateSystem,f=c.getBaseAxis(),d;c.type==="cartesian2d"?d=f.isHorizontal():c.type==="polar"&&(d=f.dim==="angle");var h=t.isAnimationEnabled()?t:null,v=P$(t,c);v&&this._enableRealtimeSort(v,s,a);var p=t.get("clip",!0)||v,g=L$(c,s);o.removeClipPath();var y=t.get("roundCap",!0),m=t.get("showBackground",!0),b=t.getModel("backgroundStyle"),_=b.get("borderRadius")||0,S=[],w=this._backgroundEls,x=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function k(M){var A=Ol[c.type](s,M);if(!A)return null;var E=G$(c,d,A);return E.useStyle(b.getItemStyle()),c.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),S[M]=E,E}s.diff(u).add(function(M){var A=s.getItemModel(M),E=Ol[c.type](s,M,A);if(E&&(m&&k(M),!(!s.hasValue(M)||!G0[c.type](E)))){var I=!1;p&&(I=z0[c.type](g,E));var B=$0[c.type](t,s,M,E,d,h,f.model,!1,y);v&&(B.forceLabelAnimation=!0),W0(B,s,M,A,E,t,d,c.type==="polar"),x?B.attr({shape:E}):v?F0(v,h,B,E,M,d,!1,!1):mt(B,{shape:E},t,M),s.setItemGraphicEl(M,B),o.add(B),B.ignore=I}}).update(function(M,A){var E=s.getItemModel(M),I=Ol[c.type](s,M,E);if(I){if(m){var B=void 0;w.length===0?B=k(A):(B=w[A],B.useStyle(b.getItemStyle()),c.type==="cartesian2d"?B.setShape("r",_):B.setShape("cornerRadius",_),S[M]=B);var R=Ol[c.type](s,M),P=MC(d,R,c);Ke(B,{shape:P},h,M)}var L=u.getItemGraphicEl(A);if(!s.hasValue(M)||!G0[c.type](I)){o.remove(L);return}var V=!1;p&&(V=z0[c.type](g,I),V&&o.remove(L));var z=L&&(L.type==="sector"&&y||L.type==="sausage"&&!y);if(z&&(L&&fs(L,t,A),L=null),L?Ji(L):L=$0[c.type](t,s,M,I,d,h,f.model,!0,y),v&&(L.forceLabelAnimation=!0),C){var O=L.getTextContent();if(O){var W=Gs(O);W.prevValue!=null&&(W.prevValue=W.value)}}else W0(L,s,M,E,I,t,d,c.type==="polar");x?L.attr({shape:I}):v?F0(v,h,L,I,M,d,!0,C):Ke(L,{shape:I},t,M,null),s.setItemGraphicEl(M,L),L.ignore=V,o.add(L)}}).remove(function(M){var A=u.getItemGraphicEl(M);A&&fs(A,t,M)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new Ee);T.removeAll();for(var D=0;D<S.length;++D)T.add(S[D]);o.add(T),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,n,a){this._clear(),Y0(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),Y0(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&CC(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,a),this._isFirstFrame=!1;else{var s=function(u){var c=n.getItemGraphicEl(u),f=c&&c.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.mapDimension(n.dim),function(o,s){var u=a(s);u=u??NaN,i.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:X(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,u=0,c=i.getOrdinalMeta().categories.length;u<c;++u){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(u)),d=f<0?Number.MIN_VALUE:n(t.indexOfRawIndex(f));if(d>s)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){fs(i,t,Te(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}(yt),z0={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=gd(e.x,r.x),s=md(e.x+e.width,a),u=gd(e.y,r.y),c=md(e.y+e.height,i),f=s<o,d=c<u;return e.x=f&&o>a?s:o,e.y=d&&u>i?c:u,e.width=f?0:s-o,e.height=d?0:c-u,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||d},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=md(e.r,r.r),i=gd(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},$0={cartesian2d:function(r,e,t,n,a,i,o,s,u){var c=new Oe({shape:Y({},n),z2:1});if(c.__dataIndex=t,c.name="item",i){var f=c.shape,d=a?"height":"width";f[d]=0}return c},polar:function(r,e,t,n,a,i,o,s,u){var c=!a&&u?ac:on,f=new c({shape:n,z2:1});f.name="item";var d=DC(a);if(f.calculateTextPosition=I$(d,{isRoundCap:c===ac}),i){var h=f.shape,v=a?"r":"endAngle",p={};h[v]=a?n.r0:n.startAngle,p[v]=n[v],(s?Ke:mt)(f,{shape:p},i)}return f}};function P$(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&t&&(n.type!=="category"&&St("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&St("`realtimeSort` will not work because this bar series is not on cartesian2d.")),t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function F0(r,e,t,n,a,i,o,s){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}),s||(o?Ke:mt)(t,{shape:u},e,a,null);var f=e?r.baseAxis.model:null;(o?Ke:mt)(t,{shape:c},f,a)}function H0(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var R$=["x","y","width","height"],O$=["cx","cy","r","startAngle","endAngle"],G0={cartesian2d:function(r){return!H0(r,R$)},polar:function(r){return!H0(r,O$)}},Ol={cartesian2d:function(r,e,t){var n=r.getItemLayout(e);if(!n)return null;var a=t?$$(t,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.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 z$(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function DC(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function W0(r,e,t,n,a,i,o,s){var u=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,d=Qo(n.getModel("itemStyle"),f,!0);Y(f,d),r.setShape(f)}}else{var c=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",c)}r.useStyle(u);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=yr(n);ln(r,p,{labelFetcher:i,labelDataIndex:t,defaultText:Yp(i.getData(),t),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:v});var g=r.getTextContent();if(s&&g){var y=n.get(["label","position"]);r.textConfig.inside=y==="middle"?!0:null,B$(r,y==="outside"?v:y,DC(o),n.get(["label","rotate"]))}hw(g,p,i.getRawValue(t),function(b){return yC(e,b)});var m=n.getModel(["emphasis"]);ar(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),Ir(r,n),z$(a)&&(r.style.fill="none",r.style.stroke="none",N(r.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function $$(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.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 F$=function(){function r(){}return r}(),U0=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new F$},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],c=this.barWidth,f=0;f<a.length;f+=3)u[i]=c,u[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],t.rect(s[0],s[1],u[0],u[1])},e}(Pe);function Y0(r,e,t,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),u=r.getModel("backgroundStyle"),c=a.getLayout("largeBackgroundPoints");if(c){var f=new U0({shape:{points:c},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(u.getItemStyle()),e.add(f),t&&t.push(f)}var d=new U0({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=i,d.largeDataIndices=o,d.barWidth=s,e.add(d),d.useStyle(a.getVisual("style")),d.style.stroke=null,Te(d).seriesIndex=r.seriesIndex,r.get("silent")||(d.on("mousedown",Z0),d.on("mousemove",Z0)),t&&t.push(d)}var Z0=zc(function(r){var e=this,t=H$(e,r.offsetX,r.offsetY);Te(e).dataIndex=t>=0?t:null},30,!1);function H$(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],u=[],c=r.barWidth,f=0,d=i.length/3;f<d;f++){var h=f*3;if(u[n]=c,u[a]=i[h+2],s[n]=i[h+n],s[a]=i[h+a],u[a]<0&&(s[a]+=u[a],u[a]=-u[a]),e>=s[0]&&e<=s[0]+u[0]&&t>=s[1]&&t<=s[1]+u[1])return o[f]}return-1}function MC(r,e,t){if(fa(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function G$(r,e,t){var n=r.type==="polar"?on:Oe;return new n({shape:MC(e,t,r),silent:!0,z2:0})}function W$(r){r.registerChartView(V$),r.registerSeriesModel(A$),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,me(Gz,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Wz("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,TC("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var X0=Math.PI*2,zl=Math.PI/180;function U$(r,e,t){e.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=_P(n,t),s=o.cx,u=o.cy,c=o.r,f=o.r0,d=o.viewRect,h=-n.get("startAngle")*zl,v=n.get("endAngle"),p=n.get("padAngle")*zl;v=v==="auto"?h-X0:-v*zl;var g=n.get("minAngle")*zl,y=g+p,m=0;a.each(i,function(P){!isNaN(P)&&m++});var b=a.getSum(i),_=Math.PI/(b||m)*2,S=n.get("clockwise"),w=n.get("roseType"),x=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var k=S?1:-1,T=[h,v],D=k*p/2;np(T,!S),h=T[0],v=T[1];var M=EC(n);M.startAngle=h,M.endAngle=v,M.clockwise=S,M.cx=s,M.cy=u,M.r=c,M.r0=f;var A=Math.abs(v-h),E=A,I=0,B=h;if(a.setLayout({viewRect:d,r:c}),a.each(i,function(P,L){var V;if(isNaN(P)){a.setItemLayout(L,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:u,r0:f,r:w?NaN:c});return}w!=="area"?V=b===0&&x?_:P*_:V=A/m,V<y?(V=y,E-=y):I+=P;var z=B+k*V,O=0,W=0;p>V?(O=B+k*V/2,W=O):(O=B+D,W=z-D),a.setItemLayout(L,{angle:V,startAngle:O,endAngle:W,clockwise:S,cx:s,cy:u,r0:f,r:w?ze(P,C,[f,c]):c}),B=z}),E<X0&&m)if(E<=.001){var R=A/m;a.each(i,function(P,L){if(!isNaN(P)){var V=a.getItemLayout(L);V.angle=R;var z=0,O=0;R<p?(z=h+k*(L+1/2)*R,O=z):(z=h+k*L*R+D,O=h+k*(L+1)*R-D),V.startAngle=z,V.endAngle=O}})}else _=E/I,B=h,a.each(i,function(P,L){if(!isNaN(P)){var V=a.getItemLayout(L),z=V.angle===y?y:P*_,O=0,W=0;z<p?(O=B+k*z/2,W=O):(O=B+D,W=B+k*z-D),V.startAngle=O,V.endAngle=W,B+=k*z}})})}var EC=Re();function AC(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Y$=Math.PI/180;function j0(r,e,t,n,a,i,o,s,u,c){if(r.length<2)return;function f(g){for(var y=g.rB,m=y*y,b=0;b<g.list.length;b++){var _=g.list[b],S=Math.abs(_.label.y-t),w=n+_.len,x=w*w,C=Math.sqrt(Math.abs((1-S*S/m)*x)),k=e+(C+_.len2)*a,T=k-_.label.x,D=_.targetTextWidth-T*a;NC(_,D,!0),_.label.x=k}}function d(g){for(var y={list:[],maxY:0},m={list:[],maxY:0},b=0;b<g.length;b++)if(g[b].labelAlignTo==="none"){var _=g[b],S=_.label.y>t?m:y,w=Math.abs(_.label.y-t);if(w>=S.maxY){var x=_.label.x-e-_.len2*a,C=n+_.len,k=Math.abs(x)<C?Math.sqrt(w*w/(1-x*x/C/C)):C;S.rB=k,S.maxY=w}S.list.push(_)}f(y),f(m)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var p=r[v].label.x-c;r[v].linePoints[1][0]+=p,r[v].label.x=c}I5(r,1,u,u+o)&&d(r)}function Z$(r,e,t,n,a,i,o,s){for(var u=[],c=[],f=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;yd(r[h])||(v.x<e?(f=Math.min(f,v.x),u.push(r[h])):(d=Math.max(d,v.x),c.push(r[h])))}for(var h=0;h<r.length;h++){var p=r[h];if(!yd(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var v=p.label,g=p.linePoints,y=void 0;p.labelAlignTo==="edge"?v.x<e?y=g[2][0]-p.labelDistance-o-p.edgeDistance:y=o+a-p.edgeDistance-g[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?v.x<e?y=f-o-p.bleedMargin:y=o+a-d-p.bleedMargin:v.x<e?y=v.x-o-p.bleedMargin:y=o+a-v.x-p.bleedMargin,p.targetTextWidth=y,NC(p,y,!1)}}j0(c,e,t,n,1,a,i,o,s,d),j0(u,e,t,n,-1,a,i,o,s,f);for(var h=0;h<r.length;h++){var p=r[h];if(!yd(p)&&p.linePoints){var v=p.label,g=p.linePoints,m=p.labelAlignTo==="edge",b=v.style.padding,_=b?b[1]+b[3]:0,S=v.style.backgroundColor?0:_,w=p.rect.width+S,x=g[1][0]-g[2][0];m?v.x<e?g[2][0]=o+p.edgeDistance+w+p.labelDistance:g[2][0]=o+a-p.edgeDistance-w-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 NC(r,e,t){if(r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,u=s?s[1]+s[3]:0,c=a.overflow,f=i.width+(o?0:u);if(e<f||t){if(c&&c.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-u);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=e-u,v=e<f?h:t?h>r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}IC(i,n)}}}function IC(r,e){q0.rect=r,hC(q0,e,X$)}var X$={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},q0={};function yd(r){return r.position==="center"}function j$(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*Y$,s=e.getLayout("viewRect"),u=e.getLayout("r"),c=s.width,f=s.x,d=s.y,h=s.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,T=C.getTextContent(),D=C.getTextGuideLine(),M=e.getItemModel(x),A=M.getModel("label"),E=A.get("position")||M.get(["emphasis","label","position"]),I=A.get("distanceToLabelLine"),B=A.get("alignTo"),R=de(A.get("edgeDistance"),c),P=A.get("bleedMargin");P==null&&(P=Math.min(c,h)>200?10:2);var L=M.getModel("labelLine"),V=L.get("length");V=de(V,c);var z=L.get("length2");if(z=de(z,c),Math.abs(k.endAngle-k.startAngle)<o){N(T.states,v),T.ignore=!0,D&&(N(D.states,v),D.ignore=!0);return}if(p(T)){var O=(k.startAngle+k.endAngle)/2,W=Math.cos(O),j=Math.sin(O),ne,q,Q,Be;n=k.cx,a=k.cy;var ae=E==="inside"||E==="inner";if(E==="center")ne=k.cx,q=k.cy,Be="center";else{var le=(ae?(k.r+k.r0)/2*W:k.r*W)+n,Se=(ae?(k.r+k.r0)/2*j:k.r*j)+a;if(ne=le+W*3,q=Se+j*3,!ae){var J=le+W*(V+u-k.r),ie=Se+j*(V+u-k.r),$e=J+(W<0?-1:1)*z,Ae=ie;B==="edge"?ne=W<0?f+R:f+c-R:ne=$e+(W<0?-I:I),q=Ae,Q=[[le,Se],[J,ie],[$e,Ae]]}Be=ae?"center":B==="edge"?W>0?"right":"left":W>0?"left":"right"}var xe=Math.PI,Fe=0,tt=A.get("rotate");if(He(tt))Fe=tt*(xe/180);else if(E==="center")Fe=0;else if(tt==="radial"||tt===!0){var At=W<0?-O+xe:-O;Fe=At}else if(tt==="tangential"&&E!=="outside"&&E!=="outer"){var at=Math.atan2(W,j);at<0&&(at=xe*2+at);var cn=j>0;cn&&(at=xe+at),Fe=at-xe}if(i=!!Fe,T.x=ne,T.y=q,T.rotation=Fe,T.setStyle({verticalAlign:"middle"}),ae){T.setStyle({align:Be});var Nn=T.states.select;Nn&&(Nn.x+=T.x,Nn.y+=T.y)}else{var $r=new ye(0,0,0,0);IC($r,T),t.push({label:T,labelLine:D,position:E,len:V,len2:z,minTurnAngle:L.get("minTurnAngle"),maxSurfaceAngle:L.get("maxSurfaceAngle"),surfaceNormal:new ke(W,j),linePoints:Q,textAlign:Be,labelDistance:I,labelAlignTo:B,edgeDistance:R,bleedMargin:P,rect:$r,unconstrainedWidth:$r.width,labelStyleWidth:T.style.width})}C.setTextConfig({inside:ae})}}),!i&&r.get("avoidLabelOverlap")&&Z$(t,n,a,u,c,h,f,d);for(var g=0;g<t.length;g++){var y=t[g],m=y.label,b=y.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:y.textAlign}),_&&(N(m.states,v),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(b){var w=y.linePoints;_||!w?(N(b.states,v),b.ignore=!0):(C5(w,y.minTurnAngle),k5(w,y.surfaceNormal,y.maxSurfaceAngle),b.setShape({points:w}),m.__hostTarget.textGuideLineConfig={anchor:new ke(w[0][0],w[0][1])})}}}var q$=function(r){H(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new We;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,u=t.getItemModel(n),c=u.getModel("emphasis"),f=t.getItemLayout(n),d=Y(Qo(u.getModel("itemStyle"),f,!0),f);if(isNaN(d.startAngle)){o.setShape(d);return}if(i){o.setShape(d);var h=s.getShallow("animationType");s.ecModel.ssr?(mt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=d.cx,o.originY=d.cy):h==="scale"?(o.shape.r=f.r0,mt(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),mt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ke(o,{shape:{endAngle:f.endAngle}},s,n))}else Ji(o),Ke(o,{shape:d},s,n);o.useStyle(t.getItemVisual(n,"style")),Ir(o,u);var v=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),g=Math.cos(v)*p,y=Math.sin(v)*p,m=u.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=Y({r:f.r+(c.get("scale")&&c.get("scaleSize")||0)},Qo(c.getModel("itemStyle"),f)),Y(o.ensureState("select"),{x:g,y,shape:Qo(u.getModel(["select","itemStyle"]),f)}),Y(o.ensureState("blur"),{shape:Qo(u.getModel(["blur","itemStyle"]),f)});var b=o.getTextGuideLine(),_=o.getTextContent();b&&Y(b.ensureState("select"),{x:g,y}),Y(_.ensureState("select"),{x:g,y}),ar(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),u=n.getItemVisual(a,"style"),c=u&&u.fill,f=u&&u.opacity;ln(i,yr(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:c,defaultOpacity:f,defaultText:t.getFormattedLabel(a,"normal")||n.getName(a)});var d=i.getTextContent();i.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new An,this.setTextGuideLine(v)),D5(this,M5(o),{stroke:c,opacity:xn(s.get(["lineStyle","opacity"]),f,1)})}},e}(on),K$=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.getData(),s=this._data,u=this.group,c;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),d=1;isNaN(f&&f.startAngle)&&d<o.count();++d)f=o.getItemLayout(d);f&&(c=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=EC(t),v=new on({shape:he(h)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,u.add(v)}o.diff(s).add(function(p){var g=new q$(o,p,c);o.setItemGraphicEl(p,g),u.add(g)}).update(function(p,g){var y=s.getItemGraphicEl(g);y.updateData(o,p,c),y.off("click"),u.add(y),o.setItemGraphicEl(p,y)}).remove(function(p){var g=s.getItemGraphicEl(p);fs(g,t,p)}).execute(),j$(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,u=Math.sqrt(o*o+s*s);return u<=i.r&&u>=i.r0}},e.type="pie",e}(yt);function Yc(r,e,t){e=Z(e)&&{coordDimensions:e}||Y({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=Fp(n,e).dimensions,i=new Tn(a,r);return i.initData(n,t),i}var BC=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}(),Q$=Re(),LC=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new BC(oe(this.getData,this),oe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Yc(this,{coordDimensions:["value"],encodeDefaulter:me(DP,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=Q$(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),i=a.seats=vB(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Au(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(wt);hP({fullType:LC.type,getCoord2:function(r){return r.getShallow("center")}});function J$(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(He(o)&&!isNaN(o)&&o<0)})}}}function e3(r){r.registerChartView(K$),r.registerSeriesModel(LC),cO("pie",r.registerAction),r.registerLayout(me(U$,"pie")),r.registerProcessor(AC("pie")),r.registerProcessor(J$("pie"))}var t3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return Xs(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:G.color.primary}},universalTransition:{divideShape:"clone"}},e}(wt),VC=4,r3=function(){function r(){}return r}(),n3=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new r3},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,u=t.getContext?t.getContext():t,c=u&&i[0]<VC,f=this.softClipShape,d;if(c){this._ctx=u;return}for(this._ctx=null,d=this._off;d<a.length;){var h=a[d++],v=a[d++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=d,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,a=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var u=n[s++],c=n[s++];isNaN(u)||isNaN(c)||o&&!o.contain(u,c)||i.fillRect(u-a[0]/2,c-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),u=Math.max(o[1],4),c=i.length/2-1;c>=0;c--){var f=c*2,d=i[f]-s/2,h=i[f+1]-u/2;if(t>=d&&n>=h&&t<=d+s&&n<=h+u)return c}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],u=1/0,c=1/0,f=-1/0,d=-1/0,h=0;h<a.length;){var v=a[h++],p=a[h++];u=Math.min(v,u),f=Math.max(v,f),c=Math.min(p,c),d=Math.max(p,d)}t=this._rect=new ye(u-o/2,c-s/2,f-u+o,d-c+s)}return t},e}(Pe),a3=function(){function r(){this.group=new Ee}return r.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;t=new Float32Array(t.buffer,i,a)}n.setShape("points",t),n.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n){var a=this._newAdded[0],i=t.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,u=new Float32Array(s+i.length);u.set(o),u.set(i,s),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=!0,c.setShape({points:i}),this._setCommon(c,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new n3({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=Vt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<VC;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),u=s&&s.fill;u&&e.setColor(u);var c=Te(e);c.seriesIndex=a.seriesIndex,e.on("mousemove",function(f){c.dataIndex=null;var d=e.hoverDataIdx;d>=0&&(c.dataIndex=d+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),i3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Xp("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var n=t.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new a3:new Zp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(yt),PC={left:0,right:0,top:0,bottom:0},ic=["25%","25%"],o3=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var a=vo(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&la(t.outerBounds,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&la(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:PC,outerBoundsContain:"all",outerBoundsClampWidth:ic[0],outerBoundsClampHeight:ic[1],backgroundColor:G.color.transparent,borderWidth:1,borderColor:G.color.neutral30},e}(Ne),vv=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Bt).models[0]},e.type="cartesian2dAxis",e}(Ne);ir(vv,tC);var RC={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:G.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:G.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:G.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[G.color.backgroundTint,G.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:G.color.neutral00,borderColor:G.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},s3=Ce({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},RC),jp=Ce({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:G.color.axisMinorSplitLine,width:1}}},RC),l3=Ce({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},jp),u3=Me({logBase:10},jp);const OC={category:s3,value:jp,time:l3,log:u3};var c3={value:1,category:1,time:1,log:1},f3=null;function d3(){return f3}function K0(r,e,t,n){N(c3,function(a,i){var o=Ce(Ce({},OC[i],!0),n,!0),s=function(u){H(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=xs(this),v=h?vo(f):{},p=d.getTheme();Ce(f,p.get(i+"Axis")),Ce(f,this.getDefaultOption()),f.type=Q0(f),h&&la(f,v,h)},c.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=sv.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.prototype.updateAxisBreaks=function(f){return{breaks:[]}},c.type=e+"Axis."+i,c.defaultOption=o,c}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",Q0)}function Q0(r){return r.type||(r.data?"category":"value")}var h3=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return X(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),et(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),pv=["x","y"];function J0(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var v3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=pv,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!J0(t)||!J0(n))){var a=t.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),u=a[1]-a[0],c=i[1]-i[0];if(!(!u||!c)){var f=(s[0]-o[0])/u,d=(s[1]-o[1])/c,h=o[0]-a[0]*f,v=o[1]-i[0]*d,p=this._transform=[f,0,0,d,h,v];this._invTransform=lo([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new ye(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return zt(a,t,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=u.toGlobalCoord(u.dataToCoord(o,n)),a},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),u=a.parse(t[0]),c=i.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n,a){if(a=a||[],this._invTransform)return zt(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(n[0],n[1])-i+t,u=Math.max(a[0],a[1])-o+t;return new ye(i,o,s,u)},e}(h3),p3=function(r){H(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(uC),g3="expandAxisBreak",Kn=Math.PI,m3=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],y3=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Es=Re(),zC=Re(),$C=function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[t]||(a[t]=[]);return i[n]||(i[n]={ready:{}})},r}();function b3(r,e,t,n){var a=t.axis,i=e.ensureRecord(t),o=[],s,u=qp(r.axisName)&&no(r.nameLocation);N(n,function(p){var g=ca(p);if(!(!g||g.label.ignore)){o.push(g);var y=i.transGroup;u&&(y.transform?lo(Io,y.transform):Xv(Io),g.transform&&as(Io,Io,g.transform),ye.copy($l,g.localRect),$l.applyTransform(Io),s?s.union($l):ye.copy(s=new ye(0,0,0,0),$l))}});var c=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[c];if(o.sort(function(p,g){return Math.abs(p.label[c]-f)-Math.abs(g.label[c]-f)}),u&&s){var d=a.getExtent(),h=Math.min(d[0],d[1]),v=Math.max(d[0],d[1])-h;s.union(new ye(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Io=Mr(),$l=new ye(0,0,0,0),FC=function(r,e,t,n,a,i){if(no(r.nameLocation)){var o=i.stOccupiedRect;o&&HC(A5({},o,i.transGroup.transform),n,a)}else GC(i.labelInfoList,i.dirVec,n,a)};function HC(r,e,t){var n=new ke;Up(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&N5(e,n)}function GC(r,e,t,n){for(var a=ke.dot(n,e)>=0,i=0,o=r.length;i<o;i++){var s=r[a?i:o-1-i];s.label.ignore||HC(s,t,n)}}var Dn=function(){function r(e,t,n,a){this.group=new Ee,this._axisModel=e,this._api=t,this._local={},this._shared=a||new $C(FC),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(e){if(process.env.NODE_ENV!=="production"){var t=this._shared.ensureRecord(this._axisModel).ready;ce(!t.axisLine&&!t.axisTickLabelDetermine),t.axisName=t.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},a=se(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=se(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:se(e.nameDirection,1),tickDirection:se(e.tickDirection,1),labelDirection:se(e.labelDirection,1),labelOffset:se(e.labelOffset,0),silent:se(e.silent,!0),axisName:a,nameLocation:xn(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:qp(a)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};process.env.NODE_ENV!=="production"&&(ce(o.position!=null),ce(o.rotation!=null)),this._cfg=o;var s=new Ee({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(t);u.transGroup=this._transformGroup,u.dirVec=new ke(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),N(_3,function(a){e[a]&&S3[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},r.innerTextLayout=function(e,t,n){var a=bS(t-e),i,o;return Du(a)?(o=n>0?"top":"bottom",i="center"):Du(a-Kn)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Kn?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),_3=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],S3={axisLine:function(r,e,t,n,a,i,o){if(process.env.NODE_ENV!=="production"){var s=t.ensureRecord(n).ready;ce(!s.axisLine),s.axisLine=!0}var u=n.get(["axisLine","show"]);if(u==="auto"&&(u=!0,r.raw.axisLineAutoShow!=null&&(u=!!r.raw.axisLineAutoShow)),!!u){var c=n.axis.getExtent(),f=i.transform,d=[c[0],0],h=[c[1],0],v=d[0]>h[0];f&&(zt(d,d,f),zt(h,h,f));var p=Y({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())d3().buildAxisBreakLine(n,a,i,g);else{var y=new Lr(Y({shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]}},g));Ss(y.shape,y.style.lineWidth),y.anid="line",a.add(y)}var m=n.get(["axisLine","symbol"]);if(m!=null){var b=n.get(["axisLine","symbolSize"]);te(m)&&(m=[m,m]),(te(b)||He(b))&&(b=[b,b]);var _=Hc(n.get(["axisLine","symbolOffset"])||0,b),S=b[0],w=b[1];N([{rotate:r.rotation+Math.PI/2,offset:_[0],r:0},{rotate:r.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((d[0]-h[0])*(d[0]-h[0])+(d[1]-h[1])*(d[1]-h[1]))}],function(x,C){if(m[C]!=="none"&&m[C]!=null){var k=Vt(m[C],-S/2,-w/2,S,w,p.stroke,!0),T=x.r+x.offset,D=v?h:d;k.attr({rotation:x.rotate,x:D[0]+T*Math.cos(r.rotation),y:D[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),a.add(k)}})}}},axisTickLabelEstimate:function(r,e,t,n,a,i,o,s){if(process.env.NODE_ENV!=="production"){var u=t.ensureRecord(n).ready;ce(!u.axisTickLabelDetermine),u.axisTickLabelEstimate=!0}var c=tb(e,a,s);c&&eb(r,e,t,n,a,i,o,Pr.estimate)},axisTickLabelDetermine:function(r,e,t,n,a,i,o,s){if(process.env.NODE_ENV!=="production"){var u=t.ensureRecord(n).ready;u.axisTickLabelDetermine=!0}var c=tb(e,a,s);c&&eb(r,e,t,n,a,i,o,Pr.determine);var f=k3(r,a,i,n);C3(r,e.labelLayoutList,f),T3(r,a,i,n,r.tickDirection)},axisName:function(r,e,t,n,a,i,o,s){var u=t.ensureRecord(n);if(process.env.NODE_ENV!=="production"){var c=u.ready;ce(c.axisTickLabelEstimate||c.axisTickLabelDetermine),c.axisName=!0}e.nameEl&&(a.remove(e.nameEl),e.nameEl=u.nameLayout=u.nameLocation=null);var f=r.axisName;if(qp(f)){var d=r.nameLocation,h=r.nameDirection,v=n.getModel("nameTextStyle"),p=n.get("nameGap")||0,g=n.axis.getExtent(),y=n.axis.inverse?-1:1,m=new ke(0,0),b=new ke(0,0);d==="start"?(m.x=g[0]-y*p,b.x=-y):d==="end"?(m.x=g[1]+y*p,b.x=y):(m.x=(g[0]+g[1])/2,m.y=r.labelOffset+h*p,b.y=h);var _=Mr();b.transform(qv(_,_,r.rotation));var S=n.get("nameRotate");S!=null&&(S=S*Kn/180);var w,x;no(d)?w=Dn.innerTextLayout(r.rotation,S??r.rotation,h):(w=w3(r.rotation,d,S||0,g),x=r.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(w.rotation)),!isFinite(x)&&(x=null)));var C=v.getFont(),k=n.get("nameTruncate",!0)||{},T=k.ellipsis,D=rr(r.raw.nameTruncateMaxWidth,k.maxWidth,x),M=s.nameMarginLevel||0,A=new We({x:m.x,y:m.y,rotation:w.rotation,silent:Dn.isLabelSilent(n),style:lt(v,{text:f,font:C,overflow:"truncate",width:D,ellipsis:T,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||w.textAlign,verticalAlign:v.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(Hs({el:A,componentModel:n,itemName:f}),A.__fullText=f,A.anid="name",n.get("triggerEvent")){var E=Dn.makeAxisEventDataBase(n);E.targetType="axisName",E.name=f,Te(A).eventData=E}i.add(A),A.updateTransform(),e.nameEl=A;var I=u.nameLayout=ca({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:no(d)?m3[M]:y3[M]});if(u.nameLocation=d,a.add(A),A.decomposeTransform(),r.shouldNameMoveOverlap&&I){var B=t.ensureRecord(n);process.env.NODE_ENV!=="production"&&ce(B.labelInfoList),t.resolveAxisNameOverlap(r,t,n,I,b,B)}}}};function eb(r,e,t,n,a,i,o,s){UC(e)||D3(r,e,a,s,n,o);var u=e.labelLayoutList;M3(r,n,u,i),r.rotation;var c=r.optionHideOverlap;x3(n,u,c),c&&B5(et(u,function(f){return f&&!f.label.ignore})),b3(r,t,n,u)}function w3(r,e,t,n){var a=bS(t-r),i,o,s=n[0]>n[1],u=e==="start"&&!s||e!=="start"&&s;return Du(a-Kn/2)?(o=u?"bottom":"top",i="center"):Du(a-Kn*1.5)?(o=u?"top":"bottom",i="center"):(o="middle",a<Kn*1.5&&a>Kn/2?i=u?"left":"right":i=u?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function x3(r,e,t){if(Qx(r.axis))return;function n(s,u,c){var f=ca(e[u]),d=ca(e[c]);if(!(!f||!d)){if(s===!1||f.suggestIgnore){Jo(f.label);return}if(d.suggestIgnore){Jo(d.label);return}var h=.1;if(!t){var v=[0,0,0,0];f=k0({marginForce:v},f),d=k0({marginForce:v},d)}Up(f,d,null,{touchThreshold:h})&&Jo(s?d.label:f.label)}}var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=e.length;n(a,0,1),n(i,o-1,o-2)}function C3(r,e,t){r.showMinorTicks||N(e,function(n){if(n&&n.label.ignore)for(var a=0;a<t.length;a++){var i=t[a],o=zC(i),s=Es(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Jo(i);return}}})}function Jo(r){r&&(r.ignore=!0)}function WC(r,e,t,n,a){for(var i=[],o=[],s=[],u=0;u<r.length;u++){var c=r[u].coord;o[0]=c,o[1]=0,s[0]=c,s[1]=t,e&&(zt(o,o,e),zt(s,s,e));var f=new Lr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ss(f.shape,f.style.lineWidth),f.anid=a+"_"+r[u].tickValue,i.push(f);var d=zC(f);d.onBand=!!r[u].onBand,d.tickValue=r[u].tickValue}return i}function k3(r,e,t,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),u=r.tickDirection*i.get("length"),c=a.getTicksCoords(),f=WC(c,t.transform,u,Me(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<f.length;d++)e.add(f[d]);return f}function T3(r,e,t,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),c=a*o.get("length"),f=Me(u.getLineStyle(),Me(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),d=0;d<s.length;d++)for(var h=WC(s[d],t.transform,c,f,"minorticks_"+d),v=0;v<h.length;v++)e.add(h[v])}}function tb(r,e,t){if(UC(r)){var n=r.axisLabelsCreationContext;process.env.NODE_ENV!=="production"&&ce(r.labelGroup&&n);var a=n.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(r.labelGroup),gv(r,null,null,null))}return!0}function D3(r,e,t,n,a,i){var o=a.axis,s=rr(r.raw.axisLabelShow,a.get(["axisLabel","show"])),u=new Ee;t.add(u);var c=ec(n);if(!s||o.scale.isBlank()){gv(e,[],u,c);return}var f=a.getModel("axisLabel"),d=o.getViewLabels(c),h=(rr(r.raw.labelRotate,f.get("rotate"))||0)*Kn/180,v=Dn.innerTextLayout(r.rotation,h,r.labelDirection),p=a.getCategories&&a.getCategories(!0),g=[],y=a.get("triggerEvent"),m=1/0,b=-1/0;N(d,function(S,w){var x,C=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,k=S.formattedLabel,T=S.rawLabel,D=f;if(p&&p[C]){var M=p[C];fe(M)&&M.textStyle&&(D=new Ue(M.textStyle,f,a.ecModel))}var A=D.getTextColor()||a.get(["axisLine","lineStyle","color"]),E=D.getShallow("align",!0)||v.textAlign,I=se(D.getShallow("alignMinLabel",!0),E),B=se(D.getShallow("alignMaxLabel",!0),E),R=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||v.textVerticalAlign,P=se(D.getShallow("verticalAlignMinLabel",!0),R),L=se(D.getShallow("verticalAlignMaxLabel",!0),R),V=10+(((x=S.time)===null||x===void 0?void 0:x.level)||0);m=Math.min(m,V),b=Math.max(b,V);var z=new We({x:0,y:0,rotation:0,silent:Dn.isLabelSilent(a),z2:V,style:lt(D,{text:k,align:w===0?I:w===d.length-1?B:E,verticalAlign:w===0?P:w===d.length-1?L:R,fill:ue(A)?A(o.type==="category"?T:o.type==="value"?C+"":C,w):A})});z.anid="label_"+C;var O=Es(z);if(O.break=S.break,O.tickValue=C,O.layoutRotation=v.rotation,Hs({el:z,componentModel:a,itemName:k,formatterParamsExtra:{isTruncated:function(){return z.isTruncated},value:T,tickIndex:w}}),y){var W=Dn.makeAxisEventDataBase(a);W.targetType="axisLabel",W.value=T,W.tickIndex=w,S.break&&(W.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(W.dataIndex=C),Te(z).eventData=W,S.break&&A3(a,i,z,S.break)}g.push(z),u.add(z)});var _=X(g,function(S){return{label:S,priority:Es(S).break?S.z2+(b-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});gv(e,_,u,c)}function UC(r){return!!r.labelLayoutList}function gv(r,e,t,n){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=n}function M3(r,e,t,n){var a=e.get(["axisLabel","margin"]);N(t,function(i,o){var s=ca(i);if(s){var u=s.label,c=Es(u);s.suggestIgnore=u.ignore,u.ignore=!1,bh(vn,E3),vn.x=e.axis.dataToCoord(c.tickValue),vn.y=r.labelOffset+r.labelDirection*a,vn.rotation=c.layoutRotation,n.add(vn),vn.updateTransform(),n.remove(vn),vn.decomposeTransform(),bh(u,vn),u.markRedraw(),nc(s,!0),ca(s)}})}var vn=new Oe,E3=new Oe;function qp(r){return!!r}function A3(r,e,t,n){t.on("click",function(a){var i={type:g3,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function oc(r,e,t){t=t||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,u=n.dim,c=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,h=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}a.position=[u==="y"?h[f[s]]:c[0],u==="x"?h[f[s]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[o],a.labelOffset=i?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),rr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-g:g,a.z2=1,a}function N3(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function rb(r){var e={xAxisModel:null,yAxisModel:null};return N(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Bt).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(a+' "'+xn(r.get(a+"Index"),r.get(a+"Id"),0)+'" not found');e[n]=i}),e}function I3(r,e,t,n,a,i){for(var o=oc(r,t),s=!1,u=!1,c=0;c<e.length;c++)iv(e[c].getOtherAxis(t.axis).scale)&&(s=u=!0,t.axis.type==="category"&&t.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=i,new Dn(t,n,o,a)}function B3(r,e,t){var n=oc(e,t);if(process.env.NODE_ENV!=="production"){var a=r.__getRawCfg();N(je(n),function(i){i!=="position"&&i!=="labelOffset"&&ce(n[i]===a[i])})}r.updateCfg(n)}function YC(r,e,t){var n,a=ua.prototype,i=a.getTicks.call(t),o=a.getTicks.call(t,{expandToNicedExtent:!0}),s=i.length-1,u=a.getInterval.call(t),c=Kx(r,e),f=c.extent,d=c.fixMin,h=c.fixMax;r.type==="log"&&(f=ov(r.base,f,!0)),r.setBreaksFromOption(eC(e)),r.setExtent(f[0],f[1]),r.calcNiceExtent({splitNumber:s,fixMin:d,fixMax:h});var v=a.getExtent.call(r);d&&(f[0]=v[0]),h&&(f[1]=v[1]);var p=a.getInterval.call(r),g=f[0],y=f[1];if(d&&h)p=(y-g)/s;else if(d)for(y=f[0]+p*s;y<f[1]&&isFinite(y)&&isFinite(f[1]);)p=ld(p),y=f[0]+p*s;else if(h)for(g=f[1]-p*s;g>f[0]&&isFinite(g)&&isFinite(f[0]);)p=ld(p),g=f[1]-p*s;else{var m=r.getTicks().length-1;m>s&&(p=ld(p));var b=p*s;y=Math.ceil(f[1]/p)*p,g=pt(y-b),g<0&&f[0]>=0?(g=0,y=pt(b)):y>0&&f[1]<=0&&(y=0,g=-pt(b))}var _=(i[0].value-o[0].value)/u,S=(i[s].value-o[s].value)/u;if(a.setExtent.call(r,g+p*_,y+p*S),a.setInterval.call(r,p),(_||S)&&a.setNiceExtent.call(r,g+p,y-p),process.env.NODE_ENV!=="production"){var w=a.getTicks.call(r);w[1]&&(!Iz(p)||Sh(w[1].value)>Sh(p))&&St("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+(" and alignTicks: true. ("+((n=e.axis)===null||n===void 0?void 0:n.dim)+"AxisIndex: "+e.componentIndex+")"),!0)}}var nb=[[3,1],[0,2]],L3=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pv,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,u=je(o),c=u.length;if(c){for(var f=[],d=c-1;d>=0;d--){var h=+u[d],v=o[h],p=v.model,g=v.scale;iv(g)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(_0(g,p),iv(g)&&(s=v))}f.length&&(s||(s=f.pop(),_0(s.scale,s.model)),N(f,function(y){YC(y.scale,y.model,s.scale)}))}}a(n.x),a(n.y);var i={};N(n.x,function(o){ab(n,"y",o,i)}),N(n.y,function(o){ab(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=Or(e,t),i=this._rect=Ft(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,u=e.get("containLabel");if(ZC(o,i),!n){var c=P3(i,s,o,u,t),f=void 0;if(u)process.env.NODE_ENV!=="production"&&CS("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=sb(i.clone(),"axisLabel",null,i,o,c,a);else{var d=R3(e,i,a),h=d.outerBoundsRect,v=d.parsedOuterBoundsContain,p=d.outerBoundsClamp;h&&(f=sb(h,v,p,i,o,c,a))}XC(i,o,Pr.determine,null,f,a)}N(this._coordsList,function(g){g.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}fe(e)&&(t=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===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",Bt).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",Bt).models[0],i=e.gridModel,o=this._coordsList,s,u;if(t)s=t.coordinateSystem,De(o,s)<0&&(s=null);else if(n&&a)s=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&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(t.eachComponent("xAxis",c("x"),this),t.eachComponent("yAxis",c("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,N(s.x,function(f,d){N(s.y,function(h,v){var p="x"+d+"y"+v,g=new v3(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(bd(d,e)){var v=d.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var p=new p3(f,s5(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),s[f][h]=p,u[f]++}}}},r.prototype._updateScale=function(e,t){N(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(N3(a)){var i=rb(a),o=i.xAxisModel,s=i.yAxisModel;if(!bd(o,t)||!bd(s,t))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),c=a.getData(),f=u.getAxis("x"),d=u.getAxis("y");n(c,f),n(c,d)}},this);function n(a,i){N(Jx(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return N(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);De(t,i)<0&&t.push(i),De(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){gP({targetModel:a,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=rb(a),s=o.xAxisModel,u=o.yAxisModel,c=s.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!c)throw new Error('Grid "'+xn(s.get("gridIndex"),s.get("gridId"),0)+'" not found');if(s.getCoordSysModel()!==u.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var f=c.coordinateSystem;return f.getCartesian(s.componentIndex,u.componentIndex)}}),n},r.dimensions=pv,r}();function bd(r,e){return r.getCoordSysModel()===e}function ab(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)ib(a[u])&&(i=a[u]);else for(var c in a)if(a.hasOwnProperty(c)&&ib(a[c])&&!n[f(a[c])]){i=a[c];break}i&&(n[f(i)]=!0);function f(d){return d.dim+"_"+d.index}}function ib(r){return r&&r.type!=="category"&&r.type!=="time"&&l5(r)}function V3(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}function ZC(r,e){N(r.x,function(t){return ob(t,e.x,e.width)}),N(r.y,function(t){return ob(t,e.y,e.height)})}function ob(r,e,t){var n=[0,t],a=r.inverse?1:0;r.setExtent(n[a],n[1-a]),V3(r,e)}function sb(r,e,t,n,a,i,o){process.env.NODE_ENV!=="production"&&ce(e==="all"||e==="axisLabel"),XC(n,a,Pr.estimate,e,!1,o);var s=[0,0,0,0];c(0),c(1),f(n,0,NaN),f(n,1,NaN);var u=U_(s,function(h){return h>0})==null;return Ru(n,s,!0,!0,t),ZC(a,n),u;function c(h){N(a[Yn[h]],function(v){if(Ms(v.model)){var p=i.ensureRecord(v.model),g=p.labelInfoList;if(g)for(var y=0;y<g.length;y++){var m=g[y],b=v.scale.normalize(Es(m.label).tickValue);b=h===1?1-b:b,f(m.rect,h,b),f(m.rect,1-h,NaN)}var _=p.nameLayout;if(_){var b=no(p.nameLocation)?.5:NaN;f(_.rect,h,b),f(_.rect,1-h,NaN)}}})}function f(h,v,p){var g=r[Yn[v]]-h[Yn[v]],y=h[eo[v]]+h[Yn[v]]-(r[eo[v]]+r[Yn[v]]);g=d(g,1-p),y=d(y,p);var m=nb[v][0],b=nb[v][1];s[m]=nr(s[m],g),s[b]=nr(s[b],y)}function d(h,v){return h>0&&!wn(v)&&v>1e-4&&(h/=v),h}}function P3(r,e,t,n,a){var i=new $C(O3);return N(t,function(o){return N(o,function(s){if(Ms(s.model)){var u=!n;s.axisBuilder=I3(r,e,s.model,a,i,u)}})}),i}function XC(r,e,t,n,a,i){var o=t===Pr.determine;N(e,function(c){return N(c,function(f){Ms(f.model)&&(B3(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};u(0),u(1);function u(c){s[Yn[1-c]]=r[eo[c]]<=i.refContainer[eo[c]]*.5?0:1-c===1?2:1}N(e,function(c,f){return N(c,function(d){Ms(d.model)&&((n==="all"||o)&&d.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&d.axisBuilder.build({axisLine:!0}))})})}function R3(r,e,t){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=e.clone():a==null||a==="auto"?n=Ft(r.get("outerBounds",!0)||PC,t.refContainer):a!=="none"&&process.env.NODE_ENV!=="production"&&Ye("Invalid grid["+r.componentIndex+"].outerBoundsMode.");var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"?o="all":De(["all","axisLabel"],i)<0?(process.env.NODE_ENV!=="production"&&Ye("Invalid grid["+r.componentIndex+"].outerBoundsContain."),o="all"):o=i;var s=[_h(se(r.get("outerBoundsClampWidth",!0),ic[0]),e.width),_h(se(r.get("outerBoundsClampHeight",!0),ic[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var O3=function(r,e,t,n,a,i){var o=t.axis.dim==="x"?"y":"x";FC(r,e,t,n,a,i),no(r.nameLocation)||N(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&GC(s.labelInfoList,s.dirVec,n,a)})};function z3(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return $3(t,r,e),t.seriesInvolved&&H3(t,r),t}function $3(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];N(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=As(s.model),c=r.coordSysAxesInfo[u]={};r.coordSysMap[u]=s;var f=s.model,d=f.getModel("tooltip",n);if(N(s.getAxes(),me(g,!1,null)),s.getTooltipAxes&&n&&d.get("show")){var h=d.get("trigger")==="axis",v=d.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(d.get(["axisPointer","axis"]));(h||v)&&N(p.baseAxes,me(g,v?"cross":!0,h)),v&&N(p.otherAxes,me(g,"cross",!1))}function g(y,m,b){var _=b.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!y&&!mv(_))){m==null&&(m=_.get("triggerTooltip")),_=y?F3(b,d,a,e,y,m):_;var w=_.get("snap"),x=_.get("triggerEmphasis"),C=As(b.model),k=m||w||b.type==="category",T=r.axesInfo[C]={key:C,axis:b,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:x,involveSeries:k,snap:w,useHandle:mv(_),seriesModels:[],linkGroup:null};c[C]=T,r.seriesInvolved=r.seriesInvolved||k;var D=G3(i,b);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[C]=T,M.mapper=i[D].mapper,T.linkGroup=M}}}})}function F3(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};N(s,function(h){u[h]=he(o.get(h))}),u.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(u.type="line");var c=u.label||(u.label={});if(c.show==null&&(c.show=!1),a==="cross"){var f=o.get(["label","show"]);if(c.show=f??!0,!i){var d=u.lineStyle=o.get("crossStyle");d&&Me(c,d.textStyle)}}return r.model.getModel("axisPointer",new Ue(u,t,n))}function H3(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||N(r.coordSysAxesInfo[As(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function G3(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(_d(i[n+"AxisId"],t.id)||_d(i[n+"AxisIndex"],t.componentIndex)||_d(i[n+"AxisName"],t.name))return a}}function _d(r,e){return r==="all"||Z(r)&&De(r,e)>=0||r===e}function W3(r){var e=Kp(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=mv(t);i==null&&(a.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function Kp(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[As(r)]}function U3(r){var e=Kp(r);return e&&e.axisPointerModel}function mv(r){return!!r.get(["handle","show"])}function As(r){return r.type+"||"+r.id}var Sd={},jC=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.axisPointerClass&&W3(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=U3(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){if(process.env.NODE_ENV!=="production"&&Sd[t])throw new Error("axisPointer "+t+" exists");Sd[t]=n},e.getAxisPointerClass=function(t){return t&&Sd[t]},e.type="axis",e}(Et),yv=Re();function Y3(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),c=a.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(c.length){var f=s.length,d=yv(r).splitAreaColors,h=_e(),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 y=a.toGlobalCoord(c[0].coord),m=o.getAreaStyle();s=Z(s)?s:[s];for(var p=1;p<c.length;p++){var b=a.toGlobalCoord(c[p].coord),_=void 0,S=void 0,w=void 0,x=void 0;a.isHorizontal()?(_=y,S=u.y,w=b-_,x=u.height,y=_+w):(_=u.x,S=y,w=u.width,x=b-S,y=S+x);var C=c[p-1].tickValue;C!=null&&h.set(C,v),e.add(new Oe({anid:C!=null?"area_"+C:null,shape:{x:_,y:S,width:w,height:x},style:Me({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}yv(r).splitAreaColors=h}}}function Z3(r){yv(r).splitAreaColors=null}var X3=["splitArea","splitLine","minorSplitLine","breakArea"],qC=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ee,this.group.add(this._axisGroup),!!Ms(t)){this._axisGroup.add(t.axis.axisBuilder.group),N(X3,function(u){t.get([u,"show"])&&j3[u](this,this._axisGroup,t,t.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||ow(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){Z3(this)},e.type="cartesianAxis",e}(jC),j3={splitLine:function(r,e,t,n,a){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),c=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;u=Z(u)?u:[u];for(var d=n.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,p=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],y=[],m=s.getLineStyle(),b=0;b<p.length;b++){var _=i.toGlobalCoord(p[b].coord);if(!(b===0&&!c||b===p.length-1&&!f)){var S=p[b].tickValue;h?(g[0]=_,g[1]=d.y,y[0]=_,y[1]=d.y+d.height):(g[0]=d.x,g[1]=_,y[0]=d.x+d.width,y[1]=_);var w=v++%u.length,x=new Lr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:Me({stroke:u[w]},m),silent:!0});Ss(x.shape,m.lineWidth),e.add(x)}}}},minorSplitLine:function(r,e,t,n,a){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=n.coordinateSystem.getRect(),c=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var d=[],h=[],v=s.getLineStyle(),p=0;p<f.length;p++)for(var g=0;g<f[p].length;g++){var y=i.toGlobalCoord(f[p][g].coord);c?(d[0]=y,d[1]=u.y,h[0]=y,h[1]=u.y+u.height):(d[0]=u.x,d[1]=y,h[0]=u.x+u.width,h[1]=y);var m=new Lr({anid:"minor_line_"+f[p][g].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:v,silent:!0});Ss(m.shape,v.lineWidth),e.add(m)}},splitArea:function(r,e,t,n,a){Y3(r,e,t,n)},breakArea:function(r,e,t,n,a){t.axis.scale}},KC=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(qC),q3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=KC.type,t}return e.type="yAxis",e}(qC),K3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new Oe({shape:t.coordinateSystem.getRect(),style:Me({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Et),lb={offset:0};function QC(r){r.registerComponentView(K3),r.registerComponentModel(o3),r.registerCoordinateSystem("cartesian2d",L3),K0(r,"x",vv,lb),K0(r,"y",vv,lb),r.registerComponentView(KC),r.registerComponentView(q3),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Q3(r){Ht(QC),r.registerSeriesModel(t3),r.registerChartView(i3),r.registerLayout(Xp("scatter"))}function J3(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();N(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(u,c){n[c]=n[c]||[];var f=a.dataToPoint(u,s);n[c][s]=ub(f)?f:cb(a)})}),t.each(function(o){var s=U_(n[o],function(u){return ub(u)})||cb(a);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function ub(r){return!isNaN(r[0])&&!isNaN(r[1])}function cb(r){return[r.cx,r.cy]}function eF(r){var e=r.polar;if(e){Z(e)||(e=[e]);var t=[];N(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],Z(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}N(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var tF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),u=this._data;function c(h,v){var p=h.getItemVisual(v,"symbol")||"circle";if(p!=="none"){var g=Fc(h.getItemVisual(v,"symbolSize")),y=Vt(p,-1,-1,2,2),m=h.getItemVisual(v,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:m*Math.PI/180||0}),y}}function f(h,v,p,g,y,m){p.removeAll();for(var b=0;b<v.length-1;b++){var _=c(g,y);_&&(_.__dimIdx=b,h[b]?(_.setPosition(h[b]),cw[m?"initProps":"updateProps"](_,{x:v[b][0],y:v[b][1]},t,y)):_.setPosition(v[b]),p.add(_))}}function d(h){return X(h,function(v){return[i.cx,i.cy]})}s.diff(u).add(function(h){var v=s.getItemLayout(h);if(v){var p=new Br,g=new An,y={shape:{points:v}};p.shape.points=d(v),g.shape.points=d(v),mt(p,y,t,h),mt(g,y,t,h);var m=new Ee,b=new Ee;m.add(g),m.add(p),m.add(b),f(g.shape.points,v,b,s,h,!0),s.setItemGraphicEl(h,m)}}).update(function(h,v){var p=u.getItemGraphicEl(v),g=p.childAt(0),y=p.childAt(1),m=p.childAt(2),b={shape:{points:s.getItemLayout(h)}};b.shape.points&&(f(g.shape.points,b.shape.points,m,s,h,!1),Ji(y),Ji(g),Ke(g,b,t),Ke(y,b,t),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(u.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var p=s.getItemModel(v),g=h.childAt(0),y=h.childAt(1),m=h.childAt(2),b=s.getItemVisual(v,"style"),_=b.fill;o.add(h),g.useStyle(Me(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Ir(g,p,"lineStyle"),Ir(y,p,"areaStyle");var S=p.getModel("areaStyle"),w=S.isEmpty()&&S.parentModel.isEmpty();y.ignore=w,N(["emphasis","select","blur"],function(C){var k=p.getModel([C,"areaStyle"]),T=k.isEmpty()&&k.parentModel.isEmpty();y.ensureState(C).ignore=T&&w;var D=p.getModel([C,"lineStyle"]).getLineStyle();g.ensureState(C).style=D;var M=k.getAreaStyle();y.ensureState(C).style=M;var A=p.getModel([C,"itemStyle"]).getItemStyle();m.eachChild(function(E){E.ensureState(C).style=he(A)})}),y.useStyle(Me(p.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:b.decal}));var x=p.getModel("emphasis");m.eachChild(function(C){if(C instanceof _r){var k=C.style;C.useStyle(Y({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},b))}else C.useStyle(b),C.setColor(_),C.style.strokeNoScale=!0;var T=s.getStore().get(s.getDimensionIndex(C.__dimIdx),v);(T==null||isNaN(T))&&(T=""),ln(C,yr(p),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:T,inheritColor:_,defaultOpacity:b.opacity})}),ar(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(yt),rF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new BC(oe(this.getData,this),oe(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return Yc(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),u=this.getData().getName(t),c=u===""?this.name:u,f=tx(this,t);return Vr("section",{header:c,sortBlocks:!0,blocks:X(s,function(d){var h=i.get(i.mapDimension(d.dim),t);return Vr("nameValue",{markerType:"subItem",markerColor:f,name:d.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(X(a.dimensions,function(c){return n.mapDimension(c)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var u=a.getIndicatorAxes();return a.coordToPoint(u[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(wt),Bo=OC.value;function Fl(r,e){return Me({show:e},r)}var nF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),u=this.get("axisName"),c=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),h=this.get("triggerEvent"),v=X(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=Me({color:p.color},u));var y=Ce(he(p),{boundaryGap:t,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:c,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:h},!1);if(te(f)){var m=y.name;y.name=f.replace("{value}",m??"")}else ue(f)&&(y.name=f(y.name,y));var b=new Ue(y,null,this.ecModel);return ir(b,tC.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:G.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ce({lineStyle:{color:G.color.neutral20}},Bo.axisLine),axisLabel:Fl(Bo.axisLabel,!1),axisTick:Fl(Bo.axisTick,!1),splitLine:Fl(Bo.splitLine,!0),splitArea:Fl(Bo.splitArea,!0),indicator:[]},e}(Ne),aF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll(),this._buildAxes(t,a),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,n){var a=t.coordinateSystem,i=a.getIndicatorAxes(),o=X(i,function(s){var u=s.model.get("showName")?s.name:"",c=new Dn(s.model,n,{axisName:u,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return c});N(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),u=o.getModel("lineStyle"),c=s.getModel("areaStyle"),f=o.get("show"),d=s.get("show"),h=u.get("color"),v=c.get("color"),p=Z(h)?h:[h],g=Z(v)?v:[v],y=[],m=[];function b(B,R,P){var L=P%R.length;return B[L]=B[L]||[],L}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,w=n.cy,x=0;x<_.length;x++){if(f){var C=b(y,p,x);y[C].push(new $s({shape:{cx:S,cy:w,r:_[x].coord}}))}if(d&&x<_.length-1){var C=b(m,g,x);m[C].push(new Ac({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var k,T=X(a,function(B,R){var P=B.getTicksCoords();return k=k==null?P.length-1:Math.min(P.length-1,k),X(P,function(L){return n.coordToPoint(L.coord,R)})}),D=[],x=0;x<=k;x++){for(var M=[],A=0;A<a.length;A++)M.push(T[A][x]);if(M[0]?M.push(M[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+x),f){var C=b(y,p,x);y[C].push(new An({shape:{points:M}}))}if(d&&D){var C=b(m,g,x-1);m[C].push(new Br({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var E=u.getLineStyle(),I=c.getAreaStyle();N(m,function(B,R){this.group.add(Vh(B,{style:Me({stroke:"none",fill:g[R%g.length]},I),silent:!0}))},this),N(y,function(B,R){this.group.add(Vh(B,{style:Me({fill:"none",stroke:p[R%p.length]},E),silent:!0}))},this)},e.type="radar",e}(Et),iF=function(r){H(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e}(uC),oF=function(){function r(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=X(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new iF(o,new ua);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=Math.sqrt(t*t+n*n);t/=a,n/=a;for(var i=Math.atan2(-n,t),o=1/0,s,u=-1,c=0;c<this._indicatorAxes.length;c++){var f=this._indicatorAxes[c],d=Math.abs(i-f.angle);d<o&&(s=f,u=c,o=d)}return[u,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var n=Or(e,t).refContainer,a=e.get("center"),i=Math.min(n.width,n.height)/2;this.cx=de(a[0],n.width)+n.x,this.cy=de(a[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(te(o)||He(o))&&(o=[0,o]),this.r0=de(o[0],i),this.r=de(o[1],i),N(this._indicatorAxes,function(s,u){s.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),s.angle=c},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,a=this._model;N(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,u){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var c=s.getData();N(n,function(f){f.scale.unionExtentFromData(c,c.mapDimension(f.dim))})}},this);var i=a.get("splitNumber"),o=new ua;o.setExtent(0,i),o.setInterval(1),N(n,function(s,u){YC(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent("radar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r}();function sF(r){r.registerCoordinateSystem("radar",oF),r.registerComponentModel(nF),r.registerComponentView(aF),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function lF(r){Ht(sF),r.registerChartView(tF),r.registerSeriesModel(rF),r.registerLayout(J3),r.registerProcessor(AC("radar")),r.registerPreprocessor(eF)}var Qp=Re();function uF(r,e,t){Qp(r)[e]=t}function cF(r,e,t){var n=Qp(r),a=n[e];a===t&&(n[e]=null)}function fb(r,e){return!!Qp(r)[e]}un({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Dt);var fF={axisPointer:1,tooltip:1,brush:1};function JC(r,e,t){var n=e.getComponentByElement(r.topTarget);if(!n||n===t||fF.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===t)return!1;var i=to(n),o=to(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var Jp=function(r){H(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=oe(n._mousedownHandler,n),i=oe(n._mousemoveHandler,n),o=oe(n._mouseupHandler,n),s=oe(n._mousewheelHandler,n),u=oe(n._pinchHandler,n);return n.enable=function(c,f){var d=f.zInfo,h=to(d.component),v=h.z,p=h.zlevel,g={component:d.component,z:v,zlevel:p,z2:se(d.z2,-1/0)},y=Y({},f.triggerInfo);this._opt=Me(Y({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:g,triggerInfo:y}),c==null&&(c=!0),(!this._enabled||this._controlType!==c)&&(this._enabled=!0,this.disable(),(c===!0||c==="move"||c==="pan")&&(Vo(t,"mousedown",a,g),Vo(t,"mousemove",i,g),Vo(t,"mouseup",o,g)),(c===!0||c==="scale"||c==="zoom")&&(Vo(t,"mousewheel",s,g),Vo(t,"pinch",u,g)))},n.disable=function(){this._enabled=!1,Po(t,"mousedown",a),Po(t,"mousemove",i),Po(t,"mouseup",o),Po(t,"mousewheel",s),Po(t,"pinch",u)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,n,a){var i=this._opt,o=i.zInfoParsed;if(JC(t,i.api,o.component))return!1;var s=i.triggerInfo,u=s.roamTrigger,c=!1;return u==="global"&&(c=!0),c||(c=s.isInSelf(t,n,a)),c&&s.isInClip&&!s.isInClip(t,n,a)&&(c=!1),c},e.prototype._decideCursorStyle=function(t,n,a,i){var o=t.target;if(!o&&this._checkPointer(t,n,a))return"grab";if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(zg(t)||Lo(t))){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this._checkPointer(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var n=this._zr;if(!(t.gestureEvent==="pinch"||fb(n,"globalPan")||Lo(t))){var a=t.offsetX,i=t.offsetY;if(!this._dragging||!fu("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle("grabbing");var s=this._x,u=this._y,c=a-s,f=i-u;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&Mn(t.event),t.__ecRoamConsumed=!0,db(this,"pan","moveOnMouseMove",t,{dx:c,dy:f,oldX:s,oldY:u,newX:a,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!Lo(t)){var n=this._zr;if(!zg(t)){this._dragging=!1;var a=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);a&&n.setCursorStyle(a)}}},e.prototype._mousewheelHandler=function(t){if(!Lo(t)){var n=fu("zoomOnMouseWheel",t,this._opt),a=fu("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,u=t.offsetY;if(!(i===0||!n&&!a)){if(n){var c=o>3?1.4:o>1?1.2:1.1,f=i>0?c:1/c;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:u,isAvailableBehavior:null})}if(a){var d=Math.abs(i),h=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:u,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(fb(this._zr,"globalPan")||Lo(t))){var n=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,n,a,i,o){t._checkPointer(i,o.originX,o.originY)&&(Mn(i.event),i.__ecRoamConsumed=!0,db(t,n,a,i,o))},e}(br);function Lo(r){return r.__ecRoamConsumed}var dF=Re();function Zc(r){var e=dF(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Vo(r,e,t,n){for(var a=Zc(r),i=a.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var u=o[s].zInfoParsed;if((u.zlevel-n.zlevel||u.z-n.z||u.z2-n.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:n}),hF(r,e)}function Po(r,e,t){for(var n=Zc(r),a=n.roam[e]||[],i=0;i<a.length;i++)if(a[i].listener===t){a.splice(i,1),a.length||vF(r,e);return}}function hF(r,e){var t=Zc(r);t.uniform[e]||r.on(e,t.uniform[e]=function(n){var a=t.roam[e];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function vF(r,e){var t=Zc(r),n=t.uniform;n[e]&&(r.off(e,n[e]),n[e]=null)}function db(r,e,t,n,a){a.isAvailableBehavior=oe(fu,null,t,n),r.trigger(e,a)}function fu(r,e,t){var n=t[r];return!r||n&&(!te(n)||e.event[n+"Key"])}function pF(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function gF(r,e,t,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;o*=e,o=eg(o,i);var s=o/r.zoom;r.zoom=o,ek(a,t,n,s),a.dirty()}function mF(r,e,t,n,a,i){var o=new ye(0,0,0,0);n.enable(r.get("roam"),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(c,f,d){return o.copy(t.getBoundingRect()),o.applyTransform(t.getComputedTransform()),o.contain(f,d)},isInClip:function(c,f,d){return!i||i.contain(f,d)}}}),a.zoomLimit=r.get("scaleLimit");var s=r.coordinateSystem;a.zoom=s?s.getZoom():1;var u=r.subType+"Roam";n.off("pan").off("zoom").on("pan",function(c){pF(a,c.dx,c.dy),e.dispatchAction({seriesId:r.id,type:u,dx:c.dx,dy:c.dy})}).on("zoom",function(c){gF(a,c.scale,c.originX,c.originY),e.dispatchAction({seriesId:r.id,type:u,zoom:c.scale,originX:c.originX,originY:c.originY}),e.updateLabelLayout()})}function hb(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function yF(r,e,t){var n=r.getZoom(),a=r.getCenter(),i=e.zoom,o=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);return e.dx!=null&&e.dy!=null&&(o[0]-=e.dx,o[1]-=e.dy,r.setCenter(hb(r,o))),i!=null&&(i=eg(n*i,t)/n,ek(r,e.originX,e.originY,i),r.updateTransform(),r.setCenter(hb(r,o)),r.setZoom(i*n)),{center:r.getCenter(),zoom:r.getZoom()}}function ek(r,e,t,n){r.x-=(e-r.x)*(n-1),r.y-=(t-r.y)*(n-1),r.scaleX*=n,r.scaleY*=n}function eg(r,e){if(e){var t=e.min||0,n=e.max||1/0;r=Math.max(Math.min(n,r),t)}return r}var vb=zt,bF=function(r){H(e,r);function e(t,n){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new Ha,a._rawTransformable=new Ha,a.name=t,a._opt=n,a}return e.prototype.setBoundingRect=function(t,n,a,i){return this._rect=new ye(t,n,a,i),this._updateCenterAndZoom(),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,a,i){this._transformTo(t,n,a,i),this._viewRect=new ye(t,n,a,i)},e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ye(t,n,a,i));var u=s.parent;s.parent=null,s.decomposeTransform(),s.parent=u,this._updateTransform()},e.prototype.setCenter=function(t){var n=this._opt;n&&n.api&&n.ecModel&&n.ecModel.getShallow("legacyViewCoordSysCenterBase")&&t&&(t=[de(t[0],n.api.getWidth()),de(t[1],n.api.getWidth())]),this._centerOption=he(t),this._updateCenterAndZoom()},e.prototype.setZoom=function(t){this._zoom=eg(t||1,this.zoomLimit),this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,a=t.y+t.height/2;return[n,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._centerOption,n=this._rect;t&&n&&(this._center=[de(t[0],n.width,n.x),de(t[1],n.height,n.y)]);var a=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),u=this.getZoom();s=zt([],s,a),o=zt([],o,a),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=u,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),jv(this.transform||(this.transform=[]),n.transform||Mr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],lo(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,a=new Ha;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?vb(a,t,i):KN(a,t)},e.prototype.pointToData=function(t,n,a){a=a||[];var i=this.invTransform;return i?vb(a,t,i):(a[0]=t[0],a[1]=t[1],a)},e.prototype.convertToPixel=function(t,n,a){var i=pb(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=pb(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Ha);function pb(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function _F(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],n,a;n=t.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function SF(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){xF(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=CF(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function wF(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function gb(r){return arguments.length?r:DF}function es(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function xF(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function CF(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,u=a.hierNode.modifier,c=i.hierNode.modifier,f=o.hierNode.modifier,d=s.hierNode.modifier;s=wd(s),i=xd(i),s&&i;){a=wd(a),o=xd(o),a.hierNode.ancestor=r;var h=s.hierNode.prelim+d-i.hierNode.prelim-c+n(s,i);h>0&&(TF(kF(s,r,t),r,h),c+=h,u+=h),d+=s.hierNode.modifier,c+=i.hierNode.modifier,u+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!wd(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-u),i&&!xd(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=c-f,t=r)}return t}function wd(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function xd(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function kF(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function TF(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function DF(r,e){return r.parentNode===e.parentNode?1:2}var MF=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),EF=function(r){H(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new MF},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],u=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var c=n.orient,f=c==="TB"||c==="BT"?0:1,d=1-f,h=de(n.forkPosition,1),v=[];v[f]=o[f],v[d]=o[d]+(u[d]-o[d])*h,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[f]=s[f],t.lineTo(v[0],v[1]),v[f]=u[f],t.lineTo(v[0],v[1]),t.lineTo(u[0],u[1]);for(var p=1;p<i-1;p++){var g=a[p];t.moveTo(g[0],g[1]),v[f]=g[f],t.lineTo(v[0],v[1])}},e}(Pe),AF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Ee,t}return e.prototype.init=function(t,n){this._controller=new Jp(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,u=t.get("layout");u==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,a),this._updateController(t,null,n,a);var c=this._data;i.diff(c).add(function(f){mb(i,f)&&yb(i,f,null,s,t)}).update(function(f,d){var h=c.getItemGraphicEl(d);if(!mb(i,f)){h&&_b(c,d,h,s,t);return}yb(i,f,h,s,t)}).remove(function(f){var d=c.getItemGraphicEl(f);d&&_b(c,f,d,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,d){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:d})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(d){var h=a.getItemLayout(d);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];oL(i,o,s);var u=this._min,c=this._max;s[0]-o[0]===0&&(o[0]=u?u[0]:o[0]-1,s[0]=c?c[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=u?u[1]:o[1]-1,s[1]=c?c[1]:s[1]+1);var f=t.coordinateSystem=new bF(null,{api:n,ecModel:t.ecModel});f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(t.get("center")),f.setZoom(t.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,n,a,i){var o=this;mF(t,i,this.group,this._controller,this._controllerHost,n),this._controller.on("zoom",function(s){o._updateNodeAndLinkScale(t)})},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=this._getNodeGlobalScale(t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(t){var n=t.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(yt);function mb(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function yb(r,e,t,n,a){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),u=o.getVisual("style").fill,c=o.isExpand===!1&&o.children.length!==0?u:G.color.neutral00,f=r.tree.root,d=o.parentNode===f?o:o.parentNode||o,h=r.getItemGraphicEl(d.dataIndex),v=d.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,g=o.getLayout();i?(t=new Uc(r,e,null,{symbolInnerColor:c,useNameLabel:!0}),t.x=p.x,t.y=p.y):t.updateData(r,e,null,{symbolInnerColor:c,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=g.rawX,t.__radialRawY=g.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Ke(t,{x:g.x,y:g.y},a);var y=t.getSymbolPath();if(a.get("layout")==="radial"){var m=f.children[0],b=m.getLayout(),_=m.children.length,S=void 0,w=void 0;if(g.x===b.x&&o.isExpand===!0&&m.children.length){var x={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};S=Math.atan2(x.y-b.y,x.x-b.x),S<0&&(S=Math.PI*2+S),w=x.x<b.x,w&&(S=S-Math.PI)}else S=Math.atan2(g.y-b.y,g.x-b.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(w=g.x<b.x,w&&(S=S-Math.PI)):(w=g.x>b.x,w||(S=S-Math.PI));var C=w?"left":"right",k=s.getModel("label"),T=k.get("rotate"),D=T*(Math.PI/180),M=y.getTextContent();M&&(y.setTextConfig({position:k.get("position")||C,rotation:T==null?-S:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),E=A==="relative"?X_(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;E&&(Te(t).focus=E),NF(a,o,f,t,p,v,g,n),t.__edge&&(t.onHoverStateChange=function(I){if(I!=="blur"){var B=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);B&&B.hoverState===Os||Mh(t.__edge,I)}})}function NF(r,e,t,n,a,i,o,s){var u=e.getModel(),c=r.get("edgeShape"),f=r.get("layout"),d=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),p=u.getModel("lineStyle").getLineStyle(),g=n.__edge;if(c==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=n.__edge=new Fs({shape:bv(f,d,h,a,a)})),Ke(g,{shape:bv(f,d,h,i,o)},r));else if(c==="polyline"){if(f==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var y=e.children,m=[],b=0;b<y.length;b++){var _=y[b].getLayout();m.push([_.x,_.y])}g||(g=n.__edge=new EF({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:v}})),Ke(g,{shape:{parentPoint:[o.x,o.y],childPoints:m}},r)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}g&&!(c==="polyline"&&!e.isExpand)&&(g.useStyle(Me({strokeNoScale:!0,fill:null},p)),Ir(g,u,"lineStyle"),Vu(g),s.add(g))}function bb(r,e,t,n,a){var i=e.tree.root,o=tk(i,r),s=o.source,u=o.sourceLayout,c=e.getItemGraphicEl(r.dataIndex);if(c){var f=e.getItemGraphicEl(s.dataIndex),d=f.__edge,h=c.__edge||(s.isExpand===!1||s.children.length===1?d:void 0),v=n.get("edgeShape"),p=n.get("layout"),g=n.get("orient"),y=n.get(["lineStyle","curveness"]);h&&(v==="curve"?si(h,{shape:bv(p,g,y,u,u),style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:a}):v==="polyline"&&n.get("layout")==="orthogonal"&&si(h,{shape:{parentPoint:[u.x,u.y],childPoints:[[u.x,u.y]]},style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:a}))}}function tk(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function _b(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=tk(o,i).sourceLayout,u={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};si(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:u}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:u}),i.children.forEach(function(c){bb(c,r,n,a,u)}),bb(i,r,n,a,u)}function bv(r,e,t,n,a){var i,o,s,u,c,f,d,h;if(r==="radial"){c=n.rawX,d=n.rawY,f=a.rawX,h=a.rawY;var v=es(c,d),p=es(c,d+(h-d)*t),g=es(f,h+(d-h)*t),y=es(f,h);return{x1:v.x||0,y1:v.y||0,x2:y.x||0,y2:y.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}else c=n.x,d=n.y,f=a.x,h=a.y,(e==="LR"||e==="RL")&&(i=c+(f-c)*t,o=d,s=f+(c-f)*t,u=h),(e==="TB"||e==="BT")&&(i=c,o=d+(h-d)*t,s=f,u=h+(d-h)*t);return{x1:c,y1:d,x2:f,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:u}}var mr=Re();function IF(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,rk(e,t,r),N(t,function(n){N(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,me(BF,r))})}),e.wrapMethod("cloneShallow",me(VF,r)),N(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,me(LF,r))}),ce(t[e.dataType]===e)}function BF(r,e){if(OF(this)){var t=Y({},mr(this).datas);t[this.dataType]=e,rk(e,t,r)}else tg(e,this.dataType,mr(this).mainData,r);return e}function LF(r,e){return r.struct&&r.struct.update(),e}function VF(r,e){return N(mr(e).datas,function(t,n){t!==e&&tg(t.cloneShallow(),n,e,r)}),e}function PF(r){var e=mr(this).mainData;return r==null||e==null?e:mr(e).datas[r]}function RF(){var r=mr(this).mainData;return r==null?[{data:r}]:X(je(mr(r).datas),function(e){return{type:e,data:mr(r).datas[e]}})}function OF(r){return mr(r).mainData===r}function rk(r,e,t){mr(r).datas={},N(e,function(n,a){tg(n,a,r,t)})}function tg(r,e,t,n){mr(t).datas[e]=r,mr(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=PF,r.getLinkedDataAll=RF}var zF=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){ue(e)&&(n=t,t=e,e=null),e=e||{},te(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),nk=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(f,d){var h=f.value;o=Math.max(o,Z(h)?h.length:1),i.push(f);var v=new zF(Kt(f.name,""),a);d?$F(v,d):a.root=v,a._nodes.push(v);var p=f.children;if(p)for(var g=0;g<p.length;g++)s(p[g],v)}a.root.updateDepthAndHeight(0);var u=Fp(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,c=new Tn(u,t);return c.initData(i),n&&n(c),IF({mainData:c,struct:a,structAttr:"tree"}),a.update(),a},r}();function $F(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function rg(r,e,t){if(r&&De(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if(te(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function ak(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function ik(r,e){var t=ak(r);return De(t,e)>=0}function ng(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var FF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new Ue(a,this,this.ecModel),o=nk.createTree(n,this,s);function s(d){d.wrapMethod("getItemModel",function(h,v){var p=o.getNodeByDataIndex(v);return p&&p.children.length&&p.isExpand||(h.parentModel=i),h})}var u=0;o.eachNode("preorder",function(d){d.depth>u&&(u=d.depth)});var c=t.expandAndCollapse,f=c&&t.initialTreeDepth>=0?t.initialTreeDepth:u;return o.root.eachNode("preorder",function(d){var h=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=h&&h.collapsed!=null?!h.collapsed:d.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),u=s.getValue(),c=s.name;s&&s!==o;)c=s.parentNode.name+"."+c,s=s.parentNode;return Vr("nameValue",{name:c,value:u,noValue:isNaN(u)||u==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ng(a,this),n.collapsed=!a.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:G.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(wt);function HF(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)e(i,t)}function Ro(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)t.push(a[i])}}function GF(r,e){r.eachSeriesByType("tree",function(t){WF(t,e)})}function WF(r,e){var t=Or(r,e).refContainer,n=Ft(r.getBoxLayoutParams(),t);r.layoutInfo=n;var a=r.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=gb(function(S,w){return(S.parentNode===w.parentNode?1:2)/S.depth})):(i=n.width,o=n.height,s=gb());var u=r.getData().tree.root,c=u.children[0];if(c){_F(u),HF(c,SF,s),u.hierNode.modifier=-c.hierNode.prelim,Ro(c,wF);var f=c,d=c,h=c;Ro(c,function(S){var w=S.getLayout().x;w<f.getLayout().x&&(f=S),w>d.getLayout().x&&(d=S),S.depth>h.depth&&(h=S)});var v=f===d?1:s(f,d)/2,p=v-f.getLayout().x,g=0,y=0,m=0,b=0;if(a==="radial")g=i/(d.getLayout().x+v+p),y=o/(h.depth-1||1),Ro(c,function(S){m=(S.getLayout().x+p)*g,b=(S.depth-1)*y;var w=es(m,b);S.setLayout({x:w.x,y:w.y,rawX:m,rawY:b},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(y=o/(d.getLayout().x+v+p),g=i/(h.depth-1||1),Ro(c,function(S){b=(S.getLayout().x+p)*y,m=_==="LR"?(S.depth-1)*g:i-(S.depth-1)*g,S.setLayout({x:m,y:b},!0)})):(_==="TB"||_==="BT")&&(g=i/(d.getLayout().x+v+p),y=o/(h.depth-1||1),Ro(c,function(S){m=(S.getLayout().x+p)*g,b=_==="TB"?(S.depth-1)*y:o-(S.depth-1)*y,S.setLayout({x:m,y:b},!0)}))}}}function UF(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");Y(s,o)})})}function YF(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=yF(i,e,a.get("scaleLimit"));a.setCenter(o.center),a.setZoom(o.zoom)})})}function ZF(r){r.registerChartView(AF),r.registerSeriesModel(FF),r.registerLayout(GF),r.registerVisual(UF),YF(r)}var Sb=["treemapZoomToNode","treemapRender","treemapMove"];function XF(r){for(var e=0;e<Sb.length;e++)r.registerAction({type:Sb[e],update:"updateView"},Dt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],u=rg(t,s,i);if(u){var c=i.getViewRoot();c&&(t.direction=ik(c,u.node)?"rollUp":"drillDown"),i.resetViewRoot(u.node)}}})}function jF(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=IP(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var qF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};ok(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Ue({itemStyle:o},this,n);i=t.levels=KF(i,n);var u=X(i||[],function(d){return new Ue(d,s,n)},this),c=nk.createTree(a,this,f);function f(d){d.wrapMethod("getItemModel",function(h,v){var p=c.getNodeByDataIndex(v),g=p?u[p.depth]:null;return h.parentModel=g||s,h})}return c.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Vr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ng(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=_e(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){jF(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:G.size.l,top:G.size.xxxl,right:G.size.l,bottom:G.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:G.size.m,emptyItemWidth:25,itemStyle:{color:G.color.backgroundShade,textStyle:{color:G.color.secondary}},emphasis:{itemStyle:{color:G.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:G.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:G.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(wt);function ok(r){var e=0;N(r.children,function(n){ok(n);var a=n.value;Z(a)&&(a=a[0]),e+=a});var t=r.value;Z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),Z(r.value)?r.value[0]=t:r.value=t}function KF(r,e){var t=gt(e.get("color")),n=gt(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;N(r,function(s){var u=new Ue(s),c=u.get("color"),f=u.get("decal");(u.get(["itemStyle","color"])||c&&c!=="none")&&(a=!0),(u.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}var QF=8,wb=8,Cd=5,JF=function(){function r(e){this.group=new Ee,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),u=i.getModel("emphasis"),c=s.getModel("textStyle"),f=u.getModel(["itemStyle","textStyle"]),d=Or(e,t).refContainer,h={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},v={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},p=Ft(h,d);this._prepare(n,v,c),this._renderContent(e,v,p,s,u,c,f,a),Mp(o,h,d)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=Kt(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+QF*2,t.emptyItemWidth);t.totalWidth+=s+wb,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s,u){for(var c=0,f=t.emptyItemWidth,d=e.get(["breadcrumb","height"]),h=t.totalWidth,v=t.renderList,p=i.getModel("itemStyle").getItemStyle(),g=v.length-1;g>=0;g--){var y=v[g],m=y.node,b=y.width,_=y.text;h>n.width&&(h-=b-f,b=f,_=null);var S=new Br({shape:{points:e4(c,0,b,d,g===v.length-1,g===0)},style:Me(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new We({style:lt(o,{text:_})}),textConfig:{position:"inside"},z2:zs*1e4,onclick:me(u,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=lt(s,{text:_}),S.ensureState("emphasis").style=p,ar(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),t4(S,e,m),c+=b+wb}},r.prototype.remove=function(){this.group.removeAll()},r}();function e4(r,e,t,n,a,i){var o=[[a?r:r-Cd,e],[r+t,e],[r+t,e+n],[a?r:r-Cd,e+n]];return!i&&o.splice(2,0,[r+t+Cd,e+n/2]),!a&&o.push([r,e+n/2]),o}function t4(r,e,t){Te(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&ng(t,e)}}var r4=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function n4(){return new r4}var _v=Ee,xb=Oe,Cb=3,kb="label",Tb="upperLabel",a4=zs*10,i4=zs*2,o4=zs*3,Ra=Qi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Db=function(r){var e=Ra(r);return e.stroke=e.fill=e.lineWidth=null,e},sc=Re(),s4=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Oo(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(De(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],u=rg(i,s,t),c=i&&i.type,f=t.layoutInfo,d=!this._oldTree,h=this._storage,v=c==="treemapRootToNode"&&u&&h?{rootNodeGroup:h.nodeGroup[u.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(f),g=t.get("animation"),y=this._doRender(p,t,v);g&&!d&&(!c||c==="treemapZoomToNode"||c==="treemapRootToNode")?this._doAnimation(p,y,t,v):y.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,u)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new _v,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=Oo(),u=Oo(),c=this._storage,f=[];function d(b,_,S,w){return l4(n,u,c,a,s,f,b,_,S,w)}g(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=y(c);if(this._oldTree=i,this._storage=u,this._controllerHost){var v=this.seriesModel.layoutInfo,p=i.root.getLayout();p.width===v.width&&p.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:m};function g(b,_,S,w,x){w?(_=b,N(b,function(T,D){!T.isRemoved()&&k(D,D)})):new Wc(_,b,C,C).add(k).update(k).remove(me(k,null)).execute();function C(T){return T.getId()}function k(T,D){var M=T!=null?b[T]:null,A=D!=null?_[D]:null,E=d(M,A,S,x);E&&g(M&&M.viewChildren||[],A&&A.viewChildren||[],E,w,x+1)}}function y(b){var _=Oo();return b&&N(b,function(S,w){var x=_[w];N(S,function(C){C&&(x.push(C),sc(C).willDelete=!0)})}),_}function m(){N(h,function(b){N(b,function(_){_.parent&&_.parent.remove(_)})}),N(f,function(b){b.invisible=!0,b.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),u=(ue(o)?0:o)||0,c=(ue(s)?null:s)||"cubicOut",f=n4();N(n.willDeleteEls,function(d,h){N(d,function(v,p){if(!v.invisible){var g=v.parent,y,m=sc(g);if(i&&i.direction==="drillDown")y=g===i.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var b=0,_=0;m.willDelete||(b=m.nodeWidth/2,_=m.nodeHeight/2),y=h==="nodeGroup"?{x:b,y:_,style:{opacity:0}}:{shape:{x:b,y:_,width:0,height:0},style:{opacity:0}}}y&&f.add(v,y,u,0,c)}})}),N(this._storage,function(d,h){N(d,function(v,p){var g=n.lastsForAnimation[h][p],y={};g&&(v instanceof Ee?g.oldX!=null&&(y.x=v.x,y.y=v.y,v.x=g.oldX,v.y=g.oldY):(g.oldShape&&(y.shape=Y({},v.shape),v.setShape(g.oldShape)),g.fadein?(v.setStyle("opacity",0),y.style={opacity:1}):v.style.opacity!==1&&(y.style={opacity:1})),f.add(v,y,u,0,c))})},this),this._state="animating",f.finished(oe(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this,a=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost);var o=this.seriesModel;a||(a=this._controller=new Jp(t.getZr()),a.on("pan",oe(this._onPan,this)),a.on("zoom",oe(this._onZoom,this))),a.enable(o.get("roam"),{api:t,zInfo:{component:o},triggerInfo:{roamTrigger:o.get("roamTrigger"),isInSelf:function(s,u,c){var f=n._containerGroup;return f?f.getBoundingRect().contain(u-f.x,c-f.y):!1}}}),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.get("zoom")},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>Cb||Math.abs(t.dy)>Cb)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var u=new ye(s.x,s.y,s.width,s.height),c=null,f=this._controllerHost;c=f.zoomLimit;var d=f.zoom=f.zoom||1;if(d*=i,c){var h=c.min||0,v=c.max||1/0;d=Math.max(Math.min(v,d),h)}var p=d/f.zoom;f.zoom=d;var g=this.seriesModel.layoutInfo;n-=g.x,a-=g.y;var y=Mr();ms(y,y,[-n,-a]),Q_(y,y,[p,p]),ms(y,y,[n,a]),u.applyTransform(y),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var u=s.hostTree.data.getItemModel(s.dataIndex),c=u.get("link",!0),f=u.get("target",!0)||"blank";c&&$h(c,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new JF(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(ik(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Oo(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var u=s.transformCoordToLocal(t,n),c=s.shape;if(c.x<=u[0]&&u[0]<=c.x+c.width&&c.y<=u[1]&&u[1]<=c.y+c.height)a={node:o,offsetX:u[0],offsetY:u[1]};else return!1}},this),a},e.type="treemap",e}(yt);function Oo(){return{nodeGroup:[],background:[],content:[]}}function l4(r,e,t,n,a,i,o,s,u,c){if(!o)return;var f=o.getLayout(),d=r.getData(),h=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,p=f.height,g=f.borderWidth,y=f.invisible,m=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,w=_&&_.length,x=h.getModel("itemStyle"),C=h.getModel(["emphasis","itemStyle"]),k=h.getModel(["blur","itemStyle"]),T=h.getModel(["select","itemStyle"]),D=x.get("borderRadius")||0,M=q("nodeGroup",_v);if(!M)return;if(u.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),sc(M).nodeWidth=v,sc(M).nodeHeight=p,f.isAboveViewRoot)return M;var A=q("background",xb,c,i4);A&&z(M,A,w&&f.upperLabelHeight);var E=h.getModel("emphasis"),I=E.get("focus"),B=E.get("blurScope"),R=E.get("disabled"),P=I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():I;if(w)sa(M)&&Wa(M,!1),A&&(Wa(A,!R),d.setItemGraphicEl(o.dataIndex,A),Nh(A,P,B));else{var L=q("content",xb,c,o4);L&&O(M,L),A.disableMorphing=!0,A&&sa(A)&&Wa(A,!1),Wa(M,!R),d.setItemGraphicEl(o.dataIndex,M);var V=h.getShallow("cursor");V&&L.attr("cursor",V),Nh(M,P,B)}return M;function z(ae,le,Se){var J=Te(le);if(J.dataIndex=o.dataIndex,J.seriesIndex=r.seriesIndex,le.setShape({x:0,y:0,width:v,height:p,r:D}),y)W(le);else{le.invisible=!1;var ie=o.getVisual("style"),$e=ie.stroke,Ae=Db(x);Ae.fill=$e;var xe=Ra(C);xe.fill=C.get("borderColor");var Fe=Ra(k);Fe.fill=k.get("borderColor");var tt=Ra(T);if(tt.fill=T.get("borderColor"),Se){var At=v-2*g;j(le,$e,ie.opacity,{x:g,y:0,width:At,height:S})}else le.removeTextContent();le.setStyle(Ae),le.ensureState("emphasis").style=xe,le.ensureState("blur").style=Fe,le.ensureState("select").style=tt,Vu(le)}ae.add(le)}function O(ae,le){var Se=Te(le);Se.dataIndex=o.dataIndex,Se.seriesIndex=r.seriesIndex;var J=Math.max(v-2*g,0),ie=Math.max(p-2*g,0);if(le.culling=!0,le.setShape({x:g,y:g,width:J,height:ie,r:D}),y)W(le);else{le.invisible=!1;var $e=o.getVisual("style"),Ae=$e.fill,xe=Db(x);xe.fill=Ae,xe.decal=$e.decal;var Fe=Ra(C),tt=Ra(k),At=Ra(T);j(le,Ae,$e.opacity,null),le.setStyle(xe),le.ensureState("emphasis").style=Fe,le.ensureState("blur").style=tt,le.ensureState("select").style=At,Vu(le)}ae.add(le)}function W(ae){!ae.invisible&&i.push(ae)}function j(ae,le,Se,J){var ie=h.getModel(J?Tb:kb),$e=Kt(h.get("name"),null),Ae=ie.getShallow("show");ln(ae,yr(h,J?Tb:kb),{defaultText:Ae?$e:null,inheritColor:le,defaultOpacity:Se,labelFetcher:r,labelDataIndex:o.dataIndex});var xe=ae.getTextContent();if(xe){var Fe=xe.style,tt=bc(Fe.padding||0);J&&(ae.setTextConfig({layoutRect:J}),xe.disableLabelLayout=!0),xe.beforeUpdate=function(){var at=Math.max((J?J.width:ae.shape.width)-tt[1]-tt[3],0),cn=Math.max((J?J.height:ae.shape.height)-tt[0]-tt[2],0);(Fe.width!==at||Fe.height!==cn)&&xe.setStyle({width:at,height:cn})},Fe.truncateMinChar=2,Fe.lineOverflow="truncate",ne(Fe,J,f);var At=xe.getState("emphasis");ne(At?At.style:null,J,f)}}function ne(ae,le,Se){var J=ae?ae.text:null;if(!le&&Se.isLeafRoot&&J!=null){var ie=r.get("drillDownIcon",!0);ae.text=ie?ie+" "+J:J}}function q(ae,le,Se,J){var ie=b!=null&&t[ae][b],$e=a[ae];return ie?(t[ae][b]=null,Q($e,ie)):y||(ie=new le,ie instanceof fo&&(ie.z2=u4(Se,J)),Be($e,ie)),e[ae][m]=ie}function Q(ae,le){var Se=ae[m]={};le instanceof _v?(Se.oldX=le.x,Se.oldY=le.y):Se.oldShape=Y({},le.shape)}function Be(ae,le){var Se=ae[m]={},J=o.parentNode,ie=le instanceof Ee;if(J&&(!n||n.direction==="drillDown")){var $e=0,Ae=0,xe=a.background[J.getRawIndex()];!n&&xe&&xe.oldShape&&($e=xe.oldShape.width,Ae=xe.oldShape.height),ie?(Se.oldX=0,Se.oldY=Ae):Se.oldShape={x:$e,y:Ae,width:0,height:0}}Se.fadein=!ie}}function u4(r,e){return r*a4+e}var Ns=N,c4=fe,lc=-1,Mt=function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=he(e);this.type=n,this.mappingMethod=t,this._normalizeData=h4[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(kd(a),f4(a)):t==="category"?a.categories?d4(a):kd(a,!0):(ce(t!=="linear"||a.dataExtent),kd(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return oe(this._normalizeData,this)},r.listVisualTypes=function(){return je(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){fe(e)?N(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=Z(e)?[]:fe(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var u=t.call(n,o,s);a?i=u:i[s]=u}),i},r.retrieveVisuals=function(e){var t={},n;return e&&Ns(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(Z(e))e=e.slice();else if(c4(e)){var t=[];Ns(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var u=t[o].value;if(u!=null){if(u===e||te(u)&&u===e+"")return o;n&&h(u,o)}}for(var o=0,s=t.length;o<s;o++){var c=t[o],f=c.interval,d=c.close;if(f){if(f[0]===-1/0){if(Gl(d[1],e,f[1]))return o}else if(f[1]===1/0){if(Gl(d[0],f[0],e))return o}else if(Gl(d[0],f[0],e)&&Gl(d[1],e,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function h(v,p){var g=Math.abs(v-e);g<i&&(i=g,a=p)}},r.visualHandlers={color:{applyVisual:zo("color"),getColorMapper:function(){var e=this.option;return oe(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),ts.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=df(t,e.parsedVisual,a),i?a:Cn(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Cn(df(e,this.option.parsedVisual),"rgba")},category:ts,piecewise:function(e,t){var n=wv.call(this,t);return n==null&&(n=Cn(df(e,this.option.parsedVisual),"rgba")),n},fixed:Oa}},colorHue:Hl(function(e,t){return ta(e,t)}),colorSaturation:Hl(function(e,t){return ta(e,null,t)}),colorLightness:Hl(function(e,t){return ta(e,null,null,t)}),colorAlpha:Hl(function(e,t){return xu(e,t)}),decal:{applyVisual:zo("decal"),_normalizedToVisual:{linear:null,category:ts,piecewise:null,fixed:null}},opacity:{applyVisual:zo("opacity"),_normalizedToVisual:Sv([0,1])},liftZ:{applyVisual:zo("liftZ"),_normalizedToVisual:{linear:Oa,category:Oa,piecewise:Oa,fixed:Oa}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:Mb,category:ts,piecewise:function(e,t){var n=wv.call(this,t);return n==null&&(n=Mb.call(this,e)),n},fixed:Oa}},symbolSize:{applyVisual:zo("symbolSize"),_normalizedToVisual:Sv([0,1])}},r}();function f4(r){var e=r.pieceList;r.hasSpecialVisual=!1,N(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function d4(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(Ns(e,function(o,s){t[o]=s}),!Z(n)){var a=[];fe(n)?Ns(n,function(o,s){var u=t[s];a[u??lc]=o}):a[lc]=n,n=sk(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function kd(r,e){var t=r.visual,n=[];fe(t)?Ns(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),sk(r,n)}function Hl(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:Sv([0,1])}}function Mb(r){var e=this.option.visual;return e[Math.round(ze(r,[0,1],[0,e.length-1],!0))]||{}}function zo(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function ts(r){var e=this.option.visual;return e[this.option.loop&&r!==lc?r%e.length:r]}function Oa(){return this.option.visual[0]}function Sv(r){return{linear:function(e){return ze(e,r,this.option.visual,!0)},category:ts,piecewise:function(e,t){var n=wv.call(this,t);return n==null&&(n=ze(e,r,this.option.visual,!0)),n},fixed:Oa}}function wv(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=Mt.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function sk(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=X(e,function(t){var n=gr(t);return!n&&process.env.NODE_ENV!=="production"&&St("'"+t+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),e}var h4={linear:function(r){return ze(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Mt.findPieceIndex(r,e,!0);if(t!=null)return ze(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??lc},fixed:Dt};function Gl(r,e,t){return r?e<=t:e<t}var v4="itemStyle",lk=Re();const p4={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||uk(t,{},r.getViewRoot().getAncestors(),r)}};function uk(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(v4),u=g4(s,e,n),c=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),d=s.get("borderColorSaturation"),h;d!=null&&(h=Eb(u),f=m4(d,h)),c.stroke=f;var v=r.viewChildren;if(!v||!v.length)h=Eb(u),c.fill=h;else{var p=y4(r,a,i,s,u,v);N(v,function(g,y){if(g.depth>=t.length||g===t[g.depth]){var m=b4(a,u,g,y,p,n);uk(g,m,t,n)}})}}}function g4(r,e,t){var n=Y({},e),a=t.designatedVisualItemStyle;return N(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function Eb(r){var e=Td(r,"color");if(e){var t=Td(r,"colorAlpha"),n=Td(r,"colorSaturation");return n&&(e=ta(e,null,null,n)),t&&(e=xu(e,t)),e}}function m4(r,e){return e!=null?ta(e,null,null,r):null}function Td(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function y4(r,e,t,n,a,i){if(!(!i||!i.length)){var o=Dd(e,"color")||a.color!=null&&a.color!=="none"&&(Dd(e,"colorAlpha")||Dd(e,"colorSaturation"));if(o){var s=e.get("visualMin"),u=e.get("visualMax"),c=t.dataExtent.slice();s!=null&&s<c[0]&&(c[0]=s),u!=null&&u>c[1]&&(c[1]=u);var f=e.get("colorMappingBy"),d={type:o.name,dataExtent:c,visual:o.range};d.type==="color"&&(f==="index"||f==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var h=new Mt(d);return lk(h).drColorMappingBy=f,h}}}function Dd(r,e){var t=r.get(e);return Z(t)&&t.length?{name:e,range:t}:null}function b4(r,e,t,n,a,i){var o=Y({},e);if(a){var s=a.type,u=s==="color"&&lk(a).drColorMappingBy,c=u==="index"?n:u==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(c)}return o}var Is=Math.max,uc=Math.min,Ab=rr,ag=N,ck=["itemStyle","borderWidth"],_4=["itemStyle","gapWidth"],S4=["upperLabel","show"],w4=["upperLabel","height"];const x4={seriesType:"treemap",reset:function(r,e,t,n){var a=r.option,i=Or(r,t).refContainer,o=Ft(r.getBoxLayoutParams(),i),s=a.size||[],u=de(Ab(o.width,s[0]),i.width),c=de(Ab(o.height,s[1]),i.height),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=rg(n,d,r),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,p=r.getViewRoot(),g=ak(p);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?E4(r,h,p,u,c):v?[v.width,v.height]:[u,c],m=a.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var b={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};p.hostTree.clearLayouts();var _={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(_),fk(p,b,!1,0),_=p.getLayout(),ag(g,function(w,x){var C=(g[x+1]||p).getValue();w.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(A4(o,v,h),!0),r.setLayoutInfo(o),dk(S,new ye(-o.x,-o.y,t.getWidth(),t.getHeight()),g,p,0)}};function fk(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),u=s.get(ck),c=s.get(_4)/2,f=hk(s),d=Math.max(u,f),h=u-c,v=d-c;r.setLayout({borderWidth:u,upperHeight:d,upperLabelHeight:f},!0),a=Is(a-2*h,0),i=Is(i-h-v,0);var p=a*i,g=C4(r,s,p,e,t,n);if(g.length){var y={x:h,y:v,width:a,height:i},m=uc(a,i),b=1/0,_=[];_.area=0;for(var S=0,w=g.length;S<w;){var x=g[S];_.push(x),_.area+=x.getLayout().area;var C=M4(_,m,e.squareRatio);C<=b?(S++,b=C):(_.area-=_.pop().getLayout().area,Nb(_,m,y,c,!1),m=uc(y.width,y.height),_.length=_.area=0,b=1/0)}if(_.length&&Nb(_,m,y,c,!0),!t){var k=s.get("childrenVisibleMin");k!=null&&p<k&&(t=!0)}for(var S=0,w=g.length;S<w;S++)fk(g[S],e,t,n+1)}}}function C4(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var u=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!u)return r.viewChildren=[];o=et(o,function(v){return!v.isRemoved()}),T4(o,s);var c=D4(e,o,s);if(c.sum===0)return r.viewChildren=[];if(c.sum=k4(e,t,c.sum,s,o),c.sum===0)return r.viewChildren=[];for(var f=0,d=o.length;f<d;f++){var h=o[f].getValue()/c.sum*t;o[f].setLayout({area:h})}return u&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:c.dataExtent},!0),o}function k4(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,u=o-1;u>=0;u--){var c=a[n==="asc"?o-u-1:u].getValue();c/t*e<i&&(s=u,t-=c)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function T4(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function D4(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],ag(e,function(u){var c=u.getValue(o);c<s[0]&&(s[0]=c),c>s[1]&&(s[1]=c)})),{sum:n,dataExtent:s}}function M4(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var u=r.area*r.area,c=e*e*t;return u?Is(c*n/u,u/(c*a)):1/0}function Nb(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],u=["width","height"],c=t[s[i]],f=e?r.area/e:0;(a||f>t[u[o]])&&(f=t[u[o]]);for(var d=0,h=r.length;d<h;d++){var v=r[d],p={},g=f?v.getLayout().area/f:0,y=p[u[o]]=Is(f-2*n,0),m=t[s[i]]+t[u[i]]-c,b=d===h-1||m<g?m:g,_=p[u[i]]=Is(b-2*n,0);p[s[o]]=t[s[o]]+uc(n,y/2),p[s[i]]=c+uc(n,_/2),c+=b,v.setLayout(p,!0)}t[s[o]]+=f,t[u[o]]-=f}function E4(r,e,t,n,a){var i=(e||{}).node,o=[n,a];if(!i||i===t)return o;for(var s,u=n*a,c=u*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,d=s.children,h=0,v=d.length;h<v;h++)f+=d[h].getValue();var p=i.getValue();if(p===0)return o;c*=f/p;var g=s.getModel(),y=g.get(ck),m=Math.max(y,hk(g));c+=4*y*y+(3*y+m)*Math.pow(c,.5),c>hm&&(c=hm),i=s}c<u&&(c=u);var b=Math.pow(c/u,.5);return[n*b,a*b]}function A4(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var u=s.getLayout();o[0]+=u.x,o[1]+=u.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function dk(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var u=new ye(e.x-i.x,e.y-i.y,e.width,e.height);ag(r.viewChildren||[],function(c){dk(c,u,t,n,a+1)})}}function hk(r){return r.get(S4)?r.get(w4):0}function N4(r){r.registerSeriesModel(qF),r.registerChartView(s4),r.registerVisual(p4),r.registerLayout(x4),XF(r)}var Ib=Lr.prototype,Md=Fs.prototype,vk=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(vk);function Ed(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var I4=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new vk},e.prototype.buildPath=function(t,n){Ed(n)?Ib.buildPath.call(this,t,n):Md.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return Ed(this.shape)?Ib.pointAt.call(this,t):Md.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=Ed(n)?[n.x2-n.x1,n.y2-n.y1]:Md.tangentAt.call(this,t);return Yv(a,a)},e}(Pe),Ad=["fromSymbol","toSymbol"];function Bb(r){return"_"+r+"Type"}function Lb(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),u=Fc(a),c=Hc(o||0,u);return n+u+c+(i||"")+(s||"")}function Vb(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),u=Fc(a),c=Hc(o||0,u),f=Vt(n,-u[0]/2+c[0],-u[1]/2+c[1],u[0],u[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function B4(r){var e=new I4({name:"line",subPixelOptimize:!0});return xv(e.shape,r),e}function xv(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var L4=function(r){H(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=t.getItemVisual(n,"z2"),u=B4(o);u.shape.percent=0,mt(u,{z2:se(s,0),shape:{percent:1}},i,n),this.add(u),N(Ad,function(c){var f=Vb(c,t,n);this.add(f),this[Bb(c)]=Lb(c,t,n)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),u={shape:{}};xv(u.shape,s),Ke(o,u,i,n),N(Ad,function(c){var f=Lb(c,t,n),d=Bb(c);if(this[d]!==f){this.remove(this.childOfName(c));var h=Vb(c,t,n);this.add(h)}this[d]=f},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,u=a&&a.blurLineStyle,c=a&&a.selectLineStyle,f=a&&a.labelStatesModels,d=a&&a.emphasisDisabled,h=a&&a.focus,v=a&&a.blurScope;if(!a||t.hasItemOption){var p=t.getItemModel(n),g=p.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),u=p.getModel(["blur","lineStyle"]).getLineStyle(),c=p.getModel(["select","lineStyle"]).getLineStyle(),d=g.get("disabled"),h=g.get("focus"),v=g.get("blurScope"),f=yr(p)}var y=t.getItemVisual(n,"style"),m=y.stroke;o.useStyle(y),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=u,o.ensureState("select").style=c,N(Ad,function(x){var C=this.childOfName(x);if(C){C.setColor(m),C.style.opacity=y.opacity;for(var k=0;k<Jt.length;k++){var T=Jt[k],D=o.getState(T);if(D){var M=D.style||{},A=C.ensureState(T),E=A.style||(A.style={});M.stroke!=null&&(E[C.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(E.opacity=M.opacity)}}C.markRedraw()}},this);var b=i.getRawValue(n);ln(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,C){return i.getFormattedLabel(x,C,t.dataType)}},inheritColor:m||G.color.neutral99,defaultOpacity:y.opacity,defaultText:(b==null?t.getName(n):isFinite(b)?pt(b):b)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var w=S.get("distance");Z(w)||(w=[w,w]),_.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),ar(this,h,v,d)},e.prototype.highlight=function(){ii(this)},e.prototype.downplay=function(){oi(this)},e.prototype.updateLayout=function(t,n){this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");xv(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var u=t.childOfName("line");if(!this.__dirty&&!u.__dirty)return;var c=u.shape.percent,f=u.pointAt(0),d=u.pointAt(c),h=q_([],d,f);Yv(h,h);function v(D,M){var A=D.__specifiedRotation;if(A==null){var E=u.tangentAt(M);D.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(E[1],E[0]))}else D.attr("rotation",A)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*c,n.markRedraw()),a&&(a.setPosition(d),v(a,1),a.scaleX=a.scaleY=o*c,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,g=void 0,y=i.__labelDistance,m=y[0]*o,b=y[1]*o,_=c/2,S=u.tangentAt(_),w=[S[1],-S[0]],x=u.pointAt(_);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var C=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var k=-Math.atan2(S[1],S[0]);d[0]<f[0]&&(k=Math.PI+k),i.rotation=k}var T=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-b,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=b,g="top";break;default:T=0,g="middle"}switch(i.__position){case"end":i.x=h[0]*m+d[0],i.y=h[1]*b+d[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*m+f[0],i.y=-h[1]*b+f[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*C+f[0],i.y=f[1]+T,p=S[0]<0?"right":"left",i.originX=-m*C,i.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+T,p="center",i.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*C+d[0],i.y=d[1]+T,p=S[0]>=0?"right":"left",i.originX=m*C,i.originY=-T;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Ee),V4=function(){function r(e){this.group=new Ee,this._LineCtor=e||L4}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=Pb(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,u){t._doUpdate(i,e,u,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Pb(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!P4(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=t.getItemLayout(a);if(Nd(i)){var o=new this._LineCtor(t,a,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){vi(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(Nd(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!Nd(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r}();function P4(r){return r.animators&&r.animators.length>0}function Pb(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:yr(e)}}function Rb(r){return isNaN(r[0])||isNaN(r[1])}function Nd(r){return r&&!Rb(r[0])&&!Rb(r[1])}var R4=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),O4=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new R4},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,u=n.angle,c=n.x-a(u)*s*(s>=o/3?1:2),f=n.y-i(u)*s*(s>=o/3?1:2);u=n.angle-Math.PI/2,t.moveTo(c,f),t.lineTo(n.x+a(u)*s,n.y+i(u)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(u)*s,n.y-i(u)*s),t.lineTo(c,f)},e}(Pe);function z4(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=de(t[0],e.getWidth()),s=de(t[1],e.getHeight()),u=de(r.get("radius"),i/2);return{cx:o,cy:s,r:u}}function Wl(r,e){var t=r==null?"":r+"";return e&&(te(e)?t=e.replace("{value}",t):ue(e)&&(t=e(r))),t}var $4=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=z4(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,u=t.get("clockwise"),c=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),h=d.get("roundCap"),v=h?ac:on,p=d.get("show"),g=d.getModel("lineStyle"),y=g.get("width"),m=[c,f];np(m,!u),c=m[0],f=m[1];for(var b=f-c,_=c,S=[],w=0;p&&w<i.length;w++){var x=Math.min(Math.max(i[w][0],0),1);f=c+b*x;var C=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:u,r0:o.r-y,r:o.r},silent:!0});C.setStyle({fill:i[w][1]}),C.setStyle(g.getLineStyle(["color","width"])),S.push(C),_=f}S.reverse(),N(S,function(T){return s.add(T)});var k=function(T){if(T<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=T&&(D===0?0:i[D-1][0])<T)return i[D][1];return i[D-1][1]};this._renderTicks(t,n,a,k,o,c,f,u,y),this._renderTitleAndDetail(t,n,a,k,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,k,o,c,f,u,y)},e.prototype._renderTicks=function(t,n,a,i,o,s,u,c,f){for(var d=this.group,h=o.cx,v=o.cy,p=o.r,g=+t.get("min"),y=+t.get("max"),m=t.getModel("splitLine"),b=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),w=b.get("splitNumber"),x=de(m.get("length"),p),C=de(b.get("length"),p),k=s,T=(u-s)/S,D=T/w,M=m.getModel("lineStyle").getLineStyle(),A=b.getModel("lineStyle").getLineStyle(),E=m.get("distance"),I,B,R=0;R<=S;R++){if(I=Math.cos(k),B=Math.sin(k),m.get("show")){var P=E?E+f:f,L=new Lr({shape:{x1:I*(p-P)+h,y1:B*(p-P)+v,x2:I*(p-x-P)+h,y2:B*(p-x-P)+v},style:M,silent:!0});M.stroke==="auto"&&L.setStyle({stroke:i(R/S)}),d.add(L)}if(_.get("show")){var P=_.get("distance")+E,V=Wl(pt(R/S*(y-g)+g),_.get("formatter")),z=i(R/S),O=I*(p-x-P)+h,W=B*(p-x-P)+v,j=_.get("rotate"),ne=0;j==="radial"?(ne=-k+2*Math.PI,ne>Math.PI/2&&(ne+=Math.PI)):j==="tangential"?ne=-k-Math.PI/2:He(j)&&(ne=j*Math.PI/180),ne===0?d.add(new We({style:lt(_,{text:V,x:O,y:W,verticalAlign:B<-.8?"top":B>.8?"bottom":"middle",align:I<-.4?"left":I>.4?"right":"center"},{inheritColor:z}),silent:!0})):d.add(new We({style:lt(_,{text:V,x:O,y:W,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:O,originY:W,rotation:ne}))}if(b.get("show")&&R!==S){var P=b.get("distance");P=P?P+f:f;for(var q=0;q<=w;q++){I=Math.cos(k),B=Math.sin(k);var Q=new Lr({shape:{x1:I*(p-P)+h,y1:B*(p-P)+v,x2:I*(p-C-P)+h,y2:B*(p-C-P)+v},silent:!0,style:A});A.stroke==="auto"&&Q.setStyle({stroke:i((R+q/w)/S)}),d.add(Q),k+=D}k-=D}else k+=T}},e.prototype._renderPointer=function(t,n,a,i,o,s,u,c,f){var d=this.group,h=this._data,v=this._progressEls,p=[],g=t.get(["pointer","show"]),y=t.getModel("progress"),m=y.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),w=+t.get("max"),x=[S,w],C=[s,u];function k(D,M){var A=b.getItemModel(D),E=A.getModel("pointer"),I=de(E.get("width"),o.r),B=de(E.get("length"),o.r),R=t.get(["pointer","icon"]),P=E.get("offsetCenter"),L=de(P[0],o.r),V=de(P[1],o.r),z=E.get("keepAspect"),O;return R?O=Vt(R,L-I/2,V-B,I,B,null,z):O=new O4({shape:{angle:-Math.PI/2,width:I,r:B,x:L,y:V}}),O.rotation=-(M+Math.PI/2),O.x=o.cx,O.y=o.cy,O}function T(D,M){var A=y.get("roundCap"),E=A?ac:on,I=y.get("overlap"),B=I?y.get("width"):f/b.count(),R=I?o.r-B:o.r-(D+1)*B,P=I?o.r:o.r-D*B,L=new E({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:c,r0:R,r:P}});return I&&(L.z2=ze(b.get(_,D),[S,w],[100,0],!0)),L}(m||g)&&(b.diff(h).add(function(D){var M=b.get(_,D);if(g){var A=k(D,s);mt(A,{rotation:-((isNaN(+M)?C[0]:ze(M,x,C,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(D,A)}if(m){var E=T(D,s),I=y.get("clip");mt(E,{shape:{endAngle:ze(M,x,C,I)}},t),d.add(E),Th(t.seriesIndex,b.dataType,D,E),p[D]=E}}).update(function(D,M){var A=b.get(_,D);if(g){var E=h.getItemGraphicEl(M),I=E?E.rotation:s,B=k(D,I);B.rotation=I,Ke(B,{rotation:-((isNaN(+A)?C[0]:ze(A,x,C,!0))+Math.PI/2)},t),d.add(B),b.setItemGraphicEl(D,B)}if(m){var R=v[M],P=R?R.shape.endAngle:s,L=T(D,P),V=y.get("clip");Ke(L,{shape:{endAngle:ze(A,x,C,V)}},t),d.add(L),Th(t.seriesIndex,b.dataType,D,L),p[D]=L}}).execute(),b.each(function(D){var M=b.getItemModel(D),A=M.getModel("emphasis"),E=A.get("focus"),I=A.get("blurScope"),B=A.get("disabled");if(g){var R=b.getItemGraphicEl(D),P=b.getItemVisual(D,"style"),L=P.fill;if(R instanceof _r){var V=R.style;R.useStyle(Y({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},P))}else R.useStyle(P),R.type!=="pointer"&&R.setColor(L);R.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",i(ze(b.get(_,D),x,[0,1],!0))),R.z2EmphasisLift=0,Ir(R,M),ar(R,E,I,B)}if(m){var z=p[D];z.useStyle(b.getItemVisual(D,"style")),z.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,Ir(z,M),ar(z,E,I,B)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),u=a.get("offsetCenter"),c=a.get("keepAspect"),f=Vt(s,n.cx-o/2+de(u[0],n.r),n.cy-o/2+de(u[1],n.r),o,o,null,c);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,u=t.getData(),c=u.mapDimension("value"),f=+t.get("min"),d=+t.get("max"),h=new Ee,v=[],p=[],g=t.isAnimationEnabled(),y=t.get(["pointer","showAbove"]);u.diff(this._data).add(function(m){v[m]=new We({silent:!0}),p[m]=new We({silent:!0})}).update(function(m,b){v[m]=s._titleEls[b],p[m]=s._detailEls[b]}).execute(),u.each(function(m){var b=u.getItemModel(m),_=u.get(c,m),S=new Ee,w=i(ze(_,[f,d],[0,1],!0)),x=b.getModel("title");if(x.get("show")){var C=x.get("offsetCenter"),k=o.cx+de(C[0],o.r),T=o.cy+de(C[1],o.r),D=v[m];D.attr({z2:y?0:2,style:lt(x,{x:k,y:T,text:u.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(D)}var M=b.getModel("detail");if(M.get("show")){var A=M.get("offsetCenter"),E=o.cx+de(A[0],o.r),I=o.cy+de(A[1],o.r),B=de(M.get("width"),o.r),R=de(M.get("height"),o.r),P=t.get(["progress","show"])?u.getItemVisual(m,"style").fill:w,D=p[m],L=M.get("formatter");D.attr({z2:y?0:2,style:lt(M,{x:E,y:I,text:Wl(_,L),width:isNaN(B)?null:B,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:P})}),hw(D,{normal:M},_,function(z){return Wl(z,L)}),g&&$V(D,m,u,t,{getFormattedLabel:function(z,O,W,j,ne,q){return Wl(q?q.interpolatedValue:_,L)}}),S.add(D)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=p},e.type="gauge",e}(yt),F4=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return Yc(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,G.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:G.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:G.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:G.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:G.color.neutral00,borderWidth:0,borderColor:G.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:G.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:G.color.transparent,borderWidth:0,borderColor:G.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:G.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(wt);function H4(r){r.registerChartView($4),r.registerSeriesModel(F4)}function ci(r,e,t,n,a,i){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=Li(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Li(s,[0,o]),a=i=Li(s,[a,i]),n=0}e[0]=Li(e[0],t),e[1]=Li(e[1],t);var u=Id(e,n);e[n]+=r;var c=a||0,f=t.slice();u.sign<0?f[0]+=c:f[1]-=c,e[n]=Li(e[n],f);var d;return d=Id(e,n),a!=null&&(d.sign!==u.sign||d.span<a)&&(e[1-n]=e[n]+u.sign*a),d=Id(e,n),i!=null&&d.span>i&&(e[1-n]=e[n]+d.sign*i),e}function Id(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Li(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var fi=!0,Bs=Math.min,ao=Math.max,G4=Math.pow,W4=1e4,U4=6,Y4=6,Ob="globalPan",Z4={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},X4={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},zb={brushStyle:{lineWidth:2,stroke:G.color.backgroundTint,fill:G.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},j4=0,q4=function(r){H(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&ce(t),n._zr=t,n.group=new Ee,n._uid="brushController_"+j4++,N(nH,function(a,i){this._handlers[i]=oe(a,this)},n),n}return e.prototype.enableBrush=function(t){return process.env.NODE_ENV!=="production"&&ce(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||uF(n,Ob,this._uid),N(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=Ce(he(zb),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;cF(t,Ob,this._uid),N(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};N(t,function(a){n[a.panelId]=he(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){process.env.NODE_ENV!=="production"&&ce(this._mounted),t=X(t,function(h){return Ce(he(zb),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Wc(a,t,c,u).add(f).update(f).remove(d).execute(),this;function u(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function c(h,v){return u(h.__brushOption,v)}function f(h,v){var p=t[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var g=i[h]=v!=null?(a[v].__brushOption=p,a[v]):gk(o,pk(o,p));ig(o,g)}}function d(h){a[h]!==s&&o.group.remove(a[h])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),Cv(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(br);function pk(r,e){var t=Xc[e.brushType].createCover(r,e);return t.__brushOption=e,yk(t,e),r.group.add(t),t}function gk(r,e){var t=og(e);return t.endCreating&&(t.endCreating(r,e),yk(e,e.__brushOption)),e}function mk(r,e){var t=e.__brushOption;og(e).updateCoverShape(r,e,t.range,t)}function yk(r,e){var t=e.z;t==null&&(t=W4),r.traverse(function(n){n.z=t,n.z2=t})}function ig(r,e){og(e).updateCommon(r,e),mk(r,e)}function og(r){return Xc[r.__brushOption.brushType]}function sg(r,e,t){var n=r._panels;if(!n)return fi;var a,i=r._transform;return N(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function bk(r,e){var t=r._panels;if(!t)return fi;var n=e.__brushOption.panelId;return n!=null?t[n]:fi}function Cv(r){var e=r._covers,t=e.length;return N(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function di(r,e){var t=X(r._covers,function(n){var a=n.__brushOption,i=he(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function K4(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=G4(a*a+i*i,.5);return o>U4}function _k(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function Sk(r,e,t,n){var a=new Ee;return a.add(new Oe({name:"main",style:lg(t),silent:!0,draggable:!0,cursor:"move",drift:me($b,r,e,a,["n","s","w","e"]),ondragend:me(di,e,{isEnd:!0})})),N(n,function(i){a.add(new Oe({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:me($b,r,e,a,i),ondragend:me(di,e,{isEnd:!0})}))}),a}function wk(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=ao(a,Y4),o=t[0][0],s=t[1][0],u=o-a/2,c=s-a/2,f=t[0][1],d=t[1][1],h=f-i+a/2,v=d-i+a/2,p=f-o,g=d-s,y=p+a,m=g+a;pn(r,e,"main",o,s,p,g),n.transformable&&(pn(r,e,"w",u,c,i,m),pn(r,e,"e",h,c,i,m),pn(r,e,"n",u,c,y,i),pn(r,e,"s",u,v,y,i),pn(r,e,"nw",u,c,i,i),pn(r,e,"ne",h,c,i,i),pn(r,e,"sw",u,v,i,i),pn(r,e,"se",h,v,i,i))}function kv(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(lg(t)),a.attr({silent:!n,cursor:n?"move":"default"}),N([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Tv(r,i[0]):J4(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?X4[s]+"-resize":null})})}function pn(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(tH(ug(r,e,[[n,a],[n+i,a+o]])))}function lg(r){return Me({strokeNoScale:!0},r.brushStyle)}function xk(r,e,t,n){var a=[Bs(r,t),Bs(e,n)],i=[ao(r,t),ao(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Q4(r){return Qa(r.group)}function Tv(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Ic(t[e],Q4(r));return n[a]}function J4(r,e){var t=[Tv(r,e[0]),Tv(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function $b(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),u=Ck(e,a,i);N(n,function(c){var f=Z4[c];s[f[0]][f[1]]+=u[f[0]]}),o.range=r.fromRectRange(xk(s[0][0],s[1][0],s[0][1],s[1][1])),ig(e,t),di(e,{isEnd:!1})}function eH(r,e,t,n){var a=e.__brushOption.range,i=Ck(r,t,n);N(a,function(o){o[0]+=i[0],o[1]+=i[1]}),ig(r,e),di(r,{isEnd:!1})}function Ck(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function ug(r,e,t){var n=bk(r,e);return n&&n!==fi?n.clipPath(t,r._transform):he(t)}function tH(r){var e=Bs(r[0][0],r[1][0]),t=Bs(r[0][1],r[1][1]),n=ao(r[0][0],r[1][0]),a=ao(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function rH(r,e,t){if(!(!r._brushType||aH(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=sg(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===fi||s.panelId===i.panelId)&&Xc[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function Dv(r){var e=r.event;e.preventDefault&&e.preventDefault()}function Mv(r,e,t){return r.childOfName("main").contain(e,t)}function kk(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),K4(r)||a){if(i&&!a){o.brushMode==="single"&&Cv(r);var u=he(o);u.brushType=Fb(u.brushType,i),u.panelId=i===fi?null:i.panelId,a=r._creatingCover=pk(r,u),r._covers.push(a)}if(a){var c=Xc[Fb(r._brushType,i)],f=a.__brushOption;f.range=c.getCreatingRange(ug(r,a,r._track)),n&&(gk(r,a),c.updateCommon(r,a)),mk(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&sg(r,e,t)&&Cv(r)&&(s={isEnd:n,removeOnClick:!0});return s}function Fb(r,e){return r==="auto"?(process.env.NODE_ENV!=="production"&&ce(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):r}var nH={mousedown:function(r){if(this._dragging)Hb(this,r);else if(!r.target||!r.target.draggable){Dv(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=sg(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(rH(this,r,n),this._dragging){Dv(r);var a=kk(this,r,n,!1);a&&di(this,a)}},mouseup:function(r){Hb(this,r)}};function Hb(r,e){if(r._dragging){Dv(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=kk(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&di(r,i)}}function aH(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var Xc={lineX:Gb(0),lineY:Gb(1),rect:{createCover:function(r,e){function t(n){return n}return Sk({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=_k(r);return xk(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){wk(r,e,t,n)},updateCommon:kv,contain:Mv},polygon:{createCover:function(r,e){var t=new Ee;return t.add(new An({name:"main",style:lg(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Br({name:"main",draggable:!0,drift:me(eH,r,e),ondragend:me(di,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:ug(r,e,t)})},updateCommon:kv,contain:Mv}};function Gb(r){return{createCover:function(e,t){return Sk({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=_k(e),n=Bs(t[0][r],t[1][r]),a=ao(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=bk(e,t);if(o!==fi&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var u=[n,i];r&&u.reverse(),wk(e,t,u,a)},updateCommon:kv,contain:Mv}}function iH(r){return r=cg(r),function(e){return sw(e,r)}}function oH(r,e){return r=cg(r),function(t){var n=e??t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function sH(r,e,t){var n=cg(r);return function(a,i){return n.contain(i[0],i[1])&&!JC(a,e,t)}}function cg(r){return ye.create(r)}var lH=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),u;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),u=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),u=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var c=["x","y"],f=e.layout==="horizontal"?0:1,d=this._baseAxisDim=c[f],h=c[1-f],v=[a,i],p=v[f].get("type"),g=v[1-f].get("type"),y=e.data;if(y&&u){var m=[];N(y,function(S,w){var x;Z(S)?(x=S.slice(),S.unshift(w)):Z(S.value)?(x=Y({},S),x.value=x.value.slice(),S.value.unshift(w)):x=S,m.push(x)}),e.data=m}var b=this.defaultValueDimensions,_=[{name:d,type:av(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:av(g),dimsDef:b.slice()}];return Yc(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:me(Iw,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),uH=["itemStyle","borderColor"],cH=["itemStyle","borderColor0"],fH=["itemStyle","borderColorDoji"],dH=["itemStyle","color"],hH=["itemStyle","color0"];function fg(r,e){return e.get(r>0?dH:hH)}function dg(r,e){return e.get(r===0?fH:r>0?uH:cH)}var vH={seriesType:"candlestick",plan:Ys(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,u=o.getItemStyle();u.fill=fg(s,o),u.stroke=dg(s,o)||u.fill;var c=a.ensureUniqueItemVisual(i,"style");Y(c,u)}}}}}},pH=["color","borderColor"],gH=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){vi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),u=t.coordinateSystem,c=u.getArea&&u.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var d=n.getItemLayout(f);if(s&&Wb(c,d))return;var h=Bd(d,f,!0);mt(h,{shape:{points:d.ends}},t,f),Ld(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,d){var h=a.getItemGraphicEl(d);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&Wb(c,v)){i.remove(h);return}h?(Ke(h,{shape:{points:v.ends}},t,f),Ji(h)):h=Bd(v),Ld(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&i.remove(d)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),Ub(t,this.group);var n=t.get("clip",!0)?CC(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),u=Bd(s);Ld(u,a,o,i),u.incremental=!0,this.group.add(u),this._progressiveEls.push(u)}},e.prototype._incrementalRenderLarge=function(t,n){Ub(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(yt),mH=function(){function r(){}return r}(),yH=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new mH},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Pe);function Bd(r,e,t){var n=r.ends;return new yH({shape:{points:t?bH(n,r):n},z2:100})}function Wb(r,e){for(var t=!0,n=0;n<e.ends.length;n++)if(r.contain(e.ends[n][0],e.ends[n][1])){t=!1;break}return t}function Ld(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,Ir(r,a);var i=e.getItemLayout(t).sign;N(r.states,function(s,u){var c=a.getModel(u),f=fg(i,c),d=dg(i,c)||f,h=s.style||(s.style={});f&&(h.fill=f),d&&(h.stroke=d)});var o=a.getModel("emphasis");ar(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function bH(r,e){return X(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var _H=function(){function r(){}return r}(),Vd=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new _H},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e}(Pe);function Ub(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new Vd({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new Vd({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var u=new Vd({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(u),Pd(1,o,r),Pd(-1,s,r),Pd(0,u,r),n&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function Pd(r,e,t,n){var a=dg(r,t)||fg(r,t),i=t.getModel("itemStyle").getItemStyle(pH);e.useStyle(i),e.style.fill=null,e.style.stroke=a}var Tk=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(wt);ir(Tk,lH,!0);function SH(r){!r||!Z(r.series)||N(r.series,function(e){fe(e)&&e.type==="k"&&(e.type="candlestick")})}var wH={seriesType:"candlestick",plan:Ys(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=xH(r,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),u=X(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),c=u[0],f=u[1],d=u[2],h=u[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||u.length<4)return;return{progress:r.pipelineContext.large?p:v};function v(g,y){for(var m,b=y.getStore();(m=g.next())!=null;){var _=b.get(s,m),S=b.get(c,m),w=b.get(f,m),x=b.get(d,m),C=b.get(h,m),k=Math.min(S,w),T=Math.max(S,w),D=P(k,_),M=P(T,_),A=P(x,_),E=P(C,_),I=[];L(I,M,0),L(I,D,1),I.push(z(E),z(M),z(A),z(D));var B=y.getItemModel(m),R=!!B.get(["itemStyle","borderColorDoji"]);y.setItemLayout(m,{sign:Yb(b,m,S,w,f,R),initBaseline:S>w?M[i]:D[i],ends:I,brushRect:V(x,C,_)})}function P(O,W){var j=[];return j[a]=W,j[i]=O,isNaN(W)||isNaN(O)?[NaN,NaN]:e.dataToPoint(j)}function L(O,W,j){var ne=W.slice(),q=W.slice();ne[a]=iu(ne[a]+n/2,1,!1),q[a]=iu(q[a]-n/2,1,!0),j?O.push(ne,q):O.push(q,ne)}function V(O,W,j){var ne=P(O,j),q=P(W,j);return ne[a]-=n/2,q[a]-=n/2,{x:ne[0],y:ne[1],width:n,height:q[1]-ne[1]}}function z(O){return O[a]=iu(O[a],1),O}}function p(g,y){for(var m=en(g.count*4),b=0,_,S=[],w=[],x,C=y.getStore(),k=!!r.get(["itemStyle","borderColorDoji"]);(x=g.next())!=null;){var T=C.get(s,x),D=C.get(c,x),M=C.get(f,x),A=C.get(d,x),E=C.get(h,x);if(isNaN(T)||isNaN(A)||isNaN(E)){m[b++]=NaN,b+=3;continue}m[b++]=Yb(C,x,D,M,f,k),S[a]=T,S[i]=A,_=e.dataToPoint(S,null,w),m[b++]=_?_[0]:NaN,m[b++]=_?_[1]:NaN,S[i]=E,_=e.dataToPoint(S,null,w),m[b++]=_?_[1]:NaN}y.setLayout("largePoints",m)}}};function Yb(r,e,t,n,a,i){var o;return t>n?o=-1:t<n?o=1:o=i?0:e>0?r.get(a,e-1)<=n?1:-1:1,o}function xH(r,e){var t=r.getBaseAxis(),n,a=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=de(se(r.get("barMaxWidth"),a),a),o=de(se(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?de(s,a):Math.max(Math.min(a/2,i),o)}function CH(r){r.registerChartView(gH),r.registerSeriesModel(Tk),r.registerPreprocessor(SH),r.registerVisual(vH),r.registerLayout(wH)}var kH=256,TH=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Nr.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),u=this._getGradient(i,"inRange"),c=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,d=this.canvas,h=d.getContext("2d"),v=e.length;d.width=t,d.height=n;for(var p=0;p<v;++p){var g=e[p],y=g[0],m=g[1],b=g[2],_=a(b);h.globalAlpha=_,h.drawImage(s,y-f,m-f)}if(!d.width||!d.height)return d;for(var S=h.getImageData(0,0,d.width,d.height),w=S.data,x=0,C=w.length,k=this.minOpacity,T=this.maxOpacity,D=T-k;x<C;){var _=w[x+3]/256,M=Math.floor(_*(kH-1))*4;if(_>0){var A=o(_)?u:c;_>0&&(_=_*D+k),w[x++]=A[M],w[x++]=A[M+1],w[x++]=A[M+2],w[x++]=A[M+3]*_*256}else x+=4}return h.putImageData(S,0,0),d},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Nr.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=G.color.neutral99,a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();function DH(r,e,t){var n=r[1]-r[0];e=X(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var u=e[s].interval;if(u[0]<=o&&o<=u[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var u=e[s].interval;if(u[0]<=o&&o<=u[1]){i=s;break}}return s>=0&&s<a&&t[s]}}function MH(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}function Zb(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var EH=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i;if(n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(u){u===t&&(i=s)})}),process.env.NODE_ENV!=="production"&&!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,a,0,t.getData().count()):Zb(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(Zb(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){vi(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,n,a,i,o){var s=t.coordinateSystem,u=fa(s,"cartesian2d"),c=fa(s,"matrix"),f,d,h,v;if(u){var p=s.getAxis("x"),g=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(p.type==="category"&&g.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(p.onBand&&g.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}f=p.getBandWidth()+.5,d=g.getBandWidth()+.5,h=p.scale.getExtent(),v=g.scale.getExtent()}for(var y=this.group,m=t.getData(),b=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),w=t.get(["itemStyle","borderRadius"]),x=yr(t),C=t.getModel("emphasis"),k=C.get("focus"),T=C.get("blurScope"),D=C.get("disabled"),M=u||c?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],A=a;A<i;A++){var E=void 0,I=m.getItemVisual(A,"style");if(u){var B=m.get(M[0],A),R=m.get(M[1],A);if(isNaN(m.get(M[2],A))||isNaN(B)||isNaN(R)||B<h[0]||B>h[1]||R<v[0]||R>v[1])continue;var P=s.dataToPoint([B,R]);E=new Oe({shape:{x:P[0]-f/2,y:P[1]-d/2,width:f,height:d},style:I})}else if(c){var L=s.dataToLayout([m.get(M[0],A),m.get(M[1],A)]).rect;if(wn(L.x))continue;E=new Oe({z2:1,shape:L,style:I})}else{if(isNaN(m.get(M[1],A)))continue;var V=s.dataToLayout([m.get(M[0],A)]),L=V.contentRect||V.rect;if(wn(L.x)||wn(L.y))continue;E=new Oe({z2:1,shape:L,style:I})}if(m.hasItemOption){var z=m.getItemModel(A),O=z.getModel("emphasis");b=O.getModel("itemStyle").getItemStyle(),_=z.getModel(["blur","itemStyle"]).getItemStyle(),S=z.getModel(["select","itemStyle"]).getItemStyle(),w=z.get(["itemStyle","borderRadius"]),k=O.get("focus"),T=O.get("blurScope"),D=O.get("disabled"),x=yr(z)}E.shape.r=w;var W=t.getRawValue(A),j="-";W&&W[2]!=null&&(j=W[2]+""),ln(E,x,{labelFetcher:t,labelDataIndex:A,defaultOpacity:I.opacity,defaultText:j}),E.ensureState("emphasis").style=b,E.ensureState("blur").style=_,E.ensureState("select").style=S,ar(E,k,T,D),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),y.add(E),m.setItemGraphicEl(A,E),this._progressiveEls&&this._progressiveEls.push(E)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,u=n.getData(),c=this._hmLayer||this._hmLayer||new TH;c.blurSize=n.get("blurSize"),c.pointSize=n.get("pointSize"),c.minOpacity=n.get("minOpacity"),c.maxOpacity=n.get("maxOpacity");var f=t.getViewRect().clone(),d=t.getRoamTransform();f.applyTransform(d);var h=Math.max(f.x,0),v=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),g=Math.min(f.height+f.y,i.getHeight()),y=p-h,m=g-v,b=[u.mapDimension("lng"),u.mapDimension("lat"),u.mapDimension("value")],_=u.mapArray(b,function(C,k,T){var D=t.dataToPoint([C,k]);return D[0]-=h,D[1]-=v,D.push(T),D}),S=a.getExtent(),w=a.type==="visualMap.continuous"?MH(S,a.option.range):DH(S,a.getPieceList(),a.option.selected);c.update(_,y,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var x=new _r({style:{width:y,height:m,x:h,y:v,image:c.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(yt),AH=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Xs(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Pc.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:G.color.primary}}},e}(wt);function NH(r){r.registerChartView(EH),r.registerSeriesModel(AH)}var za=Re(),Xb=he,Rd=oe,IH=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var c={};this.makeElOption(c,i,e,t,n);var f=c.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Ee,this.createPointerEl(s,c,e,t),this.createLabelEl(s,c,e,t),n.getZr().add(s);else{var h=me(jb,t,d);this.updatePointerEl(s,c,h),this.updateLabelEl(s,c,h,t)}Kb(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var u=Kp(e).seriesDataCount,c=a.getExtent();return Math.abs(c[0]-c[1])/u>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=za(e).pointerEl=new cw[i.type](Xb(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=za(e).labelEl=new We(Xb(t.label));e.add(i),qb(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=za(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=za(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),qb(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Bc(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){Mn(c.event)},onmousedown:Rd(this._onHandleDragMove,this,0,0),drift:Rd(this._onHandleDragMove,this),ondragend:Rd(this._onHandleDragEnd,this)}),n.add(a)),Kb(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=i.get("size");Z(u)||(u=[u,u]),a.scaleX=u[0]/2,a.scaleY=u[1]/2,$c(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){jb(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Od(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Od(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Od(a)),za(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Wu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function jb(r,e,t,n){Dk(za(t).lastProp,n)||(za(t).lastProp=n,e?Ke(t,n,r):(t.stopAnimation(),t.attr(n)))}function Dk(r,e){if(fe(r)&&fe(e)){var t=!0;return N(e,function(n,a){t=t&&Dk(r[a],n)}),!!t}else return r===e}function qb(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Od(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Kb(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}function BH(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function LH(r,e,t,n,a){var i=t.get("value"),o=Mk(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),u=Us(s.get("padding")||0),c=s.getFont(),f=Qv(o,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),VH(d,h,v,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=e.get(["axisLine","lineStyle","color"])),r.label={x:d[0],y:d[1],style:lt(s,{text:o,font:c,fill:s.getTextColor(),padding:u,backgroundColor:y}),z2:10}}function VH(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Mk(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Ju(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};N(n,function(u){var c=t.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,d=c&&c.getDataParams(f);d&&s.seriesData.push(d)}),te(o)?i=o.replace("{value}",i):ue(o)&&(i=o(s))}return i}function Ek(r,e,t){var n=Mr();return qv(n,n,t.rotation),ms(n,n,t.position),ra([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function PH(r,e,t,n,a,i){var o=Dn.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),LH(e,n,a,i,{position:Ek(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function RH(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function OH(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}var zH=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,u=s.grid,c=i.get("type"),f=Qb(u,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(n,!0));if(c&&c!=="none"){var h=BH(i),v=$H[c](s,d,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var p=oc(u.getRect(),a);PH(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=oc(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Ek(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,u=o.getGlobalExtent(!0),c=Qb(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,d=[t.x,t.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:t.rotation,cursorPoint:v,tooltipOption:p[f]}},e}(IH);function Qb(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var $H={line:function(r,e,t){var n=RH([e,t[0]],[e,t[1]],Jb(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:OH([e-n/2,t[0]],[n,a],Jb(r))}}};function Jb(r){return r.dim==="x"?0:1}var FH=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}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:G.color.border,width:1,type:"dashed"},shadowStyle:{color:G.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:G.color.neutral00,padding:[5,7,5,7],backgroundColor:G.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:G.color.accent40,throttle:40}},e}(Ne),Sn=Re(),HH=N;function Ak(r,e,t){if(!we.node){var n=e.getZr();Sn(n).records||(Sn(n).records={}),GH(n,e);var a=Sn(n).records[r]||(Sn(n).records[r]={});a.handler=t}}function GH(r,e){if(Sn(r).initialized)return;Sn(r).initialized=!0,t("click",me(e1,"click")),t("mousemove",me(e1,"mousemove")),t("globalout",UH);function t(n,a){r.on(n,function(i){var o=YH(e);HH(Sn(r).records,function(s){s&&a(s,i,o.dispatchAction)}),WH(o.pendings,e)})}}function WH(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function UH(r,e,t){r.handler("leave",null,t)}function e1(r,e,t,n){e.handler(r,t,n)}function YH(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function Ev(r,e){if(!we.node){var t=e.getZr(),n=(Sn(t).records||{})[r];n&&(Sn(t).records[r]=null)}}var ZH=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Ak("axisPointer",a,function(s,u,c){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},e.prototype.remove=function(t,n){Ev("axisPointer",n)},e.prototype.dispose=function(t,n){Ev("axisPointer",n)},e.type="axisPointer",e}(Et);function Nk(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=ni(i,r);if(o==null||o<0||Z(o))return{point:[]};var s=i.getItemGraphicEl(o),u=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.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,o),g[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=u.dataToPoint(g)||[]}else t=u.dataToPoint(i.getValues(X(u.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),t=[y.x+y.width/2,y.y+y.height/2]}return{point:t,el:s}}var t1=Re();function XH(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||oe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){du(a)&&(a=Nk({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var u=du(a),c=i.axesInfo,f=s.axesInfo,d=n==="leave"||du(a),h={},v={},p={list:[],map:{}},g={showPointer:me(qH,v),showTooltip:me(KH,p)};N(s.coordSysMap,function(m,b){var _=u||m.containPoint(a);N(s.coordSysAxesInfo[b],function(S,w){var x=S.axis,C=t6(c,S);if(!d&&_&&(!c||C)){var k=C&&C.value;k==null&&!u&&(k=x.pointToData(a)),k!=null&&r1(S,k,g,!1,h)}})});var y={};return N(f,function(m,b){var _=m.linkGroup;_&&!v[b]&&N(_.axesInfo,function(S,w){var x=v[w];if(S!==m&&x){var C=x.value;_.mapper&&(C=m.axis.scale.parse(_.mapper(C,n1(S),n1(m)))),y[m.key]=C}})}),N(y,function(m,b){r1(f[b],m,g,!0,h)}),QH(v,f,h),JH(p,a,r,o),e6(f,o,t),h}}function r1(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=jH(e,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&a.seriesIndex==null&&Y(a,s[0]),!n&&r.snap&&i.containData(u)&&u!=null&&(e=u),t.showPointer(r,e,s),t.showTooltip(r,o,u)}}function jH(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return N(e.seriesModels,function(u,c){var f=u.getData().mapDimensionsAll(n),d,h;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,t);h=v.dataIndices,d=v.nestestValue}else{if(h=u.indicesOfNearest(n,f[0],r,t.type==="category"?.5:null),!h.length)return;d=u.getData().get(f[0],h[0])}if(!(d==null||!isFinite(d))){var p=r-d,g=Math.abs(p);g<=o&&((g<o||p>=0&&s<0)&&(o=g,s=p,a=d,i.length=0),N(h,function(y){i.push({seriesIndex:u.seriesIndex,dataIndexInside:y,dataIndex:u.getData().getRawIndex(y)})}))}}),{payloadBatch:i,snapToValue:a}}function qH(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function KH(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var u=e.coordSys.model,c=As(u),f=r.map[c];f||(f=r.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function QH(r,e,t){var n=t.axesInfo=[];N(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function JH(r,e,t,n){if(du(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function e6(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=t1(n)[a]||{},o=t1(n)[a]={};N(r,function(c,f){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&N(d.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],u=[];N(i,function(c,f){!o[f]&&u.push(c)}),N(o,function(c,f){!i[f]&&s.push(c)}),u.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function t6(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function n1(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function du(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Ik(r){jC.registerAxisPointerClass("CartesianAxisPointer",zH),r.registerComponentModel(FH),r.registerComponentView(ZH),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=z3(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},XH)}function r6(r){Ht(QC),Ht(Ik)}var a1=["x","y","radius","angle","single"],n6=["cartesian2d","polar","singleAxis"];function a6(r){var e=r.get("coordinateSystem");return De(n6,e)>=0}function Qn(r){return process.env.NODE_ENV!=="production"&&ce(r),r+"Axis"}function i6(r,e){var t=_e(),n=[],a=_e();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&u(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),c(f)}function u(f){var d=!1;return f.eachTargetAxis(function(h,v){var p=t.get(h);p&&p[v]&&(d=!0)}),d}function c(f){f.eachTargetAxis(function(d,h){(t.get(d)||t.set(d,[]))[h]=!0})}return n}function Bk(r){var e=r.ecModel,t={infoList:[],infoMap:_e()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(Qn(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,u=t.infoMap.get(s);u||(u={model:o,axisModels:[]},t.infoList.push(u),t.infoMap.set(s,u)),u.axisModels.push(i)}}}),t}var zd=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),Ls=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=i1(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=i1(t);Ce(this.option,t,!0),Ce(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;N([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=_e(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return N(a1,function(a){var i=this.getReferringComponents(Qn(a),BB);if(i.specified){n=!0;var o=new zd;N(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});u(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});u(s,"single")}function u(c,f){var d=c[0];if(d){var h=new zd;if(h.add(d.componentIndex),t.set(f,h),i=!1,f==="x"||f==="y"){var v=d.getReferringComponents("grid",Bt).models[0];v&&N(c,function(p){d.componentIndex!==p.componentIndex&&v===p.getReferringComponents("grid",Bt).models[0]&&h.add(p.componentIndex)})}}}i&&N(a1,function(c){if(i){var f=a.findComponents({mainType:Qn(c),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var d=new zd;d.add(f[0].componentIndex),t.set(c,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");N([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,u=t[i[1]]!=null;s&&!u?n[o]="percent":!s&&u?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(Qn(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){N(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){var a=this.getAxisModel(t,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){process.env.NODE_ENV!=="production"&&ce(t&&n!=null);var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(Qn(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;N([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;N(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),u=0;u<s.indexList.length;u++){var c=this.getAxisProxy(o,s.indexList[u]);if(c.hostedBy(this))return c;n||(n=c)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&ce(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Ne);function i1(r){var e={};return N(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var o6=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Ls),hg=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e}(Et),s6=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(hg),Oi=N,o1=_n,l6=function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(a6(t)){var n=Qn(this._dimName),a=t.getReferringComponents(n,Bt).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return he(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],u=[],c;Oi(["start","end"],function(h,v){var p=e[h],g=e[h+"Value"];i[v]==="percent"?(p==null&&(p=o[v]),g=a.parse(ze(p,o,t))):(c=!0,g=g==null?t[v]:a.parse(g),p=ze(g,t,o)),u[v]=g==null||isNaN(g)?t[v]:g,s[v]=p==null||isNaN(p)?o[v]:p}),o1(u),o1(s);var f=this._minMaxSpan;c?d(u,s,t,o,!1):d(s,u,o,t,!0);function d(h,v,p,g,y){var m=y?"Span":"ValueSpan";ci(0,h,p,"all",f["min"+m],f["max"+m]);for(var b=0;b<2;b++)v[b]=ze(h[b],p,g,!0),y&&(v[b]=a.parse(v[b]))}return{valueWindow:u,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=u6(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;Oi(a,function(u){var c=u.getData(),f=c.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var d=c.getStore(),h=X(f,function(v){return c.getDimensionIndex(v)},c);c.filterSelf(function(v){for(var p,g,y,m=0;m<f.length;m++){var b=d.get(h[m],v),_=!isNaN(b),S=b<o[0],w=b>o[1];if(_&&!S&&!w)return!0;_&&(y=!0),S&&(p=!0),w&&(g=!0)}return y&&p&&g})}else Oi(f,function(v){if(i==="empty")u.setData(c=c.map(v,function(g){return s(g)?g:NaN}));else{var p={};p[v]=o,c.selectRange(p)}});Oi(f,function(v){c.setApproximateExtent(o,v)})}});function s(u){return u>=o[0]&&u<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Oi(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ze(n[0]+o,n,[0,100],!0):i!=null&&(o=ze(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var a=yS(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function u6(r,e,t){var n=[1/0,-1/0];Oi(t,function(o){u5(n,o.getData(),e)});var a=r.getAxisModel(),i=qx(a.axis.scale,a,n).calculate();return[i.min,i.max]}var c6={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var u=r.getComponent(Qn(o),s);a(o,s,u,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new l6(a,i,s,r),t.push(o.__dzAxisProxy))});var n=_e();return N(t,function(a){N(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).reset(t)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function f6(r){r.registerAction("dataZoom",function(e,t){var n=i6(t,e);N(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var s1=!1;function vg(r){s1||(s1=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,c6),f6(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function d6(r){r.registerComponentModel(o6),r.registerComponentView(s6),vg(r)}var Tr=function(){function r(){}return r}(),Lk={};function $o(r,e){Lk[r]=e}function Vk(r){return Lk[r]}var h6=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;N(this.option.feature,function(n,a){var i=Vk(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Ce(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:G.size.m,itemSize:15,itemGap:G.size.s,showTitle:!0,iconStyle:{borderColor:G.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:G.color.accent50}},tooltip:{show:!1,position:"bottom"}},e}(Ne);function Pk(r,e){var t=Us(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var a=new Oe({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var v6=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),u=t.get("orient")==="vertical",c=t.get("feature")||{},f=this._features||(this._features={}),d=[];N(c,function(b,_){d.push(_)}),new Wc(this._featureNames||[],d).add(h).update(h).remove(me(h,null)).execute(),this._featureNames=d;function h(b,_){var S=d[b],w=d[_],x=c[S],C=new Ue(x,t,t.ecModel),k;if(i&&i.newTitle!=null&&i.featureName===S&&(x.title=i.newTitle),S&&!w){if(p6(S))k={onclick:C.option.onclick,featureName:S};else{var T=Vk(S);if(!T)return;k=new T}f[S]=k}else if(k=f[w],!k)return;k.uid=Ws("toolbox-feature"),k.model=C,k.ecModel=n,k.api=a;var D=k instanceof Tr;if(!S&&w){D&&k.dispose&&k.dispose(n,a);return}if(!C.get("show")||D&&k.unusable){D&&k.remove&&k.remove(n,a);return}v(C,k,S),C.setIconStatus=function(M,A){var E=this.option,I=this.iconPaths;E.iconStatus=E.iconStatus||{},E.iconStatus[M]=A,I[M]&&(A==="emphasis"?ii:oi)(I[M])},k instanceof Tr&&k.render&&k.render(C,n,a,i)}function v(b,_,S){var w=b.getModel("iconStyle"),x=b.getModel(["emphasis","iconStyle"]),C=_ instanceof Tr&&_.getIcons?_.getIcons():b.get("icon"),k=b.get("title")||{},T,D;te(C)?(T={},T[S]=C):T=C,te(k)?(D={},D[S]=k):D=k;var M=b.iconPaths={};N(T,function(A,E){var I=Bc(A,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(w.getItemStyle());var B=I.ensureState("emphasis");B.style=x.getItemStyle();var R=new We({style:{text:D[E],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:dw({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},n)},ignore:!0});I.setTextContent(R),Hs({el:I,componentModel:t,itemName:E,formatterParamsExtra:{title:D[E]}}),I.__title=D[E],I.on("mouseover",function(){var P=x.getItemStyle(),L=u?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:x.get("textFill")||P.fill||P.stroke||G.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),I.setTextConfig({position:x.get("textPosition")||L}),R.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){b.get(["iconStatus",E])!=="emphasis"&&a.leaveEmphasis(this),R.hide()}),(b.get(["iconStatus",E])==="emphasis"?ii:oi)(I),o.add(I),I.on("click",oe(_.onclick,_,n,a,E)),M[E]=I})}var p=Or(t,a).refContainer,g=t.getBoxLayoutParams(),y=t.get("padding"),m=Ft(g,p,y);ei(t.get("orient"),o,t.get("itemGap"),m.width,m.height),Mp(o,g,p,y),o.add(Pk(o.getBoundingRect(),t)),u||o.eachChild(function(b){var _=b.__title,S=b.ensureState("emphasis"),w=S.textConfig||(S.textConfig={}),x=b.getTextContent(),C=x&&x.ensureState("emphasis");if(C&&!ue(C)&&_){var k=C.style||(C.style={}),T=Qv(_,We.makeFont(k)),D=b.x+o.x,M=b.y+o.y+s,A=!1;M+T.height>a.getHeight()&&(w.position="top",A=!0);var E=A?-5-T.height:s+10;D+T.width/2>a.getWidth()?(w.position=["100%",E],k.align="right"):D-T.width/2<0&&(w.position=[0,E],k.align="left")}})},e.prototype.updateView=function(t,n,a,i){N(this._features,function(o){o instanceof Tr&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(t,n){N(this._features,function(a){a instanceof Tr&&a.remove&&a.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){N(this._features,function(a){a instanceof Tr&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e}(Et);function p6(r){return r.indexOf("my")===0}var g6=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",u=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||G.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),c=we.browser;if(typeof MouseEvent=="function"&&(c.newEdge||!c.ie&&!c.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=u;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var h=u.split(","),v=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];v&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=p.length,m=new Uint8Array(y);y--;)m[y]=p.charCodeAt(y);var b=new Blob([m]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(p),w.close(),S.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var x=a.get("lang"),C='<body style="margin:0;"><img src="'+u+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',k=window.open();k.document.write(C),k.document.title=i}},e.getDefaultOption=function(t){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:G.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(Tr),l1="__ec_magicType_stack__",m6=[["line","bar"],["stack"]],y6=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return N(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(u1[a]){var s={series:[]},u=function(d){var h=d.subType,v=d.id,p=u1[a](h,v,d,i);p&&(Me(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var y=g.getAxesByScale("ordinal")[0];if(y){var m=y.dim,b=m+"Axis",_=d.getReferringComponents(b,Bt).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var w=0;w<=S;w++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};N(m6,function(d){De(d,a)>=0&&N(d,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},u);var c,f=a;a==="stack"&&(c=Ce({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:c,featureName:"magicType"})}},e}(Tr),u1={line:function(r,e,t,n){if(r==="bar")return Ce({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return Ce({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===l1;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Ce({id:e,stack:a?"":l1},n.get(["option","stack"])||{},!0)}};un({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var jc=new Array(60).join("-"),io=" ";function b6(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function _6(r){var e=[];return N(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(X(t.series,function(v){return v.name})),u=[a.model.getCategories()];N(t.series,function(v){var p=v.getRawData();u.push(v.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var c=[s.join(io)],f=0;f<u[0].length;f++){for(var d=[],h=0;h<u.length;h++)d.push(u[h][f]);c.push(d.join(io))}e.push(c.join(`
|
|
273
|
+
`;if(typeof document<"u")if(Array.isArray(document.adoptedStyleSheets)&&"replaceSync"in CSSStyleSheet.prototype){const r=new CSSStyleSheet;r.replaceSync(E0),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r]}else{const r=document.createElement("style");r.textContent=E0,document.head.appendChild(r)}const Q5=X5(),J5=Symbol(),e$=Symbol(),t$=Symbol();var r$=l.defineComponent({name:"Echarts",inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...R5,...$5},emits:{},slots:Object,setup(r,{attrs:e,expose:t,slots:n}){const a=l.shallowRef(),i=l.shallowRef(),o=l.inject(J5,null),s=l.inject(e$,null),u=l.inject(t$,null),{autoresize:c,manualUpdate:f,loading:d,loadingOptions:h}=l.toRefs(r),v=l.computed(()=>r.theme||l.toValue(o)),p=l.computed(()=>r.initOptions||l.toValue(s)||void 0),g=l.computed(()=>r.updateOptions||l.toValue(u)),y=l.computed(()=>H5(e)),m={},b=new Map,{teleportedSlots:_,patchOption:S}=Z5(n,()=>{!f.value&&r.option&&i.value&&C(i.value,r.option)});let w;function x(A){const E={},I=((A==null?void 0:A.replaceMerge)??[]).filter(B=>B!=null);return I.length>0&&(E.replaceMerge=[...new Set(I)]),(A==null?void 0:A.notMerge)!==void 0&&(E.notMerge=A.notMerge),E}function C(A,E,I,B=!1){const R=S(E);if(B){A.setOption(R,I??{}),w=void 0;return}if(g.value){const V=I??g.value;A.setOption(R,V),w=void 0;return}const P=K5(w,R),L=x(P.plan);A.setOption(P.option,L),w=P.signature}Object.keys(e).filter(A=>pC(A)).forEach(A=>{if(A.indexOf("Native:")===2){const R=`on${A.charAt(9).toUpperCase()}${A.slice(10)}`;m[R]=e[A];return}let E=A.charAt(2).toLowerCase()+A.slice(3),I;E.indexOf("zr:")===0&&(I=!0,E=E.substring(3));let B;E.substring(E.length-4)==="Once"&&(B=!0,E=E.substring(0,E.length-4)),b.set({event:E,zr:I,once:B},e[A])});function k(){if(!a.value)return;const A=i.value=nz(a.value,v.value,p.value);r.group&&(A.group=r.group),b.forEach((B,{zr:R,once:P,event:L})=>{if(!B)return;const V=R?A.getZr():A;if(P){const z=B;let O=!1;B=(...W)=>{O||(O=!0,z(...W),V.off(L,B))}}V.on(L,B)});function E(){A&&!A.isDisposed()&&A.resize()}function I(){const{option:B}=r;if(f.value){B&&C(A,B,void 0,!0);return}B&&C(A,B)}c.value?l.nextTick(()=>{E(),I()}):I()}const T=(A,E,I)=>{if(!r.manualUpdate){cv("`setOption` is only available when `manual-update` is `true`.");return}const B=typeof E=="boolean"?{notMerge:E,lazyUpdate:I}:E;i.value&&C(i.value,A,B??void 0,!0)};function D(){i.value&&(i.value.dispose(),i.value=void 0),w=void 0}l.watch(()=>r.option,A=>{if(!A){w=void 0;return}if(f.value){cv("`option` prop changes are ignored when `manual-update` is `true`.");return}i.value&&C(i.value,A)},{deep:!0}),l.watch([f,p],()=>{D(),k()},{deep:!0}),l.watch(v,A=>{var E;(E=i.value)==null||E.setTheme(A||{})},{deep:!0}),l.watchEffect(()=>{r.group&&i.value&&(i.value.group=r.group)});const M=V5(i);return z5(i,d,h),P5(i,c,a),l.onMounted(()=>{k()}),l.onBeforeUnmount(()=>{Q5&&a.value?a.value.__dispose=D:D()}),t({setOption:T,root:a,chart:i,...M}),()=>l.h(fv,{...y.value,...m,ref:a,class:["echarts",y.value.class]},_())}}),n$=r$;function A0(r,e,t){var n=Nr.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*t,n.height=i*t,n}var hd=function(r){H(e,r);function e(t,n,a){var i=r.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 o;a=a||ku,typeof t=="string"?o=A0(t,n,a):fe(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(j_(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.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 t=this.dpr;this.domBack=A0("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,c=new ye(0,0,0,0);function f(b){if(!(!b.isFinite()||b.isZero()))if(o.length===0){var _=new ye(0,0,0,0);_.copy(b),o.push(_)}else{for(var S=!1,w=1/0,x=0,C=0;C<o.length;++C){var k=o[C];if(k.intersect(b)){var T=new ye(0,0,0,0);T.copy(k),T.union(b),o[C]=T,S=!0;break}else if(u){c.copy(b),c.union(k);var D=b.width*b.height,M=k.width*k.height,A=c.width*c.height,E=A-D-M;E<w&&(w=E,x=C)}}if(u&&(o[x].union(b),S=!0),!S){var _=new ye(0,0,0,0);_.copy(b),o.push(_)}u||(u=o.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var h=t[d];if(h){var v=h.shouldBePainted(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&tr||!v)?h.getPrevPaintRect():null;p&&f(p);var g=v&&(h.__dirty&tr||!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 y;do{y=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var m=d+1;m<o.length;)o[d].intersect(o[m])?(y=!0,o[d].union(o[m]),o.splice(m,1)):m++;d++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),i.width=t*a,i.height=n*a,s&&(s.width=t*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,n,a){var i=this.dom,o=this.ctx,s=i.width,u=i.height;n=n||this.clearColor;var c=this.motionBlur&&!t,f=this.lastFrameAlpha,d=this.dpr,h=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/d,u/d));var v=this.domBack;function p(g,y,m,b){if(o.clearRect(g,y,m,b),n&&n!=="transparent"){var _=void 0;if(yc(n)){var S=n.global||n.__width===m&&n.__height===b;_=S&&n.__canvasGradient||Kh(o,n,{x:0,y:0,width:m,height:b}),n.__canvasGradient=_,n.__width=m,n.__height=b}else UN(n)&&(n.scaleX=n.scaleX||d,n.scaleY=n.scaleY||d,_=Qh(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,y,m,b),o.restore()}c&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,y,m,b),o.restore())}!a||c?p(0,0,s,u):a.length&&N(a,function(g){p(g.x*d,g.y*d,g.width*d,g.height*d)})},e}(br),N0=1e5,Pa=314159,Vl=.01,a$=.001;function i$(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function o$(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var s$=function(){function r(e,t,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=Y({},n||{}),this.dpr=n.devicePixelRatio||ku,this._singleCanvas=i,this.root=e;var o=e.style;o&&(j_(e),e.innerHTML=""),this.storage=t;var s=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 hd(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[Pa]=v,v.zlevel=Pa,s.push(Pa),this._domRoot=e}else{this._width=kl(e,0,n),this._height=kl(e,1,n);var c=this._domRoot=o$(this._width,this._height);e.appendChild(c)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=i===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),!!t){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(N0)),i||(i=n.ctx,i.save()),Ya(i,s,a,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(N0)},r.prototype.paintOne=function(e,t){px(e,t)},r.prototype._paintList=function(e,t,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var u=this;yu(function(){u._paintList(e,t,n,a)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Pa).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,t,n)})},r.prototype._doPaintList=function(e,t,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],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 y=i[g],m=y.ctx,b=o&&y.createRepaintRects(e,t,v._width,v._height),_=n?y.__startIndex:y.__drawIndex,S=!n&&y.incremental&&Date.now,w=S&&Date.now(),x=y.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,x,b);else if(_===y.__startIndex){var C=e[_];(!C.incremental||!C.notClear||n)&&y.clear(!1,x,b)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=y.__startIndex);var k,T=function(E){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(k=_;k<y.__endIndex;k++){var B=e[k];if(B.__inHover&&(d=!0),a._doPaintEl(B,y,o,E,I,k===y.__endIndex-1),S){var R=Date.now()-w;if(R>15)break}}I.prevElClipPaths&&m.restore()};if(b)if(b.length===0)k=y.__endIndex;else for(var D=v.dpr,M=0;M<b.length;++M){var A=b[M];m.save(),m.beginPath(),m.rect(A.x*D,A.y*D,A.width*D,A.height*D),m.clip(),T(A),m.restore()}else m.save(),T(),m.restore();y.__drawIndex=k,y.__drawIndex<y.__endIndex&&(f=!1)},v=this,p=0;p<i.length;p++)h(p);return we.wxa&&N(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:d}},r.prototype._doPaintEl=function(e,t,n,a,i,o){var s=t.ctx;if(n){var u=e.getPaintRect();(!a||u&&u.intersect(a))&&(Ya(s,e,i,o),e.setPrevPaintRect(u))}else Ya(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Pa);var n=this._layers[e];return n||(n=new hd("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Ce(n,this._layerConfig[e],!0):this._layerConfig[e-Vl]&&Ce(n,this._layerConfig[e-Vl],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},r.prototype.insertLayer=function(e,t){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,u=-1;if(n[e]){process.env.NODE_ENV!=="production"&&Jn("ZLevel "+e+" has been used already");return}if(!i$(t)){process.env.NODE_ENV!=="production"&&Jn("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++);s=n[a[u]]}if(a.splice(u+1,0,e),n[e]=t,!t.virtual)if(s){var c=s.dom;c.nextSibling?o.insertBefore(t.dom,c.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)},r.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(d,h){d.__dirty=d.__used=!1});function t(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,o=0,s,u;for(u=0;u<e.length;u++){var a=e[u],c=a.zlevel,f=void 0;s!==c&&(s=c,o=0),a.incremental?(f=this.getLayer(c+a$,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(c+(o>0?Vl:0),this._needsManuallyCompositing),f.__builtin__||Jn("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,t(u),i=f),a.__dirty&tr&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}t(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)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,N(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Ce(n[e],t,!0):n[e]=t;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+Vl){var o=this._layers[i];Ce(o,n[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,a=t[e];a&&(a.dom.parentNode.removeChild(a.dom),delete t[e],n.splice(De(n,e),1))},r.prototype.resize=function(e,t){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),t!=null&&(a.height=t),e=kl(i,0,a),t=kl(i,1,a),n.style.display="",this._width!==e||t!==this._height){n.style.width=e+"px",n.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Pa).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Pa].dom;var t=new hd("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,i=t.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 o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,c=s.length;u<c;u++){var f=s[u];Ya(n,f,o,u===c-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function l$(r){r.registerPainter("canvas",s$)}var u$=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(process.env.NODE_ENV!=="production"){var n=t.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Xs(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new Ee,a=Vt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,u=t.itemHeight*.8,c=Vt(s,(t.itemWidth-u)/2,(t.itemHeight-u)/2,u,u,t.itemStyle.fill);n.add(c),c.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return c.rotation=f*Math.PI/180,c.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill=G.color.neutral00,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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(wt);function Yp(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=ro(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<t.length;o++)i.push(ro(r,e,t[o]));return i.join(" ")}}function yC(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!Z(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=0&&n.push(e[i])}return n.join(" ")}var Uc=function(r){H(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o,s){this.removeAll();var u=Vt(t,-1,-1,2,2,null,s);u.attr({z2:se(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),u.drift=c$,this._symbolType=t,this.add(u)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ii(this.childAt(0))},e.prototype.downplay=function(){oi(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,u=e.getSymbolSize(t,n),c=e.getSymbolZ2(t,n),f=o!==this._symbolType,d=i&&i.disableAnimation;if(f){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,u,c,h)}else{var v=this.childAt(0);v.silent=!1;var p={scaleX:u[0]/2,scaleY:u[1]/2};d?v.attr(p):Ke(v,p,s,n),Ji(v)}if(this._updateCommon(t,n,u,a,i),f){var v=this.childAt(0);if(!d){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,mt(v,p,s,n)}}d&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),u=t.hostModel,c,f,d,h,v,p,g,y,m;if(i&&(c=i.emphasisItemStyle,f=i.blurItemStyle,d=i.selectItemStyle,h=i.focus,v=i.blurScope,g=i.labelStatesModels,y=i.hoverScale,m=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.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=yr(b),y=_.getShallow("scale"),m=b.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Hc(t.getItemVisual(n,"symbolOffset"),a);w&&(s.x=w[0],s.y=w[1]),m&&s.attr("cursor",m);var x=t.getItemVisual(n,"style"),C=x.fill;if(s instanceof _r){var k=s.style;s.useStyle(Y({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},x))}else s.__isEmptyBrush?s.useStyle(Y({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=t.getItemVisual(n,"liftZ"),D=this._z2;T!=null?D==null&&(this._z2=s.z2,s.z2+=T):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;ln(s,g,{labelFetcher:u,labelDataIndex:n,defaultText:A,inheritColor:C,defaultOpacity:x.opacity});function A(B){return M?t.getName(B):Yp(t,B)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var E=s.ensureState("emphasis");E.style=c,s.ensureState("select").style=d,s.ensureState("blur").style=f;var I=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;E.scaleX=this._sizeX*I,E.scaleY=this._sizeY*I,this.setSymbolScale(1),ar(this,h,v,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=Te(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var u=i.getTextContent();u&&si(u,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();si(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return Fc(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e}(Ee);function c$(r,e){this.parent.drift(r,e)}function vd(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function I0(r){return r!=null&&!fe(r)&&(r={isIgnore:r}),r||{}}function B0(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:yr(e),cursorStyle:e.get("cursor")}}var Zp=function(){function r(e){this.group=new Ee,this._SymbolCtor=e||Uc}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=I0(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,u=B0(e),c={disableAnimation:s},f=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||n.removeAll(),e.diff(i).add(function(d){var h=f(d);if(vd(e,h,d,t)){var v=new o(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(!vd(e,p,d,t)){n.remove(v);return}var g=e.getItemVisual(d,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==g)n.remove(v),v=new o(e,d,u,c),v.setPosition(p);else{v.updateData(e,d,u,c);var m={x:p[0],y:p[1]};s?v.attr(m):Ke(v,m,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},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=B0(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=I0(n);function a(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(vd(t,o,i,n)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){vi(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r}();function bC(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=f$(a,t),o=n.dim,s=a.dim,u=e.mapDimension(s),c=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,d=X(r.dimensions,function(p){return e.mapDimension(p)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return ui(e,d[0])&&(h=!0,d[0]=v),ui(e,d[1])&&(h=!0,d[1]=v),{dataDimsForPoint:d,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:u,baseDim:c,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function f$(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:He(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function _C(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function d$(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function h$(r,e,t,n,a,i,o,s){for(var u=d$(r,e),c=[],f=[],d=[],h=[],v=[],p=[],g=[],y=bC(a,e,o),m=r.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_<u.length;_++){var S=u[_],w=!0,x=void 0,C=void 0;switch(S.cmd){case"=":x=S.idx*2,C=S.idx1*2;var k=m[x],T=m[x+1],D=b[C],M=b[C+1];(isNaN(k)||isNaN(T))&&(k=D,T=M),c.push(k,T),f.push(D,M),d.push(t[x],t[x+1]),h.push(n[C],n[C+1]),g.push(e.getRawIndex(S.idx1));break;case"+":var A=S.idx,E=y.dataDimsForPoint,I=a.dataToPoint([e.get(E[0],A),e.get(E[1],A)]);C=A*2,c.push(I[0],I[1]),f.push(b[C],b[C+1]);var B=_C(y,a,e,A);d.push(B[0],B[1]),h.push(n[C],n[C+1]),g.push(e.getRawIndex(A));break;case"-":w=!1}w&&(v.push(S),p.push(p.length))}p.sort(function(q,Q){return g[q]-g[Q]});for(var R=c.length,P=en(R),L=en(R),V=en(R),z=en(R),O=[],_=0;_<p.length;_++){var W=p[_],j=_*2,ne=W*2;P[j]=c[ne],P[j+1]=c[ne+1],L[j]=f[ne],L[j+1]=f[ne+1],V[j]=d[ne],V[j+1]=d[ne+1],z[j]=h[ne],z[j+1]=h[ne+1],O[_]=v[W]}return{current:P,next:L,stackedOnCurrent:V,stackedOnNext:z,status:O}}var Fn=Math.min,Hn=Math.max;function ti(r,e){return isNaN(r)||isNaN(e)}function dv(r,e,t,n,a,i,o,s,u){for(var c,f,d,h,v,p,g=t,y=0;y<n;y++){var m=e[g*2],b=e[g*2+1];if(g>=a||g<0)break;if(ti(m,b)){if(u){g+=i;continue}break}if(g===t)r[i>0?"moveTo":"lineTo"](m,b),d=m,h=b;else{var _=m-c,S=b-f;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var w=g+i,x=e[w*2],C=e[w*2+1];x===m&&C===b&&y<n;)y++,w+=i,g+=i,x=e[w*2],C=e[w*2+1],m=e[g*2],b=e[g*2+1],_=m-c,S=b-f;var k=y+1;if(u)for(;ti(x,C)&&k<n;)k++,w+=i,x=e[w*2],C=e[w*2+1];var T=.5,D=0,M=0,A=void 0,E=void 0;if(k>=n||ti(x,C))v=m,p=b;else{D=x-c,M=C-f;var I=m-c,B=x-m,R=b-f,P=C-b,L=void 0,V=void 0;if(s==="x"){L=Math.abs(I),V=Math.abs(B);var z=D>0?1:-1;v=m-z*L*o,p=b,A=m+z*V*o,E=b}else if(s==="y"){L=Math.abs(R),V=Math.abs(P);var O=M>0?1:-1;v=m,p=b-O*L*o,A=m,E=b+O*V*o}else L=Math.sqrt(I*I+R*R),V=Math.sqrt(B*B+P*P),T=V/(V+L),v=m-D*o*(1-T),p=b-M*o*(1-T),A=m+D*o*T,E=b+M*o*T,A=Fn(A,Hn(x,m)),E=Fn(E,Hn(C,b)),A=Hn(A,Fn(x,m)),E=Hn(E,Fn(C,b)),D=A-m,M=E-b,v=m-D*L/V,p=b-M*L/V,v=Fn(v,Hn(c,m)),p=Fn(p,Hn(f,b)),v=Hn(v,Fn(c,m)),p=Hn(p,Fn(f,b)),D=m-v,M=b-p,A=m+D*V/L,E=b+M*V/L}r.bezierCurveTo(d,h,v,p,m,b),d=A,h=E}else r.lineTo(m,b)}c=m,f=b,g+=i}return y}var SC=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),v$=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new SC},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&ti(a[o*2-2],a[o*2-1]);o--);for(;i<o&&ti(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=dv(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=ai.CMD,s,u,c=n==="x",f=[],d=0;d<i.length;){var h=i[d++],v=void 0,p=void 0,g=void 0,y=void 0,m=void 0,b=void 0,_=void 0;switch(h){case o.M:s=i[d++],u=i[d++];break;case o.L:if(v=i[d++],p=i[d++],_=c?(t-s)/(v-s):(t-u)/(p-u),_<=1&&_>=0){var S=c?(p-u)*_+u:(v-s)*_+s;return c?[t,S]:[S,t]}s=v,u=p;break;case o.C:v=i[d++],p=i[d++],g=i[d++],y=i[d++],m=i[d++],b=i[d++];var w=c?_u(s,v,g,m,t,f):_u(u,p,y,b,t,f);if(w>0)for(var x=0;x<w;x++){var C=f[x];if(C<=1&&C>=0){var S=c?Tt(u,p,y,b,C):Tt(s,v,g,m,C);return c?[t,S]:[S,t]}}s=m,u=b;break}}},e}(Pe),p$=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(SC),g$=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new p$},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ti(a[s*2-2],a[s*2-1]);s--);for(;o<s&&ti(a[o*2],a[o*2+1]);o++);}for(;o<s;){var c=dv(t,a,o,s,s,1,n.smooth,u,n.connectNulls);dv(t,i,o+c-1,c,s,-1,n.stackedOnSmooth,u,n.connectNulls),o+=c+1,t.closePath()}},e}(Pe);function wC(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,u=i.width,c=i.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,c+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var d=new Oe({shape:{x:o,y:s,width:u,height:c}});if(e){var h=r.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(y){a(y,d)}:null;mt(d,{shape:{width:u,height:c,x:o,y:s}},t,null,n,g)}return d}function xC(r,e,t){var n=r.getArea(),a=pt(n.r0,1),i=pt(n.r,1),o=new on({shape:{cx:pt(r.cx,1),cy:pt(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,mt(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function CC(r,e,t,n,a){if(r){if(r.type==="polar")return xC(r,e,t);if(r.type==="cartesian2d")return wC(r,e,t,n,a)}else return null;return null}function fa(r,e){return r.type===e}function L0(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function V0(r){for(var e=1/0,t=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),a=Math.max(s,a))}return[[e,t],[n,a]]}function P0(r,e){var t=V0(r),n=t[0],a=t[1],i=V0(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function R0(r){return He(r)?r:r?.5:0}function m$(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),a=en(n*2),i=0;i<n;i++){var o=_C(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Gn(r,e,t,n,a){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],u=0,c=[],f=[],d=[],h=[];if(a){for(u=0;u<r.length;u+=2){var v=e||r;!isNaN(v[u])&&!isNaN(v[u+1])&&h.push(r[u],r[u+1])}r=h}for(u=0;u<r.length-2;u+=2)switch(d[0]=r[u+2],d[1]=r[u+3],f[0]=r[u],f[1]=r[u+1],s.push(f[0],f[1]),n){case"end":c[o]=d[o],c[1-o]=f[1-o],s.push(c[0],c[1]);break;case"middle":var p=(f[o]+d[o])/2,g=[];c[o]=g[o]=p,c[1-o]=f[1-o],g[1-o]=d[1-o],s.push(c[0],c[1]),s.push(g[0],g[1]);break;default:c[o]=f[o],c[1-o]=d[1-o],s.push(c[0],c[1])}return s.push(r[u++],r[u++]),s}function y$(r,e){var t=[],n=r.length,a,i;function o(f,d,h){var v=f.coord,p=(h-v)/(d.coord-v),g=OI(p,[f.color,d.color]);return{coord:h,color:g}}for(var s=0;s<n;s++){var u=r[s],c=u.coord;if(c<0)a=u;else if(c>e){i?t.push(o(i,u,e)):a&&t.push(o(a,u,0),o(a,u,e));break}else a&&(t.push(o(a,u,0)),a=null),t.push(u),i=u}return t}function b$(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.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,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];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=X(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=y$(c,a==="x"?t.getWidth():t.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,y=h[v-1].coord+p,m=y-g;if(m<.001)return"transparent";N(h,function(_){_.offset=(_.coord-g)/m}),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 fp(0,0,0,0,h,!0);return b[a]=g,b[a+"2"]=y,b}}function _$(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&S$(i,e))){var o=e.mapDimension(i.dim),s={};return N(i.getViewLabels(),function(u){var c=i.scale.getRawOrdinalNumber(u.tickValue);s[c]=1}),function(u){return!s.hasOwnProperty(e.get(o,u))}}}}function S$(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Uc.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function w$(r,e){return isNaN(r)||isNaN(e)}function x$(r){for(var e=r.length/2;e>0&&w$(r[e*2-2],r[e*2-1]);e--);return e-1}function O0(r,e){return[r[e*2],r[e*2+1]]}function C$(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,u=-1,c=0;c<n;c++)if(o=r[c*2+a],!(isNaN(o)||isNaN(r[c*2+1-a]))){if(c===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){u=c;break}s=c,i=o}return{range:[s,u],t:(e-i)/(o-i)}}function kC(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Jt.length;e++)if(r.get([Jt[e],"endLabel","show"]))return!0;return!1}function pd(r,e,t,n){if(fa(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},u=kC(n)?function(v,p){r._endLabelOnDuring(v,p,o,s,i,a,e)}:null,c=e.getBaseAxis().isHorizontal(),f=wC(e,t,n,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.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."),xC(e,t,n)}function k$(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var T$=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Ee,n=new Zp;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=oe(this._changePolyState,this)},e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),u=t.getModel("lineStyle"),c=t.getModel("areaStyle"),f=s.getLayout("points")||[],d=i.type==="polar",h=this._coordSys,v=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=!n.ssr&&t.get("animation"),b=!c.isEmpty(),_=c.get("origin"),S=bC(i,s,_),w=b&&m$(i,s,S),x=t.get("showSymbol"),C=t.get("connectNulls"),k=x&&!d&&_$(t,s,i),T=this._data;T&&T.eachItemGraphicEl(function(q,Q){q.__temp&&(o.remove(q),T.setItemGraphicEl(Q,null))}),x||v.remove(),o.add(y);var D=d?!1:t.get("step"),M;i&&i.getArea&&t.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var A=b$(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&h.type===i.type&&D===this._step))x&&v.updateData(s,{isIgnore:k,clipShape:M,disableAnimation:!0,getSymbolPoint:function(q){return[f[q*2],f[q*2+1]]}}),m&&this._initSymbolLabelAnimation(s,i,M),D&&(w&&(w=Gn(w,f,i,D,C)),f=Gn(f,null,i,D,C)),p=this._newPolyline(f),b?g=this._newPolygon(f,w):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(t,i,li(A)),y.setClipPath(pd(this,i,!0,t));else{b&&!g?g=this._newPolygon(f,w):g&&!b&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(t,i,li(A));var E=y.getClipPath();if(E){var I=pd(this,i,!1,t);mt(E,{shape:I.shape},t)}else y.setClipPath(pd(this,i,!0,t));x&&v.updateData(s,{isIgnore:k,clipShape:M,disableAnimation:!0,getSymbolPoint:function(q){return[f[q*2],f[q*2+1]]}}),(!L0(this._stackedOnPoints,w)||!L0(this._points,f))&&(m?this._doUpdateAnimation(s,w,i,a,D,_,C):(D&&(w&&(w=Gn(w,f,i,D,C)),f=Gn(f,null,i,D,C)),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:w})))}var B=t.getModel("emphasis"),R=B.get("focus"),P=B.get("blurScope"),L=B.get("disabled");if(p.useStyle(Me(u.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Ir(p,t,"lineStyle"),p.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var V=p.getState("emphasis").style;V.lineWidth=+p.style.lineWidth+1}Te(p).seriesIndex=t.seriesIndex,ar(p,R,P,L);var z=R0(t.get("smooth")),O=t.get("smoothMonotone");if(p.setShape({smooth:z,smoothMonotone:O,connectNulls:C}),g){var W=s.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(Me(c.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&(j=R0(W.get("smooth"))),g.setShape({smooth:z,stackedOnSmooth:j,smoothMonotone:O,connectNulls:C}),Ir(g,t,"areaStyle"),Te(g).seriesIndex=t.seriesIndex,ar(g,R,P,L)}var ne=this._changePolyState;s.eachItemGraphicEl(function(q){q&&(q.onHoverStateChange=ne)}),this._polyline.onHoverStateChange=ne,this._data=s,this._coordSys=i,this._stackedOnPoints=w,this._points=f,this._step=D,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,n){Te(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=ni(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),c=o.getItemGraphicEl(s);if(!c){var f=u[s*2],d=u[s*2+1];if(isNaN(f)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,d))return;var h=t.get("zlevel")||0,v=t.get("z")||0;c=new Uc(o,s),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,o.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else yt.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=ni(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else yt.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;Mh(this._polyline,t),n&&Mh(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new v$({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new g$({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),u=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var c=t.hostModel,f=c.get("animationDuration");ue(f)&&(f=f(null));var d=c.get("animationDelay")||0,h=ue(d)?d(null):d;t.eachItemGraphicEl(function(v,p){var g=v;if(g){var y=[v.x,v.y],m=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,w=n.pointToCoord(y);i?(m=S.startAngle,b=S.endAngle,_=-w[1]/180*Math.PI):(m=S.r0,b=S.r,_=w[0])}else{var x=a;i?(m=x.x,b=x.x+x.width,_=v.x):(m=x.y+x.height,b=x.y,_=v.y)}var C=b===m?0:(_-m)/(b-m);u&&(C=1-C);var k=ue(d)?d(p):f*C+h,T=g.getSymbolPath(),D=T.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:k}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:k}),T.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(kC(t)){var o=t.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new We({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=x$(u);f>=0&&(ln(s,yr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(d,h,v){return v!=null?yC(o,v):Yp(o,d)},enableTextSetter:!0},k$(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,u){var c=this._endLabel,f=this._polyline;if(c){t<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=s.get("precision"),g=s.get("distance")||0,y=u.getBaseAxis(),m=y.isHorizontal(),b=y.inverse,_=n.shape,S=b?m?_.x:_.y+_.height:m?_.x+_.width:_.y,w=(m?g:0)*(b?-1:1),x=(m?0:-g)*(b?-1:1),C=m?"x":"y",k=C$(d,S,C),T=k.range,D=T[1]-T[0],M=void 0;if(D>=1){if(D>1&&!v){var A=O0(d,T[0]);c.attr({x:A[0]+w,y:A[1]+x}),o&&(M=h.getRawValue(T[0]))}else{var A=f.getPointOn(S,C);A&&c.attr({x:A[0]+w,y:A[1]+x});var E=h.getRawValue(T[0]),I=h.getRawValue(T[1]);o&&(M=ES(a,p,E,I,k.t))}i.lastFrameIndex=T[0]}else{var B=t===1||i.lastFrameIndex>0?T[0]:0,A=O0(d,B);o&&(M=h.getRawValue(B)),c.attr({x:A[0]+w,y:A[1]+x})}if(o){var R=Gs(c);typeof R.setLabelText=="function"&&R.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,u){var c=this._polyline,f=this._polygon,d=t.hostModel,h=h$(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,p=h.stackedOnCurrent,g=h.next,y=h.stackedOnNext;if(o&&(p=Gn(h.stackedOnCurrent,h.current,a,o,u),v=Gn(h.current,null,a,o,u),y=Gn(h.stackedOnNext,h.next,a,o,u),g=Gn(h.next,null,a,o,u)),P0(v,g)>3e3||f&&P0(p,y)>3e3){c.stopAnimation(),c.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:y}));return}c.shape.__points=h.current,c.shape.points=v;var m={shape:{points:g}};h.current!==v&&(m.shape.__points=h.next),c.stopAnimation(),Ke(c,m,d),f&&(f.setShape({points:v,stackedOnPoints:p}),f.stopAnimation(),Ke(f,{shape:{stackedOnPoints:y}},d),c.shape.points!==f.shape.points&&(f.shape.points=c.shape.points));for(var b=[],_=h.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&b.push({el:x,ptIdx:S})}}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 T=b[k].el,D=b[k].ptIdx*2;T.x=C[D],T.y=C[D+1],T.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(yt);function Xp(r,e){return{seriesType:r,plan:Ys(),reset:function(t){var n=t.getData(),a=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(a){var s=X(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),u=s.length,c=n.getCalculationInfo("stackResultDimension");ui(n,s[0])&&(s[0]=c),ui(n,s[1])&&(s[1]=c);var f=n.getStore(),d=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return u&&{progress:function(v,p){for(var g=v.end-v.start,y=o&&en(g*u),m=[],b=[],_=v.start,S=0;_<v.end;_++){var w=void 0;if(u===1){var x=f.get(d,_);w=a.dataToPoint(x,null,b)}else m[0]=f.get(d,_),m[1]=f.get(h,_),w=a.dataToPoint(m,null,b);o?(y[S++]=w[0],y[S++]=w[1]):p.setItemLayout(_,w.slice())}o&&p.setLayout("points",y)}}}}}}var D$={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},M$=function(r){return Math.round(r.length/2)};function TC(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var u=o.getBaseAxis(),c=o.getOtherAxis(u),f=u.getExtent(),d=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(d||1),v=Math.round(s/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;te(i)?p=D$[i]:ue(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(c.dim),1/v,p,M$))}}}}}function E$(r){r.registerChartView(T$),r.registerSeriesModel(u$),r.registerLayout(Xp("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,TC("line"))}var hv=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Xs(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)N(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var p=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),y=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!g&&(y+=1),p.length<2)return;if(p.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var b=void 0,_=void 0,S=1,w=0;w<p.length;w++){var x=p[w].coord,C=w===p.length-1?p[w-1].tickValue+S:p[w].tickValue;if(C===y){_=x;break}else if(C<y)b=x;else if(b!=null&&C>y){_=(x+b)/2;break}w===1&&(S=C-p[0].tickValue)}_==null&&(b?b&&(_=p[p.length-1].coord):_=p[0].coord),s[v]=h.toGlobalCoord(_)}});else{var u=this.getData(),c=u.getLayout("offset"),f=u.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=c+f/2}return s}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",defaultBarGap:"10%"},e}(wt);wt.registerClass(hv);var A$=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Xs(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 t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ho(hv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:G.color.primary,borderWidth:2}},realtimeSort:!1}),e}(hv),N$=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),ac=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new N$},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,c=o+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),y=Math.sin(f),m=Math.cos(d),b=Math.sin(d);p?(t.moveTo(g*o+a,y*o+i),t.arc(g*c+a,y*c+i,u,-Math.PI+f,f,!h)):t.moveTo(g*s+a,y*s+i),t.arc(a,i,s,f,d,!h),t.arc(m*c+a,b*c+i,u,d-Math.PI*2,d-Math.PI,!h),o!==0&&t.arc(a,i,o,d,f,h)},e}(Pe);function I$(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Tu(n,a,i);var s=r(o),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,y=c.endAngle,m=(g+y)/2,b=t?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,w=f+h*_(g),x=d+h*S(g),C="left",k="top";switch(s){case"startArc":w=f+(v-u)*_(m),x=d+(v-u)*S(m),C="center",k="top";break;case"insideStartArc":w=f+(v+u)*_(m),x=d+(v+u)*S(m),C="center",k="bottom";break;case"startAngle":w=f+p*_(g)+Pl(g,u+b,!1),x=d+p*S(g)+Rl(g,u+b,!1),C="right",k="middle";break;case"insideStartAngle":w=f+p*_(g)+Pl(g,-u+b,!1),x=d+p*S(g)+Rl(g,-u+b,!1),C="left",k="middle";break;case"middle":w=f+p*_(m),x=d+p*S(m),C="center",k="middle";break;case"endArc":w=f+(h+u)*_(m),x=d+(h+u)*S(m),C="center",k="bottom";break;case"insideEndArc":w=f+(h-u)*_(m),x=d+(h-u)*S(m),C="center",k="top";break;case"endAngle":w=f+p*_(y)+Pl(y,u+b,!0),x=d+p*S(y)+Rl(y,u+b,!0),C="left",k="middle";break;case"insideEndAngle":w=f+p*_(y)+Pl(y,-u+b,!0),x=d+p*S(y)+Rl(y,-u+b,!0),C="right",k="middle";break;default:return Tu(n,a,i)}return n=n||{},n.x=w,n.y=x,n.align=C,n.verticalAlign=k,n}}function B$(r,e,t,n){if(He(n)){r.setTextConfig({rotation:n});return}else if(Z(e)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,u,c=t(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=i;break;case"endAngle":case"insideEndAngle":u=o;break;default:r.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),r.setTextConfig({rotation:f})}function Pl(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Rl(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Qo(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;Z(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:X(n,function(i){return nn(i,a)})}}var gd=Math.max,md=Math.min;function L$(r,e){var t=r.getArea&&r.getArea();if(fa(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=a,t.width+=a*2):(t.y-=a,t.height+=a*2)}}return t}var V$=function(r){H(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,a):this._renderNormal(t,n,a,i)):process.env.NODE_ENV!=="production"&&St("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){vi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,a,i){var o=this.group,s=t.getData(),u=this._data,c=t.coordinateSystem,f=c.getBaseAxis(),d;c.type==="cartesian2d"?d=f.isHorizontal():c.type==="polar"&&(d=f.dim==="angle");var h=t.isAnimationEnabled()?t:null,v=P$(t,c);v&&this._enableRealtimeSort(v,s,a);var p=t.get("clip",!0)||v,g=L$(c,s);o.removeClipPath();var y=t.get("roundCap",!0),m=t.get("showBackground",!0),b=t.getModel("backgroundStyle"),_=b.get("borderRadius")||0,S=[],w=this._backgroundEls,x=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function k(M){var A=Ol[c.type](s,M);if(!A)return null;var E=G$(c,d,A);return E.useStyle(b.getItemStyle()),c.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),S[M]=E,E}s.diff(u).add(function(M){var A=s.getItemModel(M),E=Ol[c.type](s,M,A);if(E&&(m&&k(M),!(!s.hasValue(M)||!G0[c.type](E)))){var I=!1;p&&(I=z0[c.type](g,E));var B=$0[c.type](t,s,M,E,d,h,f.model,!1,y);v&&(B.forceLabelAnimation=!0),W0(B,s,M,A,E,t,d,c.type==="polar"),x?B.attr({shape:E}):v?F0(v,h,B,E,M,d,!1,!1):mt(B,{shape:E},t,M),s.setItemGraphicEl(M,B),o.add(B),B.ignore=I}}).update(function(M,A){var E=s.getItemModel(M),I=Ol[c.type](s,M,E);if(I){if(m){var B=void 0;w.length===0?B=k(A):(B=w[A],B.useStyle(b.getItemStyle()),c.type==="cartesian2d"?B.setShape("r",_):B.setShape("cornerRadius",_),S[M]=B);var R=Ol[c.type](s,M),P=MC(d,R,c);Ke(B,{shape:P},h,M)}var L=u.getItemGraphicEl(A);if(!s.hasValue(M)||!G0[c.type](I)){o.remove(L);return}var V=!1;p&&(V=z0[c.type](g,I),V&&o.remove(L));var z=L&&(L.type==="sector"&&y||L.type==="sausage"&&!y);if(z&&(L&&fs(L,t,A),L=null),L?Ji(L):L=$0[c.type](t,s,M,I,d,h,f.model,!0,y),v&&(L.forceLabelAnimation=!0),C){var O=L.getTextContent();if(O){var W=Gs(O);W.prevValue!=null&&(W.prevValue=W.value)}}else W0(L,s,M,E,I,t,d,c.type==="polar");x?L.attr({shape:I}):v?F0(v,h,L,I,M,d,!0,C):Ke(L,{shape:I},t,M,null),s.setItemGraphicEl(M,L),L.ignore=V,o.add(L)}}).remove(function(M){var A=u.getItemGraphicEl(M);A&&fs(A,t,M)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new Ee);T.removeAll();for(var D=0;D<S.length;++D)T.add(S[D]);o.add(T),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,n,a){this._clear(),Y0(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),Y0(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&CC(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,a),this._isFirstFrame=!1;else{var s=function(u){var c=n.getItemGraphicEl(u),f=c&&c.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.mapDimension(n.dim),function(o,s){var u=a(s);u=u??NaN,i.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:X(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,u=0,c=i.getOrdinalMeta().categories.length;u<c;++u){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(u)),d=f<0?Number.MIN_VALUE:n(t.indexOfRawIndex(f));if(d>s)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){fs(i,t,Te(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}(yt),z0={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=gd(e.x,r.x),s=md(e.x+e.width,a),u=gd(e.y,r.y),c=md(e.y+e.height,i),f=s<o,d=c<u;return e.x=f&&o>a?s:o,e.y=d&&u>i?c:u,e.width=f?0:s-o,e.height=d?0:c-u,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||d},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=md(e.r,r.r),i=gd(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},$0={cartesian2d:function(r,e,t,n,a,i,o,s,u){var c=new Oe({shape:Y({},n),z2:1});if(c.__dataIndex=t,c.name="item",i){var f=c.shape,d=a?"height":"width";f[d]=0}return c},polar:function(r,e,t,n,a,i,o,s,u){var c=!a&&u?ac:on,f=new c({shape:n,z2:1});f.name="item";var d=DC(a);if(f.calculateTextPosition=I$(d,{isRoundCap:c===ac}),i){var h=f.shape,v=a?"r":"endAngle",p={};h[v]=a?n.r0:n.startAngle,p[v]=n[v],(s?Ke:mt)(f,{shape:p},i)}return f}};function P$(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&t&&(n.type!=="category"&&St("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&St("`realtimeSort` will not work because this bar series is not on cartesian2d.")),t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function F0(r,e,t,n,a,i,o,s){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}),s||(o?Ke:mt)(t,{shape:u},e,a,null);var f=e?r.baseAxis.model:null;(o?Ke:mt)(t,{shape:c},f,a)}function H0(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var R$=["x","y","width","height"],O$=["cx","cy","r","startAngle","endAngle"],G0={cartesian2d:function(r){return!H0(r,R$)},polar:function(r){return!H0(r,O$)}},Ol={cartesian2d:function(r,e,t){var n=r.getItemLayout(e);if(!n)return null;var a=t?$$(t,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.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 z$(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function DC(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function W0(r,e,t,n,a,i,o,s){var u=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,d=Qo(n.getModel("itemStyle"),f,!0);Y(f,d),r.setShape(f)}}else{var c=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",c)}r.useStyle(u);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=yr(n);ln(r,p,{labelFetcher:i,labelDataIndex:t,defaultText:Yp(i.getData(),t),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:v});var g=r.getTextContent();if(s&&g){var y=n.get(["label","position"]);r.textConfig.inside=y==="middle"?!0:null,B$(r,y==="outside"?v:y,DC(o),n.get(["label","rotate"]))}hw(g,p,i.getRawValue(t),function(b){return yC(e,b)});var m=n.getModel(["emphasis"]);ar(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),Ir(r,n),z$(a)&&(r.style.fill="none",r.style.stroke="none",N(r.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function $$(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.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 F$=function(){function r(){}return r}(),U0=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new F$},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],c=this.barWidth,f=0;f<a.length;f+=3)u[i]=c,u[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],t.rect(s[0],s[1],u[0],u[1])},e}(Pe);function Y0(r,e,t,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),u=r.getModel("backgroundStyle"),c=a.getLayout("largeBackgroundPoints");if(c){var f=new U0({shape:{points:c},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(u.getItemStyle()),e.add(f),t&&t.push(f)}var d=new U0({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=i,d.largeDataIndices=o,d.barWidth=s,e.add(d),d.useStyle(a.getVisual("style")),d.style.stroke=null,Te(d).seriesIndex=r.seriesIndex,r.get("silent")||(d.on("mousedown",Z0),d.on("mousemove",Z0)),t&&t.push(d)}var Z0=zc(function(r){var e=this,t=H$(e,r.offsetX,r.offsetY);Te(e).dataIndex=t>=0?t:null},30,!1);function H$(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],u=[],c=r.barWidth,f=0,d=i.length/3;f<d;f++){var h=f*3;if(u[n]=c,u[a]=i[h+2],s[n]=i[h+n],s[a]=i[h+a],u[a]<0&&(s[a]+=u[a],u[a]=-u[a]),e>=s[0]&&e<=s[0]+u[0]&&t>=s[1]&&t<=s[1]+u[1])return o[f]}return-1}function MC(r,e,t){if(fa(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function G$(r,e,t){var n=r.type==="polar"?on:Oe;return new n({shape:MC(e,t,r),silent:!0,z2:0})}function W$(r){r.registerChartView(V$),r.registerSeriesModel(A$),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,me(Gz,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Wz("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,TC("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var X0=Math.PI*2,zl=Math.PI/180;function U$(r,e,t){e.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=_P(n,t),s=o.cx,u=o.cy,c=o.r,f=o.r0,d=o.viewRect,h=-n.get("startAngle")*zl,v=n.get("endAngle"),p=n.get("padAngle")*zl;v=v==="auto"?h-X0:-v*zl;var g=n.get("minAngle")*zl,y=g+p,m=0;a.each(i,function(P){!isNaN(P)&&m++});var b=a.getSum(i),_=Math.PI/(b||m)*2,S=n.get("clockwise"),w=n.get("roseType"),x=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var k=S?1:-1,T=[h,v],D=k*p/2;np(T,!S),h=T[0],v=T[1];var M=EC(n);M.startAngle=h,M.endAngle=v,M.clockwise=S,M.cx=s,M.cy=u,M.r=c,M.r0=f;var A=Math.abs(v-h),E=A,I=0,B=h;if(a.setLayout({viewRect:d,r:c}),a.each(i,function(P,L){var V;if(isNaN(P)){a.setItemLayout(L,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:u,r0:f,r:w?NaN:c});return}w!=="area"?V=b===0&&x?_:P*_:V=A/m,V<y?(V=y,E-=y):I+=P;var z=B+k*V,O=0,W=0;p>V?(O=B+k*V/2,W=O):(O=B+D,W=z-D),a.setItemLayout(L,{angle:V,startAngle:O,endAngle:W,clockwise:S,cx:s,cy:u,r0:f,r:w?ze(P,C,[f,c]):c}),B=z}),E<X0&&m)if(E<=.001){var R=A/m;a.each(i,function(P,L){if(!isNaN(P)){var V=a.getItemLayout(L);V.angle=R;var z=0,O=0;R<p?(z=h+k*(L+1/2)*R,O=z):(z=h+k*L*R+D,O=h+k*(L+1)*R-D),V.startAngle=z,V.endAngle=O}})}else _=E/I,B=h,a.each(i,function(P,L){if(!isNaN(P)){var V=a.getItemLayout(L),z=V.angle===y?y:P*_,O=0,W=0;z<p?(O=B+k*z/2,W=O):(O=B+D,W=B+k*z-D),V.startAngle=O,V.endAngle=W,B+=k*z}})})}var EC=Re();function AC(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Y$=Math.PI/180;function j0(r,e,t,n,a,i,o,s,u,c){if(r.length<2)return;function f(g){for(var y=g.rB,m=y*y,b=0;b<g.list.length;b++){var _=g.list[b],S=Math.abs(_.label.y-t),w=n+_.len,x=w*w,C=Math.sqrt(Math.abs((1-S*S/m)*x)),k=e+(C+_.len2)*a,T=k-_.label.x,D=_.targetTextWidth-T*a;NC(_,D,!0),_.label.x=k}}function d(g){for(var y={list:[],maxY:0},m={list:[],maxY:0},b=0;b<g.length;b++)if(g[b].labelAlignTo==="none"){var _=g[b],S=_.label.y>t?m:y,w=Math.abs(_.label.y-t);if(w>=S.maxY){var x=_.label.x-e-_.len2*a,C=n+_.len,k=Math.abs(x)<C?Math.sqrt(w*w/(1-x*x/C/C)):C;S.rB=k,S.maxY=w}S.list.push(_)}f(y),f(m)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var p=r[v].label.x-c;r[v].linePoints[1][0]+=p,r[v].label.x=c}I5(r,1,u,u+o)&&d(r)}function Z$(r,e,t,n,a,i,o,s){for(var u=[],c=[],f=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;yd(r[h])||(v.x<e?(f=Math.min(f,v.x),u.push(r[h])):(d=Math.max(d,v.x),c.push(r[h])))}for(var h=0;h<r.length;h++){var p=r[h];if(!yd(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var v=p.label,g=p.linePoints,y=void 0;p.labelAlignTo==="edge"?v.x<e?y=g[2][0]-p.labelDistance-o-p.edgeDistance:y=o+a-p.edgeDistance-g[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?v.x<e?y=f-o-p.bleedMargin:y=o+a-d-p.bleedMargin:v.x<e?y=v.x-o-p.bleedMargin:y=o+a-v.x-p.bleedMargin,p.targetTextWidth=y,NC(p,y,!1)}}j0(c,e,t,n,1,a,i,o,s,d),j0(u,e,t,n,-1,a,i,o,s,f);for(var h=0;h<r.length;h++){var p=r[h];if(!yd(p)&&p.linePoints){var v=p.label,g=p.linePoints,m=p.labelAlignTo==="edge",b=v.style.padding,_=b?b[1]+b[3]:0,S=v.style.backgroundColor?0:_,w=p.rect.width+S,x=g[1][0]-g[2][0];m?v.x<e?g[2][0]=o+p.edgeDistance+w+p.labelDistance:g[2][0]=o+a-p.edgeDistance-w-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 NC(r,e,t){if(r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,u=s?s[1]+s[3]:0,c=a.overflow,f=i.width+(o?0:u);if(e<f||t){if(c&&c.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-u);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=e-u,v=e<f?h:t?h>r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}IC(i,n)}}}function IC(r,e){q0.rect=r,hC(q0,e,X$)}var X$={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},q0={};function yd(r){return r.position==="center"}function j$(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*Y$,s=e.getLayout("viewRect"),u=e.getLayout("r"),c=s.width,f=s.x,d=s.y,h=s.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,T=C.getTextContent(),D=C.getTextGuideLine(),M=e.getItemModel(x),A=M.getModel("label"),E=A.get("position")||M.get(["emphasis","label","position"]),I=A.get("distanceToLabelLine"),B=A.get("alignTo"),R=de(A.get("edgeDistance"),c),P=A.get("bleedMargin");P==null&&(P=Math.min(c,h)>200?10:2);var L=M.getModel("labelLine"),V=L.get("length");V=de(V,c);var z=L.get("length2");if(z=de(z,c),Math.abs(k.endAngle-k.startAngle)<o){N(T.states,v),T.ignore=!0,D&&(N(D.states,v),D.ignore=!0);return}if(p(T)){var O=(k.startAngle+k.endAngle)/2,W=Math.cos(O),j=Math.sin(O),ne,q,Q,Be;n=k.cx,a=k.cy;var ae=E==="inside"||E==="inner";if(E==="center")ne=k.cx,q=k.cy,Be="center";else{var le=(ae?(k.r+k.r0)/2*W:k.r*W)+n,Se=(ae?(k.r+k.r0)/2*j:k.r*j)+a;if(ne=le+W*3,q=Se+j*3,!ae){var J=le+W*(V+u-k.r),ie=Se+j*(V+u-k.r),$e=J+(W<0?-1:1)*z,Ae=ie;B==="edge"?ne=W<0?f+R:f+c-R:ne=$e+(W<0?-I:I),q=Ae,Q=[[le,Se],[J,ie],[$e,Ae]]}Be=ae?"center":B==="edge"?W>0?"right":"left":W>0?"left":"right"}var xe=Math.PI,Fe=0,tt=A.get("rotate");if(He(tt))Fe=tt*(xe/180);else if(E==="center")Fe=0;else if(tt==="radial"||tt===!0){var At=W<0?-O+xe:-O;Fe=At}else if(tt==="tangential"&&E!=="outside"&&E!=="outer"){var at=Math.atan2(W,j);at<0&&(at=xe*2+at);var cn=j>0;cn&&(at=xe+at),Fe=at-xe}if(i=!!Fe,T.x=ne,T.y=q,T.rotation=Fe,T.setStyle({verticalAlign:"middle"}),ae){T.setStyle({align:Be});var Nn=T.states.select;Nn&&(Nn.x+=T.x,Nn.y+=T.y)}else{var $r=new ye(0,0,0,0);IC($r,T),t.push({label:T,labelLine:D,position:E,len:V,len2:z,minTurnAngle:L.get("minTurnAngle"),maxSurfaceAngle:L.get("maxSurfaceAngle"),surfaceNormal:new ke(W,j),linePoints:Q,textAlign:Be,labelDistance:I,labelAlignTo:B,edgeDistance:R,bleedMargin:P,rect:$r,unconstrainedWidth:$r.width,labelStyleWidth:T.style.width})}C.setTextConfig({inside:ae})}}),!i&&r.get("avoidLabelOverlap")&&Z$(t,n,a,u,c,h,f,d);for(var g=0;g<t.length;g++){var y=t[g],m=y.label,b=y.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:y.textAlign}),_&&(N(m.states,v),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(b){var w=y.linePoints;_||!w?(N(b.states,v),b.ignore=!0):(C5(w,y.minTurnAngle),k5(w,y.surfaceNormal,y.maxSurfaceAngle),b.setShape({points:w}),m.__hostTarget.textGuideLineConfig={anchor:new ke(w[0][0],w[0][1])})}}}var q$=function(r){H(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new We;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,u=t.getItemModel(n),c=u.getModel("emphasis"),f=t.getItemLayout(n),d=Y(Qo(u.getModel("itemStyle"),f,!0),f);if(isNaN(d.startAngle)){o.setShape(d);return}if(i){o.setShape(d);var h=s.getShallow("animationType");s.ecModel.ssr?(mt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=d.cx,o.originY=d.cy):h==="scale"?(o.shape.r=f.r0,mt(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),mt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ke(o,{shape:{endAngle:f.endAngle}},s,n))}else Ji(o),Ke(o,{shape:d},s,n);o.useStyle(t.getItemVisual(n,"style")),Ir(o,u);var v=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),g=Math.cos(v)*p,y=Math.sin(v)*p,m=u.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=Y({r:f.r+(c.get("scale")&&c.get("scaleSize")||0)},Qo(c.getModel("itemStyle"),f)),Y(o.ensureState("select"),{x:g,y,shape:Qo(u.getModel(["select","itemStyle"]),f)}),Y(o.ensureState("blur"),{shape:Qo(u.getModel(["blur","itemStyle"]),f)});var b=o.getTextGuideLine(),_=o.getTextContent();b&&Y(b.ensureState("select"),{x:g,y}),Y(_.ensureState("select"),{x:g,y}),ar(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),u=n.getItemVisual(a,"style"),c=u&&u.fill,f=u&&u.opacity;ln(i,yr(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:c,defaultOpacity:f,defaultText:t.getFormattedLabel(a,"normal")||n.getName(a)});var d=i.getTextContent();i.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new An,this.setTextGuideLine(v)),D5(this,M5(o),{stroke:c,opacity:xn(s.get(["lineStyle","opacity"]),f,1)})}},e}(on),K$=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.getData(),s=this._data,u=this.group,c;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),d=1;isNaN(f&&f.startAngle)&&d<o.count();++d)f=o.getItemLayout(d);f&&(c=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=EC(t),v=new on({shape:he(h)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,u.add(v)}o.diff(s).add(function(p){var g=new q$(o,p,c);o.setItemGraphicEl(p,g),u.add(g)}).update(function(p,g){var y=s.getItemGraphicEl(g);y.updateData(o,p,c),y.off("click"),u.add(y),o.setItemGraphicEl(p,y)}).remove(function(p){var g=s.getItemGraphicEl(p);fs(g,t,p)}).execute(),j$(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,u=Math.sqrt(o*o+s*s);return u<=i.r&&u>=i.r0}},e.type="pie",e}(yt);function Yc(r,e,t){e=Z(e)&&{coordDimensions:e}||Y({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=Fp(n,e).dimensions,i=new Tn(a,r);return i.initData(n,t),i}var BC=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}(),Q$=Re(),LC=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new BC(oe(this.getData,this),oe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Yc(this,{coordDimensions:["value"],encodeDefaulter:me(DP,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=Q$(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),i=a.seats=vB(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Au(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(wt);hP({fullType:LC.type,getCoord2:function(r){return r.getShallow("center")}});function J$(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(He(o)&&!isNaN(o)&&o<0)})}}}function eF(r){r.registerChartView(K$),r.registerSeriesModel(LC),cO("pie",r.registerAction),r.registerLayout(me(U$,"pie")),r.registerProcessor(AC("pie")),r.registerProcessor(J$("pie"))}var tF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return Xs(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:G.color.primary}},universalTransition:{divideShape:"clone"}},e}(wt),VC=4,rF=function(){function r(){}return r}(),nF=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new rF},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,u=t.getContext?t.getContext():t,c=u&&i[0]<VC,f=this.softClipShape,d;if(c){this._ctx=u;return}for(this._ctx=null,d=this._off;d<a.length;){var h=a[d++],v=a[d++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=d,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,a=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var u=n[s++],c=n[s++];isNaN(u)||isNaN(c)||o&&!o.contain(u,c)||i.fillRect(u-a[0]/2,c-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),u=Math.max(o[1],4),c=i.length/2-1;c>=0;c--){var f=c*2,d=i[f]-s/2,h=i[f+1]-u/2;if(t>=d&&n>=h&&t<=d+s&&n<=h+u)return c}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],u=1/0,c=1/0,f=-1/0,d=-1/0,h=0;h<a.length;){var v=a[h++],p=a[h++];u=Math.min(v,u),f=Math.max(v,f),c=Math.min(p,c),d=Math.max(p,d)}t=this._rect=new ye(u-o/2,c-s/2,f-u+o,d-c+s)}return t},e}(Pe),aF=function(){function r(){this.group=new Ee}return r.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;t=new Float32Array(t.buffer,i,a)}n.setShape("points",t),n.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n){var a=this._newAdded[0],i=t.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,u=new Float32Array(s+i.length);u.set(o),u.set(i,s),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=!0,c.setShape({points:i}),this._setCommon(c,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new nF({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=Vt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<VC;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),u=s&&s.fill;u&&e.setColor(u);var c=Te(e);c.seriesIndex=a.seriesIndex,e.on("mousemove",function(f){c.dataIndex=null;var d=e.hoverDataIdx;d>=0&&(c.dataIndex=d+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),iF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Xp("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var n=t.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new aF:new Zp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(yt),PC={left:0,right:0,top:0,bottom:0},ic=["25%","25%"],oF=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var a=vo(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&la(t.outerBounds,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&la(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:PC,outerBoundsContain:"all",outerBoundsClampWidth:ic[0],outerBoundsClampHeight:ic[1],backgroundColor:G.color.transparent,borderWidth:1,borderColor:G.color.neutral30},e}(Ne),vv=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Bt).models[0]},e.type="cartesian2dAxis",e}(Ne);ir(vv,tC);var RC={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:G.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:G.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:G.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[G.color.backgroundTint,G.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:G.color.neutral00,borderColor:G.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},sF=Ce({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},RC),jp=Ce({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:G.color.axisMinorSplitLine,width:1}}},RC),lF=Ce({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},jp),uF=Me({logBase:10},jp);const OC={category:sF,value:jp,time:lF,log:uF};var cF={value:1,category:1,time:1,log:1},fF=null;function dF(){return fF}function K0(r,e,t,n){N(cF,function(a,i){var o=Ce(Ce({},OC[i],!0),n,!0),s=function(u){H(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=xs(this),v=h?vo(f):{},p=d.getTheme();Ce(f,p.get(i+"Axis")),Ce(f,this.getDefaultOption()),f.type=Q0(f),h&&la(f,v,h)},c.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=sv.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.prototype.updateAxisBreaks=function(f){return{breaks:[]}},c.type=e+"Axis."+i,c.defaultOption=o,c}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",Q0)}function Q0(r){return r.type||(r.data?"category":"value")}var hF=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return X(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),et(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),pv=["x","y"];function J0(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var vF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=pv,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!J0(t)||!J0(n))){var a=t.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),u=a[1]-a[0],c=i[1]-i[0];if(!(!u||!c)){var f=(s[0]-o[0])/u,d=(s[1]-o[1])/c,h=o[0]-a[0]*f,v=o[1]-i[0]*d,p=this._transform=[f,0,0,d,h,v];this._invTransform=lo([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new ye(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return zt(a,t,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=u.toGlobalCoord(u.dataToCoord(o,n)),a},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),u=a.parse(t[0]),c=i.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n,a){if(a=a||[],this._invTransform)return zt(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(n[0],n[1])-i+t,u=Math.max(a[0],a[1])-o+t;return new ye(i,o,s,u)},e}(hF),pF=function(r){H(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(uC),gF="expandAxisBreak",Kn=Math.PI,mF=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],yF=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Es=Re(),zC=Re(),$C=function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[t]||(a[t]=[]);return i[n]||(i[n]={ready:{}})},r}();function bF(r,e,t,n){var a=t.axis,i=e.ensureRecord(t),o=[],s,u=qp(r.axisName)&&no(r.nameLocation);N(n,function(p){var g=ca(p);if(!(!g||g.label.ignore)){o.push(g);var y=i.transGroup;u&&(y.transform?lo(Io,y.transform):Xv(Io),g.transform&&as(Io,Io,g.transform),ye.copy($l,g.localRect),$l.applyTransform(Io),s?s.union($l):ye.copy(s=new ye(0,0,0,0),$l))}});var c=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[c];if(o.sort(function(p,g){return Math.abs(p.label[c]-f)-Math.abs(g.label[c]-f)}),u&&s){var d=a.getExtent(),h=Math.min(d[0],d[1]),v=Math.max(d[0],d[1])-h;s.union(new ye(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Io=Mr(),$l=new ye(0,0,0,0),FC=function(r,e,t,n,a,i){if(no(r.nameLocation)){var o=i.stOccupiedRect;o&&HC(A5({},o,i.transGroup.transform),n,a)}else GC(i.labelInfoList,i.dirVec,n,a)};function HC(r,e,t){var n=new ke;Up(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&N5(e,n)}function GC(r,e,t,n){for(var a=ke.dot(n,e)>=0,i=0,o=r.length;i<o;i++){var s=r[a?i:o-1-i];s.label.ignore||HC(s,t,n)}}var Dn=function(){function r(e,t,n,a){this.group=new Ee,this._axisModel=e,this._api=t,this._local={},this._shared=a||new $C(FC),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(e){if(process.env.NODE_ENV!=="production"){var t=this._shared.ensureRecord(this._axisModel).ready;ce(!t.axisLine&&!t.axisTickLabelDetermine),t.axisName=t.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},a=se(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=se(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:se(e.nameDirection,1),tickDirection:se(e.tickDirection,1),labelDirection:se(e.labelDirection,1),labelOffset:se(e.labelOffset,0),silent:se(e.silent,!0),axisName:a,nameLocation:xn(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:qp(a)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};process.env.NODE_ENV!=="production"&&(ce(o.position!=null),ce(o.rotation!=null)),this._cfg=o;var s=new Ee({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(t);u.transGroup=this._transformGroup,u.dirVec=new ke(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),N(_F,function(a){e[a]&&SF[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},r.innerTextLayout=function(e,t,n){var a=bS(t-e),i,o;return Du(a)?(o=n>0?"top":"bottom",i="center"):Du(a-Kn)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Kn?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),_F=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],SF={axisLine:function(r,e,t,n,a,i,o){if(process.env.NODE_ENV!=="production"){var s=t.ensureRecord(n).ready;ce(!s.axisLine),s.axisLine=!0}var u=n.get(["axisLine","show"]);if(u==="auto"&&(u=!0,r.raw.axisLineAutoShow!=null&&(u=!!r.raw.axisLineAutoShow)),!!u){var c=n.axis.getExtent(),f=i.transform,d=[c[0],0],h=[c[1],0],v=d[0]>h[0];f&&(zt(d,d,f),zt(h,h,f));var p=Y({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())dF().buildAxisBreakLine(n,a,i,g);else{var y=new Lr(Y({shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]}},g));Ss(y.shape,y.style.lineWidth),y.anid="line",a.add(y)}var m=n.get(["axisLine","symbol"]);if(m!=null){var b=n.get(["axisLine","symbolSize"]);te(m)&&(m=[m,m]),(te(b)||He(b))&&(b=[b,b]);var _=Hc(n.get(["axisLine","symbolOffset"])||0,b),S=b[0],w=b[1];N([{rotate:r.rotation+Math.PI/2,offset:_[0],r:0},{rotate:r.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((d[0]-h[0])*(d[0]-h[0])+(d[1]-h[1])*(d[1]-h[1]))}],function(x,C){if(m[C]!=="none"&&m[C]!=null){var k=Vt(m[C],-S/2,-w/2,S,w,p.stroke,!0),T=x.r+x.offset,D=v?h:d;k.attr({rotation:x.rotate,x:D[0]+T*Math.cos(r.rotation),y:D[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),a.add(k)}})}}},axisTickLabelEstimate:function(r,e,t,n,a,i,o,s){if(process.env.NODE_ENV!=="production"){var u=t.ensureRecord(n).ready;ce(!u.axisTickLabelDetermine),u.axisTickLabelEstimate=!0}var c=tb(e,a,s);c&&eb(r,e,t,n,a,i,o,Pr.estimate)},axisTickLabelDetermine:function(r,e,t,n,a,i,o,s){if(process.env.NODE_ENV!=="production"){var u=t.ensureRecord(n).ready;u.axisTickLabelDetermine=!0}var c=tb(e,a,s);c&&eb(r,e,t,n,a,i,o,Pr.determine);var f=kF(r,a,i,n);CF(r,e.labelLayoutList,f),TF(r,a,i,n,r.tickDirection)},axisName:function(r,e,t,n,a,i,o,s){var u=t.ensureRecord(n);if(process.env.NODE_ENV!=="production"){var c=u.ready;ce(c.axisTickLabelEstimate||c.axisTickLabelDetermine),c.axisName=!0}e.nameEl&&(a.remove(e.nameEl),e.nameEl=u.nameLayout=u.nameLocation=null);var f=r.axisName;if(qp(f)){var d=r.nameLocation,h=r.nameDirection,v=n.getModel("nameTextStyle"),p=n.get("nameGap")||0,g=n.axis.getExtent(),y=n.axis.inverse?-1:1,m=new ke(0,0),b=new ke(0,0);d==="start"?(m.x=g[0]-y*p,b.x=-y):d==="end"?(m.x=g[1]+y*p,b.x=y):(m.x=(g[0]+g[1])/2,m.y=r.labelOffset+h*p,b.y=h);var _=Mr();b.transform(qv(_,_,r.rotation));var S=n.get("nameRotate");S!=null&&(S=S*Kn/180);var w,x;no(d)?w=Dn.innerTextLayout(r.rotation,S??r.rotation,h):(w=wF(r.rotation,d,S||0,g),x=r.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(w.rotation)),!isFinite(x)&&(x=null)));var C=v.getFont(),k=n.get("nameTruncate",!0)||{},T=k.ellipsis,D=rr(r.raw.nameTruncateMaxWidth,k.maxWidth,x),M=s.nameMarginLevel||0,A=new We({x:m.x,y:m.y,rotation:w.rotation,silent:Dn.isLabelSilent(n),style:lt(v,{text:f,font:C,overflow:"truncate",width:D,ellipsis:T,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||w.textAlign,verticalAlign:v.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(Hs({el:A,componentModel:n,itemName:f}),A.__fullText=f,A.anid="name",n.get("triggerEvent")){var E=Dn.makeAxisEventDataBase(n);E.targetType="axisName",E.name=f,Te(A).eventData=E}i.add(A),A.updateTransform(),e.nameEl=A;var I=u.nameLayout=ca({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:no(d)?mF[M]:yF[M]});if(u.nameLocation=d,a.add(A),A.decomposeTransform(),r.shouldNameMoveOverlap&&I){var B=t.ensureRecord(n);process.env.NODE_ENV!=="production"&&ce(B.labelInfoList),t.resolveAxisNameOverlap(r,t,n,I,b,B)}}}};function eb(r,e,t,n,a,i,o,s){UC(e)||DF(r,e,a,s,n,o);var u=e.labelLayoutList;MF(r,n,u,i),r.rotation;var c=r.optionHideOverlap;xF(n,u,c),c&&B5(et(u,function(f){return f&&!f.label.ignore})),bF(r,t,n,u)}function wF(r,e,t,n){var a=bS(t-r),i,o,s=n[0]>n[1],u=e==="start"&&!s||e!=="start"&&s;return Du(a-Kn/2)?(o=u?"bottom":"top",i="center"):Du(a-Kn*1.5)?(o=u?"top":"bottom",i="center"):(o="middle",a<Kn*1.5&&a>Kn/2?i=u?"left":"right":i=u?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function xF(r,e,t){if(Qx(r.axis))return;function n(s,u,c){var f=ca(e[u]),d=ca(e[c]);if(!(!f||!d)){if(s===!1||f.suggestIgnore){Jo(f.label);return}if(d.suggestIgnore){Jo(d.label);return}var h=.1;if(!t){var v=[0,0,0,0];f=k0({marginForce:v},f),d=k0({marginForce:v},d)}Up(f,d,null,{touchThreshold:h})&&Jo(s?d.label:f.label)}}var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=e.length;n(a,0,1),n(i,o-1,o-2)}function CF(r,e,t){r.showMinorTicks||N(e,function(n){if(n&&n.label.ignore)for(var a=0;a<t.length;a++){var i=t[a],o=zC(i),s=Es(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Jo(i);return}}})}function Jo(r){r&&(r.ignore=!0)}function WC(r,e,t,n,a){for(var i=[],o=[],s=[],u=0;u<r.length;u++){var c=r[u].coord;o[0]=c,o[1]=0,s[0]=c,s[1]=t,e&&(zt(o,o,e),zt(s,s,e));var f=new Lr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ss(f.shape,f.style.lineWidth),f.anid=a+"_"+r[u].tickValue,i.push(f);var d=zC(f);d.onBand=!!r[u].onBand,d.tickValue=r[u].tickValue}return i}function kF(r,e,t,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),u=r.tickDirection*i.get("length"),c=a.getTicksCoords(),f=WC(c,t.transform,u,Me(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<f.length;d++)e.add(f[d]);return f}function TF(r,e,t,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),c=a*o.get("length"),f=Me(u.getLineStyle(),Me(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),d=0;d<s.length;d++)for(var h=WC(s[d],t.transform,c,f,"minorticks_"+d),v=0;v<h.length;v++)e.add(h[v])}}function tb(r,e,t){if(UC(r)){var n=r.axisLabelsCreationContext;process.env.NODE_ENV!=="production"&&ce(r.labelGroup&&n);var a=n.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(r.labelGroup),gv(r,null,null,null))}return!0}function DF(r,e,t,n,a,i){var o=a.axis,s=rr(r.raw.axisLabelShow,a.get(["axisLabel","show"])),u=new Ee;t.add(u);var c=ec(n);if(!s||o.scale.isBlank()){gv(e,[],u,c);return}var f=a.getModel("axisLabel"),d=o.getViewLabels(c),h=(rr(r.raw.labelRotate,f.get("rotate"))||0)*Kn/180,v=Dn.innerTextLayout(r.rotation,h,r.labelDirection),p=a.getCategories&&a.getCategories(!0),g=[],y=a.get("triggerEvent"),m=1/0,b=-1/0;N(d,function(S,w){var x,C=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,k=S.formattedLabel,T=S.rawLabel,D=f;if(p&&p[C]){var M=p[C];fe(M)&&M.textStyle&&(D=new Ue(M.textStyle,f,a.ecModel))}var A=D.getTextColor()||a.get(["axisLine","lineStyle","color"]),E=D.getShallow("align",!0)||v.textAlign,I=se(D.getShallow("alignMinLabel",!0),E),B=se(D.getShallow("alignMaxLabel",!0),E),R=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||v.textVerticalAlign,P=se(D.getShallow("verticalAlignMinLabel",!0),R),L=se(D.getShallow("verticalAlignMaxLabel",!0),R),V=10+(((x=S.time)===null||x===void 0?void 0:x.level)||0);m=Math.min(m,V),b=Math.max(b,V);var z=new We({x:0,y:0,rotation:0,silent:Dn.isLabelSilent(a),z2:V,style:lt(D,{text:k,align:w===0?I:w===d.length-1?B:E,verticalAlign:w===0?P:w===d.length-1?L:R,fill:ue(A)?A(o.type==="category"?T:o.type==="value"?C+"":C,w):A})});z.anid="label_"+C;var O=Es(z);if(O.break=S.break,O.tickValue=C,O.layoutRotation=v.rotation,Hs({el:z,componentModel:a,itemName:k,formatterParamsExtra:{isTruncated:function(){return z.isTruncated},value:T,tickIndex:w}}),y){var W=Dn.makeAxisEventDataBase(a);W.targetType="axisLabel",W.value=T,W.tickIndex=w,S.break&&(W.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(W.dataIndex=C),Te(z).eventData=W,S.break&&AF(a,i,z,S.break)}g.push(z),u.add(z)});var _=X(g,function(S){return{label:S,priority:Es(S).break?S.z2+(b-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});gv(e,_,u,c)}function UC(r){return!!r.labelLayoutList}function gv(r,e,t,n){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=n}function MF(r,e,t,n){var a=e.get(["axisLabel","margin"]);N(t,function(i,o){var s=ca(i);if(s){var u=s.label,c=Es(u);s.suggestIgnore=u.ignore,u.ignore=!1,bh(vn,EF),vn.x=e.axis.dataToCoord(c.tickValue),vn.y=r.labelOffset+r.labelDirection*a,vn.rotation=c.layoutRotation,n.add(vn),vn.updateTransform(),n.remove(vn),vn.decomposeTransform(),bh(u,vn),u.markRedraw(),nc(s,!0),ca(s)}})}var vn=new Oe,EF=new Oe;function qp(r){return!!r}function AF(r,e,t,n){t.on("click",function(a){var i={type:gF,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function oc(r,e,t){t=t||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,u=n.dim,c=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,h=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}a.position=[u==="y"?h[f[s]]:c[0],u==="x"?h[f[s]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[o],a.labelOffset=i?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),rr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-g:g,a.z2=1,a}function NF(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function rb(r){var e={xAxisModel:null,yAxisModel:null};return N(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Bt).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(a+' "'+xn(r.get(a+"Index"),r.get(a+"Id"),0)+'" not found');e[n]=i}),e}function IF(r,e,t,n,a,i){for(var o=oc(r,t),s=!1,u=!1,c=0;c<e.length;c++)iv(e[c].getOtherAxis(t.axis).scale)&&(s=u=!0,t.axis.type==="category"&&t.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=i,new Dn(t,n,o,a)}function BF(r,e,t){var n=oc(e,t);if(process.env.NODE_ENV!=="production"){var a=r.__getRawCfg();N(je(n),function(i){i!=="position"&&i!=="labelOffset"&&ce(n[i]===a[i])})}r.updateCfg(n)}function YC(r,e,t){var n,a=ua.prototype,i=a.getTicks.call(t),o=a.getTicks.call(t,{expandToNicedExtent:!0}),s=i.length-1,u=a.getInterval.call(t),c=Kx(r,e),f=c.extent,d=c.fixMin,h=c.fixMax;r.type==="log"&&(f=ov(r.base,f,!0)),r.setBreaksFromOption(eC(e)),r.setExtent(f[0],f[1]),r.calcNiceExtent({splitNumber:s,fixMin:d,fixMax:h});var v=a.getExtent.call(r);d&&(f[0]=v[0]),h&&(f[1]=v[1]);var p=a.getInterval.call(r),g=f[0],y=f[1];if(d&&h)p=(y-g)/s;else if(d)for(y=f[0]+p*s;y<f[1]&&isFinite(y)&&isFinite(f[1]);)p=ld(p),y=f[0]+p*s;else if(h)for(g=f[1]-p*s;g>f[0]&&isFinite(g)&&isFinite(f[0]);)p=ld(p),g=f[1]-p*s;else{var m=r.getTicks().length-1;m>s&&(p=ld(p));var b=p*s;y=Math.ceil(f[1]/p)*p,g=pt(y-b),g<0&&f[0]>=0?(g=0,y=pt(b)):y>0&&f[1]<=0&&(y=0,g=-pt(b))}var _=(i[0].value-o[0].value)/u,S=(i[s].value-o[s].value)/u;if(a.setExtent.call(r,g+p*_,y+p*S),a.setInterval.call(r,p),(_||S)&&a.setNiceExtent.call(r,g+p,y-p),process.env.NODE_ENV!=="production"){var w=a.getTicks.call(r);w[1]&&(!Iz(p)||Sh(w[1].value)>Sh(p))&&St("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+(" and alignTicks: true. ("+((n=e.axis)===null||n===void 0?void 0:n.dim)+"AxisIndex: "+e.componentIndex+")"),!0)}}var nb=[[3,1],[0,2]],LF=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pv,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,u=je(o),c=u.length;if(c){for(var f=[],d=c-1;d>=0;d--){var h=+u[d],v=o[h],p=v.model,g=v.scale;iv(g)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(_0(g,p),iv(g)&&(s=v))}f.length&&(s||(s=f.pop(),_0(s.scale,s.model)),N(f,function(y){YC(y.scale,y.model,s.scale)}))}}a(n.x),a(n.y);var i={};N(n.x,function(o){ab(n,"y",o,i)}),N(n.y,function(o){ab(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=Or(e,t),i=this._rect=Ft(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,u=e.get("containLabel");if(ZC(o,i),!n){var c=PF(i,s,o,u,t),f=void 0;if(u)process.env.NODE_ENV!=="production"&&CS("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=sb(i.clone(),"axisLabel",null,i,o,c,a);else{var d=RF(e,i,a),h=d.outerBoundsRect,v=d.parsedOuterBoundsContain,p=d.outerBoundsClamp;h&&(f=sb(h,v,p,i,o,c,a))}XC(i,o,Pr.determine,null,f,a)}N(this._coordsList,function(g){g.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}fe(e)&&(t=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===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",Bt).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",Bt).models[0],i=e.gridModel,o=this._coordsList,s,u;if(t)s=t.coordinateSystem,De(o,s)<0&&(s=null);else if(n&&a)s=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&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(t.eachComponent("xAxis",c("x"),this),t.eachComponent("yAxis",c("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,N(s.x,function(f,d){N(s.y,function(h,v){var p="x"+d+"y"+v,g=new vF(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(bd(d,e)){var v=d.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var p=new pF(f,s5(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),s[f][h]=p,u[f]++}}}},r.prototype._updateScale=function(e,t){N(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(NF(a)){var i=rb(a),o=i.xAxisModel,s=i.yAxisModel;if(!bd(o,t)||!bd(s,t))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),c=a.getData(),f=u.getAxis("x"),d=u.getAxis("y");n(c,f),n(c,d)}},this);function n(a,i){N(Jx(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return N(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);De(t,i)<0&&t.push(i),De(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){gP({targetModel:a,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=rb(a),s=o.xAxisModel,u=o.yAxisModel,c=s.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!c)throw new Error('Grid "'+xn(s.get("gridIndex"),s.get("gridId"),0)+'" not found');if(s.getCoordSysModel()!==u.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var f=c.coordinateSystem;return f.getCartesian(s.componentIndex,u.componentIndex)}}),n},r.dimensions=pv,r}();function bd(r,e){return r.getCoordSysModel()===e}function ab(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)ib(a[u])&&(i=a[u]);else for(var c in a)if(a.hasOwnProperty(c)&&ib(a[c])&&!n[f(a[c])]){i=a[c];break}i&&(n[f(i)]=!0);function f(d){return d.dim+"_"+d.index}}function ib(r){return r&&r.type!=="category"&&r.type!=="time"&&l5(r)}function VF(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}function ZC(r,e){N(r.x,function(t){return ob(t,e.x,e.width)}),N(r.y,function(t){return ob(t,e.y,e.height)})}function ob(r,e,t){var n=[0,t],a=r.inverse?1:0;r.setExtent(n[a],n[1-a]),VF(r,e)}function sb(r,e,t,n,a,i,o){process.env.NODE_ENV!=="production"&&ce(e==="all"||e==="axisLabel"),XC(n,a,Pr.estimate,e,!1,o);var s=[0,0,0,0];c(0),c(1),f(n,0,NaN),f(n,1,NaN);var u=U_(s,function(h){return h>0})==null;return Ru(n,s,!0,!0,t),ZC(a,n),u;function c(h){N(a[Yn[h]],function(v){if(Ms(v.model)){var p=i.ensureRecord(v.model),g=p.labelInfoList;if(g)for(var y=0;y<g.length;y++){var m=g[y],b=v.scale.normalize(Es(m.label).tickValue);b=h===1?1-b:b,f(m.rect,h,b),f(m.rect,1-h,NaN)}var _=p.nameLayout;if(_){var b=no(p.nameLocation)?.5:NaN;f(_.rect,h,b),f(_.rect,1-h,NaN)}}})}function f(h,v,p){var g=r[Yn[v]]-h[Yn[v]],y=h[eo[v]]+h[Yn[v]]-(r[eo[v]]+r[Yn[v]]);g=d(g,1-p),y=d(y,p);var m=nb[v][0],b=nb[v][1];s[m]=nr(s[m],g),s[b]=nr(s[b],y)}function d(h,v){return h>0&&!wn(v)&&v>1e-4&&(h/=v),h}}function PF(r,e,t,n,a){var i=new $C(OF);return N(t,function(o){return N(o,function(s){if(Ms(s.model)){var u=!n;s.axisBuilder=IF(r,e,s.model,a,i,u)}})}),i}function XC(r,e,t,n,a,i){var o=t===Pr.determine;N(e,function(c){return N(c,function(f){Ms(f.model)&&(BF(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};u(0),u(1);function u(c){s[Yn[1-c]]=r[eo[c]]<=i.refContainer[eo[c]]*.5?0:1-c===1?2:1}N(e,function(c,f){return N(c,function(d){Ms(d.model)&&((n==="all"||o)&&d.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&d.axisBuilder.build({axisLine:!0}))})})}function RF(r,e,t){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=e.clone():a==null||a==="auto"?n=Ft(r.get("outerBounds",!0)||PC,t.refContainer):a!=="none"&&process.env.NODE_ENV!=="production"&&Ye("Invalid grid["+r.componentIndex+"].outerBoundsMode.");var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"?o="all":De(["all","axisLabel"],i)<0?(process.env.NODE_ENV!=="production"&&Ye("Invalid grid["+r.componentIndex+"].outerBoundsContain."),o="all"):o=i;var s=[_h(se(r.get("outerBoundsClampWidth",!0),ic[0]),e.width),_h(se(r.get("outerBoundsClampHeight",!0),ic[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var OF=function(r,e,t,n,a,i){var o=t.axis.dim==="x"?"y":"x";FC(r,e,t,n,a,i),no(r.nameLocation)||N(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&GC(s.labelInfoList,s.dirVec,n,a)})};function zF(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return $F(t,r,e),t.seriesInvolved&&HF(t,r),t}function $F(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];N(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=As(s.model),c=r.coordSysAxesInfo[u]={};r.coordSysMap[u]=s;var f=s.model,d=f.getModel("tooltip",n);if(N(s.getAxes(),me(g,!1,null)),s.getTooltipAxes&&n&&d.get("show")){var h=d.get("trigger")==="axis",v=d.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(d.get(["axisPointer","axis"]));(h||v)&&N(p.baseAxes,me(g,v?"cross":!0,h)),v&&N(p.otherAxes,me(g,"cross",!1))}function g(y,m,b){var _=b.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!y&&!mv(_))){m==null&&(m=_.get("triggerTooltip")),_=y?FF(b,d,a,e,y,m):_;var w=_.get("snap"),x=_.get("triggerEmphasis"),C=As(b.model),k=m||w||b.type==="category",T=r.axesInfo[C]={key:C,axis:b,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:x,involveSeries:k,snap:w,useHandle:mv(_),seriesModels:[],linkGroup:null};c[C]=T,r.seriesInvolved=r.seriesInvolved||k;var D=GF(i,b);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[C]=T,M.mapper=i[D].mapper,T.linkGroup=M}}}})}function FF(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};N(s,function(h){u[h]=he(o.get(h))}),u.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(u.type="line");var c=u.label||(u.label={});if(c.show==null&&(c.show=!1),a==="cross"){var f=o.get(["label","show"]);if(c.show=f??!0,!i){var d=u.lineStyle=o.get("crossStyle");d&&Me(c,d.textStyle)}}return r.model.getModel("axisPointer",new Ue(u,t,n))}function HF(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||N(r.coordSysAxesInfo[As(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function GF(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(_d(i[n+"AxisId"],t.id)||_d(i[n+"AxisIndex"],t.componentIndex)||_d(i[n+"AxisName"],t.name))return a}}function _d(r,e){return r==="all"||Z(r)&&De(r,e)>=0||r===e}function WF(r){var e=Kp(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=mv(t);i==null&&(a.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function Kp(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[As(r)]}function UF(r){var e=Kp(r);return e&&e.axisPointerModel}function mv(r){return!!r.get(["handle","show"])}function As(r){return r.type+"||"+r.id}var Sd={},jC=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.axisPointerClass&&WF(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=UF(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){if(process.env.NODE_ENV!=="production"&&Sd[t])throw new Error("axisPointer "+t+" exists");Sd[t]=n},e.getAxisPointerClass=function(t){return t&&Sd[t]},e.type="axis",e}(Et),yv=Re();function YF(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),c=a.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(c.length){var f=s.length,d=yv(r).splitAreaColors,h=_e(),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 y=a.toGlobalCoord(c[0].coord),m=o.getAreaStyle();s=Z(s)?s:[s];for(var p=1;p<c.length;p++){var b=a.toGlobalCoord(c[p].coord),_=void 0,S=void 0,w=void 0,x=void 0;a.isHorizontal()?(_=y,S=u.y,w=b-_,x=u.height,y=_+w):(_=u.x,S=y,w=u.width,x=b-S,y=S+x);var C=c[p-1].tickValue;C!=null&&h.set(C,v),e.add(new Oe({anid:C!=null?"area_"+C:null,shape:{x:_,y:S,width:w,height:x},style:Me({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}yv(r).splitAreaColors=h}}}function ZF(r){yv(r).splitAreaColors=null}var XF=["splitArea","splitLine","minorSplitLine","breakArea"],qC=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ee,this.group.add(this._axisGroup),!!Ms(t)){this._axisGroup.add(t.axis.axisBuilder.group),N(XF,function(u){t.get([u,"show"])&&jF[u](this,this._axisGroup,t,t.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||ow(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){ZF(this)},e.type="cartesianAxis",e}(jC),jF={splitLine:function(r,e,t,n,a){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),c=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;u=Z(u)?u:[u];for(var d=n.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,p=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],y=[],m=s.getLineStyle(),b=0;b<p.length;b++){var _=i.toGlobalCoord(p[b].coord);if(!(b===0&&!c||b===p.length-1&&!f)){var S=p[b].tickValue;h?(g[0]=_,g[1]=d.y,y[0]=_,y[1]=d.y+d.height):(g[0]=d.x,g[1]=_,y[0]=d.x+d.width,y[1]=_);var w=v++%u.length,x=new Lr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:Me({stroke:u[w]},m),silent:!0});Ss(x.shape,m.lineWidth),e.add(x)}}}},minorSplitLine:function(r,e,t,n,a){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=n.coordinateSystem.getRect(),c=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var d=[],h=[],v=s.getLineStyle(),p=0;p<f.length;p++)for(var g=0;g<f[p].length;g++){var y=i.toGlobalCoord(f[p][g].coord);c?(d[0]=y,d[1]=u.y,h[0]=y,h[1]=u.y+u.height):(d[0]=u.x,d[1]=y,h[0]=u.x+u.width,h[1]=y);var m=new Lr({anid:"minor_line_"+f[p][g].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:v,silent:!0});Ss(m.shape,v.lineWidth),e.add(m)}},splitArea:function(r,e,t,n,a){YF(r,e,t,n)},breakArea:function(r,e,t,n,a){t.axis.scale}},KC=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(qC),qF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=KC.type,t}return e.type="yAxis",e}(qC),KF=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new Oe({shape:t.coordinateSystem.getRect(),style:Me({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Et),lb={offset:0};function QC(r){r.registerComponentView(KF),r.registerComponentModel(oF),r.registerCoordinateSystem("cartesian2d",LF),K0(r,"x",vv,lb),K0(r,"y",vv,lb),r.registerComponentView(KC),r.registerComponentView(qF),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function QF(r){Ht(QC),r.registerSeriesModel(tF),r.registerChartView(iF),r.registerLayout(Xp("scatter"))}function JF(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();N(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(u,c){n[c]=n[c]||[];var f=a.dataToPoint(u,s);n[c][s]=ub(f)?f:cb(a)})}),t.each(function(o){var s=U_(n[o],function(u){return ub(u)})||cb(a);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function ub(r){return!isNaN(r[0])&&!isNaN(r[1])}function cb(r){return[r.cx,r.cy]}function e3(r){var e=r.polar;if(e){Z(e)||(e=[e]);var t=[];N(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],Z(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}N(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var t3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),u=this._data;function c(h,v){var p=h.getItemVisual(v,"symbol")||"circle";if(p!=="none"){var g=Fc(h.getItemVisual(v,"symbolSize")),y=Vt(p,-1,-1,2,2),m=h.getItemVisual(v,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:m*Math.PI/180||0}),y}}function f(h,v,p,g,y,m){p.removeAll();for(var b=0;b<v.length-1;b++){var _=c(g,y);_&&(_.__dimIdx=b,h[b]?(_.setPosition(h[b]),cw[m?"initProps":"updateProps"](_,{x:v[b][0],y:v[b][1]},t,y)):_.setPosition(v[b]),p.add(_))}}function d(h){return X(h,function(v){return[i.cx,i.cy]})}s.diff(u).add(function(h){var v=s.getItemLayout(h);if(v){var p=new Br,g=new An,y={shape:{points:v}};p.shape.points=d(v),g.shape.points=d(v),mt(p,y,t,h),mt(g,y,t,h);var m=new Ee,b=new Ee;m.add(g),m.add(p),m.add(b),f(g.shape.points,v,b,s,h,!0),s.setItemGraphicEl(h,m)}}).update(function(h,v){var p=u.getItemGraphicEl(v),g=p.childAt(0),y=p.childAt(1),m=p.childAt(2),b={shape:{points:s.getItemLayout(h)}};b.shape.points&&(f(g.shape.points,b.shape.points,m,s,h,!1),Ji(y),Ji(g),Ke(g,b,t),Ke(y,b,t),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(u.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var p=s.getItemModel(v),g=h.childAt(0),y=h.childAt(1),m=h.childAt(2),b=s.getItemVisual(v,"style"),_=b.fill;o.add(h),g.useStyle(Me(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Ir(g,p,"lineStyle"),Ir(y,p,"areaStyle");var S=p.getModel("areaStyle"),w=S.isEmpty()&&S.parentModel.isEmpty();y.ignore=w,N(["emphasis","select","blur"],function(C){var k=p.getModel([C,"areaStyle"]),T=k.isEmpty()&&k.parentModel.isEmpty();y.ensureState(C).ignore=T&&w;var D=p.getModel([C,"lineStyle"]).getLineStyle();g.ensureState(C).style=D;var M=k.getAreaStyle();y.ensureState(C).style=M;var A=p.getModel([C,"itemStyle"]).getItemStyle();m.eachChild(function(E){E.ensureState(C).style=he(A)})}),y.useStyle(Me(p.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:b.decal}));var x=p.getModel("emphasis");m.eachChild(function(C){if(C instanceof _r){var k=C.style;C.useStyle(Y({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},b))}else C.useStyle(b),C.setColor(_),C.style.strokeNoScale=!0;var T=s.getStore().get(s.getDimensionIndex(C.__dimIdx),v);(T==null||isNaN(T))&&(T=""),ln(C,yr(p),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:T,inheritColor:_,defaultOpacity:b.opacity})}),ar(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(yt),r3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new BC(oe(this.getData,this),oe(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return Yc(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),u=this.getData().getName(t),c=u===""?this.name:u,f=tx(this,t);return Vr("section",{header:c,sortBlocks:!0,blocks:X(s,function(d){var h=i.get(i.mapDimension(d.dim),t);return Vr("nameValue",{markerType:"subItem",markerColor:f,name:d.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(X(a.dimensions,function(c){return n.mapDimension(c)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var u=a.getIndicatorAxes();return a.coordToPoint(u[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(wt),Bo=OC.value;function Fl(r,e){return Me({show:e},r)}var n3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),u=this.get("axisName"),c=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),h=this.get("triggerEvent"),v=X(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=Me({color:p.color},u));var y=Ce(he(p),{boundaryGap:t,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:c,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:h},!1);if(te(f)){var m=y.name;y.name=f.replace("{value}",m??"")}else ue(f)&&(y.name=f(y.name,y));var b=new Ue(y,null,this.ecModel);return ir(b,tC.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:G.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ce({lineStyle:{color:G.color.neutral20}},Bo.axisLine),axisLabel:Fl(Bo.axisLabel,!1),axisTick:Fl(Bo.axisTick,!1),splitLine:Fl(Bo.splitLine,!0),splitArea:Fl(Bo.splitArea,!0),indicator:[]},e}(Ne),a3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll(),this._buildAxes(t,a),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,n){var a=t.coordinateSystem,i=a.getIndicatorAxes(),o=X(i,function(s){var u=s.model.get("showName")?s.name:"",c=new Dn(s.model,n,{axisName:u,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return c});N(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),u=o.getModel("lineStyle"),c=s.getModel("areaStyle"),f=o.get("show"),d=s.get("show"),h=u.get("color"),v=c.get("color"),p=Z(h)?h:[h],g=Z(v)?v:[v],y=[],m=[];function b(B,R,P){var L=P%R.length;return B[L]=B[L]||[],L}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,w=n.cy,x=0;x<_.length;x++){if(f){var C=b(y,p,x);y[C].push(new $s({shape:{cx:S,cy:w,r:_[x].coord}}))}if(d&&x<_.length-1){var C=b(m,g,x);m[C].push(new Ac({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var k,T=X(a,function(B,R){var P=B.getTicksCoords();return k=k==null?P.length-1:Math.min(P.length-1,k),X(P,function(L){return n.coordToPoint(L.coord,R)})}),D=[],x=0;x<=k;x++){for(var M=[],A=0;A<a.length;A++)M.push(T[A][x]);if(M[0]?M.push(M[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+x),f){var C=b(y,p,x);y[C].push(new An({shape:{points:M}}))}if(d&&D){var C=b(m,g,x-1);m[C].push(new Br({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var E=u.getLineStyle(),I=c.getAreaStyle();N(m,function(B,R){this.group.add(Vh(B,{style:Me({stroke:"none",fill:g[R%g.length]},I),silent:!0}))},this),N(y,function(B,R){this.group.add(Vh(B,{style:Me({fill:"none",stroke:p[R%p.length]},E),silent:!0}))},this)},e.type="radar",e}(Et),i3=function(r){H(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e}(uC),o3=function(){function r(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=X(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new i3(o,new ua);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=Math.sqrt(t*t+n*n);t/=a,n/=a;for(var i=Math.atan2(-n,t),o=1/0,s,u=-1,c=0;c<this._indicatorAxes.length;c++){var f=this._indicatorAxes[c],d=Math.abs(i-f.angle);d<o&&(s=f,u=c,o=d)}return[u,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var n=Or(e,t).refContainer,a=e.get("center"),i=Math.min(n.width,n.height)/2;this.cx=de(a[0],n.width)+n.x,this.cy=de(a[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(te(o)||He(o))&&(o=[0,o]),this.r0=de(o[0],i),this.r=de(o[1],i),N(this._indicatorAxes,function(s,u){s.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),s.angle=c},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,a=this._model;N(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,u){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var c=s.getData();N(n,function(f){f.scale.unionExtentFromData(c,c.mapDimension(f.dim))})}},this);var i=a.get("splitNumber"),o=new ua;o.setExtent(0,i),o.setInterval(1),N(n,function(s,u){YC(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent("radar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r}();function s3(r){r.registerCoordinateSystem("radar",o3),r.registerComponentModel(n3),r.registerComponentView(a3),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function l3(r){Ht(s3),r.registerChartView(t3),r.registerSeriesModel(r3),r.registerLayout(JF),r.registerProcessor(AC("radar")),r.registerPreprocessor(e3)}var Qp=Re();function u3(r,e,t){Qp(r)[e]=t}function c3(r,e,t){var n=Qp(r),a=n[e];a===t&&(n[e]=null)}function fb(r,e){return!!Qp(r)[e]}un({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Dt);var f3={axisPointer:1,tooltip:1,brush:1};function JC(r,e,t){var n=e.getComponentByElement(r.topTarget);if(!n||n===t||f3.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===t)return!1;var i=to(n),o=to(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var Jp=function(r){H(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=oe(n._mousedownHandler,n),i=oe(n._mousemoveHandler,n),o=oe(n._mouseupHandler,n),s=oe(n._mousewheelHandler,n),u=oe(n._pinchHandler,n);return n.enable=function(c,f){var d=f.zInfo,h=to(d.component),v=h.z,p=h.zlevel,g={component:d.component,z:v,zlevel:p,z2:se(d.z2,-1/0)},y=Y({},f.triggerInfo);this._opt=Me(Y({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:g,triggerInfo:y}),c==null&&(c=!0),(!this._enabled||this._controlType!==c)&&(this._enabled=!0,this.disable(),(c===!0||c==="move"||c==="pan")&&(Vo(t,"mousedown",a,g),Vo(t,"mousemove",i,g),Vo(t,"mouseup",o,g)),(c===!0||c==="scale"||c==="zoom")&&(Vo(t,"mousewheel",s,g),Vo(t,"pinch",u,g)))},n.disable=function(){this._enabled=!1,Po(t,"mousedown",a),Po(t,"mousemove",i),Po(t,"mouseup",o),Po(t,"mousewheel",s),Po(t,"pinch",u)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,n,a){var i=this._opt,o=i.zInfoParsed;if(JC(t,i.api,o.component))return!1;var s=i.triggerInfo,u=s.roamTrigger,c=!1;return u==="global"&&(c=!0),c||(c=s.isInSelf(t,n,a)),c&&s.isInClip&&!s.isInClip(t,n,a)&&(c=!1),c},e.prototype._decideCursorStyle=function(t,n,a,i){var o=t.target;if(!o&&this._checkPointer(t,n,a))return"grab";if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(zg(t)||Lo(t))){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this._checkPointer(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var n=this._zr;if(!(t.gestureEvent==="pinch"||fb(n,"globalPan")||Lo(t))){var a=t.offsetX,i=t.offsetY;if(!this._dragging||!fu("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle("grabbing");var s=this._x,u=this._y,c=a-s,f=i-u;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&Mn(t.event),t.__ecRoamConsumed=!0,db(this,"pan","moveOnMouseMove",t,{dx:c,dy:f,oldX:s,oldY:u,newX:a,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!Lo(t)){var n=this._zr;if(!zg(t)){this._dragging=!1;var a=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);a&&n.setCursorStyle(a)}}},e.prototype._mousewheelHandler=function(t){if(!Lo(t)){var n=fu("zoomOnMouseWheel",t,this._opt),a=fu("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,u=t.offsetY;if(!(i===0||!n&&!a)){if(n){var c=o>3?1.4:o>1?1.2:1.1,f=i>0?c:1/c;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:u,isAvailableBehavior:null})}if(a){var d=Math.abs(i),h=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:u,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(fb(this._zr,"globalPan")||Lo(t))){var n=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,n,a,i,o){t._checkPointer(i,o.originX,o.originY)&&(Mn(i.event),i.__ecRoamConsumed=!0,db(t,n,a,i,o))},e}(br);function Lo(r){return r.__ecRoamConsumed}var d3=Re();function Zc(r){var e=d3(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Vo(r,e,t,n){for(var a=Zc(r),i=a.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var u=o[s].zInfoParsed;if((u.zlevel-n.zlevel||u.z-n.z||u.z2-n.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:n}),h3(r,e)}function Po(r,e,t){for(var n=Zc(r),a=n.roam[e]||[],i=0;i<a.length;i++)if(a[i].listener===t){a.splice(i,1),a.length||v3(r,e);return}}function h3(r,e){var t=Zc(r);t.uniform[e]||r.on(e,t.uniform[e]=function(n){var a=t.roam[e];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function v3(r,e){var t=Zc(r),n=t.uniform;n[e]&&(r.off(e,n[e]),n[e]=null)}function db(r,e,t,n,a){a.isAvailableBehavior=oe(fu,null,t,n),r.trigger(e,a)}function fu(r,e,t){var n=t[r];return!r||n&&(!te(n)||e.event[n+"Key"])}function p3(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function g3(r,e,t,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;o*=e,o=eg(o,i);var s=o/r.zoom;r.zoom=o,ek(a,t,n,s),a.dirty()}function m3(r,e,t,n,a,i){var o=new ye(0,0,0,0);n.enable(r.get("roam"),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(c,f,d){return o.copy(t.getBoundingRect()),o.applyTransform(t.getComputedTransform()),o.contain(f,d)},isInClip:function(c,f,d){return!i||i.contain(f,d)}}}),a.zoomLimit=r.get("scaleLimit");var s=r.coordinateSystem;a.zoom=s?s.getZoom():1;var u=r.subType+"Roam";n.off("pan").off("zoom").on("pan",function(c){p3(a,c.dx,c.dy),e.dispatchAction({seriesId:r.id,type:u,dx:c.dx,dy:c.dy})}).on("zoom",function(c){g3(a,c.scale,c.originX,c.originY),e.dispatchAction({seriesId:r.id,type:u,zoom:c.scale,originX:c.originX,originY:c.originY}),e.updateLabelLayout()})}function hb(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function y3(r,e,t){var n=r.getZoom(),a=r.getCenter(),i=e.zoom,o=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);return e.dx!=null&&e.dy!=null&&(o[0]-=e.dx,o[1]-=e.dy,r.setCenter(hb(r,o))),i!=null&&(i=eg(n*i,t)/n,ek(r,e.originX,e.originY,i),r.updateTransform(),r.setCenter(hb(r,o)),r.setZoom(i*n)),{center:r.getCenter(),zoom:r.getZoom()}}function ek(r,e,t,n){r.x-=(e-r.x)*(n-1),r.y-=(t-r.y)*(n-1),r.scaleX*=n,r.scaleY*=n}function eg(r,e){if(e){var t=e.min||0,n=e.max||1/0;r=Math.max(Math.min(n,r),t)}return r}var vb=zt,b3=function(r){H(e,r);function e(t,n){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new Ha,a._rawTransformable=new Ha,a.name=t,a._opt=n,a}return e.prototype.setBoundingRect=function(t,n,a,i){return this._rect=new ye(t,n,a,i),this._updateCenterAndZoom(),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,a,i){this._transformTo(t,n,a,i),this._viewRect=new ye(t,n,a,i)},e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ye(t,n,a,i));var u=s.parent;s.parent=null,s.decomposeTransform(),s.parent=u,this._updateTransform()},e.prototype.setCenter=function(t){var n=this._opt;n&&n.api&&n.ecModel&&n.ecModel.getShallow("legacyViewCoordSysCenterBase")&&t&&(t=[de(t[0],n.api.getWidth()),de(t[1],n.api.getWidth())]),this._centerOption=he(t),this._updateCenterAndZoom()},e.prototype.setZoom=function(t){this._zoom=eg(t||1,this.zoomLimit),this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,a=t.y+t.height/2;return[n,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._centerOption,n=this._rect;t&&n&&(this._center=[de(t[0],n.width,n.x),de(t[1],n.height,n.y)]);var a=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),u=this.getZoom();s=zt([],s,a),o=zt([],o,a),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=u,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),jv(this.transform||(this.transform=[]),n.transform||Mr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],lo(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,a=new Ha;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?vb(a,t,i):KN(a,t)},e.prototype.pointToData=function(t,n,a){a=a||[];var i=this.invTransform;return i?vb(a,t,i):(a[0]=t[0],a[1]=t[1],a)},e.prototype.convertToPixel=function(t,n,a){var i=pb(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=pb(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Ha);function pb(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function _3(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],n,a;n=t.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function S3(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){x3(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=C3(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function w3(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function gb(r){return arguments.length?r:D3}function es(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function x3(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function C3(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,u=a.hierNode.modifier,c=i.hierNode.modifier,f=o.hierNode.modifier,d=s.hierNode.modifier;s=wd(s),i=xd(i),s&&i;){a=wd(a),o=xd(o),a.hierNode.ancestor=r;var h=s.hierNode.prelim+d-i.hierNode.prelim-c+n(s,i);h>0&&(T3(k3(s,r,t),r,h),c+=h,u+=h),d+=s.hierNode.modifier,c+=i.hierNode.modifier,u+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!wd(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-u),i&&!xd(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=c-f,t=r)}return t}function wd(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function xd(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function k3(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function T3(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function D3(r,e){return r.parentNode===e.parentNode?1:2}var M3=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),E3=function(r){H(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new M3},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],u=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var c=n.orient,f=c==="TB"||c==="BT"?0:1,d=1-f,h=de(n.forkPosition,1),v=[];v[f]=o[f],v[d]=o[d]+(u[d]-o[d])*h,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[f]=s[f],t.lineTo(v[0],v[1]),v[f]=u[f],t.lineTo(v[0],v[1]),t.lineTo(u[0],u[1]);for(var p=1;p<i-1;p++){var g=a[p];t.moveTo(g[0],g[1]),v[f]=g[f],t.lineTo(v[0],v[1])}},e}(Pe),A3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Ee,t}return e.prototype.init=function(t,n){this._controller=new Jp(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,u=t.get("layout");u==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,a),this._updateController(t,null,n,a);var c=this._data;i.diff(c).add(function(f){mb(i,f)&&yb(i,f,null,s,t)}).update(function(f,d){var h=c.getItemGraphicEl(d);if(!mb(i,f)){h&&_b(c,d,h,s,t);return}yb(i,f,h,s,t)}).remove(function(f){var d=c.getItemGraphicEl(f);d&&_b(c,f,d,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,d){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:d})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(d){var h=a.getItemLayout(d);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];oL(i,o,s);var u=this._min,c=this._max;s[0]-o[0]===0&&(o[0]=u?u[0]:o[0]-1,s[0]=c?c[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=u?u[1]:o[1]-1,s[1]=c?c[1]:s[1]+1);var f=t.coordinateSystem=new b3(null,{api:n,ecModel:t.ecModel});f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(t.get("center")),f.setZoom(t.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,n,a,i){var o=this;m3(t,i,this.group,this._controller,this._controllerHost,n),this._controller.on("zoom",function(s){o._updateNodeAndLinkScale(t)})},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=this._getNodeGlobalScale(t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(t){var n=t.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(yt);function mb(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function yb(r,e,t,n,a){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),u=o.getVisual("style").fill,c=o.isExpand===!1&&o.children.length!==0?u:G.color.neutral00,f=r.tree.root,d=o.parentNode===f?o:o.parentNode||o,h=r.getItemGraphicEl(d.dataIndex),v=d.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,g=o.getLayout();i?(t=new Uc(r,e,null,{symbolInnerColor:c,useNameLabel:!0}),t.x=p.x,t.y=p.y):t.updateData(r,e,null,{symbolInnerColor:c,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=g.rawX,t.__radialRawY=g.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Ke(t,{x:g.x,y:g.y},a);var y=t.getSymbolPath();if(a.get("layout")==="radial"){var m=f.children[0],b=m.getLayout(),_=m.children.length,S=void 0,w=void 0;if(g.x===b.x&&o.isExpand===!0&&m.children.length){var x={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};S=Math.atan2(x.y-b.y,x.x-b.x),S<0&&(S=Math.PI*2+S),w=x.x<b.x,w&&(S=S-Math.PI)}else S=Math.atan2(g.y-b.y,g.x-b.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(w=g.x<b.x,w&&(S=S-Math.PI)):(w=g.x>b.x,w||(S=S-Math.PI));var C=w?"left":"right",k=s.getModel("label"),T=k.get("rotate"),D=T*(Math.PI/180),M=y.getTextContent();M&&(y.setTextConfig({position:k.get("position")||C,rotation:T==null?-S:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),E=A==="relative"?X_(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;E&&(Te(t).focus=E),N3(a,o,f,t,p,v,g,n),t.__edge&&(t.onHoverStateChange=function(I){if(I!=="blur"){var B=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);B&&B.hoverState===Os||Mh(t.__edge,I)}})}function N3(r,e,t,n,a,i,o,s){var u=e.getModel(),c=r.get("edgeShape"),f=r.get("layout"),d=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),p=u.getModel("lineStyle").getLineStyle(),g=n.__edge;if(c==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=n.__edge=new Fs({shape:bv(f,d,h,a,a)})),Ke(g,{shape:bv(f,d,h,i,o)},r));else if(c==="polyline"){if(f==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var y=e.children,m=[],b=0;b<y.length;b++){var _=y[b].getLayout();m.push([_.x,_.y])}g||(g=n.__edge=new E3({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:v}})),Ke(g,{shape:{parentPoint:[o.x,o.y],childPoints:m}},r)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}g&&!(c==="polyline"&&!e.isExpand)&&(g.useStyle(Me({strokeNoScale:!0,fill:null},p)),Ir(g,u,"lineStyle"),Vu(g),s.add(g))}function bb(r,e,t,n,a){var i=e.tree.root,o=tk(i,r),s=o.source,u=o.sourceLayout,c=e.getItemGraphicEl(r.dataIndex);if(c){var f=e.getItemGraphicEl(s.dataIndex),d=f.__edge,h=c.__edge||(s.isExpand===!1||s.children.length===1?d:void 0),v=n.get("edgeShape"),p=n.get("layout"),g=n.get("orient"),y=n.get(["lineStyle","curveness"]);h&&(v==="curve"?si(h,{shape:bv(p,g,y,u,u),style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:a}):v==="polyline"&&n.get("layout")==="orthogonal"&&si(h,{shape:{parentPoint:[u.x,u.y],childPoints:[[u.x,u.y]]},style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:a}))}}function tk(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function _b(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=tk(o,i).sourceLayout,u={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};si(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:u}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:u}),i.children.forEach(function(c){bb(c,r,n,a,u)}),bb(i,r,n,a,u)}function bv(r,e,t,n,a){var i,o,s,u,c,f,d,h;if(r==="radial"){c=n.rawX,d=n.rawY,f=a.rawX,h=a.rawY;var v=es(c,d),p=es(c,d+(h-d)*t),g=es(f,h+(d-h)*t),y=es(f,h);return{x1:v.x||0,y1:v.y||0,x2:y.x||0,y2:y.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}else c=n.x,d=n.y,f=a.x,h=a.y,(e==="LR"||e==="RL")&&(i=c+(f-c)*t,o=d,s=f+(c-f)*t,u=h),(e==="TB"||e==="BT")&&(i=c,o=d+(h-d)*t,s=f,u=h+(d-h)*t);return{x1:c,y1:d,x2:f,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:u}}var mr=Re();function I3(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,rk(e,t,r),N(t,function(n){N(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,me(B3,r))})}),e.wrapMethod("cloneShallow",me(V3,r)),N(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,me(L3,r))}),ce(t[e.dataType]===e)}function B3(r,e){if(O3(this)){var t=Y({},mr(this).datas);t[this.dataType]=e,rk(e,t,r)}else tg(e,this.dataType,mr(this).mainData,r);return e}function L3(r,e){return r.struct&&r.struct.update(),e}function V3(r,e){return N(mr(e).datas,function(t,n){t!==e&&tg(t.cloneShallow(),n,e,r)}),e}function P3(r){var e=mr(this).mainData;return r==null||e==null?e:mr(e).datas[r]}function R3(){var r=mr(this).mainData;return r==null?[{data:r}]:X(je(mr(r).datas),function(e){return{type:e,data:mr(r).datas[e]}})}function O3(r){return mr(r).mainData===r}function rk(r,e,t){mr(r).datas={},N(e,function(n,a){tg(n,a,r,t)})}function tg(r,e,t,n){mr(t).datas[e]=r,mr(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=P3,r.getLinkedDataAll=R3}var z3=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){ue(e)&&(n=t,t=e,e=null),e=e||{},te(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),nk=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(f,d){var h=f.value;o=Math.max(o,Z(h)?h.length:1),i.push(f);var v=new z3(Kt(f.name,""),a);d?$3(v,d):a.root=v,a._nodes.push(v);var p=f.children;if(p)for(var g=0;g<p.length;g++)s(p[g],v)}a.root.updateDepthAndHeight(0);var u=Fp(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,c=new Tn(u,t);return c.initData(i),n&&n(c),I3({mainData:c,struct:a,structAttr:"tree"}),a.update(),a},r}();function $3(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function rg(r,e,t){if(r&&De(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if(te(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function ak(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function ik(r,e){var t=ak(r);return De(t,e)>=0}function ng(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var F3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new Ue(a,this,this.ecModel),o=nk.createTree(n,this,s);function s(d){d.wrapMethod("getItemModel",function(h,v){var p=o.getNodeByDataIndex(v);return p&&p.children.length&&p.isExpand||(h.parentModel=i),h})}var u=0;o.eachNode("preorder",function(d){d.depth>u&&(u=d.depth)});var c=t.expandAndCollapse,f=c&&t.initialTreeDepth>=0?t.initialTreeDepth:u;return o.root.eachNode("preorder",function(d){var h=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=h&&h.collapsed!=null?!h.collapsed:d.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),u=s.getValue(),c=s.name;s&&s!==o;)c=s.parentNode.name+"."+c,s=s.parentNode;return Vr("nameValue",{name:c,value:u,noValue:isNaN(u)||u==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ng(a,this),n.collapsed=!a.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:G.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(wt);function H3(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)e(i,t)}function Ro(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)t.push(a[i])}}function G3(r,e){r.eachSeriesByType("tree",function(t){W3(t,e)})}function W3(r,e){var t=Or(r,e).refContainer,n=Ft(r.getBoxLayoutParams(),t);r.layoutInfo=n;var a=r.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=gb(function(S,w){return(S.parentNode===w.parentNode?1:2)/S.depth})):(i=n.width,o=n.height,s=gb());var u=r.getData().tree.root,c=u.children[0];if(c){_3(u),H3(c,S3,s),u.hierNode.modifier=-c.hierNode.prelim,Ro(c,w3);var f=c,d=c,h=c;Ro(c,function(S){var w=S.getLayout().x;w<f.getLayout().x&&(f=S),w>d.getLayout().x&&(d=S),S.depth>h.depth&&(h=S)});var v=f===d?1:s(f,d)/2,p=v-f.getLayout().x,g=0,y=0,m=0,b=0;if(a==="radial")g=i/(d.getLayout().x+v+p),y=o/(h.depth-1||1),Ro(c,function(S){m=(S.getLayout().x+p)*g,b=(S.depth-1)*y;var w=es(m,b);S.setLayout({x:w.x,y:w.y,rawX:m,rawY:b},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(y=o/(d.getLayout().x+v+p),g=i/(h.depth-1||1),Ro(c,function(S){b=(S.getLayout().x+p)*y,m=_==="LR"?(S.depth-1)*g:i-(S.depth-1)*g,S.setLayout({x:m,y:b},!0)})):(_==="TB"||_==="BT")&&(g=i/(d.getLayout().x+v+p),y=o/(h.depth-1||1),Ro(c,function(S){m=(S.getLayout().x+p)*g,b=_==="TB"?(S.depth-1)*y:o-(S.depth-1)*y,S.setLayout({x:m,y:b},!0)}))}}}function U3(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");Y(s,o)})})}function Y3(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=y3(i,e,a.get("scaleLimit"));a.setCenter(o.center),a.setZoom(o.zoom)})})}function Z3(r){r.registerChartView(A3),r.registerSeriesModel(F3),r.registerLayout(G3),r.registerVisual(U3),Y3(r)}var Sb=["treemapZoomToNode","treemapRender","treemapMove"];function X3(r){for(var e=0;e<Sb.length;e++)r.registerAction({type:Sb[e],update:"updateView"},Dt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],u=rg(t,s,i);if(u){var c=i.getViewRoot();c&&(t.direction=ik(c,u.node)?"rollUp":"drillDown"),i.resetViewRoot(u.node)}}})}function j3(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=IP(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var q3=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};ok(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Ue({itemStyle:o},this,n);i=t.levels=K3(i,n);var u=X(i||[],function(d){return new Ue(d,s,n)},this),c=nk.createTree(a,this,f);function f(d){d.wrapMethod("getItemModel",function(h,v){var p=c.getNodeByDataIndex(v),g=p?u[p.depth]:null;return h.parentModel=g||s,h})}return c.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Vr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ng(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=_e(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){j3(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:G.size.l,top:G.size.xxxl,right:G.size.l,bottom:G.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:G.size.m,emptyItemWidth:25,itemStyle:{color:G.color.backgroundShade,textStyle:{color:G.color.secondary}},emphasis:{itemStyle:{color:G.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:G.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:G.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(wt);function ok(r){var e=0;N(r.children,function(n){ok(n);var a=n.value;Z(a)&&(a=a[0]),e+=a});var t=r.value;Z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),Z(r.value)?r.value[0]=t:r.value=t}function K3(r,e){var t=gt(e.get("color")),n=gt(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;N(r,function(s){var u=new Ue(s),c=u.get("color"),f=u.get("decal");(u.get(["itemStyle","color"])||c&&c!=="none")&&(a=!0),(u.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}var Q3=8,wb=8,Cd=5,J3=function(){function r(e){this.group=new Ee,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),u=i.getModel("emphasis"),c=s.getModel("textStyle"),f=u.getModel(["itemStyle","textStyle"]),d=Or(e,t).refContainer,h={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},v={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},p=Ft(h,d);this._prepare(n,v,c),this._renderContent(e,v,p,s,u,c,f,a),Mp(o,h,d)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=Kt(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+Q3*2,t.emptyItemWidth);t.totalWidth+=s+wb,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s,u){for(var c=0,f=t.emptyItemWidth,d=e.get(["breadcrumb","height"]),h=t.totalWidth,v=t.renderList,p=i.getModel("itemStyle").getItemStyle(),g=v.length-1;g>=0;g--){var y=v[g],m=y.node,b=y.width,_=y.text;h>n.width&&(h-=b-f,b=f,_=null);var S=new Br({shape:{points:e4(c,0,b,d,g===v.length-1,g===0)},style:Me(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new We({style:lt(o,{text:_})}),textConfig:{position:"inside"},z2:zs*1e4,onclick:me(u,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=lt(s,{text:_}),S.ensureState("emphasis").style=p,ar(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),t4(S,e,m),c+=b+wb}},r.prototype.remove=function(){this.group.removeAll()},r}();function e4(r,e,t,n,a,i){var o=[[a?r:r-Cd,e],[r+t,e],[r+t,e+n],[a?r:r-Cd,e+n]];return!i&&o.splice(2,0,[r+t+Cd,e+n/2]),!a&&o.push([r,e+n/2]),o}function t4(r,e,t){Te(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&ng(t,e)}}var r4=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function n4(){return new r4}var _v=Ee,xb=Oe,Cb=3,kb="label",Tb="upperLabel",a4=zs*10,i4=zs*2,o4=zs*3,Ra=Qi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Db=function(r){var e=Ra(r);return e.stroke=e.fill=e.lineWidth=null,e},sc=Re(),s4=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Oo(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(De(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],u=rg(i,s,t),c=i&&i.type,f=t.layoutInfo,d=!this._oldTree,h=this._storage,v=c==="treemapRootToNode"&&u&&h?{rootNodeGroup:h.nodeGroup[u.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(f),g=t.get("animation"),y=this._doRender(p,t,v);g&&!d&&(!c||c==="treemapZoomToNode"||c==="treemapRootToNode")?this._doAnimation(p,y,t,v):y.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,u)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new _v,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=Oo(),u=Oo(),c=this._storage,f=[];function d(b,_,S,w){return l4(n,u,c,a,s,f,b,_,S,w)}g(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=y(c);if(this._oldTree=i,this._storage=u,this._controllerHost){var v=this.seriesModel.layoutInfo,p=i.root.getLayout();p.width===v.width&&p.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:m};function g(b,_,S,w,x){w?(_=b,N(b,function(T,D){!T.isRemoved()&&k(D,D)})):new Wc(_,b,C,C).add(k).update(k).remove(me(k,null)).execute();function C(T){return T.getId()}function k(T,D){var M=T!=null?b[T]:null,A=D!=null?_[D]:null,E=d(M,A,S,x);E&&g(M&&M.viewChildren||[],A&&A.viewChildren||[],E,w,x+1)}}function y(b){var _=Oo();return b&&N(b,function(S,w){var x=_[w];N(S,function(C){C&&(x.push(C),sc(C).willDelete=!0)})}),_}function m(){N(h,function(b){N(b,function(_){_.parent&&_.parent.remove(_)})}),N(f,function(b){b.invisible=!0,b.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),u=(ue(o)?0:o)||0,c=(ue(s)?null:s)||"cubicOut",f=n4();N(n.willDeleteEls,function(d,h){N(d,function(v,p){if(!v.invisible){var g=v.parent,y,m=sc(g);if(i&&i.direction==="drillDown")y=g===i.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var b=0,_=0;m.willDelete||(b=m.nodeWidth/2,_=m.nodeHeight/2),y=h==="nodeGroup"?{x:b,y:_,style:{opacity:0}}:{shape:{x:b,y:_,width:0,height:0},style:{opacity:0}}}y&&f.add(v,y,u,0,c)}})}),N(this._storage,function(d,h){N(d,function(v,p){var g=n.lastsForAnimation[h][p],y={};g&&(v instanceof Ee?g.oldX!=null&&(y.x=v.x,y.y=v.y,v.x=g.oldX,v.y=g.oldY):(g.oldShape&&(y.shape=Y({},v.shape),v.setShape(g.oldShape)),g.fadein?(v.setStyle("opacity",0),y.style={opacity:1}):v.style.opacity!==1&&(y.style={opacity:1})),f.add(v,y,u,0,c))})},this),this._state="animating",f.finished(oe(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this,a=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost);var o=this.seriesModel;a||(a=this._controller=new Jp(t.getZr()),a.on("pan",oe(this._onPan,this)),a.on("zoom",oe(this._onZoom,this))),a.enable(o.get("roam"),{api:t,zInfo:{component:o},triggerInfo:{roamTrigger:o.get("roamTrigger"),isInSelf:function(s,u,c){var f=n._containerGroup;return f?f.getBoundingRect().contain(u-f.x,c-f.y):!1}}}),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.get("zoom")},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>Cb||Math.abs(t.dy)>Cb)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var u=new ye(s.x,s.y,s.width,s.height),c=null,f=this._controllerHost;c=f.zoomLimit;var d=f.zoom=f.zoom||1;if(d*=i,c){var h=c.min||0,v=c.max||1/0;d=Math.max(Math.min(v,d),h)}var p=d/f.zoom;f.zoom=d;var g=this.seriesModel.layoutInfo;n-=g.x,a-=g.y;var y=Mr();ms(y,y,[-n,-a]),Q_(y,y,[p,p]),ms(y,y,[n,a]),u.applyTransform(y),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var u=s.hostTree.data.getItemModel(s.dataIndex),c=u.get("link",!0),f=u.get("target",!0)||"blank";c&&$h(c,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new J3(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(ik(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Oo(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var u=s.transformCoordToLocal(t,n),c=s.shape;if(c.x<=u[0]&&u[0]<=c.x+c.width&&c.y<=u[1]&&u[1]<=c.y+c.height)a={node:o,offsetX:u[0],offsetY:u[1]};else return!1}},this),a},e.type="treemap",e}(yt);function Oo(){return{nodeGroup:[],background:[],content:[]}}function l4(r,e,t,n,a,i,o,s,u,c){if(!o)return;var f=o.getLayout(),d=r.getData(),h=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,p=f.height,g=f.borderWidth,y=f.invisible,m=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,w=_&&_.length,x=h.getModel("itemStyle"),C=h.getModel(["emphasis","itemStyle"]),k=h.getModel(["blur","itemStyle"]),T=h.getModel(["select","itemStyle"]),D=x.get("borderRadius")||0,M=q("nodeGroup",_v);if(!M)return;if(u.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),sc(M).nodeWidth=v,sc(M).nodeHeight=p,f.isAboveViewRoot)return M;var A=q("background",xb,c,i4);A&&z(M,A,w&&f.upperLabelHeight);var E=h.getModel("emphasis"),I=E.get("focus"),B=E.get("blurScope"),R=E.get("disabled"),P=I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():I;if(w)sa(M)&&Wa(M,!1),A&&(Wa(A,!R),d.setItemGraphicEl(o.dataIndex,A),Nh(A,P,B));else{var L=q("content",xb,c,o4);L&&O(M,L),A.disableMorphing=!0,A&&sa(A)&&Wa(A,!1),Wa(M,!R),d.setItemGraphicEl(o.dataIndex,M);var V=h.getShallow("cursor");V&&L.attr("cursor",V),Nh(M,P,B)}return M;function z(ae,le,Se){var J=Te(le);if(J.dataIndex=o.dataIndex,J.seriesIndex=r.seriesIndex,le.setShape({x:0,y:0,width:v,height:p,r:D}),y)W(le);else{le.invisible=!1;var ie=o.getVisual("style"),$e=ie.stroke,Ae=Db(x);Ae.fill=$e;var xe=Ra(C);xe.fill=C.get("borderColor");var Fe=Ra(k);Fe.fill=k.get("borderColor");var tt=Ra(T);if(tt.fill=T.get("borderColor"),Se){var At=v-2*g;j(le,$e,ie.opacity,{x:g,y:0,width:At,height:S})}else le.removeTextContent();le.setStyle(Ae),le.ensureState("emphasis").style=xe,le.ensureState("blur").style=Fe,le.ensureState("select").style=tt,Vu(le)}ae.add(le)}function O(ae,le){var Se=Te(le);Se.dataIndex=o.dataIndex,Se.seriesIndex=r.seriesIndex;var J=Math.max(v-2*g,0),ie=Math.max(p-2*g,0);if(le.culling=!0,le.setShape({x:g,y:g,width:J,height:ie,r:D}),y)W(le);else{le.invisible=!1;var $e=o.getVisual("style"),Ae=$e.fill,xe=Db(x);xe.fill=Ae,xe.decal=$e.decal;var Fe=Ra(C),tt=Ra(k),At=Ra(T);j(le,Ae,$e.opacity,null),le.setStyle(xe),le.ensureState("emphasis").style=Fe,le.ensureState("blur").style=tt,le.ensureState("select").style=At,Vu(le)}ae.add(le)}function W(ae){!ae.invisible&&i.push(ae)}function j(ae,le,Se,J){var ie=h.getModel(J?Tb:kb),$e=Kt(h.get("name"),null),Ae=ie.getShallow("show");ln(ae,yr(h,J?Tb:kb),{defaultText:Ae?$e:null,inheritColor:le,defaultOpacity:Se,labelFetcher:r,labelDataIndex:o.dataIndex});var xe=ae.getTextContent();if(xe){var Fe=xe.style,tt=bc(Fe.padding||0);J&&(ae.setTextConfig({layoutRect:J}),xe.disableLabelLayout=!0),xe.beforeUpdate=function(){var at=Math.max((J?J.width:ae.shape.width)-tt[1]-tt[3],0),cn=Math.max((J?J.height:ae.shape.height)-tt[0]-tt[2],0);(Fe.width!==at||Fe.height!==cn)&&xe.setStyle({width:at,height:cn})},Fe.truncateMinChar=2,Fe.lineOverflow="truncate",ne(Fe,J,f);var At=xe.getState("emphasis");ne(At?At.style:null,J,f)}}function ne(ae,le,Se){var J=ae?ae.text:null;if(!le&&Se.isLeafRoot&&J!=null){var ie=r.get("drillDownIcon",!0);ae.text=ie?ie+" "+J:J}}function q(ae,le,Se,J){var ie=b!=null&&t[ae][b],$e=a[ae];return ie?(t[ae][b]=null,Q($e,ie)):y||(ie=new le,ie instanceof fo&&(ie.z2=u4(Se,J)),Be($e,ie)),e[ae][m]=ie}function Q(ae,le){var Se=ae[m]={};le instanceof _v?(Se.oldX=le.x,Se.oldY=le.y):Se.oldShape=Y({},le.shape)}function Be(ae,le){var Se=ae[m]={},J=o.parentNode,ie=le instanceof Ee;if(J&&(!n||n.direction==="drillDown")){var $e=0,Ae=0,xe=a.background[J.getRawIndex()];!n&&xe&&xe.oldShape&&($e=xe.oldShape.width,Ae=xe.oldShape.height),ie?(Se.oldX=0,Se.oldY=Ae):Se.oldShape={x:$e,y:Ae,width:0,height:0}}Se.fadein=!ie}}function u4(r,e){return r*a4+e}var Ns=N,c4=fe,lc=-1,Mt=function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=he(e);this.type=n,this.mappingMethod=t,this._normalizeData=h4[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(kd(a),f4(a)):t==="category"?a.categories?d4(a):kd(a,!0):(ce(t!=="linear"||a.dataExtent),kd(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return oe(this._normalizeData,this)},r.listVisualTypes=function(){return je(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){fe(e)?N(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=Z(e)?[]:fe(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var u=t.call(n,o,s);a?i=u:i[s]=u}),i},r.retrieveVisuals=function(e){var t={},n;return e&&Ns(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(Z(e))e=e.slice();else if(c4(e)){var t=[];Ns(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var u=t[o].value;if(u!=null){if(u===e||te(u)&&u===e+"")return o;n&&h(u,o)}}for(var o=0,s=t.length;o<s;o++){var c=t[o],f=c.interval,d=c.close;if(f){if(f[0]===-1/0){if(Gl(d[1],e,f[1]))return o}else if(f[1]===1/0){if(Gl(d[0],f[0],e))return o}else if(Gl(d[0],f[0],e)&&Gl(d[1],e,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function h(v,p){var g=Math.abs(v-e);g<i&&(i=g,a=p)}},r.visualHandlers={color:{applyVisual:zo("color"),getColorMapper:function(){var e=this.option;return oe(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),ts.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=df(t,e.parsedVisual,a),i?a:Cn(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Cn(df(e,this.option.parsedVisual),"rgba")},category:ts,piecewise:function(e,t){var n=wv.call(this,t);return n==null&&(n=Cn(df(e,this.option.parsedVisual),"rgba")),n},fixed:Oa}},colorHue:Hl(function(e,t){return ta(e,t)}),colorSaturation:Hl(function(e,t){return ta(e,null,t)}),colorLightness:Hl(function(e,t){return ta(e,null,null,t)}),colorAlpha:Hl(function(e,t){return xu(e,t)}),decal:{applyVisual:zo("decal"),_normalizedToVisual:{linear:null,category:ts,piecewise:null,fixed:null}},opacity:{applyVisual:zo("opacity"),_normalizedToVisual:Sv([0,1])},liftZ:{applyVisual:zo("liftZ"),_normalizedToVisual:{linear:Oa,category:Oa,piecewise:Oa,fixed:Oa}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:Mb,category:ts,piecewise:function(e,t){var n=wv.call(this,t);return n==null&&(n=Mb.call(this,e)),n},fixed:Oa}},symbolSize:{applyVisual:zo("symbolSize"),_normalizedToVisual:Sv([0,1])}},r}();function f4(r){var e=r.pieceList;r.hasSpecialVisual=!1,N(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function d4(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(Ns(e,function(o,s){t[o]=s}),!Z(n)){var a=[];fe(n)?Ns(n,function(o,s){var u=t[s];a[u??lc]=o}):a[lc]=n,n=sk(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function kd(r,e){var t=r.visual,n=[];fe(t)?Ns(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),sk(r,n)}function Hl(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:Sv([0,1])}}function Mb(r){var e=this.option.visual;return e[Math.round(ze(r,[0,1],[0,e.length-1],!0))]||{}}function zo(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function ts(r){var e=this.option.visual;return e[this.option.loop&&r!==lc?r%e.length:r]}function Oa(){return this.option.visual[0]}function Sv(r){return{linear:function(e){return ze(e,r,this.option.visual,!0)},category:ts,piecewise:function(e,t){var n=wv.call(this,t);return n==null&&(n=ze(e,r,this.option.visual,!0)),n},fixed:Oa}}function wv(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=Mt.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function sk(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=X(e,function(t){var n=gr(t);return!n&&process.env.NODE_ENV!=="production"&&St("'"+t+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),e}var h4={linear:function(r){return ze(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Mt.findPieceIndex(r,e,!0);if(t!=null)return ze(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??lc},fixed:Dt};function Gl(r,e,t){return r?e<=t:e<t}var v4="itemStyle",lk=Re();const p4={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||uk(t,{},r.getViewRoot().getAncestors(),r)}};function uk(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(v4),u=g4(s,e,n),c=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),d=s.get("borderColorSaturation"),h;d!=null&&(h=Eb(u),f=m4(d,h)),c.stroke=f;var v=r.viewChildren;if(!v||!v.length)h=Eb(u),c.fill=h;else{var p=y4(r,a,i,s,u,v);N(v,function(g,y){if(g.depth>=t.length||g===t[g.depth]){var m=b4(a,u,g,y,p,n);uk(g,m,t,n)}})}}}function g4(r,e,t){var n=Y({},e),a=t.designatedVisualItemStyle;return N(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function Eb(r){var e=Td(r,"color");if(e){var t=Td(r,"colorAlpha"),n=Td(r,"colorSaturation");return n&&(e=ta(e,null,null,n)),t&&(e=xu(e,t)),e}}function m4(r,e){return e!=null?ta(e,null,null,r):null}function Td(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function y4(r,e,t,n,a,i){if(!(!i||!i.length)){var o=Dd(e,"color")||a.color!=null&&a.color!=="none"&&(Dd(e,"colorAlpha")||Dd(e,"colorSaturation"));if(o){var s=e.get("visualMin"),u=e.get("visualMax"),c=t.dataExtent.slice();s!=null&&s<c[0]&&(c[0]=s),u!=null&&u>c[1]&&(c[1]=u);var f=e.get("colorMappingBy"),d={type:o.name,dataExtent:c,visual:o.range};d.type==="color"&&(f==="index"||f==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var h=new Mt(d);return lk(h).drColorMappingBy=f,h}}}function Dd(r,e){var t=r.get(e);return Z(t)&&t.length?{name:e,range:t}:null}function b4(r,e,t,n,a,i){var o=Y({},e);if(a){var s=a.type,u=s==="color"&&lk(a).drColorMappingBy,c=u==="index"?n:u==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(c)}return o}var Is=Math.max,uc=Math.min,Ab=rr,ag=N,ck=["itemStyle","borderWidth"],_4=["itemStyle","gapWidth"],S4=["upperLabel","show"],w4=["upperLabel","height"];const x4={seriesType:"treemap",reset:function(r,e,t,n){var a=r.option,i=Or(r,t).refContainer,o=Ft(r.getBoxLayoutParams(),i),s=a.size||[],u=de(Ab(o.width,s[0]),i.width),c=de(Ab(o.height,s[1]),i.height),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=rg(n,d,r),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,p=r.getViewRoot(),g=ak(p);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?E4(r,h,p,u,c):v?[v.width,v.height]:[u,c],m=a.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var b={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};p.hostTree.clearLayouts();var _={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(_),fk(p,b,!1,0),_=p.getLayout(),ag(g,function(w,x){var C=(g[x+1]||p).getValue();w.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(A4(o,v,h),!0),r.setLayoutInfo(o),dk(S,new ye(-o.x,-o.y,t.getWidth(),t.getHeight()),g,p,0)}};function fk(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),u=s.get(ck),c=s.get(_4)/2,f=hk(s),d=Math.max(u,f),h=u-c,v=d-c;r.setLayout({borderWidth:u,upperHeight:d,upperLabelHeight:f},!0),a=Is(a-2*h,0),i=Is(i-h-v,0);var p=a*i,g=C4(r,s,p,e,t,n);if(g.length){var y={x:h,y:v,width:a,height:i},m=uc(a,i),b=1/0,_=[];_.area=0;for(var S=0,w=g.length;S<w;){var x=g[S];_.push(x),_.area+=x.getLayout().area;var C=M4(_,m,e.squareRatio);C<=b?(S++,b=C):(_.area-=_.pop().getLayout().area,Nb(_,m,y,c,!1),m=uc(y.width,y.height),_.length=_.area=0,b=1/0)}if(_.length&&Nb(_,m,y,c,!0),!t){var k=s.get("childrenVisibleMin");k!=null&&p<k&&(t=!0)}for(var S=0,w=g.length;S<w;S++)fk(g[S],e,t,n+1)}}}function C4(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var u=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!u)return r.viewChildren=[];o=et(o,function(v){return!v.isRemoved()}),T4(o,s);var c=D4(e,o,s);if(c.sum===0)return r.viewChildren=[];if(c.sum=k4(e,t,c.sum,s,o),c.sum===0)return r.viewChildren=[];for(var f=0,d=o.length;f<d;f++){var h=o[f].getValue()/c.sum*t;o[f].setLayout({area:h})}return u&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:c.dataExtent},!0),o}function k4(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,u=o-1;u>=0;u--){var c=a[n==="asc"?o-u-1:u].getValue();c/t*e<i&&(s=u,t-=c)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function T4(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function D4(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],ag(e,function(u){var c=u.getValue(o);c<s[0]&&(s[0]=c),c>s[1]&&(s[1]=c)})),{sum:n,dataExtent:s}}function M4(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var u=r.area*r.area,c=e*e*t;return u?Is(c*n/u,u/(c*a)):1/0}function Nb(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],u=["width","height"],c=t[s[i]],f=e?r.area/e:0;(a||f>t[u[o]])&&(f=t[u[o]]);for(var d=0,h=r.length;d<h;d++){var v=r[d],p={},g=f?v.getLayout().area/f:0,y=p[u[o]]=Is(f-2*n,0),m=t[s[i]]+t[u[i]]-c,b=d===h-1||m<g?m:g,_=p[u[i]]=Is(b-2*n,0);p[s[o]]=t[s[o]]+uc(n,y/2),p[s[i]]=c+uc(n,_/2),c+=b,v.setLayout(p,!0)}t[s[o]]+=f,t[u[o]]-=f}function E4(r,e,t,n,a){var i=(e||{}).node,o=[n,a];if(!i||i===t)return o;for(var s,u=n*a,c=u*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,d=s.children,h=0,v=d.length;h<v;h++)f+=d[h].getValue();var p=i.getValue();if(p===0)return o;c*=f/p;var g=s.getModel(),y=g.get(ck),m=Math.max(y,hk(g));c+=4*y*y+(3*y+m)*Math.pow(c,.5),c>hm&&(c=hm),i=s}c<u&&(c=u);var b=Math.pow(c/u,.5);return[n*b,a*b]}function A4(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var u=s.getLayout();o[0]+=u.x,o[1]+=u.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function dk(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var u=new ye(e.x-i.x,e.y-i.y,e.width,e.height);ag(r.viewChildren||[],function(c){dk(c,u,t,n,a+1)})}}function hk(r){return r.get(S4)?r.get(w4):0}function N4(r){r.registerSeriesModel(q3),r.registerChartView(s4),r.registerVisual(p4),r.registerLayout(x4),X3(r)}var Ib=Lr.prototype,Md=Fs.prototype,vk=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(vk);function Ed(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var I4=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new vk},e.prototype.buildPath=function(t,n){Ed(n)?Ib.buildPath.call(this,t,n):Md.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return Ed(this.shape)?Ib.pointAt.call(this,t):Md.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=Ed(n)?[n.x2-n.x1,n.y2-n.y1]:Md.tangentAt.call(this,t);return Yv(a,a)},e}(Pe),Ad=["fromSymbol","toSymbol"];function Bb(r){return"_"+r+"Type"}function Lb(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),u=Fc(a),c=Hc(o||0,u);return n+u+c+(i||"")+(s||"")}function Vb(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),u=Fc(a),c=Hc(o||0,u),f=Vt(n,-u[0]/2+c[0],-u[1]/2+c[1],u[0],u[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function B4(r){var e=new I4({name:"line",subPixelOptimize:!0});return xv(e.shape,r),e}function xv(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var L4=function(r){H(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=t.getItemVisual(n,"z2"),u=B4(o);u.shape.percent=0,mt(u,{z2:se(s,0),shape:{percent:1}},i,n),this.add(u),N(Ad,function(c){var f=Vb(c,t,n);this.add(f),this[Bb(c)]=Lb(c,t,n)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),u={shape:{}};xv(u.shape,s),Ke(o,u,i,n),N(Ad,function(c){var f=Lb(c,t,n),d=Bb(c);if(this[d]!==f){this.remove(this.childOfName(c));var h=Vb(c,t,n);this.add(h)}this[d]=f},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,u=a&&a.blurLineStyle,c=a&&a.selectLineStyle,f=a&&a.labelStatesModels,d=a&&a.emphasisDisabled,h=a&&a.focus,v=a&&a.blurScope;if(!a||t.hasItemOption){var p=t.getItemModel(n),g=p.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),u=p.getModel(["blur","lineStyle"]).getLineStyle(),c=p.getModel(["select","lineStyle"]).getLineStyle(),d=g.get("disabled"),h=g.get("focus"),v=g.get("blurScope"),f=yr(p)}var y=t.getItemVisual(n,"style"),m=y.stroke;o.useStyle(y),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=u,o.ensureState("select").style=c,N(Ad,function(x){var C=this.childOfName(x);if(C){C.setColor(m),C.style.opacity=y.opacity;for(var k=0;k<Jt.length;k++){var T=Jt[k],D=o.getState(T);if(D){var M=D.style||{},A=C.ensureState(T),E=A.style||(A.style={});M.stroke!=null&&(E[C.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(E.opacity=M.opacity)}}C.markRedraw()}},this);var b=i.getRawValue(n);ln(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,C){return i.getFormattedLabel(x,C,t.dataType)}},inheritColor:m||G.color.neutral99,defaultOpacity:y.opacity,defaultText:(b==null?t.getName(n):isFinite(b)?pt(b):b)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var w=S.get("distance");Z(w)||(w=[w,w]),_.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),ar(this,h,v,d)},e.prototype.highlight=function(){ii(this)},e.prototype.downplay=function(){oi(this)},e.prototype.updateLayout=function(t,n){this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");xv(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var u=t.childOfName("line");if(!this.__dirty&&!u.__dirty)return;var c=u.shape.percent,f=u.pointAt(0),d=u.pointAt(c),h=q_([],d,f);Yv(h,h);function v(D,M){var A=D.__specifiedRotation;if(A==null){var E=u.tangentAt(M);D.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(E[1],E[0]))}else D.attr("rotation",A)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*c,n.markRedraw()),a&&(a.setPosition(d),v(a,1),a.scaleX=a.scaleY=o*c,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,g=void 0,y=i.__labelDistance,m=y[0]*o,b=y[1]*o,_=c/2,S=u.tangentAt(_),w=[S[1],-S[0]],x=u.pointAt(_);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var C=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var k=-Math.atan2(S[1],S[0]);d[0]<f[0]&&(k=Math.PI+k),i.rotation=k}var T=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-b,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=b,g="top";break;default:T=0,g="middle"}switch(i.__position){case"end":i.x=h[0]*m+d[0],i.y=h[1]*b+d[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*m+f[0],i.y=-h[1]*b+f[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*C+f[0],i.y=f[1]+T,p=S[0]<0?"right":"left",i.originX=-m*C,i.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+T,p="center",i.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*C+d[0],i.y=d[1]+T,p=S[0]>=0?"right":"left",i.originX=m*C,i.originY=-T;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Ee),V4=function(){function r(e){this.group=new Ee,this._LineCtor=e||L4}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=Pb(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,u){t._doUpdate(i,e,u,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Pb(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!P4(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=t.getItemLayout(a);if(Nd(i)){var o=new this._LineCtor(t,a,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){vi(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(Nd(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!Nd(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r}();function P4(r){return r.animators&&r.animators.length>0}function Pb(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:yr(e)}}function Rb(r){return isNaN(r[0])||isNaN(r[1])}function Nd(r){return r&&!Rb(r[0])&&!Rb(r[1])}var R4=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),O4=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new R4},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,u=n.angle,c=n.x-a(u)*s*(s>=o/3?1:2),f=n.y-i(u)*s*(s>=o/3?1:2);u=n.angle-Math.PI/2,t.moveTo(c,f),t.lineTo(n.x+a(u)*s,n.y+i(u)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(u)*s,n.y-i(u)*s),t.lineTo(c,f)},e}(Pe);function z4(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=de(t[0],e.getWidth()),s=de(t[1],e.getHeight()),u=de(r.get("radius"),i/2);return{cx:o,cy:s,r:u}}function Wl(r,e){var t=r==null?"":r+"";return e&&(te(e)?t=e.replace("{value}",t):ue(e)&&(t=e(r))),t}var $4=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=z4(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,u=t.get("clockwise"),c=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),h=d.get("roundCap"),v=h?ac:on,p=d.get("show"),g=d.getModel("lineStyle"),y=g.get("width"),m=[c,f];np(m,!u),c=m[0],f=m[1];for(var b=f-c,_=c,S=[],w=0;p&&w<i.length;w++){var x=Math.min(Math.max(i[w][0],0),1);f=c+b*x;var C=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:u,r0:o.r-y,r:o.r},silent:!0});C.setStyle({fill:i[w][1]}),C.setStyle(g.getLineStyle(["color","width"])),S.push(C),_=f}S.reverse(),N(S,function(T){return s.add(T)});var k=function(T){if(T<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=T&&(D===0?0:i[D-1][0])<T)return i[D][1];return i[D-1][1]};this._renderTicks(t,n,a,k,o,c,f,u,y),this._renderTitleAndDetail(t,n,a,k,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,k,o,c,f,u,y)},e.prototype._renderTicks=function(t,n,a,i,o,s,u,c,f){for(var d=this.group,h=o.cx,v=o.cy,p=o.r,g=+t.get("min"),y=+t.get("max"),m=t.getModel("splitLine"),b=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),w=b.get("splitNumber"),x=de(m.get("length"),p),C=de(b.get("length"),p),k=s,T=(u-s)/S,D=T/w,M=m.getModel("lineStyle").getLineStyle(),A=b.getModel("lineStyle").getLineStyle(),E=m.get("distance"),I,B,R=0;R<=S;R++){if(I=Math.cos(k),B=Math.sin(k),m.get("show")){var P=E?E+f:f,L=new Lr({shape:{x1:I*(p-P)+h,y1:B*(p-P)+v,x2:I*(p-x-P)+h,y2:B*(p-x-P)+v},style:M,silent:!0});M.stroke==="auto"&&L.setStyle({stroke:i(R/S)}),d.add(L)}if(_.get("show")){var P=_.get("distance")+E,V=Wl(pt(R/S*(y-g)+g),_.get("formatter")),z=i(R/S),O=I*(p-x-P)+h,W=B*(p-x-P)+v,j=_.get("rotate"),ne=0;j==="radial"?(ne=-k+2*Math.PI,ne>Math.PI/2&&(ne+=Math.PI)):j==="tangential"?ne=-k-Math.PI/2:He(j)&&(ne=j*Math.PI/180),ne===0?d.add(new We({style:lt(_,{text:V,x:O,y:W,verticalAlign:B<-.8?"top":B>.8?"bottom":"middle",align:I<-.4?"left":I>.4?"right":"center"},{inheritColor:z}),silent:!0})):d.add(new We({style:lt(_,{text:V,x:O,y:W,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:O,originY:W,rotation:ne}))}if(b.get("show")&&R!==S){var P=b.get("distance");P=P?P+f:f;for(var q=0;q<=w;q++){I=Math.cos(k),B=Math.sin(k);var Q=new Lr({shape:{x1:I*(p-P)+h,y1:B*(p-P)+v,x2:I*(p-C-P)+h,y2:B*(p-C-P)+v},silent:!0,style:A});A.stroke==="auto"&&Q.setStyle({stroke:i((R+q/w)/S)}),d.add(Q),k+=D}k-=D}else k+=T}},e.prototype._renderPointer=function(t,n,a,i,o,s,u,c,f){var d=this.group,h=this._data,v=this._progressEls,p=[],g=t.get(["pointer","show"]),y=t.getModel("progress"),m=y.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),w=+t.get("max"),x=[S,w],C=[s,u];function k(D,M){var A=b.getItemModel(D),E=A.getModel("pointer"),I=de(E.get("width"),o.r),B=de(E.get("length"),o.r),R=t.get(["pointer","icon"]),P=E.get("offsetCenter"),L=de(P[0],o.r),V=de(P[1],o.r),z=E.get("keepAspect"),O;return R?O=Vt(R,L-I/2,V-B,I,B,null,z):O=new O4({shape:{angle:-Math.PI/2,width:I,r:B,x:L,y:V}}),O.rotation=-(M+Math.PI/2),O.x=o.cx,O.y=o.cy,O}function T(D,M){var A=y.get("roundCap"),E=A?ac:on,I=y.get("overlap"),B=I?y.get("width"):f/b.count(),R=I?o.r-B:o.r-(D+1)*B,P=I?o.r:o.r-D*B,L=new E({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:c,r0:R,r:P}});return I&&(L.z2=ze(b.get(_,D),[S,w],[100,0],!0)),L}(m||g)&&(b.diff(h).add(function(D){var M=b.get(_,D);if(g){var A=k(D,s);mt(A,{rotation:-((isNaN(+M)?C[0]:ze(M,x,C,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(D,A)}if(m){var E=T(D,s),I=y.get("clip");mt(E,{shape:{endAngle:ze(M,x,C,I)}},t),d.add(E),Th(t.seriesIndex,b.dataType,D,E),p[D]=E}}).update(function(D,M){var A=b.get(_,D);if(g){var E=h.getItemGraphicEl(M),I=E?E.rotation:s,B=k(D,I);B.rotation=I,Ke(B,{rotation:-((isNaN(+A)?C[0]:ze(A,x,C,!0))+Math.PI/2)},t),d.add(B),b.setItemGraphicEl(D,B)}if(m){var R=v[M],P=R?R.shape.endAngle:s,L=T(D,P),V=y.get("clip");Ke(L,{shape:{endAngle:ze(A,x,C,V)}},t),d.add(L),Th(t.seriesIndex,b.dataType,D,L),p[D]=L}}).execute(),b.each(function(D){var M=b.getItemModel(D),A=M.getModel("emphasis"),E=A.get("focus"),I=A.get("blurScope"),B=A.get("disabled");if(g){var R=b.getItemGraphicEl(D),P=b.getItemVisual(D,"style"),L=P.fill;if(R instanceof _r){var V=R.style;R.useStyle(Y({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},P))}else R.useStyle(P),R.type!=="pointer"&&R.setColor(L);R.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",i(ze(b.get(_,D),x,[0,1],!0))),R.z2EmphasisLift=0,Ir(R,M),ar(R,E,I,B)}if(m){var z=p[D];z.useStyle(b.getItemVisual(D,"style")),z.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,Ir(z,M),ar(z,E,I,B)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),u=a.get("offsetCenter"),c=a.get("keepAspect"),f=Vt(s,n.cx-o/2+de(u[0],n.r),n.cy-o/2+de(u[1],n.r),o,o,null,c);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,u=t.getData(),c=u.mapDimension("value"),f=+t.get("min"),d=+t.get("max"),h=new Ee,v=[],p=[],g=t.isAnimationEnabled(),y=t.get(["pointer","showAbove"]);u.diff(this._data).add(function(m){v[m]=new We({silent:!0}),p[m]=new We({silent:!0})}).update(function(m,b){v[m]=s._titleEls[b],p[m]=s._detailEls[b]}).execute(),u.each(function(m){var b=u.getItemModel(m),_=u.get(c,m),S=new Ee,w=i(ze(_,[f,d],[0,1],!0)),x=b.getModel("title");if(x.get("show")){var C=x.get("offsetCenter"),k=o.cx+de(C[0],o.r),T=o.cy+de(C[1],o.r),D=v[m];D.attr({z2:y?0:2,style:lt(x,{x:k,y:T,text:u.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(D)}var M=b.getModel("detail");if(M.get("show")){var A=M.get("offsetCenter"),E=o.cx+de(A[0],o.r),I=o.cy+de(A[1],o.r),B=de(M.get("width"),o.r),R=de(M.get("height"),o.r),P=t.get(["progress","show"])?u.getItemVisual(m,"style").fill:w,D=p[m],L=M.get("formatter");D.attr({z2:y?0:2,style:lt(M,{x:E,y:I,text:Wl(_,L),width:isNaN(B)?null:B,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:P})}),hw(D,{normal:M},_,function(z){return Wl(z,L)}),g&&$V(D,m,u,t,{getFormattedLabel:function(z,O,W,j,ne,q){return Wl(q?q.interpolatedValue:_,L)}}),S.add(D)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=p},e.type="gauge",e}(yt),F4=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return Yc(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,G.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:G.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:G.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:G.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:G.color.neutral00,borderWidth:0,borderColor:G.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:G.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:G.color.transparent,borderWidth:0,borderColor:G.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:G.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(wt);function H4(r){r.registerChartView($4),r.registerSeriesModel(F4)}function ci(r,e,t,n,a,i){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=Li(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Li(s,[0,o]),a=i=Li(s,[a,i]),n=0}e[0]=Li(e[0],t),e[1]=Li(e[1],t);var u=Id(e,n);e[n]+=r;var c=a||0,f=t.slice();u.sign<0?f[0]+=c:f[1]-=c,e[n]=Li(e[n],f);var d;return d=Id(e,n),a!=null&&(d.sign!==u.sign||d.span<a)&&(e[1-n]=e[n]+u.sign*a),d=Id(e,n),i!=null&&d.span>i&&(e[1-n]=e[n]+d.sign*i),e}function Id(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Li(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var fi=!0,Bs=Math.min,ao=Math.max,G4=Math.pow,W4=1e4,U4=6,Y4=6,Ob="globalPan",Z4={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},X4={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},zb={brushStyle:{lineWidth:2,stroke:G.color.backgroundTint,fill:G.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},j4=0,q4=function(r){H(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&ce(t),n._zr=t,n.group=new Ee,n._uid="brushController_"+j4++,N(nH,function(a,i){this._handlers[i]=oe(a,this)},n),n}return e.prototype.enableBrush=function(t){return process.env.NODE_ENV!=="production"&&ce(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||u3(n,Ob,this._uid),N(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=Ce(he(zb),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;c3(t,Ob,this._uid),N(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};N(t,function(a){n[a.panelId]=he(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){process.env.NODE_ENV!=="production"&&ce(this._mounted),t=X(t,function(h){return Ce(he(zb),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Wc(a,t,c,u).add(f).update(f).remove(d).execute(),this;function u(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function c(h,v){return u(h.__brushOption,v)}function f(h,v){var p=t[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var g=i[h]=v!=null?(a[v].__brushOption=p,a[v]):gk(o,pk(o,p));ig(o,g)}}function d(h){a[h]!==s&&o.group.remove(a[h])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),Cv(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(br);function pk(r,e){var t=Xc[e.brushType].createCover(r,e);return t.__brushOption=e,yk(t,e),r.group.add(t),t}function gk(r,e){var t=og(e);return t.endCreating&&(t.endCreating(r,e),yk(e,e.__brushOption)),e}function mk(r,e){var t=e.__brushOption;og(e).updateCoverShape(r,e,t.range,t)}function yk(r,e){var t=e.z;t==null&&(t=W4),r.traverse(function(n){n.z=t,n.z2=t})}function ig(r,e){og(e).updateCommon(r,e),mk(r,e)}function og(r){return Xc[r.__brushOption.brushType]}function sg(r,e,t){var n=r._panels;if(!n)return fi;var a,i=r._transform;return N(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function bk(r,e){var t=r._panels;if(!t)return fi;var n=e.__brushOption.panelId;return n!=null?t[n]:fi}function Cv(r){var e=r._covers,t=e.length;return N(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function di(r,e){var t=X(r._covers,function(n){var a=n.__brushOption,i=he(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function K4(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=G4(a*a+i*i,.5);return o>U4}function _k(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function Sk(r,e,t,n){var a=new Ee;return a.add(new Oe({name:"main",style:lg(t),silent:!0,draggable:!0,cursor:"move",drift:me($b,r,e,a,["n","s","w","e"]),ondragend:me(di,e,{isEnd:!0})})),N(n,function(i){a.add(new Oe({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:me($b,r,e,a,i),ondragend:me(di,e,{isEnd:!0})}))}),a}function wk(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=ao(a,Y4),o=t[0][0],s=t[1][0],u=o-a/2,c=s-a/2,f=t[0][1],d=t[1][1],h=f-i+a/2,v=d-i+a/2,p=f-o,g=d-s,y=p+a,m=g+a;pn(r,e,"main",o,s,p,g),n.transformable&&(pn(r,e,"w",u,c,i,m),pn(r,e,"e",h,c,i,m),pn(r,e,"n",u,c,y,i),pn(r,e,"s",u,v,y,i),pn(r,e,"nw",u,c,i,i),pn(r,e,"ne",h,c,i,i),pn(r,e,"sw",u,v,i,i),pn(r,e,"se",h,v,i,i))}function kv(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(lg(t)),a.attr({silent:!n,cursor:n?"move":"default"}),N([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Tv(r,i[0]):J4(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?X4[s]+"-resize":null})})}function pn(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(tH(ug(r,e,[[n,a],[n+i,a+o]])))}function lg(r){return Me({strokeNoScale:!0},r.brushStyle)}function xk(r,e,t,n){var a=[Bs(r,t),Bs(e,n)],i=[ao(r,t),ao(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Q4(r){return Qa(r.group)}function Tv(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Ic(t[e],Q4(r));return n[a]}function J4(r,e){var t=[Tv(r,e[0]),Tv(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function $b(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),u=Ck(e,a,i);N(n,function(c){var f=Z4[c];s[f[0]][f[1]]+=u[f[0]]}),o.range=r.fromRectRange(xk(s[0][0],s[1][0],s[0][1],s[1][1])),ig(e,t),di(e,{isEnd:!1})}function eH(r,e,t,n){var a=e.__brushOption.range,i=Ck(r,t,n);N(a,function(o){o[0]+=i[0],o[1]+=i[1]}),ig(r,e),di(r,{isEnd:!1})}function Ck(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function ug(r,e,t){var n=bk(r,e);return n&&n!==fi?n.clipPath(t,r._transform):he(t)}function tH(r){var e=Bs(r[0][0],r[1][0]),t=Bs(r[0][1],r[1][1]),n=ao(r[0][0],r[1][0]),a=ao(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function rH(r,e,t){if(!(!r._brushType||aH(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=sg(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===fi||s.panelId===i.panelId)&&Xc[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function Dv(r){var e=r.event;e.preventDefault&&e.preventDefault()}function Mv(r,e,t){return r.childOfName("main").contain(e,t)}function kk(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),K4(r)||a){if(i&&!a){o.brushMode==="single"&&Cv(r);var u=he(o);u.brushType=Fb(u.brushType,i),u.panelId=i===fi?null:i.panelId,a=r._creatingCover=pk(r,u),r._covers.push(a)}if(a){var c=Xc[Fb(r._brushType,i)],f=a.__brushOption;f.range=c.getCreatingRange(ug(r,a,r._track)),n&&(gk(r,a),c.updateCommon(r,a)),mk(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&sg(r,e,t)&&Cv(r)&&(s={isEnd:n,removeOnClick:!0});return s}function Fb(r,e){return r==="auto"?(process.env.NODE_ENV!=="production"&&ce(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):r}var nH={mousedown:function(r){if(this._dragging)Hb(this,r);else if(!r.target||!r.target.draggable){Dv(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=sg(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(rH(this,r,n),this._dragging){Dv(r);var a=kk(this,r,n,!1);a&&di(this,a)}},mouseup:function(r){Hb(this,r)}};function Hb(r,e){if(r._dragging){Dv(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=kk(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&di(r,i)}}function aH(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var Xc={lineX:Gb(0),lineY:Gb(1),rect:{createCover:function(r,e){function t(n){return n}return Sk({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=_k(r);return xk(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){wk(r,e,t,n)},updateCommon:kv,contain:Mv},polygon:{createCover:function(r,e){var t=new Ee;return t.add(new An({name:"main",style:lg(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Br({name:"main",draggable:!0,drift:me(eH,r,e),ondragend:me(di,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:ug(r,e,t)})},updateCommon:kv,contain:Mv}};function Gb(r){return{createCover:function(e,t){return Sk({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=_k(e),n=Bs(t[0][r],t[1][r]),a=ao(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=bk(e,t);if(o!==fi&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var u=[n,i];r&&u.reverse(),wk(e,t,u,a)},updateCommon:kv,contain:Mv}}function iH(r){return r=cg(r),function(e){return sw(e,r)}}function oH(r,e){return r=cg(r),function(t){var n=e??t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function sH(r,e,t){var n=cg(r);return function(a,i){return n.contain(i[0],i[1])&&!JC(a,e,t)}}function cg(r){return ye.create(r)}var lH=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),u;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),u=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),u=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var c=["x","y"],f=e.layout==="horizontal"?0:1,d=this._baseAxisDim=c[f],h=c[1-f],v=[a,i],p=v[f].get("type"),g=v[1-f].get("type"),y=e.data;if(y&&u){var m=[];N(y,function(S,w){var x;Z(S)?(x=S.slice(),S.unshift(w)):Z(S.value)?(x=Y({},S),x.value=x.value.slice(),S.value.unshift(w)):x=S,m.push(x)}),e.data=m}var b=this.defaultValueDimensions,_=[{name:d,type:av(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:av(g),dimsDef:b.slice()}];return Yc(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:me(Iw,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),uH=["itemStyle","borderColor"],cH=["itemStyle","borderColor0"],fH=["itemStyle","borderColorDoji"],dH=["itemStyle","color"],hH=["itemStyle","color0"];function fg(r,e){return e.get(r>0?dH:hH)}function dg(r,e){return e.get(r===0?fH:r>0?uH:cH)}var vH={seriesType:"candlestick",plan:Ys(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,u=o.getItemStyle();u.fill=fg(s,o),u.stroke=dg(s,o)||u.fill;var c=a.ensureUniqueItemVisual(i,"style");Y(c,u)}}}}}},pH=["color","borderColor"],gH=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){vi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),u=t.coordinateSystem,c=u.getArea&&u.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var d=n.getItemLayout(f);if(s&&Wb(c,d))return;var h=Bd(d,f,!0);mt(h,{shape:{points:d.ends}},t,f),Ld(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,d){var h=a.getItemGraphicEl(d);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&Wb(c,v)){i.remove(h);return}h?(Ke(h,{shape:{points:v.ends}},t,f),Ji(h)):h=Bd(v),Ld(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&i.remove(d)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),Ub(t,this.group);var n=t.get("clip",!0)?CC(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),u=Bd(s);Ld(u,a,o,i),u.incremental=!0,this.group.add(u),this._progressiveEls.push(u)}},e.prototype._incrementalRenderLarge=function(t,n){Ub(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(yt),mH=function(){function r(){}return r}(),yH=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new mH},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Pe);function Bd(r,e,t){var n=r.ends;return new yH({shape:{points:t?bH(n,r):n},z2:100})}function Wb(r,e){for(var t=!0,n=0;n<e.ends.length;n++)if(r.contain(e.ends[n][0],e.ends[n][1])){t=!1;break}return t}function Ld(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,Ir(r,a);var i=e.getItemLayout(t).sign;N(r.states,function(s,u){var c=a.getModel(u),f=fg(i,c),d=dg(i,c)||f,h=s.style||(s.style={});f&&(h.fill=f),d&&(h.stroke=d)});var o=a.getModel("emphasis");ar(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function bH(r,e){return X(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var _H=function(){function r(){}return r}(),Vd=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new _H},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e}(Pe);function Ub(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new Vd({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new Vd({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var u=new Vd({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(u),Pd(1,o,r),Pd(-1,s,r),Pd(0,u,r),n&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function Pd(r,e,t,n){var a=dg(r,t)||fg(r,t),i=t.getModel("itemStyle").getItemStyle(pH);e.useStyle(i),e.style.fill=null,e.style.stroke=a}var Tk=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(wt);ir(Tk,lH,!0);function SH(r){!r||!Z(r.series)||N(r.series,function(e){fe(e)&&e.type==="k"&&(e.type="candlestick")})}var wH={seriesType:"candlestick",plan:Ys(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=xH(r,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),u=X(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),c=u[0],f=u[1],d=u[2],h=u[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||u.length<4)return;return{progress:r.pipelineContext.large?p:v};function v(g,y){for(var m,b=y.getStore();(m=g.next())!=null;){var _=b.get(s,m),S=b.get(c,m),w=b.get(f,m),x=b.get(d,m),C=b.get(h,m),k=Math.min(S,w),T=Math.max(S,w),D=P(k,_),M=P(T,_),A=P(x,_),E=P(C,_),I=[];L(I,M,0),L(I,D,1),I.push(z(E),z(M),z(A),z(D));var B=y.getItemModel(m),R=!!B.get(["itemStyle","borderColorDoji"]);y.setItemLayout(m,{sign:Yb(b,m,S,w,f,R),initBaseline:S>w?M[i]:D[i],ends:I,brushRect:V(x,C,_)})}function P(O,W){var j=[];return j[a]=W,j[i]=O,isNaN(W)||isNaN(O)?[NaN,NaN]:e.dataToPoint(j)}function L(O,W,j){var ne=W.slice(),q=W.slice();ne[a]=iu(ne[a]+n/2,1,!1),q[a]=iu(q[a]-n/2,1,!0),j?O.push(ne,q):O.push(q,ne)}function V(O,W,j){var ne=P(O,j),q=P(W,j);return ne[a]-=n/2,q[a]-=n/2,{x:ne[0],y:ne[1],width:n,height:q[1]-ne[1]}}function z(O){return O[a]=iu(O[a],1),O}}function p(g,y){for(var m=en(g.count*4),b=0,_,S=[],w=[],x,C=y.getStore(),k=!!r.get(["itemStyle","borderColorDoji"]);(x=g.next())!=null;){var T=C.get(s,x),D=C.get(c,x),M=C.get(f,x),A=C.get(d,x),E=C.get(h,x);if(isNaN(T)||isNaN(A)||isNaN(E)){m[b++]=NaN,b+=3;continue}m[b++]=Yb(C,x,D,M,f,k),S[a]=T,S[i]=A,_=e.dataToPoint(S,null,w),m[b++]=_?_[0]:NaN,m[b++]=_?_[1]:NaN,S[i]=E,_=e.dataToPoint(S,null,w),m[b++]=_?_[1]:NaN}y.setLayout("largePoints",m)}}};function Yb(r,e,t,n,a,i){var o;return t>n?o=-1:t<n?o=1:o=i?0:e>0?r.get(a,e-1)<=n?1:-1:1,o}function xH(r,e){var t=r.getBaseAxis(),n,a=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=de(se(r.get("barMaxWidth"),a),a),o=de(se(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?de(s,a):Math.max(Math.min(a/2,i),o)}function CH(r){r.registerChartView(gH),r.registerSeriesModel(Tk),r.registerPreprocessor(SH),r.registerVisual(vH),r.registerLayout(wH)}var kH=256,TH=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Nr.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),u=this._getGradient(i,"inRange"),c=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,d=this.canvas,h=d.getContext("2d"),v=e.length;d.width=t,d.height=n;for(var p=0;p<v;++p){var g=e[p],y=g[0],m=g[1],b=g[2],_=a(b);h.globalAlpha=_,h.drawImage(s,y-f,m-f)}if(!d.width||!d.height)return d;for(var S=h.getImageData(0,0,d.width,d.height),w=S.data,x=0,C=w.length,k=this.minOpacity,T=this.maxOpacity,D=T-k;x<C;){var _=w[x+3]/256,M=Math.floor(_*(kH-1))*4;if(_>0){var A=o(_)?u:c;_>0&&(_=_*D+k),w[x++]=A[M],w[x++]=A[M+1],w[x++]=A[M+2],w[x++]=A[M+3]*_*256}else x+=4}return h.putImageData(S,0,0),d},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Nr.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=G.color.neutral99,a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();function DH(r,e,t){var n=r[1]-r[0];e=X(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var u=e[s].interval;if(u[0]<=o&&o<=u[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var u=e[s].interval;if(u[0]<=o&&o<=u[1]){i=s;break}}return s>=0&&s<a&&t[s]}}function MH(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}function Zb(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var EH=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i;if(n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(u){u===t&&(i=s)})}),process.env.NODE_ENV!=="production"&&!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,a,0,t.getData().count()):Zb(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(Zb(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){vi(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,n,a,i,o){var s=t.coordinateSystem,u=fa(s,"cartesian2d"),c=fa(s,"matrix"),f,d,h,v;if(u){var p=s.getAxis("x"),g=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(p.type==="category"&&g.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(p.onBand&&g.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}f=p.getBandWidth()+.5,d=g.getBandWidth()+.5,h=p.scale.getExtent(),v=g.scale.getExtent()}for(var y=this.group,m=t.getData(),b=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),w=t.get(["itemStyle","borderRadius"]),x=yr(t),C=t.getModel("emphasis"),k=C.get("focus"),T=C.get("blurScope"),D=C.get("disabled"),M=u||c?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],A=a;A<i;A++){var E=void 0,I=m.getItemVisual(A,"style");if(u){var B=m.get(M[0],A),R=m.get(M[1],A);if(isNaN(m.get(M[2],A))||isNaN(B)||isNaN(R)||B<h[0]||B>h[1]||R<v[0]||R>v[1])continue;var P=s.dataToPoint([B,R]);E=new Oe({shape:{x:P[0]-f/2,y:P[1]-d/2,width:f,height:d},style:I})}else if(c){var L=s.dataToLayout([m.get(M[0],A),m.get(M[1],A)]).rect;if(wn(L.x))continue;E=new Oe({z2:1,shape:L,style:I})}else{if(isNaN(m.get(M[1],A)))continue;var V=s.dataToLayout([m.get(M[0],A)]),L=V.contentRect||V.rect;if(wn(L.x)||wn(L.y))continue;E=new Oe({z2:1,shape:L,style:I})}if(m.hasItemOption){var z=m.getItemModel(A),O=z.getModel("emphasis");b=O.getModel("itemStyle").getItemStyle(),_=z.getModel(["blur","itemStyle"]).getItemStyle(),S=z.getModel(["select","itemStyle"]).getItemStyle(),w=z.get(["itemStyle","borderRadius"]),k=O.get("focus"),T=O.get("blurScope"),D=O.get("disabled"),x=yr(z)}E.shape.r=w;var W=t.getRawValue(A),j="-";W&&W[2]!=null&&(j=W[2]+""),ln(E,x,{labelFetcher:t,labelDataIndex:A,defaultOpacity:I.opacity,defaultText:j}),E.ensureState("emphasis").style=b,E.ensureState("blur").style=_,E.ensureState("select").style=S,ar(E,k,T,D),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),y.add(E),m.setItemGraphicEl(A,E),this._progressiveEls&&this._progressiveEls.push(E)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,u=n.getData(),c=this._hmLayer||this._hmLayer||new TH;c.blurSize=n.get("blurSize"),c.pointSize=n.get("pointSize"),c.minOpacity=n.get("minOpacity"),c.maxOpacity=n.get("maxOpacity");var f=t.getViewRect().clone(),d=t.getRoamTransform();f.applyTransform(d);var h=Math.max(f.x,0),v=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),g=Math.min(f.height+f.y,i.getHeight()),y=p-h,m=g-v,b=[u.mapDimension("lng"),u.mapDimension("lat"),u.mapDimension("value")],_=u.mapArray(b,function(C,k,T){var D=t.dataToPoint([C,k]);return D[0]-=h,D[1]-=v,D.push(T),D}),S=a.getExtent(),w=a.type==="visualMap.continuous"?MH(S,a.option.range):DH(S,a.getPieceList(),a.option.selected);c.update(_,y,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var x=new _r({style:{width:y,height:m,x:h,y:v,image:c.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(yt),AH=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Xs(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Pc.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:G.color.primary}}},e}(wt);function NH(r){r.registerChartView(EH),r.registerSeriesModel(AH)}var za=Re(),Xb=he,Rd=oe,IH=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var c={};this.makeElOption(c,i,e,t,n);var f=c.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Ee,this.createPointerEl(s,c,e,t),this.createLabelEl(s,c,e,t),n.getZr().add(s);else{var h=me(jb,t,d);this.updatePointerEl(s,c,h),this.updateLabelEl(s,c,h,t)}Kb(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var u=Kp(e).seriesDataCount,c=a.getExtent();return Math.abs(c[0]-c[1])/u>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=za(e).pointerEl=new cw[i.type](Xb(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=za(e).labelEl=new We(Xb(t.label));e.add(i),qb(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=za(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=za(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),qb(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Bc(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){Mn(c.event)},onmousedown:Rd(this._onHandleDragMove,this,0,0),drift:Rd(this._onHandleDragMove,this),ondragend:Rd(this._onHandleDragEnd,this)}),n.add(a)),Kb(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=i.get("size");Z(u)||(u=[u,u]),a.scaleX=u[0]/2,a.scaleY=u[1]/2,$c(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){jb(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Od(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Od(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Od(a)),za(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Wu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function jb(r,e,t,n){Dk(za(t).lastProp,n)||(za(t).lastProp=n,e?Ke(t,n,r):(t.stopAnimation(),t.attr(n)))}function Dk(r,e){if(fe(r)&&fe(e)){var t=!0;return N(e,function(n,a){t=t&&Dk(r[a],n)}),!!t}else return r===e}function qb(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Od(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Kb(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}function BH(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function LH(r,e,t,n,a){var i=t.get("value"),o=Mk(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),u=Us(s.get("padding")||0),c=s.getFont(),f=Qv(o,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),VH(d,h,v,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=e.get(["axisLine","lineStyle","color"])),r.label={x:d[0],y:d[1],style:lt(s,{text:o,font:c,fill:s.getTextColor(),padding:u,backgroundColor:y}),z2:10}}function VH(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Mk(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Ju(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};N(n,function(u){var c=t.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,d=c&&c.getDataParams(f);d&&s.seriesData.push(d)}),te(o)?i=o.replace("{value}",i):ue(o)&&(i=o(s))}return i}function Ek(r,e,t){var n=Mr();return qv(n,n,t.rotation),ms(n,n,t.position),ra([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function PH(r,e,t,n,a,i){var o=Dn.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),LH(e,n,a,i,{position:Ek(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function RH(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function OH(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}var zH=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,u=s.grid,c=i.get("type"),f=Qb(u,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(n,!0));if(c&&c!=="none"){var h=BH(i),v=$H[c](s,d,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var p=oc(u.getRect(),a);PH(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=oc(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Ek(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,u=o.getGlobalExtent(!0),c=Qb(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,d=[t.x,t.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:t.rotation,cursorPoint:v,tooltipOption:p[f]}},e}(IH);function Qb(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var $H={line:function(r,e,t){var n=RH([e,t[0]],[e,t[1]],Jb(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:OH([e-n/2,t[0]],[n,a],Jb(r))}}};function Jb(r){return r.dim==="x"?0:1}var FH=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}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:G.color.border,width:1,type:"dashed"},shadowStyle:{color:G.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:G.color.neutral00,padding:[5,7,5,7],backgroundColor:G.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:G.color.accent40,throttle:40}},e}(Ne),Sn=Re(),HH=N;function Ak(r,e,t){if(!we.node){var n=e.getZr();Sn(n).records||(Sn(n).records={}),GH(n,e);var a=Sn(n).records[r]||(Sn(n).records[r]={});a.handler=t}}function GH(r,e){if(Sn(r).initialized)return;Sn(r).initialized=!0,t("click",me(e1,"click")),t("mousemove",me(e1,"mousemove")),t("globalout",UH);function t(n,a){r.on(n,function(i){var o=YH(e);HH(Sn(r).records,function(s){s&&a(s,i,o.dispatchAction)}),WH(o.pendings,e)})}}function WH(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function UH(r,e,t){r.handler("leave",null,t)}function e1(r,e,t,n){e.handler(r,t,n)}function YH(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function Ev(r,e){if(!we.node){var t=e.getZr(),n=(Sn(t).records||{})[r];n&&(Sn(t).records[r]=null)}}var ZH=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Ak("axisPointer",a,function(s,u,c){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},e.prototype.remove=function(t,n){Ev("axisPointer",n)},e.prototype.dispose=function(t,n){Ev("axisPointer",n)},e.type="axisPointer",e}(Et);function Nk(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=ni(i,r);if(o==null||o<0||Z(o))return{point:[]};var s=i.getItemGraphicEl(o),u=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.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,o),g[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=u.dataToPoint(g)||[]}else t=u.dataToPoint(i.getValues(X(u.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),t=[y.x+y.width/2,y.y+y.height/2]}return{point:t,el:s}}var t1=Re();function XH(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||oe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){du(a)&&(a=Nk({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var u=du(a),c=i.axesInfo,f=s.axesInfo,d=n==="leave"||du(a),h={},v={},p={list:[],map:{}},g={showPointer:me(qH,v),showTooltip:me(KH,p)};N(s.coordSysMap,function(m,b){var _=u||m.containPoint(a);N(s.coordSysAxesInfo[b],function(S,w){var x=S.axis,C=t6(c,S);if(!d&&_&&(!c||C)){var k=C&&C.value;k==null&&!u&&(k=x.pointToData(a)),k!=null&&r1(S,k,g,!1,h)}})});var y={};return N(f,function(m,b){var _=m.linkGroup;_&&!v[b]&&N(_.axesInfo,function(S,w){var x=v[w];if(S!==m&&x){var C=x.value;_.mapper&&(C=m.axis.scale.parse(_.mapper(C,n1(S),n1(m)))),y[m.key]=C}})}),N(y,function(m,b){r1(f[b],m,g,!0,h)}),QH(v,f,h),JH(p,a,r,o),e6(f,o,t),h}}function r1(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=jH(e,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&a.seriesIndex==null&&Y(a,s[0]),!n&&r.snap&&i.containData(u)&&u!=null&&(e=u),t.showPointer(r,e,s),t.showTooltip(r,o,u)}}function jH(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return N(e.seriesModels,function(u,c){var f=u.getData().mapDimensionsAll(n),d,h;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,t);h=v.dataIndices,d=v.nestestValue}else{if(h=u.indicesOfNearest(n,f[0],r,t.type==="category"?.5:null),!h.length)return;d=u.getData().get(f[0],h[0])}if(!(d==null||!isFinite(d))){var p=r-d,g=Math.abs(p);g<=o&&((g<o||p>=0&&s<0)&&(o=g,s=p,a=d,i.length=0),N(h,function(y){i.push({seriesIndex:u.seriesIndex,dataIndexInside:y,dataIndex:u.getData().getRawIndex(y)})}))}}),{payloadBatch:i,snapToValue:a}}function qH(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function KH(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var u=e.coordSys.model,c=As(u),f=r.map[c];f||(f=r.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function QH(r,e,t){var n=t.axesInfo=[];N(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function JH(r,e,t,n){if(du(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function e6(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=t1(n)[a]||{},o=t1(n)[a]={};N(r,function(c,f){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&N(d.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],u=[];N(i,function(c,f){!o[f]&&u.push(c)}),N(o,function(c,f){!i[f]&&s.push(c)}),u.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function t6(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function n1(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function du(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Ik(r){jC.registerAxisPointerClass("CartesianAxisPointer",zH),r.registerComponentModel(FH),r.registerComponentView(ZH),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=zF(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},XH)}function r6(r){Ht(QC),Ht(Ik)}var a1=["x","y","radius","angle","single"],n6=["cartesian2d","polar","singleAxis"];function a6(r){var e=r.get("coordinateSystem");return De(n6,e)>=0}function Qn(r){return process.env.NODE_ENV!=="production"&&ce(r),r+"Axis"}function i6(r,e){var t=_e(),n=[],a=_e();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&u(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),c(f)}function u(f){var d=!1;return f.eachTargetAxis(function(h,v){var p=t.get(h);p&&p[v]&&(d=!0)}),d}function c(f){f.eachTargetAxis(function(d,h){(t.get(d)||t.set(d,[]))[h]=!0})}return n}function Bk(r){var e=r.ecModel,t={infoList:[],infoMap:_e()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(Qn(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,u=t.infoMap.get(s);u||(u={model:o,axisModels:[]},t.infoList.push(u),t.infoMap.set(s,u)),u.axisModels.push(i)}}}),t}var zd=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),Ls=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=i1(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=i1(t);Ce(this.option,t,!0),Ce(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;N([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=_e(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return N(a1,function(a){var i=this.getReferringComponents(Qn(a),BB);if(i.specified){n=!0;var o=new zd;N(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});u(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});u(s,"single")}function u(c,f){var d=c[0];if(d){var h=new zd;if(h.add(d.componentIndex),t.set(f,h),i=!1,f==="x"||f==="y"){var v=d.getReferringComponents("grid",Bt).models[0];v&&N(c,function(p){d.componentIndex!==p.componentIndex&&v===p.getReferringComponents("grid",Bt).models[0]&&h.add(p.componentIndex)})}}}i&&N(a1,function(c){if(i){var f=a.findComponents({mainType:Qn(c),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var d=new zd;d.add(f[0].componentIndex),t.set(c,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");N([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,u=t[i[1]]!=null;s&&!u?n[o]="percent":!s&&u?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(Qn(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){N(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){var a=this.getAxisModel(t,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){process.env.NODE_ENV!=="production"&&ce(t&&n!=null);var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(Qn(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;N([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;N(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),u=0;u<s.indexList.length;u++){var c=this.getAxisProxy(o,s.indexList[u]);if(c.hostedBy(this))return c;n||(n=c)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&ce(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Ne);function i1(r){var e={};return N(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var o6=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Ls),hg=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e}(Et),s6=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(hg),Oi=N,o1=_n,l6=function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(a6(t)){var n=Qn(this._dimName),a=t.getReferringComponents(n,Bt).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return he(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],u=[],c;Oi(["start","end"],function(h,v){var p=e[h],g=e[h+"Value"];i[v]==="percent"?(p==null&&(p=o[v]),g=a.parse(ze(p,o,t))):(c=!0,g=g==null?t[v]:a.parse(g),p=ze(g,t,o)),u[v]=g==null||isNaN(g)?t[v]:g,s[v]=p==null||isNaN(p)?o[v]:p}),o1(u),o1(s);var f=this._minMaxSpan;c?d(u,s,t,o,!1):d(s,u,o,t,!0);function d(h,v,p,g,y){var m=y?"Span":"ValueSpan";ci(0,h,p,"all",f["min"+m],f["max"+m]);for(var b=0;b<2;b++)v[b]=ze(h[b],p,g,!0),y&&(v[b]=a.parse(v[b]))}return{valueWindow:u,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=u6(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;Oi(a,function(u){var c=u.getData(),f=c.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var d=c.getStore(),h=X(f,function(v){return c.getDimensionIndex(v)},c);c.filterSelf(function(v){for(var p,g,y,m=0;m<f.length;m++){var b=d.get(h[m],v),_=!isNaN(b),S=b<o[0],w=b>o[1];if(_&&!S&&!w)return!0;_&&(y=!0),S&&(p=!0),w&&(g=!0)}return y&&p&&g})}else Oi(f,function(v){if(i==="empty")u.setData(c=c.map(v,function(g){return s(g)?g:NaN}));else{var p={};p[v]=o,c.selectRange(p)}});Oi(f,function(v){c.setApproximateExtent(o,v)})}});function s(u){return u>=o[0]&&u<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Oi(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ze(n[0]+o,n,[0,100],!0):i!=null&&(o=ze(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var a=yS(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function u6(r,e,t){var n=[1/0,-1/0];Oi(t,function(o){u5(n,o.getData(),e)});var a=r.getAxisModel(),i=qx(a.axis.scale,a,n).calculate();return[i.min,i.max]}var c6={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var u=r.getComponent(Qn(o),s);a(o,s,u,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new l6(a,i,s,r),t.push(o.__dzAxisProxy))});var n=_e();return N(t,function(a){N(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).reset(t)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function f6(r){r.registerAction("dataZoom",function(e,t){var n=i6(t,e);N(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var s1=!1;function vg(r){s1||(s1=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,c6),f6(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function d6(r){r.registerComponentModel(o6),r.registerComponentView(s6),vg(r)}var Tr=function(){function r(){}return r}(),Lk={};function $o(r,e){Lk[r]=e}function Vk(r){return Lk[r]}var h6=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;N(this.option.feature,function(n,a){var i=Vk(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Ce(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:G.size.m,itemSize:15,itemGap:G.size.s,showTitle:!0,iconStyle:{borderColor:G.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:G.color.accent50}},tooltip:{show:!1,position:"bottom"}},e}(Ne);function Pk(r,e){var t=Us(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var a=new Oe({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var v6=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),u=t.get("orient")==="vertical",c=t.get("feature")||{},f=this._features||(this._features={}),d=[];N(c,function(b,_){d.push(_)}),new Wc(this._featureNames||[],d).add(h).update(h).remove(me(h,null)).execute(),this._featureNames=d;function h(b,_){var S=d[b],w=d[_],x=c[S],C=new Ue(x,t,t.ecModel),k;if(i&&i.newTitle!=null&&i.featureName===S&&(x.title=i.newTitle),S&&!w){if(p6(S))k={onclick:C.option.onclick,featureName:S};else{var T=Vk(S);if(!T)return;k=new T}f[S]=k}else if(k=f[w],!k)return;k.uid=Ws("toolbox-feature"),k.model=C,k.ecModel=n,k.api=a;var D=k instanceof Tr;if(!S&&w){D&&k.dispose&&k.dispose(n,a);return}if(!C.get("show")||D&&k.unusable){D&&k.remove&&k.remove(n,a);return}v(C,k,S),C.setIconStatus=function(M,A){var E=this.option,I=this.iconPaths;E.iconStatus=E.iconStatus||{},E.iconStatus[M]=A,I[M]&&(A==="emphasis"?ii:oi)(I[M])},k instanceof Tr&&k.render&&k.render(C,n,a,i)}function v(b,_,S){var w=b.getModel("iconStyle"),x=b.getModel(["emphasis","iconStyle"]),C=_ instanceof Tr&&_.getIcons?_.getIcons():b.get("icon"),k=b.get("title")||{},T,D;te(C)?(T={},T[S]=C):T=C,te(k)?(D={},D[S]=k):D=k;var M=b.iconPaths={};N(T,function(A,E){var I=Bc(A,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(w.getItemStyle());var B=I.ensureState("emphasis");B.style=x.getItemStyle();var R=new We({style:{text:D[E],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:dw({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},n)},ignore:!0});I.setTextContent(R),Hs({el:I,componentModel:t,itemName:E,formatterParamsExtra:{title:D[E]}}),I.__title=D[E],I.on("mouseover",function(){var P=x.getItemStyle(),L=u?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:x.get("textFill")||P.fill||P.stroke||G.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),I.setTextConfig({position:x.get("textPosition")||L}),R.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){b.get(["iconStatus",E])!=="emphasis"&&a.leaveEmphasis(this),R.hide()}),(b.get(["iconStatus",E])==="emphasis"?ii:oi)(I),o.add(I),I.on("click",oe(_.onclick,_,n,a,E)),M[E]=I})}var p=Or(t,a).refContainer,g=t.getBoxLayoutParams(),y=t.get("padding"),m=Ft(g,p,y);ei(t.get("orient"),o,t.get("itemGap"),m.width,m.height),Mp(o,g,p,y),o.add(Pk(o.getBoundingRect(),t)),u||o.eachChild(function(b){var _=b.__title,S=b.ensureState("emphasis"),w=S.textConfig||(S.textConfig={}),x=b.getTextContent(),C=x&&x.ensureState("emphasis");if(C&&!ue(C)&&_){var k=C.style||(C.style={}),T=Qv(_,We.makeFont(k)),D=b.x+o.x,M=b.y+o.y+s,A=!1;M+T.height>a.getHeight()&&(w.position="top",A=!0);var E=A?-5-T.height:s+10;D+T.width/2>a.getWidth()?(w.position=["100%",E],k.align="right"):D-T.width/2<0&&(w.position=[0,E],k.align="left")}})},e.prototype.updateView=function(t,n,a,i){N(this._features,function(o){o instanceof Tr&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(t,n){N(this._features,function(a){a instanceof Tr&&a.remove&&a.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){N(this._features,function(a){a instanceof Tr&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e}(Et);function p6(r){return r.indexOf("my")===0}var g6=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",u=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||G.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),c=we.browser;if(typeof MouseEvent=="function"&&(c.newEdge||!c.ie&&!c.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=u;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var h=u.split(","),v=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];v&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=p.length,m=new Uint8Array(y);y--;)m[y]=p.charCodeAt(y);var b=new Blob([m]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(p),w.close(),S.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var x=a.get("lang"),C='<body style="margin:0;"><img src="'+u+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',k=window.open();k.document.write(C),k.document.title=i}},e.getDefaultOption=function(t){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:G.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(Tr),l1="__ec_magicType_stack__",m6=[["line","bar"],["stack"]],y6=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return N(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(u1[a]){var s={series:[]},u=function(d){var h=d.subType,v=d.id,p=u1[a](h,v,d,i);p&&(Me(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var y=g.getAxesByScale("ordinal")[0];if(y){var m=y.dim,b=m+"Axis",_=d.getReferringComponents(b,Bt).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var w=0;w<=S;w++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};N(m6,function(d){De(d,a)>=0&&N(d,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},u);var c,f=a;a==="stack"&&(c=Ce({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:c,featureName:"magicType"})}},e}(Tr),u1={line:function(r,e,t,n){if(r==="bar")return Ce({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return Ce({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===l1;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Ce({id:e,stack:a?"":l1},n.get(["option","stack"])||{},!0)}};un({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var jc=new Array(60).join("-"),io=" ";function b6(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function _6(r){var e=[];return N(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(X(t.series,function(v){return v.name})),u=[a.model.getCategories()];N(t.series,function(v){var p=v.getRawData();u.push(v.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var c=[s.join(io)],f=0;f<u[0].length;f++){for(var d=[],h=0;h<u.length;h++)d.push(u[h][f]);c.push(d.join(io))}e.push(c.join(`
|
|
274
274
|
`))}),e.join(`
|
|
275
275
|
|
|
276
276
|
`+jc+`
|
|
@@ -291,4 +291,4 @@ x-vue-echarts>:first-child,x-vue-echarts>:first-child>canvas{border-radius:inher
|
|
|
291
291
|
|
|
292
292
|
`:"<br/>",m=d.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,c)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,c):this._showTooltipContent(s,m,c,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=Te(n),s=o.seriesIndex,u=i.getSeriesByIndex(s),c=o.dataModel||u,f=o.dataIndex,d=o.dataType,h=c.getData(d),v=this._renderMode,p=t.positionDefault,g=Fo([h.getItemModel(f),c,u&&(u.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),y=g.get("trigger");if(!(y!=null&&y!=="item")){var m=c.getDataParams(f,d),b=new Kf;m.marker=b.makeTooltipMarker("item",li(m.color),v);var _=Ey(c.formatTooltip(f,!1,d)),S=g.get("order"),w=g.get("valueFormatter"),x=_.frag,C=x?Vy(w?Y({valueFormatter:w},x):x,b,v,S,i.get("useUTC"),g.get("textStyle")):_.text,k="item_"+c.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,C,m,k,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=Te(n),s=o.tooltipConfig,u=s.option||{},c=u.encodeHTMLContent;if(te(u)){var f=u;u={content:f,formatter:f},c=!0}c&&i&&u.content&&(u=he(u),u.content=Ut(u.content));var d=[u],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&d.push(h),d.push({formatter:u.content});var v=t.positionDefault,p=Fo(d,this._tooltipModel,v?{position:v}:null),g=p.get("content"),y=Math.random()+"",m=new Kf;this._showOrMove(p,function(){var b=he(p.get("formatterParams")||{});this._showTooltipContent(p,g,b,y,t.offsetX,t.offsetY,t.position,n,m)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,u,c,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var h=t.get("formatter");u=u||t.get("position");var v=n,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),g=p.color;if(h)if(te(h)){var y=t.ecModel.get("useUTC"),m=Z(a)?a[0]:a,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,b&&(v=Vc(m.axisValue,v,y)),v=Dw(v,a,!0)}else if(ue(h)){var _=oe(function(S,w){S===this._ticket&&(d.setContent(w,f,t,g,u),this._updatePosition(t,u,o,s,d,a,c))},this);this._ticket=i,v=h(a,i,_)}else v=h;d.setContent(v,f,t,g,u),d.show(t,g),this._updatePosition(t,u,o,s,d,a,c)}},e.prototype._getNearestPoint=function(t,n,a,i,o){if(a==="axis"||Z(n))return{color:i||o};if(!Z(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,u){var c=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var d=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),p=u&&u.getBoundingRect().clone();if(u&&p.applyTransform(u.transform),ue(n)&&(n=n([a,i],s,o.el,p,{viewSize:[c,f],contentSize:d.slice()})),Z(n))a=de(n[0],c),i=de(n[1],f);else if(fe(n)){var g=n;g.width=d[0],g.height=d[1];var y=Ft(g,{width:c,height:f});a=y.x,i=y.y,h=null,v=null}else if(te(n)&&u){var m=i8(n,p,d,t.get("borderWidth"));a=m[0],i=m[1]}else{var m=n8(a,i,o,c,f,h?null:20,v?null:20);a=m[0],i=m[1]}if(h&&(a-=w1(h)?d[0]/2:h==="right"?d[0]:0),v&&(i-=w1(v)?d[1]/2:v==="bottom"?d[1]:0),$k(t)){var m=a8(a,i,o,c,f);a=m[0],i=m[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&N(a,function(s,u){var c=s.dataByAxis||[],f=t[u]||{},d=f.dataByAxis||[];o=o&&c.length===d.length,o&&N(c,function(h,v){var p=d[v]||{},g=h.seriesDataIndices||[],y=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&g.length===y.length,o&&N(g,function(m,b){var _=y[b];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&N(h.seriesDataIndices,function(m){var b=m.seriesIndex,_=n[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){we.node||!n.getDom()||(Wu(this,"_updatePosition"),this._tooltipContent.dispose(),Ev("itemTooltip",n))},e.type="tooltip",e}(Et);function Fo(r,e,t){var n=e.ecModel,a;t?(a=new Ue(t,n,n),a=new Ue(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ue&&(o=o.get("tooltip",!0)),te(o)&&(o={formatter:o}),o&&(a=new Ue(o,a,n)))}return a}function S1(r,e){return r.dispatchAction||oe(e.dispatchAction,e)}function n8(r,e,t,n,a,i,o){var s=t.getSize(),u=s[0],c=s[1];return i!=null&&(r+u+i+2>n?r-=u+i:r+=i),o!=null&&(e+c+o>a?e-=c+o:e+=o),[r,e]}function a8(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function i8(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,c=e.width,f=e.height;switch(r){case"inside":s=e.x+c/2-a/2,u=e.y+f/2-i/2;break;case"top":s=e.x+c/2-a/2,u=e.y-i-o;break;case"bottom":s=e.x+c/2-a/2,u=e.y+f+o;break;case"left":s=e.x-a-o,u=e.y+f/2-i/2;break;case"right":s=e.x+c+o,u=e.y+f/2-i/2}return[s,u]}function w1(r){return r==="center"||r==="middle"}function o8(r,e,t){var n=ep(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=co(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),u;if(s.group.traverse(function(c){var f=Te(c).tooltipConfig;if(f&&f.name===r.name)return u=c,!0}),u)return{componentMainType:a,componentIndex:o.componentIndex,el:u}}}}function s8(r){Ht(Ik),r.registerComponentModel(G6),r.registerComponentView(r8),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Dt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Dt)}var x1=N;function C1(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function k1(r,e,t){var n={};return x1(e,function(i){var o=n[i]=a();x1(r[i],function(s,u){if(Mt.isValidType(u)){var c={type:u,visual:s};t&&t(c,i),o[u]=new Mt(c),u==="opacity"&&(c=he(c),c.type="colorAlpha",o.__hidden.__alphaForOpacity=new Mt(c))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function l8(r,e,t){var n;N(t,function(a){e.hasOwnProperty(a)&&C1(e[a])&&(n=!0)}),n&&N(t,function(a){e.hasOwnProperty(a)&&C1(e[a])?r[a]=he(e[a]):delete r[a]})}function u8(r,e,t,n){var a={};return N(r,function(i){var o=Mt.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var u;n!=null&&(u=s.getDimensionIndex(n));function c(w){return fx(s,d,w)}function f(w,x){uO(s,d,w,x)}for(var d,h=s.getStore();(d=o.next())!=null;){var v=s.getRawDataItem(d);if(!(v&&v.visualMap===!1))for(var p=n!=null?h.get(u,d):d,g=t(p),y=e[g],m=a[g],b=0,_=m.length;b<_;b++){var S=m[b];y[S]&&y[S].applyVisual(p,c,f)}}}}}var c8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:G.size.m,backgroundColor:G.color.transparent,borderColor:G.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:G.color.primary},subtextStyle:{fontSize:12,color:G.color.quaternary}},e}(Ne),f8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),u=t.get("textAlign"),c=se(t.get("textBaseline"),t.get("textVerticalAlign")),f=new We({style:lt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=f.getBoundingRect(),h=t.get("subtext"),v=new We({style:lt(s,{text:h,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),y=t.get("triggerEvent",!0);f.silent=!p&&!y,v.silent=!g&&!y,p&&f.on("click",function(){$h(p,"_"+t.get("target"))}),g&&v.on("click",function(){$h(g,"_"+t.get("subtarget"))}),Te(f).eventData=Te(v).eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),h&&i.add(v);var m=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=m.width,b.height=m.height;var _=Or(t,a),S=Ft(b,_.refContainer,t.get("padding"));u||(u=t.get("left")||t.get("right"),u==="middle"&&(u="center"),u==="right"?S.x+=S.width:u==="center"&&(S.x+=S.width/2)),c||(c=t.get("top")||t.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?S.y+=S.height:c==="middle"&&(S.y+=S.height/2),c=c||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var w={align:u,verticalAlign:c};f.setStyle(w),v.setStyle(w),m=i.getBoundingRect();var x=S.margin,C=t.getItemStyle(["color","opacity"]);C.fill=t.get("backgroundColor");var k=new Oe({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:t.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(k)}},e.type="title",e}(Et);function d8(r){r.registerComponentModel(c8),r.registerComponentView(f8)}function yg(r,e){if(!r)return!1;for(var t=Z(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function Ul(r){Au(r,"label",["show"])}var Yl=Re(),sn=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return e.prototype.init=function(t,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(we.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var u=s.get(this.mainType,!0),c=Yl(s)[o];if(!u||!u.data){Yl(s)[o]=null;return}c?c._mergeOption(u,n,!0):(i&&Ul(u),N(u.data,function(f){f instanceof Array?(Ul(f[0]),Ul(f[1])):Ul(f)}),c=this.createMarkerModelFromSeries(u,this,n),Y(c,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),c.__hostSeries=s),Yl(s)[o]=c},this)},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Vr("section",{header:this.name,blocks:[Vr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,n){var a=Bp.prototype.getDataParams.call(this,t,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},e.getMarkerModelFromSeries=function(t,n){return Yl(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Ne);ir(sn,Bp.prototype);var h8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(sn);function Bv(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function v8(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Zl(r,e,t,n,a,i,o){var s=[],u=ui(e,a),c=u?e.getCalculationInfo("stackResultDimension"):a,f=fc(e,c,r),d=e.hostModel,h=d.indicesOfNearest(t,c,f)[0];s[i]=e.get(n,h),s[o]=e.get(c,h);var v=e.get(a,h),p=Qr(e.get(a,h));return p=Math.min(p,20),p>=0&&(s[o]=+s[o].toFixed(p)),[s,v]}var Xl={min:me(Zl,"min"),max:me(Zl,"max"),average:me(Zl,"average"),median:me(Zl,"median")};function Vs(r,e){if(e){var t=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!v8(e)&&!Z(e.coord)&&Z(a)){var i=Wk(e,t,n,r);if(e=he(e),e.type&&Xl[e.type]&&i.baseAxis&&i.valueAxis){var o=De(a,i.baseAxis.dim),s=De(a,i.valueAxis.dim),u=Xl[e.type](t,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);e.coord=u[0],e.value=u[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!Z(a)){e.coord=[];var c=r.getBaseAxis();if(c&&e.type&&Xl[e.type]){var f=n.getOtherAxis(c);f&&(e.value=fc(t,t.mapDimension(f.dim),e.type))}}else for(var d=e.coord,h=0;h<2;h++)Xl[d[h]]&&(d[h]=fc(t,t.mapDimension(a[h]),d[h]));return e}}function Wk(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(p8(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function p8(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function Ps(r,e){return r&&r.containData&&e.coord&&!Bv(e)?r.containData(e.coord):!0}function g8(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Bv(e)&&!Bv(t)?r.containZone(e.coord,t.coord):!0}function Uk(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return na(o,e[i])}:function(t,n,a,i){return na(t.value,e[i])}}function fc(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Fd=Re(),bg=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=_e()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){Fd(s).keep=!1}),n.eachSeries(function(s){var u=sn.getMarkerModelFromSeries(s,i.type);u&&i.renderSeries(s,u,n,a)}),o.each(function(s){!Fd(s).keep&&i.group.remove(s.group)}),m8(n,o,this.type)},e.prototype.markKeep=function(t){Fd(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;N(t,function(i){var o=sn.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(u){u&&(n?US(u):lp(u))})}})},e.type="marker",e}(Et);function m8(r,e,t){r.eachSeries(function(n){var a=sn.getMarkerModelFromSeries(n,t),i=e.get(n.id);if(a&&i&&i.group){var o=to(a),s=o.z,u=o.zlevel;gp(i.group,s,u)}})}function T1(r,e,t){var n=e.coordinateSystem,a=t.getWidth(),i=t.getHeight(),o=n&&n.getArea&&n.getArea();r.each(function(s){var u=r.getItemModel(s),c=u.get("relativeTo")==="coordinate",f=c?o?o.width:0:a,d=c?o?o.height:0:i,h=c&&o?o.x:0,v=c&&o?o.y:0,p,g=de(u.get("x"),f)+h,y=de(u.get("y"),d)+v;if(!isNaN(g)&&!isNaN(y))p=[g,y];else if(e.getMarkerPosition)p=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(n){var m=r.get(n.dimensions[0],s),b=r.get(n.dimensions[1],s);p=n.dataToPoint([m,b])}isNaN(g)||(p[0]=g),isNaN(y)||(p[1]=y),r.setItemLayout(s,p)})}var y8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=sn.getMarkerModelFromSeries(i,"markPoint");o&&(T1(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,u=t.getData(),c=this.markerGroupMap,f=c.get(s)||c.set(s,new Zp),d=b8(o,t,n);n.setData(d),T1(n.getData(),t,i),d.each(function(h){var v=d.getItemModel(h),p=v.getShallow("symbol"),g=v.getShallow("symbolSize"),y=v.getShallow("symbolRotate"),m=v.getShallow("symbolOffset"),b=v.getShallow("symbolKeepAspect");if(ue(p)||ue(g)||ue(y)||ue(m)){var _=n.getRawValue(h),S=n.getDataParams(h);ue(p)&&(p=p(_,S)),ue(g)&&(g=g(_,S)),ue(y)&&(y=y(_,S)),ue(m)&&(m=m(_,S))}var w=v.getModel("itemStyle").getItemStyle(),x=v.get("z2"),C=Zs(u,"color");w.fill||(w.fill=C),d.setItemVisual(h,{z2:se(x,0),symbol:p,symbolSize:g,symbolRotate:y,symbolOffset:m,symbolKeepAspect:b,style:w})}),f.updateData(d),this.group.add(f.group),d.eachItemGraphicEl(function(h){h.traverse(function(v){Te(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e}(bg);function b8(r,e,t){var n;r?n=X(r&&r.dimensions,function(s){var u=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return Y(Y({},u),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Tn(n,t),i=X(t.get("data"),me(Vs,e));r&&(i=et(i,me(Ps,r)));var o=Uk(!!r,n);return a.initData(i,null,o),a}function _8(r){r.registerComponentModel(h8),r.registerComponentView(y8),r.registerPreprocessor(function(e){yg(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var S8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(sn),jl=Re(),w8=function(r,e,t,n){var a=r.getData(),i;if(Z(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,u=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),u=rr(n.yAxis,n.xAxis);else{var c=Wk(n,a,e,r);s=c.valueAxis;var f=$x(a,c.valueDataDim);u=fc(a,f,o)}var d=s.dim==="x"?0:1,h=1-d,v=he(n),p={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,p.coord[h]=1/0;var g=t.get("precision");g>=0&&He(u)&&(u=+u.toFixed(Math.min(g,20))),v.coord[d]=p.coord[d]=u,i=[v,p,{type:o,valueIndex:n.valueIndex,value:u}]}else process.env.NODE_ENV!=="production"&&Jn("Invalid markLine data."),i=[]}var y=[Vs(r,i[0]),Vs(r,i[1]),Y({},i[2])];return y[2].type=y[2].type||null,Ce(y[2],y[0]),Ce(y[2],y[1]),y};function dc(r){return!isNaN(r)&&!isFinite(r)}function D1(r,e,t,n){var a=1-r,i=n.dimensions[r];return dc(e[a])&&dc(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function x8(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(D1(1,t,n,r)||D1(0,t,n,r)))return!0}return Ps(r,e[0])&&Ps(r,e[1])}function Hd(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,u=de(o.get("x"),a.getWidth()),c=de(o.get("y"),a.getHeight());if(!isNaN(u)&&!isNaN(c))s=[u,c];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,d=r.get(f[0],e),h=r.get(f[1],e);s=i.dataToPoint([d,h])}if(fa(i,"cartesian2d")){var v=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;dc(r.get(f[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):dc(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(u)||(s[0]=u),isNaN(c)||(s[1]=c)}r.setItemLayout(e,s)}var C8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=sn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),u=jl(o).from,c=jl(o).to;u.each(function(f){Hd(u,f,!0,i,a),Hd(c,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[u.getItemLayout(f),c.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,u=t.getData(),c=this.markerGroupMap,f=c.get(s)||c.set(s,new V4);this.group.add(f.group);var d=k8(o,t,n),h=d.from,v=d.to,p=d.line;jl(n).from=h,jl(n).to=v,n.setData(p);var g=n.get("symbol"),y=n.get("symbolSize"),m=n.get("symbolRotate"),b=n.get("symbolOffset");Z(g)||(g=[g,g]),Z(y)||(y=[y,y]),Z(m)||(m=[m,m]),Z(b)||(b=[b,b]),d.from.each(function(S){_(h,S,!0),_(v,S,!1)}),p.each(function(S){var w=p.getItemModel(S),x=w.getModel("lineStyle").getLineStyle();p.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]);var C=w.get("z2");x.stroke==null&&(x.stroke=h.getItemVisual(S,"style").fill),p.setItemVisual(S,{z2:se(C,0),fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:x})}),f.updateData(p),d.line.eachItemGraphicEl(function(S){Te(S).dataModel=n,S.traverse(function(w){Te(w).dataModel=n})});function _(S,w,x){var C=S.getItemModel(w);Hd(S,w,x,t,i);var k=C.getModel("itemStyle").getItemStyle();k.fill==null&&(k.fill=Zs(u,"color")),S.setItemVisual(w,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:se(C.get("symbolOffset",!0),b[x?0:1]),symbolRotate:se(C.get("symbolRotate",!0),m[x?0:1]),symbolSize:se(C.get("symbolSize"),y[x?0:1]),symbol:se(C.get("symbol",!0),g[x?0:1]),style:k})}this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e}(bg);function k8(r,e,t){var n;r?n=X(r&&r.dimensions,function(c){var f=e.getData().getDimensionInfo(e.getData().mapDimension(c))||{};return Y(Y({},f),{name:c,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Tn(n,t),i=new Tn(n,t),o=new Tn([],t),s=X(t.get("data"),me(w8,e,r,t));r&&(s=et(s,me(x8,r)));var u=Uk(!!r,n);return a.initData(X(s,function(c){return c[0]}),null,u),i.initData(X(s,function(c){return c[1]}),null,u),o.initData(X(s,function(c){return c[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function T8(r){r.registerComponentModel(S8),r.registerComponentView(C8),r.registerPreprocessor(function(e){yg(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var D8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(sn),ql=Re(),M8=function(r,e,t,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Vs(r,a),s=Vs(r,i),u=o.coord,c=s.coord;u[0]=rr(u[0],-1/0),u[1]=rr(u[1],-1/0),c[0]=rr(c[0],1/0),c[1]=rr(c[1],1/0);var f=HN([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function hc(r){return!isNaN(r)&&!isFinite(r)}function M1(r,e,t,n){var a=1-r;return hc(e[a])&&hc(t[a])}function E8(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return fa(r,"cartesian2d")?t&&n&&(M1(1,t,n)||M1(0,t,n))?!0:g8(r,a,i):Ps(r,a)||Ps(r,i)}function E1(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,u=de(o.get(t[0]),a.getWidth()),c=de(o.get(t[1]),a.getHeight());if(!isNaN(u)&&!isNaN(c))s=[u,c];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],e),d=r.getValues(["x1","y1"],e),h=i.clampData(f),v=i.clampData(d),p=[];t[0]==="x0"?p[0]=h[0]>v[0]?d[0]:f[0]:p[0]=h[0]>v[0]?f[0]:d[0],t[1]==="y0"?p[1]=h[1]>v[1]?d[1]:f[1]:p[1]=h[1]>v[1]?f[1]:d[1],s=n.getMarkerPosition(p,t,!0)}else{var g=r.get(t[0],e),y=r.get(t[1],e),m=[g,y];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(fa(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=r.get(t[0],e),y=r.get(t[1],e);hc(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):hc(y)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(u)||(s[0]=u),isNaN(c)||(s[1]=c)}return s}var A1=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],A8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=sn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(u){var c=X(A1,function(d){return E1(s,u,d,i,a)});s.setItemLayout(u,c);var f=s.getItemGraphicEl(u);f.setShape("points",c)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,u=t.getData(),c=this.markerGroupMap,f=c.get(s)||c.set(s,{group:new Ee});this.group.add(f.group),this.markKeep(f);var d=N8(o,t,n);n.setData(d),d.each(function(h){var v=X(A1,function(D){return E1(d,h,D,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,y=p.getExtent(),m=g.getExtent(),b=[p.parse(d.get("x0",h)),p.parse(d.get("x1",h))],_=[g.parse(d.get("y0",h)),g.parse(d.get("y1",h))];_n(b),_n(_);var S=!(y[0]>b[1]||y[1]<b[0]||m[0]>_[1]||m[1]<_[0]),w=!S;d.setItemLayout(h,{points:v,allClipped:w});var x=d.getItemModel(h),C=x.getModel("itemStyle").getItemStyle(),k=x.get("z2"),T=Zs(u,"color");C.fill||(C.fill=T,te(C.fill)&&(C.fill=xu(C.fill,.4))),C.stroke||(C.stroke=T),d.setItemVisual(h,"style",C),d.setItemVisual(h,"z2",se(k,0))}),d.diff(ql(f).data).add(function(h){var v=d.getItemLayout(h),p=d.getItemVisual(h,"z2");if(!v.allClipped){var g=new Br({z2:se(p,0),shape:{points:v.points}});d.setItemGraphicEl(h,g),f.group.add(g)}}).update(function(h,v){var p=ql(f).data.getItemGraphicEl(v),g=d.getItemLayout(h),y=d.getItemVisual(h,"z2");g.allClipped?p&&f.group.remove(p):(p?Ke(p,{z2:se(y,0),shape:{points:g.points}},n,h):p=new Br({shape:{points:g.points}}),d.setItemGraphicEl(h,p),f.group.add(p))}).remove(function(h){var v=ql(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),d.eachItemGraphicEl(function(h,v){var p=d.getItemModel(v),g=d.getItemVisual(v,"style");h.useStyle(d.getItemVisual(v,"style")),ln(h,yr(p),{labelFetcher:n,labelDataIndex:v,defaultText:d.getName(v)||"",inheritColor:te(g.fill)?xu(g.fill,1):G.color.neutral99}),Ir(h,p),ar(h,null,null,p.get(["emphasis","disabled"])),Te(h).dataModel=n}),ql(f).data=d,f.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e}(bg);function N8(r,e,t){var n,a,i=["x0","y0","x1","y1"];if(r){var o=X(r&&r.dimensions,function(c){var f=e.getData(),d=f.getDimensionInfo(f.mapDimension(c))||{};return Y(Y({},d),{name:c,ordinalMeta:null})});a=X(i,function(c,f){return{name:c,type:o[f%2].type}}),n=new Tn(a,t)}else a=[{name:"value",type:"float"}],n=new Tn(a,t);var s=X(t.get("data"),me(M8,e,r,t));r&&(s=et(s,me(E8,r)));var u=r?function(c,f,d,h){var v=c.coord[Math.floor(h/2)][h%2];return na(v,a[h])}:function(c,f,d,h){return na(c.value,a[h])};return n.initData(s,null,u),n.hasItemOption=!0,n}function I8(r){r.registerComponentModel(D8),r.registerComponentView(A8),r.registerPreprocessor(function(e){yg(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var B8=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Lv=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),Z(n)&&N(n,function(i,o){te(i)&&(i={type:i}),n[o]=Ce(i,B8(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(u){var c=u.name;a.push(c);var f;if(u.legendVisualProvider){var d=u.legendVisualProvider,h=d.getAllNames();t.isSeriesFiltered(u)||(a=a.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&Jv(u)&&n.push(u.name)}),this._availableNames=a;var i=this.get("data")||n,o=_e(),s=X(i,function(u){return(te(u)||He(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new Ue(u,this,this.ecModel))},this);this._data=et(s,function(u){return!!u})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;N(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;N(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;N(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&De(this._availableNames,t)>=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",bottom:G.size.m,align:"auto",backgroundColor:G.color.transparent,borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:G.color.disabled,inactiveBorderColor:G.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:G.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:G.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:G.color.tertiary,borderWidth:1,borderColor:G.color.border},emphasis:{selectorLabel:{show:!0,color:G.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(Ne),Vi=me,Vv=N,Kl=Ee,Yk=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Kl),this.group.add(this._selectorGroup=new Kl),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var u=t.get("selector",!0),c=t.get("selectorPosition",!0);u&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,u,s,c);var f=Or(t,a).refContainer,d=t.getBoxLayoutParams(),h=t.get("padding"),v=Ft(d,f,h),p=this.layoutInner(t,o,v,i,u,c),g=Ft(Me({width:p.width,height:p.height},d),f,h);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Pk(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,u){var c=this.getContentGroup(),f=_e(),d=n.get("selectedMode"),h=n.get("triggerEvent"),v=[];a.eachRawSeries(function(p){!p.get("legendHoverLink")&&v.push(p.id)}),Vv(n.getData(),function(p,g){var y=this,m=p.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
293
293
|
`)){var b=new Kl;b.newline=!0,c.add(b);return}var _=a.getSeriesByName(m)[0];if(!f.get(m)){if(_){var S=_.getData(),w=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),C=S.getVisual("style"),k=this._createItem(_,m,g,p,n,t,w,C,x,d,i);k.on("click",Vi(N1,m,null,i,v)).on("mouseover",Vi(Pv,_.name,null,i,v)).on("mouseout",Vi(Rv,_.name,null,i,v)),a.ssr&&k.eachChild(function(T){var D=Te(T);D.seriesIndex=_.seriesIndex,D.dataIndex=g,D.ssrType="legend"}),h&&k.eachChild(function(T){y.packEventData(T,n,_,g,m)}),f.set(m,!0)}else a.eachRawSeries(function(T){var D=this;if(!f.get(m)&&T.legendVisualProvider){var M=T.legendVisualProvider;if(!M.containName(m))return;var A=M.indexOfName(m),E=M.getItemVisual(A,"style"),I=M.getItemVisual(A,"legendIcon"),B=gr(E.fill);B&&B[3]===0&&(B[3]=.2,E=Y(Y({},E),{fill:Cn(B,"rgba")}));var R=this._createItem(T,m,g,p,n,t,{},E,I,d,i);R.on("click",Vi(N1,null,m,i,v)).on("mouseover",Vi(Pv,null,m,i,v)).on("mouseout",Vi(Rv,null,m,i,v)),a.ssr&&R.eachChild(function(P){var L=Te(P);L.seriesIndex=T.seriesIndex,L.dataIndex=g,L.ssrType="legend"}),h&&R.eachChild(function(P){D.packEventData(P,n,T,g,m)}),f.set(m,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(m)||console.warn(m+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,i,s,u)},e.prototype.packEventData=function(t,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};Te(t).eventData=s},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();Vv(t,function(c){var f=c.type,d=new We({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(d);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);ln(d,{normal:h,emphasis:v},{defaultText:c.title}),Pu(d)})},e.prototype._createItem=function(t,n,a,i,o,s,u,c,f,d,h){var v=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),y=o.isSelected(n),m=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=L8(f,i,u,c,v,y,h),w=new Kl,x=i.getModel("textStyle");if(ue(t.getLegendIcon)&&(!_||_==="inherit"))w.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var C=_==="inherit"&&t.getData().getVisual("symbol")?m==="inherit"?t.getData().getVisual("symbolRotate"):m:0;w.add(V8({itemWidth:p,itemHeight:g,icon:f,iconRotate:C,itemStyle:S.itemStyle,symbolKeepAspect:b}))}var k=s==="left"?p+5:-5,T=s,D=o.get("formatter"),M=n;te(D)&&D?M=D.replace("{name}",n??""):ue(D)&&(M=D(n));var A=y?x.getTextColor():i.get("inactiveColor");w.add(new We({style:lt(x,{text:M,x:k,y:g/2,fill:A,align:T,verticalAlign:"middle"},{inheritColor:A})}));var E=new Oe({shape:w.getBoundingRect(),style:{fill:"transparent"}}),I=i.getModel("tooltip");return I.get("show")&&Hs({el:E,componentModel:o,itemName:n,itemTooltipOption:I.option}),w.add(E),w.eachChild(function(B){B.silent=!0}),E.silent=!d,this.getContentGroup().add(w),Pu(w),w.__legendDataIndex=a,w},e.prototype.layoutInner=function(t,n,a,i,o,s){var u=this.getContentGroup(),c=this.getSelectorGroup();ei(t.get("orient"),u,t.get("itemGap"),a.width,a.height);var f=u.getBoundingRect(),d=[-f.x,-f.y];if(c.markRedraw(),u.markRedraw(),o){ei("horizontal",c,t.get("selectorItemGap",!0));var h=c.getBoundingRect(),v=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,y=g===0?"width":"height",m=g===0?"height":"width",b=g===0?"y":"x";s==="end"?v[g]+=f[y]+p:d[g]+=h[y]+p,v[1-g]+=f[m]/2-h[m]/2,c.x=v[0],c.y=v[1],u.x=d[0],u.y=d[1];var _={x:0,y:0};return _[y]=f[y]+p+h[y],_[m]=Math.max(f[m],h[m]),_[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}(Et);function L8(r,e,t,n,a,i,o){function s(y,m){y.lineWidth==="auto"&&(y.lineWidth=m.lineWidth>0?2:0),Vv(y,function(b,_){y[_]==="inherit"&&(y[_]=m[_])})}var u=e.getModel("itemStyle"),c=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",d=u.getShallow("decal");c.decal=!d||d==="inherit"?n.decal:Jh(d,o),c.fill==="inherit"&&(c.fill=n[a]),c.stroke==="inherit"&&(c.stroke=n[f]),c.opacity==="inherit"&&(c.opacity=(a==="fill"?n:t).opacity),s(c,n);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,t),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 V8(r){var e=r.icon||"roundRect",t=Vt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=G.color.neutral00,t.style.lineWidth=2),t}function N1(r,e,t,n){Rv(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Pv(r,e,t,n)}function Zk(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,a=e.length;n<a&&!(t=e[n].states.emphasis);)n++;return t&&t.hoverLayer}function Pv(r,e,t,n){Zk(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function Rv(r,e,t,n){Zk(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function P8(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function Ho(r,e,t){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),I1(s,a),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){N(a,function(u,c){s[u?"select":"unSelect"](c)}),I1(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function I1(r,e){var t=e||{};return N(r.getData(),function(n){var a=n.get("name");if(!(a===`
|
|
294
|
-
`||a==="")){var i=r.isSelected(a);Dr(t,a)?t[a]=t[a]&&i:t[a]=i}}),t}function R8(r){r.registerAction("legendToggleSelect","legendselectchanged",me(Ho,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",me(Ho,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",me(Ho,"inverseSelect")),r.registerAction("legendSelect","legendselected",me(Ho,"select")),r.registerAction("legendUnSelect","legendunselected",me(Ho,"unSelect"))}function Xk(r){r.registerComponentModel(Lv),r.registerComponentView(Yk),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,P8),r.registerSubTypeDefaulter("legend",function(){return"plain"}),R8(r)}var O8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,a){var i=vo(t);r.prototype.init.call(this,t,n,a),B1(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),B1(this,this.option,t)},e.type="legend.scroll",e.defaultOption=ho(Lv.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:G.color.accent50,pageIconInactiveColor:G.color.accent10,pageIconSize:15,pageTextStyle:{color:G.color.tertiary},animationDurationUpdate:800}),e}(Lv);function B1(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,la(e,t,{type:"box",ignoreSize:!!a})}var L1=Ee,Gd=["width","height"],Wd=["x","y"],z8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new L1),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new L1)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,u){var c=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,u);var f=this._controllerGroup,d=n.get("pageIconSize",!0),h=Z(d)?d:[d,d];p("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new We({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(g,y){var m=g+"DataIndex",b=Bc(n.get("pageIcons",!0)[n.getOrient().name][y],{onclick:oe(c._pageGo,c,m,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(t,n,a,i,o,s){var u=this.getSelectorGroup(),c=t.getOrient().index,f=Gd[c],d=Wd[c],h=Gd[1-c],v=Wd[1-c];o&&ei("horizontal",u,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),g=u.getBoundingRect(),y=[-g.x,-g.y],m=he(a);o&&(m[f]=a[f]-g[f]-p);var b=this._layoutContentAndController(t,i,m,c,f,h,v,d);if(o){if(s==="end")y[c]+=b[f]+p;else{var _=g[f]+p;y[c]-=_,b[d]-=_}b[f]+=g[f]+p,y[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]+y[1-c]),u.x=y[0],u.y=y[1],u.markRedraw()}return b},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,u,c){var f=this.getContentGroup(),d=this._containerGroup,h=this._controllerGroup;ei(t.get("orient"),f,t.get("itemGap"),i?a.width:null,i?null:a.height),ei("horizontal",h,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),p=h.getBoundingRect(),g=this._showController=v[o]>a[o],y=[-v.x,-v.y];n||(y[i]=f[c]);var m=[0,0],b=[-p.x,-p.y],_=se(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:m[i]+=p[o]+_}b[1-i]+=v[s]/2-p[s]/2,f.setPosition(y),d.setPosition(m),h.setPosition(b);var w={x:0,y:0};if(w[o]=g?a[o]:v[o],w[s]=Math.max(v[s],p[s]),w[u]=Math.min(0,p[u]+b[1-i]),d.__rectSize=a[o],g){var x={x:0,y:0};x[o]=Math.max(a[o]-p[o]-_,0),x[s]=w[s],d.setClipPath(new Oe({shape:x})),d.__rectSize=x[o]}else h.eachChild(function(k){k.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(t);return C.pageIndex!=null&&Ke(f,{x:C.contentPosition[0],y:C.contentPosition[1]},g?t:null),this._updatePageInfoView(t,C),w},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;N(["pagePrev","pageNext"],function(f){var d=f+"DataIndex",h=n[d]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,c=n.pageCount;i&&o&&i.setStyle("text",te(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",c==null?"":c+""):o({current:u,total:c}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Gd[o],u=Wd[o],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=S(d);p.contentPosition[o]=-g.s;for(var y=c+1,m=g,b=g,_=null;y<=h;++y)_=S(f[y]),(!_&&b.e>m.s+i||_&&!w(_,m.s))&&(b.i>m.i?m=b:m=_,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),b=_;for(var y=c-1,m=g,b=g,_=null;y>=-1;--y)_=S(f[y]),(!_||!w(b,_.s))&&m.i<b.i&&(b=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=_;return p;function S(x){if(x){var C=x.getBoundingRect(),k=C[u]+x[u];return{s:k,e:k+C[s],i:x.__legendDataIndex}}}function w(x,C){return x.e>=C&&x.s<=C+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var u=o.__legendDataIndex;i==null&&u!=null&&(i=s),u===t&&(n=s)}),n??i},e.type="legend.scroll",e}(Yk);function $8(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function F8(r){Ht(Xk),r.registerComponentModel(O8),r.registerComponentView(z8),$8(r)}function H8(r){Ht(Xk),Ht(F8)}var G8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=ho(Ls.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ls),_g=Re();function W8(r,e,t){_g(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function U8(r,e){for(var t=_g(r).coordSysRecordMap,n=t.keys(),a=0;a<n.length;a++){var i=n[a],o=t.get(i),s=o.dataZoomInfoMap;if(s){var u=e.uid,c=s.get(u);c&&(s.removeKey(u),s.keys().length||jk(t,o))}}}function jk(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Y8(r,e){var t={model:e,containsPoint:me(X8,e),dispatchAction:me(Z8,r),dataZoomInfoMap:null,controller:null},n=t.controller=new Jp(r.getZr());return N(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var u=(s.getRange||{})[a],c=u&&u(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&c&&o.push({dataZoomId:s.model.id,start:c[0],end:c[1]})}}),o.length&&t.dispatchAction(o)})}),t}function Z8(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function X8(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function j8(r,e,t){var n,a="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var u=s.model,c=u.get("disabled",!0)?!1:u.get("zoomLock",!0)?"move":!0;i[a+c]>i[a+n]&&(n=c),o=o&&u.get("preventDefaultMouseMove",!0)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint}}}}function q8(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=_g(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=_e());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Bk(i);N(o.infoList,function(s){var u=s.model.uid,c=a.get(u)||a.set(u,Y8(t,s.model)),f=c.dataZoomInfoMap||(c.dataZoomInfoMap=_e());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,u=i.dataZoomInfoMap;if(u){var c=u.keys()[0];c!=null&&(s=u.get(c))}if(!s){jk(a,i);return}var f=j8(u,i,t);o.enable(f.controlType,f.opt),$c(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var K8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),W8(a,t,{pan:oe(Ud.pan,this),zoom:oe(Ud.zoom,this),scrollMove:oe(Ud.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){U8(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(hg),Ud={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=Yd[e](null,[n.originX,n.originY],o,t,r),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],c=Math.max(1/n.scale,0);i[0]=(i[0]-u)*c+u,i[1]=(i[1]-u)*c+u;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ci(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:V1(function(r,e,t,n,a,i){var o=Yd[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:V1(function(r,e,t,n,a,i){var o=Yd[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function V1(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var u=r(o,s,e,t,n,a);if(ci(u,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Yd={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem,u=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,n,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function Q8(r){vg(r),r.registerComponentModel(G8),r.registerComponentView(K8),q8(r)}var J8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ho(Ls.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:G.color.accent10,borderRadius:0,backgroundColor:G.color.transparent,dataBackground:{lineStyle:{color:G.color.accent30,width:.5},areaStyle:{color:G.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:G.color.accent40,width:.5},areaStyle:{color:G.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:G.color.neutral00,borderColor:G.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:G.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:G.color.tertiary},brushSelect:!0,brushStyle:{color:G.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:G.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(Ls),Go=Oe,eG=1,Zd=30,tG=7,Wo="horizontal",P1="vertical",rG=5,nG=["line","bar","candlestick","scatter"],aG={easing:"cubicOut",duration:100,delay:0},iG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=oe(this._onBrush,this),this._onBrushEnd=oe(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),$c(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Wu(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Ee;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?tG:0,o=Or(t,n).refContainer,s=this._findCoordRect(),u=t.get("defaultLocationEdgeGap",!0)||0,c=this._orient===Wo?{right:o.width-s.x-s.width,top:o.height-Zd-u-i,width:s.width,height:Zd}:{right:u,top:s.y,width:Zd,height:s.height},f=vo(t.option);N(["right","top","width","height"],function(h){f[h]==="ph"&&(f[h]=c[h])});var d=Ft(f,o);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===P1&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,u=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Wo&&!o?{scaleY:u?1:-1,scaleX:1}:a===Wo&&o?{scaleY:u?1:-1,scaleX:-1}:a===P1&&!o?{scaleY:u?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:u?-1:1,scaleX:-1,rotation:Math.PI/2});var c=t.getBoundingRect([s]);t.x=n.x-c.x,t.y=n.y-c.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new Go({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Go({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:oe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),u=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(u==null)return;var c=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||u!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var d=o.getDataExtent(t.thisDim),h=o.getDataExtent(u),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var p=[0,n[1]],g=[0,n[0]],y=[[n[0],0],[0,0]],m=[],b=g[1]/Math.max(1,o.count()-1),_=n[0]/(d[1]-d[0]),S=t.thisAxis.type==="time",w=-b,x=Math.round(o.count()/n[0]),C;o.each([t.thisDim,u],function(A,E,I){if(x>0&&I%x){S||(w+=b);return}w=S?(+A-d[0])*_:w+b;var B=E==null||isNaN(E)||E==="",R=B?0:ze(E,h,p,!0);B&&!C&&I?(y.push([y[y.length-1][0],0]),m.push([m[m.length-1][0],0])):!B&&C&&(y.push([w,0]),m.push([w,0])),B||(y.push([w,R]),m.push([w,R])),C=B}),c=this._shadowPolygonPts=y,f=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=u,this._shadowSize=[n[0],n[1]];var k=this.dataZoomModel;function T(A){var E=k.getModel(A?"selectedDataBackground":"dataBackground"),I=new Ee,B=new Br({shape:{points:c},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new An({shape:{points:f},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(B),I.add(R),I}for(var D=0;D<3;D++){var M=T(D===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var u=t.getAxisProxy(o,s).getTargetSeriesModels();N(u,function(c){if(!a&&!(n!==!0&&De(nG,c.get("type"))<0)){var f=i.getComponent(Qn(o),s).axis,d=oG(o),h,v=c.coordinateSystem;d!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),d=c.getData().mapDimension(d);var p=c.getData().mapDimension(o);a={thisAxis:f,series:c,thisDim:p,otherDim:d,otherAxisInverse:h}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,u=this.dataZoomModel,c=this.api,f=u.get("borderRadius")||0,d=u.get("brushSelect"),h=n.filler=new Go({silent:d,style:{fill:u.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Go({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:u.get("dataBackgroundColor")||u.get("borderColor"),lineWidth:eG,fill:G.color.transparent}})),N([0,1],function(_){var S=u.get("handleIcon");!Yu[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,process.env.NODE_ENV!=="production"&&an("handleIcon now needs 'path://' prefix when using a path string"));var w=Vt(S,-1,0,2,2,null,!0);w.attr({cursor:sG(this._orient),draggable:!0,drift:oe(this._onDragMove,this,_),ondragend:oe(this._onDragEnd,this),onmouseover:oe(this._showDataInfo,this,!0),onmouseout:oe(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),C=u.get("handleSize");this._handleHeight=de(C,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(u.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=u.getModel(["emphasis","handleStyle"]).getItemStyle(),Pu(w);var k=u.get("handleColor");k!=null&&(w.style.fill=k),o.add(a[_]=w);var T=u.getModel("textStyle"),D=u.get("handleLabel")||{},M=D.show||!1;t.add(i[_]=new We({silent:!0,invisible:!M,style:lt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var v=h;if(d){var p=de(u.get("moveHandleSize"),s[1]),g=n.moveHandle=new Oe({style:u.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),y=p*.8,m=n.moveHandleIcon=Vt(u.get("moveHandleIcon"),-y/2,-y/2,y,y,G.color.neutral00,!0);m.silent=!0,m.y=s[1]+p/2-.5,g.ensureState("emphasis").style=u.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));v=n.moveZone=new Oe({invisible:!0,shape:{y:s[1]-b,height:p+b}}),v.on("mouseover",function(){c.enterEmphasis(g)}).on("mouseout",function(){c.leaveEmphasis(g)}),o.add(g),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:"default",drift:oe(this._onDragMove,this,"all"),ondragstart:oe(this._showDataInfo,this,!0),ondragend:oe(this._onDragEnd,this),onmouseover:oe(this._showDataInfo,this,!0),onmouseout:oe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ze(t[0],[0,100],n,!0),ze(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),u=[0,100];ci(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?ze(s.minSpan,u,o,!0):null,s.maxSpan!=null?ze(s.maxSpan,u,o,!0):null);var c=this._range,f=this._range=_n([ze(i[0],o,u,!0),ze(i[1],o,u,!0)]);return!c||c[0]!==f[0]||c[1]!==f[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=_n(a.slice()),o=this._size;N([0,1],function(v){var p=n.handles[v],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[v]+(v?-1:1),y:o[1]/2-g/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var u=n.dataShadowSegs,c=[0,i[0],i[1],o[0]],f=0;f<u.length;f++){var d=u[f],h=d.getClipPath();h||(h=new Oe,d.setClipPath(h)),h.setShape({x:c[f],y:0,width:c[f+1]-c[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var u=n.findRepresentativeAxisProxy();if(u){var c=u.getAxisModel().axis,f=this._range,d=t?u.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:u.getDataValueWindow();s=[this._formatLabel(d[0],c),this._formatLabel(d[1],c)]}}var h=_n(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(p){var g=Qa(a.handles[p].parent,this.group),y=Ic(p===0?"right":"left",g),m=this._handleWidth/2+rG,b=ra([h[p]+(p===0?-m:m),this._size[1]/2],g);i[p].setStyle({x:b[0],y:b[1],verticalAlign:o===Wo?"middle":y,align:o===Wo?y:"center",text:s[p]})}},e.prototype._formatLabel=function(t,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=t==null||isNaN(t)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return ue(i)?i(t,s):te(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:a,u=this._displayables,c=u.handleLabels;c[0].attr("invisible",!s),c[1].attr("invisible",!s),u.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](u.moveHandle,1)},e.prototype._onDragMove=function(t,n,a,i){this._dragging=!0,Mn(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ra([n,a],o,!0),u=this._updateInterval(t,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),u&&c&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new ke(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],u=this._handleEnds=[a.x,a.x+a.width],c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();ci(0,u,o,0,c.minSpan!=null?ze(c.minSpan,s,o,!0):null,c.maxSpan!=null?ze(c.maxSpan,s,o,!0):null),this._range=_n([ze(u[0],o,s,!0),ze(u[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Mn(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Go({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,u=this._displayables.sliderGroup,c=u.transformCoordToLocal(t,n),f=u.transformCoordToLocal(s.x,s.y),d=this._size;c[0]=Math.max(Math.min(d[0],c[0]),0),o.setShape({x:f[0],y:0,width:c[0]-f[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?aG:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=Bk(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(hg);function oG(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function sG(r){return r==="vertical"?"ns-resize":"ew-resize"}function lG(r){r.registerComponentModel(J8),r.registerComponentView(iG),vg(r)}function uG(r){Ht(Q8),Ht(lG)}var qk={get:function(r,e,t){var n=he((cG[r]||{})[e]);return t&&Z(n)?n[n.length-1]:n}},cG={color:{active:["#006edd","#e0ffff"],inactive:[G.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},R1=Mt.mapVisual,fG=Mt.eachVisual,dG=Z,O1=N,hG=_n,vG=ze,vc=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&l8(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=oe(t,this),this.controllerVisuals=k1(this.option.controller,n,t),this.targetVisuals=k1(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,n=this.option.seriesIndex;n==null&&t==null&&(n="all");var a=co(this.ecModel,"series",{index:n,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return X(a,function(i){return i.componentIndex})},e.prototype.eachTargetSeries=function(t,n){N(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,u=i.formatter,c;a=a||["<",">"],Z(t)&&(t=t.slice(),c=!0);var f=n?t:c?[d(t[0]),d(t[1])]:d(t);if(te(u))return u.replace("{value}",c?f[0]:f).replace("{value2}",c?f[1]:f);if(ue(u))return c?u(t[0],t[1]):u(t);if(c)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function d(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=hG([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Ce(i,a),Ce(o,a);var s=this.isCategory();u.call(this,i),u.call(this,o),c.call(this,i,"inRange","outOfRange"),f.call(this,o);function u(d){dG(n.color)&&!d.inRange&&(d.inRange={color:n.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function c(d,h,v){var p=d[h],g=d[v];p&&!g&&(g=d[v]={},O1(p,function(y,m){if(Mt.isValidType(m)){var b=qk.get(m,"inactive",s);b!=null&&(g[m]=b,m==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function f(d){var h=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,v=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),y=g||"roundRect";O1(this.stateList,function(m){var b=this.itemSize,_=d[m];_||(_=d[m]={color:s?p:[p]}),_.symbol==null&&(_.symbol=h&&he(h)||(s?y:[y])),_.symbolSize==null&&(_.symbolSize=v&&he(v)||(s?b[0]:[b[0],b[0]])),_.symbol=R1(_.symbol,function(x){return x==="none"?y:x});var S=_.symbolSize;if(S!=null){var w=-1/0;fG(S,function(x){x>w&&(w=x)}),_.symbolSize=R1(S,function(x){return vG(x,[0,w],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:G.color.transparent,borderColor:G.color.borderTint,contentColor:G.color.theme[0],inactiveColor:G.color.disabled,borderWidth:0,padding:G.size.m,textGap:10,precision:0,textStyle:{color:G.color.secondary}},e}(Ne),z1=[20,140],pG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=z1[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=z1[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):Z(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),N(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=_n((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent(),i=se(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=t)&&(i&&n[1]>=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,u){t[0]<=s&&s<=t[1]&&i.push(u)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=$1(this,"outOfRange",this.getExtent()),a=$1(this,"inRange",this.option.range.slice()),i=[];function o(v,p){i.push({value:v,color:t(v,p)})}for(var s=0,u=0,c=a.length,f=n.length;u<f&&(!a.length||n[u]<=a[0]);u++)n[u]<a[s]&&o(n[u],"outOfRange");for(var d=1;s<c;s++,d=0)d&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var d=1;u<f;u++)(!a.length||a[a.length-1]<n[u])&&(d&&(i.length&&o(i[i.length-1].value,"outOfRange"),d=0),o(n[u],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ho(vc.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:G.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:G.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:G.color.shadow}}),e}(vc);function $1(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}var Kk=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=Us(n.get("padding")||0),i=t.getBoundingRect();t.add(new Oe({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var u=o.get("contentColor");s.color=u}function c(v){return s[v]}function f(v,p){s[v]=p}var d=o.controllerVisuals[i||o.getValueState(t)],h=Mt.prepareVisualTypes(d);return N(h,function(v){var p=d[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",p=d.__alphaForOpacity),Mt.dependsOn(v,n)&&p&&p.applyVisual(t,c,f)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api,i=Or(n,a).refContainer;Mp(t,n.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e}(Et),F1=[["left","right","width"],["top","bottom","height"]];function Qk(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=F1[o],u=[0,null,10],c={},f=0;f<3;f++)c[F1[1-o][f]]=u[f],c[s[f]]=f===2?t[0]:n[s[f]];var d=[["x","width",3],["y","height",0]][o],h=Ft(c,i,n.padding);return s[(h.margin[d[2]]||0)+h[d[0]]+h[d[1]]*.5<i[d[1]]*.5?0:1]}function hu(r,e){return N(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Zr=ze,gG=N,H1=Math.min,Xd=Math.max,mG=12,yG=6,bG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=oe(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=oe(this._hideIndicator,this)},e.prototype.doRender=function(t,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),u=o.itemSize,c=this._shapes.mainGroup,f=this._applyTransform([u[0]/2,a===0?-s:u[1]+s],c),d=this._applyTransform(a===0?"bottom":"top",c),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new We({style:lt(v,{x:f[0],y:f[1],verticalAlign:v.get("verticalAlign")||(h==="horizontal"?"middle":d),align:v.get("align")||(h==="horizontal"?d:"center"),text:i})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,u=Qk(n,this.api,i),c=a.mainGroup=this._createBarGroup(u),f=new Ee;c.add(f),f.add(a.outOfRange=G1()),f.add(a.inRange=G1(null,s?U1(this._orient):null,oe(this._dragHandle,this,"all",!1),oe(this._dragHandle,this,"all",!0))),f.setClipPath(new Oe({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var d=n.textStyleModel.getTextRect("国"),h=Xd(d.width,d.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,c,0,i,h,o),this._createHandle(n,c,1,i,h,o)),this._createIndicator(n,c,i,h,o),t.add(c)},e.prototype._createHandle=function(t,n,a,i,o,s){var u=oe(this._dragHandle,this,a,!1),c=oe(this._dragHandle,this,a,!0),f=nn(t.get("handleSize"),i[0]),d=Vt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=U1(this._orient);d.attr({cursor:h,draggable:!0,drift:u,ondragend:c,onmousemove:function(m){Mn(m.event)}}),d.x=i[0]/2,d.useStyle(t.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Wa(d,!0),n.add(d);var v=this.visualMapModel.textStyleModel,p=new We({cursor:h,draggable:!0,drift:u,onmousemove:function(m){Mn(m.event)},ondragend:c,style:lt(v,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var g=[f,0],y=this._shapes;y.handleThumbs[a]=d,y.handleLabelPoints[a]=g,y.handleLabels[a]=p},e.prototype._createIndicator=function(t,n,a,i,o){var s=nn(t.get("indicatorSize"),a[0]),u=Vt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);u.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var c=t.getModel("indicatorStyle").getItemStyle();if(u instanceof _r){var f=u.style;u.useStyle(Y({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},c))}else u.useStyle(c);n.add(u);var d=this.visualMapModel.textStyleModel,h=new We({silent:!0,invisible:!0,style:lt(d,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:yG)+a[0]/2,0],p=this._shapes;p.indicator=u,p.indicatorLabel=h,p.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():W1(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Zr(n[0],a,i,!0),Zr(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];ci(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[Zr(i[0],o,s,!0),Zr(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,u=this._createBarVisual(this._dataInterval,a,s,"inRange"),c=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),i.outOfRange.setStyle({fill:c.barColor}).setShape("points",c.barPoints),this._updateHandle(s,u)},e.prototype._createBarVisual=function(t,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),u=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],c=this._createBarPoints(a,u);return{barColor:new fp(0,0,0,1,s),barPoints:c,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var u=t[0]+o*s;if(u>t[1])break;i.push({color:this.getControllerVisual(u,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new Ee(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,u=i.itemSize,c=i.getExtent(),f=this._applyTransform("left",a.mainGroup);gG([0,1],function(d){var h=o[d];h.setStyle("fill",n.handlesColor[d]),h.y=t[d];var v=Zr(t[d],[0,u[1]],c,!0),p=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=p/u[0],h.x=u[0]-p/2;var g=ra(a.handleLabelPoints[d],Qa(h,this.group));if(this._orient==="horizontal"){var y=f==="left"||f==="top"?(u[0]-p)/2:(u[0]-p)/-2;g[1]+=y}s[d].setStyle({x:g[0],y:g[1],text:i.formatValueText(this._dataInterval[d]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),u=o.itemSize,c=[0,u[1]],f=this._shapes,d=f.indicator;if(d){d.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",h),p=this.getControllerVisual(t,"symbolSize"),g=Zr(t,s,c,!0),y=u[0]-p/2,m={x:d.x,y:d.y};d.y=g,d.x=y;var b=ra(f.indicatorLabelPoint,Qa(d,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),w=this._orient,x=w==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var C={x:y,y:g,style:{fill:v}},k={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};d.x=m.x,d.y=m.y,d.animateTo(C,T),_.animateTo(k,T)}else d.attr(C),_.attr(k);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this.api.enterBlur(D[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=H1(Xd(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=H1(Xd(o[0],t),o[1]);var u=_G(a,s,o),c=[t-u,t+u],f=Zr(t,o,s,!0),d=[Zr(c[0],o,s,!0),Zr(c[1],o,s,!0)];c[0]<o[0]&&(d[0]=-1/0),c[1]>o[1]&&(d[1]=1/0),n&&(d[0]===-1/0?this._showIndicator(f,d[1],"< ",u):d[1]===1/0?this._showIndicator(f,d[0],"> ",u):this._showIndicator(f,f,"≈ ",u));var h=this._hoverLinkDataIndices,v=[];(n||W1(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=NB(h,v);this._dispatchHighDown("downplay",hu(p[0],a)),this._dispatchHighDown("highlight",hu(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(Ui(t.target,function(u){var c=Te(u);if(c.dataIndex!=null)return n=c,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",hu(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,a,i){var o=Qa(n,i?null:this.group);return Z(t)?ra(t,o,a):Ic(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(Kk);function G1(r,e,t,n){return new Br({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){Mn(a.event)},ondragend:n})}function _G(r,e,t){var n=mG/2,a=r.get("hoverLinkDataSize");return a&&(n=Zr(a,e,t,!0)/2),n}function W1(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function U1(r){return r==="vertical"?"ns-resize":"ew-resize"}var SG={type:"selectDataRange",event:"dataRangeSelected",update:"update"},wG=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},xG=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(u8(n.stateList,n.targetVisuals,oe(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(oe(CG,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function CG(r,e,t,n){for(var a=e.targetVisuals[n],i=Mt.prepareVisualTypes(a),o={color:Zs(r.getData(),"color")},s=0,u=i.length;s<u;s++){var c=i[s],f=a[c==="opacity"?"__alphaForOpacity":c];f&&f.applyVisual(t,d,h)}return o.color;function d(v){return o[v]}function h(v,p){o[v]=p}}var Y1=N;function kG(r){var e=r&&r.visualMap;Z(e)||(e=e?[e]:[]),Y1(e,function(t){if(t){Pi(t,"splitList")&&!Pi(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&Z(n)&&Y1(n,function(a){fe(a)&&(Pi(a,"start")&&!Pi(a,"min")&&(a.min=a.start),Pi(a,"end")&&!Pi(a,"max")&&(a.max=a.end))})}})}function Pi(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Z1=!1;function Jk(r){Z1||(Z1=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(SG,wG),N(xG,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(kG))}function TG(r){r.registerComponentModel(pG),r.registerComponentView(bG),Jk(r)}var DG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],MG[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=he(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(u){return u=he(u),s!=="inRange"&&(u.visual=null),u}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=Mt.listVisualTypes(),i=this.isCategory();N(t.pieces,function(s){N(a,function(u){s.hasOwnProperty(u)&&(n[u]=1)})}),N(n,function(s,u){var c=!1;N(this.stateList,function(f){c=c||o(t,f,u)||o(t.target,f,u)},this),!c&&N(this.stateList,function(f){(t[f]||(t[f]={}))[u]=qk.get(u,f==="inRange"?"active":"inactive",i)})},this);function o(s,u,c){return s&&s[u]&&s[u].hasOwnProperty(c)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,N(i,function(u,c){var f=this.getSelectedMapKey(u);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;N(i,function(u,c){var f=this.getSelectedMapKey(u);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=he(t)},e.prototype.getValueState=function(t){var n=Mt.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(u,c){var f=Mt.findPieceIndex(u,a);f===t&&o.push(c)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,d){var h=i.getRepresentValue({interval:f});d||(d=i.getValueState(h));var v=t(h,d);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:n.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var u=s[0].interval[0];u!==-1/0&&s.unshift({interval:[-1/0,u]}),u=s[s.length-1].interval[1],u!==1/0&&s.push({interval:[u,1/0]})}var c=-1/0;return N(s,function(f){var d=f.interval;d&&(d[0]>c&&o([c,d[0]],"outOfRange"),o(d.slice()),c=d[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=ho(vc.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(vc),MG={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var u=o===a-1?n[1]:s+i;r.push({interval:[s,u],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),vm(r),N(r,function(c,f){c.index=f,c.text=this.formatValueText(c.interval)},this)},categories:function(r){var e=this.option;N(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),X1(e,r)},pieces:function(r){var e=this.option;N(e.pieces,function(t,n){fe(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],u=[1,0,1],c=[-1/0,1/0],f=[],d=0;d<2;d++){for(var h=[["gte","gt","min"],["lte","lt","max"]][d],v=0;v<3&&o[d]==null;v++)o[d]=t[h[v]],s[d]=u[v],f[d]=v===2;o[d]==null&&(o[d]=c[d])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Mt.retrieveVisuals(t),r.push(a)},this),X1(e,r),vm(r),N(r,function(t){var n=t.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function X1(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var EG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,u=this._getViewData(),c=u.endsText,f=rr(n.get("showLabel",!0),!c),d=!n.get("selectedMode");c&&this._renderEndsText(t,c[0],s,f,o),N(u.viewPieceList,function(h){var v=h.piece,p=new Ee;p.onclick=oe(this._onItemClick,this,v),this._enableHoverLink(p,h.indexInModelPieceList);var g=n.getRepresentValue(v);if(this._createItemSymbol(p,g,[0,0,s[0],s[1]],d),f){var y=this.visualMapModel.getValueState(g),m=i.get("align")||o;p.add(new We({style:lt(i,{x:m==="right"?-a:s[0]+a,y:s[1]/2,text:v.text,verticalAlign:i.get("verticalAlign")||"middle",align:m,opacity:se(i.get("opacity"),y==="outOfRange"?.5:1)}),silent:d}))}t.add(p)},this),c&&this._renderEndsText(t,c[1],s,f,o),ei(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:hu(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return Qk(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new Ee,u=this.visualMapModel.textStyleModel;s.add(new We({style:lt(u,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=X(t.getPieceList(),function(s,u){return{piece:s,indexInModelPieceList:u}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a,i){var o=Vt(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=he(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,N(o,function(u,c){o[c]=c===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Kk);function AG(r){r.registerComponentModel(DG),r.registerComponentView(EG),Jk(r)}function NG(r){Ht(TG),Ht(AG)}var IG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new jw(this),By(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),By(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ar},e}(Ne),BG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Et);function LG(r){r.registerComponentModel(IG),r.registerComponentView(BG)}const VG={__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(r){Ht([l$,E$,e3,W$,H4,Q3,lF,NH,CH,N4,ZF,r6,d8,s8,H8,uG,NG,_8,T8,I8,H6,LG]);const e=r,t=l.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=l.computed(()=>e.option&&Object.keys(e.option).length>0?e.option:t.value);return(a,i)=>(l.openBlock(),l.createElementBlock("div",{class:"ab-chart-container",style:l.normalizeStyle({height:r.height})},[l.createVNode(l.unref(n$),{option:n.value,autoresize:"",class:"ab-chart"},null,8,["option"])],4))}},eT=Pt(VG,[["__scopeId","data-v-2a8d2af6"]]),PG=Object.freeze(Object.defineProperty({__proto__:null,AbAvatar:i_,AbBadge:u_,AbButton:Xe,AbCard:q1,AbCarousel:k_,AbChart:eT,AbColorPicker:p_,AbConfirmPopover:R_,AbCustomField:v_,AbDarkModeToggler:N_,AbDateTimePicker:yn,AbEasyModal:O_,AbField:E_,AbFileUploader:y_,AbFilterPanel:b_,AbFormCheck:aa,AbImageRadioInput:__,AbInputField:kr,AbInputTag:$v,AbKbd:x_,AbKbdGroup:C_,AbModal:zv,AbMultiSelect:Za,AbNumberField:n_,AbPinInput:h_,AbPopover:hi,AbPricingCard:z_,AbPricingContainer:$_,AbPricingTable:F_,AbProgressbar:e_,AbRadioInput:aa,AbResponseMsg:Ov,AbScrollbar:Fv,AbSettingsForm:l_,AbSideMenuItem:f_,AbSidebar:c_,AbSkeleton:w_,AbSlider:d_,AbTab:s_,AbTable:S_,AbTabs:o_,AbToggle:gc,AbTooltip:T_,AbWizard:D_,AbWizardStep:M_},Symbol.toStringTag,{value:"Module"})),RG={class:"apbd-container"},OG={class:"apbd-main-content"},zG={class:"apbd-app-body"},$G={key:1,class:"apbd-page-footer"},FG={key:1,class:"apbd-right-sidebar"},HG={__name:"AbMainLayout",props:{headerClass:{type:String,default:"apbd-bordered"},footerClass:{type:String,default:""}},setup(r,{expose:e}){const t=l.useSlots(),n=()=>window.innerWidth<576,a=l.ref(!0),i=l.ref(!0);l.onMounted(()=>{n()&&(a.value=!1)});const o=u=>{typeof u=="boolean"?a.value=u:a.value=!a.value},s=u=>{typeof u=="boolean"?i.value=u:i.value=!i.value};return l.provide("layoutState",{isLeftSidebarOpen:a,isRightSidebarOpen:i,toggleLeftSidebar:o,toggleRightSidebar:s}),e({isLeftSidebarOpen:a,isRightSidebarOpen:i,toggleLeftSidebar:o,toggleRightSidebar:s}),(u,c)=>(l.openBlock(),l.createElementBlock("div",RG,[l.createVNode(l.Transition,{name:"apbd-sidebar-backdrop"},{default:l.withCtx(()=>[l.unref(t).leftSidebar&&a.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"apbd-sidebar-backdrop",onClick:c[0]||(c[0]=f=>o(!1))})):l.createCommentVNode("",!0)]),_:1}),l.unref(t).leftSidebar?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["apbd-left-sidebar",{"sidebar-open":a.value}])},[l.renderSlot(u.$slots,"leftSidebar")],2)):l.createCommentVNode("",!0),l.createElementVNode("div",OG,[l.unref(t).pageHeader?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["apbd-page-header",r.headerClass])},[l.renderSlot(u.$slots,"pageHeader",{headerClass:r.headerClass})],2)):l.createCommentVNode("",!0),l.createElementVNode("div",zG,[l.unref(t).bodyHeader?l.renderSlot(u.$slots,"bodyHeader",{key:0}):l.createCommentVNode("",!0),l.renderSlot(u.$slots,"body"),l.unref(t).bodyFooter?l.renderSlot(u.$slots,"bodyFooter",{key:1}):l.createCommentVNode("",!0)]),l.unref(t).pageFooter?(l.openBlock(),l.createElementBlock("div",$G,[l.renderSlot(u.$slots,"pageFooter")])):l.createCommentVNode("",!0)]),l.unref(t).rightSidebar&&i.value?(l.openBlock(),l.createElementBlock("div",FG,[l.renderSlot(u.$slots,"rightSidebar")])):l.createCommentVNode("",!0)]))}};function GG(){const{appContext:r}=l.getCurrentInstance();return{alert:t=>r.config.globalProperties.$alert(t)}}function WG(r={}){const{tabMaxWidth:e=0}=r,t=l.ref(window.innerWidth),n=()=>{t.value=window.innerWidth};l.onMounted(()=>window.addEventListener("resize",n)),l.onUnmounted(()=>window.removeEventListener("resize",n));const a=l.computed(()=>{const s=t.value;return s<576?"xs":s<768?"sm":s<992?"md":s<1200?"lg":s<1400?"xl":"xxl"}),i=l.computed(()=>t.value),o=l.computed(()=>{const s=a.value;return s==="xs"||s==="sm"||e>0&&i.value<=e});return{ScreenWidth:i,ScreenType:a,isUptoTab:o}}function UG(r,e="USD",t="en-US"){return new Intl.NumberFormat(t,{style:"currency",currency:e}).format(r)}function YG(r){return r.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"")}function ZG(r,e=0){const t=r*e/100;return{tax:t,total:r+t}}function tT(r,e,t){var n=e||new FormData;let a=null;for(const i in r)if(r.hasOwnProperty(i))if(a=t?`${t}[${i}]`:i,typeof r[i]=="object"&&!(r[i]instanceof File))tT(r[i],n,a);else if(r[i]instanceof File)n.append(a,r[i]);else{let o=r[i];(o==="true"||o==="false"||o===!0||o===!1)&&(o=o==="true"||o===!0?1:0),n.append(a,o)}return n}const gn=r=>r.field.replace("_"," "),XG={required:(r,e,t)=>Fr.required(r,e)?!0:ot("%{fld_name} is required",{fld_name:gn(t)}),numeric:(r,e,t)=>Fr.numeric(r,e)?!0:ot("%{fld_name} should be numeric",{fld_name:gn(t)}),email:(r,e,t)=>Fr.email(r,e)?!0:ot("%{fld_name} not a valid email address",{fld_name:gn(t)}),min:(r,e,t)=>Fr.min(r,e),min_value:(r,e,t)=>Fr.min_value(r,e)?!0:ot("%{fld_name} should be more than "+e[0],{fld_name:gn(t)}),max:(r,e,t)=>Fr.max(r,e),max_value:(r,e,t)=>Fr.max_value(r,e)?!0:ot("%{fld_name} should be less than "+e[0],{fld_name:gn(t)}),confirmed:(r,e,t)=>Fr.confirmed(r,e)?!0:ot("%{fld_name} does not match with its password",{fld_name:gn(t)}),url:(r,e,t)=>Fr.url(r,e)?!0:ot("%{fld_name} is invalid",{fld_name:gn(t)}),isUnique:async(r,e,t)=>(t=="email"&&!Fr.email(r,e,t)||r.length<3,!0),isValid:async(r,e,t)=>{if(e[0]=="custom"){let n=3;if(e[1]!=null)if(e[2]!=null&&(n=e[2]),r.length>=n){let a=await store.dispatch("IsValidCF",{fld_name:e[1],fld_value:r});return a.status?!0:translate.interpolate(a.msg,{fld_name:gn(t)})}else return ot("%{fld_name} length is not valid, please check it",{fld_name:gn(t)});return!0}else return!0}};function jG(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Sg={exports:{}};function wg(){}wg.prototype={on:function(r,e,t){var n=this.e||(this.e={});return(n[r]||(n[r]=[])).push({fn:e,ctx:t}),this},once:function(r,e,t){var n=this;function a(){n.off(r,a),e.apply(t,arguments)}return a._=e,this.on(r,a,t)},emit:function(r){var e=[].slice.call(arguments,1),t=((this.e||(this.e={}))[r]||[]).slice(),n=0,a=t.length;for(n;n<a;n++)t[n].fn.apply(t[n].ctx,e);return this},off:function(r,e){var t=this.e||(this.e={}),n=t[r],a=[];if(n&&e)for(var i=0,o=n.length;i<o;i++)n[i].fn!==e&&n[i].fn._!==e&&a.push(n[i]);return a.length?t[r]=a:delete t[r],this}};Sg.exports=wg;Sg.exports.TinyEmitter=wg;var qG=Sg.exports,KG=qG,QG=new KG;const Ql=jG(QG),JG={$on:(...r)=>Ql.on(...r),$once:(...r)=>Ql.once(...r),$off:(...r)=>Ql.off(...r),$emit:(...r)=>Ql.emit(...r)};class eW{constructor(){this.prop="",this.ord="asc"}}class tW{constructor(){this.prop="",this.val="",this.opr="eq"}}const rW={class:"alert-text"},nW={key:0,class:"title"},aW={key:2,class:"message"},iW={key:1,class:"field"},oW={__name:"AbBaseAlert",setup(r,{expose:e}){const t=l.ref(!1),n=l.ref(!1),a=l.ref(null);let i=null;const o=()=>({type:"alert",title:"",message:"",responseMessage:null,confirmText:"",cancelText:"",icon:"",timer:null,onConfirm:null,buttonCol:!1,variation:"default",size:"md",confirmBtnColor:"primary",cancelBtnColor:"light",confirmBtnIcon:"save",cancelBtnIcon:"cancel"}),s=l.reactive(o());function u(C={}){return Object.assign(s,o()),n.value=!1,t.value=!0,Object.assign(s,C),s.timer&&s.type==="alert"&&(i=setTimeout(()=>{x(!0)},s.timer)),new Promise(k=>{a.value=k})}const c=l.computed(()=>s.type==="confirm"||s.type==="confirm-ajax"),f=l.computed(()=>s.confirmText||(s.type==="alert"?"OK":"Yes")),d=l.computed(()=>({success:I_,error:B_,warning:L_,info:V_,question:P_})[s.icon]||s.icon),h={save:IT,cancel:$a,delete:PT},v=l.computed(()=>h[s.confirmBtnIcon]||s.confirmBtnIcon),p=l.computed(()=>h[s.cancelBtnIcon]||s.cancelBtnIcon),g=l.computed(()=>({success:"icon-success",error:"icon-error",warning:"icon-warning",info:"icon-info",question:"icon-question"})[s.icon]||""),y=l.computed(()=>({default:"",modern:"alert-card--modern",minimal:"alert-card--minimal","top-color-bar":"alert-card--top-color-bar"})[s.variation]||""),m=l.computed(()=>s.variation!=="top-color-bar"?"":{success:"bar-success",error:"bar-error",warning:"bar-warning",info:"bar-info",question:"bar-question"}[s.icon]||""),b=l.computed(()=>s.variation==="minimal"?"icon-minimal":""),_=l.computed(()=>s.variation==="modern"?"buttons--row":s.variation==="minimal"?"buttons--minimal":"");l.computed(()=>s.variation==="minimal"?"cancel-link":s.variation==="modern"?"btn-outline":"btn-light");async function S(){var C,k;if(!n.value){if(s.type==="alert"){x(!0);return}if((s.type==="confirm"||s.type==="confirm-ajax")&&s.onConfirm){n.value=!0;try{const T=await s.onConfirm();if(n.value=!1,(T==null?void 0:T.next)==="close"){x((T==null?void 0:T.status)??!0);return}if((T==null?void 0:T.next)==="confirm"){Object.assign(s,{type:"confirm",title:T.title,message:T.message??"",responseMessage:T.responseMessage??null,icon:T.icon||"warning",confirmText:T.confirmText||"Yes",cancelText:T.cancelText||"No",onConfirm:T.onConfirm||null});return}if((T==null?void 0:T.next)==="confirm-ajax"){Object.assign(s,{type:"confirm-ajax",title:T.title,message:T.message??"",responseMessage:T.responseMessage??null,icon:T.icon||"question",confirmText:T.confirmText||"Yes",cancelText:T.cancelText||"No",onConfirm:T.onConfirm});return}s.type="alert",s.confirmText="OK",s.cancelText="",T!=null&&T.responseResult?(s.status=((C=T==null?void 0:T.responseResult)==null?void 0:C.status)??(T==null?void 0:T.status),s.message="",s.responseMessage=((k=T==null?void 0:T.responseResult)==null?void 0:k.msg)??null,s.status===!1?(s.title="Error",s.icon="error",s.buttonClass="danger"):(s.title="Success",s.icon="success",s.buttonClass="success")):(T==null?void 0:T.status)===!1?(s.title="Error",s.message=(T==null?void 0:T.message)||"Something went wrong",s.responseMessage=T.responseMessage??null,s.icon="error",s.buttonClass="danger"):(s.title="Success",s.message=(T==null?void 0:T.message)||"Completed successfully",s.responseMessage=T.responseMessage??null,s.icon="success",s.buttonClass="success")}catch{n.value=!1,s.type="alert",s.title="Error",s.message="Unexpected error",s.icon="error",s.buttonClass="danger"}return}s.type==="confirm"&&x(!0)}}function w(){x(!1)}function x(C){var k;i&&(clearTimeout(i),i=null),t.value=!1,(k=a.value)==null||k.call(a,C)}return e({open:u}),(C,k)=>{var T,D,M,A,E,I,B,R;return t.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"apbd-alert appsbd-app alert-overlay",onClick:l.withModifiers(w,["self"])},[l.createElementVNode("div",{class:l.normalizeClass(["alert-card",[y.value,m.value,`alert-${s.size||"md"}`]])},[l.createElementVNode("button",{class:"close-btn",onClick:w},"✕"),s.variation==="top-color-bar"?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["color-bar",[m.value]])},null,2)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["alert-content",{"alert-content--horizontal":s.variation==="modern"}])},[s.icon?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["icon-circle",[g.value,b.value]])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(d.value)))],2)):l.createCommentVNode("",!0),l.createElementVNode("div",rW,[s.title?(l.openBlock(),l.createElementBlock("h5",nW,l.toDisplayString(l.unref(ot)(s.title)),1)):l.createCommentVNode("",!0),s.responseMessage?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[(T=s.responseMessage)!=null&&T.error?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList((D=s.responseMessage)==null?void 0:D.error,(P,L)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["d-flex message align-items-center text-danger",s.variation=="default"?" justify-content-center":"justify-content-start"]),key:"error-"+L},l.toDisplayString(P),3))),128)):l.createCommentVNode("",!0),(M=s.responseMessage)!=null&&M.info?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList((A=s.responseMessage)==null?void 0:A.info,(P,L)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["d-flex message align-items-center text-success",s.variation=="default"?" justify-content-center":"justify-content-start"]),key:"info-"+L},l.toDisplayString(P),3))),128)):l.createCommentVNode("",!0),(E=s.responseMessage)!=null&&E.debug?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:2},l.renderList((I=s.responseMessage)==null?void 0:I.debug,(P,L)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["d-flex message align-items-center text-info",s.variation=="default"?" justify-content-center":"justify-content-start"]),key:"debug-"+L},l.toDisplayString(l.unref(ot)(P)),3))),128)):l.createCommentVNode("",!0),(B=s.responseMessage)!=null&&B.warning?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:3},l.renderList((R=s.responseMessage)==null?void 0:R.warning,(P,L)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["d-flex message align-items-center text-warning",s.variation=="default"?" justify-content-center":"justify-content-start"]),key:"warning-"+L},l.toDisplayString(l.unref(ot)(P)),3))),128)):l.createCommentVNode("",!0)],64)):s.message?(l.openBlock(),l.createElementBlock("p",aW,l.toDisplayString(l.unref(ot)(s.message)),1)):l.createCommentVNode("",!0)])],2),s.showMember?(l.openBlock(),l.createElementBlock("div",iW,[l.createElementVNode("label",null,l.toDisplayString(l.unref(ot)("Team member")),1),k[0]||(k[0]=l.createElementVNode("select",{class:"form-select"},[l.createElementVNode("option",null,"Olivia Rhye"),l.createElementVNode("option",null,"John Doe")],-1))])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["buttons",[s.buttonCol?"":"flex-row-reverse",_.value]])},[l.createVNode(Xe,{color:s.confirmBtnColor,disabled:n.value,class:"justify-content-center","is-animated":n.value,onClick:S},{icon:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(v.value)))]),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(l.unref(ot)(f.value)),1)]),_:1},8,["color","disabled","is-animated"]),c.value?(l.openBlock(),l.createBlock(Xe,{key:0,color:s.cancelBtnColor,class:"justify-content-center",disabled:n.value,onClick:w},{icon:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(p.value)))]),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(l.unref(ot)(s.cancelText||"Cancel")),1)]),_:1},8,["color","disabled"])):l.createCommentVNode("",!0)],2)],2)])):l.createCommentVNode("",!0)}}},sW={install(r){const e=document.createElement("div");document.body.appendChild(e);const n=l.createApp({render(){return l.h(oW,{ref:"alert"})}}).mount(e);r.config.globalProperties.$alert=a=>n.$refs.alert.open(a)}},lW=["onMouseenter","onMouseleave"],uW={key:0,class:"apbd-toast-icon"},cW={key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fW={key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dW={key:2,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hW={key:3,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vW={class:"apbd-toast-content"},pW={key:0,class:"apbd-toast-title"},gW={class:"apbd-toast-message"},mW=["onClick"],yW={key:2,class:"apbd-toast-progress-track"},bW={__name:"AbToast",setup(r,{expose:e}){const t=l.reactive([]),n=l.ref(typeof document<"u"?document.hasFocus():!0);function a(){const p=typeof document<"u"?document.hasFocus()&&!document.hidden:!0;n.value=p,t.forEach(g=>{d(g)})}l.onMounted(()=>{typeof window<"u"&&(window.addEventListener("focus",a),window.addEventListener("blur",a),document.addEventListener("visibilitychange",a))}),l.onUnmounted(()=>{typeof window<"u"&&(window.removeEventListener("focus",a),window.removeEventListener("blur",a),document.removeEventListener("visibilitychange",a))});let i=0;const o=l.computed(()=>{const p=new Set;return t.forEach(g=>p.add(g.position)),[...p]});function s(p){const g=t.filter(y=>y.position===p);return p.startsWith("bottom")?[...g].reverse():g}function u(p,g={}){const y=++i,m={id:y,message:typeof p=="object"?p.message||"":p,title:typeof p=="object"?p.title||g.title||"":g.title||"",type:g.type||"default",design:g.design||ve.toastDesign||"default",position:g.position||ve.toastPosition||"top-right",timeout:g.timeout!==void 0?g.timeout:ve.toastTimeout||5e3,closeButton:g.closeButton!==void 0?g.closeButton:ve.toastCloseButton!==void 0?ve.toastCloseButton:!0,pauseOnHover:g.pauseOnHover!==void 0?g.pauseOnHover:ve.toastPauseOnHover!==void 0?ve.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(t.push(m),m.timeout){const b=setInterval(()=>{const _=t.find(S=>S.id===y);if(!_){clearInterval(b);return}_.isPaused||(_.remaining-=100,_.remaining<=0&&(clearInterval(b),h(y)))},100);m.timerId=b,d(m)}return y}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=t.findIndex(y=>y.id===p);if(g>-1){const y=t[g];y.timerId&&clearInterval(y.timerId),t.splice(g,1)}}function v(){t.forEach(p=>{p.timerId&&clearInterval(p.timerId)}),t.splice(0,t.length)}return e({addToast:u,dismiss:h,clearAll:v}),(p,g)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,y=>(l.openBlock(),l.createElementBlock("div",{key:y,class:l.normalizeClass(["appsbd-app apbd-toast-container",[`apbd-toast-pos-${y}`]])},[l.createVNode(l.TransitionGroup,{name:"apbd-toast",tag:"div",class:"apbd-toast-list"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s(y),m=>(l.openBlock(),l.createElementBlock("div",{key:m.id,class:l.normalizeClass(["apbd-toast",[`apbd-toast-${m.type}`,`apbd-toast-design-${m.design}`]]),onMouseenter:b=>c(m),onMouseleave:b=>f(m)},[m.type!=="default"?(l.openBlock(),l.createElementBlock("div",uW,[m.type==="success"?(l.openBlock(),l.createElementBlock("svg",cW,[...g[0]||(g[0]=[l.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),l.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),l.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)])])):m.type==="error"?(l.openBlock(),l.createElementBlock("svg",fW,[...g[1]||(g[1]=[l.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),l.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),l.createElementVNode("path",{d:"M12.5 7.5l-5 5M7.5 7.5l5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):m.type==="warning"?(l.openBlock(),l.createElementBlock("svg",dW,[...g[2]||(g[2]=[l.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),l.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),l.createElementVNode("path",{d:"M10 6.5v4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),l.createElementVNode("circle",{cx:"10",cy:"13.5",r:"0.75",fill:"currentColor"},null,-1)])])):m.type==="info"?(l.openBlock(),l.createElementBlock("svg",hW,[...g[3]||(g[3]=[l.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),l.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),l.createElementVNode("path",{d:"M10 9.5v4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),l.createElementVNode("circle",{cx:"10",cy:"6.75",r:"0.75",fill:"currentColor"},null,-1)])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.createElementVNode("div",vW,[m.title?(l.openBlock(),l.createElementBlock("div",pW,l.toDisplayString(l.unref(F)(m.title)),1)):l.createCommentVNode("",!0),l.createElementVNode("div",gW,l.toDisplayString(l.unref(F)(m.message)),1)]),m.closeButton?(l.openBlock(),l.createElementBlock("button",{key:1,class:"apbd-toast-close",onClick:b=>h(m.id),"aria-label":"Close"},[...g[4]||(g[4]=[l.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M12 4L4 12M4 4l8 8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])],8,mW)):l.createCommentVNode("",!0),m.showProgress&&m.timeout?(l.openBlock(),l.createElementBlock("div",yW,[l.createElementVNode("div",{class:"apbd-toast-progress-bar",style:l.normalizeStyle({"animation-duration":`${m.timeout}ms`,"animation-play-state":m.isPaused?"paused":"running"})},null,4)])):l.createCommentVNode("",!0)],42,lW))),128))]),_:2},1024)],2))),128))]))}},_W={install(r){const e=document.createElement("div");e.id="apbd-toast-root",e.className="appsbd-app",document.body.appendChild(e);const n=l.createApp({render(){return l.h(bW,{ref:"toast"})}}).mount(e),a=(i,o={})=>n.$refs.toast.addToast(i,o);a.success=(i,o={})=>a(i,{...o,type:"success"}),a.error=(i,o={})=>a(i,{...o,type:"error"}),a.warning=(i,o={})=>a(i,{...o,type:"warning"}),a.info=(i,o={})=>a(i,{...o,type:"info"}),a.dismiss=i=>{n.$refs.toast.dismiss(i)},a.clear=()=>{n.$refs.toast.clearAll()},r.config.globalProperties.$toast=a}},SW=[sW,_W];function wW(r){SW.forEach(e=>{r.use(e)})}const xW={install(r){const e=["AbCard","AbButton","AbInputField","AbNumberField","AbField","AbToggle","AbMultiSelect","AbFormCheck","AbInputTag","AbPopover","AbModal","AbDateTimePicker","AbCustomField","AbProgressBar"];Object.entries(PG).forEach(([t,n])=>{e.includes(t)&&r.component(t,n)}),wW(r),r.directive("tooltip",sT)}};exports.AbAvatar=i_;exports.AbBadge=u_;exports.AbButton=Xe;exports.AbCard=q1;exports.AbCarousel=k_;exports.AbChart=eT;exports.AbColorPicker=p_;exports.AbConfirmPopover=R_;exports.AbCustomField=v_;exports.AbDarkModeToggler=N_;exports.AbDateTimePicker=yn;exports.AbEasyModal=O_;exports.AbField=E_;exports.AbFileUploader=y_;exports.AbFilterPanel=b_;exports.AbFormCheck=aa;exports.AbImageRadioInput=__;exports.AbInputField=kr;exports.AbInputTag=$v;exports.AbKbd=x_;exports.AbKbdGroup=C_;exports.AbMainLayout=HG;exports.AbModal=zv;exports.AbMultiSelect=Za;exports.AbNumberField=n_;exports.AbPinInput=h_;exports.AbPopover=hi;exports.AbPricingCard=z_;exports.AbPricingContainer=$_;exports.AbPricingTable=F_;exports.AbProgressbar=e_;exports.AbRadioInput=aa;exports.AbResponseMsg=Ov;exports.AbScrollbar=Fv;exports.AbSettingsForm=l_;exports.AbSideMenuItem=f_;exports.AbSidebar=c_;exports.AbSkeleton=w_;exports.AbSlider=d_;exports.AbTab=s_;exports.AbTable=S_;exports.AbTabs=o_;exports.AbToggle=gc;exports.AbTooltip=T_;exports.AbWizard=D_;exports.AbWizardStep=M_;exports.AppsbdUIConfigure=lT;exports.ObjectToFormData=tT;exports.abAllRules=XG;exports.abCreateGettext=JT;exports.abSortParam=eW;exports.abSrcParam=tW;exports.calculateTax=ZG;exports.default=xW;exports.emitterObj=JG;exports.formatCurrency=UG;exports.globalConfig=ve;exports.hideAllPopovers=vD;exports.initTranslate=t_;exports.popoverManager=vu;exports.slugify=YG;exports.translateGetMsg=F;exports.translateGettext=ot;exports.useAlert=GG;exports.useFileValidator=m_;exports.useResponsive=WG;exports.useTheme=A_;exports.useToast=g_;
|
|
294
|
+
`||a==="")){var i=r.isSelected(a);Dr(t,a)?t[a]=t[a]&&i:t[a]=i}}),t}function R8(r){r.registerAction("legendToggleSelect","legendselectchanged",me(Ho,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",me(Ho,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",me(Ho,"inverseSelect")),r.registerAction("legendSelect","legendselected",me(Ho,"select")),r.registerAction("legendUnSelect","legendunselected",me(Ho,"unSelect"))}function Xk(r){r.registerComponentModel(Lv),r.registerComponentView(Yk),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,P8),r.registerSubTypeDefaulter("legend",function(){return"plain"}),R8(r)}var O8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,a){var i=vo(t);r.prototype.init.call(this,t,n,a),B1(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),B1(this,this.option,t)},e.type="legend.scroll",e.defaultOption=ho(Lv.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:G.color.accent50,pageIconInactiveColor:G.color.accent10,pageIconSize:15,pageTextStyle:{color:G.color.tertiary},animationDurationUpdate:800}),e}(Lv);function B1(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,la(e,t,{type:"box",ignoreSize:!!a})}var L1=Ee,Gd=["width","height"],Wd=["x","y"],z8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new L1),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new L1)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,u){var c=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,u);var f=this._controllerGroup,d=n.get("pageIconSize",!0),h=Z(d)?d:[d,d];p("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new We({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(g,y){var m=g+"DataIndex",b=Bc(n.get("pageIcons",!0)[n.getOrient().name][y],{onclick:oe(c._pageGo,c,m,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(t,n,a,i,o,s){var u=this.getSelectorGroup(),c=t.getOrient().index,f=Gd[c],d=Wd[c],h=Gd[1-c],v=Wd[1-c];o&&ei("horizontal",u,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),g=u.getBoundingRect(),y=[-g.x,-g.y],m=he(a);o&&(m[f]=a[f]-g[f]-p);var b=this._layoutContentAndController(t,i,m,c,f,h,v,d);if(o){if(s==="end")y[c]+=b[f]+p;else{var _=g[f]+p;y[c]-=_,b[d]-=_}b[f]+=g[f]+p,y[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]+y[1-c]),u.x=y[0],u.y=y[1],u.markRedraw()}return b},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,u,c){var f=this.getContentGroup(),d=this._containerGroup,h=this._controllerGroup;ei(t.get("orient"),f,t.get("itemGap"),i?a.width:null,i?null:a.height),ei("horizontal",h,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),p=h.getBoundingRect(),g=this._showController=v[o]>a[o],y=[-v.x,-v.y];n||(y[i]=f[c]);var m=[0,0],b=[-p.x,-p.y],_=se(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:m[i]+=p[o]+_}b[1-i]+=v[s]/2-p[s]/2,f.setPosition(y),d.setPosition(m),h.setPosition(b);var w={x:0,y:0};if(w[o]=g?a[o]:v[o],w[s]=Math.max(v[s],p[s]),w[u]=Math.min(0,p[u]+b[1-i]),d.__rectSize=a[o],g){var x={x:0,y:0};x[o]=Math.max(a[o]-p[o]-_,0),x[s]=w[s],d.setClipPath(new Oe({shape:x})),d.__rectSize=x[o]}else h.eachChild(function(k){k.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(t);return C.pageIndex!=null&&Ke(f,{x:C.contentPosition[0],y:C.contentPosition[1]},g?t:null),this._updatePageInfoView(t,C),w},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;N(["pagePrev","pageNext"],function(f){var d=f+"DataIndex",h=n[d]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,c=n.pageCount;i&&o&&i.setStyle("text",te(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",c==null?"":c+""):o({current:u,total:c}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Gd[o],u=Wd[o],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=S(d);p.contentPosition[o]=-g.s;for(var y=c+1,m=g,b=g,_=null;y<=h;++y)_=S(f[y]),(!_&&b.e>m.s+i||_&&!w(_,m.s))&&(b.i>m.i?m=b:m=_,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),b=_;for(var y=c-1,m=g,b=g,_=null;y>=-1;--y)_=S(f[y]),(!_||!w(b,_.s))&&m.i<b.i&&(b=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=_;return p;function S(x){if(x){var C=x.getBoundingRect(),k=C[u]+x[u];return{s:k,e:k+C[s],i:x.__legendDataIndex}}}function w(x,C){return x.e>=C&&x.s<=C+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var u=o.__legendDataIndex;i==null&&u!=null&&(i=s),u===t&&(n=s)}),n??i},e.type="legend.scroll",e}(Yk);function $8(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function F8(r){Ht(Xk),r.registerComponentModel(O8),r.registerComponentView(z8),$8(r)}function H8(r){Ht(Xk),Ht(F8)}var G8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=ho(Ls.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ls),_g=Re();function W8(r,e,t){_g(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function U8(r,e){for(var t=_g(r).coordSysRecordMap,n=t.keys(),a=0;a<n.length;a++){var i=n[a],o=t.get(i),s=o.dataZoomInfoMap;if(s){var u=e.uid,c=s.get(u);c&&(s.removeKey(u),s.keys().length||jk(t,o))}}}function jk(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Y8(r,e){var t={model:e,containsPoint:me(X8,e),dispatchAction:me(Z8,r),dataZoomInfoMap:null,controller:null},n=t.controller=new Jp(r.getZr());return N(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var u=(s.getRange||{})[a],c=u&&u(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&c&&o.push({dataZoomId:s.model.id,start:c[0],end:c[1]})}}),o.length&&t.dispatchAction(o)})}),t}function Z8(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function X8(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function j8(r,e,t){var n,a="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var u=s.model,c=u.get("disabled",!0)?!1:u.get("zoomLock",!0)?"move":!0;i[a+c]>i[a+n]&&(n=c),o=o&&u.get("preventDefaultMouseMove",!0)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint}}}}function q8(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=_g(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=_e());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Bk(i);N(o.infoList,function(s){var u=s.model.uid,c=a.get(u)||a.set(u,Y8(t,s.model)),f=c.dataZoomInfoMap||(c.dataZoomInfoMap=_e());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,u=i.dataZoomInfoMap;if(u){var c=u.keys()[0];c!=null&&(s=u.get(c))}if(!s){jk(a,i);return}var f=j8(u,i,t);o.enable(f.controlType,f.opt),$c(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var K8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),W8(a,t,{pan:oe(Ud.pan,this),zoom:oe(Ud.zoom,this),scrollMove:oe(Ud.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){U8(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(hg),Ud={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=Yd[e](null,[n.originX,n.originY],o,t,r),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],c=Math.max(1/n.scale,0);i[0]=(i[0]-u)*c+u,i[1]=(i[1]-u)*c+u;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ci(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:V1(function(r,e,t,n,a,i){var o=Yd[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:V1(function(r,e,t,n,a,i){var o=Yd[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function V1(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var u=r(o,s,e,t,n,a);if(ci(u,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Yd={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem,u=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,n,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function Q8(r){vg(r),r.registerComponentModel(G8),r.registerComponentView(K8),q8(r)}var J8=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ho(Ls.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:G.color.accent10,borderRadius:0,backgroundColor:G.color.transparent,dataBackground:{lineStyle:{color:G.color.accent30,width:.5},areaStyle:{color:G.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:G.color.accent40,width:.5},areaStyle:{color:G.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:G.color.neutral00,borderColor:G.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:G.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:G.color.tertiary},brushSelect:!0,brushStyle:{color:G.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:G.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(Ls),Go=Oe,eG=1,Zd=30,tG=7,Wo="horizontal",P1="vertical",rG=5,nG=["line","bar","candlestick","scatter"],aG={easing:"cubicOut",duration:100,delay:0},iG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=oe(this._onBrush,this),this._onBrushEnd=oe(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),$c(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Wu(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Ee;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?tG:0,o=Or(t,n).refContainer,s=this._findCoordRect(),u=t.get("defaultLocationEdgeGap",!0)||0,c=this._orient===Wo?{right:o.width-s.x-s.width,top:o.height-Zd-u-i,width:s.width,height:Zd}:{right:u,top:s.y,width:Zd,height:s.height},f=vo(t.option);N(["right","top","width","height"],function(h){f[h]==="ph"&&(f[h]=c[h])});var d=Ft(f,o);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===P1&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,u=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Wo&&!o?{scaleY:u?1:-1,scaleX:1}:a===Wo&&o?{scaleY:u?1:-1,scaleX:-1}:a===P1&&!o?{scaleY:u?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:u?-1:1,scaleX:-1,rotation:Math.PI/2});var c=t.getBoundingRect([s]);t.x=n.x-c.x,t.y=n.y-c.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new Go({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Go({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:oe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),u=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(u==null)return;var c=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||u!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var d=o.getDataExtent(t.thisDim),h=o.getDataExtent(u),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var p=[0,n[1]],g=[0,n[0]],y=[[n[0],0],[0,0]],m=[],b=g[1]/Math.max(1,o.count()-1),_=n[0]/(d[1]-d[0]),S=t.thisAxis.type==="time",w=-b,x=Math.round(o.count()/n[0]),C;o.each([t.thisDim,u],function(A,E,I){if(x>0&&I%x){S||(w+=b);return}w=S?(+A-d[0])*_:w+b;var B=E==null||isNaN(E)||E==="",R=B?0:ze(E,h,p,!0);B&&!C&&I?(y.push([y[y.length-1][0],0]),m.push([m[m.length-1][0],0])):!B&&C&&(y.push([w,0]),m.push([w,0])),B||(y.push([w,R]),m.push([w,R])),C=B}),c=this._shadowPolygonPts=y,f=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=u,this._shadowSize=[n[0],n[1]];var k=this.dataZoomModel;function T(A){var E=k.getModel(A?"selectedDataBackground":"dataBackground"),I=new Ee,B=new Br({shape:{points:c},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new An({shape:{points:f},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(B),I.add(R),I}for(var D=0;D<3;D++){var M=T(D===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var u=t.getAxisProxy(o,s).getTargetSeriesModels();N(u,function(c){if(!a&&!(n!==!0&&De(nG,c.get("type"))<0)){var f=i.getComponent(Qn(o),s).axis,d=oG(o),h,v=c.coordinateSystem;d!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),d=c.getData().mapDimension(d);var p=c.getData().mapDimension(o);a={thisAxis:f,series:c,thisDim:p,otherDim:d,otherAxisInverse:h}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,u=this.dataZoomModel,c=this.api,f=u.get("borderRadius")||0,d=u.get("brushSelect"),h=n.filler=new Go({silent:d,style:{fill:u.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Go({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:u.get("dataBackgroundColor")||u.get("borderColor"),lineWidth:eG,fill:G.color.transparent}})),N([0,1],function(_){var S=u.get("handleIcon");!Yu[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,process.env.NODE_ENV!=="production"&&an("handleIcon now needs 'path://' prefix when using a path string"));var w=Vt(S,-1,0,2,2,null,!0);w.attr({cursor:sG(this._orient),draggable:!0,drift:oe(this._onDragMove,this,_),ondragend:oe(this._onDragEnd,this),onmouseover:oe(this._showDataInfo,this,!0),onmouseout:oe(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),C=u.get("handleSize");this._handleHeight=de(C,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(u.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=u.getModel(["emphasis","handleStyle"]).getItemStyle(),Pu(w);var k=u.get("handleColor");k!=null&&(w.style.fill=k),o.add(a[_]=w);var T=u.getModel("textStyle"),D=u.get("handleLabel")||{},M=D.show||!1;t.add(i[_]=new We({silent:!0,invisible:!M,style:lt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var v=h;if(d){var p=de(u.get("moveHandleSize"),s[1]),g=n.moveHandle=new Oe({style:u.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),y=p*.8,m=n.moveHandleIcon=Vt(u.get("moveHandleIcon"),-y/2,-y/2,y,y,G.color.neutral00,!0);m.silent=!0,m.y=s[1]+p/2-.5,g.ensureState("emphasis").style=u.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));v=n.moveZone=new Oe({invisible:!0,shape:{y:s[1]-b,height:p+b}}),v.on("mouseover",function(){c.enterEmphasis(g)}).on("mouseout",function(){c.leaveEmphasis(g)}),o.add(g),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:"default",drift:oe(this._onDragMove,this,"all"),ondragstart:oe(this._showDataInfo,this,!0),ondragend:oe(this._onDragEnd,this),onmouseover:oe(this._showDataInfo,this,!0),onmouseout:oe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ze(t[0],[0,100],n,!0),ze(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),u=[0,100];ci(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?ze(s.minSpan,u,o,!0):null,s.maxSpan!=null?ze(s.maxSpan,u,o,!0):null);var c=this._range,f=this._range=_n([ze(i[0],o,u,!0),ze(i[1],o,u,!0)]);return!c||c[0]!==f[0]||c[1]!==f[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=_n(a.slice()),o=this._size;N([0,1],function(v){var p=n.handles[v],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[v]+(v?-1:1),y:o[1]/2-g/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var u=n.dataShadowSegs,c=[0,i[0],i[1],o[0]],f=0;f<u.length;f++){var d=u[f],h=d.getClipPath();h||(h=new Oe,d.setClipPath(h)),h.setShape({x:c[f],y:0,width:c[f+1]-c[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var u=n.findRepresentativeAxisProxy();if(u){var c=u.getAxisModel().axis,f=this._range,d=t?u.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:u.getDataValueWindow();s=[this._formatLabel(d[0],c),this._formatLabel(d[1],c)]}}var h=_n(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(p){var g=Qa(a.handles[p].parent,this.group),y=Ic(p===0?"right":"left",g),m=this._handleWidth/2+rG,b=ra([h[p]+(p===0?-m:m),this._size[1]/2],g);i[p].setStyle({x:b[0],y:b[1],verticalAlign:o===Wo?"middle":y,align:o===Wo?y:"center",text:s[p]})}},e.prototype._formatLabel=function(t,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=t==null||isNaN(t)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return ue(i)?i(t,s):te(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:a,u=this._displayables,c=u.handleLabels;c[0].attr("invisible",!s),c[1].attr("invisible",!s),u.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](u.moveHandle,1)},e.prototype._onDragMove=function(t,n,a,i){this._dragging=!0,Mn(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ra([n,a],o,!0),u=this._updateInterval(t,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),u&&c&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new ke(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],u=this._handleEnds=[a.x,a.x+a.width],c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();ci(0,u,o,0,c.minSpan!=null?ze(c.minSpan,s,o,!0):null,c.maxSpan!=null?ze(c.maxSpan,s,o,!0):null),this._range=_n([ze(u[0],o,s,!0),ze(u[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Mn(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Go({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,u=this._displayables.sliderGroup,c=u.transformCoordToLocal(t,n),f=u.transformCoordToLocal(s.x,s.y),d=this._size;c[0]=Math.max(Math.min(d[0],c[0]),0),o.setShape({x:f[0],y:0,width:c[0]-f[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?aG:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=Bk(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(hg);function oG(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function sG(r){return r==="vertical"?"ns-resize":"ew-resize"}function lG(r){r.registerComponentModel(J8),r.registerComponentView(iG),vg(r)}function uG(r){Ht(Q8),Ht(lG)}var qk={get:function(r,e,t){var n=he((cG[r]||{})[e]);return t&&Z(n)?n[n.length-1]:n}},cG={color:{active:["#006edd","#e0ffff"],inactive:[G.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},R1=Mt.mapVisual,fG=Mt.eachVisual,dG=Z,O1=N,hG=_n,vG=ze,vc=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&l8(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=oe(t,this),this.controllerVisuals=k1(this.option.controller,n,t),this.targetVisuals=k1(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,n=this.option.seriesIndex;n==null&&t==null&&(n="all");var a=co(this.ecModel,"series",{index:n,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return X(a,function(i){return i.componentIndex})},e.prototype.eachTargetSeries=function(t,n){N(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,u=i.formatter,c;a=a||["<",">"],Z(t)&&(t=t.slice(),c=!0);var f=n?t:c?[d(t[0]),d(t[1])]:d(t);if(te(u))return u.replace("{value}",c?f[0]:f).replace("{value2}",c?f[1]:f);if(ue(u))return c?u(t[0],t[1]):u(t);if(c)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function d(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=hG([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Ce(i,a),Ce(o,a);var s=this.isCategory();u.call(this,i),u.call(this,o),c.call(this,i,"inRange","outOfRange"),f.call(this,o);function u(d){dG(n.color)&&!d.inRange&&(d.inRange={color:n.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function c(d,h,v){var p=d[h],g=d[v];p&&!g&&(g=d[v]={},O1(p,function(y,m){if(Mt.isValidType(m)){var b=qk.get(m,"inactive",s);b!=null&&(g[m]=b,m==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function f(d){var h=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,v=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),y=g||"roundRect";O1(this.stateList,function(m){var b=this.itemSize,_=d[m];_||(_=d[m]={color:s?p:[p]}),_.symbol==null&&(_.symbol=h&&he(h)||(s?y:[y])),_.symbolSize==null&&(_.symbolSize=v&&he(v)||(s?b[0]:[b[0],b[0]])),_.symbol=R1(_.symbol,function(x){return x==="none"?y:x});var S=_.symbolSize;if(S!=null){var w=-1/0;fG(S,function(x){x>w&&(w=x)}),_.symbolSize=R1(S,function(x){return vG(x,[0,w],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:G.color.transparent,borderColor:G.color.borderTint,contentColor:G.color.theme[0],inactiveColor:G.color.disabled,borderWidth:0,padding:G.size.m,textGap:10,precision:0,textStyle:{color:G.color.secondary}},e}(Ne),z1=[20,140],pG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=z1[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=z1[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):Z(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),N(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=_n((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent(),i=se(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=t)&&(i&&n[1]>=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,u){t[0]<=s&&s<=t[1]&&i.push(u)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=$1(this,"outOfRange",this.getExtent()),a=$1(this,"inRange",this.option.range.slice()),i=[];function o(v,p){i.push({value:v,color:t(v,p)})}for(var s=0,u=0,c=a.length,f=n.length;u<f&&(!a.length||n[u]<=a[0]);u++)n[u]<a[s]&&o(n[u],"outOfRange");for(var d=1;s<c;s++,d=0)d&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var d=1;u<f;u++)(!a.length||a[a.length-1]<n[u])&&(d&&(i.length&&o(i[i.length-1].value,"outOfRange"),d=0),o(n[u],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ho(vc.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:G.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:G.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:G.color.shadow}}),e}(vc);function $1(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}var Kk=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=Us(n.get("padding")||0),i=t.getBoundingRect();t.add(new Oe({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var u=o.get("contentColor");s.color=u}function c(v){return s[v]}function f(v,p){s[v]=p}var d=o.controllerVisuals[i||o.getValueState(t)],h=Mt.prepareVisualTypes(d);return N(h,function(v){var p=d[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",p=d.__alphaForOpacity),Mt.dependsOn(v,n)&&p&&p.applyVisual(t,c,f)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api,i=Or(n,a).refContainer;Mp(t,n.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e}(Et),F1=[["left","right","width"],["top","bottom","height"]];function Qk(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=F1[o],u=[0,null,10],c={},f=0;f<3;f++)c[F1[1-o][f]]=u[f],c[s[f]]=f===2?t[0]:n[s[f]];var d=[["x","width",3],["y","height",0]][o],h=Ft(c,i,n.padding);return s[(h.margin[d[2]]||0)+h[d[0]]+h[d[1]]*.5<i[d[1]]*.5?0:1]}function hu(r,e){return N(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Zr=ze,gG=N,H1=Math.min,Xd=Math.max,mG=12,yG=6,bG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=oe(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=oe(this._hideIndicator,this)},e.prototype.doRender=function(t,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),u=o.itemSize,c=this._shapes.mainGroup,f=this._applyTransform([u[0]/2,a===0?-s:u[1]+s],c),d=this._applyTransform(a===0?"bottom":"top",c),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new We({style:lt(v,{x:f[0],y:f[1],verticalAlign:v.get("verticalAlign")||(h==="horizontal"?"middle":d),align:v.get("align")||(h==="horizontal"?d:"center"),text:i})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,u=Qk(n,this.api,i),c=a.mainGroup=this._createBarGroup(u),f=new Ee;c.add(f),f.add(a.outOfRange=G1()),f.add(a.inRange=G1(null,s?U1(this._orient):null,oe(this._dragHandle,this,"all",!1),oe(this._dragHandle,this,"all",!0))),f.setClipPath(new Oe({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var d=n.textStyleModel.getTextRect("国"),h=Xd(d.width,d.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,c,0,i,h,o),this._createHandle(n,c,1,i,h,o)),this._createIndicator(n,c,i,h,o),t.add(c)},e.prototype._createHandle=function(t,n,a,i,o,s){var u=oe(this._dragHandle,this,a,!1),c=oe(this._dragHandle,this,a,!0),f=nn(t.get("handleSize"),i[0]),d=Vt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=U1(this._orient);d.attr({cursor:h,draggable:!0,drift:u,ondragend:c,onmousemove:function(m){Mn(m.event)}}),d.x=i[0]/2,d.useStyle(t.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Wa(d,!0),n.add(d);var v=this.visualMapModel.textStyleModel,p=new We({cursor:h,draggable:!0,drift:u,onmousemove:function(m){Mn(m.event)},ondragend:c,style:lt(v,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var g=[f,0],y=this._shapes;y.handleThumbs[a]=d,y.handleLabelPoints[a]=g,y.handleLabels[a]=p},e.prototype._createIndicator=function(t,n,a,i,o){var s=nn(t.get("indicatorSize"),a[0]),u=Vt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);u.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var c=t.getModel("indicatorStyle").getItemStyle();if(u instanceof _r){var f=u.style;u.useStyle(Y({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},c))}else u.useStyle(c);n.add(u);var d=this.visualMapModel.textStyleModel,h=new We({silent:!0,invisible:!0,style:lt(d,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:yG)+a[0]/2,0],p=this._shapes;p.indicator=u,p.indicatorLabel=h,p.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():W1(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Zr(n[0],a,i,!0),Zr(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];ci(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[Zr(i[0],o,s,!0),Zr(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,u=this._createBarVisual(this._dataInterval,a,s,"inRange"),c=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),i.outOfRange.setStyle({fill:c.barColor}).setShape("points",c.barPoints),this._updateHandle(s,u)},e.prototype._createBarVisual=function(t,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),u=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],c=this._createBarPoints(a,u);return{barColor:new fp(0,0,0,1,s),barPoints:c,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var u=t[0]+o*s;if(u>t[1])break;i.push({color:this.getControllerVisual(u,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new Ee(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,u=i.itemSize,c=i.getExtent(),f=this._applyTransform("left",a.mainGroup);gG([0,1],function(d){var h=o[d];h.setStyle("fill",n.handlesColor[d]),h.y=t[d];var v=Zr(t[d],[0,u[1]],c,!0),p=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=p/u[0],h.x=u[0]-p/2;var g=ra(a.handleLabelPoints[d],Qa(h,this.group));if(this._orient==="horizontal"){var y=f==="left"||f==="top"?(u[0]-p)/2:(u[0]-p)/-2;g[1]+=y}s[d].setStyle({x:g[0],y:g[1],text:i.formatValueText(this._dataInterval[d]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),u=o.itemSize,c=[0,u[1]],f=this._shapes,d=f.indicator;if(d){d.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",h),p=this.getControllerVisual(t,"symbolSize"),g=Zr(t,s,c,!0),y=u[0]-p/2,m={x:d.x,y:d.y};d.y=g,d.x=y;var b=ra(f.indicatorLabelPoint,Qa(d,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),w=this._orient,x=w==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var C={x:y,y:g,style:{fill:v}},k={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};d.x=m.x,d.y=m.y,d.animateTo(C,T),_.animateTo(k,T)}else d.attr(C),_.attr(k);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this.api.enterBlur(D[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=H1(Xd(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=H1(Xd(o[0],t),o[1]);var u=_G(a,s,o),c=[t-u,t+u],f=Zr(t,o,s,!0),d=[Zr(c[0],o,s,!0),Zr(c[1],o,s,!0)];c[0]<o[0]&&(d[0]=-1/0),c[1]>o[1]&&(d[1]=1/0),n&&(d[0]===-1/0?this._showIndicator(f,d[1],"< ",u):d[1]===1/0?this._showIndicator(f,d[0],"> ",u):this._showIndicator(f,f,"≈ ",u));var h=this._hoverLinkDataIndices,v=[];(n||W1(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=NB(h,v);this._dispatchHighDown("downplay",hu(p[0],a)),this._dispatchHighDown("highlight",hu(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(Ui(t.target,function(u){var c=Te(u);if(c.dataIndex!=null)return n=c,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",hu(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,a,i){var o=Qa(n,i?null:this.group);return Z(t)?ra(t,o,a):Ic(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(Kk);function G1(r,e,t,n){return new Br({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){Mn(a.event)},ondragend:n})}function _G(r,e,t){var n=mG/2,a=r.get("hoverLinkDataSize");return a&&(n=Zr(a,e,t,!0)/2),n}function W1(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function U1(r){return r==="vertical"?"ns-resize":"ew-resize"}var SG={type:"selectDataRange",event:"dataRangeSelected",update:"update"},wG=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},xG=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(u8(n.stateList,n.targetVisuals,oe(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(oe(CG,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function CG(r,e,t,n){for(var a=e.targetVisuals[n],i=Mt.prepareVisualTypes(a),o={color:Zs(r.getData(),"color")},s=0,u=i.length;s<u;s++){var c=i[s],f=a[c==="opacity"?"__alphaForOpacity":c];f&&f.applyVisual(t,d,h)}return o.color;function d(v){return o[v]}function h(v,p){o[v]=p}}var Y1=N;function kG(r){var e=r&&r.visualMap;Z(e)||(e=e?[e]:[]),Y1(e,function(t){if(t){Pi(t,"splitList")&&!Pi(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&Z(n)&&Y1(n,function(a){fe(a)&&(Pi(a,"start")&&!Pi(a,"min")&&(a.min=a.start),Pi(a,"end")&&!Pi(a,"max")&&(a.max=a.end))})}})}function Pi(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Z1=!1;function Jk(r){Z1||(Z1=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(SG,wG),N(xG,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(kG))}function TG(r){r.registerComponentModel(pG),r.registerComponentView(bG),Jk(r)}var DG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],MG[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=he(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(u){return u=he(u),s!=="inRange"&&(u.visual=null),u}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=Mt.listVisualTypes(),i=this.isCategory();N(t.pieces,function(s){N(a,function(u){s.hasOwnProperty(u)&&(n[u]=1)})}),N(n,function(s,u){var c=!1;N(this.stateList,function(f){c=c||o(t,f,u)||o(t.target,f,u)},this),!c&&N(this.stateList,function(f){(t[f]||(t[f]={}))[u]=qk.get(u,f==="inRange"?"active":"inactive",i)})},this);function o(s,u,c){return s&&s[u]&&s[u].hasOwnProperty(c)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,N(i,function(u,c){var f=this.getSelectedMapKey(u);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;N(i,function(u,c){var f=this.getSelectedMapKey(u);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=he(t)},e.prototype.getValueState=function(t){var n=Mt.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(u,c){var f=Mt.findPieceIndex(u,a);f===t&&o.push(c)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,d){var h=i.getRepresentValue({interval:f});d||(d=i.getValueState(h));var v=t(h,d);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:n.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var u=s[0].interval[0];u!==-1/0&&s.unshift({interval:[-1/0,u]}),u=s[s.length-1].interval[1],u!==1/0&&s.push({interval:[u,1/0]})}var c=-1/0;return N(s,function(f){var d=f.interval;d&&(d[0]>c&&o([c,d[0]],"outOfRange"),o(d.slice()),c=d[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=ho(vc.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(vc),MG={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var u=o===a-1?n[1]:s+i;r.push({interval:[s,u],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),vm(r),N(r,function(c,f){c.index=f,c.text=this.formatValueText(c.interval)},this)},categories:function(r){var e=this.option;N(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),X1(e,r)},pieces:function(r){var e=this.option;N(e.pieces,function(t,n){fe(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],u=[1,0,1],c=[-1/0,1/0],f=[],d=0;d<2;d++){for(var h=[["gte","gt","min"],["lte","lt","max"]][d],v=0;v<3&&o[d]==null;v++)o[d]=t[h[v]],s[d]=u[v],f[d]=v===2;o[d]==null&&(o[d]=c[d])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Mt.retrieveVisuals(t),r.push(a)},this),X1(e,r),vm(r),N(r,function(t){var n=t.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function X1(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var EG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,u=this._getViewData(),c=u.endsText,f=rr(n.get("showLabel",!0),!c),d=!n.get("selectedMode");c&&this._renderEndsText(t,c[0],s,f,o),N(u.viewPieceList,function(h){var v=h.piece,p=new Ee;p.onclick=oe(this._onItemClick,this,v),this._enableHoverLink(p,h.indexInModelPieceList);var g=n.getRepresentValue(v);if(this._createItemSymbol(p,g,[0,0,s[0],s[1]],d),f){var y=this.visualMapModel.getValueState(g),m=i.get("align")||o;p.add(new We({style:lt(i,{x:m==="right"?-a:s[0]+a,y:s[1]/2,text:v.text,verticalAlign:i.get("verticalAlign")||"middle",align:m,opacity:se(i.get("opacity"),y==="outOfRange"?.5:1)}),silent:d}))}t.add(p)},this),c&&this._renderEndsText(t,c[1],s,f,o),ei(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:hu(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return Qk(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new Ee,u=this.visualMapModel.textStyleModel;s.add(new We({style:lt(u,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=X(t.getPieceList(),function(s,u){return{piece:s,indexInModelPieceList:u}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a,i){var o=Vt(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=he(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,N(o,function(u,c){o[c]=c===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Kk);function AG(r){r.registerComponentModel(DG),r.registerComponentView(EG),Jk(r)}function NG(r){Ht(TG),Ht(AG)}var IG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new jw(this),By(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),By(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ar},e}(Ne),BG=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Et);function LG(r){r.registerComponentModel(IG),r.registerComponentView(BG)}const VG={__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(r){Ht([l$,E$,eF,W$,H4,QF,l3,NH,CH,N4,Z3,r6,d8,s8,H8,uG,NG,_8,T8,I8,H6,LG]);const e=r,t=l.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=l.computed(()=>e.option&&Object.keys(e.option).length>0?e.option:t.value);return(a,i)=>(l.openBlock(),l.createElementBlock("div",{class:"ab-chart-container",style:l.normalizeStyle({height:r.height})},[l.createVNode(l.unref(n$),{option:n.value,autoresize:"",class:"ab-chart"},null,8,["option"])],4))}},eT=Pt(VG,[["__scopeId","data-v-2a8d2af6"]]),PG=Object.freeze(Object.defineProperty({__proto__:null,AbAvatar:i_,AbBadge:u_,AbButton:Xe,AbCard:q1,AbCarousel:k_,AbChart:eT,AbColorPicker:p_,AbConfirmPopover:R_,AbCustomField:v_,AbDarkModeToggler:N_,AbDateTimePicker:yn,AbEasyModal:O_,AbField:E_,AbFileUploader:y_,AbFilterPanel:b_,AbFormCheck:aa,AbImageRadioInput:__,AbInputField:kr,AbInputTag:$v,AbKbd:x_,AbKbdGroup:C_,AbModal:zv,AbMultiSelect:Za,AbNumberField:n_,AbPinInput:h_,AbPopover:hi,AbPricingCard:z_,AbPricingContainer:$_,AbPricingTable:F_,AbProgressbar:e_,AbRadioInput:aa,AbResponseMsg:Ov,AbScrollbar:Fv,AbSettingsForm:l_,AbSideMenuItem:f_,AbSidebar:c_,AbSkeleton:w_,AbSlider:d_,AbTab:s_,AbTable:S_,AbTabs:o_,AbToggle:gc,AbTooltip:T_,AbWizard:D_,AbWizardStep:M_},Symbol.toStringTag,{value:"Module"})),RG={class:"apbd-main-content"},OG={class:"apbd-app-body"},zG={key:1,class:"apbd-page-footer"},$G={key:1,class:"apbd-right-sidebar"},FG={__name:"AbMainLayout",props:{headerClass:{type:String,default:"apbd-bordered"},footerClass:{type:String,default:""},gradient:{type:Boolean,default:!1}},setup(r,{expose:e}){const t=l.useSlots(),n=()=>window.innerWidth<576,a=l.ref(!0),i=l.ref(!0);l.onMounted(()=>{n()&&(a.value=!1)});const o=u=>{typeof u=="boolean"?a.value=u:a.value=!a.value},s=u=>{typeof u=="boolean"?i.value=u:i.value=!i.value};return l.provide("layoutState",{isLeftSidebarOpen:a,isRightSidebarOpen:i,toggleLeftSidebar:o,toggleRightSidebar:s}),e({isLeftSidebarOpen:a,isRightSidebarOpen:i,toggleLeftSidebar:o,toggleRightSidebar:s}),(u,c)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["apbd-container",{"ab-gradient":r.gradient}])},[l.createVNode(l.Transition,{name:"apbd-sidebar-backdrop"},{default:l.withCtx(()=>[l.unref(t).leftSidebar&&a.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"apbd-sidebar-backdrop",onClick:c[0]||(c[0]=f=>o(!1))})):l.createCommentVNode("",!0)]),_:1}),l.unref(t).leftSidebar?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["apbd-left-sidebar",{"sidebar-open":a.value}])},[l.renderSlot(u.$slots,"leftSidebar")],2)):l.createCommentVNode("",!0),l.createElementVNode("div",RG,[l.unref(t).pageHeader?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["apbd-page-header",r.headerClass])},[l.renderSlot(u.$slots,"pageHeader",{headerClass:r.headerClass})],2)):l.createCommentVNode("",!0),l.createElementVNode("div",OG,[l.unref(t).bodyHeader?l.renderSlot(u.$slots,"bodyHeader",{key:0}):l.createCommentVNode("",!0),l.renderSlot(u.$slots,"body"),l.unref(t).bodyFooter?l.renderSlot(u.$slots,"bodyFooter",{key:1}):l.createCommentVNode("",!0)]),l.unref(t).pageFooter?(l.openBlock(),l.createElementBlock("div",zG,[l.renderSlot(u.$slots,"pageFooter")])):l.createCommentVNode("",!0)]),l.unref(t).rightSidebar&&i.value?(l.openBlock(),l.createElementBlock("div",$G,[l.renderSlot(u.$slots,"rightSidebar")])):l.createCommentVNode("",!0)],2))}};function HG(){const{appContext:r}=l.getCurrentInstance();return{alert:t=>r.config.globalProperties.$alert(t)}}function GG(r={}){const{tabMaxWidth:e=0}=r,t=l.ref(window.innerWidth),n=()=>{t.value=window.innerWidth};l.onMounted(()=>window.addEventListener("resize",n)),l.onUnmounted(()=>window.removeEventListener("resize",n));const a=l.computed(()=>{const s=t.value;return s<576?"xs":s<768?"sm":s<992?"md":s<1200?"lg":s<1400?"xl":"xxl"}),i=l.computed(()=>t.value),o=l.computed(()=>{const s=a.value;return s==="xs"||s==="sm"||e>0&&i.value<=e});return{ScreenWidth:i,ScreenType:a,isUptoTab:o}}function WG(r,e="USD",t="en-US"){return new Intl.NumberFormat(t,{style:"currency",currency:e}).format(r)}function UG(r){return r.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"")}function YG(r,e=0){const t=r*e/100;return{tax:t,total:r+t}}function tT(r,e,t){var n=e||new FormData;let a=null;for(const i in r)if(r.hasOwnProperty(i))if(a=t?`${t}[${i}]`:i,typeof r[i]=="object"&&!(r[i]instanceof File))tT(r[i],n,a);else if(r[i]instanceof File)n.append(a,r[i]);else{let o=r[i];(o==="true"||o==="false"||o===!0||o===!1)&&(o=o==="true"||o===!0?1:0),n.append(a,o)}return n}const gn=r=>r.field.replace("_"," "),ZG={required:(r,e,t)=>Fr.required(r,e)?!0:ot("%{fld_name} is required",{fld_name:gn(t)}),numeric:(r,e,t)=>Fr.numeric(r,e)?!0:ot("%{fld_name} should be numeric",{fld_name:gn(t)}),email:(r,e,t)=>Fr.email(r,e)?!0:ot("%{fld_name} not a valid email address",{fld_name:gn(t)}),min:(r,e,t)=>Fr.min(r,e),min_value:(r,e,t)=>Fr.min_value(r,e)?!0:ot("%{fld_name} should be more than "+e[0],{fld_name:gn(t)}),max:(r,e,t)=>Fr.max(r,e),max_value:(r,e,t)=>Fr.max_value(r,e)?!0:ot("%{fld_name} should be less than "+e[0],{fld_name:gn(t)}),confirmed:(r,e,t)=>Fr.confirmed(r,e)?!0:ot("%{fld_name} does not match with its password",{fld_name:gn(t)}),url:(r,e,t)=>Fr.url(r,e)?!0:ot("%{fld_name} is invalid",{fld_name:gn(t)}),isUnique:async(r,e,t)=>(t=="email"&&!Fr.email(r,e,t)||r.length<3,!0),isValid:async(r,e,t)=>{if(e[0]=="custom"){let n=3;if(e[1]!=null)if(e[2]!=null&&(n=e[2]),r.length>=n){let a=await store.dispatch("IsValidCF",{fld_name:e[1],fld_value:r});return a.status?!0:translate.interpolate(a.msg,{fld_name:gn(t)})}else return ot("%{fld_name} length is not valid, please check it",{fld_name:gn(t)});return!0}else return!0}};function XG(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Sg={exports:{}};function wg(){}wg.prototype={on:function(r,e,t){var n=this.e||(this.e={});return(n[r]||(n[r]=[])).push({fn:e,ctx:t}),this},once:function(r,e,t){var n=this;function a(){n.off(r,a),e.apply(t,arguments)}return a._=e,this.on(r,a,t)},emit:function(r){var e=[].slice.call(arguments,1),t=((this.e||(this.e={}))[r]||[]).slice(),n=0,a=t.length;for(n;n<a;n++)t[n].fn.apply(t[n].ctx,e);return this},off:function(r,e){var t=this.e||(this.e={}),n=t[r],a=[];if(n&&e)for(var i=0,o=n.length;i<o;i++)n[i].fn!==e&&n[i].fn._!==e&&a.push(n[i]);return a.length?t[r]=a:delete t[r],this}};Sg.exports=wg;Sg.exports.TinyEmitter=wg;var jG=Sg.exports,qG=jG,KG=new qG;const Ql=XG(KG),QG={$on:(...r)=>Ql.on(...r),$once:(...r)=>Ql.once(...r),$off:(...r)=>Ql.off(...r),$emit:(...r)=>Ql.emit(...r)};class JG{constructor(){this.prop="",this.ord="asc"}}class eW{constructor(){this.prop="",this.val="",this.opr="eq"}}const tW={class:"alert-text"},rW={key:0,class:"title"},nW={key:2,class:"message"},aW={key:1,class:"field"},iW={__name:"AbBaseAlert",setup(r,{expose:e}){const t=l.ref(!1),n=l.ref(!1),a=l.ref(null);let i=null;const o=()=>({type:"alert",title:"",message:"",responseMessage:null,confirmText:"",cancelText:"",icon:"",timer:null,onConfirm:null,buttonCol:!1,variation:"default",size:"md",confirmBtnColor:"primary",cancelBtnColor:"light",confirmBtnIcon:"save",cancelBtnIcon:"cancel"}),s=l.reactive(o());function u(C={}){return Object.assign(s,o()),n.value=!1,t.value=!0,Object.assign(s,C),s.timer&&s.type==="alert"&&(i=setTimeout(()=>{x(!0)},s.timer)),new Promise(k=>{a.value=k})}const c=l.computed(()=>s.type==="confirm"||s.type==="confirm-ajax"),f=l.computed(()=>s.confirmText||(s.type==="alert"?"OK":"Yes")),d=l.computed(()=>({success:I_,error:B_,warning:L_,info:V_,question:P_})[s.icon]||s.icon),h={save:IT,cancel:$a,delete:PT},v=l.computed(()=>h[s.confirmBtnIcon]||s.confirmBtnIcon),p=l.computed(()=>h[s.cancelBtnIcon]||s.cancelBtnIcon),g=l.computed(()=>({success:"icon-success",error:"icon-error",warning:"icon-warning",info:"icon-info",question:"icon-question"})[s.icon]||""),y=l.computed(()=>({default:"",modern:"alert-card--modern",minimal:"alert-card--minimal","top-color-bar":"alert-card--top-color-bar"})[s.variation]||""),m=l.computed(()=>s.variation!=="top-color-bar"?"":{success:"bar-success",error:"bar-error",warning:"bar-warning",info:"bar-info",question:"bar-question"}[s.icon]||""),b=l.computed(()=>s.variation==="minimal"?"icon-minimal":""),_=l.computed(()=>s.variation==="modern"?"buttons--row":s.variation==="minimal"?"buttons--minimal":"");l.computed(()=>s.variation==="minimal"?"cancel-link":s.variation==="modern"?"btn-outline":"btn-light");async function S(){var C,k;if(!n.value){if(s.type==="alert"){x(!0);return}if((s.type==="confirm"||s.type==="confirm-ajax")&&s.onConfirm){n.value=!0;try{const T=await s.onConfirm();if(n.value=!1,(T==null?void 0:T.next)==="close"){x((T==null?void 0:T.status)??!0);return}if((T==null?void 0:T.next)==="confirm"){Object.assign(s,{type:"confirm",title:T.title,message:T.message??"",responseMessage:T.responseMessage??null,icon:T.icon||"warning",confirmText:T.confirmText||"Yes",cancelText:T.cancelText||"No",onConfirm:T.onConfirm||null});return}if((T==null?void 0:T.next)==="confirm-ajax"){Object.assign(s,{type:"confirm-ajax",title:T.title,message:T.message??"",responseMessage:T.responseMessage??null,icon:T.icon||"question",confirmText:T.confirmText||"Yes",cancelText:T.cancelText||"No",onConfirm:T.onConfirm});return}s.type="alert",s.confirmText="OK",s.cancelText="",T!=null&&T.responseResult?(s.status=((C=T==null?void 0:T.responseResult)==null?void 0:C.status)??(T==null?void 0:T.status),s.message="",s.responseMessage=((k=T==null?void 0:T.responseResult)==null?void 0:k.msg)??null,s.status===!1?(s.title="Error",s.icon="error",s.buttonClass="danger"):(s.title="Success",s.icon="success",s.buttonClass="success")):(T==null?void 0:T.status)===!1?(s.title="Error",s.message=(T==null?void 0:T.message)||"Something went wrong",s.responseMessage=T.responseMessage??null,s.icon="error",s.buttonClass="danger"):(s.title="Success",s.message=(T==null?void 0:T.message)||"Completed successfully",s.responseMessage=T.responseMessage??null,s.icon="success",s.buttonClass="success")}catch{n.value=!1,s.type="alert",s.title="Error",s.message="Unexpected error",s.icon="error",s.buttonClass="danger"}return}s.type==="confirm"&&x(!0)}}function w(){x(!1)}function x(C){var k;i&&(clearTimeout(i),i=null),t.value=!1,(k=a.value)==null||k.call(a,C)}return e({open:u}),(C,k)=>{var T,D,M,A,E,I,B,R;return t.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"apbd-alert appsbd-app alert-overlay",onClick:l.withModifiers(w,["self"])},[l.createElementVNode("div",{class:l.normalizeClass(["alert-card",[y.value,m.value,`alert-${s.size||"md"}`]])},[l.createElementVNode("button",{class:"close-btn",onClick:w},"✕"),s.variation==="top-color-bar"?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["color-bar",[m.value]])},null,2)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["alert-content",{"alert-content--horizontal":s.variation==="modern"}])},[s.icon?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["icon-circle",[g.value,b.value]])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(d.value)))],2)):l.createCommentVNode("",!0),l.createElementVNode("div",tW,[s.title?(l.openBlock(),l.createElementBlock("h5",rW,l.toDisplayString(l.unref(ot)(s.title)),1)):l.createCommentVNode("",!0),s.responseMessage?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[(T=s.responseMessage)!=null&&T.error?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList((D=s.responseMessage)==null?void 0:D.error,(P,L)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["d-flex message align-items-center text-danger",s.variation=="default"?" justify-content-center":"justify-content-start"]),key:"error-"+L},l.toDisplayString(P),3))),128)):l.createCommentVNode("",!0),(M=s.responseMessage)!=null&&M.info?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList((A=s.responseMessage)==null?void 0:A.info,(P,L)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["d-flex message align-items-center text-success",s.variation=="default"?" justify-content-center":"justify-content-start"]),key:"info-"+L},l.toDisplayString(P),3))),128)):l.createCommentVNode("",!0),(E=s.responseMessage)!=null&&E.debug?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:2},l.renderList((I=s.responseMessage)==null?void 0:I.debug,(P,L)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["d-flex message align-items-center text-info",s.variation=="default"?" justify-content-center":"justify-content-start"]),key:"debug-"+L},l.toDisplayString(l.unref(ot)(P)),3))),128)):l.createCommentVNode("",!0),(B=s.responseMessage)!=null&&B.warning?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:3},l.renderList((R=s.responseMessage)==null?void 0:R.warning,(P,L)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["d-flex message align-items-center text-warning",s.variation=="default"?" justify-content-center":"justify-content-start"]),key:"warning-"+L},l.toDisplayString(l.unref(ot)(P)),3))),128)):l.createCommentVNode("",!0)],64)):s.message?(l.openBlock(),l.createElementBlock("p",nW,l.toDisplayString(l.unref(ot)(s.message)),1)):l.createCommentVNode("",!0)])],2),s.showMember?(l.openBlock(),l.createElementBlock("div",aW,[l.createElementVNode("label",null,l.toDisplayString(l.unref(ot)("Team member")),1),k[0]||(k[0]=l.createElementVNode("select",{class:"form-select"},[l.createElementVNode("option",null,"Olivia Rhye"),l.createElementVNode("option",null,"John Doe")],-1))])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["buttons",[s.buttonCol?"":"flex-row-reverse",_.value]])},[l.createVNode(Xe,{color:s.confirmBtnColor,disabled:n.value,class:"justify-content-center","is-animated":n.value,onClick:S},{icon:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(v.value)))]),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(l.unref(ot)(f.value)),1)]),_:1},8,["color","disabled","is-animated"]),c.value?(l.openBlock(),l.createBlock(Xe,{key:0,color:s.cancelBtnColor,class:"justify-content-center",disabled:n.value,onClick:w},{icon:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(p.value)))]),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(l.unref(ot)(s.cancelText||"Cancel")),1)]),_:1},8,["color","disabled"])):l.createCommentVNode("",!0)],2)],2)])):l.createCommentVNode("",!0)}}},oW={install(r){const e=document.createElement("div");document.body.appendChild(e);const n=l.createApp({render(){return l.h(iW,{ref:"alert"})}}).mount(e);r.config.globalProperties.$alert=a=>n.$refs.alert.open(a)}},sW=["onMouseenter","onMouseleave"],lW={key:0,class:"apbd-toast-icon"},uW={key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cW={key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fW={key:2,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dW={key:3,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hW={class:"apbd-toast-content"},vW={key:0,class:"apbd-toast-title"},pW={class:"apbd-toast-message"},gW=["onClick"],mW={key:2,class:"apbd-toast-progress-track"},yW={__name:"AbToast",setup(r,{expose:e}){const t=l.reactive([]),n=l.ref(typeof document<"u"?document.hasFocus():!0);function a(){const p=typeof document<"u"?document.hasFocus()&&!document.hidden:!0;n.value=p,t.forEach(g=>{d(g)})}l.onMounted(()=>{typeof window<"u"&&(window.addEventListener("focus",a),window.addEventListener("blur",a),document.addEventListener("visibilitychange",a))}),l.onUnmounted(()=>{typeof window<"u"&&(window.removeEventListener("focus",a),window.removeEventListener("blur",a),document.removeEventListener("visibilitychange",a))});let i=0;const o=l.computed(()=>{const p=new Set;return t.forEach(g=>p.add(g.position)),[...p]});function s(p){const g=t.filter(y=>y.position===p);return p.startsWith("bottom")?[...g].reverse():g}function u(p,g={}){const y=++i,m={id:y,message:typeof p=="object"?p.message||"":p,title:typeof p=="object"?p.title||g.title||"":g.title||"",type:g.type||"default",design:g.design||ve.toastDesign||"default",position:g.position||ve.toastPosition||"top-right",timeout:g.timeout!==void 0?g.timeout:ve.toastTimeout||5e3,closeButton:g.closeButton!==void 0?g.closeButton:ve.toastCloseButton!==void 0?ve.toastCloseButton:!0,pauseOnHover:g.pauseOnHover!==void 0?g.pauseOnHover:ve.toastPauseOnHover!==void 0?ve.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(t.push(m),m.timeout){const b=setInterval(()=>{const _=t.find(S=>S.id===y);if(!_){clearInterval(b);return}_.isPaused||(_.remaining-=100,_.remaining<=0&&(clearInterval(b),h(y)))},100);m.timerId=b,d(m)}return y}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=t.findIndex(y=>y.id===p);if(g>-1){const y=t[g];y.timerId&&clearInterval(y.timerId),t.splice(g,1)}}function v(){t.forEach(p=>{p.timerId&&clearInterval(p.timerId)}),t.splice(0,t.length)}return e({addToast:u,dismiss:h,clearAll:v}),(p,g)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,y=>(l.openBlock(),l.createElementBlock("div",{key:y,class:l.normalizeClass(["appsbd-app apbd-toast-container",[`apbd-toast-pos-${y}`]])},[l.createVNode(l.TransitionGroup,{name:"apbd-toast",tag:"div",class:"apbd-toast-list"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s(y),m=>(l.openBlock(),l.createElementBlock("div",{key:m.id,class:l.normalizeClass(["apbd-toast",[`apbd-toast-${m.type}`,`apbd-toast-design-${m.design}`]]),onMouseenter:b=>c(m),onMouseleave:b=>f(m)},[m.type!=="default"?(l.openBlock(),l.createElementBlock("div",lW,[m.type==="success"?(l.openBlock(),l.createElementBlock("svg",uW,[...g[0]||(g[0]=[l.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),l.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),l.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)])])):m.type==="error"?(l.openBlock(),l.createElementBlock("svg",cW,[...g[1]||(g[1]=[l.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),l.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),l.createElementVNode("path",{d:"M12.5 7.5l-5 5M7.5 7.5l5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):m.type==="warning"?(l.openBlock(),l.createElementBlock("svg",fW,[...g[2]||(g[2]=[l.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),l.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),l.createElementVNode("path",{d:"M10 6.5v4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),l.createElementVNode("circle",{cx:"10",cy:"13.5",r:"0.75",fill:"currentColor"},null,-1)])])):m.type==="info"?(l.openBlock(),l.createElementBlock("svg",dW,[...g[3]||(g[3]=[l.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),l.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),l.createElementVNode("path",{d:"M10 9.5v4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),l.createElementVNode("circle",{cx:"10",cy:"6.75",r:"0.75",fill:"currentColor"},null,-1)])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.createElementVNode("div",hW,[m.title?(l.openBlock(),l.createElementBlock("div",vW,l.toDisplayString(l.unref(F)(m.title)),1)):l.createCommentVNode("",!0),l.createElementVNode("div",pW,l.toDisplayString(l.unref(F)(m.message)),1)]),m.closeButton?(l.openBlock(),l.createElementBlock("button",{key:1,class:"apbd-toast-close",onClick:b=>h(m.id),"aria-label":"Close"},[...g[4]||(g[4]=[l.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M12 4L4 12M4 4l8 8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])],8,gW)):l.createCommentVNode("",!0),m.showProgress&&m.timeout?(l.openBlock(),l.createElementBlock("div",mW,[l.createElementVNode("div",{class:"apbd-toast-progress-bar",style:l.normalizeStyle({"animation-duration":`${m.timeout}ms`,"animation-play-state":m.isPaused?"paused":"running"})},null,4)])):l.createCommentVNode("",!0)],42,sW))),128))]),_:2},1024)],2))),128))]))}},bW={install(r){const e=document.createElement("div");e.id="apbd-toast-root",e.className="appsbd-app",document.body.appendChild(e);const n=l.createApp({render(){return l.h(yW,{ref:"toast"})}}).mount(e),a=(i,o={})=>n.$refs.toast.addToast(i,o);a.success=(i,o={})=>a(i,{...o,type:"success"}),a.error=(i,o={})=>a(i,{...o,type:"error"}),a.warning=(i,o={})=>a(i,{...o,type:"warning"}),a.info=(i,o={})=>a(i,{...o,type:"info"}),a.dismiss=i=>{n.$refs.toast.dismiss(i)},a.clear=()=>{n.$refs.toast.clearAll()},r.config.globalProperties.$toast=a}},_W=[oW,bW];function SW(r){_W.forEach(e=>{r.use(e)})}const wW={install(r){const e=["AbCard","AbButton","AbInputField","AbNumberField","AbField","AbToggle","AbMultiSelect","AbFormCheck","AbInputTag","AbPopover","AbModal","AbDateTimePicker","AbCustomField","AbProgressBar"];Object.entries(PG).forEach(([t,n])=>{e.includes(t)&&r.component(t,n)}),SW(r),r.directive("tooltip",sT)}};exports.AbAvatar=i_;exports.AbBadge=u_;exports.AbButton=Xe;exports.AbCard=q1;exports.AbCarousel=k_;exports.AbChart=eT;exports.AbColorPicker=p_;exports.AbConfirmPopover=R_;exports.AbCustomField=v_;exports.AbDarkModeToggler=N_;exports.AbDateTimePicker=yn;exports.AbEasyModal=O_;exports.AbField=E_;exports.AbFileUploader=y_;exports.AbFilterPanel=b_;exports.AbFormCheck=aa;exports.AbImageRadioInput=__;exports.AbInputField=kr;exports.AbInputTag=$v;exports.AbKbd=x_;exports.AbKbdGroup=C_;exports.AbMainLayout=FG;exports.AbModal=zv;exports.AbMultiSelect=Za;exports.AbNumberField=n_;exports.AbPinInput=h_;exports.AbPopover=hi;exports.AbPricingCard=z_;exports.AbPricingContainer=$_;exports.AbPricingTable=F_;exports.AbProgressbar=e_;exports.AbRadioInput=aa;exports.AbResponseMsg=Ov;exports.AbScrollbar=Fv;exports.AbSettingsForm=l_;exports.AbSideMenuItem=f_;exports.AbSidebar=c_;exports.AbSkeleton=w_;exports.AbSlider=d_;exports.AbTab=s_;exports.AbTable=S_;exports.AbTabs=o_;exports.AbToggle=gc;exports.AbTooltip=T_;exports.AbWizard=D_;exports.AbWizardStep=M_;exports.AppsbdUIConfigure=lT;exports.ObjectToFormData=tT;exports.abAllRules=ZG;exports.abCreateGettext=JT;exports.abSortParam=JG;exports.abSrcParam=eW;exports.calculateTax=YG;exports.default=wW;exports.emitterObj=QG;exports.formatCurrency=WG;exports.globalConfig=ve;exports.hideAllPopovers=vD;exports.initTranslate=t_;exports.popoverManager=vu;exports.slugify=UG;exports.translateGetMsg=F;exports.translateGettext=ot;exports.useAlert=HG;exports.useFileValidator=m_;exports.useResponsive=GG;exports.useTheme=A_;exports.useToast=g_;
|